Communication link selection method and device

By establishing multiple communication links on the client, evaluating and selecting the best link, promptly replacing links and performing data packet compensation, the problem of network delay and packet loss between the client and the server is solved, and communication quality and User experience.

CN118590433AInactive Publication Date: 2024-09-03CHENGDU JUNYUN TECH CO LTD

Patent Information

Application Number
CN202411054287.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-09-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Since the physical distance between the client and the server causes data packet transmission delays and affects the quality of network communication, it is difficult for existing technologies to effectively solve the problem of network quality fluctuations.

Method used

Establish multiple communication links through the client, send detection data packets and determine network quality parameters based on the round-trip results, use a weighted algorithm to calculate communication scores, select the link with the best communication quality as the target link, and replace the link in time to cope with the network Quality changes, and packet compensation is performed through intermediate nodes to reduce latency and packet loss.

Benefits of technology

It realizes selecting the communication channel with the best communication quality among multiple communication links, reducing communication delays, avoiding packet loss problems, improving user experience, and effectively coping with network quality fluctuations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118590433A
    Figure CN118590433A
Patent Text Reader

Abstract

The invention provides a communication link selection method and device, and the method comprises the steps: building a plurality of communication links based on the communication demands of a client; sending a corresponding detection data packet to each communication link through the client, and determining a network quality parameter associated with each communication link according to a round-trip result of each detection data packet; based on a preset weighting algorithm, weighting calculation is carried out on a plurality of network quality sub-parameters contained in each network quality parameter to obtain a communication score of each communication link, and the network quality sub-parameters comprise a packet loss rate, delay data, fluctuation data and load data; and determining one of the plurality of communication links as a target communication link according to the communication score of each communication link. According to the invention, the communication channel with the best communication quality is selected from the plurality of communication links as the communication channel of the client, the communication delay is reduced, the problems of packet loss and the like are effectively avoided, and the use experience of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a communication link selection method and device. Background Art

[0002] With the development of Internet technology, the network has gradually been integrated into people's work and life. In some business scenarios, due to the physical distance between the client and the server, there will be a certain delay in the transmission of data packets, resulting in poor network quality. Business scenarios are heavily dependent on the network communication between the client and the server. The fluctuation of network quality will inevitably affect the normal network communication, and then affect the business scenario. Therefore, a method is urgently needed to find the lowest delay session between two points. Summary of the invention

[0003] In view of this, the embodiment of the present application provides a communication link selection method to solve the technical defects existing in the prior art. The embodiment of the present application also provides a communication link selection device, a computing device, and a computer-readable storage medium.

[0004] According to a first aspect of an embodiment of the present application, a communication link selection method is provided, comprising: Establish multiple communication links based on the client's communication needs; Sending a corresponding detection data packet to each of the communication links through the client, and determining a network quality parameter associated with each of the communication links according to a round-trip result of each of the detection data packets; Based on a preset weighted algorithm, a plurality of network quality sub-parameters included in each of the network quality parameters are weightedly calculated to obtain a communication score for each of the communication links, wherein the network quality sub-parameters include packet loss rate, delay data, fluctuation data, and load data; According to the communication score of each of the communication links, one of the plurality of communication links is determined as a target communication link.

[0005] Optionally, the establishing of multiple communication links based on the communication requirements of the client includes: Determine the port address of the client and the target address of the client communication; A plurality of access nodes are determined according to the port address and the target address, and a plurality of the communication links are established according to all the access nodes.

[0006] Optionally, sending a corresponding detection data packet to each of the communication links through the client includes: Determine the communication protocol between the client and each of the communication links, and generate the detection data packet corresponding to each of the communication links according to the communication protocol; The corresponding detection data packet is sent to each of the communication links through the client.

[0007] Optionally, determining the network quality parameter associated with each of the communication links according to the round-trip result of each of the detection data packets includes: After receiving the detection data packet, each access node associated with the communication link feeds the detection data packet back to the client through the associated communication link; The transmission process of the detection data packet between the client and the access node through each of the communication links is monitored to determine the network quality parameter associated with each of the communication links.

[0008] Optionally, the weighted calculation of the multiple network quality sub-parameters included in each of the network quality parameters based on a preset weighted algorithm to obtain a communication score for each of the communication links includes: Adjusting the weight coefficient of the weighted algorithm according to the plurality of network quality sub-parameters included in each of the network quality parameters; A weighted calculation is performed on a plurality of the network quality sub-parameters in each of the network quality parameters according to the adjusted weight coefficient to obtain a communication score for each of the communication links.

