Method, device and system implemented by a first node in a segment routing network domain

By generating and using compressed segment identifiers, the problem of packet size caused by IPv6 extension headers in segment routing networks is solved and more efficient network transmission is achieved.

CN115428412BActive Publication Date: 2024-09-24HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202180027550.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-04-17
Filing Date
2021-02-22
Publication Date
2024-09-24
Estimated Expiration
2041-02-22

AI Technical Summary

Technical Problem

In a segment routing network, the segment routing header added to the IPv6 extension header may cause packets to grow infinitely, exceeding the packet size limit and affecting network transmission efficiency.

Method used

By generating a compressed segment identifier (cSID), a set of SIDs is compressed into a unique continuous data unit, a segment routing header containing the cSID is generated, and added to the message to reduce network bandwidth usage.

Benefits of technology

It effectively reduces the network bandwidth requirements of messages and improves the message sending rate and transmission efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115428412B_ABST
    Figure CN115428412B_ABST
Patent Text Reader

Abstract

A method implemented by a first node in a segment routing (SR) network domain includes: receiving a message configured to traverse the SR network domain according to a segment identifier (SID) from a second node in another network domain. The method also includes: obtaining compressed SIDs corresponding to some of the SIDs. The method also includes: generating a segment routing header (SRH) including a segment list. The method also includes: adding the SRH to the message, and then forwarding the message including the SRH to a third node in the SR network domain.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Cross-reference to related applications

[0002] This patent application claims the benefit of U.S. Provisional Patent Application No. 63 / 011,513, filed by Huaimo Chen on April 17, 2020, entitled “System and Method for Compressing Segment Identifiers,” the entire contents of which are incorporated herein by reference. Technical Field

[0003] The present invention generally describes techniques for forwarding packets in a segment routing network. More specifically, the present invention ensures that the packets are forwarded using a compressed segment routing header. Background Art

[0004] In traditional Internet Protocol (IP) network routing, IP packets are forwarded according to routing tables built by routing protocols. The route that an IP packet takes is usually the shortest path calculated by the routing protocol. In segment routing, the source selects a path and encodes it in the header as a list of sequentially arranged segments. The rest of the network executes the encoded instructions.

[0005] In the Internet Protocol version 6 (IPv6) data plane, a list of sequentially arranged segments is encoded in the routing extension header, but new hardware is required. In segment routing version 6 (SRv6), the IPv6 Segment Routing IPv6 Header (SRH) is added to the original message as an IPv6 extension header, which may cause the original message to grow indefinitely. The IPv6 extension header will increase the size of the message, causing the message to exceed the message size limit. Summary of the invention

[0006] A first aspect relates to a method implemented by a first node in a segment routing (SR) network domain. The method includes: the first node receives a message configured to pass through the SR network domain according to a segment identifier (SID) from a second node in another network domain, wherein a group of the SIDs includes a first number of common continuous data units; the first node obtains a compressed SID (cSID) corresponding to a group of the SIDs, wherein each cSID includes a unique continuous data unit corresponding to the SID, and the unique continuous data unit corresponds to a second number of data units; the first node generates a segment routing header (SRH) including a segment list, wherein the segment list includes segments arranged in order, the segment includes a container of SIDs that do not belong to the group and the cSID, the length of the container is greater than 128 bits, and the container also includes the common continuous data units in the group of the SIDs; the first node adds the SRH to the message; the first node forwards the message including the SRH to a third node in the SR network domain.

[0007] Optionally, according to any of the above aspects, in another implementation manner of the aspect, the container further includes a compression end indicator having a preset value, and the compression end indicator is attached to the end of the cSID.

[0008] Optionally, according to any of the above aspects, in another implementation of the aspect, the compression end indicator corresponds to a plurality of 0s or 1s having a length of the second number of data units.

[0009] Optionally, according to any of the above aspects, in another implementation of the aspect, the compression end indicator corresponds to the last cSID in the sequence.

[0010] Optionally, according to any of the above aspects, in another implementation of the aspect, the container also includes one or more paddings inserted after the compression end indicator to fill the gaps in the container, wherein the length of each padding is the second number of data units.

[0011] Optionally, according to any one of the above aspects, in another implementation of the aspect, obtaining the cSID also includes: generating the SID according to the SR policy of the SR network domain; for each SID in a group of the SIDs, extracting a unique continuous data unit in the corresponding SID as the cSID.

[0012] Optionally, according to any one of the above aspects, in another implementation manner of the aspect, the method further includes: receiving the cSID; and acquiring the cSID includes: identifying the received cSID.

[0013] Optionally, according to any of the above aspects, in another implementation manner of the aspect, the first node is an entry node or a border node in the SR network domain.

[0014] A second aspect relates to a method implemented by a first node in a segment routing (SR) network domain. The method includes: the first node receives a message including an Internet Protocol (IP) header and a segment routing header (SRH) from a second node in the SR network domain, wherein the message is configured to pass through the SR network domain according to a segment identifier (SID), a group of the SIDs including a first number of common consecutive data units, the IP header including a destination address (DA) of the message, the SRH including a segment list and a segment left (SL) field, the segment list including segments arranged in order, the segments including a container of SIDs that do not belong to the group and compressed SIDs (cSIDs), the length of the container being greater than 128 bits, and the container also including a common consecutive prefix of the first number of data units in a group of SIDs and an end of compression (end of compression, End-c) indicator, each of the cSIDs includes a unique continuous data unit corresponding to the SID, and the unique continuous data unit corresponds to a second number of data units; the first node uses one of the cSIDs to update a portion of the DA in the IP header according to the sequence; the first node forwards the message including the IP header and the SRH to a third node in the SR network domain according to the updated DA.

