Patent ID: 11895197
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Digital communication (Electrical engineering)
Classification: CPC H | IPC G  H

Claim 0:
1. A communication method used to transmit an uplink data packet of an apparatus by using an Ethernet session, wherein the communication method comprises:
after determining that the Ethernet session needs to be established or modified, matching, by the apparatus, an identifier of an application program with a user equipment route selection policy (URSP), wherein the application program is an application program triggering establishment or modification of the Ethernet session, and wherein the URSP comprises a correspondence between an encapsulation identifier and the identifier of the application program;
in response to a determination that the identifier of application program exists in the URSP, obtaining, by the apparatus, the encapsulation identifier based on the correspondence;
determining, by the apparatus, the encapsulation identifier as a first encapsulation identifier corresponding to the Ethernet session;
encapsulating, by the apparatus, the uplink data packet based on the first encapsulation identifier and a media access control (MAC) address of the apparatus to generate an encapsulated data packet, wherein the uplink data packet is a data packet triggered by an application program bound to the Ethernet session; and
mapping, by the apparatus based on the first encapsulation identifier, the encapsulated data packet to the Ethernet session for transmission.