(19)
(11)EP 3 668 054 A1

(12)EUROPEAN PATENT APPLICATION
published in accordance with Art. 153(4) EPC

(43)Date of publication:
17.06.2020 Bulletin 2020/25

(21)Application number: 18849987.5

(22)Date of filing:  21.08.2018
(51)International Patent Classification (IPC): 
H04L 29/08(2006.01)
(86)International application number:
PCT/CN2018/101465
(87)International publication number:
WO 2019/042184 (07.03.2019 Gazette  2019/10)
(84)Designated Contracting States:
AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR
Designated Extension States:
BA ME
Designated Validation States:
KH MA MD TN

(30)Priority: 29.08.2017 CN 201710758372
07.08.2018 CN 201810890123

(71)Applicant: Huawei Technologies Co., Ltd.
Longgang District Shenzhen, Guangdong 518129 (CN)

(72)Inventors:
  • HU, Yong
    Shenzhen Guangdong 518129 (CN)
  • YAO, Qi
    Shenzhen Guangdong 518129 (CN)

(74)Representative: Roth, Sebastian 
Mitscherlich PartmbB Patent- und Rechtsanwälte Sonnenstraße 33
80331 München
80331 München (DE)

  


(54)DATA TRANSMISSION METHOD, DEVICE AND SYSTEM


(57) Embodiments of this application provide a data transmission method, a device, and a system, so that when two terminals correspond to a same UPF entity, the two terminals can locally interact with each other. The method includes: receiving, by a user plane function entity, a data packet from a first terminal through an uplink path corresponding to the first terminal, where the data packet carries addressing information of a second terminal; determining, by the user plane function entity based on information about the uplink path corresponding to the first terminal and the addressing information of the second terminal, a downlink path corresponding to the second terminal; and sending, by the user plane function entity, the data packet to the second terminal through the downlink path corresponding to the second terminal.




Description


[0001] This application claims priority to Chinese Patent Application No. 201710758372.4, filed on August 29, 2017 and entitled "DATA TRANSMISSION METHOD, DEVICE, AND SYSTEM", and Chinese Patent Application No. 201810890123.5, filed on August 7, 2018 and entitled "DATA TRANSMISSION METHOD, DEVICE, AND SYSTEM" which are incorporated herein by reference in their entireties.

TECHNICAL FIELD



[0002] This application relates to the field of communications technologies, and in particular, to a data transmission method, a device, and a system.

BACKGROUND



[0003] A local area network (local area network, LAN) is a computer communications network that interconnects various computers, external devices, and databases within a local geographical range, for example, a school, a factory, or an institution. The local area network may be connected to a remote local area network, database, or processing center by using a data communication network or a dedicated data circuit, to construct a large-scale information processing system. With emergence of a new enterprise office mode and a smart home mode, a wired LAN and a wireless LAN (wireless LAN, WLAN) expose shortcomings in aspects such as complex deployment, flexibility, mobility, and coverage. This encourages further development of a LAN technology, to adapt to requirements of future applications for the LAN.

[0004] A network that directly provides a LAN service by utilizing a wide coverage characteristic of a mobile network is referred to as a mobile local area network (mobile local area network, MLAN). The MLAN may be used within a more extensive mobile network coverage area. In other words, no matter users are located in a same area, the users can implement LAN-based data exchange or communication provided that they access a same MLAN. A mobile network with wide coverage is utilized, so that creating, expansion, migration, and adjustment of the MLAN can be automatically completed by using the mobile network without manual intervention. In addition, an MLAN may be customized according to a requirement, and different MLANs are securely isolated with each other.

[0005] However, in the MLAN, when two terminals correspond to a same user plane function (user plane function, UPF) entity, there is currently no related solution for how the two terminals locally interact with each other.

SUMMARY



[0006] Embodiments of this application provide a data transmission method, a device, and a system, so that when two terminals correspond to a same UPF entity, the two terminals can locally interact with each other.

[0007] To achieve the foregoing objective, the embodiments of this application provide the following technical solutions:
According to a first aspect, a data transmission method is provided, and the method includes: receiving, by a user plane function entity, a data packet from a first terminal through an uplink path corresponding to the first terminal, where the data packet carries addressing information of a second terminal; determining, by the user plane function entity based on information about the uplink path corresponding to the first terminal and the addressing information of the second terminal, a downlink path corresponding to the second terminal; and sending, by the user plane function entity, the data packet to the second terminal through the downlink path corresponding to the second terminal. Based on this solution, after receiving the data packet from the first terminal through the uplink path corresponding to the first terminal, the user plane function entity can determine, based on the information about the uplink path corresponding to the first terminal and the addressing information of the second terminal, the downlink path corresponding to the second terminal, and can further send the data packet to the second terminal through the downlink path corresponding to the second terminal. Therefore, when two terminals correspond to a same user plane function entity, the two terminals can locally interact with each other.

[0008] In a possible design, the determining, by the user plane function entity based on information about the uplink path corresponding to the first terminal and the addressing information of the second terminal, a downlink path corresponding to the second terminal includes: determining, by the user plane function entity based on the information about the uplink path corresponding to the first terminal, an identifier of a mobile local area network MLAN to which the first terminal subscribes; and determining, by the user plane function entity based on the identifier of the MLAN and the addressing information of the second terminal, the downlink path corresponding to the second terminal. Based on this solution, the downlink path corresponding to the second terminal can be determined in the MLAN.

[0009] In a possible design, the determining, by the user plane function entity based on the information about the uplink path corresponding to the first terminal, an identifier of an MLAN to which the first terminal subscribes includes: determining, by the user plane function entity based on the information about the uplink path corresponding to the first terminal and a first correspondence, the identifier of the MLAN to which the first terminal subscribes, where the first correspondence includes a correspondence between the information about the uplink path corresponding to the first terminal and the identifier of the MLAN. Based on this solution, the identifier of the MLAN to which the first terminal subscribes can be determined.

[0010] In a possible design, the determining, by the user plane function entity based on the identifier of the MLAN and the addressing information of the second terminal, the downlink path corresponding to the second terminal includes: determining, by the user plane function entity based on the identifier of the MLAN, the addressing information of the second terminal, and a second correspondence, the downlink path corresponding to the second terminal, where the second correspondence includes a correspondence between information about the downlink path corresponding to the second terminal, the addressing information of the second terminal, and the identifier of the MLAN. Based on this solution, the downlink path corresponding to the second terminal can be determined in the MLAN.

[0011] In a possible design, the method further includes: obtaining, by the user plane function entity, the addressing information of the second terminal, where the addressing information of the second terminal includes an internet protocol IP address of the second terminal or a media access control MAC address of the second terminal. Based on this solution, the user plane function entity can obtain the addressing information of the second terminal.

[0012] In a possible design, the addressing information of the second terminal includes the IP address of the second terminal; and the obtaining, by the user plane function entity, the addressing information of the second terminal includes: receiving, by the user plane function entity, the IP address of the second terminal from a session management function entity, where the IP address of the second terminal is determined based on the identifier of the MLAN. Based on this solution, the user plane function entity can obtain the IP address of the second terminal.

[0013] In a possible design, the addressing information of the second terminal includes the MAC address of the second terminal; and the obtaining, by the user plane function entity, the addressing information of the second terminal includes: receiving, by the user plane function entity, the MAC address of the second terminal from the second terminal during an MLAN session establishment process. Based on this solution, the user plane function entity can obtain the MAC address of the second terminal.

[0014] In a possible design, the addressing information of the second terminal includes the MAC address of the second terminal; and the obtaining, by the user plane function entity, the addressing information of the second terminal includes: receiving, by the user plane function entity, a dynamic host configuration protocol DHCP request from the second terminal through an uplink path of the second terminal, where the DHCP request carries the MAC address of the second terminal; sending, by the user plane function entity, the DHCP request to a session management function entity; and receiving, by the user plane function entity, the MAC address of the second terminal from the session management function entity. Based on this solution, the user plane function entity can obtain the MAC address of the second terminal.

[0015] In a possible design, the addressing information of the second terminal includes the MAC address of the second terminal; and the obtaining, by the user plane function entity, the addressing information of the second terminal includes: receiving, by the user plane function entity, a DHCP request from the second terminal through an uplink path of the second terminal, where the DHCP request carries the MAC address of the second terminal; and parsing, by the user plane function entity, the DHCP request, to obtain the MAC address of the second terminal. Based on this solution, the user plane function entity can obtain the MAC address of the second terminal.

[0016] In a possible design, the method further includes: obtaining, by the user plane function entity, the identifier of the MLAN to which the second terminal subscribes and the information about the downlink path corresponding to the second terminal; and establishing, by the user plane function entity, the second correspondence based on the identifier of the MLAN, the addressing information of the second terminal, and the information about the downlink path corresponding to the second terminal. Based on this solution, the user plane function entity can establish the second correspondence.

[0017] In a possible design, before the receiving, by the user plane function entity, a DHCP request from the second terminal through an uplink path of the second terminal, the method further includes: obtaining, by the user plane function entity, information about the uplink path corresponding to the second terminal, the identifier of the MLAN to which the second terminal subscribes, and the information about the downlink path corresponding to the second terminal; and establishing, by the user plane function entity, a third correspondence based on the information about the uplink path corresponding to the second terminal, the information about the downlink path corresponding to the second terminal, and the identifier of the MLAN, where the third correspondence includes a correspondence between the information about the uplink path corresponding to the second terminal, the information about the downlink path corresponding to the second terminal, and the identifier of the MLAN; and after the receiving, by the user plane function entity, a DHCP request from the second terminal through an uplink path corresponding to the second terminal, the method further includes: establishing, by the user plane function entity, the second correspondence based on the third correspondence and the MAC address of the second terminal. Based on this solution, the user plane function entity can establish the second correspondence.

[0018] In a possible design, the method further includes: obtaining, by the user plane function entity, the identifier of the MLAN to which the first terminal subscribes and the information about the uplink path corresponding to the first terminal; and establishing, by the user plane function entity, the first correspondence based on the identifier of the MLAN and the information about the uplink path corresponding to the first terminal. Based on this solution, the user plane function entity can establish the first correspondence.

[0019] In a possible design, the information about the uplink path corresponding to the first terminal includes a tunnel identifier of the user plane function entity that is allocated for the first terminal; and the information about the downlink path corresponding to the second terminal includes a tunnel identifier of an access device that is allocated for the second terminal.

[0020] According to a second aspect, a user plane function entity is provided, and the user plane function entity has a function of implementing the method in the first aspect. The function may be implemented by hardware, or may be implemented by executing corresponding software by hardware. The hardware or software includes one or more modules that correspond to the foregoing function.

[0021] According to a third aspect, a user plane function entity is provided, and includes: a processor and a memory, where the memory is configured to store a computer execution instruction, and when the user plane function entity runs, the processor executes the computer execution instruction stored in the memory, so that the user plane function entity is enabled to perform the data transmission method in any one of the first aspect or the possible designs of the first aspect.

[0022] According to a fourth aspect, a computer-readable storage medium is provided, the computer-readable storage medium stores an instruction, and when the instruction is run on a computer, the computer is enabled to perform the data transmission method in any one of the first aspect or the possible designs of the first aspect.

[0023] According to a fifth aspect, a computer program product including an instruction is provided. When the computer program product is run on a computer, the computer is enabled to perform the data transmission method in any one of the first aspect or the possible designs of the first aspect.

[0024] According to a sixth aspect, a chip system is provided. The chip system includes a processor, where the processor is configured to support a user plane function entity in implementing the functions in the foregoing aspects, for example, determining, based on information about an uplink path corresponding to a first terminal and addressing information of a second terminal, a downlink path corresponding to the second terminal. In a possible design, the chip system further includes a memory, where the memory is configured to store a program instruction and data that are necessary for a user plane function entity. The chip system may include a chip, or may include a chip and another discrete device.

[0025] For technical effects brought in by any design manner in the second aspect to the sixth aspect, refer to technical effects brought in by different design manners in the first aspect. Details are not described herein again.

[0026] According to a seventh aspect, a mobility management entity is provided. The mobility management entity includes a transceiver module and a processing module, where the transceiver module is configured to receive a registration or re-registration request from a terminal; the processing module is configured to obtain, from a database entity, an identifier of a mobile local area network MLAN to which the terminal subscribes; and the transceiver module is further configured to send the identifier of the MLAN to the terminal. Based on this solution, the identifier of the MLAN to which the terminal subscribes can be configured on the terminal.

[0027] In a possible design, the identifier of the MLAN is an identifier corresponding to a specific area; and the transceiver module is specifically configured to: when the processing module determines that a current registration area of the terminal overlaps the specific area, send the identifier of the MLAN to the terminal.

[0028] In a possible design, the transceiver module is further configured to receive the identifier of the MLAN from the terminal during an MLAN session establishment process, where the identifier of the MLAN is used to establish an MLAN session.

[0029] According to an eighth aspect, a data transmission system is provided. The data transmission system includes the user plane function entity in any one of the foregoing aspects and the mobility management entity in any one of the foregoing aspects.

[0030] According to a ninth aspect, a data transmission method is provided. The data transmission method includes: obtaining, by a session management network element, an identifier of a mobile local area network MLAN associated with a session of a terminal; determining, by the session management network element, an uplink data forwarding rule based on the identifier of the MLAN, where the uplink data forwarding rule includes a label of the MLAN and information about an uplink path corresponding to the session; and sending, by the session management network element, the uplink data forwarding rule to a user plane network element, where the uplink data forwarding rule is used to instruct the user plane network element to forward, by using routing information corresponding to the label of the MLAN, uplink data received on the uplink path. Based on this solution, the session management network element can determine the uplink data forwarding rule based on the identifier of the MLAN, and send the uplink data forwarding rule to the user plane network element, and the uplink data forwarding rule is used to instruct the user plane network element to forward, by using the routing information corresponding to the label of the MLAN, the uplink data received on the uplink path. Therefore, when two terminals correspond to a same user plane function network element, the two terminals can locally interact with each other.

[0031] In a possible design, the obtaining, by a session management network element, an identifier of an MLAN associated with a session of a terminal is specifically: receiving, by the session management network element, a session establishment request from the terminal, where the session establishment request includes the identifier of the MLAN; or receiving, by the session management network element, a request message from a mobility management network element, where the request message includes the identifier of the MLAN. Based on this solution, the session management network element can obtain the identifier of the MLAN associated with the session for the terminal.

[0032] In a possible design, the determining, by the session management network element, an uplink data forwarding rule based on the identifier of the MLAN is specifically: obtaining, by the session management network element, the label of the MLAN based on the identifier of the MLAN; and generating, by the session management network element, the uplink data forwarding rule based on the label of the MLAN and the information that is about the uplink path corresponding to the session and that is allocated for the terminal. Based on this solution, the session management network element can determine the uplink data forwarding rule.

[0033] In a possible design, the obtaining, by the session management network element, the label of the MLAN based on the identifier of the MLAN is specifically: obtaining, by the session management network element, subscription data of the MLAN of the terminal based on the identifier of the MLAN, where the subscription data includes the label of the MLAN; or obtaining, by the session management network element, authentication data of the MLAN of the terminal based on the identifier of the MLAN, where the authentication data includes the label of the MLAN; or allocating, by the session management network element, the label of the MLAN for the session based on the identifier of the MLAN; or determining, by the session management network element, the identifier of the MLAN as the label of the MLAN. Based on this solution, the session management network element can obtain the label of the MLAN.