[0015] Optionally, according to any of the above aspects, in another implementation of the aspect, the common prefix in the container is before the first cSID of the multiple data units, and the first cSID is before the second cSID of the multiple data units, and the method further includes: determining whether the second cSID is not End-c, wherein the current segment is indicated by the SL field.

[0016] Optionally, according to any of the above aspects, in another implementation of the aspect, the method further includes: in response to determining that the second cSID is not End-c, copying the second cSID to the partial DA, wherein the partial DA is before the common prefix of the first number of common continuous data units in the DA.

[0017] Optionally, according to any of the above aspects, in another implementation of the aspect, the method further includes: starting from the second cSID in the current segment, moving the cSID in the current segment to the left by the second number of data units, copying the first cSID of the second number of data units in the next segment to the position of the last cSID of the second number of data units in the current segment, and copying the first cSID in the current segment to the partial DA.

[0018] Optionally, according to any of the above aspects, in another implementation of the aspect, the next segment is indicated by the SL value minus 1, and the first cSID of the second number of data units is at the leftmost in the next segment.

[0019] Optionally, according to any of the above aspects, in another implementation of the aspect, the method further includes: determining whether the second cSID of the second number of data units in the next segment is a c-Tag, wherein the second cSID is after the first cSID in the next segment.

[0020] Optionally, according to any of the above aspects, in another implementation of the aspect, the c-Tag corresponds to multiple 1s of the second number of data units, and the End-c corresponds to multiple 0s of the second number of data units; or the c-Tag corresponds to multiple 0s of the second number of data units, and the End-c corresponds to multiple 1s of the second number of data units.

[0021] Optionally, according to any of the above aspects, in another implementation of the aspect, the method further includes: removing the next segment by copying the current segment to the next segment and reducing the SL by 1 when the second cSID is determined to be the c-Tag.

[0022] Optionally, according to any of the above aspects, in another implementation of the aspect, the method further includes: when the second cSID is determined not to be the c-Tag, moving the cSID to the left by the second number of data units starting from the second cSID in the next segment, and copying the c-Tag to the position of the last cSID in the next segment.

[0023] Optionally, according to any of the above aspects, in another implementation manner of the aspect, the first node is an intermediate node in the SR network domain.

[0024] Optionally, according to any of the above aspects, in another implementation of the aspect, the data unit is a byte, a half byte or a bit.

[0025] The third aspect relates to a node device. The node device comprises: a receiver for receiving a message; a transmitter for sending the message; a memory coupled to the receiver and the transmitter, wherein the memory stores instructions; and a processor coupled to the memory, wherein the processor is used to execute the instructions so that the node device performs any method disclosed herein.

[0026] A fourth aspect relates to a system, which includes: a first node; and a second node communicating with the first node device, wherein the first node or the second node executes any method disclosed herein.

[0027] The fifth aspect relates to a message forwarding device for use in a segment routing (SR) network domain. The device comprises: a message receiving module, for receiving the message for processing; a message sending module coupled to the message receiving module, wherein the message sending module is used to forward the message to another node; a storage module coupled to at least one of the message receiving module or the message sending module, wherein the storage module is used to store instructions; a message processing module coupled to the storage module, wherein the message processing module is used to execute the instructions stored in the storage module to perform any method disclosed herein.

[0028] For clarity, any of the above-described embodiments may be combined with any one or more of the other embodiments described above to create new embodiments within the scope of the invention.

[0029] These and other features will become more clearly understood from the following detailed description taken in conjunction with the accompanying drawings and claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] For a more complete understanding of the present invention, reference is now made to the following brief description taken in conjunction with the accompanying drawings and detailed description, wherein like reference numerals represent like parts.

[0031] Figure 1 A network operating according to one embodiment is shown.

[0032] Figure 2A segment routing header (SRH) is shown.

[0033] Figure 3 A container for compressed segment identifiers (cSIDs) is shown.

[0034] Figure 4A A container of cSID provided by one embodiment is shown.

[0035] Figure 4B A cSID container provided by another embodiment is shown.

[0036] Figure 5 An embodiment of a method for forwarding messages implemented by nodes in a segment routing (SR) network domain.

[0037] Figure 6 Schematic diagram of nodes in the SR network domain.

[0038] Figure 7 A schematic diagram of an embodiment of a message forwarding device in an SR network domain. DETAILED DESCRIPTION

[0039] First, it should be understood that although illustrative implementations of one or more embodiments are provided below, the disclosed systems and / or methods may be implemented using any number of techniques, whether currently known or existing. The present invention should in no way be limited to the illustrative implementations, drawings, and techniques described below, including the exemplary designs and implementations illustrated and described herein, but may be modified within the scope of the appended claims and their full scope of equivalents.

[0040] Figure 1A network 150 (e.g., an aggregation of one or more networks of one or more different entities) operating in accordance with one embodiment is shown. As shown, network 150 includes client networks 151 and 159 (in one embodiment, they are the same network), both of which are communicatively coupled via edge nodes 161 and 167 (as entry nodes or exit nodes) in network 160. Network 160 includes N domains (162, 164) composed of network nodes, where N is a non-zero integer, and these network nodes are interconnected via one or more boundary nodes (163). Both client networks 151 and 159 can include hosts (e.g., terminal nodes) with upper layer applications that communicate via network 150. In one embodiment, some hosts in client networks 151 and / or 159 support segment routing because they can generate and process segment routing (SR) messages. The terminal nodes in client networks 151 and 159 can send messages (or native packets) to edge nodes 161 and 167 in network 160. The message may be an Internet Protocol version 4 (IPv4) message, an Internet Protocol version 6 (IPv6) message, an Ethernet frame / message, or other protocol messages.

