WO2019095837A1 - 数据处理方法、装置及设备 - Google Patents

数据处理方法、装置及设备 Download PDF

Info

Publication number
WO2019095837A1
WO2019095837A1 PCT/CN2018/106032 CN2018106032W WO2019095837A1 WO 2019095837 A1 WO2019095837 A1 WO 2019095837A1 CN 2018106032 W CN2018106032 W CN 2018106032W WO 2019095837 A1 WO2019095837 A1 WO 2019095837A1
Authority
WO
WIPO (PCT)
Prior art keywords
network element
address
mac address
function network
terminal device
Prior art date
Application number
PCT/CN2018/106032
Other languages
English (en)
French (fr)
Inventor
杨娇
唐廷芳
李岩
李永翠
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP18878802.0A priority Critical patent/EP3700142B1/en
Publication of WO2019095837A1 publication Critical patent/WO2019095837A1/zh
Priority to US16/874,074 priority patent/US11212226B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/324Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the data link layer [OSI layer 2], e.g. HDLC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • H04W36/0022Control or signalling for completing the hand-off for data sessions of end-to-end connection for transferring data sessions between adjacent core network technologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/503Internet protocol [IP] addresses using an authentication, authorisation and accounting [AAA] protocol, e.g. remote authentication dial-in user service [RADIUS] or Diameter
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/60Context-dependent security
    • H04W12/69Identity-dependent
    • H04W12/71Hardware identity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Definitions

  • the present application relates to the field of communications technologies, and in particular, to a data processing method, apparatus, and device.
  • the data packet needs to be forwarded by the user plane function (UPF network element) network element and the switch in the local area network.
  • UPF network element user plane function
  • the terminal device When the terminal device sends an uplink data packet to the application server in the local area network, the terminal device first sends an uplink data packet to the UPF network element, and the UPF network element forwards the uplink data packet to the switch, so that the switch forwards the uplink data packet to the corresponding application. server.
  • the switch can learn the media access control (MAC) address table of the terminal device.
  • the switch receives the downlink data packet sent by the application server, the switch can send the downlink data packet to the corresponding UPF network element according to the learned MAC address table, and the UPF network element sends the downlink data packet to the terminal device.
  • MAC media access control
  • the switch cannot forward the downlink data packet to the correct UPF network element, resulting in loss of downlink data.
  • the UPF network element accessed by the terminal device may change. After the UPF network element accessed by the terminal device changes, the switch still goes down according to the old MAC address table that has been learned. The data packet is sent to the UPF network element that is accessed before the terminal device is displaced. The UPF network element that is accessed before the terminal device is displaced cannot send the downlink data packet to the terminal device, so that the downlink data is lost, resulting in low reliability of data transmission.
  • the application provides a data processing method, device and device, which improve the reliability of data transmission.
  • the present application provides a data processing method, where a session management function network element obtains a MAC address of a terminal device and an IP address corresponding to a MAC address from an external network element, and the first user plane function network element sends a MAC address and an IP address.
  • the MAC address and the IP address are used for sending an address resolution protocol ARP message, and the ARP message includes a MAC address and an IP address.
  • the session management function network element may obtain the MAC address and the IP address of the terminal device from the external network element, and send the MAC address and the IP address of the terminal device to the first user plane function network element to enable the first user.
  • the surface function network element can send an ARP message according to the MAC address and IP address of the terminal device. After the ARP message arrives at the switch of the local area network, the MAC address table of the terminal device can be learned during the process of processing the ARP message by the switch.
  • the switch can learn the latest MAC address table according to the received ARP message, and The downlink data is sent to the correct user plane function network element according to the learned MAC address table, and the downlink data is forwarded by the user plane function network element to the terminal device, thereby avoiding loss of downlink data, thereby improving the reliability of data transmission.
  • the session management function network element can obtain the MAC address and IP address of the terminal device by using at least the following two possible implementation manners:
  • the session management function network element obtains a MAC address and an IP address from a server.
  • the first request message may be sent to the server, where the first request message is used to request to obtain the MAC address of the terminal device and the terminal device. IP address.
  • the server authenticates, authorizes, and bills the DN-AAA server for the data network.
  • the session management function network element can obtain the latest IP address of the terminal device from the DN-AAA server in time.
  • the session management function network element receives the IP address and the MAC address from the second user plane function network element; wherein the first user plane function network element is the user plane function network element selected after the terminal device moves, The second user plane function network element is a user plane function network element selected before the terminal device moves.
  • the MAC address and IP address are also used for the generation of ARP messages.
  • the first user plane function network element may generate an ARP message according to the MAC address and the IP address, and send the generated ARP message.
  • the session management function network element generates an APR message, and sends an ARP message including a MAC address and an IP address to the first user plane function network element. For example, after receiving the ARP message including the MAC address and the IP address, the first user plane function network element may forward the ARP message.
  • the present application provides a data processing method, where a first user plane function network element receives an IP address corresponding to a MAC address and a MAC address from a session management function network element, and sends an address resolution protocol ARP message according to the MAC address and the IP address.
  • the ARP message includes a MAC address and an IP address.
  • the first user plane function network element may receive the MAC address and the IP address of the terminal device from the session management function network element, and send an ARP message according to the MAC address and the IP address of the terminal device.
  • the MAC address table of the terminal device can be learned during the process of processing the ARP message by the switch.
  • the switch can learn the latest MAC address table according to the received ARP message, and The downlink data is sent to the correct user plane function network element according to the learned MAC address table, and the downlink data is forwarded by the user plane function network element to the terminal device, thereby avoiding loss of downlink data, thereby improving the reliability of data transmission.
  • the first user plane function network element may generate an ARP message according to the MAC address and the IP address, and send an ARP message.
  • the ARP message is generated by the first user plane function network element, and the generated ARP message is sent.
  • the first user plane function network element may receive an ARP message including a MAC address and an IP address from the session management function network element, and forward the ARP message.
  • the ARP message is generated by the session management function network element, and the ARP message is sent to the first user plane function network element, and the first user plane function network element is responsible for forwarding the received ARP message.
  • the present application provides a data processing apparatus, including an acquiring module and a sending module, where
  • the obtaining module is configured to obtain, by the external network element, a media access control MAC address of the terminal device and an internet protocol IP address corresponding to the MAC address;
  • the sending module is configured to send a MAC address and an IP address to the first user plane function network element, where the MAC address and the IP address are used for sending an address resolution protocol ARP message, where the ARP message includes a MAC address and an IP address.
  • the acquisition module is specifically used to:
  • the sending module is further configured to: before the obtaining module acquires the MAC address and the IP address from the server, send a first request message to the server, where the first request message is used to request to obtain the MAC address and the terminal of the terminal device. IP address of the device.
  • the server authenticates, authorizes, and bills the DN-AAA server for the data network.
  • the acquisition module is specifically used to:
  • the first user plane function network element is a user plane function network element selected after the terminal device moves
  • the second user plane function network element is a user plane function network element selected before the terminal device moves.
  • the MAC address and IP address are also used for the generation of ARP messages.
  • the device further includes a generating module, wherein
  • the generating module is configured to generate an APR message.
  • the sending module is specifically configured to send an ARP message including a MAC address and an IP address to the first user plane function network element.
  • the data processing apparatus may perform the method shown in any one of the foregoing first aspects, and the implementation principle and the beneficial effects are similar, and details are not described herein.
  • the present application provides a data processing apparatus, including a receiving module and a sending module, where
  • the receiving module is configured to receive, by the session management function network element, a media protocol control MAC address and an internet protocol IP address corresponding to the MAC address;
  • the sending module is configured to send an address resolution protocol ARP message according to the MAC address and the IP address, where the ARP message includes a MAC address and an IP address.
  • the device further includes a generating module, wherein
  • the generating module is configured to generate an ARP message according to the MAC address and the IP address.
  • the sending module is specifically configured to send an ARP message.
  • the receiving module is specifically configured to receive an ARP message from the session management function network element, where the ARP message includes a MAC address and an IP address;
  • the sending module is specifically configured to forward an ARP message.
  • the data processing apparatus provided by the present application may perform the method shown in any one of the foregoing second aspects, and the implementation principle and the beneficial effects are similar, and details are not described herein.
  • the application provides a session management function network element, including a processor, a memory, and a communication bus.
  • the communication bus is used to implement connection between components
  • the memory is used to store program instructions
  • the processor is used to read the memory.
  • the program instruction in the program, and the method of any of the first aspects is performed according to the program instruction in the memory.
  • the application provides a user plane function network element, including a processor, a memory, and a communication bus.
  • the communication bus is used to implement connection between components
  • the memory is used to store program instructions
  • the processor is used to read the memory.
  • the program instruction in the program, and the method of any one of the second aspects is performed according to the program instruction in the memory.
  • the present application provides a computer readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform the data processing method illustrated in any of the above method embodiments.
  • the application provides a computer program product comprising computer executed instructions stored in a computer readable storage medium.
  • At least one processor can read the computer execution instructions from a computer readable storage medium, and execute the computer execution instructions to perform the data processing methods illustrated in any of the above method embodiments.
  • the present application provides a chip system including a processor for supporting functions implemented in any of the above method embodiments, such as, for example, generating or processing data and/or processing in the above method. information.
  • the chip system further includes a memory for storing necessary program instructions and data.
  • the chip system can be composed of chips, and can also include chips and other discrete devices.
  • the session management function network element can obtain the MAC address and IP address of the terminal device from the external network element, and send the MAC address and IP address of the terminal device to the first user plane function network element.
  • the address is such that the first user plane function network element can send an ARP message according to the MAC address and the IP address.
  • the switch can process the corresponding MAC address table in the process of processing the ARP message.
  • the switch can still learn the latest MAC address table according to the received ARP message, even if the application server in the local area network actively sends the downlink data to the terminal device, or the terminal device is disconnected and accesses the new user plane function network element.
  • the learned MAC address table sends the downlink data to the correct user plane function network element, and the user plane function network element forwards the downlink data to the terminal device, thereby avoiding the loss of the downlink data, thereby improving the reliability of the data transmission.
  • FIG. 1 is a block diagram of a communication system provided by the present application.
  • FIG. 2 is a schematic flowchart 1 of a data processing method provided by the present application.
  • FIG. 3 is a schematic flowchart 2 of a data processing method provided by the present application.
  • FIG. 4 is a schematic flowchart 3 of a data processing method provided by the present application.
  • FIG. 5 is a schematic flowchart 4 of a data processing method provided by the present application.
  • FIG. 6 is a schematic flowchart 5 of a data processing method provided by the present application.
  • FIG. 7 is a schematic structural diagram 1 of a data processing apparatus provided by the present application.
  • FIG. 8 is a schematic structural diagram 2 of a data processing apparatus provided by the present application.
  • FIG. 9 is a schematic structural diagram 1 of another data processing apparatus provided by the present application.
  • FIG. 10 is a second schematic structural diagram of another data processing apparatus provided by the present application.
  • FIG. 11 is a schematic structural diagram of a session management function network element provided by the present application.
  • FIG. 12 is a schematic structural diagram of a user plane function network element provided by the present application.
  • FIG. 1 is a structural diagram of a communication system provided by the present application.
  • the communication system may include a User Equipment (UE) 101, an Access Network (AN) node 102, a UPF network element 103, and an access and mobility management function (Access and Mobility Management). Function, abbreviated as AMF) network element 107, session management function (SMF network element) network element 108.
  • AMF Access and Mobility Management
  • the local area network includes a switch 104, an application server 105, a Data Network Authentication-Authorization-Accounting (DN-AAA) server 106.
  • the DN-AAA server 106 may be a network element in a local area network, or may be a network element in a 5G network.
  • the UE 101 may be a mobile phone (or "cellular" phone) or a computer with a mobile terminal, for example, a portable, pocket, handheld, computer built-in or in-vehicle mobile device or the like.
  • the UE may also be referred to as a mobile station (MS), a terminal, and a terminal equipment.
  • MS mobile station
  • terminal equipment a terminal equipment
  • the AN node 102 may be a device that provides wireless access to the terminal device, including but not limited to an evolved Node B (eNB), a wireless fidelity access point (WLAN AP), A global interoperability for Microwave Access Base Station (WiMAX BS), a base station (eg, gNodeB, gNB) in a 5G network, and the like.
  • eNB evolved Node B
  • WLAN AP wireless fidelity access point
  • WiMAX BS A global interoperability for Microwave Access Base Station
  • gNodeB, gNB a base station in a 5G network, and the like.
  • the UPF network element 103 is configured to process the packet, such as forwarding, statistics, and the like.
  • the UFP network element 103 also completes the execution of the session related policy according to the indication of the SMF network element.
  • the switch 104 is configured to forward the packet. For example, the switch 104 can forward the packet received from the UPF network element 103 to the corresponding application server 105, and forward the packet received from the application server 105 to the corresponding UPF. Network element 103.
  • the application server 105 is configured to provide a service data service to the UE 101.
  • the DN-AAA server 106 is configured to provide services such as authentication, authorization, and the like for session establishment.
  • the AMF network element 107 is used to forward messages exchanged between the SMF network element and the UE, and is also responsible for mobility management in the mobile network, such as user location update, user registration network, user handover, and the like.
  • the SMF network element 108 is primarily responsible for session management in the mobile network, such as session establishment, session modification, and session release.
  • the above network elements can be either network components implemented on dedicated hardware, software instances running on dedicated hardware, or instances of virtualization functions on appropriate platforms.
  • the virtualization platform can be a cloud platform. .
  • the session management function network element may obtain an Internet Protocol Address (IP) address corresponding to the MAC address and the MAC address of the terminal device from the external network element, and send the MAC address of the terminal device to the user plane function network element.
  • IP Internet Protocol Address
  • the address and IP address are used to enable the user plane function network element to send ARP messages to the switch in the LAN.
  • the switch can process the ARP message to learn the corresponding MAC address table. In this way, even if the application server actively sends downlink data to the terminal device, or the terminal device is displaced and accesses the new user plane function network element, the switch can still send the downlink data to the correct user plane function network according to the learned MAC address.
  • the downlink data is forwarded by the user plane function network element to the terminal device, thereby avoiding the loss of downlink data, thereby improving the reliability of data transmission.
  • FIG. 2 is a schematic flowchart 1 of a data processing method provided by the present application. Referring to FIG. 2, the method may include:
  • the session management function network element obtains the MAC address of the terminal device and the IP address corresponding to the MAC address from the external network element.
  • the session management function network element may be the SMF network element 108 in the embodiment shown in FIG. 1.
  • the external network element can be a server.
  • the server is a DN-AAA server (such as the DN-AAA server 106 in the embodiment shown in Figure 1).
  • the external network element can also be a UPF network element.
  • the external network element may be another network element.
  • the external network element of the present application is not specifically limited.
  • the following describes the process of obtaining the MAC address of the terminal device and the IP address corresponding to the MAC address from the external network element by using the server with the external network element as the DN-AAA as an example.
  • the session needs to be authenticated by the DN-AAA server.
  • the DN-AAA server allocates an IP address to the terminal device, and stores the correspondence between the MAC address and the IP address of the terminal device.
  • the MAC address and the IP address of the terminal device may be sent to the session management function network element.
  • the first request message is sent to the external network element to request to obtain the MAC address and the IP address of the terminal device from the external network element.
  • the session management function network element needs to send the ARP message corresponding to the terminal device, or the session management function network element receives the request message of another network element (for example, the first user plane function network element), the session management function network element
  • the external network element is requested to obtain the MAC address and IP address of the terminal device.
  • the session management function network element may also request the external network element to obtain the MAC address and the IP address of the terminal device in other scenarios, which is not specifically limited in this application.
  • the session management function network element sends a MAC address and an IP address to the first user plane function network element.
  • the first user plane function network element is a user plane function network element that currently provides a service to the terminal device, that is, the first user plane function network element is a user plane function network element currently accessed by the terminal device.
  • the first user plane function network element may be the UPF network element 103 in the embodiment shown in FIG. 1.
  • the session management function network element may send the MAC address and the IP address of the terminal device to the first user plane function network element after obtaining the MAC address and the IP address of the terminal device.
  • the session management function network element may also send the MAC address and the IP address of the terminal device to the first user plane function network element after receiving the request message sent by the first user plane function network element.
  • the present application does not specifically limit the time at which the session management function network element sends the MAC address and the IP address to the first user plane function network element.
  • the session management function network element may send a MAC address and an IP address to the first user plane function network element, where the MAC address and the IP address are used for generating an ARP message.
  • the session management function network element may also send an ARP message to the first user plane function network element, and carry the MAC address and IP address of the terminal device in the ARP message.
  • the first user plane function network element sends an ARP message according to the MAC address and the IP address.
  • the ARP message includes a MAC address and an IP address.
  • the ARP message may be an ARP reply message.
  • the first user plane function network element when the first user plane function network element directly receives the MAC address and the IP address, and the first user plane function network element has the ARP proxy function, the first user plane function network element can generate the ARP according to the MAC address and the IP address. The message is sent and the generated ARP message is sent.
  • the ARP message includes the MAC address and IP address of the terminal device.
  • a network element has an ARP proxy function, where the network element has a function of sending an ARP message instead of another network element, where the ARP message includes a MAC address and an IP address of another network element, that is, a source of the ARP message.
  • the IP address is the IP address of another network element.
  • the source MAC address of the ARP message is the MAC address of other network elements.
  • the network element when the destination address of the ARP request message received by the network element is another network element, the network element sends an ARP response message instead of other network elements.
  • the network element receives the MAC address and the IP address of the other network element, the network element replaces the other network element to send an ARP message.
  • the ARP message can be a gratuitous ARP message.
  • the first user plane function network element can send the ARP message instead of the terminal device, and the ARP message carries the MAC address and IP address of the terminal device (ie, the ARP message
  • the source MAC address is the terminal device MAC address
  • the source IP address is the IP address of the terminal device.
  • the first user plane function network element receives the ARP request message sent to the terminal device
  • the first user plane function network element sends an ARP response message instead of the terminal device.
  • the first user plane function network element receives the IP address and the MAC address of the terminal device
  • the first user plane function network element sends an ARP message instead of the terminal device.
  • the first user plane function network element when the first user plane function network element receives the ARP message carrying the MAC address and the IP address, the first user plane function network element forwards the received ARP message.
  • the ARP message after the ARP message is sent by the first user plane, the ARP message first arrives at the switch in the local area network. Because the ARP message is uplink data, the switch can learn the latest MAC address table according to the ARP message. For the process of the switch learning the MAC address table according to the uplink data, refer to the related art, which is not repeatedly described in this application.
  • the session management function network element may determine whether the data packet sent between the user plane function network element and the switch is an Ethernet data packet.
  • the session management function network element determines that the data packet sent by the user plane function network element and the switch is an Ethernet data packet
  • the session management function network element further instructs the user plane function network element to detect whether the Ethernet data packet is an IP type data packet.
  • the embodiment shown in FIG. 2 is executed. For example, the user plane function network element may determine whether the Ethernet packet includes an IP address, and if yes, determine that the Ethernet packet is an IP type data packet, and if not, determine that the Ethernet data packet is a non-IP type data packet.
  • the session management function network element can obtain the MAC address and the IP address of the terminal device from the external network element, and send the MAC address and the IP address of the terminal device to the first user plane function network element, so that The first user plane function network element can send an ARP message according to the MAC address and the IP address.
  • the switch can process the corresponding MAC address table in the process of processing the ARP message, so that even in the local area network
  • the application server actively sends downlink data to the terminal device, or after the terminal device is displaced, accesses the new user plane function network element, and the switch can still learn the latest MAC address table according to the received ARP message, and learn the MAC address according to the learning.
  • the address table sends the downlink data to the correct user plane function network element, and the user plane function network element forwards the downlink data to the terminal device, thereby avoiding the loss of the downlink data, thereby improving the reliability of the data transmission.
  • the application scenario is: when the application server in the local area network actively delivers downlink data, the switch learns the latest MAC address table.
  • the application scenario is: when the terminal device is displaced and a new UPF network element is selected, the switch learns the latest MAC address table.
  • the service and session continuity (SSC) mode of the session involved in the embodiment of FIG. 5 - FIG. 6 is SSC mode 2. That is, when the terminal device reestablishes the session, the old session is released first, and then a new session is established.
  • SSC service and session continuity
  • FIG. 3 is a schematic flowchart 2 of a data processing method provided by the present application.
  • the session management function network element is an SMF network element
  • the user plane function network element is an UPF network element.
  • the first UPF network element has an ARP proxy function. Referring to FIG. 3, the method may include:
  • the SMF network element subscribes to the MAC address and IP address of the terminal device to the DN-AAA server.
  • the SMF network element subscribes to the MAC address and IP address of the terminal device to the DN-AAA server, after the DN-AAA server allocates an IP address to the terminal device, it actively sends the MAC address and IP address of the terminal device to the SMF network element. .
  • the AMF server can subscribe to the MAC address and IP address of the terminal device to the DN-AAA server by calling the service.
  • the SMF network element may first determine that the data packet sent by the user plane function network element and the switch is an Ethernet data packet, and the first UPF network element determines that the Ethernet data packet is an IP type data. package.
  • the DN-AAA server sends the MAC address and IP address of the terminal device to the SMF network element.
  • the DN-AAA server may allocate a new IP address to the terminal device.
  • the DN-AAA server may send the MAC address and IP address of the terminal device to the SMF network element according to the subscription of the SMF network element.
  • the DN-AAA server may send the MAC address and the IP address of the terminal device to the SMF network element as long as the DN-AAA server allocates a new IP address to the terminal device.
  • the SMF network element sends the MAC address and the IP address of the terminal device to the first UPF network element.
  • the first UPF network element is a UPF network element currently serving the terminal device.
  • the first UPF network element may further send a request message to the SMF network element, and carry the identifier of the terminal device in the request message, where the SMF network element may send the terminal device to the first UPF network element according to the request message.
  • MAC address and IP address may be further sent to the SMF network element, and carry the identifier of the terminal device in the request message, where the SMF network element may send the terminal device to the first UPF network element according to the request message.
  • S303 may be performed after S302, that is, the SMF network element may send the MAC address and the IP address of the terminal device to the first UPF network element after obtaining the terminal device MAC address and the IP address.
  • the SMF network element may further perform S303 after receiving the request message sent by the first UPF network element.
  • the first UPF network element may send a request message to the SMF network element after receiving the ARP request message (S305), and the request message is used to request to acquire the MAC address and the IP address of the terminal device from the SMF network element.
  • S303 may be performed at other times, that is, the SMF network element may also send the MAC address and the IP address of the terminal device to the first UPF network element at other times, and the execution time of the S303 is not specifically limited in this application.
  • the first UPF network element can obtain the MAC address and IP address of the terminal device.
  • the first UPF network element can obtain the MAC address and the IP address of the terminal device through other feasible implementation manners, which is not specifically limited in this application.
  • the application server sends an ARP request message corresponding to the terminal device to the switch.
  • the source IP address of the ARP request message is the IP address of the application server and the IP address of the destination IP address terminal device.
  • the source MAC address is the MAC address of the application server
  • the destination MAC address is the broadcast destination MAC address.
  • the broadcast destination MAC address may be FFFF-FFFF-FFFF.
  • the application server may send an ARP request message to the switch when the downlink data needs to be sent to the terminal device.
  • the switch broadcasts an ARP request message.
  • the UPF network element connected to the switch can receive the ARP request message.
  • the switch can learn the MAC address table. For example, if the switch receives the ARP request message through port 1, the MAC address table that the switch can learn according to the ARP request message is as shown in Table 1:
  • Table 1 merely illustrates the MAC address table by way of example, and is not limited to the format of the MAC address table and the content included in the MAC address table.
  • the first UPF network element generates an ARP response message according to the MAC address and the IP address of the terminal device.
  • the ARP response message includes an IP address and a MAC address of the terminal device.
  • the source IP address of the ARP response message is the IP address of the terminal device, and the destination IP address is the IP address of the application server.
  • the source MAC address is the MAC address of the terminal device, and the destination MAC address is the MAC address of the application server.
  • the at least one UPF network element receives the ARP request message, only the UPF network element that can obtain the MAC address and the IP address of the terminal device can generate an ARP response message. Only the UPF network element serving the terminal device can obtain the MAC address and IP address of the terminal device. Therefore, after the switch broadcasts the ARP request message, only the first UPF network element that provides the service to the terminal device and has the ARP proxy function can generate the ARP response message.
  • the SMF network element obtains the MAC address and the IP address of the terminal device, the MAC address and the IP address of the terminal device are not sent to the first UPF network element (S303 is not executed), before S306, A UPF network element may also request the SMF network element to obtain the MAC address and IP address of the terminal device.
  • the first UPF network element sends an ARP response message to the switch.
  • the source IP address of the ARP response message is the IP address of the terminal device
  • the destination IP address is the IP address of the application server
  • the source MAC address is the MAC address of the terminal device
  • the destination MAC address is the MAC address of the application server.
  • the switch learns the latest MAC address table according to the ARP response message.
  • the switch receives the ARP response message through port 2. Since the source MAC address of the ARP response message is the MAC address of the terminal device, the switch can learn the table shown in Table 2 based on the MAC address table shown in Table 1.
  • the switch when the switch receives the downlink packet sent by the application server to the terminal device through the port 1 (the source MAC address is the MAC address of the application server and the destination MAC address is the MAC address of the terminal device), the switch can be based on Table 2.
  • the MAC address table forwards the packet to the first UPF through port 2.
  • the switch receives the uplink packet from the terminal device, the source MAC address is the MAC address of the terminal device, and the destination MAC address is When the MAC address of the application server is used, the switch can forward the packet to the application server through port 1 according to the MAC address table shown in Table 2.
  • Table 2 only illustrates the MAC address table by way of example, and is not limited to the format and content of the MAC address table.
  • the switch can learn the latest MAC address table.
  • the switch can learn the latest MAC address table through other interaction processes, which is not specifically limited in this application.
  • the switch sends an ARP response message to the application server.
  • the application server obtains the MAC address of the terminal device according to the ARP response message.
  • the application server can obtain the MAC address of the terminal device, so that the application server can successfully send the downlink data packet to the terminal device.
  • the application server sends a downlink data packet to the switch according to the MAC address of the terminal device.
  • the destination MAC address of the downlink data packet is the MAC address of the terminal device.
  • S312 The switch sends the downlink data packet to the first UPF network element according to the latest MAC address table obtained by the learning.
  • the switch After the switch receives the downlink data packet sent by the application server to the terminal device through the port number 1, according to the MAC address table, it can be determined that the downlink data packet is sent out through the port 2, so that the downlink data is sent. The packet can be sent to the first UPF network element.
  • the first UPF network element sends a downlink data packet to the terminal device.
  • the SMF network element can obtain the MAC address and the IP address of the terminal device from the DN-AAA server, and the first UPF network element can obtain the MAC address and the IP address of the terminal device from the SMF network element.
  • the application server may first send the broadcast ARP request message. After the first UPF network element receives the ARP request message, the first UPF network element has the ARP proxy function and the first UPF network element can obtain the MAC address and the IP address of the terminal device. Therefore, the first UPF network element generates the ARP. Answer the message and send an ARP reply message to the switch.
  • the ARP response message is an uplink packet.
  • the switch can learn the latest MAC address table according to the ARP response message, and the switch can also send the ARP response message to the application server, so that the application server obtains the terminal device in the ARP response message.
  • MAC address After the application server obtains the MAC address of the terminal device, the application server can ensure that the application server can send the downlink data packet to the terminal device according to the MAC address of the terminal device.
  • the switch learns the latest MAC address table. Therefore, after receiving the downlink data packet sent by the application server, the switch can forward the downlink data packet to the correct UPF network element, so that the correct UPF network element can successfully reach the terminal.
  • the device forwards the downlink data packet to avoid the loss of the downlink data packet, thereby improving the reliability of the data transmission.
  • FIG. 4 is a schematic flowchart 3 of a data processing method provided by the present application.
  • the session management function network element is the SMF network element
  • the user plane function network element is the UPF network element as an example
  • the first UPF network element does not have the ARP proxy function, and the SMF network element ARP proxy function.
  • the method may include:
  • the SMF network element subscribes to the MAC address and IP address of the terminal device to the DN-AAA server.
  • the DN-AAA server sends the MAC address and IP address of the terminal device to the SMF network element.
  • the application server sends an ARP request message corresponding to the terminal device to the switch.
  • the switch broadcasts an ARP request message.
  • the first UPF network element sends an ARP request message to the SMF network element.
  • the first UPF network element does not have the ARP proxy function. Therefore, after receiving the ARP request message, the first UPF network element forwards the ARP request message.
  • the SMF network element generates an ARP response message according to the MAC address and the IP address of the terminal device.
  • the ARP response message includes an IP address and a MAC address of the terminal device.
  • the source IP address of the ARP response message is the IP address of the terminal device, and the destination IP address is the IP address of the application server.
  • the source MAC address is the MAC address of the terminal device, and the destination MAC address is the MAC address of the application server.
  • the SMF network element sends an ARP response message to the first UPF network element.
  • the first UPF network element sends an ARP response message to the switch.
  • the switch learns the latest MAC address table according to the ARP response message.
  • the switch can learn the latest MAC address table.
  • the switch can learn the latest MAC address table through other interaction processes, which is not specifically limited in this application.
  • the switch sends an ARP response message to the application server.
  • the application server obtains the MAC address of the terminal device according to the ARP response message.
  • the application server can obtain the MAC address of the terminal device, so that the application server can successfully send the downlink data packet to the terminal device.
  • the application server sends a downlink data packet to the switch according to the MAC address of the terminal device.
  • the destination MAC address of the downlink data packet is the MAC address of the terminal device.
  • the switch sends the downlink data packet to the first UPF network element according to the latest MAC address table obtained by the learning.
  • the first UPF network element sends a downlink data packet to the terminal device.
  • the SMF network element can obtain the MAC address and IP address of the terminal device from the DN-AAA server.
  • the application server may first send the broadcast ARP request message.
  • the first UPF network element After the first UPF network element receives the ARP request message, the first UPF network element sends the ARP request message to the SMF network element, because the first UPF network element does not have the ARP proxy function, and the SMF network element has the ARP proxy function and the SMF
  • the network element can obtain the MAC address and the IP address of the terminal device.
  • the SMF network element generates an ARP response message, and sends an ARP response message to the first UPF network element, and the first UPF network element sends an ARP response message to the switch.
  • the ARP response message is an uplink packet. Therefore, the switch can learn the latest MAC address table according to the ARP response message, and the switch can also send the ARP response message to the application server, so that the application server obtains the terminal device in the ARP response message. MAC address. After the application server obtains the MAC address of the terminal device, the application server can ensure that the application server can send the downlink data packet to the terminal device according to the MAC address of the terminal device. The switch learns the latest MAC address table.
  • the switch after receiving the downlink data packet sent by the application server, the switch can forward the downlink data packet to the correct UPF network element, so that the correct UPF network element can successfully reach the terminal.
  • the device forwards the downlink data packet to avoid the loss of the downlink data packet, thereby improving the reliability of the data transmission.
  • FIG. 5 is a schematic flowchart 4 of a data processing method provided by the present application.
  • the session management function network element is used as the SMF network element
  • the user plane function network element is the UPF network element as an example. It is assumed that the UPF network element selected before the terminal device is displaced is the second UPF network. The UPF network element selected after the terminal device is displaced is the first UPF network element, and the first UPF network element has the ARP proxy function.
  • the method may include:
  • the SMF network element subscribes the MAC address and IP address of the terminal device to the DN-AAA server.
  • the DN-AAA server sends the MAC address and IP address of the terminal device to the SMF network element.
  • the SMF network element determines that the terminal device establishes a new session, and the SMF network element sends the MAC address and the IP address of the terminal device to the first UPF network element.
  • the SMF network element selects a new UPF network element for the terminal device, and creates a new device for the terminal device. Conversation.
  • the SMF network element may also send the MAC address and IP address of the terminal device to the first UPF network element when selecting a new first UPF network element for the terminal device.
  • the SMF network element determines that the terminal device establishes a new session
  • the first UPF network element that is currently serving the terminal device may be determined, and then the MAC address and the IP address of the terminal device are sent to the first UPF network element.
  • the first UPF network element generates an ARP message according to the MAC address and the IP address of the terminal device.
  • the ARP message is generated after the first UPF network element receives the terminal device MAC address and the IP address.
  • the destination IP address of the ARP message is the IP address of the terminal device
  • the source IP address is the IP address of the terminal device
  • the source MAC address is the MAC address of the terminal device
  • the destination MAC address is the broadcast MAC address.
  • the ARP message is a gratuitous ARP packet
  • the gratuitous ARP packet is a broadcast packet.
  • the first UPF network element sends an ARP message to the switch.
  • the switch updates the MAC address table according to the ARP message.
  • the application server is connected to the switch through port 1, and the second UPF is connected to the switch through port 2.
  • the switch receives the ARP message sent by the first UPF network element through the port 3. Because the source MAC address of the ARP message is the MAC address of the terminal device, the switch can further compare the MAC address table shown in Table 3 to the MAC address table shown in Table 4 according to the ARP message:
  • the switch when the switch receives the downlink packet sent by the application server to the terminal device through the port number 1 (the source MAC address is the MAC address of the application server, and the destination MAC address is the MAC address of the terminal device) The packet is forwarded to the first UPF through the port 3 according to the MAC address table.
  • the switch receives the uplink packet from the terminal device, the source MAC address is the MAC address of the terminal device, and the destination MAC address is obtained.
  • the packet is forwarded to the application server through port number 1 according to the MAC address table.
  • the application server sends a downlink data packet to the switch.
  • the destination MAC address of the downlink data packet is the MAC address of the terminal device.
  • the switch sends a downlink data packet to the first UPF network element according to the updated MAC address table.
  • the switch After the switch receives the downlink data packet sent by the application server to the terminal device through the port number 1, according to the MAC address table, it can be determined that the port 3 sends the downlink data packet to enable the downlink data packet. It can be sent to the first UPF network element.
  • the first UPF network element sends a downlink data packet to the terminal device.
  • the ARP message may also be generated by the SMF network element, where the process of generating the ARP message by the SMF network element may be referred to.
  • the embodiment shown in FIG. 4 is not described herein again.
  • the SMF network element can obtain the MAC address and IP address of the terminal device from the DN-AAA server. After the terminal device is displaced and a new first UPF network element is selected, the SMF network element sends the MAC address and IP address of the terminal device to the first UPF network element.
  • the first UPF network element can send an APR message because the first UPF network element has the ARP proxy function and the first UPF network element obtains the MAC address and the IP address of the terminal device.
  • the ARP message is an uplink packet. Therefore, the switch can update the MAC address table according to the ARP message.
  • the switch can forward the downlink data packet to the correct UPF network element according to the updated MAC address table (the first selected after the terminal device is displaced)
  • the UPF network element is configured to enable the correct UPF network element to successfully forward the downlink data packet to the terminal device, thereby avoiding the loss of the downlink data packet, thereby improving the reliability of the data transmission.
  • FIG. 6 is a schematic flowchart 5 of a data processing method provided by the present application.
  • the session management function network element is the SMF network element
  • the user plane function network element is the UPF network element as an example. It is assumed that the UPF network element selected before the terminal device is displaced is the second UPF network. The UPF network element selected after the terminal device is displaced is the first UPF network element, and the first UPF network element has the ARP proxy function.
  • the method may include:
  • the second UPF network element acquires an IP address and a MAC address of the terminal device.
  • the second UPF network element may obtain the MAC address and the IP address of the terminal device by monitoring the data packet.
  • the second UPF network element sends the MAC address and the IP address of the terminal device to the SMF network element.
  • the SMF network element may store the MAC address and the IP address of the terminal device.
  • the SMF network element determines that the terminal device establishes a new session, and the SMF network element sends the MAC address and the IP address of the terminal device to the first UPF network element.
  • the first UPF network element generates an ARP message according to the MAC address and the IP address of the terminal device.
  • the ARP message includes the MAC address and IP address of the terminal device.
  • the first UPF network element sends an ARP message to the switch.
  • the switch updates the MAC address table according to the ARP message.
  • S603-S606 and S607-S609 are mutually independent processes, and after S606, S607 does not necessarily have to be executed.
  • the application server sends a downlink data packet to the switch.
  • the destination MAC address of the downlink data packet is the MAC address of the terminal device.
  • the switch sends a downlink data packet to the first UPF network element according to the updated MAC address table.
  • the first UPF network element sends a downlink data packet to the terminal device.
  • S603-S609 can be referred to as S503-S509, and details are not described herein again.
  • the ARP message may also be generated by the SMF network element, where the process of generating the ARP message by the SMF network element may be referred to.
  • the embodiment shown in FIG. 4 is not described herein again.
  • the second UPF network element selected by the terminal device can acquire the MAC address and the IP address of the terminal device, and send the MAC address and IP address of the terminal device to the SMF network. yuan.
  • the SMF network element sends the MAC address and IP address of the terminal device to the first UPF network element.
  • the first UPF network element can send an APR message because the first UPF network element has the ARP proxy function and the first UPF network element obtains the MAC address and the IP address of the terminal device.
  • the ARP message is an uplink packet. Therefore, the switch can update the MAC address table according to the ARP message.
  • the switch can forward the downlink data packet to the correct UPF network element according to the updated MAC address table (the first selected after the terminal device is displaced)
  • the UPF network element is configured to enable the correct UPF network element to successfully forward the downlink data packet to the terminal device, thereby avoiding the loss of the downlink data packet, thereby improving the reliability of the data transmission.
  • the switch can learn the latest MAC address table by using the following feasible implementation manners, which can be implemented by at least two possible implementation manners:
  • the UPF network element selected before the terminal device moves is the second UPF network element
  • the network element selected after the terminal device moves is the first UPF network element
  • the SMF network element determines that the UPF network element serving the terminal device is the first UPF network element, and the SMF network element sends the indication information to the terminal device, where the indication is The information is used to instruct the terminal device to send an uplink data packet.
  • the terminal device sends an uplink data packet according to the indication information, where the uplink data packet may be a broadcast packet, and the source MAC address of the uplink data packet may be a MAC address of the terminal device.
  • the terminal device may send an uplink data packet by using a Multicast MAC Registration Protocol (MMRP) protocol, where the uplink data packet is an uplink general packet.
  • MMRP Multicast MAC Registration Protocol
  • the uplink data packet is sent to the switch in the local area network through the first UPF network element, and the switch updates the MAC address table according to the uplink data packet.
  • the switch may send the downlink data packet to the first UPF network element according to the updated MAC address table, so that the first UPF network element can successfully forward the downlink data packet to the The terminal device avoids the loss of downlink data packets, thereby improving the reliability of data transmission.
  • the UPF network element selected before the terminal device moves is the second UPF network element
  • the network element selected after the terminal device moves is the first UPF network element
  • the SMF network element determines that the UPF network element serving the terminal device is the first UPF network element, and the SMF network element sends the indication information to the first UPF network element.
  • the indication information is used to indicate that the first UPF network element sends an uplink data packet.
  • the first UPF network element sends an uplink data packet according to the indication information.
  • the source MAC address of the uplink data packet may be the MAC address of the terminal device, and the destination MAC address of the uplink data packet may be the MAC address of the switch.
  • the first UPF network element may send an uplink data packet by using an MMRP protocol, where the uplink data packet is an uplink universal packet.
  • the switch After the switch receives the uplink data packet, the switch updates the MAC address table according to the uplink data packet. In this way, when the application server sends the downlink data packet to the terminal device, the switch can send the downlink data packet to the first UPF network element according to the updated MAC address table, so that the first UPF network element can successfully downlink the data packet. Forwarding to the terminal device avoids the loss of downlink data packets, thereby improving the reliability of data transmission.
  • FIG. 7 is a schematic structural diagram 1 of a data processing apparatus provided by the present application.
  • the apparatus may include an obtaining module 11 and a sending module 12, where
  • the obtaining module 11 is configured to acquire, from an external network element, a media access control MAC address of the terminal device and an internet protocol IP address corresponding to the MAC address;
  • the sending module 12 is configured to send the MAC address and the IP address to a first user plane function network element, where the MAC address and the IP address are used for sending an address resolution protocol ARP message, where the ARP message is sent.
  • the MAC address and the IP address are included.
  • the data processing apparatus may perform the technical solutions shown in the foregoing method embodiments, and the implementation principles and the beneficial effects thereof are similar, and details are not described herein.
  • the obtaining module 11 is specifically configured to:
  • the MAC address and the IP address are obtained from a server.
  • the sending module 12 is further configured to send a first request message to the server before the obtaining module acquires the MAC address and the IP address from a server, where The first request message is used to request to acquire the MAC address of the terminal device and the IP address of the terminal device.
  • the server is a data network authentication, authorization, and accounting DN-AAA server.
  • the obtaining module 11 is specifically configured to:
  • the first user plane function network element is a user plane function network element selected after the terminal device moves
  • the second user plane function network element is a user plane function network element selected before the terminal device moves.
  • the MAC address and the IP address are also used for generating an ARP message.
  • FIG. 8 is a schematic structural diagram 2 of a data processing apparatus provided by the present application.
  • the device On the basis of the embodiment shown in FIG. 7, referring to FIG. 8, the device further includes a generating module 13, wherein
  • the generating module 13 is configured to generate the APR message.
  • the sending module 12 is specifically configured to send the ARP message including the MAC address and the IP address to the first user plane function network element.
  • the data processing apparatus may perform the technical solutions shown in the foregoing method embodiments, and the implementation principles and the beneficial effects thereof are similar, and details are not described herein.
  • the acquisition module 11 can perform the S201 in the embodiment of FIG. 2 , the S301-S302 in the embodiment shown in FIG. 3 , and the embodiment shown in FIG. 4 .
  • the sending module 12 can execute S202 in the foregoing embodiment of FIG. 2, S303 in the embodiment shown in FIG. 3, S407 in the embodiment shown in FIG. 4, S503 in the embodiment shown in FIG. 5, and FIG. 6.
  • S202 in the foregoing embodiment of FIG. 2 S303 in the embodiment shown in FIG. 3, S407 in the embodiment shown in FIG. 4, S503 in the embodiment shown in FIG. 5, and FIG. 6.
  • S603 in the illustrated embodiment refer to the description in the method embodiment, and details are not described herein.
  • the generating module 13 can execute the S306 in the embodiment shown in FIG. 3 and the S406 in the embodiment shown in FIG. 4, and the specific implementation process and corresponding beneficial effects can be referred to in the description of the method embodiment. Repeatedly.
  • FIG. 9 is a schematic structural diagram 1 of another data processing apparatus provided by the present application.
  • the apparatus may include a receiving module 21 and a sending module 22, where
  • the receiving module 21 is configured to receive, by the session management function network element, a media access control MAC address and an internet protocol IP address corresponding to the MAC address;
  • the sending module 22 is configured to send an address resolution protocol ARP message according to the MAC address and the IP address, where the ARP message includes the MAC address and the IP address.
  • the data processing apparatus may perform the technical solutions shown in the foregoing method embodiments, and the implementation principles and the beneficial effects thereof are similar, and details are not described herein.
  • FIG. 10 is a schematic structural diagram 2 of another data processing apparatus provided by the present application.
  • the device further includes a generating module 23, where
  • the generating module 23 is configured to generate the ARP message according to the MAC address and the IP address.
  • the sending module 22 is specifically configured to send the ARP message.
  • the receiving module 21 is specifically configured to: receive the ARP message from the session management function network element, where the ARP message includes the MAC address and the IP address;
  • the sending module 22 is specifically configured to forward the ARP message.
  • the data processing apparatus may perform the technical solutions shown in the foregoing method embodiments, and the implementation principles and the beneficial effects thereof are similar, and details are not described herein.
  • the receiving module 21 can execute S202 in the foregoing embodiment of FIG. 2, S303 in the embodiment shown in FIG. 3, and S407 in the embodiment shown in FIG.
  • the S503 in the embodiment shown in FIG. 5 and the S603 in the embodiment shown in FIG. 6 the specific implementation process and the corresponding beneficial effects can be referred to in the description of the method embodiment, and details are not described herein.
  • the sending module 22 can execute S203 in the foregoing embodiment of FIG. 2, S307 in the embodiment shown in FIG. 3, S408 in the embodiment shown in FIG. 4, S505 in the embodiment shown in FIG. 5, and FIG. 6.
  • S307 in the embodiment shown in FIG. 3 S408 in the embodiment shown in FIG. 4
  • the generating module 23 can perform S306 in the embodiment shown in FIG. 3, S504 in the embodiment shown in FIG. 5, and S604 in the embodiment shown in FIG. 6.
  • S306 in the embodiment shown in FIG. 3, S504 in the embodiment shown in FIG. 5, and S604 in the embodiment shown in FIG. 6.
  • the specific execution process and corresponding beneficial effects can be seen. The description in the method embodiments is not described herein again.
  • FIG. 11 is a schematic structural diagram of a session management function network element provided by the present application.
  • a processor 31 for storing a connection between components, a memory 32 for storing program instructions, and a communication bus 33 for the processor 31 for The program instructions in the memory 32 are read and the methods illustrated in the embodiment of Figures 2-6 are performed in accordance with the program instructions in the memory 32.
  • the processor 31 may perform other processing in addition to information transceiving of the session management function network element in the embodiments of FIG. 2-6.
  • the implementation principle and beneficial effects are similar, and will not be described here.
  • FIG. 12 is a schematic structural diagram of a user plane function network element provided by the present application.
  • a processor 41 a memory 42 for implementing a connection between components, and a communication bus 43 for storing program instructions
  • the processor 41 is configured to The program instructions in the memory 42 are read and the methods illustrated in the embodiment of Figures 2-6 are performed in accordance with the program instructions in the memory 42.
  • the processor 41 can perform other processing in addition to information transceiving of the user plane function network element in the embodiments of FIG. 2-6.
  • the implementation principle and beneficial effects are similar, and will not be described here.
  • the present application provides a computer readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform the data processing method illustrated in any of the above method embodiments.
  • the application provides a computer program product comprising computer executed instructions stored in a computer readable storage medium.
  • At least one processor can read the computer execution instructions from a computer readable storage medium, and execute the computer execution instructions to perform the data processing methods illustrated in any of the above method embodiments.
  • the present application provides a chip system including a processor for supporting functions implemented in any of the above-described embodiments, such as, for example, generating or processing data and/or information involved in the above methods.
  • the chip system further includes a memory for storing necessary program instructions and data.
  • the chip system can be composed of chips, and can also include chips and other discrete devices.
  • FIGS 11 and 12 only show a simplified design of the above described apparatus.
  • each of the above devices may include any number of transmitters, receivers, processors, controllers, memories, communication units, etc., and all devices that can implement the present application are within the scope of the present application.
  • the processor used in the above-mentioned session management function network element or user plane function network element of the present application may be a central processing unit (CPU), a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), and a field. Programmable Gate Array (FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
  • the processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
  • the steps of a method or algorithm described in connection with the present disclosure may be implemented in a hardware or may be implemented by a processor executing software instructions.
  • the software instructions may be comprised of corresponding software modules that may be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable hard disk, CD-ROM, or any other form of storage well known in the art.
  • An exemplary storage medium is coupled to the processor to enable the processor to read information from, and write information to, the storage medium.
  • the storage medium can also be an integral part of the processor.
  • the processor and the storage medium can be located in an ASIC. Additionally, the ASIC can be located in a session management function network element.
  • the processor and the storage medium may also exist as discrete components in the session management function network element or the user plane function network element.
  • the computer program product includes one or more computer instructions.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media.
  • the usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Small-Scale Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请提供一种数据处理方法、装置及设备,该方法包括:会话管理功能网元从外部网元获取终端设备的媒体访问控制MAC地址以及所述MAC地址对应的互联网协议IP地址;所述会话管理功能网元向第一用户面功能网元发送所述MAC地址和所述IP地址,所述MAC地址和所述IP地址用于地址解析协议ARP消息的发送,所述ARP消息包括所述MAC地址和所述IP地址。提高了数据传输的可靠性。

Description

数据处理方法、装置及设备
本申请要求于2017年11月17日提交中国专利局、申请号为201711143738.3、申请名称为“数据处理方法、装置及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信技术领域,尤其涉及一种数据处理方法、装置及设备。
背景技术
目前,在终端设备与局域网中的应用服务器进行数据交互的过程中,需要由用户面功能(User Plane Function,UPF网元)网元和局域网中的交换机对数据包进行转发。
在终端设备向局域网中的应用服务器发送上行数据包时,终端设备先向UPF网元发送上行数据包,UPF网元再向交换机转发上行数据包,以使交换机将上行数据包转发至对应的应用服务器。在上行过程中,交换机可以学习得到终端设备的媒体访问控制(Media Access Control,MAC)地址表。当交换机接收到应用服务器发送的下行数据包时,交换机可以根据学习得到的MAC地址表,将下行数据包发送至对应的UPF网元,并由UPF网元向终端设备发送下行数据包。
然而,当局域网中的应用服务器主动向终端设备发送下行数据包时,若交换机还未学习得到MAC地址表,会使得交换机无法将下行数据包转发至正确的UPF网元,导致下行数据的丢失。或者,当终端设备的位置发生变化时,终端设备接入的UPF网元可能发生变化,当终端设备接入的UPF网元发生变化之后,交换机仍然根据已经学习得到的旧的MAC地址表将下行数据包发送至终端设备位移之前接入的UPF网元,终端设备位移之前接入的UPF网元无法向终端设备发送该下行数据包,使得下行数据的丢失,导致数据传输的可靠性较低。
发明内容
本申请提供一种数据处理方法、装置及设备,提高了数据传输的可靠性。
第一方面,本申请提供一种数据处理方法,会话管理功能网元从外部网元获取终端设备的MAC地址以及MAC地址对应的IP地址,并第一用户面功能网元发送MAC地址和IP地址,MAC地址和IP地址用于地址解析协议ARP消息的发送,ARP消息包括MAC地址和IP地址。
在上述过程中,会话管理功能网元可以从外部网元获取得到终端设备的MAC地址和IP地址,并向第一用户面功能网元发送终端设备的MAC地址和IP地址,以使第一用户面功能网元可以根据终端设备的MAC地址和IP地址发送ARP消息。在ARP消息到达局域网的交换机之后,在交换机处理ARP消息的过程中,可以学习得到终端 设备的MAC地址表。这样,即使局域网中应用服务器主动向终端设备发送下行数据,或者,终端设备发生位移之后接入新的用户面功能网元,交换机依然可以根据接收到的ARP消息学习得到最新的MAC地址表,并根据学习得到的MAC地址表将下行数据发送至正确的用户面功能网元,并由用户面功能网元向终端设备转发下行数据,避免了下行数据发生丢失,进而提高了数据传输的可靠性。
在一种可能的设计中,会话管理功能网元可以通过至少如下两种可行的实现方式获取终端设备的MAC地址和IP地址:
一种可能的实现方式:会话管理功能网元从服务器获取MAC地址和IP地址。
在一种可能的设计中,在会话管理功能网元从服务器获取MAC地址和IP地址之前,还可以向服务器发送第一请求消息,第一请求消息用于请求获取终端设备的MAC地址和终端设备的IP地址。
在一种可能的设计中,服务器为数据网络验证、授权和记账DN-AAA服务器。
在该种可能的实现方式中,由于终端设备的IP地址通常由DN-AAA服务器分配,因此,会话管理功能网元可以及时从DN-AAA服务器获取得到终端设备的最新的IP地址。
另一种可能的实现方式:会话管理功能网元从第二用户面功能网元接收IP地址和MAC地址;其中,第一用户面功能网元为终端设备移动后选择的用户面功能网元,第二用户面功能网元为终端设备移动前选择的用户面功能网元。
在一种可能的设计中,MAC地址和IP地址还用于ARP消息的生成。例如,第一用户面功能网元可以根据MAC地址和IP地址生成ARP消息,并发送生成的ARP消息。
在一种可能的设计中,会话管理功能网元生成APR消息,向第一用户面功能网元发送包含MAC地址和IP地址的ARP消息。例如,第一用户面功能网元接收到包含MAC地址和IP地址的ARP消息之后,可以转发该ARP消息。
第二方面,本申请提供一种数据处理方法,第一用户面功能网元从会话管理功能网元接收MAC地址和MAC地址对应的IP地址,并根据MAC地址和IP地址发送地址解析协议ARP消息,ARP消息中包括MAC地址和IP地址。
在上述过程中,第一用户面功能网元可以从会话管理功能网元接收到终端设备的MAC地址和IP地址,并根据终端设备的MAC地址和IP地址发送ARP消息。在ARP消息到达局域网的交换机之后,在交换机处理ARP消息的过程中,可以学习得到终端设备的MAC地址表。这样,即使局域网中应用服务器主动向终端设备发送下行数据,或者,终端设备发生位移之后接入新的用户面功能网元,交换机依然可以根据接收到的ARP消息学习得到最新的MAC地址表,并根据学习得到的MAC地址表将下行数据发送至正确的用户面功能网元,并由用户面功能网元向终端设备转发下行数据,避免了下行数据发生丢失,进而提高了数据传输的可靠性。
在一种可能的设计中,第一用户面功能网元可以根据MAC地址和IP地址,生成ARP消息,并发送ARP消息。在该种可能的设计中,由第一用户面功能网元生成ARP消息,并发送生成的ARP消息。
在一种可能的设计中,第一用户面功能网元可以从会话管理功能网元接收包括 MAC地址和IP地址的ARP消息,并转发ARP消息。在该种可能的设计中,由会话管理功能网元生成ARP消息,并向第一用户面功能网元发送ARP消息,第一用户面功能网元负责对接收到的ARP消息转发。
第三方面,本申请提供一种数据处理装置,包括获取模块和发送模块,其中,
获取模块用于,从外部网元获取终端设备的媒体访问控制MAC地址以及MAC地址对应的互联网协议IP地址;
发送模块用于,向第一用户面功能网元发送MAC地址和IP地址,MAC地址和IP地址用于地址解析协议ARP消息的发送,ARP消息包括MAC地址和IP地址。
在一种可能的设计中,获取模块具体用于:
从服务器获取MAC地址和IP地址。
在一种可能的设计中,发送模块还用于,在获取模块从服务器获取MAC地址和IP地址之前,向服务器发送第一请求消息,第一请求消息用于请求获取终端设备的MAC地址和终端设备的IP地址。
在一种可能的设计中,服务器为数据网络验证、授权和记账DN-AAA服务器。
在一种可能的设计中,获取模块具体用于:
从第二用户面功能网元接收IP地址和MAC地址;
其中,第一用户面功能网元为终端设备移动后选择的用户面功能网元,第二用户面功能网元为终端设备移动前选择的用户面功能网元。
在一种可能的设计中,MAC地址和IP地址还用于ARP消息的生成。
在一种可能的设计中,装置还包括生成模块,其中,
生成模块用于,生成APR消息;
发送模块具体用于,向第一用户面功能网元发送包含MAC地址和IP地址的ARP消息。
本申请提供的数据处理装置可以执行上述第一方面任一项所示的方法,其实现原理以及有益效果类似,此处不再进行赘述。
第四方面,本申请提供一种数据处理装置,包括接收模块和发送模块,其中,
接收模块用于,从会话管理功能网元接收媒体访问控制MAC地址和MAC地址对应的互联网协议IP地址;
发送模块用于,根据MAC地址和IP地址发送地址解析协议ARP消息,ARP消息中包括MAC地址和IP地址。
在一种可能的设计中,装置还包括生成模块,其中,
生成模块用于,根据MAC地址和IP地址,生成ARP消息;
发送模块具体用于,发送ARP消息。
在一种可能的设计中,接收模块具体用于,从会话管理功能网元接收ARP消息,ARP消息中包括MAC地址和IP地址;
发送模块具体用于,转发ARP消息。
本申请提供的数据处理装置可以执行上述第二方面任一项所示的方法,其实现原理以及有益效果类似,此处不再进行赘述。
第五方面,本申请提供一种会话管理功能网元,包括处理器、存储器及通信总线, 通信总线用于实现各元器件之间的连接,存储器用于存储程序指令,处理器用于读取存储器中的程序指令,并根据存储器中的程序指令执行第一方面任一项的方法。
第六方面,本申请提供一种用户面功能网元,包括处理器、存储器及通信总线,通信总线用于实现各元器件之间的连接,存储器用于存储程序指令,处理器用于读取存储器中的程序指令,并根据存储器中的程序指令执行第二方面任一项的方法。
第七方面,本申请提供一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行上述任意方法实施例所示的数据处理方法。
第八方面,本申请提供一种计算机程序产品,该计算机程序产品包括计算机执行指令,该计算机执行指令存储在计算机可读存储介质中。至少一个处理器可以从计算机可读存储介质读取该计算机执行指令,执行该计算机执行指令执行上述任意方法实施例所示的数据处理方法。
第九方面,本申请提供一种芯片系统,该芯片系统包括处理器,用于支持实现上述任意方法实施例中所涉及的功能,例如,例如生成或处理上述方法中所涉及的数据和/或信息。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器,用于保存必要的程序指令和数据。该芯片系统,可以由芯片构成,也可以包含芯片和其他分立器件。
本申请提供的数据处理方法、装置及设备,会话管理功能网元可以从外部网元获取得到终端设备的MAC地址和IP地址,并向第一用户面功能网元发送终端设备的MAC地址和IP地址,以使第一用户面功能网元可以根据MAC地址和IP地址发送ARP消息,在ARP消息到达局域网的交换机之后,在交换机处理ARP消息的过程中,可以学习得到对应的MAC地址表,这样,即使局域网中应用服务器主动向终端设备发送下行数据,或者,终端设备发生位移之后接入新的用户面功能网元,交换机依然可以根据接收到的ARP消息学习得到最新的MAC地址表,并根据学习得到的MAC地址表将下行数据发送至正确的用户面功能网元,并由用户面功能网元向终端设备转发下行数据,避免了下行数据发生丢失,进而提高了数据传输的可靠性。
附图说明
图1为本申请提供的通信系统的架构图;
图2为本申请提供的数据处理方法的流程示意图一;
图3为本申请提供的数据处理方法的流程示意图二;
图4为本申请提供的数据处理方法的流程示意图三;
图5为本申请提供的数据处理方法的流程示意图四;
图6为本申请提供的数据处理方法的流程示意图五;
图7为本申请提供的一种数据处理装置的结构示意图一;
图8为本申请提供的一种数据处理装置的结构示意图二;
图9为本申请提供的另一种数据处理装置的结构示意图一;
图10为本申请提供的另一种数据处理装置的结构示意图二;
图11为本申请提供的会话管理功能网元的结构示意图;
图12为本申请提供的用户面功能网元的结构示意图。
具体实施方式
图1为本申请提供的通信系统的架构图。请参见图1,通信系统可包括终端设备(User Equipment,简称UE)101、接入网(Access Network,简称AN)节点102、UPF网元103、接入和移动性管理功能(Access and Mobility Management Function,简称AMF)网元107、会话管理功能(Session management Function,简称SMF网元)网元108。通过UPF 103,可连接至局域网。其中,局域网包括交换机104、应用服务器105、数据网络验证、授权和记账(Data Network Authentication-Authorization-Accounting,DN-AAA)服务器106。DN-AAA服务器106可以为局域网内的网元,或者,也可以为5G网络中的网元。
可选的,UE101可以为移动电话(或称为“蜂窝”电话)或具有移动终端的计算机,例如,可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置等。此外,UE也可称为移动台(mobile station,MS),终端(terminal),终端设备(terminal equipment),本申请并不在此限制。
AN节点102可以为向终端设备提供无线接入的设备,包括但不限于演进型Node B(Evolved Node B,简称eNB)、无线保真访问接入点(WIreless-FIdelity AccessPoint,简称WiFi AP)、全球微波互联接入基地站(Worldwide Interoperability for Microwave Access Base Station,简称WiMAX BS)、5G网络中的基站(例如,gNodeB,gNB)等。
UPF网元103用于对报文进行处理,如对报文进行转发、统计等。UFP网元103还根据SMF网元的指示完成会话相关策略的执行。
交换机104用于对报文进行转发,例如,交换机104可以将从UPF网元103接收到的报文转发至对应的应用服务器105,并将从应用服务器105接收到的报文转发至对应的UPF网元103。
应用服务器105用于向UE101提供业务数据服务。
DN-AAA服务器106用于提供对会话建立的鉴权、授权等服务。
AMF网元107用于转发SMF网元与UE之间交互的消息,还用于负责移动网络中的移动性管理,如用户位置更新、用户注册网络、用户切换等。
SMF网元108主要负责移动网络中的会话管理,如会话建立、会话修改、会话释放等。
以上各网元既可以是在专用硬件上实现的网络元件,也可以是在专用硬件上运行的软件实例,或者是在适当平台上虚拟化功能的实例,例如,上述虚拟化平台可以为云平台。
在本申请中,会话管理功能网元可以从外部网元获取得到终端设备的MAC地址和MAC地址对应的互联网协议(Internet Protocol Address,IP)地址,并向用户面功能网元发送终端设备的MAC地址和IP地址,以使用户面功能网元发送ARP消息至局域网中的交换机。当ARP消息到达局域网中的交换机之后,在交换机处理ARP消息的过程中,可以学习得到对应的MAC地址表。这样,即使应用服务器主动向终端设备发送下行数据,或者,终端设备发生位移之后接入新的用户面功能网元,交换机依 然可以根据学习得到的MAC地址将下行数据发送至正确的用户面功能网元,并由用户面功能网元向终端设备转发下行数据,避免了下行数据发生丢失,进而提高了数据传输的可靠性。
下面,通过具体实施例对本申请所示的技术方案进行详细说明。需要说明的是,下面几个具体实施例可以相互结合,对于相同或相似的内容,在不同的实施例中不再进行重复说明。
图2为本申请提供的数据处理方法的流程示意图一。请参见图2,该方法可以包括:
S201、会话管理功能网元从外部网元获取终端设备的MAC地址以及MAC地址对应的IP地址。
可选的,会话管理功能网元可以为图1所示实施例中的SMF网元108。
可选的,外部网元可以为服务器。例如,服务器为DN-AAA服务器(如图1所示实施例中的DN-AAA服务器106)。外部网元还可以为UPF网元。
当然,外部网元还可以为其它网元,只要外部网元中存储或检测出终端设备的MAC地址和IP地址的对应关系即可,本申请外部网元不作具体限定。
下面,以外部网元为DN-AAA的服务器为例,介绍会话管理功能网元从外部网元获取终端设备的MAC地址、及MAC地址对应的IP地址的过程进行详细说明:
在终端设备请求会话管理功能网元建立会话的过程中,需要由DN-AAA服务器对会话进行鉴权。在DN-AAA服务器进行会话鉴权的过程中,DN-AAA服务器为终端设备分配IP地址,并存储该终端设备的MAC地址和IP地址的对应关系。
可选的,可以在DN-AAA服务器为终端设备分配IP地址之后,向会话管理功能网元发送终端设备的MAC地址和IP地址。
可选的,也可以在会话管理功能网元需要使用终端设备的MAC地址和IP地址时,向外部网元发送第一请求消息,以请求从外部网元获取终端设备的MAC地址和IP地址。例如,当会话管理功能网元需要发送该终端设备对应的ARP消息时、或者会话管理功能网元收到其它网元(例如第一用户面功能网元)的请求消息时,会话管理功能网元向外部网元请求获取终端设备的MAC地址和IP地址。当然,会话管理功能网元还可以在其它场景下向外部网元请求获取终端设备的MAC地址和IP地址,本申请对此不作具体限定。
S202、会话管理功能网元向第一用户面功能网元发送MAC地址和IP地址。
可选的,第一用户面功能网元为当前向终端设备提供服务的用户面功能网元,即,第一用户面功能网元为终端设备当前接入的用户面功能网元。例如,第一用户面功能网元可以为图1所示实施例中的UPF网元103。
可选的,会话管理功能网元可以在获取得到终端设备的MAC地址和IP地址之后,向第一用户面功能网元发送终端设备的MAC地址和IP地址。会话管理功能网元也可以在接收到第一用户面功能网元发送的请求消息之后,再向第一用户面功能网元发送终端设备的MAC地址和IP地址。本申请对会话管理功能网元向第一用户面功能网元发送MAC地址和IP地址的时刻不作具体限定。
可选的,会话管理功能网元可以向第一用户面功能网元发送MAC地址和IP地址, MAC地址和IP地址用于ARP消息的生成。或者,会话管理功能网元也可以向第一用户面功能网元发送ARP消息,并在ARP消息中携带终端设备的MAC地址和IP地址。
S203、第一用户面功能网元根据MAC地址和IP地址发送ARP消息。
其中,ARP消息中包括MAC地址和IP地址。
可选的,ARP消息可以为ARP应答消息。
可选的,当第一用户面功能网元直接接收到MAC地址和IP地址且第一用户面功能网元具有ARP代理功能时,第一用户面功能网元可以根据MAC地址和IP地址生成ARP消息,并发送生成的ARP消息,该ARP消息中包括终端设备的MAC地址和IP地址。
可选的,一个网元具有ARP代理功能是指,该网元具有代替其它网元发送ARP消息的功能,其中,ARP消息中包括其它网元的MAC地址和IP地址,即,ARP消息的源IP地址为其它网元的IP地址,ARP消息的源MAC地址为其它网元的MAC地址。
可选的,当该网元接收到的ARP请求消息的目的地址为其它网元时,则该网元代替其它网元发送ARP应答消息。当该网元接收到其它网元的MAC地址和IP地址时,该网元替代其它网元发送ARP消息,此时,该ARP消息可以为免费ARP报文。
例如,当第一用户面功能网元具有ARP代理功能时,则第一用户面功能网元可以代替终端设备发送ARP消息,且ARP消息携带终端设备的MAC地址和IP地址(即,ARP消息的源MAC地址为终端设备MAC地址,源IP地址为终端设备的IP地址)。其中,在第一用户面功能网元接收到发往终端设备的ARP请求消息时,则第一用户面功能网元代替终端设备发送ARP应答消息。在第一用户面功能网元接收到终端设备的IP地址和MAC地址时,则第一用户面功能网元代替终端设备发送ARP消息。
可选的,当第一用户面功能网元接收到携带MAC地址和IP地址的ARP消息时,则第一用户面功能网元转发接收到的ARP消息。
需要说明的是,在第一用户面发送ARP消息之后,ARP消息会先到达局域网中的交换机,由于该ARP消息为上行数据,因此,交换机可以根据该ARP消息学习得到最新的MAC地址表。其中,交换机根据上行数据学习MAC地址表的过程可以参见现有技术,本申请对此不再进行重复说明。
还需要说明的是,在执行图2所示的实施例之前,可以由会话管理功能网元判断用户面功能网元与交换机之间互发的数据包是否为以太数据包。在会话管理功能网元确定用户面功能网元与交换机之间互发的数据包为以太数据包时,会话管理功能网元再指示用户面功能网元检测以太数据包是否为IP类型的数据包,在用户面功能网元检测得到以太数据包为IP类型的数据包时,再执行图2所示的实施例。例如,用户面功能网元可以判断以太数据包中是否包括IP地址,若是,则确定以太数据包为IP类型的数据包,若否,则确定以太数据包为非IP类型的数据包。
本申请提供的数据处理方法,会话管理功能网元可以从外部网元获取得到终端设备的MAC地址和IP地址,并向第一用户面功能网元发送终端设备的MAC地址和IP地址,以使第一用户面功能网元可以根据MAC地址和IP地址发送ARP消息,在ARP消息到达局域网的交换机之后,在交换机处理ARP消息的过程中,可以学习得到对应的MAC地址表,这样,即使局域网中应用服务器主动向终端设备发送下行数据,或 者,终端设备发生位移之后接入新的用户面功能网元,交换机依然可以根据接收到的ARP消息学习得到最新的MAC地址表,并根据学习得到的MAC地址表将下行数据发送至正确的用户面功能网元,并由用户面功能网元向终端设备转发下行数据,避免了下行数据发生丢失,进而提高了数据传输的可靠性。
在上述任意一个实施例的基础上,在实际应用过程中,在不同的场景下,使得交换机学习最新的MAC地址表的交互过程不同。下面,结合图3-图6所示的实施例,对在不同场景下使得交换机学习得到最新的MAC地址表的过程进行详细说明。
在图3-图4所示的实施例中,应用场景为:局域网中的应用服务器主动下发下行数据时,交换机学习最新的MAC地址表。
在图5-图6所示的实施例中,应用场景为:终端设备发生位移并选择了新的UPF网元时,交换机学习最新的MAC地址表。其中,图5-图6实施例中所涉及的会话的业务和会话连续性(Service and session continuity,简称SSC)模式为SSC模式2。即,在终端设备重建会话时,先释放旧的会话,再建立新的会话。
图3为本申请提供的数据处理方法的流程示意图二。在图3所示的实施例中,以会话管理功能网元为SMF网元、用户面功能网元为UPF网元为例进行说明,且第一UPF网元具有ARP代理功能。请参见图3,该方法可以包括:
S301、SMF网元向DN-AAA服务器订阅终端设备的MAC地址和IP地址。
其中,在SMF网元向DN-AAA服务器订阅终端设备的MAC地址和IP地址之后,当DN-AAA服务器为终端设备分配IP地址之后,便主动向SMF网元发送终端设备的MAC地址和IP地址。
可选的,AMF服务器可以通过调用服务的方式向DN-AAA服务器订阅终端设备的MAC地址和IP地址。
需要说明的是,在S301之前,SMF网元可以先确定用户面功能网元与交换机之间互发的数据包为以太数据包,且第一UPF网元确定该以太数据包为IP类型的数据包。
S302、DN-AAA服务器向SMF网元发送终端设备的MAC地址和IP地址。
可选的,在建立终端设备的会话的过程中,在DN-AAA服务器对终端设备的会话进行鉴权时,DN-AAA服务器可以为终端设备分配新的IP地址。在DN-AAA服务器为终端设备分配新的IP地址之后,DN-AAA服务器可以根据SMF网元的订阅,向SMF网元发送该终端设备的MAC地址和IP地址。
可选的,在SMF网元向DN-AAA服务器发送一次订阅请求之后,只要DN-AAA服务器为终端设备分配新的IP地址,均可以为向SMF网元发送终端设备的MAC地址和IP地址。
S303、SMF网元向第一UPF网元发送终端设备的MAC地址和IP地址。
其中,第一UPF网元为当前为终端设备服务的UPF网元。
可选的,在S303之前,第一UPF网元还可以向SMF网元发送请求消息,并在请求消息中携带终端设备的标识,SMF网元可以根据请求消息向第一UPF网元发送终端设备的MAC地址和IP地址。
可选的,可以在S302之后执行S303,即,SMF网元可以在获取得到终端设备 MAC地址和IP地址之后,向第一UPF网元发送终端设备的MAC地址和IP地址。
可选的,SMF网元还可以在接收到第一UPF网元发送的请求消息之后执行S303。例如,第一UPF网元可以在接收到ARP请求消息(S305)之后再向SMF网元发送请求消息,该请求消息用于请求从SMF网元获取终端设备的MAC地址和IP地址。
需要说明的是,还可以在其它时刻执行S303,即,SMF网元还可以在其它时刻向第一UPF网元发送终端设备的MAC地址和IP地址,本申请对S303的执行时刻不作具体限定。
通过S301-S303,第一UPF网元可以获取得到终端设备的MAC地址和IP地址。当然,第一UPF网元还可以通过其它可行的实现方式获取得到终端设备的MAC地址和IP地址,本申请对此不作具体限定。
S304、应用服务器向交换机发送终端设备对应的ARP请求消息。
其中,ARP请求消息的源IP地址为应用服务器的IP地址,目的IP地址终端设备的IP地址。源MAC地址为应用服务器的MAC地址,目的MAC地址为广播目的MAC地址。如,该广播目的MAC地址可以为FFFF-FFFF-FFFF。
可选的,应用服务器可以在需要主动向终端设备发送下行数据时,向交换机发送ARP请求消息。
S305、交换机广播ARP请求消息。
在交换机广播ARP请求消息之后,与交换机连接的UPF网元可以接收到该ARP请求消息。
在交换机接收该ARP请求消息后,交换机可以学习MAC地址表。例如,假设交换机通过端口1接收到该ARP请求消息,则交换机可以根据该ARP请求消息学习得到的MAC地址表如表1所示:
表1
Figure PCTCN2018106032-appb-000001
需要说明的是,表1只是以示例的形式示意MAC地址表,并非对MAC地址表的格式以及MAC地址表中包括的内容的限定。
S306、第一UPF网元根据终端设备的MAC地址和IP地址,生成ARP响应消息。
其中,ARP响应消息中包括终端设备的IP地址和MAC地址。
其中,ARP响应消息的源IP地址为终端设备的IP地址,目的IP地址应用服务器的IP地址。源MAC地址为终端设备的MAC地址,目的MAC地址为应用服务器的MAC地址。
需要说明的是,至少一个UPF网元接收到ARP请求消息之后,只有能够获取得到终端设备的MAC地址和IP地址的UPF网元才可以生成ARP响应消息。其中,只有为终端设备服务的UPF网元才可以获取得到终端设备的MAC地址和IP地址。因此,在交换机广播ARP请求消息之后,只有为终端设备提供服务且具有ARP代理功能的第一UPF网元才可以生成ARP响应消息。
还需要说明的是,若SMF网元获取得到终端设备的MAC地址和IP地址之后,未 向第一UPF网元发送终端设备的MAC地址和IP地址(未执行S303),则在S306之前,第一UPF网元还可以向SMF网元请求获取终端设备的MAC地址和IP地址。
S307、第一UPF网元向交换机发送ARP响应消息。
其中,ARP响应消息的源IP地址为终端设备的IP地址,目的IP地址为应用服务器的IP地址,源MAC地址为终端设备的MAC地址,目的MAC地址为应用服务器的MAC地址。
S308、交换机根据ARP响应消息学习得到最新的MAC地址表。
假设第一UPF网元和交换机之间通过端口2连接。交换机通过端口2接收到该ARP响应消息,由于该ARP响应消息的源MAC地址为终端设备的MAC地址,因此,在表1所示的MAC地址表的基础上,交换机可以学习得到表2所示的MAC地址表:
表2
Figure PCTCN2018106032-appb-000002
由表2可知,当交换机通过端口1接收应用服务器发往该终端设备的下行报文(源MAC地址为应用服务器的MAC地址,目的MAC地址为终端设备的MAC地址)时,交换机可以根据表2所示MAC地址表将报文通过端口2转发到第一UPF上;当交换机通过端口号2接收到终端设备发送应用服务器的上行报文(源MAC地址为终端设备的MAC地址,目的MAC地址为应用服务器的MAC地址)时,交换机可以根据表2所示的MAC地址表将报文通过端口1转发到应用服务器上。
需要说明的是,表2只是以示例的形式示意MAC地址表,并非对MAC地址表的格式以及内容的限定。
需要说明的是,通过S304-S308,交换机可以学习得到最新的MAC地址表。当然,交换机还可以通过其它交互流程学习得到最新的MAC地址表,本申请对此不作具体限定。
S309、交换机向应用服务器发送ARP响应消息。
S310、应用服务器根据ARP响应消息,获取得到终端设备的MAC地址。
通过S309-S310,应用服务器可以获取得到终端设备的MAC地址,这样,应用服务器可以成功向终端设备发送下行数据包。
S311、应用服务器根据终端设备的MAC地址,向交换机发送下行数据包。
其中,下行数据包的目的MAC地址为终端设备的MAC地址。
S312、交换机根据学习得到的最新的MAC地址表,向第一UPF网元发送下行数据包。
例如,请参见表2,在交换机通过端口号1接收到应用服务器发给终端设备的下行数据包之后,根据MAC地址表,可以确定通过端口2将该下行数据包发送出去,以使该下行数据包可以发送至第一UPF网元。
S313、第一UPF网元向终端设备发送下行数据包。
在图3所示的实施例中,SMF网元可以从DN-AAA服务器获取得到终端设备的MAC地址和IP地址,第一UPF网元可以从SMF网元获取得到终端设备的MAC地址和IP地址。当应用服务器需要主动向终端设备发送下行数据包时,应用服务器可以先发送广播的ARP请求消息。在第一UPF网元接收到ARP请求消息之后,由于第一UPF网元具有ARP代理功能且第一UPF网元可以获取得到终端设备的MAC地址和IP地址,因此,第一UPF网元生成ARP应答消息,并向交换机发送ARP应答消息。ARP应答消息为上行报文,因此,交换机可以根据ARP应答消息学习得到最新的MAC地址表,交换机还可以将该ARP应答消息发送给应用服务器,以使应用服务器在ARP应答消息中获取得到终端设备的MAC地址。在应用服务器获取得到终端设备的MAC地址之后,可以保证应用服务器可以根据终端设备的MAC地址,向终端设备发送下行数据包。由于交换机学习得到了最新的MAC地址表,因此,交换机接收到应用服务器发送的下行数据包之后,可以将下行数据包转发至正确的UPF网元,以使正确的UPF网元可以成功的向终端设备转发下行数据包,避免了下行数据包的丢失,进而提高了数据传输的可靠性。
图4为本申请提供的数据处理方法的流程示意图三。在图4所示的实施例中,以会话管理功能网元为SMF网元、用户面功能网元为UPF网元为例进行说明,且第一UPF网元不具备ARP代理功能,SMF网元具备ARP代理功能。请参见图4,该方法可以包括:
S401、SMF网元向DN-AAA服务器订阅终端设备的MAC地址和IP地址。
S402、DN-AAA服务器向SMF网元发送终端设备的MAC地址和IP地址。
需要说明的是,S401-S402的执行过程可以参见S301-S302,本申请此处不再进行赘述。
S403、应用服务器向交换机发送终端设备对应的ARP请求消息。
S404、交换机广播ARP请求消息。
需要说明的是,S403-S404的执行过程可以参见S304-S305,本申请此处不再进行赘述。
S405、第一UPF网元向SMF网元发送ARP请求消息。
需要说明的是,多个UPF网元接收到ARP请求消息之后,只有为终端设备服务的第一UPF网元才处理该ARP请求消息,即,只有第一UPF网元才向SMF网元发送ARP请求消息。
由于第一UPF网元不具备ARP代理功能,因此,第一UPF网元收到ARP请求消息之后,转发ARP请求消息。
S406、SMF网元根据终端设备的MAC地址和IP地址,生成ARP响应消息。
其中,ARP响应消息中包括终端设备的IP地址和MAC地址。
其中,ARP响应消息的源IP地址为终端设备的IP地址,目的IP地址应用服务器的IP地址。源MAC地址为终端设备的MAC地址,目的MAC地址为应用服务器的MAC地址。
S407、SMF网元向第一UPF网元发送ARP响应消息。
S408、第一UPF网元向交换机发送ARP响应消息。
S409、交换机根据ARP响应消息学习得到最新的MAC地址表。
需要说明的是,S409的执行过程可以参见S308,本申请此处不再进行赘述。
需要说明的是,通过S403-S409,交换机可以学习得到最新的MAC地址表。当然,交换机还可以通过其它交互流程学习得到最新的MAC地址表,本申请对此不作具体限定。
S410、交换机向应用服务器发送ARP响应消息。
S411、应用服务器根据ARP响应消息,获取得到终端设备的MAC地址。
通过S410-S411,应用服务器可以获取得到终端设备的MAC地址,这样,应用服务器可以成功向终端设备发送下行数据包。
S412、应用服务器根据终端设备的MAC地址,向交换机发送下行数据包。
其中,下行数据包的目的MAC地址为终端设备的MAC地址。
S413、交换机根据学习得到的最新的MAC地址表,向第一UPF网元发送下行数据包。
S414、第一UPF网元向终端设备发送下行数据包。
在图4所示的实施例中,SMF网元可以从DN-AAA服务器获取得到终端设备的MAC地址和IP地址。当应用服务器需要主动向终端设备发送下行数据包时,应用服务器可以先发送广播的ARP请求消息。在第一UPF网元接收到ARP请求消息之后,由于第一UPF网元不具有ARP代理功能,则第一UPF网元向SMF网元发送该ARP请求消息,SMF网元具有ARP代理功能且SMF网元可以获取得到终端设备的MAC地址和IP地址,因此,SMF网元生成ARP应答消息,并向第一UPF网元发送ARP应答消息,第一UPF网元向交换机发送ARP应答消息。ARP应答消息为上行报文,因此,交换机可以根据ARP应答消息学习得到最新的MAC地址表,交换机还可以将该ARP应答消息发送给应用服务器,以使应用服务器在ARP应答消息中获取得到终端设备的MAC地址。在应用服务器获取得到终端设备的MAC地址之后,可以保证应用服务器可以根据终端设备的MAC地址,向终端设备发送下行数据包。由于交换机学习得到了最新的MAC地址表,因此,交换机接收到应用服务器发送的下行数据包之后,可以将下行数据包转发至正确的UPF网元,以使正确的UPF网元可以成功的向终端设备转发下行数据包,避免了下行数据包的丢失,进而提高了数据传输的可靠性。
图5为本申请提供的数据处理方法的流程示意图四。在图5所示的实施例中,以会话管理功能网元为SMF网元、用户面功能网元为UPF网元为例进行说明,假设终端设备位移之前选择的UPF网元为第二UPF网元,终端设备位移之后选择的UPF网元为第一UPF网元,且第一UPF网元具有ARP代理功能。请参见图5,该方法可以包括:
S501、SMF网元向DN-AAA服务器订阅终端设备的MAC地址和IP地址。
S502、DN-AAA服务器向SMF网元发送终端设备的MAC地址和IP地址。
需要说明的是,S501-S502的执行过程可以参见S301-S302,本申请此处不再进行赘述。
S503、SMF网元判断终端设备建立新会话时,SMF网元向第一UPF网元发送终 端设备的MAC地址和IP地址。
可选的,在终端设备发生位移之后,当SMF网元检测到终端设备移出了原UPF网元的服务范围时,则SMF网元为终端设备选择新的UPF网元,并为终端设备建立新会话。
当然,SMF网元也可以在为终端设备选择新的第一UPF网元时,向第一UPF网元发送终端设备的MAC地址和IP地址。
可选的,在SMF网元判断终端设备建立新的会话时,可以先确定当前为终端设备提供服务的第一UPF网元,再向第一UPF网元发送终端设备的MAC地址和IP地址。
S504、第一UPF网元根据终端设备的MAC地址和IP地址,生成ARP消息。
由于第一UPF网元具有ARP代理功能,因此,在第一UPF网元接收到终端设备MAC地址和IP地址之后,生成ARP消息。
其中,ARP消息的目的IP地址为终端设备的IP地址,源IP地址为终端设备IP地址,源MAC地址为终端设备的MAC地址,目的MAC地址为广播MAC地址。
可选的,ARP消息可以为免费ARP报文,该免费ARP报文为广播报文。
S505、第一UPF网元向交换机发送ARP消息。
S506、交换机根据ARP消息,更新MAC地址表。
例如,假设在终端设备位移之前,交换机中的MAC地址表如表3所示:
表3
Figure PCTCN2018106032-appb-000003
其中,应用服务器通过端口1与交换机连接,第二UPF通过端口2与交换机连接。
假设第一UPF网元通过端口3与交换机连接,则交换机通过端口3接收到第一UPF网元发送的ARP消息。由于该ARP消息的源MAC地址为终端设备的MAC地址,则交换机根据该ARP消息,可以将表3所示的MAC地址表更为表4所示的MAC地址表:
表4
Figure PCTCN2018106032-appb-000004
由表4所示的MAC地址表可知,当交换机通过端口号1接收应用服务器发往该终端设备的下行报文(源MAC地址为应用服务器的MAC地址,目的MAC地址为终端设备的MAC地址)时,根据MAC地址表将报文通过端口3转发到第一UPF上;当交换机通过端口号3接收到终端设备发送应用服务器的上行报文(源MAC地址为终端设备的MAC地址,目的MAC地址为应用服务器的MAC地址)时,根据MAC地址表将报文通过端口号1转发到应用服务器上。
S507、应用服务器向交换机发送下行数据包。
其中,下行数据包的目的MAC地址为终端设备的MAC地址。
S508、交换机根据更新后的MAC地址表,向第一UPF网元发送下行数据包。
例如,请参见表4,在交换机通过端口号1接收到应用服务器发送给终端设备的下行数据包之后,根据MAC地址表,可以确定端口3将该下行数据包发送出去,以使该下行数据包可以发送至第一UPF网元。
S509、第一UPF网元向终端设备发送下行数据包。
需要说明的是,在图5所示的实施例中,当第一UPF网元不具备ARP代理功能时,还可以由SMF网元生成ARP消息,其中,SMF网元生成ARP消息的过程可以参见图4所示的实施例,本申请此处不再进行赘述。
在图5所示的实施例中,SMF网元可以从DN-AAA服务器获取得到终端设备的MAC地址和IP地址。在终端设备发生位移且选择了新的第一UPF网元之后,SMF网元向第一UPF网元发送终端设备的MAC地址和IP地址。由于第一UPF网元具有ARP代理功能且第一UPF网元获取得到了终端设备的MAC地址和IP地址,因此,第一UPF网元可以发送APR消息。ARP消息为上行报文,因此,交换机可以根据ARP消息更新MAC地址表。这样,在终端设备移动之后,在应用服务器向终端设备发送下行数据包时,交换机可以根据更新后的MAC地址表,将下行数据包转发至正确的UPF网元(终端设备位移之后选择的第一UPF网元),以使正确的UPF网元可以成功的向终端设备转发下行数据包,避免了下行数据包的丢失,进而提高了数据传输的可靠性。
图6为本申请提供的数据处理方法的流程示意图五。在图6所示的实施例中,以会话管理功能网元为SMF网元、用户面功能网元为UPF网元为例进行说明,假设终端设备位移之前选择的UPF网元为第二UPF网元,终端设备位移之后选择的UPF网元为第一UPF网元,且第一UPF网元具有ARP代理功能。请参见图6,该方法可以包括:
S601、在终端设备位移之前,第二UPF网元获取终端设备的IP地址和MAC地址。
可选的,第二UPF网元可以通过监测数据包获取终端设备的MAC地址和IP地址。
S602、第二UPF网元向SMF网元发送终端设备的MAC地址和IP地址。
可选的,在SMF网元接收到终端设备的MAC地址和IP地址之后,可以存储终端设备的MAC地址和IP地址。
S603、SMF网元判断终端设备建立新会话时,SMF网元向第一UPF网元发送终端设备的MAC地址和IP地址。
S604、第一UPF网元根据终端设备的MAC地址和IP地址,生成ARP消息。
其中,ARP消息中包括终端设备的MAC地址和IP地址。
S605、第一UPF网元向交换机发送ARP消息。
S606、交换机根据ARP消息,更新MAC地址表。
需要说明的是,S603-S606与S607-S609为相互独立的过程,在S606之后,不一定必须执行S607。
S607、应用服务器向交换机发送下行数据包。
其中,下行数据包的目的MAC地址为终端设备的MAC地址。
S608、交换机根据更新后的MAC地址表,向第一UPF网元发送下行数据包。
S609、第一UPF网元向终端设备发送下行数据包。
需要说明的是,S603-S609的执行过程可以参见S503-S509,本申请此处不再进行赘述。
需要说明的是,在图6所示的实施例中,当第一UPF网元不具备ARP代理功能时,还可以由SMF网元生成ARP消息,其中,SMF网元生成ARP消息的过程可以参见图4所示的实施例,本申请此处不再进行赘述。
在图6所示的实施例中,在终端设备移动之前,终端设备选择的第二UPF网元可以获取终端设备的MAC地址和IP地址,并将终端设备的MAC地址和IP地址发送给SMF网元。在终端设备发生位移且选择了新的第一UPF网元之后,SMF网元向第一UPF网元发送终端设备的MAC地址和IP地址。由于第一UPF网元具有ARP代理功能且第一UPF网元获取得到了终端设备的MAC地址和IP地址,因此,第一UPF网元可以发送APR消息。ARP消息为上行报文,因此,交换机可以根据ARP消息更新MAC地址表。这样,在终端设备移动之后,在应用服务器向终端设备发送下行数据包时,交换机可以根据更新后的MAC地址表,将下行数据包转发至正确的UPF网元(终端设备位移之后选择的第一UPF网元),以使正确的UPF网元可以成功的向终端设备转发下行数据包,避免了下行数据包的丢失,进而提高了数据传输的可靠性。
需要说明的是,上述实施例均是在用户面功能网元检测到以太数据包为IP类型数据包时所采用的方案。当用户面功能网元检测得到以太数据包为非IP类型的数据包时,可以通过如下可行的实现方式使得交换机学习得到最新的MAC地址表,可以至少通过如下两种可行的实现方式实现:
一种可行的实现方式:
假设终端设备移动之前选择的UPF网元为第二UPF网元,终端设备移动之后选择的网元为第一UPF网元。
可选的,在SMF网元检测到终端设备建立新的会话之后,SMF网元确定为终端设备提供服务的UPF网元为第一UPF网元,SMF网元向终端设备发送指示信息,该指示信息用于指示终端设备发送上行数据包。终端设备根据指示信息发送上行数据包,该上行数据包可以为广播包,上行数据包的源MAC地址可以为终端设备的MAC地址。可选的,终端设备可以通过多媒体访问控制地址注册(Multiple MAC Registration Protocol,MMRP)协议发送上行数据包,该上行数据包为上行通用包。
该上行数据包会通过第一UPF网元发送给局域网中的交换机,交换机根据该上行数据包更新MAC地址表。当应用服务器向终端设备发送下行数据包时,交换机可以根据更新后的MAC地址表,将下行数据包发送至第一UPF网元,以使第一UPF网元可以成功的将下行数据包转发至终端设备,避免了下行数据包的丢失,进而提高了数据传输的可靠性。
另一种可行的实现方式:
假设终端设备移动之前选择的UPF网元为第二UPF网元,终端设备移动之后选择的网元为第一UPF网元。
可选的,在SMF网元检测到终端设备建立新的会话之后,SMF网元确定为终端 设备提供服务的UPF网元为第一UPF网元,SMF网元向第一UPF网元发送指示信息,该指示信息用于指示第一UPF网元发送上行数据包。第一UPF网元根据指示信息发送上行数据包,上行数据包的源MAC地址可以为终端设备的MAC地址,上行数据包的目的MAC地址可以为交换机的MAC地址。可选的,第一UPF网元可以通过MMRP协议发送上行数据包,该上行数据包为上行通用包。
在交换机接收到该上行数据包之后,交换机根据该上行数据包更新MAC地址表。这样,当应用服务器向终端设备发送下行数据包时,交换机可以根据更新后的MAC地址表,将下行数据包发送至第一UPF网元,以使第一UPF网元可以成功的将下行数据包转发至终端设备,避免了下行数据包的丢失,进而提高了数据传输的可靠性。
图7为本申请提供的一种数据处理装置的结构示意图一。请参见图7,该装置可以包括获取模块11和发送模块12,其中,
所述获取模块11用于,从外部网元获取终端设备的媒体访问控制MAC地址以及所述MAC地址对应的互联网协议IP地址;
所述发送模块12用于,向第一用户面功能网元发送所述MAC地址和所述IP地址,所述MAC地址和所述IP地址用于地址解析协议ARP消息的发送,所述ARP消息包括所述MAC地址和所述IP地址。
本申请提供的数据处理装置可以执行上述方法实施例所示的技术方案,其实现原理以及有益效果类似,此处不再进行赘述。
在一种可能的实施方式中,所述获取模块11具体用于:
从服务器获取所述MAC地址和所述IP地址。
在另一种可能的实施方式中,所述发送模块12还用于,在所述获取模块从服务器获取所述MAC地址和所述IP地址之前,向所述服务器发送第一请求消息,所述第一请求消息用于请求获取所述终端设备的MAC地址和所述终端设备的IP地址。
在另一种可能的实施方式中,所述服务器为数据网络验证、授权和记账DN-AAA服务器。
在另一种可能的实施方式中,所述获取模块11具体用于:
从第二用户面功能网元接收所述IP地址和所述MAC地址;
其中,所述第一用户面功能网元为所述终端设备移动后选择的用户面功能网元,所述第二用户面功能网元为所述终端设备移动前选择的用户面功能网元。
在另一种可能的实施方式中,所述MAC地址和所述IP地址还用于ARP消息的生成。
图8为本申请提供的一种数据处理装置的结构示意图二。在图7所示实施例的基础上,请参见图8,所述装置还包括生成模块13,其中,
所述生成模块13用于,生成所述APR消息;
所述发送模块12具体用于,向所述第一用户面功能网元发送包含所述MAC地址和所述IP地址的所述ARP消息。
本申请提供的数据处理装置可以执行上述方法实施例所示的技术方案,其实现原理以及有益效果类似,此处不再进行赘述。
在图7-图8所示的实施例中,可选的,获取模块11可以执行上述图2实施例中的 S201、图3所示实施例中的S301-S302、图4所示实施例中的S401-S402、图5所示实施例中的S501-S502以及图6所示实施例中的S602,具体执行过程及对应的有益效果可以参见方法实施例中的描述,此处不再进行赘述。
可选的,发送模块12可以执行上述图2实施例中的S202、图3所示实施例中的S303、图4所示实施例中的S407、图5所示实施例中的S503以及图6所示实施例中的S603,具体执行过程及对应的有益效果可以参见方法实施例中的描述,此处不再进行赘述。
可选的,生成模块13可以执行上述图3所示实施例中的S306以及图4所示实施例中的S406,具体执行过程及对应的有益效果可以参见方法实施例中的描述,此处不再进行赘述。
图9为本申请提供的另一种数据处理装置的结构示意图一。请参见图9,该装置可以包括接收模块21和发送模块22,其中,
所述接收模块21用于,从会话管理功能网元接收媒体访问控制MAC地址和所述MAC地址对应的互联网协议IP地址;
所述发送模块22用于,根据所述MAC地址和所述IP地址发送地址解析协议ARP消息,所述ARP消息中包括所述MAC地址和所述IP地址。
本申请提供的数据处理装置可以执行上述方法实施例所示的技术方案,其实现原理以及有益效果类似,此处不再进行赘述。
图10为本申请提供的另一种数据处理装置的结构示意图二。在图9所示实施例的基础上,请参见图10,所述装置还包括生成模块23,其中,
所述生成模块23用于,根据所述MAC地址和所述IP地址,生成所述ARP消息;
所述发送模块22具体用于,发送所述ARP消息。
在另一种可能的实施方式中,所述接收模块21具体用于,从所述会话管理功能网元接收所述ARP消息,所述ARP消息中包括所述MAC地址和所述IP地址;
所述发送模块22具体用于,转发所述ARP消息。
本申请提供的数据处理装置可以执行上述方法实施例所示的技术方案,其实现原理以及有益效果类似,此处不再进行赘述。
在图9-图10所示的实施例中,可选的,接收模块21可以执行上述图2实施例中的S202、图3所示实施例中的S303、图4所示实施例中的S407、图5所示实施例中的S503以及图6所示实施例中的S603,具体执行过程及对应的有益效果可以参见方法实施例中的描述,此处不再进行赘述。
可选的,发送模块22可以执行上述图2实施例中的S203、图3所示实施例中的S307、图4所示实施例中的S408、图5所示实施例中的S505以及图6所示实施例中的S605,具体执行过程及对应的有益效果可以参见方法实施例中的描述,此处不再进行赘述。
可选的,生成模块23可以执行上述图3所示实施例中的S306、图5所示实施例中的S504以及图6所示实施例中的S604,具体执行过程及对应的有益效果可以参见方法实施例中的描述,此处不再进行赘述。
图11为本申请提供的会话管理功能网元的结构示意图。请参见图11,包括处理 器31、存储器32及通信总线33,所述通信总线33用于实现各元器件之间的连接,所述存储器32用于存储程序指令,所述处理器31用于读取所述存储器32中的程序指令,并根据所述存储器32中的程序指令执行图2-图6实施例所示的方法。可选的,处理器31可以执行图2-图6实施例中会话管理功能网元除了信息收发之外的其它处理。其实现原理以及有益效果类似,此处不再进行赘述。
图12为本申请提供的用户面功能网元的结构示意图。请参见图9,包括处理器41、存储器42及通信总线43,所述通信总线43用于实现各元器件之间的连接,所述存储器42用于存储程序指令,所述处理器41用于读取所述存储器42中的程序指令,并根据所述存储器42中的程序指令执行图2-图6实施例所示的方法。可选的,处理器41可以执行图2-图6实施例中用户面功能网元除了信息收发之外的其它处理。其实现原理以及有益效果类似,此处不再进行赘述。
本申请提供一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行上述任意方法实施例所示的数据处理方法。
本申请提供一种计算机程序产品,该计算机程序产品包括计算机执行指令,该计算机执行指令存储在计算机可读存储介质中。至少一个处理器可以从计算机可读存储介质读取该计算机执行指令,执行该计算机执行指令执行上述任意方法实施例所示的数据处理方法。
本申请提供一种芯片系统,该芯片系统包括处理器,用于支持实现上述任意方法实施例中所涉及的功能,例如,例如生成或处理上述方法中所涉及的数据和/或信息。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器,用于保存必要的程序指令和数据。该芯片系统,可以由芯片构成,也可以包含芯片和其他分立器件。
可以理解的是,图11和图12仅仅示出了上述设备的简化设计。在实际应用中,上述每个设备可以包含任意数量的发射器,接收器,处理器,控制器,存储器,通信单元等,而所有可以实现本申请的设备都在本申请的保护范围之内。
用于执行本申请上述会话管理功能网元或用户面功能网元中的处理器可以是中央处理器(CPU),通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC),现场可编程门阵列(FPGA)或者其他可编程逻辑器件、晶体管逻辑器件,硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。
结合本申请公开内容所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于RAM存储器、闪存、ROM存储器、EPROM存储器、EEPROM存储器、寄存器、硬盘、移动硬盘、CD-ROM或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。另外,该ASIC可以位于会话管理功能网元中。当然,处理器和存储介质也可以作为分立组件存在于会话管理功能网元或用户面功能网元中。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。
以上所述的具体实施方式,对本申请的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本申请的具体实施方式而已,并不用于限定本申请的保护范围,凡在本申请的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本申请的保护范围之内。