[0034] In a possible design, the data transmission method provided in this embodiment of this application further includes: obtaining, by the session management network element, a downlink data forwarding rule, where the downlink data forwarding rule includes the label of the MLAN and addressing information of the terminal; and sending, by the session management network element, the downlink data forwarding rule to the user plane network element, where the downlink data forwarding rule is used to instruct the user plane network element to forward, by using the routing information corresponding to the label of the MLAN, downlink data to be sent to an address corresponding to the addressing information of the terminal. Based on this solution, the session management network element can obtain the downlink data forwarding rule, and send the downlink data forwarding rule to the user plane network element, and the downlink data forwarding rule is used to instruct the user plane network element to forward, by using the routing information corresponding to the label of the MLAN, the downlink data to be sent to the address corresponding to the addressing information of the terminal. Therefore, when two terminals correspond to a same user plane function network element, the two terminals can locally interact with each other.

[0035] In a possible design, the data transmission method provided in this embodiment of this application further includes: obtaining, by the session management network element, a downlink data forwarding rule, where the downlink data forwarding rule includes the label of the MLAN, addressing information of the terminal, and information about a downlink path corresponding to the session; and sending, by the session management network element, the downlink data forwarding rule to the user plane network element, where the downlink data forwarding rule is used to instruct the user plane network element to update the routing information corresponding to the label of the MLAN, and forward, by using the downlink path in updated routing information corresponding to the label of the MLAN, downlink data to be sent to an address corresponding to the addressing information of the terminal. Based on this solution, the session management network element can obtain the downlink data forwarding rule, and send the downlink data forwarding rule to the user plane network element, and the downlink data forwarding rule is used to instruct the user plane network element to update the routing information corresponding to the label of the MLAN, and forward, by using the downlink path in the updated routing information corresponding to the label of the MLAN, the downlink data to be sent to an address corresponding to the addressing information of the terminal. Therefore, when two terminals correspond to a same user plane function network element, the two terminals can locally interact with each other.

[0036] According to a tenth aspect, a session management network element is provided, and the session management network element has a function of implementing the method in the ninth aspect. The function may be implemented by hardware, or may be implemented by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the foregoing function.

[0037] According to an eleventh aspect, a session management network element is provided, and includes: a processor and a memory, where the memory is configured to store a computer execution instruction, and when the session management network element runs, the processor executes the computer execution instruction stored in the memory, so that the session management network element is enabled to perform the data transmission method in any one of the ninth aspect or the possible designs of the ninth aspect.

[0038] According to twelfth aspect, a session management network element is provided, and includes a processor. The processor is configured to couple to a memory, and configured to read an instruction in the memory and perform the data transmission method in any one of the ninth aspect or the possible designs of the ninth aspect according to the instruction.

[0039] According to a thirteenth aspect, a computer-readable storage medium is provided, where the computer-readable storage medium stores an instruction, and when the instruction is run on a computer, the computer is enabled to perform the data transmission method in any one of the ninth aspect or the possible designs of the ninth aspect.

[0040] According to a fourteenth aspect, a computer program product including an instruction is provided. When the computer program product is run on a computer, the computer is enabled to perform the data transmission method in any one of the ninth aspect or the possible designs of the ninth aspect.

[0041] According to a fifteenth aspect, a chip system is provided, where the chip system includes a processor, and the processor is configured to support a session management network element in implementing the functions in the foregoing aspects, for example, obtaining an identifier of an MLAN associated with a session of a terminal, and determining an uplink data forwarding rule based on the identifier of the MLAN. In a possible design, the chip system further includes a memory, and the memory is configured to store a program instruction and data that are necessary for a session management network element. The chip system may include a chip, or may include a chip and another discrete device.

[0042] For technical effects brought in by any design manner in the tenth aspect to the fifteenth aspect, refer to technical effects brought in by different design manners in the ninth aspect. Details are not described herein again.

[0043] According to a sixteenth aspect, a data transmission system is provided. The data transmission system includes: a session management network element and a user plane network element, where the session management network element is configured to obtain an identifier of a mobile local area network MLAN associated with a session of a terminal; the session management network element is further configured to determine an uplink data forwarding rule based on the identifier of the MLAN, where the uplink data forwarding rule includes a label of the MLAN and information about an uplink path corresponding to the session; the session management network element is further configured to send the uplink data forwarding rule to the user plane network element, where the uplink data forwarding rule is used to instruct the user plane network element to forward, by using routing information corresponding to the label of the MLAN, uplink data received on the uplink path; and the user plane network element is configured to receive the uplink data forwarding rule from the session management network element.

[0044] In a possible design, the user plane network element is further configured to forward, based on the uplink data forwarding rule by using routing information corresponding to the label of the MLAN, uplink data received on the uplink path.

[0045] In a possible design, the session management network element is further configured to obtain a downlink data forwarding rule, where the downlink data forwarding rule includes the label of the MLAN and addressing information of the terminal; the session management network element is further configured to send the downlink data forwarding rule to the user plane network element, where the downlink data forwarding rule is used to instruct the user plane network element to forward, by using the routing information corresponding to the label of the MLAN, downlink data to be sent to an address corresponding to the addressing information of the terminal; and the user plane network element is further configured to receive the downlink data forwarding rule from the session management network element, and forward, based on the downlink data forwarding rule by using the routing information corresponding to the label of the MLAN, the downlink data to be sent to the address corresponding to the addressing information of the terminal.

[0046] In a possible design, the session management network element is further configured to obtain a downlink data forwarding rule, where the downlink data forwarding rule includes the label of the MLAN, addressing information of the terminal, and information about a downlink path corresponding to the session; the session management network element is further configured to send the downlink data forwarding rule to the user plane network element, where the downlink data forwarding rule is used to instruct to update the routing information corresponding to the label of the MLAN, and enable the user plane network element to forward, by using the downlink path in updated routing information corresponding to the label of the MLAN, downlink data to be sent to an address corresponding to the addressing information of the terminal; and the user plane network element is further configured to receive the downlink data forwarding rule from the session management network element, update, based on the downlink data forwarding rule, the routing information corresponding to the label of the MLAN, and forward, by using the downlink path in the updated routing information corresponding to the label of the MLAN, downlink data to be sent to an address corresponding to the addressing information of the terminal.

[0047] For technical effects brought in by any design manner in the sixteenth aspect, refer to technical effects brought in by different design manners in the ninth aspect. Details are not described herein again.

[0048] These aspects or other aspects in this application may be clearer and easier to understand in description of the following embodiments.

BRIEF DESCRIPTION OF DRAWINGS



[0049] 

FIG. 1 is a schematic architectural diagram of a data transmission system according to an embodiment of this application;

FIG. 2 is a schematic diagram of application of a data transmission system in 5G according to an embodiment of this application;

FIG. 3 is a schematic diagram of a hardware apparatus of a communications device according to an embodiment of this application;

FIG. 4A, FIG. 4B, and FIG. 4C are a schematic flowchart 1 of a data transmission method according to an embodiment of this application;

FIG. 5A, FIG. 5B, FIG. 5C, and FIG. 5D are a schematic flowchart 2 of a data transmission method according to an embodiment of this application;

FIG. 6 is a schematic flowchart of a configuration method an identifier of an MLAN according to an embodiment of this application;

FIG. 7 is a schematic structural diagram of a user plane function entity according to an embodiment of this application;

FIG. 8 is a schematic structural diagram of a mobility management entity according to an embodiment of this application;

FIG. 9 is a schematic architectural diagram of another data transmission system according to an embodiment of this application;

FIG. 10A and FIG. 10B are a schematic flowchart 3 of a data transmission method according to an embodiment of this application; and

FIG. 11 is a schematic structural diagram of a session management network element according to an embodiment of this application.


DESCRIPTION OF EMBODIMENTS



[0050] To help understand technical solutions of embodiments of this application, the following first briefly describes technologies related to this application.

First. Identifier (identity, ID) of an MLAN:



[0051] An identifier of an MLAN is used to identify an MLAN instance. If MLANs are divided based on scenarios such as an enterprise communication scenario and a vehicle to everything communication (vehicle to everything communication, V2X) scenario, MLAN scenarios of a same type may be identified by using an MLAN type or a data network name (Data network name, DNN). In other words, an identifier of one MLAN includes a scenario identifier and an MLAN number. A specific MLAN instance in MLAN scenarios of a same type can be uniquely identified with reference to a scenario identifier and an MLAN number. If DNN resources are abundant, MLANs do not need to be divided based on scenarios, and an identifier of one MLAN corresponds to a unique MLAN instance of one DNN. Whether MLANs are divided based on scenarios is not specifically limited in the following embodiments of this application. An example in which an identifier of one MLAN can uniquely identify one MLAN instance is merely used for description. This is described herein for once, and details are not described below again.

[0052] In addition, in the embodiments of this application, an identifier of an MLAN may correspond to a specific service scope, or may be used within a global range. A service scope corresponding to an identifier of an MLAN is not specifically limited in the embodiments of this application.

Second. Tunnel:



[0053] A tunnel includes a next generation (Next generation, N) interface 3 (N3 for short) tunnel and an N interface 9 (N9 for short) tunnel. The N3 tunnel is a tunnel between an access device (for example, a base station) and a user plane function entity; and the N9 tunnel is a tunnel between user plane function entities. Generally, the N3 tunnel is a tunnel at a granularity of a session; and the N9 tunnel may be a tunnel at a granularity of a session, or may be a tunnel at a granularity of a device.

[0054] The tunnel at a granularity of a session refers to a tunnel resource established for a session, and the tunnel is used for only one session. The tunnel at a granularity of a session includes only one routing rule, and only the routing rule can be correspondingly used for forwarding data on the tunnel. In addition, a life cycle of the tunnel at a granularity of a session is a life cycle of a session. In other words, when a session disappears or is released, the tunnel at a granularity of a session also needs to be released.

[0055] The tunnel at a granularity of a device refers to a tunnel resource established for one or more sessions, and the tunnel can be used for one or more sessions. The tunnel at a granularity of a device may include one or more routing rules, and the one or more routing rules each can be correspondingly used for forwarding data on the tunnel. In addition, a life cycle of the tunnel at a granularity of a device is life cycles of a plurality of sessions corresponding to the tunnel. In other words, assuming that the tunnel at a granularity of a device corresponds to M sessions, when first M-1 sessions of the plurality of sessions corresponding to the tunnel disappear or are released, only a routing rule corresponding to a corresponding session is released, and the tunnel at a granularity of a device can be released only when an Mth session in the plurality of sessions corresponding to the tunnel disappears or is released. Certainly, when the Mth session in the plurality of sessions corresponding to the tunnel disappears or is released, the tunnel at a granularity of a device may be alternatively reserved, so that the tunnel does not need to be subsequently re-established. This is not specifically limited in the embodiments of this application.

[0056] The session in the embodiments of this application may be, for example, a protocol data unit (packet data unit, PDU) session. This is described herein for once, and details are not described below again.

[0057] A tunnel in the following embodiments of this application relates to only the N3 tunnel, and does not relate to the N9 tunnel. This is described herein for once, and details are not described below again.

Third. Path information:



[0058] Path information in the embodiments of this application includes information about an uplink path corresponding to a first terminal, information about a downlink path corresponding to the first terminal, information about an uplink path corresponding to a second terminal, and information about a downlink path corresponding to the second terminal. The information about the uplink path corresponding to the first terminal is used to determine the uplink path corresponding to the first terminal; the information about the downlink path corresponding to the first terminal is used to determine the downlink path corresponding to the first terminal; the information about the uplink path corresponding to the second terminal is used to determine the uplink path corresponding to the second terminal; and the information about the downlink path corresponding to the second terminal is used to determine the downlink path corresponding to the second terminal. In addition, the information about the uplink path corresponding to the first terminal and the information about the downlink path corresponding to the first terminal may also be used to determine a tunnel that is established for the first terminal between a first access device and a first user plane function entity; and the information about the uplink path corresponding to the second terminal and the information about the downlink path corresponding to the second terminal may be used to determine a tunnel that is established for the second terminal between a second access device and a second user plane function entity.

[0059] In the embodiments of this application, the first user plane function entity and the second user plane function entity are a same user plane function entity; and the first access device and the second access device may be a same access device, or may be different access devices. This is not specifically limited in the embodiments of this application.

[0060] In the embodiments of this application, the information about the uplink path corresponding to the first terminal may include a tunnel identifier of the first user plane function entity that is allocated for the first terminal; the information about the downlink path corresponding to the first terminal may include a tunnel identifier of the first access device that is allocated for the first terminal; the information about the uplink path corresponding to the second terminal may include a tunnel identifier of the second user plane function entity that is allocated for the second terminal; and the information about the downlink path corresponding to the second terminal may include a tunnel identifier of the second access device that is allocated for the second terminal. The tunnel identifier may be, for example, a tunnel endpoint identifier (tunnel endpoint identifier, TEID). This is not specifically limited in the embodiments of this application.

[0061] Certainly, the information about the uplink path corresponding to the first terminal, the information about the downlink path corresponding to the first terminal, the information about the uplink path corresponding to the second terminal, and the information about the downlink path corresponding to the second terminal may further include other information. For example, the information about the uplink path corresponding to the first terminal may further include an IP address of a user plane function entity; the information about the downlink path corresponding to the first terminal may further include an IP address of the first access device; the information about the uplink path corresponding to the second terminal may further include an IP address of a user plane function entity; and the information about the downlink path corresponding to the second terminal may further include an IP address of the second access device, and so on. This is not specifically limited in the embodiments of this application.

[0062] The following describes the technical solutions in the embodiments of this application with reference to the accompanying drawings in the embodiments of this application. In descriptions of this application, "/" means "or" unless otherwise specified. For example, A/B may represent A or B. In this specification, "and/or" describes only an association relationship for describing associated objects and represents that three relationships may exist. For example, A and/or B may represent the following three cases: Only A exists, both A and B exist, and only B exists. In addition, in the descriptions in this application, "a plurality of" means two or more than two unless otherwise specified. In addition, to help describe the technical solutions in the embodiments of this application more clearly, in the embodiments of this application, words such as "first" and "second" are used to distinguish between same items whose functions and roles are basically the same or similar items. A person skilled in the art may understand that the words such as "first" and "second" do not constitute a limitation to a quantity and an execution sequence, and the words such as "first" and "second" are not necessarily different.

[0063] A network architecture and a service scenario described in the embodiments of this application are intended to describe the technical solutions in the embodiments of this application more clearly, and do not constitute a limitation to the technical solutions provided in the embodiments of this application. A person of ordinary skill in the art may learn that, with evolution of the network architecture and appearance of a new service scenario, the technical solutions provided in the embodiments of this application are also applicable to a similar technical problem.

[0064] FIG. 1 is a schematic architectural diagram of a data transmission system 10 according to an embodiment of this application. The data transmission system 10 includes a user plane function entity 101, a first access device 102, and a second access device 103.

[0065] A first terminal communicates with the user plane function entity 101 through the first access device 102, and a second terminal communicates with the user plane function entity 101 through the second access device 103.

