Path state detection method and device, network equipment and readable storage medium

By performing SLA state detection when there is no traffic on the network path and dynamically adjusting the detection frequency according to the detection results, the problems of resource waste and state update lag in the existing technology are solved, and real-time performance of network path state and resource utilization efficiency are improved.

CN119814610APending Publication Date: 2025-04-11MAIPU COMM TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411841594.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-13
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

The existing SLA state detection methods have problems such as wasting resource and lag in the state update when there is no traffic on the network path, and the detection frequency cannot dynamically adapt to the actual state changes of the network path.

Method used

When it is detected that the network path is in a traffic-free state, the preset detection frequency is obtained, the network path is detected by SLA state, and the SLA state satisfaction rate within the preset time period is obtained. When the SLA state satisfaction rate is not within the preset range, adjust the detection frequency and restart the detection process.

Benefits of technology

By detecting the network path status in real time, the problem of SLA status information lag caused by traffic changes is avoided, and by dynamically adjusting the detection frequency, resource utilization efficiency is optimized and the real-time and reliability of the network path status is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119814610A_ABST
    Figure CN119814610A_ABST
Patent Text Reader

Abstract

The invention provides a path state detection method and device, network equipment and a readable storage medium, and the method comprises the steps: obtaining a preset detection frequency when a network path is determined to be in a no-flow state; performing service level agreement (SLA) state detection on the network path based on the detection frequency to obtain an SLA state satisfaction rate in a preset time period; and when the SLA state satisfaction rate is not within the preset range, adjusting the detection frequency, and returning to the step of carrying out SLA state detection on the network path based on the detection frequency. According to the invention, timely updating of the path state information can be ensured, and the problem of SLA state information lagging caused by flow fluctuation can be effectively prevented. Meanwhile, the detection frequency can be dynamically adjusted according to the SLA satisfaction rate, so that resource waste possibly caused by fixed frequency detection is avoided. According to the whole scheme, a closed loop process is formed, the detection frequency can be continuously and dynamically adjusted based on the real-time flow and the historical SLA state, and the resource utilization efficiency is optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network communication technology, and in particular to a path status detection method, device, network equipment and readable storage medium. Background Art

[0002] With the rapid development of application scenarios such as 5G, Internet of Things, cloud computing, and data centers, network communications have an increasingly urgent need to ensure efficient and reliable network service quality. In this context, intelligent policy routing technology has gradually become a key technology for optimizing network service quality. SRv6 (Segment Routing over IPv6, segment routing based on IPv6) is the core protocol in intelligent policy routing technology. By embedding the forwarding network path of the data packet into the IP packet header, SRv6 achieves flexibility and scalability in network path selection, and is therefore widely used in network scenarios with demanding network service quality requirements, such as operator backbone networks, data center networks, etc.

[0003] In actual applications, SRv6 intelligent policy routing technology is usually used to configure primary and backup network paths for key business flows to ensure rapid switching when the primary network path fails or the service quality does not meet the standards. Before implementing the primary-backup switching, periodic detection is usually used to monitor the SLA (Service Level Agreement) status of the backup network path. SLA is a protocol used to clearly describe the quality of network services, including key performance indicators such as latency, jitter, and packet loss rate. However, existing SLA status detection methods have some limitations, which include:

[0004] 1. The fixed-period detection method is a method of sending SLA status detection messages at fixed time intervals (i.e., fixed detection frequency), regardless of whether there is traffic on the backup network path. This method ensures the continuity and real-time nature of network path status information, but there is also a problem of resource waste, especially when there is no traffic on the backup network path for a long time, the fixed-frequency detection configuration may appear redundant and inefficient.

[0005] 2. The triggered detection method is a method that starts SLA status detection only when traffic is switched to the backup network path. This method starts detection only when traffic switching is required, thereby reducing the overhead of network detection, but the disadvantage is that if the backup network path is not used for a long time, there will be a lack of status updates, which means that the actual status of the backup network path cannot be known in time when the switch occurs, which may bring the risk of business interruption.

