WO2022151420A1 - Method, apparatus, and system for transmitting data packet - Google Patents

Method, apparatus, and system for transmitting data packet Download PDF

Info

Publication number
WO2022151420A1
WO2022151420A1 PCT/CN2021/072304 CN2021072304W WO2022151420A1 WO 2022151420 A1 WO2022151420 A1 WO 2022151420A1 CN 2021072304 W CN2021072304 W CN 2021072304W WO 2022151420 A1 WO2022151420 A1 WO 2022151420A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
address
serial number
number information
data packet
Prior art date
Application number
PCT/CN2021/072304
Other languages
French (fr)
Chinese (zh)
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 PCT/CN2021/072304 priority Critical patent/WO2022151420A1/en
Priority to CN202180090144.9A priority patent/CN116724545A/en
Publication of WO2022151420A1 publication Critical patent/WO2022151420A1/en

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Definitions

  • the present application relates to the field of communications, and in particular, to a method, apparatus and system for data packet transmission.
  • Industrial intelligence refers to: in the process of industrial production, industrial control equipment receives industrial production-related data (for example, temperature data or pressure data) from sensors deployed in various industrial links, analyzes and makes decisions based on this data, and generates The execution instruction is executed, and the execution instruction is sent to the industrial production equipment in the field.
  • industrial production-related data for example, temperature data or pressure data
  • industrial production-related data for example, temperature data or pressure data
  • the execution instruction is executed, and the execution instruction is sent to the industrial production equipment in the field.
  • industrial production-related data for example, temperature data or pressure data
  • Ethernet for Control Automation Technology (EtherCAT), as a representative industrial Ethernet technology, can be applied in the industrial field to realize real-time and reliable real-time and reliable communication between industrial auxiliary equipment and master equipment.
  • the master device may be a control device
  • the slave device may be a field device.
  • the way of EtherCAT communication is as follows: Take the master station device communicating with the first auxiliary station device and the second auxiliary station device, and the first auxiliary station device and the second auxiliary station device only read the data in the data packet as an example, the master station device
  • the data sent to the first auxiliary station equipment and the second auxiliary station equipment is encapsulated into an Ethernet type data packet, and the master station equipment sends the data packet to the first auxiliary station equipment according to the established order; when the first auxiliary station equipment After the station device reads the data from the data packet, the first auxiliary station device sends the data packet to the second auxiliary station device according to the predetermined order.
  • the second auxiliary station device reads the data from the data packet
  • the second auxiliary station device sends the data packet to the master station device according to the predetermined sequence, so far, a complete EtherCAT communication is completed.
  • the fifth generation mobile communication system has the characteristics of low delay, high bandwidth, and high reliability, and can be used as a feasible solution for industrial wireless communication. If 5GS is used in industrial communication to provide low-latency, highly reliable wireless communication, 5GS should be able to support the EtherCAT protocol to realize real-time and reliable wireless communication in industrial communication.
  • the auxiliary station equipment is connected to the terminal equipment through a wired method, the main station equipment sends data packets to the terminal equipment through 5GS, and the terminal equipment sends data packets to the connected auxiliary station equipment.
  • This application describes a method, apparatus and system for data packet transmission.
  • an embodiment of the present application provides a data packet transmission method, and the method is executed by a user plane function device.
  • the method includes: the user plane function device receives the forwarding rule from the session management function device; the user plane function device receives the first data packet of the Ethernet type from the master station device; the user plane function device sends the first data packet to the first terminal device; The user plane function device receives the second data packet associated with the first data packet from the first terminal device; the user plane function device modifies the destination address of the second data packet to the address of the second terminal device according to the forwarding rule, and obtains the third data packet packet; the user plane function device sends the third data packet to the second terminal device according to the forwarding rule.
  • the first data packet may be the same as or different from the second data packet; the destination address in the third data packet is the address of the second terminal device.
  • the user plane function device can forward the data packets sent by the master station device to multiple terminal devices in turn according to the forwarding logic of EtherCAT. packet, and finally forward the data packet back to the master device to complete the complete EtherCAT communication.
  • the forwarding sequence of the data packets between the first terminal device and the second terminal device in an EtherCAT communication link is in the order of the first terminal device and the second terminal device.
  • the main station device first sends the first data packet of the Ethernet type to the first terminal device through the user plane function device, and after receiving the first data packet from the user plane function device, the first terminal device sends the first data packet to the user plane function device.
  • the user plane function device modifies the destination address in the data packet received from the first terminal device to the address of the second terminal device to obtain the second data packet, that is to say, the destination address in the second data packet is the first data packet. address of the second terminal device, and then send the second data packet to the second terminal device. After receiving the second data packet, the second terminal device sends the second data packet to the user plane function device.
  • the method further includes: the user plane function device receives a fourth data packet from the third terminal device; and the user plane function device sends a fifth data packet associated with the fourth data packet to the master station device.
  • the third terminal device may be the second terminal device, or the third terminal device may be other terminal devices except the first terminal device and the second terminal device.
  • the user plane function device modifies the destination address in the fourth data packet to the address of the master station device to obtain the destination address A fifth data packet of the address of the master station equipment, and then the user plane function device sends the fifth data packet to the master station equipment.
  • the method further includes: the user plane function device obtains the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device, the first The serial number information of the terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device are used for generating the forwarding rule. That is to say, the forwarding rule is generated according to the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device, and the forwarding rule can be generated by the session management function device .
  • the user plane function device acquires the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device, including:
  • the master station device acquires the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device.
  • the way that the user plane function device obtains the above information from the main station device can be mailbox communication. In this way, the main station device does not need to additionally configure the interface with the application function device to transmit information, so this method reduces the need for the main station device. Changes to station equipment and application functionality.
  • the user plane function device obtains the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device, including: the user plane function The device obtains the serial number information of the first terminal device and the address of the first terminal device from the first terminal device; the user plane function device obtains the serial number information of the second terminal device and the address of the second terminal device from the second terminal device. That is, the user plane function device obtains the terminal device serial number information and the terminal device address from the terminal device, and the terminal device can send the terminal device serial number information and the terminal device address to the user plane function device by means of mailbox communication.
  • the method further includes: the user plane function device sends the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the second terminal device to the session management function device. the address of.
  • the session management function device generates a forwarding rule according to the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device received from the user plane function device.
  • the forwarding rule includes the serial number information of the first terminal device, the address of the first terminal device, the serial number information of the second terminal device, and the address of the second terminal device.
  • the forwarding rule is used for the user plane function device to forward data packets to the first terminal device and the second terminal device in sequence.
  • the user plane function device modifies the destination address of the second data packet to the address of the second terminal device according to the forwarding rule, including: the user plane function device determines according to the forwarding rule to send the second data packet to the second terminal device. For the data in the data packet, the user plane function device modifies the destination address of the second data packet to the address of the second terminal device.
  • an embodiment of the present application provides a data packet transmission method, and the method is executed by a session management function device.
  • the method includes: the session management function device obtains the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device; information, the serial number information of the second terminal device, the address of the first terminal device, and the address of the second terminal device to generate a forwarding rule, and the forwarding rule is used to modify the destination address of the first data packet; the session management function device reports to the user plane function device Send forwarding rules.
  • the user plane function device can, according to the forwarding rules generated by the session management function device in this aspect, forward the data packets sent by the master station to the forwarding logic according to the EtherCAT forwarding logic.
  • the terminal device forwards the data packet, and finally forwards the data packet back to the master station to complete the complete EtherCAT communication.
  • the session management function device obtains the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device, including:
  • the user plane function device acquires the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device from the master station device.
  • the session management function device acquires the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device, including:
  • the session management function device obtains the serial number information of the first terminal device and the address of the first terminal device from the first terminal device through the user plane function device, and obtains the serial number information of the second terminal device and the address of the second terminal device from the second terminal device. .
  • the method further includes: the session management function device sends the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the second terminal device to the unified data management device.
  • the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device are used for the creation of the virtual network group, or the serial number information of the first terminal device , the serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device are used to update the virtual network group, and the virtual network group includes the first terminal device and the second terminal device.
  • the session management function device sends the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device to the unified data management device, including: The session management function device sends the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device to the unified data management device through the application function device.
  • the session management function device acquires the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device, including:
  • the unified data management apparatus acquires the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device.
  • the forwarding rule includes serial number information of the first terminal device, serial number information of the second terminal device, an address of the first terminal device, and an address of the second terminal device.
  • an embodiment of the present application provides a data packet transmission method, which is executed by a terminal device.
  • the method includes: the first terminal device receives policy information; the first terminal device receives the first data packet of the Ethernet type; the first terminal device modifies, according to the policy information, the destination address in the first data packet to the address of the second terminal device, The second data packet is obtained; the first terminal device sends the second data packet to the second terminal device.
  • the first terminal device can modify the destination address of the EtherCAT type data packet to the address of the second terminal device according to the policy information, and forward the destination to the second terminal device.
  • the EtherCAT type data packet whose address is the second terminal device completes the complete EtherCAT communication according to the EtherCAT forwarding logic through the device-to-device D2D communication method.
  • the first terminal device receiving the policy information includes: the first terminal device receiving the policy information from the application function device.
  • sending the second data packet by the first terminal device to the second terminal device includes: the first terminal device sending the second data packet to the second terminal device through the user plane function device. That is to say, when the first terminal device and the second terminal device are in the same virtual network group, the first terminal device may also forward the EtherCAT type data packet to the user plane function device, wherein the EtherCAT type data packet has a The destination address is the address of the second terminal device, the source address is the address of the first terminal device, and the user plane function device forwards the EtherCAT type data packet to the second terminal device.
  • the policy information includes the address of the second terminal device. That is, the first terminal device modifies the destination address of the EtherCAT type data packet to the address of the second terminal device according to the address of the second terminal device in the policy information.
  • an embodiment of the present application provides a data packet transmission method, and the method is executed by an application function device.
  • the method includes: the application function device obtains the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device; the application function device obtains the serial number information of the first terminal device, The serial number information of the second terminal device, the identifier of the first terminal device, and the identifier of the second terminal device are used to create or update the virtual network group by calling the interface of the network open function device and calling the unified data management device.
  • the application function device creates a virtual network group for the first terminal device and the second terminal device, and the first terminal device and the second terminal device in the virtual network group have serial number information, and the serial number information is used to indicate the first terminal device and the second terminal device.
  • the sequence of a terminal device and a second terminal device in the forwarding logic of EtherCAT, and the sequential forwarding of EtherCAT type data packets can be implemented by using the forwarding mode of the fifth-generation communication local area network 5GLAN.
  • the application function device obtains the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device, including: the application function device obtains the serial number information from the main station. The device acquires the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device, and the identifier of the second terminal device.
  • the application function device obtains the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device, and the identifier of the second terminal device, including: the application function device obtains information from the session management
  • the apparatus acquires the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device.
  • an embodiment of the present application provides a data packet transmission method, and the method is executed by a unified data management apparatus.
  • the method includes: the unified data management device obtains serial number information of the first terminal device, serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device; the unified data management device obtains the serial number of the first terminal device according to the serial number of the first terminal device.
  • the unified data management apparatus creates a virtual network group according to the serial number information of the first terminal device and the serial number of the second terminal device
  • the information, the identity of the first terminal device and the identity of the second terminal device update the information of the virtual network group.
  • the unified data management device creates a virtual network group for a plurality of terminal devices that can perform packet forwarding according to the forwarding logic of EtherCAT, and the information in the virtual network group can be used for the generation of forwarding rules, and when the system implements The forwarding mode of 5G LAN can be used when forwarding data packets according to the forwarding logic of EtherCAT.
  • the unified data management apparatus acquires the serial number information of the first terminal equipment, the serial number information of the second terminal equipment, the identifier of the first terminal equipment and the identifier of the second terminal equipment, including:
  • the session management function device acquires the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device.
  • the unified data management apparatus acquires the serial number information of the first terminal equipment, the serial number information of the second terminal equipment, the identifier of the first terminal equipment and the identifier of the second terminal equipment, including:
  • the application function device acquires the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device.
  • an embodiment of the present application provides a data packet transmission method, and the method is executed by an application function device.
  • the method includes: the application function device obtains the serial number information of the first terminal device and the serial number information of the second terminal device; the application function device sends the serial number information of the first terminal device and the serial number information of the second terminal device to the master station device, the first terminal device.
  • the serial number information of the terminal device and the serial number information of the second terminal device are used for the maintenance of the serial number information.
  • the master station device obtains from the application function device the serial number information of the first terminal device and the second terminal device that can perform data packet forwarding according to the EtherCAT forwarding logic. After obtaining the above information, the master station device can If necessary, modify the sequence number information and re-formulate the forwarding sequence of data packets in the forwarding logic of EtherCAT.
  • the application function device obtains the serial number information of the first terminal device and the serial number information of the second terminal device, including: the application function device obtains the serial number information of the first terminal device and the second terminal device from the session management function device. Serial number information of the device.
  • the application function device obtains the serial number information of the first terminal device and the serial number information of the second terminal device, including: the application function device obtains the serial number information of the first terminal device and the second terminal device from the unified data management device. Serial number information of the device.
  • an embodiment of the present application provides a communication device, including a processor, where the processor is configured to read and run a program from a memory, so as to implement the method of the foregoing first aspect or any possible implementation manner, Alternatively, to implement a method as in the second aspect above or any possible embodiment, or, to implement a method as in the third aspect or any possible embodiment above, or, to implement a method as in the fourth aspect or any of the foregoing The method of a possible embodiment, alternatively, to implement the method as the fifth aspect or any of the possible embodiments above, or to implement the method as the sixth aspect or any of the possible embodiments.
  • the embodiments of the present application provide a communication system, including a user plane function device and a session management function device, the user plane function device can execute the method of the first aspect or any possible implementation manner, and the session management function device
  • the functional means may perform the method of the second aspect or any possible embodiment.
  • embodiments of the present application provide a communication system, including a user plane function device and a terminal device, where the terminal device can execute the method of the third aspect or any possible implementation manner.
  • embodiments of the present application provide a communication system, including an application function device and a unified data management device, where the application function device can execute the method of the fourth aspect or any possible implementation manner, and the unified data management device The method of the fifth aspect or any possible embodiment may be performed.
  • the embodiments of the present application provide a computer program product comprising instructions, which, when run on a computer, cause the computer to perform the method of the first aspect or any possible implementation manner, or the second aspect or the method of any possible embodiment, or the third aspect or the method of any possible embodiment, or the fourth aspect or any possible embodiment, or the fifth aspect or any possible embodiment The method, or the method of the sixth aspect or any possible embodiment.
  • embodiments of the present application provide a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, cause a processor to execute the first aspect or any possible or the method of the second aspect or any possible embodiment, or the method of the third aspect or any possible embodiment, or the method of the fourth aspect or any possible embodiment, or the method of the fourth aspect or any possible embodiment The method of the fifth aspect or any possible embodiment, or the method of the sixth aspect or any possible embodiment.
  • Figure 1 is a schematic diagram of a data transmission path of EtherCAT
  • Figure 2 is a schematic diagram of a 5GS architecture based on a service-oriented interface
  • 3A is a schematic diagram of an industrial communication system integrating 5GS and EtherCAT;
  • 3B is a schematic diagram of the forwarding logic of EtherCAT in an industrial communication system integrating 5GS and EtherCAT;
  • Figure 4 is a connection method between 5GS and EtherCAT industrial communication system
  • FIG. 5 is a schematic diagram of flow interaction of a data packet forwarding provided according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of flow interaction of another data packet forwarding provided according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of another flow interaction of data packet forwarding provided according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of another flow interaction of data packet forwarding provided according to an embodiment of the present application.
  • FIG. 9 is a schematic diagram of another flow interaction of data packet forwarding provided according to an embodiment of the present application.
  • FIG. 10 is a schematic diagram of another flow interaction of data packet forwarding provided according to an embodiment of the present application.
  • FIG. 11 is a schematic diagram of a communication device provided according to an embodiment of the present application.
  • FIG. 12 is a schematic diagram of another communication apparatus provided according to an embodiment of the present application.
  • Ethernet for Control Automation Technology provides an Ethernet-based fieldbus system. Compared with traditional bus systems, EtherCAT is widely used in the field of industrial automation because it uses standard Ethernet hardware, which greatly reduces costs for enterprises.
  • Industrial communication networks usually use the master-slave communication mode for communication, that is, the mode in which data is sent to the auxiliary station equipment through the master station equipment.
  • the master station equipment is the controller, which is used to configure the subordinate equipment, collect and analyze the subordinate auxiliary station equipment. information, to issue instructions to auxiliary station equipment, such as instructions to measure temperature; and auxiliary station equipment is Input/Output (I/O) equipment, such as sensor equipment, drive equipment or motor equipment, auxiliary station equipment Actions are performed according to the requirements of the master device. Since the data communicated between each auxiliary station device and the master station device in the industrial communication network is small, the master station device sends an Ethernet type data packet to each auxiliary station device, which will result in low bandwidth utilization of the industrial communication system.
  • I/O Input/Output
  • EtherCAT assembles the data transmitted to the auxiliary station equipment into a total Ethernet type data packet in the form of corresponding sub-packets through the master station equipment, and transmits the data packet to all auxiliary station equipment in turn to improve bandwidth utilization. , thus improving network performance.
  • Each auxiliary station device uses the "processing on the fly" technology to quickly process the data of the sub-message corresponding to its own auxiliary station device in the above-mentioned Ethernet type data packet, and sends the processing to the next auxiliary station device. after the packet.
  • FIG. 1 is a schematic diagram of a data transmission path of EtherCAT. It is assumed that the industrial communication system includes one master station device and four auxiliary station devices, which are the master station device, the auxiliary station device 1, the auxiliary station device 2, the auxiliary station device 3 and the auxiliary station device 4, respectively.
  • the arrow in the figure indicates the forwarding logic of EtherCAT: the master station device sends an EtherCAT type data packet, and the data packet is received by the auxiliary station device 1, the auxiliary station device 2, the auxiliary station device 3 and the auxiliary station device 4 in turn. And finally the data packet is sent by the auxiliary station device 4 to the master station device.
  • the master station device sends different control commands to all the auxiliary station devices, the master station device generates four sub-messages, the date in the first sub-message is the control command that the master station device wants to inform the auxiliary station device 1, The date in the second sub-message is the control command that the master station device wants to inform the slave station device 2, and so on.
  • the master station encapsulates the four sub-packets into an EtherCAT type data packet.
  • the primary station sends the data packet to the secondary station device 1.
  • the auxiliary station device 1 reads the control instruction provided to itself (auxiliary station device 1) in the data packet, and sends the data packet to the auxiliary station device 2 according to the forwarding logic.
  • the auxiliary station device 2 After receiving the data packet, read the control instruction provided to itself (auxiliary station equipment 2) in the data packet, and send the data packet to the auxiliary station equipment 3 according to the forwarding logic. For example, the auxiliary station equipment 2 passes the auxiliary station equipment. Device 1 sends the data packet to secondary station device 3. And so on, until the auxiliary station device 4 sends the data packet to the main station device according to the forwarding logic after reading the control instruction provided to itself (auxiliary station device 4) in the data packet, for example, the auxiliary station device 4 passes through The secondary station device 3 and the secondary station device 1 send the data packet to the primary station device. The master station device receives the data packet from the slave station device 4, and one EtherCAT communication is completed.
  • FIG. 2 is a schematic diagram of a 5GS architecture based on a service-oriented interface.
  • the network architecture includes three parts, namely terminal equipment, access network ((radio)access network, (R)AN) and core network.
  • a terminal device is a device with wireless transceiver function.
  • the terminal equipment is wirelessly connected to the access network equipment so as to be connected to the communication system.
  • a terminal device may also be referred to as a terminal, user equipment (UE), a mobile station, a mobile terminal, and the like.
  • the terminal equipment can be mobile phone, tablet computer, computer with wireless transceiver function, virtual reality terminal equipment, augmented reality terminal equipment, wireless terminal in industrial control, wireless terminal in unmanned driving, wireless terminal in remote surgery, smart grid Wireless terminals in smart cities, wireless terminals in transportation security, wireless terminals in smart cities, or wireless terminals in smart homes, etc.
  • the embodiments of the present application do not limit the specific technology and specific device form adopted by the terminal device.
  • the terminal device may also be a wearable device.
  • Wearable devices can also be called wearable smart devices or smart wearable devices, etc. It is a general term for the application of wearable technology to intelligently design daily wear and develop wearable devices, such as glasses, gloves, watches, clothing and shoes. Wait.
  • a wearable device is a portable device that is worn directly on the body or integrated into the user's clothing or accessories. Wearable device is not only a hardware device, but also realizes powerful functions through software support, data interaction, and cloud interaction.
  • wearable smart devices include full-featured, large-scale, complete or partial functions without relying on smart phones, such as smart watches or smart glasses, and only focus on a certain type of application function, which needs to cooperate with other devices such as smart phones.
  • Use such as all kinds of smart bracelets, smart helmets, smart jewelry, etc. for physical sign monitoring.
  • the terminal device may also be an on-board module, on-board component, on-board chip or on-board unit built into the vehicle as one or more components or units, and the vehicle passes the built-in on-board module, on-board module, on-board component, on-board chip or on-board unit.
  • a unit may implement the methods of the present application.
  • the access network device may be a base station (base station), an LTE system or an evolved base station (evolved NodeB, eNodeB) in an LTE system (LTE-Advanced, LTE-A), a next-generation base station in a 5G communication system (next generation NodeB, gNB), transmission reception point (TRP), base band unit (BBU), WiFi access point (access point, AP), base station or WiFi system in future mobile communication systems access node etc.
  • the radio access network device may also be a module or unit that completes some functions of the base station, for example, may be a centralized unit (central unit, CU) or a distributed unit (distributed unit, DU).
  • the embodiments of the present application do not limit the specific technology and specific device form adopted by the wireless access network device.
  • the radio access network device may be a CU node, or a DU node, or an access network device including a CU node and a DU node.
  • the CU node is used to support radio resource control (radio resource control, RRC), packet data convergence protocol (packet data convergence protocol, PDCP), service data adaptation protocol (service data adaptation protocol, SDAP) and other protocols;
  • DU node Used to support the radio link control (radio link control, RLC) layer protocol, medium access control (medium access control, MAC) layer protocol and physical layer protocol.
  • the core network network may include one or more of the following network elements: a unified data management (unified data management, UDM) network element, an application function (application function, AF) network element, a policy control function (Policy Control Function, PCF) network element element, Network Exposure Function (NEF) network element, access and mobility management function (AMF) network element, session management function (SMF) network element, user plane function (user plane function, UPF) network element, etc.
  • the above network elements may also be referred to as devices, equipment or entities, which are not limited in this application.
  • UDM network elements may also be referred to as UDM devices, UDM equipment or UDM entities.
  • UDM network element is abbreviated as "UDM”
  • SMF network element is abbreviated as "SMF”.
  • the UDM is used to manage the subscription data, and to notify the corresponding network elements when the subscription data is modified, and to manage group information.
  • AF is used to provide application layer services to terminal devices. AF interacts with other control network elements on behalf of applications, including providing quality of service (QoS) requirements, charging policy requirements, and routing policy requirements.
  • QoS quality of service
  • PCF is used for the generation of terminal equipment access policies and QoS control policies.
  • NEF is used to provide the openness of 5G network capabilities and events, and to receive relevant external information.
  • AMF is used to be responsible for user mobility management.
  • mobility management includes mobility status management, assigning user temporary identities, authenticating and authorizing users, etc.
  • SMF is used for selection and reselection of UPF, network protocol (IP) address allocation, protocol data unit (protocol data unit, PDU) session establishment, modification or release, etc.
  • IP network protocol
  • PDU protocol data unit
  • the UPF is interconnected with a data network (DN) for packet detection, routing and forwarding.
  • DN data network
  • the UPF can be used as an uplink classifier (ULCL) to support traffic offloading and then forwarded to the data network, or the UPF can be used as a branching point (BP) to support multi-homed PDU sessions.
  • ULCL uplink classifier
  • BP branching point
  • the above-mentioned network elements can be implemented by specified hardware, or by a software instance on specified hardware, or by a virtual function instantiated on a suitable platform, which is not limited in this application. .
  • Figure 3A is a schematic diagram of an industrial communication system that integrates 5GS and EtherCAT.
  • 5GS is used for communication between the main station equipment and the auxiliary station equipment.
  • the main station equipment is connected to the 5GS, and the connection method can be referred to as shown in Figure 4.
  • the main station equipment is connected to the AF in the 5GS.
  • the auxiliary station equipment is connected to the terminal equipment in the 5GS.
  • the terminal equipment A is connected to the auxiliary station equipment 1 and the auxiliary station equipment 2 in sequence
  • the terminal equipment B is connected to the auxiliary station equipment 3 and the auxiliary station equipment 4 in sequence.
  • the master station device can only communicate with terminal device A or terminal device B alone. That is to say, the master station device sends an EtherCAT type data packet to the auxiliary station device 1 through the terminal device A. After the data packet is forwarded to the auxiliary station device 2 in sequence, it finally returns to the terminal device A, and is sent by the terminal device A. Send a packet to the master device.
  • the 5GS should implement the forwarding of data packets according to the forwarding logic of EtherCAT, that is, implement the forwarding of data packets according to the forwarding logic of EtherCAT as shown by the arrow in FIG. 3B . Therefore, if the prior art is adopted, the data packet cannot be forwarded to the auxiliary station equipment 3 and the auxiliary station equipment 4 in sequence, and finally returns to the main station equipment.
  • the problem to be solved in this application is how to make the industrial communication system integrated with 5GS and EtherCAT support the forwarding logic of EtherCAT to realize data packet forwarding.
  • 5G local area network (5G LAN) technology is a technology that realizes local area network communication through the 5G core network.
  • Multiple terminal devices with communication requirements form a virtual network group. communication between end devices.
  • the establishment of the virtual network group needs to be performed by the AF.
  • NEF provides a set of services to the AF to support the dynamic management of the virtual network group of the 5G LAN, including the addition, deletion or modification of terminal device members in the virtual network group.
  • 5G LAN allows peer-to-peer communication, broadcast or multicast communication based on Ethernet (Ethernet) or Internet Protocol (IP) between members in a virtual network group. It should be pointed out that the 5G LAN in the prior art also does not support the terminal device members in the group to implement communication according to the aforementioned EtherCAT forwarding sequence.
  • FIG 4 shows a connection method between 5GS and EtherCAT industrial communication system.
  • 5GS can be simulated as a special EtherCAT auxiliary station equipment node (5GS as a Secondary) with multiple ports.
  • the main station equipment is connected to the network devices in the 5GS.
  • the main station equipment can be connected to the AF in the 5GS, or it can be connected to the UPF in the 5GS, and the auxiliary station equipment is connected to multiple terminal equipment in the 5GS. station equipment is connected.
  • the entire 5GS can be regarded as the auxiliary station equipment 1 in Figure 1, that is, the 5GS is connected to the main station equipment and the auxiliary station equipment at the same time. Therefore, the master station equipment and the auxiliary station equipment can realize the transmission of information through 5GS.
  • the master station equipment sends information to the terminal equipment through the AF, PCF, SMF and AMF in the 5GS in sequence, and the terminal equipment sends the information to the auxiliary station equipment.
  • the secondary station equipment may send information to the primary station equipment through the terminal equipment, the RAN, the UPF, the SMF, the PCF, and the AF in sequence.
  • 5GS can be regarded as a special auxiliary station equipment node with multiple ports, and a virtual network group is created for the terminal equipment connected to the auxiliary station equipment, and the terminal equipment in the virtual network group has a serial number identifier,
  • the sequential forwarding of the data packets can be implemented according to the sequence number identification.
  • FIG. 5 is a schematic diagram of flow interaction of data packet forwarding according to an embodiment of the present application. This embodiment includes the following steps:
  • Step 501 the master station device sends information of multiple terminal devices to the AF.
  • the information of each terminal device includes the address of the terminal device, the identification information of the terminal device, and the serial number identification of the terminal device.
  • the address of the terminal device is a media access control (Media Access Control, MAC) address of the terminal device.
  • the sequence number identifier of the terminal device represents the forwarding sequence of the data packet among multiple terminal devices.
  • the master station device sends the identifier of the Ethernet type to the AF.
  • the information of multiple terminal devices sent by the master station device to the AF includes information of two terminal devices.
  • the identification information of the terminal equipment is A and B, respectively.
  • the serial number identifiers of the terminal equipment are number 1 and number 2, where the number 1 represents that terminal device A is the first terminal device to receive data packets, and the number 2 represents that terminal device B is the second to receive data packets. terminal equipment.
  • a customized application programming interface (Application Programming Interface, API) is established between the master station device and the AF, and the master station device sends the information of the terminal device to the AF through the API.
  • API Application Programming Interface
  • a network description file is stored in the master station device, and the network description file contains information of the terminal device.
  • the network description file can be sent to the AF in an offline manner (eg, offline copy).
  • Step 502 the AF invokes the interface opened by the NEF according to the received information of the terminal device, and the NEF invokes the UDM to create a virtual network group for the terminal device.
  • AF creates a virtual network group for terminal device A and terminal device B.
  • the information of the virtual network group is stored in a data storage device (not shown in the figure) by the UDM, for example, a unified data storage (Unified Data Repository, UDR) device.
  • the information of the virtual network group includes the identification information of the terminal device, the serial number identification of the terminal device, the address of the terminal device, and the group identification information of the virtual network group.
  • Step 503 the SMF obtains the information of the virtual network group from the UDM. For example, the address of the terminal device, the identification information of the terminal device, the serial number identification of the terminal device, and the group identification information of the virtual network group.
  • the SMF obtains the information of the virtual network group from the UDR through the UDM.
  • Step 504 the SMF generates a forwarding rule and a data packet detection rule according to the information of the virtual network group in step 503.
  • the data packet detection rule is used for UPF to detect the EtherCAT type data packet.
  • the data packet detection rule is used by UPF to detect the data packets received from the terminal equipment in the virtual network group according to the data packet detection rule.
  • the data packet detection rule can also be used by UPF to detect the master station according to the data packet detection rule Data packets sent by the device to the terminal devices in the virtual network group.
  • a packet filter set (Packet filter Set) is defined in the packet inspection rule, and the information in the packet filter set includes the MAC address information of the terminal device in the virtual network group, the Ethernet type value (for example, 88A4h) or the virtual network Group identification information for the group.
  • UPF can identify the EtherCAT type data packet according to the Ether type value, or can also identify the EtherCAT type data packet according to the MAC address information of the terminal device in the virtual network group, or can identify the EtherCAT type data packet according to the group identification information.
  • EtherCAT type packets are defined in the packet inspection rule, and the information in the packet filter set includes the MAC address information of the terminal device in the virtual network group, the Ethernet type value (for example, 88A4h) or the virtual network Group identification information for the group.
  • EtherCAT type packets can identify the EtherCAT type data packet according to the Ether type value, or can also identify the EtherCAT type data packet according to the MAC address information of the terminal device in the virtual network group, or
  • the forwarding rule is used for the UPF to send the EtherCAT type data packet to the terminal device.
  • the forwarding rule is used by the UPF to modify the source address and destination address of the received EtherCAT type data packet, and forward the EtherCAT type data packet to the next terminal device.
  • the forwarding rule can be as shown in Table 1:
  • UPF receives the EtherCAT type data packet from terminal device A, when UPF determines that terminal device A corresponds to serial number 1 according to the serial number in Table 1, and then finds the address corresponding to serial number 2, that is, the address of terminal device B, so UPF It is determined that the EtherCAT type data packet should be sent to terminal device B, and the UPF changes the source address of the EtherCAT type data packet to the address of the master device, and the destination address of the EtherCAT type data packet to terminal device B. the address of.
  • the forwarding rule can also be as shown in Table 2:
  • Source of EtherCAT type packets source address Destination address master equipment Address of the master device Address of terminal device A Terminal equipment A Address of terminal device A Address of terminal device B Terminal equipment B Address of terminal device B Address of the master device
  • the UPF receives the EtherCAT type data packet from the terminal device A, when the UPF determines that the source address in the EtherCAT type data packet should be modified according to the "source of the EtherCAT type data packet" information in Table 2 The address of the master device, modify the destination address of the EtherCAT type data packet to the address of the terminal device B.
  • Step 505 the SMF sends the forwarding rule and the data packet inspection rule to the UPF.
  • the SMF sends the above-mentioned forwarding rules and data packet inspection rules to the UPF through a message requesting to establish or modify an N4 session.
  • Step 506 after receiving the forwarding rule and the data packet inspection rule, the UPF sends a response message to the SMF. For example, the UPF sends a response message to the SMF to establish or modify the N4 session.
  • the network side may also perform other steps for establishing a session between the UPF and the terminal device A, so that the establishment of the session between the UPF and the terminal device A is completed.
  • the network side may also perform other steps for establishing a session between the UPF and the terminal device B, so that the establishment of the session between the UPF and the terminal device B is completed.
  • Step 507 the SMF sends a session establishment complete response message to the AF.
  • Step 508 After receiving the session establishment completion response information, the AF sends notification information to the master station device.
  • the notification information is used to notify the master station device that the session establishment is completed and data packets can be sent to the terminal device.
  • Step 509 the master station device sends the EtherCAT type data packet to the terminal device A through the UPF in the 5GS.
  • the master station device sends the EtherCAT type data packet to the terminal device through the UPF and (R)AN (not shown in the figure) in the 5GS in turn.
  • the source address information of the EtherCAT type data packet is the address of the main station device
  • the destination address information of the EtherCAT type data packet is the address of the terminal device A (the serial number is identified as number 1), for example, the address information is the MAC address. .
  • the UPF when the UPF receives the EtherCAT type data packet, it detects the EtherCAT type data packet according to the data packet detection rule, and sends the EtherCAT type data packet to the terminal device A according to the forwarding rule.
  • the group identification information of the virtual network group may also be used by the UPF to detect the EtherCAT type data packet.
  • Step 510 the terminal device A identifies the EtherCAT type data packet and forwards it to the auxiliary station device.
  • the end device identifies packets of this EtherCAT type based on the EtherType value (eg, 88A4h).
  • the terminal device is connected to multiple auxiliary station devices, for example, the terminal device is connected to multiple auxiliary station devices in a wired manner.
  • the terminal device forwards the EtherCAT type data packet to multiple auxiliary station devices, and the multiple auxiliary station devices forward the EtherCAT type data packet according to the set forwarding order, and finally the terminal device receives it according to the forwarding order of the multiple auxiliary station devices.
  • the EtherCAT type data packet after forwarding is completed.
  • the data part of the data packet received by the terminal device may be the same as the data part of the data packet sent by the terminal device.
  • multiple auxiliary station devices have not changed the data part of the EtherCAT type data packet;
  • the data part of the data packet sent by the terminal device is different.
  • multiple auxiliary station devices may modify the data part of the EtherCAT type data packet, or add new data to the data part of the EtherCAT type data packet. , which is not limited in this application.
  • Step 511 the terminal device A sends to the UPF the EtherCAT type data packets that have been forwarded according to the forwarding sequence of the multiple auxiliary station devices.
  • the terminal device is terminal device A
  • the terminal device obtains the EtherCAT type data packet after the forwarding is completed according to the forwarding order of multiple auxiliary station devices
  • terminal device A includes the EtherCAT type data packet in the data packet of the EtherCAT type.
  • Exchange the source address and destination address of the EtherCAT type data packet that is, terminal device A changes the destination address in the EtherCAT type data packet to the address of the master device
  • terminal device A changes the source address in the EtherCAT type data packet to the terminal device.
  • the address of device A The end device sends the EtherCAT type data packet to the UPF.
  • the terminal device is terminal device A
  • the terminal device obtains the EtherCAT type data packets that have been forwarded according to the forwarding order of multiple auxiliary station devices, and the terminal device directly sends the EtherCAT type data packets to the UPF.
  • the source address in the EtherCAT type data packet is still the address of the main station device
  • the destination address is still the address of the terminal device A.
  • the terminal device is terminal device A
  • the terminal device obtains the EtherCAT type data packet after the forwarding is completed according to the forwarding order of multiple auxiliary station devices
  • terminal device A includes the EtherCAT type data packet in the data packet of the EtherCAT type.
  • the destination address is modified to the address of terminal device B
  • terminal device A modifies the source address in the EtherCAT type data packet to the address of terminal device A.
  • the terminal device sends the EtherCAT type data packet to the UPF.
  • the forwarding of the data packet can use the forwarding mode of the 5G LAN, and the UPF directly sends the data packet to the terminal device B through the internal interface.
  • the premise of this embodiment is that the terminal equipment in the communication has obtained the information on which terminal equipment it should forward the data packet to. Shows).
  • Step 512 the UPF determines and changes the destination address and source address of the current EtherCAT type data packet.
  • UPF After receiving the data packet, UPF detects the data packet according to the data packet detection rules, and judges that the EtherCAT type data packet should be sent to terminal device B according to the forwarding rules in step 504.
  • the UPF modifies the source address in the EtherCAT type data packet to the address of the master station device, and modifies the destination address in the EtherCAT type data packet to the address of the terminal device B. Address, if the third optional implementation manner is adopted in step 511, the destination address in the EtherCAT type data packet does not need to be modified. Then, the sending of the EtherCAT type data packet to the terminal device B is performed.
  • Step 513 the UPF sends the EtherCAT type data packet to the terminal device B.
  • Step 514 the terminal device B identifies the EtherCAT type data packet and forwards it to the auxiliary station device.
  • the operation of the terminal device B is similar to the operation of the terminal device A in step 510, and reference may be made to the description of step 510, and details are not repeated here.
  • Step 515 the terminal device B sends to the UPF the EtherCAT type data packets that have been forwarded according to the forwarding sequence of the multiple secondary station devices.
  • Step 516 the UPF determines and changes the destination address and source address of the current EtherCAT type data packet.
  • UPF determines that the EtherCAT type data packet should be sent to the master station device according to the data packet detection rules.
  • UPF changes the destination address of the current EtherCAT type data packet according to the detection rules.
  • the address of the master station device, the source address is the terminal device B
  • the destination address of the EtherCAT type data packet received by UPF from the terminal device is the main station device and the source address is the terminal device B, then UPF does not need to change the purpose of the current data packet in this step. address and source address.
  • Step 517 the UPF sends the EtherCAT type data packet to the master device. So far, a complete EtherCAT type packet forwarding process is completed.
  • this solution is also applicable to the solution that does not create a virtual network group for terminal devices, that is, the master station sends the information of the terminal device to the AF, and the AF can send the information of the terminal device to the SMF through the service interface, and the SMF Generate data packet detection rules and forwarding rules according to the information of the terminal device.
  • the data packet detection rules and forwarding rules For the generation of the data packet detection rules and forwarding rules, reference may be made to the description of step 504 in this embodiment, and the methods in steps 506 to 517 in this embodiment are also used subsequently.
  • step 511 and step 515 adopt the first or second optional implementation manner.
  • the master device can call the UDM through the AF to call the interface opened by the NEF to realize the information in the virtual network group.
  • the SMF updates the forwarding rules according to the information in the virtual network group updated by the UDM, and sends it to the UPF; if there is no virtual network group created for the terminal device in the core network, the master station device sends the update to the SMF through the AF.
  • the SMF updates the forwarding rule according to the information of the new terminal device, and sends it to the UPF.
  • the UPF determines, according to the forwarding rule, to send the EtherCAT type data packet to the terminal device identified by the next sequence number, modifies the destination address of the EtherCAT type data packet to the address of the terminal device identified by the next sequence number, and executes The forwarding of data packets finally realizes a complete EtherCAT communication.
  • the industrial Ethernet can realize that the networked industrial Ethernet system supports the EtherCAT communication mode through the 5GS, that is, the industrial communication system integrated with 5GS and EtherCAT is forwarded according to EtherCAT The logic completes the forwarding of EtherCAT type packets.
  • FIG. 6 is a schematic diagram of another flow interaction of data packet forwarding according to an embodiment of the present application.
  • This embodiment includes the following steps:
  • Step 601 the master station device obtains the auxiliary station device information (EtherCAT Secondary Information, ESI) file of the 5GS and the auxiliary station device offline, and generates an EtherCAT Network Information (EtherCAT Network Information, ENI) file.
  • auxiliary station device information EtherCAT Secondary Information, ESI
  • ENI EtherCAT Network Information
  • the offline method is a mobile hard disk copy method
  • the factory staff stores the ESI files of the 5GS and the auxiliary station equipment in the main station equipment.
  • the ESI file of 5GS includes a virtual IP address of the UPF, which is used by the master station device to send information to the UPF subsequently.
  • the master station obtains an ENI file by compiling the ESI file of 5GS and the ESI file of the auxiliary station equipment.
  • the ENI file includes the addresses of multiple terminal equipment, the identification information of the terminal equipment, the connection relationship between the terminal equipment and the auxiliary equipment, and The serial number identifier of the terminal device determined according to the sequence between the secondary station devices.
  • the address of the terminal device may be the MAC address of the terminal device, and the serial number identifier of the terminal device represents the forwarding sequence of EtherCAT type data packets between the terminal devices.
  • the identification information of the terminal device is A and B respectively
  • the serial number identification of the terminal device is the number 1 and the number 2 respectively, where the number 1 represents the meaning that the terminal device A is the first to receive the EtherCAT type data packet.
  • the meaning represented by the number 2 is that the terminal device B is the second terminal device that receives EtherCAT type data packets.
  • Step 602 the master station device sends the information of the terminal device to the UPF.
  • the master station device uses the virtual IP address in step 601 to send the information of the terminal device to the UPF.
  • the information includes address information of the terminal device, for example, the MAC address of the terminal device, the identification information of the terminal device, and the serial number identification of the terminal device.
  • the master station device sends the information of the terminal device to the UPF by means of mailbox communication.
  • the data packet containing the information of the terminal device has a header of the mailbox communication, and the header contains a protocol type , such as the Hypertext Transfer Protocol (HTTP) protocol.
  • HTTP Hypertext Transfer Protocol
  • the ether type of the transmitted data packet containing the information of the terminal device is 0800h.
  • the information of the terminal devices sent by the master station device to the UPF includes the information of two terminal devices.
  • the identification information of the terminal equipment is A and B, respectively.
  • the serial number identification of the terminal device is the number 1 and the number 2, where the number 1 represents that the terminal device A is the first terminal device to receive the EtherCAT type data packet, and the number 2 represents that the terminal device B is the second terminal device.
  • An end device that receives packets of EtherCAT type.
  • Step 603 the UPF obtains information of the terminal device.
  • UPF identifies packets transmitted by means of mailbox communications based on the type of ether (eg, 0800h).
  • the UPF receives the data packet containing the information of the terminal device, obtains the data in the data packet, sends the data to the HTTP application layer for analysis, and finally the UPF obtains the information of the terminal device.
  • the information of the terminal device includes the MAC address of the terminal device, the identification information of the terminal device, and the serial number identification of the terminal device.
  • Step 604 the UPF sends the information of the terminal device to the SMF.
  • Step 605 the SMF creates a virtual network group according to the information of the terminal device, and generates a forwarding rule and a data packet detection rule.
  • SMF creates a virtual network group for terminal device A and terminal device B.
  • the SMF creates the virtual network group by invoking the UDM, or the SMF sends the information of the terminal device to the AF, and the AF invokes the interface opened by the NEF to invoke the UDM to create the virtual network group.
  • the information of the virtual network group is stored in a data storage device (not shown in the figure) by the UDM, for example, a unified data repository (Unified Data Repository, UDR).
  • UDR Unified Data Repository
  • the information of the virtual network group includes the identification information of the terminal device, the serial number identifier of the terminal device, the address of the terminal device, and the group identification information of the virtual network group.
  • the SMF obtains the information of the virtual network group from the UDR through the UDM, and generates forwarding rules and data packet inspection rules according to the information of the virtual network group.
  • forwarding rule and the data packet detection rule reference may be made to the description in step 504 in FIG. 5 , which will not be repeated here.
  • Step 606 the SMF sends the forwarding rule and the data packet inspection rule to the UPF.
  • the SMF sends the group identification information of the virtual network group to the UPF.
  • Step 607 after receiving the forwarding rule and the data packet inspection rule, the UPF sends a response message to the SMF.
  • the UPF sends a response message to the SMF.
  • the network side may also perform other steps for establishing the session between the UPF and the terminal device A, so that the establishment of the session between the UPF and the terminal device A is completed.
  • the network side may also perform other steps for establishing a session between the UPF and the terminal device B, so that the establishment of the session between the UPF and the terminal device B is completed.
  • Step 608 the SMF sends a session establishment completion response message to the master station device through the AF.
  • the session establishment completion response information is used to notify the master station device that the session establishment is completed, and can send EtherCAT type data packets to the terminal device.
  • Step 609 the master station device sends the EtherCAT type data packet to the terminal device through the UPF in the 5GS.
  • the master station device sends EtherCAT type data packets to the terminal device through the UPF and (R)AN (not shown in the figure) in the 5GS in turn.
  • Step 610 the terminal device A identifies the EtherCAT type data packet and forwards it to the auxiliary station device.
  • Step 611 the terminal device A sends to the UPF the EtherCAT type data packets that have been forwarded according to the forwarding sequence of the multiple secondary station devices.
  • Step 612 the UPF determines and changes the destination address and source address of the current EtherCAT type data packet.
  • Step 613 the UPF sends the EtherCAT type data packet to the terminal device B.
  • Step 614 the terminal device B identifies the EtherCAT type data packet and forwards it to the auxiliary station device.
  • Step 615 the terminal device B sends the EtherCAT type data packets to the UPF after the forwarding is completed according to the forwarding sequence of the multiple secondary station devices.
  • Step 616 the UPF determines and changes the destination address and source address of the current EtherCAT type data packet.
  • Step 617 the UPF sends the EtherCAT type data packet to the master station device. So far, a complete EtherCAT type packet forwarding process is completed.
  • steps 609 to 617 reference may be made to the descriptions of steps 509 to 517 in FIG. 5 , which are not repeated in this embodiment.
  • this solution is also applicable to the solution of not creating a virtual network group for terminal devices, that is, in step 605, the SMF generates forwarding rules and data packet detection according to the information of the terminal devices. According to the rules, the UPF completes the forwarding of the data packet. At this time, step 611 in this solution adopts the first or second optional implementation manner.
  • the SMF updates the information of the virtual network group in the UDM according to the updated information of the terminal device. There is no virtual network group created for the terminal device in the SMF, then the SMF updates the forwarding rule according to the updated information of the terminal device, and sends it to the UPF.
  • the master station obtains the ESI files of the 5GS and the auxiliary station equipment, compiles and generates the ENI file, obtains the information of the terminal equipment, and sends the information of the terminal equipment to the UPF by means of mailbox communication, without relying on the customized API interface.
  • the information transmission of the terminal equipment between the main station equipment and the 5GS, this method reduces the changes to the main station equipment.
  • FIG. 7 is a schematic diagram of another flow interaction of data packet forwarding according to an embodiment of the present application. This embodiment includes the following steps:
  • Step 701 the terminal device acquires the built-in information of the auxiliary station device through the connected auxiliary station device.
  • terminal device A is connected to auxiliary station device 1 and auxiliary station device 2
  • terminal device B is connected to auxiliary station device 3 and auxiliary station device 4
  • the built-in information of the auxiliary station equipment 1 includes the information of the connection between the auxiliary station equipment 1 and the terminal equipment A, and also includes the serial number identification information of the terminal equipment A, such as the number 1 (the meaning of the number 1 is:
  • Terminal device A is the first terminal device that receives EtherCAT type data packets), and other terminal devices, such as terminal device B, also included in the industrial Ethernet system after the EtherCAT and 5GS networking.
  • the built-in information of the auxiliary station device may include an IP address of a virtual UPF, and the address information may be used for mailbox communication between the terminal device and the UPF.
  • Step 702 the terminal device sends a connection establishment request message to the UPF.
  • the terminal device may also send a request for establishing a virtual network group to the UPF.
  • the connection establishment request information is used for the terminal device to establish a connection with the UPF, which is used for the execution of the subsequent step 703 .
  • the request for establishing the virtual network group is used by the UPF to send the request for establishing the virtual network group to the SMF after receiving the information of the terminal device, so as to be used by the SMF to create the virtual network group in the subsequent steps, so that in the subsequent steps
  • the forwarding of EtherCAT type data packets can adopt the forwarding mode of 5GLAN.
  • Step 703 the terminal device sends the information of the terminal device to the UPF.
  • the information includes address information of the terminal device, identification information of the terminal device, and serial number identification of the terminal device.
  • the address of the terminal device may be the MAC address of the terminal device, and the sequence number identifier represents the forwarding sequence of the EtherCAT type data packets between the terminal devices.
  • the terminal device sends the information of the terminal device to the UPF by means of mailbox communication.
  • the terminal device sends the information of the terminal device to the UPF by means of mailbox communication.
  • mailbox communication For this step, reference may be made to the description about mailbox communication in step 602 in FIG. 6 .
  • Step 704 the UPF obtains information of the terminal device.
  • the UPF receives the data packet transmitted by means of mailbox communication in step 703, and obtains the information of the terminal device from the data packet.
  • This step may refer to the description in step 603 in FIG. 6 .
  • the information of the terminal device includes the MAC address of the terminal device, the identification information of the terminal device, and the serial number identification of the terminal device.
  • Step 705 the UPF sends the information of the terminal device to the SMF.
  • the SMF has obtained the information of the terminal device.
  • the method for the SMF to obtain the information of the terminal equipment can also use the method of non-access stratum (NAS) communication.
  • NAS communication is a kind of communication between the terminal equipment and the control plane network elements in the core network directly through the RAN.
  • NAS signaling is used for information transmission between the terminal equipment and the control plane network element, and the terminal equipment adds the information of the terminal equipment to the NAS signaling, and sends the information of the terminal equipment to the SMF.
  • Step 706 is subsequently executed.
  • Step 706 the SMF creates a virtual network group, and generates forwarding rules and data packet inspection rules.
  • the SMF creates a virtual network group based on the information of the terminal device.
  • SMF creates a virtual network group for terminal device A and terminal device B.
  • the SMF calls the UDM to create the virtual network group, or the SMF sends the information of the terminal device to the AF, and the AF calls the interface opened by the NEF to call the UDM to create the virtual network group.
  • the information of the virtual network group is stored in a data storage device (not shown in the figure) by the UDM, for example, the UDR.
  • the information of the virtual network group includes the identification information of the terminal device, the serial number identifier of the terminal device, the address of the terminal device, and the group identification information of the virtual network group.
  • the SMF obtains the information of the virtual network group from the UDR through the UDM, and generates forwarding rules and data packet inspection rules according to the information of the virtual network group.
  • forwarding rule and the data packet detection rule reference may be made to the description in step 504 in FIG. 5 , which will not be repeated here.
  • Step 707 the SMF sends the forwarding rule and the data packet inspection rule to the UPF.
  • This step may refer to the description in step 505 in FIG. 5 .
  • Step 708 after receiving the forwarding rule and the data packet inspection rule, the UPF sends a response message to the SMF.
  • the UPF sends a response message to the SMF.
  • the network side may also perform other steps for establishing the session between the UPF and the terminal device A, so that the establishment of the session between the UPF and the terminal device A is completed.
  • the network side may also perform other steps for establishing a session between the UPF and the terminal device B, so that the establishment of the session between the UPF and the terminal device B is completed.
  • Step 709 the SMF sends a session establishment complete response message to the AF.
  • the session establishment completion response information is used to notify the AF that the session establishment is completed, and the information of the virtual network group can be sent to the master station device.
  • Step 710 the AF sends the information of the virtual network group to the master station device.
  • the information of the virtual network group includes the MAC address of the terminal device, the identification information of the terminal device, the serial number identifier of the terminal device, and the group identification information of the virtual network group.
  • the AF obtains the information of the virtual network group through UDM, and sends the information of the virtual network group to the master station device.
  • the AF obtains the information of the virtual network group through the SMF, and sends the information of the virtual network group to the master station device.
  • the master station device may modify the information of the terminal device, for example, the master station device exchanges the serial number identifiers of the terminal device A and the terminal device B as required. If the master station device modifies the information of the terminal device, the master station device can re-implement the creation of the virtual network group and the forwarding of EtherCAT type data packets according to the methods in the embodiments shown in FIG. 5 and FIG. 6 .
  • Step 711 the master station device sends EtherCAT type data packets to the terminal device.
  • the master device sends EtherCAT type data packets to end device A via UPF.
  • the master station device sends EtherCAT type data packets to the terminal device A through the UPF and (R)AN (not shown in the figure) in the 5GS in sequence.
  • the source address information of the data packet is the address of the main station device
  • the destination address information of the data packet is the address of the terminal device A (the serial number identifier is 1)
  • the address information is the MAC address.
  • the UPF when the UPF receives the data packet, according to the data packet detection rules, it detects that the data packet is an EtherCAT type data packet of the virtual network group, and sends the data packet to the terminal device A according to the forwarding rules.
  • Step 712 the terminal device A identifies the EtherCAT type data packet and forwards it to the auxiliary station device.
  • Step 713 The terminal device A sends an EtherCAT type data packet to the UPF, where the data packet is a data packet that has been forwarded according to the forwarding sequence of the multiple secondary station devices.
  • Step 714 the UPF determines and changes the destination address and source address of the current EtherCAT type data packet.
  • Step 715 the UPF sends the EtherCAT type data packet to the terminal device B.
  • Step 716 the terminal device B identifies the EtherCAT type data packet and forwards it to the secondary station device.
  • Step 717 The terminal device B sends to the UPF the EtherCAT type data packets that have been forwarded according to the forwarding sequence of the multiple secondary station devices.
  • Step 718 the UPF determines and changes the destination address and source address of the current EtherCAT type data packet.
  • Step 719 the UPF sends the EtherCAT type data packet to the master device. So far, a complete EtherCAT type packet forwarding process is completed.
  • Steps 711 to 719 may refer to the descriptions of steps 509 to 517 in FIG. 5 .
  • this solution is also applicable to the solution of not creating a virtual network group for the terminal device, that is, in step 706, the SMF does not perform the action of creating a virtual network group after obtaining the information of the terminal device through the UPF.
  • the AF can receive terminal device information from the SMF through the serviced interface.
  • step 713 in this solution adopts the first or second optional implementation manner.
  • the SMF updates the information of the virtual network group in the UDM according to the updated information of the terminal device. If there is no virtual network group created for the terminal device in the SMF, the SMF updates the forwarding rule according to the updated information of the terminal device, and sends it to the UPF.
  • the 5GS obtains built-in information through the auxiliary station equipment, and the SMF in the 5GS generates forwarding rules and data packet detection rules according to the information of the terminal equipment in the built-in information.
  • the embodiments shown in FIG. 5 to FIG. 7 also use the UPF to forward data packets to the terminal device, and complete the forwarding of EtherCAT type data packets according to the forwarding logic of EtherCAT.
  • the method in this embodiment is a method for using the built-in information of auxiliary station equipment to provide terminal equipment information for 5GS in practical industrial scenarios, which can more flexibly implement industrial communication in an industrial communication system integrating 5GS and EtherCAT.
  • FIG. 8 is a schematic diagram of another flow interaction of data packet forwarding according to an embodiment of the present application.
  • the EtherCAT type data packet forwarding method is a device-to-device (Device-to-Device, D2D) forwarding method
  • D2D is a method for direct communication between two terminal devices.
  • step 801 the 5GS or the main station device obtains the information of the terminal device and creates a virtual network group.
  • the master station device sends the information of the terminal device to the AF, and the AF calls the UDM through the NEF to complete the creation of the virtual network group.
  • the master station device sends the information of the terminal device to the AF, and the AF calls the UDM through the NEF to complete the creation of the virtual network group.
  • the master station device sends the information of the terminal device to the AF, and the AF calls the UDM through the NEF to complete the creation of the virtual network group.
  • the master station device sends the information of the terminal device to the AF, and the AF calls the UDM through the NEF to complete the creation of the virtual network group.
  • the AF calls the UDM through the NEF to complete the creation of the virtual network group.
  • the main station device obtains the ESI file of the auxiliary station device and 5GS offline, generates the ENI file by compiling the ESI file, obtains the information of the terminal device, and sends the information of the terminal device to the UPF in the 5GS through mailbox communication, UPF obtains the information of the terminal device from the data packet of mailbox communication and sends the information of the terminal device to SMF.
  • SMF calls UDM, or SMF calls UDM through AF to create a virtual network group for the terminal device, and the virtual network group Group information is stored in UDRs.
  • the terminal device obtains built-in information of the auxiliary station device through the auxiliary station device, the built-in information includes information of the terminal device, and the terminal device sends the information of the terminal device to the UPF. Then the UPF sends the information of the terminal device to the SMF, the SMF calls the UDM, or the SMF calls the UDM through the AF to create a virtual network group for the terminal device, and stores the information of the virtual network group in the UDR.
  • the terminal device obtains built-in information of the auxiliary station device through the auxiliary station device, the built-in information includes information of the terminal device, and the terminal device sends the information of the terminal device to the UPF. Then the UPF sends the information of the terminal device to the SMF, the SMF calls the UDM, or the SMF calls the UDM through the AF to create a virtual network group for the terminal device, and stores the information of the virtual network group in the UDR.
  • the terminal device obtains built-in information of the auxiliary station device through the auxiliary station
  • Step 802 the AF acquires the information of the virtual network group.
  • the AF obtains the information of the virtual network group through the SMF, or the AF obtains the information of the virtual network group through the UDM.
  • the information of the virtual network group includes the MAC address of the terminal device, the identification information of the terminal device, the serial number identifier of the terminal device, and the group identification information of the virtual network group.
  • Step 803 the AF sends the D2D quality of service (Quality of service, QoS) requirements to the (R)AN through the PCF and the AMF in turn.
  • D2D quality of service Quality of service, QoS
  • the AF configures D2D communication between terminal devices according to the information of the virtual network group. AF determines whether D2D communication can be established between two adjacent terminal devices identified by the serial number according to the identification of the terminal device.
  • QoS requirements such as D2D PC5/Uu interface connection information, where the PC5 interface is a short-distance direct communication interface between terminal devices, and the Uu interface is a communication interface between a terminal device and a base station.
  • the Uu interface enables reliable communication over long distances and greater ranges. Because there are two different forwarding modes in D2D, that is, direct communication between terminal devices, or communication between terminal devices and other terminal devices through a base station (this method is communication within the RAN). Therefore the (R)AN can be configured with QoS requirements to enable D2D communication.
  • the forwarding of EtherCAT type data packets between the two terminal devices can be implemented through UPF, that is, terminal device A sends EtherCAT type data to UPF. Packet, UPF uses the forwarding mode of 5G LAN to directly forward the EtherCAT type data packet to terminal device B through the internal interface.
  • the AF sends the group identification information of the virtual network group to the (R)AN through the PCF and the AMF in turn, and the group identification information of the virtual network group can be used for the terminal device to identify the EtherCAT type.
  • Step 804 the AF sends the D2D QoS requirements and policy information configuration information to the terminal device through the PCF and AMF (not shown in the figure) in sequence.
  • D2D QoS requirements and policy information configuration information are used to authenticate and establish a D2D connection between two terminal devices.
  • the policy information is shown in Table 3:
  • Step 805 After the D2D configuration is established between the terminal devices, a D2D configuration completion response message is sent to the master device.
  • the terminal device sends the D2D configuration completion response information to the master station device through the UPF in the 5GS.
  • Step 806 After receiving the D2D configuration completion response information, the master station device sends an EtherCAT type data packet to the terminal device A.
  • the terminal device sends EtherCAT type data packets to the terminal device through the UPF in 5GS.
  • Step 807 the terminal device A identifies the EtherCAT type data packet and forwards it to the auxiliary station device.
  • end devices identify EtherCAT type packets based on the EtherType value (eg, 88A4h).
  • the group identification information of the virtual network group may also be used by the terminal device to identify the EtherCAT type data packet.
  • step 510 For this step, reference may be made to the description of step 510 in the embodiment shown in FIG. 5 .
  • Step 808 the terminal device A sends the EtherCAT type data packet to the terminal device B in a D2D manner.
  • terminal device A receives an EtherCAT type data packet from the UPF, and according to the policy information shown in Table 3, determines to send the EtherCAT type data packet to terminal device B, and terminal device A modifies the EtherCAT type
  • the destination address of the data packet is the address of terminal device B
  • the source address is modified to the address of terminal device A
  • the EtherCAT type data packet is sent to terminal device B through D2D.
  • this step can use the D2D method and UPF to forward the EtherCAT type data packets.
  • the way of combining the method (the forwarding method of 5G LAN), completes the sequential forwarding of EtherCAT type data packets.
  • the terminal Device B cannot establish a D2D connection with terminal device C, so after terminal device B receives the EtherCAT type data packet from terminal device A through D2D, terminal device B compares the source address and destination address in the EtherCAT type data packet. Modify, that is, modify the destination address to the address of terminal device C, modify the source address to the address of terminal device B, and send the EtherCAT type data packet to the UPF, and the UPF uses the internal interface to send the data packet to terminal device C.
  • this step can use the D2D method and UPF to forward the EtherCAT type data packets. (the embodiments shown in FIG. 5 to FIG. 7 ) are combined to complete the sequential forwarding of EtherCAT type data packets. For example, if the virtual network group includes terminal device A (the serial number is identified as number 1), terminal device B (the serial number is identified as number 2), and terminal device C (the serial number is identified as number 3) (not shown in the figure), the terminal Device B cannot establish a D2D connection with terminal device C.
  • terminal device B After terminal device B receives the EtherCAT type data packet from terminal device A through D2D, terminal device B sends the EtherCAT type data packet to UPF. According to the forwarding rules, UPF, The destination address in the data packet is modified to the address of the terminal device C, and the data packet is sent to the terminal device C.
  • Step 809 the terminal device B identifies the EtherCAT type data packet and forwards it to the auxiliary station device.
  • This step may refer to the description of step 807 .
  • EtherCAT type data packets that is, the last terminal device in the EtherCAT forwarding logic sequence, after receiving the EtherCAT type data packets, to the wired connection.
  • the auxiliary station device sends the data packet in the sequence of wired connection, and receives the EtherCAT type data packet from the last auxiliary station device in the sequence of wired connection.
  • Step 810 the terminal device B sends the EtherCAT type data packet to the UPF.
  • the last terminal device in the forwarding logic of EtherCAT is terminal device B.
  • terminal device B receives the EtherCAT type data packet from terminal device A, according to the policy information shown in Table 3, it is determined to send the data to the master device. After sending the EtherCAT type data packet, the terminal device B sends the EtherCAT type data packet to the UPF.
  • terminal device B modifies the destination address of the EtherCAT type data packet to the address of the master station device, and the source address is modified to the address of terminal device B, and terminal device B sends the EtherCAT type data packet to the UPF.
  • Step 811 the UPF determines and changes the destination address and source address of the EtherCAT type data packet.
  • the UPF determines that the EtherCAT type data packet received in step 810 should be sent to the master station device. If in step 810, the terminal device does not change the destination address of the EtherCAT type data packet to the address of the master station device, the UPF changes the destination address of the EtherCAT type data packet to the address of the master station device, and changes the source of the EtherCAT type data packet.
  • the address is the address of the terminal device that sends the EtherCAT type data packet to the UPF in step 810 .
  • step 812 the UPF sends the EtherCAT type data packet to the master station device. So far, a complete EtherCAT type data packet forwarding process is completed.
  • this solution is also applicable to a solution in which a virtual network group is not created for a terminal device, that is, the creation of a virtual network group may not be performed in this embodiment.
  • the AF can use the method of directly acquiring the information of the terminal device from the main station device in the embodiment shown in FIG. 5, or the AF can also use the communication between the UPF and the main station device in the embodiment shown in FIG. 6 to acquire the terminal device from the UPF.
  • the AF can also obtain the information of the terminal device by using the method of obtaining the information of the built-in terminal device from the auxiliary station device in the embodiment shown in FIG. 7 .
  • the AF generates policy information according to the information of the terminal device, and sends it to the terminal device.
  • the data packets can be forwarded between the terminal devices in a D2D manner, or can be forwarded according to the first or third optional implementation manner in step 808. The method completes the forwarding of the data packet.
  • the forwarding of EtherCAT type data packets reduces the forwarding between the terminal device and the core network device (for example, UPF), and reduces the delay of the communication system, so that the industrial communication system integrated with 5GS and EtherCAT can Supports communication with lower latency.
  • the core network device for example, UPF
  • FIG. 9 is a schematic diagram of another flow interaction of data packet forwarding according to an embodiment of the present application. This embodiment will be described in conjunction with the embodiment shown in FIG. 5 to FIG. 7 , and the embodiment includes the following steps:
  • Step 901 the user plane function device receives the forwarding rule from the session management function device.
  • the forwarding rule reference may be made to the description about the forwarding rule in step 504 in the embodiment shown in 5, which is not repeated here.
  • the user plane function device may be UPF
  • the session management function device may be SMF
  • the user plane function device obtains the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device, and sends the information to the session management function device.
  • the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device, the forwarding rule is set by the session management function device according to the serial number information of the first terminal device, the second terminal device
  • the serial number information of the device, the address of the first terminal device and the address of the second terminal device are generated.
  • the first terminal device is terminal device A
  • the second terminal device is terminal device B
  • the serial number of the first terminal device is number 1
  • the serial number of the second terminal device is number 2
  • the first terminal device is EtherCAT forwarding sequence receiving The terminal device of the data packet sent by the master station device
  • the second terminal device is the terminal device that receives the data packet from the first terminal device in the EtherCAT forwarding sequence.
  • the forwarding rule includes serial number information of the first terminal device, serial number information of the second terminal device, an address of the first terminal device, and an address of the second terminal device.
  • the user plane function device acquires the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device from the master station device.
  • the master station device For this implementation, reference may be made to the description of step 602 in the embodiment shown in FIG. 6 .
  • the user plane function device obtains the serial number information of the first terminal device and the address of the first terminal device from the first terminal device, and obtains the serial number information of the second terminal device and the second terminal device from the second terminal device.
  • the address of the device For this implementation, reference may be made to the description of step 703 in the embodiment shown in FIG. 7 .
  • step 505 in the embodiment shown in FIG. 5
  • step 606 in the embodiment shown in FIG. 6
  • step 707 in the embodiment shown in FIG. 7 .
  • Step 902 the user plane function device receives the first data packet of the Ethernet type from the master station device.
  • the first data packet of the Ethernet type is a data packet of the EtherCAT type.
  • Step 903 the user plane function device sends a first data packet to the first terminal device.
  • Steps 902 and 903 may refer to the description of step 509 in the embodiment shown in FIG. 5 , or, steps 902 and 903 may refer to the description of step 609 of the embodiment shown in FIG. 6 , or, steps 902 and 903 may refer to FIG. 6 .
  • 7 is a description of step 711 of the embodiment shown.
  • Step 904 the user plane function apparatus receives a second data packet associated with the first data packet from the first terminal device.
  • the second data packet may be the same as the first data packet, or may be different from the first data packet.
  • the first terminal device sends the first data packet to the connected auxiliary station device, and the auxiliary station device can modify the information in the first data packet, or the first terminal device can modify the information in the first data packet.
  • the destination address is modified to the address of the second terminal device, or the first terminal device modifies the destination address of the data packet whose information in the data packet has been modified by the auxiliary station device to the address of the second terminal device.
  • the first data packet is for the second data packet.
  • step 511 in the embodiment shown in FIG. 5 reference may be made to the description of step 511 in the embodiment shown in FIG. 5 , step 611 in the embodiment shown in FIG. 6 , or step 713 in the embodiment shown in FIG. 7 .
  • Step 905 the user plane function device modifies the destination address of the second data packet to the address of the second terminal device according to the forwarding rule to obtain a third data packet.
  • the destination address in the third data packet is the address of the second terminal device.
  • the user plane functional device after receiving the data packet, detects the data packet according to the data packet detection rule, and determines that the current data packet is from the terminal device A according to the forwarding rule and the address information in the current data packet.
  • the EtherCAT type data packet is subsequently sent to the terminal device B, then the user plane function device modifies the source address in the EtherCAT type data packet to the address of the main station device, and the destination address is modified to the address of the terminal device B. , and send it to terminal device B.
  • step 512 in the embodiment shown in FIG. 5 step 612 in the embodiment shown in FIG. 6 , or step 714 in the embodiment shown in FIG. 7 .
  • Step 906 the user plane function device sends a third data packet to the second terminal device.
  • the method further includes: the user plane function device receives a fourth data packet from a third terminal device, where the third terminal device may be the second terminal device, or a third terminal device other than the first terminal device and the second terminal device. other terminal equipment of the device.
  • the user plane function device receives the fourth data packet associated with the third data packet from the second terminal device, for example, the second terminal device sends the third data packet to the auxiliary station device connected by wire
  • the auxiliary station equipment can modify the information in the third data packet, or the second terminal equipment can modify the destination address of the third data packet to the address of the third terminal equipment, or the second terminal equipment can modify the information in the auxiliary station equipment
  • the destination address of the data packet whose information in the data packet has been modified is modified to the address of the third terminal device, and the fourth data packet is different from the third data packet; modification, and the second terminal device does not modify the destination address in the third data packet, then the fourth data packet is the same as the third data packet.
  • the forwarding sequence of the EtherCAT type data packet only includes the first terminal device and the second terminal device, then the user plane function device sends the fifth data packet associated with the fourth data packet to the master station device,
  • the destination address of the fifth data packet is the address of the main station device.
  • the user plane function device receives a sixth data packet associated with the third data packet from the second terminal device, the sixth data packet
  • the relationship with the third data packet can be referred to the above description, and will not be repeated.
  • the user plane function device modifies the destination address in the sixth data packet to the address of the third terminal device, obtains the seventh data packet, and sends it to the third terminal device.
  • the seventh packet is sent.
  • the forwarding sequence of the EtherCAT type data packet only includes the first terminal device, the second terminal device and the third terminal device, then the user plane function device sends the data packet associated with the seventh data packet to the master station device.
  • the fifth data packet wherein the destination address of the fifth data packet is the address of the base station device.
  • the user plane functional device can modify the destination address of the EtherCAT type data packet according to the forwarding rules, and execute the forwarding of the data packet. Therefore, the industrial communication system integrated with 5GS and EtherCAT can realize the execution of EtherCAT type data according to the forwarding logic of EtherCAT. In-order forwarding of packets.
  • FIG. 10 is a schematic diagram of another flow interaction of data packet forwarding according to an embodiment of the present application. This embodiment will be described in conjunction with the embodiment shown in FIG. 5 to FIG. 7 , and the embodiment includes the following steps:
  • Step 1001 the session management function apparatus acquires the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device.
  • the session management function device obtains the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the second terminal device from the master station device through the user plane function device. the address of.
  • the session management function device obtains the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the second terminal device from the master station device through the user plane function device. the address of.
  • the session management function device obtains the serial number information of the first terminal device and the address of the first terminal device from the first terminal device through the user plane function device, and obtains the serial number information of the second terminal device from the second terminal device. and the address of the second terminal device.
  • the session management function device obtains the serial number information of the first terminal device and the address of the first terminal device from the first terminal device through the user plane function device, and obtains the serial number information of the second terminal device from the second terminal device. and the address of the second terminal device.
  • steps 701 to 705 in the embodiment shown in FIG. 7 .
  • the session management function device sends the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device to the unified data management device.
  • the serial number information of a terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device are used to create or update a virtual network group, and the virtual network group includes the first terminal device and the second terminal device.
  • Two terminal equipment For this implementation manner, reference may be made to the description of step 605 in the embodiment shown in FIG. 6 or step 706 in the embodiment shown in FIG. 7 .
  • the session management function apparatus obtains the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device from the unified data management device.
  • the session management function apparatus obtains the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device from the unified data management device.
  • Step 1002 the session management function device generates a forwarding rule according to the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device.
  • the forwarding rule is used to modify the destination address of the first data packet.
  • the forwarding rule includes serial number information of the first terminal device, serial number information of the second terminal device, an address of the first terminal device, and an address of the second terminal device.
  • the forwarding rule is used by the user plane function device to modify the destination address of the first data packet, that is, when the first data packet is received by the user plane function device from the first terminal device, the forwarding rule is used by the user The plane function device modifies the destination address of the first data packet to the address of the second terminal device.
  • step 504 in the embodiment shown in FIG. 5
  • step 605 in the embodiment shown in FIG. 6
  • step 706 in the embodiment shown in FIG. 7 .
  • Step 1003 the session management function device sends a forwarding rule to the user plane function device.
  • step 505 in the embodiment shown in FIG. 5
  • step 606 in the embodiment shown in FIG. 6
  • step 707 in the embodiment shown in FIG. 7 .
  • the session management function device generates a forwarding rule, and the end user plane function device can modify the destination address of the EtherCAT type data packet according to the forwarding rule, and execute the forwarding of the data packet. Therefore, the industrial communication system integrated with 5GS and EtherCAT can realize In-order forwarding of EtherCAT-type packets is performed according to the forwarding logic of EtherCAT.
  • FIG. 11 is a schematic diagram of a communication apparatus provided according to an embodiment of the present application.
  • the communication device includes a processing module 1101 , a receiving module 1102 and a sending module 1103 .
  • the processing module 1101 is used to implement data processing by the communication device.
  • the receiving module 1102 is used to receive the content of the communication device and other units or network elements, and the sending module 1103 is used to receive the content of the communication device and other units or network elements.
  • the processing module 1101 in this embodiment of the present application may be implemented by a processor or a processor-related circuit component (or referred to as a processing circuit), and the receiving module 1102 may be implemented by a receiver or a receiver-related circuit component.
  • the sending module 1103 may be implemented by a transmitter or a transmitter-related circuit component.
  • the communication device may be a communication device device, or a chip applied in the communication device device or other combined devices, components, etc. having the functions of the above-mentioned communication device device.
  • the communication device may be the SMF or the session management function device in any of FIG. 5 to FIG. 10 , or the UPF or the user plane function device in any of FIGS. 5 to 9 , or the device of FIG. 5 to FIG. 9 (terminal device A or terminal device B in FIG. 5 to FIG. 8 , the first terminal device or the second terminal device in FIG. 9 ), or the terminal device in FIG. 5 , FIG. 7 and FIG. 8
  • Any of the AFs may be any of the UDMs of FIGS. 5 , 7 and 8 .
  • the receiving module 1102 is configured to receive forwarding rules from the session management functional device (eg, step 505 in FIG. 5 , step 606 in FIG. 6 , step 707 in FIG. 7 , and step 707 in FIG. Step 901 in 9); the receiving module 1102 is used to receive the first data packet of the Ethernet type from the master station device (for example, step 509 in FIG. 5, step 609 in FIG. 6, step 711 in FIG. 7, and FIG. 9).
  • the sending module 1103 is used to send the first data packet to the first terminal device (for example, step 509 in FIG. 5 , step 609 in FIG. 6 , step 711 in FIG. 7 , step 903 in FIG.
  • the receiving module 1102 is configured to receive the second data packet associated with the first data packet from the first terminal device (eg, step 511 in FIG. 5 , step 611 in FIG. 6 , step 713 in FIG. 7 , and step 713 in FIG. 9 ).
  • the processing module 1101 is used to modify the destination address of the second data packet to the address of the second terminal device according to the forwarding rule (for example, step 512 in FIG. 5 , step 612 in FIG. 6 , step in FIG. 7 ) 714, step 905 in Fig. 9) to obtain the third data packet;
  • the sending module 1103 is used to send the third data packet to the second terminal device according to the forwarding rule (for example, step 513 in Fig. 5, step 613 in Fig. 6, Step 715 in Figure 7, Step 906 in Figure 9).
  • the receiving module 1102 is configured to obtain the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device (for example, Step 503 in FIG. 5 , Step 604 in FIG. 6 , Step 705 in FIG. 7 , Step 1001 in FIG. 10 ); the processing module 1101 is configured to use the serial number information of the first terminal device and the serial number information of the second terminal device according to the , the address of the first terminal device and the address of the second terminal device generate forwarding rules (for example, step 504 in FIG. 5, step 605 in FIG. 6, step 706 in FIG. 7, step 1002 in FIG.
  • forwarding rules For the modification of the destination address of the first data packet; the sending module 1103 is used to send the forwarding rules to the user plane functional device (for example, step 505 in FIG. 5 , step 606 in FIG. 6 , step 707 in FIG. 7 , and FIG. 10 in step 1003).
  • the receiving module 1102 is configured to receive policy information (eg, step 804 in FIG. 8 ); the receiving module 1102 is configured to receive the first data packet of the Ethernet type (eg, step 806 in FIG. 8 ) ;
  • the processing module 1101 is used to modify the destination address in the first data packet according to the policy information to be the address of the second terminal device (for example, step 809 in FIG. 8 ) to obtain the second data packet;
  • the sending module 1103 is used to send the second terminal to the The device sends the second data packet (eg, step 809 in Figure 8).
  • the receiving module 1102 is configured to obtain the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device (for example, the steps in FIG. 5 ).
  • the processing module 1101 is configured to call the unified interface by calling the interface of the network open function device according to the serial number information of the first terminal equipment, the serial number information of the second terminal equipment, the identification of the first terminal equipment and the identification of the second terminal equipment.
  • the data management device implements the creation or update of the virtual network group (eg, step 502 in FIG. 5 ).
  • the receiving module 1102 is used to obtain the serial number information of the first terminal device and the serial number information of the second terminal device (eg step 710 in FIG. 7 );
  • the sending module 1103 is used to send the serial number information of the first terminal device to the master station device and the serial number information of the second terminal device, the serial number information of the first terminal device and the serial number information of the second terminal device are used for the maintenance of the serial number information (for example, step 710 in FIG. 7 ).
  • the receiving module 1102 is configured to obtain the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device (for example, the steps in FIG. 5 ). 502, step 706 in Fig. 7, step 801 in Fig. 8); the processing module 1101 is used for according to the serial number information of the first terminal equipment, the serial number information of the second terminal equipment, the identification of the first terminal equipment and the second terminal equipment Create a virtual network group (for example, step 502 in FIG. 5, step 706 in FIG. 7, step 801 in FIG.
  • the processing module 1101 is used for the serial number information of the first terminal device, the second terminal
  • the serial number information of the device, the identifier of the first terminal device and the identifier of the second terminal device update the information of the virtual network group (eg step 502 in FIG. 5 , step 706 in FIG. 7 , step 801 in FIG. 8 ).
  • FIG. 12 is a schematic diagram of another communication apparatus provided according to an embodiment of the present application.
  • the communication apparatus includes: a processor 1201 , a communication interface 1202 , and a memory 1203 .
  • the processor 1201, the communication interface 1202 and the memory 1203 can be connected to each other through a bus 1204;
  • the bus 1204 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus etc.
  • PCI peripheral component interconnect
  • EISA extended industry standard architecture
  • the above-mentioned bus 1204 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one line is shown in FIG. 12, but it does not mean that there is only one bus or one type of bus.
  • the processor 1201 may be a central processing unit (CPU), a network processor (NP), or a combination of CPU and NP.
  • the processor may further include a hardware chip.
  • the above-mentioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof.
  • the above-mentioned PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general-purpose array logic (Generic Array Logic, GAL) or any combination thereof.
  • Memory 1203 may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory.
  • the non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically programmable Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory.
  • Volatile memory may be random access memory (RAM), which acts as an external cache.
  • the communication device may be the SMF or the session management function device in any of FIG. 5 to FIG. 10 , or the UPF or the user plane function device in any of FIGS. 5 to 9 , or the device of FIG. 5 to FIG. 9 (terminal device A or terminal device B in FIG. 5 to FIG. 8 , the first terminal device or the second terminal device in FIG. 9 ), or the terminal device in FIG. 5 , FIG. 7 and FIG. 8
  • Any of the AFs may be any of the UDMs of FIGS. 5 , 7 and 8 .
  • the processor 1201 is used for implementing data processing operations of the communication device, and the communication interface 1202 is used for implementing receiving operations and sending operations of the communication device.
  • the communication interface 1202 is configured to receive forwarding rules from the session management function device (eg, step 505 in FIG. 5 , step 606 in FIG. 6 , step 707 in FIG. Step 901 in 9); the communication interface 1202 is used to receive the first data packet of the Ethernet type from the master station device (for example, step 509 in FIG. 5, step 609 in FIG. 6, step 711 in FIG. 7, and FIG. 9 The communication interface 1202 is used to send the first data packet to the first terminal device (for example, step 509 in FIG. 5, step 609 in FIG. 6, step 711 in FIG. 7, and step 903 in FIG. 9).
  • the communication interface 1202 is used to receive a second data packet associated with the first data packet from the first terminal device (eg, step 511 in FIG. 5 , step 611 in FIG. 6 , step 713 in FIG. 7 , and in FIG. 9 ). step 904); the processor 1201 is configured to modify the destination address of the second data packet to the address of the second terminal device according to the forwarding rule (for example, step 512 in FIG. 5 , step 612 in FIG. 6 , step 7 in FIG. 7 ) 714, step 905 in Fig. 9) to obtain the third data packet; the communication interface 1202 is used to send the third data packet to the second terminal device according to the forwarding rule (for example, step 513 in Fig. 5, step 613 in Fig. 6, Step 715 in Figure 7, Step 906 in Figure 9).
  • the forwarding rule for example, step 513 in Fig. 5, step 613 in Fig. 6, Step 715 in Figure 7, Step 906 in Figure 9).
  • the communication interface 1202 is used to obtain the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device (for example, Step 503 in FIG. 5 , Step 604 in FIG. 6 , Step 705 in FIG. 7 , Step 1001 in FIG. 10 ); the processor 1201 is configured to use the serial number information of the first terminal device and the serial number information of the second terminal device according to the , the address of the first terminal device and the address of the second terminal device generate forwarding rules (for example, step 504 in FIG. 5, step 605 in FIG. 6, step 706 in FIG. 7, step 1002 in FIG.
  • forwarding rules for example, step 504 in FIG. 5, step 605 in FIG. 6, step 706 in FIG. 7, step 1002 in FIG.
  • forwarding rules For the modification of the destination address of the first data packet; the communication interface 1202 is used to send the forwarding rules to the user plane functional device (eg step 505 in FIG. 5, step 606 in FIG. 6, step 707 in FIG. 7, FIG. 10 in step 1003).
  • the user plane functional device eg step 505 in FIG. 5, step 606 in FIG. 6, step 707 in FIG. 7, FIG. 10 in step 1003.
  • the communication interface 1202 is used to receive policy information (eg, step 804 in FIG. 8 ); the communication interface 1202 is used to receive the first data packet of the Ethernet type (eg, step 806 in FIG. 8 ) ; The processor 1201 is used to modify the destination address in the first data packet according to the policy information to be the address of the second terminal device (for example, step 809 in FIG. 8 ) to obtain the second data packet; The communication interface 1202 is used to send the second terminal The device sends the second data packet (eg, step 809 in Figure 8).
  • the communication interface 1202 is used to obtain the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device (for example, the steps in FIG. 5 ).
  • the processor 1201 is configured to call the unified interface by calling the interface of the network open function device according to the serial number information of the first terminal equipment, the serial number information of the second terminal equipment, the identification of the first terminal equipment and the identification of the second terminal equipment.
  • the data management device implements the creation or update of the virtual network group (eg, step 502 in FIG. 5 ).
  • the communication interface 1202 is used to obtain the serial number information of the first terminal device and the serial number information of the second terminal device (for example, step 710 in FIG. 7 ); the communication interface 1202 is used to send the serial number information of the first terminal device to the master station device and the serial number information of the second terminal device, the serial number information of the first terminal device and the serial number information of the second terminal device are used for the maintenance of the serial number information (for example, step 710 in FIG. 7 ).
  • the communication interface 1202 is used to obtain the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device (for example, the steps in FIG. 5 ). 502, step 706 in Fig. 7, step 801 in Fig. 8); the processor 1201 is used for according to the serial number information of the first terminal equipment, the serial number information of the second terminal equipment, the identification of the first terminal equipment and the second terminal equipment Create a virtual network group (for example, step 502 in FIG. 5 , step 706 in FIG. 7 , step 801 in FIG.
  • the processor 1201 is configured to use the serial number information of the first terminal device, the second terminal
  • the serial number information of the device, the identifier of the first terminal device and the identifier of the second terminal device update the information of the virtual network group (eg step 502 in FIG. 5 , step 706 in FIG. 7 , step 801 in FIG. 8 ).
  • An embodiment of the present application provides a communication system, which includes the aforementioned user plane function device (or UPF) and a session management function device (or SMF), wherein the user plane function device (or UPF) executes any one of FIG. 5 to FIG. 9 .
  • the session management function device (or SMF) performs the method performed by the UE in the embodiments shown in FIG. 5 to FIG. 10 .
  • An embodiment of the present application further provides a communication system, which includes the aforementioned user plane function device (or UPF) and a terminal device (for example, terminal device A or terminal device B), wherein the terminal device executes the terminal device in the embodiment shown in FIG. 8 .
  • a communication system which includes the aforementioned user plane function device (or UPF) and a terminal device (for example, terminal device A or terminal device B), wherein the terminal device executes the terminal device in the embodiment shown in FIG. 8 .
  • UPF user plane function device
  • terminal device for example, terminal device A or terminal device B
  • An embodiment of the present application further provides a communication system, which includes the aforementioned AF and UDM, wherein the AF performs the method performed by the AF in the embodiments shown in FIG. 5 , FIG. 7 , and FIG. 8 , and the UDM performs the method shown in FIGS. The method performed by the UDM in the embodiment shown in 8.
  • Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium.
  • the computer can implement FIGS. 5 to 10 provided by the foregoing method embodiments.
  • the process related to SMF in any one of the embodiments shown, or, the computer can implement the process related to UPF in any of the embodiments shown in FIG. 5 to FIG. 9 provided by the above method embodiment, or,
  • the computer may implement the processes related to the terminal device in any of the embodiments shown in FIG. 5 to FIG. 9 provided by the above method embodiments, or the computer may implement the processes shown in FIG. 5 and FIG. 7 provided by the above method embodiments.
  • the process related to AF in the embodiment shown in FIG. 8 or the computer can implement the process related to UDM in the embodiment shown in FIG. 5 , FIG. 7 or FIG. 8 provided by the above method embodiment.
  • Embodiments of the present application further provide a computer program product, where the computer program product is used to store a computer program, and when the computer program is executed by a computer, the computer can implement any one of FIGS. 5 to 10 provided by the foregoing method embodiments.
  • the process related to SMF in the shown embodiment, or the computer can implement the process related to UPF in any of the embodiments shown in FIG. 5 to FIG. 9 provided by the above method embodiment, or the computer
  • the process related to the terminal device in any of the embodiments shown in FIG. 5 to FIG. 9 provided by the foregoing method embodiments may be implemented, or the computer may implement FIG. 5 , FIG. 7 , or FIG. 8 provided by the foregoing method embodiments.
  • the process related to AF in the shown embodiment, or the computer can implement the process related to UDM in the embodiment shown in FIG. 5 , FIG. 7 or FIG. 8 provided by the above method embodiment.
  • the present application also provides a chip including a processor.
  • the processor is configured to read and run the computer program stored in the memory to execute the corresponding operations and/or processes of the UDM, AF, UPF, SMF or terminal device in the method for registering to multiple networks provided in this application.
  • the chip further includes a memory, the memory and the processor are connected to the memory through a circuit or a wire, and the processor is used for reading and executing the computer program in the memory.
  • the chip further includes a communication interface, and the processor is connected to the communication interface.
  • the communication interface is used to receive processed data and/or information, and the processor acquires the data and/or information from the communication interface and processes the data and/or information.
  • the communication interface may be an input/output interface, an interface circuit, an output circuit, an input circuit, a pin or a related circuit on the chip, and the like.
  • the processor may also be embodied as a processing circuit or a logic circuit.
  • the above-mentioned chip can also be replaced by a chip system, which will not be repeated here.
  • the disclosed system, apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual conditions to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the functions, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium.
  • the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution.
  • the computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes .

Landscapes

  • Small-Scale Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Embodiments of the present application provide a method, apparatus, and system for transmitting a data packet. The method comprises: a session management function apparatus obtains serial number information and address information of a terminal device, the serial number information representing an order in which the terminal device receives a data packet; the session management function apparatus generates a forwarding rule according to the serial number information and the address information, and sends the forwarding rule to a user plane function apparatus; and the user plane function apparatus amends the destination address of the data packet according to the forwarding rule, and sends the data packet to a terminal device corresponding to the destination address, thereby finally achieving sequential forwarding of the data packet. By means of the method, after an industrial Ethernet and a cellular network of an Ethernet for Control Automation Technology (EtherCAT) are networked, the user plane function apparatus can forward, to a plurality of terminal devices according to the forwarding logic of the EtherCAT, a data packet sent by a master station device, and finally forwards the data packet to the master station device, thereby finishing the complete EtherCAT communication.

Description

一种数据包传输的方法、装置和系统Method, device and system for data packet transmission 技术领域technical field
本申请涉及通信领域,尤其涉及一种数据包传输的方法、装置和系统。The present application relates to the field of communications, and in particular, to a method, apparatus and system for data packet transmission.
背景技术Background technique
工业4.0的概念出现之后,整个工业领域对于工业智能化的需求愈发迫切。工业智能化是指:工业生产过程中,工业控制设备从部署在各个工业环节中的传感器接收的与工业生产相关的数据(例如,温度数据或压力数据),根据此数据进行分析和决策,生成执行指令,并且向现场的工业生产设备发送该执行指令。通过工业智能化,工业生产可以通过工业控制设备对工业资源进行配置优化,提高企业效益。实现工业智能化的一个关键因素就是工业设备可以有效且灵活地实现通信。After the emergence of the concept of Industry 4.0, the demand for industrial intelligence in the entire industrial field has become more and more urgent. Industrial intelligence refers to: in the process of industrial production, industrial control equipment receives industrial production-related data (for example, temperature data or pressure data) from sensors deployed in various industrial links, analyzes and makes decisions based on this data, and generates The execution instruction is executed, and the execution instruction is sent to the industrial production equipment in the field. Through industrial intelligence, industrial production can optimize the allocation of industrial resources through industrial control equipment to improve enterprise efficiency. A key factor in realizing industrial intelligence is that industrial equipment can communicate efficiently and flexibly.
以太网控制自动化技术(Ethernet for Control Automation Technology,EtherCAT)作为一种具有代表性的工业以太网技术,可应用在工业领域中以实现工业的辅站设备与主站设备之间的实时且可靠的通信。例如,主站设备可以是控制设备,辅站设备可以是现场设备。Ethernet for Control Automation Technology (EtherCAT), as a representative industrial Ethernet technology, can be applied in the industrial field to realize real-time and reliable real-time and reliable communication between industrial auxiliary equipment and master equipment. communication. For example, the master device may be a control device, and the slave device may be a field device.
EtherCAT通信的方式如下:以主站设备与第一辅站设备和第二辅站设备通信,且第一辅站设备和第二辅站设备只读取数据包中的数据为例,主站设备将向第一辅站设备和第二辅站设备发送的数据封装为一个以太类型的数据包,主站设备按照既定的顺序,向第一个辅站设备发送该数据包;当第一个辅站设备从该数据包中读取数据后,第一个辅站设备按照既定的顺序向第二个辅站设备发送该数据包,当第二个辅站设备从该数据包中读取数据后,第二个辅站设备按照既定的顺序向主站设备发送该数据包,至此,一次完整的EtherCAT通信完成。The way of EtherCAT communication is as follows: Take the master station device communicating with the first auxiliary station device and the second auxiliary station device, and the first auxiliary station device and the second auxiliary station device only read the data in the data packet as an example, the master station device The data sent to the first auxiliary station equipment and the second auxiliary station equipment is encapsulated into an Ethernet type data packet, and the master station equipment sends the data packet to the first auxiliary station equipment according to the established order; when the first auxiliary station equipment After the station device reads the data from the data packet, the first auxiliary station device sends the data packet to the second auxiliary station device according to the predetermined order. When the second auxiliary station device reads the data from the data packet, , the second auxiliary station device sends the data packet to the master station device according to the predetermined sequence, so far, a complete EtherCAT communication is completed.
第五代移动通信系统(5th generation system,5GS)具有低延迟、高带宽、高可靠性等特性,可以作为工业无线通信的一种可行方案。若工业通信中使用5GS提供低延时、高可靠的无线通信,5GS应能够支持EtherCAT的协议来实现工业通信中实时且可靠的无线通信。现有的5GS与工业以太网组网后,辅站设备通过有线的方式与终端设备连接,主站设备通过5GS向终端设备发送数据包,由终端设备向连接的辅站设备发送数据包。当5GS与工业以太网组网后的系统中的所有的辅站设备由多个终端设备连接时,第一个终端设备从所连接的辅站设备接收数据包后,无法按照既定的顺序向第二个终端设备所连接的辅站设备发送该数据包,第一个终端设备将该数据包通过5GS向主站发送,这样主站设备与辅站设备之间无法完成完整的EtherCAT通信,也就是说,目前5GS与工业以太网组网后无法支持EtherCAT的通信方式。The fifth generation mobile communication system (5GS) has the characteristics of low delay, high bandwidth, and high reliability, and can be used as a feasible solution for industrial wireless communication. If 5GS is used in industrial communication to provide low-latency, highly reliable wireless communication, 5GS should be able to support the EtherCAT protocol to realize real-time and reliable wireless communication in industrial communication. After the existing 5GS is networked with the industrial Ethernet, the auxiliary station equipment is connected to the terminal equipment through a wired method, the main station equipment sends data packets to the terminal equipment through 5GS, and the terminal equipment sends data packets to the connected auxiliary station equipment. When all the auxiliary station equipment in the system after 5GS is networked with industrial Ethernet are connected by multiple terminal equipments, after the first terminal equipment receives data packets from the connected auxiliary station equipment, it cannot send data packets to the The auxiliary station equipment connected to the two terminal equipment sends the data packet, and the first terminal equipment sends the data packet to the master station through 5GS, so that the complete EtherCAT communication cannot be completed between the master station equipment and the auxiliary station equipment, that is, It is said that the communication method of EtherCAT cannot be supported after 5GS is currently networked with industrial Ethernet.
发明内容SUMMARY OF THE INVENTION
本申请描述了一种数据包传输的方法、装置和系统。This application describes a method, apparatus and system for data packet transmission.
第一方面,本申请的实施例提供了一种数据包传输的方法,该方法由用户面功能装置执行。该方法包括:用户面功能装置从会话管理功能装置接收转发规则;用户面功能装置从主站设备接收以太网类型的第一数据包;用户面功能装置向第一终端设备发送第一数据包;用户面功能装置从第一终端设备接收与第一数据包关联的第二数据包;用户面功能装置根据转发规则将第二数据包的目的地址修改为第二终端设备的地址,得到第三数据包;用户面功能装置根据转发规则向第二终端设备发送第三数据包。其中,第一数据包可以与第二数据包相同,也可以不同;第三数据包中的目的地址为第二终端设备的地址。根据上述方案,当以太网控制自动化技术EtherCAT的工业以太网与蜂窝网络组网后,用户面功能装置可以将主站设备发出的数据包,按照EtherCAT的转发逻辑依次向多个终端设备转发该数据包,最终将该数据包转发回主站设备,完成完整的EtherCAT通信。In a first aspect, an embodiment of the present application provides a data packet transmission method, and the method is executed by a user plane function device. The method includes: the user plane function device receives the forwarding rule from the session management function device; the user plane function device receives the first data packet of the Ethernet type from the master station device; the user plane function device sends the first data packet to the first terminal device; The user plane function device receives the second data packet associated with the first data packet from the first terminal device; the user plane function device modifies the destination address of the second data packet to the address of the second terminal device according to the forwarding rule, and obtains the third data packet packet; the user plane function device sends the third data packet to the second terminal device according to the forwarding rule. The first data packet may be the same as or different from the second data packet; the destination address in the third data packet is the address of the second terminal device. According to the above solution, when the industrial Ethernet of the Ethernet control automation technology EtherCAT is networked with the cellular network, the user plane function device can forward the data packets sent by the master station device to multiple terminal devices in turn according to the forwarding logic of EtherCAT. packet, and finally forward the data packet back to the master device to complete the complete EtherCAT communication.
例如,一次EtherCAT通信链路中数据包在第一终端设备和第二终端设备之间的转发顺序依次为,第一终端设备和第二终端设备。主站设备先通过用户面功能装置向第一终端设备发送以太网类型的第一数据包,第一终端设备从用户面功能装置接收到该第一数据包后,向用户面功能装置发送该第一数据包,用户面功能装置将从第一终端设备接收的数据包中的目的地址修改为第二终端设备的地址,得到第二数据包,也就是说第二数据包中的目的地址为第二终端设备的地址,然后向第二终端设备发送该第二数据包。当第二终端设备收到该第二数据包后,向用户面功能装置发送该第二数据包。For example, the forwarding sequence of the data packets between the first terminal device and the second terminal device in an EtherCAT communication link is in the order of the first terminal device and the second terminal device. The main station device first sends the first data packet of the Ethernet type to the first terminal device through the user plane function device, and after receiving the first data packet from the user plane function device, the first terminal device sends the first data packet to the user plane function device. For a data packet, the user plane function device modifies the destination address in the data packet received from the first terminal device to the address of the second terminal device to obtain the second data packet, that is to say, the destination address in the second data packet is the first data packet. address of the second terminal device, and then send the second data packet to the second terminal device. After receiving the second data packet, the second terminal device sends the second data packet to the user plane function device.
一种可能的实施方式中,该方法还包括:用户面功能装置从第三终端设备接收第四数据包;用户面功能装置向主站设备发送与第四数据包关联的第五数据包。其中,第三终端设备可以是第二终端设备,或者,第三终端设备可以是除第一终端设备和第二终端设备外的其他终端设备。In a possible implementation manner, the method further includes: the user plane function device receives a fourth data packet from the third terminal device; and the user plane function device sends a fifth data packet associated with the fourth data packet to the master station device. The third terminal device may be the second terminal device, or the third terminal device may be other terminal devices except the first terminal device and the second terminal device.
例如,当第三终端设备是第二终端设备,那么用户面功能装置从第二终端设备收到第四数据包后,修改第四数据包中的目的地址为主站设备的地址,得到目的地址为主站设备的地址的第五数据包,然后用户面功能装置向主站设备发送该第五数据包。For example, when the third terminal device is the second terminal device, after receiving the fourth data packet from the second terminal device, the user plane function device modifies the destination address in the fourth data packet to the address of the master station device to obtain the destination address A fifth data packet of the address of the master station equipment, and then the user plane function device sends the fifth data packet to the master station equipment.
一种可能的实施方式中,该方法还包括:用户面功能装置获取第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的地址和第二终端设备的地址,第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的地址和第二终端设备的地址用于转发规则的生成。也就是说,转发规则是根据第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的地址和第二终端设备的地址生成的,该转发规则可以由会话管理功能装置生成。In a possible implementation manner, the method further includes: the user plane function device obtains the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device, the first The serial number information of the terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device are used for generating the forwarding rule. That is to say, the forwarding rule is generated according to the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device, and the forwarding rule can be generated by the session management function device .
一种可能的实施方式中,用户面功能装置获取第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的地址和第二终端设备的地址,包括:用户面功能装置从主站设备获取第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的地址和第二终端设备的地址。用户面功能装置从主站设备获取上述信息的方式 可以是邮箱通信的方式,通过这种方式,主站设备无需额外配置与应用功能装置的接口来进行信息的传输,因此该方式减少了对主站设备和应用功能的改动。In a possible implementation manner, the user plane function device acquires the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device, including: The master station device acquires the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device. The way that the user plane function device obtains the above information from the main station device can be mailbox communication. In this way, the main station device does not need to additionally configure the interface with the application function device to transmit information, so this method reduces the need for the main station device. Changes to station equipment and application functionality.
或者,一种可能的实施方式中,用户面功能装置获取第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的地址和第二终端设备的地址,包括:用户面功能装置从第一终端设备获取第一终端设备的序号信息和第一终端设备的地址;用户面功能装置从第二终端设备获取第二终端设备的序号信息和第二终端设备的地址。也就是说,用户面功能装置从终端设备中获取终端设备的序号信息和终端设备的地址,终端设备可以使用邮箱通信的方式向用户面功能装置发送终端设备的序号信息和终端设备的地址。Or, in a possible implementation manner, the user plane function device obtains the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device, including: the user plane function The device obtains the serial number information of the first terminal device and the address of the first terminal device from the first terminal device; the user plane function device obtains the serial number information of the second terminal device and the address of the second terminal device from the second terminal device. That is, the user plane function device obtains the terminal device serial number information and the terminal device address from the terminal device, and the terminal device can send the terminal device serial number information and the terminal device address to the user plane function device by means of mailbox communication.
一种可能的实施方式中,该方法还包括:用户面功能装置向会话管理功能装置发送第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的地址和第二终端设备的地址。该方式中,会话管理功能装置根据从用户面功能装置接收的第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的地址和第二终端设备的地址生成转发规则。In a possible implementation manner, the method further includes: the user plane function device sends the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the second terminal device to the session management function device. the address of. In this manner, the session management function device generates a forwarding rule according to the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device received from the user plane function device.
一种可能的实施方式中,转发规则包括第一终端设备的序号信息、第一终端设备的地址、第二终端设备的序号信息和第二终端设备的地址。该转发规则用于用户面功能装置按照顺序依次向第一终端设备和第二终端设备转发数据包。In a possible implementation manner, the forwarding rule includes the serial number information of the first terminal device, the address of the first terminal device, the serial number information of the second terminal device, and the address of the second terminal device. The forwarding rule is used for the user plane function device to forward data packets to the first terminal device and the second terminal device in sequence.
一种可能的实施方式中,用户面功能装置根据转发规则将第二数据包的目的地址修改为第二终端设备的地址,包括:用户面功能装置根据转发规则判断向第二终端设备发送第二数据包中的数据,用户面功能装置将第二数据包的目的地址修改为第二终端设备的地址。In a possible implementation manner, the user plane function device modifies the destination address of the second data packet to the address of the second terminal device according to the forwarding rule, including: the user plane function device determines according to the forwarding rule to send the second data packet to the second terminal device. For the data in the data packet, the user plane function device modifies the destination address of the second data packet to the address of the second terminal device.
第二方面,本申请的实施例提供了一种数据包传输的方法,该方法由会话管理功能装置执行。该方法包括:会话管理功能装置获取第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的地址和第二终端设备的地址;会话管理功能装置根据第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的地址和第二终端设备的地址生成转发规则,转发规则用于第一数据包的目的地址的修改;会话管理功能装置向用户面功能装置发送转发规则。根据上述方案,当EtherCAT的工业以太网与蜂窝网络组网后,用户面功能装置可以按照该方面中由会话管理功能装置生成的转发规则,将主站发出的数据包,按照EtherCAT的转发逻辑向终端设备转发该数据包,最终将该数据包转发回主站,完成完整的EtherCAT通信。In a second aspect, an embodiment of the present application provides a data packet transmission method, and the method is executed by a session management function device. The method includes: the session management function device obtains the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device; information, the serial number information of the second terminal device, the address of the first terminal device, and the address of the second terminal device to generate a forwarding rule, and the forwarding rule is used to modify the destination address of the first data packet; the session management function device reports to the user plane function device Send forwarding rules. According to the above solution, when the industrial Ethernet of EtherCAT is networked with the cellular network, the user plane function device can, according to the forwarding rules generated by the session management function device in this aspect, forward the data packets sent by the master station to the forwarding logic according to the EtherCAT forwarding logic. The terminal device forwards the data packet, and finally forwards the data packet back to the master station to complete the complete EtherCAT communication.
一种可能的实施方式中,会话管理功能装置获取第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的地址和第二终端设备的地址,包括:会话管理功能装置通过用户面功能装置从主站设备获取第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的地址和第二终端设备的地址。In a possible implementation manner, the session management function device obtains the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device, including: The user plane function device acquires the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device from the master station device.
或者,一种可能的实施方式中,会话管理功能装置获取第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的地址和第二终端设备的地址,包括:Or, in a possible implementation manner, the session management function device acquires the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device, including:
会话管理功能装置通过用户面功能装置从第一终端设备获取第一终端设备的序号信息和第一终端设备的地址,从第二终端设备获取第二终端设备的序号信息和第二终端设备的地址。The session management function device obtains the serial number information of the first terminal device and the address of the first terminal device from the first terminal device through the user plane function device, and obtains the serial number information of the second terminal device and the address of the second terminal device from the second terminal device. .
一种可能的实施方式中,该方法还包括:会话管理功能装置向统一数据管理装置发送第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的标识和第二终端设备的标识,第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的标识和第二终端设备的标识用于虚拟网群组的创建,或者,第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的标识和第二终端设备的标识用于虚拟网群组的更新,虚拟网群组包括第一终端设备和第二终端设备。In a possible implementation manner, the method further includes: the session management function device sends the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the second terminal device to the unified data management device. , the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device are used for the creation of the virtual network group, or the serial number information of the first terminal device , the serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device are used to update the virtual network group, and the virtual network group includes the first terminal device and the second terminal device.
一种可能的实施方式中,会话管理功能装置向统一数据管理装置发送第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的标识和第二终端设备的标识,包括:会话管理功能装置通过应用功能装置向统一数据管理装置发送第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的标识和第二终端设备的标识。In a possible implementation, the session management function device sends the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device to the unified data management device, including: The session management function device sends the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device to the unified data management device through the application function device.
一种可能的实施方式中,会话管理功能装置获取第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的地址和第二终端设备的地址,包括:会话管理功能装置从统一数据管理装置获取第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的地址和第二终端设备的地址。In a possible implementation manner, the session management function device acquires the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device, including: The unified data management apparatus acquires the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device.
一种可能的实施方式中,转发规则包括第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的地址和第二终端设备的地址。In a possible implementation manner, the forwarding rule includes serial number information of the first terminal device, serial number information of the second terminal device, an address of the first terminal device, and an address of the second terminal device.
第三方面,本申请的实施例提供了一种数据包传输的方法,该方法由终端设备执行。该方法包括:第一终端设备接收策略信息;第一终端设备接收以太网类型的第一数据包;第一终端设备根据策略信息修改第一数据包中的目的地址为第二终端设备的地址,得到第二数据包;第一终端设备向第二终端设备发送第二数据包。根据上述方案,当EtherCAT的工业以太网与蜂窝网络组网后,第一终端设备可以根据策略信息,修改EtherCAT类型的数据包的目的地址为第二终端设备的地址,向第二终端设备转发目的地址为第二终端设备的EtherCAT类型的数据包,通过设备到设备D2D的通信方式,按照EtherCAT的转发逻辑完成完整的EtherCAT通信。In a third aspect, an embodiment of the present application provides a data packet transmission method, which is executed by a terminal device. The method includes: the first terminal device receives policy information; the first terminal device receives the first data packet of the Ethernet type; the first terminal device modifies, according to the policy information, the destination address in the first data packet to the address of the second terminal device, The second data packet is obtained; the first terminal device sends the second data packet to the second terminal device. According to the above solution, after the EtherCAT industrial Ethernet and the cellular network are networked, the first terminal device can modify the destination address of the EtherCAT type data packet to the address of the second terminal device according to the policy information, and forward the destination to the second terminal device. The EtherCAT type data packet whose address is the second terminal device completes the complete EtherCAT communication according to the EtherCAT forwarding logic through the device-to-device D2D communication method.
一种可能的实施方式中,第一终端设备接收策略信息,包括:第一终端设备从应用功能装置接收策略信息。In a possible implementation manner, the first terminal device receiving the policy information includes: the first terminal device receiving the policy information from the application function device.
一种可能的实施方式中,第一终端设备向第二终端设备发送第二数据包,包括:第一终端设备通过用户面功能装置向第二终端设备发送第二数据包。也就是说,当第一终端设备和第二终端设备在同一个虚拟网群组中时,第一终端设备也可以向用户面功能装置转发EtherCAT类型的数据包,其中该EtherCAT类型的数据包的目的地址为第二终端设备的地址,源地址为第一终端设备的地址,由用户面功能装置向第二终端设备转发该EtherCAT类型的数据包。In a possible implementation manner, sending the second data packet by the first terminal device to the second terminal device includes: the first terminal device sending the second data packet to the second terminal device through the user plane function device. That is to say, when the first terminal device and the second terminal device are in the same virtual network group, the first terminal device may also forward the EtherCAT type data packet to the user plane function device, wherein the EtherCAT type data packet has a The destination address is the address of the second terminal device, the source address is the address of the first terminal device, and the user plane function device forwards the EtherCAT type data packet to the second terminal device.
一种可能的实施方式中,策略信息包括第二终端设备的地址。也就是说,第一终端设备根据策略信息中的第二终端设备的地址,将EtherCAT类型的数据包的目的地址修改为第二终端设备的地址。In a possible implementation manner, the policy information includes the address of the second terminal device. That is, the first terminal device modifies the destination address of the EtherCAT type data packet to the address of the second terminal device according to the address of the second terminal device in the policy information.
第四方面,本申请的实施例提供了一种数据包传输的方法,该方法由应用功能装置执行。该方法包括:应用功能装置获取第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的标识和第二终端设备的标识;应用功能装置根据第一终端 设备的序号信息、第二终端设备的序号信息、第一终端设备的标识和第二终端设备的标识,通过调用网络开放功能装置的接口,调用统一数据管理装置实现虚拟网群组的创建或更新。根据上述方案,应用功能装置为第一终端设备和第二终端设备创建虚拟网群组,该虚拟网群组中的第一终端设备和第二终端设备具有序号信息,该序号信息用于表示第一终端设备和第二终端设备在EtherCAT的转发逻辑中的顺序,且EtherCAT类型的数据包的按序转发可以采用第五代通信局域网5GLAN的转发模式实现。In a fourth aspect, an embodiment of the present application provides a data packet transmission method, and the method is executed by an application function device. The method includes: the application function device obtains the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device; the application function device obtains the serial number information of the first terminal device, The serial number information of the second terminal device, the identifier of the first terminal device, and the identifier of the second terminal device are used to create or update the virtual network group by calling the interface of the network open function device and calling the unified data management device. According to the above solution, the application function device creates a virtual network group for the first terminal device and the second terminal device, and the first terminal device and the second terminal device in the virtual network group have serial number information, and the serial number information is used to indicate the first terminal device and the second terminal device. The sequence of a terminal device and a second terminal device in the forwarding logic of EtherCAT, and the sequential forwarding of EtherCAT type data packets can be implemented by using the forwarding mode of the fifth-generation communication local area network 5GLAN.
一种可能的实施方式中,应用功能装置获取第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的标识和第二终端设备的标识,包括:应用功能装置从主站设备获取第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的标识和第二终端设备的标识。In a possible implementation manner, the application function device obtains the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device, including: the application function device obtains the serial number information from the main station. The device acquires the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device, and the identifier of the second terminal device.
一种可能的实施方式中,应用功能装置获取第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的标识和第二终端设备的标识,包括:应用功能装置从会话管理装置获取第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的标识和第二终端设备的标识。In a possible implementation manner, the application function device obtains the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device, and the identifier of the second terminal device, including: the application function device obtains information from the session management The apparatus acquires the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device.
第五方面,本申请的实施例提供了一种数据包传输的方法,该方法由统一数据管理装置执行。该方法包括:统一数据管理装置获取第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的标识和第二终端设备的标识;统一数据管理装置根据第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的标识和第二终端设备的标识创建虚拟网群组;或者,统一数据管理装置根据第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的标识和第二终端设备的标识更新虚拟网群组的信息。根据上述方案,统一数据管理装置为可以按照EtherCAT的转发逻辑执行数据包转发的多个终端设备创建虚拟网群组,该虚拟网群组中的信息可以用于转发规则的生成,且当系统实现按照EtherCAT的转发逻辑执行数据包的转发时可以使用5G LAN的转发模式。In a fifth aspect, an embodiment of the present application provides a data packet transmission method, and the method is executed by a unified data management apparatus. The method includes: the unified data management device obtains serial number information of the first terminal device, serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device; the unified data management device obtains the serial number of the first terminal device according to the serial number of the first terminal device. information, the serial number information of the second terminal device, the identifier of the first terminal device, and the identifier of the second terminal device to create a virtual network group; or, the unified data management apparatus creates a virtual network group according to the serial number information of the first terminal device and the serial number of the second terminal device The information, the identity of the first terminal device and the identity of the second terminal device update the information of the virtual network group. According to the above solution, the unified data management device creates a virtual network group for a plurality of terminal devices that can perform packet forwarding according to the forwarding logic of EtherCAT, and the information in the virtual network group can be used for the generation of forwarding rules, and when the system implements The forwarding mode of 5G LAN can be used when forwarding data packets according to the forwarding logic of EtherCAT.
一种可能的实施方式中,统一数据管理装置获取第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的标识和第二终端设备的标识,包括:统一数据管理装置从会话管理功能装置获取第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的标识和第二终端设备的标识。In a possible implementation manner, the unified data management apparatus acquires the serial number information of the first terminal equipment, the serial number information of the second terminal equipment, the identifier of the first terminal equipment and the identifier of the second terminal equipment, including: The session management function device acquires the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device.
一种可能的实施方式中,统一数据管理装置获取第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的标识和第二终端设备的标识,包括:统一数据管理装置从应用功能装置获取第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的标识和第二终端设备的标识。In a possible implementation manner, the unified data management apparatus acquires the serial number information of the first terminal equipment, the serial number information of the second terminal equipment, the identifier of the first terminal equipment and the identifier of the second terminal equipment, including: The application function device acquires the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device.
第六方面,本申请的实施例提供了一种数据包传输的方法,该方法由应用功能装置执行。该方法包括:应用功能装置获取第一终端设备的序号信息和第二终端设备的序号信息;应用功能装置向主站设备发送第一终端设备的序号信息和第二终端设备的序号信息,第一终端设备的序号信息和第二终端设备的序号信息用于序号信息的维护。根据上述方案,主站设备从应用功能装置获取到可以按照EtherCAT的转发逻辑执行数据包转发的第一终端设备和第二终端设备的序号信息,主站设备可以在获取到上述 信息后,根据自身的需要,修改序号信息,重新制定EtherCAT的转发逻辑中数据包的转发顺序。In a sixth aspect, an embodiment of the present application provides a data packet transmission method, and the method is executed by an application function device. The method includes: the application function device obtains the serial number information of the first terminal device and the serial number information of the second terminal device; the application function device sends the serial number information of the first terminal device and the serial number information of the second terminal device to the master station device, the first terminal device. The serial number information of the terminal device and the serial number information of the second terminal device are used for the maintenance of the serial number information. According to the above solution, the master station device obtains from the application function device the serial number information of the first terminal device and the second terminal device that can perform data packet forwarding according to the EtherCAT forwarding logic. After obtaining the above information, the master station device can If necessary, modify the sequence number information and re-formulate the forwarding sequence of data packets in the forwarding logic of EtherCAT.
一种可能的实施方式中,应用功能装置获取第一终端设备的序号信息和第二终端设备的序号信息,包括:应用功能装置从会话管理功能装置获取第一终端设备的序号信息和第二终端设备的序号信息。In a possible implementation manner, the application function device obtains the serial number information of the first terminal device and the serial number information of the second terminal device, including: the application function device obtains the serial number information of the first terminal device and the second terminal device from the session management function device. Serial number information of the device.
一种可能的实施方式中,应用功能装置获取第一终端设备的序号信息和第二终端设备的序号信息,包括:应用功能装置从统一数据管理装置获取第一终端设备的序号信息和第二终端设备的序号信息。In a possible implementation manner, the application function device obtains the serial number information of the first terminal device and the serial number information of the second terminal device, including: the application function device obtains the serial number information of the first terminal device and the second terminal device from the unified data management device. Serial number information of the device.
第七方面,本申请的实施例提供了一种通信装置,包括处理器,该处理器用于从存储器中读取并运行程序,以实现如前面第一方面或任一可能的实施方式的方法,或者,以实现如前面第二方面或任一可能的实施方式的方法,或者,以实现如前面第三方面或任一可能的实施方式的方法,或者,以实现如前面第四方面或任一可能的实施方式的方法,或者,以实现如前面第五方面或任一可能的实施方式的方法,或者,以实现如前面第六方面或任一可能的实施方式的方法。In a seventh aspect, an embodiment of the present application provides a communication device, including a processor, where the processor is configured to read and run a program from a memory, so as to implement the method of the foregoing first aspect or any possible implementation manner, Alternatively, to implement a method as in the second aspect above or any possible embodiment, or, to implement a method as in the third aspect or any possible embodiment above, or, to implement a method as in the fourth aspect or any of the foregoing The method of a possible embodiment, alternatively, to implement the method as the fifth aspect or any of the possible embodiments above, or to implement the method as the sixth aspect or any of the possible embodiments.
第八方面,本申请的实施例提供了一种通信系统,包括用户面功能装置以及会话管理功能装置,该用户面功能装置可以执行第一方面或任一可能的实施方式的方法,该会话管理功能装置可以执行第二方面或任一可能的实施方式的方法。In an eighth aspect, the embodiments of the present application provide a communication system, including a user plane function device and a session management function device, the user plane function device can execute the method of the first aspect or any possible implementation manner, and the session management function device The functional means may perform the method of the second aspect or any possible embodiment.
第九方面,本申请的实施例提供了一种通信系统,包括用户面功能装置以及终端设备,该终端设备可以执行第三方面或任一可能的实施方式的方法。In a ninth aspect, embodiments of the present application provide a communication system, including a user plane function device and a terminal device, where the terminal device can execute the method of the third aspect or any possible implementation manner.
第十方面,本申请的实施例提供了一种通信系统,包括应用功能装置以及统一数据管理装置,该应用功能装置可以执行第四方面或任一可能的实施方式的方法,该统一数据管理装置可以执行第五方面或任一可能的实施方式的方法。In a tenth aspect, embodiments of the present application provide a communication system, including an application function device and a unified data management device, where the application function device can execute the method of the fourth aspect or any possible implementation manner, and the unified data management device The method of the fifth aspect or any possible embodiment may be performed.
第十一方面,本申请的实施例提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行如第一方面或任一可能的实施方式的方法,或第二方面或任一可能的实施方式的方法,或第三方面或任一可能的实施方式的方法,或第四方面或任一可能的实施方式的方法,或第五方面或任一可能的实施方式的方法,或第六方面或任一可能的实施方式的方法。In an eleventh aspect, the embodiments of the present application provide a computer program product comprising instructions, which, when run on a computer, cause the computer to perform the method of the first aspect or any possible implementation manner, or the second aspect or the method of any possible embodiment, or the third aspect or the method of any possible embodiment, or the fourth aspect or any possible embodiment, or the fifth aspect or any possible embodiment The method, or the method of the sixth aspect or any possible embodiment.
第十二方面,本申请的实施例提供了一种计算机可读存储介质,计算机可读存储介质中存储有指令,当其在计算机上运行时,使得处理器执行如第一方面或任一可能的实施方式的方法,或第二方面或任一可能的实施方式的方法,或第三方面或任一可能的实施方式的方法,或第四方面或任一可能的实施方式的方法,或第五方面或任一可能的实施方式的方法,或第六方面或任一可能的实施方式的方法。In a twelfth aspect, embodiments of the present application provide a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, cause a processor to execute the first aspect or any possible or the method of the second aspect or any possible embodiment, or the method of the third aspect or any possible embodiment, or the method of the fourth aspect or any possible embodiment, or the method of the fourth aspect or any possible embodiment The method of the fifth aspect or any possible embodiment, or the method of the sixth aspect or any possible embodiment.
附图说明Description of drawings
图1为一种EtherCAT的数据传输路径示意图;Figure 1 is a schematic diagram of a data transmission path of EtherCAT;
图2为基于服务化接口形式的5GS架构示意图;Figure 2 is a schematic diagram of a 5GS architecture based on a service-oriented interface;
图3A为一种5GS与EtherCAT融合的工业通信系统示意图;3A is a schematic diagram of an industrial communication system integrating 5GS and EtherCAT;
图3B为一种5GS与EtherCAT融合的工业通信系统的EtherCAT的转发逻辑示意图;3B is a schematic diagram of the forwarding logic of EtherCAT in an industrial communication system integrating 5GS and EtherCAT;
图4为一种5GS与EtherCAT工业通信系统的连接方式;Figure 4 is a connection method between 5GS and EtherCAT industrial communication system;
图5为根据本申请实施例提供的一种数据包转发的流程交互示意图;FIG. 5 is a schematic diagram of flow interaction of a data packet forwarding provided according to an embodiment of the present application;
图6为根据本申请实施例提供的另一种数据包转发的流程交互示意图;FIG. 6 is a schematic diagram of flow interaction of another data packet forwarding provided according to an embodiment of the present application;
图7为根据本申请实施例提供的又一种数据包转发的流程交互示意图;7 is a schematic diagram of another flow interaction of data packet forwarding provided according to an embodiment of the present application;
图8为根据本申请实施例提供的又一种数据包转发的流程交互示意图;FIG. 8 is a schematic diagram of another flow interaction of data packet forwarding provided according to an embodiment of the present application;
图9为根据本申请实施例提供的又一种数据包转发的流程交互示意图;9 is a schematic diagram of another flow interaction of data packet forwarding provided according to an embodiment of the present application;
图10为根据本申请实施例提供的又一种数据包转发的流程交互示意图;10 is a schematic diagram of another flow interaction of data packet forwarding provided according to an embodiment of the present application;
图11为根据本申请实施例提供的一种通信装置的示意图;FIG. 11 is a schematic diagram of a communication device provided according to an embodiment of the present application;
图12为根据本申请实施例提供的另一种通信装置的示意图。FIG. 12 is a schematic diagram of another communication apparatus provided according to an embodiment of the present application.
具体实施方式Detailed ways
以太网控制自动化技术(Ethernet for Control Automation Technology,EtherCAT)提供了一种以以太网为基础的现场总线系统。相比于传统总线系统,由于EtherCAT使用标准的以太网硬件,极大地为企业降低成本,因此在工业自动化领域中被广泛使用。Ethernet for Control Automation Technology (EtherCAT) provides an Ethernet-based fieldbus system. Compared with traditional bus systems, EtherCAT is widely used in the field of industrial automation because it uses standard Ethernet hardware, which greatly reduces costs for enterprises.
工业通信网络通常采用主从方式的通信模式进行通信,即通过主站设备向辅站设备发送数据的模式,例如,主站设备为控制器,用于配置下属设备,收集并分析下属辅站设备信息,向辅站设备下发指令,例如测量温度的指令;而辅站设备是输入/输出设备(Input/Output,I/O)设备,例如,传感器设备、驱动器设备或电机设备,辅站设备根据主站设备的要求来执行操作。由于工业通信网络中的各个辅站设备与主站设备之间通信的数据少,因此主站设备向每一个辅站设备均发送一个以太网类型的数据包会造成工业通信系统的带宽利用率低,网络性能下降。EtherCAT通过主站设备将传递给辅站设备的数据以对应的子报文的形式组装成一个总的以太网类型的数据包,并且将该数据包依次传递到所有辅站设备来提升带宽利用率,因此提升了网络性能。每个辅站设备通过使用“飞速传输”(processing on the fly)的技术快速处理上述以太网类型的数据包中对应自身辅站设备的子报文的数据,并向下一个辅站设备发送处理后的数据包。Industrial communication networks usually use the master-slave communication mode for communication, that is, the mode in which data is sent to the auxiliary station equipment through the master station equipment. For example, the master station equipment is the controller, which is used to configure the subordinate equipment, collect and analyze the subordinate auxiliary station equipment. information, to issue instructions to auxiliary station equipment, such as instructions to measure temperature; and auxiliary station equipment is Input/Output (I/O) equipment, such as sensor equipment, drive equipment or motor equipment, auxiliary station equipment Actions are performed according to the requirements of the master device. Since the data communicated between each auxiliary station device and the master station device in the industrial communication network is small, the master station device sends an Ethernet type data packet to each auxiliary station device, which will result in low bandwidth utilization of the industrial communication system. , the network performance is degraded. EtherCAT assembles the data transmitted to the auxiliary station equipment into a total Ethernet type data packet in the form of corresponding sub-packets through the master station equipment, and transmits the data packet to all auxiliary station equipment in turn to improve bandwidth utilization. , thus improving network performance. Each auxiliary station device uses the "processing on the fly" technology to quickly process the data of the sub-message corresponding to its own auxiliary station device in the above-mentioned Ethernet type data packet, and sends the processing to the next auxiliary station device. after the packet.
图1为一种EtherCAT的数据传输路径示意图。假设该工业通信系统中包括一个主站设备和四个辅站设备,分别为主站设备、辅站设备1、辅站设备2、辅站设备3和辅站设备4。该图中的箭头指示的是EtherCAT的转发逻辑:主站设备发出一个EtherCAT类型的数据包,该数据包依次被辅站设备1、辅站设备2、辅站设备3和辅站设备4接收,并最后由辅站设备4向主站设备发送该数据包。例如,主站设备向所有的辅站设备发送不同的控制指令,主站设备生成四个子报文,第一个子报文中的日期为主站设备想要告知辅站设备1的控制指令,第二个子报文中的日期为主站设备想要告知辅站设备2的控制指令,以此类推。主站将该四个子报文封装为一个EtherCAT类型的数据包。主站向辅站设备1发送该数据包。辅站设备1在收到该数据包后读取该数据包中提供给自身(辅站设备1)的控制指令,并按照转发逻辑向辅站设备2发送该数据包,类似的,辅站设备2在收到该数据包后读取该数据包中提供给自身(辅站设备2)的控制指令,并按照转发逻辑向辅站设备3发送该数据包,例如,辅站设备2通过辅站设备1向辅站设备3发送该数据包。以此类推,直到辅站设备4在读取该 数据包中提供给自身(辅站设备4)的控制指令后,按照转发逻辑向主站设备发送该数据包,例如,辅站设备4依次通过辅站设备3、辅站设备1向主站设备发送该数据包。主站设备从辅站设备4收到该数据包,一次EtherCAT通信完成。FIG. 1 is a schematic diagram of a data transmission path of EtherCAT. It is assumed that the industrial communication system includes one master station device and four auxiliary station devices, which are the master station device, the auxiliary station device 1, the auxiliary station device 2, the auxiliary station device 3 and the auxiliary station device 4, respectively. The arrow in the figure indicates the forwarding logic of EtherCAT: the master station device sends an EtherCAT type data packet, and the data packet is received by the auxiliary station device 1, the auxiliary station device 2, the auxiliary station device 3 and the auxiliary station device 4 in turn. And finally the data packet is sent by the auxiliary station device 4 to the master station device. For example, the master station device sends different control commands to all the auxiliary station devices, the master station device generates four sub-messages, the date in the first sub-message is the control command that the master station device wants to inform the auxiliary station device 1, The date in the second sub-message is the control command that the master station device wants to inform the slave station device 2, and so on. The master station encapsulates the four sub-packets into an EtherCAT type data packet. The primary station sends the data packet to the secondary station device 1. After receiving the data packet, the auxiliary station device 1 reads the control instruction provided to itself (auxiliary station device 1) in the data packet, and sends the data packet to the auxiliary station device 2 according to the forwarding logic. Similarly, the auxiliary station device 2 After receiving the data packet, read the control instruction provided to itself (auxiliary station equipment 2) in the data packet, and send the data packet to the auxiliary station equipment 3 according to the forwarding logic. For example, the auxiliary station equipment 2 passes the auxiliary station equipment. Device 1 sends the data packet to secondary station device 3. And so on, until the auxiliary station device 4 sends the data packet to the main station device according to the forwarding logic after reading the control instruction provided to itself (auxiliary station device 4) in the data packet, for example, the auxiliary station device 4 passes through The secondary station device 3 and the secondary station device 1 send the data packet to the primary station device. The master station device receives the data packet from the slave station device 4, and one EtherCAT communication is completed.
工业领域对于通信的延迟、带宽和可靠性有高要求,由于以往的无线通信技术不能匹配工业领域的需求,因此无线通信在工业领域中的应用受到了限制。随着通信技术的不断发展,第五代移动通信系统(5th generation system,5GS)应运而生,由于其具有低延迟、高带宽、高可靠性等特性,5GS可以作为工业无线通信的一种可行方案。图2为基于服务化接口形式的5GS架构示意图。该网络架构中包括三部分,分别是终端设备、接入网((radio)access network,(R)AN)和核心网网络。The industrial field has high requirements on the delay, bandwidth and reliability of communication. Since the previous wireless communication technology cannot match the needs of the industrial field, the application of wireless communication in the industrial field is limited. With the continuous development of communication technology, the fifth generation mobile communication system (5GS) came into being. Due to its characteristics of low delay, high bandwidth and high reliability, 5GS can be used as a feasible way of industrial wireless communication. Program. Figure 2 is a schematic diagram of a 5GS architecture based on a service-oriented interface. The network architecture includes three parts, namely terminal equipment, access network ((radio)access network, (R)AN) and core network.
下面对该网络架构中涉及的部分进行具体说明。The parts involved in the network architecture will be described in detail below.
终端设备,是一种具有无线收发功能的设备。终端设备通过无线方式与接入网设备相连,从而接入到通信系统中。终端设备也可以称为终端、用户设备(user equipment,UE)、移动台、移动终端等。终端设备可以是手机、平板电脑、带无线收发功能的电脑、虚拟现实终端设备、增强现实终端设备、工业控制中的无线终端、无人驾驶中的无线终端、远程手术中的无线终端、智能电网中的无线终端、运输安全中的无线终端、智慧城市中的无线终端、或智慧家庭中的无线终端等等。本申请实施例对终端设备所采用的具体技术和具体设备形态不作限定。作为示例而非限定,终端设备还可以是可穿戴设备。可穿戴设备也可以称为穿戴式智能设备或智能穿戴式设备等,是应用穿戴式技术对日常穿戴进行智能化设计、开发出可以穿戴的设备的总称,如眼镜、手套、手表、服饰及鞋等。可穿戴设备即直接穿在身上,或是整合到用户的衣服或配件的一种便携式设备。可穿戴设备不仅仅是一种硬件设备,更是通过软件支持以及数据交互、云端交互来实现强大的功能。广义穿戴式智能设备包括功能全、尺寸大、可不依赖智能手机实现完整或者部分的功能,例如:智能手表或智能眼镜等,以及只专注于某一类应用功能,需要和其它设备如智能手机配合使用,如各类进行体征监测的智能手环、智能头盔、智能首饰等。终端设备还可以是作为一个或多个部件或者单元而内置于车辆的车载模块、车载部件、车载芯片或者车载单元,车辆通过内置的所述车载模块、车载模组、车载部件、车载芯片或者车载单元可以实施本申请的方法。A terminal device is a device with wireless transceiver function. The terminal equipment is wirelessly connected to the access network equipment so as to be connected to the communication system. A terminal device may also be referred to as a terminal, user equipment (UE), a mobile station, a mobile terminal, and the like. The terminal equipment can be mobile phone, tablet computer, computer with wireless transceiver function, virtual reality terminal equipment, augmented reality terminal equipment, wireless terminal in industrial control, wireless terminal in unmanned driving, wireless terminal in remote surgery, smart grid Wireless terminals in smart cities, wireless terminals in transportation security, wireless terminals in smart cities, or wireless terminals in smart homes, etc. The embodiments of the present application do not limit the specific technology and specific device form adopted by the terminal device. As an example and not a limitation, the terminal device may also be a wearable device. Wearable devices can also be called wearable smart devices or smart wearable devices, etc. It is a general term for the application of wearable technology to intelligently design daily wear and develop wearable devices, such as glasses, gloves, watches, clothing and shoes. Wait. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothing or accessories. Wearable device is not only a hardware device, but also realizes powerful functions through software support, data interaction, and cloud interaction. In a broad sense, wearable smart devices include full-featured, large-scale, complete or partial functions without relying on smart phones, such as smart watches or smart glasses, and only focus on a certain type of application function, which needs to cooperate with other devices such as smart phones. Use, such as all kinds of smart bracelets, smart helmets, smart jewelry, etc. for physical sign monitoring. The terminal device may also be an on-board module, on-board component, on-board chip or on-board unit built into the vehicle as one or more components or units, and the vehicle passes the built-in on-board module, on-board module, on-board component, on-board chip or on-board unit. A unit may implement the methods of the present application.
(R)AN用于实现无线有关的功能。(R)AN中的节点又可称为接入网设备或基站,用于将终端设备接入到无线网络。所述接入网设备可以是基站(base station)、LTE系统或演进的LTE系统(LTE-Advanced,LTE-A)中的演进型基站(evolved NodeB,eNodeB)、5G通信系统中的下一代基站(next generation NodeB,gNB)、发送接收点(transmission reception point,TRP)、基带单元(base band unit,BBU)、WiFi接入点(access point,AP)、未来移动通信系统中的基站或WiFi系统中的接入节点等。无线接入网设备也可以是完成基站部分功能的模块或单元,例如,可以是集中式单元(central unit,CU),或者分布式单元(distributed unit,DU)。本申请实施例对无线接入网设备所采用的具体技术和具体设备形态不作限定。例如,在一种网络结构中,无线接入网设备可以为CU节点、或DU节点、或为包括CU节点和DU节点的接入网设备。具体的,CU节点用于支持无线资源控制(radio resource control,RRC)、分组数据汇聚协议(packet data convergence protocol,PDCP)、业务数据适配协议(service  data adaptation protocol,SDAP)等协议;DU节点用于支持无线链路控制(radio link control,RLC)层协议、媒体接入控制(medium access control,MAC)层协议和物理层协议。(R)AN is used to implement wireless related functions. A node in the (R)AN may also be called an access network device or a base station, and is used to access the terminal device to the wireless network. The access network device may be a base station (base station), an LTE system or an evolved base station (evolved NodeB, eNodeB) in an LTE system (LTE-Advanced, LTE-A), a next-generation base station in a 5G communication system (next generation NodeB, gNB), transmission reception point (TRP), base band unit (BBU), WiFi access point (access point, AP), base station or WiFi system in future mobile communication systems access node etc. The radio access network device may also be a module or unit that completes some functions of the base station, for example, may be a centralized unit (central unit, CU) or a distributed unit (distributed unit, DU). The embodiments of the present application do not limit the specific technology and specific device form adopted by the wireless access network device. For example, in a network structure, the radio access network device may be a CU node, or a DU node, or an access network device including a CU node and a DU node. Specifically, the CU node is used to support radio resource control (radio resource control, RRC), packet data convergence protocol (packet data convergence protocol, PDCP), service data adaptation protocol (service data adaptation protocol, SDAP) and other protocols; DU node Used to support the radio link control (radio link control, RLC) layer protocol, medium access control (medium access control, MAC) layer protocol and physical layer protocol.
核心网网络可包括以下网元中的一个或多个:统一数据管理(unified data management,UDM)网元、应用功能(application function,AF)网元、策略控制功能(Policy Control Function,PCF)网元、网络开放功能(Network Exposure Function,NEF)网元、接入与移动性管理功能(access and mobility management function,AMF)网元、会话管理功能(session management function,SMF)网元、用户面功能(user plane function,UPF)网元等。上述各网元也可称为装置、设备或实体,本申请并不在此限制,例如,UDM网元也可称为UDM装置、UDM设备或UDM实体。为便于描述,下文中将采用简称的方式进行,例如,“UDM网元”被简称为“UDM”,“SMF网元”被简称为“SMF”。The core network network may include one or more of the following network elements: a unified data management (unified data management, UDM) network element, an application function (application function, AF) network element, a policy control function (Policy Control Function, PCF) network element element, Network Exposure Function (NEF) network element, access and mobility management function (AMF) network element, session management function (SMF) network element, user plane function (user plane function, UPF) network element, etc. The above network elements may also be referred to as devices, equipment or entities, which are not limited in this application. For example, UDM network elements may also be referred to as UDM devices, UDM equipment or UDM entities. For ease of description, the following will be performed in abbreviated manner, for example, "UDM network element" is abbreviated as "UDM", and "SMF network element" is abbreviated as "SMF".
UDM用于负责管理签约数据,以及当签约数据修改的时候,负责通知相应的网元,以及群组信息的管理等。The UDM is used to manage the subscription data, and to notify the corresponding network elements when the subscription data is modified, and to manage group information.
AF用于向终端设备提供应用层服务。AF代表应用与其他控制网元进行交互,包括提供服务质量(quality of service,QoS)需求、计费(Charging)策略(Policy)需求和路由策略需求等。AF is used to provide application layer services to terminal devices. AF interacts with other control network elements on behalf of applications, including providing quality of service (QoS) requirements, charging policy requirements, and routing policy requirements.
PCF用于终端设备接入策略和QoS控制策略的生成等。PCF is used for the generation of terminal equipment access policies and QoS control policies.
NEF用于对外提供5G网络能力和事件的开放,以及接收相关的外部信息等。NEF is used to provide the openness of 5G network capabilities and events, and to receive relevant external information.
AMF用于负责用户的移动性管理。例如,移动性管理包括移动状态管理,分配用户临时身份标识,认证和授权用户等。AMF is used to be responsible for user mobility management. For example, mobility management includes mobility status management, assigning user temporary identities, authenticating and authorizing users, etc.
SMF用于负责UPF的选择、重选,网络协议(internet protocol,IP)地址分配,协议数据单元(protocol data unit,PDU)会话的建立、修改或释放等。SMF is used for selection and reselection of UPF, network protocol (IP) address allocation, protocol data unit (protocol data unit, PDU) session establishment, modification or release, etc.
UPF与数据网络(data network,DN)互连,用于分组数据包的检测、路由和转发。例如,UPF可以作为上行分类器(uplink classifier,ULCL)以支持对流量进行分流后转发到数据网络,或者,UPF可以作为分流点(branching point,BP)以支持multi-homed PDU会话。UPF is interconnected with a data network (DN) for packet detection, routing and forwarding. For example, the UPF can be used as an uplink classifier (ULCL) to support traffic offloading and then forwarded to the data network, or the UPF can be used as a branching point (BP) to support multi-homed PDU sessions.
上述各网元既可以由指定的硬件实现、或者,也可以由在指定硬件上的软件实例实现、或者,也可以由在合适的平台上实例化的虚拟功能来实现,本申请并不在此限制。The above-mentioned network elements can be implemented by specified hardware, or by a software instance on specified hardware, or by a virtual function instantiated on a suitable platform, which is not limited in this application. .
图3A为一种5GS与EtherCAT融合的工业通信系统示意图,为了实现主站设备和辅站设备的通信功能,并减少主站设备和辅站设备之间物理连接线的部署,增加通信的灵活性,主站设备与辅站设备之间使用5GS进行通信,如图3A所示,主站设备与5GS连接,连接方式可参考图4所示,例如主站设备与5GS中的AF相连。辅站设备与5GS中的终端设备相连,例如,终端设备A依次连接辅站设备1和辅站设备2,终端设备B依次连接辅站设备3和辅站设备4。在5GS与EtherCAT融合的目前的工业通信系统中,主站设备只能与终端设备A或终端设备B单独通信。也就是说,主站设备通过终端设备A向辅站设备1发送一个EtherCAT类型的数据包,该数据包被按序转发到辅站设备2后,最终回到终端设备A,并由终端设备A向主站设备发送数据 包。然而,5GS应当按照EtherCAT的转发逻辑实现数据包的转发,即根据如图3B的箭头所示的EtherCAT的转发逻辑实现数据包的转发。因此,若采用现有技术,该数据包不能被按序转发到辅站辅站设备3和辅站设备4,最后回到主站设备。Figure 3A is a schematic diagram of an industrial communication system that integrates 5GS and EtherCAT. In order to realize the communication function between the main station equipment and the auxiliary station equipment, reduce the deployment of physical connection lines between the main station equipment and the auxiliary station equipment, and increase the flexibility of communication , 5GS is used for communication between the main station equipment and the auxiliary station equipment. As shown in Figure 3A, the main station equipment is connected to the 5GS, and the connection method can be referred to as shown in Figure 4. For example, the main station equipment is connected to the AF in the 5GS. The auxiliary station equipment is connected to the terminal equipment in the 5GS. For example, the terminal equipment A is connected to the auxiliary station equipment 1 and the auxiliary station equipment 2 in sequence, and the terminal equipment B is connected to the auxiliary station equipment 3 and the auxiliary station equipment 4 in sequence. In the current industrial communication system that integrates 5GS and EtherCAT, the master station device can only communicate with terminal device A or terminal device B alone. That is to say, the master station device sends an EtherCAT type data packet to the auxiliary station device 1 through the terminal device A. After the data packet is forwarded to the auxiliary station device 2 in sequence, it finally returns to the terminal device A, and is sent by the terminal device A. Send a packet to the master device. However, the 5GS should implement the forwarding of data packets according to the forwarding logic of EtherCAT, that is, implement the forwarding of data packets according to the forwarding logic of EtherCAT as shown by the arrow in FIG. 3B . Therefore, if the prior art is adopted, the data packet cannot be forwarded to the auxiliary station equipment 3 and the auxiliary station equipment 4 in sequence, and finally returns to the main station equipment.
本申请要解决的问题是如何使5GS与EtherCAT融合的工业通信系统支持EtherCAT的转发逻辑实现数据包的转发。The problem to be solved in this application is how to make the industrial communication system integrated with 5GS and EtherCAT support the forwarding logic of EtherCAT to realize data packet forwarding.
5G局域网(5G local area network,5G LAN)技术是一种通过5G核心网来实现局域网通信的技术,多个有通信需求的终端设备组成一个虚拟网群组,5G LAN支持虚拟网群组内的终端设备之间进行通信。该虚拟网群组的建立需要由AF来执行,NEF向AF提供了一套服务来支持5G LAN的虚拟网群组的动态管理,包括虚拟网群组中终端设备成员的添加、删除或修改等。5G LAN允许虚拟网群组内的成员之间进行基于以太网(Ethernet)或互联网协议(Internet Protocol,IP)的点对点通信、广播或组播通信。需要指出的是,现有技术中5G LAN同样不支持群组内的终端设备成员按照前述的EtherCAT的转发顺序来实现通信。5G local area network (5G LAN) technology is a technology that realizes local area network communication through the 5G core network. Multiple terminal devices with communication requirements form a virtual network group. communication between end devices. The establishment of the virtual network group needs to be performed by the AF. NEF provides a set of services to the AF to support the dynamic management of the virtual network group of the 5G LAN, including the addition, deletion or modification of terminal device members in the virtual network group. . 5G LAN allows peer-to-peer communication, broadcast or multicast communication based on Ethernet (Ethernet) or Internet Protocol (IP) between members in a virtual network group. It should be pointed out that the 5G LAN in the prior art also does not support the terminal device members in the group to implement communication according to the aforementioned EtherCAT forwarding sequence.
图4所示为一种5GS与EtherCAT工业通信系统的连接方式,如图4所示,5GS可以被模拟成一个特殊的具有多个端口的EtherCAT辅站设备节点(5GS as a Secondary)。主站设备与5GS中的网络装置相连,例如,主站设备可以与5GS中的AF相连,也可以与5GS中的UPF相连,辅站设备与5GS中的多个终端设备相连,终端设备与辅站设备相连。整个5GS可以看成图1中的辅站设备1,即5GS同时连接主站设备和辅站设备。因此,主站设备和辅站设备可以通过5GS来实现信息的传递。例如,主站设备依次通过5GS中的AF、PCF、SMF以及AMF向终端设备发送信息,由终端设备向辅站设备发送该信息。再例如,辅站设备可以依次通过终端设备、RAN、UPF、SMF、PCF以及AF向主站设备发送信息。Figure 4 shows a connection method between 5GS and EtherCAT industrial communication system. As shown in Figure 4, 5GS can be simulated as a special EtherCAT auxiliary station equipment node (5GS as a Secondary) with multiple ports. The main station equipment is connected to the network devices in the 5GS. For example, the main station equipment can be connected to the AF in the 5GS, or it can be connected to the UPF in the 5GS, and the auxiliary station equipment is connected to multiple terminal equipment in the 5GS. station equipment is connected. The entire 5GS can be regarded as the auxiliary station equipment 1 in Figure 1, that is, the 5GS is connected to the main station equipment and the auxiliary station equipment at the same time. Therefore, the master station equipment and the auxiliary station equipment can realize the transmission of information through 5GS. For example, the master station equipment sends information to the terminal equipment through the AF, PCF, SMF and AMF in the 5GS in sequence, and the terminal equipment sends the information to the auxiliary station equipment. For another example, the secondary station equipment may send information to the primary station equipment through the terminal equipment, the RAN, the UPF, the SMF, the PCF, and the AF in sequence.
本申请中5GS可以被看成一个特殊的具有多个端口的辅站设备节点,且为连接辅站设备的终端设备创建一个虚拟网群组,该虚拟网群组中的终端设备具有序号标识,数据包的按序转发可以依据该序号标识来实现。通过本申请的方法,可以实现主站设备向辅站设备发出的数据包能够通过5GS,按照EtherCAT的转发逻辑,按序被所有通过终端设备连接的辅站设备接收,最终返回主站设备,完成一次完整的EtherCAT通信。In this application, 5GS can be regarded as a special auxiliary station equipment node with multiple ports, and a virtual network group is created for the terminal equipment connected to the auxiliary station equipment, and the terminal equipment in the virtual network group has a serial number identifier, The sequential forwarding of the data packets can be implemented according to the sequence number identification. Through the method of the present application, it can be realized that the data packets sent by the master station equipment to the auxiliary station equipment can pass through 5GS, according to the forwarding logic of EtherCAT, be received in sequence by all the auxiliary station equipment connected through the terminal equipment, and finally return to the master station equipment, complete A complete EtherCAT communication.
图5为根据本申请实施例提供的一种数据包转发的流程交互示意图。本实施例包括以下步骤:FIG. 5 is a schematic diagram of flow interaction of data packet forwarding according to an embodiment of the present application. This embodiment includes the following steps:
步骤501,主站设备向AF发送多个终端设备的信息。每个终端设备的信息中包括终端设备的地址,终端设备的标识信息,终端设备的序号标识。例如,终端设备的地址为终端设备的媒体接入控制(Media Access Control,MAC)地址。终端设备的序号标识代表了数据包在多个终端设备之间的转发顺序。可选的,主站设备向AF发送以太网类型的标识。Step 501, the master station device sends information of multiple terminal devices to the AF. The information of each terminal device includes the address of the terminal device, the identification information of the terminal device, and the serial number identification of the terminal device. For example, the address of the terminal device is a media access control (Media Access Control, MAC) address of the terminal device. The sequence number identifier of the terminal device represents the forwarding sequence of the data packet among multiple terminal devices. Optionally, the master station device sends the identifier of the Ethernet type to the AF.
例如,主站设备向AF发送的多个终端设备的信息中包含两个终端设备的信息。例如,终端设备的标识信息分别为A和B。终端设备的序号标识分别为数字1和数字2,其中数字1代表的含义为终端设备A为第一个接收数据包的终端设备,数字2代表的含义为终端设备B为第二个接收数据包的终端设备。For example, the information of multiple terminal devices sent by the master station device to the AF includes information of two terminal devices. For example, the identification information of the terminal equipment is A and B, respectively. The serial number identifiers of the terminal equipment are number 1 and number 2, where the number 1 represents that terminal device A is the first terminal device to receive data packets, and the number 2 represents that terminal device B is the second to receive data packets. terminal equipment.
例如,主站设备与AF之间建立定制的应用程序接口(Application Programming Interface,API),主站设备通过该API向AF发送该终端设备的信息。For example, a customized application programming interface (Application Programming Interface, API) is established between the master station device and the AF, and the master station device sends the information of the terminal device to the AF through the API.
例如,主站设备中存储有网络描述文件,该网络描述文件中包含该终端设备的信息,该网络描述文件可以通过离线的方式(例如,线下拷贝)发送给AF。For example, a network description file is stored in the master station device, and the network description file contains information of the terminal device. The network description file can be sent to the AF in an offline manner (eg, offline copy).
步骤502,AF根据接收到的终端设备的信息,调用NEF开放的接口,由NEF调用UDM为终端设备创建虚拟网群组。Step 502, the AF invokes the interface opened by the NEF according to the received information of the terminal device, and the NEF invokes the UDM to create a virtual network group for the terminal device.
例如,AF为终端设备A和终端设备B创建一个虚拟网群组。For example, AF creates a virtual network group for terminal device A and terminal device B.
例如,该虚拟网群组的信息由UDM存储到数据存储装置(图中未示出)中,例如,统一数据存储(Unified Data Repository,UDR)装置。例如,该虚拟网群组的信息包括终端设备的标识信息、终端设备的序号标识、终端设备的地址以及该虚拟网群组的群组标识信息。For example, the information of the virtual network group is stored in a data storage device (not shown in the figure) by the UDM, for example, a unified data storage (Unified Data Repository, UDR) device. For example, the information of the virtual network group includes the identification information of the terminal device, the serial number identification of the terminal device, the address of the terminal device, and the group identification information of the virtual network group.
步骤503,SMF从UDM获取虚拟网群组的信息。例如,终端设备的地址、终端设备的标识信息、终端设备的序号标识以及该虚拟网群组的群组标识信息。Step 503, the SMF obtains the information of the virtual network group from the UDM. For example, the address of the terminal device, the identification information of the terminal device, the serial number identification of the terminal device, and the group identification information of the virtual network group.
例如,SMF通过UDM从UDR中获取虚拟网群组的信息。For example, the SMF obtains the information of the virtual network group from the UDR through the UDM.
步骤504,SMF根据步骤503中的虚拟网群组的信息,生成转发规则和数据包检测规则。Step 504, the SMF generates a forwarding rule and a data packet detection rule according to the information of the virtual network group in step 503.
例如,该数据包检测规则用于UPF检测出该EtherCAT类型的数据包。该数据包检测规则用于UPF根据该数据包检测规则检测出从虚拟网群组中的终端设备接收的数据包,该数据包检测规则也可以用于UPF根据该数据包检测规则检测出主站设备向虚拟网群组中的终端设备发送的数据包。For example, the data packet detection rule is used for UPF to detect the EtherCAT type data packet. The data packet detection rule is used by UPF to detect the data packets received from the terminal equipment in the virtual network group according to the data packet detection rule. The data packet detection rule can also be used by UPF to detect the master station according to the data packet detection rule Data packets sent by the device to the terminal devices in the virtual network group.
例如,该数据包检测规则中定义了包过滤集(Packet filter Set),该包过滤集中的信息包括虚拟网群组中的终端设备的MAC地址信息、以太类型值(例如,88A4h)或虚拟网群组的群组标识信息。UPF可以根据以太类型值识别出该EtherCAT类型的数据包,或者,也可以根据虚拟网群组中的终端设备的MAC地址信息识别出该EtherCAT类型的数据包,也可以根据群组标识信息识别该EtherCAT类型的数据包。For example, a packet filter set (Packet filter Set) is defined in the packet inspection rule, and the information in the packet filter set includes the MAC address information of the terminal device in the virtual network group, the Ethernet type value (for example, 88A4h) or the virtual network Group identification information for the group. UPF can identify the EtherCAT type data packet according to the Ether type value, or can also identify the EtherCAT type data packet according to the MAC address information of the terminal device in the virtual network group, or can identify the EtherCAT type data packet according to the group identification information. EtherCAT type packets.
例如,该转发规则用于UPF向终端设备发送该EtherCAT类型的数据包。该转发规则用于UPF修改接收到的该EtherCAT类型的数据包的源地址和目的地址,并向下一个终端设备转发该EtherCAT类型的数据包。For example, the forwarding rule is used for the UPF to send the EtherCAT type data packet to the terminal device. The forwarding rule is used by the UPF to modify the source address and destination address of the received EtherCAT type data packet, and forward the EtherCAT type data packet to the next terminal device.
该转发规则可以如表1所示:The forwarding rule can be as shown in Table 1:
表1转发规则Table 1 Forwarding rules
序号serial number 地址address
11 终端设备A的地址Address of terminal device A
22 终端设备B的地址Address of terminal device B
若UPF从终端设备A接收到该EtherCAT类型的数据包,当UPF根据表1中的序号判断出终端设备A对应序号1,然后寻找序号2所对应的地址,即终端设备B的地址,所以UPF判断出应向终端设备B发送该EtherCAT类型的数据包,则UPF将该EtherCAT类型的数据包的源地址修改为主站设备的地址,将该EtherCAT类型的数据包的目的地址修改为终端设备B的地址。If UPF receives the EtherCAT type data packet from terminal device A, when UPF determines that terminal device A corresponds to serial number 1 according to the serial number in Table 1, and then finds the address corresponding to serial number 2, that is, the address of terminal device B, so UPF It is determined that the EtherCAT type data packet should be sent to terminal device B, and the UPF changes the source address of the EtherCAT type data packet to the address of the master device, and the destination address of the EtherCAT type data packet to terminal device B. the address of.
或者,可选的,该转发规则也可以如表2所示:Or, optionally, the forwarding rule can also be as shown in Table 2:
表2转发规则Table 2 Forwarding rules
EtherCAT类型的数据包的来源Source of EtherCAT type packets 源地址source address 目的地址Destination address
主站设备master equipment 主站设备的地址Address of the master device 终端设备A的地址Address of terminal device A
终端设备ATerminal equipment A 终端设备A的地址Address of terminal device A 终端设备B的地址Address of terminal device B
终端设备BTerminal equipment B 终端设备B的地址Address of terminal device B 主站设备的地址Address of the master device
同样,若UPF从终端设备A接收到该EtherCAT类型的数据包,当UPF根据表2中的“EtherCAT类型的数据包的来源”信息判断出应将该EtherCAT类型的数据包中的源地址修改为主站设备的地址,将该EtherCAT类型的数据包的目的地址修改为终端设备B的地址。Similarly, if the UPF receives the EtherCAT type data packet from the terminal device A, when the UPF determines that the source address in the EtherCAT type data packet should be modified according to the "source of the EtherCAT type data packet" information in Table 2 The address of the master device, modify the destination address of the EtherCAT type data packet to the address of the terminal device B.
步骤505,SMF向UPF发送转发规则和数据包检测规则。例如,SMF通过请求建立或修改N4会话的消息向UPF发送上述转发规则和数据包检测规则。Step 505, the SMF sends the forwarding rule and the data packet inspection rule to the UPF. For example, the SMF sends the above-mentioned forwarding rules and data packet inspection rules to the UPF through a message requesting to establish or modify an N4 session.
步骤506,UPF在收到转发规则和数据包检测规则后,向SMF发送响应消息。例如,UPF向SMF发送建立或修改N4会话的响应消息。Step 506, after receiving the forwarding rule and the data packet inspection rule, the UPF sends a response message to the SMF. For example, the UPF sends a response message to the SMF to establish or modify the N4 session.
此外,网络侧还可以执行用于建立UPF与终端设备A之间的会话的其他步骤,使得UPF与终端设备A之间的会话建立完成。类似的,网络侧还可以执行用于建立UPF与终端设备B之间的会话的其他步骤,使得UPF与终端设备B之间的会话建立完成。In addition, the network side may also perform other steps for establishing a session between the UPF and the terminal device A, so that the establishment of the session between the UPF and the terminal device A is completed. Similarly, the network side may also perform other steps for establishing a session between the UPF and the terminal device B, so that the establishment of the session between the UPF and the terminal device B is completed.
步骤507,SMF向AF发送会话建立完成响应信息。Step 507, the SMF sends a session establishment complete response message to the AF.
步骤508,AF在收到会话建立完成响应信息后向主站设备发送通知信息。该通知信息用于通知主站设备会话建立完成,可以向终端设备发送数据包。Step 508: After receiving the session establishment completion response information, the AF sends notification information to the master station device. The notification information is used to notify the master station device that the session establishment is completed and data packets can be sent to the terminal device.
步骤509,主站设备通过5GS中的UPF向终端设备A发送EtherCAT类型的数据包。例如,主站设备依次通过5GS中的UPF、(R)AN(图中未示出)向终端设备发送该EtherCAT类型的数据包。Step 509, the master station device sends the EtherCAT type data packet to the terminal device A through the UPF in the 5GS. For example, the master station device sends the EtherCAT type data packet to the terminal device through the UPF and (R)AN (not shown in the figure) in the 5GS in turn.
例如,该EtherCAT类型的数据包的源地址信息为主站设备的地址,该EtherCAT类型的数据包的目的地址信息为终端设备A(序号标识为数字1)的地址,例如该地址信息为MAC地址。For example, the source address information of the EtherCAT type data packet is the address of the main station device, and the destination address information of the EtherCAT type data packet is the address of the terminal device A (the serial number is identified as number 1), for example, the address information is the MAC address. .
例如,当UPF接收到该EtherCAT类型的数据包,根据数据包检测规则检测出该EtherCAT类型的数据包,根据转发规则,向终端设备A发送该EtherCAT类型的数据包。可选的,该虚拟网群组的群组标识信息也可以用于UPF检测出该EtherCAT类型的数据包。For example, when the UPF receives the EtherCAT type data packet, it detects the EtherCAT type data packet according to the data packet detection rule, and sends the EtherCAT type data packet to the terminal device A according to the forwarding rule. Optionally, the group identification information of the virtual network group may also be used by the UPF to detect the EtherCAT type data packet.
步骤510,终端设备A识别EtherCAT类型的数据包并向辅站设备转发。Step 510, the terminal device A identifies the EtherCAT type data packet and forwards it to the auxiliary station device.
例如,终端设备根据以太类型值(例如,88A4h)识别该EtherCAT类型的数据包。For example, the end device identifies packets of this EtherCAT type based on the EtherType value (eg, 88A4h).
终端设备连接了多个辅站设备,例如,终端设备通过有线的方式连接了多个辅站设备。终端设备向多个辅站设备转发该EtherCAT类型的数据包,多个辅站设备按照设定好的转发顺序转发该EtherCAT类型的数据包,最终终端设备接收到按照多个辅站设备的转发顺序转发完成后的该EtherCAT类型的数据包。终端设备接收的数据包中数据部分可能与终端设备发送出的数据包中数据部分相同,此时多个辅站设备并未对该EtherCAT类型的数据包中数据部分进行更改;或者,也可能与终端设备发送出的数据包中数据部分不同,此时多个辅站设备可能对该EtherCAT类型的数据包中数据部分进行了修改,或者在该EtherCAT类型的数据包中数据部分增加了新的数据,本申请 对此并不做限制。The terminal device is connected to multiple auxiliary station devices, for example, the terminal device is connected to multiple auxiliary station devices in a wired manner. The terminal device forwards the EtherCAT type data packet to multiple auxiliary station devices, and the multiple auxiliary station devices forward the EtherCAT type data packet according to the set forwarding order, and finally the terminal device receives it according to the forwarding order of the multiple auxiliary station devices. The EtherCAT type data packet after forwarding is completed. The data part of the data packet received by the terminal device may be the same as the data part of the data packet sent by the terminal device. At this time, multiple auxiliary station devices have not changed the data part of the EtherCAT type data packet; The data part of the data packet sent by the terminal device is different. At this time, multiple auxiliary station devices may modify the data part of the EtherCAT type data packet, or add new data to the data part of the EtherCAT type data packet. , which is not limited in this application.
步骤511,终端设备A向UPF发送按照多个辅站设备的转发顺序转发完成后的EtherCAT类型的数据包。Step 511, the terminal device A sends to the UPF the EtherCAT type data packets that have been forwarded according to the forwarding sequence of the multiple auxiliary station devices.
第一种可选的实施方式,终端设备为终端设备A,终端设备得到按照多个辅站设备的转发顺序转发完成后的该EtherCAT类型的数据包,终端设备A将该EtherCAT类型的数据包中的源地址和目的地址进行互换,即终端设备A将该EtherCAT类型的数据包中的目的地址修改为主站设备的地址,终端设备A将该EtherCAT类型的数据包中的源地址修改为终端设备A的地址。终端设备向UPF发送该EtherCAT类型的数据包。The first optional implementation manner, the terminal device is terminal device A, the terminal device obtains the EtherCAT type data packet after the forwarding is completed according to the forwarding order of multiple auxiliary station devices, and terminal device A includes the EtherCAT type data packet in the data packet of the EtherCAT type. Exchange the source address and destination address of the EtherCAT type data packet, that is, terminal device A changes the destination address in the EtherCAT type data packet to the address of the master device, and terminal device A changes the source address in the EtherCAT type data packet to the terminal device. The address of device A. The end device sends the EtherCAT type data packet to the UPF.
第二种可选的实施方式,终端设备为终端设备A,终端设备得到按照多个辅站设备的转发顺序转发完成后的EtherCAT类型的数据包,终端设备直接向UPF发送该EtherCAT类型的数据包,此时的该EtherCAT类型的数据包中源地址仍然为主站设备的地址,目的地址仍然为终端设备A的地址。In the second optional implementation manner, the terminal device is terminal device A, the terminal device obtains the EtherCAT type data packets that have been forwarded according to the forwarding order of multiple auxiliary station devices, and the terminal device directly sends the EtherCAT type data packets to the UPF. , at this time, the source address in the EtherCAT type data packet is still the address of the main station device, and the destination address is still the address of the terminal device A.
第三种可选的实施方式,终端设备为终端设备A,终端设备得到按照多个辅站设备的转发顺序转发完成后的该EtherCAT类型的数据包,终端设备A将该EtherCAT类型的数据包中的目的地址修改为终端设备B的地址,终端设备A将该EtherCAT类型的数据包中的源地址修改为终端设备A的地址。终端设备向UPF发送该EtherCAT类型的数据包,此时该数据包的转发可以使用5G LAN的转发模式,由UPF通过内部接口直接向终端设备B发送该数据包。该实施方式的前提是该通信中的终端设备均已获取自身应向哪个终端设备转发数据包的信息,该信息可以由终端设备的内置信息获取,也可以由UPF向终端设备发送(图中未示出)。The third optional implementation manner, the terminal device is terminal device A, the terminal device obtains the EtherCAT type data packet after the forwarding is completed according to the forwarding order of multiple auxiliary station devices, and terminal device A includes the EtherCAT type data packet in the data packet of the EtherCAT type. The destination address is modified to the address of terminal device B, and terminal device A modifies the source address in the EtherCAT type data packet to the address of terminal device A. The terminal device sends the EtherCAT type data packet to the UPF. At this time, the forwarding of the data packet can use the forwarding mode of the 5G LAN, and the UPF directly sends the data packet to the terminal device B through the internal interface. The premise of this embodiment is that the terminal equipment in the communication has obtained the information on which terminal equipment it should forward the data packet to. Shows).
步骤512,UPF判断并更改当前EtherCAT类型的数据包的目的地址和源地址。Step 512, the UPF determines and changes the destination address and source address of the current EtherCAT type data packet.
例如,UPF收到数据包后,根据数据包检测规则检测出该数据包,根据步骤504中的转发规则判断出应当将该EtherCAT类型的数据包向终端设备B发送,若步骤511采用的是第一种和第二种可选的实施方式,那么UPF将该EtherCAT类型的数据包中的源地址修改为主站设备的地址,将该EtherCAT类型的数据包中的目的地址修改为终端设备B的地址,若步骤511采用的是第三种可选的实施方式,则无需对该EtherCAT类型的数据包中的目的地址进行修改。然后执行该EtherCAT类型的数据包向终端设备B的发送。For example, after receiving the data packet, UPF detects the data packet according to the data packet detection rules, and judges that the EtherCAT type data packet should be sent to terminal device B according to the forwarding rules in step 504. In the first and second optional implementations, the UPF modifies the source address in the EtherCAT type data packet to the address of the master station device, and modifies the destination address in the EtherCAT type data packet to the address of the terminal device B. Address, if the third optional implementation manner is adopted in step 511, the destination address in the EtherCAT type data packet does not need to be modified. Then, the sending of the EtherCAT type data packet to the terminal device B is performed.
步骤513,UPF向终端设备B发送该EtherCAT类型的数据包。Step 513, the UPF sends the EtherCAT type data packet to the terminal device B.
步骤514,终端设备B识别EtherCAT类型的数据包并向辅站设备转发。Step 514, the terminal device B identifies the EtherCAT type data packet and forwards it to the auxiliary station device.
例如,终端设备B的操作与步骤510中终端设备A的操作是类似的,可参考步骤510的描述,此处不再赘述。For example, the operation of the terminal device B is similar to the operation of the terminal device A in step 510, and reference may be made to the description of step 510, and details are not repeated here.
步骤515,终端设备B向UPF发送按照多个辅站设备的转发顺序转发完成后的EtherCAT类型的数据包。Step 515, the terminal device B sends to the UPF the EtherCAT type data packets that have been forwarded according to the forwarding sequence of the multiple secondary station devices.
步骤516,UPF判断并更改当前EtherCAT类型的数据包的目的地址和源地址。Step 516, the UPF determines and changes the destination address and source address of the current EtherCAT type data packet.
例如,UPF根据数据包检测规则,判断该EtherCAT类型的数据包应向主站设备发送,UPF根据检测规则更改当前EtherCAT类型的数据的包目的地址为主站设备的地址,源地址为终端设备B的地址;同样,若在步骤515中,UPF从终端设备收到的 EtherCAT类型的数据包的目的地址为主站设备,源地址为终端设备B,则该步骤中UPF不用更改当前数据包的目的地址和源地址。For example, UPF determines that the EtherCAT type data packet should be sent to the master station device according to the data packet detection rules. UPF changes the destination address of the current EtherCAT type data packet according to the detection rules. The address of the master station device, the source address is the terminal device B Similarly, if in step 515, the destination address of the EtherCAT type data packet received by UPF from the terminal device is the main station device and the source address is the terminal device B, then UPF does not need to change the purpose of the current data packet in this step. address and source address.
步骤517,UPF向主站设备发送EtherCAT类型的数据包。至此,一次完整的EtherCAT类型的数据包转发流程完成。Step 517, the UPF sends the EtherCAT type data packet to the master device. So far, a complete EtherCAT type packet forwarding process is completed.
应特别说明的是,该方案也适用于不为终端设备创建虚拟网群组的方案,即,主站向AF发送终端设备的信息,AF可以通过服务化接口向SMF发送终端设备的信息,SMF根据终端设备的信息生成数据包检测规则和转发规则,该数据包检测规则和转发规则的生成可以参考该实施例中步骤504的描述,后续同样使用该实施例中步骤506至步骤517中的方法,完成完整的EtherCAT类型的数据包转发流程,但是在此方案中,步骤511和步骤515则采用第一种或第二种可选的实施方式。It should be particularly noted that this solution is also applicable to the solution that does not create a virtual network group for terminal devices, that is, the master station sends the information of the terminal device to the AF, and the AF can send the information of the terminal device to the SMF through the service interface, and the SMF Generate data packet detection rules and forwarding rules according to the information of the terminal device. For the generation of the data packet detection rules and forwarding rules, reference may be made to the description of step 504 in this embodiment, and the methods in steps 506 to 517 in this embodiment are also used subsequently. , to complete the complete EtherCAT type data packet forwarding process, but in this solution, step 511 and step 515 adopt the first or second optional implementation manner.
另外,当终端设备的信息发生改变时,若核心网中UDM已经为终端设备创建了虚拟网群组,主站设备可以通过AF调用NEF开放的接口来调用UDM,实现虚拟网群组中的信息的更新,SMF根据UDM更新后的虚拟网群组中的信息更新转发规则,并向UPF发送;若核心网中没有为终端设备创建虚拟网群组,则主站设备通过AF向SMF发送更新后的终端设备的信息,SMF根据新的终端设备的信息更新转发规则,并向UPF发送。In addition, when the information of the terminal device changes, if the UDM in the core network has created a virtual network group for the terminal device, the master device can call the UDM through the AF to call the interface opened by the NEF to realize the information in the virtual network group. The SMF updates the forwarding rules according to the information in the virtual network group updated by the UDM, and sends it to the UPF; if there is no virtual network group created for the terminal device in the core network, the master station device sends the update to the SMF through the AF. information of the new terminal device, the SMF updates the forwarding rule according to the information of the new terminal device, and sends it to the UPF.
在本实施例中UPF根据转发规则判断出向下一个序号标识的终端设备发送该EtherCAT类型的数据包,将该EtherCAT类型的数据包的目的地址修改为下一个序号标识的终端设备的地址,并执行数据包的转发,最终实现一次完整的EtherCAT通信。通过该实施例,当5GS与工业以太网组网后,工业以太网可以通过5GS来实现组网后的工业以太网系统支持EtherCAT的通信方式,即5GS与EtherCAT融合的工业通信系统按照EtherCAT的转发逻辑完成EtherCAT类型的数据包的转发。In this embodiment, the UPF determines, according to the forwarding rule, to send the EtherCAT type data packet to the terminal device identified by the next sequence number, modifies the destination address of the EtherCAT type data packet to the address of the terminal device identified by the next sequence number, and executes The forwarding of data packets finally realizes a complete EtherCAT communication. Through this embodiment, when the 5GS and the industrial Ethernet are networked, the industrial Ethernet can realize that the networked industrial Ethernet system supports the EtherCAT communication mode through the 5GS, that is, the industrial communication system integrated with 5GS and EtherCAT is forwarded according to EtherCAT The logic completes the forwarding of EtherCAT type packets.
图6为根据本申请实施例提供的另一种数据包转发的流程交互示意图。FIG. 6 is a schematic diagram of another flow interaction of data packet forwarding according to an embodiment of the present application.
本实施例与图5所示实施例不同之处在于,5GS从主站设备获取终端设备的信息的方式不同。本实施例包括以下步骤:The difference between this embodiment and the embodiment shown in FIG. 5 is that the 5GS obtains the information of the terminal device from the master station device in a different manner. This embodiment includes the following steps:
步骤601,主站设备离线获取5GS和辅站设备的辅站设备信息(EtherCAT Secondary Information,ESI)文件,生成EtherCAT网络信息(EtherCAT Network Information,ENI)文件。Step 601, the master station device obtains the auxiliary station device information (EtherCAT Secondary Information, ESI) file of the 5GS and the auxiliary station device offline, and generates an EtherCAT Network Information (EtherCAT Network Information, ENI) file.
例如,离线的方式为移动硬盘拷贝的方式,工厂工作人员将5GS和辅站设备的ESI文件存储到主站设备中。For example, the offline method is a mobile hard disk copy method, and the factory staff stores the ESI files of the 5GS and the auxiliary station equipment in the main station equipment.
例如,5GS的ESI文件中包括一个UPF的虚拟IP地址,该地址用于主站设备后续向UPF发送信息。For example, the ESI file of 5GS includes a virtual IP address of the UPF, which is used by the master station device to send information to the UPF subsequently.
例如,主站通过编译5GS的ESI文件和辅站设备的ESI文件得到ENI文件,该ENI文件中包括多个终端设备的地址,终端设备的标识信息,终端设备与辅站设备的连接关系,以及根据辅站设备之间的顺序确定的终端设备的序号标识。例如,终端设备的地址可以是终端设备的MAC地址,该终端设备的序号标识代表了EtherCAT类型的数据包在终端设备之间的转发顺序。For example, the master station obtains an ENI file by compiling the ESI file of 5GS and the ESI file of the auxiliary station equipment. The ENI file includes the addresses of multiple terminal equipment, the identification information of the terminal equipment, the connection relationship between the terminal equipment and the auxiliary equipment, and The serial number identifier of the terminal device determined according to the sequence between the secondary station devices. For example, the address of the terminal device may be the MAC address of the terminal device, and the serial number identifier of the terminal device represents the forwarding sequence of EtherCAT type data packets between the terminal devices.
例如,终端设备的标识信息分别为A和B,终端设备的序号标识分别为数字1和数字2,其中数字1代表的含义为终端设备A为第一个接收EtherCAT类型的数据包 的终端设备,数字2代表的含义为终端设备B为第二个接收EtherCAT类型的数据包的终端设备。For example, the identification information of the terminal device is A and B respectively, and the serial number identification of the terminal device is the number 1 and the number 2 respectively, where the number 1 represents the meaning that the terminal device A is the first to receive the EtherCAT type data packet. The meaning represented by the number 2 is that the terminal device B is the second terminal device that receives EtherCAT type data packets.
步骤602,主站设备向UPF发送终端设备的信息。例如,主站设备利用步骤601中的虚拟IP地址向UPF发送该终端设备的信息。该信息中包括终端设备的地址信息,例如,终端设备的MAC地址,终端设备的标识信息,终端设备的序号标识。Step 602, the master station device sends the information of the terminal device to the UPF. For example, the master station device uses the virtual IP address in step 601 to send the information of the terminal device to the UPF. The information includes address information of the terminal device, for example, the MAC address of the terminal device, the identification information of the terminal device, and the serial number identification of the terminal device.
例如,主站设备通过邮箱通信的方式向UPF发送该终端设备的信息,当使用邮箱通信时,包含该终端设备的信息的数据包带有一个邮箱通信的报头,该报头中包含一种协议类型,例如超文本传输(Hypertext Transfer Protocol,HTTP)协议。For example, the master station device sends the information of the terminal device to the UPF by means of mailbox communication. When using the mailbox communication, the data packet containing the information of the terminal device has a header of the mailbox communication, and the header contains a protocol type , such as the Hypertext Transfer Protocol (HTTP) protocol.
例如,主站设备使用的邮箱通信的方式,传输的包含该终端设备的信息的数据包的以太类型为0800h。For example, in the mailbox communication method used by the master station device, the ether type of the transmitted data packet containing the information of the terminal device is 0800h.
例如,主站设备向UPF发送的终端设备的信息中包含两个终端设备的信息。例如,终端设备的标识信息分别为A和B。终端设备的序号标识分别为数字1和数字2,其中数字1代表的含义为终端设备A为第一个接收EtherCAT类型的数据包的终端设备,数字2代表的含义为终端设备B为第二个接收EtherCAT类型的数据包的终端设备。For example, the information of the terminal devices sent by the master station device to the UPF includes the information of two terminal devices. For example, the identification information of the terminal equipment is A and B, respectively. The serial number identification of the terminal device is the number 1 and the number 2, where the number 1 represents that the terminal device A is the first terminal device to receive the EtherCAT type data packet, and the number 2 represents that the terminal device B is the second terminal device. An end device that receives packets of EtherCAT type.
步骤603,UPF获取终端设备的信息。Step 603, the UPF obtains information of the terminal device.
例如,UPF根据以太类型(例如,0800h)识别通过邮箱通信的方式传输的数据包。当UPF接收到该包含终端设备的信息的数据包,获取到该数据包中的数据,将数据发送给HTTP应用层进行解析,最终UPF获取到该终端设备的信息。For example, UPF identifies packets transmitted by means of mailbox communications based on the type of ether (eg, 0800h). When the UPF receives the data packet containing the information of the terminal device, obtains the data in the data packet, sends the data to the HTTP application layer for analysis, and finally the UPF obtains the information of the terminal device.
例如,终端设备的信息包括终端设备的MAC地址,终端设备的标识信息,终端设备的序号标识。For example, the information of the terminal device includes the MAC address of the terminal device, the identification information of the terminal device, and the serial number identification of the terminal device.
步骤604,UPF向SMF发送终端设备的信息。Step 604, the UPF sends the information of the terminal device to the SMF.
步骤605,SMF根据终端设备的信息,创建虚拟网群组,生成转发规则和数据包检测规则。Step 605, the SMF creates a virtual network group according to the information of the terminal device, and generates a forwarding rule and a data packet detection rule.
例如,SMF为终端设备A和终端设备B创建一个虚拟网群组。For example, SMF creates a virtual network group for terminal device A and terminal device B.
例如,SMF通过调用UDM创建该虚拟网群组,或者,SMF向AF发送终端设备的信息,由AF调用NEF开放的接口来调用UDM进行该虚拟网群组的创建。该虚拟网群组的信息由UDM存储到数据存储装置(图中未示出)中,例如,统一数据存储(Unified Data Repository,UDR)。例如,该虚拟网群组的信息包括终端设备的标识信息、终端设备的序号标识、终端设备的地址、以及该虚拟网群组的群组标识信息。For example, the SMF creates the virtual network group by invoking the UDM, or the SMF sends the information of the terminal device to the AF, and the AF invokes the interface opened by the NEF to invoke the UDM to create the virtual network group. The information of the virtual network group is stored in a data storage device (not shown in the figure) by the UDM, for example, a unified data repository (Unified Data Repository, UDR). For example, the information of the virtual network group includes the identification information of the terminal device, the serial number identifier of the terminal device, the address of the terminal device, and the group identification information of the virtual network group.
例如,SMF通过UDM从UDR中获取虚拟网群组的信息,并根据虚拟网群组的信息,生成转发规则和数据包检测规则。该转发规则和数据包检测规则可参考图5中步骤504中的描述,此处不再赘述。For example, the SMF obtains the information of the virtual network group from the UDR through the UDM, and generates forwarding rules and data packet inspection rules according to the information of the virtual network group. For the forwarding rule and the data packet detection rule, reference may be made to the description in step 504 in FIG. 5 , which will not be repeated here.
步骤606,SMF向UPF发送转发规则和数据包检测规则。此步骤可参考图5中步骤505的描述。可选的,SMF向UPF发送该虚拟网群组的群组标识信息。Step 606, the SMF sends the forwarding rule and the data packet inspection rule to the UPF. For this step, reference may be made to the description of step 505 in FIG. 5 . Optionally, the SMF sends the group identification information of the virtual network group to the UPF.
步骤607,UPF在收到转发规则和数据包检测规则后,向SMF发送响应消息。此步骤可参考图5中步骤506的描述。Step 607, after receiving the forwarding rule and the data packet inspection rule, the UPF sends a response message to the SMF. For this step, reference may be made to the description of step 506 in FIG. 5 .
此外,网络侧还可以执行用于建立UPF与终端设备A之间的会话的其他步骤,使得UPF与终端设备A之间的会话建立完成。类似的,网络侧还可以执行用于建立UPF与终端设备B之间的会话的其他步骤,使得UPF与终端设备B之间的会话建立完成。In addition, the network side may also perform other steps for establishing the session between the UPF and the terminal device A, so that the establishment of the session between the UPF and the terminal device A is completed. Similarly, the network side may also perform other steps for establishing a session between the UPF and the terminal device B, so that the establishment of the session between the UPF and the terminal device B is completed.
步骤608,SMF通过AF向主站设备发送会话建立完成响应信息。该会话建立完成响应信息用于通知主站设备会话建立完成,可以向终端设备发送EtherCAT类型的数据包。Step 608, the SMF sends a session establishment completion response message to the master station device through the AF. The session establishment completion response information is used to notify the master station device that the session establishment is completed, and can send EtherCAT type data packets to the terminal device.
步骤609,主站设备通过5GS中的UPF向终端设备发送EtherCAT类型的数据包。例如,主站设备依次通过5GS中的UPF、(R)AN(图中未示出)向终端设备发送EtherCAT类型的数据包。Step 609, the master station device sends the EtherCAT type data packet to the terminal device through the UPF in the 5GS. For example, the master station device sends EtherCAT type data packets to the terminal device through the UPF and (R)AN (not shown in the figure) in the 5GS in turn.
步骤610,终端设备A识别EtherCAT类型的数据包并向辅站设备转发。Step 610, the terminal device A identifies the EtherCAT type data packet and forwards it to the auxiliary station device.
步骤611,终端设备A向UPF发送按照多个辅站设备的转发顺序转发完成后的EtherCAT类型的数据包。Step 611, the terminal device A sends to the UPF the EtherCAT type data packets that have been forwarded according to the forwarding sequence of the multiple secondary station devices.
步骤612,UPF判断并更改当前EtherCAT类型的数据包的目的地址和源地址。Step 612, the UPF determines and changes the destination address and source address of the current EtherCAT type data packet.
步骤613,UPF向终端设备B发送EtherCAT类型的数据包。Step 613, the UPF sends the EtherCAT type data packet to the terminal device B.
步骤614,终端设备B识别EtherCAT类型的数据包并向辅站设备转发。Step 614, the terminal device B identifies the EtherCAT type data packet and forwards it to the auxiliary station device.
步骤615,终端设备B向UPF发送按照多个辅站设备的转发顺序转发完成后的EtherCAT类型的数据包。Step 615, the terminal device B sends the EtherCAT type data packets to the UPF after the forwarding is completed according to the forwarding sequence of the multiple secondary station devices.
步骤616,UPF判断并更改当前EtherCAT类型的数据包的目的地址和源地址。Step 616, the UPF determines and changes the destination address and source address of the current EtherCAT type data packet.
步骤617,UPF向主站设备发送EtherCAT类型的数据包。至此,一次完整的EtherCAT类型的数据包转发流程完成。Step 617, the UPF sends the EtherCAT type data packet to the master station device. So far, a complete EtherCAT type packet forwarding process is completed.
步骤609至步骤617可参考图5中步骤509至步骤517中的描述,此实施例中不再赘述。For steps 609 to 617 , reference may be made to the descriptions of steps 509 to 517 in FIG. 5 , which are not repeated in this embodiment.
应特别说明的是,与图5所示实施例类似,该方案也适用于不为终端设备创建虚拟网群组的方案,即步骤605中SMF根据终端设备的信息,生成转发规则和数据包检测规则,由UPF完成该数据包的转发,此时,该方案中步骤611采用第一种或第二种可选的实施方式。It should be noted that, similar to the embodiment shown in FIG. 5 , this solution is also applicable to the solution of not creating a virtual network group for terminal devices, that is, in step 605, the SMF generates forwarding rules and data packet detection according to the information of the terminal devices. According to the rules, the UPF completes the forwarding of the data packet. At this time, step 611 in this solution adopts the first or second optional implementation manner.
同样,当终端设备的信息发生改变时,若核心网中UDM已经为终端设备创建了虚拟网群组,SMF根据更新后的终端设备的信息更新UDM中的虚拟网群组的信息,若核心网中没有为终端设备创建虚拟网群组,则SMF根据更新后的终端设备的信息更新转发规则,并向UPF发送。Similarly, when the information of the terminal device changes, if the UDM in the core network has created a virtual network group for the terminal device, the SMF updates the information of the virtual network group in the UDM according to the updated information of the terminal device. There is no virtual network group created for the terminal device in the SMF, then the SMF updates the forwarding rule according to the updated information of the terminal device, and sends it to the UPF.
该实施例中主站获取5GS和辅站设备的ESI文件,并编译生成ENI文件,获取终端设备的信息,并通过邮箱通信的方式向UPF发送该终端设备的信息,无需依赖定制的API接口实现主站设备与5GS之间终端设备的信息的传输,此方法降低了对主站设备的改动。In this embodiment, the master station obtains the ESI files of the 5GS and the auxiliary station equipment, compiles and generates the ENI file, obtains the information of the terminal equipment, and sends the information of the terminal equipment to the UPF by means of mailbox communication, without relying on the customized API interface. The information transmission of the terminal equipment between the main station equipment and the 5GS, this method reduces the changes to the main station equipment.
图7为根据本申请实施例提供的又一种数据包转发的流程交互示意图。该实施例包括以下步骤:FIG. 7 is a schematic diagram of another flow interaction of data packet forwarding according to an embodiment of the present application. This embodiment includes the following steps:
步骤701,终端设备通过连接的辅站设备获取辅站设备内置信息。Step 701, the terminal device acquires the built-in information of the auxiliary station device through the connected auxiliary station device.
例如,终端设备A与辅站设备1和辅站设备2相连,终端设备B与辅站设备3和辅站设备4相连。以辅站设备1为例,辅站设备1的内置信息中包括该辅站设备1与终端设备A连接的信息,还包括终端设备A的序号标识信息,例如数字1(数字1代表的含义为终端设备A为第一个接收EtherCAT类型的数据包的终端设备),以及该EtherCAT与5GS组网后的工业以太网系统中还包括的其他终端设备,例如终端设备 B。For example, terminal device A is connected to auxiliary station device 1 and auxiliary station device 2 , and terminal device B is connected to auxiliary station device 3 and auxiliary station device 4 . Taking the auxiliary station equipment 1 as an example, the built-in information of the auxiliary station equipment 1 includes the information of the connection between the auxiliary station equipment 1 and the terminal equipment A, and also includes the serial number identification information of the terminal equipment A, such as the number 1 (the meaning of the number 1 is: Terminal device A is the first terminal device that receives EtherCAT type data packets), and other terminal devices, such as terminal device B, also included in the industrial Ethernet system after the EtherCAT and 5GS networking.
例如,辅站设备的内置信息中可以包括一个虚拟UPF的IP地址,该地址信息可以用于终端设备与UPF进行邮箱通信。For example, the built-in information of the auxiliary station device may include an IP address of a virtual UPF, and the address information may be used for mailbox communication between the terminal device and the UPF.
步骤702,终端设备向UPF发送建立连接请求信息。此外,终端设备还可以向UPF发送虚拟网群组的建立请求。该建立连接请求信息用于终端设备与UPF建立连接,用于后续步骤703的执行。另外,该虚拟网群组的建立请求用于UPF在接收到终端设备的信息后,向SMF发送该虚拟网群组的建立请求,用于后续步骤中SMF创建虚拟网群组,以便后续步骤中EtherCAT类型的数据包的转发可以采用5GLAN的转发模式。Step 702, the terminal device sends a connection establishment request message to the UPF. In addition, the terminal device may also send a request for establishing a virtual network group to the UPF. The connection establishment request information is used for the terminal device to establish a connection with the UPF, which is used for the execution of the subsequent step 703 . In addition, the request for establishing the virtual network group is used by the UPF to send the request for establishing the virtual network group to the SMF after receiving the information of the terminal device, so as to be used by the SMF to create the virtual network group in the subsequent steps, so that in the subsequent steps The forwarding of EtherCAT type data packets can adopt the forwarding mode of 5GLAN.
步骤703,终端设备向UPF发送终端设备的信息。该信息中包括终端设备的地址信息,终端设备的标识信息,终端设备的序号标识。例如,终端设备的地址可以是终端设备的MAC地址,该序号标识代表了EtherCAT类型的数据包在终端设备之间的转发顺序。Step 703, the terminal device sends the information of the terminal device to the UPF. The information includes address information of the terminal device, identification information of the terminal device, and serial number identification of the terminal device. For example, the address of the terminal device may be the MAC address of the terminal device, and the sequence number identifier represents the forwarding sequence of the EtherCAT type data packets between the terminal devices.
例如,终端设备通过邮箱通信的方式,向UPF发送该终端设备的信息。此步骤可参考图6中步骤602中关于邮箱通信的描述。For example, the terminal device sends the information of the terminal device to the UPF by means of mailbox communication. For this step, reference may be made to the description about mailbox communication in step 602 in FIG. 6 .
步骤704,UPF获取终端设备的信息。Step 704, the UPF obtains information of the terminal device.
例如,UPF接收步骤703中的使用邮箱通信的方式传输的数据包,从该数据包中获取终端设备的信息。此步骤可参考图6中步骤603中的描述。For example, the UPF receives the data packet transmitted by means of mailbox communication in step 703, and obtains the information of the terminal device from the data packet. This step may refer to the description in step 603 in FIG. 6 .
例如,该终端设备的信息包括终端设备的MAC地址,终端设备的标识信息,终端设备的序号标识。For example, the information of the terminal device includes the MAC address of the terminal device, the identification information of the terminal device, and the serial number identification of the terminal device.
步骤705,UPF向SMF发送终端设备的信息。Step 705, the UPF sends the information of the terminal device to the SMF.
至此,SMF获取到了终端设备的信息。So far, the SMF has obtained the information of the terminal device.
此外,SMF获取终端设备的信息的方法还可以使用非接入层(Non-access stratum,NAS)通信的方法,NAS通信是一种终端设备通过RAN直接与核心网中的控制面网元进行通信的方式,该方式中终端设备与控制面网元进行信息传输使用的是NAS信令,终端设备将终端设备的信息添加到NAS信令中,向SMF发送该终端设备的信息。In addition, the method for the SMF to obtain the information of the terminal equipment can also use the method of non-access stratum (NAS) communication. NAS communication is a kind of communication between the terminal equipment and the control plane network elements in the core network directly through the RAN. In this method, NAS signaling is used for information transmission between the terminal equipment and the control plane network element, and the terminal equipment adds the information of the terminal equipment to the NAS signaling, and sends the information of the terminal equipment to the SMF.
后续执行步骤706。Step 706 is subsequently executed.
步骤706,SMF创建虚拟网群组,生成转发规则和数据包检测规则。Step 706, the SMF creates a virtual network group, and generates forwarding rules and data packet inspection rules.
例如,SMF根据终端设备的信息,创建虚拟网群组。For example, the SMF creates a virtual network group based on the information of the terminal device.
例如,SMF为终端设备A和终端设备B创建一个虚拟网群组。For example, SMF creates a virtual network group for terminal device A and terminal device B.
例如,SMF调用UDM创建该虚拟网群组,或者,SMF向AF发送终端设备的信息,由AF调用NEF开放的接口来调用UDM进行该虚拟网群组的创建。该虚拟网群组的信息由UDM存储到数据存储装置(图中未示出)中,例如,UDR。例如,该虚拟网群组的信息包括终端设备的标识信息、终端设备的序号标识、终端设备的地址、以及该虚拟网群组的群组标识信息。For example, the SMF calls the UDM to create the virtual network group, or the SMF sends the information of the terminal device to the AF, and the AF calls the interface opened by the NEF to call the UDM to create the virtual network group. The information of the virtual network group is stored in a data storage device (not shown in the figure) by the UDM, for example, the UDR. For example, the information of the virtual network group includes the identification information of the terminal device, the serial number identifier of the terminal device, the address of the terminal device, and the group identification information of the virtual network group.
例如,SMF通过UDM从UDR中获取虚拟网群组的信息,并根据虚拟网群组的信息,生成转发规则和数据包检测规则。该转发规则和数据包检测规则可参考图5中步骤504中的描述,此处不再赘述。For example, the SMF obtains the information of the virtual network group from the UDR through the UDM, and generates forwarding rules and data packet inspection rules according to the information of the virtual network group. For the forwarding rule and the data packet detection rule, reference may be made to the description in step 504 in FIG. 5 , which will not be repeated here.
步骤707,SMF向UPF发送转发规则和数据包检测规则。该步骤可参考图5中步骤505中的描述。Step 707, the SMF sends the forwarding rule and the data packet inspection rule to the UPF. This step may refer to the description in step 505 in FIG. 5 .
步骤708,UPF在收到转发规则和数据包检测规则后,向SMF发送响应消息。此步骤可参考图5中步骤506的描述。Step 708, after receiving the forwarding rule and the data packet inspection rule, the UPF sends a response message to the SMF. For this step, reference may be made to the description of step 506 in FIG. 5 .
此外,网络侧还可以执行用于建立UPF与终端设备A之间的会话的其他步骤,使得UPF与终端设备A之间的会话建立完成。类似的,网络侧还可以执行用于建立UPF与终端设备B之间的会话的其他步骤,使得UPF与终端设备B之间的会话建立完成。In addition, the network side may also perform other steps for establishing the session between the UPF and the terminal device A, so that the establishment of the session between the UPF and the terminal device A is completed. Similarly, the network side may also perform other steps for establishing a session between the UPF and the terminal device B, so that the establishment of the session between the UPF and the terminal device B is completed.
步骤709,SMF向AF发送会话建立完成响应信息。该会话建立完成响应信息用于通知AF会话建立完成,可以向主站设备发送虚拟网群组的信息。Step 709, the SMF sends a session establishment complete response message to the AF. The session establishment completion response information is used to notify the AF that the session establishment is completed, and the information of the virtual network group can be sent to the master station device.
步骤710,AF向主站设备发送虚拟网群组的信息。Step 710, the AF sends the information of the virtual network group to the master station device.
例如,虚拟网群组的信息中包括终端设备的MAC地址,终端设备的标识信息,终端设备的序号标识,该虚拟网群组的群组标识信息。For example, the information of the virtual network group includes the MAC address of the terminal device, the identification information of the terminal device, the serial number identifier of the terminal device, and the group identification information of the virtual network group.
例如,AF通过UDM获取该虚拟网群组的信息,并向主站设备发送虚拟网群组的信息。For example, the AF obtains the information of the virtual network group through UDM, and sends the information of the virtual network group to the master station device.
例如,AF通过SMF获取该虚拟网群组的信息,并向主站设备发送虚拟网群组的信息。For example, the AF obtains the information of the virtual network group through the SMF, and sends the information of the virtual network group to the master station device.
例如,主站设备可以对终端设备的信息进行修改,例如,主站设备根据需要将终端设备A和终端设备B的序号标识调换。若主站设备对终端设备的信息进行了修改,则主站设备可以按照图5和图6所示实施例中的方法重新实现虚拟网群组的创建以及EtherCAT类型的数据包的转发。For example, the master station device may modify the information of the terminal device, for example, the master station device exchanges the serial number identifiers of the terminal device A and the terminal device B as required. If the master station device modifies the information of the terminal device, the master station device can re-implement the creation of the virtual network group and the forwarding of EtherCAT type data packets according to the methods in the embodiments shown in FIG. 5 and FIG. 6 .
步骤711,主站设备向终端设备发送EtherCAT类型的数据包。Step 711, the master station device sends EtherCAT type data packets to the terminal device.
例如,主站设备通过UPF向终端设备A发送EtherCAT类型的数据包。For example, the master device sends EtherCAT type data packets to end device A via UPF.
例如,主站设备依次通过5GS中的UPF、(R)AN(图中未示出)向终端设备A发送EtherCAT类型的数据包。For example, the master station device sends EtherCAT type data packets to the terminal device A through the UPF and (R)AN (not shown in the figure) in the 5GS in sequence.
例如,该数据包的源地址信息为主站设备的地址,该数据包的目的地址信息为终端设备A(序号标识为数字1)的地址,例如该地址信息为MAC地址。For example, the source address information of the data packet is the address of the main station device, and the destination address information of the data packet is the address of the terminal device A (the serial number identifier is 1), for example, the address information is the MAC address.
例如,当UPF接收到该数据包,根据数据包检测规则,检测出该数据包为该虚拟网群组的EtherCAT类型的数据包,根据转发规则,向终端设备A发送该数据包。For example, when the UPF receives the data packet, according to the data packet detection rules, it detects that the data packet is an EtherCAT type data packet of the virtual network group, and sends the data packet to the terminal device A according to the forwarding rules.
步骤712,终端设备A识别EtherCAT类型的数据包并向辅站设备转发。Step 712, the terminal device A identifies the EtherCAT type data packet and forwards it to the auxiliary station device.
步骤713,终端设备A向UPF发送EtherCAT类型的数据包,该数据包是按照多个辅站设备的转发顺序转发完成的数据包。Step 713: The terminal device A sends an EtherCAT type data packet to the UPF, where the data packet is a data packet that has been forwarded according to the forwarding sequence of the multiple secondary station devices.
步骤714,UPF判断并更改当前EtherCAT类型的数据包的目的地址和源地址。Step 714, the UPF determines and changes the destination address and source address of the current EtherCAT type data packet.
步骤715,UPF向终端设备B发送EtherCAT类型的数据包。Step 715, the UPF sends the EtherCAT type data packet to the terminal device B.
步骤716,终端设备B识别EtherCAT类型的数据包并向辅站设备转发。Step 716, the terminal device B identifies the EtherCAT type data packet and forwards it to the secondary station device.
步骤717,终端设备B向UPF发送按照多个辅站设备的转发顺序转发完成后的EtherCAT类型的数据包。Step 717: The terminal device B sends to the UPF the EtherCAT type data packets that have been forwarded according to the forwarding sequence of the multiple secondary station devices.
步骤718,UPF判断并更改当前EtherCAT类型的数据包的目的地址和源地址。Step 718, the UPF determines and changes the destination address and source address of the current EtherCAT type data packet.
步骤719,UPF向主站设备发送EtherCAT类型的数据包。至此,一次完整的EtherCAT类型的数据包转发流程完成。Step 719, the UPF sends the EtherCAT type data packet to the master device. So far, a complete EtherCAT type packet forwarding process is completed.
步骤711至步骤719可参考图5中步骤509至步骤517中的描述。Steps 711 to 719 may refer to the descriptions of steps 509 to 517 in FIG. 5 .
应特别说明的是,该方案同样也适用于不为终端设备创建虚拟网群组的方案,即 步骤706中SMF通过UPF获取到终端设备的信息后不执行创建虚拟网群组的动作,后续,AF可以通过服务化接口从SMF接收终端设备的信息。同样,该方案中步骤713采用第一种或第二种可选的实施方式。It should be particularly noted that this solution is also applicable to the solution of not creating a virtual network group for the terminal device, that is, in step 706, the SMF does not perform the action of creating a virtual network group after obtaining the information of the terminal device through the UPF. The AF can receive terminal device information from the SMF through the serviced interface. Likewise, step 713 in this solution adopts the first or second optional implementation manner.
同样,当终端设备的信息发生改变时,若核心网中UDM已经为终端设备创建了虚拟网群组,SMF根据更新后的终端设备的信息更新UDM中的虚拟网群组的信息,若核心网中没有为终端设备创建虚拟网群组,则SMF根据更新后的终端设备的信息更新转发规则,并向UPF发送。Similarly, when the information of the terminal device changes, if the UDM in the core network has created a virtual network group for the terminal device, the SMF updates the information of the virtual network group in the UDM according to the updated information of the terminal device. If there is no virtual network group created for the terminal device in the SMF, the SMF updates the forwarding rule according to the updated information of the terminal device, and sends it to the UPF.
在本实施例中,5GS通过辅站设备获取内置信息,5GS中的SMF根据该内置信息中的终端设备的信息,生成转发规则和数据包检测规则。In this embodiment, the 5GS obtains built-in information through the auxiliary station equipment, and the SMF in the 5GS generates forwarding rules and data packet detection rules according to the information of the terminal equipment in the built-in information.
图5至图7所示实施例均同样采用使用UPF向终端设备转发数据包的方式,按照EtherCAT的转发逻辑完成EtherCAT类型的数据包的转发。该实施例中的方法是一种针对工业实际场景中,使用辅站设备的内置信息为5GS提供终端设备的信息的方法,可以更加灵活的实现5GS与EtherCAT融合的工业通信系统的工业通信。The embodiments shown in FIG. 5 to FIG. 7 also use the UPF to forward data packets to the terminal device, and complete the forwarding of EtherCAT type data packets according to the forwarding logic of EtherCAT. The method in this embodiment is a method for using the built-in information of auxiliary station equipment to provide terminal equipment information for 5GS in practical industrial scenarios, which can more flexibly implement industrial communication in an industrial communication system integrating 5GS and EtherCAT.
图8为根据本申请实施例提供的又一种数据包转发的流程交互示意图。FIG. 8 is a schematic diagram of another flow interaction of data packet forwarding according to an embodiment of the present application.
该实施例中EtherCAT类型的数据包的转发方式为设备到设备(Device-to-Device,D2D)的转发方式,D2D为两个终端设备之间直接通信的方法。In this embodiment, the EtherCAT type data packet forwarding method is a device-to-device (Device-to-Device, D2D) forwarding method, and D2D is a method for direct communication between two terminal devices.
步骤801,5GS或主站设备获取终端设备的信息,创建虚拟网群组。In step 801, the 5GS or the main station device obtains the information of the terminal device and creates a virtual network group.
例如,主站设备向AF发送该终端设备的信息,AF通过NEF调用UDM完成虚拟网群组的创建。该步骤可参考图5中步骤501至步骤502中的描述。For example, the master station device sends the information of the terminal device to the AF, and the AF calls the UDM through the NEF to complete the creation of the virtual network group. For this step, reference may be made to the descriptions in steps 501 to 502 in FIG. 5 .
例如,主站设备通过离线方式获取辅站设备和5GS的ESI文件,通过编译ESI文件生成ENI文件,获取终端设备的信息,并通过邮箱通信的方式向5GS中的UPF发送该终端设备的信息,UPF从邮箱通信的数据包中获取到终端设备的信息后向SMF发送该终端设备的信息,SMF调用UDM,或者SMF通过AF调用UDM为终端设备进行虚拟网群组的创建,并将虚拟网群组的信息存储在UDR中。此步骤可参考图6中步骤601至步骤605中的描述。For example, the main station device obtains the ESI file of the auxiliary station device and 5GS offline, generates the ENI file by compiling the ESI file, obtains the information of the terminal device, and sends the information of the terminal device to the UPF in the 5GS through mailbox communication, UPF obtains the information of the terminal device from the data packet of mailbox communication and sends the information of the terminal device to SMF. SMF calls UDM, or SMF calls UDM through AF to create a virtual network group for the terminal device, and the virtual network group Group information is stored in UDRs. For this step, reference may be made to the descriptions in steps 601 to 605 in FIG. 6 .
例如,终端设备通过辅站设备获取辅站设备的内置信息,该内置信息中包括终端设备的信息,终端设备向UPF发送终端设备的信息。而后UPF向SMF发送终端设备的信息,SMF调用UDM,或者SMF通过AF调用UDM为终端设备进行虚拟网群组的创建,并将虚拟网群组的信息存储在UDR中。此步骤可参考图7中步骤701至步骤706中的描述。For example, the terminal device obtains built-in information of the auxiliary station device through the auxiliary station device, the built-in information includes information of the terminal device, and the terminal device sends the information of the terminal device to the UPF. Then the UPF sends the information of the terminal device to the SMF, the SMF calls the UDM, or the SMF calls the UDM through the AF to create a virtual network group for the terminal device, and stores the information of the virtual network group in the UDR. For this step, reference may be made to the descriptions in steps 701 to 706 in FIG. 7 .
步骤802,AF获取虚拟网群组的信息。Step 802, the AF acquires the information of the virtual network group.
例如,AF通过SMF获取虚拟网群组的信息,或者,AF通过UDM获取虚拟网群组的信息。For example, the AF obtains the information of the virtual network group through the SMF, or the AF obtains the information of the virtual network group through the UDM.
例如,该虚拟网群组的信息中包括终端设备的MAC地址,终端设备的标识信息,终端设备的序号标识,该虚拟网群组的群组标识信息。For example, the information of the virtual network group includes the MAC address of the terminal device, the identification information of the terminal device, the serial number identifier of the terminal device, and the group identification information of the virtual network group.
步骤803,AF依次通过PCF、AMF向(R)AN发送D2D的服务质量(Quality of service,QoS)要求。Step 803, the AF sends the D2D quality of service (Quality of service, QoS) requirements to the (R)AN through the PCF and the AMF in turn.
例如,AF根据虚拟网群组的信息配置终端设备之间的D2D通信。AF根据终端设备的标识判断序号标识相邻的两个终端设备之间是否能够建立D2D通信,若序号标识 相邻的两个终端设备之间支持建立D2D通信,则AF为该两个终端设备配置QoS要求,例如D2D的PC5/Uu接口连接信息,其中,PC5接口是一种终端设备之间的短距离直接通信接口,Uu接口是一种终端设备和基站之间的通信接口,通过该PC5/Uu接口可实现长距离和更大范围的可靠通信。由于D2D存在这两种不同的转发方式,即终端设备之间直接通信,或者终端设备通过基站与其他的终端设备之间进行通信(该方法为RAN内的通信)。因此(R)AN可以使用QoS要求完成配置,以实现D2D通信。For example, the AF configures D2D communication between terminal devices according to the information of the virtual network group. AF determines whether D2D communication can be established between two adjacent terminal devices identified by the serial number according to the identification of the terminal device. QoS requirements, such as D2D PC5/Uu interface connection information, where the PC5 interface is a short-distance direct communication interface between terminal devices, and the Uu interface is a communication interface between a terminal device and a base station. The Uu interface enables reliable communication over long distances and greater ranges. Because there are two different forwarding modes in D2D, that is, direct communication between terminal devices, or communication between terminal devices and other terminal devices through a base station (this method is communication within the RAN). Therefore the (R)AN can be configured with QoS requirements to enable D2D communication.
例如,若序号标识相邻的两个终端设备之间不能建立D2D通信,则该两个终端设备之间EtherCAT类型的数据包的转发可以通过UPF实现,即终端设备A向UPF发送EtherCAT类型的数据包,UPF使用5G LAN的转发模式,通过内部接口直接向终端设备B转发该EtherCAT类型的数据包。For example, if the sequence number identifies that D2D communication cannot be established between two adjacent terminal devices, the forwarding of EtherCAT type data packets between the two terminal devices can be implemented through UPF, that is, terminal device A sends EtherCAT type data to UPF. Packet, UPF uses the forwarding mode of 5G LAN to directly forward the EtherCAT type data packet to terminal device B through the internal interface.
可选的,AF依次通过PCF、AMF向(R)AN发送还包括该虚拟网群组的群组标识信息,该虚拟网群组的群组标识信息可以用于终端设备识别出携带该EtherCAT类型的数据包的会话,进而识别出该EtherCAT类型的数据包。Optionally, the AF sends the group identification information of the virtual network group to the (R)AN through the PCF and the AMF in turn, and the group identification information of the virtual network group can be used for the terminal device to identify the EtherCAT type. The session of the data packet, and then identify the EtherCAT type of data packet.
步骤804,AF依次通过PCF、AMF(图中未示出)向终端设备发送D2D的QoS要求和策略信息配置信息。例如,D2D的QoS要求和策略信息配置信息用于两个终端设备之间认证并建立D2D连接。Step 804, the AF sends the D2D QoS requirements and policy information configuration information to the terminal device through the PCF and AMF (not shown in the figure) in sequence. For example, D2D QoS requirements and policy information configuration information are used to authenticate and establish a D2D connection between two terminal devices.
例如,该策略信息如表3所示:For example, the policy information is shown in Table 3:
表3策略信息Table 3 Policy Information
序号serial number 终端设备的地址the address of the end device
11 终端设备A的地址Address of terminal device A
22 终端设备B的地址Address of terminal device B
步骤805,终端设备之间建立完成D2D配置后,向主站设备发送D2D配置完成响应信息。Step 805: After the D2D configuration is established between the terminal devices, a D2D configuration completion response message is sent to the master device.
例如终端设备通过5GS中的UPF向主站设备发送D2D配置完成响应信息。For example, the terminal device sends the D2D configuration completion response information to the master station device through the UPF in the 5GS.
步骤806,主站设备接收到D2D配置完成响应信息后向终端设备A发送EtherCAT类型的数据包。Step 806: After receiving the D2D configuration completion response information, the master station device sends an EtherCAT type data packet to the terminal device A.
例如终端设备通过5GS中的UPF向终端设备发送EtherCAT类型的数据包。For example, the terminal device sends EtherCAT type data packets to the terminal device through the UPF in 5GS.
步骤807,终端设备A识别EtherCAT类型的数据包并向辅站设备转发。Step 807, the terminal device A identifies the EtherCAT type data packet and forwards it to the auxiliary station device.
例如,终端设备根据以太类型值(例如,88A4h)识别EtherCAT类型的数据包。For example, end devices identify EtherCAT type packets based on the EtherType value (eg, 88A4h).
可选的,该虚拟网群组的群组标识信息也可以用于终端设备识别出该EtherCAT类型的数据包。Optionally, the group identification information of the virtual network group may also be used by the terminal device to identify the EtherCAT type data packet.
该步骤可参考图5所示实施例中步骤510的描述。For this step, reference may be made to the description of step 510 in the embodiment shown in FIG. 5 .
步骤808,终端设备A通过D2D的方式向终端设备B发送EtherCAT类型的数据包。Step 808, the terminal device A sends the EtherCAT type data packet to the terminal device B in a D2D manner.
第一种可选的实施方式,终端设备A从UPF接收EtherCAT类型的数据包,根据表3所示的策略信息,判断向终端设备B发送该EtherCAT类型的数据包,终端设备A修改该EtherCAT类型的数据包的目的地址为终端设备B的地址,源地址修改为终端设备A的地址,通过D2D的方式向终端设备B发送该EtherCAT类型的数据包。In the first optional implementation, terminal device A receives an EtherCAT type data packet from the UPF, and according to the policy information shown in Table 3, determines to send the EtherCAT type data packet to terminal device B, and terminal device A modifies the EtherCAT type The destination address of the data packet is the address of terminal device B, the source address is modified to the address of terminal device A, and the EtherCAT type data packet is sent to terminal device B through D2D.
第二种可选的实施方式,当虚拟网群组中的终端设备不能完全使用D2D的方式完 成EtherCAT类型的数据包的按序转发,该步骤可以使用D2D的方式与UPF转发EtherCAT类型的数据包的方式(5G LAN的转发方式)相结合的方式,完成EtherCAT类型的数据包的按序转发。例如,若虚拟网群组中包含终端设备A(序号标识为数字1)、终端设备B(序号标识为数字2)和终端设备C(序号标识为数字3)(图中未示出),终端设备B不能与终端设备C建立D2D连接,则终端设备B通过D2D的方式从终端设备A接收到EtherCAT类型的数据包后,终端设备B将该EtherCAT类型的数据包中的源地址和目的地址进行修改,即,将目的地址修改为终端设备C的地址,将源地址修改为终端设备B的地址,并向UPF发送该EtherCAT类型的数据包,UPF使用内部接口向终端设备C发送该数据包。The second optional implementation manner, when the terminal devices in the virtual network group cannot completely use the D2D method to complete the sequential forwarding of the EtherCAT type data packets, this step can use the D2D method and UPF to forward the EtherCAT type data packets. The way of combining the method (the forwarding method of 5G LAN), completes the sequential forwarding of EtherCAT type data packets. For example, if the virtual network group includes terminal device A (the serial number is identified as number 1), terminal device B (the serial number is identified as number 2), and terminal device C (the serial number is identified as number 3) (not shown in the figure), the terminal Device B cannot establish a D2D connection with terminal device C, so after terminal device B receives the EtherCAT type data packet from terminal device A through D2D, terminal device B compares the source address and destination address in the EtherCAT type data packet. Modify, that is, modify the destination address to the address of terminal device C, modify the source address to the address of terminal device B, and send the EtherCAT type data packet to the UPF, and the UPF uses the internal interface to send the data packet to terminal device C.
第三种可选的实施方式,当虚拟网群组中的终端设备不能完全使用D2D的方式完成EtherCAT类型的数据包的按序转发,该步骤可以使用D2D的方式与UPF转发EtherCAT类型的数据包的方式(图5至图7所示实施例)相结合的方式,完成EtherCAT类型的数据包的按序转发。例如,若虚拟网群组中包含终端设备A(序号标识为数字1)、终端设备B(序号标识为数字2)和终端设备C(序号标识为数字3)(图中未示出),终端设备B不能与终端设备C建立D2D连接,则终端设备B通过D2D的方式从终端设备A接收到EtherCAT类型的数据包后,终端设备B向UPF发送该EtherCAT类型的数据包,UPF根据转发规则,将该数据包中的目的地址修改为终端设备C的地址,并向终端设备C发送该数据包。The third optional implementation manner, when the terminal devices in the virtual network group cannot completely use the D2D method to complete the sequential forwarding of the EtherCAT type data packets, this step can use the D2D method and UPF to forward the EtherCAT type data packets. (the embodiments shown in FIG. 5 to FIG. 7 ) are combined to complete the sequential forwarding of EtherCAT type data packets. For example, if the virtual network group includes terminal device A (the serial number is identified as number 1), terminal device B (the serial number is identified as number 2), and terminal device C (the serial number is identified as number 3) (not shown in the figure), the terminal Device B cannot establish a D2D connection with terminal device C. After terminal device B receives the EtherCAT type data packet from terminal device A through D2D, terminal device B sends the EtherCAT type data packet to UPF. According to the forwarding rules, UPF, The destination address in the data packet is modified to the address of the terminal device C, and the data packet is sent to the terminal device C.
步骤809,终端设备B识别EtherCAT类型的数据包并向辅站设备转发。Step 809, the terminal device B identifies the EtherCAT type data packet and forwards it to the auxiliary station device.
该步骤可参考步骤807的描述。This step may refer to the description of step 807 .
至此虚拟网群组中所有的终端设备均完成EtherCAT类型的数据包的转发,即EtherCAT的转发逻辑中顺序排在最后的一个终端设备,在收到EtherCAT类型的数据包后,向通过有线连接的辅站设备,按照有线连接的顺序发送该数据包,并从有线连接的顺序中最后的辅站设备接收该EtherCAT类型的数据包。So far, all terminal devices in the virtual network group have completed the forwarding of EtherCAT type data packets, that is, the last terminal device in the EtherCAT forwarding logic sequence, after receiving the EtherCAT type data packets, to the wired connection. The auxiliary station device sends the data packet in the sequence of wired connection, and receives the EtherCAT type data packet from the last auxiliary station device in the sequence of wired connection.
步骤810,终端设备B向UPF发送EtherCAT类型的数据包。Step 810, the terminal device B sends the EtherCAT type data packet to the UPF.
例如,EtherCAT的转发逻辑中顺序排在最后的一个终端设备为终端设备B,当终端设备B从终端设备A接收该EtherCAT类型的数据包,根据表3所示的策略信息,判断向主站设备发送该EtherCAT类型的数据包,则终端设备B向UPF发送该EtherCAT类型的数据包。可选的,终端设备B修改该EtherCAT类型的数据包的目的地址为主站设备的地址,源地址修改为终端设备B的地址,终端设备B向UPF发送该EtherCAT类型的数据包。For example, the last terminal device in the forwarding logic of EtherCAT is terminal device B. When terminal device B receives the EtherCAT type data packet from terminal device A, according to the policy information shown in Table 3, it is determined to send the data to the master device. After sending the EtherCAT type data packet, the terminal device B sends the EtherCAT type data packet to the UPF. Optionally, terminal device B modifies the destination address of the EtherCAT type data packet to the address of the master station device, and the source address is modified to the address of terminal device B, and terminal device B sends the EtherCAT type data packet to the UPF.
步骤811,UPF判断并更改EtherCAT类型的数据包的目的地址和源地址。Step 811, the UPF determines and changes the destination address and source address of the EtherCAT type data packet.
例如,UPF根据步骤801中获取的终端设备的信息或虚拟网群组的信息,判断应向主站设备发送步骤810中接收到的EtherCAT类型的数据包。若步骤810中,终端设备没有将EtherCAT类型的数据包的目的地址修改为主站设备的地址,UPF更改EtherCAT类型的数据包的目的地址为主站设备的地址,更改EtherCAT类型的数据包的源地址为步骤810中向UPF发送该EtherCAT类型的数据包的终端设备的地址。For example, according to the information of the terminal device or the information of the virtual network group obtained in step 801, the UPF determines that the EtherCAT type data packet received in step 810 should be sent to the master station device. If in step 810, the terminal device does not change the destination address of the EtherCAT type data packet to the address of the master station device, the UPF changes the destination address of the EtherCAT type data packet to the address of the master station device, and changes the source of the EtherCAT type data packet. The address is the address of the terminal device that sends the EtherCAT type data packet to the UPF in step 810 .
步骤812,UPF向主站设备发送EtherCAT类型的数据包,至此,一次完整的EtherCAT类型的数据包转发流程完成。In step 812, the UPF sends the EtherCAT type data packet to the master station device. So far, a complete EtherCAT type data packet forwarding process is completed.
应特别说明的是,该方案也适用于不为终端设备创建虚拟网群组的方案,也就是说,该实施例中可以不进行虚拟网群组的创建。AF可以使用图5所示实施例中直接从主站设备获取终端设备的信息的方法,AF也可以使用图6所示实施例中通过UPF与主站设备之间通信,从UPF中获取终端设备的信息的方法,AF也可以使用图7所示实施例中从辅站设备中获取内置的终端设备的信息的方法获取到终端设备的信息。AF根据终端设备的信息生成策略信息,并向终端设备发送,终端设备之间可以按照D2D的方式完成数据包的转发,也可以按照步骤808中第一种或第三种可选的实施方式的方法完成数据包的转发。It should be particularly noted that this solution is also applicable to a solution in which a virtual network group is not created for a terminal device, that is, the creation of a virtual network group may not be performed in this embodiment. The AF can use the method of directly acquiring the information of the terminal device from the main station device in the embodiment shown in FIG. 5, or the AF can also use the communication between the UPF and the main station device in the embodiment shown in FIG. 6 to acquire the terminal device from the UPF. The AF can also obtain the information of the terminal device by using the method of obtaining the information of the built-in terminal device from the auxiliary station device in the embodiment shown in FIG. 7 . The AF generates policy information according to the information of the terminal device, and sends it to the terminal device. The data packets can be forwarded between the terminal devices in a D2D manner, or can be forwarded according to the first or third optional implementation manner in step 808. The method completes the forwarding of the data packet.
通过该实施例中的方法,EtherCAT类型的数据包的转发减少了终端设备与核心网设备(例如,UPF)之间的转发,降低了通信系统的延迟,使得5GS与EtherCAT融合的工业通信系统可以支持更小延迟的通信。Through the method in this embodiment, the forwarding of EtherCAT type data packets reduces the forwarding between the terminal device and the core network device (for example, UPF), and reduces the delay of the communication system, so that the industrial communication system integrated with 5GS and EtherCAT can Supports communication with lower latency.
图9为根据本申请实施例提供的又一种数据包转发的流程交互示意图。该实施例将结合图5至图7所示的实施例进行描述,该实施例包括以下步骤:FIG. 9 is a schematic diagram of another flow interaction of data packet forwarding according to an embodiment of the present application. This embodiment will be described in conjunction with the embodiment shown in FIG. 5 to FIG. 7 , and the embodiment includes the following steps:
步骤901,用户面功能装置从会话管理功能装置接收转发规则。该转发规则可以参考5所示实施例中步骤504中的关于转发规则的描述,此处不再赘述。Step 901, the user plane function device receives the forwarding rule from the session management function device. For the forwarding rule, reference may be made to the description about the forwarding rule in step 504 in the embodiment shown in 5, which is not repeated here.
一种可选的实施方式,用户面功能装置可以是UPF,会话管理功能装置可以是SMF。In an optional implementation manner, the user plane function device may be UPF, and the session management function device may be SMF.
一种可选的实施方式,用户面功能装置获取第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的地址和第二终端设备的地址,并向会话管理功能装置发送第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的地址和第二终端设备的地址,该转发规则由会话管理功能装置根据第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的地址和第二终端设备的地址生成。例如,第一终端设备为终端设备A,第二终端设备为终端设备B,第一终端设备的序号为数字1,第二终端设备的序号为数字2,第一终端设备为EtherCAT转发顺序中接收主站设备发出的数据包的终端设备,第二终端设备为EtherCAT转发顺序中从第一终端设备接收数据包的终端设备。In an optional implementation manner, the user plane function device obtains the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device, and sends the information to the session management function device. The serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device, the forwarding rule is set by the session management function device according to the serial number information of the first terminal device, the second terminal device The serial number information of the device, the address of the first terminal device and the address of the second terminal device are generated. For example, the first terminal device is terminal device A, the second terminal device is terminal device B, the serial number of the first terminal device is number 1, the serial number of the second terminal device is number 2, and the first terminal device is EtherCAT forwarding sequence receiving The terminal device of the data packet sent by the master station device, and the second terminal device is the terminal device that receives the data packet from the first terminal device in the EtherCAT forwarding sequence.
一种可选的实施方式,转发规则包括第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的地址和第二终端设备的地址。In an optional implementation manner, the forwarding rule includes serial number information of the first terminal device, serial number information of the second terminal device, an address of the first terminal device, and an address of the second terminal device.
一种可选的实施方式,用户面功能装置从主站设备获取第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的地址和第二终端设备的地址。该实施方式可参考图6所示实施例的步骤602的描述。In an optional implementation manner, the user plane function device acquires the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device from the master station device. For this implementation, reference may be made to the description of step 602 in the embodiment shown in FIG. 6 .
一种可选的实施方式,用户面功能装置从第一终端设备获取第一终端设备的序号信息和第一终端设备的地址,从第二终端设备获取第二终端设备的序号信息和第二终端设备的地址。该实施方式可参考图7所示实施例的步骤703的描述。In an optional implementation manner, the user plane function device obtains the serial number information of the first terminal device and the address of the first terminal device from the first terminal device, and obtains the serial number information of the second terminal device and the second terminal device from the second terminal device. The address of the device. For this implementation, reference may be made to the description of step 703 in the embodiment shown in FIG. 7 .
该步骤可参考图5所示实施例的步骤505、图6所示实施例的步骤606或图7所示实施例的步骤707的描述。For this step, reference may be made to the description of step 505 in the embodiment shown in FIG. 5 , step 606 in the embodiment shown in FIG. 6 , or step 707 in the embodiment shown in FIG. 7 .
步骤902,用户面功能装置从主站设备接收以太网类型的第一数据包。Step 902, the user plane function device receives the first data packet of the Ethernet type from the master station device.
一种可选的实施方式,以太网类型的第一数据包为EtherCAT类型的数据包。In an optional implementation manner, the first data packet of the Ethernet type is a data packet of the EtherCAT type.
步骤903,用户面功能装置向第一终端设备发送第一数据包。Step 903, the user plane function device sends a first data packet to the first terminal device.
步骤902和步骤903可参考图5所示实施例的步骤509的描述,或者,步骤902 和步骤903可参考图6所示实施例的步骤609的描述,或者,步骤902和步骤903可参考图7所示实施例的步骤711的描述。Steps 902 and 903 may refer to the description of step 509 in the embodiment shown in FIG. 5 , or, steps 902 and 903 may refer to the description of step 609 of the embodiment shown in FIG. 6 , or, steps 902 and 903 may refer to FIG. 6 . 7 is a description of step 711 of the embodiment shown.
步骤904,用户面功能装置从第一终端设备接收与第一数据包关联的第二数据包。Step 904, the user plane function apparatus receives a second data packet associated with the first data packet from the first terminal device.
一种可选的实施方式,该第二数据包可以与第一数据包相同,也可以与第一数据包不同。In an optional implementation manner, the second data packet may be the same as the first data packet, or may be different from the first data packet.
一种可选的实施方式,第一终端设备向连接的辅站设备发送第一数据包,辅站设备可以对第一数据包中的信息进行修改,或者第一终端设备将第一数据包的目的地址修改为第二终端设备的地址,或者第一终端设备将辅站设备已完成对数据包中信息修改的数据包的目的地址修改为第二终端设备的地址,此时第一数据包则为第二数据包。该实施方式可参考图5所示实施例的步骤510、图6所示实施例的步骤610或图7所示实施例的步骤712的描述。In an optional implementation manner, the first terminal device sends the first data packet to the connected auxiliary station device, and the auxiliary station device can modify the information in the first data packet, or the first terminal device can modify the information in the first data packet. The destination address is modified to the address of the second terminal device, or the first terminal device modifies the destination address of the data packet whose information in the data packet has been modified by the auxiliary station device to the address of the second terminal device. At this time, the first data packet is for the second data packet. For this implementation manner, reference may be made to the description of step 510 in the embodiment shown in FIG. 5 , step 610 in the embodiment shown in FIG. 6 , or step 712 in the embodiment shown in FIG. 7 .
该步骤可参考图5所示实施例的步骤511、图6所示实施例的步骤611或图7所示实施例的步骤713的描述。For this step, reference may be made to the description of step 511 in the embodiment shown in FIG. 5 , step 611 in the embodiment shown in FIG. 6 , or step 713 in the embodiment shown in FIG. 7 .
步骤905,用户面功能装置根据转发规则将第二数据包的目的地址修改为第二终端设备的地址,得到第三数据包。Step 905, the user plane function device modifies the destination address of the second data packet to the address of the second terminal device according to the forwarding rule to obtain a third data packet.
也就是说,第三数据包中的目的地址为第二终端设备的地址。That is to say, the destination address in the third data packet is the address of the second terminal device.
一种可选的实施方式,用户面功能装置收到数据包后,根据数据包检测规则检测出该数据包,根据转发规则和当前数据包中的地址信息判断出当前数据包是从终端设备A接收的数据包,后续向终端设备B发送该EtherCAT类型的数据包,那么用户面功能装置修改该EtherCAT类型的数据包中的源地址为主站设备的地址,目的地址修改为终端设备B的地址,并向终端设备B发送。该步骤可参考图5所示实施例的步骤512、图6所示实施例的步骤612或图7所示实施例的步骤714的描述。An optional implementation manner, after receiving the data packet, the user plane functional device detects the data packet according to the data packet detection rule, and determines that the current data packet is from the terminal device A according to the forwarding rule and the address information in the current data packet. After receiving the data packet, the EtherCAT type data packet is subsequently sent to the terminal device B, then the user plane function device modifies the source address in the EtherCAT type data packet to the address of the main station device, and the destination address is modified to the address of the terminal device B. , and send it to terminal device B. For this step, reference may be made to the description of step 512 in the embodiment shown in FIG. 5 , step 612 in the embodiment shown in FIG. 6 , or step 714 in the embodiment shown in FIG. 7 .
步骤906,用户面功能装置向第二终端设备发送第三数据包。Step 906, the user plane function device sends a third data packet to the second terminal device.
一种可选的实施方式,该方法还包括:用户面功能装置从第三终端设备接收第四数据包,第三终端设备可以是第二终端设备,或者是除了第一终端设备和第二终端设备的其他终端设备。In an optional implementation manner, the method further includes: the user plane function device receives a fourth data packet from a third terminal device, where the third terminal device may be the second terminal device, or a third terminal device other than the first terminal device and the second terminal device. other terminal equipment of the device.
当第三终端设备是第二终端设备时,用户面功能装置从第二终端设备接收与第三数据包关联的第四数据包,例如,第二终端设备向通过有线连接的辅站设备发送第三数据包,辅站设备可以对第三数据包中的信息进行修改,或者第二终端设备将第三数据包的目的地址修改为第三终端设备的地址,或者第二终端设备将辅站设备已完成对数据包中信息修改的数据包的目的地址修改为第三终端设备的地址,此时第四数据包与第三数据包不同;若辅站设备没有对第三数据包中的信息进行修改,且第二终端设备也没有修改第三数据包中的目的地址,那么第四数据包与第三数据包相同。When the third terminal device is the second terminal device, the user plane function device receives the fourth data packet associated with the third data packet from the second terminal device, for example, the second terminal device sends the third data packet to the auxiliary station device connected by wire Three data packets, the auxiliary station equipment can modify the information in the third data packet, or the second terminal equipment can modify the destination address of the third data packet to the address of the third terminal equipment, or the second terminal equipment can modify the information in the auxiliary station equipment The destination address of the data packet whose information in the data packet has been modified is modified to the address of the third terminal device, and the fourth data packet is different from the third data packet; modification, and the second terminal device does not modify the destination address in the third data packet, then the fourth data packet is the same as the third data packet.
一种可能的实施方式,EtherCAT类型的数据包的转发顺序中只包括第一终端设备和第二终端设备,则用户面功能装置向主站设备发送与第四数据包关联的第五数据包,其中第五数据包的目的地址为主站设备的地址。A possible implementation manner, the forwarding sequence of the EtherCAT type data packet only includes the first terminal device and the second terminal device, then the user plane function device sends the fifth data packet associated with the fourth data packet to the master station device, The destination address of the fifth data packet is the address of the main station device.
或者,当第三终端设备是除了第一终端设备和第二终端设备的其他终端设备时,用户面功能装置从第二终端设备接收与第三数据包关联的第六数据包,第六数据包与第三数据包的关系可参考以上的描述,不再赘述,用户面功能装置将第六数据包中的 目的地址修改为第三终端设备的地址,得到第七数据包,向第三终端设备发送第七数据包。Or, when the third terminal device is another terminal device other than the first terminal device and the second terminal device, the user plane function device receives a sixth data packet associated with the third data packet from the second terminal device, the sixth data packet The relationship with the third data packet can be referred to the above description, and will not be repeated. The user plane function device modifies the destination address in the sixth data packet to the address of the third terminal device, obtains the seventh data packet, and sends it to the third terminal device. The seventh packet is sent.
一种可能的实施方式,EtherCAT类型的数据包的转发顺序中只包括第一终端设备、第二终端设备和第三终端设备,则用户面功能装置向主站设备发送与第七数据包关联的第五数据包,其中第五数据包的目的地址为主站设备的地址。A possible implementation manner, the forwarding sequence of the EtherCAT type data packet only includes the first terminal device, the second terminal device and the third terminal device, then the user plane function device sends the data packet associated with the seventh data packet to the master station device. The fifth data packet, wherein the destination address of the fifth data packet is the address of the base station device.
通过此方法,用户面功能装置能够根据转发规则修改EtherCAT类型的数据包目的地址,并执行该数据包的转发,因此5GS与EtherCAT融合的工业通信系统能够实现按照EtherCAT的转发逻辑执行EtherCAT类型的数据包的按序转发。Through this method, the user plane functional device can modify the destination address of the EtherCAT type data packet according to the forwarding rules, and execute the forwarding of the data packet. Therefore, the industrial communication system integrated with 5GS and EtherCAT can realize the execution of EtherCAT type data according to the forwarding logic of EtherCAT. In-order forwarding of packets.
图10为根据本申请实施例提供的又一种数据包转发的流程交互示意图。该实施例将结合图5至图7所示的实施例进行描述,该实施例包括以下步骤:FIG. 10 is a schematic diagram of another flow interaction of data packet forwarding according to an embodiment of the present application. This embodiment will be described in conjunction with the embodiment shown in FIG. 5 to FIG. 7 , and the embodiment includes the following steps:
步骤1001,会话管理功能装置获取第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的地址和第二终端设备的地址。Step 1001, the session management function apparatus acquires the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device.
一种可能的实施方式,会话管理功能装置通过用户面功能装置从主站设备获取所述第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的地址和第二终端设备的地址。该实施方式可参考图6所示实施例的步骤601至步骤604的描述。A possible implementation manner, the session management function device obtains the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the second terminal device from the master station device through the user plane function device. the address of. For this implementation manner, reference may be made to the description of steps 601 to 604 in the embodiment shown in FIG. 6 .
一种可能的实施方式,会话管理功能装置通过用户面功能装置从第一终端设备获取第一终端设备的序号信息和第一终端设备的地址,从第二终端设备获取第二终端设备的序号信息和第二终端设备的地址。该实施方式可参考图7所示实施例的步骤701至步骤705的描述。A possible implementation manner, the session management function device obtains the serial number information of the first terminal device and the address of the first terminal device from the first terminal device through the user plane function device, and obtains the serial number information of the second terminal device from the second terminal device. and the address of the second terminal device. For this implementation manner, reference may be made to the description of steps 701 to 705 in the embodiment shown in FIG. 7 .
基于以上两种可能的实施方式,会话管理功能装置向统一数据管理装置发送第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的标识和第二终端设备的标识,第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的标识和第二终端设备的标识用于虚拟网群组的创建或更新,虚拟网群组包括第一终端设备和第二终端设备。该实施方式可参考图6所示实施例的步骤605或图7所示实施例的步骤706的描述。Based on the above two possible implementations, the session management function device sends the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device to the unified data management device. The serial number information of a terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device are used to create or update a virtual network group, and the virtual network group includes the first terminal device and the second terminal device. Two terminal equipment. For this implementation manner, reference may be made to the description of step 605 in the embodiment shown in FIG. 6 or step 706 in the embodiment shown in FIG. 7 .
一种可能的实施方式,会话管理功能装置从统一数据管理装置获取第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的地址和第二终端设备的地址。该实施方式可参考图5所示实施例的步骤503的描述。In a possible implementation manner, the session management function apparatus obtains the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device from the unified data management device. For this implementation, reference may be made to the description of step 503 in the embodiment shown in FIG. 5 .
步骤1002,会话管理功能装置根据第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的地址和第二终端设备的地址生成转发规则。转发规则用于第一数据包的目的地址的修改。Step 1002, the session management function device generates a forwarding rule according to the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device. The forwarding rule is used to modify the destination address of the first data packet.
一种可能的实施方式,转发规则包括第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的地址和第二终端设备的地址。In a possible implementation manner, the forwarding rule includes serial number information of the first terminal device, serial number information of the second terminal device, an address of the first terminal device, and an address of the second terminal device.
一种可能的实施方式,转发规则用于用户面功能装置修改第一数据包的目的地址,即,当该第一数据包为用户面功能装置从第一终端设备接收的,转发规则用于用户面功能装置将第一数据包的目的地址修改为第二终端设备的地址。A possible implementation manner, the forwarding rule is used by the user plane function device to modify the destination address of the first data packet, that is, when the first data packet is received by the user plane function device from the first terminal device, the forwarding rule is used by the user The plane function device modifies the destination address of the first data packet to the address of the second terminal device.
该步骤可参考图5所示实施例的步骤504、图6所示实施例的步骤605或图7所示实施例的步骤706的描述。For this step, reference may be made to the description of step 504 in the embodiment shown in FIG. 5 , step 605 in the embodiment shown in FIG. 6 , or step 706 in the embodiment shown in FIG. 7 .
步骤1003,会话管理功能装置向用户面功能装置发送转发规则。Step 1003, the session management function device sends a forwarding rule to the user plane function device.
该步骤可参考图5所示实施例的步骤505、图6所示实施例的步骤606或图7所示实施例的步骤707的描述。For this step, reference may be made to the description of step 505 in the embodiment shown in FIG. 5 , step 606 in the embodiment shown in FIG. 6 , or step 707 in the embodiment shown in FIG. 7 .
通过此方法,会话管理功能装置生成转发规则,最终用户面功能装置能够根据该转发规则修改EtherCAT类型的数据包目的地址,并执行该数据包的转发,因此5GS与EtherCAT融合的工业通信系统能够实现按照EtherCAT的转发逻辑执行EtherCAT类型的数据包的按序转发。Through this method, the session management function device generates a forwarding rule, and the end user plane function device can modify the destination address of the EtherCAT type data packet according to the forwarding rule, and execute the forwarding of the data packet. Therefore, the industrial communication system integrated with 5GS and EtherCAT can realize In-order forwarding of EtherCAT-type packets is performed according to the forwarding logic of EtherCAT.
图11为根据本申请实施例提供的一种通信装置的示意图。FIG. 11 is a schematic diagram of a communication apparatus provided according to an embodiment of the present application.
通信装置包括处理模块1101、接收模块1102和发送模块1103。处理模块1101用于实现通信装置对数据的处理。接收模块1102用于接收通信装置与其他单元或者网元的内容,发送模块1103用于接收通信装置与其他单元或者网元的内容。应理解,本申请实施例中的处理模块1101可以由处理器或处理器相关电路组件(或者,称为处理电路)实现,接收模块1102可以由接收器或接收器相关电路组件实现。发送模块1103可以由发送器或发送器相关电路组件实现。The communication device includes a processing module 1101 , a receiving module 1102 and a sending module 1103 . The processing module 1101 is used to implement data processing by the communication device. The receiving module 1102 is used to receive the content of the communication device and other units or network elements, and the sending module 1103 is used to receive the content of the communication device and other units or network elements. It should be understood that the processing module 1101 in this embodiment of the present application may be implemented by a processor or a processor-related circuit component (or referred to as a processing circuit), and the receiving module 1102 may be implemented by a receiver or a receiver-related circuit component. The sending module 1103 may be implemented by a transmitter or a transmitter-related circuit component.
示例性地,通信装置可以是通信装置设备,也可以是应用于通信装置设备中的芯片或者其他具有上述通信装置设备功能的组合器件、部件等。Exemplarily, the communication device may be a communication device device, or a chip applied in the communication device device or other combined devices, components, etc. having the functions of the above-mentioned communication device device.
示例性的,通信装置可以为图5至图10中任一的SMF或会话管理功能装置,也可以是图5至图9中任一的UPF或用户面功能装置,也可以是图5至图9中任一的终端设备(图5至图8中的终端设备A或终端设备B,图9中的第一终端设备或第二终端设备),也可以是图5、图7和图8中任一的AF,也可以是图5、图7和图8中任一的UDM。Exemplarily, the communication device may be the SMF or the session management function device in any of FIG. 5 to FIG. 10 , or the UPF or the user plane function device in any of FIGS. 5 to 9 , or the device of FIG. 5 to FIG. 9 (terminal device A or terminal device B in FIG. 5 to FIG. 8 , the first terminal device or the second terminal device in FIG. 9 ), or the terminal device in FIG. 5 , FIG. 7 and FIG. 8 Any of the AFs may be any of the UDMs of FIGS. 5 , 7 and 8 .
当该通信装置为UPF或用户面功能装置时,接收模块1102用于从会话管理功能装置接收转发规则(例如图5中的步骤505,图6中的步骤606,图7中的步骤707,图9中的步骤901);接收模块1102用于从主站设备接收以太网类型的第一数据包(例如图5中的步骤509,图6中的步骤609,图7中的步骤711,图9中的步骤902);发送模块1103用于向第一终端设备发送第一数据包(例如图5中的步骤509,图6中的步骤609,图7中的步骤711,图9中的步骤903);接收模块1102用于从第一终端设备接收与第一数据包关联的第二数据包(例如图5中的步骤511,图6中的步骤611,图7中的步骤713,图9中的步骤904);处理模块1101用于根据转发规则将第二数据包的目的地址修改为第二终端设备的地址(例如图5中的步骤512,图6中的步骤612,图7中的步骤714,图9中的步骤905),得到第三数据包;发送模块1103用于根据转发规则向第二终端设备发送第三数据包(例如图5中的步骤513,图6中的步骤613,图7中的步骤715,图9中的步骤906)。When the communication device is a UPF or a user plane functional device, the receiving module 1102 is configured to receive forwarding rules from the session management functional device (eg, step 505 in FIG. 5 , step 606 in FIG. 6 , step 707 in FIG. 7 , and step 707 in FIG. Step 901 in 9); the receiving module 1102 is used to receive the first data packet of the Ethernet type from the master station device (for example, step 509 in FIG. 5, step 609 in FIG. 6, step 711 in FIG. 7, and FIG. 9 The sending module 1103 is used to send the first data packet to the first terminal device (for example, step 509 in FIG. 5 , step 609 in FIG. 6 , step 711 in FIG. 7 , step 903 in FIG. 9 ) ); the receiving module 1102 is configured to receive the second data packet associated with the first data packet from the first terminal device (eg, step 511 in FIG. 5 , step 611 in FIG. 6 , step 713 in FIG. 7 , and step 713 in FIG. 9 ). The processing module 1101 is used to modify the destination address of the second data packet to the address of the second terminal device according to the forwarding rule (for example, step 512 in FIG. 5 , step 612 in FIG. 6 , step in FIG. 7 ) 714, step 905 in Fig. 9) to obtain the third data packet; the sending module 1103 is used to send the third data packet to the second terminal device according to the forwarding rule (for example, step 513 in Fig. 5, step 613 in Fig. 6, Step 715 in Figure 7, Step 906 in Figure 9).
此外,上述各个模块还可以用于支持本文所描述的技术的其它过程。有益效果可参考前面的描述,此处不再赘述。In addition, the various modules described above may also be used to support other processes of the techniques described herein. For the beneficial effects, reference may be made to the foregoing description, which will not be repeated here.
当该通信装置为SMF或会话管理功能装置时,接收模块1102用于获取第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的地址和第二终端设备的地址(例如图5中的步骤503,图6中的步骤604,图7中的步骤705,图10中的步骤1001);处理模块1101用于根据第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的地址和第二终端设备的地址生成转发规则(例如图5中的步骤 504,图6中的步骤605,图7中的步骤706,图10中的步骤1002),转发规则用于第一数据包的目的地址的修改;发送模块1103用于向用户面功能装置发送转发规则(例如图5中的步骤505,图6中的步骤606,图7中的步骤707,图10中的步骤1003)。When the communication device is an SMF or a session management function device, the receiving module 1102 is configured to obtain the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device (for example, Step 503 in FIG. 5 , Step 604 in FIG. 6 , Step 705 in FIG. 7 , Step 1001 in FIG. 10 ); the processing module 1101 is configured to use the serial number information of the first terminal device and the serial number information of the second terminal device according to the , the address of the first terminal device and the address of the second terminal device generate forwarding rules (for example, step 504 in FIG. 5, step 605 in FIG. 6, step 706 in FIG. 7, step 1002 in FIG. 10), forwarding rules For the modification of the destination address of the first data packet; the sending module 1103 is used to send the forwarding rules to the user plane functional device (for example, step 505 in FIG. 5 , step 606 in FIG. 6 , step 707 in FIG. 7 , and FIG. 10 in step 1003).
此外,上述各个模块还可以用于支持本文所描述的技术的其它过程。有益效果可参考前面的描述,此处不再赘述。In addition, the various modules described above may also be used to support other processes of the techniques described herein. For the beneficial effects, reference may be made to the foregoing description, which will not be repeated here.
当该通信装置为终端设备时,接收模块1102用于接收策略信息(例如图8中的步骤804);接收模块1102用于接收以太网类型的第一数据包(例如图8中的步骤806);处理模块1101用于根据策略信息修改第一数据包中的目的地址为第二终端设备的地址(例如图8中的步骤809),得到第二数据包;发送模块1103用于向第二终端设备发送第二数据包(例如图8中的步骤809)。When the communication device is a terminal device, the receiving module 1102 is configured to receive policy information (eg, step 804 in FIG. 8 ); the receiving module 1102 is configured to receive the first data packet of the Ethernet type (eg, step 806 in FIG. 8 ) ; The processing module 1101 is used to modify the destination address in the first data packet according to the policy information to be the address of the second terminal device (for example, step 809 in FIG. 8 ) to obtain the second data packet; The sending module 1103 is used to send the second terminal to the The device sends the second data packet (eg, step 809 in Figure 8).
此外,上述各个模块还可以用于支持本文所描述的技术的其它过程。有益效果可参考前面的描述,此处不再赘述。In addition, the various modules described above may also be used to support other processes of the techniques described herein. For the beneficial effects, reference may be made to the foregoing description, which will not be repeated here.
当该通信装置为AF时,接收模块1102用于获取第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的标识和第二终端设备的标识(例如图5中的步骤501);处理模块1101用于根据第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的标识和第二终端设备的标识,通过调用网络开放功能装置的接口,调用统一数据管理装置实现虚拟网群组的创建或更新(例如图5中的步骤502)。When the communication device is an AF, the receiving module 1102 is configured to obtain the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device (for example, the steps in FIG. 5 ). 501); the processing module 1101 is configured to call the unified interface by calling the interface of the network open function device according to the serial number information of the first terminal equipment, the serial number information of the second terminal equipment, the identification of the first terminal equipment and the identification of the second terminal equipment. The data management device implements the creation or update of the virtual network group (eg, step 502 in FIG. 5 ).
或者,接收模块1102用于获取第一终端设备的序号信息和第二终端设备的序号信息(例如图7中的步骤710);发送模块1103用于向主站设备发送第一终端设备的序号信息和第二终端设备的序号信息,第一终端设备的序号信息和第二终端设备的序号信息用于序号信息的维护(例如图7中的步骤710)。Alternatively, the receiving module 1102 is used to obtain the serial number information of the first terminal device and the serial number information of the second terminal device (eg step 710 in FIG. 7 ); the sending module 1103 is used to send the serial number information of the first terminal device to the master station device and the serial number information of the second terminal device, the serial number information of the first terminal device and the serial number information of the second terminal device are used for the maintenance of the serial number information (for example, step 710 in FIG. 7 ).
此外,上述各个模块还可以用于支持本文所描述的技术的其它过程。有益效果可参考前面的描述,此处不再赘述。In addition, the various modules described above may also be used to support other processes of the techniques described herein. For the beneficial effects, reference may be made to the foregoing description, which will not be repeated here.
当该通信装置为UDM时,接收模块1102用于获取第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的标识和第二终端设备的标识(例如图5中的步骤502,图7中的步骤706,图8中的步骤801);处理模块1101用于根据第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的标识和第二终端设备的标识创建虚拟网群组(例如图5中的步骤502,图7中的步骤706,图8中的步骤801);或者,处理模块1101用于根据第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的标识和第二终端设备的标识更新虚拟网群组的信息(例如图5中的步骤502,图7中的步骤706,图8中的步骤801)。When the communication device is UDM, the receiving module 1102 is configured to obtain the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device (for example, the steps in FIG. 5 ). 502, step 706 in Fig. 7, step 801 in Fig. 8); the processing module 1101 is used for according to the serial number information of the first terminal equipment, the serial number information of the second terminal equipment, the identification of the first terminal equipment and the second terminal equipment Create a virtual network group (for example, step 502 in FIG. 5, step 706 in FIG. 7, step 801 in FIG. 8); or, the processing module 1101 is used for the serial number information of the first terminal device, the second terminal The serial number information of the device, the identifier of the first terminal device and the identifier of the second terminal device update the information of the virtual network group (eg step 502 in FIG. 5 , step 706 in FIG. 7 , step 801 in FIG. 8 ).
此外,上述各个模块还可以用于支持本文所描述的技术的其它过程。有益效果可参考前面的描述,此处不再赘述。In addition, the various modules described above may also be used to support other processes of the techniques described herein. For the beneficial effects, reference may be made to the foregoing description, which will not be repeated here.
图12为根据本申请实施例提供的另一种通信装置的示意图,该通信装置包括:处理器1201、通信接口1202、存储器1203。其中,处理器1201、通信接口1202以及存储器1203可以通过总线1204相互连接;总线1204可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended  industry standard architecture,EISA)总线等。上述总线1204可以分为地址总线、数据总线和控制总线等。为便于表示,图12中仅用一条线表示,但并不表示仅有一根总线或一种类型的总线。处理器1201可以是中央处理器(central processing unit,CPU),网络处理器(network processor,NP)或者CPU和NP的组合。处理器还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(Generic Array Logic,GAL)或其任意组合。存储器1203可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。FIG. 12 is a schematic diagram of another communication apparatus provided according to an embodiment of the present application. The communication apparatus includes: a processor 1201 , a communication interface 1202 , and a memory 1203 . Wherein, the processor 1201, the communication interface 1202 and the memory 1203 can be connected to each other through a bus 1204; the bus 1204 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus etc. The above-mentioned bus 1204 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one line is shown in FIG. 12, but it does not mean that there is only one bus or one type of bus. The processor 1201 may be a central processing unit (CPU), a network processor (NP), or a combination of CPU and NP. The processor may further include a hardware chip. The above-mentioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above-mentioned PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general-purpose array logic (Generic Array Logic, GAL) or any combination thereof. Memory 1203 may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically programmable Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory. Volatile memory may be random access memory (RAM), which acts as an external cache.
示例性的,通信装置可以为图5至图10中任一的SMF或会话管理功能装置,也可以是图5至图9中任一的UPF或用户面功能装置,也可以是图5至图9中任一的终端设备(图5至图8中的终端设备A或终端设备B,图9中的第一终端设备或第二终端设备),也可以是图5、图7和图8中任一的AF,也可以是图5、图7和图8中任一的UDM。Exemplarily, the communication device may be the SMF or the session management function device in any of FIG. 5 to FIG. 10 , or the UPF or the user plane function device in any of FIGS. 5 to 9 , or the device of FIG. 5 to FIG. 9 (terminal device A or terminal device B in FIG. 5 to FIG. 8 , the first terminal device or the second terminal device in FIG. 9 ), or the terminal device in FIG. 5 , FIG. 7 and FIG. 8 Any of the AFs may be any of the UDMs of FIGS. 5 , 7 and 8 .
其中,处理器1201用于实现通信装置的数据处理操作,通信接口1202用于实现通信装置的接收操作和发送操作。The processor 1201 is used for implementing data processing operations of the communication device, and the communication interface 1202 is used for implementing receiving operations and sending operations of the communication device.
当该通信装置为UPF或用户面功能装置时,通信接口1202用于从会话管理功能装置接收转发规则(例如图5中的步骤505,图6中的步骤606,图7中的步骤707,图9中的步骤901);通信接口1202用于从主站设备接收以太网类型的第一数据包(例如图5中的步骤509,图6中的步骤609,图7中的步骤711,图9中的步骤902);通信接口1202用于向第一终端设备发送第一数据包(例如图5中的步骤509,图6中的步骤609,图7中的步骤711,图9中的步骤903);通信接口1202用于从第一终端设备接收与第一数据包关联的第二数据包(例如图5中的步骤511,图6中的步骤611,图7中的步骤713,图9中的步骤904);处理器1201用于根据转发规则将第二数据包的目的地址修改为第二终端设备的地址(例如图5中的步骤512,图6中的步骤612,图7中的步骤714,图9中的步骤905),得到第三数据包;通信接口1202用于根据转发规则向第二终端设备发送第三数据包(例如图5中的步骤513,图6中的步骤613,图7中的步骤715,图9中的步骤906)。When the communication device is a UPF or a user plane function device, the communication interface 1202 is configured to receive forwarding rules from the session management function device (eg, step 505 in FIG. 5 , step 606 in FIG. 6 , step 707 in FIG. Step 901 in 9); the communication interface 1202 is used to receive the first data packet of the Ethernet type from the master station device (for example, step 509 in FIG. 5, step 609 in FIG. 6, step 711 in FIG. 7, and FIG. 9 The communication interface 1202 is used to send the first data packet to the first terminal device (for example, step 509 in FIG. 5, step 609 in FIG. 6, step 711 in FIG. 7, and step 903 in FIG. 9). ); the communication interface 1202 is used to receive a second data packet associated with the first data packet from the first terminal device (eg, step 511 in FIG. 5 , step 611 in FIG. 6 , step 713 in FIG. 7 , and in FIG. 9 ). step 904); the processor 1201 is configured to modify the destination address of the second data packet to the address of the second terminal device according to the forwarding rule (for example, step 512 in FIG. 5 , step 612 in FIG. 6 , step 7 in FIG. 7 ) 714, step 905 in Fig. 9) to obtain the third data packet; the communication interface 1202 is used to send the third data packet to the second terminal device according to the forwarding rule (for example, step 513 in Fig. 5, step 613 in Fig. 6, Step 715 in Figure 7, Step 906 in Figure 9).
此外,上述各个模块还可以用于支持本文所描述的技术的其它过程。有益效果可参考前面的描述,此处不再赘述。In addition, the various modules described above may also be used to support other processes of the techniques described herein. For the beneficial effects, reference may be made to the foregoing description, which will not be repeated here.
当该通信装置为SMF或会话管理功能装置时,通信接口1202用于获取第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的地址和第二终端设备的地址(例如图5中的步骤503,图6中的步骤604,图7中的步骤705,图10中的步骤1001);处理器1201用于根据第一终端设备的序号信息、第二终端设备的序号信 息、第一终端设备的地址和第二终端设备的地址生成转发规则(例如图5中的步骤504,图6中的步骤605,图7中的步骤706,图10中的步骤1002),转发规则用于第一数据包的目的地址的修改;通信接口1202用于向用户面功能装置发送转发规则(例如图5中的步骤505,图6中的步骤606,图7中的步骤707,图10中的步骤1003)。When the communication device is an SMF or a session management function device, the communication interface 1202 is used to obtain the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device (for example, Step 503 in FIG. 5 , Step 604 in FIG. 6 , Step 705 in FIG. 7 , Step 1001 in FIG. 10 ); the processor 1201 is configured to use the serial number information of the first terminal device and the serial number information of the second terminal device according to the , the address of the first terminal device and the address of the second terminal device generate forwarding rules (for example, step 504 in FIG. 5, step 605 in FIG. 6, step 706 in FIG. 7, step 1002 in FIG. 10), forwarding rules For the modification of the destination address of the first data packet; the communication interface 1202 is used to send the forwarding rules to the user plane functional device (eg step 505 in FIG. 5, step 606 in FIG. 6, step 707 in FIG. 7, FIG. 10 in step 1003).
此外,上述各个模块还可以用于支持本文所描述的技术的其它过程。有益效果可参考前面的描述,此处不再赘述。In addition, the various modules described above may also be used to support other processes of the techniques described herein. For the beneficial effects, reference may be made to the foregoing description, which will not be repeated here.
当该通信装置为终端设备时,通信接口1202用于接收策略信息(例如图8中的步骤804);通信接口1202用于接收以太网类型的第一数据包(例如图8中的步骤806);处理器1201用于根据策略信息修改第一数据包中的目的地址为第二终端设备的地址(例如图8中的步骤809),得到第二数据包;通信接口1202用于向第二终端设备发送第二数据包(例如图8中的步骤809)。When the communication device is a terminal device, the communication interface 1202 is used to receive policy information (eg, step 804 in FIG. 8 ); the communication interface 1202 is used to receive the first data packet of the Ethernet type (eg, step 806 in FIG. 8 ) ; The processor 1201 is used to modify the destination address in the first data packet according to the policy information to be the address of the second terminal device (for example, step 809 in FIG. 8 ) to obtain the second data packet; The communication interface 1202 is used to send the second terminal The device sends the second data packet (eg, step 809 in Figure 8).
此外,上述各个模块还可以用于支持本文所描述的技术的其它过程。有益效果可参考前面的描述,此处不再赘述。In addition, the various modules described above may also be used to support other processes of the techniques described herein. For the beneficial effects, reference may be made to the foregoing description, which will not be repeated here.
当该通信装置为AF时,通信接口1202用于获取第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的标识和第二终端设备的标识(例如图5中的步骤501);处理器1201用于根据第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的标识和第二终端设备的标识,通过调用网络开放功能装置的接口,调用统一数据管理装置实现虚拟网群组的创建或更新(例如图5中的步骤502)。When the communication device is AF, the communication interface 1202 is used to obtain the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device (for example, the steps in FIG. 5 ). 501); the processor 1201 is configured to call the unified interface by calling the interface of the network open function device according to the serial number information of the first terminal equipment, the serial number information of the second terminal equipment, the identification of the first terminal equipment and the identification of the second terminal equipment. The data management device implements the creation or update of the virtual network group (eg, step 502 in FIG. 5 ).
或者,通信接口1202用于获取第一终端设备的序号信息和第二终端设备的序号信息(例如图7中的步骤710);通信接口1202用于向主站设备发送第一终端设备的序号信息和第二终端设备的序号信息,第一终端设备的序号信息和第二终端设备的序号信息用于序号信息的维护(例如图7中的步骤710)。Alternatively, the communication interface 1202 is used to obtain the serial number information of the first terminal device and the serial number information of the second terminal device (for example, step 710 in FIG. 7 ); the communication interface 1202 is used to send the serial number information of the first terminal device to the master station device and the serial number information of the second terminal device, the serial number information of the first terminal device and the serial number information of the second terminal device are used for the maintenance of the serial number information (for example, step 710 in FIG. 7 ).
此外,上述各个模块还可以用于支持本文所描述的技术的其它过程。有益效果可参考前面的描述,此处不再赘述。In addition, the various modules described above may also be used to support other processes of the techniques described herein. For the beneficial effects, reference may be made to the foregoing description, which will not be repeated here.
当该通信装置为UDM时,通信接口1202用于获取第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的标识和第二终端设备的标识(例如图5中的步骤502,图7中的步骤706,图8中的步骤801);处理器1201用于根据第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的标识和第二终端设备的标识创建虚拟网群组(例如图5中的步骤502,图7中的步骤706,图8中的步骤801);或者,处理器1201用于根据第一终端设备的序号信息、第二终端设备的序号信息、第一终端设备的标识和第二终端设备的标识更新虚拟网群组的信息(例如图5中的步骤502,图7中的步骤706,图8中的步骤801)。When the communication device is UDM, the communication interface 1202 is used to obtain the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device (for example, the steps in FIG. 5 ). 502, step 706 in Fig. 7, step 801 in Fig. 8); the processor 1201 is used for according to the serial number information of the first terminal equipment, the serial number information of the second terminal equipment, the identification of the first terminal equipment and the second terminal equipment Create a virtual network group (for example, step 502 in FIG. 5 , step 706 in FIG. 7 , step 801 in FIG. 8 ); or, the processor 1201 is configured to use the serial number information of the first terminal device, the second terminal The serial number information of the device, the identifier of the first terminal device and the identifier of the second terminal device update the information of the virtual network group (eg step 502 in FIG. 5 , step 706 in FIG. 7 , step 801 in FIG. 8 ).
此外,上述各个模块还可以用于支持本文所描述的技术的其它过程。有益效果可参考前面的描述,此处不再赘述。In addition, the various modules described above may also be used to support other processes of the techniques described herein. For the beneficial effects, reference may be made to the foregoing description, which will not be repeated here.
本申请实施例提供一种通信系统,其包括前述的用户面功能装置(或者UPF)以及会话管理功能装置(或者SMF),其中,用户面功能装置(或者UPF)执行图5至图9任一所示实施例中UPF或用户面功能装置执行的方法,会话管理功能装置 (或者SMF)执行图5至图10中所示实施例中UE执行的方法。An embodiment of the present application provides a communication system, which includes the aforementioned user plane function device (or UPF) and a session management function device (or SMF), wherein the user plane function device (or UPF) executes any one of FIG. 5 to FIG. 9 . In the method performed by the UPF or the user plane function device in the illustrated embodiment, the session management function device (or SMF) performs the method performed by the UE in the embodiments shown in FIG. 5 to FIG. 10 .
本申请实施例还提供一种通信系统,其包括前述的用户面功能装置(或者UPF)以及终端设备(例如终端设备A或终端设备B),其中,终端设备执行图8所示实施例中终端设备A或终端设备B执行的方法。An embodiment of the present application further provides a communication system, which includes the aforementioned user plane function device (or UPF) and a terminal device (for example, terminal device A or terminal device B), wherein the terminal device executes the terminal device in the embodiment shown in FIG. 8 . A method performed by device A or terminal device B.
本申请实施例还提供一种通信系统,其包括前述的AF以及UDM,其中,AF执行图5、图7和图8所示实施例中AF执行的方法,UDM执行图5、图7和图8所示实施例中UDM执行的方法。An embodiment of the present application further provides a communication system, which includes the aforementioned AF and UDM, wherein the AF performs the method performed by the AF in the embodiments shown in FIG. 5 , FIG. 7 , and FIG. 8 , and the UDM performs the method shown in FIGS. The method performed by the UDM in the embodiment shown in 8.
本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,该计算机程序被计算机执行时,所述计算机可以实现上述方法实施例提供的图5至图10中任一所示的实施例中与SMF相关的流程,或者,所述计算机可以实现上述方法实施例提供的图5至图9中任一所示的实施例中与UPF相关的流程,或者,所述计算机可以实现上述方法实施例提供的图5至图9中任一所示的实施例中与终端设备相关的流程,或者,所述计算机可以实现上述方法实施例提供的图5、图7或图8所示的实施例中与AF相关的流程,或者,所述计算机可以实现上述方法实施例提供的图5、图7或图8所示的实施例中与UDM相关的流程。Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium. When the computer program is executed by a computer, the computer can implement FIGS. 5 to 10 provided by the foregoing method embodiments. The process related to SMF in any one of the embodiments shown, or, the computer can implement the process related to UPF in any of the embodiments shown in FIG. 5 to FIG. 9 provided by the above method embodiment, or, The computer may implement the processes related to the terminal device in any of the embodiments shown in FIG. 5 to FIG. 9 provided by the above method embodiments, or the computer may implement the processes shown in FIG. 5 and FIG. 7 provided by the above method embodiments. Or the process related to AF in the embodiment shown in FIG. 8 , or the computer can implement the process related to UDM in the embodiment shown in FIG. 5 , FIG. 7 or FIG. 8 provided by the above method embodiment.
本申请实施例还提供一种计算机程序产品,所述计算机程序产品用于存储计算机程序,该计算机程序被计算机执行时,所述计算机可以实现上述方法实施例提供的图5至图10中任一所示的实施例中与SMF相关的流程,或者,所述计算机可以实现上述方法实施例提供的图5至图9中任一所示的实施例中与UPF相关的流程,或者,所述计算机可以实现上述方法实施例提供的图5至图9中任一所示的实施例中与终端设备相关的流程,或者,所述计算机可以实现上述方法实施例提供的图5、图7或图8所示的实施例中与AF相关的流程,或者,所述计算机可以实现上述方法实施例提供的图5、图7或图8所示的实施例中与UDM相关的流程。Embodiments of the present application further provide a computer program product, where the computer program product is used to store a computer program, and when the computer program is executed by a computer, the computer can implement any one of FIGS. 5 to 10 provided by the foregoing method embodiments. The process related to SMF in the shown embodiment, or the computer can implement the process related to UPF in any of the embodiments shown in FIG. 5 to FIG. 9 provided by the above method embodiment, or the computer The process related to the terminal device in any of the embodiments shown in FIG. 5 to FIG. 9 provided by the foregoing method embodiments may be implemented, or the computer may implement FIG. 5 , FIG. 7 , or FIG. 8 provided by the foregoing method embodiments. The process related to AF in the shown embodiment, or the computer can implement the process related to UDM in the embodiment shown in FIG. 5 , FIG. 7 or FIG. 8 provided by the above method embodiment.
本申请还提供一种芯片,包括处理器。该处理器用于读取并运行存储器中存储的计算机程序,以执行本申请提供的用于注册至多个网络的方法中由UDM、AF、UPF、SMF或终端设备的相应操作和/或流程。可选地,该芯片还包括存储器,该存储器与该处理器通过电路或电线与存储器连接,处理器用于读取并执行该存储器中的计算机程序。进一步可选地,该芯片还包括通信接口,处理器与该通信接口连接。通信接口用于接收处理的数据和/或信息,处理器从该通信接口获取该数据和/或信息,并对该数据和/或信息进行处理。该通信接口可以是该芯片上的输入/输出接口、接口电路、输出电路、输入电路、管脚或相关电路等。所述处理器也可以体现为处理电路或逻辑电路。The present application also provides a chip including a processor. The processor is configured to read and run the computer program stored in the memory to execute the corresponding operations and/or processes of the UDM, AF, UPF, SMF or terminal device in the method for registering to multiple networks provided in this application. Optionally, the chip further includes a memory, the memory and the processor are connected to the memory through a circuit or a wire, and the processor is used for reading and executing the computer program in the memory. Further optionally, the chip further includes a communication interface, and the processor is connected to the communication interface. The communication interface is used to receive processed data and/or information, and the processor acquires the data and/or information from the communication interface and processes the data and/or information. The communication interface may be an input/output interface, an interface circuit, an output circuit, an input circuit, a pin or a related circuit on the chip, and the like. The processor may also be embodied as a processing circuit or a logic circuit.
上述的芯片也可以替换为芯片系统,这里不再赘述。The above-mentioned chip can also be replaced by a chip system, which will not be repeated here.
本申请中的术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "comprising" and "having" in this application, and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to the explicit lists Those steps or units listed may instead include other steps or units not expressly listed or inherent to these processes, methods, products or devices.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功 能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual conditions to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes .
另外,本申请的说明书和权利要求书及所述附图中的术语“第一”和“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。In addition, the terms "first" and "second" in the description and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.
尽管结合具体特征及其实施例对本申请进行了描述,显而易见的,在不脱离本申请的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本申请的示例性说明,且视为已覆盖本申请范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Although the application has been described in conjunction with specific features and embodiments thereof, it will be apparent that various modifications and combinations can be made therein without departing from the spirit and scope of the application. Accordingly, this specification and drawings are merely exemplary illustrations of the application as defined by the appended claims, and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of this application. Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任 何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. should be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (29)

  1. 一种数据包传输的方法,其特征在于,所述方法包括:A method for data packet transmission, characterized in that the method comprises:
    用户面功能装置从会话管理功能装置接收转发规则;the user plane function device receives the forwarding rule from the session management function device;
    所述用户面功能装置从主站设备接收以太网类型的第一数据包;The user plane function device receives the first data packet of the Ethernet type from the master station device;
    所述用户面功能装置向第一终端设备发送所述第一数据包;sending, by the user plane function device, the first data packet to the first terminal device;
    所述用户面功能装置从所述第一终端设备接收与所述第一数据包关联的第二数据包;receiving, by the user plane function device, a second data packet associated with the first data packet from the first terminal device;
    所述用户面功能装置根据转发规则将所述第二数据包的目的地址修改为第二终端设备的地址,得到第三数据包;The user plane function device modifies the destination address of the second data packet to the address of the second terminal device according to the forwarding rule to obtain a third data packet;
    所述用户面功能装置向所述第二终端设备发送所述第三数据包。The user plane function device sends the third data packet to the second terminal device.
  2. 根据权利要求1所述的方法,还包括:The method of claim 1, further comprising:
    所述用户面功能装置从第三终端设备接收第四数据包;receiving, by the user plane function device, a fourth data packet from a third terminal device;
    所述用户面功能装置向所述主站设备发送与所述第四数据包关联的第五数据包。The user plane function device sends a fifth data packet associated with the fourth data packet to the master station device.
  3. 根据权利要求1或2所述的方法,还包括:The method according to claim 1 or 2, further comprising:
    所述用户面功能装置获取所述第一终端设备的序号信息、所述第二终端设备的序号信息、所述第一终端设备的地址和所述第二终端设备的地址;The user plane function device acquires the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device;
    所述用户面功能装置向所述会话管理功能装置发送所述第一终端设备的序号信息、所述第二终端设备的序号信息、所述第一终端设备的地址和所述第二终端设备的地址;The user plane function device sends the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device, and the address of the second terminal device to the session management function device. address;
    所述第一终端设备的序号信息、所述第二终端设备的序号信息、所述第一终端设备的地址和所述第二终端设备的地址用于转发规则的生成。The serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device are used for generating forwarding rules.
  4. 根据权利要求3所述的方法,所述用户面功能装置获取所述第一终端设备的序号信息、所述第二终端设备的序号信息、所述第一终端设备的地址和所述第二终端设备的地址,包括:The method according to claim 3, wherein the user plane function device acquires serial number information of the first terminal device, serial number information of the second terminal device, address of the first terminal device and the second terminal The address of the device, including:
    所述用户面功能装置从所述主站设备获取所述第一终端设备的序号信息、所述第二终端设备的序号信息、所述第一终端设备的地址和所述第二终端设备的地址。The user plane function device acquires the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device from the master station device .
  5. 根据权利要求3所述的方法,所述用户面功能装置获取所述第一终端设备的序号信息、所述第二终端设备的序号信息、所述第一终端设备的地址和所述第二终端设备的地址,包括:The method according to claim 3, wherein the user plane function device acquires serial number information of the first terminal device, serial number information of the second terminal device, address of the first terminal device and the second terminal The address of the device, including:
    所述用户面功能装置从所述第一终端设备获取所述第一终端设备的序号信息和所述第一终端设备的地址;obtaining, by the user plane function device, the serial number information of the first terminal device and the address of the first terminal device from the first terminal device;
    所述用户面功能装置从所述第二终端设备获取所述第二终端设备的序号信息和所述第二终端设备的地址。The user plane function device acquires the serial number information of the second terminal device and the address of the second terminal device from the second terminal device.
  6. 根据权利要求1至5中任意一项所述的方法,所述转发规则包括所述第一终端设备的序号信息、所述第一终端设备的地址、所述第二终端设备的序号信息和所述第二终端设备的地址。The method according to any one of claims 1 to 5, wherein the forwarding rule includes serial number information of the first terminal device, address of the first terminal device, serial number information of the second terminal device, and all serial number information of the second terminal device. Describe the address of the second terminal device.
  7. 根据权利要求1至6中任意一项所述的方法,所述用户面功能装置根据转发规则将所述第二数据包的目的地址修改为第二终端设备的地址,包括:The method according to any one of claims 1 to 6, wherein the user plane function device modifies the destination address of the second data packet to the address of the second terminal device according to a forwarding rule, comprising:
    所述用户面功能装置根据所述转发规则判断向所述第二终端设备发送所述第二数据包中的数据,所述用户面功能装置将所述第二数据包的目的地址修改为所述第二终 端设备的地址。The user plane function device determines to send the data in the second data packet to the second terminal device according to the forwarding rule, and the user plane function device modifies the destination address of the second data packet to the The address of the second terminal device.
  8. 一种数据包传输的方法,其特征在于,所述方法包括:A method for data packet transmission, characterized in that the method comprises:
    会话管理功能装置获取第一终端设备的序号信息、第二终端设备的序号信息、所述第一终端设备的地址和所述第二终端设备的地址;The session management function device obtains the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device;
    所述会话管理功能装置根据所述第一终端设备的序号信息、所述第二终端设备的序号信息、所述第一终端设备的地址和所述第二终端设备的地址生成转发规则,所述转发规则用于第一数据包的目的地址的修改;The session management function device generates a forwarding rule according to the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device, the The forwarding rule is used to modify the destination address of the first data packet;
    所述会话管理功能装置向用户面功能装置发送所述转发规则。The session management function device sends the forwarding rule to the user plane function device.
  9. 根据权利要求8所述的方法,所述会话管理功能装置获取第一终端设备的序号信息、第二终端设备的序号信息、所述第一终端设备的地址和所述第二终端设备的地址,包括:The method according to claim 8, wherein the session management function device obtains the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device, include:
    所述会话管理功能装置通过用户面功能装置从所述主站设备获取所述第一终端设备的序号信息、所述第二终端设备的序号信息、所述第一终端设备的地址和所述第二终端设备的地址。The session management function device acquires the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the first terminal device from the master station device through the user plane function device. 2. The address of the terminal device.
  10. 根据权利要求8所述的方法,所述会话管理功能装置获取第一终端设备的序号信息、第二终端设备的序号信息、所述第一终端设备的地址和所述第二终端设备的地址,包括:The method according to claim 8, wherein the session management function device obtains the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device, include:
    所述会话管理功能装置通过所述用户面功能装置从所述第一终端设备获取所述第一终端设备的序号信息和所述第一终端设备的地址,从所述第二终端设备获取所述第二终端设备的序号信息和所述第二终端设备的地址。The session management function device obtains the serial number information of the first terminal device and the address of the first terminal device from the first terminal device through the user plane function device, and obtains the first terminal device from the second terminal device. The serial number information of the second terminal device and the address of the second terminal device.
  11. 根据权利要求8至10中任意一项所述的方法,还包括:The method according to any one of claims 8 to 10, further comprising:
    所述会话管理功能装置向统一数据管理装置发送所述第一终端设备的序号信息、所述第二终端设备的序号信息、所述第一终端设备的标识和所述第二终端设备的标识,The session management function device sends the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the identifier of the second terminal device to the unified data management device,
    所述第一终端设备的序号信息、所述第二终端设备的序号信息、所述第一终端设备的标识和所述第二终端设备的标识用于虚拟网群组的创建或更新,所述虚拟网群组包括所述第一终端设备和所述第二终端设备。The serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device, and the identifier of the second terminal device are used for creating or updating a virtual network group, and the The virtual network group includes the first terminal device and the second terminal device.
  12. 根据权利要求8所述的方法,所述会话管理功能装置获取第一终端设备的序号信息、第二终端设备的序号信息、所述第一终端设备的地址和所述第二终端设备的地址,包括:The method according to claim 8, wherein the session management function device obtains the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device, include:
    所述会话管理功能装置从所述统一数据管理装置获取所述第一终端设备的序号信息、所述第二终端设备的序号信息、所述第一终端设备的地址和所述第二终端设备的地址。The session management function device acquires the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device, and the address of the second terminal device from the unified data management device. address.
  13. 根据权利要求8至12中任意一项所述的方法,所述转发规则包括所述第一终端设备的序号信息、所述第二终端设备的序号信息、所述第一终端设备的地址和所述第二终端设备的地址。The method according to any one of claims 8 to 12, wherein the forwarding rule includes serial number information of the first terminal device, serial number information of the second terminal device, address of the first terminal device and all Describe the address of the second terminal device.
  14. 一种通信装置,其特征在于,所述通信装置包括:A communication device, characterized in that the communication device comprises:
    接收模块,用于从会话管理功能装置接收转发规则;从主站设备接收以太网类型的第一数据包;a receiving module, used for receiving the forwarding rule from the session management function device; receiving the first data packet of the Ethernet type from the master station device;
    发送模块,用于向第一终端设备发送所述第一数据包;a sending module, configured to send the first data packet to the first terminal device;
    所述接收模块还用于从所述第一终端设备接收与所述第一数据包关联的第二数据包;The receiving module is further configured to receive a second data packet associated with the first data packet from the first terminal device;
    处理模块,用于根据转发规则将所述第二数据包的目的地址修改为第二终端设备的地址,得到第三数据包;a processing module, configured to modify the destination address of the second data packet to the address of the second terminal device according to the forwarding rule to obtain a third data packet;
    所述发送模块还用于向所述第二终端设备发送所述第三数据包。The sending module is further configured to send the third data packet to the second terminal device.
  15. 根据权利要求14所述的通信装置,所述接收模块用于从第三终端设备接收第四数据包;The communication apparatus according to claim 14, wherein the receiving module is configured to receive a fourth data packet from a third terminal device;
    所述发送模块用于向所述主站设备发送与所述第四数据包关联的第五数据包。The sending module is configured to send a fifth data packet associated with the fourth data packet to the master station device.
  16. 根据权利要求14或15所述的通信装置,所述接收模块用于获取所述第一终端设备的序号信息、所述第二终端设备的序号信息、所述第一终端设备的地址和所述第二终端设备的地址;The communication apparatus according to claim 14 or 15, wherein the receiving module is configured to acquire serial number information of the first terminal device, serial number information of the second terminal device, the address of the first terminal device and the the address of the second terminal device;
    所述发送模块用于向所述会话管理功能装置发送所述第一终端设备的序号信息、所述第二终端设备的序号信息、所述第一终端设备的地址和所述第二终端设备的地址;The sending module is configured to send the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device to the session management function device. address;
    所述第一终端设备的序号信息、所述第二终端设备的序号信息、所述第一终端设备的地址和所述第二终端设备的地址用于转发规则的生成。The serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device are used for generating forwarding rules.
  17. 根据权利要求16所述的通信装置,所述接收模块用于从所述主站设备获取所述第一终端设备的序号信息、所述第二终端设备的序号信息、所述第一终端设备的地址和所述第二终端设备的地址。The communication apparatus according to claim 16, wherein the receiving module is configured to acquire serial number information of the first terminal device, serial number information of the second terminal device, and serial number information of the first terminal device from the master station device. address and the address of the second terminal device.
  18. 根据权利要求16所述的通信装置,所述接收模块用于从所述第一终端设备获取所述第一终端设备的序号信息和所述第一终端设备的地址;所述接收模块用于从所述第二终端设备获取所述第二终端设备的序号信息和所述第二终端设备的地址。The communication apparatus according to claim 16, wherein the receiving module is configured to acquire the serial number information of the first terminal device and the address of the first terminal device from the first terminal device; the receiving module is configured to obtain the serial number information of the first terminal device from the first terminal device; The second terminal device acquires the serial number information of the second terminal device and the address of the second terminal device.
  19. 根据权利要求14至18中任意一项所述的通信装置,所述处理模块用于根据所述转发规则判断向所述第二终端设备发送所述第二数据包中的数据,所述处理模块用于将所述第二数据包的目的地址修改为所述第二终端设备的地址。The communication apparatus according to any one of claims 14 to 18, wherein the processing module is configured to determine, according to the forwarding rule, to send the data in the second data packet to the second terminal device, and the processing module for modifying the destination address of the second data packet to the address of the second terminal device.
  20. 一种数据包传输的通信装置,其特征在于,所述通信装置包括:A communication device for data packet transmission, characterized in that the communication device comprises:
    接收模块,用于获取第一终端设备的序号信息、第二终端设备的序号信息、所述第一终端设备的地址和所述第二终端设备的地址;a receiving module, configured to acquire the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device;
    处理模块,用于根据所述第一终端设备的序号信息、所述第二终端设备的序号信息、所述第一终端设备的地址和所述第二终端设备的地址生成转发规则,所述转发规则用于第一数据包的目的地址的修改;a processing module, configured to generate a forwarding rule according to the serial number information of the first terminal device, the serial number information of the second terminal device, the address of the first terminal device and the address of the second terminal device, the forwarding The rule is used to modify the destination address of the first data packet;
    发送模块,用于向用户面功能装置发送所述转发规则。A sending module, configured to send the forwarding rule to the user plane function device.
  21. 根据权利要求20所述的通信装置,所述接收模块用于通过用户面功能装置从所述主站设备获取所述第一终端设备的序号信息、所述第二终端设备的序号信息、所述第一终端设备的地址和所述第二终端设备的地址。The communication device according to claim 20, wherein the receiving module is configured to acquire serial number information of the first terminal device, serial number information of the second terminal device, the serial number information of the second terminal device, and the The address of the first terminal device and the address of the second terminal device.
  22. 根据权利要求20所述的通信装置,所述接收模块用于通过所述用户面功能装置从所述第一终端设备获取所述第一终端设备的序号信息和所述第一终端设备的地址,从所述第二终端设备获取所述第二终端设备的序号信息和所述第二终端设备的地址。The communication device according to claim 20, wherein the receiving module is configured to obtain the serial number information of the first terminal device and the address of the first terminal device from the first terminal device through the user plane function device, Acquire the serial number information of the second terminal device and the address of the second terminal device from the second terminal device.
  23. 根据权利要求20至22中任一项所述的通信装置,所述发送模块用于向统一数据管理装置发送所述第一终端设备的序号信息、所述第二终端设备的序号信息、所 述第一终端设备的标识和所述第二终端设备的标识,所述第一终端设备的序号信息、所述第二终端设备的序号信息、所述第一终端设备的标识和所述第二终端设备的标识用于虚拟网群组的创建或更新,所述虚拟网群组包括所述第一终端设备和所述第二终端设备。The communication device according to any one of claims 20 to 22, wherein the sending module is configured to send the serial number information of the first terminal device, the serial number information of the second terminal device, the serial number information of the second terminal device to the unified data management device The identifier of the first terminal device and the identifier of the second terminal device, the serial number information of the first terminal device, the serial number information of the second terminal device, the identifier of the first terminal device and the second terminal device The identification of the device is used for creating or updating a virtual network group, and the virtual network group includes the first terminal device and the second terminal device.
  24. 根据权利要求20所述的通信装置,所述接收模块用于从所述统一数据管理装置获取所述第一终端设备的序号信息、所述第二终端设备的序号信息、所述第一终端设备的地址和所述第二终端设备的地址。The communication apparatus according to claim 20, wherein the receiving module is configured to acquire serial number information of the first terminal equipment, serial number information of the second terminal equipment, and serial number information of the first terminal equipment from the unified data management apparatus address and the address of the second terminal device.
  25. 一种通信装置,其特征在于,包括处理器;A communication device, comprising a processor;
    所述处理器用于从存储器中读取并运行程序,以实现如权利要求1至7中任一项所述的方法。The processor is configured to read and execute a program from the memory to implement the method of any one of claims 1 to 7.
  26. 一种通信装置,其特征在于,包括处理器;A communication device, comprising a processor;
    所述处理器用于从存储器中读取并运行程序,以实现如权利要求8至13中任一项所述的方法。The processor is adapted to read and run a program from the memory to implement the method of any one of claims 8 to 13.
  27. 一种通信系统,其特征在于,包括用户面功能装置和会话管理功能装置,所述用户面功能装置用于执行如权利要求1至7中任意一项所述的方法,所述会话管理功能装置用于执行如权利要求8至13中任意一项所述的方法。A communication system, characterized in that it includes a user plane function device and a session management function device, the user plane function device is configured to execute the method according to any one of claims 1 to 7, and the session management function device For carrying out the method of any one of claims 8 to 13.
  28. 一种包含指令的计算机程序产品,其特征在于,当其在计算机上运行时,使得计算机执行如权利要求1至13中任意一项所述的方法。A computer program product comprising instructions which, when run on a computer, cause the computer to perform a method as claimed in any one of claims 1 to 13.
  29. 一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得处理器执行如权利要求1至13中任意一项所述的方法。A computer-readable storage medium having stored therein instructions that, when run on a computer, cause a processor to perform the method of any one of claims 1 to 13.
PCT/CN2021/072304 2021-01-15 2021-01-15 Method, apparatus, and system for transmitting data packet WO2022151420A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2021/072304 WO2022151420A1 (en) 2021-01-15 2021-01-15 Method, apparatus, and system for transmitting data packet
CN202180090144.9A CN116724545A (en) 2021-01-15 2021-01-15 Method, device and system for transmitting data packet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/072304 WO2022151420A1 (en) 2021-01-15 2021-01-15 Method, apparatus, and system for transmitting data packet

Publications (1)

Publication Number Publication Date
WO2022151420A1 true WO2022151420A1 (en) 2022-07-21

Family

ID=82446786

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/072304 WO2022151420A1 (en) 2021-01-15 2021-01-15 Method, apparatus, and system for transmitting data packet

Country Status (2)

Country Link
CN (1) CN116724545A (en)
WO (1) WO2022151420A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115550288A (en) * 2022-11-29 2022-12-30 广东省新一代通信与网络创新研究院 Method and system for forwarding Ethernet data stream
CN116546557A (en) * 2023-06-29 2023-08-04 阿里巴巴(中国)有限公司 Data packet processing method, system, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018213490A1 (en) * 2017-05-16 2018-11-22 Qualcomm Incorporated Ethernet over cellular
CN110166414A (en) * 2018-02-14 2019-08-23 华为技术有限公司 A kind of communication means, apparatus and system
CN110519172A (en) * 2018-05-21 2019-11-29 华为技术有限公司 Wireless communication method and apparatus
WO2020104953A1 (en) * 2018-11-19 2020-05-28 Telefonaktiebolaget Lm Ericsson (Publ) 5g system support for conveying tsn time synchronization
CN112073388A (en) * 2020-08-20 2020-12-11 上海交通大学 Time-sensitive heterogeneous network system of industrial control system and management method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018213490A1 (en) * 2017-05-16 2018-11-22 Qualcomm Incorporated Ethernet over cellular
CN110166414A (en) * 2018-02-14 2019-08-23 华为技术有限公司 A kind of communication means, apparatus and system
CN110519172A (en) * 2018-05-21 2019-11-29 华为技术有限公司 Wireless communication method and apparatus
WO2020104953A1 (en) * 2018-11-19 2020-05-28 Telefonaktiebolaget Lm Ericsson (Publ) 5g system support for conveying tsn time synchronization
CN112073388A (en) * 2020-08-20 2020-12-11 上海交通大学 Time-sensitive heterogeneous network system of industrial control system and management method

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
"3rd Generation Partnership Project; Technical Specification Group Services and System Aspects; Study on enhanced support of Industrial Internet of Things (IIoT) in the 5G System (5GS) (Release 17)", 3GPP STANDARD; TECHNICAL REPORT; 3GPP TR 23.700-20, 3RD GENERATION PARTNERSHIP PROJECT (3GPP), MOBILE COMPETENCE CENTRE ; 650, ROUTE DES LUCIOLES ; F-06921 SOPHIA-ANTIPOLIS CEDEX ; FRANCE, no. V1.3.0, 29 November 2020 (2020-11-29), Mobile Competence Centre ; 650, route des Lucioles ; F-06921 Sophia-Antipolis Cedex ; France , pages 1 - 88, XP051961718 *
DANG XUANJU, ET AL.: "Research and Realization on EtherCAT Master and the Master Communication Protocol ", MODULAR MACHINE TOOL & AUTOMATIC MANUFACTURING TECHNIQUE, no. 1, 31 January 2017 (2017-01-31), pages 98 - 101, XP055950680, ISSN: 1001-2265, DOI: 10.13462/j.cnki.mmtamt.2017.01.027 *
ERICSSON: "KI #2, sol 10: Updates on static forwarding solution", 3GPP DRAFT; S2-2004914, 3RD GENERATION PARTNERSHIP PROJECT (3GPP), MOBILE COMPETENCE CENTRE ; 650, ROUTE DES LUCIOLES ; F-06921 SOPHIA-ANTIPOLIS CEDEX ; FRANCE, vol. SA WG2, no. Electronic; 20200819 - 20200902, 13 August 2020 (2020-08-13), Mobile Competence Centre ; 650, route des Lucioles ; F-06921 Sophia-Antipolis Cedex ; France , XP051919822 *
HUAWEI, HISILICON: "UE-UE forwarding rule establishment", 3GPP DRAFT; S2-1911770, 3RD GENERATION PARTNERSHIP PROJECT (3GPP), MOBILE COMPETENCE CENTRE ; 650, ROUTE DES LUCIOLES ; F-06921 SOPHIA-ANTIPOLIS CEDEX ; FRANCE, vol. SA WG2, no. Reno, USA; 20191118 - 20191122, 8 November 2019 (2019-11-08), Mobile Competence Centre ; 650, route des Lucioles ; F-06921 Sophia-Antipolis Cedex ; France , XP051821846 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115550288A (en) * 2022-11-29 2022-12-30 广东省新一代通信与网络创新研究院 Method and system for forwarding Ethernet data stream
CN115550288B (en) * 2022-11-29 2023-02-28 广东省新一代通信与网络创新研究院 Method and system for forwarding Ethernet data stream
CN116546557A (en) * 2023-06-29 2023-08-04 阿里巴巴(中国)有限公司 Data packet processing method, system, device and storage medium
CN116546557B (en) * 2023-06-29 2023-11-17 阿里巴巴(中国)有限公司 Data packet processing method, system, device and storage medium

