[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN118590433A - Communication link selection method and device - Google Patents

Communication link selection method and device Download PDF

Info

Publication number
CN118590433A
CN118590433A CN202411054287.6A CN202411054287A CN118590433A CN 118590433 A CN118590433 A CN 118590433A CN 202411054287 A CN202411054287 A CN 202411054287A CN 118590433 A CN118590433 A CN 118590433A
Authority
CN
China
Prior art keywords
communication
communication link
data packet
network quality
client
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
CN202411054287.6A
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.)
Chengdu Junyun Technology Co ltd
Original Assignee
Chengdu Junyun 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 Chengdu Junyun Technology Co ltd filed Critical Chengdu Junyun Technology Co ltd
Priority to CN202411054287.6A priority Critical patent/CN118590433A/en
Publication of CN118590433A publication Critical patent/CN118590433A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a communication link selection method and a device, wherein the communication link selection method comprises the following steps: establishing a plurality of communication links based on the communication requirements of the client; sending corresponding detection data packets to each communication link through a client, and determining network quality parameters associated with each communication link according to the round trip result of each detection data packet; based on a preset weighting algorithm, carrying out weighted calculation on a plurality of network quality sub-parameters contained in each network quality parameter to obtain a communication score of each communication link, wherein the network quality sub-parameters comprise packet loss rate, delay data, fluctuation data and load data; and determining one of the communication links as a target communication link according to the communication score of each communication link. The method and the device have the advantages that one with the best communication quality is selected from a plurality of communication links to serve as a communication channel of the client, communication delay is reduced, the problems of packet loss and the like are effectively avoided, and the use experience of a user is improved.

Description

Communication link selection method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for selecting a communication link.
Background
With the development of internet technology, networks gradually blend into the work and life of people, in some service scenes, due to the physical distance between a client and a server, data packets have certain delay in transmission, so that the condition of poor network quality occurs, the service scenes are seriously dependent on the network communication between the client and the server, and the fluctuation of the network quality necessarily affects the normal network communication, so that the service scenes are affected. There is therefore a need for a way to find the lowest latency session between two points.
Disclosure of Invention
In view of the above, the embodiments of the present application provide a communication link selection method to solve the technical defects existing in the prior art. The embodiment of the application also provides a communication link selection device, a computing device and a computer readable storage medium.
According to a first aspect of an embodiment of the present application, there is provided a communication link selection method, including:
Establishing a plurality of communication links based on the communication requirements of the client;
Sending corresponding detection data packets to each communication link through the client, and determining network quality parameters associated with each communication link according to the round trip result of each detection data packet;
Based on a preset weighting algorithm, carrying out weighted calculation on a plurality of network quality sub-parameters contained in each network quality parameter to obtain a communication score of each communication link, wherein the network quality sub-parameters comprise packet loss rate, delay data, fluctuation data and load data;
And determining one of the communication links as a target communication link according to the communication score of each communication link.
Optionally, the establishing a plurality of communication links based on the communication requirement of the client includes:
determining the port address of the client and the target address of the client communication;
And determining a plurality of access nodes according to the port address and the target address, and establishing a plurality of communication links according to all the access nodes.
Optionally, the sending, by the client, the corresponding detection data packet to each communication link includes:
Determining a communication protocol between the client and each communication link, and generating the detection data packet corresponding to each communication link according to the communication protocol;
and sending the corresponding detection data packet to each communication link through the client.
Optionally, the determining a network quality parameter associated with each communication link according to the round trip result of each detected data packet includes:
after receiving the detection data packet, the access node associated with each communication link feeds back the detection data packet to the client through the associated communication link;
and monitoring the transmission process of the detection data packet between the client and the access node through each communication link, and determining the network quality parameter associated with each communication link.
Optionally, the weighting calculation is performed on a plurality of network quality sub-parameters included in each network quality parameter based on a preset weighting algorithm to obtain a communication score of each communication link, including:
according to a plurality of network quality sub-parameters contained in each network quality parameter, adjusting the weight coefficient of the weighting algorithm;
And carrying out weighted calculation on a plurality of network quality sub-parameters in each network quality parameter according to the adjusted weight coefficient to obtain the communication score of each communication link.
Optionally, the delay data is processed through a preset variance algorithm to obtain the fluctuation data.
Optionally, the determining one of the plurality of communication links as the target communication link according to the communication score of each communication link includes:
selecting one of the plurality of communication links as the target communication link and another of the plurality of communication links as an alternative communication link according to the communication score of each communication link;
And when the network quality of the target communication link does not meet the communication quality requirement of the client, taking the alternative communication link as the target communication link.
Optionally, after determining one of the plurality of communication links as the target communication link according to the communication score of each communication link, the method further includes:
Determining a target access node and a target exit node associated with the target communication link under the condition that the network quality of all the communication links does not meet the communication quality requirement of the client;
Determining a plurality of intermediate nodes associated with the target access node, and sending a compensation data packet to the plurality of intermediate nodes through the target access node;
transmitting the received compensation data packet to the target egress node through each of the intermediate nodes;
and reserving the compensation data packet which is received by the target exit node first, and de-duplicating the repeatedly received compensation data packet.
Optionally, the reserving the compensating data packet received first by the target egress node and de-duplicating the compensating data packet received repeatedly includes:
reading the data packet code of the compensation data packet received by the target exit node;
inquiring an encoding table of the target exit node, reserving the compensation data packet when the data packet encoding does not exist in the encoding table, and writing the data packet encoding into the encoding table;
And discarding the compensation data packet when the data packet code exists in the code table.
According to a second aspect of an embodiment of the present application, there is provided a communication link selection apparatus, including:
the link establishment module is configured to establish a plurality of communication links based on the communication requirements of the client;
the parameter determining module is configured to send corresponding detection data packets to each communication link through the client, and determine network quality parameters associated with each communication link according to the round trip result of each detection data packet;
the scoring calculation module is configured to perform weighted calculation on a plurality of network quality sub-parameters contained in each network quality parameter based on a preset weighting algorithm to obtain a communication score of each communication link, wherein the network quality sub-parameters comprise packet loss rate, delay data, fluctuation data and load data;
And the link determining module is configured to determine one of the communication links as a target communication link according to the communication score of each communication link.
According to a third aspect of embodiments of the present application, there is provided a computing device comprising:
a memory and a processor;
The memory is configured to store computer-executable instructions that, when executed by the processor, perform the steps of the communication link selection method.
According to a fourth aspect of embodiments of the present application, there is provided a computer readable storage medium storing computer executable instructions which, when executed by a processor, implement the steps of the communication link selection method.
According to a fifth aspect of embodiments of the present application, there is provided a chip storing a computer program which, when executed by the chip, implements the steps of the communication link selection method.
The communication link selection method provided by the application establishes a plurality of communication links based on the communication requirement of the client; sending corresponding detection data packets to each communication link through a client, and determining network quality parameters associated with each communication link according to the round trip result of each detection data packet; based on a preset weighting algorithm, carrying out weighted calculation on a plurality of network quality sub-parameters contained in each network quality parameter to obtain a communication score of each communication link, wherein the network quality sub-parameters comprise packet loss rate, delay data, fluctuation data and load data; and determining one of the communication links as a target communication link according to the communication score of each communication link. The method and the device have the advantages that one with the best communication quality is selected from a plurality of communication links to serve as a communication channel of the client, communication delay is reduced, the problems of packet loss and the like are effectively avoided, and the use experience of a user is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a communication link selection method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a communication link selection device according to an embodiment of the present application;
FIG. 3 is a block diagram of a computing device according to one embodiment of the application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. The present application may be embodied in many other forms than those herein described, and those skilled in the art will readily appreciate that the present application may be similarly embodied without departing from the spirit or essential characteristics thereof, and therefore the present application is not limited to the specific embodiments disclosed below.
The terminology used in the one or more embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the application. As used in one or more embodiments of the application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present application refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that, although the terms first, second, etc. may be used in one or more embodiments of the application to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first may also be referred to as a second, and similarly, a second may also be referred to as a first, without departing from the scope of one or more embodiments of the application.
First, terms related to one or more embodiments of the present invention will be explained.
UDP: user datagram protocol (User Datagram Protocol), the Internet protocol suite supports a connectionless transport protocol. UDP provides a method for applications to send encapsulated IP packets without having to establish a connection.
TCP: the transmission control protocol (Transmission Control Protocol) is a connection-oriented, reliable, byte stream based transport layer communication protocol, defined by IETF RFC 793.
ICMP: internet control message protocol (Internet Control Message Protocol). It is a sub-protocol of the TCP/IP protocol suite for passing control messages between IP hosts, routers.
PPS: in the network transmission process, the information needs to be divided into data packets for transmission, so that the more the number of the data packets transmitted in a certain time is represented by the PPS, the faster the transmission speed is.
MD5: the MD5 Message-Digest Algorithm (MD 5 Message-Digest Algorithm), a widely used cryptographic hash function, can generate a 128-bit (16-byte) hash value (hash value) to ensure that the information transfer is completely consistent.
In the present application, a communication link selection method is provided. The present application also relates to a communication link selection device, a computing device, and a computer-readable storage medium, which are described in detail in the following embodiments.
Fig. 1 shows a flowchart of a communication link selection method according to an embodiment of the present application, which specifically includes the following steps:
Step S102: establishing a plurality of communication links based on the communication requirements of the client;
Step S104: sending corresponding detection data packets to each communication link through the client, and determining network quality parameters associated with each communication link according to the round trip result of each detection data packet;
Step S106: based on a preset weighting algorithm, carrying out weighted calculation on a plurality of network quality sub-parameters contained in each network quality parameter to obtain a communication score of each communication link, wherein the network quality sub-parameters comprise packet loss rate, delay data, fluctuation data and load data;
step S108: and determining one of the communication links as a target communication link according to the communication score of each communication link.
The communication link is used for realizing information transmission between the client and other devices, such as data interaction between the client and other clients or interaction between the client and the server, and it is required to be noted that the server is required to transfer information when the client performs data interaction with other clients.
Based on this, because there is a physical distance between the client and the server, there is a certain delay in the transmission of the data packet, in order to find the lowest delay session between two points, a plurality of communication links are established, then the client sends a detection data packet to the established plurality of communication links, for any communication link, the detection data packet is sent to the server through the communication link, after receiving the detection data packet, the server feeds back the detection data packet to the client through the communication link, the client monitors according to the round trip condition of the detection data packet, and can determine the network quality parameter of the communication link, and by weighting calculation is performed on the packet loss rate, delay data, fluctuation data and load data contained in the network quality parameter, the communication score of the communication link is obtained, and the communication link with the highest communication score is selected, namely the target communication link is used as the link for the communication of the client.
Specifically, in an actual usage scenario, when a client sends UDP data packets to a destination port, a plurality of links of UDP and a plurality of TCP are first created at the same time, the number of links is determined according to the number of ports, generally 3 links of one port are used, each link enables different source ports and different destination ports, a plurality of detection data packets are sent to each link, and are used for respectively detecting network quality parameters of UDP and TCP links, after obtaining the network quality parameters of each data packet, a weighting algorithm is used for determining a communication score, and a communication link with the best communication quality is selected as a link of data transmission, and in an actual measurement scenario, the above manner can always improve the communication quality by 5% -10%.
Further, based on the communication requirement of the client, a process of establishing a plurality of communication links is implemented as follows in this embodiment:
determining the port address of the client and the target address of the client communication; and determining a plurality of access nodes according to the port address and the target address, and establishing a plurality of communication links according to all the access nodes.
The method comprises the steps of determining a port address of a client according to communication requirements of the client, determining a target address of target equipment in the process of communicating the client with the target equipment, determining a corresponding access node according to the port address and the target address, and establishing a communication link according to the access node.
Specifically, if the port address of the client is U, the destination address of the target device is V, the U and V may be connected through the servers set up in each city, and in this case, if the client is in the communication responsibility range of the server a, and the access node corresponding to the server a is a, the target device is in the communication responsibility range of the server B, and the access node corresponding to the server B is B, and in addition, there is an access node C of the server C, and an access node D of the server D, then the communication links that may be established at this time are U-a-B-V, U-a-C-B-V, U-a-D-B-V, U-a-C-D-B-V.
Further, through the process that the client sends the corresponding detection data packet to each communication link, in this embodiment, the specific implementation manner is as follows:
determining a communication protocol between the client and each communication link, and generating the detection data packet corresponding to each communication link according to the communication protocol; and sending the corresponding detection data packet to each communication link through the client.
The communication protocol availability between the client and the communication link, such as the availability of ICMP, UDP, TCP protocols, needs to be determined, and then corresponding detection data packets, such as ICMP packets, UDP packets, and TCP packets, are sent according to the communication protocol availability.
Further, according to the round trip result of each detected data packet, the process of determining the network quality parameter associated with each communication link is implemented as follows in this embodiment:
After receiving the detection data packet, the access node associated with each communication link feeds back the detection data packet to the client through the associated communication link; and monitoring the transmission process of the detection data packet between the client and the access node through each communication link, and determining the network quality parameter associated with each communication link.
Further, based on a preset weighting algorithm, a process of weighting and calculating a plurality of network quality sub-parameters included in each network quality parameter to obtain a communication score of each communication link is implemented as follows in this embodiment:
According to a plurality of network quality sub-parameters contained in each network quality parameter, adjusting the weight coefficient of the weighting algorithm; and carrying out weighted calculation on a plurality of network quality sub-parameters in each network quality parameter according to the adjusted weight coefficient to obtain the communication score of each communication link.
Further, the delay data is processed through a preset variance algorithm, and the fluctuation data is obtained.
The process of determining the access node associated with the communication link can be understood as a process of determining the port of the server responsible for the communication of the client, after receiving the detection data packet sent by the client, the server feeds back the detection data packet to the client, determines the packet loss rate of any communication link by monitoring whether the detection data packet has packet loss, and records the delay condition of the detection data packet to obtain delay data of any communication link; performing the time delay data memory processing on any communication link through a variance formula, and calculating to obtain the fluctuation data of the communication link; load data of any communication link is determined according to the CPU utilization rate, bandwidth condition, PPS, memory utilization rate, whether the outlet is unobstructed and the like; and finally, carrying out weighted calculation according to the obtained packet loss rate, delay data, fluctuation data and load data to obtain the communication score of the communication link.
Further, in the actual usage scenario, the network quality of the communication link is changed in real time, in this case, the previously determined target communication link may change with time, and a situation that the communication requirement of the user is not satisfied may occur, in order to solve the problem, the communication link of the client transmitting data may be replaced, and in this embodiment, the specific implementation manner is as follows:
Selecting one of the plurality of communication links as the target communication link and another of the plurality of communication links as an alternative communication link according to the communication score of each communication link; and when the network quality of the target communication link does not meet the communication quality requirement of the client, taking the alternative communication link as the target communication link.
The communication score obtained through calculation is used for selecting a target communication link and an alternative communication link, and in an actual use scene, the target communication link generally emphasizes the delay problem, so that when the communication score is calculated, the communication link with the lowest delay can be selected by a mode of increasing the weight of delay data; the alternative communication link can be selected according to network quality sub-parameters on the other hand, such as fluctuation conditions of network communication, when the communication score is calculated under the conditions, the communication link with the smallest network fluctuation and the most stable is selected by adjusting the weight corresponding to the fluctuation data, and under the conditions of poor network quality, the alternative communication link is used for replacing the original target communication link, and data transmission is performed on the client.
Based on this, due to the characteristic that the network quality of the communication link changes, the target communication link and the alternative communication link need to change in time, and the determination of the target communication link can be performed once every time a set period of time passes, for example, 10 seconds, and the same alternative communication link is replaced at the same time, and it should be noted that the specific value setting of the period of time is determined by the actual use scenario, which is not limited in this embodiment.
In addition, the network quality of each communication link is commonly affected by a plurality of factors, namely, a packet loss rate, a delay condition, a fluctuation condition and a load condition, and in a part of scenes, one of the factors becomes a main factor affecting the network quality, for example, in a part of scenes, the packet loss rate, the network fluctuation condition and the load condition of a target communication link are in a normal range in the communication process of a client, however, the delay condition of the network is very serious, and the communication scene with serious network delay cannot meet the actual communication requirement of a user, then the weight of delay data in the process of calculating the communication score is adjusted according to delay data of network delay in the corresponding network quality, so that the communication link with the fewest network delay problem is selected as the target communication link from a plurality of communication links.
Further, there are situations that the network quality of a plurality of communication links cannot meet the actual communication requirement of the user, and in this case, network compensation needs to be performed on the communication links, and in this implementation, the specific implementation manner is as follows:
Determining a target access node and a target exit node associated with the target communication link under the condition that the network quality of all the communication links does not meet the communication quality requirement of the client; determining a plurality of intermediate nodes associated with the target access node, and sending a compensation data packet to the plurality of intermediate nodes through the target access node; transmitting the received compensation data packet to the target egress node through each of the intermediate nodes; and reserving the compensation data packet which is received by the target exit node first, and de-duplicating the repeatedly received compensation data packet.
After the communication scores are obtained according to the weighted calculation, the network quality can be classified according to the communication scores, such as grading by optimizing, optimizing and differentiating, or grading by A, B, C, for example, if the network quality grades of all the communication links are "poor", in this case, it can be determined that the network quality of all the communication links does not meet the communication quality requirement of the client.
Based on the above, the key nodes between the client and the target device are divided into an entry node, an intermediate node and an exit node, wherein the number of the intermediate nodes is not limited, the entry node can be understood as a server node responsible for client communication, the exit node can be understood as a server node responsible for target device communication, and the intermediate node is a server node responsible for data transmission between the two servers, as described above, the a node of the server a is the entry node, the B node of the server B is the exit node, and the C node of the server C and the D node of the server D are the intermediate nodes.
In the process of sending the compensation data packet by the client, the compensation data packet passing through the entry node is sent to all intermediate nodes, after the intermediate nodes receive the compensation data packet, the compensation data packet is sent to the exit node, the exit node reserves the compensation data packet which arrives first, and then the compensation data packet which arrives later is abandoned.
Further, if the client continuously transmits the compensating data packet, and the communication speeds of the compensating data packet passing through the intermediate nodes are different, there are two intermediate nodes, where one intermediate node transmits the current compensating data packet to the egress node, and the last batch of compensating data packets transmitted by the other intermediate node just reaches the egress node, where the situation that the compensating data packet is confused may occur, in order to avoid the confusion problem, in this embodiment, the specific implementation manner is as follows:
Reading the data packet code of the compensation data packet received by the target exit node; inquiring an encoding table of the target exit node, reserving the compensation data packet when the data packet encoding does not exist in the encoding table, and writing the data packet encoding into the encoding table; and discarding the compensation data packet when the data packet code exists in the code table.
Wherein, by setting the corresponding data packet code for each compensation data packet, the data packet code is used as the unique identity code of the compensation data packet, so that the distinction of different compensation data packets can be realized. Besides selecting to distinguish the compensating data packet, the data packet coding can also ensure the information transmission safety of the compensating data packet, for example, MD5 code is used as the data packet coding of the compensating data packet to determine that the compensating data packet is not tampered in the transmission process.
Corresponding to the above method embodiment, the present application further provides an embodiment of a communication link selection device, and fig. 2 shows a schematic structural diagram of a communication link selection device according to an embodiment of the present application. As shown in fig. 2, the apparatus includes:
A link establishment module 202 configured to establish a plurality of communication links based on the communication requirements of the client;
A parameter determining module 204, configured to send a corresponding detection data packet to each communication link through the client, and determine a network quality parameter associated with each communication link according to a round trip result of each detection data packet;
The scoring calculation module 206 is configured to perform weighted calculation on a plurality of network quality sub-parameters included in each network quality parameter based on a preset weighting algorithm to obtain a communication score of each communication link, where the network quality sub-parameters include a packet loss rate, delay data, fluctuation data and load data;
the link determination module 208 is configured to determine one of the plurality of communication links as a target communication link according to the communication score of each of the communication links.
In an alternative embodiment, the link establishment module 202 is further configured to:
determining the port address of the client and the target address of the client communication; and determining a plurality of access nodes according to the port address and the target address, and establishing a plurality of communication links according to all the access nodes.
In an alternative embodiment, the parameter determination module 204 is further configured to:
Determining a communication protocol between the client and each communication link, and generating the detection data packet corresponding to each communication link according to the communication protocol;
and sending the corresponding detection data packet to each communication link through the client.
In an alternative embodiment, the parameter determination module 204 is further configured to:
After receiving the detection data packet, the access node associated with each communication link feeds back the detection data packet to the client through the associated communication link; and monitoring the transmission process of the detection data packet between the client and the access node through each communication link, and determining the network quality parameter associated with each communication link.
In an alternative embodiment, the score computation module 206 is further configured to:
according to a plurality of network quality sub-parameters contained in each network quality parameter, adjusting the weight coefficient of the weighting algorithm;
And carrying out weighted calculation on a plurality of network quality sub-parameters in each network quality parameter according to the adjusted weight coefficient to obtain the communication score of each communication link.
In an alternative embodiment, the score computation module 206 is further configured to:
and processing the delay data through a preset variance algorithm to obtain the fluctuation data.
In an alternative embodiment, the link determination module 208 is further configured to:
selecting one of the plurality of communication links as the target communication link and another of the plurality of communication links as an alternative communication link according to the communication score of each communication link;
And when the network quality of the target communication link does not meet the communication quality requirement of the client, taking the alternative communication link as the target communication link.
In an alternative embodiment, the communication link selecting device further includes:
A compensation module configured to determine a target access node and a target egress node associated with the target communication link when network quality of all of the communication links does not meet a communication quality requirement of the client; determining a plurality of intermediate nodes associated with the target access node, and sending a compensation data packet to the plurality of intermediate nodes through the target access node; transmitting the received compensation data packet to the target egress node through each of the intermediate nodes; and reserving the compensation data packet which is received by the target exit node first, and de-duplicating the repeatedly received compensation data packet.
In an alternative embodiment, the compensation module is further configured to:
Reading the data packet code of the compensation data packet received by the target exit node; inquiring an encoding table of the target exit node, reserving the compensation data packet when the data packet encoding does not exist in the encoding table, and writing the data packet encoding into the encoding table; and discarding the compensation data packet when the data packet code exists in the code table.
The communication link selection device provided by the application establishes a plurality of communication links based on the communication requirement of a client; sending corresponding detection data packets to each communication link through a client, and determining network quality parameters associated with each communication link according to the round trip result of each detection data packet; based on a preset weighting algorithm, carrying out weighted calculation on a plurality of network quality sub-parameters contained in each network quality parameter to obtain a communication score of each communication link, wherein the network quality sub-parameters comprise packet loss rate, delay data, fluctuation data and load data; and determining one of the communication links as a target communication link according to the communication score of each communication link. The method and the device have the advantages that one with the best communication quality is selected from a plurality of communication links to serve as a communication channel of the client, communication delay is reduced, the problems of packet loss and the like are effectively avoided, and the use experience of a user is improved.
The foregoing is a schematic solution of a communication link selection device according to this embodiment. It should be noted that, the technical solution of the communication link selection device and the technical solution of the communication link selection method belong to the same concept, and details of the technical solution of the communication link selection device, which are not described in detail, can be referred to the description of the technical solution of the communication link selection method. Furthermore, the components in the apparatus embodiments should be understood as functional blocks that must be established to implement the steps of the program flow or the steps of the method, and the functional blocks are not actually functional partitions or separate limitations. The device claims defined by such a set of functional modules should be understood as a functional module architecture for implementing the solution primarily by means of the computer program described in the specification, and not as a physical device for implementing the solution primarily by means of hardware.
FIG. 3 illustrates a block diagram of a computing device 300 provided in accordance with an embodiment of the present application. The components of the computing device 300 include, but are not limited to, a memory 310 and a processor 320. Processor 320 is coupled to memory 310 via bus 330 and database 350 is used to hold data.
Computing device 300 also includes an access device 340, access device 340 enabling computing device 300 to communicate via one or more networks 360. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. The access device 340 may include one or more of any type of network interface, wired or wireless (e.g., a Network Interface Card (NIC)), such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the application, the above-described components of computing device 300, as well as other components not shown in FIG. 3, may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device illustrated in FIG. 3 is for exemplary purposes only and is not intended to limit the scope of the present application. Those skilled in the art may add or replace other components as desired.
Computing device 300 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), mobile phone (e.g., smart phone), wearable computing device (e.g., smart watch, smart glasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 300 may also be a mobile or stationary server.
Wherein the processor 320 is configured to execute computer-executable instructions for performing steps of the communication link selection method.
The foregoing is a schematic illustration of a computing device of this embodiment. It should be noted that, the technical solution of the computing device and the technical solution of the communication link selection method belong to the same concept, and details of the technical solution of the computing device, which are not described in detail, can be referred to the description of the technical solution of the communication link selection method.
An embodiment of the present application also provides a computer-readable storage medium storing computer instructions that, when executed by a processor, are configured to perform the steps of the communication link selection method.
The above is an exemplary version of a computer-readable storage medium of the present embodiment. It should be noted that, the technical solution of the storage medium and the technical solution of the communication link selection method belong to the same concept, and details of the technical solution of the storage medium which are not described in detail can be referred to the description of the technical solution of the communication link selection method.
An embodiment of the present application also provides a chip storing a computer program which, when executed by the chip, implements the steps of the communication link selection method.
The foregoing describes certain embodiments of the present application. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
The computer instructions include computer program code that may be in source code form, object code form, executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
It should be noted that, for the sake of simplicity of description, the foregoing method embodiments are all expressed as a series of combinations of actions, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily all required for the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments.
The preferred embodiments of the application disclosed above are intended only to assist in the explanation of the application. Alternative embodiments are not intended to be exhaustive or to limit the application to the precise form disclosed. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and the practical application, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and the full scope and equivalents thereof.

Claims (10)

1. A method of communication link selection, comprising:
Establishing a plurality of communication links based on the communication requirements of the client;
Sending corresponding detection data packets to each communication link through the client, and determining network quality parameters associated with each communication link according to the round trip result of each detection data packet;
Based on a preset weighting algorithm, carrying out weighted calculation on a plurality of network quality sub-parameters contained in each network quality parameter to obtain a communication score of each communication link, wherein the network quality sub-parameters comprise packet loss rate, delay data, fluctuation data and load data;
And determining one of the communication links as a target communication link according to the communication score of each communication link.
2. The method of claim 1, wherein the establishing a plurality of communication links based on the communication needs of the client comprises:
determining the port address of the client and the target address of the client communication;
And determining a plurality of access nodes according to the port address and the target address, and establishing a plurality of communication links according to all the access nodes.
3. The method of claim 1, wherein said sending, by the client, a corresponding detection data packet to each of the communication links comprises:
Determining a communication protocol between the client and each communication link, and generating the detection data packet corresponding to each communication link according to the communication protocol;
and sending the corresponding detection data packet to each communication link through the client.
4. The method of claim 1, wherein said determining network quality parameters associated with each of said communication links based on the round trip result of each of said detected packets comprises:
after receiving the detection data packet, the access node associated with each communication link feeds back the detection data packet to the client through the associated communication link;
and monitoring the transmission process of the detection data packet between the client and the access node through each communication link, and determining the network quality parameter associated with each communication link.
5. The method according to claim 1, wherein the weighting calculation is performed on the plurality of network quality sub-parameters included in each of the network quality parameters based on a preset weighting algorithm to obtain a communication score of each of the communication links, including:
according to a plurality of network quality sub-parameters contained in each network quality parameter, adjusting the weight coefficient of the weighting algorithm;
And carrying out weighted calculation on a plurality of network quality sub-parameters in each network quality parameter according to the adjusted weight coefficient to obtain the communication score of each communication link.
6. The method according to claim 1, wherein the delay data is processed by a preset variance algorithm to obtain the fluctuation data.
7. The method of claim 1, wherein said determining one of a plurality of said communication links as a target communication link based on a communication score for each of said communication links comprises:
selecting one of the plurality of communication links as the target communication link and another of the plurality of communication links as an alternative communication link according to the communication score of each communication link;
And when the network quality of the target communication link does not meet the communication quality requirement of the client, taking the alternative communication link as the target communication link.
8. The method of claim 1, wherein after determining one of the plurality of communication links as the target communication link based on the communication score of each of the communication links, further comprising:
Determining a target access node and a target exit node associated with the target communication link under the condition that the network quality of all the communication links does not meet the communication quality requirement of the client;
Determining a plurality of intermediate nodes associated with the target access node, and sending a compensation data packet to the plurality of intermediate nodes through the target access node;
transmitting the received compensation data packet to the target egress node through each of the intermediate nodes;
and reserving the compensation data packet which is received by the target exit node first, and de-duplicating the repeatedly received compensation data packet.
9. The method of claim 8, wherein the retaining the compensating data packet received first by the target egress node and de-duplicating the compensating data packet received repeatedly comprises:
reading the data packet code of the compensation data packet received by the target exit node;
inquiring an encoding table of the target exit node, reserving the compensation data packet when the data packet encoding does not exist in the encoding table, and writing the data packet encoding into the encoding table;
And discarding the compensation data packet when the data packet code exists in the code table.
10. A communication link selection device, comprising:
the link establishment module is configured to establish a plurality of communication links based on the communication requirements of the client;
the parameter determining module is configured to send corresponding detection data packets to each communication link through the client, and determine network quality parameters associated with each communication link according to the round trip result of each detection data packet;
the scoring calculation module is configured to perform weighted calculation on a plurality of network quality sub-parameters contained in each network quality parameter based on a preset weighting algorithm to obtain a communication score of each communication link, wherein the network quality sub-parameters comprise packet loss rate, delay data, fluctuation data and load data;
And the link determining module is configured to determine one of the communication links as a target communication link according to the communication score of each communication link.
CN202411054287.6A 2024-08-02 2024-08-02 Communication link selection method and device Pending CN118590433A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411054287.6A CN118590433A (en) 2024-08-02 2024-08-02 Communication link selection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411054287.6A CN118590433A (en) 2024-08-02 2024-08-02 Communication link selection method and device

Publications (1)

Publication Number Publication Date
CN118590433A true CN118590433A (en) 2024-09-03

Family

ID=92528497

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411054287.6A Pending CN118590433A (en) 2024-08-02 2024-08-02 Communication link selection method and device

Country Status (1)

Country Link
CN (1) CN118590433A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291816A (en) * 2020-11-13 2021-01-29 Oppo广东移动通信有限公司 Data transmission method, device, storage medium and electronic equipment
CN114040429A (en) * 2022-01-06 2022-02-11 中国铁道科学研究院集团有限公司通信信号研究所 Multilink mobile communication service quality simulation test method
CN115701181A (en) * 2021-07-31 2023-02-07 贵州白山云科技股份有限公司 Node scheduling method, device, medium and equipment
CN117692984A (en) * 2023-12-22 2024-03-12 深圳创维数字技术有限公司 Link selection method, device, terminal equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291816A (en) * 2020-11-13 2021-01-29 Oppo广东移动通信有限公司 Data transmission method, device, storage medium and electronic equipment
CN115701181A (en) * 2021-07-31 2023-02-07 贵州白山云科技股份有限公司 Node scheduling method, device, medium and equipment
CN114040429A (en) * 2022-01-06 2022-02-11 中国铁道科学研究院集团有限公司通信信号研究所 Multilink mobile communication service quality simulation test method
CN117692984A (en) * 2023-12-22 2024-03-12 深圳创维数字技术有限公司 Link selection method, device, terminal equipment and storage medium

Similar Documents

Publication Publication Date Title
US20240205151A1 (en) Systems, Apparatuses and Methods for Network Packet Management
EP1335525B1 (en) Method for probing the peer-to-peer quality of service (QOS)
US11570098B2 (en) Systems, apparatuses and methods for cooperating routers
EP3694160B1 (en) Date transmission method, apparatus and device
US20140003277A1 (en) Apparatus and method for monitoring quality metrics associated with a wireless network
US10355961B2 (en) Network traffic capture analysis
CN115426693A (en) Network switching method, electronic equipment and chip subsystem
Bao et al. A model for steady state throughput of TCP CUBIC
WO2018112877A1 (en) Path calculating and access request distributing methods, devices and systems
Fu et al. Performance comparison of congestion control strategies for multi-path TCP in the NORNET testbed
CN113300817B (en) Data transmission method and device
EP3539235B1 (en) Systems, apparatuses and methods for cooperating routers
CN106789709B (en) Load balancing method and device
CN118590433A (en) Communication link selection method and device
Mirkovic et al. Measuring impact of dos attacks
Achmad et al. Portable IP-based communication system using Raspberry Pi as exchange
Singh et al. Audio Transmission Over Wavelet-Based Wireless VoIP
US8332938B2 (en) Detection of encrypted packet streams using a timer
CN116582496B (en) Token bucket packet loss optimization method and system
An et al. Evaluating SIP-based VoIP communication quality and network security
Pournaghshband et al. End-to-End Detection of Middlebox Interference
Vranova et al. Impact of Voice Payload Size on Behaviour of the Field Network of the Armed Forces of the Czech Republic
Mazálek et al. Optimization of the Low-Speed Network Performance for Voice Services
CN115987895A (en) Congestion determination method and device
Pournaghshband et al. A General Detection Framework for Transparent Middleboxes

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