Data processing method, and device, medium and first edge router

By using the BGP protocol to pass the mapping rules of IPv4 address blocks and IPv6 prefixes in a multi-domain pure IPv6 network, the problem of routing information transmission is solved, the accurate forwarding of IPv4 traffic is achieved, and the scalability and compatibility of the Internet is maintained.

WO2024221987A9PCT designated stage expired Publication Date: 2025-03-06CHINA TELECOM CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/140283
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-28
Filing Date
2023-12-20
Publication Date
2025-03-06

AI Technical Summary

Technical Problem

In multi-domain pure IPv6 networks, there is a lack of a method of passing IPv4 routing information corresponding to the IPv4 address block and IPv6 prefix, which makes it difficult for the first edge router and the second edge router to accurately forward the accessed IPv4 traffic to the destination IPv4 network.

Method used

By acquiring the IPv4 address block information on the first edge router and determining the mapping rules based on the local IPv6 prefix information, the mapping rules are transmitted to the second edge router using the BGP protocol, so that it converts based on the mapping rules when forwarding data packets.

Benefits of technology

It realizes the transmission of routing information in a multi-domain pure IPv6 network, so that the first edge router and the second edge router can accurately forward IPv4 traffic, maintaining the scalability and compatibility of the Internet.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023140283_06032025_PF_FP_ABST
    Figure CN2023140283_06032025_PF_FP_ABST
Patent Text Reader

Abstract

The present disclosure relates to the technical field of communications. Provided are a data processing method, and a device, a medium and a first edge router. The method is applied to a first edge router, which is located in an IPv6 network, and is connected to a first IPv4 network. The method comprises: acquiring IPv4 address block information of a first IPv4 network; determining a mapping rule on the basis of the IPv4 address block information and local IPv6 prefix information; and on the basis of a BGP, transmitting the mapping rule to a second edge router, which is in an IPv6 network and is connected to a second IPv4 network, such that when sending a data packet of the second IPv4 network to the first IPv4 network, the second edge router converts the data packet on the basis of the mapping rule, wherein network accessibility information of the BGP comprises the mapping rule, and / or network non-accessibility information of the BGP comprises the mapping rule. By means of the embodiments of the present disclosure, routing information can be transmitted in an IPv6 network, the expandability and compatibility of the Internet are maintained, and the present disclosure is easily implemented.
Need to check novelty before this filing date? Find Prior Art

Description

Data processing method, device, medium and first edge router

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This disclosure claims priority to Chinese patent application number 202310479192.8, filed on April 28, 2023, entitled “Data Processing Methods, Devices, Equipment and Medium,” and the entire contents of which are incorporated herein by reference. Technical Field

[0003] The present disclosure relates to the field of communication technologies, and in particular to a data processing method, device, medium, and a first edge router. Background Art

[0004] A multi-domain pure IPv6 (Internet Protocol Version 6) network or a multi-domain single-stack IPv6 network. The internal nodes of the network shut down the IPv4 (Internet Protocol version 4) protocol stack. The entire network uses the IPv6 protocol as the core for addressing, routing, and forwarding. The network edge nodes adapt to the IPv4 protocol and can provide the carrying of IPv6 and IPv4 services.

[0005] As shown in Figure 1, if a host on network a accesses a server on network b via an IPv6 network, Router A must convert the IPv4 datagram from network a into an IPv6 datagram to traverse the IPv6 network. Therefore, Router A must know the IPv6 prefix of Router B, which is connected to network b, to complete the IP datagram conversion. The related art lacks a method for transferring IPv4 routing information, which identifies the correspondence between IPv4 address blocks and IPv6 prefixes, between IPv6 network domains.

[0006] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute prior art known to ordinary technicians in the field.

[0007] Summary of the Invention

[0008] Through research, the inventors found that in a multi-domain pure IPv6 network, the first edge router connected to the IPv4 network uses the IPv6 prefix to convert IPv4 traffic into IPv6 traffic by encapsulation or translation, and forwards it to the second edge router connected to the destination IPv4 network it visits. After encapsulation or translation by the second edge router, it is forwarded to the destination IPv4 network. One of the key issues is how to transmit routing information in the multi-domain pure IPv6 network so that the first edge router and the second edge router can accurately forward the accessed IPv4 traffic to the destination IPv4 network.

[0009] To address the above issues, the present disclosure provides a data processing method, device, medium, and first edge router. It should be noted that while the above description uses a multi-domain pure IPv6 network as an example, the present disclosure is also applicable to other IPv6 networks and achieves similar technical effects in a multi-domain pure IPv6 network.

[0010] As an example, the interpretation of terminology in this application refers to the definition of RFC4271 of the Internet Research Task Force (IRTF).

[0011] According to a first aspect of the present disclosure, a data processing method is provided, which is applied to a first edge router, the first edge router being located in an IPv6 network and connected to a first IPv4 network. The method comprises: obtaining IPv4 address block information of the first IPv4 network; determining a mapping rule based on the IPv4 address block information and local IPv6 prefix information; and transmitting the mapping rule to a second edge router in the IPv6 network connected to a second IPv4 network based on the BGP protocol, so that the second edge router converts the data packet based on the mapping rule when sending the data packet of the second IPv4 network to the first IPv4 network; wherein the mapping rule is included in the network reachability information of the BGP protocol, and / or the mapping rule is included in the network unreachability information of the BGP protocol.

[0012] In one embodiment of the present disclosure, when sending a data packet from a first IPv4 network to a second IPv4 network, the method further includes: judging whether the network reachability information of the BGP protocol contains mapping rules based on the AFI field and SAFI field of the BGP protocol; and if the mapping rules are contained, converting the data packet based on the mapping rules.

[0013] In one embodiment of the present disclosure, based on the AFI field and SAFI field of the BGP protocol, it is determined whether the network reachability information of the BGP protocol contains mapping rules, including: when the AFI field of the BGP protocol is a preset first value and the SAFI field is a preset second value, it is determined that the network reachability information of the BGP protocol contains mapping rules.

[0014] In one embodiment of the present disclosure, the first value is preset to be 1 or 2; and the second value is preset to be one between 0-255.

[0015] In one embodiment of the present disclosure, the preset second value is different from the value registered with the Internet Assigned Numbers Authority (IANA).

[0016] In one embodiment of the present disclosure, the mapping rule includes one or more of an IPv6 mapping prefix, an IPv4 prefix, a data forwarding mode, and a source address type.

[0017] In one embodiment of the present disclosure, the IPv4 prefix is ​​stored in the NLRI field or the Pref4 field; the IPv6 mapping prefix is ​​stored in the NLRI field or the Pref6 field; the data forwarding mode is stored in the data_forwarding_type field; and the source address type is stored in the address_origin_type field.

[0018] In one embodiment of the present disclosure, when the preset first value is 1, the IPv4 prefix is ​​stored in the NLRI field, and the IPv6 mapping prefix is ​​stored in the Pref6 field.

[0019] In one embodiment of the present disclosure, when the preset first value is 2, the IPv4 prefix is ​​stored in the Pref4 field, and the IPv6 mapping prefix is ​​stored in the NLRI field; or, both the IPv4 prefix and the IPv6 mapping prefix are stored in the NLRI field.

[0020] In one embodiment of the present disclosure, storing both the IPv4 prefix and the IPv6 mapped prefix in the NLRI field includes: converting the IPv4 prefix and the IPv6 mapped prefix into a composite IPv6 prefix and storing the composite IPv6 prefix in the NLRI field.

[0021] In one embodiment of the present disclosure, the network reachability information is the MP_REACH_NLRI field; and the network unreachability information is the MP_UNREACH_NLRI field.

[0022] In one embodiment of the present disclosure, the network reachability information includes a prefix length field, which is used to indicate the length of the IPv6 prefix.

[0023] In one embodiment of the present disclosure, the method further includes: configuring a combination of an AFI field value and a SAFI field value through a BGP capability advertisement process.

[0024] It should be noted that, in the absence of conflict, the embodiments and features of the first edge router of the present disclosure can be applied to the second edge router, and vice versa. In the absence of conflict, the embodiments and features of the embodiments of the present disclosure can be arbitrarily combined with each other.

[0025] According to a second aspect of the present disclosure, a first edge router is provided. The first edge router is located in an IPv6 network and connected to a first IPv4 network. The first edge router includes an address block acquisition module, a mapping module, and an information transmission module.

[0026] An address block acquisition module configured to acquire IPv4 address block information of a first IPv4 network;

[0027] A mapping module is configured to determine a mapping rule based on the IPv4 address block information and the local IPv6 prefix information;

[0028] an information transmission module configured to transmit the mapping rule to a second edge router in the IPv6 network connected to the second IPv4 network based on the BGP protocol, so that the second edge router converts the data packet based on the mapping rule when sending the data packet of the second IPv4 network to the first IPv4 network;

[0029] The network reachability information of the BGP protocol includes the mapping rule, or the network unreachability information of the BGP protocol includes the mapping rule.

[0030] According to a third aspect of the present disclosure, an electronic device is provided, including: a memory for storing instructions; and a processor for calling the instructions stored in the memory to implement the above-mentioned data processing method.

[0031] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which computer instructions are stored. When the computer instructions are executed by a processor, the above-mentioned data processing method is implemented.

[0032] According to a fifth aspect of the present disclosure, a computer program product is provided. The computer program product stores instructions, which, when executed by a computer, enable the computer to implement the above-mentioned data processing method.

[0033] According to a sixth aspect of the present disclosure, there is provided a chip comprising at least one processor and an interface;

[0034] An interface for providing program instructions or data to at least one processor;

[0035] At least one processor is configured to execute program instructions to implement the above data processing method.

