A communication method, comprising: receiving, by a terminal, from a first access-network network element an identifier, ID, of a first data radio bearer, DRB, and information indicating whether to configure a Service Data Adaptation Protocol, SDAP, header for the first DRB; receiving, by the terminal, from a second access-network network element information indicating whether to configure a SDAP header for a second DRB of the terminal and that is in the target cell; wherein the first access-network network element is a source access-network network element, the second access-network network element is a target access-network network element, the information indicating whether to configure a SDAP header for a DRB of the terminal and that is in the target cell is determined by the second access-network network element after receiving a handover request message, the handover request message comprises the ID of the first DRB and the information indicating whether to configure the SDAP header for the first DRB; or wherein the first access-network network element is a master gNB or a secondary gNB, the second access-network network element is a secondary gNB or a master gNB, the information indicating whether to configure a SDAP header for a second DRB of the terminal and that is in the target cell is determined by the second access-network network element after receiving a QoS flow migration request message, the QoS flow migration request message comprises information indicating whether to configure the SDAP header for the first DRB, the first DRB is corresponding to a to-be-migrated QoS flow of the terminal. receiving, by a terminal, from a first access-network network element an identifier, ID, of a first data radio bearer, DRB, and information indicating whether to configure a Service Data Adaptation Protocol, SDAP, header for the first DRB; receiving, by the terminal, from a second access-network network element information indicating whether to configure a SDAP header for a second DRB of the terminal and that is in the target cell; wherein the first access-network network element is a source access-network network element, the second access-network network element is a target access-network network element, the information indicating whether to configure a SDAP header for a DRB of the terminal and that is in the target cell is determined by the second access-network network element after receiving a handover request message, the handover request message comprises the ID of the first DRB and the information indicating whether to configure the SDAP header for the first DRB; or receiving, by the terminal, from a second access-network network element information indicating whether to configure a SDAP header for a second DRB of the terminal and that is in the target cell; wherein the first access-network network element is a source access-network network element, the second access-network network element is a target access-network network element, the information indicating whether to configure a SDAP header for a DRB of the terminal and that is in the target cell is determined by the second access-network network element after receiving a handover request message, the handover request message comprises the ID of the first DRB and the information indicating whether to configure the SDAP header for the first DRB; or wherein the first access-network network element is a master gNB or a secondary gNB, the second access-network network element is a secondary gNB or a master gNB, the information indicating whether to configure a SDAP header for a second DRB of the terminal and that is in the target cell is determined by the second access-network network element after receiving a QoS flow migration request message, the QoS flow migration request message comprises information indicating whether to configure the SDAP header for the first DRB, the first DRB is corresponding to a to-be-migrated QoS flow of the terminal.