Data forwarding method, network side edge router and network system

By converting IPv4 to IPv6 and IPv6 to IPv4 packets in the edge router on the network side, and using the MP-BGP protocol to transmit accessibility information, the problem of insufficient compatibility of IPv4 edge devices in multi-domain pure IPv6 networks is solved, and the problem of insufficient compatibility of IPv4 edge devices in multi-domain pure IPv6 networks is improved. Network compatibility and packet conversion efficiency.

CN115567484BActive Publication Date: 2024-11-26CHINA TELECOM CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110738842.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-30
Publication Date
2024-11-26
Estimated Expiration
2041-06-30

AI Technical Summary

Technical Problem

The prior art is difficult to effectively compatible with IPv4 edge devices in multi-domain pure IPv6 networks, resulting in insufficient network compatibility.

Method used

By implementing IPv4 to IPv6 and IPv6 to IPv4 conversion of packets in the edge router on the network side, the conversion parameter information and the multi-protocol border gateway protocol (MP-BGP) are used to transmit reachability information, ensuring that the packets are in the IPv6 network. Forward and interact correctly.

Benefits of technology

It improves network compatibility, realizes normal service and data interaction of IPv4 edge devices in IPv6 network, reduces configuration workload, and improves the efficiency and coverage of packet conversion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115567484B_ABST
    Figure CN115567484B_ABST
Patent Text Reader

Abstract

The present disclosure proposes a data forwarding method, a network side edge router and a network system, and relates to the field of Internet technology. A data forwarding method of the present disclosure includes: a first network side edge router PE receives a first data packet from a source node, wherein the source node is an IPv4 node; the first PE determines the IPv6 address conversion prefix corresponding to the first destination address of the first data packet based on the first destination address and service identifier of the first data packet and based on the conversion parameter information; the first PE performs conversion from an IPv4 data packet to an IPv6 data packet on the first data packet according to the IPv6 address conversion prefix, and obtains a second data packet; the second data packet is sent to a second PE through an IPv6 network, so that the second PE performs conversion from an IPv6 data packet to an IPv4 data packet on the second data packet and sends it to the first destination address. Through such a method, it is possible to realize that a pure IPv6 network provides services to IPv4 edge devices, thereby improving network compatibility.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of Internet technology, and in particular to a data forwarding method, a network-side edge router, and a network system. Background Art

[0002] A multi-domain pure IPv6 (Internet Protocol Version 6) network (All IPv6) refers to a network that implements an IPv6 single stack in multiple domains, implements addressing, routing, and forwarding services based only on IPv6 in multiple autonomous domain networks, and adapts the IPv4 (Internet Protocol Version 4) protocol at the edge to provide IPv4 connection and forwarding services (IPv4aaS). Summary of the invention

[0003] One purpose of the present disclosure is to propose a method for implementing a pure IPv6 network to provide services to an IPv4 edge device, thereby improving network compatibility.

[0004] According to one aspect of some embodiments of the present disclosure, a data forwarding method is proposed, including: a first PE (Provider Edge, network side edge router) receives a first data packet from a source node, wherein the source node is an IPv4 node; the first PE determines, based on the first destination address and service identifier of the first data packet and based on conversion parameter information, the IPv6 address conversion information corresponding to the first destination address of the first data packet; the first PE performs conversion from an IPv4 data packet to an IPv6 data packet on the first data packet according to the IPv6 address conversion information, and obtains a second data packet; and sends the second data packet to a second PE via an IPv6 network, so that the second PE performs conversion from an IPv6 data packet to an IPv4 data packet on the second data packet and then sends it to the first destination address.

[0005] In some embodiments, the data forwarding method also includes: the first PE receives a third data packet from the IPv6 network; the first PE performs conversion from an IPv6 data packet to an IPv4 data packet on the third data packet based on the conversion parameter information according to the second destination address and service identifier of the third data packet, and obtains a fourth data packet; and sends the fourth data packet to the second destination address, wherein the node of the second destination address is an IPv4 node.

[0006] In some embodiments, the conversion from an IPv4 data packet to an IPv6 data packet includes: converting the destination address of the IPv4 data packet into a corresponding IPv6 address based on an IPv6 address conversion prefix; or encapsulating the IPv4 data packet as a payload in an IPv6 data packet with the IPv6 address corresponding to the destination address of the IPv4 data packet as the destination address.

[0007] In some embodiments, the conversion from an IPv6 data packet to an IPv4 data packet includes: converting a destination address in the IPv6 data packet into a corresponding IPv4 address based on an IPv6 address conversion prefix; or decapsulating the IPv6 data packet to obtain a payload.

[0008] In some embodiments, the data forwarding method also includes: the first PE receives conversion parameter information from one or more other PEs through the control plane network, the conversion parameter information includes the IPv6 address conversion prefix of the source PE of the conversion parameter, the service identifier of the service supported by the source PE, and the IPv4 address of the user edge router CE connected to the source PE; the first PE stores the conversion parameter information.

[0009] In some embodiments, the data forwarding method also includes: the first PE generates its own data packet conversion information, the data packet conversion information includes the IPv6 address conversion prefix of the first PE, the service identifier of the service supported by the first PE for data packet conversion, and the IPv4 address of the CE (Customer Edge) to which the first PE is connected; the first PE sends the data packet conversion information to one or more other PEs through the control plane network.

[0010] In some embodiments, the conversion parameter information transmitted in the control plane network is carried by multi-protocol reachable network layer reachability information MP-REACH-NLRI and multi-protocol unreachable network layer reachability information MP-UNREACH-NLRI messages of the multi-protocol border gateway protocol MP-BGP.

[0011] According to one aspect of some embodiments of the present disclosure, a network-side edge router is proposed, comprising: a first receiving unit, configured to receive a first data packet from a source node, wherein the source node is an IPv4 node; a conversion unit, configured to determine, based on the first destination address and service identifier of the first data packet and based on conversion parameter information, IPv6 address conversion information corresponding to the first destination address of the first data packet, and, based on the IPv6 address conversion information, perform conversion from an IPv4 data packet to an IPv6 data packet on the first data packet to obtain a second data packet; a first sending unit, configured to send the second data packet to a second PE via an IPv6 network, so that the second PE performs conversion from an IPv6 data packet to an IPv4 data packet on the second data packet and then sends it to the first destination address.

[0012] In some embodiments, the network side edge router also includes: a second receiving unit, configured to receive a third data packet from the IPv6 network; the conversion unit is also configured to perform conversion from an IPv6 data packet to an IPv4 data packet on the third data packet based on the conversion parameter information according to the second destination address and service identifier of the third data packet, to obtain a fourth data packet; a second sending unit, configured to send the fourth data packet to the second destination address, wherein the node of the second destination address is an IPv4 node.

[0013] In some embodiments, the network side edge router also includes: a conversion parameter acquisition unit, which is configured to receive conversion parameter information from one or more other PEs through a control plane network, the conversion parameter information including the IPv6 address conversion prefix of the source PE of the conversion parameter, the IPv6 address of the source PE, the service identifier of the service supported by the source PE, and the IPv4 address of the user edge router CE connected to the source PE, and store the conversion parameter information.

[0014] In some embodiments, the network side edge router also includes: a conversion parameter providing unit, which is configured to generate its own data packet conversion information, the data packet conversion information including the IPv6 address of the first PE, the IPv6 address conversion prefix of the first PE, the service identifier of the service supported by the first PE for data packet conversion, and the IPv4 address of the user edge router CE connected to the first PE; and send the data packet conversion information to one or more other PEs through the control plane network.

[0015] According to one aspect of some embodiments of the present disclosure, a network-side edge router is provided, comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to implement any one of the above data forwarding methods based on instructions stored in the memory.

[0016] According to one aspect of some embodiments of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored, and when the instructions are executed by a processor, the steps of any one of the above data forwarding methods are implemented.

[0017] According to one aspect of some embodiments of the present disclosure, a network system is proposed, comprising: a plurality of any of the above network side edge routers; and an IPv6 network node configured to forward IPv6 data packets between the network side edge routers. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings described herein are used to provide a further understanding of the present disclosure and constitute a part of the present disclosure. The illustrative embodiments of the present disclosure and their descriptions are used to explain the present disclosure and do not constitute an improper limitation on the present disclosure. In the drawings:

[0019] Figure 1The present invention provides a flow chart of some embodiments of the data forwarding method disclosed herein.

[0020] Figure 2 Flow charts of other embodiments of the data forwarding method disclosed in the present invention.

[0021] Figure 3 Flowcharts of some further embodiments of the data forwarding method disclosed herein.

[0022] Figure 4 Schematic diagram of some embodiments of the network-side edge router disclosed in the present invention.

[0023] Figure 5 Schematic diagrams of other embodiments of the network-side edge router disclosed herein.

[0024] Figure 6 Schematic diagrams of some further embodiments of the network-side edge router disclosed herein.

[0025] Figure 7 Schematic diagrams of some embodiments of the network system disclosed herein.

[0026] Figure 8 Schematic diagrams of other embodiments of the network system disclosed herein. DETAILED DESCRIPTION

[0027] The technical solution of the present disclosure is further described in detail below through the accompanying drawings and embodiments.

[0028] The flowcharts of some embodiments of the data forwarding method disclosed in the present invention are as follows: Figure 1 shown.

[0029] In step 130, the first PE receives a first data packet from a source node. The source node is an IPv4 node. In some embodiments, the first data packet can be sent to the first PE via a CE node that only supports IPv4 and is connected to the first PE. The first data packet includes a source address and a destination address, wherein the source address and the destination address are IPv4 addresses.

[0030] In step 140, the first PE determines the IPv6 address conversion information corresponding to the first destination address of the first data packet based on the conversion parameter information according to the first destination address and the service identifier of the first data packet. The conversion parameter information may be information stored by the first PE, and may be obtained through interaction between PE nodes through the control plane. In some embodiments, the conversion parameter information includes multiple entries, each entry including the IPv6 address prefix of other PE nodes, the IPv4 address of the CE node connected to the PE node, and the service identifier of the service for data packet conversion supported by the PE node.

[0031] In some embodiments, the first PE matches the destination address and the service identifier of the first data packet in the conversion parameter information, and queries the IPv6 address information in the matching entry.

[0032] In step 150, the first PE converts the first data packet from an IPv4 data packet to an IPv6 data packet according to the queried IPv6 address conversion information to obtain a second data packet.

[0033] In some embodiments, the first PE can convert the destination address of the IPv4 data packet into the corresponding IPv6 address according to the IPv6 address conversion prefix, that is, convert the IPv4 data packet into an IPv6 data packet through address translation, thereby reducing the impact on the data packet length and ensuring transmission efficiency.

[0034] In some embodiments, the first PE can encapsulate the IPv4 data packet as a payload in an IPv6 data packet with the IPv6 address corresponding to the destination address of the IPv4 data packet as the destination address, that is, convert the IPv4 data packet into an IPv6 data packet by translation, thereby reducing the difficulty of conversion and improving the conversion efficiency.

[0035] In some embodiments, in addition to converting the destination address, the source address of the first data packet can also be converted based on the IPv6 address prefix of the first PE, so that the source address in the second data packet is converted into an IPv6 address, thereby facilitating tracing the data packet in the IPv6 network.

[0036] In step 160, the second data packet is sent to the second PE through the IPv6 network, so that the second PE performs conversion from an IPv6 data packet to an IPv4 data packet on the second data packet and then sends it to the first destination address.

[0037] In some embodiments, if the second data packet is converted by address translation, the second PE can convert the destination address in the IPv6 data packet into the corresponding IPv4 address according to the IPv6 address translation prefix. In some embodiments, if the second data packet is generated by encapsulating the first data packet as a payload, the second PE obtains the payload by decapsulating the IPv6 data packet, that is, obtains the first data packet.

[0038] In this way, the network-side edge routing devices can convert data packets from IPv4 routers so that they can be transmitted in the IPv6 network, enabling the pure IPv6 network to provide services to IPv4 edge devices and improve network compatibility.

[0039] In the above embodiment, the first PE is a network edge router of the sender; the first PE may also be a network edge router of the receiver. Figure 2 shown.