[0036] The data processing method, device, medium and first edge router provided by the embodiments of the present disclosure are applied to the first edge router, the first edge router is located in the IPv6 network, and the first edge router is connected to the first IPv4 network. The embodiments of the present disclosure define routing information as IPv4 address block information and IPv6 prefix, and still maintain the characteristics of the IPv4 protocol on the control plane. When performing policy control, management and operation and maintenance of routing information, it is still necessary to process and configure routing information in the form of the IPv4 protocol. The embodiments of the present disclosure only need to extend the BGP protocol, add mapping rules to the network reachability information of the BGP protocol, and / or, add mapping rules to the network unreachability information of the BGP protocol, to obtain the MP-BGP protocol mentioned above. Routing information can be transmitted without major changes to the existing protocol, and the scalability and compatibility of the Internet are maintained, which is easy to implement.

[0037] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0039] Obviously, the drawings described below are only some embodiments of the present disclosure. A person skilled in the art can obtain other drawings based on these drawings without any creative effort.

[0040] FIG1 shows a schematic diagram of a network architecture according to an embodiment of the present disclosure;

[0041] FIG2 shows another schematic diagram of a network architecture according to an embodiment of the present disclosure;

[0042] FIG3 shows a flow chart of a data processing method according to an embodiment of the present disclosure;

[0043] FIG4 shows a schematic diagram of a process for transmitting IPv4 routing information according to an embodiment of the present disclosure;

[0044] FIG5 is a schematic diagram showing a process of transmitting IPv6 routing information according to an embodiment of the present disclosure;

[0045] FIG6 shows a schematic diagram of a BGP protocol according to an embodiment of the present disclosure;

[0046] FIG7 shows another BGP protocol schematic diagram according to an embodiment of the present disclosure;

[0047] FIG8 is a schematic diagram showing a flow chart of an edge router processing BGP protocol information in an embodiment of the present disclosure;

[0048] FIG9 shows a schematic diagram of a first edge router according to an embodiment of the present disclosure;

[0049] FIG10 shows a structural block diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0050] Example embodiments will be described more fully hereinafter with reference to the accompanying drawings.

[0051] It should be noted that example embodiments may be implemented in many forms and should not be construed as limited to the examples set forth herein.

[0052] BGP (Border Gateway Protocol) has the following five types of messages:

[0053] Open: Used to negotiate various parameters of BGP neighbors and establish neighbor relationships (neighbor relationships can only be established if the supported functions are consistent). The Open message is the first message sent after a TCP connection is established.

[0054] Keepalives are used to maintain neighbor relationships and confirm the OPEN packets sent by the other party (acknowledge them). The interval between these packets is specified in the Open message. If the Hold time intervals on both ends are inconsistent, the smaller one is used. When the Hold time is 0, no Keepalive messages are sent. Based on the default Hold time, the default Keepalive interval is 60 seconds, and the Keepalive time is 180 seconds.

[0055] Update: Used to exchange routing information and path attributes between peers after a connection is established. It can send reachable routing information and withdraw unreachable routing information.

[0056] Notification: When BGP detects an error state, it sends a Notification message to the peer and the BGP connection is immediately terminated.

[0057] Route-refresh: This message is used to request the peer to resend routing information for the specified address family (that is, to request the peer to reissue Update messages to update routes). When the routing policy changes, it triggers a request for the neighbor to re-advertise routes (the specific meaning of the message is not very clear).

[0058] The embodiments of the present disclosure are applied to an IPv6 network, which may be an IPv6 network deploying IPv6 single stack technology. FIG2 shows a schematic diagram of a network architecture applicable to the data processing method provided by the embodiments of the present disclosure.

[0059] As shown in FIG. 2 , the network architecture includes an IPv6 network 210 , a first IPv4 network 220 , and a second IPv4 network 230 .

[0060] The IPv6 network 210 may be an IPv6 network that deploys IPv6 single stack technology.

[0061] As an example, IPv6 network 210 may be a multi-domain pure IPv6 network.

[0062] In the present disclosure, the IPv6 network 210 includes at least a first edge router 211 and a second edge router 212. The first edge router 211 is connected to the first IPv4 network 220, and the second edge router 212 is connected to the second IPv4 network 230.

[0063] The first edge router 211 and the second edge router 212 in the present disclosure may be BGP (Border Gateway Protocol) routers.

[0064] It should be noted that, in the embodiments of the present disclosure, the terms “first”, “second” and “third” are used for descriptive purposes only and should not be understood as indicating or implying relative importance.

[0065] If a device on the first IPv4 network 220 accesses a server on the second IPv4 network 230 via the IPv6 network 210, the first edge router 211 must know the IPv6 prefix of the second edge router 212 connected to the second IPv4 network 230. The related art lacks a method for transferring IPv4 routing information that identifies the correspondence between IPv4 address blocks and IPv6 prefixes between IPv6 network domains.

[0066] It should be noted that the "devices" of the above-mentioned first IPv4 network 220 include but are not limited to mobile phones, tablets, notebooks, vehicle-mounted communication equipment, drones, communication modules on drones, remote-controlled aircraft, aircraft, small aircraft, vehicles, vehicles, RSUs, wireless sensors, network cards, Internet of Things terminals, RFID terminals, NB-IOT terminals, MTC (Machine Type Communication) terminals, eMTC (enhanced MTC) terminals, data cards, network cards, vehicle-mounted communication equipment, low-cost mobile phones, low-cost tablets and other wireless communication devices.

