CN116582484A - Data transmission method, device, medium and system of switch - Google Patents

Data transmission method, device, medium and system of switch Download PDF

Info

Publication number
CN116582484A
CN116582484A CN202310416012.1A CN202310416012A CN116582484A CN 116582484 A CN116582484 A CN 116582484A CN 202310416012 A CN202310416012 A CN 202310416012A CN 116582484 A CN116582484 A CN 116582484A
Authority
CN
China
Prior art keywords
switch
data
data packet
target data
packet
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
CN202310416012.1A
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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN202310416012.1A priority Critical patent/CN116582484A/en
Publication of CN116582484A publication Critical patent/CN116582484A/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/24Multipath
    • H04L45/243Multipath using M+N parallel active paths
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

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

Abstract

The application discloses a data transmission method, a device, a medium and a system of a switch, which relate to the field of computers, wherein a converter is arranged between a switch and a data transmitting end server and a data receiving end server which are connected with two ends of the switch, the converters are connected with the switch through a plurality of network paths, the data transmitting end server transmits a target data packet into the converter for encapsulation, the encapsulated target data packet is transmitted to the switch through at least two network paths, the converter receives the encapsulated target data packet transmitted by the switch through at least two network paths, and finally the encapsulated target data packet is reassembled and transmitted to the data receiving end server, and the arrangement of the network paths solves the problem that the speed is too slow caused by only one network path for data transmission when the switch is connected with the server at present, and can continue to use other network paths for data transmission when a certain network path fails.

Description

Data transmission method, device, medium and system of switch
Technical Field
The present application relates to the field of computers, and in particular, to a method, an apparatus, a medium, and a system for data transmission of a switch.
Background
The switch is a network device for forwarding electric (optical) signals, which can provide an independent electric signal path for any two network nodes accessed to the switch to complete data transmission between the two network nodes, and the data transmission between different network nodes needs to follow a certain rule, and at present, the data transmission adopts a more mode of TCP (Transmission Control Protocol ) transmission. For example, the servers accessing the switch can perform TCP transmission through the switch, wherein the data transmitting end server transmits data, the data receiving end server receives data, and the data transmitting end server can perform data transmission to the data receiving end server through the switch. However, when the current switch adopts a TCP transmission mode, the data transmission speed is slow, and when the connection line fails, it is difficult to continue the data transmission.
Disclosure of Invention
The application aims to provide a data transmission method, a device, a medium and a system of a switch, wherein a converter is arranged between a switch and a data transmitting end server and a data receiving end server which are connected with two ends of the switch, the converters are connected with the switch through a plurality of network paths, the data transmitting end server firstly transmits a target data packet into the converter for encapsulation, the encapsulated target data packet can be transmitted to the switch through at least two network paths, the converter receives the encapsulated target data packet transmitted by the switch through at least two network paths, and finally the encapsulated target data packet is reassembled and then is transmitted to the data receiving end server, the problem that the speed is slow due to the fact that when the switch is connected with the data transmitting end server and the data receiving end server one by one, the data transmission is only carried out through one network path is solved through the arrangement of the plurality of network paths, and when a certain network path fails, the data transmission can be carried out continuously through other network paths.
In order to solve the above technical problems, the present application provides a data transmission method of a switch, wherein a switch is arranged between the switch and a data transmitting end server and a data receiving end server connected to both ends of the switch, and each switch is connected to the switch through a plurality of network paths, and the method is applied to the switch, and comprises:
when receiving a target data packet sent by the data sending end server, encapsulating the target data packet;
sending the encapsulated target data packet to the switch through at least two network paths;
when receiving the encapsulated target data packets sent by the switch through at least two network paths, the switch reassembles the encapsulated target data packets and sends the reassembled target data packets to the data receiving end server.
Preferably, before the target data packet is encapsulated, the method further includes:
acquiring the size of the target data packet;
judging whether the size of the target data packet is larger than the size of a preset data packet or not;
if yes, entering the step of packaging the target data packet.
Preferably, the method further comprises:
and if the size of the target data packet is not larger than the preset data packet size, sending the target data packet to the switch through one network path.
Preferably, encapsulating the target data packet includes:
encapsulating the target data packet into N sub data packets, wherein the sizes of the N sub data packets are not larger than the preset data packet size, and N is an integer larger than 1;
sending the encapsulated target data packet to the switch through at least two network paths, including:
transmitting the N sub-data packets to the switch through at least two network paths according to a preset sequence;
and after reassembling the encapsulated target data packet, sending the reassembled target data packet to the data receiving end server, wherein the method comprises the following steps:
and reassembling the N sub-data packets according to a preset sequence and then sending the reassembled sub-data packets to the data receiving end server.
Preferably, encapsulating the target data packet includes:
packaging the target data packet into N sub data packets, wherein the sizes of the N sub data packets are not larger than the preset data packet, the preset data bits corresponding to the N sub data packets respectively comprise information representing the positions of the sub data packets in the target data packet, and N is an integer larger than 1;
and after reassembling the encapsulated target data packet, sending the reassembled target data packet to the data receiving end server, wherein the method comprises the following steps:
and the N sub-data packets are reassembled according to the information representing the positions of the sub-data packets in the target data packet on the preset data bits of the N sub-data packets and then sent to the data receiving end server.
Preferably, sending the encapsulated target data packet to the switch through at least two network paths includes:
and sending the encapsulated target data packet to the switch through at least two network paths by utilizing a multipath routing standard.
Preferably, after the encapsulated target data packet is reassembled and sent to the data receiving end server, the method further includes:
judging whether an instruction for retransmitting the target data packet sent by the data receiving end server is received or not;
if yes, entering the step of packaging the target data packet.
In order to solve the above technical problems, the present application further provides a converter, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the data transmission method of the switch when executing the computer program.
To solve the above technical problem, the present application further provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the data transmission method of the switch.
In order to solve the technical problem, the application also provides a data transmission system of the switch, which comprises the switch and the converter, wherein the converter is connected with the switch through a plurality of network paths, and the data transmission end server and the data receiving end server which are connected with the converter are also included.
The application provides a data transmission method, a device, a medium and a system of a switch, wherein converters are arranged between a switch and a data transmitting end server and a data receiving end server which are connected with two ends of the switch, the converters are connected with the switch through a plurality of network paths, the data transmitting end server firstly transmits a target data packet into the converters for encapsulation, the encapsulated target data packet can be transmitted to a switch through at least two network paths, the converters receive the encapsulated target data packet transmitted by the switch through at least two network paths, and finally the encapsulated target data packet is reassembled and then transmitted to the data receiving end server, the problem that the speed is too slow due to data transmission through only one network path when the switch is connected with the data transmitting end server and the data receiving end server one by one at present is solved, and when a certain network path fails, the data transmission can be continuously carried out through other network paths.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required in the prior art and the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a data transmission method of a switch provided by the application;
fig. 2 is a flow chart of another data transmission method of the switch provided by the application;
fig. 3 is a schematic diagram of data transmission speed before TCP transmission optimization according to the present application;
fig. 4 is a schematic diagram of a data transmission speed after TCP transmission optimization according to the present application;
fig. 5 is a schematic structural diagram of a converter according to the present application;
fig. 6 is a schematic structural diagram of a data transmission system of a switch according to the present application;
fig. 7 is a schematic structural diagram of a data transmission system of another switch according to the present application.
Detailed Description
The core of the present application is to provide a data transmission method, device, medium and system for a switch 53, by setting converters between the switch 53 and a data transmitting end server 51 and a data receiving end server 55 connected to both ends of the switch 53, and connecting each converter to the switch 53 through multiple network paths, the data transmitting end server 51 firstly transmits a target data packet to the converter for encapsulation, the encapsulated target data packet can be transmitted to the switch 53 through at least two network paths, the converter receives the encapsulated target data packet transmitted by the switch 53 through at least two network paths, and finally reassembles the encapsulated target data packet and transmits the reassembled target data packet to the data receiving end server 55, the setting of multiple network paths solves the problem that the speed is too slow caused by data transmission through only one network path when the switch 53 is connected to the data transmitting end server 51 and the data receiving end server 55 one to one, and can continue data transmission through other network paths when a network path fails.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Network transmission refers to a process of communicating according to a network transmission protocol by using a series of lines (optical fibers, twisted pair wires, etc.) through adjustment and variation of a circuit. Where network transmission requires a medium, i.e. a physical path between a sender and a receiver in the network, it has a certain influence on the data communication of the network. Common transmission media are: twisted pair, coaxial cable, fiber optic, wireless transmission media. Network protocols are some specifications for the delivery and management of information in a network, including the internet. As with human-to-human communication, computer-to-computer communication is required to follow certain rules, known as network protocols. Network protocols are typically divided into several layers, and communication parties can only communicate with each other between common layers.
Currently, three layers of network architecture are commonly adopted in the network, and the three layers of network architecture adopts a hierarchical model design, namely, a complex network design is divided into a plurality of layers, and each layer focuses on certain specific functions, so that a complex big problem can be changed into a plurality of simple small problems. The network of the three-layer network architecture design has three layers: the core layer (the high speed switching backbone of the network), the convergence layer (providing policy-based connectivity), the access layer (the access of workstations to the network).
TCP transmission is the primary means of reliable data transmission in IP networks, serving the Internet well since birth, and is still the best protocol for most communications. However, it is not suitable for delay-sensitive processing, the best round trip delay of TCP transmission at the data center is about 25us, and the outlier due to congestion (or link failure) waiting can be 50ms, even a few seconds, the main reason for these delays being the retransmission mechanism after the TCP transmission has lost packets. In addition, TCP transmission is a one-to-one connection, and even if the problem of delay is solved, it is difficult to rapidly connect again in case of failure.
The application provides a data transmission method of a switch 53, wherein switches are arranged between the switch 53 and a data transmitting end server 51 and a data receiving end server 55 connected with two ends of the switch 53, each switch is connected with the switch 53 through a plurality of network paths, the method is applied to the switch, please refer to fig. 1, fig. 1 is a flow diagram of the data transmission method of the switch 53, the method comprises:
s11: when receiving the target data packet sent by the data sending end server 51, encapsulating the target data packet;
s12: the encapsulated target data packet is sent to the switch 53 through at least two network paths;
s13: when the encapsulated target data packet sent by the switch 53 through at least two network paths is received, the encapsulated target data packet is reassembled and sent to the data receiving end server 55.
When a server sends data to another server through the switch 53, the server sending the data is referred to as a data sending end server 51, the server receiving the data is referred to as a data receiving end server 55, the switch arranged between the data sending end server 51 and the switch 53 is referred to as a data sending end switch 52, the switch arranged between the data receiving end server 55 and the switch 53 is referred to as a data receiving end switch 54, the data transmission process at this time is that the data sending end server 51 transmits the target data packet to the data sending end switch 52, the data sending end switch 52 repackages the target data packet, wherein the target data packet may be information composed of bytes, the encapsulation refers to repackaging and integrating the complete target data packet, specifically, the target data packet may be divided into smaller sub-data packets, and the specific encapsulation mode is not limited herein.
And then transmitted to the switch 53 through at least two network paths, and the transmission through several network paths is not limited, and the specific transmission mode is not limited, and may be transmission in sequence, or may be transmission in a disordered sequence, that is, transmission in any order. The specific type of the network path is not limited, and the network path may be a line capable of transmitting information, and specifically may be an optical fiber, a twisted pair, or the like.
The target data packet received by the switch 53 after being encapsulated is then transmitted to the data receiving-end converter 54 through at least two network paths, and the specific transmission process is not limited as above; the data receiving end converter 54 reassembles the encapsulated target data packet and sends the reassembled target data packet to the data receiving end server 55, where the reassembly refers to integrating the reassembled target data packet, and the final data receiving end server 55 obtains a complete target data packet.
The function of the data transmitting-end converter 52 and the data receiving-end converter 54 is practically the same, because when the data transmitting-end server 51 is changed to the data receiving-end server 55, the original data receiving-end server 55 is also correspondingly changed to the data transmitting-end server 51, the original data receiving-end converter 54 starts to be a new data transmitting-end converter 52, and the original data transmitting-end converter 52 starts to be a new data receiving-end converter 54.
The application provides a data transmission method of a switch 53, wherein converters are arranged between the switch 53 and a data transmitting end server 51 and a data receiving end server 55 which are connected with both ends of the switch 53, each converter is connected with the switch 53 through a plurality of network paths, the data transmitting end server 51 firstly transmits a target data packet into the converter for encapsulation, the encapsulated target data packet can be transmitted to the switch 53 through at least two network paths, the converter receives the encapsulated target data packet transmitted by the switch 53 through at least two network paths, and finally reassembles the encapsulated target data packet and transmits the reassembled target data packet to the data receiving end server 55.
Based on the above embodiments:
as a preferred embodiment, before encapsulating the target data packet, the method further includes:
acquiring the size of a target data packet;
judging whether the size of the target data packet is larger than the size of a preset data packet or not;
if yes, the step of packaging the target data packet is entered.
The size of the data transmitted over the network path is limited, for example, in the case of TCP transmission, the absolute limit of the packet size is 64K (65535 bytes), the size of the ethernet packet (packet) is fixed, initially 1518 bytes, and later increases to 1522 bytes. However, the size of the target data packet is not considered in the above embodiment, when the target data packet is small, the data packet is not required to be split and then transmitted, so the size of the target data packet is firstly obtained before the target data packet is encapsulated, and whether the size of the target data packet is larger than the preset data packet size is judged, if yes, the target data packet is encapsulated, wherein the preset data packet size can be set according to the actual situation, and in general, the preset data packet size can be set to 64K when the TCP is transmitted. The manner of acquiring the size of the target packet is not limited.
Specifically, for all the target packets during TCP transmission, the target packets are differentiated according to the size of the target packets, and the target packets are divided into sub-packets with the size of 64K in consideration of increasing the speed of data transmission as much as possible, and if there is an additional requirement, the target packets may be divided into sub-packets with the size of less than 64K.
Before the target data packet is encapsulated, the steps of acquiring the size of the target data packet and judging whether the size of the target data packet is larger than the preset data packet size are added, the difference between different target data packets is considered, different actions are performed on different types of target data packets, the actual situation is better met, and the reliability of the data transmission process of the switch 53 is improved.
As a preferred embodiment, further comprising:
if the size of the target packet is not greater than the preset packet size, the target packet is sent to the switch 53 via a network path.
The above embodiment does not show how the operation is performed when the size of the destination packet is not larger than the preset packet size, but the present embodiment considers that the destination packet can be directly transmitted to the switch 53 through one network path when the destination packet is small. The specific choice of what network paths are not limited and may be random.
In this embodiment, when a smaller target data packet is transmitted, the target data packet is directly sent to the switch 53 through one network path, so that the waste of network path resources is reduced, the data transmission speed is also fast, and even if the selected network path fails, other network paths can be selected for data transmission even if the data transmission cannot be performed, so that the problem that the network path fails to continue to transmit data once the TCP transmission occurs in the prior art is solved.
As a preferred embodiment, encapsulating the target data packet includes:
encapsulating the target data packet into N sub-data packets, wherein the sizes of the N sub-data packets are not larger than the size of a preset data packet, and N is an integer larger than 1;
the encapsulated target data packet is sent to the switch 53 through at least two network paths, including:
the N sub-data packets are sent to the switch 53 through at least two network paths according to a preset sequence;
the reassembled encapsulated target packet is sent to the data receiving end server 55, including:
the N sub-packets are reassembled in a predetermined order and then sent to the data sink server 55.
In this embodiment, a specific implementation manner of encapsulating the target data packet is given, and since the target data packet obtained by the final data receiving end server 55 is the same as the target data packet sent by the data sending end server 51, it is necessary to ensure that the encapsulated target data packet can be reassembled into the original target data packet after encapsulating the target data packet. Specifically, in this embodiment, the target data packet is encapsulated into N sub-data packets with sizes not larger than the predetermined data packet, and then the main point is to send the N sub-data packets to the switch 53 according to the predetermined sequence, so that the data receiving end converter 54 can be guaranteed to reassemble the N sub-data packets according to the predetermined sequence. For example, the data transmitting-side switch 52 simultaneously transmits the sub-packet 1, the sub-packet 2, and the sub-packet 3 using the first, second, and third network paths, and the data receiving-side switch 54 also receives the sub-packet 1, the sub-packet 2, and the sub-packet 3 using the first, second, and third network paths, respectively.
The specific transmission mode is not limited when the N sub-packets are sent to the switch 53 according to the preset sequence, the number of specific network paths is not limited as long as the N sub-packets are transmitted through at least two network paths, the transmission process is not limited, the N sub-packets may be equally distributed to the working network paths, the load sizes of different network paths may be detected in real time during the transmission process, and some sub-packets may be distributed to the network paths with smaller load sizes. And once the phenomenon that the network path is blocked is detected, the sub-data packets on the network path are distributed to the rest network paths in time. For example, the first, second and third network paths are used to transmit the sub-packet 1, the sub-packet 2 and the sub-packet 3 respectively, and after a period of transmission, the transmission is switched to the second, third and fourth network paths to transmit the sub-packet 4, the sub-packet 5 and the sub-packet 6 respectively, and when a failure occurs in one network path, the sub-packet to be transmitted in the network path needs to be distributed to other network paths in time.
In this embodiment, the target data packet is encapsulated into N sub data packets and then sent to the switch 53 through at least two network paths according to a preset sequence, and it is ensured that the N sub data packets can be reassembled according to the preset sequence and then sent to the data receiving end server 55, so that TCP transmission of data is realized, and the transmission speed is higher and more stable than that of the conventional TCP transmission.
As a preferred embodiment, encapsulating the target data packet includes:
encapsulating the target data packet into N sub data packets, wherein the sizes of the N sub data packets are not larger than the size of a preset data packet, the preset data bits corresponding to the N sub data packets respectively comprise information representing the positions of the sub data packets in the target data packet, and N is an integer larger than 1;
the reassembled encapsulated target packet is sent to the data receiving end server 55, including:
the N sub-packets are reassembled according to the information characterizing the positions of the sub-packets in the target packet on the preset data bits of the N sub-packets and sent to the data receiving end server 55.
When the target data packet is larger, the number of encapsulated sub-data packets is larger, at this time, the number of possible accidents in the process of transmitting the target data packet through a plurality of network paths after encapsulating, for example, a fault occurs in a certain network path, and at this time, a problem of sequence error may occur if the sub-data packets are transmitted sequentially, so that the information representing the positions of the sub-data packets in the target data packet is set on the preset data bits corresponding to the N sub-data packets, and thus, when the data receiving end converter reassembles, the information representing the positions of the sub-data packets in the target data packet on the preset data bits of the N sub-data packets can be assembled.
Specifically, 4 bytes of data may be inserted in the first 5 th to 8 th data bits of the sub-packet to indicate the order of the packets; the transmission can be performed in a disordered order when the transmission is performed through different network paths, the number of the sub-data packets transmitted on the different network paths is not limited, and the N sub-data packets can be distributed on the working network paths in an average manner or can be distributed randomly. At this point the packets are reassembled at the "translation layer" and the reassembly of the various components is done before the packets are returned to the server. The server itself does not know that the data packets are out of order. The server does not even know how the data packet arrived. It only knows that it sent the data elsewhere and arrived without error.
Furthermore, the load sizes of different network paths can be detected in real time in the transmission process, and some sub-data packets can be distributed for the network paths with smaller load sizes. And once the phenomenon that the network path is blocked is detected, the sub-data packets on the network path are distributed to the rest network paths in time.
In this embodiment, after the target data packet is encapsulated into N sub data packets, the N sub data packets are sent to the switch 53 through at least two network paths according to any sequence, and the information representing the positions of the sub data packets in the target data packet on the preset data bits is assembled and then sent to the data receiving end server 55, so that TCP transmission of data is realized, and compared with the conventional TCP transmission, the transmission speed is higher and stable, the probability of transmission errors is lower, and if the data transmission speed is to be improved, the sub data packets can be sent through as many network paths as possible.
As a preferred embodiment, sending the encapsulated target data packet to the switch 53 through at least two network paths includes:
the encapsulated target data packet is transmitted to the switch 53 over at least two network paths using a multipath routing standard.
The above embodiment is not limited to the specific manner in which different network paths transmit sub-packets, and it is likely that some network paths are overloaded, so in this embodiment, it is considered that the overload of paths is avoided as much as possible, and the encapsulated target packet is sent to the switch 53 through at least two network paths by using the multipath routing standard.
Specifically, the specific type of the multipath Routing standard is not limited, and may be ECMP (Equal-Cost Multi-Path Routing), WCMP (Weight-Cost Multi-Path Routing), or the like.
The embodiment can realize the transmission of the data packets through as many network paths as possible, avoid the overload of the paths, improve the data transmission speed, stabilize the transmission process, reduce the jitter to the maximum extent and ensure the fastest response to the fluctuation of network congestion.
As a preferred embodiment, after the encapsulated target data packet is reassembled and sent to the data receiving end server 55, the method further includes:
judging whether an instruction of retransmitting the target data packet transmitted from the data receiving end server 55 is received;
if yes, the step of packaging the target data packet is entered.
Since the TCP transmission is likely to have packet loss, in this embodiment, after the encapsulated target packet is reassembled and sent to the data receiving end server 55, the data receiving end server 55 finds that the target packet is incomplete, and then sends an instruction for retransmitting the target packet to the data receiving end converter 54, and the data transmitting end converter 52 will retransmit the target packet and retransmit the target packet.
The embodiment ensures that the TCP transmission has higher stability and reliability by adding the retransmission mechanism after the packet loss phenomenon, and does not occupy more time even the retransmission after the packet loss of the TCP transmission can be transmitted through a plurality of network paths.
Referring to fig. 2, fig. 3 and fig. 4, fig. 2 is a flow chart of another data transmission method of the switch 53 according to the present application;
in step S101, a converter layer is added before the two ends of the server access the switch 53 network;
in step S102, intercepting and repackaging the TCP IP packet at the converter layer;
in step S102, for all TCP IP packets, the packets are differentiated according to the packet size, the packets are divided into packets with a size of 64K or more, and 4 bytes of data are inserted into the 5 th to 8 th data bits of the packet to indicate the sequence of the packets;
in step S103, the encapsulated packet enters the switch 53;
in step S103, when transmission is performed, the data packet will not be transmitted according to the sequence, but will be transmitted through as many network paths as possible, while avoiding path overload;
in step S103, the packet is sent out through as many network paths as possible, and the multi-path routing standard is utilized, so that the packet is encapsulated by the sender control data packet to control multi-path selection, thereby realizing multi-path load balancing;
in step S103, the constraint of delivering messages in order is canceled, head of queue blocking is eliminated, and the packet reordering processing engine is implemented in the conversion stack.
Fig. 3 is a schematic diagram of a data transmission speed before TCP transmission optimization provided by the present application, and fig. 4 is a schematic diagram of a data transmission speed after TCP transmission optimization provided by the present application, wherein an abscissa is time, and an ordinate is a data transmission speed. The optimized tail delay represents that only 1% of requests are allowed to slow down, but the tail delay also reflects the final performance of all packet loss, retransmission and congestion in the network, and can more explain the real network condition.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a converter according to the present application, and the application further provides a converter, including:
a memory 1 for storing a computer program;
a processor 2 for implementing the steps of the data transmission method of the switch 53 when executing the computer program.
The memory 1 includes at least one type of readable storage medium including flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc.
The processor 2 may in some embodiments be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chip for executing program code or processing data stored in a memory.
The specific embodiment has the same effects as the data transmission method of the switch 53, for example.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the data transmission method of the switch 53.
It will be appreciated that the methods of the above embodiments, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored on a computer readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium for performing all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The specific embodiment has the same effects as the data transmission method of the switch 53, for example.
The present application also provides a data transmission system of a switch 53, please refer to fig. 6, fig. 6 is a schematic structural diagram of the data transmission system of the switch provided by the present application, which includes a switch 53, a data transmitting end converter 52, a data receiving end converter 54, wherein the data transmitting end converter 52, the data receiving end converter 54 and the switch 53 are connected through a plurality of network paths, and further includes a data transmitting end server 51 and a data receiving end server 55 respectively connected with the data transmitting end converter 52 and the data receiving end converter 54.
In the data transmission system of the switch 53 provided by the application, the switches are arranged between the switch 53 and the data transmitting end server 51 and the data receiving end server 55 which are connected with both ends of the switch 53, and each switch is connected with the switch 53 through a plurality of network paths, the data transmitting end server 51 firstly transmits the target data packet into the switch for encapsulation, the encapsulated target data packet can be transmitted to the switch 53 through at least two network paths, the switch receives the encapsulated target data packet transmitted by the switch 53 through at least two network paths, and finally the encapsulated target data packet is reassembled and then is transmitted to the data receiving end server 55, so that the problem of too slow speed caused by data transmission through only one network path when the switch 53 is connected with the data transmitting end server 51 and the data receiving end server 55 one by one at present is solved, and the data transmission can be continuously carried out through other network paths when a certain network path fails.
The specific embodiment has the same effects as the data transmission method of the switch 53, for example.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a data transmission system of another switch according to the present application.
It should also be noted that in this specification the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.

Claims (10)

1. The data transmission method of the exchanger is characterized in that a converter is arranged between the exchanger and a data transmitting end server and a data receiving end server which are connected with two ends of the exchanger, and the converters are connected with the exchanger through a plurality of network paths, and the method is applied to the converters and comprises the following steps:
when receiving a target data packet sent by the data sending end server, encapsulating the target data packet;
sending the encapsulated target data packet to the switch through at least two network paths;
when receiving the encapsulated target data packets sent by the switch through at least two network paths, the switch reassembles the encapsulated target data packets and sends the reassembled target data packets to the data receiving end server.
2. The data transmission method of the switch according to claim 1, further comprising, before encapsulating the target data packet:
acquiring the size of the target data packet;
judging whether the size of the target data packet is larger than the size of a preset data packet or not;
if yes, entering the step of packaging the target data packet.
3. The data transmission method of the switch according to claim 2, further comprising:
and if the size of the target data packet is not larger than the preset data packet size, sending the target data packet to the switch through one network path.
4. The data transmission method of the switch according to claim 2, wherein encapsulating the target data packet comprises:
encapsulating the target data packet into N sub data packets, wherein the sizes of the N sub data packets are not larger than the preset data packet size, and N is an integer larger than 1;
sending the encapsulated target data packet to the switch through at least two network paths, including:
transmitting the N sub-data packets to the switch through at least two network paths according to a preset sequence;
and after reassembling the encapsulated target data packet, sending the reassembled target data packet to the data receiving end server, wherein the method comprises the following steps:
and reassembling the N sub-data packets according to a preset sequence and then sending the reassembled sub-data packets to the data receiving end server.
5. The data transmission method of the switch according to claim 2, wherein encapsulating the target data packet comprises:
packaging the target data packet into N sub data packets, wherein the sizes of the N sub data packets are not larger than the preset data packet, the preset data bits corresponding to the N sub data packets respectively comprise information representing the positions of the sub data packets in the target data packet, and N is an integer larger than 1;
and after reassembling the encapsulated target data packet, sending the reassembled target data packet to the data receiving end server, wherein the method comprises the following steps:
and the N sub-data packets are reassembled according to the information representing the positions of the sub-data packets in the target data packet on the preset data bits of the N sub-data packets and then sent to the data receiving end server.
6. The data transmission method of a switch according to claim 1, wherein transmitting the encapsulated target data packet to the switch through at least two of the network paths comprises:
and sending the encapsulated target data packet to the switch through at least two network paths by utilizing a multipath routing standard.
7. The data transmission method of the switch according to any one of claims 1 to 6, further comprising, after the reassembly of the encapsulated target data packet and the transmission to the data receiver server:
judging whether an instruction for retransmitting the target data packet sent by the data receiving end server is received or not;
if yes, entering the step of packaging the target data packet.
8. A converter, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the data transmission method of the switch according to any one of claims 1 to 7 when executing said computer program.
9. A computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the steps of the data transmission method of a switch according to any one of claims 1 to 7.
10. A data transmission system of a switch, comprising a switch, a switch as claimed in claim 8, wherein the switch is connected to the switch through a plurality of network paths, and further comprising a data transmitting end server and a data receiving end server connected to the switch.
CN202310416012.1A 2023-04-13 2023-04-13 Data transmission method, device, medium and system of switch Pending CN116582484A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310416012.1A CN116582484A (en) 2023-04-13 2023-04-13 Data transmission method, device, medium and system of switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310416012.1A CN116582484A (en) 2023-04-13 2023-04-13 Data transmission method, device, medium and system of switch

Publications (1)

Publication Number Publication Date
CN116582484A true CN116582484A (en) 2023-08-11

Family

ID=87534980

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310416012.1A Pending CN116582484A (en) 2023-04-13 2023-04-13 Data transmission method, device, medium and system of switch

Country Status (1)

Country Link
CN (1) CN116582484A (en)

Similar Documents

Publication Publication Date Title
US10237153B2 (en) Packet retransmission method and apparatus
JP5816718B2 (en) Communication apparatus, communication system, and data communication relay method
US7369498B1 (en) Congestion control method for a packet-switched network
US8717900B2 (en) Mechanisms to improve the transmission control protocol performance in wireless networks
EP3522479A1 (en) Techniques for efficient multipath transmission
CN109510690B (en) Method for transmitting messages, network component and computer-readable storage medium
US11671377B2 (en) System and method for reducing bandwidth usage of a network
GB2519491A (en) Method and system for increasing data flow transmission
CN109120540B (en) Method for transmitting message, proxy server and computer readable storage medium
CN116582484A (en) Data transmission method, device, medium and system of switch
CN113424578B (en) Acceleration method and device for transmission control protocol
Cisco Designing SDLC, SDLLC, and QLLC Internetworks
Cisco Designing SDLC, SDLLC, and QLLC Internetworks
Cisco Designing SDLC, SDLLC, and QLLC Internetworks
Cisco Designing SDLC, SDLLC, and QLLC Internetworks
Cisco Designing SDLC, SDLLC, and QLLC Internetworks
Cisco Designing SDLC, SDLLC, and QLLC Internetworks
Cisco Designing SDLC, SDLLC, and QLLC Internetworks
US20140369189A1 (en) Method of controlling packet transmission in network system and network system transmitting packet using pseudo-tcp agent
EP2697950B1 (en) Technique for managing communications at a router
CN116346955A (en) TCP message transmission performance enhancement method and system for asymmetric satellite network
JPH0556062A (en) Packet relay system and communication control system

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