[0040] In step 270, the first PE receives a third data packet from the IPv6 network, where the third data packet is an IPv6 data packet.

[0041] In step 280, the first PE converts the third data packet from an IPv6 data packet to an IPv4 data packet based on the conversion parameter information according to the second destination address and service identifier of the third data packet to obtain a fourth data packet. The second destination address uses the IPv6 address prefix of the first PE as its address prefix.

[0042] In some embodiments, if the third data packet is converted by address translation, the first PE can convert the second destination address into the corresponding IPv4 address according to its own IPv6 address translation prefix. In some embodiments, if the fourth data packet is generated by encapsulating an IPv4 data packet as a payload, the first PE obtains the payload by decapsulating the IPv6 data packet.

[0043] In step 290, the fourth data packet is sent to the second destination address, wherein the node of the second destination address is an IPv4 node.

[0044] Through this method, the same PE node can be used as a PE device connected to the source CE device to perform conversion from IPv4 data packets to IPv6 data packets, and can also be used as a PE device connected to the destination CE device to perform conversion from IPv6 data packets to IPv4 data packets, facilitating two-way data interaction between the source and destination.

[0045] In some embodiments, the source and destination PE nodes may select a data packet conversion method in a preset manner to ensure successful data conversion.

[0046] In some embodiments, the packet conversion function of the address translation method is defined based on RFC7915, and the parameters may include:

[0047] Service SID: service identifier of the service that the node supports for packet translation. In some embodiments, the service identifier may be the IPv6 address of the PE node, indicating that the node has the translation function;

[0048] Prefix: Synthetic prefix information used for translation. Other parameters can also be set as needed.

[0049] In some embodiments, the parameters of the packet conversion function for the encapsulation method include:

[0050] Service SID: service identifier of the service that the node supports for packet conversion. In some embodiments, the service identifier may be the IPv6 address of the PE node, indicating that the node has the encapsulation function;

[0051] Node Address: The port address of the node with encapsulation function.

[0052] Other parameters can be set as needed.

[0053] Through this method, the parameter information required for data packet conversion can be set to ensure the success of bidirectional data packet conversion and guarantee data interaction between IPv4 terminals through the IPv6 network.

[0054] In some embodiments, PE nodes can exchange information through the control plane network and store conversion parameter information of other PEs. Taking the first PE as an example, the flow charts of some other embodiments of the data forwarding method disclosed in the present invention are as follows: Figure 3 shown.

[0055] In step 311, the first PE generates its own data packet conversion information, which includes the IPv6 address of the first PE, the IPv6 address conversion prefix of the first PE, the service identifier of the service supported by the first PE for data packet conversion, and the IPv4 address of the CE connected to the first PE.

[0056] In step 312, the first PE sends the data packet conversion information to one or more other PEs via the control plane network. In some embodiments, the conversion parameter information transmitted in the control plane network is carried by MP-REACH-NLRI (MP-REACH-Network Layer Reachability Information) and MP-UNREACH-NLRI (Multi-Protocol Unreachable Network Layer Reachability Information) messages of MP-BGP (Multi-Protocal-Border Gateway Protocol).

[0057] In step 321, the first PE receives conversion parameter information from other PEs through the control plane network, where the conversion parameter information includes the IPv6 address of the source PE of the conversion parameter, the IPv6 address conversion prefix of the source PE of the conversion parameter, the service identifier of the service supported by the source PE, and the IPv4 address of the user edge router CE to which the source PE is connected.

[0058] In some embodiments, the IPv6 address of the source PE of the conversion parameter and the IPv6 address conversion prefix of the source PE of the conversion parameter in the conversion parameter information may include only one item. If only the IPv6 address of the source PE of the conversion parameter is included, the data packet conversion is performed by data packet encapsulation; if only the IPv6 address conversion prefix of the source PE of the conversion parameter is included, the data packet conversion is performed by address translation.

[0059] In step 322, the first PE stores the conversion parameter information.

[0060] Through this method, the BGP protocol can be used to transmit IPv4 network reachability information and related parameters of the XLAT function, providing an information basis for subsequent data packet conversion, reducing configuration workload and improving configuration efficiency.

[0061] Schematic diagrams of some embodiments of the network side edge router disclosed in the present invention are as follows Figure 4 shown.

[0062] The first receiving unit 401 can receive a first data packet from a source node. The source node is an IPv4 node. In some embodiments, the first data packet can be sent to the PE node via a CE node that only supports IPv4 connected to the PE. The first data packet includes a source address and a destination address, wherein the source address and the destination address are IPv4 addresses.

[0063] The conversion unit 402 can determine the IPv6 address conversion information corresponding to the first destination address of the first data packet based on the conversion parameter information according to the first destination address and service identifier of the first data packet, and perform conversion from an IPv4 data packet to an IPv6 data packet on the first data packet according to the queried IPv6 address conversion information to obtain a second data packet. The conversion parameter information may be information stored by the PE, and may be obtained through interaction between PE nodes through the control plane. In some embodiments, the conversion parameter information includes multiple entries, each entry including the IPv6 address information of other PE nodes, the IPv4 address of the CE node connected to the PE node, and the service identifier of the service supported by the PE node for data packet conversion.

[0064] In some embodiments, in addition to converting the destination address, the conversion unit 402 can also convert the source address of the first data packet based on its own IPv6 address prefix, so that the source address in the second data packet is converted into an IPv6 address, thereby facilitating the tracing of the data packet in the IPv6 network.

[0065] The first sending unit 403 can send the second data packet to the second PE through the IPv6 network, so that the second PE converts the second data packet from an IPv6 data packet to an IPv4 data packet and then sends it to the first destination address.

[0066] Such PE devices can convert data packets from IPv4 routers so that they can be transmitted in IPv6 networks, enabling pure IPv6 networks to provide services to IPv4 edge devices and improving network compatibility.

[0067] In some embodiments, the network-side edge router further includes a second receiving unit 404 capable of receiving a third data packet from the IPv6 network, where the third data packet is an IPv6 data packet.

[0068] The conversion unit 402 can perform conversion from an IPv6 data packet to an IPv4 data packet on the third data packet based on the conversion parameter information according to the second destination address and the service identifier of the third data packet, and obtain a fourth data packet. The second destination address uses the IPv6 address prefix of the first PE as its address prefix. In some embodiments, the conversion unit 402 can also restore the source address in the third data packet, thereby facilitating data packet tracing.

[0069] The network-side edge router further includes a second sending unit 405, which is capable of sending the fourth data packet to a second destination address, wherein the node of the second destination address is an IPv4 node.

[0070] Such a PE device can be used as a PE device connected to the source CE device to perform conversion from IPv4 data packets to IPv6 data packets, or as a PE device connected to the destination CE device to perform conversion from IPv6 data packets to IPv4 data packets, facilitating two-way data interaction between the source and destination.

[0071] In some embodiments, Figure 4 The network side edge router also includes a conversion parameter acquisition unit 407, which can receive conversion parameter information from other PEs through the control plane network and store the conversion parameter information. The conversion parameter information includes the IPv6 address of the source PE of the conversion parameter, the IPv6 address conversion prefix of the source PE of the conversion parameter, the service identifier of the service supported by the source PE, and the IPv4 address of the user edge router CE connected to the source PE.

[0072] Such PE nodes can obtain the conversion parameter data of other nodes, so as to serve as the source node of data conversion, realize IPv4 conversion data transmission to other nodes, improve the coverage of compatible IPv4 data transmission, and improve the support capability of pure IPv6 network for IPv4 services.

[0073] In some embodiments, Figure 4As shown, the network side edge router also includes a conversion parameter providing unit 406, which can configure and generate its own data packet conversion information, and send the data packet conversion information to one or more other PEs through the control plane network. The data packet conversion information includes the IPv6 address conversion prefix of the first PE, the service identifier of the service supported by the first PE for data packet conversion, and the IPv4 address of the CE connected to the first PE.

[0074] Such a PE node can forward its own data packet conversion information to other PE nodes, facilitating data transmission of the edge IPv4 device connected to it as the destination node, improving the coverage of compatible IPv4 data transmission, and improving the support capability of pure IPv6 network for IPv4 services.

[0075] In some embodiments, the conversion parameter information transmitted in the control plane network is carried by MP-REACH-NLRI and MP-UNREACH-NLRI messages of MP-BGP.

[0076] Such PE devices can use the BGP protocol to transmit IPv4 network reachability information and related parameters of the XLAT function, providing an information basis for subsequent data packet conversion, reducing configuration workload and improving configuration efficiency.

[0077] The structural diagram of an embodiment of the network side edge router disclosed in the present invention is as follows Figure 5 As shown. The network side edge router includes a memory 501 and a processor 502. Among them: the memory 501 can be a disk, a flash memory or any other non-volatile storage medium. The memory is used to store the instructions in the corresponding embodiment of the data forwarding method above. The processor 502 is coupled to the memory 501 and can be implemented as one or more integrated circuits, such as a microprocessor or a microcontroller. The processor 502 is used to execute the instructions stored in the memory, and can realize the provision of services to IPv4 edge devices in a pure IPv6 network, thereby improving network compatibility.

[0078] In one embodiment, it is also possible to Figure 6 As shown, the network side edge router 600 includes a memory 601 and a processor 602. The processor 602 is coupled to the memory 601 via a BUS bus 603. The network side edge router 600 can also be connected to an external storage device 605 via a storage interface 604 to call external data, and can also be connected to a network or another computer system (not shown) via a network interface 606. No further detailed description will be given here.

[0079] In this embodiment, by storing data instructions in a memory and processing the instructions through a processor, a pure IPv6 network can provide services to IPv4 edge devices, thereby improving network compatibility.

[0080] In another embodiment, a computer-readable storage medium stores thereon computer program instructions, which are executed by a processor to implement the steps of the method in the corresponding embodiment of the data forwarding method. It should be understood by those skilled in the art that the embodiments of the present disclosure can be provided as methods, devices, or computer program products. Therefore, the present disclosure can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure can take the form of a computer program product implemented on one or more computer-usable non-transient storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0081] Schematic diagrams of some embodiments of the network system disclosed in the present invention are as follows Figure 7 shown.

[0082] Network side edge routers PE 701-70n, each PE can be any one of the above mentioned, where n is a positive integer. IPv6 network nodes 711-71m, each IPv6 network node can forward IPv6 data packets between network side edge routers, where m is a positive integer.

[0083] In such a network system, the network-side edge routing device can convert data packets from IPv4 routers so that they can be transmitted in the IPv6 network, enabling the pure IPv6 network to provide services to IPv4 edge devices and improve network compatibility.

[0084] Schematic diagrams of other embodiments of the network system disclosed in the present invention are as follows Figure 8 shown.

[0085] Assume that P1, P2, P3, and P4 in a multi-domain pure IPv6 network are configured with only an IPv6 single protocol stack, edge devices PE1, PE2, PE3, and PE4 are configured with an IPv4 and IPv6 dual stack protocol, edge devices PE1 and PE3 support the XLAT function, and client edge devices CE1 and CE2 are IPv4 single stack. Under this condition, the multi-domain pure IPv6 network provides forwarding services from IPv4 packets at CE1 to CE2.

[0086] PE1 and PE3 devices generate XLAT-related parameter information and IPv4 reachability information of the network where the CE device is located.

[0087] The routing information of CE1 includes the IPv4 prefix of CE1, such as 203.0.113.0 / 24.

[0088] The node information of PE1 may include its own address, such as 2001:DB8:1::1 / 64, and may also include its data packet conversion information, including its own IPv6 address prefix, such as 2001:DB8:4:: / 96, and the node address 2001:DB8:1::1 / 128, and may also include the service identifier of the service that the PE node supports for data packet conversion, such as 2001:DB8:2::100.

[0089] The node information of PE3 may include its own address, such as 2001:DB8:2::1 / 64, and its data packet conversion information, including its own IPv6 address prefix, such as 2001:DB8:2:: / 96, and the node address 2001:DB8:2::1 / 128, and may also include the service identifier of the service that the PE node supports for data packet conversion, such as 2001:DB8:2::100.

[0090] Routing information of CE2: IPv4 prefix of CE2, such as 192.0.2.0 / 24 and 198.51.100.0 / 24.

[0091] When PE3 sends the packet conversion information based on itself to the PE1 node, the conversion parameter information it sends may include the service identifier of the service that PE3 supports for packet conversion, such as 2001:DB8:2::100. In addition, it also includes the IPv4 prefix of CE2 connected to PE3, including 192.0.2.0 / 24 and 198.51.100.0 / 24. The IPv4 prefix of CE2 connected to PE3 can be carried by the MP-REACH-NLRI message.

[0092] When PE receives an IPv4 data packet from CE1, it matches the destination address of the data packet with the translation parameter information of other PE nodes obtained by PE1, and encapsulates or translates the data packet. If the match fails, the data packet is discarded and the destination is returned as unreachable.

[0093] Assume that the source address SA of the IPv4 data packet is 203.0.113.1 and the destination address DA is 192.0.2.1. If the translation operation is performed, the SA is translated into 2001:DB8:1::203.0.113.1 and the DA is translated into 2001:DB8:2::192.0.2.1. If the encapsulation operation is performed, the source address is the PE1 address and the destination address can be the PE3 node address.

[0094] When PE3 receives an IPv6 packet that matches the translation parameter information, it decapsulates or restores the packet to an IPv4 packet (for example, the source address SA of the IPv4 packet is 203.0.113.1 and the destination address DA is 192.0.2.1) and forwards it to CE2. If there is no match, it forwards it normally based on the native IPv6 rule.

[0095] Through this method, the data packet conversion function and related parameter information can be transmitted in a multi-domain pure IPv6 network through the SRv6 control plane / BGP protocol, and the data packets from IPv4 routers can be converted so that they can be transmitted in the IPv6 network, thereby enabling the pure IPv6 network to provide services to IPv4 edge devices and improve network compatibility.

[0096] The present disclosure is described with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present disclosure. It should be understood that each process and / or block in the flowchart and / or block diagram and the combination of processes and / or blocks in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0097] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0098] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0099] So far, the present disclosure has been described in detail. In order to avoid obscuring the concept of the present disclosure, some details known in the art are not described. Based on the above description, those skilled in the art can fully understand how to implement the technical solution disclosed here.

[0100] The method and apparatus of the present disclosure may be implemented in many ways. For example, the method and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present disclosure may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present disclosure. Therefore, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.

[0101] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present disclosure rather than to limit it. Although the present disclosure has been described in detail with reference to the preferred embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present disclosure can still be modified or some technical features can be replaced by equivalents without departing from the spirit of the technical solution of the present disclosure, which should be included in the scope of the technical solution for protection of the present disclosure.

Claims

1. A data forwarding method, include: The first network side edge router PE receives a first data packet from a source node, wherein the source node is an IPv4 node; The first PE determines, according to the first destination address and service identifier of the first data packet and based on the conversion parameter information, an IPv6 address conversion prefix corresponding to the first destination address of the first data packet, including: matching the destination address and service identifier of the first data packet in the conversion parameter information, querying the IPv6 address information in the matched entry, wherein the entry of the conversion parameter information includes an IPv6 address prefix of the PE node, an IPv4 address of a CE node connected to the PE node, and a service identifier of a service for data packet conversion supported by the PE node; The first PE performs conversion from an IPv4 data packet to an IPv6 data packet on the first data packet according to the IPv6 address conversion prefix to obtain a second data packet; The second data packet is sent to the second PE through the IPv6 network, so that the second PE performs conversion from an IPv6 data packet to an IPv4 data packet on the second data packet and then sends it to the first destination address.

2. The method according to claim 1, further comprising: include: The first PE receives a third data packet from the IPv6 network; The first PE converts the third data packet from an IPv6 data packet to an IPv4 data packet based on the conversion parameter information according to the second destination address and the service identifier of the third data packet, to obtain a fourth data packet; The fourth data packet is sent to the second destination address, wherein the node of the second destination address is an IPv4 node.

3. The method according to claim 1, in, The conversion from IPv4 data packet to IPv6 data packet includes: According to the IPv6 address conversion prefix, convert the destination address of the IPv4 data packet into a corresponding IPv6 address; or The IPv4 data packet is used as a payload and encapsulated in an IPv6 data packet with an IPv6 address corresponding to the destination address of the IPv4 data packet as a destination address.

4. The method according to claim 1 or 2, in, The conversion from IPv6 data packet to IPv4 data packet includes: According to the IPv6 address translation prefix, convert the destination address in the IPv6 data packet into a corresponding IPv4 address; or Decapsulate the IPv6 data packet to obtain the payload.

5. The method according to claim 1, further comprising: include: The first PE receives conversion parameter information from one or more other PEs through a control plane network, wherein the conversion parameter information includes an IPv6 address conversion prefix of a source PE of the conversion parameter, a service identifier of a service supported by the source PE, and an IPv4 address of a user edge router CE to which the source PE is connected; The first PE stores the conversion parameter information.

6. The method according to claim 5, further comprising: include: The first PE generates its own data packet conversion information, where the data packet conversion information includes an IPv6 address conversion prefix of the first PE, a service identifier of a service supported by the first PE for data packet conversion, and an IPv4 address of a user edge router CE to which the first PE is connected; The first PE sends the packet conversion information to one or more other PEs through a control plane network.

7. The method according to claim 5 or 6, in, The conversion parameter information transmitted in the control plane network is carried by multi-protocol reachable network layer reachable information MP-REACH-NLRI and multi-protocol unreachable network layer reachable information MP-UNREACH-NLRI messages of the multi-protocol border gateway protocol MP-BGP.

8. A network side edge router, include: A first receiving unit is configured to receive a first data packet from a source node, wherein the source node is an IPv4 node; A conversion unit is configured to determine, based on the first destination address and service identifier of the first data packet and the conversion parameter information, an IPv6 address conversion prefix corresponding to the first destination address of the first data packet, and perform conversion from an IPv4 data packet to an IPv6 data packet on the first data packet according to the IPv6 address conversion prefix, to obtain a second data packet, including: matching the destination address and service identifier of the first data packet in the conversion parameter information, querying the IPv6 address information in the matched entry, wherein the entry of the conversion parameter information includes the IPv6 address prefix of the PE node, the IPv4 address of the CE node connected to the PE node, and the service identifier of the service supported by the PE node for data packet conversion; The first sending unit is configured to send the second data packet to the second PE through the IPv6 network, so that the second PE converts the second data packet from an IPv6 data packet to an IPv4 data packet and then sends it to the first destination address.

9. The network side edge router according to claim 8, further comprising: include: A second receiving unit is configured to receive a third data packet from the IPv6 network; The conversion unit is further configured to perform conversion from an IPv6 data packet to an IPv4 data packet on the third data packet based on the conversion parameter information according to the second destination address and the service identifier of the third data packet, to obtain a fourth data packet; The second sending unit is configured to send the fourth data packet to the second destination address, wherein the node of the second destination address is an IPv4 node.

10. The network side edge router according to claim 8, further comprising: include: The conversion parameter acquisition unit is configured to receive conversion parameter information from one or more other PEs through a control plane network, wherein the conversion parameter information includes the IPv6 address conversion prefix of the source PE of the conversion parameter, the service identifier of the service supported by the source PE, and the IPv4 address of the user edge router CE connected to the source PE, and store the conversion parameter information.

11. The network side edge router according to claim 10, further comprising: include: A conversion parameter providing unit is configured to generate its own data packet conversion information, wherein the data packet conversion information includes the IPv6 address conversion prefix of the first PE, the service identifier of the service supported by the first PE for data packet conversion, and the IPv4 address of the user edge router CE connected to the first PE; and send the data packet conversion information to one or more other PEs through a control plane network.

12. A network side edge router, include: Memory; as well as A processor coupled to the memory, the processor being configured to execute the method according to any one of claims 1 to 7 based on instructions stored in the memory.

13. A computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implement the steps of the method according to any one of claims 1 to 7.

14. A network system, include: A network side edge router as described in any one of claims 8 to 12; and The IPv6 network node is configured to forward IPv6 data packets between the network side edge routers.