Claims (23)

  1. 一种数据处理方法,其特征在于,包括:
    会话管理功能网元从外部网元获取终端设备的媒体访问控制MAC地址以及所述MAC地址对应的互联网协议IP地址;
    所述会话管理功能网元向第一用户面功能网元发送所述MAC地址和所述IP地址,所述MAC地址和所述IP地址用于地址解析协议ARP消息的发送,所述ARP消息包括所述MAC地址和所述IP地址。
  2. 根据权利要求1所述的方法,其特征在于,会话管理功能网元从外部网元获取终端设备的媒体访问控制MAC地址以及所述MAC地址对应的互联网协议IP地址,包括:
    所述会话管理功能网元从服务器获取所述MAC地址和所述IP地址。
  3. 根据权利要求2所述的方法,其特征在于,所述会话管理功能网元从服务器获取所述MAC地址和所述IP地址之前,还包括:
    所述会话管理功能网元向所述服务器发送第一请求消息,所述第一请求消息用于请求获取所述终端设备的MAC地址和所述终端设备的IP地址。
  4. 根据权利要求2或3所述的方法,其特征在于,所述服务器为数据网络验证、授权和记账DN-AAA服务器。
  5. 根据权利要求1所述的方法,其特征在于,会话管理功能网元从外部网元获取终端设备的媒体访问控制MAC地址以及所述MAC地址对应的互联网协议IP地址,包括:
    所述会话管理功能网元从第二用户面功能网元接收所述IP地址和所述MAC地址;
    其中,所述第一用户面功能网元为所述终端设备移动后选择的用户面功能网元,所述第二用户面功能网元为所述终端设备移动前选择的用户面功能网元。
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述MAC地址和所述IP地址还用于ARP消息的生成。
  7. 根据权利要求1-5任一项所述的方法,其特征在于,所述会话管理功能网元向第一用户面功能网元发送所述MAC地址和所述IP地址,包括:
    所述会话管理功能网元生成所述APR消息,向所述第一用户面功能网元发送包含所述MAC地址和所述IP地址的所述ARP消息。
  8. 一种数据处理方法,其特征在于,包括:
    第一用户面功能网元从会话管理功能网元接收媒体访问控制MAC地址和所述MAC地址对应的互联网协议IP地址;
    所述第一用户面功能网元根据所述MAC地址和所述IP地址发送地址解析协议ARP消息,所述ARP消息中包括所述MAC地址和所述IP地址。
  9. 根据权利要求8所述的方法,其特征在于,所述第一用户面功能网元根据所述MAC地址和所述IP地址发送地址解析协议ARP消息,包括:
    所述第一用户面功能网元根据所述MAC地址和所述IP地址,生成所述ARP消息;
    所述第一用户面功能网元发送所述ARP消息。
  10. 根据权利要求8所述的方法,其特征在于,
    所述第一用户面功能网元从会话管理功能网元接收MAC地址和所述IP地址,包括:
    所述第一用户面功能网元从所述会话管理功能网元接收所述ARP消息,所述ARP消息中包括所述MAC地址和所述IP地址;
    所述第一用户面功能网元根据所述MAC地址和所述IP地址发送地址解析协议ARP消息,包括:
    所述第一用户面功能网元转发所述ARP消息。
  11. 一种数据处理装置,其特征在于,包括获取模块和发送模块,其中,
    所述获取模块用于,从外部网元获取终端设备的媒体访问控制MAC地址以及所述MAC地址对应的互联网协议IP地址;
    所述发送模块用于,向第一用户面功能网元发送所述MAC地址和所述IP地址,所述MAC地址和所述IP地址用于地址解析协议ARP消息的发送,所述ARP消息包括所述MAC地址和所述IP地址。
  12. 根据权利要求11所述的装置,其特征在于,所述获取模块具体用于:
    从服务器获取所述MAC地址和所述IP地址。
  13. 根据权利要求12所述的装置,其特征在于,所述发送模块还用于,在所述获取模块从服务器获取所述MAC地址和所述IP地址之前,向所述服务器发送第一请求消息,所述第一请求消息用于请求获取所述终端设备的MAC地址和所述终端设备的IP地址。
  14. 根据权利要求12或13所述的装置,其特征在于,所述服务器为数据网络验证、授权和记账DN-AAA服务器。
  15. 根据权利要求11所述的装置,其特征在于,所述获取模块具体用于:
    从第二用户面功能网元接收所述IP地址和所述MAC地址;
    其中,所述第一用户面功能网元为所述终端设备移动后选择的用户面功能网元,所述第二用户面功能网元为所述终端设备移动前选择的用户面功能网元。
  16. 根据权利要求11-15任一项所述的装置,其特征在于,所述MAC地址和所述IP地址还用于ARP消息的生成。
  17. 根据权利要求11-15任一项所述的装置,其特征在于,所述装置还包括生成模块,其中,
    所述生成模块用于,生成所述APR消息;
    所述发送模块具体用于,向所述第一用户面功能网元发送包含所述MAC地址和所述IP地址的所述ARP消息。
  18. 一种数据处理装置,其特征在于,包括接收模块和发送模块,其中,
    所述接收模块用于,从会话管理功能网元接收媒体访问控制MAC地址和所述MAC地址对应的互联网协议IP地址;
    所述发送模块用于,根据所述MAC地址和所述IP地址发送地址解析协议ARP消息,所述ARP消息中包括所述MAC地址和所述IP地址。
  19. 根据权利要求18所述的装置,其特征在于,所述装置还包括生成模块,其中,
    所述生成模块用于,根据所述MAC地址和所述IP地址,生成所述ARP消息;
    所述发送模块具体用于,发送所述ARP消息。
  20. 根据权利要求18所述的装置,其特征在于,
    所述接收模块具体用于,从所述会话管理功能网元接收所述ARP消息,所述ARP消息中包括所述MAC地址和所述IP地址;
    所述发送模块具体用于,转发所述ARP消息。
  21. 一种会话管理功能网元,其特征在于,包括:处理器、存储器及通信总线,所述通信总线用于实现各元器件之间的连接,所述存储器用于存储程序指令,所述处理器用于读取所述存储器中的程序指令,并根据所述存储器中的程序指令执行权利要求1-7任一项所述的方法。
  22. 一种用户面功能网元,其特征在于,包括:处理器、存储器及通信总线,所述通信总线用于实现各元器件之间的连接,所述存储器用于存储程序指令,所述处理器用于读取所述存储器中的程序指令,并根据所述存储器中的程序指令执行权利要求8-10任一项所述的方法。
  23. 一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行如权利要求1-10任意一项所述的方法。
