Network address translation by means of segment routing
By integrating network address translation into the segment routing data plane using segment identifiers, the solution addresses the overhead and latency issues in conventional NAT technologies, achieving efficient translation between IPv6 and IPv4 address formats.
Patent Information
- Application Number
- PCT/EP2025/063808
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-05-20
- Publication Date
- 2026-11-26
AI Technical Summary
Conventional network address translation (NAT) technologies incur significant per-packet processing overhead and latency when handling different IP address formats, particularly between long-format (e.g., IPv6) and short-format (e.g., IPv4) address spaces, due to separate header rewriting and routing logic requirements.
Integrate network address translation into the segment routing data plane by encoding translation operations within the segment identifier, allowing routers to perform seamless translation between heterogeneous address formats using segment routing, supporting both stateless and stateful translation methods.
Reduces per-packet processing overhead, simplifies deployment, and streamlines header rewriting and routing by leveraging existing segment routing constructs, enabling efficient translation between IPv6 and IPv4 address formats.
Smart Images

Figure EP2025063808_26112026_PF_FP_ABST
Abstract
Description
[0001] NETWORK ADDRESS TRANSLATION BY MEANS OF SEGMENT ROUTING
[0002] TECHNICAL FIELD
[0003] The present disclosure relates, in general, to network address translation in packet-based communications networks. Aspects of the disclosure relate to the use of segment routing to perform address translation between networks that employ different address formats.
[0004] BACKGROUND
[0005] Source routing is a mechanism by which the originator of an IP packet stipulates the exact path the packet will traverse through one or more intermediary routers. In IPv6, source routing is effected by way of a segment routing header (SRH), which carries an ordered list of segment identifiers (SIDs). Each SID may encapsulate a locator (identifying a segment endpoint router), a function (indicating a processing behaviour), and zero or more arguments (supplying parameters to that function). While segment routing offers fine-grained traffic steering and network programmability, embedding full 128-bit IPv6 addresses for each hop in an SRH can impose significant per-packet overhead. To mitigate this, SRH compression techniques have been developed, whereby multiple router addresses are compacted into compressed SIDs (C-SIDs) within a single locator-block plus C-SID list.
[0006] Separately, network address translation (NAT) is widely employed to translate between disparate IP address domains - for example, translating private IPv4 addresses to public IPv4 addresses, or between IPv4 and IPv6 via NAT64. Conventional NAT devices operate in either a stateless mode, using fixed prefixes for translation, or in a stateful mode, tracking individual sessions via a 5-tuple of IP addresses, transport-layer ports and protocol identifiers. However, these approaches require separate header rewriting and routing logic, which can complicate packet processing and introduce latency, particularly when interworking between long-format (e.g. IPv6) and short-format (e.g. IPv4) address spaces.
[0007] SUMMARY
[0008] An objective of the present disclosure is to provide a mechanism to integrate network address translation seamlessly into the forwarding plane, so as to reduce per-packet processing overhead, simplify deployment, and support both stateless and stateful translation between heterogeneous address formats.
[0009] The foregoing and other objectives are achieved by the features of the independent claims.
[0010] Further implementation forms are apparent from the dependent claims, the description and the Figures.
[0011] A first aspect provides a method for network address translation between a first network using a first network address format and a second network using a second network address format by means of segment routing, the method comprising receiving, at a segment router, a packet from the first network, wherein the packet comprises a network header corresponding to the first network address format and a destination address representing a segment identifier, detecting, by the segment router, that the segment identifier indicates both that a current segment terminates at the segment router and that network header translation is required according to a predetermined translation criterion, in response to the detection, translating the network header of the packet from the first network address format to the second network address format by assigning a new destination address, wherein the new destination address is determined by extracting a predetermined bit sequence from the segment identifier, and routing, by the segment router, the packet to the second network based on the new destination address.The first network address format may comprise a long address format and the second network address format may comprise a short address format, or the first network address format may comprise the short address format and the second network address format may comprise the long address format.
[0012] The first network address format may comprise an IPv6 address and the second network address format may comprise an IPv4 address, or the first network address format may comprise the IPv4 address and the second network address format may comprise the IPv6 address.
[0013] The segment identifier may comprise a locator, a function, and an argument, the function indicating that network header translation is to be performed and the argument including a value for use as the new destination address.
[0014] The method may further comprise compressing the segment identifier by incorporating the new destination address as an argument in a compressed segment identifier within a compressed list.
[0015] The network header translation may be performed in accordance with the segment routing over IPv6 protocol, SRv6.
[0016] Translating the network header of the packet from the first network address format to the second network address format may comprise performing stateful address translation, wherein the segment router may maintain a mapping of session attributes corresponding to network sessions traversing the first network, and utilises this mapping to assign the new destination address and to modify additional header fields as required.
[0017] A second aspect provides an apparatus for network address translation between a first network using a first network address format and a second network using a second network address format by means of segment routing, the apparatus comprising a receiver module configured to receive a packet from the first network, wherein the packet comprises a network header corresponding to the first network address format and a destination address representing a segment identifier, a detection module configured to detect that the segment identifier indicates both that a current segment terminates at the apparatus and that network header translation is required according to a predetermined translation criterion, a translation module configured to translate the network header of the packet from the first network address format to the second network address format by assigning a new destination address, wherein the new destination address is determined by extracting a predetermined bit sequence from the segment identifier, and a routing module configured to route the packet to the second network based on the new destination address.
[0018] The first network address format may comprise a long address format and the second network address format may comprise a short address format, or the first network address format may comprise the short address format and the second network address format may comprise the long address format.
[0019] The first network address format may comprise an IPv6 address and the second network address format may comprise an IPv4 address, or the first network address format may comprise the IPv4 address and the second network address format may comprise the IPv6 address.
[0020] The segment identifier may comprise a locator, a function, and an argument, the function indicating that network header translation is to be performed and the argument including a value for use as the new destination address.
[0021] The apparatus may further comprise a compression module configured to compress the segment identifier by incorporating the new destination address as an argument in a compressed segment identifier within a compressed list.The apparatus may be configured to perform network header translation in accordance with the segment routing over IPv6 protocol, SRv6.
[0022] To translate the network header from the first network address format to the second network address format, the translation module may be arranged to perform stateful address translation, wherein the translation module may be arranged to maintain a mapping of session attributes corresponding to network sessions traversing the first network, and utilise this mapping to assign the new destination address and to modify additional header fields as required.
[0023] A third aspect provides a non-transitory computer-readable medium storing instructions which, when executed by a processor, cause the processor to perform a method for network address translation between a first network using a first network address format and a second network using a second network address format by means of segment routing, the method comprising receiving a packet from the first network, wherein the packet comprises a network header corresponding to the first network address format and a destination address representing a segment identifier, detecting that the segment identifier indicates both that a current segment terminates at a segment router and that network header translation is required according to a predetermined translation criterion, translating the network header of the packet from the first network address format to the second network address format by assigning a new destination address, wherein the new destination address is determined by extracting a predetermined bit sequence from the segment identifier, and routing the packet to the second network based on the new destination address.
[0024] These and other aspects of the disclosure will be apparent from the embodiments) described below.
[0025] 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 structure;
[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] F igure 4 is a flow chart of a method for network address translation between a first network using a first network address format and a second network using a second network address format by means of segment routing according to an example;
[0031] Figure 5 is a schematic representation of address translation using segment routing according to an example;
[0032] Figure 6 is a schematic representation of address translation using segment routing to multiple destinations according to an example;
[0033] Figure 7a is a schematic representation of stateless translation from a short address to a long address according to an example; Figure 7b is a schematic representation of stateless translation from a long address to a short address according to an example; Figure 8a is a schematic representation of stateful translation from a long address to a short address according to an example; Figure 8b is a schematic representation of stateful translation from a short address to a long address according to an example; Figure 9a is a schematic representation of stateless translation from an IPv4 address to an IPv6 address according to an example; Figure 9b is a schematic representation of stateless translation rom an IPv6 address to an IPv4 address according to an example; Figure 10 is a schematic representation of a compressed segment identifier that incorporates a short address field according to an example; and
[0034] Figure 11 is a schematic representation of an apparatus for network address translation between a first network using a first network address format and a second network using a second network address format by means of segment routing.DETAILED DESCRIPTION
[0035] 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.
[0036] 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.
[0037] 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.
[0038] 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 (SRv6) enables a sender to steer packets through a specified sequence of routers by embedding a segment routing header (SRH) in each IPv6 packet. Each SRH carries one or more segment identifiers (SIDs), which may encapsulate a locator (the address of the segment endpoint), a function (an instruction to the router), and optional arguments. To reduce the overhead of carrying full 128-bit IPv6 addresses for every hop, SRH compression schemes allow multiple router addresses to be represented as compressed SIDs (C-SIDs) within a single locator-block plus C-SID list. Separately, network address translation (NAT) between dissimilar address domains - such as between private and public IPv4 networks or between IPv4 and IPv6 via NAT64 - relies on either stateless translation (using fixed prefixes) or stateful translation (tracking individual sessions via a 5-tuple). Conventional NAT implementations, however, introduce extra header-rewriting steps and per-packet state management that can increase processing latency and complicate deployment, especially when interworking between long-format and short-format addresses.
[0040] According to an example embodiment, network address translation is integrated directly into the segment routing data plane by signalling translation operations via the segment identifier itself. In this approach, the final SID in an SRv6-encoded packet specifies both the location of the translation router and the translation parameters (such as the new destination address bits) to be applied. Upon receipt, the segment endpoint router detects the translation instruction encoded in the SID, rewrites the packet’s network header from the first address format to the second address format, and forwards the packet on the newly translated network. This mechanism supports both stateless translation (by extracting predetermined bits from the SID or applying fixed prefixes) and stateful translation (by maintaining session mappings for 5-tuple-based address assignments). By leveraging existing segment routing constructs, the disclosure reduces per-packet processing overhead, streamlines header rewriting and routing into a single operation, supports compression of translation parameters in C-SIDs, and can be deployed in routers, switches or network interface controllers without changes to higher-layer protocols.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.
[0041] The present disclosure is described with reference to flow charts and / or block diagrams of the method, devices and systems according to examples. 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.
[0042] 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 logic circuitry. 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.
[0043] 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.
[0044] 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.
[0045] 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.
[0046] 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.
[0047] 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.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.
[0048] 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.
[0049] Network address translation (NAT) devices are widely deployed to translate packet headers between two disparate IP address realms, for example between an internal network employing private IPv4 addresses and an external network utilising globally routable addresses. In a typical stateful NAT, every outbound connection from the private domain is recorded by the translator, which maintains a mapping for each session based on the five-tuple comprising source and destination IP addresses, transport protocol and source and destination port numbers. The NAT rewrites packet headers in both directions according to this mapping so as to preserve session continuity.
[0050] Where IPv6 and IPv4 networks interoperate, NAT64 devices perform analogous translation functions between 128-bit IPv6 and 32-bit IPv4 address spaces. Such translation may be stateless, in which a fixed prefix (for example ::ffff:0:0:0 / 96) is prepended or stripped to convert between address families, or stateful, in which individual sessions are tracked and mapped much like conventional NAT. Both approaches introduce additional per-packet processing overhead and require separate mechanisms for header manipulation and routing logic.
[0051] F igure 4 is a flow chart of a method for network address translation between a first network using a first network address format and a second network using a second network address format by means of segment routing according to an example.
[0052] The method comprises, in block 401, receiving, at a segment router, a packet from the first network, wherein the packet comprises a network header corresponding to the first network address format and a destination address representing a segment identifier. The segment identifier may comprise a locator, a function, and an argument, the function indicating that network header translation is to be performed and the argument including a value for use as the new destination address.
[0053] In block 402, the method comprises detecting, by the segment router, that the segment identifier indicates both that a current segment terminates at the segment router and that network header translation is required according to a predetermined translation criterion.
[0054] The method comprises, in block 403, in response to the detection, translating the network header of the packet from the first network address format to the second network address format by assigning a new destination address, wherein the new destination address is determined by extracting a predetermined bit sequence from the segment identifier. Translating the network header of the packet may comprise translating the network header of the packet from the first network address format to the second network address format comprises performing stateful address translation, wherein the segment router maintains a mapping of session attributes corresponding to network sessions traversing the first network, and utilises this mapping to assign the new destination address and to modify additional header fields as required.In block 404, the method comprises routing, by the segment router, the packet to the second network based on the new destination address.
[0055] In other words, the present disclosure provides a mechanism for translating packets between two networks that employ differing address representations, one using a short-length address and the other a long-length address. In one embodiment, a packet originating in the network that uses the long-length address format may be forwarded by means of segment routing, wherein the last SID in the routing header encodes all information necessary for performing the translation. Specifically, the last SID may identify the translation router’s location, specify a function indicator that directs the router to execute the address translation operation, and carry, as an argument, the short-length address that is to replace the original destination address.
[0056] For clarity of explanation, reference will now be made to the below-described figures, describing examples relating to the disclosure. Notably, the following examples assume a first network utilising the short-length format and a second network utilising the long-length format; however, the described techniques are equally applicable in the reverse direction or to other pairs of address formats.
[0057] Figure 5 is a schematic representation of address translation using segment routing according to an example. As described earlier in the specification, packets from the second network 501 may be sent to the first network 502 with a destination SID, comprising a locator (i.e., a prefix that identifies the router 503), a function (‘func’ in the figure) and a short address (the new destination address, to be used after translation). The function may indicate whether the router needs to translate the network header, as well as indicate whether the source address is translated by taking the S least significant bits of the source address.
[0058] Figure 6 is a schematic representation of address translation using segment routing to multiple destinations according to an example. In the example of Figure 6, two segments are used to represent two different network paths. Different locator values may be used to indicate different routers - i.e., first router 603 and second router 604), resulting in different paths from a source H2601 to a destination Hl 602. Each segment may be represented using a different locator. The function (‘func’) may indicate the translation operation, and the destination short address may be encapsulated in the SID bits that follow the function. After performing the header translation, the router may take a routing decision based on the new (short) destination address Hl 602.
[0059] Figure 7a is a schematic representation of stateless translation from a short address to a long address according to an example, whereas Figure 7b is a schematic representation of stateless translation from a long address to a short address according to an example. Notably, the example of Figure 7a introduces a stateless translation approach. For the upstream direction (i.e., from a source Hl 702 to a destination H2701), a router 703 may translate the destination H2-short by concatenating a preconfigured prefix value (prefix 2). Similarly, the router 703 may also translate the source Hl-short by concatenating a different preconfigured prefix value (prefix 1 ). However, the disclosure is not limited thereto and the values of the first prefix (prefix 1 ) and the second prefix (prefix 2) may comprise identical constants or different configurable values.
[0060] For the downstream direction (i.e., from the source H2 701 to the destination Hl 702), the router 703 may detect a match between the prefix ‘R’ and its local preconfigured address. The router 703 may perform the function (‘func’), indicating the translation operation. The translation may include using the Hl-short value from the SID as the new (short) destination address. The router 703 may translate the source address by keeping the S least significant bits. Prefix 1 (described above in relation to Figure 7a) may be identical to R:Func or different from it.
[0061] Figure 8a is a schematic representation of stateful translation from a long address to a short address according to an example, whereas Figure 8b is a schematic representation of stateful translation from a short address to a long address according to anexample. In contrast to Figures 7a and 7b, the example of Figures 8a and 8b introduces a stateful translation approach, in which a router keeps track of all the traversing connections and performs the translation accordingly. Figure 8a depicts the downstream direction, i.e., from a source H2 801 to a destination Hl 802. A router 803 may detect a match between the prefix ‘R’ and its local preconfigured address. The router 803 may perform the function (‘func’), indicating the translation operation. The translation may comprise using the Hl -short value from the SID as the new (short) destination address. The router 803 may translate the source address by assigning a preconfigured ‘R-short’ address. The router 803 may keep track of the 5-tuple mapping between the attributes of the first network (Network 1) and the second network (Network 2). As before, prefix 1 may be identical to R:func, or different from it. In the upstream direction (i.e., from the source Hl 802 to the destination H2 801), the router 803 may translate the destination ‘R-short’ using 5-tuple mapping. The router 803 may translate the source Hl-short value by concatenating the preconfigured prefix 1.
[0062] Figure 9a is a schematic representation of stateless translation from an IPv4 address to an IPv6 address according to an example, whereas Figure 9b is a schematic representation of stateless translation rom an IPv6 address to an IPv4 address according to an example. In this example, Network 1 uses IPv4, while Network 2 uses IPv6. Figure 9a depicts the upstream direction, i.e., from a source Hl 902 to a destination H2 901. In the upstream direction, a router 903 may translate the destination address by concatenating a constant configurable prefix, and translate the source address by contacting the configurable prefix. In the downstream direction - i.e., from the source H2 901 to the destination Hl 902 - the router 903 may match the prefix 2001 :db8:: 1:5 and translate the destination by keeping the suffix. The router 903 may translate the source address by keeping the suffix.
[0063] Figure 10 is a schematic representation of a compressed segment identifier that incorporates a short address field according to an example. Advantageously, when using compressed SIDs, the present disclosure may be applied by including the shortaddress 1005 as an argument of the last C-SID on the compressed list. The compressed SID 1000 may comprise a locator block 1001, a C-SID list comprising, in the example, C-SID-1 1002, C-SIDs 1003, and a C-SID-N 1004, as well as the argument 1005.
[0064] Figure 11 is a schematic representation of an apparatus for network address translation between a first network using a first network address format and a second network using a second network address format by means of segment routing. The apparatus 1100 for network address translation between a first network using a first network address format and a second network using a second network address format by means of segment routing, the apparatus 1100 comprising a receiver module 1101 configured to receive a packet from the first network, wherein the packet comprises a network header corresponding to the first network address format and a destination address representing a segment identifier. The apparatus 1100 comprises a detection module 1102 configured to detect that the segment identifier indicates both that a current segment terminates at the apparatus and that network header translation is required according to a predetermined translation criterion. The apparatus 1100 comprises a translation module 1103 configured to translate the network header of the packet from the first network address format to the second network address format by assigning a new destination address, wherein the new destination address is determined by extracting a predetermined bit sequence from the segment identifier. The apparatus 1100 comprises a routing module 1104 configured to route the packet to the second network based on the new destination address.
[0065] 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.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.
[0066] 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.
[0067] 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 exemplary embodiments 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.
[0068] 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 network address translation between a first network using a first network address format and a second network using a second network address format by means of segment routing, the method comprising:receiving, at a segment router, a packet from the first network, wherein the packet comprises a network header corresponding to the first network address format and a destination address representing a segment identifier (401);detecting, by the segment router, that the segment identifier indicates both that a current segment terminates at the segment router and that network header translation is required according to a predetermined translation criterion (402);in response to the detection, translating the network header of the packet from the first network address format to the second network address format by assigning a new destination address, wherein the new destination address is determined by extracting a predetermined bit sequence from the segment identifier (403); androuting, by the segment router, the packet to the second network based on the new destination address (404).
2. The method of claim 1, wherein the first network address format comprises a long address format and the second network address format comprises a short address format, or the first network address format comprises the short address format and the second network address format comprises the long address format.
3. The method of claim 2, wherein the first network address format comprises an IPv6 address and the second network address format comprises an IPv4 address, or the first network address format comprises the IPv4 address and the second network address format comprises the IPv6 address.
4. The method of claim 1 , 2 or 3, wherein the segment identifier comprises a locator, a function, and an argument, the function indicating that network header translation is to be performed and the argument including a value for use as the new destination address.
5. The method of any one of claims 1 to 4, further comprising compressing the segment identifier by incorporating the new destination address as an argument in a compressed segment identifier within a compressed list.
6. The method of any one of claims 1 to 5, wherein the network header translation is performed in accordance with the segment routing over IPv6 protocol, SRv6.
7. The method of any one of claims 1 to 6, wherein translating the network header of the packet from the first network address format to the second network address format (403) comprises performing stateful address translation, wherein the segment router maintains a mapping of session attributes corresponding to network sessions traversing the first network, and utilises this mapping to assign the new destination address and to modify additional header fields as required.
8. An apparatus (1100) for network address translation between a first network using a first network address format and a second network using a second network address format by means of segment routing, the apparatus (1100) comprising:a receiver module (1101) configured to receive a packet from the first network, wherein the packet comprises a network header corresponding to the first network address format and a destination address representing a segment identifier;a detection module (1102) configured to detect that the segment identifier indicates both that a current segment terminates at the apparatus and that network header translation is required according to a predetermined translation criterion;a translation module (1103) configured to translate the network header of the packet from the first network address format to the second network address format by assigning a new destination address, wherein the new destination address is determined by extracting a predetermined bit sequence from the segment identifier; anda routing module (1104) configured to route the packet to the second network based on the new destination address.
9. The apparatus (1100) of claim 8, wherein the first network address format comprises a long address format and the second network address format comprises a short address format, or the first network address format comprises the short address format and the second network address format comprises the long address format.
10. The apparatus (1100) of claim 8 or 9, wherein the first network address format comprises an IPv6 address and the second network address format comprises an IPv4 address, or the first network address format comprises the IPv4 address and the second network address format comprises the IPv6 address.
11. The apparatus (1100) of claim 8, 9 or 10, wherein the segment identifier comprises a locator, a function, and an argument, the function indicating that network header translation is to be performed and the argument including a value for use as the new destination address.
12. The apparatus (1100) of any one of claims 8 to 11, further comprising a compression module configured to compress the segment identifier by incorporating the new destination address as an argument in a compressed segment identifier within a compressed list.
13. The apparatus (1100) of any one of claims 8 to 12, wherein the apparatus (1100) is configured to perform network header translation in accordance with the segment routing over IPv6 protocol, SRv6.
14. The apparatus (1100) of any one of claims 8 to 13, wherein, to translate the network header from the first network address format to the second network address format, the translation module (1103) is arranged to perform stateful address translation, wherein the translation module (1103) is arranged to maintain a mapping of session attributes corresponding to network sessions traversing the first network, and utilise this mapping to assign the new destination address and to modify additional header fields as required.
15. A non-transitory computer-readable medium storing instructions which, when executed by a processor, cause the processor to perform a method for network address translation between a first network using a first network address format and a second network using a second network address format by means of segment routing, the method comprising:receiving a packet from the first network, wherein the packet comprises a network header corresponding to the first network address format and a destination address representing a segment identifier;detecting that the segment identifier indicates both that a current segment terminates at a segment router and that network header translation is required according to a predetermined translation criterion;translating the network header of the packet from the first network address format to the second network address format by assigning a new destination address, wherein the new destination address is determined by extracting a predetermined bit sequence from the segment identifier; androuting the packet to the second network based on the new destination address.
