CN111314163A - Data packet transmission method and system - Google Patents

Data packet transmission method and system Download PDF

Info

Publication number
CN111314163A
CN111314163A CN201911223297.7A CN201911223297A CN111314163A CN 111314163 A CN111314163 A CN 111314163A CN 201911223297 A CN201911223297 A CN 201911223297A CN 111314163 A CN111314163 A CN 111314163A
Authority
CN
China
Prior art keywords
line
connection
bandwidth
quality
line connection
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
CN201911223297.7A
Other languages
Chinese (zh)
Inventor
陈烁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies 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 Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN201911223297.7A priority Critical patent/CN111314163A/en
Publication of CN111314163A publication Critical patent/CN111314163A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring

Landscapes

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

Abstract

The embodiment of the invention discloses a data packet transmission method and a data packet transmission device, which are used for improving the transmission efficiency of data packets and the utilization rate of effective bandwidth. The method provided by the embodiment of the invention comprises the following steps: acquiring a line connection state of a data packet, wherein the line connection state comprises at least one of line connection bandwidth, line connection quality and the number of data packets transmitted on a line; judging whether the line connection state reaches a self-defined connection condition, wherein the self-defined connection condition comprises at least one of a bandwidth threshold value of the line, preset line quality and the number of data packets preset on the line; and if so, transmitting the data packet by adopting the line.

Description

Data packet transmission method and system
Technical Field
The present invention relates to the field of data transmission technologies, and in particular, to a method and a system for transmitting data packets.
Background
Currently, when establishing network connection, there are 2 types of transmission modes for data packets:
the first step is to average packet load, that is, the data packets of a single application are averagely forwarded to a plurality of connections, and at this time, each forwarding connection is divided into the same data packets, so that the superposition effect is the number of the data packets divided by each forwarding connection, i.e., the number of the forwarded connections is equal to the number of the data packets divided by each forwarding connection, for example, 2 forwarding connections participate in forwarding, each connection is divided into 80 data packets, and at this time, the total number of the forwarding packets is 160 data packets.
And secondly, proportionally distributing packet loads, namely distributing the data packets of a single application to a plurality of connections for forwarding according to a proportion, wherein each forwarding connection is distributed to the data packets with the corresponding proportion. For example, if 2 forwarding connections participate in forwarding, the first connection is divided into 40 data packets, the second connection is divided into 120 data packets, the total number of forwarding packets at this time is 160 data packets, and the distribution ratio of the two connections is 1: 3.
however, the existing data packet transmission method only transmits the data packet according to the existing mode when participating in the data packet forwarding, and the transmission mode of the data packet is single and low in efficiency.
Disclosure of Invention
The embodiment of the invention provides a data packet transmission method and a data packet transmission system, which are used for improving the transmission efficiency of data packets and the utilization rate of effective bandwidth.
A first aspect of the embodiments of the present application provides a method for transmitting a data packet, including:
acquiring a line connection state of a data packet, wherein the line connection state comprises at least one of line connection bandwidth, line connection quality and the number of data packets transmitted on a line;
judging whether the line connection state reaches a self-defined connection condition, wherein the self-defined connection condition comprises at least one of a bandwidth threshold value of the line, preset line quality and the number of data packets preset on the line;
and if so, transmitting the data packet by adopting the line.
Preferably, when the line status includes the line connection bandwidth, the determining whether the line connection status reaches a customized connection condition includes:
and judging whether the line connection bandwidth is not larger than the bandwidth threshold of the line.
Preferably, when the line status further includes the line connection quality, the line connection quality includes: at least one of packet loss rate, packet delay and delay jitter;
before the transmitting of the data packet by using the line, the method further comprises:
and judging whether the line connection quality reaches the preset line quality.
Preferably, when the line status further includes the number of data packets transmitted on the line;
before the transmitting of the data packet by using the line, the method further comprises:
and judging whether the number of the data packets of the line is not more than the number of the data packets preset on the line.
Preferably, the method further comprises:
when the line connection bandwidth is larger than the bandwidth threshold of the line;
or the like, or, alternatively,
when the line connection quality does not reach the preset line quality;
or the like, or, alternatively,
when the number of the data packets of the line is larger than the number of the data packets preset on the line;
another line is used for packet transmission.
A second aspect of the embodiments of the present application provides a data packet transmission apparatus, including:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the line connection state of a data packet, and the line connection state comprises at least one of line connection bandwidth, line connection quality and the number of data packets transmitted on a line;
the judging unit is used for judging whether the line connection state reaches a self-defined connection condition, wherein the self-defined connection condition comprises at least one of a bandwidth threshold value of a line, preset line quality and the number of data packets preset on the line;
and the transmission unit is used for adopting the line to transmit the data packet when the line connection state reaches the self-defined connection condition.
Preferably, when the line status includes the line connection bandwidth;
the judging unit is specifically configured to:
and judging whether the line connection bandwidth is not larger than the bandwidth threshold of the line.
Preferably, when the line status further includes the line connection quality, the line connection quality includes: at least one of packet loss rate, packet delay and delay jitter;
the judging unit is specifically configured to:
judging whether the line connection bandwidth is not larger than the bandwidth threshold of the line;
and if so, judging whether the line connection quality reaches the preset line quality.
Preferably, when the line status further includes the number of data packets transmitted on the line;
the judging unit is specifically configured to:
judging whether the line connection bandwidth is not larger than the bandwidth threshold of the line;
if yes, judging whether the line connection quality reaches the preset line quality;
if so, judging whether the number of the data packets of the line is not more than the number of the data packets preset on the line;
and if so, triggering the transmission unit.
Preferably, the transmission unit is further configured to:
when the line connection bandwidth is larger than the bandwidth threshold of the line;
or the like, or, alternatively,
when the line connection quality does not reach the preset line quality;
or the like, or, alternatively,
when the number of the data packets of the line is larger than the number of the data packets preset on the line;
another line is used for packet transmission.
A third aspect of the embodiments of the present application provides a computer device, where the computer device is configured to implement the method for transmitting a data packet according to the first aspect of the embodiments of the present application when executing a computer program stored in a memory.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program is used, when being executed by a processor, to implement the data packet transmission method according to the first aspect of the embodiments of the present application.
According to the technical scheme, the embodiment of the invention has the following advantages:
in the embodiment of the application, before the data packet transmission, obtain the connection status of circuit, wherein, the connection status of circuit includes at least one in line connection bandwidth, line connection quality and the data packet quantity of transmission on the circuit, judges whether line connection status reaches self-defined connection condition, self-defined connection condition includes at least one in the bandwidth threshold value of circuit, the predetermined line quality and the data packet quantity of predetermineeing on the circuit, if, then adopts the circuit carries out the data packet transmission. Because the connection state of the current line can be counted in real time in the embodiment, and when the connection state meets the user-defined connection condition, the current line is adopted for transmitting the data packet, so that the flexibility of data packet transmission is improved, the transmission efficiency of the data packet is improved, and the effective utilization rate of the bandwidth is increased.
Drawings
Fig. 1 is a schematic diagram of an embodiment of a data packet transmission method in an embodiment of the present application;
fig. 2 is a schematic diagram of another embodiment of a data packet transmission method in the embodiment of the present application;
fig. 3 is a schematic diagram of another embodiment of a data packet transmission method in the embodiment of the present application;
fig. 4 is a schematic diagram of another embodiment of a data packet transmission method in the embodiment of the present application;
fig. 5 is a schematic diagram of an embodiment of a data packet transmission device in the embodiment of the present application.
Detailed Description
The embodiment of the invention provides a data packet transmission method and a data packet transmission system, which are used for improving the transmission efficiency of data packets and the utilization rate of bandwidth.
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In order to solve the problems of single transmission mode and low transmission efficiency in data packet transmission in the prior art, embodiments of the present application provide a data packet transmission method and system to improve the transmission efficiency of a data packet and the utilization rate of a bandwidth.
For convenience of explanation, the following technical names in the present application are explained first and are used continuously in the following parts and are not repeated:
line connection: a TCP connection or a UDP connection;
packet loss rate: the ratio of the number of packets discarded by the network during a period of time to the total number of packets sent during the period of time;
time delay: the time a packet makes a round trip between two devices;
dithering: variance of the latest 8 time delay statistics;
the line is busy: whether the bandwidth egress runs close to the egress bandwidth promised by the operator.
Next, a data packet transmission method in the present application is described, referring to fig. 1, an embodiment of the data packet transmission method in the embodiment of the present application includes:
101. acquiring a line connection state of a data packet, wherein the line connection state comprises at least one of line connection bandwidth, line connection quality and the number of data packets transmitted on a line;
in order to improve the transmission efficiency of a data packet, in the embodiment of the present application, before the data packet is transmitted, a line connection state of a current data packet is obtained, where the line connection state includes at least one of a line connection bandwidth, a line connection quality, and a number of data packets transmitted on a line.
Specifically, the line connection bandwidth indicates the amount of data that can be transmitted by the communication line per unit time, and the common unit is bps, i.e. bits per second, for example, when the line bandwidth is 1M, it is actually 1Mbps, i.e. 1M/s.
The line connection quality, here, is represented by parameters such as packet loss rate, delay, and jitter of the line.
The number of the data packets transmitted on the line, that is, the number of the data packets currently transmitted on the line, is 10 if the number of the data packets currently transmitted is 10.
102. Judging whether the line connection state reaches a self-defined connection condition, wherein the self-defined connection condition comprises at least one of a bandwidth threshold value of the line, preset line quality and the number of data packets preset on the line, if so, executing a step 103, and if not, executing a step 104;
after the connection state of the current line is acquired, whether the connection state of the line reaches a self-defined connection condition is judged, if yes, step 103 is executed, and if not, step 104 is executed.
Here, the self-defined connection condition, that is, the bandwidth threshold of the current line, the connection quality of the current line, and/or the number of data packets preset on the current line, wherein the implementation process of step 102 will be described in detail in the following embodiments, and will not be described herein again.
103. Carrying out data packet transmission by adopting the line;
and if the connection state of the current line meets the user-defined connection condition, transmitting the data packet by adopting the line.
104. Other processes are performed.
If the connection status of the current line does not meet the customized connection condition, other procedures are performed, such as discarding transmission of the data packet, or discarding use of the current line, which is not limited herein.
In the embodiment of the application, before the data packet transmission, acquire the connection state of circuit, wherein, the connection state of circuit includes at least one of line connection bandwidth, line connection quality and the data packet quantity of transmission on the circuit, judges whether line connection state reaches self-defined connection condition, self-defined connection condition includes at least one of the bandwidth threshold value of circuit, predetermined line quality and the data packet quantity of predetermineeing on the circuit, if, then adopts the circuit carries out the data packet transmission. Because the connection state of the current line can be counted in real time in the embodiment, and the current line is adopted to transmit the data packet when the connection state meets the user-defined connection condition, the flexibility of data packet transmission is improved, the transmission efficiency of the data packet is also improved, and the effective utilization rate of the bandwidth is increased.
Based on the embodiment described in fig. 1, the following describes in detail different line connection states and customized connection conditions: when the connection status of the line only includes the connection bandwidth of the line, referring to fig. 2 specifically, another embodiment of the data packet transmission method in the embodiment of the present application includes:
201. acquiring a line connection state of a data packet, wherein the line connection state comprises a line connection bandwidth;
in order to improve the transmission efficiency of a data packet, in the embodiment of the present application, a line connection state of a current data packet is obtained before the data packet is transmitted, where the line connection state only includes a line connection bandwidth in the embodiment.
Specifically, the line connection bandwidth indicates the amount of data that can be transmitted by the communication line per unit time, and the common unit is bps, i.e. bits per second, for example, when the line bandwidth is 1M, it is actually 1Mbps, i.e. 1M/s.
202. Judging whether the connection bandwidth of the line is not greater than a bandwidth threshold, if so, executing a step 203, and if not, executing a step 204;
it is easy to understand that the line bandwidth refers to the amount of data transmitted on the line in unit time, and if the current line bandwidth reaches the bandwidth threshold, it indicates that the current line is busy, or data is saturated in transmission on the current line, and if the current line bandwidth continues to be used for transmission, the transmission efficiency of the data is reduced, so in this embodiment, before the current line is used for transmission, it is determined first whether the connection bandwidth of the current line is not greater than the bandwidth threshold, if so, step 203 is executed, and if not, step 204 is executed.
203. Transmitting data packets by adopting the line;
204. and transmitting the data packet by adopting another line.
And if the connection bandwidth of the current line reaches the bandwidth threshold value, transmitting the data packet by adopting another line.
It should be noted that step 203 in this embodiment is similar to step 103 in fig. 1, and is not described here again.
Referring to fig. 3, if the connection status of the line includes the line connection bandwidth and the line connection quality based on the embodiment illustrated in fig. 1, another embodiment of the method for transmitting a data packet in the embodiment of the present application includes:
301. acquiring a line connection state of a data packet, wherein the line connection state comprises a line connection bandwidth and line connection quality, and the line connection quality comprises at least one of packet loss rate, time delay and jitter;
in order to improve the transmission efficiency of a data packet, in the embodiment of the present application, before the data packet is transmitted, a line connection state of a current data packet is obtained, where the line connection state includes at least one of a line connection bandwidth, a line connection quality, and a number of data packets transmitted on a line.
Specifically, the line connection bandwidth indicates the amount of data that can be transmitted by the communication line per unit time, and the common unit is bps, i.e. bits per second, for example, when the line bandwidth is 1M, it is actually 1Mbps, i.e. 1M/s.
The line connection quality, here, is represented by parameters such as packet loss rate, delay, and jitter of the line.
302. Judging whether the connection bandwidth of the line is not greater than a bandwidth threshold, if so, executing step 303, and if not, executing step 305;
it is easy to understand that the line bandwidth refers to the amount of data transmitted on the line in unit time, and if the current line bandwidth reaches the bandwidth threshold, it indicates that the current line is busy, or data is saturated to be transmitted on the current line, and if the current line bandwidth is continuously used for transmission, the transmission efficiency of the data is reduced, so in this embodiment, before the current line is used for transmission, it is determined first whether the connection bandwidth of the current line is not greater than the bandwidth threshold, if so, step 303 is executed, and if not, step 305 is executed.
303. Judging whether the line connection quality reaches a preset line quality, if so, executing a step 304, and if not, executing a step 305;
if the connection bandwidth of the current line is not greater than the bandwidth threshold, the present embodiment continues to determine whether the connection quality of the current line reaches the preset line quality, where the preset line quality may be a packet loss rate of < 1%, a delay of <100ms, a jitter of <0.5, and the like, and if the connection quality of the current line reaches the preset line quality, step 304 is executed, otherwise, step 305 is executed.
It should be noted that the packet loss rate in this embodiment is less than 1%, the delay is less than 100ms, and the jitter is less than 0.5, which is only an example of the quality of the preset line, and in practical application, a user may perform self-definition on the quality of the preset line, and no specific limitation is made here.
304. Transmitting data packets by adopting the line;
305. and transmitting the data packet by adopting another line.
And if the current line bandwidth reaches the bandwidth threshold value and/or the current line connection quality does not reach the preset line quality, executing the transmission of the data packet by adopting another line.
It should be noted that step 304 in this embodiment is similar to step 103 in the embodiment of fig. 1, and is not described here again.
Referring to fig. 4, if the connection status of the line includes the line connection bandwidth, the line connection quality, and the number of packets transmitted on the line according to the embodiment illustrated in fig. 1, another embodiment of the method for transmitting packets in the embodiment of the present application includes:
401. acquiring a line connection state of a data packet, wherein the line connection state comprises a line connection bandwidth, line connection quality and the number of data packets transmitted on a line, and the line connection quality comprises at least one of packet loss rate, time delay and jitter;
402. judging whether the connection bandwidth of the line is not greater than a bandwidth threshold, if so, executing a step 403, and if not, executing a step 406;
it is easy to understand that the line bandwidth refers to the amount of data transmitted on the line in unit time, and if the current line bandwidth reaches the bandwidth threshold, it indicates that the current line is busy, or data is saturated in transmission on the current line, and if the current line bandwidth continues to be used for transmission, the transmission efficiency of the data is reduced, so in this embodiment, before the current line is used for transmission, it is determined first whether the connection bandwidth of the current line is not greater than the bandwidth threshold, if so, step 403 is executed, and if not, step 406 is executed.
403. Judging whether the line connection quality reaches the preset line quality, if so, executing a step 404, and if not, executing a step 406;
if the connection bandwidth of the current line is not greater than the bandwidth threshold, the present embodiment continues to determine whether the connection quality of the current line reaches the preset line quality, where the preset line quality may be a packet loss rate of < 1%, a delay of <100ms, a jitter of <0.5, and the like, and if the connection quality of the current line reaches the preset line quality, step 404 is executed, otherwise, step 406 is executed.
It should be noted that the packet loss rate in this embodiment is less than 1%, the delay is less than 100ms, and the jitter is less than 0.5, which is only an example of the quality of the preset line, and in practical application, a user may perform self-definition on the quality of the preset line, and no specific limitation is made here.
404. Judging whether the number of the data packets transmitted on the line is not greater than the preset number of the data packets, if so, executing step 405, and if not, executing step 406;
if the connection quality of the current line reaches the preset line quality, whether the number of the data packets transmitted on the current line is not greater than the preset number of the data packets is further judged, wherein the preset number of the data packets can be 80 or 100, and the user can set the data packets in a self-defined manner.
Here, if the number of packets transmitted on the current line is greater than the preset number of packets, another line may be used to transmit the packets, so that the packets are distributed to as many lines as possible for propagation, and each line is effectively utilized to improve the utilization rate of the effective bandwidth.
405. Transmitting data packets by adopting the line;
and if the data packet transmitted on the line is not larger than the preset data packet, transmitting the data packet by adopting the line.
405. And transmitting the data packet by adopting another line.
If the bandwidth of the current line is greater than the bandwidth threshold, or the connection quality of the current line does not reach the preset line quality, or the data packet transmitted on the current line is greater than the preset data packet data, the other line is adopted to transmit the data packet, so that the transmission efficiency of the data packet is improved, and the bandwidth is effectively utilized.
In the above embodiment, when the lines are in different connection states, the line selection process for transmitting the data packet is described in detail, so that the implementability of this embodiment is improved.
With reference to fig. 5, the data packet transmission method in the embodiment of the present application is described above, and a data packet transmission device in the embodiment of the present application is described below, where an embodiment of the data packet transmission device in the embodiment of the present application includes:
an obtaining unit 501, configured to obtain a line connection state of a data packet, where the line connection state includes at least one of a line connection bandwidth, a line connection quality, and a number of data packets transmitted on a line;
a determining unit 502, configured to determine whether the line connection state reaches a self-defined connection condition, where the self-defined connection condition includes at least one of a bandwidth threshold of a line, a preset line quality, and a preset number of data packets on the line;
a transmission unit 503, configured to transmit a data packet by using the line when the line connection state reaches a user-defined connection condition.
Preferably, when the line status includes the line connection bandwidth;
the determining unit 502 is specifically configured to:
and judging whether the line connection bandwidth is not larger than the bandwidth threshold value.
Preferably, when the line status further includes the line connection quality, the line connection quality includes: at least one of packet loss rate, packet delay and delay jitter;
the determining unit 502 is specifically configured to:
judging whether the line connection bandwidth is not larger than the bandwidth threshold of the line;
and if so, judging whether the line connection quality reaches the preset line quality.
Preferably, when the line status further includes the number of data packets transmitted on the line;
the determining unit 502 is specifically configured to:
judging whether the line connection bandwidth is not larger than the bandwidth threshold of the line;
if yes, judging whether the line connection quality reaches the preset line quality;
if so, judging whether the number of the data packets of the line is not more than the number of the data packets preset on the line;
and if so, triggering the transmission unit.
Preferably, the transmission unit 503 is further configured to:
when the line connection bandwidth is larger than the bandwidth threshold of the line;
or the like, or, alternatively,
when the line connection quality does not reach the preset line quality;
or the like, or, alternatively,
when the number of the data packets of the line is larger than the number of the data packets preset on the line;
another line is used for packet transmission.
It should be noted that the functions of the units in this embodiment are similar to those described in the embodiments of fig. 1 to 4, and are not described again here.
In the embodiment of the present application, before the data packet transmission, the connection state of the line is acquired through the acquisition unit 501, wherein the connection state of the line includes at least one of the line connection bandwidth, the line connection quality, and the number of the data packets transmitted on the line, and it is determined whether the line connection state reaches the customized connection condition through the determination unit 502, the customized connection condition includes at least one of the bandwidth threshold of the line, the preset line quality, and the number of the data packets preset on the line, and if so, the line is adopted through the transmission unit 503 to perform the data packet transmission. Because the connection state of the current line can be counted in real time in the embodiment, and when the connection state meets the user-defined connection condition, the current line is adopted for transmitting the data packet, so that the flexibility of data packet transmission is improved, the transmission efficiency of the data packet is improved, and the effective utilization rate of the bandwidth is increased.
The above describes the packet transmission apparatus in the embodiment of the present invention from the perspective of the modular functional entity, and the following describes the computer apparatus in the embodiment of the present invention from the perspective of hardware processing:
the computer device is used for realizing the functions of the data packet transmission device, and one embodiment of the computer device in the embodiment of the invention comprises the following components:
a processor and a memory;
the memory is used for storing the computer program, and the processor is used for realizing the following steps when executing the computer program stored in the memory:
acquiring a line connection state of a data packet, wherein the line connection state comprises at least one of line connection bandwidth, line connection quality and the number of data packets transmitted on a line;
judging whether the line connection state reaches a self-defined connection condition, wherein the self-defined connection condition comprises at least one of a bandwidth threshold value of the line, preset line quality and the number of data packets preset on the line;
and if so, transmitting the data packet by adopting the line.
When the line status includes the line connection bandwidth, in some embodiments of the present invention, the processor is specifically configured to implement the following steps:
and judging whether the line connection bandwidth is not larger than the bandwidth threshold of the line.
When the line status further includes the line connection quality, wherein the line connection quality includes: at least one of packet loss rate, packet delay and delay jitter;
before said using said line for data packet transmission, in some embodiments of the present invention, the processor is further configured to implement the following steps:
and judging whether the line connection quality reaches the preset line quality.
When the line state further comprises the number of data packets transmitted on the line;
before said using said line for data packet transmission, in some embodiments of the present invention, the processor is further configured to implement the following steps:
and judging whether the number of the data packets of the line is not more than the number of the data packets preset on the line.
In some embodiments of the invention, the processor is further configured to implement the steps of:
when the line connection bandwidth is larger than the bandwidth threshold of the line;
or the like, or, alternatively,
when the line connection quality does not reach the preset line quality;
or the like, or, alternatively,
when the number of the data packets of the line is larger than the number of the data packets preset on the line;
another line is used for packet transmission.
It is to be understood that, when the processor in the computer apparatus described above executes the computer program, the functions of each unit in the corresponding apparatus embodiments may also be implemented, and are not described herein again. Illustratively, the computer program may be partitioned into one or more modules/units that are stored in the memory and executed by the processor to implement the invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program in the data packet transmission device. For example, the computer program may be divided into units in the above-described packet transmission device, and each unit may realize specific functions as described above in the description of the corresponding packet transmission device.
The computer device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing equipment. The computer device may include, but is not limited to, a processor, a memory. It will be appreciated by those skilled in the art that the processor, memory are merely examples of a computer apparatus and are not meant to be limiting, and that more or fewer components may be included, or certain components may be combined, or different components may be included, for example, the computer apparatus may also include input output devices, network access devices, buses, etc.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable gate array (FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like which is the control center for the computer device and which connects the various parts of the overall computer device using various interfaces and lines.
The memory may be used to store the computer programs and/or modules, and the processor may implement various functions of the computer device by running or executing the computer programs and/or modules stored in the memory and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the terminal, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The present invention also provides a computer-readable storage medium for implementing the functions of a data packet transmission apparatus, having a computer program stored thereon, which, when executed by a processor, the processor is operable to perform the steps of:
acquiring a line connection state of a data packet, wherein the line connection state comprises at least one of line connection bandwidth, line connection quality and the number of data packets transmitted on a line;
judging whether the line connection state reaches a self-defined connection condition, wherein the self-defined connection condition comprises at least one of a bandwidth threshold value of the line, preset line quality and the number of data packets preset on the line;
and if so, transmitting the data packet by adopting the line.
When the line status includes the line connection bandwidth, in some embodiments of the invention, the processor, when executing the computer program stored in the computer-readable storage medium, may be specifically configured to perform the following steps:
and judging whether the line connection bandwidth is not larger than the bandwidth threshold of the line.
When the line status further includes the line connection quality, wherein the line connection quality includes: at least one of packet loss rate, packet delay and delay jitter;
before the data packet transmission by using the circuit is performed, in some embodiments of the present invention, when the computer program stored in the computer-readable storage medium is executed by the processor, the processor may be specifically configured to perform the following steps:
and judging whether the line connection quality reaches the preset line quality.
When the line state further comprises the number of data packets transmitted on the line; before the data packet transmission by using the circuit is performed, in some embodiments of the present invention, when the computer program stored in the computer-readable storage medium is executed by the processor, the processor may be specifically configured to perform the following steps:
and judging whether the number of the data packets of the line is not more than the number of the data packets preset on the line.
In some embodiments of the invention, the computer program stored on the computer readable storage medium, when executed by the processor, further causes the processor to perform the steps of:
when the line connection bandwidth is larger than the bandwidth threshold of the line;
or the like, or, alternatively,
when the line connection quality does not reach the preset line quality;
or the like, or, alternatively,
when the number of the data packets of the line is larger than the number of the data packets preset on the line;
another line is used for packet transmission.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for transmitting data packets, the method comprising:
acquiring a line connection state of a data packet, wherein the line connection state comprises at least one of line connection bandwidth, line connection quality and the number of data packets transmitted on a line;
judging whether the line connection state reaches a self-defined connection condition, wherein the self-defined connection condition comprises at least one of a bandwidth threshold value of the line, preset line quality and the number of data packets preset on the line;
and if so, transmitting the data packet by adopting the line.
2. The method of claim 1, wherein when the line status includes the line connection bandwidth, the determining whether the line connection status meets a customized connection condition comprises:
and judging whether the line connection bandwidth is not larger than the bandwidth threshold of the line.
3. The method of claim 2, wherein when the line status further comprises the line connection quality, wherein the line connection quality comprises: at least one of packet loss rate, packet delay and delay jitter;
before the transmitting of the data packet by using the line, the method further comprises:
and judging whether the line connection quality reaches the preset line quality.
4. The method of claim 3, wherein when the line status further includes a number of packets transmitted on the line;
before the transmitting of the data packet by using the line, the method further comprises:
and judging whether the number of the data packets of the line is not more than the number of the data packets preset on the line.
5. The method of claim 4, further comprising:
when the line connection bandwidth is larger than the bandwidth threshold of the line;
or the like, or, alternatively,
when the line connection quality does not reach the preset line quality;
or the like, or, alternatively,
when the number of the data packets of the line is larger than the number of the data packets preset on the line;
another line is used for packet transmission.
6. A packet transmission apparatus, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the line connection state of a data packet, and the line connection state comprises at least one of line connection bandwidth, line connection quality and the number of data packets transmitted on a line;
the judging unit is used for judging whether the line connection state reaches a self-defined connection condition, wherein the self-defined connection condition comprises at least one of a bandwidth threshold value of a line, preset line quality and the number of data packets preset on the line;
and the transmission unit is used for adopting the line to transmit the data packet when the line connection state reaches the self-defined connection condition.
7. The packet transfer device according to claim 6, wherein when the line status includes the line connection bandwidth;
the judging unit is specifically configured to:
and judging whether the line connection bandwidth is not larger than the bandwidth threshold of the line.
8. The packet transmission apparatus according to claim 7, wherein when the line status further includes the line connection quality and the number of packets transmitted on the line, the line connection quality includes: at least one of packet loss rate, packet delay and delay jitter;
the judging unit is specifically configured to:
judging whether the line connection bandwidth is not larger than the bandwidth threshold of the line;
if yes, judging whether the line connection quality reaches the preset line quality;
if so, judging whether the number of the data packets of the line is not more than the number of the data packets preset on the line;
and if so, triggering the transmission unit.
9. A computer arrangement comprising a processor, wherein the processor, when executing a computer program stored on a memory, is adapted to perform the data packet transmission method of any of claims 1 to 5.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, is adapted to carry out the data packet transmission method according to any one of claims 1 to 5.
CN201911223297.7A 2019-12-03 2019-12-03 Data packet transmission method and system Pending CN111314163A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911223297.7A CN111314163A (en) 2019-12-03 2019-12-03 Data packet transmission method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911223297.7A CN111314163A (en) 2019-12-03 2019-12-03 Data packet transmission method and system

Publications (1)

Publication Number Publication Date
CN111314163A true CN111314163A (en) 2020-06-19

Family

ID=71147083

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911223297.7A Pending CN111314163A (en) 2019-12-03 2019-12-03 Data packet transmission method and system

Country Status (1)

Country Link
CN (1) CN111314163A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111917717A (en) * 2020-06-24 2020-11-10 格创东智(深圳)科技有限公司 Method and system for automatically analyzing industrial field protocol based on gateway identification

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026536A (en) * 2006-02-17 2007-08-29 日本电气株式会社 Communications apparatus, communications system, and communication method
CN101447929A (en) * 2008-12-26 2009-06-03 华为技术有限公司 Traffic routing method, router and communication system
CN102415024A (en) * 2009-04-27 2012-04-11 高通股份有限公司 Multimedia broadcast forwarding systems and methods
WO2013065477A1 (en) * 2011-11-01 2013-05-10 株式会社日立製作所 Communication system
WO2016172958A1 (en) * 2015-04-30 2016-11-03 华为技术有限公司 Dynamic traffic control method, device and home gateway, and hybrid access aggregation point
CN106941686A (en) * 2016-01-05 2017-07-11 ***通信集团山东有限公司 A kind of path method of adjustment, OSS webmasters and PTN webmasters
CN109819476A (en) * 2017-11-21 2019-05-28 腾讯科技(深圳)有限公司 A kind of network optimized approach and terminal, storage medium
CN110049505A (en) * 2019-04-08 2019-07-23 Oppo广东移动通信有限公司 Data transmission method and relevant apparatus

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026536A (en) * 2006-02-17 2007-08-29 日本电气株式会社 Communications apparatus, communications system, and communication method
CN101447929A (en) * 2008-12-26 2009-06-03 华为技术有限公司 Traffic routing method, router and communication system
CN102415024A (en) * 2009-04-27 2012-04-11 高通股份有限公司 Multimedia broadcast forwarding systems and methods
WO2013065477A1 (en) * 2011-11-01 2013-05-10 株式会社日立製作所 Communication system
WO2016172958A1 (en) * 2015-04-30 2016-11-03 华为技术有限公司 Dynamic traffic control method, device and home gateway, and hybrid access aggregation point
CN106941686A (en) * 2016-01-05 2017-07-11 ***通信集团山东有限公司 A kind of path method of adjustment, OSS webmasters and PTN webmasters
CN109819476A (en) * 2017-11-21 2019-05-28 腾讯科技(深圳)有限公司 A kind of network optimized approach and terminal, storage medium
CN110049505A (en) * 2019-04-08 2019-07-23 Oppo广东移动通信有限公司 Data transmission method and relevant apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111917717A (en) * 2020-06-24 2020-11-10 格创东智(深圳)科技有限公司 Method and system for automatically analyzing industrial field protocol based on gateway identification

Similar Documents

Publication Publication Date Title
US9998357B2 (en) Multipath transmission based packet traffic control method and apparatus
CN110830391A (en) Resource allocation method and device and cluster system
EP3614630A1 (en) Method for link aggregation and related products
CN108768873A (en) A kind of flow control methods and relevant device
US9270556B2 (en) Flow control in packet processing systems
Huang et al. Adjusting packet size to mitigate TCP incast in data center networks with COTS switches
US10389636B2 (en) Technologies for adaptive routing using network traffic characterization
CN109769029B (en) Communication connection method based on electricity consumption information acquisition system and terminal equipment
CN108924203B (en) Data copy self-adaptive distribution method, distributed computing system and related equipment
CN109995664B (en) Method, equipment and system for transmitting data stream
CN111404839B (en) Message processing method and device
CN111953611B (en) Traffic distribution method and device in hybrid access network
Nguyen et al. Performance evaluation of TCP congestion control algorithms in data center networks
DE102022121268A1 (en) CONGESTION CONTROL BASED ON NETWORK TELEMETRY
DE102022129250A1 (en) Transmission rate based on detected available bandwidth
CN111314163A (en) Data packet transmission method and system
CN110597631B (en) Resource management method, monitoring server, proxy server, and storage medium
CN110958184B (en) Bandwidth adjusting method and device
CN111447100B (en) User bandwidth control method, device, computer equipment and storage medium
DE102018006687A1 (en) TECHNIQUES FOR SELECTING NON-MINIMUM WAYS AND THREADING THE CONNECTION SPEEDS TO INCREASE THE THROUGHPUT IN A NETWORK
CN115514708B (en) Congestion control method and device
CN109787922B (en) Method and device for acquiring queue length and computer readable storage medium
CN107659511B (en) Overload control method, host, storage medium and program product
CN105704057B (en) The method and apparatus for determining the type of service of burst port congestion packet loss
CN112436982B (en) Network flow automatic mixed running test method, system, terminal and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200619

RJ01 Rejection of invention patent application after publication