CN115604185A - Data routing method and device - Google Patents

Data routing method and device Download PDF

Info

Publication number
CN115604185A
CN115604185A CN202110780694.5A CN202110780694A CN115604185A CN 115604185 A CN115604185 A CN 115604185A CN 202110780694 A CN202110780694 A CN 202110780694A CN 115604185 A CN115604185 A CN 115604185A
Authority
CN
China
Prior art keywords
address
target
routing table
network
routing
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
CN202110780694.5A
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.)
Spreadtrum Semiconductor Nanjing Co Ltd
Original Assignee
Spreadtrum Semiconductor Nanjing 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 Spreadtrum Semiconductor Nanjing Co Ltd filed Critical Spreadtrum Semiconductor Nanjing Co Ltd
Priority to CN202110780694.5A priority Critical patent/CN115604185A/en
Publication of CN115604185A publication Critical patent/CN115604185A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing

Abstract

A data routing method and device are provided, and the data routing method comprises the following steps: receiving a routing table from a core network, wherein the routing table comprises a network target and an IP address of an access device corresponding to the network target, and a user device indicated by the network target is directly connected with the access device corresponding to the network target; receiving an IP packet from user equipment, wherein the IP packet comprises a target address of target user equipment; matching the target address with the address indicated by each network target in the routing table to obtain a matching result; and determining whether to locally route the IP packet according to the matching result. The technical scheme of the invention can realize the local routing among the local area network devices in the cellular network.

Description