PCT/CN2018/106032 2017-11-17 2018-09-17 数据处理方法、装置及设备 WO2019095837A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP18878802.0A EP3700142B1 (en) 2017-11-17 2018-09-17 Data processing method, apparatus and device
US16/874,074 US11212226B2 (en) 2017-11-17 2020-05-14 Data processing method and apparatus, and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711143738.3A CN109803029B (zh) 2017-11-17 2017-11-17 数据处理方法、装置及设备
CN201711143738.3 2017-11-17

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/874,074 Continuation US11212226B2 (en) 2017-11-17 2020-05-14 Data processing method and apparatus, and device

Publications (1)

Publication Number Publication Date
WO2019095837A1 true WO2019095837A1 (zh) 2019-05-23

Family

ID=66539968

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/106032 WO2019095837A1 (zh) 2017-11-17 2018-09-17 数据处理方法、装置及设备

Country Status (4)

Country Link
US (1) US11212226B2 (zh)
EP (1) EP3700142B1 (zh)
CN (1) CN109803029B (zh)
WO (1) WO2019095837A1 (zh)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112448875B (zh) * 2019-08-28 2023-10-20 华为技术有限公司 通信处理方法、通信处理装置以及系统
JP2021158561A (ja) * 2020-03-27 2021-10-07 キヤノン株式会社 通信装置、その制御方法、プログラム
CN113473508B (zh) * 2020-03-30 2023-09-08 华为技术有限公司 一种通信方法和通信装置
CN111465002B (zh) * 2020-04-01 2022-07-12 中国联合网络通信集团有限公司 一种无卡终端的寻址方法及身份注册服务器
CN111465003B (zh) * 2020-04-01 2022-05-13 中国联合网络通信集团有限公司 一种无卡终端被寻址的方法和装置
CN111465000B (zh) * 2020-04-01 2022-07-22 中国联合网络通信集团有限公司 一种呼叫寻址方法及装置
EP4243554A4 (en) * 2020-12-15 2024-01-03 Huawei Technologies Co., Ltd. COMMUNICATION METHOD AND COMMUNICATION DEVICE
CN114745375B (zh) * 2020-12-23 2023-08-22 成都鼎桥通信技术有限公司 业务功能实现方法、装置及电子设备
CN114760263B (zh) * 2022-03-29 2024-05-03 浪潮云信息技术股份公司 一种地址解析方法、云平台及介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043392A (zh) * 2006-04-28 2007-09-26 华为技术有限公司 一种WiMAX网络中转发IP报文的装置及基站设备
EP1883205A1 (en) * 2006-07-24 2008-01-30 Samsung Electronics Co., Ltd. Bridge-based radio access station backbone network system and signal processing method therefor
CN101510900A (zh) * 2008-12-19 2009-08-19 北京交通大学 一种PMIPv4中移动终端的路由配置方法
CN101741824A (zh) * 2008-11-14 2010-06-16 华为技术有限公司 IPv6地址的解析方法、装置及邻居发现报文处理方法
CN106936804A (zh) * 2015-12-31 2017-07-07 华为技术有限公司 一种访问控制方法以及认证设备

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197780B (zh) * 2007-12-19 2011-09-21 华为技术有限公司 一种mac地址更新的方法、系统和装置
CN101471898B (zh) * 2007-12-28 2011-12-28 华为技术有限公司 一种接入网的保护方法、系统和虚拟接入边缘节点
US8743830B2 (en) * 2009-10-13 2014-06-03 Nec Corporation Mobile communication system, gateway device, base station device, control method of gateway device, and computer-readable medium
CN102971992B (zh) * 2010-06-29 2016-03-09 华为技术有限公司 虚拟专用局域网设备、网络组件和数据帧转发方法
WO2015100593A1 (zh) * 2013-12-31 2015-07-09 华为技术有限公司 一种报文传输方法、设备及通信系统
US9924431B2 (en) * 2016-02-08 2018-03-20 Smartsky Networks LLC Seamless relocation of a mobile terminal in a wireless network
CN109104448B (zh) * 2017-06-20 2021-10-01 华为技术有限公司 会话管理方法、及装置
CN109429363B (zh) * 2017-06-20 2021-04-20 华为技术有限公司 会话管理方法、及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043392A (zh) * 2006-04-28 2007-09-26 华为技术有限公司 一种WiMAX网络中转发IP报文的装置及基站设备
EP1883205A1 (en) * 2006-07-24 2008-01-30 Samsung Electronics Co., Ltd. Bridge-based radio access station backbone network system and signal processing method therefor
CN101741824A (zh) * 2008-11-14 2010-06-16 华为技术有限公司 IPv6地址的解析方法、装置及邻居发现报文处理方法
CN101510900A (zh) * 2008-12-19 2009-08-19 北京交通大学 一种PMIPv4中移动终端的路由配置方法
CN106936804A (zh) * 2015-12-31 2017-07-07 华为技术有限公司 一种访问控制方法以及认证设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3700142A4