[0066] The user plane function entity 101 is configured to receive a data packet from the first terminal through an uplink path corresponding to the first terminal, where the data packet carries addressing information of the second terminal.

[0067] The user plane function entity 101 is further configured to determine, based on information about the uplink path corresponding to the first terminal and the addressing information of the second terminal, a downlink path corresponding to the second terminal.

[0068] The user plane function entity 101 is further configured to send the data packet to the second terminal through the downlink path corresponding to the second terminal.

[0069] Optionally, in this embodiment of this application, the first access device 102 and the second access device 103 may be a same access device, or may be different access devices. This is not specifically limited in this embodiment of this application.

[0070] Optionally, in this embodiment of this application, the user plane function entity may directly communicate with the first access device 102 or the second access device 103, or may communicate with the first access device 102 or the second access device 103 through forwarding by another device. This is not specifically limited in this embodiment of this application.

[0071] According to the data transmission system provided in this embodiment of this application, after receiving the data packet from the first terminal through the uplink path corresponding to the first terminal, the user plane function entity can determine, based on the information about the uplink path corresponding to the first terminal and the addressing information of the second terminal, the downlink path corresponding to the second terminal, and can further send the data packet to the second terminal through the downlink path corresponding to the second terminal. Therefore, when two terminals correspond to a same user plane function entity, the two terminals can locally interact with each other.

[0072] Optionally, the data transmission system 10 may be applied to a 5th generation (5rd generation, 5G) network and future other networks. This is not specifically limited in this embodiment of this application.

[0073] If the data transmission system 10 is applied to a 5G network, as shown in FIG. 2, a network element or entity corresponding to the user plane function entity 101 may be a UPF entity; a network element or entity corresponding to the first access device 102 may be a first access network (access network, AN) device; and a network element or entity corresponding to the second access device 103 may be a second AN device. The first terminal accesses the network through the first AN device, and the second terminal accesses the network through the second AN device. The first AN device and the second AN device each communicate with the UPF entity through an N3 interface (N3 for short).

[0074] In addition, as shown in FIG. 2, the 5G network may further include an access and mobility management function (Access and Mobility Management Function, AMF) entity, a session management function (session management function, SMF) entity, a unified data management (unified data management, UDM) entity, an authentication server function (authentication server function, AUSF) entity, a policy control function (policy control function, PCF) entity, and the like. This is not specifically limited in this embodiment of this application.

[0075] The first terminal and the second terminal each communicate with the AMF entity through an N1 interface (N1 for short); the first AN device and the second AN device each communicate with the AMF entity through an N2 interface (N2 for short); the AMF entity communicates with the AUSF entity through an N12 interface (N12 for short); the AMF entity communicates with the UDM entity through an N8 interface (N8 for short); the AMF entity communicates with the SMF entity through an N11 interface (N11 for short); the AMF entity communicates with the PCF entity through an N15 interface (N15 for short); the AUSF entity communicates with the UDM entity through an N13 interface (N13 for short); and the SMF entity communicates with the UPF entity through an N4 interface (N4 for short).

[0076] Optionally, if the first AN device and the second AN device are different AN devices, the first AN device and the second AN device may be connected to different AMF entities. This is not specifically limited in this embodiment of this application.

[0077] It should be noted that, names of interfaces between the network elements in FIG. 2 are merely used as an example. During specific implementation, names of the interfaces may be other names. This is not specifically limited in this embodiment of this application.

[0078] It should be noted that, the first AN device, the second AN device, the AMF entity, the SMF entity, the AUSF entity, the UDM entity, the UPF entity, the PCF entity, and the like in FIG. 2 are only names, and the names do not constitute a limitation to the devices. In the 5G network and future other networks, network elements or entities corresponding to the first AN device, the second AN device, the AMF entity, the SMF entity, the AUSF entity, the UDM entity, the UPF entity, and the PCF entity may alternatively be other names. This is not specifically limited in this embodiment of this application. For example, the UDM entity may be alternatively replaced with a home subscriber server (home subscriber server, HSS), a user subscription database (user subscription database, USD), a database entity, or the like. This is described herein for once, and details are not described below again.

[0079] FIG. 9 is a schematic architectural diagram of a data transmission system 90 according to an embodiment of this application. The data transmission system 90 includes a session management network element 901 and a user plane network element 902.

[0080] The session management network element 901 is configured to obtain an identifier of an MLAN associated with a session of a terminal, and determine an uplink data forwarding rule based on the identifier of the MLAN, where the uplink data forwarding rule includes a label of the MLAN and information about an uplink path corresponding to the session, and the label of the MLAN is used to identify data in the MLAN or used to identify an MLAN associated with the session.

[0081] The session management network element 901 is further configured to send the uplink data forwarding rule to the user plane network element 902, where the uplink data forwarding rule is used to instruct the user plane network element 902 to forward, by using routing information corresponding to the label of the MLAN, uplink data received on the uplink path.

[0082] The user plane network element 902 is configured to receive the uplink data forwarding rule from the session management network element 901, and forward, based on the uplink data forwarding rule by using the routing information corresponding to label of the MLAN, the uplink data received on the uplink path.

[0083] Optionally, in this embodiment of this application, the session management network element 901 and the user plane network element 902 may directly communicate with each other, or may communicate with each other through forwarding by another device. This is not specifically limited in this embodiment of this application.

[0084] According to the data transmission system provided in this embodiment of this application, the session management network element can determine the uplink data forwarding rule based on the identifier of the MLAN, and send the uplink data forwarding rule to the user plane network element, and the uplink data forwarding rule is used to instruct the user plane network element to forward, by using the routing information corresponding to the label of the MLAN, the uplink data received on the uplink path. Therefore, based on this solution, when two terminals correspond to a same user plane function network element, the two terminals can locally interact with each other.

[0085] Optionally, the data transmission system 20 may be applied to a 5G network and future other networks. This is not specifically limited in this embodiment of this application.

[0086] If the data transmission system 20 is applied to the 5G network, as shown in FIG. 2, a network element or entity corresponding to the session management network element 901 may be an SMF network element in the 5G network; and a network element or entity corresponding to the user plane network element 902 may be a UPF network element in the 5G network. For remaining related description of the 5G network, refer to the embodiment shown in FIG. 2. Details are not described herein again.

[0087] Optionally, the terminal (terminal) in this embodiment of this application may include various handheld devices, vehicle-mounted devices, wearable devices, and computing devices that have a wireless communications function, or another processing device connected to a wireless modem; and the terminal may further include a subscriber unit (subscriber unit), a cellular phone (cellular phone), a smart phone (smart phone), a wireless data card, a personal digital assistant (personal digital assistant, PDA) computer, a tablet computer, a wireless modem (modem), a handheld device (handheld), a laptop computer (laptop computer), a cordless phone (cordless phone) or a wireless local loop (wireless local loop, WLL) board, a machine type communication (machine type communication, MTC) terminal, user equipment (user equipment, UE), a mobile station (mobile station, MS), a terminal device (terminal device), or the like. For convenience of description, in this application, the devices mentioned above are collectively referred to as "terminal".

[0088] Optionally, an access device in this embodiment of this application refers to a device that accesses a core network, and may be, for example, a base station, a broadband network gateway (broadband network gateway, BNG), an aggregation switch, a non-3rd generation partnership project (3rd generation partnership project, 3GPP) access device, or the like. The base station may include a macro base station, a micro base station (also referred to as a small cell), a relay station, an access point, and the like in various forms.

[0089] Optionally, an AMF entity in this embodiment of this application may be further responsible for functions such as registration management, mobility management, and lawful interception. This is not specifically limited in this embodiment of this application.

[0090] Optionally, an SMF entity in this embodiment of this application is configured to perform session management, including session establishment, session modification, session release, allocation and management of an internet protocol (internet protocol, IP) address of a terminal, selection and control of a UPF entity, and session related control functions such as lawful interception.

[0091] Optionally, the UPF entity in this embodiment of this application has a function of the user plane function entity in FIG. 1, and may further implement user plane functions of a serving gateway (serving gateway, SGW) and a packet data network gateway (packet data network gateway, PGW). In addition, the UPF entity may alternatively be a software defined network (software defined network, SDN) switch (Switch). This is not specifically limited in this embodiment of this application.

[0092] Optionally, an AUSF entity in this embodiment of this application is configured to authenticate a terminal based on subscription data of the terminal.

[0093] Optionally, a UDM entity in this embodiment of this application is configured to store user subscription data. In addition, the UDM entity may further have functions such as authentication, subscriber identifier processing, and subscription management. This is not specifically limited in this embodiment of this application.

[0094] Optionally, a PCF entity in this embodiment of this application provides a policy rule, and supports policy related functions such as managing behavior of a network by using a unified policy architecture.

[0095] Optionally, the user plane function entity in FIG. 1 or the session management network element in the embodiment shown in FIG. 9 may be implemented by an entity device, or may be jointly implemented by a plurality of entity devices, or may be implemented by a logical function module in an entity device. This is not specifically limited in this embodiment of this application.

[0096] For example, the user plane function entity in FIG. 1 or the session management network element in the embodiment shown in FIG. 9 may be implemented by a communications device in FIG. 3. FIG. 3 is a schematic diagram of a hardware structure of a communications device according to an embodiment of this application. The communications device 300 includes at least one processor 301, a communications bus 302, a memory 303, and at least one communications interface 304.

[0097] The processor 301 may be a general-purpose central processing unit (central processing unit, CPU), a microprocessor, an application-specific integrated circuit (Application-Specific Integrated Circuit, ASIC), or one or more integrated circuits configured to control program execution of solutions of this application.

[0098] The communications bus 302 may include a channel, to transfer information between the foregoing components.

[0099] The communications interface 304 uses any apparatus such as a transceiver to communicate with another device or communications network, for example, Ethernet, a radio access network (radio access network, RAN), or a wireless local area network (Wireless Local Area Networks, WLAN).

[0100] The memory 303 may be a read-only memory (read-only memory, ROM), another type of static storage device capable of storing static information and an instruction, a random access memory (random access memory, RAM), or another type of dynamic storage device capable of storing information and an instruction; or may be an electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), a compact disc read-only memory (compact disc read-only memory, CD-ROM) or another optical compact disc storage, an optical disc storage (including a compact optical disc, a laser disc, an optical disc, a digital versatile disc, a Blu-ray disc, or the like), or a magnetic disk storage medium or another magnetic storage device, or any other medium that can be configured to carry or store expected program code in a form of an instruction or a data structure and that can be accessed by a computer. However, this does not constitute a limitation herein. The memory may exist independently, and is connected to the processor through the communications bus 302. Alternatively, the memory may be integrated with the processor.

[0101] The memory 303 is configured to store a computer execution instruction used to execute the solutions of this application, and the execution is controlled by the processor 301. The processor 301 is configured to execute the computer execution instruction stored in the memory 303, to implement the data transmission method provided in the following embodiments of this application.

[0102] During specific implementation, in an embodiment, the processor 301 may include one or more CPUs, for example, a CPU 0 and a CPU 1 in FIG. 3.

[0103] During specific implementation, in an embodiment, the communications device 300 may include a plurality of processors, for example, the processor 301 and a processor 308 in FIG. 3. Each of these processors may be a single-CPU (single-CPU) processor, or may be a multi-CPU (multi-CPU) processor. The processor herein may be one or more devices, circuits, and/or processing cores that are used to process data (for example, a computer program instruction).

[0104] During specific implementation, in an embodiment, the communications device 300 may further include an output device 305 and an input device 306. The output device 305 communicates with the processor 301, and may display information in a plurality of manners. For example, the output device 305 may be a liquid crystal display (liquid crystal display, LCD), a light emitting diode (light emitting diode, LED) display device, a cathode ray tube (cathode ray tube, CRT) display device, a projector (projector), or the like. The input device 306 communicates with the processor 301, and may receive an input of a user in a plurality of manners. For example, the input device 306 may be a mouse, a keyboard, a touchscreen device, a sensor device, or the like.

[0105] The communications device 300 may be a general-purpose device, or a special-purpose device. During specific implementation, the communications device 300 may be a desktop computer, a portable computer, a network server, a personal digital assistant (personal digital assistant, PDA), a mobile phone, a tablet computer, a wireless terminal device, a built-in device, or a device with a structure similar to that in FIG. 3. This embodiment of this application sets no limitation to a type of the communications device 300.

[0106] A data transmission method provided in the embodiments of this application is described below in detail with reference to FIG. 1 to FIG. 3, or FIG. 9.

[0107] Assuming that the data transmission system shown in FIG. 1 is applied to the 5G network shown in FIG. 2, a data transmission method provided in an embodiment of this application may be shown in FIG. 4A, FIG. 4B, and FIG. 4C, and includes the following steps.

[0108] S401a. A first terminal sends an MLAN session establishment request to an AMF entity, so that the AMF entity receives the MLAN session establishment request from the first terminal, where the MLAM session establishment request carries an identifier of an MLAN to which the first terminal subscribes.

[0109] A configuration process of the identifier of the MLAN to which the first terminal subscribes is described in the following embodiments. Details are not described herein.

[0110] Optionally, in this embodiment of this application, if the identifier of the MLAN to which the first terminal subscribes corresponds to a specific service scope, information about a specific service area corresponding to the identifier of the MLAN is further configured on the first terminal. In this way, the first terminal can send, based on the information about the specific service area corresponding to the identifier of the MLAN, the MLAN session establishment request to the AMF entity within the specific service area corresponding to the identifier of the MLAN. Certainly, if the first terminal sends the MLAN session establishment request to the AMF entity beyond the specific service area corresponding to the identifier of the MLAN, the AMF entity or an SMF entity may reject, after it is determined that a current location of the first terminal is not in the specific service area corresponding to the identifier of the MLAN, the MLAN session establishment request sent by the first terminal. This is not specifically limited in this embodiment of this application. In this embodiment of this application, only an example in which the first terminal initiates a normal MLAN session establishment procedure is used for description. In other words, when the identifier of the MLAN to which the first terminal subscribes is available within a global range, the first terminal sends the MLAN session establishment request to the AMF entity; alternatively, when the identifier of the MLAN to which the first terminal subscribes corresponds to a specific service scope, the first terminal sends the MLAN session establishment request within the specific service area corresponding to the identifier of the MLAN to which the first terminal subscribes. This is described herein for once, and details are not described below again.

[0111] S402a. The AMF entity selects an SMF entity.

[0112] For a specific manner in which the AMF entity selects the SMF entity, refer to an existing solution. Details are not described herein.

[0113] S403a. The AMF entity sends the MLAN session establishment request to the SMF entity, so that the SMF entity receives the MLAN session establishment request from the AMF entity.

[0114] S404a. The SMF entity selects a UPF entity.

[0115] For a specific manner in which the SMF entity selects the UPF entity, refer to an existing solution. Details are not described herein.

[0116] Optionally, in this embodiment of this application, the SMF entity may alternatively obtain, from a UDM entity, the identifier of the MLAN to which the first terminal subscribes, and determine whether an identifier of an MLAN carried in the MLAN session establishment request is the same as the identifier of the MLAN to which the first terminal subscribes. If the identifier of the MLAN carried in the MLAN session establishment request is the same as the identifier of the MLAN to which the first terminal subscribes, it may be determined that the identifier of the MLAN carried in the MLAN session establishment request is the identifier of the MLAN to which the first terminal subscribes, and then a subsequent procedure can be performed; or if the identifier of the MLAN carried in the MLAN session establishment request is different from the identifier of the MLAN to which the first terminal subscribes, it may be determined that the identifier of the MLAN carried in the MLAN session establishment request is not the identifier of the MLAN to which the first terminal subscribes, and the procedure ends. This is not specifically limited in this embodiment of this application.

