SRv6 data packet forwarding method and device and storage medium
By deencapsulating and reencapsulating the packets on the SRv6 node, the complexity of SRv6 packets in edge computing and distributed networks is solved, and flexible adjustment of packet paths and policy simplification is achieved.
Patent Information
- Application Number
- CN202310659789.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-05
- Publication Date
- 2024-12-06
AI Technical Summary
SRv6 data packets cannot be re-encapsulated after being decapsulated in edge computing and distributed network scenarios, resulting in increased complexity of session and user-side traffic management and increased policy design complexity.
Deencapsulate the packet on the SRv6 node, reencapsulate the new IPv6 header and SRH, including reorganizing the source address, destination address and segment list, and processing it according to the forwarding table and logical interface to achieve the packet's Forwarding path adjustment.
Simplified the SRv6 policy design, reduced the complexity of strategy, and improved the flexibility and management efficiency of packet forwarding.
Smart Images

Figure CN119094418A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to an SRv6 data packet forwarding method, device and storage medium. Background Art
[0002] SRv6 (Segment Routing IPv6) refers to segment routing based on the Internet Protocol Version 6 (IPv6) forwarding plane, and is a new generation of Internet Protocol (IP) bearer protocol. It uses the existing IPv6 forwarding technology and implements network programmability through flexible IPv6 extension headers. SRv6 simplifies the network protocol type, has good scalability and programmability, can meet the diverse needs of more new services, provides high reliability, and has good application prospects in cloud services.
[0003] However, the current SRv6 segment identifier (SID) behavior is to decapsulate the data packet and then forward it to the specified forwarding table for forwarding, or insert SRH into the SRv6 data packet header. It cannot implement the action of decapsulating and then re-encapsulating the data packet, resulting in increased complexity in session and user plane traffic management, especially in scenarios such as edge computing and distributed networks based on SRv6. Summary of the invention
[0004] The embodiments of the present application provide an SRv6 data packet forwarding method, device, and storage medium to solve the technical problem of high complexity of SRv6 policy in related technologies.
[0005] In a first aspect, an embodiment of the present application provides an SRv6 data packet forwarding method applied to an SRv6 node, including:
[0006] Decapsulating the SRv6 data packet to obtain a user data message; the decapsulation refers to removing the Internet Protocol version 6 IPv6 header of the SRv6 data packet header or removing the IPv6 header and SRH of the SRv6 data packet;
[0007] Re-encapsulating the user data message, the re-encapsulated SRv6 data packet comprising a new IPv6 header, or a new IPv6 header and a new segment routing header SRH; the new SRH is used to indicate a new forwarding path of the re-encapsulated SRv6 data packet;
[0008] The re-encapsulated SRv6 data packet is forwarded to the next hop node.
[0009] In some embodiments, repackaging the user data message includes:
[0010] The address of the SRv6 node or the source address of the IPv6 header of the SRv6 data packet header before decapsulation is encapsulated as the source address of the new IPv6 header; the segment identifier SID of the next hop node in the segment list is encapsulated as the destination address of the new IPv6 header, and the user data message is encapsulated with a new SRH.
[0011] In some embodiments, encapsulating the user data message with a new SRH includes:
[0012] All segment lists are encapsulated into the new SRH to obtain the re-encapsulated SRv6 data packet.
[0013] In some embodiments, encapsulating the user data message with a new SRH includes:
[0014] The SIDs in the segment list except the SID of the next hop node are encapsulated into the new SRH.
[0015] In some embodiments, repackaging the user data message includes:
[0016] Encapsulate the address of the SRv6 node or the source address of the IPv6 header of the SRv6 data packet header before decapsulation as the source address of the new IPv6 header; encapsulate the SID of the next hop node in the segment list as the destination address of the new IPv6 header;
[0017] In the case where a SID is included in the segment list, the SRH is not encapsulated.
[0018] In some embodiments, repackaging the user data message includes:
[0019] Submit the user data message to the specified SRv6 forwarding table;
[0020] Based on the SRv6 forwarding table, a new IPv6 header is encapsulated for the user data message, or a new IPv6 header and a new SRH are encapsulated; wherein the SRv6 forwarding table includes a data packet matching rule and an SRv6 processing instruction, and the SRv6 processing instruction is used to instruct the encapsulation of the user data message.
[0021] In some embodiments, repackaging the user data message includes:
[0022] Submitting the user data message to the logical interface;
[0023] Based on the logical interface, the user data message is encapsulated with a new IPv6 header, or a new IPv6 header and a new SRH are encapsulated.
[0024] In some embodiments, encapsulating a new IPv6 header for the user data packet based on the logical interface, or encapsulating a new IPv6 header and a new SRH, includes:
[0025] Based on the SRv6 forwarding table corresponding to the logical interface, a new IPv6 header is encapsulated for the user data message, or a new IPv6 header and a new SRH are encapsulated; the SRv6 forwarding table includes a data packet matching rule and an SRv6 processing instruction, and the SRv6 processing instruction is used to instruct the encapsulation of the user data message.
[0026] In some embodiments, the SRv6 node is a branch point UPF network element or an uplink classifier UPF network element in an edge computing scenario of a mobile network.
[0027] In some embodiments, the SRv6 node is a distributed network unit in a distributed network scenario or a node in an autonomous domain.
[0028] In some embodiments, the SRv6 node is a V-UPF network element or a H-UPF network element between PLMNs in a roaming scenario based on the SRv6 user plane.
[0029] In a second aspect, an embodiment of the present application provides an SRv6 node, including a memory, a transceiver, and a processor;
[0030] A memory for storing a computer program; a transceiver for transmitting and receiving data under the control of the processor; and a processor for reading the computer program in the memory and performing the following operations:
[0031] Decapsulating the SRv6 data packet to obtain a user data message; the decapsulation refers to removing the IPv6 header of the SRv6 data packet header or removing the IPv6 header and SRH of the SRv6 data packet;
[0032] Re-encapsulating the user data packet, the re-encapsulated SRv6 data packet comprising a new IPv6 header, or a new IPv6 header and a new SRH; the new SRH is used to indicate a new forwarding path of the re-encapsulated SRv6 data packet;
[0033] The re-encapsulated SRv6 data packet is forwarded to the next hop node.
[0034] In some embodiments, repackaging the user data message includes:
[0035] The address of the SRv6 node or the source address of the IPv6 header of the SRv6 data packet header before decapsulation is encapsulated as the source address of the new IPv6 header; the SID of the next hop node in the segment list is encapsulated as the destination address of the new IPv6 header, and the user data message is encapsulated with a new SRH.
[0036] In some embodiments, encapsulating the user data message with a new SRH includes:
[0037] All segment lists are encapsulated into the new SRH to obtain the re-encapsulated SRv6 data packet.
[0038] In some embodiments, encapsulating the user data message with a new SRH includes:
[0039] The SIDs in the segment list except the SID of the next hop node are encapsulated into the new SRH.
[0040] In some embodiments, repackaging the user data message includes:
[0041] Encapsulate the address of the SRv6 node or the source address of the IPv6 header of the SRv6 data packet header before decapsulation as the source address of the new IPv6 header; encapsulate the SID of the next hop node in the segment list as the destination address of the new IPv6 header;
[0042] In the case where a SID is included in the segment list, the SRH is not encapsulated.
[0043] In some embodiments, repackaging the user data message includes:
[0044] Submit the user data message to the specified SRv6 forwarding table;
[0045] Based on the SRv6 forwarding table, a new IPv6 header is encapsulated for the user data message, or a new IPv6 header and a new SRH are encapsulated; wherein the SRv6 forwarding table includes a data packet matching rule and an SRv6 processing instruction, and the SRv6 processing instruction is used to instruct the encapsulation of the user data message.
[0046] In some embodiments, repackaging the user data message includes:
[0047] Submitting the user data message to the logical interface;
[0048] Based on the logical interface, the user data message is encapsulated with a new IPv6 header, or a new IPv6 header and a new SRH are encapsulated.
[0049] In some embodiments, encapsulating a new IPv6 header for the user data packet based on the logical interface, or encapsulating a new IPv6 header and a new SRH, includes:
[0050] Based on the SRv6 forwarding table corresponding to the logical interface, a new IPv6 header is encapsulated for the user data message, or a new IPv6 header and a new SRH are encapsulated; the SRv6 forwarding table includes a data packet matching rule and an SRv6 processing instruction, and the SRv6 processing instruction is used to instruct the encapsulation of the user data message.
[0051] In some embodiments, the SRv6 node is a branch point UPF network element or an uplink classifier UPF network element in an edge computing scenario of a mobile network.
[0052] In some embodiments, the SRv6 node is a distributed network unit in a distributed network scenario or a node in an autonomous domain.
[0053] In some embodiments, the SRv6 node is a V-UPF network element or a H-UPF network element between PLMNs in a roaming scenario based on the SRv6 user plane.
[0054] In a third aspect, an embodiment of the present application provides an SRv6 data packet forwarding device, including:
[0055] A first decapsulation module, configured to decapsulate the SRv6 data packet to obtain a user data message; the decapsulation refers to removing the IPv6 header of the SRv6 data packet header or removing the IPv6 header and SRH of the SRv6 data packet;
[0056] A first encapsulation module, configured to re-encapsulate the user data packet, wherein the re-encapsulated SRv6 data packet includes a new IPv6 header, or a new IPv6 header and a new SRH; the new SRH is used to indicate a new forwarding path of the re-encapsulated SRv6 data packet;
[0057] The first forwarding module is used to forward the re-encapsulated SRv6 data packet to a next hop node.
[0058] In some embodiments, the first packaging module includes a first packaging sub-module, wherein:
[0059] The first encapsulation submodule is used to encapsulate the address of the SRv6 node or the source address of the IPv6 header of the SRv6 data packet header before decapsulation as the source address of the new IPv6 header; encapsulate the SID of the next hop node in the segment list as the destination address of the new IPv6 header, and encapsulate the user data message with a new SRH.
[0060] In some embodiments, the first packaging submodule includes a first packaging unit, wherein:
[0061] The first encapsulation unit is used to encapsulate all segment lists into the new SRH to obtain the re-encapsulated SRv6 data packet.
[0062] In some embodiments, the first packaging submodule includes a second packaging unit, wherein:
[0063] The second encapsulation unit is configured to encapsulate the SIDs in the segment list except the SID of the next hop node into the new SRH.
[0064] In some embodiments, the first packaging module includes a second packaging sub-module, wherein:
[0065] The second encapsulation submodule is used to encapsulate the address of the SRv6 node or the source address of the IPv6 header of the SRv6 data packet header before decapsulation as the source address of the new IPv6 header; encapsulate the SID of the next hop node in the segment list as the destination address of the new IPv6 header;
[0066] In the case where a SID is included in the segment list, the SRH is not encapsulated.
[0067] In some embodiments, the first packaging module includes a first processing submodule and a third packaging submodule, wherein:
[0068] The first processing submodule is used to submit the user data message to a specified SRv6 forwarding table;
[0069] The third encapsulation submodule is used to encapsulate a new IPv6 header for the user data message based on the SRv6 forwarding table, or to encapsulate a new IPv6 header and a new SRH; wherein the SRv6 forwarding table includes a data packet matching rule and an SRv6 processing instruction, and the SRv6 processing instruction is used to instruct the encapsulation of the user data message.
[0070] In some embodiments, the first packaging module includes a second processing submodule and a fourth packaging submodule, wherein:
[0071] The second processing submodule is used to submit the user data message to the logical interface;
[0072] The fourth encapsulation submodule is used to encapsulate a new IPv6 header for the user data message based on the logical interface, or to encapsulate a new IPv6 header and a new SRH.
[0073] In some embodiments, the fourth packaging submodule includes a third packaging unit, wherein:
[0074] The third encapsulation unit is used to encapsulate a new IPv6 header for the user data message based on the SRv6 forwarding table corresponding to the logical interface, or to encapsulate a new IPv6 header and a new SRH; the SRv6 forwarding table includes data packet matching rules and SRv6 processing instructions, and the SRv6 processing instructions are used to instruct the encapsulation of the user data message.
[0075] In some embodiments, the SRv6 node is a branch point UPF network element or an uplink classifier UPF network element in an edge computing scenario of a mobile network.
[0076] In some embodiments, the SRv6 node is a distributed network unit in a distributed network scenario or a node in an autonomous domain.
[0077] In some embodiments, the SRv6 node is a V-UPF network element or a H-UPF network element between PLMNs in a roaming scenario based on the SRv6 user plane.
[0078] In a fourth aspect, an embodiment of the present application further provides a processor-readable storage medium, wherein the processor-readable storage medium stores a computer program, and the computer program is used to enable the processor to execute the SRv6 data packet forwarding method described in the first aspect as described above.
[0079] In a fifth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is used to enable a computer to execute the SRv6 data packet forwarding method described in the first aspect as described above.
[0080] In a sixth aspect, an embodiment of the present application further provides a communication device-readable storage medium, wherein the communication device-readable storage medium stores a computer program, and the computer program is used to enable the communication device to execute the SRv6 data packet forwarding method described in the first aspect above.
[0081] In a seventh aspect, an embodiment of the present application further provides a chip product readable storage medium, wherein the chip product readable storage medium stores a computer program, and the computer program is used to enable the chip product to execute the SRv6 data packet forwarding method described in the first aspect above.
[0082] The SRv6 data packet forwarding method, device and storage medium provided in the embodiments of the present application define the behavior of a new SRv6 node, decapsulate the SRv6 data packet and then encapsulate a new IPv6 header or recapsulate the new IPv6 header and a new SRH, so that the processing behavior of first decapsulating and then encapsulating the SRv6 data packet can be implemented on an SRv6 node, thereby simplifying the SRv6 policy design and reducing the complexity of the SRv6 policy. BRIEF DESCRIPTION OF THE DRAWINGS
[0083] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the following is a brief introduction to the drawings required for use in the embodiments or the related technical descriptions. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0084] Figure 1 It is a flowchart of the SRv6 data packet forwarding method provided in an embodiment of the present application;
[0085] Figure 2 It is a signaling interaction diagram of the SRv6 data packet forwarding method provided in an embodiment of the present application;
[0086] Figure 3 It is a structural diagram of the SRv6 data packet forwarding method provided in an embodiment of the present application in a distributed network;
[0087] Figure 4 It is a structural diagram of an SRv6 node provided in an embodiment of the present application;
[0088] Figure 5 It is a structural diagram of an SRv6 data packet forwarding device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0089] In the SRv6-based edge computing scenario, the branch point needs to determine the forwarding action of the user data packet according to the user data packet of the terminal, such as routing the user data packet to the edge or the center. Therefore, the branch point needs to decapsulate the outer user data packet header composed of IPv6 and Segment Routing Header (SRH) to expose the original user data packet, and then determine the next hop of the user data packet based on the user data packet filtering rules, and encapsulate a new SRH; or in some scenarios, the node that requires the SRv6 policy (Policy) decapsulates IPv6 and SRH, and then encapsulates new IPv6 and new SRH based on the processing logic of the user data packet. For example, in a distributed network, for network security, when the data is routed out of the current distributed node, the segment list (Segment list) in the SRv6 data packet should be stripped, and then based on the forwarding action, the user data packet is encapsulated with IPv6 and SRH containing the segment list to another distributed node. In the application embodiment, the user data packet refers to the SRv6 data packet.
[0090] However, the current SID behavior of SRv6 is to decapsulate the user data packet and forward it to the specified forwarding table for forwarding, or insert SRH in the SRv6 data packet header. It cannot implement the action of decapsulating and then encapsulating the data packet, resulting in increased complexity in session and user plane traffic management, especially in scenarios such as edge computing and distributed networks based on SRv6.
[0091] Based on the above technical problems, an embodiment of the present application proposes an SRv6 data packet forwarding method, which can simplify the SRv6 strategy and reduce the complexity of the SRv6 strategy.
[0092] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0093] Figure 1 is a flow chart of the SRv6 data packet forwarding method provided in an embodiment of the present application, such as Figure 1 As shown, an embodiment of the present application provides an SRv6 data packet forwarding method, the execution subject of which can be an SRv6 node, such as a terminal, a network device, etc. The method includes:
[0094] Step 101, decapsulate the SRv6 data packet to obtain a user data message; the decapsulation refers to removing the Internet Protocol version 6 IPv6 header of the SRv6 data packet header or removing the IPv6 header and SRH of the SRv6 data packet.
[0095] Specifically, the SRv6 node can be a terminal or a network device. After receiving the SRv6 data packet sent by the previous node, the SRv6 node can decapsulate the SRv6 data packet according to the SRv6 behavior instruction, remove the IPv6 header of the SRv6 data packet header, or remove the IPv6 header and SRH of the SRv6 data packet to obtain the user data message.
[0096] For example, the SRv6 node may be a terminal, and after receiving the SRv6 data packet sent by the previous node, the IPv6 header of the SRv6 data packet header may be removed.
[0097] For another example, the SRv6 node may be a base station, and after receiving the SRv6 data packet sent by the previous node, the IPv6 header and SRH of the SRv6 data packet may be removed.
[0098] Step 102, re-encapsulate the user data packet, the re-encapsulated SRv6 data packet includes a new IPv6 header, or a new IPv6 header and a new segment routing header SRH; the new SRH is used to indicate a new forwarding path of the re-encapsulated SRv6 data packet.
[0099] Specifically, after the SRv6 node decapsulates the SRv6 data packet, it can re-encapsulate the user data packet according to the SRv6 behavior instructions, and can encapsulate a new IPv6 header for the user data packet, or encapsulate a new IPv6 header and a new SRH for the user data packet. The new SRH can indicate a new forwarding path for the re-encapsulated SRv6 data packet, and the forwarding path can contain one or more SIDs.
[0100] For example, the SRv6 node may be a user plane function (UPF) network element, which may first decapsulate the received SRv6 data packet to obtain a user data message, and then encapsulate a new IPv6 header for the user data message.
[0101] For another example, the SRv6 node may be a radio access network (RAN) network element, which may first decapsulate a received SRv6 data packet to obtain a user data message, and then encapsulate the user data message with a new IPv6 header and a new SRH.
[0102] Step 103: forward the re-encapsulated SRv6 data packet to the next hop node.
[0103] Specifically, the SRv6 node may forward the re-encapsulated SRv6 data packet to the next-hop node according to the SID of the next-hop node in the re-encapsulated new IPv6 header or the new SRH.
[0104] The SRv6 data packet forwarding method provided in the embodiment of the present application can decapsulate the SRv6 data packet and then encapsulate a new IPv6 header or recapsulate a new IPv6 header and a new SRH by defining the behavior of a new SRv6 node, so that the processing behavior of first decapsulating and then encapsulating the SRv6 data packet can be implemented on an SRv6 node, which simplifies the SRv6 policy design and reduces the complexity of the SRv6 policy.
[0105] In some embodiments, repackaging the user data message includes:
[0106] The address of the SRv6 node or the source address of the IPv6 header of the SRv6 data packet header before decapsulation is encapsulated as the source address of the new IPv6 header; the segment identifier SID of the next hop node in the segment list is encapsulated as the destination address of the new IPv6 header, and the user data message is encapsulated with a new SRH.
[0107] Specifically, the behavior of a new SRv6 node can be defined so that after the SRv6 node decapsulates the SRv6 data packet, it can re-encapsulate the user data message according to the SRv6 behavior instruction. The IPv6 header generally contains a source address (Source Address, SA) and a destination address (Destination Address, DA). When encapsulating a new IPv6 header, for the source address in the IPv6 header, the address of the current SRv6 node itself can be used as the source address of the new IPv6 header, or the source address of the IPv6 header of the SRv6 data packet header before decapsulation can be encapsulated as the source address of the new IPv6 header; for the destination address in the IPv6 header, the SID of the next hop node in the segment list can be encapsulated as the destination address of the new IPv6 header. And encapsulate a new SRH.
[0108] For example, the behavior of a new SRv6 node may be End.D.Encaps.
[0109] The user data message is (A, Z), B is the SID on the source node A, and B is the source address of the SRv6 data packet. When node N receives a data packet with IPv6 DA as S, and S is the End.D.Encaps SID:
[0110] The SRv6 data packet received by node N is:
[0111] (B,S)(S,M,N;SL=0)(A,Z)
[0112] When the source address of the IPv6 header of the SRv6 data packet header before decapsulation is encapsulated as the source address of the new IPv6 header, and the SID of the next hop node in the segment list is encapsulated as the destination address of the new IPv6 header, the SRv6 data packet processed by node N may be:
[0113] (B, S1) (S2, S1; SL=1) (A, Z)
[0114] Or, when the address of the current SRv6 node itself is used as the source address of the new IPv6 header, and the SID of the next hop node in the segment list is encapsulated as the destination address of the new IPv6 header, the SRv6 data packet processed by node N can be:
[0115] (S, S1) (S2, S1; SL=1) (A, Z)
[0116] After receiving the SRv6 data packet, node N decapsulates the outer IPv6 header and SRH, matches the user data message with the specified processing logic, and then recapsulates the new IPv6 header and SRH and forwards it.
[0117] The SRv6 data packet forwarding method provided in the embodiment of the present application, by defining the behavior of a new SRv6 node, can provide multiple ways of encapsulating the IPv6 header when encapsulating a new IPv6 header, so that the processing behavior of first decapsulating and then encapsulating the SRv6 data packet can be implemented on an SRv6 node, which can adapt to the needs of different scenarios and reduce the complexity of the SRv6 policy.
[0118] In some embodiments, encapsulating the user data message with a new SRH includes:
[0119] All segment lists are encapsulated into the new SRH to obtain the re-encapsulated SRv6 data packet.
[0120] Specifically, after the SRv6 node decapsulates the SRv6 data packet, it can recapsulate the user data message according to the SRv6 behavior instruction. SRH generally includes a segment list and a remaining segment (Segment Left, SL). When encapsulating a new SRH, the entire segment list can be encapsulated into the new SRH.
[0121] The SRv6 data packet forwarding method provided in the embodiment of the present application defines the behavior of a new SRv6 node. When encapsulating a new SRH, all segment lists can be encapsulated into the new SRH, so that the processing behavior of first decapsulating and then encapsulating the SRv6 data packet can be implemented on an SRv6 node, thereby reducing the complexity of the SRv6 policy.
[0122] In some embodiments, encapsulating the user data message with a new SRH includes:
[0123] The SIDs in the segment list except the SID of the next hop node are encapsulated into the new SRH.
[0124] Specifically, after the SRv6 node decapsulates the SRv6 data packet, it can recapsulate the user data message according to the SRv6 behavior instruction. In the case of encapsulating the SID of the next hop node in the segment list as the destination address of the new IPv6 header, it is not necessary to encapsulate the entire segment list into the new SRH, but to encapsulate the SID of the segment list except the SID of the next hop node into the new SRH.
[0125] For example, a new SRv6 node behavior End.D.Encaps.Red (End.D.Encaps withReduced Encapsulation) may be defined to optimize End.D.Encaps.
[0126] The user data message is (A, Z), where B is the SID on the source node A and B is the source address of the SRv6 data packet.
[0127] The SRv6 data packet received by node N is:
[0128] (B,S)(S,M,N,S;SL=0)(A,Z)
[0129] When the SIDs except the SID of the next hop node in the segment list are encapsulated into the new SRH, the data packet processed by node N is:
[0130] (B, S1)(S2; SL=1)(A, Z)
[0131] The SRv6 data packet forwarding method provided in the embodiment of the present application defines the behavior of a new SRv6 node. When encapsulating a new SRH, the SID in the segment list except the SID of the next hop node can be encapsulated into the new SRH, thereby reducing the length of the SRH and saving communication resources.
[0132] In some embodiments, repackaging the user data message includes:
[0133] Encapsulate the address of the SRv6 node or the source address of the IPv6 header of the SRv6 data packet header before decapsulation as the source address of the new IPv6 header; encapsulate the SID of the next hop node in the segment list as the destination address of the new IPv6 header;
[0134] In the case where a SID is included in the segment list, the SRH is not encapsulated.
[0135] Specifically, after the SRv6 node decapsulates the SRv6 data packet, it can recapsulate the user data message according to the SRv6 behavior instruction. In the case of encapsulating the SID of the next hop node in the segment list as the destination address of the new IPv6 header, if the segment list contains only one SID, only the new IPv6 header can be encapsulated without encapsulating the SRH.
[0136] The SRv6 data packet forwarding method provided in the embodiment of the present application defines the behavior of a new SRv6 node. If the segment list contains only one SID, this SID can be encapsulated into a new IPv6 header instead of SRH, thereby saving communication resources.
[0137] In some embodiments, repackaging the user data message includes:
[0138] Submit the user data message to the specified SRv6 forwarding table;
[0139] Based on the SRv6 forwarding table, a new IPv6 header is encapsulated for the user data message, or a new IPv6 header and a new SRH are encapsulated; wherein the SRv6 forwarding table includes a data packet matching rule and an SRv6 processing instruction, and the SRv6 processing instruction is used to instruct the encapsulation of the user data message.
[0140] Specifically, in the related art, the SRv6 data packet is decapsulated and then forwarded to the corresponding forwarding table for forwarding, while the existing forwarding table can only match and forward the user data packet, but cannot perform corresponding SRv6 processing on the user data packet. Therefore, a new SRv6 forwarding table can be defined, and the new SRv6 forwarding table can contain data packet matching rules and SRv6 processing instructions. After the SRv6 node decapsulates the SRv6 data packet, the user data packet can be forwarded to the specified SRv6 forwarding table for processing. After the SRv6 forwarding table receives the user data packet, it can encapsulate the user data packet according to the existing source node SID behavior, or it can define a new SRv6 behavior. The difference between the new SRv6 behavior and the existing H.Encaps is that after encapsulating the SRv6 data packet, the SA of the IPv6 header encapsulated by the new SRv6 behavior is not the address of the current node, but the SA of the SRv6 data packet originally received, which can be used to determine the source of the data packet.
[0141] For example, a new SRv6 behavior may be End.Encaps.
[0142] After the current device N receives the data packet (S1, S2) (M, S2, SL = 1) (A, Z), the data packet is decapsulated into (A, Z) after processing by forwarding table 1 and forwarded to forwarding table 2. If forwarding table 2 uses H.Encaps processing, the data packet is recapsulated into (N, S3) (S3, X, SL = 0) (A, Z).
[0143] If forwarding table 2 uses End.Encaps processing, the data packet will be re-encapsulated as (S1, S3)(S3, X, SL=0)(A, Z).
[0144] The source addresses of the two methods are different. The latter is convenient for tracing the source because node N is the intermediate node of the current SRv6 policy.
[0145] The SRv6 data packet forwarding method provided in the embodiment of the present application, by defining a new SRv6 forwarding table, can decapsulate the SRv6 data packet and then encapsulate a new IPv6 header or recapsulate a new IPv6 header and a new SRH, so that the processing behavior of first decapsulating and then encapsulating the SRv6 data packet can be implemented on an SRv6 node, which simplifies the SRv6 policy design and reduces the complexity of the SRv6 policy.
[0146] In some embodiments, repackaging the user data message includes:
[0147] Submitting the user data message to the logical interface;
[0148] Based on the logical interface, the user data message is encapsulated with a new IPv6 header, or a new IPv6 header and a new SRH are encapsulated.
[0149] Specifically, in the related art, after the SRv6 data packet is decapsulated, it can be forwarded from a specified layer 2 or layer 3 adjacent interface. Therefore, a new logical interface can be defined. After the SRv6 data packet is decapsulated, the user data message can be forwarded to the specified logical interface, and the newly defined forwarding table or the previous forwarding table is applied to match the user data message again at the logical interface.
[0150] For example, a new SID behavior can be defined, and the new SID behavior can be End.DXSRv6. After the SRv6 data packet is decapsulated, the user data packet can be forwarded to the specified logical interface, and the logical interface then forwards the user data packet to the forwarding table. The forwarding table here can be a newly defined forwarding table or a previous forwarding table. Then, according to the forwarding behavior in the forwarding table, a new IPv6 header is encapsulated for the data packet, or a new IPv6 header and a new SRH are encapsulated.
[0151] The SRv6 data packet forwarding method provided in the embodiment of the present application can decapsulate the SRv6 data packet and then encapsulate a new IPv6 header or recapsulate a new IPv6 header and a new SRH by defining a new logical interface, so that the processing behavior of first decapsulating and then encapsulating the SRv6 data packet can be implemented on an SRv6 node, which simplifies the SRv6 policy design and reduces the complexity of the SRv6 policy.
[0152] In some embodiments, the encapsulating a new IPv6 header for the user data packet based on the logical interface, or encapsulating a new IPv6 header and a new SRH, includes:
[0153] Based on the SRv6 forwarding table corresponding to the logical interface, a new IPv6 header is encapsulated for the user data message, or a new IPv6 header and a new SRH are encapsulated; the SRv6 forwarding table includes a data packet matching rule and an SRv6 processing instruction, and the SRv6 processing instruction is used to instruct the encapsulation of the user data message.
[0154] Specifically, a new logical interface and a new SRv6 forwarding table can be defined, and the new SRv6 forwarding table can contain packet matching rules and SRv6 processing instructions. After the SRv6 packet is decapsulated, the user data message can be forwarded to the specified logical interface, and the logical interface forwards the user data message to the new SRv6 forwarding table. After receiving the user data message, the new SRv6 forwarding table can perform matching forwarding processing and corresponding SRv6 processing on the user data message.
[0155] The SRv6 data packet forwarding method provided in the embodiment of the present application can decapsulate the SRv6 data packet and then encapsulate a new IPv6 header or recapsulate a new IPv6 header and a new SRH by defining a new logical interface and a new SRv6 forwarding table, so that the processing behavior of decapsulating and then encapsulating the SRv6 data packet can be implemented on an SRv6 node, which simplifies the SRv6 policy design and reduces the complexity of the SRv6 policy.
[0156] In some embodiments, the SRv6 node is a branch point UPF network element or an uplink classifier UPF network element in an edge computing scenario of a mobile network.
[0157] Specifically, in the edge computing scenario of a mobile network, the SRv6 node may be a branching point UPF (BP UPF) network element or an uplink classifier UPF (ULCL UPF) network element. The BP UPF network element or the ULCL UPF network element needs to decapsulate the data packet and then encapsulate a new data packet header.
[0158] Figure 2 is a signaling interaction diagram of the SRv6 data packet forwarding method provided in an embodiment of the present application, such as Figure 2 As shown, the behavior of the BPUPF network element can perform corresponding operations according to the method described in the previous embodiment. The specific process can be as follows:
[0159] The newly defined End.D.Encaps SID is applied to the BP UPF network element or the ULCL UPF network element, so that after receiving the SRv6 data packet, the BP UPF network element or the ULCL UPF network element first decapsulates the IPv6 header or decapsulates the IPv6 header and the SRH to obtain the user data message, and then the user data message determines its next hop action based on the traffic filtering rule: then encapsulates it into the IPv6 header of the protocol data unit session anchor (PDU session anchor, PSA) 1 network element or the PSA2 network element or encapsulates it into the IPv6 header and SRH.
[0160] For example, the user data message is (A, Z).
[0161] Uplink:
[0162] RAN_out:
[0163] (gNB,BP / ULCL)(A,Z)H.Encaps.Red
[0164] BP / ULCL_out:
[0165] (BP / ULCL,PSA1 / PSA2)(A,Z)End.D.Encaps.Red
[0166] PSA1 / PSA2_out:
[0167] (A, Z)End.DT4, End.DT6, End.DT…
[0168] After receiving the uplink data packet, the BP UPF network element or ULCL UPF network element decapsulates the outer IPv6 header and SRH, and determines whether the destination address of the data packet is the edge DN or the central DN according to the traffic filtering rule, and encapsulates the corresponding segment list into the SRH. If the BP UPF network element or ULCL UPF network element decapsulates the data packet and determines to route the data packet to the edge DN according to the filtering rule, the segment list from the BP UPF network element or ULCL UPF network element to the PSA2 network element is encapsulated into the SRH (PSA2 connects the edge DN).
[0169] Downside:
[0170] The PSA network element encapsulates the segment list on the path from the PSA network element to the BP UPF network element or the ULCL UPF network element and then to the RAN network element in the SRH.
[0171] In addition, this embodiment can be used for the process of modifying the PSA network element based on the IPv6 multi-homing PDU session in session and service continuity (SSC) mode 3. This embodiment can also be used for the process of modifying the PDU session anchor network element attached to IPv6 multi-homing or UL CL.
[0172] The SRv6 data packet forwarding method provided in the embodiment of the present application defines the behavior of a new SRv6 node, so that the processing behavior of first decapsulating and then recapsulating the SRv6 data packet can be implemented on an SRv6 node, and can be applied in edge computing scenarios of mobile networks, making SRv6 applicable to more scenarios.
[0173] In some embodiments, the SRv6 node is a distributed network unit in a distributed network scenario or a node in an autonomous domain.
[0174] Specifically, in a distributed network unit or an autonomous domain, since the current distributed network unit or autonomous domain can only manage the node information of the distributed network unit or autonomous domain in which it is located, and for the security of the distributed network unit or autonomous domain, the SRv6 policy of each distributed network unit or autonomous domain should not be exposed to the outside. Therefore, when multiple distributed network units or autonomous domains need to work together, the distributed network units or autonomous domains can each plan the SRv6 policies in their respective domains, and the tail node of the current distributed network unit or autonomous domain can decapsulate the current SRH, and then re-encapsulate it to the segment list of another distributed node or autonomous domain based on the processing logic. The head node of the destination distributed or autonomous domain decapsulates the segment list between the distributed nodes or autonomous domains, and re-encapsulates the segment list of the distributed node according to the processing logic.
[0175] Figure 3 Schematic diagram of the structure of the SRv6 data packet forwarding method in a distributed network provided by an embodiment of the present application, such as Figure 3 As shown, the SRv6 data packet forwarding method of all the above embodiments except the application scenario embodiment can be applied in the distributed network scenario. Here, only one of them is used as an example. Both SRv6 device 1 and SRv6 device 2 apply the newly defined End.D.Encaps SID. SRv6 device 1 decapsulates the information about the SRH header of this node, and encapsulates it into the segment list of SRv6 device 2 after matching. After receiving the data packet, SRv6 device 2 decapsulates the segment list from SRv6 device 1 to SRv6 device 2, and encapsulates the segment list from this node to the destination.
[0176] The SRv6 data packet forwarding method provided in the embodiment of the present application defines the behavior of a new SRv6 node, so that the processing behavior of first decapsulating and then recapsulating the SRv6 data packet can be implemented on an SRv6 node, and can be applied in distributed network scenarios, making SRv6 applicable to more scenarios.
[0177] In some embodiments, the SRv6 node is a V-UPF network element or a H-UPF network element between PLMNs in a roaming scenario based on the SRv6 user plane.
[0178] Specifically, in a roaming scenario based on the SRv6 user plane, the SRv6 node can be a visited user plane function (V-UPF) network element or a home user plane function (Home UPF, H-UPF) network element between a public land mobile network (PLMN), and the SRv6 data packet forwarding method of all the above embodiments except the application scenario embodiment can be applied.
[0179] For example, in a roaming scenario based on the SRv6 user plane, after receiving the SRv6 data packet sent by the previous node, the V-UPF network element can decapsulate the SRv6 data packet according to the SRv6 behavior instruction to obtain the user data message, and then re-capsulate the user data message. The user data message can be encapsulated with a new IPv6 header, or the user data message can be encapsulated with a new IPv6 header and a new SRH.
[0180] The SRv6 data packet forwarding method provided in the embodiment of the present application defines the behavior of a new SRv6 node, so that the processing behavior of first decapsulating and then recapsulating the SRv6 data packet can be implemented on an SRv6 node, and can be applied in roaming scenarios based on the SRv6 user plane, making SRv6 applicable to more scenarios.
[0181] Figure 4 is a schematic diagram of the structure of an SRv6 node provided in an embodiment of the present application, such as Figure 4 As shown, the SRv6 node includes a memory 420, a transceiver 400, and a processor 410, wherein:
[0182] The memory 420 is used to store computer programs; the transceiver 400 is used to send and receive data under the control of the processor 410; the processor 410 is used to read the computer program in the memory 420 and perform the following operations:
[0183] Decapsulating the SRv6 data packet to obtain a user data message; the decapsulation refers to removing the IPv6 header of the SRv6 data packet header or removing the IPv6 header and SRH of the SRv6 data packet;
[0184] Re-encapsulating the user data packet, the re-encapsulated SRv6 data packet comprising a new IPv6 header, or a new IPv6 header and a new SRH; the new SRH is used to indicate a new forwarding path of the re-encapsulated SRv6 data packet;
[0185] The re-encapsulated SRv6 data packet is forwarded to the next hop node.
[0186] Specifically, in Figure 4 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by processor 410 and various circuits of memory represented by memory 420 are linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 400 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium, such as a wireless channel, a wired channel, an optical cable, and other transmission media. For different user devices, the user interface 430 may also be an interface capable of externally and internally connecting required devices, and the connected devices include but are not limited to a keypad, a display, a speaker, a microphone, a joystick, and the like.
[0187] The processor 410 is responsible for managing the bus architecture and general processing, and the memory 420 can store data used by the processor 410 when performing operations.
[0188] In some embodiments, the processor 410 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or a complex programmable logic device (CPLD), and the processor may also adopt a multi-core architecture.
[0189] The processor calls the computer program stored in the memory to execute any of the methods provided in the embodiments of the present application according to the obtained executable instructions. The processor and the memory can also be arranged physically separately.
[0190] In some embodiments, repackaging the user data message includes:
[0191] The address of the SRv6 node or the source address of the IPv6 header of the SRv6 data packet header before decapsulation is encapsulated as the source address of the new IPv6 header; the SID of the next hop node in the segment list is encapsulated as the destination address of the new IPv6 header, and the user data message is encapsulated with a new SRH.
[0192] In some embodiments, encapsulating the user data message with a new SRH includes:
[0193] All segment lists are encapsulated into the new SRH to obtain the re-encapsulated SRv6 data packet.
[0194] In some embodiments, encapsulating the user data message with a new SRH includes:
[0195] The SIDs in the segment list except the SID of the next hop node are encapsulated into the new SRH.
[0196] In some embodiments, repackaging the user data message includes:
[0197] Encapsulate the address of the SRv6 node or the source address of the IPv6 header of the SRv6 data packet header before decapsulation as the source address of the new IPv6 header; encapsulate the SID of the next hop node in the segment list as the destination address of the new IPv6 header;
[0198] In the case where a SID is included in the segment list, the SRH is not encapsulated.
[0199] In some embodiments, repackaging the user data message includes:
[0200] Submit the user data message to the specified SRv6 forwarding table;
[0201] Based on the SRv6 forwarding table, a new IPv6 header is encapsulated for the user data message, or a new IPv6 header and a new SRH are encapsulated; wherein the SRv6 forwarding table includes a data packet matching rule and an SRv6 processing instruction, and the SRv6 processing instruction is used to instruct the encapsulation of the user data message.
[0202] In some embodiments, repackaging the user data message includes:
[0203] Submitting the user data message to the logical interface;
[0204] Based on the logical interface, the user data message is encapsulated with a new IPv6 header, or a new IPv6 header and a new SRH are encapsulated.
[0205] In some embodiments, encapsulating a new IPv6 header for the user data packet based on the logical interface, or encapsulating a new IPv6 header and a new SRH, includes:
[0206] Based on the SRv6 forwarding table corresponding to the logical interface, a new IPv6 header is encapsulated for the user data message, or a new IPv6 header and a new SRH are encapsulated; the SRv6 forwarding table includes a data packet matching rule and an SRv6 processing instruction, and the SRv6 processing instruction is used to instruct the encapsulation of the user data message.
[0207] In some embodiments, the SRv6 node is a branch point UPF network element or an uplink classifier UPF network element in an edge computing scenario of a mobile network.
[0208] In some embodiments, the SRv6 node is a distributed network unit in a distributed network scenario or a node in an autonomous domain.
[0209] In some embodiments, the SRv6 node is a V-UPF network element or a H-UPF network element between PLMNs in a roaming scenario based on the SRv6 user plane.
[0210] It should be noted here that the above-mentioned SRv6 node provided in the embodiment of the present application can implement all the method steps implemented by the method embodiment in which the execution subject is the SRv6 node, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.
[0211] Figure 5 is a structural diagram of an SRv6 data packet forwarding device provided in an embodiment of the present application, such as Figure 5 As shown, the embodiment of the present application provides an SRv6 data packet forwarding device, including a first decapsulation module 501, a first encapsulation module 502 and a first forwarding module 503, wherein:
[0212] A first decapsulation module 501 is configured to decapsulate the SRv6 data packet to obtain a user data message; the decapsulation refers to removing the IPv6 header of the SRv6 data packet header or removing the IPv6 header and SRH of the SRv6 data packet;
[0213] The first encapsulation module 501 is used to re-encapsulate the user data packet, and the re-encapsulated SRv6 data packet includes a new IPv6 header, or a new IPv6 header and a new SRH; the new SRH is used to indicate a new forwarding path of the re-encapsulated SRv6 data packet;
[0214] The first forwarding module 503 is configured to forward the re-encapsulated SRv6 data packet to a next hop node.
[0215] In some embodiments, the first packaging module includes a first packaging sub-module, wherein:
[0216] The first encapsulation submodule is used to encapsulate the address of the SRv6 node or the source address of the IPv6 header of the SRv6 data packet header before decapsulation as the source address of the new IPv6 header; encapsulate the SID of the next hop node in the segment list as the destination address of the new IPv6 header, and encapsulate the user data message with a new SRH.
[0217] In some embodiments, the first packaging submodule includes a first packaging unit, wherein:
[0218] The first encapsulation unit is used to encapsulate all segment lists into the new SRH to obtain the re-encapsulated SRv6 data packet.
[0219] In some embodiments, the first packaging submodule includes a second packaging unit, wherein:
[0220] The second encapsulation unit is configured to encapsulate the SIDs in the segment list except the SID of the next hop node into the new SRH.
[0221] In some embodiments, the first packaging module includes a second packaging sub-module, wherein:
[0222] The second encapsulation submodule is used to encapsulate the address of the SRv6 node or the source address of the IPv6 header of the SRv6 data packet header before decapsulation as the source address of the new IPv6 header; encapsulate the SID of the next hop node in the segment list as the destination address of the new IPv6 header;
[0223] In the case where a SID is included in the segment list, the SRH is not encapsulated.
[0224] In some embodiments, the first packaging module includes a first processing submodule and a third packaging submodule, wherein:
[0225] The first processing submodule is used to submit the user data message to a specified SRv6 forwarding table;
[0226] The third encapsulation submodule is used to encapsulate a new IPv6 header for the user data message based on the SRv6 forwarding table, or to encapsulate a new IPv6 header and a new SRH; wherein the SRv6 forwarding table includes a data packet matching rule and an SRv6 processing instruction, and the SRv6 processing instruction is used to instruct the encapsulation of the user data message.
[0227] In some embodiments, the first packaging module includes a second processing submodule and a fourth packaging submodule, wherein:
[0228] The second processing submodule is used to submit the user data message to the logical interface;
[0229] The fourth encapsulation submodule is used to encapsulate a new IPv6 header for the user data message based on the logical interface, or to encapsulate a new IPv6 header and a new SRH.
[0230] In some embodiments, the fourth packaging submodule includes a third packaging unit, wherein:
[0231] The third encapsulation unit is used to encapsulate a new IPv6 header for the user data message based on the SRv6 forwarding table corresponding to the logical interface, or to encapsulate a new IPv6 header and a new SRH; the SRv6 forwarding table includes data packet matching rules and SRv6 processing instructions, and the SRv6 processing instructions are used to instruct the encapsulation of the user data message.
[0232] In some embodiments, the SRv6 node is a branch point UPF network element or an uplink classifier UPF network element in an edge computing scenario of a mobile network.
[0233] In some embodiments, the SRv6 node is a distributed network unit in a distributed network scenario or a node in an autonomous domain.
[0234] In some embodiments, the SRv6 node is a V-UPF network element or a H-UPF network element between PLMNs in a roaming scenario based on the SRv6 user plane.
[0235] Specifically, the above-mentioned SRv6 data packet forwarding device provided in the embodiment of the present application can implement all the method steps implemented by the method embodiment in which the execution subject is an SRv6 node, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as those of the method embodiment will not be described in detail here.
[0236] It should be noted that the division of units / modules in the above embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, the functional units in the various embodiments of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated units may be implemented in the form of hardware or in the form of software functional units.
[0237] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a processor-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the relevant technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0238] In some embodiments, a computer-readable storage medium is further provided, wherein the computer-readable storage medium stores a computer program, and the computer program is used to enable a computer to execute the SRv6 data packet forwarding method provided by the above-mentioned method embodiments.
[0239] Specifically, the above-mentioned computer-readable storage medium provided in the embodiment of the present application can implement all the method steps implemented by the above-mentioned method embodiments, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.
[0240] It should be noted that the computer-readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid-state drive (SSD)), etc.
[0241] It should also be noted that the terms "first", "second", etc. in the embodiments of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first" and "second" are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more.
[0242] In the embodiments of the present application, the term "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0243] In the embodiments of the present application, the term "plurality" refers to two or more than two, and other quantifiers are similar.
[0244] The technical solution provided in the embodiment of the present application can be applicable to a variety of systems, especially 5G systems. For example, the applicable system can be a global system of mobile communication (GSM) system, a code division multiple access (CDMA) system, a wideband code division multiple access (WCDMA) general packet radio service (GPRS) system, a long term evolution (LTE) system, a LTE frequency division duplex (FDD) system, a LTE time division duplex (TDD) system, an advanced long term evolution (LTE-A) system, a universal mobile telecommunication system (UMTS), a world-wide interoperability for microwave access (WiMAX) system, a 5G new radio (NR) system, etc. These various systems include terminal equipment and network equipment. The system may also include a core network part, such as an evolved packet system (EPS), a 5G system (5GS), etc.
[0245] The terminal device involved in the embodiment of the present application may be a device that provides voice and / or data connectivity to a user, a handheld device with a wireless connection function, or other processing devices connected to a wireless modem. In different systems, the name of the terminal device may also be different. For example, in a 5G system, the terminal device may be called a user equipment (UE). A wireless terminal device can communicate with one or more core networks (CN) via a radio access network (RAN). The wireless terminal device may be a mobile terminal device, such as a mobile phone (or a "cellular" phone) and a computer with a mobile terminal device. For example, it may be a portable, pocket-sized, handheld, computer-built-in or vehicle-mounted mobile device that exchanges language and / or data with a wireless access network. For example, personal communication service (PCS) phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs) and other devices. The wireless terminal device may also be referred to as a system, a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, an access point, a remote terminal device, an access terminal device, a user terminal device, a user agent, and a user device, but is not limited in the embodiments of the present application.
[0246] The network device involved in the embodiment of the present application may be a base station, which may include multiple cells providing services for the terminal. Depending on the specific application scenario, the base station may also be called an access point, or may be a device in the access network that communicates with the wireless terminal device through one or more sectors on the air interface, or other names. The network device may be used to interchange received air frames with Internet Protocol (IP) packets, and serve as a router between the wireless terminal device and the rest of the access network, wherein the rest of the access network may include an Internet Protocol (IP) communication network. The network device may also coordinate the attribute management of the air interface. For example, the network device involved in the embodiments of the present application may be a network device (Base Transceiver Station, BTS) in the Global System for Mobile communications (Global System for Mobile communications, GSM) or Code Division Multiple Access (Code Division Multiple Access, CDMA), or a network device (NodeB) in Wide-band Code Division Multiple Access (WCDMA), or an evolutionary network device (evolutional Node B, eNB or e-NodeB) in the long term evolution (long term evolution, LTE) system, a 5G base station (gNB) in the 5G network architecture (next generation system), or a home evolved Node B (Home evolved Node B, HeNB), a relay node, a home base station (femto), a pico base station (pico), etc., which is not limited in the embodiments of the present application. In some network structures, the network device may include a centralized unit (CU) node and a distributed unit (DU) node, and the centralized unit and the distributed unit may also be arranged geographically separately.
[0247] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.
[0248] In the embodiments of the present application, the term "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. In the embodiments of the present application, the term "plurality" refers to two or more than two, and other quantifiers are similar.
[0249] In this application, "determine B based on A" means that the factor A should be considered when determining B. It is not limited to "B can be determined based on A alone", but should also include: "determine B based on A and C", "determine B based on A, C and E", "determine C based on A, and further determine B based on C", etc. In addition, it can also include taking A as a condition for determining B, for example, "when A meets the first condition, use the first method to determine B"; for example, "when A meets the second condition, determine B", etc.; for example, "when A meets the third condition, determine B based on the first parameter", etc. Of course, it can also be a condition that takes A as a factor for determining B, for example, "when A meets the first condition, use the first method to determine C, and further determine B based on C", etc.
[0250] The UE involved in the embodiments of the present application may be a device that provides voice and / or data connectivity to a user, a handheld device with a wireless connection function, or other processing devices connected to a wireless modem, etc. Types of UE include mobile phones, vehicle user terminals, tablet computers, laptops, personal digital assistants, mobile Internet devices, wearable devices, etc.
[0251] The network node involved in the embodiment of the present application may be a base station, which may include multiple cells providing services for the terminal. Depending on the specific application scenario, the base station may also be called an access point AP, or may be a device in the access network that communicates with the wireless terminal device through one or more sectors on the air interface, or other names. The network node may be used to interchange received air frames with Internet Protocol (IP) packets, and serve as a router between the wireless terminal device and the rest of the access network, wherein the rest of the access network may include an Internet Protocol (IP) communication network. The network node may also coordinate the attribute management of the air interface. For example, the network node involved in the embodiments of the present application can be a network device (Base Transceiver Station, BTS) in the Global System for Mobile communications (GSM) or Code Division Multiple Access (CDMA), or a network device (NodeB) in Wide-band Code Division Multiple Access (WCDMA), or an evolved network device (evolutional Node B, eNB or e-NodeB) in the long-term evolution (LTE) system, a 5G base station (gNB) in the 5G network architecture (next generation system), a B5G base station in the beyond 5th generation mobile communication system (B5G), a 6G base station in the 6G (6th Generation Mobile Communication Technology) network architecture, or a home evolved Node B (HeNB), a relay node, a home base station (femto), a pico base station (pico), a millimeter wave base station, etc., which is not limited in the embodiments of the present application. In some network structures, the network nodes may include centralized unit (CU) nodes and distributed unit (DU) nodes, and the centralized unit and the distributed unit may also be arranged geographically separately.
[0252] Network devices and terminal devices can each use one or more antennas for multi-input multi-output (MIMO) transmission. MIMO transmission can be single-user MIMO (SU-MIMO) or multi-user MIMO (MU-MIMO). Depending on the form and number of antenna combinations, MIMO transmission can be 2D-MIMO, 3D-MIMO, FD-MIMO or massive-MIMO, or it can be diversity transmission, precoding transmission or beamforming transmission, etc.
[0253] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0254] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer executable instructions. These computer executable instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0255] These processor executable instructions may also be stored in a processor readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the processor readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0256] These processor-executable instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0257] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A segment routing SRv6 data packet forwarding method based on Internet Protocol version 6, It is characterized in that Applicable to SRv6 nodes, including: Decapsulating the SRv6 data packet to obtain a user data message; the decapsulation refers to removing the Internet Protocol Version 6 IPv6 header of the SRv6 data packet header or removing the IPv6 header and the segment routing header SRH of the SRv6 data packet; Re-encapsulating the user data packet, the re-encapsulated SRv6 data packet comprising a new IPv6 header, or a new IPv6 header and a new SRH; the new SRH is used to indicate a new forwarding path of the re-encapsulated SRv6 data packet; The re-encapsulated SRv6 data packet is forwarded to the next hop node.
2. The SRv6 data packet forwarding method according to claim 1, It is characterized in that The re-encapsulating the user data message comprises: The address of the SRv6 node or the source address of the IPv6 header of the SRv6 data packet header before decapsulation is encapsulated as the source address of the new IPv6 header; the segment identifier SID of the next hop node in the segment list is encapsulated as the destination address of the new IPv6 header, and the user data message is encapsulated with a new SRH.
3. The SRv6 data packet forwarding method according to claim 2, It is characterized in that The step of encapsulating the user data message with a new SRH comprises: All segment lists are encapsulated into the new SRH to obtain the re-encapsulated SRv6 data packet.
4. The SRv6 data packet forwarding method according to claim 2, It is characterized in that The step of encapsulating the user data message with a new SRH comprises: The SIDs in the segment list except the SID of the next hop node are encapsulated into the new SRH.
5. The SRv6 data packet forwarding method according to claim 1, It is characterized in that The re-encapsulating the user data message comprises: Encapsulate the address of the SRv6 node or the source address of the IPv6 header of the SRv6 data packet header before decapsulation as the source address of the new IPv6 header; encapsulate the SID of the next hop node in the segment list as the destination address of the new IPv6 header; In the case where a SID is included in the segment list, the SRH is not encapsulated.
6. The SRv6 data packet forwarding method according to claim 1, It is characterized in that The re-encapsulating the user data message comprises: Submit the user data message to the specified SRv6 forwarding table; Based on the SRv6 forwarding table, a new IPv6 header is encapsulated for the user data message, or a new IPv6 header and a new SRH are encapsulated; wherein the SRv6 forwarding table includes a data packet matching rule and an SRv6 processing instruction, and the SRv6 processing instruction is used to instruct the encapsulation of the user data message.
7. The SRv6 data packet forwarding method according to claim 1, It is characterized in that The re-encapsulating the user data message comprises: Submitting the user data message to the logical interface; Based on the logical interface, the user data message is encapsulated with a new IPv6 header, or a new IPv6 header and a new SRH are encapsulated.
8. The SRv6 data packet forwarding method according to claim 7, It is characterized in that The encapsulating a new IPv6 header for the user data message based on the logical interface, or encapsulating a new IPv6 header and a new SRH, includes: Based on the SRv6 forwarding table corresponding to the logical interface, a new IPv6 header is encapsulated for the user data message, or a new IPv6 header and a new SRH are encapsulated; the SRv6 forwarding table includes a data packet matching rule and an SRv6 processing instruction, and the SRv6 processing instruction is used to instruct the encapsulation of the user data message.
9. The SRv6 data packet forwarding method according to any one of claims 1 to 8, It is characterized in that The SRv6 node is a branch point user plane function UPF network element or an uplink classifier UPF network element in an edge computing scenario of a mobile network.
10. The SRv6 data packet forwarding method according to any one of claims 1 to 8, It is characterized in that The SRv6 node is a distributed network unit in a distributed network scenario or a node in an autonomous domain.
11. The SRv6 data packet forwarding method according to any one of claims 1 to 8, It is characterized in that The SRv6 node is a visit user plane function V-UPF network element or a home user plane function H-UPF network element between public land mobile networks PLMN in a roaming scenario based on the SRv6 user plane.
12. An SRv6 node, It is characterized in that Including memory, transceiver, processor; A memory for storing a computer program; a transceiver for transmitting and receiving data under the control of the processor; and a processor for reading the computer program in the memory and performing the following operations: Decapsulating the SRv6 data packet to obtain a user data message; the decapsulation refers to removing the IPv6 header of the SRv6 data packet header or removing the IPv6 header and SRH of the SRv6 data packet; Re-encapsulating the user data packet, the re-encapsulated SRv6 data packet comprising a new IPv6 header, or a new IPv6 header and a new SRH; the new SRH is used to indicate a new forwarding path of the re-encapsulated SRv6 data packet; The re-encapsulated SRv6 data packet is forwarded to the next hop node.
13. The SRv6 node according to claim 12, It is characterized in that The re-encapsulating the user data message comprises: The address of the SRv6 node or the source address of the IPv6 header of the SRv6 data packet header before decapsulation is encapsulated as the source address of the new IPv6 header; the SID of the next hop node in the segment list is encapsulated as the destination address of the new IPv6 header, and the user data message is encapsulated with a new SRH.
14. The SRv6 node according to claim 13, It is characterized in that The step of encapsulating the user data message with a new SRH comprises: All segment lists are encapsulated into the new SRH to obtain the re-encapsulated SRv6 data packet.
15. The SRv6 node according to claim 13, It is characterized in that The encapsulating the user data message with a new SRH comprises: The SIDs in the segment list except the SID of the next hop node are encapsulated into the new SRH.
16. The SRv6 node according to claim 12, It is characterized in that The re-encapsulating the user data message comprises: Encapsulate the address of the SRv6 node or the source address of the IPv6 header of the SRv6 data packet header before decapsulation as the source address of the new IPv6 header; encapsulate the SID of the next hop node in the segment list as the destination address of the new IPv6 header; In the case where a SID is included in the segment list, the SRH is not encapsulated.
17. The SRv6 node according to claim 12, It is characterized in that The re-encapsulating the user data message comprises: Submit the user data message to the specified SRv6 forwarding table; Based on the SRv6 forwarding table, a new IPv6 header is encapsulated for the user data message, or a new IPv6 header and a new SRH are encapsulated; wherein the SRv6 forwarding table includes a data packet matching rule and an SRv6 processing instruction, and the SRv6 processing instruction is used to instruct the encapsulation of the user data message.
18. The SRv6 node according to claim 12, It is characterized in that The re-encapsulating the user data message comprises: Submitting the user data message to the logical interface; Based on the logical interface, the user data message is encapsulated with a new IPv6 header, or a new IPv6 header and a new SRH are encapsulated.
19. The SRv6 node according to claim 18, It is characterized in that The encapsulating a new IPv6 header for the user data message based on the logical interface, or encapsulating a new IPv6 header and a new SRH, includes: Based on the SRv6 forwarding table corresponding to the logical interface, a new IPv6 header is encapsulated for the user data message, or a new IPv6 header and a new SRH are encapsulated; the SRv6 forwarding table includes a data packet matching rule and an SRv6 processing instruction, and the SRv6 processing instruction is used to instruct the encapsulation of the user data message.
20. The SRv6 node according to any one of claims 12 to 19, It is characterized in that The SRv6 node is a branch point UPF network element or an uplink classifier UPF network element in an edge computing scenario of a mobile network.
21. The SRv6 node according to any one of claims 12 to 19, It is characterized in that The SRv6 node is a distributed network unit in a distributed network scenario or a node in an autonomous domain.
22. The SRv6 node according to any one of claims 12 to 19, It is characterized in that The SRv6 node is a V-UPF network element or a H-UPF network element between PLMNs in a roaming scenario based on the SRv6 user plane.
23. An SRv6 data packet forwarding device, It is characterized in that include: A first decapsulation module, used to decapsulate the SRv6 data packet to obtain a user data message; The decapsulation refers to removing the IPv6 header of the SRv6 data packet header or removing the IPv6 header and SRH of the SRv6 data packet; A first encapsulation module, configured to re-encapsulate the user data packet, wherein the re-encapsulated SRv6 data packet includes a new IPv6 header, or a new IPv6 header and a new SRH; the new SRH is used to indicate a new forwarding path of the re-encapsulated SRv6 data packet; The first forwarding module is used to forward the re-encapsulated SRv6 data packet to a next hop node.
24. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and the computer program is used to enable a computer to execute the SRv6 data packet forwarding method according to any one of claims 1 to 11.
Citation Information
Cited By
Srv6 data packet forwarding method, apparatus and storage medium
EP4723579A1