[0006] 3. Static hierarchical detection is a method of presetting different detection frequencies according to the importance of network paths. This method sets the main network path to high-frequency detection and the backup network path to low-frequency detection. Although this method reduces resource consumption to a certain extent, it does not adjust the detection frequency in combination with the real-time SLA status changes of the network path. Therefore, this method has limited effect when the network load and network path status change dynamically.

[0007] Therefore, considering the limitations of the above detection methods, it is necessary to provide a new state detection method to improve the detection efficiency and resource utilization efficiency. Summary of the invention

[0008] In view of this, the purpose of the present invention is to provide a path status detection method, device, network device and readable storage medium, which are used to improve the path status and improve the detection efficiency and resource utilization efficiency. In order to achieve the above purpose, the technical solution adopted by the present invention is as follows:

[0009] In a first aspect, the present invention provides a path status detection method, the method comprising: when it is determined that a network path is in a no-traffic state, obtaining a preset detection frequency; performing a service level agreement (SLA) status detection on the network path based on the detection frequency, and obtaining an SLA status satisfaction rate within a preset time period; when the SLA status satisfaction rate is not within a preset range, adjusting the detection frequency, and returning to the step of performing a service level agreement (SLA) status detection on the network path based on the detection frequency.

[0010] In a second aspect, the present invention provides a network path status detection device, comprising: a monitoring module, a detection module and an adjustment module; the monitoring module is used to notify the detection module when it is determined that the network path is in a no-flow state; the detection module is used to obtain a preset detection frequency, perform a service level agreement SLA status detection on the network path based on the detection frequency, and obtain an SLA status satisfaction rate within a preset time period; the adjustment module is used to adjust the detection frequency when the SLA status satisfaction rate is not within a preset range, and feed back the adjusted detection frequency to the detection module.

[0011] In a third aspect, the present invention provides a network device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor can execute the machine executable instructions to implement the path status detection method described in any of the aforementioned implementations.

[0012] In a fourth aspect, the present invention provides a readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements a path status detection method as described in any one of the aforementioned embodiments.

[0013] The embodiments of the present invention provide a path status detection method, device, network equipment and readable storage medium. When it is detected that the network path is in a no-flow state, the system will automatically obtain a preset detection frequency, and perform SLA status detection on the network path according to the frequency, and obtain the SLA status satisfaction rate within a preset time period. If it is found that the SLA status satisfaction rate does not reach the preset range, the detection frequency is adjusted and the detection process is restarted. Compared with the prior art, the present invention starts SLA status detection when there is no flow in the network path, ensuring the timely update of the path status information and effectively preventing the problem of SLA status information lag caused by traffic changes. At the same time, the present invention dynamically adjusts the detection frequency according to the SLA satisfaction rate, avoiding the waste of resources that may be caused by fixed frequency detection. In addition, the entire scheme forms a closed-loop process, ensuring that the device can continuously and dynamically adjust the detection frequency based on the real-time traffic and the SLA status obtained by multiple detections, thereby optimizing resource utilization efficiency.

[0014] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0016] Figure 1 is a schematic flow chart of a path status detection method provided by an embodiment of the present invention;

[0017] Figure 2 A schematic diagram of a path status detection process provided by an embodiment of the present invention;

[0018] Figure 3 A functional module diagram of a path status detection device provided by an embodiment of the present invention;

[0019] Figure 4 A structural block diagram of a network device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0020] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0021] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present invention.

[0022] It should be noted that relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0023] Considering that the prior art lacks a real-time detection mechanism when there is no traffic on the network path, and the detection frequency fails to dynamically adapt to the actual state changes of the network path, there are problems of resource waste and state update lag. The embodiment of the present invention provides a flexible path state detection method to improve the real-time and resource efficiency of the network path state to meet the strict requirements of network service quality.

[0024] See also Figure 1 , Figure 1 This is a schematic flow chart of a path status detection method provided by an embodiment of the present invention. The execution subject of this method may be a head node device in an SRv6 network, and the implementation process includes the following steps:

[0025] S101: When it is determined that the network path is in a no-flow state, obtaining a preset detection frequency;

[0026] S102: Performing a service level agreement (SLA) status detection on the network path based on the detection frequency to obtain an SLA status satisfaction rate within a preset time period;

[0027] S103: When the SLA status satisfaction rate is not within the preset range, adjust the detection frequency and return to step S102.

[0028] The embodiment of the present invention can achieve the following technical effects through steps S101 to S103: when the head node device detects that there is no traffic in the network path, the SLA status detection is immediately started to ensure that the path status information can be updated in time, effectively preventing the SLA status information lag caused by traffic fluctuations. The network path here refers to the backup path in the SRv6 network. In addition, the head node device can dynamically adjust the detection frequency according to the SLA satisfaction rate, thereby avoiding the waste of resources that may be caused by fixed frequency detection. The entire solution provided by the embodiment of the present invention forms a closed-loop process, which ensures that the head node device can continuously and dynamically adjust the detection frequency based on the real-time traffic and SLA status information obtained by multiple detections. This intelligent adjustment mechanism not only optimizes the SLA satisfaction rate of the network path, but also improves resource utilization efficiency.

[0029] Next, the above steps S101 to S103 are respectively described in detail.

[0030] In step S101, the head node device can monitor the flow of the main path or backup path in the network, which is not limited here. Among them, the network path is in a no-flow state means that there is no ongoing data transmission on the path, which may be caused by the network path itself temporarily not needing to transmit data or due to a connection interruption.

[0031] In one embodiment of the present invention, the head node device can determine whether the network path is in a no-flow state by detecting whether there is flow in the network path within a period of time. For example, if no data packet is detected within 30 seconds, the network path will be determined to be in a no-flow state. The "period of time" here can be flexibly configured by the network administrator according to actual needs, and the embodiment of the present invention does not make specific provisions for this.

[0032] In an optional implementation, the head node device may detect the traffic situation on the network path by, but is not limited to, a traffic counter, a statistical analysis module or other detection technologies.

[0033] Through the above implementation, if the head node device detects that there is traffic on the network path, then no measures need to be taken, and only the traffic needs to be monitored. On the contrary, if the head node device determines that there is no traffic on the network path, the active detection mechanism will be activated, that is, the SLA status detection will be performed according to the pre-set or adjusted detection frequency. The "SLA status detection" defined here can refer to the detection of real-time performance indicators of the network path, which include but are not limited to delay, jitter and packet loss rate.

[0034] In one embodiment of the present invention, the head node device may pre-set an initial detection frequency for the network path. For example, the initial detection frequency is once per minute (1 time / minute) to ensure that the demand for network path status monitoring is met while avoiding unnecessary burden on the network.

[0035] In the embodiment of the present invention, the initial detection frequency can be flexibly adjusted according to different network environments and specific requirements for the SLA status, in order to ensure accurate and reliable SLA status information while minimizing the detection overhead.

[0036] In step S102, the head node device may start SLA status detection of the network path in the no-flow state through the initial detection frequency. In one embodiment of the present invention, the SLA status detection method may be as shown in the following process:

[0037] Step a1-1: Send a detection message to the target node device of the network path according to the detection frequency;

[0038] Step a1-2: receiving a response message fed back by the target node device after receiving the detection message, and obtaining the SLA status information of the network path according to the response message.

[0039] In the above implementation, the head node device adopts a directional detection message sending method. The SLA status information obtained by this detection method is directly derived from the response message fed back by the target node device, making the acquisition of SLA status information more accurate and efficient. In an embodiment of the present invention, the target node is generally set as the tail node of the backup path in the SRv6 network.

[0040] In another embodiment of the present invention, the SLA status detection method may also be shown in the following process:

[0041] Step a2-1: sending a detection message to the network path according to the detection frequency;

[0042] Step a2-2: receiving a response message fed back by each node device on the network path after receiving the sent detection message, and obtaining the SLA status information of the network path according to each response message.

[0043] In the above implementation, the head node device is not limited to sending detection messages only to the target node device, but broadcasts the detection messages to each node device of the network path. This method allows the head node device to collect SLA status information from multiple points of the network path, thereby obtaining a more comprehensive SLA status view.

[0044] It should be noted that, in the embodiment of the present invention, the head node device may only send a detection message to the target node device of the network path, or may only send a detection message to each node device on the network path, or may send a detection message to each node device on the network path. The embodiment of the present invention does not limit which implementation method is selected. In addition, the detection message and response message used in the embodiment of the present invention may use a UDP message using a special port number to implement active detection when there is no traffic on the network path.

