CN117294677A - Method, device and system for accessing between terminal devices - Google Patents

Method, device and system for accessing between terminal devices Download PDF

Info

Publication number
CN117294677A
CN117294677A CN202311198395.6A CN202311198395A CN117294677A CN 117294677 A CN117294677 A CN 117294677A CN 202311198395 A CN202311198395 A CN 202311198395A CN 117294677 A CN117294677 A CN 117294677A
Authority
CN
China
Prior art keywords
data packet
terminal equipment
terminal
terminal device
address
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202311198395.6A
Other languages
Chinese (zh)
Inventor
钟潜成
陈百鹏
许盛宏
刘嘉伟
卢栋生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Intelligent Network Technology Co ltd
Original Assignee
China Telecom Intelligent Network Technology Co ltd
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 China Telecom Intelligent Network Technology Co ltd filed Critical China Telecom Intelligent Network Technology Co ltd
Priority to CN202311198395.6A priority Critical patent/CN117294677A/en
Publication of CN117294677A publication Critical patent/CN117294677A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Abstract

The application discloses a method, a device and a system for accessing between terminal devices. Wherein the method comprises the following steps: receiving a first data packet sent by first terminal equipment, wherein the first terminal equipment is three-layer terminal equipment, and the data packet type of the first data packet is an IP type; and forwarding the first data packet to second terminal equipment under the condition that the destination IP address in the first data packet exists in a two-layer terminal IP address table, wherein the two-layer terminal IP address table stores the mapping relation between the MAC address of the second terminal equipment and the IP address of the second terminal equipment, and the second terminal equipment is the two-layer terminal equipment. The method and the device solve the technical problem that in the related technology, only the access between two-layer terminal devices or the access between three-layer terminal devices is supported, but the access between the two-layer terminal and the three-layer terminal is not supported.

Description

Method, device and system for accessing between terminal devices
Technical Field
The present invention relates to the field of communications, and in particular, to a method, an apparatus, and a system for accessing between terminal devices.
Background
3GPP (3 rd Generation Partnership Project, third generation partnership project) R16 defines a 5G Local Area Network (LAN) networking solution in the mobile network architecture to provide IP-type or ethernet-type communication services for terminals within the same virtual network group.
In the current related art, communication between three layers of terminal devices belonging to the same virtual network group or communication between two layers of terminal devices are only supported, and communication between three layers of terminal devices belonging to the same virtual network group and communication between two layers of terminal devices are not supported.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the application provides a method, a device and a system for accessing terminal equipment, which are used for at least solving the technical problems that only two-layer terminal equipment access or three-layer terminal equipment access is supported, but two-layer terminal and three-layer terminal access is not supported in the related technology.
According to an aspect of the embodiments of the present application, there is provided a method for accessing between terminal devices, including: receiving a first data packet sent by first terminal equipment, wherein the first terminal equipment is three-layer terminal equipment, and the data packet type of the first data packet is an IP type; and forwarding the first data packet to second terminal equipment under the condition that the destination IP address in the first data packet exists in a two-layer terminal IP address table, wherein the two-layer terminal IP address table stores the mapping relation between the MAC (Media Access Control ) address of the second terminal equipment and the IP address of the second terminal equipment, and the second terminal equipment is the two-layer terminal equipment.
Optionally, before receiving the first data packet sent by the first terminal device, the method further includes: receiving a second data packet sent by second terminal equipment; acquiring an MAC address of a second terminal device and an IP address of the second terminal device indicated in the second data packet; determining the mapping relation between the MAC address of the second terminal device and the IP address of the second terminal device; and creating a two-layer terminal IP address table according to the mapping relation.
Optionally, after receiving the first data packet sent by the first terminal device, the method further includes: acquiring first field information in a first data packet, and determining a first session corresponding to first terminal equipment according to the first field information, wherein the session type of the first session is an IP type; matching a first data packet detection rule corresponding to the first session according to the first field information and the message information in the first data packet; and executing the indication information corresponding to the first data packet detection rule.
Optionally, forwarding the first data packet to the second terminal device includes: under the condition that a destination IP address in the first data packet exists in a two-layer terminal IP address table, the first data packet is encapsulated into an Ethernet data packet, wherein the source MAC address of the Ethernet data packet is the MAC address of a user plane function network element, the destination MAC address of the Ethernet data packet is the MAC address of a second terminal device, and the destination IP address in the first data packet is the IP address of the second terminal device; determining a second session corresponding to the second terminal equipment according to the destination MAC address of the Ethernet data packet, wherein the session type of the second session is an Ethernet type; matching a second data packet detection rule corresponding to the second session according to the message information in the Ethernet data packet; and executing the indication information corresponding to the second data packet detection rule, and forwarding the first data packet shown in the Ethernet data packet to the second terminal equipment according to the packet forwarding rule in the second data packet detection rule.
Optionally, the method further comprises: receiving a third data packet sent by the second terminal equipment, wherein the data packet type of the third data packet is an Ethernet type; acquiring second field information in a third data packet, and determining a second session corresponding to second terminal equipment according to the second field information, wherein the session type of the second session is an Ethernet type; matching a second data packet detection rule corresponding to the second session according to the second field information and the message information in the third data packet; and executing the indication information corresponding to the second data packet detection rule.
Optionally, after receiving the third data packet sent by the second terminal device, the method further includes: removing third field information of the third data packet under the condition that the destination MAC address of the third data packet is the MAC address of the user plane function network element; determining a first session corresponding to the first terminal equipment according to the destination IP address of the third data packet, wherein the session type of the first session is an IP type; matching a first data packet detection rule corresponding to the first session according to the message information in the third data packet; executing the first data packet detection rule, and forwarding the third data packet to the first terminal device according to the packet forwarding rule in the first data packet detection rule.
Optionally, before receiving the first data packet sent by the first terminal device, the method further includes: the user plane function network element establishes a first session with a first terminal device, wherein the session type of the first session is an IP type; the user plane function network element establishes a second session with the second terminal device, wherein the session type of the second session is an Ethernet type.
Optionally, the method further comprises: the first terminal device and the second terminal device belong to the same virtual network group.
According to another aspect of the embodiments of the present application, there is also provided an apparatus for accessing between terminal devices, including: the receiving module is used for receiving a first data packet sent by first terminal equipment, wherein the first terminal equipment is three-layer terminal equipment, and the data packet type of the first data packet is an IP type; and the forwarding module is used for forwarding the first data packet to the second terminal equipment under the condition that the destination IP address in the first data packet exists in a two-layer terminal IP address table, wherein the two-layer terminal IP address table stores the mapping relation between the MAC address of the second terminal equipment and the IP address of the second terminal equipment, and the second terminal equipment is the two-layer terminal equipment.
The embodiment of the application also provides a user plane function network element, which comprises: a memory for storing program instructions; a processor coupled to the memory for executing program instructions that perform the following functions: receiving a first data packet sent by first terminal equipment, wherein the first terminal equipment is three-layer terminal equipment, and the data packet type of the first data packet is an IP type; and forwarding the first data packet to second terminal equipment under the condition that the destination IP address in the first data packet exists in a two-layer terminal IP address table, wherein the two-layer terminal IP address table stores the mapping relation between the MAC address of the second terminal equipment and the IP address of the second terminal equipment, and the second terminal equipment is the two-layer terminal equipment.
The embodiment of the application also provides a system for accessing between terminal devices, which comprises: the system comprises a user plane functional network element, first terminal equipment and second terminal equipment, wherein the user plane functional network element is used for receiving a first data packet sent by the first terminal equipment, the first terminal equipment is three-layer terminal equipment, and the data packet type of the first data packet is an IP type; forwarding the first data packet to second terminal equipment under the condition that a destination IP address in the first data packet exists in a two-layer terminal IP address table, wherein the two-layer terminal IP address table stores the mapping relation between the MAC address of the second terminal equipment and the IP address of the second terminal equipment, and the second terminal equipment is the two-layer terminal equipment; the first terminal equipment is used for sending the first data packet to the second terminal equipment through the user plane functional network element, or receiving a third data packet forwarded by the second terminal equipment through the user plane functional network element, wherein the data packet type of the third data packet is an Ethernet type; the second terminal device is configured to receive the first data packet forwarded by the first terminal device through the user plane function network element, or send the third data packet to the first terminal device through the user plane function network element.
In the embodiment of the application, a first data packet sent by a first terminal device is received, wherein the first terminal device is three-layer terminal device, and the data packet type of the first data packet is an IP type; under the condition that the destination IP address in the first data packet exists in a two-layer terminal IP address table, the first data packet is forwarded to second terminal equipment, wherein the two-layer terminal IP address table stores the mapping relation between the MAC address of the second terminal equipment and the IP address of the second terminal equipment, and the second terminal equipment is the two-layer terminal equipment, so that the purpose of forwarding the data packet sent by the three-layer terminal equipment to the two-layer terminal equipment is achieved, the technical effect of accessing between the two-layer terminal equipment and the three-layer terminal equipment is achieved, and the technical problem that only the two-layer terminal equipment or the three-layer terminal equipment are supported in the related art, but the two-layer terminal equipment and the three-layer terminal equipment are not supported.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
FIG. 1 is a flow diagram of a two-tier terminal device interview or a three-tier terminal device interview according to the prior art;
fig. 2 is a flowchart of the operation of a UPF forwarding message data according to the prior art;
fig. 3 is a flowchart of a method of inter-terminal device access according to an embodiment of the present application;
fig. 4 is a block diagram of an apparatus for inter-terminal device access according to an embodiment of the present application;
fig. 5 is a block diagram of a system for inter-terminal device access according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, partial terms or terminology appearing in the course of explaining the embodiments of the present application are applicable to the following explanation:
(R) AN (Radio Access Network ): in a mobile communication system, a key network part between a wireless device (such as a mobile phone, a tablet computer, etc.) and a core network is connected. The method is responsible for transmitting and receiving wireless signals, transmitting data sent by a user to a core network for processing, and transmitting data returned by the core network to user equipment. (R) AN can be divided into two parts: a radio base station and a radio controller. The wireless base station is responsible for the transmission and the reception of wireless signals, and the wireless controller is responsible for controlling and managing a plurality of wireless base stations, ensuring the stable transmission of the wireless signals and coordinating the communication among different base stations.
UE (User Equipment), user Equipment): is the interface between the user and the communication network for receiving and transmitting communication signals and for interacting with the communication network.
I-UPF (Integrated User Plane Function, integrated user plane functions): in a communication network, a User Plane refers to the part responsible for transmitting User data, which carries the actual User data traffic. And I-UPF is a key component in 5G networks, responsible for handling the functions of the user plane. The purpose of the I-UPF is to provide powerful data processing and forwarding functions in 5G networks to meet the increasing data traffic and low latency requirements. It may perform a variety of tasks including packet filtering, routing, flow control, load balancing, etc. At the same time, the I-UPF may also cooperate closely with other network elements (e.g., core networks, edge computing nodes, etc.) to provide efficient data transfer and processing capabilities.
N3 interface: refers to an interface standard in the field of communications for connecting different parts or devices in a network. The N3 interface is typically used to connect the core network with radio access networks, such as 3G, 4G and 5G networks. It allows a radio resource controller (RNC) in the radio access network to communicate with core network nodes in the core network.
N9 interface: refers to a physical interface standard in the field of communications for data transmission between connected network devices. The N9 interface is typically used to connect transmission devices and network switching devices, such as links between routers and switches.
PSA UPF (Packet Switched Access User Plane Function ): is an important component in the 5G network and is responsible for processing the transmission and processing of the data packet on the user plane. The main functions include data packet forwarding, data packet filtering, data packet charging, data packet scheduling and the like. It is responsible for receiving data packets from the terminal device and processing and forwarding the data packets according to network policies and quality of service requirements. Meanwhile, the PSA UPF can also filter and charge the data packet according to the requirements of a network operator so as to realize the flow control and charging functions. The PSA UPF is also responsible for scheduling data packets to ensure efficient utilization of network resources and load balancing. The method can schedule and distribute the data packets in priority according to the network congestion condition and the service quality requirement so as to improve the throughput and the response speed of the network.
GTPU (GPRS Tunneling Protocol User Plane ) message: message formats for user plane transmission in the field of mobile communications. The GTPU message is mainly used for transmitting data in a user plane in a mobile communication network. It is based on a part of the GPRS Tunneling Protocol (GTP) for transmitting user data at the user plane in a mobile communication network. GTPU messages are typically used to carry data traffic, including voice, video, and data. The structure of the GTPU message comprises a message head and a message body. The header contains some important information such as source and destination IP addresses, message length, protocol identification, etc. The message body is the actual user data, i.e. the application data that needs to be transmitted in the network. The transmission of the GTPU message is realized through a GTP tunnel. GTP tunnels are a logical connection established in a mobile communication network for the transfer of user data between different network nodes. The GTPU message is transmitted from the source node to the target node through a GTP tunnel, and then is transmitted to the target terminal equipment through a network interface.
N4 PDU session: the N4 PDU session is one protocol data unit (Protocol Data Unit, PDU) session in the field of communications. An N4 PDU session refers to a communication mechanism used to transport signaling and data in a wireless communication network.
PDR (Packet Detection Rule, packet detection rules): is a rule or condition for network packet detection. The PDR determines whether a packet in the network meets a particular requirement by defining a particular condition or rule. These rules may be used to filter or identify particular types of data packets for further processing.
FAR (Forwarding Action Rule, packet forwarding rule): is a rule defining how a network device should forward a received data packet. FAR is typically configured in a network device by a network administrator to control the flow of data packets.
VN Internal interface: virtual Network internal interface (5G VN) internal interface refers to an interface for connecting individual components inside the 5G VN. In the field of communication, 5G VN is a virtualized network, and network resources can be flexibly allocated and managed to support various application scenarios and service requirements.
SMF (Session Management Function ): refers to a system component or function responsible for managing a communication session. It plays a key role in network communications, ensuring smooth progress and proper management of communication sessions.
In the prior art, only two-layer terminal equipment interview or three-layer terminal equipment interview is supported, as shown in fig. 1, UE1 (terminal equipment 1) and UE2 (terminal equipment 2) belong to two-layer terminal equipment or three-layer terminal equipment, UE1 forwards message data to I-UPF through AN N3 interface of (R) AN (mainly referred to as a base station), forwards message data to PSA UPF through AN N9 interface, and PSA UPF forwards message data to I-UPF through AN N9 interface, and forwards message data to UE2 through AN (R) AN through AN N3 interface. Similarly, UE2 may forward the message data to UE1 through the above procedure.
In the process of forwarding the message data, when the message data enters the PSA UPF, the UPF (user plane function) performs a corresponding operation according to the content of the message data, and the process of forwarding the message data to the UE2 by the UE1 is taken as an example to explain the operation performed by the UPF. As shown in fig. 2, the UPF receives the gtpu message sent by the UE1 from the N3 interface or the N9 interface, and searches for an N4 PDU session through the gtpu header teid; then, according to teid and inner layer message information, the PDR of the UE1 is matched, PDR indication is executed, for example, the indication of header field, current limit and the like is removed, and according to the FAR indication in the PDR of the UE1, the message is forwarded to 5G VN Internal interface for processing; searching for a session of a target UE (here, UE 2) according to the target IP or the target MAC address of the message at 5G VN Internal interface,UPF, matching the PDR of the UE2 according to the inner layer message information, executing the PDR indication of the UE2, and forwarding the message to the UE2 through an N3 interface or an N9 interface according to the FAR indication in the PDR of the UE2.
Specifically, the overall flow of the existing scheme is as follows:
(1) UE1, UE2 establishes N4 PDU conversation of UPF normally (UE 1, UE2 conversation type need be IP type or Ethernet type at the same time), SMF issues forward rule to UPF, up going PDR matches data packet received from Access direction, and associates to a FAR to forward data packet to VN Internal interface, down going PDR matches data packet received from VN Internal interface, and associates to a FAR to forward data packet to Access interface;
(2) UPF receives a gtpu message of UE1 from an N3 port, and searches a UE1 session through a gtpu head teid;
(3) UPF matches PDR in UE1 conversation according to teid and inner layer message information, executes PDR indication, and forwards message to 5G VN international interface for processing according to FAR indication in PDR of UE 1;
(4) The 5G VN international interface transfers the received message to a local switch node for processing;
(5) In the local switch node, the UPF searches a target UE session according to a message destination IP address (IP packet) or a destination MAC address (ethernet packet), matches a PDR corresponding to the target UE according to inner layer message information, executes a corresponding PDR indication, and forwards the message to the target UE according to an interface indicated by FAR in the PDR of the target UE.
From the above procedure, it can be seen that the existing scheme supports the inter-access between two-layer terminal devices or three-layer terminal devices, but does not support the inter-access between two-layer terminals and three-layer terminals.
In order to solve the above problems, the embodiments of the present application provide a method for accessing between terminal devices, which supports communication between three layers of terminal devices, and also supports interworking between two layers of terminal devices and three layers of terminal devices while supporting communication between two layers of terminal devices. The following is a detailed description.
Fig. 3 is a flowchart of a method for inter-terminal device access according to an embodiment of the present application, as shown in fig. 3, the method includes the following steps:
step S302, a first data packet sent by a first terminal device is received, wherein the first terminal device is a three-layer terminal device, and the data packet type of the first data packet is an IP type.
In the step S302, since interworking between the two-layer terminal device and the three-layer terminal device needs to be supported, the first terminal device may be a three-layer terminal device, for example, UE2, and since the first terminal device is a three-layer terminal device, the packet type of the first packet sent by the first terminal device is an IP type.
Step S304, forwarding the first data packet to the second terminal equipment under the condition that the destination IP address in the first data packet exists in a two-layer terminal IP address table, wherein the two-layer terminal IP address table stores the mapping relation between the MAC address of the second terminal equipment and the IP address of the second terminal equipment, and the second terminal equipment is the two-layer terminal equipment.
In the steps S302 to S304, the execution body may be, for example, a user plane function network element (UPF), where the UPF needs to create a two-layer terminal IP address table, where a correspondence between a MAC address of a two-layer terminal device and an IP address of the terminal is stored in the two-layer terminal IP address table. And judging whether the destination IP address in the received first data packet is in the created two-layer terminal IP address table, and if the destination IP address exists in the two-layer terminal IP address table, forwarding the first data packet to the second terminal equipment. And because of supporting the interworking between the two-layer terminal device and the three-layer terminal device, when the first terminal device is the three-layer terminal device, the second terminal device is the two-layer terminal device, for example, the second terminal device may be UE1.
Through the steps S302 to S304, the purpose of forwarding the data packet sent by the three-layer terminal device to the two-layer terminal device can be achieved, so that the technical effect of access between the two-layer terminal device and the three-layer terminal device is achieved, and further the technical problem that only access between the two-layer terminal device or access between the three-layer terminal device is supported, but access between the two-layer terminal device and the three-layer terminal device is not supported in the related technology is solved.
In step S302 of the method for accessing between terminal devices, before receiving the first data packet sent by the first terminal device, the method further includes the following steps: the user plane function network element establishes a first session with a first terminal device, wherein the session type of the first session is an IP type; the user plane function network element establishes a second session with the second terminal device, wherein the session type of the second session is an Ethernet type.
It should be noted that the first terminal device and the second terminal device belong to the same virtual network group.
In this embodiment of the present application, the first terminal device establishes an IP type N4 PDU session (i.e., the first session) with the UPF, the second terminal device establishes an ethernet type N4 PDU session (i.e., the second session) with the UPF, the SMF issues a forwarding rule to the UPF, the uplink PDR matches a data packet received from the Access direction and associates one FAR to forward the data packet to the VN Internal interface, and the downlink PDR matches a data packet received from the VN Internal interface and associates another FAR to forward the data packet to the Access interface. It should be noted that one packet detection rule PDR corresponds to one packet forwarding rule FAR.
In step S302 of the method for accessing between terminal devices, before receiving the first data packet sent by the first terminal device, the method further includes the following steps: receiving a second data packet sent by second terminal equipment; acquiring an MAC address of a second terminal device and an IP address of the second terminal device indicated in the second data packet; determining the mapping relation between the MAC address of the second terminal device and the IP address of the second terminal device; and creating a two-layer terminal IP address table according to the mapping relation.
In this embodiment of the present application, in order to create the two-layer terminal IP address table, the UPF needs to first receive a second data packet sent by the second terminal device (UE 1), where the second data packet may be, for example, a DHCP packet of the UE1, an Arp packet, etc., learn a mapping relationship between the MAC address of the second terminal device and the IP address of the second terminal device from the second data packet, and create the two-layer terminal IP address table according to the mapping relationship. It should be noted that, the mapping relationship between the MAC address and the IP address of the second terminal device stored in the two-layer terminal IP address table is merely an example, and in a practical situation, the two-layer terminal IP address table may store mapping relationships between the MAC addresses of all the two-layer terminal devices and the IP addresses corresponding to the two-layer terminal devices, so as to implement mutual accesses between different two-layer terminal devices and three-layer terminal devices.
In step S302 of the method for accessing between terminal devices, after receiving the first data packet sent by the first terminal device, the method further includes the following steps: acquiring first field information in a first data packet, and determining a first session corresponding to first terminal equipment according to the first field information, wherein the session type of the first session is an IP type; matching a first data packet detection rule corresponding to the first session according to the first field information and the message information in the first data packet; and executing the indication information corresponding to the first data packet detection rule.
In this embodiment of the present application, the UPF receives a first data packet of a first terminal device (UE 2), where the first data packet is an IP data packet, and since the IP data packet is transmitted through a gtpu protocol, the first data packet includes a gtpu field, and searches a first session corresponding to the first terminal device (i.e., a session established by the UE 2) through a gtpu header teid (i.e., the first field information); and matching a first data packet detection rule PDR in the first session according to the teid of the first data packet and the inner layer message information, executing the PDR instruction, and forwarding the first data packet to a 5G VN Internal interface for processing according to the FAR instruction in the first data packet detection rule PDR.
In step S304 of the method for accessing between terminal devices, the forwarding of the first data packet to the second terminal device specifically includes the following steps: under the condition that the destination IP address in the first data packet exists in a two-layer terminal IP address table, the first data packet is encapsulated into an Ethernet data packet, wherein the source MAC address of the Ethernet data packet is the MAC address of a user plane function network element, and the destination MAC address of the Ethernet data packet is the MAC address of second terminal equipment; determining a second session corresponding to the second terminal equipment according to the destination MAC address of the Ethernet data packet, wherein the session type of the second session is an Ethernet type; matching a second data packet detection rule corresponding to the second session according to the message information in the Ethernet data packet; and executing the indication information corresponding to the second data packet detection rule, and forwarding the first data packet shown in the Ethernet data packet to the second terminal equipment according to the packet forwarding rule in the second data packet detection rule.
In this embodiment of the present application, at the 5G VN international interface, if a table entry exists in the two-layer terminal IP address table in the destination IP address (herein, the IP address of the second terminal device) in the first data packet, the first data packet is an IP packet sent to the second terminal device; and encapsulating the received first data packet into an Ethernet data packet (namely an Ethernet data packet), wherein the source MAC of the Ethernet data packet is the MAC address of the UPF, the destination MAC is the MAC address of the second terminal equipment, and the local switch node is used for processing.
In the local switch node, the UPF acquires the destination MAC address of the Ethernet data packet, when the destination MAC address is the MAC address of the second terminal device, searches a second session (namely, the session established by the UE 1), matches the second data packet detection rule PDR corresponding to the second session according to the inner layer message information in the Ethernet data packet, executes the indication information corresponding to the second data packet detection rule, and forwards the message to the second terminal device (UE 1) according to the interface indicated by the FAR in the second data packet detection rule.
The process realizes that the three-layer terminal equipment transmits the data packet to the two-layer terminal equipment, and the two-layer terminal equipment transmits the data packet to the three-layer terminal equipment.
In the method for accessing between terminal devices, the method further comprises the following steps: receiving a third data packet sent by the second terminal equipment, wherein the data packet type of the third data packet is an Ethernet type; acquiring second field information in a third data packet, and determining a second session corresponding to second terminal equipment according to the second field information, wherein the session type of the second session is an Ethernet type; matching a second data packet detection rule corresponding to the second session according to the second field information and the message information in the third data packet; and executing the indication information corresponding to the second data packet detection rule.
In this embodiment of the present application, the UPF receives a third data packet sent by the second terminal device, where the third data packet may be an ethernet data packet, and since the ethernet data packet is transmitted through the gtpu protocol, the third data packet includes a gtpu field, and searches a second session (i.e., a session established by the UE 1) corresponding to the second terminal device through a gtpu header teid (i.e., the second field information); and according to teid and inner layer message information of a third data packet sent by the second terminal equipment, matching a second data packet detection rule corresponding to the second session (namely, matching PDR in the UE1 session), executing indication information in the PDR, and according to FAR indication in the second data packet detection rule, forwarding the third data packet to a 5G VN international interface for processing.
In the above step, after receiving the third data packet sent by the second terminal device, the method further includes: removing third field information of the third data packet under the condition that the destination MAC address of the third data packet is the MAC address of the user plane function network element; determining a first session corresponding to the first terminal equipment according to the destination IP address of the third data packet, wherein the session type of the first session is an IP type; matching a first data packet detection rule corresponding to the first session according to the message information in the third data packet; executing the first data packet detection rule, and forwarding the third data packet to the first terminal device according to the packet forwarding rule in the first data packet detection rule.
In this embodiment of the present application, at the 5G VN international interface, if the destination MAC of the third packet is the MAC of the UPF own interface, the ethernet header (i.e. the third field information) in the third packet is removed, and the processing is transferred to the local switch node. At the local switch node, the UPF searches a first session (i.e. a session established by the UE 2) corresponding to the first terminal device according to the destination IP address in the third data packet, matches a first data packet detection rule corresponding to the first session (i.e. matches a PDR in the UE2 session) according to the inner layer message information in the third data packet, executes indication information in the PDR, and forwards the third data packet to the first terminal device (i.e. the UE 2) according to an interface indicated by the FAR in the first data packet detection rule.
Through the above process, the second terminal device initiates a PDU session creation request for creating a PDU session of an IP type for the second terminal device in the first 5G virtual network group, the first terminal device initiates a PDU session creation request for creating a PDU session of an ethernet type for the first terminal device in the first 5G virtual network group, and the first terminal device and the second terminal device belong to the same 5G virtual network group; the UPF creates a two-layer terminal IP address table, and learns the mapping relation between the MAC address of the first terminal equipment and the IP address of the first terminal equipment according to the message of the received first terminal equipment; the UPF searches a first terminal device from a two-layer terminal IP address table according to a destination IP for receiving the IP data message of the second terminal device, encapsulates the IP data message of the second terminal device into an Ethernet message, sets a source MAC address of the Ethernet message as an MAC address of a UPF packet receiving interface, and sets the destination MAC address as an MAC address of the first terminal device; sending the Ethernet message to the first terminal equipment according to the forwarding rule of the first terminal equipment; if the destination MAC address of the Ethernet data message sent by the first terminal equipment is the MAC address of the UPF interface, after the Ethernet header of the data message is removed, searching the second terminal equipment according to the destination IP address of the data message, and sending the message to the second terminal equipment according to the forwarding rule of the second terminal equipment. Therefore, the problem that communication between two-layer terminal equipment and three-layer terminal equipment in a 5G Local Area Network (LAN) cannot be realized is solved.
The method for accessing the terminal equipment provided by the embodiment of the application is simple in implementation and slight in transformation, and can realize the intercommunication of the two-layer terminal equipment and the three-layer terminal equipment without involving large transformation in the UPF network element.
Fig. 4 is a structural diagram of an apparatus for inter-terminal device access according to an embodiment of the present application, as shown in fig. 4, the apparatus includes:
a receiving module 42, configured to receive a first data packet sent by a first terminal device, where the first terminal device is a three-layer terminal device, and a data packet type of the first data packet is an IP type;
and a forwarding module 44, configured to forward the first data packet to a second terminal device when the destination IP address in the first data packet exists in a two-layer terminal IP address table, where the two-layer terminal IP address table stores a mapping relationship between a MAC address of the second terminal device and an IP address of the second terminal device, and the second terminal device is the two-layer terminal device.
In the receiving module of the device accessed between the terminal devices, the receiving module is further used for receiving a second data packet sent by a second terminal device; acquiring an MAC address of a second terminal device and an IP address of the second terminal device indicated in the second data packet; determining the mapping relation between the MAC address of the second terminal device and the IP address of the second terminal device; and creating a two-layer terminal IP address table according to the mapping relation.
In the receiving module of the device accessed between the terminal devices, the receiving module is further configured to obtain first field information in the first data packet, and determine a first session corresponding to the first terminal device according to the first field information, where a session type of the first session is an IP type; matching a first data packet detection rule corresponding to the first session according to the first field information and the message information in the first data packet; and executing the indication information corresponding to the first data packet detection rule.
In the forwarding module of the device accessed between the terminal devices, the forwarding module is further configured to encapsulate the first data packet into an ethernet data packet when the destination IP address in the first data packet exists in the two-layer terminal IP address table, where a source MAC address of the ethernet data packet is a MAC address of a user plane functional network element, a destination MAC address of the ethernet data packet is a MAC address of the second terminal device, and an IP address in the first data packet is an IP address of the second terminal device; determining a second session corresponding to the second terminal equipment according to the destination MAC address of the Ethernet data packet, wherein the session type of the second session is an Ethernet type; matching a second data packet detection rule corresponding to the second session according to the message information in the Ethernet data packet; and executing the indication information corresponding to the second data packet detection rule, and forwarding the first data packet shown in the Ethernet data packet to the second terminal equipment according to the packet forwarding rule in the second data packet detection rule.
In the receiving module of the device accessed between the terminal devices, the receiving module is further configured to receive a third data packet sent by the second terminal device, where a data packet type of the third data packet is an ethernet type; acquiring second field information in a third data packet, and determining a second session corresponding to second terminal equipment according to the second field information, wherein the session type of the second session is an Ethernet type; matching a second data packet detection rule corresponding to the second session according to the second field information and the message information in the third data packet; and executing the indication information corresponding to the second data packet detection rule.
In the receiving module of the device accessed between the terminal devices, the receiving module is further configured to remove third field information of the third data packet when the destination MAC address of the third data packet is the MAC address of the user plane function network element; determining a first session corresponding to the first terminal equipment according to the destination IP address of the third data packet, wherein the session type of the first session is an IP type; matching a first data packet detection rule corresponding to the first session according to the message information in the third data packet; executing the first data packet detection rule, and forwarding the third data packet to the first terminal device according to the packet forwarding rule in the first data packet detection rule.
The device for accessing between terminal devices further comprises an establishing module 26, which is used for establishing a first session between the user plane function network element and the first terminal device, wherein the session type of the first session is an IP type; the user plane function network element establishes a second session with the second terminal device, wherein the session type of the second session is an Ethernet type.
The first terminal device and the second terminal device in the device accessed among the terminal devices belong to the same virtual network group.
The module in the device for accessing between the terminal devices can achieve the purpose of forwarding the data packet sent by the three-layer terminal device to the two-layer terminal device, thereby realizing the technical effect of accessing between the two-layer terminal device and the three-layer terminal device, and further solving the technical problem that only the two-layer terminal device or the three-layer terminal device are supported, but the two-layer terminal device and the three-layer terminal device are not supported in the related technology.
It should be noted that, the device for accessing between terminal devices shown in fig. 4 is used to execute the method for accessing between terminal devices shown in fig. 3, so the explanation of the method for accessing between terminal devices is also applicable to the device for accessing between terminal devices, which is not described herein.
The embodiment of the application also provides a user plane function network element, which comprises: a memory for storing program instructions; a processor coupled to the memory for executing program instructions that perform the following functions: receiving a first data packet sent by first terminal equipment, wherein the first terminal equipment is three-layer terminal equipment, and the data packet type of the first data packet is an IP type; and forwarding the first data packet to second terminal equipment under the condition that the destination IP address in the first data packet exists in a two-layer terminal IP address table, wherein the two-layer terminal IP address table stores the mapping relation between the MAC address of the second terminal equipment and the IP address of the second terminal equipment, and the second terminal equipment is the two-layer terminal equipment.
Through the user plane function network element, the purpose of forwarding the data packet sent by the three-layer terminal equipment to the two-layer terminal equipment can be achieved, so that the technical effect of access between the two-layer terminal equipment and the three-layer terminal equipment is achieved, and the technical problem that only access between the two-layer terminal equipment or access between the three-layer terminal equipment is supported, but access between the two-layer terminal equipment and the three-layer terminal equipment is not supported in the related technology is solved.
It should be noted that, the above-mentioned user plane function network element is used for executing the method of accessing between terminal devices shown in fig. 3, so the explanation related to the method of accessing between terminal devices is also applicable to the user plane function network element, which is not repeated here.
Fig. 5 is a block diagram of a system for inter-terminal device access according to an embodiment of the present application, and as shown in fig. 5, a system 500 for inter-terminal device access includes: the user plane function network element 52, the first terminal device 54 and the second terminal device 56, where the user plane function network element is configured to receive a first data packet sent by the first terminal device, the first terminal device is a three-layer terminal device, and a data packet type of the first data packet is an IP type; forwarding the first data packet to second terminal equipment under the condition that a destination IP address in the first data packet exists in a two-layer terminal IP address table, wherein the two-layer terminal IP address table stores the mapping relation between the MAC address of the second terminal equipment and the IP address of the second terminal equipment, and the second terminal equipment is the two-layer terminal equipment; the first terminal equipment is used for sending the first data packet to the second terminal equipment through the user plane functional network element, or receiving a third data packet forwarded by the second terminal equipment through the user plane functional network element, wherein the data packet type of the third data packet is an Ethernet type; the second terminal device is configured to receive the first data packet forwarded by the first terminal device through the user plane function network element, or send the third data packet to the first terminal device through the user plane function network element.
The system for accessing between the terminal devices can achieve the purpose of forwarding the data packet sent by the three-layer terminal device to the two-layer terminal device, thereby realizing the technical effect of accessing between the two-layer terminal device and the three-layer terminal device, and further solving the technical problem that only the two-layer terminal device access or the three-layer terminal device access is supported, but the two-layer terminal device access and the three-layer terminal device access are not supported in the related technology.
It should be noted that, the system for accessing between terminal devices shown in fig. 5 is used to execute the method for accessing between terminal devices shown in fig. 3, so the explanation of the method for accessing between terminal devices is also applicable to the system for accessing between terminal devices, which is not described herein.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.

Claims (11)

1. A method for inter-terminal device access, comprising:
receiving a first data packet sent by first terminal equipment, wherein the first terminal equipment is three-layer terminal equipment, and the data packet type of the first data packet is an IP type;
and forwarding the first data packet to second terminal equipment under the condition that the destination IP address in the first data packet exists in a two-layer terminal IP address table, wherein the two-layer terminal IP address table stores the mapping relation between the MAC address of the second terminal equipment and the IP address of the second terminal equipment, and the second terminal equipment is the two-layer terminal equipment.
2. The method of claim 1, wherein prior to receiving the first data packet sent by the first terminal device, the method further comprises:
receiving a second data packet sent by the second terminal equipment;
Acquiring the MAC address of the second terminal equipment and the IP address of the second terminal equipment indicated in the second data packet;
determining the mapping relation between the MAC address of the second terminal device and the IP address of the second terminal device;
and creating the two-layer terminal IP address table according to the mapping relation.
3. The method of claim 1, wherein after receiving the first data packet sent by the first terminal device, the method further comprises:
acquiring first field information in the first data packet, and determining a first session corresponding to the first terminal equipment according to the first field information, wherein the session type of the first session is an IP type;
matching a first data packet detection rule corresponding to the first session according to the first field information and the message information in the first data packet;
and executing the indication information corresponding to the first data packet detection rule.
4. The method of claim 1, wherein forwarding the first data packet to a second terminal device comprises:
under the condition that a destination IP address in the first data packet exists in a two-layer terminal IP address table, the first data packet is encapsulated into an Ethernet data packet, wherein the source MAC address of the Ethernet data packet is the MAC address of a user plane function network element, the destination MAC address of the Ethernet data packet is the MAC address of the second terminal equipment, and the destination IP address in the first data packet is the IP address of the second terminal equipment;
Determining a second session corresponding to the second terminal equipment according to the destination MAC address of the Ethernet data packet, wherein the session type of the second session is an Ethernet type;
matching a second data packet detection rule corresponding to the second session according to the message information in the Ethernet data packet;
and executing the indication information corresponding to the second data packet detection rule, and forwarding the first data packet encapsulated in the Ethernet data packet to the second terminal equipment according to the packet forwarding rule in the second data packet detection rule.
5. The method according to claim 1, wherein the method further comprises:
receiving a third data packet sent by the second terminal equipment, wherein the data packet type of the third data packet is an Ethernet type;
acquiring second field information in the third data packet, and determining a second session corresponding to the second terminal equipment according to the second field information, wherein the session type of the second session is an Ethernet type;
matching a second data packet detection rule corresponding to the second session according to the second field information and the message information in the third data packet;
And executing the indication information corresponding to the second data packet detection rule.
6. The method of claim 5, wherein after receiving the third data packet sent by the second terminal device, the method further comprises:
removing third field information of the third data packet under the condition that the destination MAC address of the third data packet is the MAC address of the user plane function network element;
determining a first session corresponding to the first terminal equipment according to the destination IP address of the third data packet, wherein the session type of the first session is an IP type;
matching a first data packet detection rule corresponding to the first session according to the message information in the third data packet;
executing the first data packet detection rule, and forwarding the third data packet to the first terminal device according to a packet forwarding rule in the first data packet detection rule.
7. The method of claim 1, wherein prior to receiving the first data packet sent by the first terminal device, the method further comprises:
the user plane function network element establishes a first session with the first terminal equipment, wherein the session type of the first session is an IP type;
And the user plane function network element establishes a second session with the second terminal equipment, wherein the session type of the second session is an Ethernet type.
8. The method according to claim 1, wherein the method further comprises:
the first terminal device and the second terminal device belong to the same virtual network group.
9. An apparatus for inter-terminal device access, comprising:
the receiving module is used for receiving a first data packet sent by first terminal equipment, wherein the first terminal equipment is three-layer terminal equipment, and the data packet type of the first data packet is an IP type;
and the forwarding module is used for forwarding the first data packet to second terminal equipment under the condition that the destination IP address in the first data packet exists in a two-layer terminal IP address table, wherein the two-layer terminal IP address table stores the mapping relation between the MAC address of the second terminal equipment and the IP address of the second terminal equipment, and the second terminal equipment is the two-layer terminal equipment.
10. A user plane functional network element, comprising:
a memory for storing program instructions;
a processor, coupled to the memory, for executing program instructions that perform the following functions: receiving a first data packet sent by first terminal equipment, wherein the first terminal equipment is three-layer terminal equipment, and the data packet type of the first data packet is an IP type; and forwarding the first data packet to second terminal equipment under the condition that the destination IP address in the first data packet exists in a two-layer terminal IP address table, wherein the two-layer terminal IP address table stores the mapping relation between the MAC address of the second terminal equipment and the IP address of the second terminal equipment, and the second terminal equipment is the two-layer terminal equipment.
11. A system for inter-terminal device access, comprising: a user plane function network element, a first terminal device and a second terminal device, wherein,
the user plane function network element is configured to receive a first data packet sent by the first terminal device, where the first terminal device is a three-layer terminal device, and a data packet type of the first data packet is an IP type; forwarding the first data packet to the second terminal equipment under the condition that a destination IP address in the first data packet exists in a two-layer terminal IP address table, wherein the two-layer terminal IP address table stores the mapping relation between the MAC address of the second terminal equipment and the IP address of the second terminal equipment, and the second terminal equipment is the two-layer terminal equipment;
the first terminal device is configured to send the first data packet to the second terminal device through the user plane function network element, or receive a third data packet forwarded by the second terminal device through the user plane function network element, where a data packet type of the third data packet is an ethernet type;
the second terminal device is configured to receive the first data packet forwarded by the first terminal device through the user plane function network element, or send the third data packet to the first terminal device through the user plane function network element.
CN202311198395.6A 2023-09-15 2023-09-15 Method, device and system for accessing between terminal devices Pending CN117294677A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311198395.6A CN117294677A (en) 2023-09-15 2023-09-15 Method, device and system for accessing between terminal devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311198395.6A CN117294677A (en) 2023-09-15 2023-09-15 Method, device and system for accessing between terminal devices

Publications (1)

Publication Number Publication Date
CN117294677A true CN117294677A (en) 2023-12-26

Family

ID=89252823

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311198395.6A Pending CN117294677A (en) 2023-09-15 2023-09-15 Method, device and system for accessing between terminal devices

Country Status (1)

Country Link
CN (1) CN117294677A (en)

Similar Documents

Publication Publication Date Title
CN113475045B (en) Control plane based time sensitive network configuration
US20220046513A1 (en) Device Configuration for Time Sensitive Network Bridge
CN112055959B (en) Method, apparatus and medium for communication
US8125939B2 (en) Base station apparatus, communication method and mobile communication system for restraining traffic quantity
JP6651633B2 (en) Data scheduling method, base station and system
EP0804844B1 (en) Packet radio system and methods for a protocol-independent routing of a data packet in packet radio networks
US8451752B2 (en) Seamless handoff scheme for multi-radio wireless mesh network
JP2021528014A (en) Information transmission method and equipment
KR20190133031A (en) Communication method and device
RU2331985C2 (en) Method and device for downlink macro separation in cellular network
JP2021523638A (en) Information transmission method and equipment
US20210378035A1 (en) Identifier management method and apparatus
WO2019076306A1 (en) Data transmission channel processing method, apparatus and system
CN103036809A (en) Methods and apparatus for a scalable network with efficient link utilization
EP3949270B1 (en) Local user plane function control
CN114124618B (en) Message transmission method and electronic equipment
US20110044176A1 (en) Method, apparatus and system for equalizing flows
WO2022082724A1 (en) Method and apparatus for multicast service support in time sensitive network
CN105874756A (en) Method and device for transmitting control signalling
WO2022017285A1 (en) Packet forwarding method, apparatus and system
CN113784374A (en) Device and method for deep data processing of base station
EP2175594B1 (en) Extension connection method and route selection device
CN115669058A (en) Node switching method and related equipment
WO2010009678A1 (en) Method, intercommunicating gateway, access point and system for processing lan data
WO2022021435A1 (en) Data transmission method, device, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination