CN116455815A - Data transmission method, device, computer equipment and storage medium - Google Patents

Data transmission method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN116455815A
CN116455815A CN202310461518.4A CN202310461518A CN116455815A CN 116455815 A CN116455815 A CN 116455815A CN 202310461518 A CN202310461518 A CN 202310461518A CN 116455815 A CN116455815 A CN 116455815A
Authority
CN
China
Prior art keywords
data packet
node
target node
data
forwarding
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
CN202310461518.4A
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.)
Guangzhou Lizhi Network Technology Co ltd
Original Assignee
Guangzhou Lizhi Network Technology Co 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 Guangzhou Lizhi Network Technology Co ltd filed Critical Guangzhou Lizhi Network Technology Co ltd
Priority to CN202310461518.4A priority Critical patent/CN116455815A/en
Publication of CN116455815A publication Critical patent/CN116455815A/en
Pending legal-status Critical Current

Links

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/74Address processing for 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/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
    • 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/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/251Translation of Internet protocol [IP] addresses between different IP versions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/659Internet protocol version 6 [IPv6] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/686Types of network addresses using dual-stack hosts, e.g. in Internet protocol version 4 [IPv4]/Internet protocol version 6 [IPv6] networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a data transmission method, a device, a computer device and a storage medium, comprising: the first target node receives a forwarding request of a data packet; if the data packet belongs to an IPv6 data packet, acquiring an IPv6 address, IPv4 data information, an IPv6 address of a second target node and node codes of all nodes on a transmission path of the data packet in the forwarding request; and if the node code of the second target node is 0, forwarding the IPv4 data information to the second target node. If the node code of the second target node is not 0, inquiring the IPv6 address of the second target node according to the code; modifying the node code of the IPv6 address of the second target node to 0, and forwarding the IPv4 data information to the second target node. By the mechanism, the problem that excessive invalid load is added to the data packet when the segmented forwarding is performed by the SR technology is solved.

Description

Data transmission method, device, computer equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computer networks, in particular to a data transmission method, a data transmission device, computer equipment and a storage medium.
Background
Segment Routing (SR) technology in packet forwarding is a source Routing technology in which nodes (routers, hosts, or devices) select a path and direct packets along the path through a network, implemented by inserting a Segment list (Segment list) with order in the data header to instruct the nodes that receive the packets how to forward and process the packets. Path segments are also called "segments" and are distinguished by Segment identification (SID, segment Identifier).
In the prior art, forwarding a data packet using segment routing results in a data packet having an increased header when segmented, so that the transmission data is increased by a minimum of 24 bytes from the original data, and each segment node is increased by 16 bytes. When the request packet payload is small, the header of the segmented data packet becomes a significant payload.
Therefore, a mechanism needs to be established to solve the problem of avoiding excessive invalid load increase of the data packet when the segmented forwarding is performed by using the SR technology.
Disclosure of Invention
The embodiment of the invention provides a data transmission method, a data transmission device, computer equipment and a storage medium, which are used for solving the problem that excessive invalid load is added to a data packet when the segmented forwarding of an SR technology is utilized.
In a first aspect, an embodiment of the present invention provides a data transmission method, where the method includes:
the first target node receives a forwarding request of a data packet;
if the data packet belongs to an IPv6 data packet, acquiring transmission configuration information of the data packet in the forwarding request; the transmission configuration information comprises an IPv6 address of a data packet, IPv4 data information, an IPv6 address of a second target node and node codes of all nodes on a transmission path of the data packet; the second target node is the next-order target node of the first target node on the transmission path;
if the node code of the second target node is 0, forwarding the IPv4 data information to the second target node;
if the node code of the second target node is not 0, inquiring the IPv6 address of the second target node according to the node code;
modifying the node code of the IPv6 address of the second target node to 0, and forwarding the IPv4 data information to the second target node.
In a second aspect, an embodiment of the present invention further provides a data transmission apparatus, where the apparatus includes:
the request receiving module is used for receiving a forwarding request of the data packet by the first target node;
a transmission configuration information acquisition module, configured to acquire transmission configuration information of the data packet in the forwarding request if the data packet belongs to an IPv6 data packet; the transmission configuration information comprises an IPv6 address of a data packet, IPv4 data information, an IPv6 address of a second target node and node codes of all nodes on a transmission path of the data packet; the second target node is the next-order target node of the first target node on the transmission path;
the first forwarding module is configured to forward the IPv4 data information to the second target node if the node code of the second target node is 0;
the query module is used for querying the IPv6 address of the second target node according to the node code if the node code of the second target node is not 0;
and the second forwarding module is used for modifying the node code of the IPv6 address of the second target node to be 0 and forwarding the IPv4 data information to the second target node.
In a third aspect, an embodiment of the present invention further provides a computer apparatus, including:
one or more processors;
a memory for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the data transmission method as claimed in any one of the first aspects.
In a fourth aspect, embodiments of the present invention also provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a data transmission method according to any of the first aspects.
In this embodiment, after receiving a forwarding request of a data packet, a current transmission node determines whether the data packet belongs to an IPv6 data packet, and if yes, acquires transmission configuration information of the data packet in the forwarding request; the transmission configuration information comprises an IPv6 address of a data packet, IPv4 data information, an IPv6 address of a second target node and node codes of all nodes on a transmission path of the data packet; and if the node code of the second target node is 0, forwarding the IPv4 data information to the second target node. If the node code of the second target node is not 0, inquiring the IPv6 address of the second target node according to the node code of the second target node; IPv6 of the second target node the node code of the address is modified to 0, and forwarding the IPv4 data information of the data packet to the second target node. The method realizes the purpose of encoding by taking the last 64 bits in the IPv6 address as a routing path and processing the data packet preferentially by a rapid path forwarding program, and solves the problem that the data packet increases excessive invalid load when the segmented forwarding of the SR technology is utilized.
Drawings
Fig. 1 is a flowchart of a data transmission method according to a first embodiment of the present invention;
FIG. 2 is a diagram illustrating an example of an IPv6 address coding format according to one embodiment of the present invention;
fig. 3 is a diagram illustrating a change example of the content of a data packet in the forwarding process according to the first embodiment of the present invention;
FIG. 4 is a flowchart illustrating an exemplary process flow of a data node according to an embodiment of the present invention;
FIG. 5 is a diagram of a matching table of a number path information and a routing node information according to a first embodiment of the present invention;
fig. 6 is a schematic structural diagram of a data transmission device according to a second embodiment of the present invention;
fig. 7 is a schematic structural diagram of a computer device according to a third embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of a data transmission method according to a first embodiment of the present invention, where the method may be performed by a data transmission device, and the data transmission device may be implemented by software and/or hardware, and may be configured in a computer device, for example, a server, a workstation, a personal computer, etc., and specifically includes the following steps:
step 101, a first target node receives a forwarding request of a data packet.
In the embodiment of the invention, when data is forwarded through a source routing mechanism in the data transmission process, the data packet is forwarded from one node to another node, and the forwarding process is that the data packet carries a forwarding request sent by the last node and is sent to the next node, so when a network node receives the data packet to be forwarded, the data packet forwarding request is received together with the data packet, and information such as forwarding configuration of the data packet can be obtained through the forwarding request.
In practical application, the forwarding request includes information such as a segmented forwarding path in a source routing mechanism, where the source routing mechanism is also called a segmented routing mechanism SR (Segment Routing), and the SR can control the forwarding path of the message through the start node. The SR cuts the forwarding path into different segments, the initial node inserts a plurality of path segments into the message, and the intermediate node forwards the message according to the path segment information carried by the message. Path segments are also referred to as "segments" and are distinguished by Segment identification SID (Segment Identifier).
102, if the data packet belongs to an IPv6 data packet, acquiring transmission configuration information of the data packet in the forwarding request; the transmission configuration information comprises an IPv6 address of a data packet, IPv4 data information, an IPv6 address of a second target node and node codes of all nodes on a transmission path of the data packet; the second target node is the next-order target node of the first target node on the transmission path.
In the embodiment of the invention, after receiving the segment forwarding request of the data packet, whether the data packet belongs to the IPv6 data packet is judged according to the IP address coding format of the data packet. If the data packet to be transmitted belongs to the IPv6 data packet, further analyzing the transmission configuration information in the forwarding request in the data packet.
Specifically, if the packet belongs to an IPv6 packet, it is indicated that the packet is a fast data path XDP (eXpress Data Path) program installed by each transmission node, and the packet transmission information is preconfigured. As shown in fig. 2, the coding format of the IPv6 address of the data packet includes an IPv6 header, a 64-bit host IP address, and an EAFA authentication code, which indicates that the data packet is an SP data packet generated by combining an XDP mechanism and IPv6, and further includes a path number of the data packet for further transmission, such as 1234, 5678, and 9999 shown in the last column in fig. 2.
Therefore, in practical application, the transmission configuration information is analyzed by the fast data path XDP (eXpress Data Path) program, so that the IPv6 address of the data packet, the IPv4 data information, and the next transmission node information, that is, the IPv6 address of the second transmission node and the node codes of the nodes on the transmission path of the data packet, can be obtained.
Wherein the XDP program is installed in each path node.
Step 103, if the node code of the second target node is 0, forwarding the IPv4 data information to the second target node.
In the embodiment of the invention, when the node code of the next node to be transmitted is 0 through XDP analysis, the next node is the destination node of the current transmission, and the IPv4 data information contained in the data packet is directly forwarded to the next node.
Step 104, if the node code of the second target node is not 0, inquiring the IPv6 address of the second target node according to the node code.
In the embodiment of the invention, when the node code of the next node to be transmitted is not 0 through XDP analysis, the IPv6 address of the node is inquired according to the node code.
Step 105, modifying the node code of the IPv6 address of the second target node to 0, and forwarding the IPv4 data information to the second target node.
In the embodiment of the invention, after the IP address of the target node is acquired, the IPv6 destination address in the data packet is directly modified through the XDP, and the IPv6 address is directly transmitted through the XDP program after the IPv6 address is modified.
In practical application, if the current address is fd 00:0002:EAFA:0300:0:0:03, reading the IP address of 03 as fd 00:0003:64, and generating a new destination address of fd 00:0003:EAFA:0000:0:0:resend because the later numbers are all 0 and 03 is the destination.
An example of the packet forwarding process shown in fig. 3 illustrates a change in the content of a packet during the packet forwarding process:
firstly, when the node 1 receives a packet of a request party and judges that the source IP and the destination IP meet the traffic management rule (pre-configuration or dynamic issuing), finding out the Ipv6 address of the next node and the number of other nodes needing to pass through in reaching the destination address according to the traffic path of the rule, combining the number and the Ipv6 address, wherein the address (fd 00:0002:EAFA: 0300:0:0:0:0:0) is the address of the next node, (EAFA) identifies that the data packet belongs to the method to generate the data packet, (0300) identifies that the number of the next node is 03, the node after the 03 is 00, namely no later node, and removing the IPv6 header at the 03 node and sending the IPv4 packet to the destination.
Wherein, assuming that the forwarding path has 4 nodes in total, the destination address of the forwarding path changes as follows:
1.fd00:0002::EAFA:0304:
2.fd00:0003::EAFA:0400:
3.fd00:0004::EAFA:0000:
preferably, in another embodiment of the present invention, further comprising:
and A1, if the data packet does not belong to the IPv6 data packet, judging whether the flow forwarding rule of the data packet is a preset flow rule or not.
Specifically, as shown in fig. 4, after receiving the packet of the requesting party, the current node determines that the data packet does not belong to the IPv6 data packet, and further determines whether the data packet meets the traffic management rule according to the routing path information table of the data packet.
In practical applications, the traffic management rule generally refers to a preconfigured rule or a dynamic issuing rule, and is of course not limited to the preconfigured rule or the dynamic issuing rule.
Preferably, in another embodiment of the present invention, step A1 may further include:
and a substep A11, obtaining a routing path information table of the data packet.
Specifically, a routing path information table in a transmission request of a packet is acquired.
And a sub-step A12, if the routing path information table contains the source IP address and the target IP address of the data packet and forwarding path node information, the data packet accords with a preset rule or a dynamic issuing rule.
Specifically, if the data packet belongs to a preconfigured or dynamically issued data packet, the routing path information table of the data packet includes at least forwarding path information and path forwarding node address information of the data packet, as shown in fig. 5, the preconfigured or dynamically configured routing path information matching table of the XDP program has relevant data configuration, and it can be seen that the routing path information table includes a source IP address and a destination IP address of the data packet, where forwarding paths 1- >2- >3- >, that is, path information of forwarding nodes, and further includes an IP address of each path node, which can determine that the data packet transmission mechanism is a segmented transmission mechanism, and accords with a preconfiguration rule or a dynamically issued rule.
And A2, if the flow forwarding rule of the data packet is a preset flow rule, acquiring IPv4 data information of the data packet, an IPv6 address of a second target node and node codes of all nodes on a transmission path of the data packet.
Specifically, if it is confirmed that the data packet accords with the traffic forwarding rule according to the path information table of the data packet, IPv4 data information of the data packet is further obtained, and the next node, that is, the IPv6 address of the second target node, and node codes of each path node in the path information matching table, that is, path labels as shown in fig. 5.
A3, combining the IPv6 address of the second target node and the node codes of all nodes on the transmission path of the data packet into an IPv6 header of the data packet;
specifically, the obtained Ipv6 address of the second target node, i.e., the next node, is combined with the node codes of the other forwarding paths to generate a new Ipv6 header.
Step A4, synthesizing the IPv6 header and the IPv4 data information to generate a data packet to be forwarded;
specifically, the newly generated IPv6 header and IPv4 information are synthesized into a new data packet as a data packet to be forwarded.
And step A5, the data packet to be forwarded is sent to the second target node.
Specifically, the data packet to be forwarded is sent to the next node, namely the second target node.
Preferably, in another embodiment of the present invention, further comprising:
step B1, if the data packet belongs to an IPv6 data packet, acquiring a quick data path segmented transmission verification code of the data packet;
specifically, after determining that the received data packet is an IPv6 data packet, it is further determined whether the data packet contains a fast data path segment transmission verification code. As shown in fig. 2, in the request information of the data packet, the address coding format of the data packet belongs to the IPv6 address coding format, and the EAFA verification code of the second column, namely the fast data path segment transmission verification code, is included therein, which indicates that the data packet conforms to the data packet of the IPv6 and XDP combination design.
And step B2, if the rapid data path segmented transmission verification code of the data packet is successfully obtained, entering a step of obtaining the transmission configuration information of the data packet in the forwarding request.
Specifically, if the data packet includes the EAFA identifying code, the transmission mode of the data packet refers to the design concept of SRv, that is, the mode of using the Ipv6 destination address and XDP combination design to replace the Srv6 header is used to indicate that the transmission configuration information of the data packet includes the transmission node path information, so the process directly proceeds to step 102.
Preferably, in another embodiment of the present invention, further comprising:
and step C1, if the acquisition of the rapid data path segment transmission verification code of the data packet fails, the data packet is returned to the sender.
Specifically, if the data packet does not include the EAFA authentication code, the data packet does not conform to the transmission mechanism designed by combining the Ipv6 destination address and the XDP, so that the data packet is directly returned to the sender.
The XDP packet processing flow of each node will now be described in detail by fig. 4:
firstly, when a node receives a data packet, judging whether the data packet is an IPv6 packet through an IP address contained in a forwarding request of the data packet, if so, continuously judging whether the data packet contains an EAFA mark, wherein the SP data packet represents that the data packet is generated by combining an XDP mechanism and IPv6, and a forwarding path node is 4, namely, a next header=4, if so, acquiring a node number of a next forwarding node from a routing path information table, and if not, returning the data packet to a sender.
And secondly, if the number of the next node is 0, indicating that the next node is a destination node, directly stripping the IPv6 header of the data packet, and directly forwarding the IPv4 data information of the data packet to the next node through an XDP program.
If the number of the next node is not 0, searching the IPv6 address of the next node according to the number of the node, and directly modifying the IPv6 destination address in the data packet through XDP. If the current address is fd 00:0002:EAFA:0300:0:0, the number after EAFA is 03, the IP address of the read 03 is fd 00:0003:64, and the number after EAFA is 0, the 03 is the destination, so that a new destination address fd 00:0003:EAFA:0000:0:0 is generated and is sent out.
In another flow branch of fig. 4, if the data packet is not an IPv6 data packet, determining whether the traffic forwarding rule of the data packet is a preset traffic rule, if not, stopping forwarding, and if yes, acquiring IPv4 data information of the data packet, an IPv6 address of a next node, and a node number of another node, combining to generate a new data packet, and directly forwarding through an XDP procedure.
In this embodiment, a forwarding request of a data packet is received at a first target node; acquiring an IPv6 address, IPv4 data information, an IPv6 address of a second target node and node codes of all nodes on a transmission path of the data packet in the forwarding request; and if the node code of the second target node is 0, forwarding the IPv4 data information to the second target node. If the node code of the second target node is not 0, inquiring the IPv6 address of the second target node according to the node code, modifying the node code of the IPv6 address of the second target node to 0, and forwarding the IPv4 data information to the second target node. By utilizing the combined design of the Ipv6 address coding format and the XDP program data transfer mechanism, the method replaces the mode of introducing Srv6 head data in segmented transmission, and the aim of effectively avoiding the increase of the invalid load of the data packet due to the increase of the transmission path node information of the data packet in segmented transmission is realized.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
Example two
Fig. 6 is a block diagram of a data transmission device according to a second embodiment of the present invention, where the device may specifically include the following modules:
a request receiving module 201, configured to receive a forwarding request of a data packet by a first target node;
a transmission configuration information obtaining module 202, configured to obtain transmission configuration information of the data packet in the forwarding request if the data packet belongs to an IPv6 data packet; the transmission configuration information comprises an IPv6 address of a data packet, IPv4 data information, an IPv6 address of a second target node and node codes of all nodes on a transmission path of the data packet; the second target node is the next-order target node of the first target node on the transmission path;
a first forwarding module 203, configured to forward the IPv4 data information to the second target node if the node code of the second target node is 0.
A query module 204, configured to query an IPv6 address of the second target node according to the node code if the node code of the second target node is not 0;
a second forwarding module 205, configured to modify the node code of the IPv6 address of the second target node to 0, and forward the IPv4 data information to the second target node.
Preferably, in a further embodiment of the present invention, further comprising;
the IPv6 data packet judging module is used for judging whether the flow forwarding rule of the data packet is a preset flow rule or not if the data packet does not belong to the IPv6 data packet;
preferably, in another embodiment of the present invention, the IPv6 data packet determining module may be further configured to:
acquiring a routing path information table of the data packet;
if the routing path information table contains the source IP address and the target IP address of the data packet and forwarding path node information, the data packet accords with a preset rule or a dynamic issuing rule.
The flow forwarding information acquisition module is used for acquiring IPv4 data information of the data packet, an IPv6 address of a second target node and node codes of all nodes on a transmission path of the data packet if the flow forwarding rule of the data packet is a preset flow rule;
a forwarding address modification module, configured to combine an IPv6 address of the second target node and a node code of each node on a transmission path of the data packet into an IPv6 header of the data packet;
the data packet to be forwarded generation module is used for synthesizing the IPv6 header and the IPv4 data information to generate a data packet to be forwarded;
and the third forwarding module is used for sending the data packet to be forwarded to the second target node.
Preferably, in a further embodiment of the present invention, further comprising:
the rapid data path segmented transmission verification code acquisition module is used for acquiring the rapid data path segmented transmission verification code of the data packet if the data packet belongs to the IPv6 data packet;
and the transfer module is used for entering the transmission configuration information acquisition module if the quick data path segment transmission verification code of the data packet is successfully acquired.
Preferably, in a further embodiment of the present invention, further comprising:
and the data packet returning module is used for returning the data packet to the sender if the quick data path segment transmission verification code of the data packet fails to be acquired.
The data transmission device provided by the embodiment of the invention can execute the data transmission method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example III
Fig. 7 is a schematic structural diagram of a computer device according to a third embodiment of the present invention. Fig. 7 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in fig. 6 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 7, the computer device 12 is in the form of a general purpose computing device. Components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents 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, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 7, commonly referred to as a "hard disk drive"). Although not shown in fig. 7, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, memory 28, such program modules 42 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. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the computer device 12, and/or any devices (e.g., network card, modem, etc.) that enable the computer device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Moreover, computer device 12 may also 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 20. As shown, network adapter 20 communicates with other modules of computer device 12 via bus 18. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with computer device 12, 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.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, implementing the data transmission method provided by the embodiment of the present invention.
Example IV
The fourth embodiment of the present invention further provides a computer readable storage medium, on which a computer program is stored, where the computer program when executed by a processor implements each process of the data transmission method described above, and the same technical effects can be achieved, and for avoiding repetition, a detailed description is omitted herein.
The computer readable storage medium may include, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: 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, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (10)

1. A method of data transmission, the method comprising:
the first target node receives a forwarding request of a data packet;
if the data packet belongs to an IPv6 data packet, acquiring transmission configuration information of the data packet in the forwarding request; the transmission configuration information comprises an IPv6 address of a data packet, IPv4 data information, an IPv6 address of a second target node and node codes of all nodes on a transmission path of the data packet; the second target node is the next-order target node of the first target node on the transmission path;
if the node code of the second target node is 0, forwarding the IPv4 data information to the second target node;
if the node code of the second target node is not 0, inquiring the IPv6 address of the second target node according to the node code;
modifying the node code of the IPv6 address of the second target node to 0, and forwarding the IPv4 data information to the second target node.
2. The method of claim 1, wherein prior to the obtaining the transmission configuration information of the data packet in the forwarding request, further comprising:
if the data packet does not belong to the IPv6 data packet, judging whether the flow forwarding rule of the data packet is a preset flow rule or not;
if the flow forwarding rule of the data packet is a preset flow rule, acquiring IPv4 data information of the data packet, an IPv6 address of a second target node and node codes of all nodes on a transmission path of the data packet;
combining the IPv6 address of the second target node and the node codes of all nodes on the transmission path of the data packet into an IPv6 header of the data packet;
synthesizing the IPv6 header and the IPv4 data information to generate a data packet to be forwarded;
and sending the data packet to be forwarded to the second target node.
3. The method according to claim 2, wherein the preset traffic rule at least includes a preset rule or a dynamic issuing rule, and the determining whether the traffic forwarding rule of the data packet is the preset traffic rule includes:
acquiring a routing path information table of the data packet;
if the routing path information table contains the source IP address and the target IP address of the data packet and forwarding path node information, the data packet accords with a preset rule or a dynamic issuing rule.
4. The method of claim 1, wherein prior to the obtaining the transmission configuration information of the data packet in the forwarding request, further comprising:
if the data packet belongs to an IPv6 data packet, acquiring a quick data path segmented transmission verification code of the data packet;
if the quick data path segmented transmission verification code of the data packet is successfully obtained, the step of obtaining the transmission configuration information of the data packet in the forwarding request is entered.
5. The method as recited in claim 4, further comprising:
if the quick data path segment transmission verification code of the data packet fails to be obtained, the data packet is returned to the sender.
6. A data transmission apparatus, the apparatus comprising:
the request receiving module is used for receiving a forwarding request of the data packet by the first target node;
a transmission configuration information acquisition module, configured to acquire transmission configuration information of the data packet in the forwarding request if the data packet belongs to an IPv6 data packet; the transmission configuration information comprises an IPv6 address of a data packet, IPv4 data information, an IPv6 address of a second target node and node codes of all nodes on a transmission path of the data packet; the second target node is the next-order target node of the first target node on the transmission path;
the first forwarding module is configured to forward the IPv4 data information to the second target node if the node code of the second target node is 0;
the query module is used for querying the IPv6 address of the second target node according to the node code if the node code of the second target node is not 0;
and the second forwarding module is used for modifying the node code of the IPv6 address of the second target node to be 0 and forwarding the IPv4 data information to the second target node.
7. The apparatus as recited in claim 6, further comprising:
the IPv6 data packet judging module is used for judging whether the flow forwarding rule of the data packet is a preset flow rule or not if the data packet does not belong to the IPv6 data packet;
the flow forwarding information acquisition module is used for acquiring IPv4 data information of the data packet, an IPv6 address of a second target node and node codes of all nodes on a transmission path of the data packet if the flow forwarding rule of the data packet is a preset flow rule;
a forwarding address modification module, configured to combine an IPv6 address of the second target node and a node code of each node on a transmission path of the data packet into an IPv6 header of the data packet;
the data packet to be forwarded generation module is used for synthesizing the IPv6 header and the IPv4 data information to generate a data packet to be forwarded;
and the third forwarding module is used for sending the data packet to be forwarded to the second target node.
8. The apparatus of claim 7, wherein the IPv6 data packet judgment module is further configured to:
acquiring a routing path information table of the data packet;
if the routing path information table contains the source IP address and the target IP address of the data packet and forwarding path node information, the data packet accords with a preset rule or a dynamic issuing rule.
9. A computer device, the computer device comprising:
one or more processors;
a memory for storing one or more programs,
when executed by the one or more processors, causes the one or more processors to implement the data transmission method of any of claims 1-5.
10. A computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the data transmission method according to any one of claims 1-5.
CN202310461518.4A 2023-04-25 2023-04-25 Data transmission method, device, computer equipment and storage medium Pending CN116455815A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310461518.4A CN116455815A (en) 2023-04-25 2023-04-25 Data transmission method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310461518.4A CN116455815A (en) 2023-04-25 2023-04-25 Data transmission method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116455815A true CN116455815A (en) 2023-07-18

Family

ID=87131924

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310461518.4A Pending CN116455815A (en) 2023-04-25 2023-04-25 Data transmission method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116455815A (en)

Similar Documents

Publication Publication Date Title
US7107360B1 (en) Network address translation in a gateway
US8073936B2 (en) Providing support for responding to location protocol queries within a network node
CN112738791B (en) User information correlation backfill method, device, equipment and medium based on 5G core network
US20150188802A1 (en) System for supporting multi-tenant based on private ip address in virtual private cloud networks and operating method thereof
US10735373B2 (en) Communications over multiple protocol interfaces in a computing environment
CN107580079B (en) Message transmission method and device
US10659361B2 (en) Packet processing
CN111490908B (en) Network speed measurement method, device, equipment, medium and speed measurement system
CN112887229B (en) Session information synchronization method and device
US6950873B2 (en) Apparatus and method for port sharing a plurality of server processes
CN111049947B (en) Message forwarding method and device, electronic equipment and storage medium
CN112866433A (en) Message load balancing processing method and device and computer equipment
US20160028628A1 (en) Communication system, control apparatus, address allocation method, and program
CN113992382B (en) Service data processing method and device, electronic equipment and storage medium
CN109286684B (en) Communication connection processing method and device, proxy server and storage medium
CN114244842A (en) Security resource scheduling method and device, electronic equipment and storage medium
JP2016503267A (en) Method and processing device for handling network protocol addresses
CN116455815A (en) Data transmission method, device, computer equipment and storage medium
US20090285207A1 (en) System and method for routing packets using tags
TW201211785A (en) Addressing a workload partition
CN115225606A (en) Domain name access method and system of cross-network protocol of container cloud platform
CN111314497B (en) Method and system for simultaneously supporting multiple NAT types to take effect
CN107547684A (en) A kind of IPv6 address distribution methods and device
CN114157633A (en) Message forwarding method and device
CN111865751A (en) Centralized gateway deployment method and device, centralized gateway and electronic equipment

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