[0067] FIG3 shows a data processing method according to an embodiment of the present disclosure. The method can be applied to the network architecture shown in FIG2 , and the execution subject of the method can be the first edge router 211 shown in FIG2 .

[0068] The data processing method provided by the embodiment of the present disclosure is described below with reference to Figures 2 and 3. As shown in Figure 3, the data processing method provided by the embodiment of the present disclosure includes the following steps:

[0069] S302, obtaining IPv4 address block information of a first IPv4 network;

[0070] S304, generating a mapping rule based on the IPv4 address block information and the locally configured IPv6 prefix information;

[0071] S306, based on the BGP protocol, transmitting the mapping rule to a second edge router in the IPv6 network that is connected to the second IPv4 network, so that the second edge router converts the IPv4 data packet of the second IPv4 network based on the mapping rule when sending the data packet of the second IPv4 network to the first IPv4 network;

[0072] The BGP protocol in S306 is the extended BGP protocol in the embodiment of the present disclosure.

[0073] The network reachability information of the BGP protocol includes a mapping rule, and / or the network unreachability information of the BGP protocol includes a mapping rule.

[0074] In some embodiments, when the second edge router receives an IPv4 data packet from the first IPv4 network, the second edge router may convert the data packet based on whether the IP address information of the IPv4 data packet matches the mapping rule. If so, the data packet is converted based on the mapping rule; if not, the data packet is not converted.

[0075] In some embodiments, when sending a BGP message to the second IPv4 network, the second edge router can determine whether the BGP network reachability information includes a mapping rule based on the AFI field and the SAFI field in the BGP message.

[0076] Based on the AFI field and SAFI field of the BGP protocol, determine whether the network reachability information of the BGP protocol contains mapping rules, including when the AFI field of the BGP protocol is a preset first value and the SAFI field is a preset second value, determine that the network reachability information of the BGP protocol contains mapping rules.

[0077] In some embodiments, the first value is preset to 1 or 2; the second value is preset to one between 0-255.

[0078] In some embodiments, the preset second value is a value between 0 and 255 and is different from a value registered with the Internet Assigned Numbers Authority (IANA).

[0079] As an example, the preset second numerical value is preferably the following numbers: 10-63, 81-82, 85-127.

[0080] The mapping rule in the above embodiment may be a mapping record of the IPv4 address block and the IPv6 prefix generated in the mapping table based on the IPv4 address block information and the preset IPv6 prefix.

[0081] In some embodiments, the mapping rule includes one or more of an IPv6 mapping prefix, an IPv4 prefix, a data forwarding method, and a source address type.

[0082] Among them, the IPv4 prefix is ​​stored in the NLRI field or the Pref4 field; the IPv6 mapping prefix is ​​stored in the NLRI field or the Pref6 field; the data forwarding mode is stored in the data_forwarding_type field; and the source address type is stored in the address_origin_type field.

[0083] As an example, when the preset first value is 1, the IPv4 prefix is ​​stored in the NLRI field, and the IPv6 mapping prefix is ​​stored in the Pref6 field.

[0084] As another example, when the preset first value is 2, the IPv4 prefix is ​​stored in the Pref4 field, and the IPv6 mapped prefix is ​​stored in the NLRI field; or, both the IPv4 prefix and the IPv6 mapped prefix are stored in the NLRI field.

[0085] The storing of both the IPv4 prefix and the IPv6 mapped prefix in the NLRI field includes: converting the IPv4 prefix and the IPv6 mapped prefix into a composite IPv6 prefix and storing the composite IPv6 prefix in the NLRI field.

[0086] In some embodiments, the network reachability information in the above example is the MP_REACH_NLRI field; the network unreachability information is the MP_UNREACH_NLRI field.

[0087] In some embodiments, the network reachability information may further include a prefix length field, where the prefix length field is used to indicate the length of the IPv6 prefix.

[0088] In some embodiments, the size of the prefix length field is 1 byte, and the value of the prefix length field is greater than 0 bits and no greater than 128 bits.

[0089] In some embodiments, the above method may further include configuring a combination of an AFI field value and a SAFI field value through a BGP capability advertisement process.

[0090] The disclosed embodiment defines routing information as IPv4 address block information and IPv6 prefix, and maintains the characteristics of the IPv4 protocol on the control plane. When performing policy control, routing information management and operation and maintenance, routing information still needs to be processed and configured in the form of the IPv4 protocol.

[0091] In the embodiment of the present disclosure, the routing information may be transmitted by transmitting IPv4 routing information or transmitting IPv6 routing information.

[0092] When transmitting IPv4 routing information, as shown in Figure 4, the first edge router uses the extended BGP provided by the present disclosure to transmit the IPv4 address block information and IPv6 prefix mapping information of the first edge router mapping table to the second edge router. The mapping rules mentioned above can be the IPv4 address block information and IPv6 prefix mapping information here.