Also Published As

Publication number Publication date
CN116724545A (en) 2023-09-08

Similar Documents

Publication Publication Date Title
US20220060416A1 (en) Routing Rule Management Method and Communications Apparatus
EP3879879B1 (en) Time sensitive networking communication method and apparatus thereof
US11765686B2 (en) Packet transmission method and apparatus for communicating between terminals of a same 5G LAN group
CN109997334B (en) Session management with relaying and charging for indirect connectivity of internet of things applications in 3GPP networks
US10462260B2 (en) Context-aware and proximity-aware service layer connectivity management
JP6623279B2 (en) (S) MTC service selection in Gi-LAN
US20210274418A1 (en) Information Transmission Method and Apparatus
JP2019518393A (en) Packet processing method and device
WO2022151420A1 (en) Method, apparatus, and system for transmitting data packet
KR20210088233A (en) Apparatus and method for providing multiple virtual network for an application in mobile communication network
CN104885556A (en) Keep alive periodicity determination for WIFI networks
CN113676924A (en) Communication method, device and system
WO2022205234A1 (en) Communication method and apparatus
WO2020068412A1 (en) Advanced resource link binding management
US10666492B1 (en) Method and apparatus of providing emergency communication services
WO2022267950A1 (en) Communication method and apparatus
CN114126085B (en) Industrial field bus communication method and device, electronic equipment and storage medium
WO2022067816A1 (en) Network edge computing method and communication apparatus
WO2022126631A1 (en) Method, apparatus and system for registering to multiple networks
WO2024114731A1 (en) Service chain policy processing method, apparatus and system
WO2023246746A1 (en) Communication method and related device
WO2023051422A1 (en) Communication method and related device
WO2023116560A1 (en) Communication method and apparatus
WO2022160346A1 (en) Communication method and apparatus
EP4243554A1 (en) Communication method and communication apparatus

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 202180090144.9

Country of ref document: CN

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21918624

Country of ref document: EP

Kind code of ref document: A1