[0045] In the embodiment of the present invention, the SLA status information includes a series of performance indicators of the network path, such as delay, jitter and packet loss rate. The head node device will collect these SLA status information each time as the result of a detection. Subsequently, the SLA satisfaction of the current network path can be evaluated based on these detection results, and it can be determined whether the detection frequency needs to be adjusted. This intelligent mechanism helps to optimize the efficiency of resource use while ensuring network performance monitoring.

[0046] In one embodiment of the present invention, the head node device may store the SLA status information obtained from each detection in an SLA database, thereby establishing a historical SLA data record for each network path. The database may provide a reference for subsequent detection frequency adjustments.

[0047] In step S103, when the head node device determines that the SLA status satisfaction rate is not within the preset range, the initial detection frequency can be dynamically adjusted. In an embodiment of the present invention, the defined "SLA status satisfaction rate" can be determined by quantitatively analyzing the satisfaction degree of the performance indicators (such as delay, jitter and packet loss rate, etc.) obtained by the detection.

[0048] Therefore, as an example, the embodiment of the present invention can use the SLA status information obtained by multiple detections in a preset time period to determine the implementation method of the SLA status satisfaction rate, which improves the reliability of the evaluation result.

[0049] In one embodiment, the preset time period mentioned above may refer to a time period length (e.g., 24 hours) consisting of multiple detection cycles at the current detection frequency. In this embodiment, the head node device may calculate the SLA satisfaction rate using all SLA status information collected multiple times within the preset time period.

[0050] In this implementation manner, the head node device may use the SLA status satisfaction rate as the SLA status satisfaction rate based on whether all SLA status information in a preset time period meets the standard.

[0051] In another embodiment, the head node device calculates the SLA status satisfaction rate once every preset time period mentioned above. In this embodiment, the head node device only needs to determine the SLA satisfaction rate once every preset time period and record it. This method pays more attention to the recent network performance to respond to changes in network status more quickly. In this embodiment, the head node device can determine the SLA status satisfaction rate according to steps b1 to b2:

[0052] Step b1: Determine whether the SLA status information obtained from each detection meets the preset standard;

[0053] As mentioned above, the SLA status information may include key performance indicators of the network path, such as delay, jitter, packet loss rate, etc. In the embodiment of the present invention, the SLA status information meeting the preset standard means that the actual measured value of each performance indicator must reach or exceed the specified standard indicator value.

[0054] For example, if the measured delay exceeds the specified standard delay value, then the performance indicator is considered to not meet the preset standard. Similarly, jitter and packet loss rate must also meet their respective standard indicator values. Only when all performance indicators meet or exceed the specified standards, the SLA status information is considered to meet the preset standards.

[0055] Step b2: The ratio of the number of detections that meet the preset standard to the total number of detections in the preset time period is taken as the SLA status satisfaction rate.

[0056] In the embodiment of the present invention, the head node device can perform multiple detections in a preset time period to obtain multiple SLA status information. Then, step b2 can count the number of detections in which the SLA status information meets the preset standard, and then the ratio of the number to the total number of detections in the preset time period is used as the SLA status satisfaction rate. For example, assuming that 10 detections were performed in the past 24 hours, and the SLA status information met the preset standard 8 times, then the SLA status satisfaction rate is 80%.

[0057] The head node device can assist in dynamically adjusting the detection frequency by regularly analyzing the SLA status information to adapt to the real-time SLA status requirements of the network path.

[0058] Next, the head node device may determine whether the current detection frequency needs to be adjusted based on the determined SLA status satisfaction rate, that is, execute S103.

[0059] In the embodiment of the present invention, the head node device can judge the level of SLA status satisfaction rate based on a comparison range. If the SLA status satisfaction rate is high, it means that the path status is stable, and the detection frequency is reduced to save network resources; if the SLA status satisfaction rate is low, it means that there may be problems with the path, and the detection frequency is increased to enhance the real-time performance of the path status. Therefore, in the embodiment of the present invention, the head node device can dynamically adjust the detection frequency in the following manner:

[0060] If the SLA status satisfaction rate is greater than the upper limit of the preset range, the detection frequency is reduced; if the SLA status satisfaction rate is less than the lower limit of the preset range, the detection frequency is increased.

[0061] For example, assuming that the upper limit of the preset range is 90% and the lower limit is 80%, if the SLA status satisfaction rate is higher than 90%, the detection frequency needs to be reduced; if the SLA status satisfaction rate is lower than 80%, the detection frequency needs to be increased.

[0062] In one embodiment of the present invention, whether increasing or decreasing the detection frequency, the head node device can achieve this by adjusting the coefficient. It can also be understood that the adjustment coefficient can change dynamically according to the SLA satisfaction rate. Based on this, the embodiment of the present invention can also construct a possible detection frequency update formula: freq_new = freq*α, where freq_new is the adjusted detection frequency, freq is the detection frequency before adjustment, and α is the adjustment coefficient. According to this update formula, if the head node device needs to increase the detection frequency, the adjustment coefficient can be appropriately increased; conversely, if the detection frequency needs to be reduced, the coefficient can be appropriately adjusted.

[0063] For example, taking the above example as a reference, assume that the initial adjustment coefficient is set to 1. When the SLA status satisfaction rate exceeds 90%, the head node device can increase the adjustment coefficient to a value greater than 1 (for example, 1.5) to achieve the effect of reducing the detection frequency; and when the SLA status satisfaction rate is less than 90%, the head node device can reduce the adjustment coefficient to a value less than 1 (for example, 0.8) to achieve the effect of increasing the detection frequency. This adjustment strategy helps to achieve precise control of the detection frequency.

[0064] After the head node device adjusts the detection frequency through the above implementation, it can continuously monitor and record the detection results under the new detection frequency based on the new detection frequency, so that the detection frequency and the SLA status of the network path are dynamically matched. Therefore, after executing S103, it returns to execute S102, forming a loop process, ensuring that the head node device continuously and dynamically adjusts the detection frequency based on the historical SLA status, thereby optimizing the SLA satisfaction rate and resource utilization efficiency of the network path.

[0065] For an overall understanding of the path status detection process provided by the embodiment of the present invention, please refer to Figure 2 , Figure 2 A schematic diagram of a path status detection process provided by an embodiment of the present invention. Assuming that there is business traffic on the network path 2 between node 1 and node 3, that is, business data such as emails, videos, and audio may be transmitted, and there is no business traffic on the network path 1 between node 1 and node 2, then step ① when it is monitored that the network path 1 is in a no-traffic state, execute step ② to send an SLA detection message to the network path 1 at a frequency of once per minute, and then execute step ③ to collect SLA status information within a preset time period, such as 1 hour. According to the detection frequency of once per minute and the preset time period of 1 hour, 60 SLA status information is obtained. When step ④ determines that the SLA satisfaction rate is too high, the frequency is reduced through step ⑤, and the original 1 minute is adjusted to once every 1.2 minutes, and then the SLA detection message is sent at this frequency; when step ⑥ determines that the SLA satisfaction rate is too low, the frequency is increased through step ⑦, and the original 1 minute is adjusted to once every 0.8 minutes, and the message is continued to be sent at this frequency, forming a cycle process, ensuring that the system continuously and dynamically adjusts the detection frequency based on the historical SLA status, thereby improving resource utilization efficiency.

[0066] In summary, the path status detection method provided by the embodiment of the present invention has the following advantages:

[0067] 1. In the embodiment of the present invention, when the head node device detects that there is no traffic on the network path, it ensures the real-time nature of the path status through active detection, avoids the problem of SLA status lag when traffic is switched, and improves the real-time nature of the path status.

[0068] 2. In the embodiment of the present invention, the head node device avoids unnecessary resource consumption in fixed frequency detection by dynamically adjusting the detection frequency, thereby improving the overall resource utilization efficiency of the network.

[0069] 3. In the embodiment of the present invention, the head node device can automatically increase the detection frequency when the path status fluctuates greatly, that is, the SLA status satisfaction rate is low, and automatically reduce the detection frequency when the path status fluctuates slightly, that is, the SLA status satisfaction rate is high. In this way, the current SLA status of the network path is accurately reflected, the risk of service interruption is reduced, and the reliability of the network is improved.

[0070] Based on Figure 1 With the same inventive concept, in order to execute the corresponding steps in the above embodiments and various possible methods, a method for implementing the path state detection device 30 is given below. Figure 3 , Figure 3A functional module diagram of a path state detection device provided in an embodiment of the present invention. It should be noted that the basic principle and technical effects of the path state detection device 30 provided in this embodiment are the same as those in the above embodiment. For the sake of brief description, for parts not mentioned in this embodiment, reference can be made to the corresponding contents in the above embodiment.

[0071] like Figure 3 As shown, the path state detection device 30 includes: a monitoring module 301, a detection module 302 and an adjustment module 303;

[0072] The monitoring module 301 is used to notify the detection module 302 when it is determined that the network path is in a no-flow state;

[0073] The detection module 302 is used to obtain a preset detection frequency, perform a service level agreement SLA status detection on the network path based on the detection frequency, and obtain the SLA status satisfaction rate within a preset time period;

[0074] The adjustment module 303 is used to adjust the detection frequency when the SLA status satisfaction rate is not within a preset range, and feed back the adjusted detection frequency to the detection module 302.

[0075] It is understood that the monitoring module 301, the detection module 302 and the adjustment module 303 can be executed in coordination. Figure 1 Each step in the process is performed to achieve the corresponding technical effect.

[0076] In an optional implementation, the path status detection device 30 further includes a determination module, which is used to determine the SLA status satisfaction rate by using the SLA status information obtained by multiple detections in a preset time period.

[0077] In an optional implementation, the determination module is specifically used to determine whether the SLA status information obtained by each detection meets the preset standard; the ratio of the number of detections that meet the preset standard to the total number of detections in a preset time period is used as the SLA status satisfaction rate.

[0078] In an optional implementation, the adjustment module 303 is specifically configured to reduce the detection frequency if the SLA status satisfaction rate is greater than an upper limit of a preset range; and increase the detection frequency if the SLA status satisfaction rate is less than a lower limit of the preset range.

[0079] In an optional implementation, the detection module 302 is specifically used to send a detection message to a target node device of the network path according to the detection frequency, receive a response message fed back by the target node device after receiving the detection message, and obtain the SLA status information of the network path according to the response message, or, send a detection message to the network path according to the detection frequency; receive a response message fed back by each node device on the network path after receiving the sent detection message, and obtain the SLA status information of the network path according to each response message.

[0080] It should be noted that the division of modules in the above embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit.

[0081] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable an electronic device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program executable code.

[0082] The embodiment of the present invention further provides a network device 40. Specifically, the network device 40 may be a head node device in an SRv6 network.

[0083] See also Figure 4 , Figure 4 The structural block diagram of the network device provided in the embodiment of the present invention, the network device 40 includes: a memory 401, a processor 402, and a communication interface 403. The memory 401, the processor 402, and the communication interface 403 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines.

[0084] Optionally, the bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0085] In the embodiment of the present invention, the processor 402 may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiment of the present invention. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor. The software module may be located in the memory 401, and the processor 402 reads the program instructions in the memory 401 and completes the steps of the above method in combination with its hardware.

[0086] In the embodiment of the present invention, the memory 401 may be a non-volatile memory, such as a hard disk (HDD) or a solid-state drive (SSD), etc., or a volatile memory (Volatile Memory), such as RAM. The memory may also be any other medium that can be used to carry or store the desired program executable code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory in the embodiment of the present invention may also be a circuit or any other device that can realize a storage function, for storing instructions and / or data.

[0087] The memory 401 can be used to store software programs and modules, such as the instructions / modules of the path state detection device 30 provided in the embodiment of the present invention, which can be stored in the memory 401 in the form of software or firmware (Firmware) or solidified in the operating system (OS) of the network device 40. The processor 402 executes various functional applications and data processing by executing the software programs and modules stored in the memory 401. The communication interface 403 can be used to communicate signaling or data with other node devices.

[0088] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0089] Understandably, Figure 4 The structure shown is for illustration only. The network device 40 may also include Figure 4 More or fewer components as shown, or with Figure 4 Different configurations shown. Figure 4 The components shown may be implemented in hardware, software or a combination thereof.

[0090] Based on the above embodiments, the present application further provides a storage medium, in which a computer program is stored. When the computer program is executed by a computer, the computer executes the path status detection method provided in the above embodiments.

[0091] Based on the above embodiments, an embodiment of the present invention further provides a computer program. When the computer program is executed on a computer, the computer executes the path status detection method provided by the above embodiments.

[0092] Based on the above embodiments, an embodiment of the present invention further provides a chip, which is used to read a computer program stored in a memory and to execute the path status detection method provided in the above embodiments.

[0093] An embodiment of the present invention further provides a computer program product, comprising instructions, which, when executed on a computer, enables the computer to execute the path status detection method provided in the above embodiment.

[0094] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by instructions. These instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0095] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0096] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0097] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A path status detection method, characterized in that: The method comprises: When it is determined that the network path is in a no-flow state, a preset detection frequency is obtained; Performing a service level agreement (SLA) status detection on the network path based on the detection frequency to obtain an SLA status satisfaction rate within a preset time period; When the SLA status satisfaction rate is not within a preset range, the detection frequency is adjusted, and the process returns to the step of performing service level agreement SLA status detection on the network path based on the detection frequency.

2. The path status detection method according to claim 1, characterized in that: Get the SLA status satisfaction rate within the preset time period, including: The SLA status satisfaction rate is determined by using the SLA status information obtained through multiple detections within the preset time period.

3. The path status detection method according to claim 2, characterized in that: Determining the SLA status satisfaction rate by using the SLA status information obtained by multiple detections within the preset time period includes: Determine whether the SLA status information obtained from each detection meets the preset standards; The ratio of the number of detections that meet the preset standard to the total number of detections in the preset time period is used as the SLA status satisfaction rate.

4. The path status detection method according to any one of claims 1 to 3, characterized in that: When the SLA status satisfaction rate is not within a preset range, adjusting the detection frequency includes: If the SLA status satisfaction rate is greater than the upper limit of the preset range, the detection frequency is reduced; if the SLA status satisfaction rate is less than the lower limit of the preset range, the detection frequency is increased.

5. The path status detection method according to claim 1, characterized in that: Performing a service level agreement (SLA) status detection on the network path based on the detection frequency includes: Sending a detection message to a target node device of the network path according to the detection frequency; receiving a response message fed back by the target node device after receiving the detection message, and obtaining the SLA status information of the network path according to the response message; or, Sending a detection message to the network path according to the detection frequency; Receive response messages fed back by each node device on the network path after receiving the sent detection message, and obtain SLA status information of the network path according to each response message.

6. A path status detection device, characterized in that: include: Monitoring module, detection module and adjustment module; The monitoring module is used to notify the detection module when it is determined that the network path is in a no-flow state; The detection module is used to obtain a preset detection frequency, perform a service level agreement SLA status detection on the network path based on the detection frequency, and obtain an SLA status satisfaction rate within a preset time period; The adjustment module is used to adjust the detection frequency when the SLA status satisfaction rate is not within a preset range, and feed back the adjusted detection frequency to the detection module.

7. The path state detection device according to claim 6, characterized in that: The invention also comprises a determination module, which is used to determine the SLA status satisfaction rate by using the SLA status information obtained by multiple detections in a preset time period.

8. The path state detection device according to claim 7, characterized in that: The determination module is specifically used to determine whether the SLA status information obtained from each detection meets the preset standard; and the ratio of the number of detections that meet the preset standard to the total number of detections in the preset time period is used as the SLA status satisfaction rate.

9. A network device, characterized in that: It comprises a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor can execute the machine executable instructions to implement the path status detection method described in any one of claims 1-5.

10. A readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the path status detection method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Business service level agreement guarantee method and system, controller and storage medium

    CN115473825A

  • Health examination implementation method and device based on API gateway

    CN116016266A

  • Network telemetering method and device for distinguishing scenes

    CN118740647A

  • Network wide time based correlation of internet protocol (IP) service level agreement (SLA) faults

    US20080298229A1

  • Identifying a dynamic network parameter probe interval in an sd-wan

    US20210336880A1