WO2024016622A1 - 一种超时参数的确定方法、装置及通信设备 - Google Patents

一种超时参数的确定方法、装置及通信设备 Download PDF

Info

Publication number
WO2024016622A1
WO2024016622A1 PCT/CN2023/073982 CN2023073982W WO2024016622A1 WO 2024016622 A1 WO2024016622 A1 WO 2024016622A1 CN 2023073982 W CN2023073982 W CN 2023073982W WO 2024016622 A1 WO2024016622 A1 WO 2024016622A1
Authority
WO
WIPO (PCT)
Prior art keywords
value
timeout parameter
timeout
rtt
determining
Prior art date
Application number
PCT/CN2023/073982
Other languages
English (en)
French (fr)
Inventor
李小林
丁勇
Original Assignee
北京佰才邦技术股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京佰才邦技术股份有限公司 filed Critical 北京佰才邦技术股份有限公司
Publication of WO2024016622A1 publication Critical patent/WO2024016622A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays

Definitions

  • the present invention relates to the field of communication technology, and in particular, to a method, device and communication equipment for determining a timeout parameter.
  • the communication link timeout parameter is calculated as a multiple of the round trip delay (Round Trip Time, RTT). For example, in a wired LAN, if the RTT is within 1 millisecond, the link timeout parameter can be set to 50 times the RTT. Communication interruption timeouts within 50 milliseconds can be detected, which can meet actual usage requirements.
  • RTT Round Trip Time
  • the existing timeout parameter is set to a fixed multiple of the link RTT, which is only suitable for situations where the link RTT is fixed.
  • the existing timeout parameter setting method cannot accurately detect whether the link is interrupted in a timely manner.
  • the purpose of the present invention is to provide a method, device and communication equipment for determining a timeout parameter, which solves the problem that the existing way of setting the timeout parameter cannot accurately detect whether the link is interrupted in a timely manner.
  • embodiments of the present invention provide a method for determining timeout parameters, including:
  • the first timeout parameter determines the first timeout parameter corresponding to the communication link, and the first timeout parameter is used to calculate the link communication interruption timeout detection time;
  • the RTT value has a non-linear relationship with the first timeout parameter, and the first timeout parameter changes with the It decreases with the increase of RTT value.
  • the method further includes:
  • the RTT value has a non-linear relationship with the second timeout parameter, and the second timeout parameter increases as the RTT value increases.
  • determining the second timeout parameter corresponding to the communication link according to 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.
  • determining the first timeout parameter corresponding to the communication link according to the RTT value includes:
  • the first timeout parameter is determined according to the second value and the first preset value.
  • the method before performing a subtraction function operation on the first value to obtain the second value, the method further includes:
  • performing range limiting processing on the first value includes:
  • the first value is limited to the third preset value.
  • performing non-linear processing on the RTT value to obtain the first value includes:
  • 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.
  • 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.
  • embodiments of the present invention provide a device for determining a timeout parameter, which includes:
  • the acquisition module is used to obtain the round-trip delay RTT value of the communication link
  • a first processing module configured to determine the first timeout parameter corresponding to the communication link according to the RTT value, and the first timeout parameter is used to calculate the link communication interruption timeout detection time;
  • the RTT value has a non-linear relationship with the first timeout parameter, and the first timeout parameter decreases as the RTT value increases.
  • embodiments of the present invention provide a communication device, including a transceiver, a processor, a memory, and programs or instructions stored on the memory and executable on the processor; the processor executes program or The instruction implements the method of determining the timeout parameter as described above.
  • embodiments of the present invention provide a readable storage medium on which a program or instructions are stored.
  • the program or instructions are executed by a processor, the steps in the method for determining a timeout parameter as described above are implemented.
  • the method of the embodiment of the present invention obtains the round-trip delay RTT value of the communication link; and determines 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; make the RTT value have a non-linear relationship with the first timeout parameter, and the first timeout parameter decreases as the RTT value increases. In this way, when the RTT of the link changes dynamically and the range of RTT changes is large, the first timeout parameter of the communication link can be dynamically adjusted based on the change in the RTT value to obtain a link communication interruption timeout that adapts to the current RTT value. Detection time to ensure timely and accurate detection of link communication interruption.
  • Figure 1 is a flow chart of a method for determining a timeout parameter according to an embodiment of the present invention
  • Figure 2 is a structural block diagram of a device for determining timeout parameters according to an embodiment of the present invention
  • Figure 3 is a structural diagram of a communication device according to an embodiment of the present invention.
  • system and “network” are often used interchangeably in this article.
  • B corresponding to A means that B is associated with A, and B can be determined based on A.
  • determining B based on A does not mean determining B only based on A.
  • B can also be determined based on A and/or other information.
  • a method for determining a timeout parameter includes the following steps:
  • Step 101 obtain the round-trip delay RTT value of the communication link
  • the RTT value of a link may vary greatly in different time periods.
  • the link is easily interfered and the communication rate is unstable. is fixed, so that the RTT values obtained in different time periods are different.
  • Step 102 Determine the first timeout parameter corresponding to the communication link according to the RTT value.
  • the first timeout parameter is used to calculate the link communication interruption timeout detection time; wherein the RTT value is the same as the first timeout parameter.
  • the timeout parameter has a non-linear relationship, and the first timeout parameter decreases as the RTT value increases.
  • the RTT values detected in different time periods also vary greatly.
  • the detected RTT is very small, only a few milliseconds, such as 3-5 milliseconds; when other traffic transmitted on the link is large, the detected RTT may be very large, such as 50-100 milliseconds. Therefore, if the first timeout parameter value is set according to the RTT during idle time, when the link traffic is heavy, the mismatch has become very large, and the judgment of the tunnel timeout becomes very inaccurate.
  • the first timeout parameter corresponding to the communication link is dynamically adjusted according to the round-trip delay 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 changes with the RTT value. increases and decreases, in this way, based on the first timeout parameter, a link communication interruption timeout detection time that adapts to the current network delay can be obtained, ensuring timely and accurate detection of whether the link communication is interrupted.
  • step 102 the above method further includes:
  • a second timeout parameter corresponding to the communication link is determined, where the second timeout parameter is the link communication interruption timeout detection time; wherein the RTT value and the The second timeout parameter has a non-linear relationship, and the second timeout parameter increases as the RTT value increases.
  • the second timeout parameter is the link timeout detection time.
  • 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.
  • 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.
  • the second timeout parameter is determined based on the product of the RTT value and the first timeout parameter, so that the second timeout parameter also has a nonlinear relationship with the RTT value. In this way, based on the RTT value, the link communication interruption timeout detection time that adapts to the current network delay is obtained, ensuring timely and accurate detection of whether the link communication is interrupted.
  • determining the first timeout parameter corresponding to the communication link according to the RTT value includes:
  • the first timeout parameter is determined according to the second value and the first preset value.
  • the linear proportion problem between the timeout detection time and the RTT can be avoided; by performing a subtraction function operation on the first value to obtain the second value, the RTT value can be exceeded
  • the first preset value is the experimental calibration amount, which is used to adjust the second value to obtain the first timeout. parameter.
  • the method before performing a subtraction function operation on the first value to obtain the second value, the method further includes:
  • performing range limiting processing on the first value includes:
  • the first value is limited to the third preset value.
  • the first value is limited between the second preset value and the third preset value.
  • the second preset value is set to 10, and the first value greater than 10 is limited to 10; the third preset value is 0, and the first value less than 0 is limited to 0.
  • the first timeout parameter set will reach a minimum value. That is, there is a minimum cutoff for the first timeout parameter.
  • the first timeout parameter is 10; when RTT is 2 seconds, the first timeout parameter is still 10; when RTT is 3 seconds, the first timeout parameter is still 10.
  • the set first timeout parameter does not always decrease. In this way, it is avoided that the first timeout parameter is too small, causing misjudgments in the link communication interruption detection and affecting the detection efficiency. Accuracy issues.
  • performing non-linear processing on the RTT value to obtain the first value includes:
  • first calculate the current RTT value of the link in milliseconds; further, use 2 as the base to calculate the logarithm of the RTT value, that is, A log2 (RTT value).
  • 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.
  • 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.
  • 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 first timeout parameter.
  • the first preset value is the product factor of the second value. In actual application, if the calculated first timeout parameter is too large or too small according to the actual situation, the first preset value can be adjusted according to actual needs. value.
  • first preset value 4
  • second preset value 10
  • third preset value is 0
  • fourth preset value is 12.
  • first timeout parameter (12 - First value) ⁇ 4
  • the first value is obtained by rounding down the calculation result of log2 (RTT value).
  • the first timeout parameter and the second timeout parameter have a non-linear relationship with the RTT value. As the RTT value increases, the first timeout parameter gradually becomes smaller and the second timeout parameter gradually increases. The first timeout parameter and the second timeout parameter are both reasonable values.
  • the first timeout parameter of the link enables the fault interruption detection function of the communication link to achieve the expected effect and meet the actual use needs of the product.
  • a timeout parameter determination device 200 includes:
  • the acquisition module 201 is used to obtain the round-trip delay RTT value of the communication link
  • the first processing module 202 is configured to determine the first timeout parameter corresponding to the communication link according to the RTT value, and the first timeout parameter is used to calculate the link communication interruption timeout detection time;
  • the RTT value has a non-linear relationship with the first timeout parameter, and the first timeout parameter decreases as the RTT value increases.
  • the device 200 also includes:
  • a second processing module configured to determine a second timeout parameter corresponding to the communication link based on the RTT value and the first timeout parameter, where the second timeout parameter is the link communication interruption timeout detection time;
  • the RTT value has a non-linear relationship with the second timeout parameter, and the second timeout parameter changes with the It increases with the increase of RTT value.
  • the second processing module includes:
  • a first processing unit configured to determine the product of the RTT value and the first timeout parameter as the second timeout parameter.
  • the first processing module 202 includes:
  • the second processing unit is used to perform non-linear processing on the RTT value to obtain the first value
  • the third processing unit is used to perform a subtraction function operation on the first value to obtain the second value
  • a fourth processing unit configured to determine the first timeout parameter according to the second value and the first preset value.
  • the device 200 further includes:
  • the third processing module is used to perform range limitation processing on the first value.
  • the third processing module includes:
  • a fifth processing unit configured to limit the first value to the second preset value when the first value is greater than the second preset value
  • a sixth processing unit configured to limit the first value to the third preset value when the first value is less than the third preset value.
  • the second processing unit is specifically used for:
  • the third processing unit is specifically used for:
  • 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.
  • the fourth processing unit is specifically used for:
  • the product of the second value and the first preset value is determined as the timeout parameter.
  • the device provided by the embodiments of the present invention can execute the above method embodiments, and its implementation principles and technical effects are similar, and will not be described again in this embodiment.
  • a mobile terminal includes a transceiver 310, a processor 300, a memory 320, and a program stored on the memory 320 and capable of running on the processor 300 or Instructions; when the processor 300 executes the program or instructions, the following steps are implemented:
  • the first timeout parameter determines the first timeout parameter corresponding to the communication link, and the first timeout parameter is used to calculate the link communication interruption timeout detection time;
  • the RTT value has a non-linear relationship with the first timeout parameter, and the first timeout parameter decreases as the RTT value increases.
  • the transceiver 310 is used to receive and send data under the control of the processor 300.
  • the bus architecture may include any number of interconnected buses and bridges, specifically determined by the processor 300 Various circuits representing one or more processors and memory 320 represent memory linked together.
  • the bus architecture can also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are all well known in the art and therefore will not be described further herein.
  • the bus interface provides the interface.
  • Transceiver 310 may be a plurality of elements, including a transmitter and a receiver, providing a unit for communicating with various other devices over a transmission medium.
  • the user interface 330 can also be an interface capable of externally connecting internal and external required equipment.
  • the connected equipment includes but is not limited to a keypad, a display, a speaker, a microphone, a joystick, etc.
  • the processor 300 is responsible for managing the bus architecture and general processing, and the memory 320 can store data used by the processor 300 when performing operations.
  • the processor 300 implements the following steps when executing the program or instructions:
  • the RTT value has a non-linear relationship with the second timeout parameter, and the second timeout parameter increases as the RTT value increases.
  • the processor 300 implements the following steps when executing the program or instructions:
  • the product of the RTT value and the first timeout parameter is determined as the second timeout parameter.
  • the processor 300 implements the following steps when executing the program or instructions:
  • the first timeout parameter is determined according to the second value and the first preset value.
  • the processor 300 implements the following steps when executing the program or instructions:
  • the processor 300 implements the following steps when executing the program or instructions:
  • the first value is limited to the third preset value.
  • the processor 300 implements the following steps when executing the program or instructions:
  • the processor 300 implements the following steps when executing the program or instructions:
  • 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.
  • the processor 300 implements the following steps when executing the program or instructions:
  • the product of the second value and the first preset value is determined as the timeout parameter.
  • a readable storage medium has a program or instruction stored thereon.
  • the steps in the method for determining the timeout parameter as described above are implemented and the same technology can be achieved. The effect will not be described here in order to avoid repetition.
  • the computer-readable storage medium such as read-only memory (Read-Only Memory) Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
  • terminals described in this specification include but are not limited to smartphones, tablet computers, etc., and many of the functional components described are called modules to more specifically emphasize the independence of their implementation.
  • the module can be implemented in software so as to be executed by various types of processors.
  • an identified module of executable code may include one or more physical or logical blocks of computer instructions, which may be structured, for example, as an object, procedure, or function. Nonetheless, the executable code of an identified module need not be physically located together, but may include different instructions stored on different bits that, when logically combined, constitute the module and implement the provisions of the module Purpose.
  • an executable code module can be a single instruction or many instructions, and can even be distributed over multiple different code segments, distributed among different programs, and distributed across multiple memory devices.
  • operational data may be identified within modules and may be implemented in any suitable form and organized within any suitable type of data structure. The operational data may be collected as a single data set, or may be distributed over different locations (including on different storage devices), and may exist, at least in part, solely as electronic signals on a system or network.
  • the module can be implemented using software, taking into account the level of existing hardware technology, those skilled in the art can build corresponding hardware circuits to implement the corresponding functions without considering the cost.
  • the hardware circuits include conventional Very Large Scale Integration (VLSI) circuits or gate arrays, as well as existing semiconductors such as logic chips, transistors, or other discrete components.
  • VLSI Very Large Scale Integration
  • Modules can also be implemented using programmable hardware devices, such as field programmable gate arrays, programmable array logic, programmable logic devices, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

本发明提供一种超时参数的确定方法、装置及通信设备,涉及通信技术领域。方法包括:获取通信链路的往返时延RTT值;根据所述RTT值,确定所述通信链路对应的第一超时参数,所述第一超时参数用于计算链路通信中断超时检测时间;其中,所述RTT值与所述第一超时参数呈非线性关系,且所述第一超时参数随所述RTT值的增大而减少。

Description

一种超时参数的确定方法、装置及通信设备
相关申请的交叉引用
本申请主张在2022年07月20日在中国提交的中国专利申请No.202210858605.9的优先权,其全部内容通过引用包含于此。
技术领域
本发明涉及通信技术领域,特别是指一种超时参数的确定方法、装置及通信设备。
背景技术
目前,通信链路超时(timeout)参数是以往返时延(Round Trip Time,RTT)的倍数来计算的。例如,有线局域网中,RTT在1毫秒内,链路超时参数可以设置为RTT的50倍,可以检测到50毫秒以内的通信中断超时情况,可以满足实际使用要求。
但是,在互联网中,通信链路延迟较大,RTT大约在50毫秒。如果还是把链路超时参数设置为RTT的50倍,如果链路通信中断,需要在50×50=2500毫秒之后,才能检测到链路通信中断。这种情况下,由于超时时间太长,不适合实际需求。实际可能需要在1000毫秒之后就检测到链路是否中断超时。所以,这种情况下,timeout应该设置到RTT的20倍比较合适。
同理,如果链路RTT是200毫秒,如果timeout还是设置为RTT的50倍,200×50=10000毫秒。需要在10秒之后才能检测到链路是否中断超时,这也不合适。实际timeout设置为RTT的20倍比较合适,200x20=4000毫秒,在4秒之后就可以检测到链路是否中断超时。
综上可知,现有将超时参数设置为链路RTT的一个固定的倍数,仅适应于链路RTT固定的情况。在链路的RTT存在动态的变化,并且RTT变化的范围较大时,现有超时参数的设置方式,无法及时准确地检测到链路是否通信中断。
发明内容
本发明的目的是提供一种超时参数的确定方法、装置及通信设备,解决了现有的超时参数的设置方式,无法及时准确地检测到链路是否通信中断的问题。
为达到上述目的,本发明的实施例提供一种超时参数的确定方法,包括:
获取通信链路的往返时延RTT值;
根据所述RTT值,确定所述通信链路对应的第一超时参数,所述第一超时参数用于计算链路通信中断超时检测时间;
其中,所述RTT值与所述第一超时参数呈非线性关系,且所述第一超时参数随所述 RTT值的增大而减少。
可选地,所述根据所述RTT值,确定所述通信链路对应的第一超时参数之后,所述方法还包括:
根据所述RTT值和所述第一超时参数,确定所述通信链路对应的第二超时参数,所述第二超时参数为链路通信中断超时检测时间;
其中,所述RTT值与所述第二超时参数呈非线性关系,且所述第二超时参数随所述RTT值的增大而增大。
可选地,所述根据所述RTT值和所述第一超时参数,确定所述通信链路对应的第二超时参数,包括:
将所述RTT值与所述第一超时参数之积,确定为所述第二超时参数。
可选地,所述根据所述RTT值,确定所述通信链路对应的第一超时参数,包括:
对所述RTT值进行非线性化处理,得到第一值;
对所述第一值进行减函数运算,得到第二值;
根据所述第二值和第一预设值,确定所述第一超时参数。
可选地,所述对所述第一值进行减函数运算,得到第二值之前,所述方法还包括:
对所述第一值进行范围限制处理。
可选地,所述对所述第一值进行范围限制处理,包括:
在所述第一值大于第二预设值时,限制所述第一值为所述第二预设值;
在所述第一值小于第三预设值时,限制所述第一值为所述第三预设值。
可选地,所述对所述RTT值进行非线性化处理,得到第一值,包括:
根据公式:A=loga(b),计算所述第一值;
其中,A为所述第一值;b为所述RTT值,且b>0;a为大于1的正整数。
可选地,所述对所述第一值进行减函数运算,得到第二值,包括:
将第四预设值与所述第一值的差值,确定为所述第二值;其中,所述第四预设值大于所述第一值。
可选地,所述根据所述第二值和第一预设值,确定第一超时参数,包括:
将所述第二值与所述第一预设值之积,确定为所述一超时参数。
为达到上述目的,本发明的实施例提供一种超时参数的确定装置,包括:
获取模块,用于获取通信链路的往返时延RTT值;
第一处理模块,用于根据所述RTT值,确定所述通信链路对应的第一超时参数,所述第一超时参数用于计算链路通信中断超时检测时间;
其中,所述RTT值与所述第一超时参数呈非线性关系,且所述第一超时参数随所述RTT值的增大而减少。
为达到上述目的,本发明的实施例提供一种通信设备,包括收发器、处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令;所述处理器执行所程序或 指令时实现如上所述的超时参数的确定方法。
为达到上述目的,本发明的实施例提供一种可读存储介质,其上存储有程序或指令,所述程序或指令被处理器执行时实现如上所述的超时参数的确定方法中的步骤。
本发明的上述技术方案的有益效果如下:
本发明实施例的方法,通过获取通信链路的往返时延RTT值;并根据所述RTT值,确定所述通信链路对应的第一超时参数,第一超时参数用于计算链路通信中断超时检测时间;使RTT值与第一超时参数呈非线性关系,且第一超时参数随所述RTT值的增大而减少。如此,在链路的RTT存在动态的变化,并且RTT变化的范围较大时,可基于RTT值的变化,动态调整通信链路的第一超时参数,得到适应当前RTT值的链路通信中断超时检测时间,保证及时准确地检测到链路是否通信中断。
附图说明
图1为本发明实施例的超时参数的确定方法的流程图;
图2为本发明实施例的超时参数的确定装置的结构框图;
图3为本发明实施例的通信设备的结构图。
具体实施方式
为使本发明要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。
应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本发明的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。
在本发明的各种实施例中,应理解,下述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。
另外,本文中术语“系统”和“网络”在本文中常可互换使用。
在本申请所提供的实施例中,应理解,“与A相应的B”表示B与A相关联,根据A可以确定B。但还应理解,根据A确定B并不意味着仅仅根据A确定B,还可以根据A和/或其它信息确定B。
如图1所示,本发明实施例的一种超时参数的确定方法,包括以下步骤:
步骤101,获取通信链路的往返时延RTT值;
需要指出的是,不同的时间段,链路的RTT数值可能差别很大。比如在WIFI、长期演进(Long Term Evolution,LTE)网络的情况下,链路很容易受到干扰,通信率并不稳 定,使得不同时间段下获取的RTT值不同。
步骤102,根据所述RTT值,确定所述通信链路对应的第一超时参数,所述第一超时参数用于计算链路通信中断超时检测时间;其中,所述RTT值与所述第一超时参数呈非线性关系,且所述第一超时参数随所述RTT值的增大而减少。
需要指出的是,同一个承载链路,不同时间段检测到的RTT数值也存在很大的变化。链路空闲时,检测到的RTT很小,只有几毫秒,比如3-5毫秒;链路中传输的其它流量较大时,检测到的RTT可能很大,比如达到50-100毫秒。所以,如果按照空闲时的RTT设置第一超时参数值,在链路流量大的情况下,已经变得很不匹配,对隧道超时的判断变得很不准确。
该实施例中,根据通信链路的往返时延RTT值,动态调整通信链路对应的第一超时参数,使RTT值与第一超时参数呈非线性关系,且第一超时参数随RTT值的增大而减少,如此,基于第一超时参数能够得到适应当前网络延迟的链路通信中断超时检测时间,保证及时准确地检测到链路是否通信中断。
在一实施例中,步骤102之后,上述方法还包括:
根据所述RTT值和所述第一超时参数,确定所述通信链路对应的第二超时参数,所述第二超时参数为链路通信中断超时检测时间;其中,所述RTT值与所述第二超时参数呈非线性关系,且所述第二超时参数随所述RTT值的增大而增大。
该实施例中,第二超时参数为链路超时检测时间,如第二超时参数为2500毫秒,那么,如果链路中断,需要在2500毫秒之后检测链路是否中断。
在一具体实施例中,所述根据所述RTT值和所述第一超时参数,确定所述通信链路对应的第二超时参数,包括:
将所述RTT值与所述第一超时参数之积,确定为所述第二超时参数。
该实施例中,由于第一超时参数与RTT值呈非线性关系,因此,基于RTT值与第一超时参数之积确定第二超时参数,使第二超时参数与RTT值也呈非线性关系。如此,实现基于RTT值,得到适应当前网络延迟的链路通信中断超时检测时间,保证及时准确地检测到链路是否通信中断。
在一实施例中,所述根据所述RTT值,确定所述通信链路对应的第一超时参数,包括:
对所述RTT值进行非线性化处理,得到第一值;
对所述第一值进行减函数运算,得到第二值;
根据所述第二值和第一预设值,确定所述第一超时参数。
该实施例中,通过对RTT值做非线性化转换处理,能够避免超时检测时间和RTT之间的线性比例问题;通过对第一值进行减函数运算,得到第二值,能够实现RTT值越大,最终计算得到的第一超时参数越小,RTT越小,最终计算得到的第一超时参数越大;第一预设值为实验标定量,用于对第二值进行调整得到第一超时参数。
在一实施例中,所述对所述第一值进行减函数运算,得到第二值之前,所述方法还包括:
对所述第一值进行范围限制处理。
该实施例中,通过对第一值进行范围限制处理,能够避免RTT过大或过小导致非线性处理得到的第一值数值过大或过小,影响链路中断检测的准确性。
具体地,在一实施例中,所述对所述第一值进行范围限制处理,包括:
在所述第一值大于第二预设值时,限制所述第一值为所述第二预设值;
在所述第一值小于第三预设值时,限制所述第一值为所述第三预设值。
通过该实施例,将第一值限制在第二预设值与第三预设值之间。如,第二预设值设置为10,大于10的第一值,限制为10;第三预设值为0,小于0的第一值,限制为0。如此,在RTT值超过一个数值之后,设置的第一超时参数就会达到一个最小值。即,第一超时参数存在一个最小截断。例如,当RTT值超过1秒之后,第一超时参数为10,即超时检测时间为RTT值的10倍。RTT为1秒时,第一超时参数为10;RTT为2秒,第一超时参数还为10;RTT为3秒,第一超时参数还为10。
上述实施例中,能够实现随着RTT值的增大,设置的第一超时参数并非一直减小,如此,避免由于第一超时参数过小,导致链路通信中断检测出现误判,影响检测的准确性的问题。
在一实施例中,所述对所述RTT值进行非线性化处理,得到第一值,包括:
根据公式:A=loga(b),计算所述第一值;
其中,A为所述第一值;b为所述RTT值,且b>0;a为大于1的正整数。
如,首先以毫秒为单位,计算出链路当前的RTT值;进一步地,以2为底,计算RTT值的对数值,即,A=log2(RTT值)。
在一实施例中,所述对所述第一值进行减函数运算,得到第二值,包括:
将第四预设值与所述第一值的差值,确定为所述第二值;其中,所述第四预设值大于所述第一值。
该实施例中,第四预设值大于第二预设值,第四预设值可以根据实际不同情况,设置不同的数值。
在一实施例中,所述根据所述第二值和第一预设值,确定第一超时参数,包括:
将所述第二值与所述第一预设值之积,确定为所述第一超时参数。
该实施例中,第一预设值为第二值的乘积因子,实际应用时,如果根据实际情况,计算出来的第一超时参数偏大或者偏小,可以根据实际需要,调整第一预设值。
下面,以第一预设值为4,第二预设值为10,第三预设值为0,第四预设值为12为例,针对不同的RTT值,基于公式:第一超时参数=(12-第一值)×4、第二超时参数=RTT×第一超时参数,计算得到第一超时参数和第二超时参数,具体结果见下表:
需要指出的是,在计算第一超时参数时,第一值为对log2(RTT值)的计算结果向下取整后得到的。
由上表可以看出,第一超时参数和第二超时参数与RTT值均呈非线性关系,且随着RTT值的增大,第一超时参数逐渐较小,第二超时参数逐渐增大。第一超时参数与第二超时参数均为较合理的取值。
需要指出的是,上述方案不限特定通信设备和通信场景。在由于软件运行的设备多样,或者产品的使用范围广泛,或者实际运行的通信场景等原因导致的通信链路的RTT存在较大的变化的情况,都可以通过本申请实施例来动态地调整链路的第一超时参数,使得通信链路的故障中断检测功能可以达到预期的效果,满足产品实际使用需要。
如图2所示,本发明实施例的一种超时参数的确定装置200,包括:
获取模块201,用于获取通信链路的往返时延RTT值;
第一处理模块202,用于根据所述RTT值,确定所述通信链路对应的第一超时参数,所述第一超时参数用于计算链路通信中断超时检测时间;
其中,所述RTT值与所述第一超时参数呈非线性关系,且所述第一超时参数随所述RTT值的增大而减少。
可选地,所述装置200还包括:
第二处理模块,用于根据所述RTT值和所述第一超时参数,确定所述通信链路对应的第二超时参数,所述第二超时参数为链路通信中断超时检测时间;
其中,所述RTT值与所述第二超时参数呈非线性关系,且所述第二超时参数随所述 RTT值的增大而增大。
可选地,第二处理模块,包括:
第一处理单元,用于将所述RTT值与所述第一超时参数之积,确定为所述第二超时参数。
可选地,第一处理模块202,包括:
第二处理单元,用于对所述RTT值进行非线性化处理,得到第一值;
第三处理单元,用于对所述第一值进行减函数运算,得到第二值;
第四处理单元,用于根据所述第二值和第一预设值,确定所述第一超时参数。
可选地,所述装置200还包括:
第三处理模块,用于对所述第一值进行范围限制处理。
可选地,第三处理模块包括:
第五处理单元,用于在所述第一值大于第二预设值时,限制所述第一值为所述第二预设值;
第六处理单元,用于在所述第一值小于第三预设值时,限制所述第一值为所述第三预设值。
可选地,第二处理单元具体用于:
根据公式:A=loga(b),计算所述第一值;
其中,A为所述第一值;b为所述RTT值,且b>0;a为大于1的正整数。
可选地,第三处理单元具体用于:
将第四预设值与所述第一值的差值,确定为所述第二值;其中,所述第四预设值大于所述第一值。
可选地,第四处理单元具体用于:
将所述第二值与所述第一预设值之积,确定为所述一超时参数。
本发明实施例提供的装置,可以执行上述方法实施例,其实现原理和技术效果类似,本实施例此处不再赘述。
本发明另一实施例的一种移动终端,如图3所示,包括收发器310、处理器300、存储器320及存储在所述存储器320上并可在所述处理器300上运行的程序或指令;所述处理器300执行所述程序或指令时实现以下步骤:
获取通信链路的往返时延RTT值;
根据所述RTT值,确定所述通信链路对应的第一超时参数,所述第一超时参数用于计算链路通信中断超时检测时间;
其中,所述RTT值与所述第一超时参数呈非线性关系,且所述第一超时参数随所述RTT值的增大而减少。
所述收发器310,用于在处理器300的控制下接收和发送数据。
其中,在图3中,总线架构可以包括任意数量的互联的总线和桥,具体由处理器300 代表的一个或多个处理器和存储器320代表的存储器的各种电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。收发器310可以是多个元件,即包括发送机和接收机,提供用于在传输介质上与各种其他装置通信的单元。针对不同的用户设备,用户接口330还可以是能够外接内接需要设备的接口,连接的设备包括但不限于小键盘、显示器、扬声器、麦克风、操纵杆等。
处理器300负责管理总线架构和通常的处理,存储器320可以存储处理器300在执行操作时所使用的数据。
可选地,所述处理器300执行所述程序或指令时实现以下步骤:
根据所述RTT值和所述第一超时参数,确定所述通信链路对应的第二超时参数,所述第二超时参数为链路通信中断超时检测时间;
其中,所述RTT值与所述第二超时参数呈非线性关系,且所述第二超时参数随所述RTT值的增大而增大。
可选地,所述处理器300执行所述程序或指令时实现以下步骤:
将所述RTT值与所述第一超时参数之积,确定为所述第二超时参数。
可选地,所述处理器300执行所述程序或指令时实现以下步骤:
对所述RTT值进行非线性化处理,得到第一值;
对所述第一值进行减函数运算,得到第二值;
根据所述第二值和第一预设值,确定所述第一超时参数。
可选地,所述处理器300执行所述程序或指令时实现以下步骤:
对所述第一值进行范围限制处理。
可选地,所述处理器300执行所述程序或指令时实现以下步骤:
在所述第一值大于第二预设值时,限制所述第一值为所述第二预设值;
在所述第一值小于第三预设值时,限制所述第一值为所述第三预设值。
可选地,所述处理器300执行所述程序或指令时实现以下步骤:
根据公式:A=loga(b),计算所述第一值;
其中,A为所述第一值;b为所述RTT值,且b>0;a为大于1的正整数。
可选地,所述处理器300执行所述程序或指令时实现以下步骤:
将第四预设值与所述第一值的差值,确定为所述第二值;其中,所述第四预设值大于所述第一值。
可选地,所述处理器300执行所述程序或指令时实现以下步骤:
将所述第二值与所述第一预设值之积,确定为所述一超时参数。
本发明实施例的一种可读存储介质,其上存储有程序或指令,所述程序或指令被处理器执行时实现如上所述的超时参数的确定方法中的步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only  Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
进一步需要说明的是,此说明书中所描述的终端包括但不限于智能手机、平板电脑等,且所描述的许多功能部件都被称为模块,以便更加特别地强调其实现方式的独立性。
本发明实施例中,模块可以用软件实现,以便由各种类型的处理器执行。举例来说,一个标识的可执行代码模块可以包括计算机指令的一个或多个物理或者逻辑块,举例来说,其可以被构建为对象、过程或函数。尽管如此,所标识模块的可执行代码无需物理地位于一起,而是可以包括存储在不同位里上的不同的指令,当这些指令逻辑上结合在一起时,其构成模块并且实现该模块的规定目的。
实际上,可执行代码模块可以是单条指令或者是许多条指令,并且甚至可以分布在多个不同的代码段上,分布在不同程序当中,以及跨越多个存储器设备分布。同样地,操作数据可以在模块内被识别,并且可以依照任何适当的形式实现并且被组织在任何适当类型的数据结构内。所述操作数据可以作为单个数据集被收集,或者可以分布在不同位置上(包括在不同存储设备上),并且至少部分地可以仅作为电子信号存在于系统或网络上。
在模块可以利用软件实现时,考虑到现有硬件工艺的水平,所以可以以软件实现的模块,在不考虑成本的情况下,本领域技术人员都可以搭建对应的硬件电路来实现对应的功能,所述硬件电路包括常规的超大规模集成(Very Large Scale Integration,VLSI)电路或者门阵列以及诸如逻辑芯片、晶体管之类的现有半导体或者是其它分立的元件。模块还可以用可编程硬件设备,诸如现场可编程门阵列、可编程阵列逻辑、可编程逻辑设备等实现。
上述范例性实施例是参考该些附图来描述的,许多不同的形式和实施例是可行而不偏离本发明精神及教示,因此,本发明不应被建构成为在此所提出范例性实施例的限制。更确切地说,这些范例性实施例被提供以使得本发明会是完善又完整,且会将本发明范围传达给那些熟知此项技术的人士。在该些图式中,组件尺寸及相对尺寸也许基于清晰起见而被夸大。在此所使用的术语只是基于描述特定范例性实施例目的,并无意成为限制用。如在此所使用地,除非该内文清楚地另有所指,否则该单数形式“一”、“一个”和“该”是意欲将该些多个形式也纳入。会进一步了解到该些术语“包含”及/或“包括”在使用于本说明书时,表示所述特征、整数、步骤、操作、构件及/或组件的存在,但不排除一或更多其它特征、整数、步骤、操作、构件、组件及/或其族群的存在或增加。除非另有所示,陈述时,一值范围包含该范围的上下限及其间的任何子范围。
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。

Claims (12)

  1. 一种超时参数的确定方法,包括:
    获取通信链路的往返时延RTT值;
    根据所述RTT值,确定所述通信链路对应的第一超时参数,所述第一超时参数用于计算链路通信中断超时检测时间;其中,所述RTT值与所述第一超时参数呈非线性关系,且所述第一超时参数随所述RTT值的增大而减少。
  2. 根据权利要求1所述的超时参数的确定方法,其中,所述根据所述RTT值,确定所述通信链路对应的第一超时参数之后,所述方法还包括:
    根据所述RTT值和所述第一超时参数,确定所述通信链路对应的第二超时参数,所述第二超时参数为链路通信中断超时检测时间;
    其中,所述RTT值与所述第二超时参数呈非线性关系,且所述第二超时参数随所述RTT值的增大而增大。
  3. 根据权利要求2所述的超时参数的确定方法,其中,所述根据所述RTT值和所述第一超时参数,确定所述通信链路对应的第二超时参数,包括:
    将所述RTT值与所述第一超时参数之积,确定为所述第二超时参数。
  4. 根据权利要求1所述的超时参数的确定方法,其中,所述根据所述RTT值,确定所述通信链路对应的第一超时参数,包括:
    对所述RTT值进行非线性化处理,得到第一值;
    对所述第一值进行减函数运算,得到第二值;
    根据所述第二值和第一预设值,确定所述第一超时参数。
  5. 根据权利要求4所述的超时参数的确定方法,其中,所述对所述第一值进行减函数运算,得到第二值之前,所述方法还包括:
    对所述第一值进行范围限制处理。
  6. 根据权利要求5所述的超时参数的确定方法,其中,所述对所述第一值进行范围限制处理,包括:
    在所述第一值大于第二预设值时,限制所述第一值为所述第二预设值;
    在所述第一值小于第三预设值时,限制所述第一值为所述第三预设值。
  7. 根据权利要求4所述的超时参数的确定方法,其中,所述对所述RTT值进行非线性化处理,得到第一值,包括:
    根据公式:A=loga(b),计算所述第一值;
    其中,A为所述第一值;b为所述RTT值,且b>0;a为大于1的正整数。
  8. 根据权利要求4所述的超时参数的确定方法,其中,所述对所述第一值进行减函数运算,得到第二值,包括:
    将第四预设值与所述第一值的差值,确定为所述第二值;其中,所述第四预设值大于 所述第一值。
  9. 根据权利要求4所述的超时参数的确定方法,其中,所述根据所述第二值和第一预设值,确定第一超时参数,包括:
    将所述第二值与所述第一预设值之积,确定为所述一超时参数。
  10. 一种超时参数的确定装置,包括:
    获取模块,用于获取通信链路的往返时延RTT值;
    第一处理模块,用于根据所述RTT值,确定所述通信链路对应的第一超时参数,所述第一超时参数用于计算链路通信中断超时检测时间;
    其中,所述RTT值与所述第一超时参数呈非线性关系,且所述第一超时参数随所述RTT值的增大而减少。
  11. 一种通信设备,包括:收发器、处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令;所述处理器执行所述程序或指令时实现如权利要求1-9任一项所述的超时参数的确定方法。
  12. 一种可读存储介质,其上存储有程序或指令,所述程序或指令被处理器执行时实现如权利要求1-9任一项所述的超时参数的确定方法。
PCT/CN2023/073982 2022-07-20 2023-01-31 一种超时参数的确定方法、装置及通信设备 WO2024016622A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210858605.9 2022-07-20
CN202210858605.9A CN117478558A (zh) 2022-07-20 2022-07-20 一种超时参数的确定方法、装置及通信设备

Publications (1)

Publication Number Publication Date
WO2024016622A1 true WO2024016622A1 (zh) 2024-01-25

Family

ID=89616896

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/073982 WO2024016622A1 (zh) 2022-07-20 2023-01-31 一种超时参数的确定方法、装置及通信设备

Country Status (2)

Country Link
CN (1) CN117478558A (zh)
WO (1) WO2024016622A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1370361A (zh) * 1999-08-17 2002-09-18 艾利森电话股份有限公司 用于确定时间参量的方法和设备
CN101248634A (zh) * 2005-08-25 2008-08-20 Nxp股份有限公司 用于计算通信会话中的超时参数的方法和电路
CN102917068A (zh) * 2012-10-26 2013-02-06 浪潮(北京)电子信息产业有限公司 一种自适应大规模集群通信系统及其通信方法
CN108337032A (zh) * 2018-01-12 2018-07-27 西安交通大学 一种在sdsn中的时延测量偏差量化与时延预测的方法
CN109560897A (zh) * 2017-09-25 2019-04-02 网宿科技股份有限公司 一种tcp重传方法和装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1370361A (zh) * 1999-08-17 2002-09-18 艾利森电话股份有限公司 用于确定时间参量的方法和设备
CN101248634A (zh) * 2005-08-25 2008-08-20 Nxp股份有限公司 用于计算通信会话中的超时参数的方法和电路
CN102917068A (zh) * 2012-10-26 2013-02-06 浪潮(北京)电子信息产业有限公司 一种自适应大规模集群通信系统及其通信方法
CN109560897A (zh) * 2017-09-25 2019-04-02 网宿科技股份有限公司 一种tcp重传方法和装置
CN108337032A (zh) * 2018-01-12 2018-07-27 西安交通大学 一种在sdsn中的时延测量偏差量化与时延预测的方法

Also Published As

Publication number Publication date
CN117478558A (zh) 2024-01-30

Similar Documents

Publication Publication Date Title
US11652752B2 (en) Congestion control method and network device
WO2021012869A1 (zh) 传输速率的确定方法、装置、设备和存储介质
CN109905259B (zh) 通信连接维持方法、系统和相关设备
US11671210B2 (en) Retransmission control method, communications interface, and electronic device
WO2020125539A1 (zh) 一种节点设备的选择方法及其相关设备
CN112261094B (zh) 一种报文处理方法及代理服务器
CN110247816B (zh) 指标监控方法及装置
WO2022104754A1 (zh) 网络资源的管理方法、管理装置、电子设备及存储介质
WO2018040258A1 (zh) 基站信号发射功率的调整方法、装置、设备及存储介质
US9515939B2 (en) Apparatus and method for controlling a window size of packet transmission based on a free space of buffer
CN103563331A (zh) 用于通过流控制来增强设备性能的方法和装置
WO2024016622A1 (zh) 一种超时参数的确定方法、装置及通信设备
WO2021212982A1 (zh) 路由信息扩散方法、装置和存储介质
CN111769993B (zh) 一种动态调用物联网通信网关的方法和系统
CN116150054A (zh) 一种基于pcie的中断信息处理方法
WO2021088905A1 (zh) 定位测量方法、终端和网络节点
WO2019019281A1 (zh) 物联网终端的控制方法及物联网接入点
CN104601655A (zh) 智能插座的控制方法及装置
CN115002513B (zh) 音视频调度方法、装置、电子设备及计算机可读存储介质
WO2024099175A1 (zh) 一种算法管理方法和装置
CN113949706B (zh) 移动边缘计算节点的选择方法和系统
CN106506434B (zh) 业务数据传输方法及装置
CN114615708B (zh) 一种将终端均衡接入集中单元用户面的方法及装置
WO2024082099A1 (zh) 通信方法、电子设备及存储介质
WO2024017248A1 (zh) 响应方法及装置、设备、计算机可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23841700

Country of ref document: EP

Kind code of ref document: A1