[0009] Optionally, the delay data is processed by a preset variance algorithm to obtain the fluctuation data.

[0010] Optionally, determining one of the plurality of communication links as a target communication link according to the communication score of each of the communication links comprises: selecting one of the plurality of communication links as the target communication link according to the communication score of each of the communication links, and selecting another one of the plurality of communication links as an alternative communication link; When the network quality of the target communication link does not meet the communication quality requirement of the client, the alternative communication link is used as the target communication link.

[0011] Optionally, after determining one of the plurality of communication links as a target communication link according to the communication score of each of the communication links, the method further comprises: When the network quality of all the communication links does not meet the communication quality requirement of the client, determining a target access node and a target exit node associated with the target communication link; Determining a plurality of intermediate nodes associated with the target access node, and sending compensation data packets to the plurality of intermediate nodes through the target access node; Sending the received compensation data packet to the target exit node through each of the intermediate nodes; The compensation data packet first received by the target egress node is retained, and duplicate compensation data packets received repeatedly are deduplicated.

[0012] Optionally, retaining the compensation data packet first received by the target egress node and deduplicating the compensation data packets received repeatedly includes: reading a data packet code of the compensation data packet received by the target egress node; querying the coding table of the target egress node, and when the data packet coding does not exist in the coding table, retaining the compensation data packet, and writing the data packet coding into the coding table; When the packet encoding exists in the encoding table, the compensation packet is discarded.

[0013] According to a second aspect of an embodiment of the present application, a communication link selection device is provided, comprising: A link establishment module, configured to establish a plurality of communication links based on the communication requirements of the client; A parameter determination module is configured to send a corresponding detection data packet to each of the communication links through the client, and determine a network quality parameter associated with each of the communication links according to a round-trip result of each of the detection data packets; A score calculation module is configured to perform weighted calculation on a plurality of network quality sub-parameters included in each of the network quality parameters based on a preset weighted algorithm to obtain a communication score for each of the communication links, wherein the network quality sub-parameters include packet loss rate, delay data, fluctuation data, and load data; The link determination module 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.

[0014] According to a third aspect of an embodiment of the present application, a computing device is provided, including: Memory and processor; The memory is used to store computer executable instructions, and the processor implements the steps of the communication link selection method when executing the computer executable instructions.

[0015] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the communication link selection method are implemented.

[0016] According to a fifth aspect of an embodiment of the present application, a chip is provided, which stores a computer program, and when the computer program is executed by the chip, the steps of the communication link selection method are implemented.

[0017] The communication link selection method provided by the present application establishes multiple communication links based on the communication needs of the client; sends a corresponding detection data packet to each communication link through the client, and determines the network quality parameters associated with each communication link based on the round-trip results of each detection data packet; based on a preset weighted algorithm, performs weighted calculation on multiple network quality sub-parameters contained in each network quality parameter to obtain a communication score for each communication link, wherein the network quality sub-parameters include packet loss rate, delay data, fluctuation data, and load data; according to the communication score of each communication link, determines one of the multiple communication links as the target communication link. It realizes the selection of the one with the best communication quality among multiple communication links as the communication channel of the client, reduces communication delay, effectively avoids problems such as packet loss, and improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0019] Figure 1 is a flow chart of a communication link selection method provided by an embodiment of the present application; Figure 2 It is a structural schematic diagram of a communication link selection device provided by an embodiment of the present application; Figure 3 It is a structural block diagram of a computing device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0020] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.

[0021] The terms used in one or more embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of the present application. The singular forms of "a", "said" and "the" used in one or more embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of the present application refers to and includes any or all possible combinations of one or more associated listed items.

[0022] It should be understood that, although the terms first, second, etc. may be used to describe various information in one or more embodiments of the present application, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of the present application, the first may also be referred to as the second, and similarly, the second may also be referred to as the first.

[0023] First, the terms involved in one or more embodiments of the present invention are explained.

[0024] UDP: User Datagram Protocol, a connectionless transport protocol supported by the Internet protocol suite. UDP provides a method for applications to send encapsulated IP data packets without establishing a connection.

[0025] TCP: Transmission Control Protocol is a connection-oriented, reliable, byte stream-based transport layer communication protocol defined by IETF's RFC 793.

[0026] ICMP: Internet Control Message Protocol. It is a sub-protocol of the TCP / IP protocol suite, used to transmit control messages between IP hosts and routers.

[0027] PPS: During network transmission, information needs to be divided into data packets for transmission. Therefore, the more data packets transmitted in a certain period of time represented by PPS, the faster the transmission speed.

[0028] MD5: MD5 Message-Digest Algorithm, a widely used cryptographic hash function that can generate a 128-bit (16-byte) hash value to ensure the integrity and consistency of information transmission.

[0029] 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 one by one in the following embodiments.

[0030] Figure 1 A flow chart of a communication link selection method provided according to an embodiment of the present application is shown, which specifically includes the following steps: Step S102: establishing multiple communication links based on the communication requirements of the client; Step S104: sending a corresponding detection data packet to each of the communication links through the client, and determining a network quality parameter associated with each of the communication links according to a round-trip result of each of the detection data packets; Step S106: Based on a preset weighting algorithm, a plurality of network quality sub-parameters included in each of the network quality parameters are weighted to obtain a communication score for each of the communication links, wherein the network quality sub-parameters include packet loss rate, delay data, fluctuation data, and load data; Step S108: Determine one of the plurality of communication links as a target communication link according to the communication score of each of the communication links.

[0031] Among them, the communication link is used to realize 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. It should be noted that when the client interacts with other clients, the server is also required to transfer information.

[0032] Based on this, due to the physical distance between the client and the server, there will be a certain delay in the transmission of data packets. In order to find the lowest delay session between two points, multiple communication links are established. Then the client sends detection data packets to the multiple established 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 the detection data packet back to the client through the communication link. The client monitors the round-trip situation of the detection data packet to determine the network quality parameters of the communication link. By weighted calculation of the packet loss rate, delay data, fluctuation data and load data contained in the network quality parameters, the communication score of the communication link is obtained, and the communication link with the highest communication score, that is, the target communication link, is selected as the link for the client to communicate.

[0033] Specifically, in actual usage scenarios, when the client sends a UDP data packet to the destination port, it first creates multiple UDP and TCP links at the same time. The number of links is determined by the number of ports. Generally, one port has three links, and each link uses a different source port and a different destination port. Multiple detection data packets are sent to each link to detect the network quality parameters of the UDP and TCP links respectively. After obtaining the network quality parameters of each data packet, the communication score is determined by a weighted algorithm, and the communication link with the best communication quality is selected as the link for data transmission. In actual measurement scenarios, the above method can often improve the communication quality by 5%~10%.

[0034] Furthermore, based on the communication requirements of the client, the process of establishing multiple communication links is specifically implemented as follows in this embodiment: Determine the port address of the client and the target address of the client communication; determine multiple access nodes according to the port address and the target address, and establish multiple communication links according to all the access nodes.

[0035] Among them, the port address of the client itself can be determined through the client's communication needs, as well as the target address of the target device during the communication between the client and the target device. The corresponding access node can be determined based on the port address and the target address, and a communication link can be established based on the access node.

[0036] Specifically, if the port address of the client is U and the target address of the target device is V, U and V can be connected through servers set up in each city. In actual usage scenarios, the service areas are often connected to each other. In this case, if the client is within the communication range of server A, and the access node corresponding to server A is a, the target device is within the communication range of server B, and the access node corresponding to server B is b, in addition, there is access node c of server C and access node d of server D, then the communication links that can be established at this time are UabV, UacbV, UadbV, UacdbV, and UadcbV.

[0037] Furthermore, the process of sending a corresponding detection data packet to each communication link by the client is specifically implemented as follows in this embodiment: Determine the communication protocol between the client and each of the communication links, and generate the detection data packet corresponding to each of the communication links according to the communication protocol; and send the corresponding detection data packet to each of the communication links through the client.

[0038] Among them, it is necessary to determine the availability of the communication protocol between the client and the communication link, such as the availability of ICMP, UDP, and TCP protocols, and then send corresponding detection data packets, such as ICMP packets, UDP packets, and TCP packets, according to the availability of the communication protocol.

[0039] Furthermore, according to the round-trip result of each detection data packet, the process of determining the network quality parameter associated with each communication link is specifically implemented as follows in this embodiment: After receiving the detection data packet, the access node associated with each communication link feeds the detection data packet back to the client through the associated communication link; monitors the transmission process of the detection data packet between the client and the access node through each communication link, and determines the network quality parameters associated with each communication link.

[0040] Furthermore, based on a preset weighted algorithm, a weighted calculation is performed on multiple network quality sub-parameters included in each network quality parameter to obtain a communication score for each communication link. In this embodiment, the specific implementation method is as follows: According to the multiple network quality sub-parameters contained in each of the network quality parameters, the weight coefficient of the weighted algorithm is adjusted; according to the adjusted weight coefficient, the multiple network quality sub-parameters in each of the network quality parameters are weightedly calculated to obtain the communication score of each of the communication links.

[0041] Furthermore, the delay data is processed by a preset variance algorithm to obtain the fluctuation data.

[0042] Among them, the process of determining the access node associated with the communication link can be understood as the process of determining the port of the server responsible for the client communication. After receiving the detection data packet sent by the client, the server feeds the detection data packet back to the client, and determines the packet loss rate of any communication link by monitoring whether there is packet loss in the detection data packet, and records the delay of the detection data packet to obtain the delay data of any communication link; the delay data of any communication link is processed by the variance formula to calculate the fluctuation data of the communication link; and the load data of any communication link is determined according to information such as CPU utilization, bandwidth, PPS, memory usage, whether the export is unobstructed, etc.; finally, a weighted calculation is performed based on the obtained packet loss rate, delay data, fluctuation data and load data to obtain the communication score of the communication link.

[0043] Furthermore, in actual usage scenarios, the network quality of the communication link changes in real time. In this case, the previously determined target communication link may change over time and fail to meet the user's communication needs. In order to solve this problem, the communication link for transmitting data on the client may be replaced. In this embodiment, the specific implementation method is as follows: According to the communication score of each of the communication links, one of the multiple communication links is selected as the target communication link, and another one of the multiple communication links is selected as an alternative communication link; when the network quality of the target communication link does not meet the communication quality requirement of the client, the alternative communication link is used as the target communication link.

[0044] Among them, the target communication link and the alternative communication link are selected through the calculated communication score. In the actual usage scenario, the target communication link generally focuses on the delay problem. Therefore, when calculating the communication score, the communication link with the lowest delay can be selected by increasing the weight of the delay data; and the alternative communication link can be selected based on the other network quality sub-parameters, such as the fluctuation of network communication. In this case, when calculating the communication score, the communication link with the smallest network fluctuation and the most stable one is selected by increasing the weight corresponding to the fluctuation data. In the case of poor network quality, the alternative communication link replaces the original target communication link to transmit data to the client.

[0045] 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 be changed in a timely manner. A set time period, such as 10 seconds, can be used. Every time a time period passes, the target communication link is determined and the alternative communication link is replaced at the same time. It should be noted that the specific value setting of the time period is determined by the actual usage scenario and is not limited in this embodiment.

[0046] In addition, the network quality of each communication link is affected by multiple factors, namely, packet loss rate, delay, fluctuation and load. In some scenarios, one of these factors will become the main factor affecting the network quality. For example, in some scenarios, during the client's communication, the packet loss rate, network fluctuation and load of the target communication link are all within the normal range, but the network delay is very serious. This communication scenario with serious network delay cannot meet the user's actual communication needs. At this time, the weight of the delay data in the calculation process of the communication score will be adjusted according to the delay data of the network delay in the corresponding network quality, so as to select the communication link with the least network delay problem as the target communication link from multiple communication links.

[0047] Furthermore, there is a situation where the network quality of multiple communication links cannot meet the actual communication needs of users. In this case, network compensation is required for the communication links. In this implementation, the specific implementation method is as follows: When the network quality of all the communication links does not meet the communication quality requirements of the client, determine the target access node and the target exit node associated with the target communication link; determine multiple intermediate nodes associated with the target access node, and send compensation data packets to the multiple intermediate nodes through the target access node; send the received compensation data packet to the target exit node through each of the intermediate nodes; retain the compensation data packet first received by the target exit node, and deduplicate the compensation data packets received repeatedly.

[0048] Among them, after the communication score is obtained according to the weighted calculation, the network quality can be graded according to the communication score, such as excellent, good, poor, or divided into A, B, C and other ratings. Taking the excellent, good, and poor ratings as an example, if the network quality ratings of all communication links are "poor", in this case, it can be determined that the network quality of all communication links does not meet the communication quality requirements of the client.

[0049] Based on this, the key nodes between the client and the target device are divided into entry nodes, intermediate nodes and exit nodes, among which the number of intermediate nodes is not limited. The entry node can be understood as the server node responsible for client communication, the exit node can be understood as the server node responsible for target device communication, and the intermediate node is the server node responsible for data transmission between the above two servers. As described above, node a of server A is the entry node, node b of server B is the exit node, and node c of server C and node d of server D are intermediate nodes.

[0050] In the process of the client sending compensation data packets, the compensation data packets passing through the entry node will be sent to all intermediate nodes. After receiving the compensation data packets, the intermediate nodes will send the compensation data packets to the exit node. The exit node retains the compensation data packets that arrive first, and the compensation data packets that arrive later are discarded. In this case, since the compensation data packets retained by the exit node are the first compensation data packets to arrive, the compensation data packets can be received with the lowest delay during data transmission, and packet loss can be reduced.

[0051] Furthermore, if the client continuously sends compensation data packets, and the communication speeds of the compensation data packets passing through each intermediate node are different, there are two intermediate nodes, one of which sends the current compensation data packet to the exit node, while the previous batch of compensation data packets sent by the other intermediate node has just arrived at the exit node. In this case, the compensation data packets may be confused. In order to avoid confusion, in this embodiment, the specific implementation method is as follows: Read the data packet code of the compensation data packet received by the target exit node; query the coding table of the target exit node, and when the data packet code does not exist in the coding table, retain the compensation data packet and write the data packet code into the coding table; when the data packet code exists in the coding table, discard the compensation data packet.

[0052] Among them, by setting a corresponding data packet code for each compensation data packet, the data packet code is used as a unique identity code of the compensation data packet, so that different compensation data packets can be distinguished. In addition to selecting to distinguish compensation data packets, the data packet code can also ensure the information transmission security of the compensation data packet, such as using the MD5 code as the data packet code of the compensation data packet to ensure that the compensation data packet has not been tampered with during the transmission process.

[0053] Corresponding to the above method embodiment, the present application also provides a communication link selection device embodiment, Figure 2 FIG. 1 is a schematic diagram showing the structure of a communication link selection device provided by an embodiment of the present application. Figure 2 As shown, the device comprises: The link establishment module 202 is configured to establish a plurality of communication links based on the communication requirements of the client; The parameter determination module 204 is configured to send a corresponding detection data packet to each of the communication links through the client, and determine the network quality parameter associated with each of the communication links according to the round-trip result of each of the detection data packets; The score calculation module 206 is configured to perform weighted calculation on the multiple network quality sub-parameters included in each of the network quality parameters based on a preset weighted algorithm to obtain a communication score for each of the communication links, wherein the network quality sub-parameters include 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.

[0054] In an optional embodiment, the link establishing module 202 is further configured to: Determine the port address of the client and the target address of the client communication; determine multiple access nodes according to the port address and the target address, and establish multiple communication links according to all the access nodes.

[0055] In an optional embodiment, the parameter determination module 204 is further configured to: Determine the communication protocol between the client and each of the communication links, and generate the detection data packet corresponding to each of the communication links according to the communication protocol; The corresponding detection data packet is sent to each of the communication links through the client.

[0056] In an optional 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 the detection data packet back to the client through the associated communication link; monitors the transmission process of the detection data packet between the client and the access node through each communication link, and determines the network quality parameters associated with each communication link.

[0057] In an optional embodiment, the score calculation module 206 is further configured to: Adjusting the weight coefficient of the weighted algorithm according to the plurality of network quality sub-parameters included in each of the network quality parameters; A weighted calculation is performed on a plurality of the network quality sub-parameters in each of the network quality parameters according to the adjusted weight coefficient to obtain a communication score for each of the communication links.

[0058] In an optional embodiment, the score calculation module 206 is further configured to: The delay data is processed by a preset variance algorithm to obtain the fluctuation data.

[0059] In an optional embodiment, the link determination module 208 is further configured to: selecting one of the plurality of communication links as the target communication link according to the communication score of each of the communication links, and selecting another one of the plurality of communication links as an alternative communication link; When the network quality of the target communication link does not meet the communication quality requirement of the client, the alternative communication link is used as the target communication link.

[0060] In an optional embodiment, the communication link selection device further includes: The compensation module is configured to, when the network quality of all the communication links does not meet the communication quality requirements of the client, determine the target access node and the target exit node associated with the target communication link; determine multiple intermediate nodes associated with the target access node, and send compensation data packets to the multiple intermediate nodes through the target access node; send the received compensation data packets to the target exit node through each of the intermediate nodes; retain the compensation data packet first received by the target exit node, and deduplicate the compensation data packets received repeatedly.

[0061] In an optional embodiment, the compensation module is further configured to: Read the data packet code of the compensation data packet received by the target exit node; query the coding table of the target exit node, and when the data packet code does not exist in the coding table, retain the compensation data packet and write the data packet code into the coding table; when the data packet code exists in the coding table, discard the compensation data packet.

[0062] The communication link selection device provided by the present application establishes multiple communication links based on the communication needs of the client; sends a corresponding detection data packet to each communication link through the client, and determines the network quality parameters associated with each communication link based on the round-trip results of each detection data packet; based on a preset weighted algorithm, performs weighted calculation on multiple network quality sub-parameters contained in each network quality parameter to obtain a communication score for each communication link, wherein the network quality sub-parameters include packet loss rate, delay data, fluctuation data, and load data; according to the communication score of each communication link, determines one of the multiple communication links as the target communication link. It realizes the selection of the one with the best communication quality among multiple communication links as the communication channel of the client, reduces communication delay, effectively avoids problems such as packet loss, and improves the user experience.

[0063] The above is a schematic scheme of a communication link selection device of the present embodiment. It should be noted that the technical scheme of the communication link selection device and the technical scheme of the communication link selection method mentioned above belong to the same concept. For details not described in detail in the technical scheme of the communication link selection device, please refer to the description of the technical scheme of the communication link selection method mentioned above. In addition, each component in the device embodiment should be understood as a functional module that must be established to implement each step of the program flow or each step of the method, and each functional module is not an actual functional division or separation definition. The device claim defined by such a group of functional modules should be understood as a functional module architecture that mainly implements the solution through the computer program recorded in the specification, and should not be understood as a physical device that mainly implements the solution through hardware.

[0064] Figure 3 The block diagram of a computing device 300 provided according to an embodiment of the present application is shown. The components of the computing device 300 include but are not limited to a memory 310 and a processor 320. The processor 320 is connected to the memory 310 via a bus 330, and the database 350 is used to store data.

[0065] The computing device 300 also includes an access device 340 that enables the computing device 300 to communicate via one or more networks 360. Examples of these networks include a 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 (e.g., a network interface card (NIC)) whether wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a World Wide 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 the like.

[0066] In one embodiment of the present application, the above components of the computing device 300 and Figure 3 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 3 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of the present application. Those skilled in the art may add or replace other components as needed.

[0067] The computing device 300 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. The computing device 300 may also be a mobile or stationary server.

[0068] The processor 320 is used to execute computer executable instructions of each step of the communication link selection method.

[0069] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the above communication link selection method belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be referred to the description of the technical scheme of the above communication link selection method.

[0070] An embodiment of the present application further provides a computer-readable storage medium storing computer instructions, which are used to execute the steps of the communication link selection method when executed by a processor.

[0071] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the communication link selection method described above are of the same concept, and the details not described in detail in the technical scheme of the storage medium can be found in the description of the technical scheme of the communication link selection method described above.

[0072] An embodiment of the present application further provides a chip storing a computer program, which implements the steps of the communication link selection method when executed by the chip.

[0073] The above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0074] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0075] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0076] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0077] The preferred embodiments of the present application disclosed above are only used to help explain the present application. The optional embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the present application. The present application selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present application, so that those skilled in the art can understand and use the present application well. The present application is only limited by the claims and their full scope and equivalents.

Claims

1. A communication link selection method, characterized in that: include: Establish multiple communication links based on the client's communication needs; Sending a corresponding detection data packet to each of the communication links through the client, and determining a network quality parameter associated with each of the communication links according to a round-trip result of each of the detection data packets; Based on a preset weighted algorithm, a plurality of network quality sub-parameters included in each of the network quality parameters are weightedly calculated to obtain a communication score for each of the communication links, wherein the network quality sub-parameters include packet loss rate, delay data, fluctuation data, and load data; According to the communication score of each of the communication links, one of the plurality of communication links is determined as a target communication link.

2. The method according to claim 1, characterized in that The multiple communication links are established based on the communication requirements of the client, including: Determine the port address of the client and the target address of the client communication; A plurality of access nodes are determined according to the port address and the target address, and a plurality of the communication links are established according to all the access nodes.

3. The method according to claim 1, characterized in that The sending of a corresponding detection data packet to each of the communication links through the client includes: Determine the communication protocol between the client and each of the communication links, and generate the detection data packet corresponding to each of the communication links according to the communication protocol; The corresponding detection data packet is sent to each of the communication links through the client.

4. The method according to claim 1, characterized in that Determining the network quality parameter associated with each communication link according to the round-trip result of each detection data packet includes: After receiving the detection data packet, each access node associated with the communication link feeds the detection data packet back to the client through the associated communication link; The transmission process of the detection data packet between the client and the access node through each of the communication links is monitored to determine the network quality parameter associated with each of the communication links.

5. The method according to claim 1, characterized in that The method of performing weighted calculation on the multiple network quality sub-parameters included in each of the network quality parameters based on a preset weighted algorithm to obtain a communication score for each of the communication links includes: Adjusting the weight coefficient of the weighted algorithm according to the plurality of network quality sub-parameters included in each of the network quality parameters; A weighted calculation is performed on a plurality of the network quality sub-parameters in each of the network quality parameters according to the adjusted weight coefficient to obtain a communication score for each of the communication links.

6. The method according to claim 1, characterized in that The delay data is processed by a preset variance algorithm to obtain the fluctuation data.

7. The method according to claim 1, characterized in that The step of determining one of the plurality of communication links as a target communication link according to the communication score of each of the communication links comprises: selecting one of the plurality of communication links as the target communication link according to the communication score of each of the communication links, and selecting another one of the plurality of communication links as an alternative communication link; When the network quality of the target communication link does not meet the communication quality requirement of the client, the alternative communication link is used as the target communication link.

8. The method according to claim 1, characterized in that After determining one of the plurality of communication links as a target communication link according to the communication score of each of the communication links, the method further includes: When the network quality of all the communication links does not meet the communication quality requirement of the client, determining a target access node and a target exit node associated with the target communication link; Determining a plurality of intermediate nodes associated with the target access node, and sending compensation data packets to the plurality of intermediate nodes through the target access node; Sending the received compensation data packet to the target exit node through each of the intermediate nodes; The compensation data packet first received by the target egress node is retained, and duplicate compensation data packets received repeatedly are deduplicated.

9. The method according to claim 8, characterized in that The retaining the compensation data packet first received by the target egress node and deduplicating the compensation data packets received repeatedly includes: reading a data packet code of the compensation data packet received by the target egress node; querying the coding table of the target egress node, and when the data packet coding does not exist in the coding table, retaining the compensation data packet, and writing the data packet coding into the coding table; When the packet encoding exists in the encoding table, the compensation packet is discarded.

10. A communication link selection device, characterized in that: include: A link establishment module, configured to establish a plurality of communication links based on the communication requirements of the client; A parameter determination module is configured to send a corresponding detection data packet to each of the communication links through the client, and determine a network quality parameter associated with each of the communication links according to a round-trip result of each of the detection data packets; A score calculation module is configured to perform weighted calculation on a plurality of network quality sub-parameters included in each of the network quality parameters based on a preset weighted algorithm to obtain a communication score for each of the communication links, wherein the network quality sub-parameters include packet loss rate, delay data, fluctuation data, and load data; The link determination module 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.

Citation Information

Patent Citations

  • Data transmission method and device, storage medium and electronic equipment

    CN112291816A

  • Multi-link mobile communication service quality simulation test method

    CN114040429A

  • Node scheduling method and device, medium and equipment

    CN115701181A

  • Link selection method and device, terminal equipment and storage medium

    CN117692984A

Cited By

  • Vehicle-mounted communication link seamless switching method and device, equipment and storage medium

    CN120499765A

  • Client version compatibility forced upgrade cooperative control method and system

    CN120762706A