Transmission link switching method and device, electronic equipment and storage medium
By selecting different forwarding servers and building transmission links based on them, and switching using round-trip delay judgment conditions, the problem of unstable transmission links in the remote ultrasonic image system is solved, and the stability and fast switching of data transmission are achieved.
Patent Information
- Application Number
- CN202410107263.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-24
- Publication Date
- 2025-07-25
AI Technical Summary
When remote ultrasonic image system data transmission is carried out based on point-to-point network, the transmission link cannot dynamically switch to normal state, resulting in unstable data transmission.
At least two different forwarding servers are selected, the first transmission link and the second transmission link are constructed, and by obtaining the round-trip delay of each link, it is determined whether the preset threshold condition is met for switching.
It realizes switching to the backup link when the transmission link is abnormal, improves the stability and robustness of data transmission and reduces the time-consuming development of transmission links.
Smart Images

Figure CN120378289A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of data processing, and in particular, to a method and apparatus for switching a transmission link, an electronic device, and a storage medium. Background Art
[0002] A remote ultrasound imaging system includes two subsystems: a doctor side and a patient side. Doctors can remotely control an ultrasound robot on the patient side through operating devices on the doctor side to perform ultrasound examinations on patients, so that ultrasound doctors in areas with rich medical resources can perform ultrasound scans and diagnoses on patients in grass-roots and remote areas thousands of kilometers away in real time regardless of their locations, thereby improving medical efficiency, medical accessibility, and medical quality.
[0003] When performing remote ultrasound examinations based on the remote ultrasound imaging system, data is transmitted between the devices on the doctor side and the patient side, and the data involved in the interaction process is generally transmitted based on a peer-to-peer (P2P) network. To ensure the stability of data transmission, multiple P2P transmission links are generally set between the two devices. However, the multiple P2P transmission links established between the two devices do not support dynamic switching between the transmission links during the interaction process, resulting in the inability to switch to a normal state transmission link when the currently used transmission link is abnormal. Summary of the Invention
[0004] The present disclosure provides a method and apparatus for switching a transmission link, an electronic device, and a storage medium. Its main purpose is to solve the problem that when data is transmitted between two devices based on P2P, it is impossible to switch to a normal state transmission link.
[0005] According to a first aspect of the present disclosure, there is provided a method for switching a transmission link, which includes:
[0006] Select at least two different forwarding servers;
[0007] Construct a first transmission link based on one of the at least two different forwarding servers, and construct a second transmission link based on another of the at least two different forwarding servers. The first transmission link is a transmission link for transmitting data between a data sending terminal and a data receiving terminal, and the second transmission link is a backup transmission link. Both the first transmission link and the second transmission link are transmission links between the data sending terminal and the data receiving terminal;
[0008] Obtain a first round-trip delay of the first transmission link and a second round-trip delay of the second transmission link;
[0009] In the case where it is determined that the first round-trip delay is greater than or equal to a preset round-trip delay threshold, and the target difference between the second round-trip delay and the first round-trip delay is greater than a preset handover threshold, switch the first transmission link to the second transmission link.
[0010] Optionally, after obtaining the first round-trip delay of the first transmission link and the second round-trip delay of the second transmission link, the method includes:
[0011] In the case where it is determined that the first round-trip delay is greater than or equal to the preset round-trip delay threshold and the target difference is less than or equal to the preset handover threshold, continue to perform data transmission based on the first transmission link.
[0012] Optionally, after obtaining the first round-trip delay of the first transmission link and the second round-trip delay of the second transmission link, the method includes:
[0013] In the case where it is determined that the first round-trip delay is less than the preset round-trip delay threshold, continue to perform data transmission based on the first transmission link.
[0014] Optionally, the selection of at least two different forwarding servers includes:
[0015] Obtain the third round-trip delay of the transmission links between the data sending terminal and at least two forwarding servers, where one third round-trip delay is the round-trip delay of one transmission link between the data sending terminal and one forwarding server; and
[0016] Obtain the fourth round-trip delay of the transmission links between the data receiving terminal and at least two of the forwarding servers, where one fourth round-trip delay is the round-trip delay of one transmission link between the data receiving terminal and one forwarding server;
[0017] Perform weight calculation based on each of the third round-trip delays and each of the fourth round-trip delays to obtain the score value corresponding to each of the forwarding servers;
[0018] Select at least two of the forwarding servers based on the score values.
[0019] Optionally, the selection of at least two of the forwarding servers based on the score values includes:
[0020] Sort the score values corresponding to each of the forwarding servers to obtain a sorting result;
[0021] Select at least two of the score values in sequence based on the order of the sorting result as the target score values;
[0022] Select at least two of the forwarding servers corresponding to the target score value.
[0023] Optionally, constructing a first transmission link based on one of the at least two different forwarding servers and constructing a second transmission link based on another forwarding server includes:
[0024] Determine the forwarding server corresponding to the target score value with the smallest numerical value in the target score values as the target forwarding server, and determine the forwarding servers corresponding to the remaining target score values as standby forwarding servers. The target forwarding server is used to forward data between the data sending terminal and the data receiving terminal, and the standby forwarding server is used to switch the target forwarding server;
[0025] Construct the first transmission link based on the target forwarding server and construct the second transmission link based on the standby forwarding server.
[0026] Optionally, obtaining the third round-trip delay of the transmission links between the data sending terminal and at least two forwarding servers includes:
[0027] Obtain at least two of the third round-trip delays. One of the third round-trip delays is the round-trip delay of the transmission link between the data sending terminal and one of the forwarding servers, and the other third round-trip delay is the round-trip delay of the transmission link between the data sending terminal and another forwarding server. The data sending terminal is connected to at least two of the forwarding servers respectively;
[0028] Obtaining the fourth round-trip delay of the transmission links between the data receiving terminal and at least two of the forwarding servers includes:
[0029] Obtain at least two of the fourth round-trip delays. One of the fourth round-trip delays is the round-trip delay of the transmission link between the data receiving terminal and one of the forwarding servers, and the other fourth round-trip delay is the round-trip delay of the transmission link between the data receiving terminal and another forwarding server. The data receiving terminal is connected to at least two of the forwarding servers respectively;
[0030] Optionally, performing weight calculation based on each of the third round-trip delays and each of the fourth round-trip delays to obtain the score value corresponding to each forwarding server among each of the forwarding servers includes:
[0031] Set different third round-trip delays to correspond to different first weight coefficients respectively, and different fourth round-trip delays to correspond to different second weight coefficients respectively. When it is determined that the first weight coefficient and the second weight coefficient both correspond to the same forwarding server, the sum of the first weight coefficient and the second weight coefficient is 1;
[0032] Multiply different third round-trip delays by their corresponding first weight coefficients respectively to obtain two different first product results; and
[0033] Multiply different fourth round-trip delays by their corresponding second weight coefficients respectively to obtain two different second product results;
[0034] When it is determined that the first product result and the second product result both correspond to the same forwarding server, calculate the sum of the first product result and the second product result to obtain the score value corresponding to the forwarding server.
[0035] According to a second aspect of the present disclosure, there is provided a transmission link switching device, including:
[0036] A selection unit for selecting at least two different forwarding servers;
[0037] A construction unit for constructing a first transmission link based on one of at least two different forwarding servers, and constructing a second transmission link based on another forwarding server. The first transmission link is a transmission link for transmitting data between a data sending terminal and a data receiving terminal, and the second transmission link is a backup transmission link. Both the first transmission link and the second transmission link are transmission links between the data sending terminal and the data receiving terminal;
[0038] An acquisition unit for acquiring a first round-trip delay of the first transmission link and a second round-trip delay of the second transmission link;
[0039] A switching unit for switching the first transmission link to the second transmission link when it is determined that the first round-trip delay is greater than or equal to a preset round-trip delay threshold, and the target difference between the second round-trip delay and the first round-trip delay is greater than a preset switching threshold.
[0040] Optionally, the device includes:
[0041] A transmission unit for continuing to transmit data based on the first transmission link when it is determined that the first round-trip delay is greater than or equal to the preset round-trip delay threshold and the target difference is less than or equal to the preset switching threshold.
[0042] Optionally, the device includes:
[0043] The transmission unit is further configured to continue data transmission based on the first transmission link when it is determined that the first round-trip delay is less than the preset round-trip delay threshold.
[0044] Optionally, the selection unit includes:
[0045] An acquisition module, configured to acquire a third round-trip delay of a transmission link between the data sending terminal and at least two forwarding servers respectively, where one third round-trip delay is the round-trip delay of a transmission link between the data sending terminal and one of the forwarding servers; and
[0046] The acquisition module is further configured to acquire a fourth round-trip delay of a transmission link between the data receiving terminal and at least two of the forwarding servers, where one fourth round-trip delay is the round-trip delay of a transmission link between the data receiving terminal and one of the forwarding servers;
[0047] A calculation module, configured to perform weight calculation based on each of the third round-trip delays and each of the fourth round-trip delays to obtain a score value corresponding to each of the forwarding servers;
[0048] A selection module, configured to select at least two of the forwarding servers based on the score value.
[0049] Optionally, the selection module is further configured to:
[0050] Sort the score values corresponding to each of the forwarding servers to obtain a sorting result;
[0051] Sequentially select at least two of the score values in the order of the sorting result as target score values;
[0052] Select at least two of the forwarding servers corresponding to the target score values.
[0053] Optionally, the construction unit includes:
[0054] A determination module, configured to determine the forwarding server corresponding to the target score value with the smallest numerical value among the target score values as the target forwarding server, and determine the forwarding servers corresponding to the remaining target score values as standby forwarding servers. The target forwarding server is used to forward data between the data sending terminal and the data receiving terminal, and the standby forwarding server is used to switch to the target forwarding server;
[0055] A construction module, configured to construct the first transmission link based on the target forwarding server and construct the second transmission link based on the standby forwarding servers.
[0056] Optionally, the obtaining module is further configured to:
[0057] Obtain at least two of the third round-trip delays, where one of the third round-trip delays is the round-trip delay of the transmission link between the data sending terminal and one of the forwarding servers, and the other third round-trip delay is the round-trip delay of the transmission link between the data sending terminal and another forwarding server. The data sending terminal is respectively connected to at least two forwarding servers;
[0058] The obtaining module further includes:
[0059] Obtain at least two of the fourth round-trip delays, where one of the fourth round-trip delays is the round-trip delay of the transmission link between the data receiving terminal and one of the forwarding servers, and the other fourth round-trip delay is the round-trip delay of the transmission link between the data receiving terminal and another forwarding server. The data receiving terminal is respectively connected to at least two forwarding servers;
[0060] Optionally, the calculating module is further configured to:
[0061] Set different third round-trip delays to correspond to different first weight coefficients respectively, and different fourth round-trip delays to correspond to different second weight coefficients respectively. When it is determined that the first weight coefficient and the second weight coefficient both correspond to the same forwarding server, the sum of the first weight coefficient and the second weight coefficient is 1;
[0062] Multiply different third round-trip delays by the corresponding first weight coefficients respectively to obtain two different first product results; and
[0063] Multiply different fourth round-trip delays by the corresponding second weight coefficients respectively to obtain two different second product results;
[0064] When it is determined that the first product result and the second product result correspond to the same forwarding server, calculate the sum of the first product result and the second product result to obtain the score value corresponding to the forwarding server.
[0065] According to a third aspect of the present disclosure, an electronic device is provided, including:
[0066] At least one processor; and
[0067] A memory communicatively connected to the at least one processor; wherein,
[0068] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in the foregoing first aspect.
[0069] According to a fourth aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the method described in the foregoing first aspect.
[0070] According to a fifth aspect of the present disclosure, there is provided a computer program product including a computer program which, when executed by a processor, implements the method described in the foregoing first aspect.
[0071] The method and apparatus for switching a transmission link, an electronic device, and a storage medium provided by the present disclosure mainly include the following technical solutions: selecting at least two different forwarding servers; constructing a first transmission link based on one of the at least two different forwarding servers and constructing a second transmission link based on another of the at least two different forwarding servers, where the first transmission link is a transmission link for transmitting data between a data sending terminal and a data receiving terminal, the second transmission link is a standby transmission link, and both the first transmission link and the second transmission link are transmission links between the data sending terminal and the data receiving terminal; obtaining a first round-trip delay of the first transmission link and a second round-trip delay of the second transmission link; and switching the first transmission link to the second transmission link when it is determined that the first round-trip delay is greater than or equal to a preset round-trip delay threshold and a target difference between the second round-trip delay and the first round-trip delay is greater than a preset switching threshold. Compared with the related art, by selecting different forwarding servers and establishing the first transmission link and the second transmission link based on the selected forwarding servers, when the first round-trip delay of the first transmission link is greater than or equal to the preset round-trip delay threshold and the target difference between the first round-trip delay and the second round-trip delay of the second transmission link is greater than the preset switching threshold, the first transmission link is switched to the second transmission link, thereby realizing the switching of the transmission link between the data receiving terminal and the data sending terminal.
[0072] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present application, nor is it used to limit the scope of the present application. Other features of the present application will become easily understandable through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] The drawings are used to better understand the solution and do not constitute a limitation to the present disclosure. Among them:
[0074] Figure 1 It is a schematic flowchart of a method for switching a transmission link provided by an embodiment of the present disclosure;
[0075] Figure 2Schematic structural diagram of a transmission link control device provided by an embodiment of the present disclosure;
[0076] Figure 3 Schematic structural diagram of another transmission link control device provided by an embodiment of the present disclosure;
[0077] Figure 4 Schematic block diagram of an exemplary electronic device 300 provided by an embodiment of the present disclosure. Detailed implementation manners
[0078] The following describes exemplary embodiments of the present disclosure with reference to the accompanying drawings. Various details of the embodiments of the present disclosure are included to facilitate understanding, and they should be considered merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for clarity and conciseness, descriptions of well-known functions and structures are omitted below.
[0079] When data is transmitted through a P2P transmission link, the P2P transmission link does not support dynamic switching between links. When using a P2P transmission link to transmit data in a complex and changeable network environment, the instability of data transmission may occur because the transmission links cannot be dynamically switched. To solve the problem of dynamic switching between transmission links, the present disclosure provides a method for switching transmission links.
[0080] The following describes a method and device for switching a transmission link, an electronic device, and a storage medium according to embodiments of the present disclosure with reference to the drawings.
[0081] Figure 1 Flowchart of a method for switching a transmission link provided by an embodiment of the present disclosure.
[0082] As shown in Figure 1 The method includes the following steps:
[0083] Step 101: Select at least two different forwarding servers;
[0084] As a refinement of the above step 101, in order to determine the forwarding servers that meet the actual application conditions, the forwarding servers need to be selected, that is, at least two different forwarding servers are selected.
[0085] As an extension of the above embodiments, the forwarding server is used to establish a transmission link between the data receiving terminal and the data sending terminal. Further, a transmission link between the data sending terminal and the data receiving terminal is established based on one forwarding server. In an actual application scenario, a relatively large number of forwarding servers are set, and a relatively small number of forwarding servers that meet the actual application conditions can be selected from the relatively large number of forwarding servers based on step 101.
[0086] Step 102: Construct a first transmission link based on one of at least two different forwarding servers, and construct a second transmission link based on another forwarding server. The first transmission link is a transmission link for transmitting data between the data sending terminal and the data receiving terminal, and the second transmission link is a backup transmission link. Both the first transmission link and the second transmission link are transmission links between the data sending terminal and the data receiving terminal.
[0087] As a refinement of the above step 102, after step 101 is executed, at least two different forwarding servers are selected, and different transmission links between the data receiving terminal and the data sending terminal are established, that is, a first transmission link is constructed based on one of at least two different forwarding servers, and a second transmission link is constructed based on another forwarding server, so as to obtain at least two transmission links between the data receiving terminal and the data sending terminal. Among them, the first transmission link is a transmission link for transmitting data between the data sending terminal and the data receiving terminal, that is, the first transmission link is the optimal link among all transmission links, and the first transmission link is preferentially used to transmit data between the data receiving end and the data sending end. The second transmission link is a backup transmission link.
[0088] Step 103: Obtain the first round-trip delay of the first transmission link and the second round-trip delay of the second transmission link.
[0089] As a refinement of the above step 103, in order to obtain the round-trip delay parameters corresponding to the first transmission link and the second transmission link respectively, it is necessary to obtain the first round-trip delay corresponding to the first transmission link and the second round-trip delay corresponding to the second transmission link. Among them, both the first round-trip delay and the second round-trip delay can be obtained through the Internet Control Message Protocol (ICMP) echo request and reply, that is, the ping measurement technology. The first round-trip delay and the second round-trip delay corresponding to each other are obtained by performing ping measurements on the first transmission link and the second transmission link respectively.
[0090] Step 104: When it is determined that the first round-trip delay is greater than or equal to a preset round-trip delay threshold and the target difference between the second round-trip delay and the first round-trip delay is greater than a preset handover threshold, switch the first transmission link to the second transmission link.
[0091] As a refinement of the above Step 104, in order to implement the handover of the transmission link between the data receiving terminal and the data sending terminal, compare the first round-trip delay with the preset round-trip delay and compare the difference between the second round-trip delay and the first round-trip delay with the preset handover threshold. When it is determined that the first round-trip delay is greater than or equal to the preset round-trip delay threshold and the target difference between the second round-trip delay and the first round-trip delay is greater than the preset handover threshold, switch the first transmission link to the second transmission link. Among them, the preset round-trip delay threshold and the preset handover threshold can be set according to the actual scenario. For example, the preset round-trip delay threshold can be set to 50 ms, and the preset handover threshold can be set to 20 ms. The foregoing settings of the preset round-trip delay and the preset handover threshold are only exemplary and do not constitute a limitation to the present disclosure.
[0092] In other words, only when the state of the first transmission link is poor and the state of the second transmission link is sufficiently better than that of the first transmission link, switch the first transmission link to the second transmission link.
[0093] In some embodiments, if there are multiple second transmission paths, select the second transmission link with the optimal state to switch the first transmission link.
[0094] In some embodiments, the data receiving terminal and the data sending terminal mentioned above can be converted with each other, and the data receiving terminal can be used as the doctor-side device or the patient-side device in the remote ultrasound imaging system. Similarly, the data sending terminal device can be the doctor-side device or the patient-side device in the remote ultrasound imaging system. When the data receiving terminal is the doctor-side device, the data sending terminal is the patient-side device. On the contrary, when the data sending terminal is the doctor-side device, the data receiving terminal is the patient-side device.
[0095] The method for switching a transmission link provided by the present disclosure mainly includes the following technical solutions: Select at least two different forwarding servers; construct a first transmission link based on one of the at least two different forwarding servers, and construct a second transmission link based on another forwarding server. The first transmission link is a transmission link for transmitting data between a data sending terminal and a data receiving terminal, and the second transmission link is a standby transmission link. Both the first transmission link and the second transmission link are transmission links between the data sending terminal and the data receiving terminal; obtain a first round-trip delay of the first transmission link and a second round-trip delay of the second transmission link; when it is determined that the first round-trip delay is greater than or equal to a preset round-trip delay threshold, and a target difference between the second round-trip delay and the first round-trip delay is greater than a preset switching threshold, switch the first transmission link to the second transmission link. Compared with the related art, by selecting different forwarding servers and establishing the first transmission link and the second transmission link based on the selected forwarding servers, when the first round-trip delay of the first transmission link is greater than or equal to the preset round-trip delay threshold and the target difference between the first round-trip delay and the second round-trip delay of the second transmission link is greater than the preset switching threshold, the first transmission link is switched to the second transmission link, thereby realizing the switching of the transmission link between the data receiving terminal and the data sending terminal.
[0096] As a refinement of the embodiment of the present disclosure, after obtaining the first round-trip delay of the first transmission link and the second round-trip delay of the second transmission link, the method may also adopt but is not limited to the following implementation manners. For example: when it is determined that the first round-trip delay is greater than or equal to the preset round-trip delay threshold and the target difference is less than or equal to the preset switching threshold, continue to perform data transmission based on the first transmission link.
[0097] As a refinement of the above embodiment, in order to ensure the stability during the data transmission process, when the state of the first transmission link is poor and the state of the second transmission link is not sufficiently better than the state of the first transmission link, then continue to perform data transmission based on the first transmission link, that is, when it is determined that the first round-trip delay is greater than or equal to the preset round-trip delay threshold and the target difference is less than or equal to the preset switching threshold, continue to perform data transmission based on the first transmission link.
[0098] As a refinement of the embodiment of the present disclosure, after obtaining the first round-trip delay of the first transmission link and the second round-trip delay of the second transmission link, the method includes: when it is determined that the first round-trip delay is less than the preset round-trip delay threshold, continue to perform data transmission based on the first transmission link.
[0099] As a refinement of the above embodiments, in order to avoid frequent switching of the transmission link during data transmission and increase robustness, as long as the state of the first transmission link is good enough, even if the state of the second transmission link is better than the state of the first transmission link at the current moment, no switching is performed, and data transmission continues based on the first transmission link. That is, by determining that the first round-trip delay is less than the preset round-trip delay threshold, it is judged whether the state of the first transmission link is within the specified allowable range. When the state of the first transmission link is within the specified allowable range, there is no need to compare the target difference with the preset switching threshold, and data transmission continues based on the first transmission link.
[0100] As a refinement of the embodiments of the present disclosure, when performing the step 101 of selecting at least two different forwarding servers, the following implementation manners may be adopted, but are not limited to, for example: obtaining the third round-trip delay of the transmission links between the data sending terminal and at least two forwarding servers respectively, where one third round-trip delay is the round-trip delay of a transmission link between the data sending terminal and one forwarding server; and obtaining the fourth round-trip delay of the transmission links between the data receiving terminal and at least two forwarding servers, where one fourth round-trip delay is the round-trip delay of a transmission link between the data receiving terminal and one forwarding server; calculating weights based on each of the third round-trip delays and each of the fourth round-trip delays to obtain a score value corresponding to each forwarding server among each of the forwarding servers; and selecting at least two forwarding servers based on the score value.
[0101] As a refinement of the above embodiment, in order to select the forwarding server that meets the actual application conditions, the third round-trip delay of the transmission link between the data sending terminal and at least two of the forwarding servers is obtained, that is, the transmission link corresponding to the third round-trip delay is the transmission link between the data sending terminal and each of the forwarding servers. It should be understood that in the process of selecting the forwarding servers, the total number of the forwarding servers can be greater than two. In addition, the fourth round-trip delay of the transmission link between the data receiving terminal and at least two of the forwarding servers is obtained. It should be understood that the at least two forwarding servers corresponding to the data receiving terminal and the at least two forwarding servers corresponding to the data sending terminal are the same forwarding server combination, that is, at least two forwarding servers are connected to both the data receiving terminal and the data sending terminal. A weight calculation is performed based on each of the third round-trip delays and each of the fourth round-trip delays to obtain a score value corresponding to each of the forwarding servers, the score value being used to describe a selection evaluation value of a transmission link between the data receiving terminal and the data sending terminal established based on the corresponding forwarding server. In this embodiment, a smaller value of the score value indicates that the transmission link established by the corresponding forwarding server is more preferentially selected, that is, the forwarding server is preferentially selected. At least two forwarding servers are selected based on the score value.
[0102] As a refinement of an embodiment of the present disclosure, when executing the selection of at least two forwarding servers based on the score value, the following implementation method may be adopted but is not limited to, for example: sorting the score values corresponding to the forwarding servers to obtain a sorting result; selecting at least two score values in sequence based on the order of the sorting results as target score values; and selecting at least two forwarding servers corresponding to the target score values.
[0103] As a refinement of the above embodiment, in order to clearly illustrate the process involved in the above embodiment, this embodiment provides an exemplary description, for example: the score values corresponding to each of the forwarding servers are sorted from small to large to obtain a sorting result, and at least two of the score values are selected from the sorting result in order from small to large as the target score value, that is, the score value with a smaller value is selected from the score value as the target score value, and at least two forwarding servers corresponding to the target score value are selected. It should be understood that the sorting from small to large here can also be replaced by sorting from large to small, and the subsequent execution steps involved are only simple transformations, which can be easily associated by those skilled in the art, and the description here does not constitute a limitation of the present disclosure.
[0104] As a refinement of the embodiments of the present disclosure, when performing step 102 of constructing a first transmission link based on one of at least two different forwarding servers and constructing a second transmission link based on another forwarding server, the following implementation manners may be adopted but are not limited to, for example: determining the forwarding server corresponding to the target score value with the smallest numerical value in the target score values as the target forwarding server, and determining the remaining forwarding servers corresponding to the remaining target score values as standby forwarding servers, where the target forwarding server is used to forward data between the data sending terminal and the data receiving terminal, and the standby forwarding server is used to switch the target forwarding server; constructing the first transmission link based on the target forwarding server and constructing the second transmission link based on the standby forwarding server.
[0105] As a refinement of the above embodiments, select the forwarding server corresponding to the target score value with the smallest numerical value in the target score values as the target forwarding server, and preferentially transmit data between the data receiving terminal and the data sending terminal through the transmission link established based on the target forwarding server. Use the remaining forwarding servers corresponding to the remaining target scores as standby forwarding servers, construct the first transmission link based on the target forwarding server, preferentially use the first transmission link to transmit data between the data receiving terminal and the data sending terminal, and construct the second transmission link based on the standby forwarding server.
[0106] In some embodiments, if the number of standby forwarding servers is greater than or equal to two and it is necessary to switch the target forwarding server, select a standby forwarding server to switch the target forwarding server based on the target score value, so as to implement the selection of the second transmission link when there are at least two second transmission links, and switch the first transmission link according to the selected second transmission link.
[0107] As a refinement of the embodiments of the present disclosure, when performing the acquisition of the third round-trip delay of the transmission links between the data sending terminal and at least two forwarding servers respectively, the following implementation manners may be adopted but are not limited to, for example: acquiring at least two of the third round-trip delays, where one of the third round-trip delays is the round-trip delay of the transmission link between the data sending terminal and one forwarding server, and the other third round-trip delay is the round-trip delay of the transmission link between the data sending terminal and another forwarding server, and the data sending terminal is respectively connected to at least two forwarding servers.
[0108] As a refinement of the embodiments of the present disclosure, when performing the fourth round-trip delay of the transmission link between the data receiving terminal and at least two of the forwarding servers, the following implementation manners may be adopted, but are not limited thereto. For example, obtain at least two of the fourth round-trip delays, where one of the fourth round-trip delays is the round-trip delay of the transmission link between the data receiving terminal and one of the forwarding servers, and the other fourth round-trip delay is the round-trip delay of the transmission link between the data receiving terminal and another forwarding server, and the data receiving terminal is respectively connected to at least two of the forwarding servers.
[0109] As a refinement of the embodiments of the present disclosure, when performing the weight calculation based on each of the third round-trip delays and each of the fourth round-trip delays to obtain the score value corresponding to each of the forwarding servers in each of the forwarding servers, the following implementation manners may be adopted, but are not limited thereto. For example, set different third round-trip delays to respectively correspond to different first weight coefficients and different fourth round-trip delays to respectively correspond to different second weight coefficients. When it is determined that the first weight coefficient and the second weight coefficient both correspond to the same forwarding server, the sum of the first weight coefficient and the second weight coefficient is 1; multiply different third round-trip delays by the corresponding first weight coefficients respectively to obtain two different first product results; and multiply different fourth round-trip delays by the corresponding second weight coefficients respectively to obtain two different second product results; when it is determined that the first product result and the second product result correspond to the same forwarding server, calculate the sum of the first product result and the second product result to obtain the score value corresponding to the forwarding server.
[0110] To facilitate understanding of the processes involved in the above embodiments, this embodiment provides an exemplary illustration. For example, when two of the forwarding servers are selected, there will be two different third round-trip delays and two different fourth round-trip delays. Set the first weight coefficient corresponding to one of the third round-trip delays to W1, and this third round-trip delay is denoted as rtt_p1. Set the first weight coefficient corresponding to the other third round-trip delay to W2, and this third round-trip delay is denoted as rtt_p2. Set the second weight coefficient corresponding to one of the fourth round-trip delays to W3, and this third round-trip delay is denoted as rtt_d1. Set the first weight coefficient corresponding to the other third round-trip delay to W4, and this third round-trip delay is denoted as rtt_d2. Among them, the sum of W1 and W3 is 1, and the sum of W2 and W4 is 1. The score value value1 corresponding to one of the two forwarding servers is as shown in formula (1), and formula (1) is as follows:
[0111] value1 = rtt_p1*W1 + rtt_d1*W3 formula (1)
[0112] The score value value2 corresponding to another forwarding server is as shown in formula (2), and formula (2) is as follows:
[0113] value2 = rtt_p2 * W2 + rtt_d2 * W4 Formula (2)
[0114] Thus, the score values corresponding to each forwarding server are obtained.
[0115] When the above embodiment is applied to a remote ultrasound image system, since the amount of data uploaded by the patient side is large and the amount of data downloaded by the doctor side is large, and because the uplink and downlink bandwidths of device access in some network scenarios are not equal, and the downlink bandwidth is much larger than the uplink bandwidth. Therefore, in order to make the transceiver delay of the patient side smaller, the weight coefficient can be set to a larger value, such as 70%. The uplink bandwidth requirement of the doctor side is small, and the downlink bandwidth can often meet the requirement. Therefore, the weight coefficient is set to a smaller value, such as 30%. In addition, if the uplink and downlink bandwidths are both fully satisfied, they can also be both set to 50%. The foregoing description is only an exemplary description and does not constitute a limitation to the present disclosure.
[0116] In summary, the embodiments of the present disclosure can achieve the following effects:
[0117] 1. By selecting different forwarding servers and establishing the first transmission link and the second transmission link based on the selected forwarding server, when the first round-trip delay of the first transmission link is greater than or equal to a preset round-trip delay threshold and the target difference between the first round-trip delay and the second round-trip delay of the second transmission link is greater than a preset handover threshold, the first transmission link is switched to the second transmission link, thereby realizing the switching of the transmission link between the data receiving terminal and the data sending terminal.
[0118] 2. By selecting and using the forwarding servers, the number between available forwarding servers is greatly reduced, and the time-consuming of the transmission link establishment process is reduced.
[0119] Corresponding to the above method for switching the transmission link, the present invention also proposes a device for controlling the transmission link. Since the device embodiment of the present invention corresponds to the above method embodiment, for the details not disclosed in the device embodiment, reference can be made to the above method embodiment, and details will not be described herein again.
[0120] Figure 2 The structural schematic diagram of a device for controlling a transmission link provided by an embodiment of the present disclosure is as Figure 2 shown, including:
[0121] A selection unit 21, configured to select at least two different forwarding servers;
[0122] The building unit 22 is configured to build a first transmission link based on one of at least two different forwarding servers, and build a second transmission link based on the other forwarding server. The first transmission link is a transmission link for transmitting data between a data sending terminal and a data receiving terminal, and the second transmission link is a backup transmission link. Both the first transmission link and the second transmission link are transmission links between the data sending terminal and the data receiving terminal;
[0123] The obtaining unit 23 is configured to obtain a first round-trip delay of the first transmission link and a second round-trip delay of the second transmission link;
[0124] The switching unit 24 is configured to switch the first transmission link to the second transmission link when it is determined that the first round-trip delay is greater than or equal to a preset round-trip delay threshold, and a target difference between the second round-trip delay and the first round-trip delay is greater than a preset switching threshold.
[0125] The apparatus for switching a transmission link provided by the present disclosure mainly includes the following technical solutions: select at least two different forwarding servers; build a first transmission link based on one of at least two different forwarding servers, and build a second transmission link based on the other forwarding server. The first transmission link is a transmission link for transmitting data between a data sending terminal and a data receiving terminal, and the second transmission link is a backup transmission link. Both the first transmission link and the second transmission link are transmission links between the data sending terminal and the data receiving terminal; obtain the first round-trip delay of the first transmission link and the second round-trip delay of the second transmission link; switch the first transmission link to the second transmission link when it is determined that the first round-trip delay is greater than or equal to a preset round-trip delay threshold, and a target difference between the second round-trip delay and the first round-trip delay is greater than a preset switching threshold. Compared with the related art, by selecting different forwarding servers and establishing the first transmission link and the second transmission link based on the selected forwarding servers, when the first round-trip delay of the first transmission link is greater than or equal to a preset round-trip delay threshold and a target difference between the first round-trip delay and the second round-trip delay of the second transmission link is greater than a preset switching threshold, the first transmission link is switched to the second transmission link, thereby realizing the switching of the transmission link between the data receiving terminal and the data sending terminal.
[0126] Figure 3 The structural schematic diagram of another apparatus for controlling a transmission link provided by an embodiment of the present disclosure is as follows Figure 3 As shown, the apparatus includes:
[0127] A transmission unit 25, configured to continue data transmission based on the first transmission link when it is determined that the first round-trip delay is greater than or equal to the preset round-trip delay threshold and the target difference is less than or equal to the preset handover threshold.
[0128] Further, in a possible implementation manner of this embodiment, as Figure 3 shown, the apparatus includes:
[0129] The transmission unit 25 is further configured to continue data transmission based on the first transmission link when it is determined that the first round-trip delay is less than the preset round-trip delay threshold.
[0130] Further, in a possible implementation manner of this embodiment, as Figure 3 shown, the selection unit 21 includes:
[0131] An acquisition module 211, configured to acquire the third round-trip delay of the transmission links between the data sending terminal and at least two forwarding servers, where one third round-trip delay is the round-trip delay of a transmission link between the data sending terminal and one of the forwarding servers; and
[0132] The acquisition module 211 is further configured to acquire the fourth round-trip delay of the transmission links between the data receiving terminal and at least two of the forwarding servers, where one fourth round-trip delay is the round-trip delay of a transmission link between the data receiving terminal and one of the forwarding servers;
[0133] A calculation module 212, configured to perform weight calculation based on each of the third round-trip delays and each of the fourth round-trip delays to obtain a score value corresponding to each of the forwarding servers;
[0134] A selection module 213, configured to select at least two of the forwarding servers based on the score value.
[0135] Further, in a possible implementation manner of this embodiment, as Figure 3 shown, the selection module 211 is further configured to:
[0136] Sort the score values corresponding to each of the forwarding servers to obtain a sorting result;
[0137] Select at least two of the score values in the order of the sorting result as target score values;
[0138] Select at least two of the forwarding servers corresponding to the target score values.
[0139] Further, in a possible implementation manner of this embodiment, as Figure 3As shown, the building unit 22 includes:
[0140] A determination module 221, configured to determine the forwarding server corresponding to the target score value with the smallest numerical value in the target score values as the target forwarding server, and determine the forwarding servers corresponding to the remaining target score values as standby forwarding servers. The target forwarding server is used to forward data between the data sending terminal and the data receiving terminal, and the standby forwarding server is used to switch the target forwarding server;
[0141] A construction module 222, configured to construct the first transmission link based on the target forwarding server and construct the second transmission link based on the standby forwarding server.
[0142] Further, in a possible implementation manner of this embodiment, as Figure 3 shown, the obtaining module 211 is further configured to:
[0143] Obtain at least two of the third round-trip delays, where one of the third round-trip delays is the round-trip delay of the transmission link between the data sending terminal and one of the forwarding servers, and the other third round-trip delay is the round-trip delay of the transmission link between the data sending terminal and another forwarding server. The data sending terminal is respectively connected to at least two forwarding servers;
[0144] The obtaining module 211 further includes:
[0145] Obtain at least two of the fourth round-trip delays, where one of the fourth round-trip delays is the round-trip delay of the transmission link between the data receiving terminal and one of the forwarding servers, and the other fourth round-trip delay is the round-trip delay of the transmission link between the data receiving terminal and another forwarding server. The data receiving terminal is respectively connected to at least two forwarding servers;
[0146] Further, in a possible implementation manner of this embodiment, as Figure 3 shown, the calculation module 212 is further configured to:
[0147] Set different third round-trip delays to correspond to different first weight coefficients respectively, and different fourth round-trip delays to correspond to different second weight coefficients respectively. When it is determined that the first weight coefficient and the second weight coefficient both correspond to the same forwarding server, the sum of the first weight coefficient and the second weight coefficient is 1;
[0148] Multiply different third round-trip delays by the corresponding first weight coefficients respectively to obtain two different first product results; and
[0149] Multiply the different fourth round-trip time delays by the corresponding second weight coefficients respectively to obtain two different second product results;
[0150] When it is determined that the first product result and the second product result correspond to the same forwarding server, calculate the sum of the first product result and the second product result to obtain the score value corresponding to the forwarding server.
[0151] It should be noted that the foregoing explanation of the method embodiment also applies to the device in this embodiment, with the same principle, and will not be limited in this embodiment.
[0152] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.
[0153] Figure 4 The schematic block diagram of an example electronic device 400 that can be used to implement the embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as, laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0154] As Figure 4 shown, the device 300 includes a computing unit 301, which can execute various appropriate actions and processes according to the computer program stored in the ROM (Read-Only Memory) 302 or the computer program loaded from the storage unit 308 into the RAM (Random Access Memory) 303. In the RAM 303, various programs and data required for the operation of the device 300 can also be stored. The computing unit 301, the ROM 302, and the RAM 303 are connected to each other through a bus 304. The I / O (Input / Output) interface 305 is also connected to the bus 304.
[0155] A plurality of components in the device 300 are connected to the I / O interface 305, including: an input unit 306, such as a keyboard, a mouse, etc.; an output unit 307, such as various types of displays, speakers, etc.; a storage unit 308, such as a magnetic disk, an optical disk, etc.; and a communication unit 309, such as a network card, a modem, a wireless communication transceiver, etc.
[0156] The communication unit 309 allows the device 300 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0157] The computing unit 301 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 301 include, but are not limited to, CPU (Central Processing Unit), GPU (Graphic Processing Units), various dedicated AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, DSP (Digital Signal Processor), and any suitable processor, controller, microcontroller, etc. The computing unit 301 executes the various methods and processes described above, such as the grayscale image quality assessment method.
[0158] For example, in some embodiments, the grayscale image quality assessment method can be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 308.
[0159] In some embodiments, part or all of the computer program can be loaded and / or installed onto the device 300 via the ROM 302 and / or the communication unit 309.
[0160] When the computer program is loaded into the RAM 303 and executed by the computing unit 301, one or more steps of the methods described above can be performed. Alternatively, in other embodiments, the computing unit 301 can be configured to execute the aforementioned grayscale image quality assessment method in any other suitable manner (e.g., by means of firmware).
[0161] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, FPGA (Field Programmable Gate Array), ASIC (Application-Specific Integrated Circuit), ASSP (Application Specific Standard Product), SOC (System On Chip), CPLD (Complex Programmable Logic Device), computer hardware, firmware, software, and / or combinations thereof.
[0162] These various embodiments may include: being implemented in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which may be a special-purpose or general-purpose programmable processor, and which can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit the data and instructions to the storage system, the at least one input device, and the at least one output device.
[0163] The program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. The program code may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that the program code, when executed by the processor or controller, causes the functions / operations specified in the flowchart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, as a stand-alone software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0164] In the context of the present disclosure, a machine-readable medium may be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a RAM, a ROM, an EPROM (Electrically Programmable Read-Only Memory), or a flash memory, an optical fiber, a CD-ROM (Compact Disc Read-Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0165] To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having: a display device (e.g., a CRT (Cathode-Ray Tube) or an LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer.
[0166] Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (such as visual feedback, auditory feedback, or tactile feedback); and the input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0167] The systems and techniques described herein can be implemented in a computing system including backend components (such as a data server), or a computing system including middleware components (such as an application server), or a computing system including frontend components (such as a user computer having a graphical user interface or a web browser through which the user can interact with embodiments of the systems and techniques described herein), or a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected to each other by digital data communication in any form or medium (such as a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), the Internet, and blockchain networks.
[0168] A computer system can include a client and a server. The client and the server are generally far from each other and usually interact through a communication network. The client-server relationship is generated by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system, and solves the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services ("Virtual Private Server", or simply "VPS"). The server can also be a server of a distributed system, or a server combined with blockchain.
[0169] It should be noted that artificial intelligence is a discipline that studies how to make a computer simulate certain thinking processes and intelligent behaviors of humans (such as learning, reasoning, thinking, planning, etc.), and it has both hardware-level technologies and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include several major directions such as computer vision technology, speech recognition technology, natural language processing technology, and machine learning / deep learning, big data processing technology, and knowledge graph technology.
[0170] It should be understood that the various forms of processes shown above can be used, with steps reordered, added or deleted. For example, the steps described in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and no limitations are imposed herein. The above specific embodiments do not constitute a limitation on the protection scope of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this disclosure shall be included within the protection scope of this disclosure.
Claims
1. A method for switching a transmission link, characterized in that, Including: Select at least two different forwarding servers; Based on one of the at least two different forwarding servers, construct a first transmission link, and based on another forwarding server, construct a second transmission link. The first transmission link is a transmission link for transmitting data between a data sending terminal and a data receiving terminal, and the second transmission link is a backup transmission link. Both the first transmission link and the second transmission link are transmission links between the data sending terminal and the data receiving terminal; Obtain a first round-trip delay of the first transmission link and a second round-trip delay of the second transmission link; In the case where it is determined that the first round-trip delay is greater than or equal to a preset round-trip delay threshold, and a target difference between the second round-trip delay and the first round-trip delay is greater than a preset switching threshold, switch the first transmission link to the second transmission link.
2. The method according to claim 1, characterized in that After obtaining the first round-trip delay of the first transmission link and the second round-trip delay of the second transmission link, the method includes: In the case where it is determined that the first round-trip delay is greater than or equal to the preset round-trip delay threshold and the target difference is less than or equal to the preset switching threshold, continue to perform data transmission based on the first transmission link.
3. The method according to claim 1, characterized in that After obtaining the first round-trip delay of the first transmission link and the second round-trip delay of the second transmission link, the method includes: In the case where it is determined that the first round-trip delay is less than the preset round-trip delay threshold, continue to perform data transmission based on the first transmission link.
4. The method according to claim 1, characterized in that, The selecting at least two different forwarding servers includes: Obtain a third round-trip delay of a transmission link between the data sending terminal and at least two forwarding servers respectively. One third round-trip delay is the round-trip delay of a transmission link between the data sending terminal and one forwarding server; and Obtain a fourth round-trip delay of a transmission link between the data receiving terminal and at least two of the forwarding servers. One fourth round-trip delay is the round-trip delay of a transmission link between the data receiving terminal and one forwarding server; Perform weight calculation based on each of the third round-trip delays and each of the fourth round-trip delays to obtain a score value corresponding to each of the forwarding servers; Select at least two of the forwarding servers based on the score value.
5. The method according to claim 4, wherein The selecting at least two of the forwarding servers based on the score value includes: Sort the score values corresponding to the respective forwarding servers to obtain a sorting result; Successively select at least two of the score values in the order of the sorting result as target score values; Select at least two of the forwarding servers corresponding to the target score values.
6. The method according to claim 5, wherein The constructing a first transmission link based on one of the at least two different forwarding servers and constructing a second transmission link based on another forwarding server includes: Determine the forwarding server corresponding to the target score value with the smallest numerical value among the target score values as the target forwarding server, and determine the forwarding servers corresponding to the remaining target score values as standby forwarding servers. The target forwarding server is used to forward data between the data sending terminal and the data receiving terminal, and the standby forwarding server is used to switch the target forwarding server; Construct the first transmission link based on the target forwarding server, and construct the second transmission link based on the standby forwarding server.
7. The method according to claim 4, characterized in that, The obtaining of the third round-trip delay of the transmission links between the data sending terminal and at least two forwarding servers respectively includes: Obtain at least two of the third round-trip delays. One of the third round-trip delays is the round-trip delay of the transmission link between the data sending terminal and one of the forwarding servers, and the other third round-trip delay is the round-trip delay of the transmission link between the data sending terminal and another forwarding server. The data sending terminal is connected to at least two of the forwarding servers respectively; The obtaining of the fourth round-trip delay of the transmission links between the data receiving terminal and at least two of the forwarding servers respectively includes: Obtain at least two of the fourth round-trip delays. One of the fourth round-trip delays is the round-trip delay of the transmission link between the data receiving terminal and one of the forwarding servers, and the other fourth round-trip delay is the round-trip delay of the transmission link between the data receiving terminal and another forwarding server. The data receiving terminal is connected to at least two of the forwarding servers respectively.
8. The method according to claim 4, wherein The performing of weight calculation based on each of the third round-trip delays and each of the fourth round-trip delays to obtain the score value corresponding to each of the forwarding servers among each of the forwarding servers includes: Set different first weight coefficients corresponding to different third round-trip delays and different second weight coefficients corresponding to different fourth round-trip delays. When it is determined that the first weight coefficient and the second weight coefficient both correspond to the same forwarding server, the sum of the first weight coefficient and the second weight coefficient is 1; Multiply different ones of the third round-trip delays by the corresponding first weight coefficients respectively to obtain two different first product results; and Multiply different ones of the fourth round-trip delays by the corresponding second weight coefficients respectively to obtain two different second product results; When it is determined that the first product result and the second product result correspond to the same forwarding server, calculate the sum of the first product result and the second product result to obtain the score value corresponding to the forwarding server.
9. A device for transmission link switching, characterized in that, Includes: A selection unit for selecting at least two different forwarding servers; A building unit is configured to build a first transmission link based on one of at least two different forwarding servers and build a second transmission link based on the other forwarding server. The first transmission link is a transmission link for transmitting data between a data sending terminal and a data receiving terminal, and the second transmission link is a backup transmission link. Both the first transmission link and the second transmission link are transmission links between the data sending terminal and the data receiving terminal; An obtaining unit is configured to obtain a first round-trip delay of the first transmission link and a second round-trip delay of the second transmission link; A switching unit is configured to switch the first transmission link to the second transmission link when it is determined that the first round-trip delay is greater than or equal to a preset round-trip delay threshold and a target difference between the second round-trip delay and the first round-trip delay is greater than a preset switching threshold.
10. An electronic device, characterized in that, Comprising: At least one processor; And A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method according to any one of claims 1-8.