[0117] S405a. The SMF entity sends an N4 session message to the UPF entity, so that the UPF entity receives the N4 session message from the SMF entity, where the N4 session message carries the identifier of the MLAN to which the first terminal subscribes and addressing information of the first terminal.

[0118] Optionally, in this embodiment of this application, the addressing information of the first terminal may be an IP address or media access control (media access control, MAC) address of the first terminal. This is not specifically limited in this embodiment of this application.

[0119] If the addressing information of the first terminal is an IP address, the SMF entity may obtain the IP address of the first terminal in the following manner: An IP address pool corresponding to an identifier of each MLAN is configured on the SMF entity, and a correspondence between an identifier of an MLAN and information about an IP address pool is established. When the first terminal establishes an MLAN session, a corresponding IP address pool can be determined based on an identifier of an MLAN to which the first terminal subscribes and the correspondence, and an IP address in the IP address pool is allocated for the first terminal.

[0120] If the addressing information of the first terminal is a MAC address, the SMF entity may obtain the MAC address of the first terminal in the following manner: The MAC address of the first terminal is carried in the MLAN session establishment request sent by the first terminal to the SMF entity through the AMF entity, so that the SMF entity can obtain the MAC address from the MLAN session establishment request.

[0121] Certainly, the SMF entity may alternatively obtain the IP address or MAC address of the first terminal in another manner. This is not specifically limited in this embodiment of this application.

[0122] S406a. The UPF entity establishes a correspondence between the identifier of the MLAN to which the first terminal subscribes and information about an uplink path corresponding to the first terminal.

[0123] Optionally, in this embodiment of this application, the information about the uplink path corresponding to the first terminal may be allocated by the SMF entity, or may be allocated by the UPF entity. This is not specifically limited in this embodiment of this application. If the information about the uplink path corresponding to the first terminal is allocated by the SMF entity, the N4 session message in step S405a may further carry the information about the uplink path corresponding to the first terminal. This is described herein for once, and details are not described below again.

[0124] For ease of description, in this embodiment of this application, the correspondence between the identifier of the MLAN to which the first terminal subscribes and the information about the uplink path corresponding to the first terminal is recorded as a correspondence 1. This is described herein for once, and details are not described below again. The correspondence 1 may be shown in Table 1.
Table 1
Identifier of an MLAN to which a first terminal subscribes Information about an uplink path corresponding to the first terminal


[0125] Optionally, the correspondence 1 may be alternatively sent to the UPF entity after being created by the SMF entity. This is not specifically limited in this embodiment of this application.

[0126] S407a. The UPF entity sends the information about the uplink path corresponding to the first terminal to a first AN device, so that the first AN device receives the information about the uplink path corresponding to the first terminal from the UPF entity.

[0127] S408a. The first AN device sends information about a downlink path corresponding to the first terminal to the UPF entity, so that the UPF entity receives the information about the downlink path corresponding to the first terminal from the first AN device.

[0128] Optionally, in this embodiment of this application, the information about the downlink path corresponding to the first terminal may be allocated by the SMF entity, or may be allocated by the first AN device. This is not specifically limited in this embodiment of this application.

[0129] S409a. The UPF entity establishes a correspondence between the identifier of the MLAN to which the first terminal subscribes, the information about the downlink path corresponding to the first terminal, and the addressing information of the first terminal.

[0130] For ease of description, in this embodiment of this application, the correspondence between the identifier of the MLAN to which the first terminal subscribes, the information about the downlink path corresponding to the first terminal, and the addressing information of the first terminal may be recorded as a correspondence 2. This is described herein for once, and details are not described below again. The correspondence 2 may be shown in Table 2.
Table 2
Identifier of an MLAN to which a first terminal subscribes Information about a downlink path corresponding to the first terminal Addressing information of the first terminal


[0131] Optionally, the correspondence 2 may be alternatively sent to the UPF entity after being created by the SMF entity. This is not specifically limited in this embodiment of this application.

[0132] Steps S401b to S409b are similar to steps S401a to S409a. A difference lies in that in steps S401b to S409b, the first terminal in steps S401a to S409a is replaced with a second terminal, and the first AN device is replaced with a second AN device. For details, refer to steps S401a to S409a. Details are not described herein again.

[0133] In step S406b, a correspondence that is between an identifier of an MLAN to which the second terminal subscribes and information about an uplink path corresponding to the second terminal and that is established by the UPF entity may be recorded as a correspondence 3. This is described herein for once, and details are not described below again. The correspondence 3 may be shown in Table 3.
Table 3
Identifier of an MLAN to which a second terminal subscribes Information about an uplink path corresponding to the second terminal


[0134] In step S409b, a correspondence that is between the identifier of the MLAN to which the second terminal subscribes, information about a downlink path corresponding to the second terminal, and addressing information of the second terminal and that is established by the UPF entity may be recorded as a correspondence 4. This is described herein for once, and details are not described below again. The correspondence 4 may be shown in Table 4.
Table 4
Identifier of an MLAN to which a second terminal subscribes Information about a downlink path corresponding to the second terminal Addressing information of the second terminal


[0135] Optionally, the correspondence 3 and the correspondence 4 may be alternatively sent to the UPF entity after being created by the SMF entity. This is not specifically limited in this embodiment of this application.

[0136] Optionally, to save storage resources, the foregoing Table 1 and Table 2 may be combined, and Table 3 and Table 4 may be combined. Combination results may be respectively shown in Table 5 and Table 6.
Table 5
Identifier of an MLAN to which a first terminal subscribes Information about an uplink path corresponding to the first terminal Information about a downlink path corresponding to the first terminal Addressing information of the first terminal
Table 6
Identifier of an MLAN to which a second terminal subscribes Information about an uplink path corresponding to the second terminal Information about a downlink path corresponding to the second terminal Addressing information of the second terminal


[0137] Optionally, if the identifier of the MLAN to which the first terminal subscribes is the same as the identifier of the MLAN to which the second terminal subscribes, to further save resources, the foregoing Table 5 and Table 6 may be combined, and a result is shown in Table 7.
Table 7
Identifier of an MLAN Information about an uplink path Information about a downlink path Addressing information
Identifier of an MLAN to which a first terminal/second terminal subscribes Information about an uplink path corresponding to the first terminal Information about a downlink path corresponding to the first terminal Addressing information of the first terminal
Information about an uplink path corresponding to the second terminal Information about a downlink path corresponding to the second terminal Addressing information of the second terminal


[0138] That is, when identities of MLANs to which a plurality of terminals subscribe are the same, the identities of the MLANs may be recorded as shared information. For example, an established correspondence between an identifier of an MLAN, information about an uplink path, information about a downlink path, and addressing information may be shown in Table 8.
Table 8
Identifier of an MLAN Information about an uplink path Information about a downlink path Addressing information
a Information about an uplink path corresponding to a first terminal Information about a downlink path corresponding to the first terminal Addressing information of the first terminal
Information about an uplink path corresponding to a second terminal Information about a downlink path corresponding to the second terminal Addressing information of the second terminal
Information about an uplink path corresponding to a third terminal Information about a downlink path corresponding to the third terminal Addressing information of the third terminal
Information about an uplink path corresponding to a fourth terminal Information about a downlink path corresponding to the fourth terminal Addressing information of the fourth terminal
Information about an uplink path corresponding to a fifth terminal Information about a downlink path corresponding to the fifth terminal Addressing information of the fifth terminal
Information about an uplink path corresponding to a sixth terminal Information about a downlink path corresponding to the sixth terminal Addressing information of the sixth terminal
... ... ...
Identifier of an MLAN Information about an uplink path Information about a downlink path Addressing information
b Information about an uplink path corresponding to a seventh terminal Information about a downlink path corresponding to the seventh terminal Addressing information of the seventh terminal
Information about an uplink path corresponding to an eighth terminal Information about a downlink path corresponding to the eighth terminal Addressing information of the eighth terminal
Information about an uplink path corresponding to a ninth terminal Information about a downlink path corresponding to the ninth terminal Addressing information of the ninth terminal
... ... ...
... ... ... ...


[0139] Certainly, the foregoing correspondences may be combined or simplified in another manner. This is not specifically limited in this embodiment of this application. In addition, the foregoing correspondences may be represented in a form of tables, and may be alternatively represented in another manner, for example, in a form of text or session context. This is not specifically limited in this embodiment of this application.

[0140] Optionally, using an example in which the identifier of the MLAN to which the first terminal subscribes is the same as the identifier of the MLAN to which the second terminal subscribes, and the first terminal sends a data packet 1 to the second terminal, the data transmission method provided in this embodiment of this application further includes the following steps S410 to S413.

[0141] S410. The first terminal sends the data packet 1 to the UPF entity through the uplink path corresponding to the first terminal, so that the UPF entity receives the data packet 1 from the first terminal through the uplink path corresponding to the first terminal. The data packet 1 carries addressing information of the second terminal, and the addressing information of the second terminal is used as destination addressing information.

[0142] Optionally, the data packet 1 may further carry the addressing information of the first terminal as source addressing information. This is not specifically limited in this embodiment of this application.

[0143] S411. The UPF entity determines, based on the information about the uplink path corresponding to the first terminal, the identifier of the MLAN to which the first terminal subscribes.

[0144] Specifically, the UPF entity may determine, based on the information about the uplink path corresponding to the first terminal and the correspondence 1, the identifier of the MLAN to which the first terminal subscribes.

[0145] For example, the UPF entity may query Table 1, Table 5, Table 7, or Table 8 based on the information about the uplink path corresponding to the first terminal, to obtain the identifier of the MLAN to which the first terminal subscribes.

[0146] S412. The UPF entity determines, based on the identifier of the MLAN to which the first terminal subscribes and the addressing information of the second terminal, a downlink path corresponding to the second terminal.

[0147] Specifically, the UPF entity may determine, based on the identifier of the MLAN to which the first terminal subscribes, the addressing information of the second terminal, and the correspondence 4, the downlink path corresponding to the second terminal.

[0148] For example, the UPF entity may query Table 4, Table 6, Table 7, or Table 8 based on the identifier of the MLAN to which the first terminal subscribes and the addressing information of the second terminal, to obtain information about the downlink path corresponding to the second terminal, and further determine the downlink path corresponding to the second terminal.

[0149] Optionally, if the UPF entity cannot determine the information about the downlink path corresponding to the second terminal, for example, the query fails, the data packet 1 is discarded. This is not specifically limited in this embodiment of this application.

[0150] S413. The UPF entity sends the data packet 1 to the second terminal through the downlink path corresponding to the second terminal.

[0151] Optionally, in this embodiment of this application, the destination addressing information carried in the data packet 1 may alternatively be information about a broadcast address. After detecting that the destination addressing information is information about a broadcast address, the UPF entity or the SMF entity may replace the broadcast address with addressing information of all terminals other than the first terminal in the MLAN to which the first terminal subscribes, determine, in the foregoing manner based on the identifier of the MLAN and addressing information of the corresponding terminal, a downlink path corresponding to the corresponding terminal, and further send the data packet 1 to the corresponding terminal through the downlink path corresponding to the corresponding terminal. This is not specifically limited in this embodiment of this application.

[0152] Alternatively, optionally, using an example in which the identifier of the MLAN to which the first terminal subscribes is the same as the identifier of the MLAN to which the second terminal subscribes, and the second terminal sends a data packet 2 to the first terminal, the data transmission method provided in this embodiment of this application further includes the following steps S414 to S417.

[0153] S414. The second terminal sends the data packet 2 to the UPF entity through the uplink path corresponding to the second terminal, so that the UPF entity receives the data packet 2 from the second terminal through the uplink path corresponding to the second terminal. The data packet 2 carries the addressing information of the first terminal, and the addressing information of the first terminal is used as destination addressing information.

[0154] Optionally, the data packet 2 may further carry the addressing information of the second terminal as source addressing information. This is not specifically limited in this embodiment of this application.

[0155] S415. The UPF entity determines, based on information about the uplink path corresponding to the second terminal, the identifier of the MLAN to which the second terminal subscribes.

[0156] Specifically, the UPF entity may determine, based on the information about the uplink path corresponding to the second terminal and the correspondence 3, the identifier of the MLAN to which the second terminal subscribes.

[0157] For example, the UPF entity may query Table 3, Table 6, Table 7, or Table 8 based on the information about the uplink path corresponding to the second terminal, to obtain the identifier of the MLAN to which the second terminal subscribes.

[0158] S416. The UPF entity determines, based on the identifier of the MLAN to which the second terminal subscribes and the addressing information of the first terminal, the downlink path corresponding to the first terminal.

[0159] Specifically, the UPF entity may determine, based on the identifier of the MLAN to which the second terminal subscribes, the addressing information of the first terminal, and the correspondence 2, the downlink path corresponding to the first terminal.

[0160] For example, the UPF entity may query Table 2, Table 5, Table 7, or Table 8 based on the identifier of the MLAN to which the second terminal subscribes and the addressing information of the first terminal, to obtain the information about the downlink path corresponding to the first terminal, and further determine the downlink path corresponding to the first terminal.

[0161] Optionally, if the UPF entity cannot determine the information about the downlink path corresponding to the first terminal, for example, the query fails, the data packet 2 is discarded. This is not specifically limited in this embodiment of this application.

[0162] S417. The UPF entity sends the data packet 2 to the first terminal through the downlink path corresponding to the first terminal.

[0163] Optionally, in this embodiment of this application, the destination addressing information carried in the data packet 2 may alternatively be information about a broadcast address. After detecting that the destination addressing information is information about a broadcast address, the UPF entity or the SMF entity may replace the broadcast address with addressing information of all terminals other than the second terminal in the MLAN to which the second terminal subscribes, and determine, in the foregoing manner based on the identifier of the MLAN and addressing information of the corresponding terminal, a downlink path corresponding to the corresponding terminal, and further send the data packet 2 to the corresponding terminal through the downlink path corresponding to the corresponding terminal. This is not specifically limited in this embodiment of this application.

[0164] According to the data transmission method provided in this embodiment of this application, after receiving the data packet from the first terminal through the uplink path corresponding to the first terminal, the UPF entity can determine, based on the information about the uplink path corresponding to the first terminal and the addressing information of the second terminal, the downlink path corresponding to the second terminal, and can further send the data packet to the second terminal through the downlink path corresponding to the second terminal; alternatively, after receiving the data packet from the second terminal through the uplink path corresponding to the second terminal, the UPF entity can determine, based on the information about the uplink path corresponding to the second terminal and the addressing information of the first terminal, the downlink path corresponding to the first terminal, and can further send the data packet to the first terminal through the downlink path corresponding to the first terminal. Therefore, when two terminals correspond to a same UPF entity, the two terminals can locally interact with each other. For example, when two terminals that access a same MLAN correspond to a same UPF entity, the two terminals can locally interact with each other in the MLAN.