Also Published As

Publication number Publication date
US20200274805A1 (en) 2020-08-27
CN109803029B (zh) 2020-11-06
EP3700142B1 (en) 2021-11-03
EP3700142A4 (en) 2020-12-30
CN109803029A (zh) 2019-05-24
US11212226B2 (en) 2021-12-28
EP3700142A1 (en) 2020-08-26

Similar Documents

Publication Publication Date Title
WO2019095837A1 (zh) 数据处理方法、装置及设备
EP3993347A1 (en) Method and device for application migration
US11930423B2 (en) Communication method and communications apparatus
KR102445355B1 (ko) 사용자 그룹에 대한 세션 관리 방법 및 장치
WO2019157942A1 (zh) 通信方法和通信装置
EP4027684A1 (en) Service configuration method, communication device, and communication system
WO2018232570A1 (zh) 一种注册及会话建立的方法、终端和amf实体
WO2019196811A1 (zh) 通信方法和相关装置
US9924483B2 (en) Systems and methods for signal brokering in distributed evolved packet core (EPC) network architectures
CN110662308B (zh) 一种通信方法及装置
US20230224770A1 (en) Communication method and apparatus
WO2019019997A1 (zh) 一种组播数据传输方法、相关设备及通信系统
US11863519B2 (en) Communication method and apparatus for handling DNS messages
WO2019242525A1 (zh) 数据传输方法、相关装置及系统
WO2021047454A1 (zh) 位置信息获取、位置服务配置方法和通信设备
US10057431B2 (en) Charging method, access network device, and gateway device
ES2928582T3 (es) Método para establecer un túnel entre las puertas de enlace locales y la puerta de enlace
WO2019091221A1 (zh) 以太广播帧的处理方法、装置及设备
WO2022007657A1 (zh) 一种域名系统请求的发送方法及装置
WO2022099484A1 (zh) 标识发送方法和通信装置
EP4192043A1 (en) Communication method and apparatus
WO2023143212A1 (zh) 一种通信方法及装置
WO2021134345A1 (zh) 一种定位方法及装置
CN117795991A (zh) 一种用于边缘计算中的位置服务的方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18878802

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2018878802

Country of ref document: EP

Effective date: 20200518