CN107018088B - Transmission link selection method and device - Google Patents

Transmission link selection method and device Download PDF

Info

Publication number
CN107018088B
CN107018088B CN201710127741.XA CN201710127741A CN107018088B CN 107018088 B CN107018088 B CN 107018088B CN 201710127741 A CN201710127741 A CN 201710127741A CN 107018088 B CN107018088 B CN 107018088B
Authority
CN
China
Prior art keywords
transmission link
message
preset
transmission
packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710127741.XA
Other languages
Chinese (zh)
Other versions
CN107018088A (en
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.)
Beijing An Polytron Technologies Inc
Original Assignee
Beijing An Polytron Technologies Inc
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 Beijing An Polytron Technologies Inc filed Critical Beijing An Polytron Technologies Inc
Priority to CN201710127741.XA priority Critical patent/CN107018088B/en
Publication of CN107018088A publication Critical patent/CN107018088A/en
Application granted granted Critical
Publication of CN107018088B publication Critical patent/CN107018088B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/52Queue scheduling by attributing bandwidth to queues

Abstract

The embodiment of the invention provides a transmission link selection method and a transmission link selection device. The embodiment of the invention takes the real-time occupied bandwidth ratio of the transmission links as the reference when the message is distributed, so that the real-time occupied bandwidth ratio of each transmission link is more consistent with the ratio between the preset bandwidths of each transmission link, and the flow of each transmission link is increased or reduced simultaneously according to the ratio between the preset bandwidths of each transmission link. Therefore, when the occupied bandwidth on a certain transmission link is close to the full bandwidth, other transmission links basically reach the full bandwidth, so that the bandwidth utilization rate of each transmission link is improved, and the phenomenon that the packet loss of the certain transmission link is caused by the full bandwidth and other links still have more unused bandwidths is avoided.

Description

Transmission link selection method and device
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a transmission link selection method and a transmission link selection device.
Background
Currently, with the rapid development of internet services, networks play more and more important roles in various aspects of society. Normally, a network operator provides a transmission link for the terminal of the enterprise to access the network, but the terminal of the enterprise and the network will lose connection because the transmission link inevitably fails during operation, which causes economic loss to the enterprise. Therefore, reliability, stability and persistence of the transmission link are increasingly important.
Therefore, it becomes a safe and reliable choice to simultaneously access the transmission links respectively provided by a plurality of network operators for the terminals of the enterprise. When a transmission link provided by one network operator fails, the terminal of the enterprise can also access the network by using the transmission links provided by other network operators, so that economic loss brought to the enterprise is avoided.
Under the situation that the terminals of the enterprises can access the network through a plurality of links, when the terminals of the enterprises need to send messages, the terminals of the enterprises generally use a fixed transmission link to transmit the messages until the transmission link fails, the terminals of the enterprises can use other transmission links to transmit the messages, and the terminals of the enterprises can always use the transmission link to transmit the messages as long as the transmission link fails.
However, since each transmission link has a preset bandwidth, it is likely to cause a phenomenon: when the terminal of the enterprise continues to transmit the message by using the transmission link with the occupied bandwidth, a packet loss phenomenon may occur.
Disclosure of Invention
In order to overcome the problems in the related art, embodiments of the present invention provide a transmission link selection method and apparatus.
According to a first aspect of the embodiments of the present invention, there is provided a transmission link selection method, including:
when a first message needs to be transmitted, acquiring real-time occupied bandwidth of each transmission link in a plurality of transmission links within a preset time before the current moment;
calculating the real-time occupied bandwidth ratio between the real-time occupied bandwidth of each transmission link and the sum of the real-time occupied bandwidths of all the transmission links in the plurality of transmission links;
acquiring a preset bandwidth ratio between the preset bandwidth of each transmission link and the sum of the preset bandwidths of all the transmission links;
and determining one transmission link with the real-time occupied bandwidth ratio smaller than the preset bandwidth ratio as a transmission link for transmitting the first message.
Wherein, the determining a transmission link with a real-time occupied bandwidth ratio smaller than a preset bandwidth ratio as a transmission link for transmitting the first packet includes:
and if at least two transmission links with the real-time occupied bandwidth ratio smaller than the preset bandwidth ratio exist in the plurality of transmission links, selecting the transmission link with the largest difference between the preset bandwidth ratio and the real-time occupied bandwidth ratio from the at least two transmission links, and using the transmission link as a transmission link for transmitting the first message.
Further, the method further comprises:
and transmitting the first message by using the determined transmission link for transmitting the first message.
Further, the method further comprises:
and forming a record by the message identifier of the first message and the transmission link identifier of the transmission link for transmitting the first message, and storing the record in a preset corresponding relation between the message identifier and the transmission link identifier.
Further, the first packet belongs to one packet in a preset packet stream, the preset packet stream at least includes a second packet, and packet identifiers of all packets included in the preset packet stream are the same; the method further comprises the following steps:
when the second message needs to be transmitted, acquiring a message identifier of the second message;
searching the transmission link identifier corresponding to the message identifier of the second message in the corresponding relation;
and transmitting the second message by using the transmission link which is corresponding to the transmission link identification and is used for transmitting the first message.
Further, the method further comprises:
and deleting the record comprising the message identifier and the transmission link identifier from the corresponding relation when all the messages in the preset message stream are transmitted.
According to a second aspect of the embodiments of the present invention, there is provided a transmission link selection apparatus, the apparatus including:
the first acquisition module is used for acquiring real-time occupied bandwidth of each transmission link in the plurality of transmission links within a preset time before the current moment when the first message needs to be transmitted;
the calculating module is used for calculating the real-time occupied bandwidth ratio between the real-time occupied bandwidth of each transmission link and the sum of the real-time occupied bandwidths of all the transmission links in the plurality of transmission links;
the second acquisition module is used for acquiring a preset bandwidth ratio between the preset bandwidth of each transmission link and the sum of the preset bandwidths of all the transmission links;
and the determining module is used for determining one transmission link with the real-time occupied bandwidth ratio smaller than the preset bandwidth ratio as the transmission link for transmitting the first message.
Wherein the determining module is specifically configured to:
and if at least two transmission links with the real-time occupied bandwidth ratio smaller than the preset bandwidth ratio exist in the plurality of transmission links, selecting the transmission link with the largest difference between the preset bandwidth ratio and the real-time occupied bandwidth ratio from the at least two transmission links, and using the transmission link as a transmission link for transmitting the first message.
Further, the apparatus further comprises:
and the first transmission module is used for transmitting the first message by using the determined transmission link for transmitting the first message.
Further, the apparatus further comprises:
and the storage module is used for forming a record by the message identifier of the first message and the transmission link identifier of the transmission link for transmitting the first message, and storing the record in a preset corresponding relation between the message identifier and the transmission link identifier.
Further, the first packet belongs to one packet in a preset packet stream, the preset packet stream at least includes a second packet, and packet identifiers of all packets included in the preset packet stream are the same; the device further comprises:
a third obtaining module, configured to obtain a packet identifier of the second packet when the second packet needs to be transmitted;
a searching module, configured to search the transmission link identifier corresponding to the packet identifier of the second packet in the correspondence;
and the second transmission module is used for transmitting the second message by using the transmission link which is corresponding to the transmission link identifier and is used for transmitting the first message.
Further, the apparatus further comprises:
and the deleting module is used for deleting the record comprising the message identifier and the transmission link identifier from the corresponding relation when all messages in the preset message stream are transmitted.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, when the first message needs to be transmitted, the real-time occupied bandwidth of each transmission link in a plurality of transmission links within the preset time before the current moment is acquired; calculating the real-time occupied bandwidth ratio between the real-time occupied bandwidth of each transmission link and the sum of the real-time occupied bandwidths of all the transmission links in the plurality of transmission links; acquiring a preset bandwidth ratio between the preset bandwidth of each transmission link and the sum of the preset bandwidths of all the transmission links; and determining one transmission link with the real-time occupied bandwidth ratio smaller than the preset bandwidth ratio as a transmission link for transmitting the first message.
The embodiment of the invention takes the real-time occupied bandwidth ratio of the transmission links as the reference when the message is distributed, so that the real-time occupied bandwidth ratio of each transmission link is more consistent with the ratio between the preset bandwidths of each transmission link, and the flow of each transmission link is increased or reduced simultaneously according to the ratio between the preset bandwidths of each transmission link. Therefore, when the occupied bandwidth on a certain transmission link is close to the full bandwidth, other transmission links basically reach the full bandwidth, so that the bandwidth utilization rate of each transmission link is improved, and the phenomenon that the packet loss of the certain transmission link is caused by the full bandwidth and other links still have more unused bandwidths is avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of embodiments of the invention.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the embodiments of the invention.
Fig. 1 is a flow diagram illustrating a transmission link selection method in accordance with an exemplary embodiment;
fig. 2 is a block diagram illustrating a transmission link selection apparatus in accordance with an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with embodiments of the invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of embodiments of the invention, as detailed in the following claims.
Fig. 1 is a flow chart illustrating a transmission link selection method, as shown in fig. 1, for use in a terminal, according to an exemplary embodiment, the method including the following steps.
In step S101, when the first packet needs to be transmitted, acquiring a real-time occupied bandwidth of each of the plurality of transmission links within a preset time before the current time;
in the embodiment of the present invention, when the terminal needs to transmit the first packet, the terminal needs to select one transmission link from the plurality of transmission links, and transmit the first packet by using the selected transmission link. In order to avoid the occurrence of the packet loss phenomenon, when the terminal selects a transmission link, the terminal needs to first acquire a real-time occupied bandwidth of each of the plurality of transmission links within a preset time before the current time, and then execute step S102.
The preset time period may be 10ms, 20ms, or 50ms, and the like, which is not limited in the embodiment of the present invention.
In the embodiment of the present invention, the terminal may monitor and record the real-time occupied bandwidth of each of the plurality of transmission links at each time, respectively, so that in this step, for any one of the plurality of transmission links, the terminal may count the real-time occupied bandwidth of the transmission link within the preset time before the current time according to the recorded real-time occupied bandwidth of the transmission link at each time; the operation is also executed for each other transmission link in the plurality of transmission links; therefore, the real-time occupied bandwidth of each transmission link in the plurality of transmission links within the preset time before the current moment is acquired.
In step S102, calculating a real-time occupied bandwidth ratio between the real-time occupied bandwidth of each transmission link and a sum of real-time occupied bandwidths of all transmission links in the plurality of transmission links;
in the embodiment of the present invention, the real-time occupied bandwidth of each of the plurality of transmission links may be summed to obtain the total real-time occupied bandwidth of all the transmission links in the plurality of transmission links. Then, for any transmission link, calculating the real-time occupied bandwidth ratio between the real-time occupied bandwidth of the transmission link and the sum of the real-time occupied bandwidths of all transmission links in the plurality of transmission links; for each of the other transmission links, the above operation is also performed; therefore, the real-time occupied bandwidth ratio between the real-time occupied bandwidth of each transmission link and the sum of the real-time occupied bandwidths of all the transmission links in the plurality of transmission links is calculated.
In step S103, obtaining a preset bandwidth ratio between the preset bandwidth of each transmission link and a sum of the preset bandwidths of all the transmission links;
in the embodiment of the present invention, each transmission link has a preset bandwidth, for example, when the preset bandwidth of a certain transmission link is 10M, at any time, the terminal may transmit 10M of data at most by using the transmission link, and if 2 messages being transmitted on the transmission link occupy 10M of bandwidth, if a 3 rd message is to be transmitted by using the transmission link, a 3 rd message packet loss phenomenon may occur.
The preset bandwidths of different transmission links may be the same or different, which is not limited in the embodiment of the present invention, and in general, the preset bandwidths of different transmission links of a terminal are different.
In the embodiment of the present invention, the preset bandwidths of each of the plurality of transmission links may be summed to obtain the sum of the preset bandwidths of all the transmission links. Then, for any transmission link, calculating a preset bandwidth ratio between the preset bandwidth of the transmission link and the sum of the preset bandwidths of all the transmission links in the plurality of transmission links; for each of the other transmission links, the above operation is also performed; therefore, the preset bandwidth ratio between the preset bandwidth of each transmission link and the sum of the preset bandwidths of all the transmission links is obtained.
In step S104, a transmission link with a real-time occupied bandwidth ratio smaller than the preset bandwidth ratio is determined as a transmission link for transmitting the first packet.
Specifically, in this step, in order to implement load balancing, that is, in order to make the real-time occupied bandwidth ratio of each of the plurality of transmission links closer to the preset bandwidth ratio, in the plurality of transmission links, if there are at least two transmission links whose real-time occupied bandwidth ratios are smaller than the preset bandwidth ratio, the transmission link with the largest difference between the preset bandwidth ratio and the real-time occupied bandwidth ratio is selected from the at least two transmission links and is used as the transmission link for transmitting the first packet.
Further, the first message is transmitted by using the determined transmission link for transmitting the first message.
In the embodiment of the invention, when the first message needs to be transmitted, the real-time occupied bandwidth of each transmission link in a plurality of transmission links within the preset time before the current moment is acquired; calculating the real-time occupied bandwidth ratio between the real-time occupied bandwidth of each transmission link and the sum of the real-time occupied bandwidths of all the transmission links in the plurality of transmission links; acquiring a preset bandwidth ratio between the preset bandwidth of each transmission link and the sum of the preset bandwidths of all the transmission links; and determining one transmission link with the real-time occupied bandwidth ratio smaller than the preset bandwidth ratio as a transmission link for transmitting the first message.
The embodiment of the invention takes the real-time occupied bandwidth ratio of the transmission links as the reference when the message is distributed, so that the real-time occupied bandwidth ratio of each transmission link is more consistent with the ratio between the preset bandwidths of each transmission link, and the flow of each transmission link is increased or reduced simultaneously according to the ratio between the preset bandwidths of each transmission link. Therefore, when the occupied bandwidth on a certain transmission link is close to the full bandwidth, other transmission links basically reach the full bandwidth, so that the bandwidth utilization rate of each transmission link is improved, and the phenomenon that the packet loss of the certain transmission link is caused by the full bandwidth and other links still have more unused bandwidths is avoided.
In another embodiment of the present invention, the first packet belongs to one packet in a preset packet stream, the preset packet stream at least includes a second packet, packet identifiers of all packets included in the preset packet stream are the same, and the terminal needs to transmit not only the first packet but also all other packets in the preset packet stream.
In the embodiment of the present invention, when the transmission of the first packet is completed by using the determined transmission link, a packet that is not transmitted in the preset packet stream also needs to be transmitted, for example, a second packet in the preset packet stream also needs to be transmitted, wherein when the second packet is transmitted, the transmission link for transmitting the second packet also needs to be determined according to the flow of the above steps S101 to S104, and then the determined transmission link for transmitting the second packet is used to transmit the second packet.
However, the inventor finds that, for any one message in the preset message flow, when the message needs to be transmitted, a transmission link for transmitting the message needs to be determined according to the flow from step S101 to step S104, and the same is true for each other message in the preset message flow.
It can be seen that, in the process of transmitting the messages in the preset message stream, the flow of the step S101 to the step S104 needs to be executed for several times for how many messages are included in the preset message stream, and since the flow of the step S101 to the step S104 needs to consume not only system resources but also a large amount of time, a lot of time needs to be consumed to finish transmitting all the messages in the preset message stream, which results in low transmission efficiency of the preset message stream.
In the multiple transmission links, because the transmission speeds and the transmission delays of the different transmission links may be different, if the different transmission links are used to transmit the multiple messages in the preset message stream respectively, the receiving end is caused to receive the multiple messages in the preset message stream transmitted by the preset terminal out of order, the receiving end also needs to recombine all the received messages to obtain the preset message stream, however, the process of recombining the messages to obtain the preset message stream needs to consume a long time, so that: therefore, in the embodiment of the present invention, when the preset message stream needs to be transmitted, in a general situation, the same transmission link is used to transmit all the messages in the preset message stream, and different transmission links are not used to transmit a plurality of messages in the preset message stream respectively.
Therefore, when a predetermined message stream needs to be transmitted over a transmission link, in order to improve the transmission efficiency of transmitting the predetermined message stream, in another embodiment of the present invention, the method further includes: and forming a record by the message identifier of the first message and the determined transmission link identifier of the transmission link for transmitting the first message, and storing the record in a preset corresponding relation between the message identifier and the transmission link identifier.
Therefore, when a second message in the preset message flow needs to be transmitted later, the message identification of the second message can be obtained; then searching a transmission link identifier corresponding to the message identifier of the second message in the corresponding relation; and transmitting the second message by using the transmission link which is used for transmitting the first message and corresponds to the searched transmission link identification.
In the embodiment of the present invention, when a second message in a preset message stream needs to be transmitted, it is not necessary to determine a transmission link for transmitting the second message according to the flow of the above steps S101 to S104, but only a message identifier of the second message needs to be acquired; then, a transmission link identifier corresponding to the message identifier of the second message is searched in the corresponding relationship, and since the message identifier of the first message in the preset message stream is the same as the message identifier of the second message, the searched transmission link identifier is: the transmission link identifier of the transmission link used for transmitting the first message is determined through the processes of the steps S101 to S104, then the transmission link used for transmitting the second message corresponding to the found transmission link identifier is determined as the transmission link used for transmitting the second message, and the transmission link used for transmitting the second message is used for transmitting the second message, so that the determination of the transmission link used for transmitting the second message through the processes of the steps S101 to S104 is avoided, the time consumed for executing the processes of the steps S101 to S104 is further avoided, the transmission efficiency of the transmission of the preset message stream is improved, and local system resources are saved.
Further, in another embodiment of the present invention, when all the packets in the preset packet stream have been transmitted, since the packets in the preset packet stream are not transmitted again, and therefore, the record of the packet identifier of the first packet and the transmission link identifier for transmitting the first packet in the correspondence relationship is not used, in order to save the local storage space, when all the packets in the preset packet stream have been transmitted, the record including the packet identifier of the first packet and the transmission link identifier for transmitting the first packet may be deleted from the correspondence relationship.
Fig. 2 is a block diagram illustrating a transmission link selection apparatus in accordance with an exemplary embodiment. Referring to fig. 2, the apparatus includes:
the first obtaining module 11 is configured to, when a first message needs to be transmitted, obtain a real-time occupied bandwidth of each of the plurality of transmission links within a preset time before a current time;
a calculating module 12, configured to calculate a real-time occupied bandwidth ratio between the real-time occupied bandwidth of each transmission link and a sum of real-time occupied bandwidths of all transmission links in the plurality of transmission links;
a second obtaining module 13, configured to obtain a preset bandwidth ratio between each preset bandwidth of each transmission link and a sum of the preset bandwidths of all the transmission links;
the determining module 14 is configured to determine a transmission link with a real-time occupied bandwidth ratio smaller than a preset bandwidth ratio as a transmission link for transmitting the first packet.
Wherein the determining module 14 is specifically configured to:
and if at least two transmission links with the real-time occupied bandwidth ratio smaller than the preset bandwidth ratio exist in the plurality of transmission links, selecting the transmission link with the largest difference between the preset bandwidth ratio and the real-time occupied bandwidth ratio from the at least two transmission links, and using the transmission link as a transmission link for transmitting the first message.
Further, the apparatus further comprises:
and the first transmission module is used for transmitting the first message by using the determined transmission link for transmitting the first message.
Further, the apparatus further comprises:
and the storage module is used for forming a record by the message identifier of the first message and the transmission link identifier of the transmission link for transmitting the first message, and storing the record in a preset corresponding relation between the message identifier and the transmission link identifier.
Further, the first packet belongs to one packet in a preset packet stream, the preset packet stream at least includes a second packet, and packet identifiers of all packets included in the preset packet stream are the same; the device further comprises:
a third obtaining module, configured to obtain a packet identifier of the second packet when the second packet needs to be transmitted;
a searching module, configured to search the transmission link identifier corresponding to the packet identifier of the second packet in the correspondence;
and the second transmission module is used for transmitting the second message by using the transmission link which is corresponding to the transmission link identifier and is used for transmitting the first message.
Further, the apparatus further comprises:
and the deleting module is used for deleting the record comprising the message identifier and the transmission link identifier from the corresponding relation when all messages in the preset message stream are transmitted.
In the embodiment of the invention, when the first message needs to be transmitted, the real-time occupied bandwidth of each transmission link in a plurality of transmission links within the preset time before the current moment is acquired; calculating the real-time occupied bandwidth ratio between the real-time occupied bandwidth of each transmission link and the sum of the real-time occupied bandwidths of all the transmission links in the plurality of transmission links; acquiring a preset bandwidth ratio between the preset bandwidth of each transmission link and the sum of the preset bandwidths of all the transmission links; and determining one transmission link with the real-time occupied bandwidth ratio smaller than the preset bandwidth ratio as a transmission link for transmitting the first message.
The embodiment of the invention takes the real-time occupied bandwidth ratio of the transmission links as the reference when the message is distributed, so that the real-time occupied bandwidth ratio of each transmission link is more consistent with the ratio between the preset bandwidths of each transmission link, and the flow of each transmission link is increased or reduced simultaneously according to the ratio between the preset bandwidths of each transmission link. Therefore, when the occupied bandwidth on a certain transmission link is close to the full bandwidth, other transmission links basically reach the full bandwidth, so that the bandwidth utilization rate of each transmission link is improved, and the phenomenon that the packet loss of the certain transmission link is caused by the full bandwidth and other links still have more unused bandwidths is avoided.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the embodiments of the invention following, in general, the principles of the embodiments of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the embodiments of the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the embodiments of the invention being indicated by the following claims.
It is to be understood that the embodiments of the present invention are not limited to the precise arrangements described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of embodiments of the invention is limited only by the appended claims.

Claims (12)

1. A method for transmission link selection, the method comprising:
when a first message needs to be transmitted, acquiring real-time occupied bandwidth of each transmission link in a plurality of transmission links within a preset time before the current moment;
calculating the real-time occupied bandwidth ratio between the real-time occupied bandwidth of each transmission link and the sum of the real-time occupied bandwidths of all the transmission links in the plurality of transmission links;
acquiring a preset bandwidth ratio between the preset bandwidth of each transmission link and the sum of the preset bandwidths of all the transmission links;
and determining one transmission link with the real-time occupied bandwidth ratio smaller than the preset bandwidth ratio as a transmission link for transmitting the first message.
2. The method of claim 1, wherein determining a transmission link with a real-time bandwidth ratio smaller than a preset bandwidth ratio as the transmission link for transmitting the first packet comprises:
and if at least two transmission links with the real-time occupied bandwidth ratio smaller than the preset bandwidth ratio exist in the plurality of transmission links, selecting the transmission link with the largest difference between the preset bandwidth ratio and the real-time occupied bandwidth ratio from the at least two transmission links, and using the transmission link as a transmission link for transmitting the first message.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
and transmitting the first message by using the determined transmission link for transmitting the first message.
4. The method of claim 3, further comprising:
and forming a record by the message identifier of the first message and the transmission link identifier of the transmission link for transmitting the first message, and storing the record in a preset corresponding relation between the message identifier and the transmission link identifier.
5. The method according to claim 4, wherein the first packet belongs to one packet in a preset packet flow, the preset packet flow further comprises at least a second packet, and packet identifiers of all packets included in the preset packet flow are the same; the method further comprises the following steps:
when the second message needs to be transmitted, acquiring a message identifier of the second message;
searching the transmission link identifier corresponding to the message identifier of the second message in the corresponding relation;
and transmitting the second message by using the transmission link which is corresponding to the transmission link identification and is used for transmitting the first message.
6. The method of claim 5, further comprising:
and deleting the record comprising the message identifier and the transmission link identifier from the corresponding relation when all the messages in the preset message stream are transmitted.
7. A transmission link selection apparatus, the apparatus comprising:
the first acquisition module is used for acquiring real-time occupied bandwidth of each transmission link in the plurality of transmission links within a preset time before the current moment when the first message needs to be transmitted;
the calculating module is used for calculating the real-time occupied bandwidth ratio between the real-time occupied bandwidth of each transmission link and the sum of the real-time occupied bandwidths of all the transmission links in the plurality of transmission links;
the second acquisition module is used for acquiring a preset bandwidth ratio between the preset bandwidth of each transmission link and the sum of the preset bandwidths of all the transmission links;
and the determining module is used for determining one transmission link with the real-time occupied bandwidth ratio smaller than the preset bandwidth ratio as the transmission link for transmitting the first message.
8. The apparatus of claim 7, wherein the determining module is specifically configured to:
and if at least two transmission links with the real-time occupied bandwidth ratio smaller than the preset bandwidth ratio exist in the plurality of transmission links, selecting the transmission link with the largest difference between the preset bandwidth ratio and the real-time occupied bandwidth ratio from the at least two transmission links, and using the transmission link as a transmission link for transmitting the first message.
9. The apparatus of claim 7 or 8, further comprising:
and the first transmission module is used for transmitting the first message by using the determined transmission link for transmitting the first message.
10. The apparatus of claim 9, further comprising:
and the storage module is used for forming a record by the message identifier of the first message and the transmission link identifier of the transmission link for transmitting the first message, and storing the record in a preset corresponding relation between the message identifier and the transmission link identifier.
11. The apparatus according to claim 10, wherein the first packet belongs to one packet in a preset packet flow, the preset packet flow further comprises at least a second packet, and packet identifiers of all packets included in the preset packet flow are the same; the device further comprises:
a third obtaining module, configured to obtain a packet identifier of the second packet when the second packet needs to be transmitted;
a searching module, configured to search the transmission link identifier corresponding to the packet identifier of the second packet in the correspondence;
and the second transmission module is used for transmitting the second message by using the transmission link which is corresponding to the transmission link identifier and is used for transmitting the first message.
12. The apparatus of claim 11, further comprising:
and the deleting module is used for deleting the record comprising the message identifier and the transmission link identifier from the corresponding relation when all messages in the preset message stream are transmitted.
CN201710127741.XA 2017-03-06 2017-03-06 Transmission link selection method and device Active CN107018088B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710127741.XA CN107018088B (en) 2017-03-06 2017-03-06 Transmission link selection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710127741.XA CN107018088B (en) 2017-03-06 2017-03-06 Transmission link selection method and device

Publications (2)

Publication Number Publication Date
CN107018088A CN107018088A (en) 2017-08-04
CN107018088B true CN107018088B (en) 2020-03-17

Family

ID=59439736

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710127741.XA Active CN107018088B (en) 2017-03-06 2017-03-06 Transmission link selection method and device

Country Status (1)

Country Link
CN (1) CN107018088B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109274736B (en) * 2018-09-12 2021-08-03 奇安信科技集团股份有限公司 Data stream release method and device
CN113140136B (en) * 2021-06-21 2021-09-10 北京翔东智能科技有限公司 Multimedia interactive education training system
CN115801739A (en) * 2021-09-10 2023-03-14 中兴通讯股份有限公司 Data transmission method, data processing method and device, conference terminal and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101583057A (en) * 2009-06-11 2009-11-18 中兴通讯股份有限公司 Network routing method and device
CN101645850A (en) * 2009-09-25 2010-02-10 杭州华三通信技术有限公司 Forwarding route determining method and equipment
CN102761479A (en) * 2012-06-28 2012-10-31 华为技术有限公司 Method for selecting link and device therefore
CN104954275A (en) * 2014-03-30 2015-09-30 瞻博网络公司 Systems and methods for multipath load balancing
CN106209633A (en) * 2016-07-27 2016-12-07 杭州华三通信技术有限公司 A kind of message forwarding method and device
CN106332212A (en) * 2016-08-23 2017-01-11 北京邮电大学 Data transmission method and data transmission device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101583057A (en) * 2009-06-11 2009-11-18 中兴通讯股份有限公司 Network routing method and device
CN101645850A (en) * 2009-09-25 2010-02-10 杭州华三通信技术有限公司 Forwarding route determining method and equipment
CN102761479A (en) * 2012-06-28 2012-10-31 华为技术有限公司 Method for selecting link and device therefore
CN104954275A (en) * 2014-03-30 2015-09-30 瞻博网络公司 Systems and methods for multipath load balancing
CN106209633A (en) * 2016-07-27 2016-12-07 杭州华三通信技术有限公司 A kind of message forwarding method and device
CN106332212A (en) * 2016-08-23 2017-01-11 北京邮电大学 Data transmission method and data transmission device

Also Published As

Publication number Publication date
CN107018088A (en) 2017-08-04

Similar Documents

Publication Publication Date Title
WO2020211682A1 (en) Data transmission method and related apparatus
CN109076357A (en) Application method, relevant device and system are migrated in mobile limbic system
CN101715228A (en) Wireless communication system, management server, wireless terminal, and network selection method
CN107018088B (en) Transmission link selection method and device
AU2013305803B2 (en) Wireless communications system having selective wireless communications network and related methods
US10257759B2 (en) Load balancing among wireless access points
CN104378451A (en) Network communication route selecting method, device and system
CN109286957A (en) Switching method, device, electronic equipment and the storage medium of a kind of time source link
CN106171019A (en) Determine the method for terminal roaming status, device, terminal and server
CN102684966B (en) Equipment method of network entry, Apparatus and system
CN111093182B (en) Network optimal resource selection system for CPE (customer premises equipment)
CN106301472A (en) Method and the website of relay is selected in power line network
CN106488495B (en) Base station selecting method and device based on base station signal quality
CN106101468B (en) Method and device for determining transmission link
CN103889000A (en) Channel allocation method and device
CN113518125A (en) Offline data uploading method and system, storage medium and electronic device
US20120215869A1 (en) Multimedia Message Transmission Method and Apparatus Thereof, and Domain Name Server
CN110380981B (en) Flow distribution method and equipment
CN117082054A (en) Data transmission method, device, system and medium
CN109831335B (en) Data monitoring method, monitoring terminal, storage medium and data monitoring system
CN104378806B (en) Information processing method and terminal device
CN114710801B (en) Processing method and device of evaluation parameters of network performance, storage medium and equipment
CN112637055B (en) Multi-link aggregation method, system and storage medium based on VPN tunnel
CN109219046A (en) Method for switching network and device
US20090310576A1 (en) Communication control method, communication monitoring method, communication system, access point and program

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
GR01 Patent grant
GR01 Patent grant