[0165] An action of the UPF entity in the foregoing steps S401a to S417 may be performed by the processor 301 in the communications device 300 shown in FIG. 3 invoking application program code stored in the memory 303. No limitation is imposed on thereto in this embodiment of this application.

[0166] Optionally, assuming that the data transmission system shown in FIG. 1 is applied to the 5G network shown in FIG. 2, a data transmission method provided in an embodiment of this application may be shown in FIG. 5A, FIG. 5B, FIG. 5C, and FIG. 5D, and includes the following steps.

[0167] Steps S501a to S504a are similar to steps S401a to S404a. For details, refer to the embodiment shown in FIG. 4A, FIG. 4B, and FIG. 4C. Details are not described herein again.

[0168] S505a. The SMF entity sends an N4 session message to the UPF entity, so that the UPF entity receives the N4 session message from the SMF entity, where the N4 session message carries the identifier of the MLAN to which the first terminal subscribes.

[0169] Steps S506a to S508a are similar to steps S401a to S408a. For details, refer to the embodiment shown in FIG. 4A, FIG. 4B, and FIG. 4C. Details are not described herein again.

[0170] S509a. The UPF entity establishes a correspondence between the identifier of the MLAN to which the first terminal subscribes, the information about the uplink path corresponding to the first terminal, and the information about the downlink path corresponding to the first terminal.

[0171] For ease of description, in this embodiment of this application, the correspondence between the identifier of the MLAN to which the first terminal subscribes, the information about the uplink path corresponding to the first terminal, and the information about the downlink path corresponding to the first terminal may be recorded as a correspondence 5. This is described herein for once, and details are not described below again. The correspondence 5 may be shown in Table 9.
Table 9
Identifier of an MLAN to which a first terminal subscribes Information about a downlink path corresponding to the first terminal Information about an uplink path corresponding to the first terminal


[0172] Optionally, the correspondence 5 may be alternatively sent to the UPF entity after being created by the SMF entity. This is not specifically limited in this embodiment of this application.

[0173] S510a. The first terminal sends a dynamic host configuration protocol (dynamic host configuration protocol, DHCP) request to the UPF entity through the uplink path corresponding to the first terminal, so that the UPF entity receives the DHCP request from the first terminal, where the DHCP request carries a MAC address of the first terminal.

[0174] Optionally, if a DHCP server is integrated into the UPF entity, after receiving the DHCP request from the first terminal, the UPF entity may parse out the MAC address of the first terminal in the DHCP request, and allocate an IP address for the first terminal, and subsequent steps S511a and S512a are performed.

[0175] S511a. The UPF entity sends a DHCP response to the first terminal, so that the first terminal receives the DHCP response from the UPF entity, where the DHCP response carries the IP address of the first terminal.

[0176] S512a. The UPF entity establishes, based on the correspondence 5 and addressing information of the first terminal, a correspondence between the identifier of the MLAN to which the first terminal subscribes, the information about the downlink path corresponding to the first terminal, and the addressing information of the first terminal.

[0177] Optionally, in this embodiment of this application, the addressing information of the first terminal may be the IP address or the MAC address of the first terminal. This is not specifically limited in this embodiment of this application.

[0178] Optionally, in this embodiment of this application, if a DHCP server is not integrated into the UPF entity, after receiving the DHCP request from the first terminal, the UPF entity may send the DHCP request to a device into which the DHCP server is integrated, and the device into which the DHCP server is integrated parses out the MAC address of the first terminal in the DHCP request, allocates an IP address for the first terminal, and then sends the addressing information of the first terminal to the UPF entity, and the UPF entity establishes, based on the correspondence 5 and the addressing information of the first terminal, the correspondence between the identifier of the MLAN to which the first terminal subscribes, the information about the downlink path corresponding to the first terminal, and the addressing information of the first terminal. This is not specifically limited in this embodiment of this application.

[0179] For example, assuming that a DHCP server is integrated into the SMF entity, after receiving the DHCP request from the first terminal, the UPF entity may send the DHCP request to the SMF entity, the SMF entity parses out the MAC address of the first terminal in the DHCP request, allocates an IP address for the first terminal, and sends the addressing information of the first terminal to the UPF entity, and the UPF entity establishes, based on the correspondence 5 and the addressing information of the first terminal, the correspondence between the identifier of the MLAN to which the first terminal subscribes, the information about the downlink path corresponding to the first terminal, and the addressing information of the first terminal. Certainly, the SMF entity may alternatively send a DHCP response to the first terminal through the UPF entity, where the DHCP response carries the IP address of the first terminal. This is not specifically limited in this embodiment of this application.

[0180] For related description of the correspondence between the identifier of the MLAN to which the first terminal subscribes, the information about the downlink path corresponding to the first terminal, and the addressing information of the first terminal, refer to the description of the correspondence 2 in the embodiment shown in FIG. 4A, FIG. 4B, and FIG. 4C. Details are not described herein again.

[0181] Steps S501b to S512b are similar to steps S501a to S512a. A difference lies in that in steps S501b to S512b, the first terminal in steps S501a to S512a is replaced with a second terminal, and the first AN device is replaced with a second AN device. For details, refer to steps S501a to S512a. Details are not described herein again.

[0182] In step S509b, a correspondence that is between an identifier of an MLAN to which the second terminal subscribes, information about an uplink path corresponding to the second terminal, and information about a downlink path corresponding to the second terminal and that is established by the UPF entity may be recorded as a correspondence 6, and is shown in Table 10.
Table 10
Identifier of an MLAN to which a second terminal subscribes Information about a downlink path corresponding to the second terminal Information about an uplink path corresponding to the second terminal


[0183] Steps S513 to S520 are similar to steps S411 to S418. For details, refer to the embodiment shown in FIG. 4A, FIG. 4B, and FIG. 4C. Details are not described herein again.

[0184] A difference between this embodiment and the embodiment shown in FIG. 4A, FIG. 4B, and FIG. 4C lies in that in the embodiment shown in FIG. 4A, FIG. 4B, and FIG. 4C, the addressing information of the first terminal in the correspondence 2 is obtained during a process in which the first terminal establishes an MLAN session. The addressing information of the second terminal in the correspondence 4 is obtained during a process in which an MLAN session is established for the second terminal. However, in the embodiment shown in FIG. 5A, FIG. 5B, FIG. 5C, and FIG. 5D, the addressing information of the first terminal in the correspondence 2 is obtained during a DHCP procedure initiated by the first terminal, and the addressing information of the second terminal in the correspondence 4 is obtained during a DHCP procedure initiated by the second terminal.

[0185] According to the data transmission method provided in this embodiment of this application, after receiving the data packet from the first terminal through the uplink path corresponding to the first terminal, the UPF entity can determine, based on the information about the uplink path corresponding to the first terminal and the addressing information of the second terminal, the downlink path corresponding to the second terminal, and can further send the data packet to the second terminal through the downlink path corresponding to the second terminal; alternatively, after receiving the data packet from the second terminal through the uplink path corresponding to the second terminal, the UPF entity can determine, based on the information about the uplink path corresponding to the second terminal and the addressing information of the first terminal, the downlink path corresponding to the first terminal, and can further send the data packet to the first terminal through the downlink path corresponding to the first terminal. Therefore, when two terminals correspond to a same UPF entity, the two terminals can locally interact with each other. For example, when two terminals that access a same MLAN correspond to a same UPF entity, the two terminals can locally interact with each other in the MLAN.

[0186] An action of the UPF entity in the foregoing steps S501a to S520 may be performed by the processor 301 in the communications device 300 shown in FIG. 3 invoking application program code stored in the memory 303. No limitation is imposed thereto in this embodiment of this application.

[0187] The following is described by using an example in which an identifier of an MLAN to which a first terminal subscribes is configured on the first terminal. FIG. 6 is a schematic flowchart of a configuration process of an identifier of an MLAN, and the procedure includes the following steps.

[0188] S601. When the first terminal subscribes an MLAN service, a UDM entity stores subscription information of the MLAN corresponding to the first terminal, where the subscription information of the MLAN corresponding to the first terminal includes the identifier of the MLAN to which the first terminal subscribes.

[0189] Optionally, if the identifier of the MLAN to which the first terminal subscribes corresponds to a specific service scope, the subscription information of the MLAN of the first terminal may further include information about a specific service area corresponding to the identifier of the MLAN to which the first terminal subscribes.

[0190] Certainly, the information about the specific service area corresponding to the identifier of the MLAN to which the first terminal subscribes may be alternatively configured on another network device. For example, the information about the specific service area corresponding to the identifier of the MLAN to which the first terminal subscribes is configured on one or more devices of a PCF entity, an AMF entity, and an SMF entity, so that when the first terminal initiates an MLAN session establishment procedure, these network devices can determine, based on a current location of the first terminal and the information about the specific service area corresponding to the identifier of the MLAN to which the first terminal subscribes, whether the first terminal is in the specific service area corresponding to the identifier of the MLAN to which the first terminal subscribes. This is not specifically limited in this embodiment of this application.

[0191] S602. The first terminal sends a registration or re-registration request to an AMF entity, so that the AMF entity receives the registration or re-registration request from the first terminal.

[0192] S603. The AMF entity obtains, from the UDM entity, the identifier of the MLAN to which the first terminal subscribes.

[0193] Optionally, if the identifier of the MLAN to which the first terminal subscribes corresponds the specific service scope, and the information about the specific service area corresponding to the identifier of the MLAN to which the first terminal subscribes is not configured on the AMF entity, the AMF entity further obtains, from a device on which the information about the specific service area corresponding to the identifier of the MLAN to which the first terminal subscribes is configured, for example, the UDM entity, the PCF entity, or the SMF entity, the information about the specific service area corresponding to the identifier of the MLAN to which the first terminal subscribes. This is not specifically limited in this embodiment of this application.

[0194] S604. The AMF entity sends a registration response to the first terminal, so that the first terminal receives the registration response from the AMF entity, where the registration response carries the identifier of the MLAN to which the first terminal subscribes.

[0195] Optionally, in this embodiment of this application, after the AMF entity obtains, from the UDM entity, the identifier of the MLAN to which the first terminal subscribes, if the identifier of the MLAN to which the first terminal subscribes corresponds to the specific service scope, the AMF entity needs to determine, based on information about a current registration area of the first terminal and the information about the specific service area corresponding to the identifier of the MLAN to which the first terminal subscribes, whether the current registration area of the first terminal overlaps the specific service area corresponding to the identifier of the MLAN to which the first terminal subscribes; if the current registration area of the first terminal overlaps the specific service area corresponding to the identifier of the MLAN to which the first terminal subscribes, the AMF entity sends a registration response to the first terminal, where the registration response carries the identifier of the MLAN to which the first terminal subscribes. Optionally, in this case, the registration response may further include the information about the specific service area corresponding to the identifier of the MLAN to which the first terminal subscribes, so that the first terminal can initiate, based on the information about the specific service area corresponding to the identifier of the MLAN to which the first terminal subscribes, an MLAN session establishment procedure in the specific service area corresponding to the identifier of the MLAN to which the first terminal subscribes. This is not specifically limited in this embodiment of this application.

[0196] In this case, the first terminal can obtain the identifier of the MLAN to which the first terminal subscribes, and can subsequently initiate an MLAN session establishment procedure based on the identifier of the MLAN to which the first terminal subscribes. For details, refer to the embodiment shown in FIG. 4A, FIG. 4B, and FIG. 4C or FIG. 5A, FIG. 5B, FIG. 5C, and FIG. 5D. Details are not described herein again.

[0197] In addition, for a procedure in which an identifier of an MLAN to which a second terminal subscribes is configured on the second terminal, refer to the foregoing procedure in which the identifier of the MLAN to which the first terminal subscribes is configured on the first terminal. Details are not described herein again.

[0198] Optionally, assuming that the data transmission system shown in FIG. 9 is applied to the 5G network shown in FIG. 2, a data transmission method provided in an embodiment of this application may be shown in FIG. 10A and FIG. 10B, and includes the following steps.

[0199] S1001. A terminal sends a non-access stratum (non-access stratum, NAS) message to an AMF network element through an access device, so that the AMF network element receives the NAS message from the terminal.

[0200] The NAS message includes a session establishment request, the session establishment request is used to request to establish a session for the terminal, and the session may be, for example, a PDU session. This is described herein for once, and details are not described below again.

[0201] In a possible implementation, the NAS message may include an identifier of an MLAN associated with the session for the terminal. The "association" herein may be alternatively understood as "belonging" or "corresponding", for a purpose of sending data of the terminal into the MALN by using the session.

[0202] In another possible implementation, the session establishment request in the NAS message may include the identifier of the MLAN associated with the session for the terminal. This is not specifically limited in this embodiment of this application.

[0203] The identifier of the MLAN in this embodiment of this application is used to indicate a 5G MLAN associated with the session, or may be considered as identifying a subscriber group using an MLAN service. If the terminal subscribes to a specific MLAN, the terminal can use a service provided by the MLAN. This is described herein for once, and details are not described below again.

[0204] In this embodiment of this application, the identifier of the MLAN may be a data network name (data network name, DNN), a fully qualified domain name (fully qualified domain name, FQDN), a character string, a sequence number, an internal group identifier, an external group identifier, or the like. This is not specifically limited in this embodiment of this application.

[0205] In addition, the NAS message in this embodiment of this application may further include an identifier of the session for the terminal. For details, refer to an existing implementation. Details are not described herein.

[0206] S1002. An AMF network element sends an N11 message 1 to the SMF network element, so that the SMF network element receives the N11 message 1 from the AMF network element, where

[0207] The N11 message 1 includes an identifier of the terminal and the session establishment request. The identifier of the terminal is determined after the AMF network element receives the NAS message from the terminal, and is used to indicate a terminal that initiates the NAS message. For details, refer to an existing implementation. Details are not described herein.

[0208] In addition, when the session establishment request does not include an identifier of an MLAN, the N11 message 1 further includes the identifier of the MLAN in the NAS message. This is described herein for once, and details are not described below again.

[0209] In addition, if the NAS message in step S1001 further includes the identifier of the session for the terminal, the N11 message 1 may further include the identifier of the session for the terminal. For details, refer to an existing implementation. Details are not described herein.

[0210] Optionally, if the NAS message in step S1001 includes the identifier of the MLAN, after receiving the identifier of the MLAN, the AMF network element may verify whether the terminal subscribes to an MLAN or subscriber group corresponding to the identifier of the MLAN, and may select a corresponding SMF network element based on the identifier of the MLAN. This is not specifically limited in this embodiment of this application.

[0211] S1003. The SMF network element determines an uplink data forwarding rule based on the identifier of the MLAN, where the uplink data forwarding rule includes a label of the MLAN and information about an uplink path corresponding to the session.

[0212] The identifier of the MLAN may be obtained in the N11 message 1, or may be obtained in the session establishment request in the N11 message 1. This is not specifically limited in this embodiment of this application.

[0213] Optionally, the label of the MLAN in this embodiment of this application may be, for example, a network instance (network instance) identifier, a virtual local area network (virtual local area network, VLAN) identifier (VLAN identity, VID), an identifier of an MLAN, or the like. This is not specifically limited in this embodiment of this application. The label of the MLAN may be used to identify an instance of the MLAN, or may be used to recognize, encapsulate, or identify data in the MLAN. The label of the MLAN may exist in tunnel information, terminal data, configuration data, or the like, and is mainly used to isolate communication between MLANs.

[0214] Optionally, in this embodiment of this application, that the SMF network element determines the uplink data forwarding rule based on the identifier of the MLAN may include that the SMF network element obtains the label of the MLAN based on the identifier of the MLAN; allocates, for the terminal, the information about the uplink path corresponding to the session; and generates the uplink data forwarding rule based on the label of the MLAN and the information about the uplink path corresponding to the session.

[0215] Optionally, in this embodiment of this application, if the identifier of the MLAN is used to identify a subscriber group using an MLAN service, the label of the MLAN may be a label of an MLAN to which a terminal in the subscriber group subscribes. This is described herein for once, and details are not described below again.

[0216] Optionally, in this embodiment of this application, the information about the uplink path corresponding to the session may be, for example, a tunnel identifier of a UPF network element that is allocated for the session, where the tunnel identifier may be, for example, a TEID. For details, refer to the description of the beginning part of the description of embodiments. Details are not described herein again.

[0217] Optionally, in this embodiment of this application, the SMF network element may obtain the label of the MLAN based on the identifier of the MLAN in the following manner:

[0218] In a possible implementation, the SMF network element may obtain subscription data of the MLAN of the terminal from a UDM network element based on the identifier of the MLAN, where the subscription data includes the label of the MLAN. Optionally, the subscription data may further include addressing information of the terminal and a quality of service (quality of service, QoS) parameter related to the MLAN, for example, a session-aggregate maximum bit rate (aggregate maximum bit rate, AMBR), a 5G QoS indicator (5G QoS indicator, 5QI), or the like. This is not specifically limited in this embodiment of this application. Certainly, in this embodiment of this application, the addressing information of the terminal may be allocated by the SMF network element, or obtained from a third party, for example, a DHCP server, or an MLAN address management function entity. For details, refer to the foregoing method embodiment. This is not specifically limited in this embodiment of this application.

[0219] In another possible implementation, the SMF network element may obtain, based on the identifier of the MLAN, authentication data of the MLAN of the terminal from another network element, for example, a management entity of the MLAN or a data network-authentication-authorization-accounting (data network-authentication-authorization-accounting, DN-AAA) server, where the authentication data includes the label of the MLAN. This is not specifically limited in this embodiment of this application.

[0220] In another possible implementation, the SMF network element may allocate the label of the MLAN for the session based on the identifier of the MLAN; alternatively, the SMF network element pre-stores a correspondence between an identifier of an MLAN and a label of the MLAN, so that the SMF network element can determine the label of the MLAN based on the identifier of the MLAN and the correspondence. This is not specifically limited in this embodiment of this application.

[0221] In another possible implementation, the SMF network element may determine the identifier of the MLAN as the label of the MLAN. This is not specifically limited in this embodiment of this application.

[0222] Optionally, in this embodiment of this application, the SMF network element may alternatively obtain policy data of the terminal from a PCF network element based on the identifier of the MLAN, where the policy data may include a filter, an adjusted Qos parameter, or the like. Certainly, the filter may be alternatively generated by the SMF network element based on information such as an address of the terminal, a local policy, and the like. This is not specifically limited in this embodiment of this application.

[0223] Optionally, in this embodiment of this application, the SMF network element may alternatively select a UPF network element based on the identifier of the MLAN. This is not specifically limited in this embodiment of this application.

[0224] S1004. The SMF network element sends a session creating request to the UPF network element, so that the UPF network element receives the session creating request from the SMF network element.

[0225] The session creating request includes the uplink data forwarding rule, and the uplink data forwarding rule is used to instruct the UPF network element to forward, by using routing information corresponding to the label of the MLAN, uplink data received on the uplink path.

[0226] Optionally, in this embodiment of this application, the routing information corresponding to the label of the MLAN may specifically include a destination address and a next-hop path. This is not specifically limited in this embodiment of this application.

[0227] Optionally, in this embodiment of this application, the session creating request may further include an N4 session identifier obtained through mapping of the identifier of the session. For details, refer to an existing implementation. Details are not described herein.

[0228] S1005. The UPF network element forwards, based on the uplink data forwarding rule by using the routing information corresponding to the label of the MLAN, the uplink data received on the uplink path.

[0229] For example, if the information about the uplink path corresponding to the session is a TEID 1, and the label of the MLAN is a label 1, the UPF network element may learn of, based on the TEID 1, a specific session to which received data belongs, and a next-hop path of the data of the session is determined by using routing information related to the label 1. If assuming that a current terminal is a terminal 1, a target address of the data of the session is an address of a terminal 2, and a next-hop path in the routing information related to the label 1 is a path 1, the UPF network element may forward, by using the path 1, uplink data that is received on the uplink path corresponding to the TEID 1 and whose destination address is the address of the terminal 2. Alternatively, assuming that when a current terminal is a terminal 1, a target address of data of the session is an address of a terminal 3, and a next-hop path in the routing information related to the label 1 is a path 2, the UPF network element may forward, by using the path 2, uplink data that is received on the uplink path corresponding to the TEID 1 and whose destination address is the address of the terminal 3, and so on.

[0230] S1006. The SMF network element sends an N11 message 2 to the AMF network element, so that the AMF network element receives the N11 message 2 from the SMF network element.

[0231] S1007. The AMF network element sends an N2 message 1 to the access device, so that the access device receives the N2 message 1 from the AMF network element.

[0232] S1008. The access device establishes a radio resource control (radio resource control, RRC) connection to the terminal.

[0233] S1009. The access device sends an N2 message 2 to the AMF network element, so that the AMF network element receives the N2 message 2 from the access device.

[0234] S1010. The AMF network element sends an N11 message 3 to the SMF network element, so that the SMF network element receives the N11 message 3 from the AMF network element.

[0235] Optionally, steps S1006 to S1010 are performed, so that the Qos parameter can be configured on the terminal, and the information about the uplink path is configured on the access device, and information that is about a downlink path and that is allocated by the access device for the session may be obtained at the same time, where the information about the downlink path may include, for example, a tunnel identifier of the access device that is allocated for the session, the tunnel identifier may be, for example, a TEID. For details, refer to the description of the beginning part of the description of embodiments. Details are not described herein again. For an implementation related to the foregoing steps S1006 to S1010, refer to an existing implementation. Details are not described herein again.

[0236] Further, the data transmission method provided in this embodiment of this application may further include the following steps S1011a to S1013a, or the following steps SlOllb to S1013b.

[0237] Steps S1011a to S1013a may specifically include:
S1011a. The SMF network element obtains a downlink data forwarding rule 1, where the downlink data forwarding rule 1 includes the label of the MLAN and the addressing information of the terminal.

[0238] The label of the MLAN and the addressing information of the terminal may be obtained in the foregoing step S1003. Details are not described herein again.

[0239] S1012a. The SMF network element sends a session modification request 1 to the UPF network element, so that the UPF network element receives the session modification request 1 from the SMF network element.

[0240] The session modification request 1 includes the downlink data forwarding rule 1, the downlink data forwarding rule 1 is used to instruct the UPF network element to forward, by using the routing information corresponding to the label of the MLAN, downlink data to be sent to an address corresponding to the addressing information of the terminal.

[0241] Optionally, in this embodiment of this application, the session modification request 1 may further include an N4 session identifier obtained through mapping of the identifier of the session. For details, refer to an existing implementation. Details are not described herein again.

[0242] S1013a. The UPF network element forwards, based on the downlink data forwarding rule 1 by using the routing information corresponding to the label of the MLAN, the downlink data to be sent to the address corresponding to the addressing information of the terminal.

[0243] For example, if the addressing information of the terminal is an address 1, the label of the MLAN is a label 2, the UPF network element may learn of, based on the addressing information of the terminal, a specific session to which received data belongs, where a next-hop path of the data of the session is determined by using routing information related to the label 2. For example, assuming that a current terminal is a terminal 1, the addressing information is an address 1, and a next-hop path in the routing information related to the label 2 is a path 3, the UPF network element may forward, by using the path 3, downlink data to be sent to a destination address of the terminal 1, namely the address 1.

[0244] Steps S1011b to S1013b may specifically include:

[0245] S1011b. The SMF network element obtains a downlink data forwarding rule 2, where the downlink data forwarding rule 2 includes the label of the MLAN, the addressing information of the terminal, and information about a downlink path corresponding to the session.

[0246] The label of the MLAN and the addressing information of the terminal may be obtained in the foregoing step S1003. The information about the downlink path corresponding to the session may be sent to the SMF network element in steps S1009 and S1010. Details are not described herein again.

[0247] S1012b. The SMF network element sends a session modification request 2 to the UPF network element, so that the UPF network element receives the session modification request 2 from the SMF network element.

[0248] The session modification request 2 includes the downlink data forwarding rule 2, the downlink data forwarding rule 2 is used to instruct the UPF network element to update the routing information corresponding to the label of the MLAN, and forward, by using the downlink path in updated routing information corresponding to the label of the MLAN, downlink data to be sent to an address corresponding to the addressing information of the terminal.

[0249] Optionally, in this embodiment of this application, the session modification request 2 may further include an N4 session identifier obtained through mapping of the identifier of the session. For details, refer to an existing implementation. Details are not described herein again.

[0250] S1013b. The UPF network element updates, based on the downlink data forwarding rule 2, the routing information corresponding to the label of the MLAN, and forwards, by using the downlink path in the updated routing information corresponding to the label of the MLAN, the downlink data to be sent to the address corresponding to the addressing information of the terminal.

[0251] Specifically, in this embodiment of this application, the updated routing information corresponding to the label of the MLAN may specifically include that the information about the downlink path corresponding to the session is added to the routing information corresponding to the label of the MLAN, so that the UPF network element can forward, by using the downlink path in the updated routing information corresponding to the label of the MLAN, the downlink data to be sent to the address corresponding to the addressing information of the terminal. For a related example in which the UPF network element forwards, by using the downlink path in the updated routing information corresponding to the label of the MLAN, the downlink data to be sent to the address corresponding to the addressing information of the terminal, refer to step S1013a. Details are not described herein again.

[0252] According to the data transmission method provided in this embodiment of this application, when two terminals correspond to a same user plane function network element, the two terminals can locally interact with each other. For related analysis on technical effects, refer to the data transmission system part shown in FIG. 9. Details are not described herein again.

[0253] An action of the SMF network element in the foregoing steps S1001a to S1013a, in the foregoing steps S1001 to S1013b may be performed by the processor 301 in the communications device 300 shown in FIG. 3 invoking application program code stored in the memory 303. No limitation is imposed thereto in this embodiment of this application.

[0254] The foregoing mainly describes the solutions provided in the embodiments of this application from a perspective of interaction between network elements. It may be understood that, to implement the foregoing functions, the user plane function entity and the mobility management entity include a corresponding hardware structure and/or software module for performing each function. A person skilled in the art should readily appreciate that this application can be implemented in a form of hardware or in a form of a combination of hardware and computer software with reference to units and algorithm steps of examples described in the embodiments disclosed in this specification. Whether a function is performed by hardware or hardware driven by computer software depends on particular applications and design constraints of the technical solutions. A person skilled in the art may use different methods to implement the described functions for each particular application, but it should not be considered that the implementation goes beyond the scope of this application.

[0255] Division of function modules may be performed on the user plane function entity and the mobility management entity according to the foregoing method examples in the embodiments of this application. For example, each of the function modules may be divided in correspondence to each function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in a form of hardware, or may be implemented in a form of a software function module. It should be noted that the division of the modules in the embodiments of this application is an example, and is merely logical function division, and there may be another division manner during actual implementation.

[0256] For example, in a case in which the function modules are divided in an integrated manner, FIG. 7 shows a schematic structural diagram of a user plane function entity 70 in the foregoing embodiments. The user plane function entity 70 includes a transceiver module 701 and a processing module 702. The transceiver module 701 is configured to receive a data packet from a first terminal through an uplink path corresponding to the first terminal, where the data packet carries addressing information of a second terminal. The processing module 702 is configured to determine, based on information about the uplink path corresponding to the first terminal and the addressing information of the second terminal, a downlink path corresponding to the second terminal. The transceiver module 701 is further configured to send the data packet to the second terminal through the downlink path corresponding to the second terminal.

[0257] Optionally, the processing module 702 is specifically configured to: determine, based on the information about the uplink path corresponding to the first terminal, an identifier of an MLAN to which the first terminal subscribes; and determine, based on the identifier of the MLAN and the addressing information of the second terminal, the downlink path corresponding to the second terminal.

[0258] Optionally, that the processing module 702 determines, based on information about the uplink path corresponding to the first terminal, an identifier of an MLAN to which the first terminal subscribes includes: determining, based on the information about the uplink path corresponding to the first terminal and a first correspondence, the identifier of the MLAN to which the first terminal subscribes, where the first correspondence includes a correspondence between the information about the uplink path corresponding to the first terminal and the identifier of the MLAN.

[0259] Optionally, that the processing module 702 determines, based on the identifier of the MLAN and the addressing information of the second terminal, the downlink path corresponding to the second terminal includes: determining, based on the identifier of the MLAN, the addressing information of the second terminal, and a second correspondence, the downlink path corresponding to the second terminal, where the second correspondence includes a correspondence between information about the downlink path corresponding to the second terminal, the addressing information of the second terminal, and the identifier of the MLAN.

[0260] Optionally, the processing module 702 is further configured to obtain the addressing information of the second terminal, where the addressing information of the second terminal includes an IP address of the second terminal, or a MAC address of the second terminal.

[0261] Optionally, the addressing information of the second terminal includes the IP address of the second terminal; and that the processing module 702 obtains the addressing information of the second terminal includes: receiving the IP address of the second terminal from a session management function entity, where the IP address of the second terminal is determined based on the identifier of the MLAN.

[0262] Optionally, the addressing information of the second terminal includes the MAC address of the second terminal; and that the processing module 702 obtains the addressing information of the second terminal includes: receiving the MAC address of the second terminal from the second terminal during an MLAN session establishment process.

[0263] Optionally, the addressing information of the second terminal includes the MAC address of the second terminal; and that the processing module 702 obtains the addressing information of the second terminal includes: receiving a DHCP request from the second terminal through an uplink path of the second terminal, where the DHCP request carries the MAC address of the second terminal; sending the DHCP request to the session management function entity; and receiving the MAC address of the second terminal from the session management function entity.

[0264] Optionally, the addressing information of the second terminal includes the MAC address of the second terminal; and that the processing module 702 obtains the addressing information of the second terminal includes: receiving a DHCP request from the second terminal through an uplink path of the second terminal, where the DHCP request carries the MAC address of the second terminal; and parsing the DHCP request, to obtain the MAC address of the second terminal.

[0265] Optionally, the processing module 702 is further configured to obtain an identifier of an MLAN to which the second terminal subscribes and the information about the downlink path corresponding to the second terminal; and the processing module 702 is further configured to establish the second correspondence based on the identifier of the MLAN, the addressing information of the second terminal, and the information about the downlink path corresponding to the second terminal.