Data routing method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data routing method and apparatus.
Background
In current third Generation Partnership project (3 gpp) communication, terminal-to-terminal communication is performed via a core network. In the fifth generation mobile communication technology (5 th generation mobile networks or 5th generation wireless systems, 5G), the concept of Local Area Network (LAN) is introduced, but Local switching to the User Plane Function (UPF) of the core Network is still required, or Local Area Network communication is performed through a tunnel between PDU Session Anchors (PSA) UPFs.
In the future, there are more and more home networks, devices in these home networks Access a 5G core network through the same Access point, such as a Premise Radio Access Station (PRAS), or through the same home Gateway, such as an Evolved home Gateway (edrg), and a large amount of data only occurs between devices in the same home network (such as connection printers).
However, in the existing home network, routing of data between devices through the core network is inefficient and has a large delay.
Disclosure of Invention
The technical problem solved by the invention is how to realize the local routing among local area network devices in the cellular network.
To solve the foregoing technical problem, an embodiment of the present invention provides a data routing method, where the data routing method includes: receiving a routing table from a core network, wherein the routing table comprises a network target and an IP address of an access device corresponding to the network target, and user equipment indicated by the network target is directly connected with the access device corresponding to the network target; receiving an IP packet from user equipment, wherein the IP packet comprises a target address of target user equipment; matching the target address with the address indicated by each network target in the routing table to obtain a matching result; and determining whether to locally route the IP packet according to the matching result.
Optionally, the determining whether to locally route the IP packet according to the matching result includes: and if the matching result indicates that the network target matched with the target address exists in the routing table, the IP packet is locally routed.
Optionally, the routing table further includes an IP address of a default access device, and the determining whether to locally route the IP packet according to the matching result includes: and if the matching result shows that the address matched with the target address does not exist in the routing table, forwarding the IP packet to the default access equipment, wherein the default access equipment is a routing node at the upper stage of the current access equipment.
In order to solve the above technical problem, an embodiment of the present invention further discloses a data routing method, where the data routing method includes: when a PDU session is established by user equipment, an IP address is distributed to the user equipment; configuring a routing table for each access device according to the IP address of each access device and the IP address of each user device, wherein the routing table comprises a network target and the IP address of the access device corresponding to the network target, and the user device indicated by the network target is directly connected with the access device corresponding to the network target; and sending the configured routing table to corresponding access equipment so that the access equipment can receive an IP packet from user equipment, wherein the IP packet comprises a target address of target user equipment, matching the target address with the address indicated by each network target in the routing table to obtain a matching result, and determining whether to locally route the IP packet according to the matching result.
Optionally, the configuring, for each access device, a routing table according to the IP address of each access device and the IP address of each user equipment includes: determining whether to configure the user equipment in the routing table according to the service type corresponding to the PDU session; and/or determining whether to configure the user equipment in the routing table according to the identity of the user equipment.
Optionally, the data routing method further includes: and updating the routing table according to the state of the PDU session, or releasing the routing table.
Optionally, the updating the routing table according to the status of the PDU session, or releasing the routing table includes: after the PDU session is ended, releasing the routing table; or when the PDU session is finished and a new PDU session is established, updating the routing table according to the IP address of the user equipment in the new PDU session.
Optionally, different access devices correspond to different routing tables.
The embodiment of the invention also discloses a data routing device, which comprises: a routing table receiving module, configured to receive a routing table from a core network, where the routing table includes a network target and an IP address of an access device corresponding to the network target, and a user device indicated by the network target is directly connected to the access device corresponding to the network target; an IP packet receiving module, configured to receive an IP packet from a user equipment, where the IP packet includes a target address of a target user equipment; the matching module is used for matching the target address with the address indicated by each network target in the routing table to obtain a matching result; and the routing module is used for determining whether to locally route the IP packet according to the matching result.
The embodiment of the invention also discloses a data routing device, which comprises: the address allocation module is used for allocating an IP address for the user equipment when the user equipment establishes a PDU session; a routing table configuration module, configured to configure a routing table for each access device according to the IP address of each access device and the IP address of each user device, where the routing table includes a network target and the IP address of the access device corresponding to the network target, and the user device indicated by the network target is directly connected to the access device corresponding to the network target; and the routing table sending module is used for sending the configured routing table to the corresponding access equipment so that the access equipment can receive the IP packet from the user equipment, the IP packet comprises a target address of the target user equipment, the target address is matched with the address indicated by each network target in the routing table to obtain a matching result, and whether the IP packet is locally routed is determined according to the matching result.
The embodiment of the invention also discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the computer program executes the steps of the data routing method when being executed by a processor.
The embodiment of the invention also discloses access equipment, which comprises a memory and a processor, wherein the memory is stored with a computer program capable of running on the processor, and the processor executes the steps of the data routing method when running the computer program.
The embodiment of the invention also discloses core network equipment which comprises a memory and a processor, wherein the memory is stored with a computer program capable of running on the processor, and the processor executes the steps of the data routing method when running the computer program.
Compared with the prior art, the technical scheme of the embodiment of the invention has the following beneficial effects:
in the technical scheme of the invention, the core network is used for configuring the routing table in advance, and the user equipment indicated by the network target in the routing table is directly connected with the access equipment corresponding to the network target, so that the access equipment can directly carry out local routing under the condition that the target user equipment is directly connected with the current access equipment when carrying out data forwarding according to the routing table. The technical scheme of the invention can realize the high-efficiency routing from the equipment to the equipment through the local routing between different access equipment for the service between the user equipment in the local area network, thereby reducing the data transmission time delay and improving the data transmission efficiency.
Drawings
FIG. 1 is a schematic diagram of a data routing scenario of the prior art;
FIG. 2 is a flow chart of a data routing method according to an embodiment of the present invention;
FIG. 3 is a flow chart of another data routing method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an application scenario in accordance with an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a data routing apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another data routing apparatus according to an embodiment of the present invention.
Detailed Description
As described in the background, in the existing home network, routing of data between devices through the core network is inefficient and time-consuming.
The inventor of the present application also finds that, according to the current research progress of 3GPP in indoor enhancement, TR22.858 introduces a new application scenario. In the scene, local routing can be realized at the eRG through the same eRG access device without passing through a 5G core network, for example, information acquired by a basement sensor is transmitted to a user terminal on an attic through PRAS-eRG-PRAS, so that the method is efficient and rapid. However, the current 5G Local Area Network (LAN) is performed by using the UPF as an anchor point of the Local Area Network, that is, when Local Area Network communication is performed, all data must be forwarded by Local routing through the UPF. As shown in fig. 1, user Equipment (UE) in a local area network includes a printer UE1, a computer UE2, and a plurality of sensors UE3, and when data is transmitted among UE1, UE2, and UE3, all the data needs to be routed and forwarded through a base station and a core network. In R16 and R17 studies, the 5G LAN supports two types of Local area network communications, local-switch based on UPF (Local-switch based) and N19 tunnel based on PSA UPF (N19-based). The current solution can avoid forwarding the communication between the UEs supporting the local area Network to the Data Network (Data Network), but the communication must be routed locally via the core Network, especially the UPF, but not via some local Network nodes (such as PRAS/errg, etc.).
In the embodiment of the invention, IP is called Internet Protocol entirely, and Chinese meaning is Internet interconnection Protocol.
In the technical scheme of the invention, the core network is used for configuring the routing table in advance, and the user equipment indicated by the network target in the routing table is directly connected with the access equipment corresponding to the network target, so that the access equipment can directly carry out local routing under the condition that the target user equipment is directly connected with the current access equipment when carrying out data forwarding according to the routing table. The technical scheme of the invention can realize the high-efficiency routing from the equipment to the equipment through the local routing between different access equipment for the service between the user equipment in the local area network, thereby reducing the data transmission time delay and improving the data transmission efficiency.
The technical scheme of the invention can be applied to 5G (5 Generation) communication systems, 4G and 3G communication systems, and various future new communication systems such as 6G and 7G.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
Fig. 2 is a flowchart of a data routing method according to an embodiment of the present invention.
The data routing method of the embodiment of the present invention may be used at an Access device (also referred to as a routing device, a network node, etc.) side in a local area network, for example, a home Gateway (RG), an Evolved home Gateway (eRG), a preposed Radio Access Station/a Residential Radio Access network (PRAS), etc. I.e. the access device may perform the steps of the method shown in fig. 2.
Specifically, the data routing method may include the steps of:
step S201: receiving a routing table from a core network, wherein the routing table comprises a network target and an IP address of an access device corresponding to the network target, and user equipment indicated by the network target is directly connected with the access device corresponding to the network target;
step S202: receiving an IP packet from user equipment, wherein the IP packet comprises a target address of target user equipment;
step S203: matching the target address with the address indicated by each network target in the routing table to obtain a matching result;
step S204: and determining whether to locally route the IP packet according to the matching result.
It should be noted that the sequence numbers of the steps in this embodiment do not represent a limitation on the execution sequence of the steps.
In the embodiment of the present invention, each UPF corresponds to one or more IP pools, each IP pool corresponds to one Data Network Name (DNN), and the specific IP pool setting of the same DNN corresponding to the User Equipment (UE) in the same 5G LAN may be configured by a Network manager, a Dynamic Host Configuration Protocol (DHCP) server, and the like.
In the embodiment of the invention, the local area network comprises at least one access device and at least one user device. And the user equipment accesses the access equipment.
In a specific implementation, the core network may configure a routing table for each access device in the local area network. The routing table can indicate at least the access device (e.g., eRG or PRAS) through which packets directed to multiple destination addresses pass. Each access device has its corresponding routing table, and different access devices correspond to different routing tables. For example, the core network configures a corresponding routing table for each access station PRAS, and configures a corresponding routing table for each home gateway egrg.
In a specific implementation, the routing table includes IP addresses of network objects and their corresponding access devices. The network destination may represent an IP address, i.e., the destination address of the data packet. And the user equipment indicated by the network target is directly connected with the access equipment corresponding to the network target.
Referring specifically to fig. 4, in the lan structure shown in fig. 4, UE1 and UE2 are both directly connected to access station PRAS1, and the IP address of UE1 is 10.1.0.23, the IP address of UE2 is 10.1.0.24, and the IP address of access station PRAS1 is 10.1.0.25. Then when the network target is 10.1.0.23 in the routing table of PRAS1, the IP address of the corresponding access device is 10.1.0.25; when the network address is 10.1.0.24, the IP address of the corresponding access device is 10.1.0.25.
In a specific implementation of step S202, the access device may receive an IP packet from the sending UE, where the IP packet includes a target address of the target UE. Specifically, the header of the IP packet includes the IP address of the target UE. The access device may obtain the destination address by parsing a header of the IP packet.
In the specific implementation of step S203, the access device may look up the destination address of the destination UE in its corresponding routing table to obtain a matching result. The matching result indicates whether a network target consistent with the target address exists in the routing table, that is, whether the address indicated by the network target exists in the routing table is consistent with the target address.
Further in the specific implementation of step S204, the access device may determine whether to locally route the IP packet according to the matching result. The local routing of the IP packet means that the current access device directly forwards the IP packet without forwarding the IP packet to a core network.
In the embodiment of the invention, the routing table is configured in advance by the core network, so that the local routing can be directly carried out under the condition that the target user equipment is directly connected with the current access equipment. For the service between the user equipment in the local area network, the embodiment of the invention can realize the high-efficiency routing from equipment to equipment through the local routing between different access equipment so as to reduce the data transmission time delay and improve the data transmission efficiency.
In one non-limiting embodiment of the present invention, step S204 shown in fig. 2 may include the following steps: and if the matching result indicates that the network target matched with the target address exists in the routing table, the IP packet is locally routed.
As described above, the matching result may indicate whether the address indicated by the network target is consistent with the target address in the routing table, or may indicate whether the target user equipment is connected to the access device. When the target user equipment is connected with the access equipment, the access equipment can realize local routing, otherwise, the access equipment needs to be forwarded to the previous node and routed through a core network.
In a non-limiting embodiment of the present invention, the routing table further includes an IP address of a default access device, and step S204 shown in fig. 2 may include the following steps: and if the matching result shows that the address matched with the target address does not exist in the routing table, forwarding the IP packet to the default access equipment, wherein the default access equipment is a routing node at the upper stage of the current access equipment.
Different from the foregoing embodiment, in the case that the matching result indicates that the target user equipment is not connected to the access equipment, the IP packet may be forwarded through the default access equipment in the routing table, that is, the IP packet is forwarded by the upper-level routing node of the current access equipment.
For example, when the current access device is the PRAS, the PRAS forwards the IP packet to the home gateway egrg, and the home gateway egrg forwards the IP packet; when the current access equipment is the home gateway eRG, the home gateway eRG forwards the IP packet to the upper-level routing node, and the upper-level routing node forwards the IP packet.
In an embodiment of the present invention, please refer to table 1, where table 1 shows specific contents of a routing table. Table 1 shows that a packet with a destination address of 10.1.0.23 is locally routed by an access device with a destination address of 10.1.0.25, and a packet with a destination address of 10.1.0.24 is locally routed by an access device with a destination address of 10.1.0.25.
TABLE 1
Network object Access device
0.0.0.0 10.1.0.2
10.1.0.23 10.1.0.25
10.1.0.24 10.1.0.25
Referring collectively to fig. 4, UE1 and UE2 are both directly connected to access station PRAS1, with UE1 having an IP address of 10.1.0.23, UE2 having an IP address of 10.1.0.24, and access station PRAS1 having an IP address of 10.1.0.25. Table 1 is a routing table allocated to the access station PRAS1 by the core network, and the access station PRAS1 performs routing forwarding on the data packet according to the content indicated in table 1.
With continued reference to fig. 4, UE3 and UE4 are both directly connected to access station PRAS2, and the IP address of UE3 is 10.1.0.27, the IP address of UE4 is 10.1.0.28, and the IP address of access station PRAS1 is 10.1.0.26. As shown in table 2, table 2 shows that the packets with the destination addresses of 10.1.0.23 and 10.1.0.24 are routed locally by the access device with the address of 10.1.0.25, and the packets with the destination addresses of 10.1.0.27 and 10.1.0.28 are routed locally by the access device with the address of 10.1.0.26. Table 2 is a routing table allocated to the home gateway edrg 1 by the core network, and the home gateway edrg 1 performs routing forwarding on the data packet according to the content indicated in table 2.
TABLE 2
Network object Access device
0.0.0.0 10.1.0.1
10.1.0.23 10.1.0.25
10.1.0.24 10.1.0.25
10.1.0.27 10.1.0.26
10.1.0.28 10.1.0.26
Continuing with table 1, the access device corresponding to the network target 0.0.0.0 is the default access device, and the IP address of the default access device is 10.1.0.2, that is, the IP address of the home gateway edrg 1 shown in fig. 4. That is, in the case that the destination addresses of the data packets are not 10.1.0.23 and 10.1.0.24, the data packets will be forwarded by the home gateway errg 1.
Similarly, in table 2, the access device corresponding to the network target 0.0.0.0 is the default access device, and the IP address of the default access device is 10.1.0.1, that is, the network Node1 shown in fig. 5. That is, in the case that the destination address of the packet is not 10.1.0.23, 10.1.0.24, 10.1.0.27, or 10.1.0.28, the packet will be forwarded by the network Node1.
Referring to fig. 3, the data routing method according to the embodiment of the present invention may be used in a core network side in a local area network. I.e. the steps of the method shown in fig. 3 may be performed by the core network.
Specifically, the data routing method may include the steps of:
step S301: when a PDU session is established by user equipment, an IP address is distributed to the user equipment;
step S302: configuring a routing table for each access device according to the IP address of each access device and the IP address of each user device, wherein the routing table comprises a network target and the IP address of the access device corresponding to the network target, and the user device indicated by the network target is directly connected with the access device corresponding to the network target;
step S303: and sending the configured routing table to corresponding access equipment so that the access equipment can receive an IP packet from user equipment, wherein the IP packet comprises a target address of target user equipment, matching the target address with the address indicated by each network target in the routing table to obtain a matching result, and determining whether to locally route the IP packet according to the matching result.
In the embodiment of the invention, the core network can allocate the IP address for the UE. Specifically, when a PDU Session is established, a core network, such as a Session Management Function (SMF), selects an appropriate UPF, and selects an IP address from an IP pool corresponding to the UPF to allocate to the UE.
In the specific implementation of step S302, after allocating an IP address to each UE, the core network may configure a routing table for each access device according to the IP address of the UE and the IP address of the access device. The IP address of the access device may be assigned by the core network when the access device registers with the core network. Meanwhile, the core network also knows the connection relationship between each user equipment and each access equipment, that is, can know the user equipment and the access equipment which have the direct connection relationship. On this basis, the core network may configure a routing table based on the IP address of each UE, the IP address of each access device, and the connection relationship between each UE and each access device.
In the configured routing table, the user equipment indicated by the network target is directly connected with the access equipment corresponding to the network target. That is, for the current access device, in the routing table allocated to the current access device, the user equipment with the IP address indicated by the network target in the routing table is directly connected with the current access device.
It should be noted that, for the specific implementation of the core network allocating the IP address to the UE, reference may be made to the prior art, and details are not described herein again.
In one non-limiting embodiment of the present invention, step S302 shown in fig. 3 may include the following steps: determining whether to configure the user equipment in the routing table according to the service type corresponding to the PDU session; and/or determining whether to configure the user equipment in the routing table according to the identification of the user equipment.
In the embodiment of the present invention, when configuring the routing table, it needs to first determine whether the service corresponding to the user equipment or the PDU session established by the user equipment is authorized to allow local routing. Only if the local routing is authorized to be allowed, the core network configures the IP address of the user equipment as a network destination in the routing table. Otherwise, the IP address of the user equipment is not placed in the routing table.
Specifically, the authorization related to the local route may be pre-configured by the core network, and this is not limited in the embodiment of the present invention.
In one non-limiting embodiment of the present invention, the method shown in FIG. 3 may further comprise the steps of: and updating the routing table according to the state of the PDU session, or releasing the routing table.
Further, after the PDU session is ended, releasing the routing table; or when the PDU session is finished and a new PDU session is established, updating the routing table according to the IP address of the user equipment in the new PDU session.
In the embodiment of the invention, the state of the PDU session comprises establishment and ending. Since the core network assigns an IP address to the UE each time the PDU session is established, the UE may have different IP addresses in different PDU sessions. Therefore, after the current PDU session is ended, the currently used routing table indicates that the old network destination address is invalid, and at this time, the routing table may be directly released, or the routing rule corresponding to the old network destination address in the routing table (that is, the content of the old network destination address in the routing table, specifically, the content of the row in which the old network destination address is located in the routing table) may be deleted. Or when the current PDU session is ended and a new PDU session is established, the core network updates the network target in the routing table according to the address of the UE in the new PDU session, so as to realize local efficient routing.
In a specific application scenario of the present invention, please refer to fig. 4, and fig. 4 shows a network architecture diagram of a local area network.
In the local area network shown in fig. 4, a plurality of user equipments UE1, UE2, UE3 and UE4 are included. UE1 and UE2 access site PRAS1, and UE3 and UE4 access site PRAS1. The sites PRAS1 and PRAS2 access the home gateway egrg 1. The home gateway eRG1 accesses the core network (not shown) through the upper network Node1.
Specifically, the core network authorizes part of services authorized by part of the UEs to use the local routing based on subscription information of the UEs, the service types, and the like. The core network establishes and maintains a routing table (also called routing rule), determines information such as corresponding IP address, forwarding interface and gateway for the PDU session which allows local routing forwarding at network nodes such as PRAS and eRG, and adopts default routing rule for the IP address of other PDU sessions.
For example, the IP address of the access station PRAS1 is 10.1.0.25, the IP addresses of the suspended UEs 1 and 2 are 10.1.0.23 and 10.1.0.24, respectively, the IP address of the access station PRAS2 is 10.1.0.26, the IP addresses of the suspended UEs 3 and U4 are 10.1.0.27 and 10.1.0.28, the IP address of the home gateway egrg 1 is 10.1.0.2, and the IP address of the routing Node1 in the upper layer of the home gateway egrg 1 is 10.1.0.1.
The routing table of the access station PRAS1 refers to table 3, and the routing table of the home gateway egrg 1 refers to table 4. Wherein the network target and the network mask are used together to determine the target address. The specific way in which the network target and the netmask are used together to determine the target address may refer to Internet Protocol version 4 (ipv 4), which is not described herein again.
As shown in table 3, the gateway (i.e. the access device) corresponding to the network target 0.0.0.0 and the network mask 0.0.0 is the default access device, i.e. the home gateway egrg 1 pointed to by the IP address 10.1.0.2. The network destination 10.1.0.23 and the network mask 255.255.255.255 can determine that the destination address is 10.1.0.23, and the corresponding gateway is on the link, that is, the data packet with the destination address of 10.1.0.23 is routed and forwarded by the access device PRAS1 corresponding to the routing table. Similarly, the network destination 10.1.0.24 and the network mask 255.255.255.255 can determine that the destination address is 10.1.0.24, and the corresponding gateway is on the link, that is, the data packet with the destination address of 10.1.0.24 is routed and forwarded by the access device PRAS1 corresponding to the routing table.
TABLE 3
Figure BDA0003156740470000111
Figure BDA0003156740470000121
As shown in table 4, the gateway (i.e., access device) corresponding to the network target 0.0.0.0 and the network mask 0.0.0.0 is the default access device. The network destination 10.1.0.23 and the network mask 255.255.255.255 can determine that the destination address is 10.1.0.23, and the corresponding gateway is 10.1.0.25, that is, the data packet with the destination address of 10.1.0.23 is forwarded by the access device PRAS1 corresponding to 10.1.0.25. By analogy, the destination address that the network destination 10.1.0.28 and the network mask 255.255.255.255 can determine is 10.1.0.28, and the corresponding gateway is 10.1.0.26, that is, the data packet with the destination address of 10.1.0.28 is routed and forwarded by the access device PRAS2 corresponding to 10.1.0.26.
TABLE 4
Network object Network mask Gateway Interface
0.0.0.0 0.0.0.0 10.1.0.1 10.1.0.2
10.1.0.23 255.255.255.255 10.1.0.25 10.1.0.2
10.1.0.24 255.255.255.255 10.1.0.25 10.1.0.2
10.1.0.27 255.255.255.255 10.1.0.26 10.1.0.2
10.1.0.28 255.255.255.255 10.1.0.26 10.1.0.2
…… …… …… ……
It should be noted that, the core network may also configure hop numbers (Hops) in the routing table, which is not limited in this embodiment of the present invention.
When the IP packet sent by the UE passes through the nodes such as PRAS/eRG, the network node carries out routing forwarding according to a routing table issued by a core network. The core network can update the routing table according to the PDU session establishment, update, release and other information, and send the updated routing table to the corresponding node.
In the embodiment of the invention, in the design of protocol stacks such as PRAS and eRG, the IP address of the user data packet can be analyzed on the network nodes.
Referring to fig. 5, an embodiment of the present invention further discloses a data routing apparatus 50, where the data routing apparatus 50 includes:
a routing table receiving module 501, configured to receive a routing table from a core network, where the routing table includes a network target and an IP address of an access device corresponding to the network target, and a user device indicated by the network target is directly connected to the access device corresponding to the network target;
an IP packet receiving module 502, configured to receive an IP packet from a user equipment, where the IP packet includes a destination address of a destination user equipment;
a matching module 503, configured to match the destination address with an address indicated by each network destination in the routing table to obtain a matching result;
and a routing module 504, configured to determine whether to locally route the IP packet according to the matching result.
The data routing device 50 of the embodiment of the present invention may correspond to an Access device, such as a home Gateway (RG), an Evolved home Gateway (eRG), a preposed Radio Access Station/premise Radio Access network (PRAS), and a Chip having a data routing function in the Access device, such as an SOC (System-On-a-Chip), a baseband Chip, and the like; or the access equipment comprises a chip module with a data routing function; or to a chip module having a chip with data processing function, or to an access device.
Referring to fig. 6, an embodiment of the present invention further discloses a data routing apparatus 60, where the data routing apparatus 60 includes:
an address allocation module 601, configured to allocate an IP address to a user equipment when the user equipment establishes a PDU session;
a routing table configuring module 602, configured to configure a routing table for each access device according to an IP address of each access device and an IP address of each user device, where the routing table includes a network target and an IP address of an access device corresponding to the network target, and the user device indicated by the network target is directly connected to the access device corresponding to the network target;
a routing table sending module 603, configured to send a configured routing table to a corresponding access device, so that the access device receives an IP packet from a user equipment, where the IP packet includes a target address of a target user equipment, matches the target address with addresses indicated by network targets in the routing table to obtain a matching result, and determines whether to locally route the IP packet according to the matching result.
The data routing device 60 of the embodiment of the present invention may correspond to a Chip having a data routing function in a core network device, such as a System-On-a-Chip (SOC), a baseband Chip, etc.; or the core network equipment comprises a chip module with a data routing function; or to a chip module having a chip with a data processing function, or to a core network device.
For more details of the operation principle and the operation manner of the data routing apparatus 50 and the data routing apparatus 60, reference may be made to the relevant descriptions in fig. 2 to fig. 4, and details are not repeated here.
Each module/unit included in each apparatus and product described in the above embodiments may be a software module/unit, or may also be a hardware module/unit, or may also be a part of a software module/unit and a part of a hardware module/unit. For example, for each device or product applied to or integrated into a chip, each module/unit included in the device or product may be implemented by hardware such as a circuit, or at least a part of the module/unit may be implemented by a software program running on a processor integrated within the chip, and the rest (if any) part of the module/unit may be implemented by hardware such as a circuit; for each device or product applied to or integrated with the chip module, each module/unit included in the device or product may be implemented by using hardware such as a circuit, and different modules/units may be located in the same component (e.g., a chip, a circuit module, etc.) or different components of the chip module, or at least some of the modules/units may be implemented by using a software program running on a processor integrated within the chip module, and the rest (if any) of the modules/units may be implemented by using hardware such as a circuit; for each device and product applied to or integrated in the terminal, each module/unit included in the device and product may be implemented by using hardware such as a circuit, and different modules/units may be located in the same component (e.g., a chip, a circuit module, etc.) or different components in the terminal, or at least part of the modules/units may be implemented by using a software program running on a processor integrated in the terminal, and the rest (if any) part of the modules/units may be implemented by using hardware such as a circuit.
The embodiment of the present invention also discloses a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium, and when the computer program runs, the steps of the data routing method shown in fig. 2, fig. 3, or fig. 4 may be executed. The storage medium may include ROM, RAM, magnetic or optical disks, etc. The storage medium may further include a non-volatile memory (non-volatile) or a non-transitory memory (non-transient), and the like.
The embodiment of the invention also discloses access equipment which can comprise a memory and a processor, wherein the memory is stored with a computer program which can run on the processor. The processor, when executing the computer program, may perform the steps of the data routing method shown in fig. 2. The Access device includes, but is not limited to, a network node (also referred to as an Access device) side in a local area network, such as a home Gateway (RG), an Evolved home Gateway (edrg), a preposed Radio Access Station/premise Radio Access network (PRAS), and the like.
The embodiment of the invention also discloses core network equipment which can comprise a memory and a processor, wherein the memory is stored with a computer program which can run on the processor. The processor, when executing the computer program, may perform the steps of the data routing method shown in fig. 3.
The technical solution of the present invention is also applicable to different network architectures, including but not limited to relay network architecture, dual link architecture, vehicle-to-event architecture, and the like.
In this embodiment of the present application, the Core Network may be an evolved packet Core (EPC for short), a 5G Core Network (5G Core Network), or may be a novel Core Network in a future communication system. The 5G Core Network is composed of a set of devices, and implements Access and Mobility Management functions (AMF) of functions such as Mobility Management, user Plane Functions (UPF) providing functions such as packet routing and forwarding and QoS (Quality of Service) Management, session Management Functions (SMF) providing functions such as Session Management, IP address allocation and Management, and the like. The EPC may be composed of an MME providing functions such as mobility management, gateway selection, etc., a Serving Gateway (S-GW) providing functions such as packet forwarding, etc., and a PDN Gateway (P-GW) providing functions such as terminal address allocation, rate control, etc.
A Base Station (BS) in the embodiment of the present application, which may also be referred to as a base station device, is a device deployed in a Radio Access Network (RAN) to provide a wireless communication function. For example, the device providing the base station function in the 2G network includes a Base Transceiver Station (BTS), the device providing the base station function in the 3G network includes a node B (NodeB), the device providing the base station function in the 4G network includes an Evolved node B (eNB), and in a Wireless Local Area Network (WLAN), the device providing the base station function is an Access Point (AP), the device providing the base station function in the 5G New Radio (New Radio, NR) is a gNB (ng-eNB), where the gNB and the terminal communicate with each other by using an NR technology, the ng-eNB and the terminal communicate with each other by using an E-a (Evolved Universal Radio Access) technology, and both the gNB and the ng-eNB may be connected to the 5G core network. The base station in the embodiment of the present application also includes a device and the like that provide a function of the base station in a future new communication system.
The base station controller in the embodiment of the present application is a device for managing a base station, for example, a Base Station Controller (BSC) in a 2G network, a Radio Network Controller (RNC) in a 3G network, or a device for controlling and managing a base station in a future new communication system.
The network on the network side in the embodiment of the present invention refers to a communication network providing communication services for a terminal, and includes a base station of a radio access network, a base station controller of the radio access network, and a device on the core network side.
A terminal in this embodiment may refer to various forms of User Equipment (UE), an access terminal, a subscriber unit, a subscriber station, a mobile station (mobile station, MS), a remote station, a remote terminal, a mobile device, a user terminal, a terminal device (terminal equipment), a wireless communication device, a user agent, or a user equipment. The terminal device may also be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a handheld device with a Wireless communication function, a computing device or other processing device connected to a Wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a future 5G Network or a terminal device in a future evolved Public Land Mobile Network (PLMN), and the like, which is not limited in this embodiment.
In the embodiment of the application, a unidirectional communication link from an access network to a terminal is defined as a downlink, data transmitted on the downlink is downlink data, and the transmission direction of the downlink data is called as a downlink direction; the unidirectional communication link from the terminal to the access network is an uplink, the data transmitted on the uplink is uplink data, and the transmission direction of the uplink data is referred to as an uplink direction.
It should be understood that the term "and/or" herein is only one kind of association relationship describing the association object, and means that there may be three kinds of relationships, for example, a and/or B, and may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in this document indicates that the former and latter related objects are in an "or" relationship.
The "plurality" appearing in the embodiments of the present application means two or more.
The descriptions of the first, second, etc. appearing in the embodiments of the present application are only for illustrating and differentiating the objects, and do not represent the order or the particular limitation of the number of the devices in the embodiments of the present application, and do not constitute any limitation to the embodiments of the present application.
The term "connect" in the embodiments of the present application refers to various connection manners, such as direct connection or indirect connection, to implement communication between devices, which is not limited in this embodiment of the present application.
It should be understood that, in the embodiment of the present application, the processor may be a Central Processing Unit (CPU), and the processor may also be other general-purpose processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The above embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, the above-described embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product comprises one or more computer instructions or computer programs. The procedures or functions described in accordance with the embodiments of the present application are produced in whole or in part when the computer instructions or the computer program are loaded or executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire or wirelessly. It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
In the several embodiments provided in the present application, it should be understood that the disclosed method, apparatus and system may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative; for example, the division of the unit is only a logic function division, and there may be another division manner in actual implementation; for example, various elements or components may be combined or may be integrated in another system or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
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 network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be physically included alone, or two or more units may be integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer-readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute some steps of the methods described in the embodiments of the present invention.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected by one skilled in the art without departing from the spirit and scope of the invention, as defined in the appended claims.

