Transmission link bandwidth detection system and detection method
By setting up the TCP relay module and detection module in the aggregate terminal of the Ethernet communication device, the flow control characteristics of the TCP protocol are used to detect the transmission link bandwidth in real time, and the problems of data waste and high cost caused by bandwidth detection in the prior art are solved. , realizes efficient bandwidth detection and traffic saving.
Patent Information
- Application Number
- CN202211500401.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-28
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2042-11-28
AI Technical Summary
When existing Ethernet communication devices detect transmission link bandwidth, they need to send additional test data on both ends of the terminal device and the server, resulting in waste of additional data, poor user traffic savings and high usage costs.
By setting up a TCP relay module at the aggregation terminal, a transmission link is established based on the TCP protocol with the aggregation server, and the detection module uses the detection module to detect the remaining data to be transmitted in the TCP buffer in real time, and determine the bandwidth of the transmission link.
Transmission link bandwidth detection can be achieved without sending additional test data, saving user traffic, reducing usage costs, and improving key indicators.
Smart Images

Figure CN115883374B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Ethernet communication, and in particular to a transmission link bandwidth detection system and a detection method. Background Art
[0002] A multi-link aggregation terminal is a special routing device that can aggregate multiple Ethernet links into a single link at the system level. The user program (i.e., the user end) does not need to pay attention to the actual transmission mode of the data on the physical link, and can actually send data to multiple physical links as if using a single network port. This method is simple to implement, the user program does not need to be modified, and the expansion channel is flexible and controllable, and has been widely used.
[0003] Currently, such devices on the market basically use the UDP (User Datagram Protocol) protocol or UDP-based extended protocols such as the SRT (Secure Reliable Transport) protocol for intermediate data transmission. The channel bandwidth of a single link can usually only be estimated by regularly sending and receiving additional test data, and this data is used as the basis for allocating link channels for application data.
[0004] In multi-link aggregation services, it is necessary to make some judgments on the physical characteristics of a single transmission link, such as bandwidth and latency, so that the data of the user program can be optimized in the channels of these transmission links and reach the other end better and faster.
[0005] Since the UDP protocol is a stateless protocol, whether data is lost during the transmission process and whether the transmission link can carry the current amount of user data cannot be judged through the protocol stack or operating system properties. Therefore, the bandwidth of the current transmission link can only be measured by transmitting test data back and forth between the terminal device and the server at a regular interval, and then the measurement results are provided to the business program for data ratio allocation. Although this method can also achieve the purpose, it sacrifices additional bandwidth and wastes a certain amount of traffic, which will have a certain negative impact on the device's traffic saving indicators and reduce the device's competitiveness in core indicators. Summary of the invention
[0006] The purpose of the present invention is to provide a transmission link bandwidth detection system and a detection method. In the transmission link bandwidth detection system of the present invention, the transmission link bandwidth can be detected without sending additional test data at both ends of the terminal device and the server, which has the advantages of not causing additional data waste, saving user traffic, reducing usage costs, and improving key indicators.
[0007] In order to solve the problems in the prior art, in a first aspect, the present invention provides a transmission link bandwidth detection system, comprising:
[0008] Aggregation server;
[0009] An aggregation terminal, the aggregation terminal includes an aggregation program module and a TCP relay module; the TCP relay module includes a TCP buffer; the aggregation program module is connected to the TCP buffer, and is used to send the data to be transmitted sent by the user end to the TCP buffer; the TCP relay module establishes a transmission link with the aggregation server based on the TCP protocol to transmit the data to be transmitted to the aggregation server;
[0010] The detection module is connected to the TCP buffer and is used to detect the remaining amount of the data to be transmitted in the TCP buffer in real time during the process of the TCP relay module transmitting the data to be transmitted to the aggregation server, and to determine the bandwidth of the corresponding transmission link based on the remaining amount of data.
[0011] Optionally, the detection module is located in the user terminal.
[0012] Optionally, the number of the TCP relay modules and the number of the TCP buffers are both multiple, and the multiple TCP relay modules respectively establish transmission links with the aggregation server based on the TCP protocol; and the multiple TCP buffers are connected to the aggregation program module.
[0013] Optionally, the aggregation program module includes:
[0014] A first data receiving port, connected to the user terminal, and used to receive the data to be transmitted sent by the user terminal;
[0015] A plurality of first data output ports are connected to the plurality of TCP buffers in a one-to-one correspondence.
[0016] Optionally, the aggregation server includes:
[0017] A plurality of second data receiving ports, wherein the plurality of second data receiving ports are connected to the plurality of TCP buffers in a one-to-one correspondence;
[0018] Second data output port.
[0019] Optionally, the aggregation program module is also connected to the detection module, and is used to transfer the data to be transmitted to other TCP buffers when the detection module detects that the remaining data amount in the TCP buffer is greater than a preset data amount.
[0020] The present invention also provides a transmission link bandwidth detection method, the transmission link bandwidth detection method comprising:
[0021] Establish a transmission link based on the TCP protocol to transmit the data to be transmitted;
[0022] Detecting the remaining data amount in the TCP buffer corresponding to the transmission link in real time during the data transmission process;
[0023] The bandwidth of the corresponding transmission link is determined based on the remaining data amount.
[0024] Optionally, multiple transmission links are established based on the TCP protocol to transmit the data to be transmitted; after the remaining data amount in the TCP buffer corresponding to the transmission link is detected in real time during the data transmission process, the method further includes:
[0025] Determine whether the remaining data amount in the TCP buffer is greater than a preset data amount;
[0026] If so, the data to be transmitted is transferred to the other TCP buffers for data transmission.
[0027] As described above, the transmission link bandwidth detection system and detection method of the present invention have the following beneficial effects:
[0028] In the transmission link bandwidth detection system of the present invention, a TCP relay module is set at the aggregation terminal, and a transmission link is established between the TCP relay module and the aggregation server based on the TCP protocol for data transmission. There is no need to send additional test data at both ends of the terminal device and the server. It only needs to use the detection module to detect the remaining data amount of the data to be transmitted in the current TCP buffer to determine whether the current link has reached the upper limit of the transmission capacity, thereby realizing the detection of the transmission link bandwidth, without causing additional data waste, saving user traffic, reducing usage costs, and improving key indicators.
[0029] In the transmission link bandwidth detection method of the present invention, in the process of transmitting data to be transmitted through the transmission link established based on the TCP protocol, the remaining data amount of the data to be transmitted in the TCP buffer corresponding to the transmission link is detected in real time. It is not necessary to send additional test data at both ends of the terminal device and the server. It can be judged whether the current link has reached the upper limit of the transmission capacity, thereby realizing the detection of the transmission link bandwidth, without causing additional data waste, saving user traffic, reducing usage costs, and improving key indicators. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 This is a schematic diagram of the structure of a transmission link bandwidth detection system provided in Embodiment 1 of the present invention.
[0031] Figure 2 This is a flow chart of a transmission link bandwidth detection method provided in Embodiment 2 of the present invention.
[0032] Explanation of reference numerals: 1. Aggregation terminal; 11. Aggregation program module; 12. TCP relay module; 121. TCP buffer; 2. Aggregation server; 3. User end. DETAILED DESCRIPTION
[0033] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0034] The preferred embodiments described below are for example only, and those skilled in the art may think of other obvious variations. The basic principles of the present invention defined in the following description may be applied to other embodiments, variations, improvements, equivalents, and other technical solutions that do not deviate from the spirit and scope of the present invention.
[0035] Those skilled in the art should understand that, in the disclosure of the present invention, the orientation or position relationship indicated by the terms "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc. are based on the orientation or position relationship shown in the drawings, which are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation. Therefore, the above terms should not be understood as limiting the present invention.
[0036] Embodiment 1
[0037] See also Figure 1 As shown, the present invention provides a transmission link bandwidth detection system, the transmission link bandwidth detection system comprises: an aggregation server 2; an aggregation terminal 1, the aggregation terminal 1 comprises an aggregation program module 11 and a TCP (Transmission Control Protocol) relay module 12; the TCP relay module 12 comprises a TCP buffer 121; the aggregation program module 12 is connected to the TCP buffer 121, and the aggregation program module 12 is used to send the data to be transmitted sent by the user end to the TCP buffer 121; the TCP relay module 12 establishes a transmission link with the aggregation server 2 based on the TCP protocol to transmit the data to be transmitted to the aggregation server 2;
[0038] A detection module (not shown), which is connected to the TCP buffer 121, and is used to detect the remaining amount of the data to be transmitted in the TCP buffer 121 in real time during the process of the TCP relay module 12 transmitting the data to be transmitted to the aggregation server 2, and to determine the bandwidth of the corresponding transmission link based on the remaining amount of data.
[0039] In the transmission link bandwidth detection system of the present invention, by setting the TCP relay module 12 in the aggregation terminal 1, a transmission link is established between the TCP relay module 12 and the aggregation server 2 based on the TCP protocol for data transmission. There is no need to send additional test data at both ends of the terminal device and the server. It is only necessary to use the detection module to detect the remaining data amount of the data to be transmitted in the current TCP buffer 121 to determine whether the current link has reached the upper limit of the transmission capacity, thereby realizing the detection of the transmission link bandwidth, without causing additional data waste, saving user traffic, reducing usage costs, and improving key indicators.
[0040] As an example, the TCP protocol is a blocking mode transmission protocol.
[0041] As an example, the detection module is located in the user terminal 3. Of course, in other examples, the detection module may also be located in the aggregation terminal 1, or may be independent of the user terminal 3 and the aggregation terminal 1.
[0042] As an example, the number of the TCP relay modules 12 and the number of the TCP buffers 121 can both be multiple, and the multiple TCP relay modules 12 each establishes a transmission link with the aggregation server 2 based on the TCP protocol, and multiple transmission links can be established between the multiple TCP relay modules 12 and the aggregation server 2; the multiple TCP buffers 121 are connected to the aggregation program module 11.
[0043] Specifically, the number of the TCP relay modules 12 can be set according to actual needs. Figure 1 In the example, the number of the TCP relay modules 12 is three. In other examples, the number of the TCP relay modules 2 is not Figure 1 The number is limited.
[0044] As an example, the aggregation program module 11 may include:
[0045] A first data receiving port (not shown), the first data receiving port is connected to the user terminal 3, and the first data receiving port is used to receive the data to be transmitted sent by the user terminal 3;
[0046] A plurality of first data output ports (not shown), wherein the plurality of first data output ports are connected to the plurality of TCP buffers 121 in a one-to-one correspondence.
[0047] Specifically, Figure 1 As shown, the user terminal 3 may include n user programs (i.e., the first user program to the nth user program), where n is an integer greater than or equal to 2. The number of the first data receiving ports may be one or more. When the number of the first data receiving ports is more than one, it may be the same as the number of the user programs. In this case, the first data receiving port may be connected to the n user programs in a one-to-one correspondence.
[0048] As an example, the aggregation server may include:
[0049] A plurality of second data receiving ports (not shown), wherein the plurality of second data receiving ports are connected to the plurality of TCP buffers 121 in a one-to-one correspondence;
[0050] A second data output port (not shown).
[0051] The transmission link bandwidth detection system of the present invention has the advantage of saving bandwidth because it adopts the TCP protocol. Specifically, it is also based on the flow control characteristics of TCP. Only the other end (such as Figure 1 If the aggregation server 2 in the local Figure 1 The TCP relay module 12 in the network will continue to send data packets, thus avoiding the waste of packet sending and greatly saving bandwidth. When using the 4G / 5G module for wireless transmission, this feature can save users more traffic costs.
[0052] The transmission link bandwidth detection system of the present invention has the advantage of saving CPU due to the adoption of TCP protocol. On the basis of saving bandwidth, the CPU occupancy rate is also greatly reduced at the same time. For terminal devices (such as aggregation terminal 1) and servers (such as aggregation server 2), lower configurations can be selected to achieve the same performance, saving implementation costs.
[0053] Specifically, the transmission link bandwidth detection system of the present invention sets the physical data channel between the aggregation terminal 1 and the aggregation server 2 as a TCP connection, and divides it through the network name space on the aggregation terminal 1, establishes a connection with the remote aggregation server 2 through a TCP relay module 12 in each space, and successively establishes a local network that can aggregate the physical channel to the virtual channel.
[0054] As an example, the aggregation program module 11 is also connected to the detection module, and is used to transfer the data to be transmitted to other TCP buffers 121 when the detection module detects that the remaining data amount in the TCP buffer 121 is greater than the preset data amount.
[0055] Compared with the TCP protocol and the UDP protocol, the TCP protocol itself has the characteristics of flow control. During the process of sending and receiving data, the TCP protocol will actively detect the sending capacity of the current transmission link and confirm whether the data packet is reliably delivered. Since the additional consumption required for flow control was taken into consideration in the initial design, the TCP protocol itself has made a lot of optimization designs for this, so the performance loss caused by this can be almost ignored.
[0056] Based on the flow control characteristics, the user terminal 3 only needs to detect the remaining data amount in the current TCP buffer 121 when sending locally to determine whether the current transmission link has reached the upper limit of the sending capacity. When the sending capacity is close to the upper limit, the excess data can be allocated to other transmission links for sending, thus avoiding the need to send test data at both the terminal device and the server to perform a bandwidth evaluation process.
[0057] Embodiment 2
[0058] Please combine Figure 1 See also Figure 2 This embodiment also provides a transmission link bandwidth detection method, the transmission link bandwidth detection method comprising:
[0059] S10: Establishing a transmission link based on the TCP protocol to transmit the data to be transmitted;
[0060] S20: During the data transmission process, real-time detection of the remaining amount of the data to be transmitted in the TCP buffer 121 corresponding to the transmission link;
[0061] S30: Determine the bandwidth of the corresponding transmission link based on the remaining data amount.
[0062] Specifically, the specific structure and principle of the transmission link bandwidth detection system can be found in the first embodiment, which will not be repeated here.
[0063] In one example, multiple transmission links are established based on the TCP protocol to transmit data to be transmitted; after the remaining data amount of the data to be transmitted in the TCP buffer corresponding to the transmission link is detected in real time during the data transmission process, the method further includes:
[0064] S201: Determine whether the remaining amount of the data to be transmitted in the TCP buffer is greater than a preset amount of data;
[0065] S202: If yes, the data to be transmitted is transferred to other TCP buffer 121 areas for data transmission.
[0066] As an example, the transmission link bandwidth detection method may be executed based on the transmission link bandwidth detection system as described in the first embodiment.
[0067] In the transmission link bandwidth detection method of the present invention, by real-time detecting the remaining data amount of the data to be transmitted in the TCP buffer 121 corresponding to the transmission link in the process of transmitting the data to be transmitted through the transmission link established based on the TCP protocol, it is possible to determine whether the current link has reached the upper limit of the transmission capacity without sending additional test data at both ends of the terminal device and the server, thereby realizing the detection of the transmission link bandwidth, without causing additional data waste, saving user traffic, reducing usage costs, and improving key indicators.
[0068] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.
[0069] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.
Claims
1. A transmission link bandwidth detection system, characterized in that: include: Aggregation server; An aggregation terminal, the aggregation terminal includes an aggregation program module and a TCP relay module; the TCP relay module includes a TCP buffer; the aggregation program module is connected to the TCP buffer, and is used to send the data to be transmitted sent by the user end to the TCP buffer; the TCP relay module establishes a transmission link with the aggregation server based on the TCP protocol to transmit the data to be transmitted to the aggregation server; a detection module connected to the TCP buffer, and configured to detect in real time the amount of remaining data of the data to be transmitted in the TCP buffer during the process in which the TCP relay module transmits the data to be transmitted to the aggregation server, and to determine the bandwidth of the corresponding transmission link based on the amount of remaining data; The number of the TCP relay modules and the number of the TCP buffers are both multiple, and the multiple TCP relay modules respectively establish transmission links with the aggregation server based on the TCP protocol; the multiple TCP buffers are connected to the aggregation program module; The aggregation program module is also connected to the detection module, and is used to transfer the data to be transmitted to other TCP buffers when the detection module detects that the remaining data amount in the TCP buffer is greater than a preset data amount.
2. The transmission link bandwidth detection system according to claim 1, characterized in that: The detection module is located in the user terminal.
3. The transmission link bandwidth detection system according to claim 1, characterized in that: The aggregation program module includes: A first data receiving port, connected to the user terminal, and used to receive the data to be transmitted sent by the user terminal; A plurality of first data output ports are connected to the plurality of TCP buffers in a one-to-one correspondence.
4. The transmission link bandwidth detection system according to claim 3, characterized in that: The aggregation server comprises: A plurality of second data receiving ports, wherein the plurality of second data receiving ports are connected to the plurality of TCP buffers in a one-to-one correspondence; Second data output port.
5. A transmission link bandwidth detection method, applied to the transmission link bandwidth detection system according to any one of claims 1 to 4, characterized in that: The transmission link bandwidth detection method comprises: Establish a transmission link based on the TCP protocol to transmit the data to be transmitted; During the data transmission process, real-time detection of the remaining amount of the data to be transmitted in the TCP buffer corresponding to the transmission link; The bandwidth of the corresponding transmission link is determined based on the remaining data amount.
6. The transmission link bandwidth detection method according to claim 5, characterized in that: Establish multiple transmission links based on TCP protocol to transmit data to be transmitted; After detecting the remaining data amount in the TCP buffer corresponding to the transmission link in real time during the data transmission process, the method further includes: Determine whether the remaining data amount in the TCP buffer is greater than a preset data amount; If so, the data to be transmitted is transferred to the other TCP buffers for data transmission.
Citation Information
Patent Citations
System based on wireless multi-link bandwidth aggregation
CN106850455A
Bandwidth reservation apparatus, bandwidth reservation method, communication apparatus, and communication system
US20130232532A1