[0093] When transmitting IPv6 routing information, as shown in FIG5 , the first edge router uses the extended BGP provided by the present disclosure to convert the IPv4 address block information and IPv6 prefix mapping information in the first edge router mapping table into synthesized IPv6 routing information and transmits it to the second edge router.

[0094] The present disclosure extends the BGP protocol and provides a data processing method for transmitting routing information. In the embodiment of the present disclosure, when transmitting IPv4 routing information, the first value N preset above is 1; when transmitting IPv6 routing information, the first value N preset above is 2.

[0095] When the preset first value N is 1, (1, X) formed by the combination of the preset first value N and the preset second value X indicates that the network protocol in the network reachability information NLRI belongs to IPv4, the network protocol type of the address in the next hop address is IPv6, and the NLRI carries IPv6 prefix information for synthesis or translation.

[0096] When the preset first value N is 2, (2, X) formed by the combination of the preset first value N and the preset second value X represents: the network protocol in the network reachability information NLRI belongs to IPv6, the network protocol type of the address in the next hop address is IPv6, and the NLRI carries synthetic IPv6 routing information.

[0097] In some embodiments, when the preset first value N is 1, the byte length of the next hop network address length field is 16.

[0098] In some embodiments, when the preset first value N is 1, the NLRI also includes an IPv6 prefix field, and the size of the IPv6 prefix field is 16 bytes.

[0099] As an example, the BGP protocol is extended to support the transmission of IPv4 address blocks and IPv6 prefix information for synthesis or translation. The format of the above information in the BGP message is shown in FIG6 .

[0100] The embodiment of the present disclosure extends the MP-BGP protocol to transmit IPv4 address blocks and IPv6 prefix information, and newly defines AFI (address family identifier) ​​as 1 and SAFI (subsequent address family identifier) ​​as X. No specific numerical value is specified in the present disclosure, and the numerical value can be distinguished from the numerical value registered with IANA.

[0101] The combination of the AFI and SAFI digits (1, X) indicates that the network protocol in the network layer reachability information (NLRI) is IPv4, the network protocol type of the address in the next hop (next hop network address) is IPv6, and it also carries IPv6 prefix information for synthesis or translation.

[0102] In the above combination (AFI, SAFI), the byte length of the Length of Next Hop Network Address is required to be fixed at 16, indicating that the NLRI is not a VPN-IPv4 NLRI but an IPv4 NLRI.

[0103] Two new fields are added to the MP-NLRI path attributes: a 1-byte prefix length field (prefix64_Length) and a 16-byte IPv6 prefix field (IPv6 Prefix). The prefix length field indicates the length of the IPv6 prefix in bits. The IPv6 Prefix field specifies the specific IPv6 prefix. Any portion exceeding the IPv6 prefix length is padded with zeros. The value of the prefix length field is greater than 0 and no greater than 128.

[0104] BGP-CAP is also required to support AFI and SAFI in this disclosure. The two fields mentioned above are added to the path attribute MP_UNREACH_NLRI: prefix length field and IPv6 prefix field.

[0105] As another example, the BGP protocol is extended to support the transmission of synthetic IPv6 routing information. The format of the above information in the BGP message is shown in FIG7 .

[0106] The embodiments of the present disclosure extend the MP-BGP protocol to transmit synthesized IPv6 routing information (IPv4 address block and IPv6 prefix information).

[0107] The newly defined AFI is 2, and the SAFI is X. This disclosure does not specify a specific value; the values ​​are distinguished from those registered with IANA. The combination of the AFI and SAFI digits (2, X) indicates that the network protocol in the NLRI is IPv6, the network protocol type of the next hop address is IPv6, and the NLRI carries synthesized IPv6 routing information.

[0108] A new field, prefix64_Length, is added to the NLRI. The 1-byte prefix length field (prefix64_Length) indicates the length of the IPv6 prefix in the prefix field (Prefix), in bits. The value of the prefix length field (Prefix64_Length) must be greater than 0 and no greater than 128.

[0109] BGP-CAP is also required to support AFI and SAFI as announced in this patent. The prefix length field (Prefix64_Length) is added to the NLRI in the path attribute MP_UNREACH_NLRI.

[0110] The first edge router and the second edge router in the embodiment of the present disclosure still comply with RFC4271 when processing the BGP protocol information in the above example.

[0111] As an example, as shown in Figure 8, assuming that the first edge router 801 and the second edge router 802 have the BGP extension capability of the embodiment of the present disclosure, the third edge router 803 in the first IPv4 network and the fourth edge router 804 in the second IPv4 network establish EBGP neighbor relationships with the first edge router 801 and the second edge router 802 respectively.

[0112] The IPv4 address block in the first IPv4 network is 192.0.2.0 / 24, and the IPv4 address block in the second IPv4 network is 198.51.100.0 / 24. The first edge router 801 is configured with a conversion-specific IPv6 prefix Prefix1 2001:db8:1:: / 48, and the second edge router 802 is configured with 2001:db8:2:: / 48.

[0113] The first edge router 801 generates a mapping record between the IPv4 address block and the IPv6 prefix in a mapping table in the router by using the conversion-specific IPv6 prefix configured by the router and the IPv4 address block information received from the first IPv4 network.

[0114] The first edge router 801 notifies the second edge router 802B that it supports the newly defined (AFI, SAFI).

[0115] When transmitting IPv4 routing information, the first edge router 801 uses the extended BGP provided by the present disclosure to transmit the IPv4 address block information and IPv6 prefix mapping information in the mapping table of the first edge router 801 to the second edge router 802. The first edge router 801 stores the mapping record of the IPv4 address block and IPv6 prefix of the second edge router 802 in the mapping table, and when forwarding data packets from the first IPv4 network, it uses the corresponding IPv6 prefix to translate the data packets.

[0116] When transmitting IPv6 routing information, the first edge router 801 uses the extended BGP provided by the present disclosure to convert the IPv4 address block information and IPv6 prefix mapping information in the mapping table of the first edge router 801 into composite IPv6 routing information and transmits it to the second edge router 802. After receiving the composite IPv6 routing information, the first edge router 801 converts it into a mapping record of the IPv4 address block and the IPv6 prefix and stores it in the mapping table. When forwarding data packets from the first IPv4 network, the corresponding IPv6 prefix is ​​used to convert the data packets.

[0117] Furthermore, although the steps of the methods of the present disclosure are depicted in a particular order in the drawings, this does not require or imply that the steps must be performed in this particular order, or that all illustrated steps must be performed to achieve desired results.

[0118] In some embodiments, certain steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.

[0119] Based on the same inventive concept, the present disclosure also provides a data processing device, as described in the following embodiments. Since the principle of solving the problem in the device embodiment is similar to that in the above method embodiment, the implementation of the device embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.

[0120] Figure 9 shows a first edge router in an embodiment of the present disclosure. The first edge router is located in an IPv6 network and is connected to a first IPv4 network. As shown in Figure 9, the first edge router 900 includes an address block acquisition module 902, a mapping module 904 and an information transmission module 906.

[0121] An address block obtaining module 902 is configured to obtain IPv4 address block information of a first IPv4 network;

[0122] A mapping module 904 is configured to determine a mapping rule based on the IPv4 address block information and the local IPv6 prefix information;

[0123] The information transmission module 906 is configured to transmit the mapping rule to a second edge router in the IPv6 network connected to the second IPv4 network based on the BGP protocol, so that the second edge router converts the data packet based on the mapping rule when sending the data packet of the second IPv4 network to the first IPv4 network;

[0124] The network reachability information of the BGP protocol includes the mapping rule, or the network unreachability information of the BGP protocol includes the mapping rule.

[0125] In some embodiments, the first edge router 900 may further include a determination module and a data packet conversion module.

[0126] a determination module configured to determine, when sending a data packet from the first IPv4 network to the second IPv4 network, whether the network reachability information of the BGP protocol contains a mapping rule according to the AFI field and the SAFI field of the BGP protocol;

[0127] The data packet conversion module is configured to convert the data packet based on the mapping rule when the mapping rule is included.

[0128] In some embodiments, the judgment module is specifically configured to determine that the network reachability information of the BGP protocol includes a mapping rule when the AFI field of the BGP protocol is a preset first value and the SAFI field is a preset second value.

[0129] In some embodiments, the first value is preset to 1 or 2; the second value is preset to one between 0-255.

[0130] In some embodiments, the preset second value is different from a value registered with the Internet Assigned Numbers Authority (IANA).

[0131] In some embodiments, the mapping rule includes one or more of an IPv6 mapping prefix, an IPv4 prefix, a data forwarding method, and a source address type.

[0132] In some embodiments, the IPv4 prefix is ​​stored in the NLRI field or the Pref4 field; the IPv6 mapping prefix is ​​stored in the NLRI field or the Pref6 field; the data forwarding mode is stored in the data_forwarding_type field; and the source address type is stored in the address_origin_type field.

[0133] In some embodiments, when the preset first value is 1, the IPv4 prefix is ​​stored in the NLRI field, and the IPv6 mapped prefix is ​​stored in the Pref6 field.

[0134] In some embodiments, when the preset first value is 2, the IPv4 prefix is ​​stored in the Pref4 field, and the IPv6 mapped prefix is ​​stored in the NLRI field; or, both the IPv4 prefix and the IPv6 mapped prefix are stored in the NLRI field.

[0135] In some embodiments, storing both the IPv4 prefix and the IPv6 mapped prefix in the NLRI field includes: converting the IPv4 prefix and the IPv6 mapped prefix into a composite IPv6 prefix and storing the composite IPv6 prefix in the NLRI field.

[0136] In some embodiments, the network reachability information is the MP_REACH_NLRI field; the network unreachability information is the MP_UNREACH_NLRI field.

[0137] In some embodiments, the network reachability information includes a prefix length field, which is used to indicate the length of the IPv6 prefix.

[0138] In some embodiments, the first edge router 900 may further include a configuration module.

[0139] The configuration module is configured to configure a combination of an AFI field value and a SAFI field value through a BGP capability advertisement process.

[0140] The concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0141] Regarding the first edge router in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the data processing method, and will not be elaborated here.

[0142] It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, such division is not mandatory.

[0143] In fact, according to the embodiment of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0144] Some of the blocks shown in the accompanying drawings are functional entities that do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0145] The electronic device provided by an embodiment of the present disclosure is described below with reference to Figure 10. The electronic device 1000 shown in Figure 10 is merely an example and should not limit the functions and scope of use of the embodiment of the present disclosure.

[0146] Figure 10 shows a schematic diagram of the architecture of an electronic device 1000 provided by an embodiment of the present disclosure. As shown in Figure 10, the electronic device 1000 includes but is not limited to: at least one processor 1010 and at least one memory 1020. The memory 1020 is used to store instructions.

[0147] In some embodiments, the memory 1020 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 10201 and / or a cache memory unit 10202 , and may further include a read-only memory unit (ROM) 10203 .

[0148] In some embodiments, the memory 1020 may also include a program / utility 10204 having a set (at least one) of program modules 10205, such program modules 10205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0149] In some embodiments, the memory 1020 may store an operating system, which may be a real-time operating system (RTX), LINUX, UNIX, WINDOWS, or OS X.

[0150] In some embodiments, data may also be stored in the memory 1020. As an example, the processor 1010 may read data stored in the memory 1020. The data may be stored at the same storage address as the instruction, or may be stored at a different storage address than the instruction.

[0151] Processor 1010 is configured to call instructions stored in memory 1020 to implement the steps described in the "Exemplary Method" section of the present specification according to various exemplary embodiments of the present disclosure. For example, processor 1010 may perform the following steps of the aforementioned method embodiment: obtaining IPv4 address block information of a first IPv4 network; determining a mapping rule based on the IPv4 address block information and local IPv6 prefix information; transmitting the mapping rule to a second edge router in the IPv6 network connected to a second IPv4 network based on the BGP protocol, so that the second edge router converts the data packet based on the mapping rule when sending the data packet of the second IPv4 network to the first IPv4 network; wherein the mapping rule is included in the network reachability information of the BGP protocol, or the mapping rule is included in the network unreachability information of the BGP protocol.

[0152] It should be noted that the processor 1010 may be a general-purpose processor or a dedicated processor. The processor 1010 may include one or more processing cores, and the processor 1010 executes various functional applications and data processing by running instructions.

[0153] In some embodiments, the processor 1010 may include a central processing unit (CPU) and / or a baseband processor.

[0154] In some embodiments, the processor 1010 may determine an instruction based on the priority identifier and / or function category information carried in each control instruction.

[0155] In the present disclosure, the processor 1010 and the memory 1020 may be provided separately or integrated together.

[0156] As an example, the processor 1010 and the memory 1020 may be integrated on a single board or a system on chip (SOC).

[0157] 10 , the electronic device 1000 is implemented as a general-purpose computing device and may further include a bus 1030 .

[0158] The bus 1030 may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures.

[0159] The electronic device 1000 may also communicate with one or more external devices 1040 (e.g., a keyboard, a pointing device, a Bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 1000, and / or any device that enables the electronic device 1000 to communicate with one or more other computing devices (e.g., a router, a modem, etc.). Such communication may be performed through an input / output (I / O) interface 1050.

[0160] Furthermore, the electronic device 1000 can also communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN) and / or a public network, such as the Internet) through the network adapter 1060 .

[0161] As shown in FIG. 10 , the network adapter 1060 communicates with other modules of the electronic device 1000 through the bus 1030 .

[0162] It should be understood that although not shown in the figures, other hardware and / or software modules may be used in conjunction with the electronic device 1000, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0163] It should be understood that the structures illustrated in the embodiments of the present disclosure do not constitute a specific limitation on the electronic device 1000. In other embodiments of the present disclosure, the electronic device 1000 may include more or fewer components than those shown in FIG10, or may combine or separate certain components, or may have different component arrangements. The components shown in FIG10 may be implemented in hardware, software, or a combination of software and hardware.

[0164] The present disclosure also provides a computer-readable storage medium having computer instructions stored thereon. When the computer instructions are executed by a processor, the data processing method described in the above method embodiment is implemented.

[0165] The computer-readable storage medium in the embodiments of the present disclosure is a computer instruction that can be sent, propagated or transmitted for use by or in conjunction with an instruction execution system, apparatus or device.

[0166] As an example, computer readable storage media are non-volatile storage media.

[0167] In some embodiments, more specific examples of computer-readable storage media in the present disclosure may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, a USB flash drive, a mobile hard disk, or any suitable combination of the foregoing.

[0168] In the embodiments of the present disclosure, the computer-readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer instructions (readable program codes).

[0169] Such a propagated data signal may take any of a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof.

[0170] In some examples, computing instructions contained on a computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0171] The embodiments of the present disclosure further provide a computer program product, which stores instructions. When the instructions are executed by a computer, the computer implements the data processing method described in the above method embodiment.

[0172] The above instructions may be program codes. In specific implementation, the program codes may be written in any combination of one or more programming languages.

[0173] Programming languages ​​include object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages.

[0174] The program code may execute entirely on the user's computing device, partly on the user's computing device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device or entirely on the remote computing device or server.

[0175] Where a remote computing device is involved, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0176] The embodiment of the present disclosure further provides a chip, comprising at least one processor and an interface;

[0177] An interface for providing program instructions or data to at least one processor;

[0178] At least one processor is used to execute program instructions to implement the data processing method described in the above method embodiment.

[0179] In some embodiments, the chip may further include a memory for storing program instructions and data, and the memory is located inside or outside the processor.

[0180] Those skilled in the art will appreciate that all or part of the steps for implementing the above embodiments may be implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software, which may be collectively referred to herein as a "circuit," "module," or "system."

[0181] Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein.

[0182] This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the appended claims.

Claims

1. A data processing method, applied to a first edge router, wherein the first edge router is located in an IPv6 network and connected to a first IPv4 network, the method comprising: Obtaining IPv4 address block information of a first IPv4 network; Determine a mapping rule based on the IPv4 address block information and the local IPv6 prefix information; Based on the BGP protocol, the mapping rule is transmitted to a second edge router in the IPv6 network connected to the second IPv4 network, so that the second edge router converts the data packet based on the mapping rule when sending the data packet of the second IPv4 network to the first IPv4 network; The network reachability information of the BGP protocol includes the mapping rule, and / or the network unreachability information of the BGP protocol includes the mapping rule.

2. The method according to claim 1, wherein: When sending the data packet of the first IPv4 network to the second IPv4 network, the method further comprises: According to the AFI field and the SAFI field of the BGP protocol, it is determined whether the network reachability information of the BGP protocol contains a mapping rule; In case a mapping rule is included, the data packet is converted based on the mapping rule.

3. The method according to claim 1, wherein: According to the AFI field and SAFI field of the BGP protocol, it is determined whether the network reachability information of the BGP protocol contains a mapping rule, including: When the AFI field of the BGP protocol is a preset first value, and the SAFI field is a preset second value, it is determined that the network reachability information of the BGP protocol includes a mapping rule.

4. The method according to claim 3, wherein: The preset first value is 1 or 2; the preset second value is one between 0-255.

5. The method according to any one of claims 3 or 4, wherein: The preset second value is different from the value registered with the Internet Assigned Numbers Authority IANA.

6. The method according to claim 3, wherein: The mapping rule includes one or more of an IPv6 mapping prefix, an IPv4 prefix, a data forwarding mode, and a source address type.

7. The method according to claim 6, wherein: The IPv4 prefix is ​​stored in the NLRI field or the Pref4 field; the IPv6 mapped prefix is ​​stored in the NLRI field or the Pref6 field; The data forwarding method is stored in the data_forwarding_type field; the source address type is stored in the address_origin_type field.

8. The method according to claim 7, wherein: When the preset first value is 1, the IPv4 prefix is ​​stored in the NLRI field, and the IPv6 mapping prefix is ​​stored in the Pref6 field.

9. The method according to claim 7, wherein: When the preset first value is 2, the IPv4 prefix is ​​stored in the Pref4 field, and the IPv6 mapping prefix is ​​stored in the NLRI field; or, both the IPv4 prefix and the IPv6 mapping prefix are stored in the NLRI field.

10. The method according to claim 9, wherein: The IPv4 prefix and the IPv6 mapping prefix are both stored in the NLRI field, including: the IPv4 prefix and the IPv6 mapping prefix are converted into a composite IPv6 prefix and stored in the NLRI field.

11. The method according to claim 1, wherein: The network reachability information is the MP_REACH_NLRI field; the network unreachability information is the MP_UNREACH_NLRI field.

12. The method according to claim 1, wherein: The network reachability information includes a prefix length field, and the prefix length field is used to indicate the length of the IPv6 prefix.

13. The method according to claim 1, wherein: The method further comprises: The AFI field value and the SAFI field value combination are configured through the BGP capability announcement process.

14. A first edge router, wherein the first edge router is located in an IPv6 network, the first edge router is connected to a first IPv4 network, and the first edge router comprises: An address block acquisition module, used to acquire IPv4 address block information of the first IPv4 network; A mapping module, used to determine a mapping rule based on the IPv4 address block information and the local IPv6 prefix information; An information transmission module, configured to transmit the mapping rule to a second edge router in the IPv6 network connected to the second IPv4 network based on the BGP protocol, so that the second edge router converts the data packet based on the mapping rule when sending the data packet of the second IPv4 network to the first IPv4 network; Wherein, the network reachability information of the BGP protocol includes the mapping rule, or The network unreachability information of the BGP protocol includes the mapping rule.

15. An electronic device, comprising: A memory for storing instructions; A processor, used to call the instructions stored in the memory to implement the data processing method as described in any one of claims 1-13.

16. A computer-readable storage medium having computer instructions stored thereon, wherein the computer instructions, when executed by a processor, implement the data processing method according to any one of claims 1 to 13.