Claims (13)

1. A data routing method, comprising:
receiving a routing table from a core network, wherein the routing table comprises a network target and an IP address of an access device corresponding to the network target, and user equipment indicated by the network target is directly connected with the access device corresponding to the network target;
receiving an IP packet from user equipment, wherein the IP packet comprises a target address of target user equipment;
matching the target address with the address indicated by each network target in the routing table to obtain a matching result;
and determining whether to locally route the IP packet according to the matching result.
2. The data routing method of claim 1, wherein the determining whether to route the IP packet locally based on the match comprises:
and if the matching result indicates that the network target matched with the target address exists in the routing table, the IP packet is locally routed.
3. The data routing method of claim 1, wherein the routing table further comprises an IP address of a default access device, and wherein the determining whether to route the IP packet locally according to the matching result comprises:
and if the matching result shows that the address matched with the target address does not exist in the routing table, forwarding the IP packet to the default access equipment, wherein the default access equipment is a routing node at the upper stage of the current access equipment.
4. A method of data routing, comprising:
when a PDU session is established by user equipment, an IP address is distributed to the user equipment;
configuring a routing table for each access device according to the IP address of each access device and the IP address of each user device, wherein the routing table comprises a network target and the IP address of the access device corresponding to the network target, and the user device indicated by the network target is directly connected with the access device corresponding to the network target;
and sending the configured routing table to corresponding access equipment so that the access equipment can receive an IP packet from user equipment, wherein the IP packet comprises a target address of target user equipment, matching the target address with the address indicated by each network target in the routing table to obtain a matching result, and determining whether to locally route the IP packet according to the matching result.
5. The data routing method of claim 4, wherein the configuring the routing table for each access device according to the IP address of each access device and the IP address of each user equipment comprises:
determining whether to configure the user equipment in the routing table according to the service type corresponding to the PDU session; and/or
And determining whether to configure the user equipment in the routing table according to the identification of the user equipment.
6. The data routing method of claim 4, further comprising:
and updating the routing table according to the state of the PDU session, or releasing the routing table according to the state of the PDU session.
7. The data routing method according to claim 6, wherein the updating the routing table according to the status of the PDU session or releasing the routing table comprises:
after the PDU conversation is finished, releasing a routing rule corresponding to a network target address corresponding to the PDU conversation in the routing table; or
And when the PDU session is ended and a new PDU session is established, updating the routing table according to the IP address of the user equipment in the new PDU session.
8. The data routing method of claim 4, wherein different access devices correspond to different routing tables.
9. A data routing device, comprising:
a routing table receiving module, configured to receive a routing table from a core network, where the routing table includes a network target and an IP address of an access device corresponding to the network target, and a user device indicated by the network target is directly connected to the access device corresponding to the network target;
an IP packet receiving module, configured to receive an IP packet from a user equipment, where the IP packet includes a target address of a target user equipment;
the matching module is used for matching the target address with the address indicated by each network target in the routing table to obtain a matching result;
and the routing module is used for determining whether to locally route the IP packet according to the matching result.
10. A data routing device, comprising:
the address allocation module is used for allocating an IP address for the user equipment when the user equipment establishes a PDU session;
a routing table configuration module, configured to configure a routing table for each access device according to the IP address of each access device and the IP address of each user device, where the routing table includes a network target and the IP address of the access device corresponding to the network target, and the user device indicated by the network target is directly connected to the access device corresponding to the network target;
and the routing table sending module is used for sending the configured routing table to corresponding access equipment so that the access equipment can receive an IP packet from the user equipment, the IP packet comprises a target address of the target user equipment, the target address is matched with the address indicated by each network target in the routing table to obtain a matching result, and whether the IP packet is locally routed is determined according to the matching result.
11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the data routing method according to any one of claims 1 to 8.
12. An access device comprising the data routing means of claim 9 or comprising a memory and a processor, said memory having stored thereon a computer program executable on said processor, wherein said processor executes said computer program to perform the steps of the data routing method of any one of claims 1 to 3.
13. A core network device comprising the data routing apparatus according to claim 10, or comprising a memory and a processor, the memory having stored thereon a computer program operable on the processor, wherein the processor executes the computer program to perform the steps of the data routing method according to any one of claims 4 to 8.
CN202110780694.5A 2021-07-09 2021-07-09 Data routing method and device Pending CN115604185A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110780694.5A CN115604185A (en) 2021-07-09 2021-07-09 Data routing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110780694.5A CN115604185A (en) 2021-07-09 2021-07-09 Data routing method and device