[0041] In one embodiment, edge nodes 161 and 167 process packets received from networks 151 and 159, which processing may include encapsulating or otherwise processing these packets into SR (or SR Multiprotocol Label Switching (MPLS)) packets, for example, adding an SR header (SRH) (sometimes also called a segment routing extension header) (possibly also another IP header) to these packets according to the segment routing policy determined by the data plane.

[0042] In one embodiment, an edge node (161, 167) or another node in the network 160 determines a segment routing policy (e.g., a segment list including segments representing IP addresses (e.g., IPv6 addresses)) to be applied to packets in different packet flows. These policies may be changed based on network conditions, network programming, etc. In one embodiment, the segment routing policy specifies the addition of one or more SRHs 182, each SRH 182 including one or more segment lists 188, so that the segment routing message 175 includes one or more SRHs 182. In one embodiment, upon receiving an original message 170 that does not include an SRH (which may include an IP destination address, i.e., a segment identifier (SID) / IP address of the receiving node 161 or 167), the receiving node 161 or 167 encapsulates the original message 170 in an SR message 175. The SR message 175 includes one or more added SRHs 182, each SRH 182 including one or more segment lists 188. Node 161 or 167 also adds an IP header 181 including the destination address (DA) of the message. In one embodiment, receiving message 170 ( Figure 1 ), receiving node 161 or 167 adds one or more SRHs 182, so that the segment routing message includes one or more added SRHs 182, each SRH 182 including one or more segment lists 188. In contrast, for each of these scenarios, a single SRH 182 can be used, which includes all segments in one segment list 188.

[0043] A SID (e.g., an SRv6 SID) includes location information (locator) and a function (optionally including any parameters). The location information indicates which node in the multi-domain network 160 the message 170 is to be routed to in order to perform the function. The function can be any possible function including any optional parameters. In one embodiment, a group of SIDs includes two common parts: one part is the same common prefix of the first B bits, and the other part is the common function and parameters of the last R bits. In one embodiment, since the last R bits of each SID in this group are not used, the last R bits are common. That is, the other bits of each SID in this group (i.e., the first 128 to R bits) are used to guide the message and perform the function. The middle L bits of these SRv6 SIDs are different, where L = 128-B-R bits. Accordingly, this group of SIDs can be compressed into cSIDs, each cSID including L bits of unique location information. In one embodiment, the segment list 188 in the SRH 182 includes one or more cSIDs.

[0044] SRH 182 also includes a plurality of fields, such as a flag field having a C subfield 183 and a tag field having a cSID pointer (cP) subfield 184. In one embodiment, the C subfield 183 is used to indicate whether the next segment in the sequence is in compressed form (i.e., cSID) or regular form (i.e., SID). The cP subfield 184 is used to point to a pointer to the active (or next) cSID.

[0045] After adding the SRH 182 and IP header 181 to the message 175, the edge nodes 161 and 167 forward the encapsulated message to the intermediate nodes 165 and 166. The intermediate nodes 165 and 166 receive the encapsulated message 175 and update the destination address (DA) in the IP header 181 according to the cSID in the segment list 188 (by using the value in the cP subfield 184). Accordingly, the intermediate nodes 165 and 166 forward the encapsulated message 175 (which includes the updated IP header 181) to the next node in the multi-domain network 160 (e.g., the border node 163 or the edge node 167) according to the updated DA. Once the encapsulated message 175 passes through the multi-domain network 160, the edge nodes 161 and 167 eventually decapsulate or remove the SRH 182 (and possibly the IP header 181), and forward the original message 179 to the network 159 or 151.

[0046] This document discloses a technique for compressing SRH 182 in the following manner: compressing a group of SIDs including common B-bit position information and common R-bit functions (which may also be parameters) into a cSID including only unique L-bit position information. By compressing the group of SIDs in this manner, forwarding encapsulated messages reduces network bandwidth, thereby increasing message sending rate.

[0047] Figure 2 FIG. 2 shows a segment routing header (SRH) 200. The SRH 200 is similar to Figure 1Segment routing is defined in detail in the Internet Engineering Task Force (IETF) draft "SRv6 Network Programming" published by C. Filsfils et al. on October 7, 2020 (https: / / datatracker.ietf.org / doc / draft-filsfils-spring-srv6-network-programming). Segment routing utilizes the source routing paradigm. It can be understood that the ingress node directs the message through a list of instructions arranged in sequence. The instructions in this column can be called segments. Each of these instructions represents a function to be called at a specific location in the network. The function is defined locally on the node that executes the function. This function can provide instructions ranging from moving forward in the segment list to any complex user-defined behavior. The IETF document describes how to insert network instructions (functions) into the IPv6 header using the Segment Routing Header (SRH). For example, a 128-bit SRv6 SID (IPv6 destination address) includes location information with a common prefix location information (e.g., B bits) and a unique suffix (L bits, sometimes called a cSID). The location information indicates which node the message is to be routed to in order to perform a function also included in the SID. The function can be any possible function including any optional parameters. The length of the SID is usually fixed.

[0048] As shown in the figure, SRH 200 includes a plurality of fields for increasing the data message. Specifically, SRH 200 includes a next header field 211, a header extension length (Hdr Ext Len) field 213, a routing type field 215, a remaining segments (SegmentsLeft, SL) field 220, a last entry field 231, a flag field 235, a label field 237 and a segment list 239.

[0049] The Next Header field 211 includes an 8-bit selector. The Next Header field 211 is used to identify the type of header that follows the SRH. The Hdr Ext Len field 213 includes an 8-bit unsigned integer. The Hdr Ext Len field 213 is used to indicate the length of the routing header (RH) in units of 8 octets, excluding the first 8 octets. The Routing Type field 215 includes an 8-bit identifier for a specific routing header variant. The SL field 220 includes an 8-bit unsigned integer. The SL field 220 is used to identify the number of remaining segments in the segment list 239 before reaching the final destination. The SL value decreases in each segment. The Last Entry field 231 includes the index of the last element in the segment list.

[0050] The flag field 235 includes an 8-bit flag. In one embodiment, the flag field 235 includes a C subfield 240. The C subfield 240 is used to indicate whether the next segment in the sequence is a cSID or a SID. For example, the C value can be set to 0 to indicate that the next segment is not a cSID (or more precisely, a SID). When the C value is 1, the next segment is a cSID in the cSID container 280.

[0051] The tag field 237 is used to tag the messages associated with the SRH 200 as part of a class or group of messages. In one embodiment, the tag field 237 includes a cSID pointer (cP) subfield 260. The cP subfield 260 is used to point to the pointer of the active (or next) cSID. In one embodiment, if the size and position of the cSID in the segment list 239 are in bytes, nibbles, or bits, the size of the cP subfield 260 is 4, 5, or 7 bits. If the position of the cSID is expressed in bytes, the last 4 bits of the original 16-bit tag field 237 are used as the cP subfield 260. For example, the pointer will point to the first byte of the active or next cSID indicated by the SL field 220 in a segment. If the position of the cSID is expressed in nibbles, the last 5 bits of the original 16-bit tag field 237 are used as the cP subfield 260. In this case, the pointer in the cP subfield 260 would point to the first nibble of the active or next cSID in the segment. On the other hand, if the position of the cSID is represented in bits, the last 7 bits of the original 16-bit tag field 237 are defined as the cP subfield 260. The pointer in the cP subfield 260 would point to the first bit of the active or next cSID in the segment.

[0052] Segment list 239 includes one or more segments. The order of these segments reflects the path of the corresponding message. Each segment (or segment list [i]) can be identified by the value (SL value) of SL field 220 as an index, and the size of each segment is 128 bits. A segment includes one SID, or one or more cSIDs. Figure 2 As shown, segment list 239 may include containers (or groups) of cSIDs (i.e., segment list [1] to [M] 280) and SIDs (i.e., segment list [0], segment list [M+1] to segment list [K] 285). In another embodiment, segment list 239 may include only cSIDs.

[0053] Figure 3 Container 300 of cSID (hereinafter referred to as container) is shown. Figure 3 As shown, container 300 includes multiples (N times) of 128 bits. Container 300 includes a common prefix for compression (CPC) 310, a compressed SID (cSID) 320, and an end of container (End-c) 330. CPC310 is a public IPv6 prefix in a segment routing (SR) network domain. For example, CPC 310 is a continuous common data unit in a certain group of SIDs (i.e., a common prefix of B bits in the location information). In one embodiment, CPC310 indicates the length L of the cSID. That is, CPC 310 combined with cSID 320 is a part of the SRv6 SID used to guide messages and perform functions. The other part of the SRv6 SID (i.e., the last 128-B-L bits) is not used.

[0054] At the end of the cSID, container 300 includes an end of container (End-c) 330 after the last cSID to indicate the end of the container and / or the end of compression. End-c 330 has the same length as the cSID (e.g., L bits). In one embodiment, the L bits of End-c 330 are all 0, which is reserved for End-c 330. In another embodiment, the L bits of End-c 330 are all 1. In another embodiment, the first or last uncompressed SID can be included in the segment list before or after container 300.

[0055] Figure 4A FIG. 4 shows a container (hereinafter referred to as container) 400 of a cSID provided by an embodiment. Figure 4AAs shown, container 400 includes multiples (N times) of 128 bits. Container 400 includes a common prefix for compression (CPC) 410, a compressed SID (cSID) 420, an end of container (End-c) 430, and a ContinueTag (or c_Tag for short) 440. In this embodiment, ContinueTag 440 is a padding inserted after End-c 430 to fill any blanks in container 400. Each ContinueTag 440 has a length of L bits. In one embodiment, all L bits of c-Tag are 1, and all L bits of End-c are 0. The above combined Figure 3 CPC 410, cSID 420, and End-c 430 are described in detail.

[0056] Figure 4B FIG. 4 shows a container (hereinafter referred to as container) 450 of a cSID provided by an embodiment. Figure 4A As shown, container 400 includes 128 bits in multiples (N times). Container 450 includes a common prefix for compression (CPC) 460, a compressed SID (cSID) 470, and an end of compression indicator cSID (cSIDe) 480. In this embodiment, cSIDe 480 is used as both a cSID and an end of container (End-c) (sometimes also referred to as a compression end). For example, when a node generates a cSID, the node can generate a cSIDe 480 that has the same role as any other cSID. On the other hand, cSIDe 480 is also used as End-c. Using cSIDe 480 can save network bandwidth because in some cases where the cSID in container 450 completely fills the segment, it is possible to avoid adding additional segments to include End-c in container 450. In combination with the above Figure 3 CPC 460 and cSID 470 are described in detail.

