Movatterモバイル変換


[0]ホーム

URL:


CN118869588A - Data processing method, device, equipment and medium - Google Patents

Data processing method, device, equipment and medium
Download PDF

Info

Publication number
CN118869588A
CN118869588ACN202310479192.8ACN202310479192ACN118869588ACN 118869588 ACN118869588 ACN 118869588ACN 202310479192 ACN202310479192 ACN 202310479192ACN 118869588 ACN118869588 ACN 118869588A
Authority
CN
China
Prior art keywords
network
ipv4
prefix
ipv6
field
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310479192.8A
Other languages
Chinese (zh)
Inventor
马晨昊
解冲锋
李聪
董国珍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Corp LtdfiledCriticalChina Telecom Corp Ltd
Priority to CN202310479192.8ApriorityCriticalpatent/CN118869588A/en
Priority to PCT/CN2023/140283prioritypatent/WO2024221987A1/en
Publication of CN118869588ApublicationCriticalpatent/CN118869588A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本公开提供了一种数据处理方法、装置、设备及介质,涉及通信技术领域。该方法应用于第一边缘路由器,第一边缘路由器位于IPv6网络,第一边缘路由器与第一IPv4网络连接,该方法包括:获取第一IPv4网络的IPv4地址块信息;基于IPv4地址块信息和本地的IPv6前缀信息,确定映射规则;基于BGP协议,将映射规则传送至IPv6网络中与第二IPv4网络连接的第二边缘路由器,以使第二边缘路由器在发送第二IPv4网络的数据包至第一IPv4网络时,基于映射规则转换数据包;其中,BGP协议的网络可达性信息中包括映射规则,和/或,BGP协议的网络不可达性信息中包括映射规则。根据本公开实施例,能够在IPv6网络传递路由信息,并且保持了互联网的可扩展性和兼容性,易于实现。

The present disclosure provides a data processing method, device, equipment and medium, which relates to the field of communication technology. The method is applied to a first edge router, the first edge router is located in an IPv6 network, and the first edge router is connected to a first IPv4 network. The method includes: obtaining IPv4 address block information of the first IPv4 network; determining mapping rules based on the IPv4 address block information and local IPv6 prefix information; based on the BGP protocol, transmitting the mapping rules to a second edge router connected to a second IPv4 network in the IPv6 network, so that the second edge router converts the data packet based on the mapping rules when sending the data packet of the second IPv4 network to the first IPv4 network; wherein the mapping rules are included in the network reachability information of the BGP protocol, and/or the mapping rules are included in the network unreachability information of the BGP protocol. According to the embodiment of the present disclosure, routing information can be transmitted in the IPv6 network, and the scalability and compatibility of the Internet are maintained, which is easy to implement.

Description