Publications (1)

Publication Number Publication Date
CN115604185A true CN115604185A (en) 2023-01-13

Family

ID=84841618

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110780694.5A Pending CN115604185A (en) 2021-07-09 2021-07-09 Data routing method and device

Country Status (1)

Country Link
CN (1) CN115604185A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200638A (en) * 2012-01-05 2013-07-10 中兴通讯股份有限公司 Local roll-out method, system and local gateway of user plane data
CN106330698A (en) * 2015-06-24 2017-01-11 中兴通讯股份有限公司 Local routing recovery method and device
CN107277882A (en) * 2016-04-07 2017-10-20 中国移动通信有限公司研究院 A kind of data routing method, device and base station

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200638A (en) * 2012-01-05 2013-07-10 中兴通讯股份有限公司 Local roll-out method, system and local gateway of user plane data
CN106330698A (en) * 2015-06-24 2017-01-11 中兴通讯股份有限公司 Local routing recovery method and device
CN107277882A (en) * 2016-04-07 2017-10-20 中国移动通信有限公司研究院 A kind of data routing method, device and base station

Similar Documents

Publication Publication Date Title
US11729586B2 (en) Methods and apparatus for establishing a group session in a mobile network for subscribers associated with a group
EP3703339B1 (en) Session processing method, device, and system
CN112055959B (en) Method, apparatus and medium for communication
CN111278107B (en) Information transmission method and communication equipment
US10034173B2 (en) MTC service management using NFV
CN107071916A (en) A kind of resource regulating method and relevant device
CN112715055A (en) Radio access network and method for accelerated network access
JP7147883B2 (en) Integrity protection handling in gNB-CU-UP
US10536457B2 (en) User data processing apparatus and method, and system
WO2017054661A1 (en) Wireless relay method, wireless relay, and wireless relay system
CN111567082A (en) Traffic steering between LTE and NR
EP4185009A1 (en) Packet forwarding method, apparatus and system
CN115699816A (en) Method for sidelink relay communication under dual connectivity
WO2019033281A1 (en) Methods and computing device for changing a user plane function
WO2023280088A1 (en) Data routing method and apparatus
WO2021078170A1 (en) Communication method and apparatus
US20210204334A1 (en) System, control plane device, user plane device and computer readable storage medium
EP4021072A1 (en) Data processing method, apparatus, and system
CN115604185A (en) Data routing method and device
CN104662991A (en) Apparatus and method for communication
JP2020503739A (en) Data processing method and device
CN114449585A (en) Method, device and system for accessing application to network
WO2023142981A1 (en) Communication method and related device
WO2024067200A1 (en) Communication method, apparatus and system
WO2022170798A1 (en) Strategy determining method and communication apparatus

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