Encapsulation device, communication system, encapsulation method, and encapsulation program
By embedding the MAP rule within the IPv6 header for SRv6 encapsulation, the encapsulation device optimizes packet routing and reduces overhead in IPv4 over IPv6 communication systems, addressing inefficiencies in existing systems.
Patent Information
- Application Number
- PCT/JP2023/006203
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-21
- Publication Date
- 2024-08-29
AI Technical Summary
The existing communication systems face inefficiencies in routing encapsulated packets between IPv4 and IPv6 networks, particularly due to the need for validation and decapsulation by specific Border Relay devices, leading to suboptimal routes and increased overhead.
The encapsulation device integrates an SR tunneling unit that embeds the MAP rule within the IPv6 header, allowing any node supporting SRv6 to validate and decapsulate packets, thereby optimizing the routing and reducing overhead by combining MAP-E address sharing with SRv6 functionality.
This approach enables efficient packet routing and reduces encapsulation overhead, allowing validation at any SRv6-supporting node, thus improving transfer efficiency and flexibility in IPv4 over IPv6 communication systems.
Smart Images

Figure JP2023006203_29082024_PF_FP_ABST
Abstract
Description
Encapsulation device, communication system, encapsulation method, and encapsulation program
[0001] The present invention relates to an encapsulation device, a communication system, an encapsulation method, and an encapsulation program.
[0002] New IP address allocations for IPv4 have been depleted, leading to the construction of IPv6-only networks. Since many traditional communication destinations belong to IPv4 networks, a conversion device is required for devices that belong to IPv6-only networks to connect to devices that belong to IPv4 networks. From now on, the communication method using this conversion device will be referred to as IPv4 over IPv6 communication, as it allows IPv4 communication to be carried out over an IPv6 network.
[0003] BR (Border Relay) and CE (Customer Edge) are defined as devices used for IPv4 over IPv6 communication. BR is a device within a telecommunications carrier network. A telecommunications carrier network is a network with both IPv6 and IPv4 connectivity provided by a carrier that provides communication connectivity. CE is a customer-side device that is a terminal device connected to a BR. In this specification, the device referred to as CE is also CPE (Customer Premises Equipment) because it is terminal equipment placed on the customer side of a telecommunications carrier.
[0004] The following standard technologies exist as technical methods for conversion devices, depending on the location of the NAT (Network Address Translation) table. (1) Stateful NAT is a method in which the BR maintains the NAT table and manages the state. Stateful NAT specifications include, for example, DualStack-Lite (DS-Lite) (RFC6333) and 464XLAT (RFC6877). (2) Stateless NAT is a method in which the CE maintains the NAT table, eliminating the need for state management at the BR. Stateless NAT includes standard technologies such as lightweight 4over6 (lw4o6) (RFC7596), MAP-E, and MAP-T (RFC7599) described in Non-Patent Document 1. Although lw4o6 has a different structure, it is almost the same technical method as MAP-E. If a local IPv4 network using private addresses exists under the CE, the CE performs NAT (NAT44: a method of translating IPv4 addresses into other IPv4 addresses).
[0005] The following methods exist for including IPv4 packet information in an IPv6 packet: (a) Encapsulation is a method for placing an IPv4 packet in the payload of an IPv6 packet, and standard technologies include DS-Lite, lw4o6, and MAP-E. (b) Translation is a method for converting an IPv4 address into an IPv6 address, and standard technologies include 464XLAT and MAP-T. Below, we will explain the IPv4 over IPv6 method that uses (2) Stateless NAT and (a) Encapsulation.
[0006] MAP-E is a method used by telecommunications carriers to provide IPv4 connectivity over IPoE (IP over Ethernet (registered trademark)) (IPv6 only). Examples of telecommunications carriers include ISPs (Internet Service Providers) and VNEs (Virtual Network Enablers). MAP-E is an address sharing method in which multiple users share a single IPv4 address. The assigned PSID (Port Share ID) is embedded in the port to prevent duplication among multiple users. The number of ports that can be assigned to a user is limited depending on the sharing ratio.
[0007] FIG. 11 is an explanatory diagram showing an example of the operation of MAP-E. In the communication system 100B of FIG. 11, a receiving device 11, a BR 12, a CE 13, and a transmitting device 14 are network-connected. The transmitting device 14 has a private address (192.168.1.1) and has only IPv4 connectivity. The receiving device 11 is the device to which data packets from the transmitting device 14 are sent. Hereinafter, the communication direction from the transmitting device 14 to the receiving device 11 will be referred to as the "outgoing direction," and the communication direction from the receiving device 11 to the transmitting device 14 will be referred to as the "returning direction." A packet in the outgoing direction will be referred to as an outgoing packet, and a packet in the return direction will be referred to as a return packet.
[0008] The CE 13 accommodates the transmitting device 14 and has a NAT function unit 13a and a MAP-E function unit 13b. The NAT function unit 13a provides the NAT function (the function of the NAT44 method described above). In other words, the NAT function unit 13a performs IP address conversion (conversion between private addresses and global addresses) and port conversion according to a NAPT (Network Address & Port Translation) table stored in the device itself. The MAP-E function unit 13b provides an IPv6 encapsulation function based on the MAP-E method. In other words, the MAP-E function unit 13b converts the <IPv4 address & port number> in the outgoing packet received from the transmitting device 14 into an IPv6 address based on the MAP rule 22.
[0009] Here, the IP address and port number of the destination IP address converted by the NAT function unit 13a are derived from the MAP rule 23 managed by the MAP-E function unit 13b. The carrier ensures that the MAP rule 23 assigned to the CE 13 and the MAP rule 22 assigned to the BR 12 are consistent. The BR 12 then uses the MAP rule 22 to perform validation to determine whether the converted IPv6 address in the outgoing packet received from the CE 13 matches the pre-conversion <IPv4 address and port number>. Specifically, the validation compares whether the combination of PSID and IPv4 address inside the capsule (IPv4 header) and outside the capsule (IPv6 header) match. On the other hand, validation of the return packet is not required.
[0010] Specific processing of outgoing packets and return packets will be described below with reference to the packet diagrams of Figures 12 and 13. Outgoing packets are as follows (Figure 11): Outgoing packet P11 between the transmitting device 14 and the NAT function unit 13a Outgoing packet P12 between the NAT function unit 13a and the MAP-E function unit 13b Outgoing packet P13 between the MAP-E function unit 13b and the BR 12 Outgoing packet P14 between the BR 12 and the receiving device 11
[0011] The return packets are as follows (FIG. 11): Return packet P21 between the receiving device 11 and the BR 12 Return packet P22 between the BR 12 and the MAP-E functional unit 13b Return packet P23 between the MAP-E functional unit 13b and the NAT functional unit 13a Return packet P24 between the NAT functional unit 13a and the transmitting device 14 Note that, because the outgoing packet P12 and the return packet P23 are intra-device communications between the NAT functional unit 13a and the MAP-E functional unit 13b (internal communications in the CE 13), in practice, a data structure other than the packet format including a header as exemplified in FIGS. 12 and 13 may be used. However, for ease of explanation, the outgoing packet P12 and the return packet P23 will be described as an example of a packet format, just like the other packets.
[0012] Figure 12 is a packet diagram showing details of the header section of the outgoing packet in Figure 11. In the packet diagrams of Figures 12 and 13, the width is illustrated as 32 bits. In the following explanation of the packet diagrams, the vertically and horizontally separated areas (hereinafter referred to as "cells") in the illustrated packet header will be indicated by the row number from the top vertically and the row number from the left horizontally. For example, the fourth cell "Total Length" in the first line of outgoing packet P11 indicates the total length of outgoing packet P11, and the first cell "TTL" in the third line of outgoing packet P11 indicates the time to live (TTL) of outgoing packet P11.
[0013] The CE 13 receives an outgoing IPv4 packet P11 sent from the transmitter 14. The NAT function unit 13a converts the outgoing packet P11 into an outgoing packet P12. The MAP-E function unit 13b converts the outgoing packet P12 into an outgoing packet P13 based on the IPv6 prefix "2001:db8:1012:34:: / 56" assigned by the telecommunications carrier and the following MAP rule 23: Rule IPv6 Prefix = 2001:db8:1000:: / 40 Rule IPv4 Prefix = 192.0.2.0 / 24 EA-bit Length: 16 PSID Length = 8 PSID offset = 6
[0014] The conversion process to outgoing packet P12 is explained below. The assigned IPv6 Prefix (2001:db8:1012:34:: / 56) and Rule IPv6 Prefix (2001:db8:1000:: / 40) match by the Prefix Length of the Rule IPv6 Prefix (40 bits indicated by " / 40"). In this case, the "EA bit" is the difference (exclusive OR) of both IPv6 Prefixes, that is, the lowest 16 bits of the assigned IPv6 Prefix, 0x1234. The "IPv4 Address suffix" is the upper bits of the EA bit, and its bit length is 32 (the bit length of the IPv4 Address). The "PSID" is the lower bits of the EA bit, and the PSID Length = 8. These 8 bits are (the bit length of the IPv4 Address = 32) - (24, indicated by the Prefix Length " / 24" of the Rule IPv4 Prefix).
[0015] Therefore, the IPv4 Address suffix is 0x12 (18 in decimal). Therefore, the global address that CE13 may use is "192.0.2.18", where the above 24 bits are 192.0.2.0 (Rule IPv4 Prefix) and the lower 8 bits are 18 (IPv4 Address suffix). This "192.0.2.18" becomes "Src v4 Addr = 192.0.2.18" on the fourth line of outgoing packet P12. Also, the lower 8 bits of the EA bit, 0x34, become the PSID. The PSID Offset is 6 bits.
[0016] Additionally, to exclude Well Known Ports less than 1024, it is recommended that the upper 6 bits of the PSID Offset start from 1. Therefore, the port number (Source Port) on the sixth line of outgoing packet P12 has a value of 0b000001 or greater and 0b111111 or less for the upper 6 bits, a value of 0b00110100 for the middle 8 bits (PSID), and a value of 0b00 or greater and 0b11 or less for the lower 2 bits. The OS (Operating System) of CE13 determines an arbitrary value from these selectable values as the port number. In this example, the smallest selectable value, "0b0000010011010000," or 1232 in decimal notation, is used as the source port number after NAT44 conversion of outgoing packet P12.
[0017] The MAP-E function unit 13b converts the outgoing packet P12 into an outgoing packet P13 by encapsulating the IPv4 packet into IPv6. The MAP-E function unit 13b transfers the outgoing packet P13 to the BR 12 via the IPv6 network. The conversion process into the outgoing packet P13 will be explained below.
[0018] In the Source IPv6 Address (shown as "Source" in the figure) shown on lines 3 to 6 of the outgoing packet P13 (Figure 12), the first 56 bits are the assigned IPv6 Prefix assigned by the telecommunications carrier. The last 64 bits are the Interface-ID, so in the case of outgoing packet P13, the 8 bits following the assigned IPv6 Prefix are the Subnet, but in the case of MAP-E, 0 is used (5.2. Basic Mapping Rule (BMR) in Non-Patent Document 1). For the Interface-ID of outgoing packet P13, the first 16 bits are 0, the middle 32 bits are the IPv4 Address, and the last 16 bits are the PSID (6. The IPv6 Interface Identifier in Non-Patent Document 1). This determines the Source IPv6 Address.
[0019] Meanwhile, the Destination IPv6 Address on line 7 of the outgoing packet P13 is the IP address assigned to the BR 12, the tunnel connection destination. Furthermore, from line 8 onward in the outgoing packet P13, the outgoing packet P12 is encapsulated. Note that although the NAT function unit 13a and the MAP-E function unit 13b are depicted separately in FIG. 11, they may operate as a single unit. Also, in the example of FIG. 11, the outgoing packet P12 between the NAT function unit 13a and the MAP-E function unit 13b is depicted as a packet diagram in FIG. 12. However, depending on the actual implementation within the CE13 device, a series of conversion operations may be performed without transferring packets between function units.
[0020] The BR12 validates the received outgoing packet P13 using the following steps: (Step 1) Extract the Source IPv4 Address or IPv4 Prefix and PSID from the Source IPv6 Address of the outgoing packet P13. (Step 2) Extract the Source IPv4 Address and Source Port (including PSID) from the inner outgoing packet P12 encapsulated in the outgoing packet P13. (Step 3) Check whether the items extracted in Step 1 match (or are consistent) with the items extracted in Step 2. If there is no match in Step 3, the BR12 discards the outgoing packet P13 (see "8.1. Receiving Rules" in Non-Patent Document 1). On the other hand, if there is a match in Step 3, the BR12 removes the IPv6 header from the outgoing packet P13, extracts the IPv4 packet, and forwards the decapsulated outgoing packet P14 (IPv4 packet) to the receiving device 11.
[0021] The return packet will now be described. Fig. 13 is a packet diagram showing details of the header portion of the return packet in Fig. 11. The receiving device 11 converts the received outgoing packet P14 and sends it to the BR 12 as a return packet P21. The return packet P21 is a packet in which the Source IPv4 Address and Destination IPv4 Address of the outgoing packet P14 have been swapped, and the Source Port and Destination Port of the outgoing packet P14 have also been swapped.
[0022] The BR 12 converts the return packet P21 received from outside its own MAP domain (receiving device 11) into a return packet P22, which is an IPv6 packet, and forwards the return packet P22 to the CE 13. To do this, the BR 12 generates the destination IPv6 address of the return packet P22 based on the destination IPv4 address and the destination port of the upper layer (TCP / UDP, etc.) in the return packet P21. This generation process is described in 5.4 "Destinations outside the MAP Domain" in Non-Patent Document 1. The source IPv6 address of the return packet P22 is the address of the BR 12. As a result of the MAP calculation, the destination IPv6 address of the return packet P22 becomes the same as the source IPv6 address of the outgoing packet P13.
[0023] The MAP-E functional unit 13b of the CE 13 decapsulates the received return packet P22 and extracts the IPv4 packet inside it as return packet P23. The NAT functional unit 13a of the CE 13 performs NAT44 processing on the return packet P23 based on the NAPT table, and transfers the resulting return packet P24 to the transmitting device 14. An example of the operation of MAP-E has been described above with reference to Figures 11 to 13.
[0024] Independently of the IPv4-over-IPv6 communication function, Segment Routing over IPv6 (SRv6) exists as a technology for specifying the route a packet will travel on the network and the functions to be activated on that route (see Non-Patent Documents 2, 3, and 4). SRv6 is a technology that makes Segment Routing, originally pioneered by MPLS, available in the IPv6 underlay, and uses the IPv6 Segment Routing Header (SRH) (see Non-Patent Document 3). SRv6 has also been extended by the definition in Network Programming (see Non-Patent Document 4), enabling Layer 2 Virtual Private Networks (L2VPNs) and Layer 3 VPNs. In SRv6, the Segment ID (SID) is 128 bits, which increases the packet header length and makes hardware (ASIC) processing difficult. Therefore, a compression method has been proposed (see Non-Patent Document 5).
[0025] Internet Engineering Task Force (IETF), "Mapping of Address and Port with Encapsulation (MAP-E)", [online], [Retrieved February 13, 2023], July 2015, RFC 7597, Internet <URL: https: / / datatracker.ietf.org / doc / rfc7597 / > IETF, "Segment Routing Architecture", [online], [Retrieved February 13, 2023], July 2018, RFC 8402, Internet <URL: https: / / datatracker.ietf.org / doc / rfc8402 / > IETF, "IPv6 Segment Routing Header (SRH)", [online], [Retrieved February 13, 2023], March 2020, RFC 8754, Internet <URL: https: / / datatracker.ietf.org / doc / rfc8754 / > IETF, "Segment Routing over "IPv6 (SRv6) Network Programming," [online], [Retrieved February 13, 2023], February 2021, RFC 8986, Internet <URL: https: / / datatracker.ietf.org / doc / rfc8986 / > W. Cheng, Ed. et al., "Compressed SRv6 Segment List Encoding in SRH," [online], [Retrieved February 13, 2023], 11 July 2022, draft-ietf-spring-srv6-srh-compression-02, Internet <URL: https: / / datatracker.ietf.org / doc / draft-ietf-spring-srv6-srh-compression / 02 / >
[0026] 11, the device that performs validation and decapsulation of outgoing packets is the BR 12. In other words, the route of an outgoing packet from the transmitting device 14 to the receiving device 11 must pass through the BR 12. If the receiving device 11 and the BR 12 are located far apart, the route of the outgoing packet passing through the BR 12 becomes a detour, which is inefficient.
[0027] Therefore, a main object of the present invention is to provide a mechanism for efficiently setting a route for an encapsulated packet.
[0028] In order to solve the above problems, the encapsulation device of the present invention has the following features: The present invention is an encapsulation device used in a communication system that transmits data packets from a transmitting device to a receiving device, the encapsulation device comprising: a tunneling unit that receives the data packet with an inner header attached from the transmitting device, generates a second set of parameters by converting a first set of parameters read from the inner header based on a conversion rule, encapsulates an outer header including the second set of parameters and the conversion rule into the inner header of the data packet, and transmits the encapsulated data packet to a decapsulating device that decapsulates it.
[0029] The present invention can provide a mechanism for efficiently setting a route for an encapsulated packet.
[0030] 11 is a diagram illustrating a configuration of a communication system according to the present embodiment. FIG. 12 is a diagram illustrating a hardware configuration of each device in the communication system according to the present embodiment. FIG. 13 is a flowchart illustrating an overview of processing in the communication system according to the present embodiment. FIG. 14 is a packet diagram illustrating a packet output by a MAP-E functional unit. FIG. 15 is a packet diagram illustrating a packet obtained by converting the packet in FIG. 4 into SRv6. FIG. 16 is a packet diagram illustrating a packet obtained by compressing the packet in FIG. 5. FIG. 17 is a packet diagram illustrating a packet generated by an SR tunneling unit according to the present embodiment. FIG. 18 is a packet diagram illustrating details of the interface unit in FIG. 7 according to the present embodiment. FIG. 19 is a diagram illustrating verification code according to the present embodiment. FIG. 20 is a diagram illustrating pseudo code to be inserted into the pseudo code in FIG. 9 according to the present embodiment. FIG. 21 is an explanatory diagram illustrating an example of the operation of MAP-E. FIG. 22 is a packet diagram illustrating details of a header section of the outgoing packet in FIG. 21. FIG. 23 is a packet diagram illustrating details of a header section of the return packet in FIG.
[0031] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.
[0032] FIG. 1 is a configuration diagram of a communication system 100. As an example of the communication system 100, the MAP-E method described in Non-Patent Document 1 is applied to an SRv6 network, and a format equivalent to the Shared IPv4 Address in Non-Patent Document 1 is illustrated below. The communication system 100 of this embodiment realizes the address-sharing type IPv4 over IPv6 technology as SRv6 Network Programming. The communication system 100 has the following two main features: - It provides an address representation format for decapsulation at any node that supports SRv6. - It reduces packet encapsulation overhead and improves transfer efficiency.
[0033] Path P22, indicated by the dashed arrow in Figure 1, passes through the following order: CE33 → routers R11 → R12 → R21 → R23 → R25 → R27 → BR32 (validation here) → R27 → external AS 31a → receiving device 31. This path P22 uses the conventional method of performing validation at BR32, and the route is not optimized, as it passes through R27 twice. Furthermore, data packets decapsulated at BR32 must be communicated over IPv4 from BR32 to R27, which requires the effort of R27 to operate a dual stack of IPv6 and IPv4.
[0034] On the other hand, path P21, indicated by the solid arrow in FIG. 1, passes through the following order: CE33 → router R11 → R12 → R21 → R23 → R25 → R27 (validation here) → external AS 31a → receiving device 31. This path P21 utilizes the mechanism of this embodiment that enables validation to be performed at any node, and the route is optimized. Assume that router R27, which performs validation, has an anycast address of 2001:db8:1fff:1::, equivalent to that of BR32. For path P21 to be operational, the route must satisfy the following conditions: - The route is in accordance with "5.3. Global IPv4 over SRv6 Core" of RFC9252, i.e., AFI=1 / SAFI=1 in "6.1. IPv4 over IPv6 Core" of RFC8950. - The route is not a VPN. On the other hand, a VPN is not possible because the VRF must be shared by different devices.
[0035] In the communication system 100, a receiving device 31, a BR 32, a CE 33, and a transmitting device 34 are network-connected. The transmitting device 34 has only IPv4 connectivity and is assigned an IPv4 private address. The receiving device 31 is the device to which data packets from the transmitting device 34 are transmitted. Hereinafter, the communication direction from the transmitting device 34 to the receiving device 31 will be referred to as the "outgoing direction," and the communication direction from the receiving device 31 to the transmitting device 34 will be referred to as the "returning direction." A packet in the outgoing direction will be referred to as an outgoing packet, and a packet in the return direction will be referred to as a return packet.
[0036] The CE 33 accommodates the transmitting device 34 and has a NAT function unit 33a, an SR tunneling unit 33b, and a MAP rule 33c. The NAT function unit 33a provides NAT44 functionality similar to the NAT function unit 13a in FIG. 11. The SR tunneling unit 33b provides IPv6 encapsulation functionality based on the MAP-E method and integrates address and port sharing technology equivalent to MAP-E with SRv6. The SR tunneling unit 33b converts the IPv4 address and port number in an outgoing packet received from the transmitting device 34 into an IPv6 address based on the MAP rule 33c. The SR tunneling unit 33b may be configured to integrate the IPv6 encapsulation functionality (tunneling unit) based on the MAP-E method and the SRv6 functionality (SR unit). Alternatively, the tunneling unit may be provided in the CE 33 and the SR unit may be provided in another device, such as the router R11.
[0037] The main similarities and differences between the MAP-E functional unit 13b in FIG. 11 and the SR tunneling unit 33b in FIG. 1 are as follows: Both the MAP-E functional unit 13b and the SR tunneling unit 33b perform IPv6 encapsulation. The MAP-E functional unit 13b performs encapsulation by referring to the MAP rule 22 obtained from the CE 13, while the SR tunneling unit 33b performs encapsulation by referring to the MAP rule 33c obtained from the CE 33. The BR 12 validates the outgoing packet P13 by referring to the MAP rule 23 set in advance by the administrator. Therefore, the device that performs validation is limited to the BR 12. On the other hand, the SR tunneling unit 33b further embeds at least a portion of the MAP rule 33c in the encapsulated outgoing packet. As a result, the device that validates the outgoing packet P13 can read the MAP rule 33c from the received outgoing packet, so any node that does not have a MAP rule 23 set in advance can be in charge. The MAP-E functional unit 13b does not have the SRv6 function, and the device that sets SRv6 in the outgoing packet P13 is a relay device (for example, router R21 in Figure 1) located in the outgoing direction toward BR12 from CE13. On the other hand, the SR tunneling unit 33b also has the SRv6 function integrated.
[0038] It is also assumed that some of the address prefixes held by the provider network 41 in FIG. 1 are distributed from router R11 using Dynamic Host Configuration Protocol (DHCP) v6 Prefix Delegation (PD) or similar. Routers R12 and R13, which are ASBRs (AS Border Routers) upstream of router R11, are connected to the provider network 41 via inter-AS connections. The following explanation uses the provider network 41 as an example. Routers R12 and R13 are also connected to another provider network 42, and it is assumed that router R11 distributes addresses to customers using DHCPv6-PD on behalf of the provider network 41 and the provider network 42. Furthermore, although it is standardized that MAP rule 33c is distributed as a DHCP option, it may also be implemented using alternative methods, such as obtaining it from an HTTP (Hypertext Transfer Protocol) server. Similarly, these alternative methods can be used in this embodiment as well, and the method is not important.
[0039] FIG. 2 is a hardware configuration diagram of each device in the communication system 100. Each device in the communication system 100 (receiving device 31, BR 32, CE 33, transmitting device 34, and each of the routers R11 to R28) is configured as a computer 900 having a CPU 901, RAM 902, ROM 903, HDD 904, communication I / F 905, input / output I / F 906, and media I / F 907. The communication I / F 905 is connected to an external communication device 915. The input / output I / F 906 is connected to an input / output device 916. The media I / F 907 reads and writes data from a recording medium 917. Furthermore, the CPU 901 controls each unit by executing a program (also called an application, or an app for short) loaded into the RAM 902. This program can be distributed via a communication line or recorded on a recording medium 917 such as a CD-ROM.
[0040] 3 is a flowchart showing an outline of the processing of the communication system 100. First, the administrator of the communication system 100 prepares the MAP rule 33c to be read into the CE 33 and the validation code (described later in FIGS. 9 and 10) to be executed by the device in charge of decapsulation (validation) (S11). Note that while the device in charge of decapsulation is illustrated as router R27 in FIG. 1, it may also be BR 32. The CE 33 on the sending side of the outgoing packet embeds the following information in the IPv6 header that is added in conjunction with encapsulation for the outgoing packet (data packet) received from the sending device 34 (S12): Data to which the MAP rule 33c has been applied (hereinafter referred to as "MAP data") At least a part of the MAP rule 33c
[0041] In other words, the process of S12 is as follows: CE (encapsulation device) 33 used in communication system 100, which transmits outgoing packets from transmitting device 34 to receiving device 31, has an SR tunneling unit 33b. The SR tunneling unit 33b receives outgoing packets with IPv4 headers (inner headers) from transmitting device 34, and generates a second set of parameters (MAP data) by converting a first set of parameters read from the IPv4 header based on MAP rules 33c. The SR tunneling unit 33b then encapsulates an IPv6 header (outer header) including the second set of parameters and MAP rules 33c into the IPv4 header of the outgoing packet, and transmits the outgoing packet to BR (decapsulation device) 32, which decapsulates the packet.
[0042] The SR tunneling unit 33b may include information indicating the bit length of each parameter group constituting the second parameter group as the MAP rule 33c in the IPv6 header. The SR tunneling unit 33b may also encapsulate the outgoing packet by including the second parameter group and the MAP rule 33c in its own address information in the IPv6 header. Furthermore, the SR tunneling unit 33b may also encapsulate the outgoing packet by including, in the IPv6 header to be encapsulated in the outgoing packet, address information indicating the relay route the outgoing packet will take to reach the BR 32.
[0043] The router on the receiving side of the outgoing packet (router R27 in FIG. 1) reads the MAP rule 33c embedded in the outgoing packet (data packet) received from CE 33, and reads the MAP data in the data packet from the MAP rule 33c and verifies it (S13).The router in S13 then decapsulates the data packet that has passed the verification process and forwards it to the receiving device 31 (S14).
[0044] In other words, the process of S13 is as follows: The BR 32 decapsulates the IPv6 header of the encapsulated outgoing packet received from the CE 33, and acquires the second parameter set from the IPv6 header based on the MAP rule 33c included in the IPv6 header. The BR 32 then performs a verification process to determine whether to discard the outgoing packet or forward it to the receiving device 31 by comparing the first parameter set read from the IPv4 header of the decapsulated outgoing packet with the acquired second parameter set.
[0045] The packets used by the communication system of Fig. 11 will be explained below with reference to the packet diagrams of Figs. 4 to 6. The packet diagrams of Figs. 4 to 7 are 128 bits wide. Fig. 4 is a packet diagram showing packet P13m output by the MAP-E function unit 13b. Packet P13m has a configuration in which a user's IPv4 packet 102 (specific cells are omitted) is encapsulated in a MAP-E IPv6 header 101. The MAP-E IPv6 header 101 contains the following information: - IPv6 header (RFC8200 standard) in the first line - Source Address (128 bits) in the second line - Destination Address (128 bits) in the third line
[0046] The first line of the IPv6 header (RFC8200 standard) contains the following information: Version (4 bits) Traffic Class (8 bits) Flow Label (20 bits) Payload Length (16 bits) Next Header (8 bits) Hop Limit (8 bits)
[0047] Figure 5 is a packet diagram showing packet P13a, which is packet P13m in Figure 4 converted to SRv6 by a relay node (e.g., router R21). Packet P13a contains the following information: - The IPv6 header 111 for SRv6 in lines 1 to 3 includes an IPv6 header (RFC8200 standard), a source address with embedded MAP data, and a destination address of BR32. - The SRH 112 for SRv6 in lines 4 to 6 includes, in addition to the SRH header format (RFC8754 standard), the addresses of routers R25 and R27 as routers relaying the packet to the destination address of router R27. In other words, packet P13a contains an SRH (Non-Patent Document 3) inserted by SRv6 (Non-Patent Document 4) executed by router R21, which explicitly specifies the route to "reach BR32 via routers R25 and R27." The IPv6 header 101 of MAP-E on lines 7 to 9 and the user IPv4 packet 102 on line 10 contain the same information as packet P13m in Fig. 4. Since this information required by MAP-E is not supported by the SRv6 function, it is embedded in a location separate from the IPv6 header 111 for SRv6 and the SRH 112 for SRv6.
[0048] The SRH header format (RFC8754 standard) includes the following information: Next Header (8 bits) Hdr Ext Len (8 bits) Routing Type (8 bits) Segments Left (8 bits) Last Entry (8 bits) Flags (8 bits) Tag (16 bits)
[0049] Figure 6 shows packet P13b, which is the result of compressing packet P13a in Figure 5. First, the SRv6 in packet P13a is a 128-bit SID, which has a large overhead and a long SID length, making it unsuitable for hardware processing such as an ASIC (Application Specific Integrated Circuit). For this reason, the following compression method (Non-Patent Document 5) exists for SRv6. In packet P13b, the first half of packet P13a (the IPv6 header for SRv6 111 and the SRH for SRv6 112) is compressed as the compressed SRH for SRv6 121. The second half of packet P13b is the same as the second half of packet P13a. The first and second lines of the compressed SRH for SRv6 121 are the same as those of the IPv6 header for SRv6 111. In the "Destination IPv6 Address" on the third line of the compressed SRH 121 for SRv6, information to pass through routers R25 and R27 is embedded using NEXT-C-SID Flavor, and the SRH is omitted using H.Encaps.RED.
[0050] Note that MAP-E is not an SRv6 function, so the function (End.DT4) defined in SRv6 Network Programming cannot satisfy the MAP-E validation requirements. Therefore, packet P13a in FIG. 5, which is obtained by SRv6-encapsulating packet P13m in FIG. 4 as a user packet, becomes a stack of IPv6 header + SRH + MAP-E (IPv6 header + IPv4 packet), resulting in significant overhead due to header attachment. Even packet P13b in FIG. 6, which omits the SRH portion of packet P13a in FIG. 5 using the compression method described above, cannot encapsulate an IPv4 packet using standard H.Encaps. Therefore, the IPv6 header is double-encapsulated with the SRv6-compressed SRH 121 and the MAP-E IPv6 header 101, resulting in significant overhead due to header attachment. Therefore, the SR tunneling unit 33b in this embodiment further improves compression efficiency using the proposed method shown in FIG. 7.
[0051] 7 is a packet diagram of packet P13c generated by the SR tunneling unit 33b of this embodiment. Packet P13c includes a mixed IPv6 header 201 and a user IPv4 packet 202. The IPv4 packet 202 is the same as the IPv4 packet 102 in FIG. 6. The mixed IPv6 header 201 combines the information of the SRv6 compressed SRH 121 in FIG. 6 and the information of the MAP-E IPv6 header 101. The mixed IPv6 header 201 includes the following information: - The IPv6 header (RFC8200 standard) in the first line is included in the SRv6 compressed SRH 121 in FIG. 6. - The "Source IPv6 Address" in the second line includes the MAP data (IPv6 prefix assigned by the telecommunications carrier) in the second line of the MAP-E IPv6 header 101 in the first half (64 bits). The Interface-ID (64 bits) in the latter half of the second line is the "interface section 203," and the interface section 203 includes the MAP rule 33c of MAP-E. In other words, the SR tunneling section 33b treats both the CE 33 and the BR 32 as nodes within the SRv6 domain. The "Destination IPv6 Address" in the third line is included in the SRv6 compressed SRH 121 in Figure 6. In other words, the third line in Figure 7 is an example in which compression is performed using the NEXT-C-SID Flavor, the SRH is omitted using H.Encaps.RED, and the final SRv6 destination is the BR 32, just like in Figure 6.
[0052] FIG. 8 is a packet diagram showing details of the interface unit 203 of the present embodiment shown in FIG. 7. The interface unit 203 contains the following information, starting from the left side of the figure: The first IPv6 Prefix Length (6-bit length = value 0-value 63) is the prefix length ( / 1- / 64) in the Rule IPv6 Prefix of the MAP rule 33c. For example, if Rule IPv6 Prefix = "2001:db8:1000:: / 40", then Prefix Length = 40. As a premise, the prefix including the subnet ID of the IPv6 address assigned according to the definition in "2.5.4. Global Unicast Addresses" of RFC4291 IP Version 6 Addressing Architecture is 64 bits long. IPv6 addresses are assigned by the Internet Assigned Numbers Authority (IANA). In reality, the IPv6 prefix :: / 0 (used to represent routes across the entire IPv6 Internet, such as the default route) is never selected as the Rule IPv6 Prefix. Therefore, the 64 combinations from / 1 to / 64 are expressed as 6 bits 0b000000-0b111111 (0-63 in decimal), and this value is the actual prefix length minus 1.
[0053] The second EA Len (6 bits) is the EA-bit Length of the MAP rule 33c. EA-bit is "IPv4 Address Suffix + PSID." EA Len ranges from 0b000000-0b110000 (0-48 in decimal). The minimum value, 0, means there is no IPv4 Suffix and PSID. The maximum value, 48, means IPv4 Address Suffix: 32 bits + Port: 16 bits. The third PSID Len (4 bits) is the PSID Length of the MAP rule 33c. PSID Len is the actual Length minus 1, and the actual value is in the range of 1-16 in decimal. In Non-Patent Document 1, the PSID may be 0 bit, but this specification assumes the Shared IPv4 Address in Non-Patent Document 1, so the PSID is assumed to be 1 or greater.
[0054] - The fourth PSID Offset (4 bits) is the PSID offset of the MAP rule 33c. The PSID Offset is a decimal value ranging from 0 to 15. - The fifth PSID (12 bits) is part of the MAP data. - The sixth IPv4 Address Prefix (32 bits) may be part of the MAP data or may be the Rule IPv4 Prefix of the MAP rule 33c. Note that in the MAP-E method, the lower 48 bits are embedded in the order of Source IPv4 Address + PSID, but in this method, this is reversed.
[0055] The maximum length of the fifth PSID is 16 bits, but in order to exclude Well Known ports less than 1024, the default in MAP-E is to use 6 bits for the PSID Offset, and it is generally considered to be 10 bits or less. If the PSID length were 13 bits or more, part of the PSID would not be expressible, but the PSID is included in both the IPv6 Prefix and Source Port. Therefore, since it is acceptable for some of the PSID to not be expressed, the PSID is expressed before the Source IPv4 Address, allowing for partial overwriting.
[0056] In this way, the interface unit 203 partially shortens the length of the information required for address / port validation (MAP rule 33c) to 20 bits (the first IPv6 Prefix Length to the fourth PSID Offset). As a comparative example, draft-ietf-spring-sr-service-programming-06 considers support for both MPLS and IPv6 data planes. On the other hand, the additional information in the interface unit 203 of this embodiment is 20 bits, making it applicable to SR-MPLS as well. Furthermore, in this embodiment, the interface unit 203 is embedded in the "Source IPv6 Address" on the second line of the mixed IPv6 header 201, but since its main portion is 20 bits, it can also be embedded in the flow label, for example. Furthermore, because packet P13c integrates SRv6 and the address sharing method, unnecessary overhead is not added to the packet format. Furthermore, to configure the SR tunneling unit 33b of the CE 33, only a minor extension is required: a change to the IPv6 address generation method. Therefore, the processing of SRv6 H.Encaps and H.Encaps.RED defined in Non-Patent Document 4, which is the basic mechanism of CE33, remains unchanged, which reduces development costs.
[0057] Note that an SRH is required to enable forwarding from each router R11 to R28, which acts as a relay device, to BR32. This relay device is a device that is intentionally intended to pass through, but this also includes cases where an SID is inserted to utilize TI-LFA as a fast switching method in the event of a failure. If CE33 and BR32 belong to the same SRv6 domain, the decapsulation performed by BR32 corresponds to the End.DT4 process in Non-Patent Document 4. However, End.DT4 does not define a function to verify the Source IPv6 Address, the Source IPv4 Address in the encapsulated IPv4 packet, and the Source Port in the upper layer, so this function is additionally required. Therefore, the device performing validation in this embodiment (router R27 in Figure 1) performs the extension shown in Figure 10 on End.DT4 of SRv6 (Non-Patent Document 4) shown in Figure 9.
[0058] Figure 9 shows the pseudocode defined in "4.7. End.DT4: Decapsulation and Specific IPv4 Table Lookup" of Non-Patent Document 4 as the verification code prepared in S11. "S01" to "S07" on the left side of each line indicate the line number. In the second line, "S02," decapsulation (remove the outer IPv6 header) is performed.
[0059] Figure 10 shows the pseudocode prepared in S11, inserted between S01 and S02 in the pseudocode in Figure 9. The pseudocode in Figure 10 is executed by the device responsible for validation and decapsulation on the receiving side (router R27 in Figure 1) to verify the PSID and IPv4 address. Whether or not the pseudocode in Figure 10 is executed can be determined by the SRv6 Programming Endpoint Behavior identifier (specified in the IPv6 header of the outgoing packet). The numbers in [] in Figure 10 represent the number of bits from the beginning of the data (starting from 0), and : represents the range. For example, [64:191] refers to the 128 bits from bit 64 to bit 191. Note that this pseudocode example does not assume fragmentation, the IPv4 header does not have extension options, and the transport layer is TCP / UDP.
[0060] 10, a packet that satisfies at least one of conditional statements 211 to 213 is discarded. Conditional statement 211 indicates a case where the IPv4 address in IPv4 packet 202 does not match the sixth "IPv4 Address Prefix (32 bits)" in interface section 203. Conditional statement 212 indicates a case where the IPv4 address suffix in IPv4 packet 202 does not match the "IPv4 Address Suffix," which is the most significant bit of the second EA bit on the second line of mixed IPv6 header 201. Conditional statement 213 indicates a case where the PSID in the port in IPv4 packet 202 does not match the PSID in the first "IPv6 Prefix" on the third line of mixed IPv6 header 201. Router R27 can obtain each parameter in the packet referenced in conditional statements 211 to 213 using MAP rule 33c embedded in interface section 203. This allows SRv6 nodes other than BR32, such as router R27, to perform the same functions as those realized by MAP-E, even if the MAP rule 33c is not set in advance.
[0061] [Effect] The present invention is a CE33 used in a communication system 100 that transmits outgoing packets from a transmitting device 34 to a receiving device 31, and is characterized in that the CE33 receives outgoing packets with IPv4 headers from the transmitting device 34, generates a second set of parameters by converting a first set of parameters read from the IPv4 header based on a MAP rule 33c, encapsulates an IPv6 header including the second set of parameters and the MAP rule 33c into the IPv4 header of the outgoing packet, and transmits the outgoing packet to a BR32 that decapsulates it.
[0062] This allows the CE 33 to directly include the MAP rule 33c in the outgoing packet, thereby enabling decapsulation at any SRv6-compatible node. Thus, the CE 33 can efficiently set a route for the encapsulated packet.
[0063] The SR tunneling unit 33b of the present invention is characterized in that it includes information indicating the bit length of each parameter group constituting the second parameter group as a MAP rule 33c in the IPv6 header.
[0064] This allows the CE 33 to execute highly flexible verification processing that corresponds to parameters with variable bit lengths.
[0065] The SR tunneling unit 33b of the present invention is characterized in that it encapsulates an outgoing packet by including the second parameter group and the MAP rule 33c in its own address information in the IPv6 header.
[0066] This allows the CE 33 to appropriately reduce the data amount of the outgoing packet by embedding information in its own address information, which does not affect the relay processing of the outgoing packet.
[0067] The SR tunneling unit 33b of the present invention is characterized in that it encapsulates the outgoing packet by including in the IPv6 header the address information indicating the relay route that the outgoing packet will take to the BR 32.
[0068] This allows CE33 to use a single header for both the IPv6 header for tunneling MAP-E and the IPv6 header for specifying the SRv6 relay route. This reduces the packet header length and improves transfer efficiency. This allows the combination of IPv4 over IPv6 technology such as MAP-E / MAP-T, which performs stateless translation within the carrier network, with the SRv6 function for specifying routes and functions, minimizing packet overhead.
[0069] The present invention is characterized in that a communication system 100 having a CE33 and a BR32, in which the BR32 decapsulates the IPv6 header of an encapsulated outgoing packet received from the CE33, acquires a second set of parameters from the IPv6 header based on a MAP rule 33c included in the IPv6 header, and performs a verification process to determine whether to discard the outgoing packet or forward it to the receiving device 31 by comparing a first set of parameters read from the IPv4 header of the decapsulated outgoing packet with the acquired second set of parameters.
[0070] This allows any node to take on the role of BR 32, not just the BR 32 for which the MAP rule 33c has been set in advance.
[0071] REFERENCE SIGNS LIST 11 Receiving device 12 BR 13 CE 13a NAT function unit 13b MAP-E function unit 14 Transmitting device 22, 23 MAP rule 31 Receiving device 32 BR (decapsulation device) 33 CE (encapsulation device) 33a NAT function unit 33b SR tunneling unit 33c MAP rule 34 Transmitting device 100, 100B Communication system
Claims
1. An encapsulation device used in a communication system that transmits a data packet from a transmitting device to a receiving device, the encapsulation device having a tunneling unit that receives the data packet with an inner header attached from the transmitting device, generates a second group of parameters by converting a first group of parameters read from the inner header based on a conversion rule, encapsulates an outer header including the second group of parameters and the conversion rule into the inner header of the data packet, and transmits the encapsulated data packet to a decapsulation device that decapsulates the data packet.
2. The encapsulation device according to claim 1, wherein the tunneling unit includes information indicating the bit length of each parameter group constituting the second parameter group in the outer header as the conversion rule.
3. The encapsulation device according to claim 1, wherein said tunneling unit encapsulates said data packet by including said second parameter group and said conversion rule in its own address information in said outer header.
4. The encapsulation device according to claim 1, wherein the tunneling unit encapsulates the data packet by including, in the outer header to be encapsulated in the data packet, address information indicating the relay route through which the data packet will pass on its way to the decapsulation device.
5. A communication system having an encapsulation device as described in any one of claims 1 to 4 and a decapsulation device, wherein the decapsulation device decapsulates the outer header of the encapsulated data packet received from the encapsulation device, obtains the second group of parameters from the outer header based on the conversion rule contained in the outer header, and performs a verification process to determine whether to discard the data packet or forward it to the receiving device by comparing the first group of parameters read from the inner header of the decapsulated data packet with the obtained second group of parameters.
6. An encapsulation method for a communication system that transmits data packets from a transmitting device to a receiving device, comprising the steps of: receiving a data packet with an inner header from the transmitting device; generating a second set of parameters by converting a first set of parameters read from the inner header based on a conversion rule; encapsulating an outer header including the second set of parameters and the conversion rule into the inner header of the data packet; and transmitting the encapsulated data packet to a decapsulation device that decapsulates the data packet.
7. An encapsulation program for causing a computer to function as the encapsulation device according to any one of claims 1 to 4.
Citation Information
Patent Citations
Container virtual network communication method and container virtual network
CN115314437A
Address conversion device, method and program, name resolution system, method and program, and node
JP2010050547A
Network system and network flow tracking method
WO2012111222A1
Transfer device, transfer method, and transfer program
WO2022070348A1
