CN116389340A - Data transmission method, device, network equipment, system and storage medium - Google Patents

Data transmission method, device, network equipment, system and storage medium Download PDF

Info

Publication number
CN116389340A
CN116389340A CN202211372014.7A CN202211372014A CN116389340A CN 116389340 A CN116389340 A CN 116389340A CN 202211372014 A CN202211372014 A CN 202211372014A CN 116389340 A CN116389340 A CN 116389340A
Authority
CN
China
Prior art keywords
address
message
ipv6
source
destination
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
CN202211372014.7A
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 Ltd filed Critical China Telecom Corp Ltd
Priority to CN202211372014.7A priority Critical patent/CN116389340A/en
Publication of CN116389340A publication Critical patent/CN116389340A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/34Source routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/741Routing in networks with a plurality of addressing schemes, e.g. with both IPv4 and IPv6

Abstract

The disclosure provides a data transmission method, a data transmission device, network equipment, a data transmission system and a data storage medium, and relates to the technical field of networks. The data transmission method disclosed by the disclosure comprises the following steps: receiving a first message from a source node; under the condition that a first destination address of the first message is an IPv4 address, determining a first IPv6 prefix corresponding to the first destination address, and generating the first destination IPv6 address according to the first IPv6 prefix and the first destination address; under the condition that a first source address of a first message is an IPv4 address, determining a second IPv6 prefix corresponding to the first source address, and generating the first source IPv6 address according to the second IPv6 prefix and the first source address; generating a second message according to at least one of the first destination IPv6 address or the first source IPv6 address and the first message, and forwarding the second message to the IPv6 network. By the method, after the IPv4 message is packaged into the IPv6 message, the IPv6 address of the outer layer contains the addresses of the source node and the destination node, so that the data processing efficiency of distinguishing the source host from the destination host is improved.

Description

Data transmission method, device, network equipment, system and storage medium
Technical Field
The disclosure relates to the field of network technologies, and in particular, to a data transmission method, a data transmission device, a network device, a system and a storage medium.
Background
When carrying out the bearing of the IPv4 service, the large IPv6 (Internet Protocol Version, internet protocol version 6) single stack network follows the idea of taking IPv4 (Internet Protocol Version, internet protocol version 4) as a service, and for the IPv4 data packet sent by the user side, the network entry edge device encapsulates the IPv4 data packet in an encapsulation mode and transmits the IPv4 data packet to the exit edge device of the IPv6 network.
In SRv (Segment Routing over IPv, segment routing based on IPv 6), the method of directly encapsulating the IPv4 packet is adopted, after the ingress edge device receives the IPv4 packet, it searches the routing forwarding table corresponding to the VPN (VPN-Virtual Private Network, virtual private network) instance, matches the destination IPv4 prefix, and searches the associated SRv VPN SID (Segment ID) and the next hop information. And then using SRv VPN SID as a destination address to package into an IPv6 message, and the original IPv4 data packet becomes the payload of the IPv6 data packet and is sent to an IPv6 network. In this encapsulation mode, the IPv4 data packet is directly encapsulated in the payload of the IPv6 data packet, and in the case of BE (Best Effort), the source and destination addresses in the IPv6 header of the outer layer of the data packet are SID addresses of the last nodes of the ingress edge device and the egress edge device, respectively, where the addresses are not related to the IPv4 address of the original IPv4 data packet.
Disclosure of Invention
An object of the present disclosure is to provide a scheme for IPv4-IPv6 address transformation, which improves the data processing efficiency of source and destination hosts.
According to an aspect of some embodiments of the present disclosure, there is provided a data transmission method, including: receiving a first message from a source node; under the condition that a first destination address of the first message is an IPv4 address, determining a first IPv6 prefix corresponding to the first destination address, and generating the first destination IPv6 address according to the first IPv6 prefix and the first destination address; under the condition that a first source address of a first message is an IPv4 address, determining a second IPv6 prefix corresponding to the first source address, and generating the first source IPv6 address according to the second IPv6 prefix and the first source address; generating a second message according to at least one of the first destination IPv6 address or the first source IPv6 address and the first message, and forwarding the second message to the IPv6 network, wherein the second message is an IPv6 message.
In some embodiments, generating the second message based on the first message and at least one of the first destination IPv6 address or the first source IPv6 address includes: under the condition that a first destination address and a first source address of the first message are IPv4 addresses, the first source IPv6 address is used as a source address of the second message, and the first destination IPv6 address is used as a destination address of the second message, so that the second message is generated; when the first destination address of the first message is an IPv4 address and the first source address is an IPv6 address, the first source address is used as the source address of the second message, and the first destination IPv6 address is used as the destination address of the second message, so as to generate the second message; or when the first destination address of the first message is an IPv6 address and the first source address is an IPv4 address, the first source IPv6 address is used as the source address of the second message, and the first destination address is used as the destination address of the second message, so as to generate the second message.
In some embodiments, determining the first IPv6 prefix corresponding to the destination address includes: inquiring a first IPv6 prefix corresponding to a destination address according to a pre-stored corresponding relation between an IPv4 address block and the IPv6 prefix, wherein the IPv4 address block corresponds to the IPv6 prefix one by one; determining the second IPv6 prefix corresponding to the source address includes: inquiring a second IPv6 prefix corresponding to the source address according to the corresponding relation between the pre-stored IPv4 address block and the IPv6 prefix.
In some embodiments, the method further comprises: acquiring a third message from a network forwarding node, wherein the third message is an IPv6 message; under the condition that the target node of the third message is an IPv4 node, determining a second destination IPv4 address carried in the second destination IPv6 address according to the second destination IPv6 address of the third message; under the condition that the source node of the third message is an IPv4 node, determining a second source IPv4 address carried in the second source IPv6 address according to the second source IPv6 address of the third message; generating a fourth message according to at least one of the second destination IPv4 address or the second source IPv4 address and the third message, and forwarding the fourth message to the IPv4 node, wherein the fourth message is the IPv4 message.
In some embodiments, generating the fourth message according to the third message and at least one of the second destination IPv4 address or the second source IPv4 address includes: under the condition that the target node and the source node of the third message are both IPv4 nodes, the second source IPv4 address is used as the source address of the fourth message, and the second destination IPv4 address is used as the destination address of the fourth message, so that the fourth message is generated; when the source node of the third message is an IPv4 node and the destination node is an IPv6 node, the second source IPv4 address is used as the source address of the fourth message, and the second destination IPv6 address is used as the destination address of the fourth message, so as to generate the fourth message; or when the source node of the third message is an IPv6 node and the destination node is an IPv4 node, the second source IPv6 address is used as the source address of the fourth message, and the second destination IPv4 address is used as the destination address of the fourth message, so as to generate the fourth message.
In some embodiments, determining, according to the second destination IPv6 address of the third packet, the second destination IPv4 address carried in the second destination IPv6 address includes: determining a third IPv6 prefix of the current node, and removing the third IPv6 prefix from the second destination IPv6 address to obtain a second destination IPv4 address; according to the second source IPv6 address of the third message, determining the second source IPv4 address carried in the second source IPv6 address includes: determining a fourth IPv6 prefix of a PE (Provider Edge) node corresponding to the second source IPv6 address; and removing the fourth IPv6 prefix from the second source IPv6 address to obtain the second source IPv4 address.
In some embodiments, generating the second message based on the first message and at least one of the first destination IPv6 address or the first source IPv6 address includes at least one of: according to at least one of the first destination IPv6 address or the first source IPv6 address, packaging the first message and generating a second message; or encapsulating the first message according to at least one of the first destination IPv6 address or the first source IPv6 address, determining SRH (Segment Routing Header, segment routing message header) according to at least one of the first destination IPv6 address or the first source IPv6 address, and generating the second message according to the SRH and the encapsulated first message.
In some embodiments, the method further comprises: sending first mapping information to other PE nodes in the network, wherein the first mapping information comprises a corresponding relation between an IPv6 prefix and an IPv4 address block; first mapping information from other PE nodes is received and the corresponding relation between the IPv6 prefix and the IPv4 address block of the corresponding PE node is stored.
In some embodiments, the method further comprises: and releasing second mapping information to the network, wherein the second mapping information comprises the corresponding relation between the routing information and the IPv6 prefix so as to be convenient for the IPv6 routing equipment in the network to store.
In some embodiments, the method further comprises: the routing node receives a second message; determining a first IPv6 prefix corresponding to the first destination IPv6 address according to the first destination IPv6 address in the second message; and removing the first IPv6 prefix from the first destination IPv6 address to obtain the first destination address.
In some embodiments, the method further comprises: the routing node receives a second message; the routing node determines a second IPv6 prefix corresponding to the first source IPv6 address according to the first source IPv6 address in the second message; and the routing node removes the second IPv6 prefix from the first source IPv6 address to acquire the first source address.
In some embodiments, the method further comprises: the routing node acquires second mapping information and stores the corresponding relation included in the second mapping information into a routing table; in case the routing node is an EBGP (External Border Gateway Protocol ) peer of the first domain and connects with an EBGP peer of the second domain using IPv6, the second mapping information is sent to the EBGP peer of the second domain.
According to an aspect of some embodiments of the present disclosure, there is provided a data transmission apparatus including: a first receiving unit configured to receive a first message from a source node; a first address determination unit configured to: under the condition that a first destination address of the first message is an IPv4 address, determining a first IPv6 prefix corresponding to the first destination address, and generating the first destination IPv6 address according to the first IPv6 prefix and the first destination address; under the condition that a first source address of a first message is an IPv4 address, determining a second IPv6 prefix corresponding to the first source address, and generating the first source IPv6 address according to the second IPv6 prefix and the first source address; and a first message generating unit configured to generate a second message according to the first message and at least one of the first destination IPv6 address or the first source IPv6 address, and forwarding the second message to the IPv6 network, wherein the second message is an IPv6 message.
In some embodiments, the apparatus further comprises: the second receiving unit is configured to acquire a third message from the network forwarding node, wherein the third message is an IPv6 message; a second address determination unit configured to: under the condition that the target node of the third message is an IPv4 node, determining a second destination IPv4 address carried in the second destination IPv6 address according to the second destination IPv6 address of the third message; under the condition that the source node of the third message is an IPv4 node, determining a second source IPv4 address carried in the second source IPv6 address according to the second source IPv6 address of the third message; the second message generating unit is configured to generate a fourth message according to at least one of the second destination IPv4 address or the second source IPv4 address and the third message and forward the fourth message to the IPv4 node, wherein the fourth message is the IPv4 message.
In some embodiments, the apparatus further comprises a mapping information processing unit configured to: sending first mapping information to other PE nodes in the network, wherein the first mapping information comprises a corresponding relation between an IPv6 prefix and an IPv4 address block; first mapping information from other PE nodes is received and the corresponding relation between the IPv6 prefix and the IPv4 address block of the corresponding PE node is stored.
According to an aspect of some embodiments of the present disclosure, there is provided a network device comprising: a memory; and a processor coupled to the memory, the processor configured to perform any of the methods as mentioned above based on instructions stored in the memory.
According to an aspect of some embodiments of the present disclosure, a non-transitory computer-readable storage medium is presented, having stored thereon computer program instructions which, when executed by a processor, implement the steps of any of the methods mentioned above.
According to an aspect of some embodiments of the present disclosure, there is provided a network system comprising: a provider edge PE node configured to perform any of the methods performed by the PE node hereinabove; and a router configured to transmit messages between the PE nodes.
In some embodiments, the routing node is configured to perform at least one of: receiving a second message transmitted between PE nodes, determining a first IPv6 prefix corresponding to a first destination IPv6 address according to the first destination IPv6 address in the second message, and removing the first IPv6 prefix from the first destination IPv6 address to obtain the first destination address; or receiving a second message transmitted between PE nodes, determining a second IPv6 prefix corresponding to the first source IPv6 address according to the first source IPv6 address in the second message, and removing the second IPv6 prefix from the first source IPv6 address to obtain the first source address.
In some embodiments, the PE node is further configured to issue second mapping information into the network, the second mapping information including a correspondence between routing information and IPv6 prefixes for storage by IPv6 routing devices in the network; the routing node is further configured to obtain second mapping information, store a correspondence included in the second mapping information to the routing table, and send the second mapping information to the EBGP peer of the second domain when the routing node is the EBGP peer of the first domain and is connected to the EBGP peer of the second domain using IPv 6.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure, illustrate and explain the present disclosure, and together with the description serve to explain the present disclosure. In the drawings:
fig. 1 is a flow chart of some embodiments of a data transmission method of the present disclosure.
Fig. 2 is a flow chart of other embodiments of the data transmission method of the present disclosure.
Fig. 3 is a flow chart of yet other embodiments of the data transmission method of the present disclosure.
Fig. 4A is a flow chart of still further embodiments of the data transmission method of the present disclosure.
Fig. 4B is a schematic diagram of some embodiments of a SRv message in a data transmission method of the present disclosure.
Fig. 5 is a schematic diagram of some embodiments of a data transmission device of the present disclosure.
Fig. 6 is a schematic diagram of some embodiments of a network device of the present disclosure.
Fig. 7A is a schematic diagram of further embodiments of a network device of the present disclosure.
Fig. 7B is a schematic diagram of yet other embodiments of a network device of the present disclosure.
Fig. 8A is a schematic diagram of some embodiments of a network system of the present disclosure.
Fig. 8B is a schematic diagram of some embodiments of a network system of the present disclosure.
Detailed Description
The technical scheme of the present disclosure is described in further detail below through the accompanying drawings and examples.
The inventor finds that after the IPv4 message is converted into the IPv6 message in the related art, the expression resolution of the address is reduced, and it is difficult to effectively distinguish the source host from the destination host. If security analysis and traffic scheduling based on user address level are to be performed in the middle of the path, the payload of the IPv6 data packet needs to be analyzed by adopting modes such as deep packet inspection. Deep packet inspection increases processor burden, reduces device processing speed, and is essentially non-viable in high-speed networks.
In view of the above problems, the present disclosure proposes a data transmission method, apparatus, network device, system, and storage medium, so that according to an IPv6 address in an outer layer of a packet, a corresponding IPv4 address can be directly and uniquely determined, thereby reducing data processing capacity of a host for resolution operation, and improving data processing efficiency.
A flowchart of some embodiments of the data transmission method of the present disclosure is shown in fig. 1, including steps 120-140. In some embodiments, the data transmission method shown in fig. 1 is performed by a PE device in the network, or a module built into the PE device.
In step 120, a first message is received from a source node, and in some embodiments, one of a source address and a destination address of the first message is an IPv4 address. In some embodiments, the first message is an IPv4 message, and both source and destination addresses are IPv4 addresses. In the case that it is determined that the first message needs to be converted into an IPv6 message, steps 131 and 132 are performed.
In step 131, if the first destination address of the first packet is an IPv4 address, a first IPv6 prefix corresponding to the first destination address is determined, and the first destination IPv6 address is generated according to the first IPv6 prefix and the first destination address.
In some embodiments, the corresponding relationship between the IPv6 prefix and the IPv4 address block of each PE device in the network may be pre-stored, and the IPv6 prefix corresponding to the first destination IPv4 address may be queried and used as the first IPv6 prefix, so that binary numbers of the first IPv6 prefix and the first destination address may be spliced or processed by performing a predetermined logic operation, to generate the first destination IPv6 address, thereby expanding the usage rate of the address space and supporting a larger network scale.
In some embodiments, the PE device has an IPv6 prefix, an IPv4 device connected to the PE device or implementing packet conversion by the PE device corresponds to the PE device, and an address block formed by addresses of the IPv4 devices corresponds to the IPv6 prefix of the PE device. In some embodiments, mapping information may be generated in advance by using a correspondence between an IPv6 prefix and an IPv4 address block of each PE device, and then transferred between PE devices, so that each PE device stores the mapping information. In some embodiments, the IPv4 address blocks are in one-to-one correspondence with IPv6 prefixes.
In step 132, if the first source address of the first message is an IPv4 address, a second IPv6 prefix corresponding to the first source address is determined, and the first source IPv6 address is generated according to the second IPv6 prefix and the first source address.
In some embodiments, the corresponding relationship between the IPv6 prefix and the IPv4 address block of each PE device in the network may be pre-stored, and the IPv6 prefix corresponding to the first source IPv4 address may be queried to be used as the second IPv6 prefix, so as to splice or perform a predetermined logic operation process on the binary numbers of the second IPv6 prefix and the first source address, to generate the first source IPv6 address.
In step 140, a second message is generated and forwarded to the IPv6 network according to at least one of the first destination IPv6 address or the first source IPv6 address and the first message, where the second message is an IPv6 message.
In some embodiments, if the first destination address and the first source address of the first packet are IPv4 addresses, the first source IPv6 address is used as a source address of the second packet, the first destination IPv6 address is used as a destination address of the second packet, and the first packet is encapsulated to generate the second packet.
In some embodiments, if the first destination address of the first message is an IPv4 address and the first source address is an IPv6 address, the first source address is used as a source address of the second message, the first destination IPv6 address is used as a destination address of the second message, and the first message is encapsulated to generate the second message.
In some embodiments, if the first destination address of the first message is an IPv6 address and the first source address is an IPv4 address, the first source IPv6 address is used as a source address of the second message, the first destination address is used as a destination address of the second message, and the first message is encapsulated to generate the second message.
By the method, after the IPv4 message is packaged into the IPv6 message, the IPv6 addresses of the outer layer contain the addresses of the source and the destination nodes, the IPv4 addresses of the source and the destination nodes can be uniquely determined without analyzing the payload, and the data processing efficiency of distinguishing the source and the destination hosts is improved.
In some embodiments, when a PE node receives a message from an IPv4 node that is destined for another IPv4 phase, a flowchart of further embodiments of the data transmission method of the present disclosure is shown in fig. 2.
In step 231, the IPv4 destination address of the received message is queried in the pre-stored information to obtain a corresponding IPv6 prefix.
In step 232, it is determined whether a matching destination IPv4 address mapping entry is found. If a corresponding mapping entry is found, step 233 is executed; otherwise, step 234 is performed.
In step 233, a predetermined process, such as a concatenation process, is performed on the IPv6 prefix in the found mapping entry and the destination IPv4 address to generate the destination IPv6 address, and then step 236 is performed.
In step 234, it is determined whether a default mapping rule is stored, including a default IPv6 prefix. If a default mapping rule exists, step 235 is performed. In some embodiments, if the default mapping rule is not available, the message encapsulation may be performed based on the manner in the related art.
In step 235, a predetermined process, such as a concatenation process, is performed with the destination IPv4 address according to the IPv6 prefix in the pre-stored default mapping rule, so as to generate the destination IPv6 address, and then step 236 is performed.
In step 236, a predetermined process, such as a concatenation process, is performed on the IPv6 prefix of the node and the source IPv4 address, so as to generate the source IPv6 address. Through the above operation, the source and destination IPv6 addresses of the IPv6 message are determined, and step 241 is further performed.
In step 241, it is determined whether or not a SRv transmission is to be performed. If the transmission SRv is executed, the step of inserting the SRH is required, and step 243 is executed; otherwise, step 242 is performed.
In step 242, the generated IPv6 message is forwarded to the IPv6 network.
In step 243, an SRH is generated, where the SID includes the source and destination IPv6 addresses generated in the above step, and the generated IPv6 message is inserted into the SRH message header to generate a SRv message, and forwarded to the IPv6 network.
Through the method in the embodiment shown above, the IPv4 data packet can be encapsulated after being converted based on address mapping, and the generated IPv6 address and the IPv4 address are mapped one by one, so that the method can be used for accurately identifying and distinguishing users, and a data base convenient to acquire and analyze is provided for monitoring and accurately analyzing the behaviors of the users; in addition, corresponding message processing is performed on the SRv network and other IPv6 networks, so that the application range is expanded.
In some embodiments, routers on the IPv6 network pre-store IPv6 prefixes of the PE nodes, and can determine the IPv6 prefix according to the destination IPv6 address of the received message, and determine the forwarding path according to the IPv6 prefix. In some embodiments, routers on an IPv6 network are provided with IPv6 prefix-based routing entries as a forwarding basis for packet transmissions. By the method, the IPv6 address generated according to the IPv6 prefix and the IPv4 address can be used as a data base for determining the forwarding path, and the forwarding accuracy and efficiency are improved.
In some embodiments, when a PE node receives a message from an IPv6 network, a flowchart of still other embodiments of the data transmission method of the present disclosure is shown in fig. 3, and in some embodiments, the message received by the PE node is generated based on the manner in the embodiments shown in fig. 1 or fig. 2 above.
In step 350, a third message from the forwarding node of the IPv6 network is acquired, and step 361 is performed. At least one of the source address and the destination address of the IPv6 message is generated by means of IPv6 prefix+IPv 4 address.
In some embodiments, it may be determined whether the node corresponding to the destination IPv6 address of the third packet is the node corresponding to the destination IPv6 address of the third packet, that is, whether the IPv6 prefix of the current PE node is the same as the IPv6 prefix in the destination IPv6 address, if the IPv6 prefix is the same as the IPv6 prefix, the third packet completes transmission in the IPv6 network, and needs to be restored to an IPv4 packet, and steps 361 and 362 are executed. In some embodiments, if the IPv6 prefix of the current PE node is different from the IPv6 prefix in the destination IPv6 address, the packet is not yet transmitted in the IPv6 network, or is forwarded to the wrong PE node, and the current PE node performs an operation of forwarding the third packet to other PE nodes in the IPv6 network, thereby improving the success rate and reliability of transmission; in some embodiments, the third packet may also be deleted, thereby reducing the processing burden of the current PE node.
In step 361, if the target node of the third message is an IPv4 node, the second destination IPv4 address carried in the second destination IPv6 address is determined according to the second destination IPv6 address of the third message.
In some embodiments, since the current node is the PE node corresponding to the destination node, the IPv6 prefix of the current PE node is the prefix of the destination IPv6 address. Firstly, determining the IPv6 prefix of the current node, removing the IPv6 prefix from the destination IPv6 address of the third message, and obtaining the destination IPv4 address of the third message. In some embodiments, if the manner of generating the IPv6 address is concatenation, the removing operation may be deleting the IPv6 prefix on the basis of the target IPv6 address to obtain the target IPv4 address; if the mode of generating the IPv6 address is the preset logical operation, the target IPv4 address is obtained by adopting a corresponding inverse operation mode.
In step 362, if the source node of the third message is an IPv4 node, the second source IPv4 address carried in the second source IPv6 address is determined according to the second source IPv6 address of the third message.
In some embodiments, the IPv6 prefix of the PE node corresponding to the source IPv6 address of the third packet may be determined first, and then the fourth IPv6 prefix is removed from the IPv6 address of the third packet, so as to obtain the second source IPv4 address. In some embodiments, the IPv6 prefix is of a preset length, and the fourth IPv6 prefix may be obtained by reading the prefix of the preset length. In some embodiments, if the manner of generating the IPv6 address is concatenation, the removing operation may be deleting the IPv6 prefix on the basis of the target IPv6 address to obtain the target IPv4 address; if the mode of generating the IPv6 address is the preset logical operation, the target IPv4 address is obtained by adopting a corresponding inverse operation mode.
In step 370, a fourth message is generated and forwarded to the IPv4 node according to the third message and at least one of the second destination IPv4 address or the second source IPv4 address, where the fourth message is an IPv4 message.
In some embodiments, when the destination node and the source node of the third packet are both IPv4 nodes, the second source IPv4 address is used as the source address of the fourth packet, and the second destination IPv4 address is used as the destination address of the fourth packet, and the fourth packet is generated by decapsulating.
In some embodiments, when the source node of the third packet is an IPv4 node and the destination node is an IPv6 node, the second source IPv4 address is used as the source address of the fourth packet, the second destination IPv6 address is used as the destination address of the fourth packet, and the fourth packet is generated by decapsulating.
In some embodiments, when the source node of the third packet is an IPv6 node and the destination node is an IPv4 node, the second source IPv6 address is used as the source address of the fourth packet, the second destination IPv4 address is used as the destination address of the fourth packet, and the fourth packet is generated by decapsulating.
Based on the mode in the embodiment, address reduction can be performed on the message which is transmitted in the IPv6 network, so that the target node can obtain the original message, and the reliability of transmission is improved.
In some embodiments, considering that the IPv6 network may be a SRv6 network, the packet may be a SRv6 packet, and the PE node obtains a SRv6 packet from the IPv6 network, and determines that the packet has completed transmission over the IPv6 network, a flowchart of still other embodiments of the data transmission method of the present disclosure is shown in fig. 4A.
In step 461, the basic header of the IPv6 message is checked.
In step 462, it is determined whether the Next-header field in the basic header is 43. The Next-header field is used to indicate which header protocol the Next header is. Next-header field = 43 identifies loose source routes, indicating which nodes the packet is forced through, step 464 needs to be performed. If the Next-header field is not equal to 43, then step 463 is performed.
In step 463, the IPv6 address (e.g., the source IPv6 address and the destination IPv6 address) is read from the basic header, and the IPv6 prefix is removed to obtain the corresponding IPv4 address, and the operation of forwarding the execution message to the terminal corresponding to the destination IPv4 address is performed. The specific removal method may be as shown in steps 361, 362.
In step 464, a Routing extension header is determined, looking at the Routing type field therein.
In step 465, it is determined whether the Routing type field is 4. If the Routing type field is 4, the current message is a SRv6 message, whose structure is shown in fig. 4B, step 466 is executed; otherwise, step 467 is performed.
In step 466, the SID list in the SRH of the message is extracted, the IPv6 address is extracted therefrom, as shown in fig. 4B, the SID [0] field is extracted, the required IPv6 address is recorded in the field, the IPv6 prefix is removed, the corresponding IPv4 address is obtained, and the operation of forwarding the message to the terminal corresponding to the destination IPv4 address is performed.
In step 467, the IPv6 address (e.g., the source IPv6 address and the destination IPv6 address) is read from the header, and the IPv6 prefix is removed to obtain the corresponding IPv4 address, and the operation of forwarding the message to the terminal corresponding to the destination IPv4 address is performed.
Based on the method in the embodiment shown above, the PE node can identify different IPv6 messages, obtain an IPv6 address in a matching manner, and perform an operation of restoring to an IPv4 address, and perform corresponding message processing with respect to the SRv network and other IPv6 networks, which is beneficial to expanding an application range and improving reliability of message transmission.
In some embodiments, information configuration work may be performed in advance between network nodes. In some embodiments, mapping information (referred to as first mapping information) between the IPv6 prefix and the IPv4 address block of each PE node may be configured in advance, and the PE node sends its own mapping information including the IPv6 prefix and the IPv4 address block to other PE nodes in the network. PE nodes receiving the first mapping information from other PE nodes store the corresponding relation between the IPv6 prefix and the IPv4 address block in the first mapping information. By the method, each PE node can determine the mapping relation between the IPv6 prefix and the IPv4 address block, thereby being convenient for generating the IPv6 address and recovering the IPv4 address.
In some embodiments, first mapping information of all or part of PE nodes may be configured at one or more PE nodes, and the node configured with the mapping information transfers each first mapping information between PE nodes, and the PE node that receives the first mapping information stores a correspondence between an IPv6 prefix and an IPv4 address block in the first mapping information. By the method, mapping information configuration can be carried out through one or more PE nodes in a concentrated mode, and operation difficulty is reduced.
In some embodiments, in addition to pre-configuring mapping information between IPv6 prefixes and IPv4 address blocks, a correspondence between each IPv6 node (e.g., PE node) in the network and the IPv6 prefix may be pre-configured. In some embodiments, mapping information (referred to as second mapping information) including a correspondence between routing information and IPv6 prefixes may be issued to a network, and an IPv6 routing device in the network stores the correspondence in the second mapping information, and generates a routing entry, so that forwarding of the packet is implemented based on the routing entry after the packet is received. By the method, the routing nodes in the network can have the capability of routing according to the IPv6 prefix, so that the implementation difficulty and cost are reduced, and the implementation efficiency is improved.
In some embodiments, if an EBGP peer (domain to which it belongs, referred to as a first domain) in a BGP (Border Gateway Protocol ) network receives mapping information, it may further determine whether the domain to which it is connected is an IPv6 network domain. If the domain (called a second domain) connected with the EBGP peer is an IPv6 network domain, the current EBGP peer sends second mapping information to the EBGP peer of the second domain, so that interaction of the mapping information among the domains is realized, the capability of carrying out IPv6 message transmission based on the mode in the disclosure is improved, the transmission distance and range are expanded, and the transmission efficiency is improved.
In some embodiments, after a routing node in the network receives a message, under the condition of message source/destination address analysis, according to a source/destination IPv6 address at the outermost layer of the message and pre-stored IPv6 prefix information, an IPv6 prefix included in the source/destination IPv6 address is determined, and then a corresponding prefix is removed from the source/destination IPv6 address, so that a uniquely determined source/destination IPv4 address is obtained. By the method, the data processing difficulty of message analysis by the routing node can be reduced, and the processing efficiency is improved.
A schematic diagram of some embodiments of a data transmission device 510 of the present disclosure is shown in fig. 5.
The first receiving unit 512 is capable of receiving a first message from a source node, and in some embodiments, one of a source address and a destination address of the first message is an IPv4 address. In some embodiments, the first message is an IPv4 message, and both source and destination addresses are IPv4 addresses.
The first address determining unit 513 may determine a first IPv6 prefix corresponding to the first destination address if the first destination address of the first packet is an IPv4 address, generate the first destination IPv6 address according to the first IPv6 prefix and the first destination address, and may determine a second IPv6 prefix corresponding to the first source address if the first source address of the first packet is an IPv4 address, and generate the first source IPv6 address according to the second IPv6 prefix and the first source address. In some embodiments, the first address determining unit 513 may query the IPv6 prefix corresponding to the IPv4 address based on the corresponding relationship between the IPv6 prefix and the IPv4 address block of each PE device in the pre-stored network, and further splice or perform a predetermined logic operation process on the binary numbers of the IPv6 prefix and the IPv4 address, to generate the first destination IPv6 address.
The first message generating unit 514 can generate a second message according to at least one of the first destination IPv6 address or the first source IPv6 address and the first message, and forward the second message to the IPv6 network. In some embodiments, if the first destination address and the first source address of the first packet are IPv4 addresses, the first source IPv6 address is used as a source address of the second packet, and the first destination IPv6 address is used as a destination address of the second packet, so as to generate the second packet. In some embodiments, if the first destination address of the first packet is an IPv4 address and the first source address is an IPv6 address, the first source address is used as a source address of the second packet, and the first destination IPv6 address is used as a destination address of the second packet, so as to generate the second packet. In some embodiments, if the first destination address of the first packet is an IPv6 address and the first source address is an IPv4 address, the first source IPv6 address is used as a source address of the second packet, and the first destination address is used as a destination address of the second packet, so as to generate the second packet.
The device can enable the address of the outer layer of the IPv6 message to contain the addresses of the source node and the destination node, can uniquely determine the IPv4 addresses of the source node and the destination node without analyzing the payload, and improves the data processing efficiency of distinguishing the source host from the destination host.
In some embodiments, as shown in fig. 5, the data transmission apparatus 510 further includes a second receiving unit 515, a second address determining unit 516, and a second message generating unit 517.
The second receiving unit 515 can obtain a third message from the network forwarding node, where at least one of a source address and a destination address of the third message is generated by means of an IPv6 prefix+ipv 4 address.
The second address determining unit 516 can determine, when the target node of the third packet is an IPv4 node, a second destination IPv4 address carried in the second destination IPv6 address according to the second destination IPv6 address of the third packet; and under the condition that the source node of the third message is an IPv4 node, determining a second source IPv4 address carried in the second source IPv6 address according to the second source IPv6 address of the third message.
The second message generating unit 517 can generate a fourth message according to at least one of the second destination IPv4 address or the second source IPv4 address and the third message, and forward the fourth message to the IPv4 node, where the fourth message is an IPv4 message.
The device can restore the address of the message transmitted in the IPv6 network, ensure that the target node can obtain the original message, and improve the reliability of transmission.
In some embodiments, as shown in fig. 5, the data transmission apparatus further includes a mapping information processing unit 511 capable of sending first mapping information to other PE nodes in the network, where the first mapping information includes a correspondence between an IPv6 prefix and an IPv4 address block. The mapping information processing unit 511 is also capable of receiving first mapping information from other PE nodes and storing correspondence between IPv6 prefixes and IPv4 address blocks of the corresponding PE nodes.
The device can enable each PE node in the network to determine the mapping relation between the IPv6 prefix and the IPv4 address block, thereby facilitating the generation of the IPv6 address and the restoration of the IPv4 address.
In some embodiments, the mapping information processing unit 511 may also configure the correspondence between the routing information and the IPv6 prefix in advance, and further issue mapping information (referred to as second mapping information) including the correspondence between the IPv6 node and the IPv6 prefix in the network to the network. In some embodiments, the corresponding relationship between the routing information and the IPv6 prefix may be generated according to the original IPv6 address and the corresponding routing information of the PE node, and the IPv6 prefix of the PE node. By the method, IPv6 routing equipment in the network can store the corresponding relation in the second mapping information, a routing entry is generated, and then routing nodes in the network have the capability of routing according to IPv6 prefixes, so that the implementation difficulty and cost are reduced, and the implementation efficiency is improved.
The present disclosure also proposes a network device, which in some embodiments may comprise the data transmission apparatus of the present disclosure, and in some embodiments may be a PE node, as shown in fig. 6. In some embodiments, the network device 61 includes a structure of a dual stack router in the related art, such as an IPv4 routing engine, a routing table, and a packet forwarding unit for implementing a routing forwarding function, and an IPv6 routing engine, a routing table, and a packet forwarding unit. In addition, the network device 61 further includes an ADPT (rule-based IPv4-IPv6 translation function) entity 610, which may be a hardware structure including the data transmission apparatus of the present disclosure, including a translation policy configuration unit, an ADPT control panel unit, and an ADPT packet translation unit, and further includes two storage devices, a policy database and a mapping rule database. In the figure, PD represents a policy database of an ADPT control plane, and MD represents a mapping rule database. The policy database stores policy information of IPv4 address blocks and IPv6 prefix mapping rules, the mapping rule database stores IPv4 prefix and IPv6 synthesized prefix mapping rules, and the mapping relation of data is in one-to-one correspondence.
In some embodiments, the functions of the network device 61 may be divided into aspects of an interface function, a communication protocol function, a packet forwarding function, a routing information maintenance function, a management control function, a security function, and the like, respectively. The basic functions are as follows:
1) And supporting the configuration of conversion strategies between the IPv4 address and the IPv6 address and providing IPv4-IPv6 address mapping rules of the whole network.
2) The EBGP is supported to exchange topology information with other autonomous domains, the information comprises information such as network IPv4 address block information, corresponding IPv6 synthesized prefix and the like, the mutual mapping of IPv4 routing information and IPv6 routing information can be realized according to the configuration requirement of a conversion strategy through BGP support, and the reachability information of the IPv4 address block and the synthesized prefix information or encapsulation information are interacted with an ADPT control plane on other routers.
3) The router is connected to two or more data packet switched networks, and for each connected network, the router should implement the functions required by the network, and support translation or encapsulation between IPv4 messages and IPv6 messages.
Under the above equipment framework, for an IPv4 message sent from an IPv4 application, an ADPT entity of an ingress PE performs 1:1 mapping from IPv4 to IPv6 addresses, then generates a new IPv6 header by using the generated IPv6 address, and performs BE encapsulation on the IPv4 message. For a packet with SRv processing requirements, the ingress PE uses SRv information provided by the control plane to generate SRv a SRH extension header of 6, which contains a list of SIDs, at which point the next is a node in the IPv 6-only network, and thus will use its SID as the destination of the IPv6 packet, while placing the IPv6 destination address generated by the ADPT in the list of SIDs.
Under the condition that the network core is an IPv6 single stack, the network equipment can perform address conversion and encapsulation on IPv4 data from a client side, meanwhile, the IPv6 address has the expression capability of the original IPv4 address, so that the functions of analyzing the data packet of the user address, dispatching the flow and the like based on the outer layer address of the encapsulated data packet are supported, the problems that in the related art, for example, in a SRv BE mode, the expression resolution of the address is reduced, the source host and the destination host cannot BE effectively distinguished by the outer layer IPv6 address are solved, the burden of a processor of the network equipment is reduced, and the processing speed of the data packet is ensured.
A schematic diagram of an embodiment of a network device of the present disclosure is shown in fig. 7A. In some embodiments, the network devices may be one or more, each including a memory 710 and a processor 720. Wherein: the memory 71 may be a magnetic disk, flash memory or any other non-volatile storage medium. The memory is used to store instructions in the corresponding embodiments of the data transmission methods described above. Processor 720, coupled to memory 710, may be implemented as one or more integrated circuits, such as a microprocessor or microcontroller. The processor 720 is configured to execute the instruction stored in the memory, so that the amount of information contained in the IPv6 address after conversion can be increased, and the data processing efficiency of the source host and the destination host for resolution can be improved.
In one embodiment, as also shown in fig. 7B, the network device 700 includes a memory 701 and a processor 702. The processor 702 is coupled to the memory 701 through a BUS 703. The network device 700 may also be coupled to external storage 705 via a storage interface 704 for invoking external data, and to a network or another computer system (not shown) via a network interface 706. And will not be described in detail herein.
In this embodiment, the data processing efficiency of the source host and the destination host can be improved by storing the data instruction in the memory and processing the instruction by the processor.
In another embodiment, a computer readable storage medium has stored thereon computer program instructions which, when executed by a processor, implement the steps of the method in the corresponding embodiments of the data transmission method. It will be apparent to those skilled in the art that embodiments of the present disclosure may be provided as a method, apparatus, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable non-transitory storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
A schematic diagram of some embodiments of a network system 80 of the present disclosure is shown in fig. 8A. Network system 80 includes a number of PE nodes, no less than 2, PE nodes 811, 812 being shown as examples, each PE node being capable of performing the methods performed by the PE node or the data transfer device as described above. The network system 80 further includes one or more routers 82, where the routers 82 are IPv6 routers capable of transmitting messages between PE nodes.
The network system can enable the address of the outer layer to contain the addresses of the source node and the destination node after the IPv4 message is packaged into the IPv6 message, can uniquely determine the IPv4 addresses of the source node and the destination node without analyzing the payload, and improves the data processing efficiency of distinguishing the source host from the destination host.
In some embodiments, the router 82 can determine, after receiving the message, an IPv6 prefix included in the source/destination IPv6 address according to the source/destination IPv6 address of the outermost layer of the message and pre-stored IPv6 prefix information under the condition that there is source/destination address analysis of the message, and further remove the corresponding prefix from the source/destination IPv6 address, to obtain a uniquely determined source/destination IPv4 address. The network system can reduce the data processing difficulty of the message analysis by the routing node and improve the processing efficiency.
In some embodiments, information configuration work may be performed in advance between network nodes of the network system 80. In some embodiments, mapping information (referred to as second mapping information) including a correspondence between the routing node and the IPv6 prefix may be issued to the network by the PE node or other nodes in the network (such as a network management node), and the router 82 stores the correspondence in the second mapping information, and generates a routing entry, so that after receiving the packet, forwarding the packet based on the routing entry. The network system can enable the routing nodes in the network to have the capability of routing according to the IPv6 prefix, thereby reducing the implementation difficulty and cost and improving the implementation efficiency.
In some embodiments, if the router 82 is an EBGP peer (domain to which it belongs is referred to as a first domain) in the BGP network, it may further determine whether the domain to which the router 82 is connected is an IPv6 network domain after receiving the mapping information. If the domain (called the second domain) connected by the router 82 is an IPv6 network domain, the second mapping information is sent to an EBGP peer of the second domain, so as to implement interaction of the mapping information between domains, improve the capability of transmitting IPv6 messages based on the manner in the present disclosure, expand the transmission distance and range, and improve the transmission efficiency.
In some embodiments, the network system 80 may operate in the manner described in the following embodiments.
(1) PE issues routing information corresponding to IPv6 prefix (Pref 6) of PE node to whole network based on BGP4+ protocol
For example, PE node 811 and PE node 812 respectively configure prefixes Pref6 for synthesizing IPv6 addresses, and issue routes corresponding to these Pref6 prefixes through BGP4+ in an IPv6 network. And after receiving the routing information, the BGP peer router stores the IPv6 route corresponding to the Pref6 in an IPv6 routing table.
(2) BGP4+ protocol-based extended exchange address prefix mapping rule between PE nodes
The method has the advantages that the method transmits the reachability of the IPv4 address block, the address prefix mapping rule and the forwarding type supported by the device through the extended BGP4+ protocol or other control protocols.
The mapping rule may be expressed as { IPv4 address block): pref6}, identifying the location of the IPv4 address block at the edge of the IPv6 network. For a specific PE node, such as PE node 811, to properly transmit an IPv4 traffic message to a network egress, it is necessary to obtain in advance the address prefix mapping rules corresponding to all IPv4 address blocks. The destination PE node 812 transmits its own discovered address prefix mapping rule IPv4 address block Pref6 to other PE nodes, including PE node 811, by BGP4+ extension. PE node 811 resides in a local mapping rules database MD upon receipt. For this purpose, the exchange address prefix mapping rule { IPv4 address block: pref6} between PE devices within and between domains can be extended by BGP4+ protocol. In some embodiments, the forwarding_type field is included in the message delivered by the present extension to identify the Forwarding type supported by the present device, as follows:
Forwarding_type:
0: encapsulation and translation
1: packaging
2 translation
For BGP routers that do not recognize the above extended attributes, the above attributes may be ignored directly and BGP routing messages processed according to conventional BGP mechanisms.
After receiving the synthesized IPv6 route notification advertised by the IBGP peer, the receiving end PE:
1) Extracting an address prefix mapping rule table item and a forwarding type, and storing the address prefix mapping rule table item and the forwarding type in an IPv4-IPv6 address prefix mapping rule database MD in the PE;
2) The synthetic IPv6 route or the original IPv4 route is advertised according to BGP peer address types. If the counterpart is an IPv4 peer, the synthesized IPv6 route is restored to an IPv4 route, and the IPv4 peer of other autonomous systems is announced to the EBGP in a mode in related technology.
For ingress PE node 811, the same mapping rule for an IPv4 address block may be received from multiple egress PE nodes, i.e., there are multiple network paths to reach the address block, and the ingress PE device may select the optimal network path for use by itself and advertise only the optimal route to the neighbors.
(3) The edge PE device performs rule-based encapsulation and forwarding on the IPv4 message
1) When the IPv4 message sent by the user reaches the edge of the IPv6 network, the ADPT module of the ingress PE converts the source and destination IPv4 addresses into IPv6 source and destination addresses according to the local IPv4-IPv6 mapping rule. And determining a mode of adopting a data plane according to forwarding_type of PE corresponding to the IPv4 destination address stored in the MD:
0 packaging or translating
1: only packaging can be used
2, only translation can be used
And converting the IPv4 message into the IPv6 message according to the judging result.
2) Inserting SRH and forwarding for IPv6 message after conversion
If the message is to be processed SRv, the SRH header is inserted according to SRv6 control plane requirement, which contains SID list, and the message is forwarded after the destination IPv6 address of IPv6 header is adjusted accordingly.
(4) Forwarding equipment, such as routers, for resolving and scheduling messages during data forwarding
In the transmission process of the IPv6 message, if an intermediate network device or other legal system needs to check the source or destination IPv4 address before the message is transformed, for the source address, directly checking the source IPv6 address, and according to the length of the IPv6 address mapping prefix, finding the position of the source IPv4 address in the source IPv6 address and extracting the source IPv4 address; and for the destination address, directly checking the SID where the destination IPv6 address in the SRH is located or the destination IPv6 address of the data header, and finding the position of the destination IPv4 address and extracting the destination IPv4 address according to the length of the IPv6 address mapping prefix.
In such a network system, on one hand, the IPv4 service data can be transmitted in an IPv6 single stack network in an encapsulation manner, and on the other hand, the original IPv4 address information can be directly extracted from the IPv6 header, and actions such as user action analysis or traffic scheduling can be performed based on the extracted IPv4 address. Compared with the BE mode based on SRv, the method does not need to enter the payload layer of the IPv6 message for analysis, so that the complexity of data packet processing is greatly reduced, and the processing efficiency of the data packet is also improved.
A schematic diagram of some embodiments of the network system of the present disclosure is shown in fig. 8B. The network system can be divided into two layers, a control plane and a forwarding plane.
The control plane can exchange Pref6 routing and address prefix mapping rules.
The PE1 and the PE2 are respectively configured with prefixes Pref6 for synthesizing IPv6 addresses, and routes corresponding to the Pref6 prefixes are issued through BGP4+ in an IPv6 network.
PE2 transmits the mapping relation between IPv4 address block and Pref6 of PE (global mapping rule) (IPv 4 address block: pref 6) to other PE (PE) including PE1 through BGP4+ extension, wherein Pref6 is IPv6 prefix of PE node associated with IPv4 address block.
And 3, storing the received PE1 in a local mapping rule database.
The forwarding plane is capable of packet encapsulation and forwarding.
1. When the host H1 accesses the host H2, an IPv4 message having a source address 200.1.1.1 and a destination address 200.2.1.1 is first generated.
2. When an IPv4 message arrives at the PE1, PE1 translates the source IPv4 address into an IPv6 source address by using a local mapping prefix 2001:db8:1:48:48, translates the destination address of the IPv4 message into an IPv6 destination address by using a mapping prefix 2001:db8:2:48 of PE2 or a default IPv6 mapping prefix, and encapsulates the original IPv4 message into an IPv6 message. If a route for the intermediate node is to be specified, the SRH extension header is entered sideways.
And 3, enabling the IPv6 message to pass through the IPv6 network to reach the position of the exit PE2, analyzing the message by the PE2, removing the IPv6 header to restore the IPv6 message into the IPv4 message if the destination IPv6 address prefix is the same as the mapping prefix of the equipment, and sending the IPv4 message to the IPv4 network where the destination host H2 is located.
4. If the address analysis of the message is needed at the R1, directly checking the source address and the destination address of the header of the IPv6 message, and respectively removing the mapping prefix to obtain the original IPv4 address.
When the IPv4 message is packaged into the IPv6 message, the network system can keep the information of the original IPv4 message source and destination address in the source and destination addresses of the outer IPv6 header, and meanwhile, the 1:1 mapping is adopted, so that the expression resolution of the original IPv4 address is kept in the outer IPv6 address, and the routing and the exit PE of the message in the network are marked by the mapping prefix of the destination address, so that forwarding based on IPv6 can be realized. The network device or the system can analyze the user behavior or perform flow scheduling based on the original IPv4 address without entering the payload layer, so that the burden of a processor of the network device is reduced, and the processing speed of the message is ensured.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Thus far, the present disclosure has been described in detail. In order to avoid obscuring the concepts of the present disclosure, some details known in the art are not described. How to implement the solutions disclosed herein will be fully apparent to those skilled in the art from the above description.
The methods and apparatus of the present disclosure may be implemented in a number of ways. For example, the methods and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, firmware. The above-described sequence of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the sequence specifically described above unless specifically stated otherwise. Furthermore, in some embodiments, the present disclosure may also be implemented as programs recorded in a recording medium, the programs including machine-readable instructions for implementing the methods according to the present disclosure. Thus, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
Finally, it should be noted that: the above embodiments are merely for illustrating the technical solution of the present disclosure and are not limiting thereof; although the present disclosure has been described in detail with reference to preferred embodiments, those of ordinary skill in the art will appreciate that: modifications may be made to the specific embodiments of the disclosure or equivalents may be substituted for part of the technical features; without departing from the spirit of the technical solutions of the present disclosure, it should be covered in the scope of the technical solutions claimed in the present disclosure.

Claims (20)

1. A data transmission method, comprising:
receiving a first message from a source node;
determining a first IPv6 prefix corresponding to the first destination address under the condition that the first destination address of the first message is an IPv4 address, and generating a first destination IPv6 address according to the first IPv6 prefix and the first destination address;
determining a second IPv6 prefix corresponding to the first source address under the condition that the first source address of the first message is an IPv4 address, and generating a first source IPv6 address according to the second IPv6 prefix and the first source address;
generating a second message according to at least one of the first destination IPv6 address or the first source IPv6 address and the first message, and forwarding the second message to an IPv6 network, wherein the second message is an IPv6 message.
2. The method of claim 1, wherein the generating a second message from the first message and at least one of the first destination IPv6 address or the first source IPv6 address comprises:
under the condition that a first destination address and a first source address of the first message are IPv4 addresses, the first source IPv6 address is used as a source address of the second message, and the first destination IPv6 address is used as a destination address of the second message to generate the second message;
when the first destination address of the first message is an IPv4 address and the first source address is an IPv6 address, the first source address is used as the source address of the second message, and the first destination IPv6 address is used as the destination address of the second message, so that the second message is generated; or (b)
And under the condition that the first destination address of the first message is an IPv6 address and the first source address is an IPv4 address, taking the first source IPv6 address as the source address of the second message, taking the first destination address as the destination address of the second message, and generating the second message.
3. The method of claim 1, wherein,
The determining the first IPv6 prefix corresponding to the destination address includes: inquiring a first IPv6 prefix corresponding to the destination address according to a pre-stored corresponding relation between an IPv4 address block and the IPv6 prefix, wherein the IPv4 address block corresponds to the IPv6 prefix one by one;
the determining the second IPv6 prefix corresponding to the source address includes: and inquiring a second IPv6 prefix corresponding to the source address according to the pre-stored corresponding relation between the IPv4 address block and the IPv6 prefix.
4. The method of claim 1, further comprising:
acquiring a third message from a network forwarding node, wherein the third message is an IPv6 message;
when the target node of the third message is an IPv4 node, determining a second destination IPv4 address carried in the second destination IPv6 address according to the second destination IPv6 address of the third message;
when the source node of the third message is an IPv4 node, determining a second source IPv4 address carried in the second source IPv6 address according to the second source IPv6 address of the third message;
generating a fourth message according to at least one of the second destination IPv4 address or the second source IPv4 address and the third message, and forwarding the fourth message to an IPv4 node, wherein the fourth message is an IPv4 message.
5. The method of claim 4, wherein the generating a fourth message from the third message and at least one of the second destination IPv4 address or the second source IPv4 address comprises:
when the target node and the source node of the third message are both IPv4 nodes, the second source IPv4 address is used as the source address of the fourth message, and the second destination IPv4 address is used as the destination address of the fourth message, so that the fourth message is generated;
when the source node of the third message is an IPv4 node and the destination node is an IPv6 node, the second source IPv4 address is used as the source address of the fourth message, and the second destination IPv6 address is used as the destination address of the fourth message, so that the fourth message is generated; or (b)
And when the source node of the third message is an IPv6 node and the destination node is an IPv4 node, the second source IPv6 address is used as the source address of the fourth message, and the second destination IPv4 address is used as the destination address of the fourth message, so that the fourth message is generated.
6. The method of claim 4, wherein,
according to the second destination IPv6 address of the third message, determining the second destination IPv4 address carried in the second destination IPv6 address includes: determining a third IPv6 prefix of the current node, and removing the third IPv6 prefix from the second destination IPv6 address to obtain the second destination IPv4 address;
The determining, according to the second source IPv6 address of the third packet, the second source IPv4 address carried in the second source IPv6 address includes: determining a fourth IPv6 prefix of the provider edge PE node corresponding to the second source IPv6 address; and removing the fourth IPv6 prefix from the second source IPv6 address to obtain the second source IPv4 address.
7. The method of claim 1, wherein the generating a second message from the first message and at least one of the first destination IPv6 address or the first source IPv6 address comprises at least one of:
encapsulating the first message according to at least one of the first destination IPv6 address or the first source IPv6 address to generate a second message; or encapsulating the first message according to at least one of the first destination IPv6 address or the first source IPv6 address, determining a segment routing message header SRH according to at least one of the first destination IPv6 address or the first source IPv6 address, and generating the second message according to the SRH and the encapsulated first message.
8. The method of claim 1, further comprising:
sending first mapping information to other PE nodes in the network, wherein the first mapping information comprises a corresponding relation between an IPv6 prefix and an IPv4 address block;
First mapping information from other PE nodes is received and the corresponding relation between the IPv6 prefix and the IPv4 address block of the corresponding PE node is stored.
9. The method of claim 8, further comprising:
and releasing second mapping information to the network, wherein the second mapping information comprises a corresponding relation between the routing information and the IPv6 prefix so as to be convenient for the IPv6 routing equipment in the network to store.
10. The method of any one of claims 1-9, further comprising:
the routing node receives the second message;
determining a first IPv6 prefix corresponding to a first destination IPv6 address according to the first destination IPv6 address in the second message;
and removing the first IPv6 prefix from the first destination IPv6 address to obtain the first destination address.
11. The method of claim 1, further comprising:
the routing node receives the second message;
the routing node determines a second IPv6 prefix corresponding to a first source IPv6 address according to the first source IPv6 address in the second message;
and the routing node removes the second IPv6 prefix from the first source IPv6 address to acquire the first source address.
12. The method of claim 9, further comprising:
The routing node acquires the second mapping information and stores the corresponding relation included in the second mapping information into a routing table;
in case the routing node is an outside edge gateway protocol, EBGP, peer of the first domain, and is connected to an EBGP peer of the second domain using IPv6,
and sending the second mapping information to an EBGP peer of the second domain.
13. A data transmission apparatus comprising:
a first receiving unit configured to receive a first message from a source node;
a first address determination unit configured to:
determining a first IPv6 prefix corresponding to the first destination address under the condition that the first destination address of the first message is an IPv4 address, and generating a first destination IPv6 address according to the first IPv6 prefix and the first destination address;
determining a second IPv6 prefix corresponding to the first source address under the condition that the first source address of the first message is an IPv4 address, and generating a first source IPv6 address according to the second IPv6 prefix and the first source address;
and
the first message generating unit is configured to generate a second message according to at least one of the first destination IPv6 address or the first source IPv6 address and the first message, and forward the second message to an IPv6 network, wherein the second message is an IPv6 message.
14. The apparatus of claim 13, further comprising:
the second receiving unit is configured to acquire a third message from the network forwarding node, wherein the third message is an IPv6 message;
a second address determination unit configured to:
when the target node of the third message is an IPv4 node, determining a second destination IPv4 address carried in the second destination IPv6 address according to the second destination IPv6 address of the third message;
when the source node of the third message is an IPv4 node, determining a second source IPv4 address carried in the second source IPv6 address according to the second source IPv6 address of the third message;
and the second message generating unit is configured to generate a fourth message and forward the fourth message to the IPv4 node according to at least one of the second destination IPv4 address or the second source IPv4 address and the third message, wherein the fourth message is an IPv4 message.
15. The apparatus of claim 13, further comprising a mapping information processing unit configured to:
sending first mapping information to other PE nodes in the network, wherein the first mapping information comprises a corresponding relation between an IPv6 prefix and an IPv4 address block;
First mapping information from other PE nodes is received and the corresponding relation between the IPv6 prefix and the IPv4 address block of the corresponding PE node is stored.
16. A network device, comprising:
a memory; and
a processor coupled to the memory, the processor configured to perform the method of any of claims 1-12 based on instructions stored in the memory.
17. A non-transitory computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method of any of claims 1 to 12.
18. A network system, comprising:
at least two provider edge PE nodes configured to perform the method of any of claims 1-9; and
and the router is configured to transmit messages among the PE nodes.
19. The system of claim 18, wherein the routing node is configured to perform at least one of:
receiving a second message transmitted between PE nodes, determining a first IPv6 prefix corresponding to a first destination IPv6 address according to the first destination IPv6 address in the second message, and removing the first IPv6 prefix from the first destination IPv6 address to obtain the first destination address; or (b)
And receiving a second message transmitted between PE nodes, determining a second IPv6 prefix corresponding to a first source IPv6 address according to the first source IPv6 address in the second message, and removing the second IPv6 prefix from the first source IPv6 address to obtain the first source address.
20. The system of claim 18, wherein the PE node is further configured to publish second mapping information into the network, the second mapping information including a correspondence between routing information and IPv6 prefixes for storage by IPv6 routing devices in the network;
the routing node is further configured to obtain the second mapping information, store a correspondence included in the second mapping information to a routing table, and send the second mapping information to an EBGP peer of a second domain using IPv6 when the routing node is an external edge gateway protocol EBGP peer of the second domain and is connected to the EBGP peer of the first domain.
CN202211372014.7A 2022-11-03 2022-11-03 Data transmission method, device, network equipment, system and storage medium Pending CN116389340A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211372014.7A CN116389340A (en) 2022-11-03 2022-11-03 Data transmission method, device, network equipment, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211372014.7A CN116389340A (en) 2022-11-03 2022-11-03 Data transmission method, device, network equipment, system and storage medium

Publications (1)

Publication Number Publication Date
CN116389340A true CN116389340A (en) 2023-07-04

Family

ID=86964302

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211372014.7A Pending CN116389340A (en) 2022-11-03 2022-11-03 Data transmission method, device, network equipment, system and storage medium

Country Status (1)

Country Link
CN (1) CN116389340A (en)

Similar Documents

Publication Publication Date Title
CN111935014B (en) Message forwarding method and device based on SRv6 network, storage medium and electronic equipment
US20220078114A1 (en) Method and Apparatus for Providing Service for Traffic Flow
CN111682996B (en) Method for forwarding message in network, network node and network system
US11431633B2 (en) Label forwarding entry generation method and apparatus, packet sending method and apparatus, and device
US7307991B2 (en) MPLS network system
US7852774B2 (en) User datagram protocol traceroute probe extension
US8619773B2 (en) Service request packet including an exterior network protocol attribute
JP7432095B2 (en) How to forward packets in SRv6 service function chain, SFF, and SF devices
CN111510386B (en) Method and device for processing message
JPWO2012124035A1 (en) Communication apparatus and communication method
CN112511444A (en) Multicast traffic transmission method, device, communication node and storage medium
CN107948150B (en) Message forwarding method and device
US9317431B2 (en) Address generator, address generation method, and encapsulation-decapsulation device
CN112751769B (en) Method, device and system for sending message
CN109412927B (en) Multi-VPN data transmission method and device and network equipment
CN113726653B (en) Message processing method and device
CN110166361B (en) Message forwarding method and device
CN116389340A (en) Data transmission method, device, network equipment, system and storage medium
CN110391984B (en) Message forwarding method and device
CN113132230A (en) Method, device and computer storage medium for sending message
CN110418218B (en) Message processing method and device and FCF switching equipment
CN116996439B (en) SDN-based efficient routing addressing method and system
CN115277530B (en) Data processing method, device, equipment and medium based on SRv protocol
JP6977690B2 (en) Transfer device and transfer method
WO2023016550A1 (en) Route sending method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination