CN115987880A - Multilink aggregation system and multilink aggregation method - Google Patents

Multilink aggregation system and multilink aggregation method Download PDF

Info

Publication number
CN115987880A
CN115987880A CN202211500382.5A CN202211500382A CN115987880A CN 115987880 A CN115987880 A CN 115987880A CN 202211500382 A CN202211500382 A CN 202211500382A CN 115987880 A CN115987880 A CN 115987880A
Authority
CN
China
Prior art keywords
aggregation
protocol
multilink
data
transmission
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
CN202211500382.5A
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.)
AVCON INFORMATION TECHNOLOGY CO LTD
Original Assignee
AVCON INFORMATION TECHNOLOGY CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by AVCON INFORMATION TECHNOLOGY CO LTD filed Critical AVCON INFORMATION TECHNOLOGY CO LTD
Priority to CN202211500382.5A priority Critical patent/CN115987880A/en
Publication of CN115987880A publication Critical patent/CN115987880A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a multilink aggregation system and a multilink aggregation method. The multilink aggregation system includes: an aggregation terminal and an aggregation server; the aggregation terminal comprises an aggregation program module and a protocol relay module; the aggregation program module is connected with the protocol relay module; and the protocol relay module and the aggregation server perform data transmission based on a preset transmission protocol, wherein the preset transmission protocol comprises a transmission protocol with a flow control characteristic. According to the multilink aggregation system, the protocol relay module can continue to send data only under the condition that the aggregation server can receive the data, packet sending waste is avoided, bandwidth is greatly saved, and more flow can be saved for a user; meanwhile, on the basis of saving bandwidth, the CPU occupancy rate is greatly reduced, lower configuration can be selected for achieving the same performance, and the implementation cost is saved.

Description

Multilink aggregation system and multilink aggregation method
Technical Field
The present invention relates to the field of ethernet communications, and in particular, to a multilink aggregation system and a multilink aggregation method.
Background
The multilink aggregation terminal is a special routing device, which can aggregate multiple ethernet links into a single link at the system level, and a user program (i.e., a user end) can actually send data to multiple physical links as if a single network port is used without paying attention to the actual transmission mode of the data on the physical links. The method is simple to realize, the user program does not need to be modified, the extension channel is flexible and controllable, and the method is widely used.
At present, such devices in the market basically transmit intermediate data through a udp (User data report) Protocol or an udp-based extended Protocol such as a srt (Secure Reliable Transport) Protocol, and this method has the characteristics of simple implementation and rapid response, but also has the problems of low utilization rate of effective data packets and high occupancy rate of a Central Processing Unit (CPU), which may cause the cost of the devices to rise and waste a large amount of sim (Subscriber Identity module) card traffic during use.
Disclosure of Invention
The invention aims to provide a multilink aggregation system and a multilink aggregation method, which have the advantages of high utilization rate of data packets, low CPU occupancy rate, lower equipment cost, flow saving and the like.
To solve the problems in the prior art, in a first aspect, the present invention provides a multilink aggregation system, where the multilink aggregation includes: an aggregation terminal and an aggregation server; wherein,
the aggregation terminal comprises an aggregation program module and a protocol relay module; the aggregation program module is connected with the protocol relay module; and the protocol relay module and the aggregation server perform data transmission based on a preset transmission protocol, wherein the preset transmission protocol comprises a transmission protocol with a flow control characteristic.
Optionally, the preset transmission protocol is a transmission protocol in a non-blocking mode.
Optionally, the preset transmission protocol includes a TCP protocol and the protocol relay module includes a TCP protocol relay module.
Optionally, the number of the protocol relay modules is multiple, and the multiple protocol relay modules are connected to both the aggregation program module and the aggregation server.
Optionally, the aggregation program module includes:
the first data receiving port is connected with the user side and used for receiving the transmission data sent by the user side;
and the plurality of first data output ports are connected with the plurality of protocol relay modules in a one-to-one correspondence manner.
Optionally, the aggregation server includes:
a plurality of second data receiving ports, which are connected with the plurality of protocol relay modules in a one-to-one correspondence manner;
a second data output port.
The present invention also provides a multilink aggregation method performed based on the multilink aggregation system as described in the first aspect, the multilink aggregation method including:
the aggregation program module receives transmission data needing to be transmitted;
and the protocol relay module transmits the transmission data to the aggregation server based on the preset transmission protocol.
As described above, the multilink aggregation system and the multilink aggregation method of the present invention have the following advantageous effects: in the multilink aggregation system, the protocol relay module is arranged at the aggregation terminal, the protocol relay module and the aggregation server are subjected to data transmission based on the transmission protocol with the flow control characteristic, and the protocol relay module can continue to send data only under the condition that the aggregation server can receive the data, so that packet sending waste is avoided, the bandwidth is greatly saved, and more flow can be saved for a user; meanwhile, on the basis of saving bandwidth, the CPU occupancy rate is greatly reduced, lower configuration can be selected for achieving the same performance, and the implementation cost is saved.
Drawings
Fig. 1 is a schematic structural diagram of a multilink aggregation system according to an embodiment of the present invention.
Fig. 2 is a flowchart of a multilink aggregation method according to a second embodiment of the present invention.
Description of reference numerals: 1. a polymerization termination; 11. an aggregation program module; 12. a protocol relay module; 2. an aggregation server; 3. and a user side.
Detailed Description
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 preferred embodiments in the following description are given by way of example only, and other obvious variations will occur to those skilled in the art. The basic principles of the invention, as defined in the following description, may be applied to other embodiments, variations, modifications, equivalents, and other technical solutions without departing from the spirit and scope of the invention.
It will be understood by those skilled in the art that in the present disclosure, the terms "longitudinal," "lateral," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," and the like are used in an orientation or positional relationship indicated in the drawings for ease of description and simplicity of description, and do not indicate or imply that the referenced devices or components must be constructed and operated in a particular orientation and thus are not to be considered limiting.
The multilink aggregation terminal is a special routing device, which can aggregate multiple ethernet links into a single link at the system level, and a user program (i.e., a user end) can actually send data to multiple physical links as if a single network port is used without paying attention to the actual transmission mode of the data on the physical links. The method is simple to realize, the user program does not need to be modified, the extension channel is flexible and controllable, and the method is widely used.
At present, such devices in the market basically transmit intermediate data through a udp (User data report) Protocol or an udp-based extended Protocol such as a srt (Secure Reliable Transport) Protocol, and this method has the characteristics of simple implementation and rapid response, but also has the problems of low utilization rate of effective data packets and high occupancy rate of a Central Processing Unit (CPU), which may cause the cost of the devices to rise and waste a large amount of sim card traffic during use.
The above mentioned udp transmission causes the problems of device cost increase and traffic waste, and the root cause is that the udp Protocol does not have a flow control feature, and the sending end is only responsible for sending and removing an IP (Internet Protocol) packet and is not responsible for detecting whether the IP packet is received, so that the sending end can send these data as long as there is user program data, and the device has a lot of invalid data sending actions regardless of whether the current bandwidth can bear the data amount, thereby causing processor resources to be occupied and traffic to be wasted uselessly.
Example one
Referring to fig. 1, the present invention provides a multi-link aggregation system, which includes: an aggregation terminal 1 and an aggregation server 2; wherein,
the aggregation terminal 1 comprises an aggregation program module 11 and a protocol relay module 12; the aggregation program module 11 is connected with the protocol relay module 12; the protocol relay module 12 and the aggregation server 2 perform data transmission based on a preset transmission protocol, where the preset transmission protocol includes a transmission protocol with a flow control characteristic.
In the multilink aggregation system, the protocol relay module 12 is arranged at the aggregation terminal 1, data transmission is carried out between the protocol relay module 12 and the aggregation server 2 based on a transmission protocol with flow control characteristics, and the protocol relay module 12 can continue to send data only under the condition that the aggregation server 2 can receive the data, so that packet sending waste is avoided, bandwidth is greatly saved, and more flow can be saved for users; meanwhile, on the basis of saving bandwidth, the CPU occupancy rate is greatly reduced, lower configuration can be selected for achieving the same performance, and the implementation cost is saved.
As an example, the preset transmission protocol is a transmission protocol of a non-blocking mode.
In one example, the predetermined Transmission Protocol may include a TCP (Transmission Control Protocol) Protocol and the Protocol relay module 12 may include a TCP Protocol relay module.
As an example, the number of the protocol relay modules 12 is plural, and a plurality of the protocol relay modules 12 are connected to both the aggregation program module 11 and the aggregation server 2.
Specifically, the number of the protocol relay modules 12 may be set according to actual needs, in fig. 1, the number of the protocol relay modules 12 is three as an example, and in other examples, the number of the protocol relay modules 2 is not limited to the number in fig. 1.
As an example, the aggregation program module 11 may include:
a first data receiving port (not shown), which is connected to a user terminal 3 and is configured to receive transmission data sent by the user terminal 3;
a plurality of first data output ports (not shown) connected to the plurality of protocol relay modules 12 in a one-to-one correspondence.
Specifically, as shown in fig. 1, the user side 3 may include n user programs (i.e., a first user program to an 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 multiple, and when the number of the first data receiving ports is multiple, the number of the first data receiving ports may be the same as the number of the user programs, and at this time, the first data receiving ports may be connected to the n user programs in a one-to-one correspondence manner.
As an example, the aggregation server 2 may include:
a plurality of second data receiving ports (not shown), which are connected to the plurality of protocol relay modules 12 in a one-to-one correspondence;
a second data output port (not shown).
For convenience of understanding, the specific scheme of the present invention is further elaborated below by taking the predetermined transmission protocol as an example of a TCP protocol.
The multilink aggregation system of the invention adopts the TCP protocol, and can judge the link state stated by the data through the accumulation condition of the sending buffer area. Specifically, since TCP has a flow control mechanism, both ends (i.e. the protocol relay module 12 and the aggregation server 2) will generate reliable transmission and response based on this mechanism. On the basis, the residual data size of the sending buffer of the local socket has some attributes for representing the link bandwidth, because if the data bandwidth is close to the upper limit, the sending buffer will be piled up, otherwise, the sending buffer will not be piled up.
The multilink aggregation system of the invention has the advantage of bandwidth saving due to the adoption of the TCP protocol. Specifically, based on the flow control characteristic of TCP, only when the opposite end (e.g., the aggregation server 2 in fig. 1) can receive the packet, the local end (e.g., the protocol relay module 12 in fig. 1) can continue to send the packet, which avoids packet sending waste, greatly saves bandwidth, and saves more traffic cost for the user when the 4G/5G module is used for wireless transmission.
The multilink aggregation system of the invention has the advantage of saving CPU due to the adoption of the TCP protocol. On the basis of saving the bandwidth, the CPU occupancy rate is greatly reduced at the same time, and for a terminal device (such as the aggregation terminal 1) and a server (such as the aggregation server 2), lower configuration can be selected to achieve the same performance, so that the implementation cost is saved.
It should be noted that, in data transmission, if a TCP protocol is used for transmission, because the process of establishing a connection with the TCP is complex, if a situation that a signal difference, an antenna disconnection, and the like occur during the use of the multilink aggregation system and cause a TCP connection disconnection (for example, the TCP protocol transmission link of the protocol relay module 12 and the aggregation server 2 of the present invention is disconnected), the time for recovering is longer than that of the udp protocol, but the delay time can be usually controlled within 1 second, and is not too far away as compared with the udp protocol, and is within an acceptable range. In addition, the Linux system defaults to a TCP blocking mode, which may cause the connection to wait for a state while the program cannot detect the state in case of a network anomaly. In the multilink aggregation system of the present invention, by setting a plurality of protocol relay modules 12, the relevant operations of reconnection of each TCP can be performed in independent threads, so as to avoid that the normal transceiving of other links is influenced due to the abnormality of a certain link. In addition, in the multilink aggregation system of the present invention, by setting the preset transmission protocol to the transmission protocol of the non-blocking mode, a failure can be returned when the execution of connection is overtime, and the next attempt can be automatically made.
It should be further noted that the flow control mechanism of the Tcp protocol needs to use a slow start algorithm for initial bandwidth detection, and the bandwidth is limited at the beginning of data transmission, and usually reaches the bandwidth peak step by step after 2-3 seconds. The characteristic can be that a plurality of TCP connections can be simultaneously established through a single physical channel at present, and evasion and optimization are carried out in a mode of transmitting data in a rotating mode, because the initial window of a single TCP link is fixed, and the initial low-bandwidth problem caused by a slow start algorithm can be counteracted by overlapping a plurality of TCP connections.
Specifically, a physical link is established after the sim card is successfully dialed, and a single TCP connection is usually used to establish a connection with the server address. However, the initial window specified by the TCP protocol is small, and after the data transmission is started, the window is gradually enlarged (which is the main step of the flow control mechanism of the TCP), so that the bandwidth is low at the beginning (at this time, the actual bandwidth of the physical path is high), and the window gradually increases. In order to solve the problem of low initial bandwidth caused by slow start of a TCP protocol, a plurality of protocol relay modules 12 are arranged in the multilink aggregation system, a plurality of TCP connections can be established on a single link, and the bandwidths of a plurality of initial windows are superposed, so that the transmission bandwidth can be expanded to a certain extent, and the influence caused by the characteristics is reduced.
Because data is sent on the same physical link, and ip packets are sequentially sent on a plurality of TCP connections according to the sequence, the problem of bandwidth reduction caused by overlarge delay difference of the links can not be generated, and a program only needs to arrange a buffer pool at a receiving end and place the ip packets according to serial number.
It should be further noted that the TCP protocol has a connection status, and in actual program development, various abnormal situations need to be handled, and particularly, in multilink multithreading, various statuses need to be handled with great care, otherwise performance degradation is easily caused.
TCP has many states, and when the benefits of these states are fully utilized, the disadvantages of complex processing are also accepted.
1. In practical use, in order to avoid the problem of bandwidth reduction caused by mutual blocking among multiple TCP connections, a special working thread is usually required to be set for each TCP connection, and the transceiving is separated, the state mutual exclusion among threads cannot be realized through a thread lock (bandwidth reduction caused by too much overhead), and the related resource mutual exclusion can be realized through an atomic variable; in the invention, the independence of the working threads of different protocol relay modules 12 can be realized by arranging the second data receiving ports with the same number as the protocol relay modules 12 in the aggregation server 2.
2. User data to be sent need to be queued first, so that the problem of data loss caused by network bandwidth floating is avoided.
3. And performing corresponding operations of closing and reconnecting until the program is restarted by calling and returning the state through the systems such as read, write, select and the like, so that the data connection between the equipment and the service is kept.
Specifically, the multilink aggregation system of the present invention sets a physical data channel between the aggregation terminal 1 and the aggregation server 2 as a TCP connection, and divides the TCP connection on the aggregation terminal 1 by a network name space, establishes a connection with the remote polymer server 2 by one protocol relay module 12 in each space, and sequentially establishes a local network capable of converging the physical channel to a virtual channel.
Specifically, as can be seen from fig. 1, compared with the implementation based on the udp protocol, the framework of the aggregation terminal 1 is more complex, a plurality of protocol relay modules 12 are added, a TCP connection with a state is established between the aggregation terminal and the aggregation server 2, and it is necessary to quickly handle the case of abnormal disconnection of the connection. Also due to the nature of the connection state of TCP, the difficulty of multithreading is increased. However, compared with the udp protocol, the multilink aggregation system of the present invention uses the TCP protocol to perform data transmission between the aggregation terminal 1 and the aggregation server 2, which can reduce the invalid traffic consumption, reduce the requirements on the device performance, and actually reduce the device implementation cost and the use cost; the manufacturer can use the equipment with lower configuration to realize the same index, and the user can avoid the waste of flow in the actual use.
Example two
Referring to fig. 2 in conjunction with fig. 1, the present embodiment further provides a multilink aggregation method, which is performed based on the multilink aggregation system according to the first embodiment, and the multilink aggregation method includes:
s10: the aggregation program module receives transmission data needing to be transmitted;
s20: and the protocol relay module transmits the transmission data to the aggregation server based on the preset transmission protocol.
Specifically, please refer to the first embodiment for the specific structure and principle of the multilink aggregation system, which is not similar here.
The multilink aggregation method is executed based on the multilink aggregation system in the first embodiment, so that packet sending waste is avoided, bandwidth is greatly saved, and more flow can be saved for users; meanwhile, on the basis of saving the bandwidth, the CPU occupancy rate is greatly reduced, lower configuration can be selected for achieving the same performance, and the implementation cost is saved.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.
Furthermore, it should be understood that although the present description refers to embodiments, not every embodiment may contain only a single embodiment, and such description is for clarity only, and those skilled in the art should integrate the description, and the embodiments may be combined as appropriate to form other embodiments understood by those skilled in the art.

Claims (7)

1. A multi-link aggregation system, comprising: an aggregation terminal and an aggregation server; wherein,
the aggregation terminal comprises an aggregation program module and a protocol relay module; the aggregation program module is connected with the protocol relay module; and the protocol relay module and the aggregation server perform data transmission based on a preset transmission protocol, wherein the preset transmission protocol comprises a transmission protocol with a flow control characteristic.
2. The system of claim 1, wherein the predetermined transport protocol is a non-blocking mode transport protocol.
3. The system of claim 1, wherein the predetermined transport protocol comprises a TCP protocol and the protocol relay module comprises a TCP protocol relay module.
4. The multilink aggregation system according to any one of claims 1 to 3, wherein the number of the protocol relay modules is plural, and the plural protocol relay modules are connected to both the aggregation program module and the aggregation server.
5. The multilink aggregation system of claim 4, wherein the aggregation program module comprises:
the first data receiving port is connected with a user side and used for receiving transmission data sent by the user side;
and the plurality of first data output ports are connected with the plurality of protocol relay modules in a one-to-one correspondence manner.
6. The multilink aggregation system according to claim 5, wherein the aggregation server includes:
the plurality of second data receiving ports are connected with the plurality of protocol relay modules in a one-to-one correspondence manner;
a second data output port.
7. A multilink aggregation method, characterized in that the multilink aggregation method is performed based on the multilink aggregation system according to any one of claims 1 to 6; the multilink aggregation method comprises the following steps:
the aggregation program module receives transmission data needing to be transmitted;
and the protocol relay module transmits the transmission data to the aggregation server based on the preset transmission protocol.
CN202211500382.5A 2022-11-28 2022-11-28 Multilink aggregation system and multilink aggregation method Pending CN115987880A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211500382.5A CN115987880A (en) 2022-11-28 2022-11-28 Multilink aggregation system and multilink aggregation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211500382.5A CN115987880A (en) 2022-11-28 2022-11-28 Multilink aggregation system and multilink aggregation method

Publications (1)

Publication Number Publication Date
CN115987880A true CN115987880A (en) 2023-04-18

Family

ID=85965479

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211500382.5A Pending CN115987880A (en) 2022-11-28 2022-11-28 Multilink aggregation system and multilink aggregation method

Country Status (1)

Country Link
CN (1) CN115987880A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120093150A1 (en) * 2010-10-15 2012-04-19 Telefonaktiebolaget L M Ericsson Multipath transmission control protocol proxy
CN103004167A (en) * 2010-04-06 2013-03-27 高通股份有限公司 Cooperative bandwidth aggregation using multipath transport
CN104581892A (en) * 2014-12-05 2015-04-29 华为技术有限公司 Data transmission method and device of terminal
CN106790532A (en) * 2016-12-21 2017-05-31 清华大学深圳研究生院 A kind of online live method for uploading and system based on edge network polymerization

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103004167A (en) * 2010-04-06 2013-03-27 高通股份有限公司 Cooperative bandwidth aggregation using multipath transport
US20120093150A1 (en) * 2010-10-15 2012-04-19 Telefonaktiebolaget L M Ericsson Multipath transmission control protocol proxy
CN104581892A (en) * 2014-12-05 2015-04-29 华为技术有限公司 Data transmission method and device of terminal
CN106790532A (en) * 2016-12-21 2017-05-31 清华大学深圳研究生院 A kind of online live method for uploading and system based on edge network polymerization

Similar Documents

Publication Publication Date Title
US11606720B2 (en) Flow control method and apparatus, CU, DU and storage medium
US7411973B2 (en) System and method for interfacing with a management system
CN100589408C (en) A communication network connection method and its device
US8667167B2 (en) Method and network device for controlling transmission rate of communication interface
CN102014019B (en) Aggregated link switching method and device
CN107465613B (en) Link aggregation interface communication state switching method and device
EP2829147A1 (en) Apparatus and methods for mitigating tcp protocol - induced back-offs in a communication network
EP2996275B1 (en) Link processing method and mobile terminal in multiplexing control protocol
CN108737188B (en) Network card fault switching system
CN101051957B (en) Dynamically regulating method and device for link state and bundled link state
CN111147573A (en) Data transmission method and device
CN102843274B (en) The method of a kind of multilink fault detection and device
CN114448896A (en) Network optimization method and device
JP3003095B1 (en) Flow control method
CN102868945B (en) The upgrade method of ONU in a kind of EPON
CN115987880A (en) Multilink aggregation system and multilink aggregation method
CN109996349B (en) Session recovery method and device
CN112134797A (en) Method and equipment for improving overtime of link aggregation protocol
CN115883492B (en) RoCE-SAN lossless storage network fault convergence method under MLAG environment
CN109067663B (en) System and method for controlling request response rate in application program
Cisco FastPAD Events
Cisco FastPAD Events
CN104580171A (en) TCP (transmission control protocol) transmission method, device and system
CN111274195B (en) RDMA network flow control method, device and computer readable storage medium
CN112866133B (en) Method and device for acquiring MSS (maximum segment size)

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