Data processing method, device, equipment and medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a data processing method, apparatus, device, and medium.
Background
The multi-domain IPv 6-only (Internet Protocol Version, sixth edition of internet protocol) network or multi-domain single stack IPv6, the network internal node closes the IPv4 (Internet Protocol version, fourth edition of internet communication protocol) protocol stack, the whole network uses the IPv6 protocol as a core for addressing, routing and forwarding, the network edge node adapts to the IPv4 protocol, and the load bearing of IPv6 and IPv4 services can be provided.
As shown in fig. 1, if a host of an a-network accesses a server of a B-network through an IPv6 network, a router a must convert an IPv4 packet of the a-network into an IPv6 packet and traverse the IPv6 network, so it must know an IPv6 prefix of a router B connected to the B-network, and complete conversion of an IP packet. In the related art, there is no method for transmitting IPv4 routing information of the correspondence between the IPv4 address block and the IPv6 prefix between IPv6 network domains.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the present disclosure and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The inventor finds through research that in the multi-domain IPv 6-only network, a first edge router connected with the IPv4 network converts IPv4 traffic into IPv6 traffic in an encapsulation or translation manner by adopting an IPv6 prefix, and forwards the IPv6 traffic to a second edge router connected with a destination IPv4 network accessed by the first edge router, and the second edge router forwards the IPv4 traffic to the destination IPv4 network after encapsulation or translation by the second edge router, wherein one key problem is how to transfer routing information in the multi-domain IPv 6-only network, so that the first edge router and the second edge router can accurately forward the accessed IPv4 traffic to the destination IPv4 network.
In view of the foregoing, the present disclosure provides a data processing method, apparatus, device, and medium. It should be noted that, although the above description uses a multi-domain IPv 6-only network as an example, the present disclosure is also applicable to other IPv6 networks, and achieves technical effects similar to those in the multi-domain IPv 6-only network.
As one example, the term (Terminology) in the present application is explained with reference to the definition of the specification protocol RFC4271 of the Internet research institute of Electrical and electronics Engineers, IRTF.
According to a first aspect of the present disclosure, there is provided a data processing method applied to a first edge router, the first edge router being located in an IPv6 network, the first edge router being connected to a first IPv4 network, the method comprising:
Acquiring IPv4 address block information of a first IPv4 network;
determining a mapping rule based on the IPv4 address block information and the local IPv6 prefix information;
Based on BGP protocol, transmitting the mapping rule to a second edge router connected with a second IPv4 network in the IPv6 network, so that the second edge router converts the data packet based on the mapping rule when transmitting the data packet of the second IPv4 network to the first IPv4 network;
Wherein, the network reachability information of the BGP protocol comprises mapping rules, and/or the network non-reachability information of the BGP protocol comprises mapping rules.
In one embodiment of the present disclosure, when sending a data packet of a first IPv4 network to a second IPv4 network, the method further includes:
Judging 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;
in the case of containing the mapping rule, the data packet is converted based on the mapping rule.
In one embodiment of the present disclosure, determining whether the network reachability information of the BGP protocol includes a mapping rule according to an AFI field and a SAFI field of the BGP protocol includes:
when the AFI field of the BGP protocol is a preset first value and the SAFI field is a preset second value, determining that the network reachability information of the BGP protocol contains a mapping rule.
In one embodiment of the present disclosure, the preset first value is 1 or 2; the second value is preset to be one of 0-255.
In one embodiment of the present disclosure, the preset second value is different from the value that has been registered with the internet digital distribution authority IANA.
In one embodiment of the present disclosure, the mapping rules include one or more of IPv6 mapping prefix, IPv4 prefix, data forwarding mode, source address type.
In one embodiment of the present disclosure, the IPv4 prefix is stored in the NLRI field or Pref4 field; the IPv6 mapping prefix is stored in an NLRI field or a Pref6 field; the data forwarding mode is stored in a data_forwarding_type field; the source address type is stored in the address_origin_type field.
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.
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 mapped prefix are stored in the NLRI field.
In one embodiment of the present disclosure, storing both the IPv4 prefix and the IPv6 mapping prefix in the NLRI field includes: the IPv4 prefix and the IPv6 mapped prefix are converted into a synthetic IPv6 prefix that is stored in the NLRI field.
In one embodiment of the present disclosure, the network reachability information is an mp_reach_nlri field; the network unreachability information is the mp_ UNREACH _nlri field.
In one embodiment of the present disclosure, a prefix length field is included in the network reachability information, the prefix length field indicating the length of the IPv6 prefix.
In one embodiment of the present disclosure, the method further comprises:
The AFI field value and SAFI field value combination is configured by BGP's capability advertisement flow.
It should be noted that embodiments of the present disclosure and features of embodiments may be applied to a second edge router and vice versa without conflict. The embodiments of the present disclosure and features in the embodiments may be arbitrarily combined with each other without collision.
According to a second aspect of the present disclosure, there is provided a data processing apparatus for use with a first edge router, the first edge router being located in an IPv6 network, the first edge router being connected to a first IPv4 network, the apparatus comprising:
the address block acquisition module is used for acquiring IPv4 address block information of the first IPv4 network;
The mapping module is used for determining a mapping rule based on the IPv4 address block information and the local IPv6 prefix information;
The information transfer module is used for transmitting the mapping rule to a second edge router connected with a second IPv4 network in the IPv6 network based on the BGP protocol, so that the second edge router converts the data packet based on the mapping rule when transmitting the data packet of the second IPv4 network to the first IPv4 network;
Wherein, the network reachability information of the BGP protocol includes a mapping rule, or the network non-reachability information of the BGP protocol includes a mapping rule.
According to a third aspect of the present disclosure, there is provided an electronic device comprising: a memory for storing instructions; and the processor is used for calling the instructions stored in the memory to realize the data processing method.
According to a fourth aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the above-described data processing method.
According to a fifth aspect of the present disclosure, there is provided a computer program product storing instructions that, when executed by a computer, cause the computer to carry out the data processing method described above.
According to a sixth aspect of the present disclosure, there is provided a chip comprising at least one processor and an interface;
An interface for providing program instructions or data to at least one processor;
at least one processor is configured to execute the program instructions to implement the data processing method described above.
The data processing method, device, equipment and medium provided by the embodiment of the disclosure are applied to a first edge router, the first edge router is located in an IPv6 network, and the first edge router is connected with a first IPv4 network. The embodiment of the disclosure defines the routing information as IPv4 address block information and IPv6 prefix, maintains the characteristics of IPv4 protocol on a control plane, and still needs to process and configure the routing information in the form of IPv4 protocol when performing policy control, management and operation and maintenance of the routing information. According to the embodiment of the disclosure, only the BGP protocol is required to be expanded, the mapping rule is added in the network reachability information of the BGP protocol, and/or the mapping rule is added in the network non-reachability information of the BGP protocol, so that the MP-BGP protocol in the foregoing is obtained, the routing information can be transferred without greatly changing the existing protocol, the expandability and compatibility of the Internet are maintained, and the implementation is easy.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort.
FIG. 1 illustrates a network architecture diagram in an embodiment of the present disclosure;
FIG. 2 illustrates another network architecture diagram in an embodiment of the present disclosure;
FIG. 3 is a flow chart of a data processing method according to an embodiment of the disclosure;
FIG. 4 is a flow diagram illustrating the delivery of IPv4 routing information in one embodiment of the present disclosure;
Fig. 5 is a schematic flow chart of transferring IPv6 routing information according to an embodiment of the present disclosure;
fig. 6 illustrates a BGP protocol diagram in an embodiment of the present disclosure;
fig. 7 illustrates another BGP protocol schematic in an embodiment of the present disclosure;
fig. 8 is a schematic flow chart of an edge router processing BGP protocol information in an embodiment of the disclosure;
FIG. 9 illustrates a schematic diagram of a data processing apparatus in an embodiment of the present disclosure;
Fig. 10 shows a block diagram of an electronic device in an embodiment of the disclosure.
Detailed Description
Example embodiments will now be described more fully hereinafter with reference to the accompanying drawings.
It should be noted that the exemplary embodiments can be implemented in various forms and should not be construed as limited to the examples set forth herein.
BGP (Border Gateway Protocol ) has the following 5 messages:
Open, for negotiating various parameters of BGP neighbors, establishing neighbor relationships (supported functions need to be consistent to establish neighbor relationships). The Open message is the first message sent after the TCP connection is established.
Keepalive is used to maintain the neighbor relation and confirm the OPEN packet (approval) sent by the other party. And confirming the sending interval in the Open message, and if the Hold time intervals at the two ends are inconsistent, taking the minimum. And when the Hold time is 0, not sending the Keepalive message. The default interval for KEEPALICE is 60s and the keep-alive time is 180s based on the default time for Hold time.
Update, used for exchanging route information and path attribute between peers after connection establishment. Reachable route information may be sent or unreachable route information may be withdrawn.
And the Notification is used for sending Notification information to the peer after the BGP detects the error state, and the BGP connection is immediately interrupted.
Route-refresh, a message used to ask a peer to resend routing information of a specified address family (i.e., ask the peer to resend Update messages, for Route updates), triggers a request for neighbor to re-advertise a Route when a change in the routing policy occurs (the specific meaning of the message is not clear).
The embodiment of the present disclosure is applied to an IPv6 network, where the IPv6 network may be an IPv6 network in which an IPv6 single stack technology is deployed, and fig. 2 shows a schematic diagram of a network architecture to which the data processing method provided by the embodiment of the present disclosure is applied.
As shown in fig. 2, the network architecture includes an IPv6 network 210, a first IPv4 network 220, and a second IPv4 network 230.
Wherein, the IPv6 network 210 may be an IPv6 network deploying an IPv6 single stack technology.
As one example, IPv6 network 210 may be a multi-domain IPv 6-only network.
The IPv6 network 210 in this disclosure 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.
The first edge router 211 and the second edge router 212 in this disclosure may be BGP (Border Gateway Protocol ) routers.
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 are not to be construed as indicating or implying relative importance.
If a device of the first IPv4 network 220 accesses a server of the second IPv4 network 230 through 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. In the related art, there is no method for transmitting IPv4 routing information of the correspondence between the IPv4 address block and the IPv6 prefix between IPv6 network domains.
It should be noted that, the "devices" of the first IPv4 network 220 include, but are not limited to, a mobile phone, a tablet computer, a notebook, an in-vehicle Communication device, an unmanned aerial vehicle, a Communication module on the unmanned aerial vehicle, a remote control plane, an aircraft, a mini-plane, a vehicle, an RSU, a wireless sensor, an internet of things terminal, an RFID terminal, an NB-IOT terminal, an MTC (MACHINE TYPE Communication) terminal, an eMTC (ENHANCED MTC, an enhanced MTC) terminal, a data card, an internet card, an in-vehicle Communication device, a low-cost mobile phone, a low-cost tablet computer, and other wireless Communication devices.
Fig. 3 illustrates a data processing method in an embodiment of the present disclosure, which may be applied to the network architecture illustrated in fig. 2, and the method may be performed by the first edge router 211 illustrated in fig. 2.
The following describes a data processing method provided by an embodiment of the present disclosure with reference to fig. 2 and 3. As shown in fig. 3, the data processing method provided in the embodiment of the present disclosure includes the following steps:
s302, IPv4 address block information of a first IPv4 network is acquired;
S304, generating a mapping rule based on IPv4 address block information and IPv6 prefix information configured locally;
s306, based on BGP protocol, transmitting the mapping rule to a second edge router connected with a second IPv4 network in the IPv6 network, so that the second edge router converts the IPv4 data packet of the second IPv4 network based on the mapping rule when transmitting the data packet of the second IPv4 network to the first IPv4 network;
The BGP protocol in S306 is an extended BGP protocol in the embodiment of the present disclosure.
The mapping rules are included in the network reachability information of the BGP protocol and/or the mapping rules are included in the network non-reachability information of the BGP protocol.
In some embodiments, when the second edge router receives the IPv4 data packet of the first IPv4 network, the second edge router may convert the data packet according to whether the IP address information of the IPv4 data packet matches the mapping rule, and if so, convert the data packet based on the mapping rule; if not, the data packet is not converted.
In some embodiments, when sending the BGP message to the second IPv4 network, the second edge router may determine whether the BGP protocol network reachability information includes a mapping rule according to an AFI field and a SAFI field in the BGP message. Wherein, the BGP message is the BGP message provided in the foregoing embodiment.
Judging 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, wherein the step of determining whether the network reachability information of the BGP protocol contains the mapping rule comprises the step of determining that the network reachability information of the BGP protocol contains the mapping rule when the AFI field of the BGP protocol is a preset first value and the SAFI field is a preset second value.
In some embodiments, the preset first value is 1 or 2; the second value is preset to be one of 0-255.
In some embodiments, the second value is preset to a value in the range of 0-255 that is different from the value that has been registered with the internet digital distribution entity (THE INTERNET ASSIGNED Numbers Authority, IANA).
As an example, the preset second value is preferably the following number: 10-63, 81-82, 85-127.
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.
In some embodiments, the mapping rules include one or more of IPv6 mapping prefixes, IPv4 prefixes, data forwarding modes, source address types.
Wherein, the IPv4 prefix is stored in the NLRI field or the Pref4 field; the IPv6 mapping prefix is stored in an NLRI field or a Pref6 field; the data forwarding mode is stored in a data_forwarding_type field; the source address type is stored in the address_origin_type field.
As an example, when the preset first value is 1, an IPv4 prefix is stored in the NLRI field, and an IPv6 mapping prefix is stored in the Pref6 field.
As another example, 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 mapped prefix are stored in the NLRI field.
Wherein, storing both the IPv4 prefix and the IPv6 mapped prefix in the NLRI field includes: the IPv4 prefix and the IPv6 mapped prefix are converted into a synthetic IPv6 prefix that is stored in the NLRI field.
In some embodiments, the network reachability information in the above example is an mp_reach_nlri field; the network unreachability information is the mp_ UNREACH _nlri field.
In some embodiments, a prefix length field may also be included in the network reachability information, the prefix length field indicating the length of the IPv6 prefix.
In some embodiments, the prefix length field is 1 byte in size, with the value of the prefix length field being greater than 0 bits and no greater than 128 bits.
In some embodiments, the method may further comprise configuring the AFI field value and SAFI field value combination by a BGP capability advertisement flow.
The embodiment of the disclosure defines the routing information as IPv4 address block information and IPv6 prefix, maintains the characteristics of IPv4 protocol on a control plane, and still needs to process and configure the routing information in the form of IPv4 protocol when performing policy control, management and operation and maintenance of the routing information.
The routing information may be transferred in the embodiment of the present disclosure, which may be transferring IPv4 routing information or transferring IPv6 routing information.
In transferring IPv4 routing information, as shown in fig. 4, the first edge router uses the extended BGP provided by the present disclosure to transfer IPv4 address block information and IPv6 prefix mapping information of the first edge router mapping table to the second edge router. The mapping rule in the foregoing may be IPv4 address block information and IPv6 prefix mapping information herein.
In transferring IPv6 routing information, as shown in fig. 5, the first edge router uses the extended BGP provided by the present disclosure to convert IPv4 address block information and IPv6 prefix mapping information of the first edge router mapping table into synthetic IPv6 routing information, and transmits the synthetic IPv6 routing information to the second edge router.
The present disclosure extends BGP protocol, and provides a data processing method, configured to transmit routing information, where in the embodiment of the present disclosure, when IPv4 routing information is transmitted, a first value N is preset to be 1; when the IPv6 routing information is transferred, the first value N is preset to be 2.
When the preset first value N is 1, the (1, X) 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.
When the preset first value N is 2, (2, X) is represented by a combination of the preset first value N and the preset second value X: 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.
In some embodiments, when the preset first value N is 1, the byte length in the next hop network address length field is 16.
In some embodiments, when the first value N is preset to be 1, the NLRI further includes an IPv6 prefix field, where the size of the IPv6 prefix field is 16 bytes.
As an example, BGP protocol extensions support the delivery of IPv4 address blocks and IPv6 prefix information for synthesis or translation in the format of BGP messages as shown in fig. 6.
The embodiment of the disclosure extends the MP-BGP protocol to deliver IPv4 address blocks and IPv6 prefix information, with new definition AFI (address family identifier) being 1, safi (subsequencent ADDRESS FAMILY IDENTIFIER) being X, and no specific value is specified in the disclosure, and the value is distinguished from the value registered in the IANA.
(1, X) represented by the combination of AFI and SAFI numbers: the network protocol in the network reachability information (NLRI, network layer reachbility information) belongs to IPv4, and the network protocol type of the address in the next hop (next hop network address) is IPv6, and meanwhile, IPv6 prefix information for synthesis or translation is carried therein.
Under the above (AFI, SAFI) combination, the byte length in Length of Next Hop Network Address (next-hop network address length) is required to be fixed to 16, representing that the NLRI is not VPN-IPv4NLRI but IPv4 NLRI.
Two fields, a Prefix Length field (Prefix 64 Length) of 1 byte Length and an IPv6 Prefix field (IPv 6 Prefix) of 16 bytes Length are newly added to the MP-NLRI path attribute. The prefix length field indicates the length of the IPv6 prefix in the IPv6 prefix field in bits. The IPv6 prefix field indicates a specific IPv6 prefix, and a portion exceeding the length of the IPv6 prefix is zero-padded. The value of the prefix length field is greater than 0 and not greater than 128.
BGP-CAP is also required to support AFI and SAFI in the present disclosure. The two fields, namely, the prefix length field and the IPv6 prefix field are added in the path attribute MP_ UNREACH _NLRI.
As another example, BGP protocol extensions support the delivery of synthetic IPv6 routing information in the format of BGP messages as shown in fig. 7.
Embodiments of the present disclosure extend the MP-BGP protocol to deliver synthetic IPv6 routing information (IPv 4 address block and IPv6 prefix information).
The new definition AFI is 2, safi is X, and no specific value is specified in this disclosure, as opposed to the value registered with IANA. (2, X) represented by the combination of AFI and SAFI numbers: the network protocol in the network reachability information NLRI belongs to IPv6, the network protocol type of the address in the next hop is IPv6, and meanwhile, the NLRI carries synthetic IPv6 routing information.
A field is newly added in the NLRI, and a Prefix Length field (Prefix 64_length) with a Length of 1 byte indicates the Length of the IPv6 Prefix in the Prefix field (Prefix), and the unit is a bit. The Prefix Length field (Prefix 64_length) has a value greater than 0 and not greater than 128.
BGP-CAP is also required to support AFI and SAFI in this patent. The Prefix Length field (Prefix 64 Length) is added to the NLRI in the path attribute mp_ UNREACH _nlri.
The first edge router and the second edge router in the embodiments of the present disclosure still comply with RFC4271 in the flow of processing BGP protocol information in the above examples.
As an example, as shown in fig. 8, assume that a first edge router 801 and a second edge router 802 have BGP extension capabilities of the embodiments of the present disclosure, and that a third edge router 803 in the first IPv4 network and a fourth edge router 804 in the second IPv4 network establish EBGP neighbor relations with the first edge router 801 and the second edge router 802, respectively.
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 configures the translation specific IPv6 Prefix1 2001:db8:1::48, second edge router 802 configures 2001:db8:2: and/48.
The first edge router 801 generates a mapping record of an IPv4 address block and an IPv6 prefix in a mapping table in the present router using the self-configured translation-specific IPv6 prefix and the IPv4 address block information received from the first IPv4 network.
The first edge router 801 advertises that the second edge router 802B supports the newly defined (AFI, SAFI) itself.
In communicating IPv4 routing information, the first edge router 801 uses extended BGP provided by the present disclosure to communicate IPv4 address block information and IPv6 prefix mapping information of the first edge router 801 mapping table to the second edge router 802. The first edge router 801 stores a mapping record of the IPv4 address block and the IPv6 prefix of the second edge router 802 in a mapping table, and converts the data packet using the corresponding IPv6 prefix when forwarding the data packet of the first IPv4 network.
In delivering IPv6 routing information, the first edge router 801 converts the IPv4 address block information and the IPv6 prefix mapping information of the mapping table of the first edge router 801 into synthetic IPv6 routing information using the extended BGP provided by the present disclosure, and transmits the synthetic IPv6 routing information to the second edge router 802. The first edge router 801, upon receiving the synthetic IPv6 routing information, converts it into a mapping record of an IPv4 address block and an IPv6 prefix and stores it in the mapping table, and when forwarding a packet of the first IPv4 network, converts the packet using the corresponding IPv6 prefix.
Furthermore, although the steps of the methods in 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 that particular order, or that all illustrated steps be performed, to achieve desirable results.
In some embodiments, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
Based on the same inventive concept, a data processing apparatus is also provided in the embodiments of the present disclosure, as described in the following embodiments. Since the principle of solving the problem of the embodiment of the device is similar to that of the embodiment of the method, the implementation of the embodiment of the device can be referred to the implementation of the embodiment of the method, and the repetition is omitted.
Fig. 9 shows a data processing apparatus in an embodiment of the disclosure, where the data processing apparatus is applied to a first edge router, the first edge router is located in an IPv6 network, and the first edge router is connected to a first IPv4 network, and as shown in fig. 9, the data processing apparatus 900 includes:
An address block obtaining module 902, configured to obtain IPv4 address block information of the first IPv4 network;
a mapping module 904, configured to determine a mapping rule based on the IPv4 address block information and the local IPv6 prefix information;
An information transfer module 906, configured to transfer the mapping rule to a second edge router connected to a second IPv4 network in the IPv6 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 a mapping rule, or the network non-reachability information of the BGP protocol includes a mapping rule.
In some embodiments, the data processing apparatus 900 may further include:
The judging module is used for judging 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 when the data packet of the first IPv4 network is sent to the second IPv4 network;
And the data packet conversion module is used for converting the data packet based on the mapping rule under the condition of containing the mapping rule.
In some embodiments, the judging 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.
In some embodiments, the preset first value is 1 or 2; the second value is preset to be one of 0-255.
In some embodiments, the preset second value is different from a value that has been registered with the internet digital distribution authority IANA.
In some embodiments, the mapping rules include one or more of IPv6 mapping prefixes, IPv4 prefixes, data forwarding modes, source address types.
In some embodiments, the IPv4 prefix is stored in the NLRI field or Pref4 field; the IPv6 mapping prefix is stored in an NLRI field or a Pref6 field; the data forwarding mode is stored in a data_forwarding_type field; the source address type is stored in the address_origin_type field.
In some embodiments, 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.
In some embodiments, 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 mapped prefix are stored in the NLRI field.
In some embodiments, storing both the IPv4 prefix and the IPv6 mapped prefix in the NLRI field includes: the IPv4 prefix and the IPv6 mapped prefix are converted into a synthetic IPv6 prefix that is stored in the NLRI field.
In some embodiments, the network reachability information is an mp_reach_nlri field; the network unreachability information is the mp_ UNREACH _nlri field.
In some embodiments, a prefix length field is included in the network reachability information, the prefix length field indicating the length of the IPv6 prefix.
In some embodiments, the data processing apparatus 900 may further include:
and the configuration module is used for configuring the combination of the AFI field value and the SAFI field value through the BGP capability notification flow.
The terms "first," "second," and the like in this disclosure are used solely to distinguish one from another device, module, or unit, and are not intended to limit the order or interdependence of functions performed by such devices, modules, or units.
With respect to the data processing apparatus in the above-described embodiments, the specific manner in which the respective modules perform operations has been described in detail in the embodiments concerning the data processing method, and will not be explained in detail here.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory.
Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
An electronic device provided by an embodiment of the present disclosure is described below with reference to fig. 10. The electronic device 1000 shown in fig. 10 is merely an example and should not be construed as limiting the functionality and scope of use of the disclosed embodiments.
Fig. 10 shows a schematic architecture diagram of an electronic device 1000 according to the present disclosure. As shown in fig. 10, the electronic device 1000 includes, but is not limited to: at least one processor 1010, at least one memory 1020.
Memory 1020 for storing instructions.
In some embodiments, memory 1020 may include readable media in the form of volatile memory units such as Random Access Memory (RAM) 10201 and/or cache memory unit 10202, and may further include read only memory unit (ROM) 10203.
In some embodiments, 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 or some combination of which may include an implementation of a network environment.
In some embodiments, memory 1020 may store an operating system. The operating system may be a real-time operating system (Real Time eXecutive, RTX), LINUX, UNIX, WINDOWS, or an operating system such as OS X.
In some embodiments, memory 1020 may also have data stored therein.
As one example, the processor 1010 may read data stored in the memory 1020, which may be stored at the same memory address as the instruction, or which may be stored at a different memory address than the instruction.
A processor 1010 for invoking instructions stored in memory 1020 to implement the steps described in the "exemplary methods" section of the present specification according to various exemplary embodiments of the present disclosure. For example, the processor 1010 may perform the following steps of the method embodiments described above:
Acquiring IPv4 address block information of a first IPv4 network;
determining a mapping rule based on the IPv4 address block information and the local IPv6 prefix information;
Based on BGP protocol, transmitting the mapping rule to a second edge router connected with a second IPv4 network in the IPv6 network, so that the second edge router converts the data packet based on the mapping rule when transmitting the data packet of the second IPv4 network to the first IPv4 network;
Wherein, the network reachability information of the BGP protocol includes a mapping rule, or the network non-reachability information of the BGP protocol includes a mapping rule.
The processor 1010 may be a general-purpose processor or a special-purpose processor. The processor 1010 may include one or more processing cores, with the processor 1010 executing various functional applications and data processing by executing instructions.
In some embodiments, the processor 1010 may include a central processing unit (central processing unit, CPU) and/or a baseband processor.
In some embodiments, processor 1010 may determine an instruction based on a priority identification and/or functional class information carried in each control instruction.
In this disclosure, the processor 1010 and the memory 1020 may be provided separately or may be integrated.
As one example, the processor 1010 and the memory 1020 may be integrated on a single board or System On Chip (SOC).
As shown in fig. 10, the electronic device 1000 is embodied in the form of a general purpose computing device. The electronic device 1000 may also include a bus 1030.
Bus 1030 may be representative of 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.
The electronic device 1000 can also communicate with one or more external devices 1040 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 1000, and/or with any device (e.g., router, modem, etc.) that enables the electronic device 1000 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 1050.
Also, electronic device 1000 can communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 1060.
As shown in fig. 10, the network adapter 1060 communicates with other modules of the electronic device 1000 over the bus 1030.
It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with the electronic device 1000, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
It is to be understood that the illustrated structure of the embodiments of the present disclosure does not constitute a particular limitation of the electronic device 1000. In other embodiments of the present disclosure, electronic device 1000 may include more or fewer components than shown in FIG. 10, or may combine certain components, or split certain components, or a different arrangement of components. The components shown in fig. 10 may be implemented in hardware, software, or a combination of software and hardware.
The present disclosure also provides a computer-readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the data processing method described in the above method embodiments.
A computer-readable storage medium in an embodiment of the present disclosure is a computer instruction that can be transmitted, propagated, or transmitted for use by or in connection with an instruction execution system, apparatus, or device.
As one example, the computer-readable storage medium is a non-volatile storage medium.
In some embodiments, more specific examples of the computer readable storage medium in the present disclosure may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, a U disk, a removable hard disk, or any suitable combination of the foregoing.
In an embodiment of the present disclosure, a computer-readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, with computer instructions (readable program code) carried therein.
Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing.
Any readable medium other than a readable storage medium, the readable medium
In some examples, the computing instructions contained on the 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.
The disclosed embodiments also provide a computer program product storing instructions that, when executed by a computer, cause the computer to implement the data processing method described in the above method embodiments.
The instructions may be program code. In particular implementations, the program code can be written in any combination of one or more programming languages.
The programming languages include object oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages.
The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server.
In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind 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., connected via the Internet using an Internet service provider).
The embodiment of the disclosure also provides a chip comprising at least one processor and an interface;
An interface for providing program instructions or data to at least one processor;
At least one processor is configured to execute the program instructions to implement the data processing method described in the method embodiments above.
In some embodiments, the chip may also include a memory for holding program instructions and data, the memory being located either within the processor or external to the processor.
Those of ordinary skill in the art will appreciate that all or a portion of the steps implementing the above embodiments may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein.
This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (16)

CN202310479192.8A2023-04-282023-04-28 Data processing method, device, equipment and mediumPendingCN118869588A (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN202310479192.8ACN118869588A (en)2023-04-282023-04-28 Data processing method, device, equipment and medium
PCT/CN2023/140283WO2024221987A1 (en)2023-04-282023-12-20Data processing method, and device, medium and first edge router

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202310479192.8ACN118869588A (en)2023-04-282023-04-28 Data processing method, device, equipment and medium

Publications (1)

Publication NumberPublication Date
CN118869588Atrue CN118869588A (en)2024-10-29

Family

ID=93161620

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202310479192.8APendingCN118869588A (en)2023-04-282023-04-28 Data processing method, device, equipment and medium

Country Status (2)

CountryLink
CN (1)CN118869588A (en)
WO (1)WO2024221987A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN120151264A (en)*2025-03-262025-06-13中国人民解放军61516部队 Border Gateway Protocol VPN routing source verification device and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1972295A (en)*2006-12-012007-05-30清华大学IPv4 over IPv6 extension method of BGP protocol software
WO2009026783A1 (en)*2007-08-232009-03-05Alcatel LucentMethod and equipment for controlling mobile node in a communication network communicating with heterogeneous network
CN114513485A (en)*2020-11-162022-05-17华为技术有限公司 Method, apparatus, device, system and readable storage medium for obtaining mapping rules
CN115567484A (en)*2021-06-302023-01-03中国电信股份有限公司Data forwarding method, network side edge router and network system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101340372B (en)*2008-08-212012-09-19中国移动通信集团公司 Number automatic routing method, updating method, revocation method, router and equipment
CN105577544B (en)*2014-11-112019-04-23中国移动通信集团公司 A kind of IPv4 routing information, IPv4 data packet processing method, device and system
US11658934B2 (en)*2021-04-262023-05-23Verizon Patent And Licensing Inc.Systems and methods for advertising internet protocol (IP) version 4 network layer routing information with an IP version 6 Next Hop address
CN116527629A (en)*2023-05-182023-08-01中国电信股份有限公司北京研究院Address mapping method based on IPv6 inter-domain route expansion and related equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1972295A (en)*2006-12-012007-05-30清华大学IPv4 over IPv6 extension method of BGP protocol software
WO2009026783A1 (en)*2007-08-232009-03-05Alcatel LucentMethod and equipment for controlling mobile node in a communication network communicating with heterogeneous network
CN114513485A (en)*2020-11-162022-05-17华为技术有限公司 Method, apparatus, device, system and readable storage medium for obtaining mapping rules
CN115567484A (en)*2021-06-302023-01-03中国电信股份有限公司Data forwarding method, network side edge router and network system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN120151264A (en)*2025-03-262025-06-13中国人民解放军61516部队 Border Gateway Protocol VPN routing source verification device and method

Also Published As

Publication numberPublication date
WO2024221987A9 (en)2025-03-06
WO2024221987A1 (en)2024-10-31

Similar Documents

PublicationPublication DateTitle
CN109923838B (en) A resilient VPN that bridges remote silos
CN112165725B (en) Message processing methods and equipment
CN103534993B (en) Label switching routing method and device for connecting low-power network domains
US20240154902A1 (en)Packet forwarding method and system, storage medium, and electronic device
US20050010686A1 (en)Router and address indentification information management server
US11888818B2 (en)Multi-access interface for internet protocol security
US20230327983A1 (en)Performance measurement in a segment routing network
WO2019160005A1 (en)Path information transmission device, path information transmission method and path information transmission program
CN1875573B (en)Method, node and server for providing tunnel service capable of data communication between different types of networks
CN115277530A (en)Data processing method, device, equipment and medium based on SRv6 protocol
CN112261054B (en) Ethernet/IP and IPv6 protocol conversion system and method based on application service quality
CN103634214A (en)Route information generating method and device
CN102946350B (en)A kind of data transmission method based on priority and equipment
US11902158B2 (en)System and method for forwarding packets in a hierarchical network architecture using variable length addresses
US20100260203A1 (en)TUNNELING IPv6 PACKET THROUGH IPv4 NETWORK USING A TUNNEL ENTRY BASED ON IPv6 PREFIX AND TUNNELING IPv4 PACKET USING A TUNNEL ENTRY BASED ON IPv4 PREFIX
CN112787932B (en)Method, device and system for generating forwarding information
CN118869588A (en) Data processing method, device, equipment and medium
CN113472913B (en)Communication method and device
CN113285894B (en)Identity identification network mobility control method and system based on programmable switch
KR100854681B1 (en) Gateway and internet protocol for interworking internet protocol ubiquitous sensor network and simple network management protocol network Interworking method between ubiquitous sensor network and simple network management protocol network.
CN113556283A (en) Route management method and tunnel endpoint device
CN101572729A (en)Processing method of node information of virtual private network, interrelated equipment and system
CN115914068B (en)Network communication method, device, electronic equipment and computer readable storage medium
US11729280B2 (en)Zero day zero touch providing of services with policy control
WO2024094082A1 (en)Information transmission method and apparatus, node, and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp