Segment routing using a programmable header field
By specifying header field values within the SID, SRv6 networks achieve reduced overhead and increased agility through direct packet modifications, addressing the limitations of fixed endpoint behaviors in existing SRv6 implementations.
Patent Information
- Application Number
- PCT/EP2025/063864
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-05-20
- Publication Date
- 2026-11-26
AI Technical Summary
Existing segment routing in IPv6 networks, specifically SRv6, lacks flexibility in allowing sources to dictate arbitrary header-field values enroute, leading to increased operational complexity and header space consumption.
A mechanism where the packet's source specifies precise header field values within the segment identifier (SID) itself, enabling routers to modify or encapsulate packets based on the SID's function and argument, reducing the need for out-of-band signaling and static configurations.
This approach provides finer-grained control, reduces header overhead, and enhances network agility by allowing per-segment header modifications without additional signaling complexity.
Smart Images

Figure EP2025063864_26112026_PF_FP_ABST
Abstract
Description
[0001] SEGMENT ROUTING USING A PROGRAMMABLE HEADER FIELD
[0002] TECHNICAL FIELD
[0003] The present disclosure relates, in general, to segment routing in Internet Protocol version 6 (IPv6) networks. In particular, aspects of the disclosure concern the use of programmable header fields within segment routing to convey per-segment instructions.
[0004] BACKGROUND
[0005] Source routing is a technique by which the origin of a packet specifies the forwarding path by embedding routing information directly in the packet header. In IPv6, source routing is realised via an extension header; a refined form of this approach, known as segment routing (SR), encodes a list of segment identifiers (SIDs) in a segment routing header. Each SID may be a full 128-bit IPv6 address or a compressed representation that combines a network locator, a processing function and associated arguments.
[0006] While SRv6 offers considerable flexibility and control over packet steering, it can introduce significant overhead. A standard SID list requires 128 bits per segment, and even compressed schemes (in which multiple compressed-SIDs or “C-SIDs” are packed beneath a single locator block) consume packet header space. Moreover, existing SRv6 implementations focus on steering and processing actions defined by fixed endpoint behaviours, but do not readily allow a source to dictate arbitrary values to be written into other header fields enroute - for example, VLAN identifiers, MPLS labels or VXLAN VNIs.
[0007] Consequently, network operators today wishing to enforce per-segment header modifications must rely on out-of-band signalling or static, preconfigured behaviours at each router. These approaches hamper agility, increase operational complexity and may still consume excessive header space when long SID lists or numerous arguments are involved.
[0008] SUMMARY
[0009] An objective of the present disclosure is to provide a mechanism whereby a packet’s source can specify, within the SID information itself, the precise values to be assigned to one or more header fields at intermediate routers.
[0010] The foregoing and other objectives are achieved by the features of the independent claims.
[0011] Further implementation forms are apparent from the dependent claims, the description and the Figures.
[0012] A first aspect of the present disclosure provides a method for segment routing using a programmable header field, the method comprising receiving, by a segment router, a packet having a destination address representing a segment identifier (SID), wherein the SID comprises a locator, a function and an argument, determining, by the segment router, whether the SID indicates that a current segment terminates at the segment router, in response to determining that the current segment terminates at the segment router, detecting, from the argument comprised in the SID, a field value to be assigned to a header field of the packet, the header field forming part of the programmable header field, performing a network header modification or adding an encapsulation header to the packet based on the function comprised in the SID, wherein the modification of the programmable header field or the encapsulation utilises the field value by applying a predetermined modification algorithm to set theprogrammable header field or to form a new encapsulation header, and routing the packet in accordance with the modified programmable header field or newly added encapsulation header.
[0013] The field value may specify a virtual local area network (VLAN) identifier to be assigned to the header field of the packet. The field value may specify a multi-protocol label switching (MPLS) label to be assigned to the header field of the packet. The SID may comprise a list of one or more compressed SIDs, C-SIDs, and further comprising detecting, from a compressed SID in the list, the field value to be assigned to the programmable header field.
[0014] The predetermined modification algorithm may be implemented in a processor of the segment router.
[0015] Determining whether the SID indicates that the current segment terminates at the segment router may comprise comparing the SID’s locator with an identifier stored in the segment router.
[0016] Performing the network header modification may comprise modifying the programmable header field by updating an existing header field with the field value.
[0017] Adding an encapsulation header may comprise inserting an outer header that encapsulates the packet, the outer header being formed using the field value.
[0018] A second aspect of the present disclosure provides an apparatus for segment routing using a programmable header field, the apparatus comprising a receiver configured to receive a packet having a destination address representing a segment identifier (SID), wherein the SID comprises a locator, a function and an argument, a processor configured to determine whether the SID indicates that a current segment terminates at the apparatus, and, in response thereto, to detect from the argument the field value to be assigned to a header field forming part of the programmable header field, and to perform a network header modification or add an encapsulation header to the packet based on the function comprised in the SID, wherein the modification of the programmable header field or the encapsulation utilises the field value by applying a predetermined modification algorithm to set the programmable header field or to form a new encapsulation header, and a transmitter configured to route the packet in accordance with the modified programmable header field or newly added encapsulation header.
[0019] The processor may be further configured to assign the field value to an existing header field within the programmable header field of the packet.
[0020] The processor may be further configured to add a new header field to the programmable header field of the packet and to assign the field value thereto.
[0021] The SID may comprise one or more compressed SIDs (C SIDs), and the processor may be further configured to detect the field value from a compressed SID in the SID list.
[0022] The predetermined modification algorithm may be implemented in a hardware accelerator coupled to the processor.
[0023] The processor may be further configured to modify the programmable header field by updating the header field with the field value.
[0024] A third aspect of the present disclosure provides a non-transitory computer readable medium storing instructions which, when executed by a processor, cause the processor to perform the method described herein.
[0025] These and other aspects of the disclosure will be apparent from the embodiments) described below.BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Embodiments of the disclosure will now be described, by way of example, with reference to the accompanying drawings, in which:
[0027] Figure 1 is a schematic representation of a segment identifier;
[0028] Figure 2 is a schematic representation of a compressed list of router addresses;
[0029] Figure 3 is a schematic representation of a compressed list of addresses;
[0030] Figure 4 is a flow chart of a method for segment routing using a programmable header field according to an example;
[0031] Figure 5 is a schematic representation of segment routing with multi-protocol label switching according to an example;
[0032] Figure 6 is a schematic representation of segment routing with a virtual local area network identifier assignment according to an example;
[0033] Figure 7 is a schematic representation of a compressed segment identifier that incorporates a field value according to an example; and
[0034] Figure 8 is a schematic representation of an apparatus for segment routing using a programmable header field according to an example.
[0035] DETAILED DESCRIPTION
[0036] Example embodiments are described below in sufficient detail to enable those of ordinary skill in the art to embody and implement the systems and processes herein described. It is important to understand that embodiments can be provided in many alternate forms and should not be construed as limited to the examples set forth herein.
[0037] Accordingly, while embodiments can be modified in various ways and take on various alternative forms, specific embodiments thereof are shown in the drawings and described in detail below as examples. There is no intent to limit to the particular forms disclosed. On the contrary, all modifications, equivalents, and alternatives falling within the scope of the appended claims should be included. Elements of the example embodiments are consistently denoted by the same reference numerals throughout the drawings and detailed description where appropriate.
[0038] The terminology used herein to describe embodiments is not intended to limit the scope. The articles “a,” “an,” and ‘The” are singular in that they have a single referent, however the use of the singular form in the present document should not preclude the presence of more than one referent. In other words, elements referred to in the singular can number one or more, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises,” “comprising,” “includes,” and / or “including,” when used herein, specify the presence of stated features, items, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, items, steps, operations, elements, components, and / or groups thereof.Unless otherwise defined, all terms (including technical and scientific terms) used herein are to be interpreted as is customary in the art. It will be further understood that terms in common usage should also be interpreted as is customary in the relevant art and not in an idealized or overly formal sense unless expressly so defined herein.
[0039] Source routing in IPv6 networks allows the sender of a packet to embed the forwarding path within the packet itself. In segment routing over IPv6 (SRv6), this is achieved by inserting a segment routing header (SRH) containing one or more segment identifiers (SIDs). Each SID may be a full 128-bit IPv6 address identifying a segment endpoint, or a compressed SID (C-SID) that combines a locator, a function identifier and zero or more arguments. While C-SID schemes reduce header overhead by packing multiple segment endpoints under a single locator block, existing SRv6 behaviours are limited to a fixed set of processing functions defined by the IETF and do not permit the source to dictate arbitrary header-field values to be written enroute.
[0040] As a result, network operators who wish to apply specific per-segment modifications - such as assigning a VLAN ID, an MPLS label or a VXLAN VNI - must resort to out-of-band signalling or preconfigured router policies. These work-arounds increase operational complexity, introduce additional coordination steps, and may still consume significant header space when long SID lists or numerous arguments are needed.
[0041] According to an example embodiment, the source of an SRv6 packet is enabled to convey a programmable field value as part of a SID’s argument. A segment router that identifies its locator in the SID can extract this field value and apply it directly to a header field - either by modifying an existing field or by inserting a new encapsulation header - based on the function code carried in the SID. In compressed-SID scenarios, the field value may reside in the final C-SID of the locator block, preserving compression gains while extending programmability.
[0042] This approach eliminates the need for separate signalling or static configuration of per-segment header parameters. It enables a source to specify, within the SRH itself, exact values for VLAN IDs, MPLS labels, VXLAN VNIs or other protocol fields at each hop. As a result, network operators gain finer-grained control, reduced header overhead, and greater agility — while leveraging existing SRv6 infrastructure and standard behaviours.
[0043] Examples in the present disclosure can be provided as methods, systems or machine-readable instructions, such as any combination of software, hardware, firmware or the like. Such machine-readable instructions may be included on a computer readable storage medium (including but not limited to disc storage, CD-ROM, optical storage, etc.) having computer readable program codes therein or thereon.
[0044] The present disclosure is described with reference to flow charts and / or block diagrams of the method, devices and systems according to examples of the present disclosure. Although the flow diagrams described above show a specific order of execution, the order of execution may differ from that which is depicted. Blocks described in relation to one flow chart may be combined with those of another flow chart. In some examples, some blocks of the flow diagrams may not be necessary and / or additional blocks may be added. It shall be understood that each flow and / or block in the flow charts and / or block diagrams, as well as combinations of the flows and / or diagrams in the flow charts and / or block diagrams can be realized by machine readable instructions.
[0045] The machine-readable instructions may, for example, be executed by a machine such as a general-purpose computer, user equipment such as a smart device, e.g., a smart phone, a special purpose computer, an embedded processor or processors of other programmable data processing devices to realize the functions described in the description and diagrams. In particular, a processor or processing apparatus may execute the machine-readable instructions. Thus, modules of apparatus (for example, a module implementing a comparator unit, or a firewall structure and so on) may be implemented by a processor executing machine readable instructions stored in a memory, or a processor operating in accordance with instructions embedded in logiccircuitry. The term 'processor' is to be interpreted broadly to include a CPU, processing unit, ASIC, logic unit, or programmable gate set etc. The methods and modules may all be performed by a single processor or divided amongst several processors.
[0046] Such machine-readable instructions may also be stored in a computer readable storage that can guide the computer or other programmable data processing devices to operate in a specific mode. For example, the instructions may be provided on a non-transitory computer readable storage medium encoded with instructions, executable by a processor.
[0047] Figure 1 is a schematic representation of a segment identifier to aid understanding of the disclosure. Segment routing is a variant of source routing in which the sender of a packet may incorporate a segment routing header (SRH) as an extension header of an IPv6 packet, and the SRH may include a list of routers along the path. Each router on the list may be represented by the segment identifier, which is 128 bits long.
[0048] The SID may be an IPv6 address that represents the router at the end of the segment, called the segment endpoint. Alternatively, as shown in Figure 1, in SRv6 network programming, the segment identifier 100 may comprise a locator 101, a function 102 and an argument 103.
[0049] The locator 101 may define the location (or address) of the router (segment endpoint). The function 102 may define the processing that the router is expected to perform on the packet. The set of supported functions (endpoint behaviours) are defined by the Internet Engineering Task Force (IETF). The argument (or arguments) 103 may be used by the function 102. Each function 102 may have a set of zero or more pre-defined arguments 103.
[0050] A list of routers, where each router is represented by 128 bits, may incur a large overhead on IPv6 packets that include an SRH. Therefore, SRH compression is intended to reduce the overhead by compressing several router addresses into a single SID. Thus, an SRH may include multiple SIDs, where each SID is comprised of multiple C-SIDs (compressed SIDs), as illustrated in the Figure 2, which is a schematic representation of a compressed list of addresses to aid understanding of the disclosure. The compressed list of addresses 200 may comprise a prefix (locator-block) 201, which specifies the network (or location) address, and a list of compressed SIDs 202.
[0051] A special case of segment routing compression is a case in which the packet does not include an SRH at all, and the destination IP address of the packet has a structure according to Figure 2. Thus, the destination IP address itself may indicate the list of C-SIDs.
[0052] This is illustrated in Figure 3, which is a schematic representation of a compressed list of addresses to aid understanding of the disclosure. The compressed list of addresses 300 may comprise a locator block 301, a C-SID 302, and an argument 303. When a router that supports segment routing (also known as a segment endpoint) receives a packet with a C-SID list, it may process the first C-SID on the list - in Figure 3, this C-SID is denoted as Loc-Node Function 302. The router may use this Loc-Node Function 302 as a command that defines the routing decision (Loc-Node), and possibly a function that needs to be executed by the router. Afterwards, the router may remove the Loc-Node Function field 302, and shift the argument field 303 left by NF bits. The argument field 303 may consist of the C-SID list corresponding to the next routers along the path.
[0053] Figure 4 is a flow chart of a method for segment routing using a programmable header field according to an example. The method comprises, in block 401, receiving, by a segment router, a packet having a destination address representing a segment identifier (SID), wherein the SID comprises a locator, a function and an argument.
[0054] The SID may comprise a list of one or more compressed SIDs (C SIDs), in which case the method may further comprise comprising detecting, from a compressed SID in the list, the field value to be assigned to the programmable header field.In block 402, the method comprises determining, by the segment router, whether the SID indicates that a current segment terminates at the segment router. This determination may comprise comparing the SID’s locator with an identifier stored in the segment router.
[0055] The method comprises, in block 403, in response to determining that the current segment terminates at the segment router, detecting, from the argument comprised in the SID, a field value to be assigned to a header field of the packet, the header field forming part of the programmable header field.
[0056] The field value may specify a virtual local area network (VLAN) identifier to be assigned to the header field of the packet. The field value may also specify a multi-protocol label switching (MPLS) label to be assigned to the header field of the packet, as will be described in more detail later in the specification.
[0057] In block 404, the method comprises performing a network header modification or adding an encapsulation header to the packet based on the function comprised in the SID, wherein the modification of the programmable header field or the encapsulation utilises the field value by applying a predetermined modification algorithm to set the programmable header field or to form a new encapsulation header.
[0058] The predetermined modification algorithm may be implemented in a processor of the segment router. Performing the network header modification may comprise modifying the programmable header field by updating an existing header field with the field value. Adding an encapsulation header to the packet may comprise an encapsulation header inserting an outer header that encapsulates the packet, the outer header being formed using the field value.
[0059] In block 405, the method comprises routing the packet in accordance with the modified programmable header field or newly added encapsulation header.
[0060] As discussed above, the disclosure may be used in a network that uses segment routing. By utilising the disclosure, a source can include a field value as part of a SID in the segment list. The field value may be used by one of the routers along the path, i.e., the router may either assign this value to an existing field or to a new field that is incorporated in the transmitted packet. Specifically, the field value may be incorporated as one of the arguments of one of the SIDs in the segment list. The field value can specify a value of various different fields, corresponding to different network protocols, for example, the value of a VLAN ID, an MPLS label, or a VXLAN VNI.
[0061] When incorporating a field value, the SID may comprise a locator (indicating a router), a function (indicating the required operation in the router, including assigning the new field value; for example, the function can indicate a header modification such as adding an encapsulation) and the field value itself.
[0062] Figure 5 is a schematic representation of segment routing with multi-protocol label switching according to an example. The figure depicts a source Hl 501, a destination H2506 and routers R1-R4502-505. In this example, the source Hl 501 may send a packet to the destination H2 506 using SRv6, wherein a list of SIDs determines the path. In the example, when the packet reaches a first router R1 502, the router R1 502 may parse and process the current SID. The function may indicate that R1 502 is expected to encapsulate the packet in an MPLS encapsulation, where the MPLS label is determined by the field value. The packet may be then sent as an MPLS-encapsulated packet until it reaches a router R3 504, where the packet may be decapsulated, and processed according to the remaining SID which directs the packet towards the destination H2506.
[0063] Figure 6 is a schematic representation of segment routing with a virtual local area network identifier assignment according to an example. The example of Figure 6 is similar to the example of Figure 5, depicting a source Hl 601, a destination H2606and routers R1-R4 602-605. Compared to Figure 5, in Figure 6, router R1 602 may detect a SID that indicates a VLAN ID assignment. When the router R1 602 sends the packet towards router R4605, the router R1 602 may incorporates a VLAN tag, which includes the VLAN ID that is determined by the field value from the received SID. The packet may then proceed along the path according to the remaining SIDs in the segment list, eventually reaching the destination H2606.
[0064] Figure 7 is a schematic representation of a compressed segment identifier that incorporates a field value according to an example. Advantageously, when using compressed SIDs, the present disclosure may be applied by including a field value 705 as an argument of the last C-SID on the compressed list. The compressed SID 700 may comprise a locator block 701, a C-SID list comprising, in the example, C-SID-1 702, C-SIDs 703, and a C-SID-N 704, as well as the argument 705.
[0065] Figure 8 is a schematic representation of an apparatus for segment routing using a programmable header field according to an example. The apparatus 800 comprises a receiver 601 configured to receive a packet having a destination address representing a segment identifier (SID), wherein the SID comprises a locator, a function and an argument. The apparatus 800 further comprises a processor 802 configured to determine whether the SID indicates that a current segment terminates at the apparatus, and, in response thereto, to detect from the argument the field value to be assigned to a header field forming part of the programmable header field, and to perform a network header modification or add an encapsulation header to the packet based on the function comprised in the SID, wherein the modification of the programmable header field or the encapsulation utilises the field value by applying a predetermined modification algorithm to set the programmable header field or to form a new encapsulation header. The apparatus 800 also comprises a transmitter 803, configured to route the packet in accordance with the modified programmable header field or newly added encapsulation header. The apparatus 800 may be configured to perform the method described herein.
[0066] According to an example, machine-readable instructions can be loaded onto a computer or other programmable data processing devices, so that the computer or other programmable data processing devices perform a series of operations to produce computer-implemented processing, thus the instructions executed on the computer or other programmable devices provide an operation for realizing functions specified by flow(s) in the flow charts and / or block(s) in the block diagrams.
[0067] Further, the teachings herein may be implemented in the form of a computer or software product, such as a non-transitory machine-readable storage medium, the computer software or product being stored in a storage medium and comprising a plurality of instructions, e.g., machine readable instructions, for making a computer device implement the methods recited in the examples of the present disclosure.
[0068] In some examples, some methods can be performed in a cloud-computing or network-based environment. Cloud-computing environments may provide various services and applications via the Internet. These cloud-based services (e.g., software as a service, platform as a service, infrastructure as a service, etc.) may be accessible through a web browser or other remote interface of the user equipment for example. Various functions described herein may be provided through a remote desktop environment or any other cloud-based computing environment.
[0069] While various embodiments have been described and / or illustrated herein in the context of fully functional computing systems, one or more of these exemplary embodiments may be distributed as a program product in a variety of forms, regardless of the particular type of computer-readable-storage media used to actually carry out the distribution. The embodiments disclosed herein may also be implemented using software modules that perform certain tasks. These software modules may include script, batch, or other executable files that may be stored on a computer-readable storage medium or in a computing system. In some embodiments, these software modules may configure a computing system to perform one or more of the exemplaryembodiments disclosed herein. In addition, one or more of the modules described herein may transform data, physical devices, and / or representations of physical devices from one form to another.
[0070] The preceding description has been provided to enable others skilled in the art to best utilize various aspects of the exemplary embodiments disclosed herein. This exemplary description is not intended to be exhaustive or to be limited to any precise form disclosed. Many modifications and variations are possible without departing from the spirit and scope of the instant disclosure. The embodiments disclosed herein should be considered in all respects illustrative and not restrictive. Reference should be made to the appended claims and their equivalents in determining the scope of the instant disclosure.
Claims
CLAIMS1. A method for segment routing using a programmable header field, the method comprising:receiving, by a segment router, a packet having a destination address representing a segment identifier, SID, wherein the SID comprises a locator, a function and an argument (401);determining, by the segment router, whether the SID indicates that a current segment terminates at the segment router (402);in response to determining that the current segment terminates at the segment router, detecting, from the argument comprised in the SID, a field value to be assigned to a header field of the packet, the header field forming part of the programmable header field (403);performing a network header modification or adding an encapsulation header to the packet based on the function comprised in the SID, wherein the modification of the programmable header field or the encapsulation utilises the field value by applying a predetermined modification algorithm to set the programmable header field or to form a new encapsulation header (404); androuting the packet in accordance with the modified programmable header field or newly added encapsulation header (405).
2. The method of claim 1, wherein the field value specifies a virtual local area network, VLAN, identifier to be assigned to the header field of the packet.
3. The method of claim 1 or 2, wherein the field value specifies a multi-protocol label switching, MPLS, label to be assigned to the header field of the packet.
4. The method of claim 1, 2 or 3, wherein the SID comprises a list of one or more compressed SIDs, C SIDs, and further comprising detecting, from a compressed SID in the list, the field value to be assigned to the programmable header field.
5. The method of any one of claims 1 to 4, wherein the predetermined modification algorithm is implemented in a processor of the segment router.
6. The method of any one of claims 1 to 5, wherein determining whether the SID indicates that the current segment terminates at the segment router (402) comprises comparing the SID’s locator with an identifier stored in the segment router.
7. The method of any one of claims 1 to 6, wherein performing the network header modification (404) comprises modifying the programmable header field by updating an existing header field with the field value.
8. The method of any one of claims 1 to 7, wherein adding an encapsulation header (404)comprises inserting an outer header that encapsulates the packet, the outer header being formed using the field value.
9. An apparatus (800) for segment routing using a programmable header field, the apparatus (800) comprising: a receiver (801) configured to receive a packet having a destination address representing a segment identifier, SID, wherein the SID comprises a locator, a function and an argument;a processor (802) configured to determine whether the SID indicates that a current segment terminates at the apparatus (800), and, in response thereto, to detect from the argument the field value to be assigned to a header field forming part of the programmable header field, and to perform a network header modification or add an encapsulation header to the packet based on the function comprised in the SID, wherein the modification of the programmable header field or the encapsulation utilises the field value by applying a predetermined modification algorithm to set the programmable header field or to form a new encapsulation header; anda transmitter (803) configured to route the packet in accordance with the modified programmable header field or newly added encapsulation header.
10. The apparatus (800) of claim 9, wherein the processor (802) is further configured to assign the field value to an existing header field within the programmable header field of the packet.
11. The apparatus (800) of claim 9 or 10, wherein the processor (802) is further configured to add a new header field to the programmable header field of the packet and to assign the field value thereto.
12. The apparatus (800) of claim 9, 10 or 11 , wherein the SID comprises one or more compressed SIDs, C SIDs, and the processor (802) is further configured to detect the field value from a compressed SID in the SID list.
13. The apparatus (800) of any one of claims 9 to 12, wherein the predetermined modification algorithm is implemented in a hardware accelerator coupled to the processor (802).
14. The apparatus (800) of any one of claims 9 to 13, wherein the processor (802) is further configured to modify the programmable header field by updating the header field with the field value.
15. A non-transitory computer readable medium storing instructions which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 8.