[0266] Optionally, the processing module 702 is further configured to: before the transceiver module 701 receives the DHCP request from the second terminal through the uplink path corresponding to the second terminal, obtain the information about the uplink path corresponding to the second terminal, the identifier of the MLAN to which the second terminal subscribes, and the information about the downlink path corresponding to the second terminal; the processing module 702 is further configured to establish a third correspondence based on the information about the uplink path corresponding to the second terminal, the information about the downlink path corresponding to the second terminal, and the identifier of the MLAN, where the third correspondence includes a correspondence between the information about the uplink path corresponding to the second terminal, the information about the downlink path corresponding to the second terminal, and the identifier of the MLAN; and the processing module 702 is further configured to: after the transceiver module 701 receives the DHCP request from the second terminal through the uplink path corresponding to the second terminal, establish the second correspondence based on the third correspondence and the MAC address of the second terminal.

[0267] Optionally, the processing module 702 is further configured to obtain the identifier of the MLAN to which the first terminal subscribes and the information about the uplink path corresponding to the first terminal; and the processing module 702 is further configured to establish the first correspondence based on the identifier of the MLAN and the information about the uplink path corresponding to the first terminal.

[0268] Optionally, the information about the uplink path corresponding to the first terminal includes a tunnel identifier of a user plane function entity that is allocated for the first terminal; and the information about the downlink path corresponding to the second terminal includes a tunnel identifier of an access device that is allocated for the second terminal.

[0269] Reference may be made to the function descriptions of the corresponding function modules for all related content of each step in the foregoing method embodiment. Details are not described herein again.

[0270] In this embodiment, the user plane function entity 70 is presented in a form of dividing the function modules in an integrated manner. Herein, the "module" may be an application-specific integrated circuit (application-specific integrated circuit, ASIC), a circuit, a processor that executes one or more software or firmware programs and a memory, an integrated logic circuit, and/or another component that can provide the foregoing functions. In a simple embodiment, a person skilled in the art may come up with an idea that the user plane function entity 70 may use a form shown in FIG. 3.

[0271] The processor 301 in FIG. 3 invokes a computer execution instruction stored in the memory 303, so that the user plane function entity 70 is enabled to perform the data transmission method provided in the foregoing method embodiment.

[0272] Specifically, functions/implementation processes of the transceiver module 701 and the processing module 702 in FIG. 7 may be implemented by the processor 301 in FIG. 3 invoking the computer execution instruction stored in the memory 303. Alternatively, functions/implementation processes of the processing module 702 in FIG. 7 may be implemented by the processor 301 in FIG. 3 invoking the computer execution instruction stored in the memory 303. Functions/implementation processes of the transceiver module 701 in FIG. 7 may be implemented by the communications interface 304 in FIG. 3.

[0273] The user plane function entity in this embodiment of this application can be configured to perform the foregoing data transmission method. Therefore, for technical effects that can be obtained by the user plane function entity, refer to the foregoing method embodiment. Details are not described herein again.

[0274] For example, in a case in which the function modules are divided in an integrated manner, FIG. 8 shows a schematic structural diagram of a mobility management entity 80 in the foregoing embodiment. The mobility management entity 80 includes a transceiver module 801 and a processing module 702. The transceiver module 801 is configured to receive a registration or re-registration request from a terminal; the processing module 802 is configured to obtain, from a database entity, an identifier of an MLAN to which the terminal subscribes; and the transceiver module 801 is further configured to send the identifier of the MLAN to the terminal.

[0275] Optionally, the identifier of the MLAN is an identifier corresponding to a specific area; the transceiver module 801 is specifically configured to: when the processing module 802 determines that a current registration area of the terminal overlaps the specific area, send the identifier of the MLAN to the terminal.

[0276] Optionally, the transceiver module 801 is further configured to receive the identifier of the MLAN from the terminal during an MLAN session establishment process, where the identifier of the MLAN is used to establish an MLAN session.

[0277] Reference may be made to the function descriptions of the corresponding function modules for all related content of each step in the foregoing method embodiment. Details are not described herein again.

[0278] In this embodiment, the mobility management entity 80 is presented in a form of dividing the function modules in an integrated manner. Herein, the "module" may be an application-specific integrated circuit (application-specific integrated circuit, ASIC), a circuit, a processor that executes one or more software or firmware programs and a memory, an integrated logic circuit, and/or another component that can provide the foregoing functions. In a simple embodiment, a person skilled in the art may come up with an idea that the mobility management entity 80 may use a form shown in FIG. 3.

[0279] The processor 301 in FIG. 3 invokes a computer execution instruction stored in the memory 303, so that the mobility management entity 80 is enabled to perform the data transmission method in the foregoing method embodiment.

[0280] Specifically, functions/implementation processes of the transceiver module 801 and the processing module 802 in FIG. 8 may be implemented by the processor 301 in FIG. 3 invoking the computer execution instruction stored in the memory 303. Alternatively, functions/implementation processes of the processing module 802 in FIG. 8 may be implemented by the processor 301 in FIG. 3 invoking the computer execution instruction stored in the memory 303. Functions/implementation processes of the transceiver module 801 in FIG. 8 may be implemented by the communications interface 304 in FIG. 3.

[0281] The mobility management entity in this embodiment of this application can be configured to perform the foregoing data transmission method. Therefore, for technical effects that can be obtained by the mobility management entity, refer to the foregoing method embodiment. Details are not described herein again.

[0282] In the foregoing embodiment, the user plane function entity 70 and the mobility management entity 80 are presented in a form of dividing the function modules in an integrated manner. Certainly, division of function modules may be performed on the user plane function entity or the mobility management entity in correspondence to each function in this embodiment of this application. This is not specifically limited in this embodiment of this application.

[0283] Optionally, an embodiment of this application provides a chip system. The chip system includes a processor, where the processor is configured to support a user plane function entity in implementing the foregoing data transmission method, for example, determine, based on information about an uplink path corresponding to a first terminal and addressing information of a second terminal, a downlink path corresponding to the second terminal. In a possible design, the chip system further includes a memory. The memory is configured to store a program instruction and data that are necessary for the user plane function entity. The chip system may include a chip, or may include a chip and another discrete device. This is not specifically limited in this embodiment of this application.

[0284] Optionally, an embodiment of this application provides a chip system. The chip system includes a processor, where the processor is configured to support a mobility management entity in implementing the foregoing data transmission method, for example, obtain an identifier of an MLAN to which a terminal subscribes. In a possible design, the chip system further includes a memory. The memory is configured to store a program instruction and data that are necessary for the mobility management entity. The chip system may include a chip, or may include a chip and another discrete device. This is not specifically limited in this embodiment of this application.

[0285] For example, in a case in which the function modules are divided in an integrated manner, FIG. 11 shows a schematic structural diagram of a session management network element 110. The session management network element 110 includes a processing module 1101 and a transceiver module 1102. The processing module 1101 is configured to obtain an identifier of an MLAN associated with a session of a terminal; the processing module 1101 is further configured to determine an uplink data forwarding rule based on the identifier of the MLAN, where the uplink data forwarding rule includes a label of the MLAN and information about an uplink path corresponding to the session; and the transceiver module 1102 is configured to send the uplink data forwarding rule to a user plane network element, where the uplink data forwarding rule is used to instruct the user plane network element to forward, by using routing information corresponding to the label of the MLAN, uplink data received on the uplink path.

[0286] Optionally, that the processing module 1101 is configured to obtain an identifier of an MLAN associated with a session of a terminal specifically means that the processing module 1101 is configured to receive a session establishment request from the terminal, where the session establishment request includes the identifier of the MLAN; or the session management network element receives a request message from a mobility management network element, where the request message includes the identifier of the MLAN.

[0287] Optionally, that the processing module 1101 is configured to determine an uplink data forwarding rule based on the identifier of the MLAN specifically means that the processing module 1101 is configured to obtain the label of the MLAN based on the identifier of the MLAN; and generate the uplink data forwarding rule based on the label of the MLAN and the information that is about the uplink path corresponding to the session and that is allocated for the terminal.

[0288] Optionally, that the processing module 1101 is configured to obtain the label of the MLAN based on the identifier of the MLAN specifically means that the processing module 1101 is configured to obtain, based on the identifier of the MLAN, subscription data of the MLAN of the terminal, where the subscription data includes the label of the MLAN; or obtain authentication data of the MLAN of the terminal based on the identifier of the MLAN, where the authentication data includes the label of the MLAN; or allocate the label of the MLAN based on the identifier of the MLAN; or determine the identifier of the MLAN as the label of the MLAN.

[0289] Optionally, the processing module 1101 is further configured to obtain a downlink data forwarding rule, where the downlink data forwarding rule includes the label of the MLAN and addressing information of the terminal; the transceiver module 1102 is further configured to send the downlink data forwarding rule to the user plane network element, where the downlink data forwarding rule is used to instruct the user plane network element to forward, by using routing information corresponding to the label of the MLAN, downlink data to be sent to an address corresponding to the addressing information of the terminal.

[0290] Optionally, the processing module 1101 is further configured to obtain a downlink data forwarding rule, where the downlink data forwarding rule includes the label of the MLAN, addressing information of the terminal, and information about a downlink path corresponding to the session; the transceiver module 1102 is further configured to send the downlink data forwarding rule to the user plane network element, where the downlink data forwarding rule is used to instruct the user plane network element to update the routing information corresponding to the label of the MLAN, and forward, by using the downlink path in updated routing information corresponding to the label of the MLAN, downlink data to be sent to an address corresponding to the addressing information of the terminal.

[0291] Reference may be made to the function descriptions of the corresponding function modules for all related content of each step in the foregoing method embodiment. Details are not described herein again.

[0292] In this embodiment, the session management network element 110 is presented in a form of dividing the function modules in an integrated manner. Herein, the "module" may be a specific ASIC, a circuit, a processor that executes one or more software or firmware programs and a memory, an integrated logic circuit, and/or another component that can provide the foregoing functions. In a simple embodiment, a person skilled in the art may come up with an idea that the session management network element 110 may use a form shown in FIG. 3.

[0293] For example, the processor 301 in FIG. 3 invokes a computer execution instruction stored in the memory 303, so that the session management network element 110 is enabled to perform the data transmission method in the foregoing method embodiments.

[0294] Specifically, functions/implementation processes of the processing module 1101 and the transceiver module 1102 in FIG. 11 may be implemented by the processor 301 in FIG. 3 invoking the computer execution instruction stored in the memory 303. Alternatively, functions/implementation processes of the processing module 1101 in FIG. 11 may be implemented by the processor 301 in FIG. 3 invoking the computer execution instruction stored in the memory 303. Functions/implementation processes of the transceiver module 1102 in FIG. 11 may be implemented by the communications interface 304 in FIG. 3.

[0295] The session management network element 110 in this embodiment of this application can be configured to perform the foregoing data transmission method. Therefore, for technical effects that can be obtained by the session management network element 110, refer to the foregoing method embodiments. Details are not described herein again.

[0296] Optionally, an embodiment of this application further provides a chip system. The chip system includes a processor, where the processor is configured to support a session management network element in implementing the foregoing data transmission method, for example, determine an uplink data forwarding rule based on an identifier of an MLAN. In a possible design, the chip system further includes a memory. The memory is configured to store a program instruction and data that are necessary for the session management network element. Certainly, the memory may not be in the chip system. The chip system may include a chip, or may include a chip and another discrete device. This is not specifically limited in this embodiment of this application.

[0297] The foregoing embodiments may be all or partially implemented by software, hardware, firmware or any combination thereof. When being implemented by a software program, the embodiments may be all or partially implemented in a form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedure or functions according to the embodiments of this application are all or partially generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or another programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or may be transmitted from a computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center to another website, computer, server, or data center in a wired (for example, a coaxial cable, an optical fiber, or a digital subscriber line (Digital Subscriber Line, DSL)) or wireless (for example, infrared, wireless, or microwave) manner. The computer-readable storage medium may be any usable medium accessible to a computer, or a data storage device such as a server or a data center, integrating one or more usable media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, a DVD), a semiconductor medium (for example, a solid state disk (Solid State Disk, SSD)), or the like.

[0298] Although this application is described with reference to the embodiments, in a process of implementing this application that claims protection, a person skilled in the art may understand and implement another variation of the disclosed embodiments by viewing the accompanying drawings, disclosed content, and the accompanying claims. In the claims, "comprising" (comprising) does not exclude another component or another step, and "a" or "one" does not exclude a case of multiple. A single processor or another unit may implement several functions enumerated in the claims. Some measures are recorded in dependent claims that are different from each other, but this does not mean that these measures cannot be combined to produce a better effect.

[0299] Although this application is described with reference to specific features and the embodiments thereof, obviously, various modifications and combinations may be made to them without departing from the spirit and scope of this application. Correspondingly, the specification and accompanying drawings are merely exemplary description of this application defined by the accompanying claims, and considered as any of or all modifications, variations, combinations or equivalents that cover the scope of this application. Obviously, a person skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. This application is intended to cover these modifications and variations of this application provided that they fall within the scope of protection defined by the following claims and their equivalent technologies.


Claims

1. A data transmission method, wherein the method comprises:

receiving, by a user plane function entity, a data packet from a first terminal through an uplink path corresponding to the first terminal, wherein the data packet carries addressing information of a second terminal;

determining, by the user plane function entity based on information about the uplink path corresponding to the first terminal and the addressing information of the second terminal, a downlink path corresponding to the second terminal; and

sending, by the user plane function entity, the data packet to the second terminal through the downlink path corresponding to the second terminal.


 
2. The method according to claim 1, wherein the determining, by the user plane function entity based on information about the uplink path corresponding to the first terminal and the addressing information of the second terminal, a downlink path corresponding to the second terminal comprises:

determining, by the user plane function entity based on the information about the uplink path corresponding to the first terminal, an identifier of a mobile local area network MLAN to which the first terminal subscribes; and

determining, by the user plane function entity based on the identifier of the MLAN and the addressing information of the second terminal, the downlink path corresponding to the second terminal.


 
3. The method according to claim 2, wherein the determining, by the user plane function entity based on the information about the uplink path corresponding to the first terminal, an identifier of an MLAN to which the first terminal subscribes comprises:
determining, by the user plane function entity based on the information about the uplink path corresponding to the first terminal and a first correspondence, the identifier of the MLAN to which the first terminal subscribes, wherein the first correspondence comprises a correspondence between the information about the uplink path corresponding to the first terminal and the identifier of the MLAN.
 
4. The method according to claim 2 or 3, wherein the determining, by the user plane function entity based on the identifier of the MLAN and the addressing information of the second terminal, the downlink path corresponding to the second terminal comprises:
determining, by the user plane function entity based on the identifier of the MLAN, the addressing information of the second terminal, and a second correspondence, the downlink path corresponding to the second terminal, wherein the second correspondence comprises a correspondence between information about the downlink path corresponding to the second terminal, the addressing information of the second terminal, and the identifier of the MLAN.
 
5. The method according to claim 4, wherein the method further comprises:
obtaining, by the user plane function entity, the addressing information of the second terminal, wherein the addressing information of the second terminal comprises an internet protocol IP address of the second terminal, or a media access control MAC address of the second terminal.
 
6. The method according to claim 5, wherein the addressing information of the second terminal comprises the IP address of the second terminal; and
the obtaining, by the user plane function entity, the addressing information of the second terminal comprises:
receiving, by the user plane function entity, the IP address of the second terminal from a session management function entity, wherein the IP address of the second terminal is determined based on the identifier of the MLAN.
 
7. The method according to claim 5, wherein the addressing information of the second terminal comprises the MAC address of the second terminal; and
the obtaining, by the user plane function entity, the addressing information of the second terminal comprises:
receiving, by the user plane function entity, the MAC address of the second terminal from the second terminal during an MLAN session establishment process.
 
8. The method according to claim 5, wherein the addressing information of the second terminal comprises the MAC address of the second terminal; and
the obtaining, by the user plane function entity, the addressing information of the second terminal comprises:

receiving, by the user plane function entity, a dynamic host configuration protocol DHCP request from the second terminal through an uplink path of the second terminal, wherein the DHCP request carries the MAC address of the second terminal;

sending, by the user plane function entity, the DHCP request to a session management function entity; and

receiving, by the user plane function entity, the MAC address of the second terminal from the session management function entity.


 
9. The method according to claim 5, wherein the addressing information of the second terminal comprises the MAC address of the second terminal; and
the obtaining, by the user plane function entity, the addressing information of the second terminal comprises:

receiving, by the user plane function entity, a DHCP request from the second terminal through an uplink path of the second terminal, wherein the DHCP request carries the MAC address of the second terminal; and

parsing, by the user plane function entity, the DHCP request, to obtain the MAC address of the second terminal.


 
10. The method according to any one of claims 4 to 7, wherein the method further comprises:

obtaining, by the user plane function entity, an identifier of the MLAN to which the second terminal subscribes and the information about the downlink path corresponding to the second terminal; and

establishing, by the user plane function entity, the second correspondence based on the identifier of the MLAN, the addressing information of the second terminal, and the information about the downlink path corresponding to the second terminal.


 
11. The method according to claim 8 or 9, wherein before the receiving, by the user plane function entity, a DHCP request from the second terminal through an uplink path of the second terminal, the method further comprises:

obtaining, by the user plane function entity, information about the uplink path corresponding to the second terminal, the identifier of the MLAN to which the second terminal subscribes, and the information about the downlink path corresponding to the second terminal; and

establishing, by the user plane function entity, a third correspondence based on the information about the uplink path corresponding to the second terminal, the information about the downlink path corresponding to the second terminal, and the identifier of the MLAN, wherein the third correspondence comprises a correspondence between the information about the uplink path corresponding to the second terminal, the information about the downlink path corresponding to the second terminal, and the identifier of the MLAN; and

after the receiving, by the user plane function entity, a DHCP request from the second terminal through an uplink path corresponding to the second terminal, the method further comprises:
establishing, by the user plane function entity, the second correspondence based on the third correspondence and the MAC address of the second terminal.


 
12. The method according to claim 3, wherein the method further comprises:

obtaining, by the user plane function entity, the identifier of the MLAN to which the first terminal subscribes and the information about the uplink path corresponding to the first terminal; and

establishing, by the user plane function entity, the first correspondence based on the identifier of the MLAN and the information about the uplink path corresponding to the first terminal.


 
13. The method according to any one of claims 1 to 12, wherein the information about the uplink path corresponding to the first terminal comprises a tunnel identifier of the user plane function entity that is allocated for the first terminal; and the information about the downlink path corresponding to the second terminal comprises a tunnel identifier of an access device that is allocated for the second terminal.
 
14. A user plane function entity, wherein the user plane function entity comprises a transceiver module and a processing module, wherein
the transceiver module is configured to receive a data packet from a first terminal through an uplink path corresponding to the first terminal, wherein the data packet carries addressing information of a second terminal;
the processing module is configured to determine, based on information about the uplink path corresponding to the first terminal and the addressing information of the second terminal, a downlink path corresponding to the second terminal; and
the transceiver module is further configured to send the data packet to the second terminal through the downlink path corresponding to the second terminal.
 
15. The user plane function entity according to claim 14, wherein the processing module is specifically configured to:

determine, based on the information about the uplink path corresponding to the first terminal, an identifier of a mobile local area network MLAN to which the first terminal subscribes; and

determine, based on the identifier of the MLAN and the addressing information of the second terminal, the downlink path corresponding to the second terminal.


 
16. The user plane function entity according to claim 15, wherein that the processing module determines, based on the information about the uplink path corresponding to the first terminal, an identifier of an MLAN to which the first terminal subscribes comprises:
determining, based on the information about the uplink path corresponding to the first terminal and a first correspondence, the identifier of the MLAN to which the first terminal subscribes, wherein the first correspondence comprises a correspondence between the information about the uplink path corresponding to the first terminal and the identifier of the MLAN.
 
17. The user plane function entity according to claim 15 or 16, wherein that the processing module determines, based on the identifier of the MLAN and the addressing information of the second terminal, the downlink path corresponding to the second terminal comprises:
determining, based on the identifier of the MLAN, the addressing information of the second terminal, and a second correspondence, the downlink path corresponding to the second terminal, wherein the second correspondence comprises a correspondence between information about the downlink path corresponding to the second terminal, the addressing information of the second terminal, and the identifier of the MLAN.
 
18. The user plane function entity according to claim 17, wherein
the processing module is further configured to obtain the addressing information of the second terminal, wherein the addressing information of the second terminal comprises an internet protocol IP address of the second terminal, or a media access control MAC address of the second terminal.
 
19. The user plane function entity according to claim 18, wherein the addressing information of the second terminal comprises the IP address of the second terminal; and
that the processing module obtains the addressing information of the second terminal comprises:
receiving the IP address of the second terminal from a session management function entity, wherein the IP address of the second terminal is determined based on the identifier of the MLAN.
 
20. The user plane function entity according to claim 18, wherein the addressing information of the second terminal comprises the MAC address of the second terminal; and
that the processing module obtains the addressing information of the second terminal comprises:
receiving the MAC address of the second terminal from the second terminal during an MLAN session establishment process.
 
21. The user plane function entity according to claim 18, wherein the addressing information of the second terminal comprises the MAC address of the second terminal; and
that the processing module obtains the addressing information of the second terminal comprises:

receiving a dynamic host configuration protocol DHCP request from the second terminal through an uplink path of the second terminal, wherein the DHCP request carries the MAC address of the second terminal;

sending the DHCP request to a session management function entity; and

receiving the MAC address of the second terminal from the session management function entity.


 
22. The user plane function entity according to claim 18, wherein the addressing information of the second terminal comprises the MAC address of the second terminal; and
that the processing module obtains the addressing information of the second terminal comprises:

receiving a DHCP request from the second terminal through an uplink path of the second terminal, wherein the DHCP request carries the MAC address of the second terminal; and

parsing the DHCP request, to obtain the MAC address of the second terminal.


 
23. The user plane function entity according to any one of claims 17 to 20, wherein
the processing module is further configured to obtain the identifier of the MLAN to which the second terminal subscribes and the information about the downlink path corresponding to the second terminal; and
the processing module is further configured to establish the second correspondence based on the identifier of the MLAN, the addressing information of the second terminal, and the information about the downlink path corresponding to the second terminal.
 
24. The user plane function entity according to claim 21 or 22, wherein
the processing module is further configured to: before the transceiver module receives the DHCP request from the second terminal through the uplink path of the second terminal, obtain information about the uplink path corresponding to the second terminal, the identifier of the MLAN to which the second terminal subscribes, and the information about the downlink path corresponding to the second terminal;
the processing module is further configured to establish a third correspondence based on the information about the uplink path corresponding to the second terminal, the information about the downlink path corresponding to the second terminal, and the identifier of the MLAN, wherein the third correspondence comprises a correspondence between the information about the uplink path corresponding to the second terminal, the information about the downlink path corresponding to the second terminal, and the identifier of the MLAN; and
the processing module is further configured to: after the transceiver module receives the DHCP request from the second terminal through the uplink path corresponding to the second terminal, establish the second correspondence based on the third correspondence and the MAC address of the second terminal.
 
25. The user plane function entity according to claim 16, wherein
the processing module is further configured to obtain the identifier of the MLAN to which the first terminal subscribes and the information about the uplink path corresponding to the first terminal; and
the processing module is further configured to establish the first correspondence based on the identifier of the MLAN and the information about the uplink path corresponding to the first terminal.
 
26. The user plane function entity according to any one of claims 14 to 25, wherein the information about the uplink path corresponding to the first terminal comprises a tunnel identifier of the user plane function entity that is allocated for the first terminal; and the information about the downlink path corresponding to the second terminal comprises a tunnel identifier of an access device that is allocated for the second terminal.
 
27. A mobility management entity, wherein the mobility management entity comprises a transceiver module and a processing module, wherein
the transceiver module is configured to receive a registration or re-registration request from a terminal;
the processing module is configured to obtain, from a database entity, an identifier of a mobile local area network MLAN to which the terminal subscribes; and
the transceiver module is further configured to send the identifier of the MLAN to the terminal.
 
28. The mobility management entity according to claim 27, wherein the identifier of the MLAN is an identifier corresponding to a specific area; and
the transceiver module is specifically configured to:
when the processing module determines that a current registration area of the terminal overlaps the specific area, send the identifier of the MLAN to the terminal.
 
29. The mobility management entity according to claim 27 or 28, wherein
the transceiver module is further configured to receive the identifier of the MLAN from the terminal during an MLAN session establishment process, wherein the identifier of the MLAN is used to establish an MLAN session.
 
30. A user plane function entity, wherein the user plane function entity comprises a processor and a memory, wherein
the memory is configured to store a computer execution instruction, and when the user plane function entity runs, the processor executes the computer execution instruction stored in the memory, so that the user plane function entity is enabled to perform the data transmission method according to any one of claims 1 to 13.
 
31. A data transmission system, wherein the data transmission system comprises the user plane function entity according to any one of claims 14 to 26 and the mobility management entity according to any one of claims 27 to 29; or
the data transmission system comprises the user plane function entity according to claim 30 and the mobility management entity according to any one of claims 27 to 29.
 
32. A data transmission method, wherein the data transmission method comprises:

obtaining, by a session management network element, an identifier of a mobile local area network MLAN associated with a session of a terminal;

determining, by the session management network element, an uplink data forwarding rule based on the identifier of the MLAN, wherein the uplink data forwarding rule comprises a label of the MLAN and information about an uplink path corresponding to the session; and

sending, by the session management network element, the uplink data forwarding rule to a user plane network element, wherein the uplink data forwarding rule is used to instruct the user plane network element to forward, by using routing information corresponding to the label of the MLAN, uplink data received on the uplink path.


 
33. The data transmission method according claim 32, wherein the obtaining, by a session management network element, an identifier of an MLAN associated with a session of a terminal is specifically:
receiving, by the session management network element, a session establishment request from the terminal, wherein the session establishment request comprises the identifier of the MLAN; or receiving, by the session management network element, a request message from a mobility management network element, wherein the request message comprises the identifier of the MLAN.
 
34. The data transmission method according claim 32 or 33, wherein the determining, by the session management network element, an uplink data forwarding rule based on the identifier of the MLAN is specifically:

obtaining, by the session management network element, the label of the MLAN based on the identifier of the MLAN; and

generating, by the session management network element, the uplink data forwarding rule based on the label of the MLAN and the information that is about the uplink path corresponding to the session and that is allocated for the terminal.


 
35. The data transmission method according claim 34, wherein the obtaining, by the session management network element, the label of the MLAN based on the identifier of the MLAN is specifically:

obtaining, by the session management network element, subscription data of the MLAN of the terminal based on the identifier of the MLAN, wherein the subscription data comprises the label of the MLAN; or

obtaining, by the session management network element, authentication data of the MLAN of the terminal based on the identifier of the MLAN, wherein the authentication data comprises the label of the MLAN; or

allocating, by the session management network element, the label of the MLAN for the session based on the identifier of the MLAN; or

determining, by the session management network element, the identifier of the MLAN as the label of the MLAN.


 
36. The data transmission method according to any one of claims 32 to 35, wherein the data transmission method further comprises:

obtaining, by the session management network element, a downlink data forwarding rule, wherein the downlink data forwarding rule comprises the label of the MLAN and addressing information of the terminal; and

sending, by the session management network element, the downlink data forwarding rule to the user plane network element, wherein the downlink data forwarding rule is used to instruct the user plane network element to forward, by using the routing information corresponding to the label of the MLAN, downlink data to be sent to an address corresponding to the addressing information of the terminal.


 
37. The data transmission method according to any one of claims 32 to 35, wherein the data transmission method further comprises:

obtaining, by the session management network element, a downlink data forwarding rule, wherein the downlink data forwarding rule comprises the label of the MLAN, addressing information of the terminal, and information about a downlink path corresponding to the session; and

sending, by the session management network element, the downlink data forwarding rule to the user plane network element, wherein the downlink data forwarding rule is used to instruct the user plane network element to update the routing information corresponding to the label of the MLAN, and forward, by using the downlink path in updated routing information corresponding to the label of the MLAN, downlink data to be sent to an address corresponding to the addressing information of the terminal.


 
38. A session management network element, wherein the session management network element comprises a processing module and a transceiver module, wherein
the processing module is further configured to obtain an identifier of a mobile local area network MLAN associated with a session of a terminal;
the processing module is configured to determine an uplink data forwarding rule based on the identifier of the MLAN, wherein the uplink data forwarding rule comprises a label of the MLAN and information about an uplink path corresponding to the session; and
the transceiver module is configured to send the uplink data forwarding rule to a user plane network element, wherein the uplink data forwarding rule is used to instruct the user plane network element to forward, by using routing information corresponding to the label of the MLAN, uplink data received on the uplink path.
 
39. A data transmission system, wherein the data transmission system comprises a session management network element and a user plane network element, wherein
the session management network element is configured to obtain an identifier of a mobile local area network MLAN associated with a session of a terminal;
the session management network element is further configured to determine an uplink data forwarding rule based on the identifier of the MLAN, wherein the uplink data forwarding rule comprises a label of the MLAN and information about an uplink path corresponding to the session;
the session management network element is further configured to send the uplink data forwarding rule to a user plane network element, wherein the uplink data forwarding rule is used to instruct the user plane network element to forward, by using routing information corresponding to the label of the MLAN, uplink data received on the uplink path; and
the user plane network element is configured to receive the uplink data forwarding rule from the session management network element.
 
40. A session management network element, wherein the session management network element comprises a processor and a memory, wherein
the memory is configured to store a computer execution instruction, and when the session management network element runs, the processor executes the computer execution instruction stored in the memory, so that the session management network element is enabled to perform the data transmission method according to any one of claims 32 to 37.
 
41. A computer-readable storage medium, wherein the computer-readable storage medium stores an instruction, and when the instruction is run on a computer, the computer is enabled to perform the data transmission method according to any one of claims 1 to 13.
 
42. A computer-readable storage medium, wherein the computer-readable storage medium stores an instruction, and when the instruction is run on a computer, the computer is enabled to perform the data transmission method according to any one of claims 32 to 37.
 




Drawing














































Search report










Cited references

REFERENCES CITED IN THE DESCRIPTION



This list of references cited by the applicant is for the reader's convenience only. It does not form part of the European patent document. Even though great care has been taken in compiling the references, errors or omissions cannot be excluded and the EPO disclaims all liability in this regard.

Patent documents cited in the description