[0057] Figure 5An embodiment of a method 500 for forwarding a message implemented by a node (e.g., edge node 161, 167 or border node 163) in a segment routing (SR) network domain is provided. The method 500 improves the forwarding process by significantly reducing the segment routing header to be added to the message. By implementing such a compressed segment routing header, the transmission of the message requires less network bandwidth, resulting in high transmission efficiency.

[0058] In step 510, the node receives a message from a node in another network domain. The message passes through the SR network domain according to the segment identifier (SID). In one embodiment, the node is an entry node in the SR network domain. In another embodiment, the node is a border node in the SR network domain. The SR network domain is an SR (SR over Internet Protocol version 6, SRv6) data plane based on the sixth version of the Internet Protocol. The value of the SID is 128 bits. In one embodiment, the SID includes location information, functions, and parameters. When a segment routing policy for an explicit traffic engineering path is used to control a message at an edge node (e.g., an entry node) in a network domain, a SID is generated and added to the message to instruct the nodes in the network domain to navigate the message through the path. In one embodiment, a group (or some) of SIDs include multiple (e.g., B bits) of common continuous data units (e.g., CPC 310 in bytes, half bytes, or bits). A group of SIDs may include a common prefix of B bits in the location information. That is, this group of SIDs includes a unique suffix of L bits (i.e., the rest of the location information) in the location information. In addition, this group of SIDs may also include R bits of common functions and parameters. Accordingly, the SIDs in this group include B bits of common prefix, L bits of unique suffix and R bits of common functions and parameters in sequence. In one embodiment, this group of SIDs may include at least one of the common functions or parameters.

[0059] In step 530, the node obtains a compressed SID (cSID) corresponding to a set of SIDs (including a common prefix of B bits in the location information). The cSID includes a unique continuous data unit (such as bits) corresponding to the SID. For example, the cSID is a unique suffix in the location information with a value of L bits.

[0060] In one embodiment, to determine the cSID, the node obtains a SID for the message according to the SR policy of the SR network domain. The node can identify a set of SIDs that include a common prefix of B bits in the location information. In one embodiment, the node can identify a set of SIDs based on the binding SID. Once the set of SIDs is determined, the node extracts the unique suffix in the corresponding SID as the cSID corresponding to each SID in the set. In one embodiment, the size or length of the SID is 128 bits. In this case, the size of the corresponding cSID is less than 128 bits (e.g., 128 bits minus B bits of common prefix and R bits of common functions and parameters).

[0061] In another embodiment, the node may receive the cSID from another node in the same or different network domain in step 510. Therefore, to determine the cSID in step 530, the node extracts the cSID from the message including the cSID.

[0062] In step 550, the node generates a segment routing header (SRH). Figure 2 As shown, the SRH includes several fields. In one embodiment, a node creates an SRH, wherein the SRH includes a first subfield (composed of Figure 2 The flag field 235 having a second subfield (indicated by the C subfield 240 in Figure 2 The tag field 237 of the cP subfield 260 in the Figure 2 In one embodiment, the flag field 235 and the tag field 237 do not include any other subfields.

[0063] The order of arrangement of SIDs and cSIDs in the segment list reflects the path of the message. Accordingly, each segment includes a SID, or one or more cSIDs, such as a portion (e.g., a cSID) or the entire SID. These segments include containers of the remaining SIDs and cSIDs that do not belong to the group. In one embodiment, the length of the container is greater than 128 bits, and the container also includes a common continuous data unit in a group of SIDs (e.g., B bits of position information), a cSID, and a compression end indicator. The compression end indicator has a preset value and is attached to the end of the cSID.

[0064] In one embodiment, the compression end indicator may be Figure 4AThe container end (End-c) 430 is shown. End-c 430 indicates that there are no more cSIDs. End-c 430 has the same length as the cSID (i.e., the length of the unique suffix in the location information of a set of SIDs). According to the predefined settings, End-c 430 can be all 0s or all 1s. In another embodiment, the compression end indicator can be a special cSID (e.g. Figure 4B cSIDe 480 is used both to provide a unique L-bit cSID and to indicate that there are no more cSIDs to be processed. In one embodiment, the container also includes one or more padding (e.g. Figure 4A The ContinueTag 430 shown in the figure is inserted after the container end indicator to fill any gaps in the container. The length of each padding is L bits.

[0065] Once the SRH is created, the node inserts a value into the C subfield 240 of the flag field 235 in the SRH 200. The value of the C subfield 240 is used to indicate whether the next segment in the sequence is a cSID or a SID. The node also sets the value of the cP subfield 260. In one embodiment, the node determines a pointer to the initial cSID in the segment list (i.e., the first cSID in the sequence). The pointer can be a numerical value (e.g., 0) indicating the location of the first data unit (e.g., the first bit) of the cSID. The node then inserts the pointer into the cP subfield 260. For example, the node can insert '0' as a pointer to the initial cSID into the cP subfield 260 of the tag field 237 in the SRH 200. Therefore, the cP subfield 260 in the tag field 237 includes a pointer to one of the cSIDs.

[0066] In step 570, the node adds or pushes the SRH 200 into the message 175. In one embodiment, the node also generates an Internet Protocol (IP) header 181 and adds the IP header 181 as an outer header to the message 175 including the SRH 200, thereby encapsulating the message 175 and the SRH 200. In one embodiment, the IP header 181 is an IP version 6 (IPv6) header. In another embodiment, the IP header 181 is an IP version 4 (IPv4) header. The IP header 181 includes a destination address (DA) indicating the address of a node in the SR network domain 162, 164 through which the message subsequently passes. The node address is represented by a SID. Accordingly, the DA also includes location information, functions, and parameters. The node determines the address of the next node in the sequence based on the segment list. The address of the next node corresponds to the next SID in the segment list. The next SID may be represented by a cSID. In this case, the node may construct the SID based on the cSID. That is, the node may add a common prefix in the location information before the cSID, and add common functions and parameters to the cSID. The node then copies the construction address or SID of the next node to the DA. In one embodiment, the node copies the cSID to a portion of the DA, and when the DA includes a common prefix, the cSID is after the common prefix in the DA, wherein the common functions and parameters in the DA are not used. When the node is a border node 163, it is not necessary to generate an IP header 181. In step 590, the node forwards the message including the SRH to the next node in the SR network domains 162, 164. In one embodiment, the message is forwarded based on the DA in the IP header that is sent with the message.

[0067] An intermediate node (e.g., intermediate nodes 165, 166) may receive a message including an SRH 200 and an IP header 181. In one embodiment, the intermediate nodes 165, 166 may receive a message in which the DA in the IP header 181 is a local END SID. The ENDSID indicates that the SRH includes a container containing cSIDs, where each cSID has L bits. In one embodiment, the common prefix in the container (e.g., in the current segment of 128 bits) precedes the first cSID of L bits, and the first cSID precedes the second cSID of L bits. In one embodiment, the intermediate nodes 165, 166 determine whether the 128-bit current segment indicates the end of cSID or includes an activation / next cSID, wherein the current segment indicating the end of cSID indicates that End-c is after the first cSID in the current segment (i.e., the second cSID after the first cSID in the current segment is End-c, where End-c is a special cSID), and the current segment including activation / next cSID indicates that the cSID after the first cSID in the current segment is not End-c (i.e., the second cSID after the first cSID in the current segment is not End-c, where End-c is a special cSID). In response to determining that the 128-bit current segment indicates the end of cSID (i.e., End-c is after the first cSID in the current segment), the intermediate nodes 165, 166 copy the 128-bit next segment to the DA. That is, the intermediate nodes 165 and 166 reduce the SL value by 1, copy the 128-bit segment indicated by the SL value to the DA, and forward the message to the node indicated by the DA.

[0068] In response to determining that the 128-bit current segment includes an active / next cSID (i.e., the second cSID in the current segment is not End-c), the intermediate node performs the following operations. First, the intermediate node shifts the cSIDs in the current segment (including End-c and c-Tag, both of which are special cSIDs) to the left by L bits starting from the second cSID in the current segment (e.g., the second cSID is copied to the position of the first cSID, the third cSID is copied to the position of the second cSID, and so on, until the last cSID is copied to the position of the second-to-last cSID in the 128-bit current segment). Next, the intermediate node copies the L-bit first cSID in the next 128-bit segment (indicated by the SL value minus 1) to the position of the last cSID in the 128-bit current segment. The intermediate node then copies the 128-bit current segment (indicated by the SL value) to the DA, or copies the L-bit first cSID after the common prefix in the container (i.e., in the 128-bit current segment) to the cSID of the DA (after the common prefix in the DA). The intermediate node then determines whether the L-bit second cSID after the first cSID in the next segment is a c-Tag. In response to determining that the second cSID is a c-Tag, indicating that the next segment is all c-Tags except the first cSID, the intermediate node removes the next segment by copying the current segment to the next segment and reducing the SL value by 1. In response to determining that the second cSID is not a c-Tag, the intermediate node shifts the remaining cSIDs (including End-c and c-Tag, as special cSIDs) in the next segment to the left by L bits (for example, the second cSID is copied to the position of the first cSID, the third cSID is copied to the position of the second cSID, and so on, until the last cSID is copied to the position of the second-to-last cSID in the next segment of 128 bits). Afterwards, the intermediate node copies the c-Tag to the position of the last cSID in the next segment of 128 bits. Finally, the intermediate node forwards the message to the node indicated by the DA.

[0069] In one embodiment, the intermediate nodes 165, 166 identify the value of the C subfield 240. If the value of the C subfield 240 is 0, the intermediate node changes the SL value to identify the L-bit segment, and also updates the value of the C subfield 240 to a non-zero value. The intermediate node determines whether the next segment of L bits is End-c by decrementing the SL value by 1 and checking the segment indicated by the SL value. In response to determining that the next segment is End-c, the intermediate node changes the SL value to identify the 128-bit segment, updates the value of the C subfield 250 to a 0 value, copies the 128-bit segment indicated by the SL value to the DA, and then forwards the message to the node indicated by the DA. In response to determining that the next segment is not End-c but a cSID, the intermediate node copies the cSID (i.e., the L-bit segment indicated by the SL value) to the partial DA after the common prefix, and then forwards the message to the node indicated by the DA.

[0070] In one embodiment, when the SRH 200 includes the C subfield 240 and the cP subfield 260, the intermediate nodes 165, 166 use and update the C value and the cP value. The intermediate node sets the value of the C subfield 240 to 1, and sets the value of the cP subfield 260 to B data units (e.g., bits) when the value of the C subfield 240 in the received message including the SRH is 0. The intermediate node determines whether the value of the cP subfield 260 indicates the last cSID in the current segment of 128 bits, where the current segment is indicated by the SL value. In response to determining that the value of the cP subfield 260 indicates the last cSID in the current segment, the intermediate nodes 165, 166 decrement the SL value by 1 so that the next segment of 128 bits becomes the current segment of 128 bits, and sets the value of the cP subfield 260 to 0, which indicates the first cSID in the current segment. In response to determining that the value of the cP subfield 260 does not indicate the last cSID in the current segment, the intermediate node 165, 166 updates the value of the cP subfield 260 by adding L data units (e.g., bits) to the value of the cP subfield 260 to indicate the next cSID (i.e., the updated value of the cP subfield 260 indicates the next cSID). The intermediate node 165, 166 checks whether the next cSID is End-c. If the next cSID is End-c, the intermediate node 165, 166 sets the values ​​of the C subfield 240 and the cP subfield 260 to 0, copies the next segment of 128 bits to the DA by subtracting 1 from the SL value, copies the 128-bit segment indicated by the updated SL value to the DA, and then forwards the message to the node indicated by the DA. If the next cSID is not End-c, the intermediate node 165, 166 copies the next cSID to the portion of the DA after the common prefix, and then forwards the message to the node indicated by the DA.

[0071] Figure 6 A schematic diagram of a node 600 (e.g., edge nodes 161, 167, intermediate nodes 165, 166, or border node 163) in a segment routing (SR) network domain provided for one embodiment of the present invention. Node 600 is suitable for implementing the disclosed embodiments described herein. Node 600 includes an inlet port 610 and a receiving unit (Rx) 620 for receiving data, a processor, a logic unit or a central processing unit (CPU) 630 for processing the data, a transmitting unit (Tx) 640 and an outlet port 650 for transmitting the data, and a memory 660 for storing the data. Node 600 may also include an optical-to-electrical (OE) component and an electrical-to-optical (EO) component coupled to the inlet port 610, the receiving unit 620, the transmitting unit 640, and the outlet port 650 for the outlet or inlet of an optical signal or an electrical signal.

[0072] The processor 630 is implemented by hardware and software. The processor 630 can be implemented as one or more CPU chips, one or more cores (for example, as a multi-core processor), one or more field-programmable gate arrays (FPGA), one or more application-specific integrated circuits (ASIC) and one or more digital signal processors (DSP). The processor 630 communicates with the input port 610, the receiving unit 620, the sending unit 640, the output port 650 and the memory 660. The processor 630 includes a message processor 670. The message processor 670 implements the disclosed embodiment described above. For example, the message processor 670 executes, processes, prepares or provides various message processing functions. Therefore, the inclusion of the message processor 670 provides substantial improvements to the functions of the node 600 and affects the transition of the node 600 to different states. Optionally, the message processor 670 is implemented with instructions stored in the memory 660 and executed by the processor 630.

[0073] The memory 660 includes one or more hard disks, one or more tape drives, and one or more solid-state hard disks, and can be used as an overflow data storage device to store programs when they are selected for execution and to store instructions and data read during the execution of the programs. The memory 660 can be volatile and / or non-volatile, and can be a read-only memory (ROM), a random access memory (RAM), a ternary content-addressable memory (TCAM), and / or a static random-access memory (SRAM).

[0074] Figure 7 Schematic diagram of an embodiment of a message forwarding device 700 in a segment routing (SR) network domain. In one embodiment, the message forwarding device 700 is implemented in a node (e.g., edge nodes 161, 167, intermediate nodes 165, 166, or border node 163). The message forwarding device 700 includes a message receiving module 701. The message receiving module 701 is used to receive a message (sometimes an encapsulated message) from a node. The message forwarding device 700 includes a message sending module 707 coupled to the message receiving module 701. The message sending module 707 is used to send the message to another node.

[0075] The message forwarding device 700 includes a message processing module 705. The message processing module 705 is coupled to at least one of the message receiving module 701 or the message sending module 707.

[0076] The message forwarding device 700 includes a storage module 703. The storage module 703 is coupled to at least one of the message receiving module 701 or the message sending module 707. The storage module 703 is used to store instructions. The message forwarding device 700 also includes a message processing module 705. The message processing module 705 is coupled to the storage module 703. The message processing module 705 is used to execute the instructions stored in the storage module 703 to execute the method disclosed herein.

[0077] It should also be understood that the steps of the exemplary methods set forth herein do not necessarily need to be performed in the order described, and the order of the steps of these methods should be understood to be merely exemplary. Similarly, in methods consistent with various embodiments of the present invention, these methods may include other steps, and certain steps may be omitted or combined.

[0078] Although the present invention provides several embodiments, it should be understood that the disclosed systems and methods may be embodied in a variety of other specific forms without departing from the spirit or scope of the present invention. The present examples should be considered illustrative rather than restrictive, and the present invention is not limited to the details given herein. For example, various elements or components may be combined or integrated in another system, or certain features may be omitted or not implemented.

[0079] In addition, without departing from the scope of the present invention, the techniques, systems, subsystems and methods described and illustrated as discrete or separate in various embodiments may be combined or integrated with other systems, modules, techniques or methods. Other items shown or discussed as coupled or directly coupled or communicating with each other may also be coupled or communicated indirectly through an interface, device or intermediate component, either electrically, mechanically or otherwise. Other examples of variations, substitutions, and alterations may be determined by those skilled in the art and may be exemplified without departing from the spirit and scope disclosed herein.

Claims

1. A method implemented by a first node in a segment routing (SR) network domain, It is characterized in that The method comprises: The first node receives, from a second node in another network domain, a message configured to pass through the SR network domain according to a segment identifier SID, wherein a set of the SIDs includes a first number of common consecutive data units; The first node obtains a compressed SID cSID corresponding to a group of the SIDs, wherein each cSID includes a unique continuous data unit corresponding to the SID, and the unique continuous data unit corresponds to the second number of data units; The first node generates a segment routing header SRH including a segment list, wherein the segment list includes segments arranged in order, the segment includes a SID that does not belong to the group and a container of the cSID, the length of the container is greater than 128 bits, the container includes a common prefix for compression, the cSID, and a compression end indicator with a preset value, the compression end indicator is attached to the end of the cSID, and the compression end indicator corresponds to the last cSID in the order; The first node adds the SRH to the message; The first node forwards the message including the SRH to a third node in the SR network domain; The first node obtains a cSID corresponding to a group of the SIDs, including: The first node identifies a group of SIDs including a common prefix of B bits in the location information; For each SID in the set of SIDs, the first node extracts a unique suffix in the corresponding SID as a cSID.

2. The method according to claim 1, It is characterized in that The compression end indicator corresponds to a plurality of zeros or ones having a length of the second number of data units.

3. The method according to claim 1, It is characterized in that The container further includes one or more paddings inserted after the compression end indicator to fill a gap in the container, wherein the length of each padding is the second number of data units.

4. The method according to any one of claims 1 to 3, It is characterized in that The first node is an entry node or a border node in the SR network domain.

5. A method implemented by a first node in a segment routing (SR) network domain, It is characterized in that The method comprises: The first node receives a message including an Internet Protocol IP header and a segment routing header SRH from a second node in the SR network domain, wherein the message is configured to pass through the SR network domain according to a segment identifier SID, a group of the SIDs includes a first number of common consecutive data units, the IP header includes a destination address DA of the message, the SRH includes a segment list and a remaining segment SL field, the segment list includes segments arranged in sequence, the segments include a container of SIDs that do not belong to the group and a compressed SID cSID, the length of the container is greater than 128 bits, the container includes a common prefix for compression, the cSID and a compression end End-c indicator, each of the cSIDs includes a unique consecutive data unit corresponding to the SID, the unique consecutive data unit corresponds to the second number of data units, the compression end indicator is attached to the end of the cSID, and the compression end indicator corresponds to the last cSID in the sequence; The first node updates a portion of the DA in the IP header using one of the cSIDs according to the order; The first node forwards the message including the IP header and the SRH to a third node in the SR network domain according to the updated DA; The cSID is implemented by the following steps: Identifying a set of said SIDs including a common prefix of B bits in the location information; For each SID in the set of SIDs, a unique suffix in the corresponding SID is extracted as the cSID.

6. The method according to claim 5, It is characterized in that The common prefix in the container precedes a first cSID of the plurality of data units, the first cSID precedes a second cSID of the plurality of data units, the method further comprising: determining whether the second cSID is not End-c, wherein the current segment is indicated by the SL field.

7. The method according to claim 6, It is characterized in that The method further includes, in response to determining that the second cSID is not End-c, copying the second cSID to the partial DA, wherein the partial DA precedes the common prefix of the first number of common consecutive data units in the DA.

8. The method according to claim 6, It is characterized in that The method also includes: starting from the second cSID in the current segment, shifting the cSID in the current segment to the left by the second number of data units, copying the first cSID of the second number of data units in the next segment to the position of the last cSID of the second number of data units in the current segment, and copying the first cSID in the current segment to the partial DA.

9. The method according to claim 8, It is characterized in that The next segment is indicated by the SL value minus 1, and the first cSID of the second number of data units is the leftmost in the next segment.

10. The method according to claim 8 or 9, It is characterized in that The method further includes determining whether a second cSID of the second number of data units in the next segment is a c-Tag, wherein the second cSID follows the first cSID in the next segment.

11. The method according to claim 10, It is characterized in that The c-Tag corresponds to a plurality of 1s whose length is the second number of data units, and the End-c corresponds to a plurality of 0s whose length is the second number of data units; or the c-Tag corresponds to a plurality of 0s whose length is the second number of data units, and the End-c corresponds to a plurality of 1s whose length is the second number of data units.

12. The method according to claim 10, It is characterized in that The method further includes removing the next segment by copying the current segment to the next segment and decreasing the SL by 1 when the second cSID is determined to be the c-Tag.

13. The method according to claim 11, It is characterized in that The method further includes: when the second cSID is determined not to be the c-Tag, shifting the cSID to the left by the second number of data units starting from the second cSID in the next segment, and copying the c-Tag to the position of the last cSID in the next segment.

14. The method according to any one of claims 5 to 8, It is characterized in that The first node is an intermediate node in the SR network domain.

15. The method according to any one of claims 5 to 8, It is characterized in that The data unit is a byte, a nibble or a bit.

16. A node device, It is characterized in that The node device comprises: A receiver, for receiving messages; A transmitter, used for sending the message; a memory coupled to the receiver and the transmitter, wherein the memory stores instructions; A processor coupled to the memory, wherein the processor is configured to execute the instructions so that the node device executes the method according to any one of claims 1 to 4 and the method according to any one of claims 5 to 15.

17. A system, It is characterized in that The system comprises: First node; A second node communicating with the first node device, wherein the first node or the second node performs the method according to any one of claims 1 to 4 and the method according to any one of claims 5 to 15.

18. A message forwarding device for use in a segment routing (SR) network domain, It is characterized in that The device comprises: A message receiving module, used for receiving the message for processing; a message sending module coupled to the message receiving module, wherein the message sending module is used to forward the message to another node; a storage module coupled to at least one of the message receiving module or the message sending module, wherein the storage module is used to store instructions; A message processing module coupled to the storage module, wherein the message processing module is used to execute the instructions stored in the storage module to perform the method according to any one of claims 1 to 4 and the method according to any one of claims 5 to 15.