A method, apparatus, and communication device for determining timeout parameters.

By obtaining the RTT value of the communication link and adjusting the timeout parameter using a non-linear relationship, the problem of inappropriate timeout parameter settings in the existing technology is solved, and timely and accurate detection of link interruption under dynamic changes in RTT is realized.

CN117478558BActive Publication Date: 2026-06-30BAICELLS TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BAICELLS TECH CO LTD
Filing Date
2022-07-20
Publication Date
2026-06-30

AI Technical Summary

Technical Problem

In existing technologies, the timeout parameter is set as a fixed multiple of the link round-trip time (RTT), which cannot adapt to the dynamic changes in the link RTT, resulting in the inability to detect communication link interruptions in a timely and accurate manner.

Method used

By acquiring the round-trip time (RTT) value of the communication link, and based on the non-linear relationship between the RTT value and the timeout parameter, the timeout parameter is dynamically adjusted to adapt to changes in RTT, ensuring the timeliness and accuracy of link interruption detection.

Benefits of technology

It enables timely and accurate detection of communication link interruptions even when RTT changes dynamically, avoiding detection delays caused by inappropriate timeout parameter settings.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117478558B_ABST
    Figure CN117478558B_ABST
Patent Text Reader

Abstract

This invention provides a method, apparatus, and communication device for determining timeout parameters, relating to the field of communication technology. The method includes: acquiring the round-trip time (RTT) value of a communication link; determining a first timeout parameter corresponding to the communication link based on the RTT value, wherein the first timeout parameter is used to calculate the link communication interruption timeout detection time; wherein the RTT value and the first timeout parameter have a non-linear relationship, and the first timeout parameter decreases as the RTT value increases. The solution of this invention solves the problem that existing timeout parameter setting methods cannot detect whether a link communication interruption is occurring in a timely and accurate manner.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and in particular to a method, apparatus, and communication equipment for determining timeout parameters. Background Technology

[0002] Currently, the communication link timeout parameter is calculated as a multiple of the Round Trip Time (RTT). For example, in a wired local area network, where the RTT is within 1 millisecond, the link timeout parameter can be set to 50 times the RTT. This can detect communication interruption timeouts within 50 milliseconds, which meets practical usage requirements.

[0003] However, in the internet, communication link latency is relatively high, with an RTT of approximately 50 milliseconds. If the link timeout parameter is still set to 50 times the RTT, if the link communication is interrupted, it will take 50 x 50 = 2500 milliseconds to detect the interruption. In this case, the timeout is too long and unsuitable for practical needs. In reality, it might be necessary to detect link interruption timeout after 1000 milliseconds. Therefore, in this situation, setting the timeout to 20 times the RTT would be more appropriate.

[0004] Similarly, if the link RTT is 200 milliseconds, and the timeout is set to 50 times the RTT, then 200 x 50 = 10000 milliseconds. It would take 10 seconds to detect a link interruption timeout, which is also inappropriate. A more suitable timeout is 20 times the RTT, 200 x 20 = 4000 milliseconds, allowing for detection of a link interruption timeout after 4 seconds.

[0005] In summary, the existing method of setting the timeout parameter to a fixed multiple of the link RTT is only suitable for cases where the link RTT is fixed. When the link RTT changes dynamically and within a large range, the existing method of setting the timeout parameter cannot detect whether the link communication has been interrupted in a timely and accurate manner. Summary of the Invention

[0006] The purpose of this invention is to provide a method, apparatus, and communication device for determining timeout parameters, which solves the problem that existing timeout parameter setting methods cannot detect whether the link communication is interrupted in a timely and accurate manner.

[0007] To achieve the above objectives, embodiments of the present invention provide a method for determining timeout parameters, comprising:

[0008] Obtain the round-trip time (RTT) value of the communication link;

[0009] Based on the RTT value, a first timeout parameter corresponding to the communication link is determined, and the first timeout parameter is used to calculate the link communication interruption timeout detection time;

[0010] The RTT value has a non-linear relationship with the first timeout parameter, and the first timeout parameter decreases as the RTT value increases.

[0011] Optionally, after determining the first timeout parameter corresponding to the communication link based on the RTT value, the method further includes:

[0012] Based on the RTT value and the first timeout parameter, a second timeout parameter corresponding to the communication link is determined, wherein the second timeout parameter is the link communication interruption timeout detection time;

[0013] The RTT value has a non-linear relationship with the second timeout parameter, and the second timeout parameter increases as the RTT value increases.

[0014] Optionally, determining the second timeout parameter corresponding to the communication link based on the RTT value and the first timeout parameter includes:

[0015] The product of the RTT value and the first timeout parameter is determined as the second timeout parameter.

[0016] Optionally, determining the first timeout parameter corresponding to the communication link based on the RTT value includes:

[0017] The RTT value is subjected to nonlinear processing to obtain a first value;

[0018] The second value is obtained by performing a subtraction operation on the first value.

[0019] The first timeout parameter is determined based on the second value and the first preset value.

[0020] Optionally, before performing a subtraction function operation on the first value to obtain the second value, the method further includes:

[0021] The first value is then subjected to range restriction processing.

[0022] Optionally, the range restriction processing of the first value includes:

[0023] When the first value is greater than the second preset value, the first value is limited to the second preset value;

[0024] When the first value is less than the third preset value, the first value is restricted to the third preset value.

[0025] Optionally, the step of performing nonlinear processing on the RTT value to obtain a first value includes:

[0026] According to the formula: A = log a (b) Calculate the first value;

[0027] Where A is the first value; b is the RTT value, and b > 0; a is a positive integer greater than 1.

[0028] Optionally, the step of performing a subtraction operation on the first value to obtain the second value includes:

[0029] The difference between the fourth preset value and the first value is determined as the second value; wherein the fourth preset value is greater than the first value.

[0030] Optionally, determining the first timeout parameter based on the second value and the first preset value includes:

[0031] The product of the second value and the first preset value is determined as the timeout parameter.

[0032] To achieve the above objectives, embodiments of the present invention provide a device for determining timeout parameters, comprising:

[0033] The acquisition module is used to acquire the round-trip time (RTT) value of the communication link;

[0034] The first processing module is used to determine the first timeout parameter corresponding to the communication link based on the RTT value. The first timeout parameter is used to calculate the link communication interruption timeout detection time.

[0035] The RTT value has a non-linear relationship with the first timeout parameter, and the first timeout parameter decreases as the RTT value increases.

[0036] To achieve the above objectives, embodiments of the present invention provide a communication device, including a transceiver, a processor, a memory, and a program or instructions stored in the memory and executable on the processor; when the processor executes the program or instructions, it implements the method for determining timeout parameters as described above.

[0037] To achieve the above objectives, embodiments of the present invention provide a readable storage medium having a program or instructions stored thereon, wherein the program or instructions, when executed by a processor, implement the steps in the method for determining timeout parameters as described above.

[0038] The beneficial effects of the above-described technical solution of the present invention are as follows:

[0039] The method of this invention obtains the round-trip time (RTT) value of a communication link; and determines a first timeout parameter corresponding to the communication link based on the RTT value. The first timeout parameter is used to calculate the link communication interruption timeout detection time. The RTT value and the first timeout parameter have a non-linear relationship, and the first timeout parameter decreases as the RTT value increases. Thus, when the link's RTT changes dynamically and within a large range, the first timeout parameter of the communication link can be dynamically adjusted based on the changes in the RTT value to obtain a link communication interruption timeout detection time adapted to the current RTT value, ensuring timely and accurate detection of whether the link communication is interrupted. Attached Figure Description

[0040] Figure 1 This is a flowchart of a method for determining timeout parameters according to an embodiment of the present invention;

[0041] Figure 2 This is a structural block diagram of the device for determining timeout parameters according to an embodiment of the present invention;

[0042] Figure 3 This is a structural diagram of a communication device according to an embodiment of the present invention. Detailed Implementation

[0043] To make the technical problems, technical solutions and advantages of the present invention clearer, a detailed description will be given below in conjunction with the accompanying drawings and specific embodiments.

[0044] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of the invention. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments.

[0045] In various embodiments of the present invention, it should be understood that the sequence number of each process described below does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0046] In addition, the terms "system" and "network" are often used interchangeably in this article.

[0047] In the embodiments provided in this application, it should be understood that "B corresponding to A" means that B is associated with A, and B can be determined based on A. However, it should also be understood that determining B based on A does not mean determining B solely based on A; B can also be determined based on A and / or other information.

[0048] like Figure 1As shown, a method for determining a timeout parameter according to an embodiment of the present invention includes the following steps:

[0049] Step 101: Obtain the round-trip time (RTT) value of the communication link;

[0050] It should be noted that the RTT value of a link can vary significantly at different times. For example, in the case of Wi-Fi and LTE networks, the link is easily subject to interference, and the communication rate is not stable, resulting in different RTT values ​​at different times.

[0051] Step 102: Determine the first timeout parameter corresponding to the communication link based on the RTT value. The first timeout parameter is used to calculate the link communication interruption timeout detection time. The RTT value and the first timeout parameter have a non-linear relationship, and the first timeout parameter decreases as the RTT value increases.

[0052] It should be noted that the RTT value detected on the same bearer link can vary significantly at different times. When the link is idle, the detected RTT is very small, only a few milliseconds, such as 3-5 milliseconds; when other traffic is being transmitted on the link, the detected RTT may be much larger, such as 50-100 milliseconds. Therefore, setting the first timeout parameter value based on the idle RTT becomes very mismatched under high link traffic conditions, making the judgment of tunnel timeouts very inaccurate.

[0053] In this embodiment, the first timeout parameter corresponding to the communication link is dynamically adjusted according to the round-trip time (RTT) value of the communication link, so that the RTT value and the first timeout parameter have a non-linear relationship, and the first timeout parameter decreases as the RTT value increases. In this way, based on the first timeout parameter, a link communication interruption timeout detection time that adapts to the current network latency can be obtained, ensuring timely and accurate detection of whether the link communication is interrupted.

[0054] In one embodiment, after step 102, the method further includes:

[0055] Based on the RTT value and the first timeout parameter, a second timeout parameter corresponding to the communication link is determined, wherein the second timeout parameter is the link communication interruption timeout detection time; wherein, the RTT value and the second timeout parameter have a non-linear relationship, and the second timeout parameter increases as the RTT value increases.

[0056] In this embodiment, the second timeout parameter is the link timeout detection time. For example, if the second timeout parameter is 2500 milliseconds, then if the link is interrupted, it is necessary to detect whether the link is interrupted after 2500 milliseconds.

[0057] In one specific embodiment, determining the second timeout parameter corresponding to the communication link based on the RTT value and the first timeout parameter includes:

[0058] The product of the RTT value and the first timeout parameter is determined as the second timeout parameter.

[0059] In this embodiment, since the first timeout parameter has a non-linear relationship with the RTT value, a second timeout parameter is determined based on the product of the RTT value and the first timeout parameter, making the second timeout parameter also have a non-linear relationship with the RTT value. This achieves a link communication interruption timeout detection time adapted to the current network latency based on the RTT value, ensuring timely and accurate detection of link communication interruptions.

[0060] In one embodiment, determining the first timeout parameter corresponding to the communication link based on the RTT value includes:

[0061] The RTT value is subjected to nonlinear processing to obtain a first value;

[0062] The second value is obtained by performing a subtraction operation on the first value.

[0063] The first timeout parameter is determined based on the second value and the first preset value.

[0064] In this embodiment, by performing a nonlinear transformation on the RTT value, the linear ratio problem between the timeout detection time and RTT can be avoided; by performing a subtraction function operation on the first value to obtain the second value, it is possible to achieve the following: the larger the RTT value, the smaller the final calculated first timeout parameter, and the smaller the RTT value, the larger the final calculated first timeout parameter; the first preset value is the experimental calibration quantity, which is used to adjust the second value to obtain the first timeout parameter.

[0065] In one embodiment, before performing a subtraction function operation on the first value to obtain the second value, the method further includes:

[0066] The first value is then subjected to range restriction processing.

[0067] In this embodiment, by limiting the range of the first value, it is possible to avoid the first value obtained by nonlinear processing being too large or too small due to the RTT being too large or too small, which would affect the accuracy of link interruption detection.

[0068] Specifically, in one embodiment, the range restriction processing of the first value includes:

[0069] When the first value is greater than the second preset value, the first value is limited to the second preset value;

[0070] When the first value is less than the third preset value, the first value is restricted to the third preset value.

[0071] This embodiment limits the first value to between a second preset value and a third preset value. For example, if the second preset value is set to 10, the first value greater than 10 is limited to 10; if the third preset value is 0, the first value less than 0 is limited to 0. Thus, after the RTT value exceeds a certain value, the set first timeout parameter will reach a minimum value. That is, the first timeout parameter has a minimum cutoff. For example, when the RTT value exceeds 1 second, the first timeout parameter is 10, meaning the timeout detection time is 10 times the RTT value. When the RTT is 1 second, the first timeout parameter is 10; when the RTT is 2 seconds, the first timeout parameter is still 10; when the RTT is 3 seconds, the first timeout parameter is still 10.

[0072] In the above embodiments, the first timeout parameter is not continuously reduced as the RTT value increases. This avoids the problem of misjudging the link communication interruption detection due to the first timeout parameter being too small, thus affecting the accuracy of the detection.

[0073] In one embodiment, the nonlinear processing of the RTT value to obtain a first value includes:

[0074] According to the formula: A = log a (b) Calculate the first value;

[0075] Where A is the first value; b is the RTT value, and b > 0; a is a positive integer greater than 1.

[0076] For example, first calculate the current RTT value of the link in milliseconds; then, calculate the logarithm of the RTT value with base 2, i.e., A = log2(RTT value).

[0077] In one embodiment, performing a subtraction function operation on the first value to obtain the second value includes:

[0078] The difference between the fourth preset value and the first value is determined as the second value; wherein the fourth preset value is greater than the first value.

[0079] In this embodiment, the fourth preset value is greater than the second preset value, and the fourth preset value can be set to different values ​​according to different actual situations.

[0080] In one embodiment, determining the first timeout parameter based on the second value and the first preset value includes:

[0081] The product of the second value and the first preset value is determined as the first timeout parameter.

[0082] In this embodiment, the first preset value is the product factor of the second value. In actual application, if the first timeout parameter calculated according to the actual situation is too large or too small, the first preset value can be adjusted according to the actual needs.

[0083] Below, with Taking a first preset value of 4, a second preset value of 10, a third preset value of 0, and a fourth preset value of 12 as examples, for different RTT values, based on the formulas: First timeout parameter = (12 - first value) × 4, Second timeout parameter = RTT × First timeout parameter, the first timeout parameter and the second timeout parameter are calculated. The specific results are shown in the table below:

[0084] RTT value (milliseconds) First timeout parameter (multiple) Second timeout parameter (milliseconds) 1 48 48 2 44 88 3 44 132 5 40 200 10 36 360 20 32 640 30 32 960 50 28 1400 100 24 2400 200 20 4000 500 16 8000 1000 12 12000

[0085] It should be noted that when calculating the first timeout parameter, the first value is obtained by rounding down the result of the calculation of log2 (RTT value).

[0086] As shown in the table above, both the first and second timeout parameters exhibit a non-linear relationship with the RTT value. Furthermore, as the RTT value increases, the first timeout parameter gradually decreases, while the second timeout parameter gradually increases. Both the first and second timeout parameters represent reasonably reasonable values.

[0087] It should be noted that the above solutions are not limited to specific communication devices and scenarios. In situations where the RTT of the communication link varies significantly due to the diversity of devices running the software, the wide range of product applications, or the actual communication scenarios, the first timeout parameter of the link can be dynamically adjusted using the embodiments of this application. This ensures that the fault interruption detection function of the communication link achieves the expected effect and meets the actual needs of product use.

[0088] like Figure 2 As shown, an embodiment of the present invention provides a timeout parameter determination device 200, comprising:

[0089] The acquisition module 201 is used to acquire the round-trip time (RTT) value of the communication link;

[0090] The first processing module 202 is used to determine the first timeout parameter corresponding to the communication link based on the RTT value, wherein the first timeout parameter is used to calculate the link communication interruption timeout detection time.

[0091] The RTT value has a non-linear relationship with the first timeout parameter, and the first timeout parameter decreases as the RTT value increases.

[0092] Optionally, the device 200 further includes:

[0093] The second processing module is used to determine the second timeout parameter corresponding to the communication link based on the RTT value and the first timeout parameter, wherein the second timeout parameter is the link communication interruption timeout detection time;

[0094] The RTT value has a non-linear relationship with the second timeout parameter, and the second timeout parameter increases as the RTT value increases.

[0095] Optionally, the second processing module includes:

[0096] The first processing unit is configured to determine the second timeout parameter by multiplying the RTT value by the first timeout parameter.

[0097] Optionally, the first processing module 202 includes:

[0098] The second processing unit is used to perform non-linear processing on the RTT value to obtain a first value;

[0099] The third processing unit is used to perform a subtraction function operation on the first value to obtain the second value;

[0100] The fourth processing unit is used to determine the first timeout parameter based on the second value and the first preset value.

[0101] Optionally, the device 200 further includes:

[0102] The third processing module is used to perform range restriction processing on the first value.

[0103] Optionally, the third processing module includes:

[0104] The fifth processing unit is used to limit the first value to the second preset value when the first value is greater than the second preset value;

[0105] The sixth processing unit is used to limit the first value to the third preset value when the first value is less than the third preset value.

[0106] Optionally, the second processing unit is specifically used for:

[0107] According to the formula: A = log a (b) Calculate the first value;

[0108] Where A is the first value; b is the RTT value, and b > 0; a is a positive integer greater than 1.

[0109] Optionally, the third processing unit is specifically used for:

[0110] The difference between the fourth preset value and the first value is determined as the second value; wherein the fourth preset value is greater than the first value.

[0111] Optionally, the fourth processing unit is specifically used for:

[0112] The product of the second value and the first preset value is determined as the timeout parameter.

[0113] The apparatus provided in this embodiment of the invention can execute the above-described method embodiments, and its implementation principle and technical effect are similar, so it will not be described again here.

[0114] Another embodiment of the present invention provides a mobile terminal, such as... Figure 3 As shown, it includes a transceiver 310, a processor 300, a memory 320, and a program or instructions stored in the memory 320 and executable on the processor 300; when the processor 300 executes the program or instructions, it performs the following steps:

[0115] Obtain the round-trip time (RTT) value of the communication link;

[0116] Based on the RTT value, a first timeout parameter corresponding to the communication link is determined, and the first timeout parameter is used to calculate the link communication interruption timeout detection time;

[0117] The RTT value has a non-linear relationship with the first timeout parameter, and the first timeout parameter decreases as the RTT value increases.

[0118] The transceiver 310 is used to receive and send data under the control of the processor 300.

[0119] Among them, Figure 3 In this context, the bus architecture can include any number of interconnected buses and bridges, specifically linking various circuits of one or more processors represented by processor 300 and memory represented by memory 320 together. The bus architecture can also link various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. The bus interface provides an interface. The transceiver 310 can be multiple elements, including transmitters and receivers, providing a unit for communicating with various other devices over a transmission medium. For different user equipment, the user interface 330 can also be an interface capable of connecting external or internal devices, including but not limited to keypads, displays, speakers, microphones, joysticks, etc.

[0120] The processor 300 is responsible for managing the bus architecture and general processing, while the memory 320 can store the data used by the processor 300 when performing operations.

[0121] Optionally, when the processor 300 executes the program or instructions, it performs the following steps:

[0122] Based on the RTT value and the first timeout parameter, a second timeout parameter corresponding to the communication link is determined, wherein the second timeout parameter is the link communication interruption timeout detection time;

[0123] The RTT value has a non-linear relationship with the second timeout parameter, and the second timeout parameter increases as the RTT value increases.

[0124] Optionally, when the processor 300 executes the program or instructions, it performs the following steps:

[0125] The product of the RTT value and the first timeout parameter is determined as the second timeout parameter.

[0126] Optionally, when the processor 300 executes the program or instructions, it performs the following steps:

[0127] The RTT value is subjected to nonlinear processing to obtain a first value;

[0128] The second value is obtained by performing a subtraction operation on the first value.

[0129] The first timeout parameter is determined based on the second value and the first preset value.

[0130] Optionally, when the processor 300 executes the program or instructions, it performs the following steps:

[0131] The first value is then subjected to range restriction processing.

[0132] Optionally, when the processor 300 executes the program or instructions, it performs the following steps:

[0133] When the first value is greater than the second preset value, the first value is limited to the second preset value;

[0134] When the first value is less than the third preset value, the first value is restricted to the third preset value.

[0135] Optionally, when the processor 300 executes the program or instructions, it performs the following steps:

[0136] According to the formula: A = log a (b) Calculate the first value;

[0137] Where A is the first value; b is the RTT value, and b > 0; a is a positive integer greater than 1.

[0138] Optionally, when the processor 300 executes the program or instructions, it performs the following steps:

[0139] The difference between the fourth preset value and the first value is determined as the second value; wherein the fourth preset value is greater than the first value.

[0140] Optionally, when the processor 300 executes the program or instructions, it performs the following steps:

[0141] The product of the second value and the first preset value is determined as the timeout parameter.

[0142] This invention provides a readable storage medium storing a program or instructions. When executed by a processor, the program or instructions implement the steps in the timeout parameter determination method described above, achieving the same technical effect. To avoid repetition, further details are omitted here. The computer-readable storage medium may include read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0143] It should be further noted that the terminals described in this specification include, but are not limited to, smartphones, tablets, etc., and many of the functional components described are referred to as modules in order to emphasize the independence of their implementation.

[0144] In this embodiment of the invention, the module can be implemented in software so that it can be executed by various types of processors. For example, an identified executable code module may include one or more physical or logical blocks of computer instructions, which may be constructed as objects, procedures, or functions. Nevertheless, the executable code of the identified module does not need to be physically located together, but may include different instructions stored in different bits, which, when logically combined, constitute the module and achieve the module's intended purpose.

[0145] In practice, an executable code module can be a single instruction or many instructions, and can even be distributed across multiple different code segments, different programs, and across multiple memory devices. Similarly, operational data can be identified within the module and can be implemented in any suitable form and organized within any suitable type of data structure. This operational data can be collected as a single dataset or distributed across different locations (including different storage devices), and can exist, at least in part, solely as electronic signals within the system or network.

[0146] When a module can be implemented using software, considering the current level of hardware technology, modules that can be implemented in software can be implemented using hardware circuits by those skilled in the art to achieve the corresponding functions, without considering cost. These hardware circuits include conventional very-large-scale integrated circuits (VLSI) or gate arrays, as well as existing semiconductors such as logic chips and transistors, or other discrete components. Modules can also be implemented using programmable hardware devices, such as field-programmable gate arrays, programmable array logic, and programmable logic devices.

[0147] The exemplary embodiments described above are with reference to the accompanying drawings. Many different forms and embodiments are feasible without departing from the spirit and teachings of the invention. Therefore, the invention should not be construed as limiting the exemplary embodiments set forth herein. Rather, these exemplary embodiments are provided to make the invention complete and convey the scope of the invention to those skilled in the art. In these drawings, component dimensions and relative dimensions may be exaggerated for clarity. The terminology used herein is for the purpose of describing particular exemplary embodiments only and is not intended to be limiting. As used herein, unless clearly indicated otherwise, the singular forms “a,” “an,” and “the” are intended to include all such forms. It will be further understood that the terms “comprising” and / or “including”, when used in this specification, indicate the presence of the stated features, integers, steps, operations, components, and / or elements, but do not exclude the presence or addition of one or more other features, integers, steps, operations, components, and / or groups thereof. Unless otherwise indicated, when stated, a range of values ​​includes the upper and lower limits of the range and any subranges in between.

[0148] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A method for determining a timeout parameter, characterized in that, include: Obtain the round-trip time (RTT) value of the communication link; Based on the RTT value, a first timeout parameter corresponding to the communication link is determined. The first timeout parameter is used to calculate the link communication interruption timeout detection time. The RTT value and the first timeout parameter have a non-linear relationship, and the first timeout parameter decreases as the RTT value increases. Based on the RTT value and the first timeout parameter, a second timeout parameter corresponding to the communication link is determined, wherein the second timeout parameter is the link communication interruption timeout detection time; wherein, the RTT value and the second timeout parameter have a non-linear relationship, and the second timeout parameter increases as the RTT value increases.

2. The method for determining the timeout parameter according to claim 1, characterized in that, The step of determining the second timeout parameter corresponding to the communication link based on the RTT value and the first timeout parameter includes: The product of the RTT value and the first timeout parameter is determined as the second timeout parameter.

3. The method for determining the timeout parameter according to claim 1, characterized in that, The step of determining the first timeout parameter corresponding to the communication link based on the RTT value includes: The RTT value is subjected to nonlinear processing to obtain a first value; The second value is obtained by performing a subtraction operation on the first value. The first timeout parameter is determined based on the second value and the first preset value.

4. The method for determining the timeout parameter according to claim 3, characterized in that, Before performing a subtraction function operation on the first value to obtain the second value, the method further includes: The first value is then subjected to range restriction processing.

5. The method for determining the timeout parameter according to claim 4, characterized in that, The range restriction processing of the first value includes: When the first value is greater than the second preset value, the first value is limited to the second preset value; When the first value is less than the third preset value, the first value is restricted to the third preset value.

6. The method for determining the timeout parameter according to claim 3, characterized in that, The step of performing nonlinear processing on the RTT value to obtain a first value includes: According to the formula: A=log a (b) Calculate the first value; Where A is the first value; b is the RTT value, and b > 0; a is a positive integer greater than 1.

7. The method for determining the timeout parameter according to claim 3, characterized in that, The step of performing a subtraction function operation on the first value to obtain the second value includes: The difference between the fourth preset value and the first value is determined as the second value; wherein the fourth preset value is greater than the first value.

8. The method for determining the timeout parameter according to claim 3, characterized in that, The step of determining the first timeout parameter based on the second value and the first preset value includes: The product of the second value and the first preset value is determined as the timeout parameter.

9. A device for determining timeout parameters, characterized in that, include: The acquisition module is used to acquire the round-trip time (RTT) value of the communication link; The first processing module is used to determine a first timeout parameter corresponding to the communication link based on the RTT value. The first timeout parameter is used to calculate the link communication interruption timeout detection time. The RTT value and the first timeout parameter have a non-linear relationship, and the first timeout parameter decreases as the RTT value increases. Based on the RTT value and the first timeout parameter, a second timeout parameter corresponding to the communication link is determined, wherein the second timeout parameter is the link communication interruption timeout detection time; wherein, the RTT value and the second timeout parameter have a non-linear relationship, and the second timeout parameter increases as the RTT value increases.

10. A communication device, comprising: A transceiver, a processor, a memory, and a program or instructions stored in the memory and executable on the processor; characterized in that, when the processor executes the program or instructions, it implements the method for determining timeout parameters as described in any one of claims 1-8.

11. A readable storage medium having a program or instructions stored thereon, characterized in that, When the program or instructions are executed by the processor, they implement the method for determining the timeout parameter as described in any one of claims 1-8.