Traffic scheduling method and device

By receiving BGP-LS messages in the controller and initiating delayed online tasks according to the link status, the scheduling flapping problem caused by frequent links going online and offline is solved, and the stability of traffic scheduling and the availability of network services are improved.

CN115277528BActive Publication Date: 2024-10-01NEW H3C TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210721889.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-24
Publication Date
2024-10-01
Estimated Expiration
2042-06-24

AI Technical Summary

Technical Problem

In the network, frequent online and offline links cause controller scheduling flapping, which reduces the forwarding capability of the network and may cause service unavailability in severe cases.

Method used

By receiving the BGP-LS message sent by the network device, the delayed online task is started according to the online status of the link, and the process of online and task cancellation is repeated within the preset time period until stopped, ensuring that the link status is configured as online. to continue to participate in path scheduling.

Benefits of technology

It effectively avoids scheduling shocks caused by frequent links going online and offline, improves the stability of traffic scheduling, and ensures the stability and high availability of network services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115277528B_ABST
    Figure CN115277528B_ABST
Patent Text Reader

Abstract

The present application provides a traffic scheduling method and device, the method comprising: receiving a first BGP-LS message sent by a network device, the first BGP-LS message including a second link state of a first link, the second link state being an online state; starting a delayed online task of the first link according to the online state; if a second BGP-LS message including the first link state is received again from the network device within a preset first time period, the delayed online task is canceled; if the first BGP-LS message and the second BGP-LS message are received multiple times within the first time period, the process of starting the delayed online task of the first link and canceling the delayed online task according to the online state is repeatedly executed until the first time period is exceeded and the link state of the first link in the current path scheduling is configured as an online state, so that the first link continues to participate in the path scheduling.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] In networking, the controller manages each network device. After the controller establishes a BGP neighbor relationship with each network device, the network device reports its own attribute information, link information, and routing prefix information to the controller through BGP-LS messages. The controller uses the above information to complete the network topology construction of the networking.

[0003] When the network topology is built, the controller starts to deploy services and sends traffic diversion configurations to each network device to achieve traffic diversion. The controller calculates forwarding path 1 from the source network device to the destination network device (forwarding path 1 is the current optimal path) and sends the calculated path information of forwarding path 1 to the source network device. When traffic arrives, the source node uses forwarding path 1 to achieve traffic forwarding.

[0004] When one or more links in forwarding path 1 are offline (down), the controller will trigger the recalculation of another forwarding path, recorded as forwarding path 2 (forwarding path 2 is the current optimal path and does not include the offline link). After the offline link is back online (up), the re-online link will participate in scheduling again, and the controller will recalculate another forwarding path again, and obtain forwarding path 1 again. The controller performs traffic switching back.

[0005] When links frequently go online or offline, controller scheduling will be affected, resulting in a decrease in the forwarding capability of the entire network. In severe cases, services in the network may become unavailable. Summary of the invention

[0006] In view of this, the present application provides a traffic scheduling method and device to solve the problem that in the process of calculating the forwarding path by the existing controller, the links constituting the optimal forwarding path frequently go online and offline, which will cause controller scheduling oscillation, resulting in a decrease in the forwarding capacity of the entire network, and in severe cases, it will cause the services in the network to be unavailable.

[0007] In a first aspect, the present application provides a traffic scheduling method, the method being applied to a controller, the controller having calculated a first forwarding path from a source network device to a destination network device, the first forwarding path comprising a first link, the first link state of the first link being an offline state, the method comprising:

[0008] receiving a first BGP-LS message sent by a network device, wherein the first BGP-LS message includes a second link state of the first link, and the second link state is an online state;

[0009] According to the online status, starting a delayed online task of the first link;

[0010] If a second BGP-LS message including the first link state is received again from the network device within the preset first time period, canceling the delayed online task;

[0011] If the first BGP-LS message and the second BGP-LS message are received multiple times within the first time period, the process of starting the delayed online task of the first link and canceling the delayed online task according to the online status is repeated until the first time period is exceeded, and the link status of the first link in the current path scheduling is configured as the online status, so that the first link continues to participate in the path scheduling.

[0012] In a second aspect, the present application provides a traffic scheduling device, the device is applied to a controller, the controller has calculated a first forwarding path from a source network device to a destination network device, the first forwarding path includes a first link, and the first link state of the first link is an offline state, the device includes:

[0013] A receiving unit, configured to receive a first BGP-LS message sent by a network device, wherein the first BGP-LS message includes a second link state of the first link, and the second link state is an online state;

[0014] A starting unit, configured to start a delayed online task of the first link according to the online status;

[0015] a cancelling unit, configured to cancel the delayed online task if the receiving unit receives again the second BGP-LS message including the first link state sent by the network device within a preset first time period;

[0016] A configuration unit, for repeatedly executing the process of starting the delayed online task of the first link and canceling the delayed online task according to the online status if the first BGP-LS message and the second BGP-LS message are received multiple times within the first time period, until the first time period is exceeded and the link status of the first link in the current path scheduling is configured as the online status, so that the first link continues to participate in the path scheduling.

[0017] In a third aspect, the present application provides a network device, including a processor and a machine-readable storage medium, the machine-readable storage medium storing machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to execute the method provided in the first aspect of the present application.

[0018] Therefore, by applying the traffic scheduling method and device provided in the present application, the controller receives a first BGP-LS message sent by a network device, and the first BGP-LS message includes a second link state of the first link, and the second link state is an online state; according to the online state, the controller starts the delayed online task of the first link; if within the preset first time period, the controller receives again a second BGP-LS message including the first link state sent by the network device, the controller cancels the delayed online task; if within the first time period, the controller receives the first BGP-LS message and the second BGP-LS message for multiple times, the controller repeats the process of starting the delayed online task of the first link and canceling the delayed online task according to the online state, until it stops when the first time period is exceeded, and configures the link state of the first link in the current path scheduling to an online state, so that the first link continues to participate in the path scheduling.

[0019] In this way, by executing the delayed online task for the link in the current path scheduling, even if the link goes online and offline frequently, the controller can respond to the link offline scheduling in a timely manner while avoiding the scheduling oscillation caused by the frequent online and offline of the link, thereby improving the stability of traffic scheduling and ensuring stable and high availability of network services. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 A flow chart of a traffic scheduling method provided in an embodiment of the present application;

[0021] Figure 2 A structural diagram of a flow scheduling device provided in an embodiment of the present application;

[0022] Figure 3 The network device hardware structure provided in the embodiment of the present application. DETAILED DESCRIPTION

[0023] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

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

[0025] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0026] The following is a detailed description of the traffic scheduling method provided in the embodiment of the present application. Figure 1 , Figure 1 A flow chart of a flow scheduling method provided in an embodiment of the present application. The method is applied to a controller. The flow scheduling method provided in an embodiment of the present application may include the following steps.

[0027] Step 110: Receive a first BGP-LS message sent by a network device, where the first BGP-LS message includes a second link state of the first link, where the second link state is an online state;

[0028] Specifically, after the tunnel T is deployed between the source network device and the destination network device in the network, the controller starts to calculate the optimal path to realize the tunnel T, that is, the first forwarding path LSP1. After the controller calculates the final path LSP1, it sends the path information of LSP1 to the tunnel T deployed by the source network device.

[0029] In the embodiment of the present application, LSP1 is composed of multiple links, for example, a first link, a second link, a third link, etc. Assume that the current state of the first link (for example, srcNode_dstNode_Link1) changes from an online state (UP) to a down state, that is, the first link fails, or the network devices at both ends of the first link fail, resulting in the first link being unreachable.

[0030] Wherein, srcNode is the source network device of the first link, and dstNode is the destination network device of the first link. There may be multiple links between srcNode and dstNode, and Link1 is used as an index to uniquely identify a link between srcNode and dstNode.

[0031] The srcNode generates a BGP Link State (BGP Link-State, BGP-LS) message. In order not to conflict with other BGP-LS messages, it is referred to as the third BGP-LS message. The third BGP-LS message includes the first link state of the first link, and the first link state is an offline state. The srcNode sends the third BGP-LS message to the controller.

[0032] After receiving the third BGP-LS message, the controller obtains the first link state of the first link and determines that the first link is currently offline. The controller updates the link state of the first link in the topology corresponding to the current networking, that is, updates the state of the first link to the offline state. When the administrator or user checks the topology corresponding to the current networking, it can be determined that the first link is offline.

[0033] At the same time, in order to ensure the uninterrupted flow of services, the controller determines whether LSP1 passes through the first link. If so, the controller performs circuit breaker adjustment, that is, recalculates the optimal path to realize tunnel T, which is called the second forwarding path LSP2 (LSP2 does not pass through the first link); if not, the controller no longer allows the first link to continue to participate in path scheduling.

[0034] If the state of the first link changes from offline to online at this time, the srcNode generates a first BGP-LS message. The first BGP-LS message includes the second link state of the first link, which is online. The srcNode sends the first BGP-LS message to the controller.

[0035] After receiving the first BGP-LS message, the controller obtains the second link state of the first link therefrom, and determines that the first link is currently in an online state.

[0036] Step 120: start the delayed online task of the first link according to the online status;

[0037] Specifically, according to the description of step 110 , after the controller determines that the first link is currently in an online state, it starts a delayed online task of the first link.

[0038] Optionally, before step 120, the controller also updates the link state of the first link in the topology corresponding to the current networking according to the online state, that is, updates the state of the first link from the offline state to the online state. When checking the topology corresponding to the current networking, the administrator or user can determine that the first link is already online.

[0039] At the same time, the controller also records the first time of updating the link state of the first link, which can be recorded as ST.

[0040] Optionally, in this step, the controller starts the delayed online task of the first link. The specific process is: the controller configures a timer, which takes the first moment (ST) as the starting time and the first time period as the timing duration. The first time period can be recorded as DT, which is usually set to no more than 300 seconds.

[0041] It should be noted that the first link is in an online state in the topology corresponding to the current network deployment. However, the controller does not enable the first link to continue participating in path scheduling. In the current path scheduling of the controller, the state of the first link remains offline.

[0042] In the embodiment of the present application, the controller includes a topology management module and a path calculation module. After receiving the first BGP-LS message, the controller first transmits the first BGP-LS message to the topology management module. The topology management module updates the link state of the first link in the topology corresponding to the current network deployment according to the online state. After the topology management module updates, it transmits the online state of the first link to the path calculation module. The path calculation module records the first moment when the topology management module updates the link state of the first link and starts the delayed online task for the first link.

[0043] Step 130: If a second BGP-LS message including the first link state sent by the network device is received again within a preset first time period, cancel the delayed online task;

[0044] Specifically, according to the description of step 120, after the controller starts the delayed online task for the first link, within the first time period, the controller determines whether it receives a second BGP-LS message including the first link state sent by srcNode again.

[0045] If the controller receives the second BGP-LS message sent by srcNode again within the first time period, the controller cancels the delayed online task.

[0046] Further, if within the first time period, for example, at CT time (CT < ST + DT), the state of the first link changes from the online state to the offline state again, then srcNode generates a second BGP-LS message. The second BGP-LS message includes the first link state of the first link, and this first link state is the offline state. srcNode sends the second BGP-LS message to the controller.

[0047] After receiving the second BGP-LS message, the controller obtains the first link state of the first link from it and determines again that the first link is currently offline. At this time, the controller determines that the first link oscillates frequently and cancels the delayed online task.

[0048] Optionally, before the controller cancels the delayed online task, the controller also updates the link state of the first link in the topology corresponding to the current network deployment according to the offline state, that is, updates the state of the first link from the online state to the offline state again. When the management personnel or user views the topology corresponding to the current network deployment, it can be determined that the first link is already in the offline state.

[0049] It should be noted that the first link is offline in the topology corresponding to the current networking. However, as mentioned above, the controller does not allow the first link to continue to participate in path scheduling. In the current path scheduling of the controller, the state of the first link is still offline. At this time, as mentioned above, LSP2 does not pass through the first link, so it will not trigger the controller to make another circuit breaker adjustment.

[0050] Optionally, if the controller does not receive the second BGP-LS message within the first time period, the controller waits until the timer expires, that is, if the controller still does not receive the second BGP-LS message after the first time period has expired, for example, at time ET (ET=ST+DT), the controller cancels the delayed online task; the controller configures the link state of the first link in the current path scheduling to the online state, so that the first link continues to participate in the path scheduling.

[0051] Optionally, in this step, the controller cancels the delayed online task, and the specific process is: the controller configures the start time, that is, ST, to 0.

[0052] In the embodiment of the present application, after receiving the second BGP-LS message, the controller first transmits the second BGP-LS message to the topology management module, and the topology management module updates the link state of the first link in the topology corresponding to the current networking according to the offline state. After the topology management module is updated, the offline state of the first link is transmitted to the path calculation module. According to the offline state of the first link, the path calculation module cancels the delayed online task of the first link.

[0053] If the path calculation module still does not receive the current state of the first link after the first time period has passed, the path calculation module configures the link state of the first link in the current path scheduling as an online state.

[0054] Step 140: If the first BGP-LS message and the second BGP-LS message are received multiple times within the first time period, the process of starting the delayed online task of the first link and canceling the delayed online task according to the online status is repeated until the first time period is exceeded, and the link status of the first link in the current path scheduling is configured as the online status, so that the first link continues to participate in the path scheduling.

[0055] Specifically, according to the description of step 130, if the first link is frequently online and offline in the first time period, the srcNode will send a BGP-LS message to the controller each time it determines that the state of the first link has changed. The BGP-LS message may include the above-mentioned first BGP-LS message and the second BGP-LS message.

[0056] After receiving the first BGP-LS message or the second BGP-LS message, the controller repeats the process of the aforementioned steps 110 to 130 until the current time exceeds the first time period. The controller configures the link state of the first link in the current path scheduling to an online state so that the first link continues to participate in the path scheduling.

[0057] In the embodiment of the present application, when multiple links in the network frequently go online and offline, the controller can process them in sequence according to the time sequence of the links going online. According to the oscillation of each link, it is determined to restart the delayed online task for the link, or cancel the delayed online task, or restore the link to the online state in the current path scheduling and participate in the path scheduling.

[0058] Optionally, before the controller configures the link state of the first link in the current path scheduling to be an online state, the controller also updates the link state of the first link in the current networking topology to be an online state. At this time, the link state of the first link in the current networking topology is the same as the link state of the first link in the current path scheduling. If the controller performs a circuit breaker adjustment again, the first link can continue to participate in the path scheduling.

[0059] In an embodiment of the present application, after receiving the first BGP-LS message and the second BGP-LS message, the controller first transmits the first BGP-LS message and the second BGP-LS message to the topology management module, and the topology management module updates the link state of the first link in the topology corresponding to the current networking according to the current state of the first link. After the topology management module is updated, the current state of the first link is transmitted to the path calculation module. According to the link state of the first link, the path calculation module records the first moment when the topology management module updates the link state of the first link, and starts the delayed online task of the first link; or, according to the link state of the first link, the path calculation module cancels the delayed online task of the first link; or, restores the link to the online state in the current path scheduling and participates in the path scheduling.

[0060] It can be understood that, through the description of the aforementioned steps 110 to 140, after the topology management module obtains the BGP-LS message, it first updates the link state of the first link in the topology corresponding to the current networking according to the current state of the first link. After the topology management module is updated, the current state of the first link is transmitted to the path calculation module. According to the current state of the first link, the path calculation module starts or cancels the delayed online task of the first link; or, restores the state of the link in the current path scheduling to the online state, and participates in the path scheduling.

[0061] Therefore, by applying the traffic scheduling method provided in the present application, the controller receives a first BGP-LS message sent by a network device, and the first BGP-LS message includes a second link state of the first link, and the second link state is an online state; according to the online state, the controller starts a delayed online task for the first link; if within a preset first time period, the controller receives again a second BGP-LS message including the first link state sent by the network device, the controller cancels the delayed online task; if within the first time period, the controller receives the first BGP-LS message and the second BGP-LS message for multiple times, the controller repeats the process of starting the delayed online task of the first link and canceling the delayed online task according to the online state, until it stops when the first time period is exceeded, and configures the link state of the first link in the current path scheduling to an online state, so that the first link continues to participate in the path scheduling.

[0062] In this way, by executing the delayed online task for the link in the current path scheduling, even if the link goes online and offline frequently, the controller can respond to the link offline scheduling in a timely manner while avoiding the scheduling oscillation caused by the frequent online and offline of the link, thereby improving the stability of traffic scheduling and ensuring stable and high availability of network services.

[0063] Based on the same inventive concept, the embodiment of the present application also provides a traffic scheduling device corresponding to the traffic scheduling method. Figure 2 , Figure 2 A traffic scheduling device provided in an embodiment of the present application is applied to a controller, the controller has calculated a first forwarding path from a source network device to a destination network device, the first forwarding path includes a first link, and the first link state of the first link is an offline state, the device includes:

[0064] The receiving unit 210 is configured to receive a first BGP-LS message sent by a network device, wherein the first BGP-LS message includes a second link state of the first link, and the second link state is an online state;

[0065] A starting unit 220, configured to start a delayed online task of the first link according to the online status;

[0066] A cancelling unit 230 is configured to cancel the delayed online task if the receiving unit receives the second BGP-LS message including the first link state sent by the network device again within a preset first time period;

[0067] The configuration unit 240 is used to repeatedly execute the process of starting the delayed online task of the first link and canceling the delayed online task according to the online status if the first BGP-LS message and the second BGP-LS message are received multiple times within the first time period, until the first time period is exceeded, and the link status of the first link in the current path scheduling is configured as the online status, so that the first link continues to participate in the path scheduling.

[0068] Optionally, the canceling unit 230 is further configured to cancel the delayed online task if the second BGP-LS message is not received after the first time period has expired;

[0069] The configuration unit 240 is further configured to configure the link state of the first link in the current path scheduling to the online state, so that the first link continues to participate in the path scheduling.

[0070] Optionally, the device further comprises:

[0071] An updating unit (not shown in the figure), configured to update the link state of the first link in the topology of the current networking according to the online state;

[0072] A recording unit (not shown in the figure) is used to record the first moment of updating the link state of the first link.

[0073] Optionally, the starting unit 220 is specifically used to configure a timer, wherein the timer uses the first moment as a start time and the first time period as a timing duration.

[0074] Optionally, the updating unit (not shown in the figure) is further used to update the link status of the first link in the topology of the current networking according to the offline status.

[0075] Optionally, the canceling unit 230 is specifically configured to configure the start time to 0.

[0076] Optionally, the updating unit (not shown in the figure) is further used to update the link state of the first link in the topology of the current networking to the online state.

[0077] Therefore, by applying the traffic scheduling device provided in the present application, the controller receives a first BGP-LS message sent by a network device, and the first BGP-LS message includes a second link state of the first link, and the second link state is an online state; according to the online state, the controller starts the delayed online task of the first link; if within the preset first time period, the controller receives again a second BGP-LS message including the first link state sent by the network device, the controller cancels the delayed online task; if within the first time period, the first BGP-LS message and the second BGP-LS message are received multiple times, the controller repeats the process of starting the delayed online task of the first link and canceling the delayed online task according to the online state, until it stops when the first time period is exceeded, and configures the link state of the first link in the current path scheduling to an online state, so that the first link continues to participate in the path scheduling.

[0078] In this way, by executing the delayed online task for the link in the current path scheduling, even if the link goes online and offline frequently, the controller can respond to the link offline scheduling in a timely manner while avoiding the scheduling oscillation caused by the frequent online and offline of the link, thereby improving the stability of traffic scheduling and ensuring stable and high availability of network services.

[0079] Based on the same inventive concept, the embodiment of the present application also provides a network device, such as Figure 3 As shown, it includes a processor 310, a transceiver 320 and a machine-readable storage medium 330, the machine-readable storage medium 330 stores machine-executable instructions that can be executed by the processor 310, and the processor 310 is prompted by the machine-executable instructions to execute the traffic scheduling method provided in the embodiment of the present application. Figure 2 The flow scheduling device shown in FIG. Figure 3 The network device hardware structure shown is implemented.

[0080] The computer-readable storage medium 330 may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk storage. Optionally, the computer-readable storage medium 330 may also be at least one storage device located away from the processor 310.

[0081] The processor 310 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, or discrete hardware components.

[0082] In the embodiment of the present application, the processor 310 reads the machine executable instructions stored in the machine readable storage medium 330, and the machine executable instructions enable the processor 310 itself and the transceiver 320 to execute the traffic scheduling method described in the aforementioned embodiment of the present application.

[0083] In addition, an embodiment of the present application provides a machine-readable storage medium 330, which stores machine-executable instructions. When called and executed by the processor 310, the machine-executable instructions prompt the processor 310 itself and the calling transceiver 320 to execute the traffic scheduling method described in the aforementioned embodiment of the present application.

[0084] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0085] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application scheme. A person of ordinary skill in the art can understand and implement it without paying any creative work.

[0086] As for the traffic scheduling device and the machine-readable storage medium embodiments, since the method contents involved are basically similar to the aforementioned method embodiments, the description is relatively simple, and the relevant parts may refer to the partial description of the method embodiments.

[0087] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A traffic scheduling method, characterized in that: The method is applied to a controller, the controller has calculated a first forwarding path from a source network device to a destination network device, the first forwarding path includes a first link, and a first link state of the first link is an offline state. The method includes: Receiving a first Border Gateway Protocol-Link State BGP-LS message sent by a network device, wherein the first BGP-LS message includes a second link state of the first link, and the second link state is an online state; According to the online status, starting the delayed online task of the first link; If a second BGP-LS message including the first link state is received again from the network device within the preset first time period, canceling the delayed online task; If the first BGP-LS message and the second BGP-LS message are received multiple times within the first time period, the process of starting the delayed online task of the first link and canceling the delayed online task according to the online status is repeated until the first time period is exceeded, and the link status of the first link in the current path scheduling is configured as the online status, so that the first link continues to participate in the path scheduling.

2. The method according to claim 1, characterized in that After starting the delayed online task of the first link according to the online status, the method further includes: If the second BGP-LS message is not received after the first time period has expired, canceling the delayed online task; The link state of the first link in the current path scheduling is configured as the online state, so that the first link continues to participate in the path scheduling.

3. The method according to claim 1 or 2, characterized in that: Before starting the delayed online task of the first link, the method further includes: According to the online status, updating the link status of the first link in the topology of the current network; The first time when the link state of the first link is updated is recorded.

4. The method according to claim 3, characterized in that The delayed online task of starting the first link specifically includes: A timer is configured, wherein the timer takes the first moment as a start time and the first time period as a timing duration.

5. The method according to claim 1, characterized in that Before canceling the delayed online task, the method further includes: According to the offline status, the link status of the first link in the topology of the current networking is updated.

6. The method according to claim 4, characterized in that The canceling of the delayed online task specifically includes: The start time is configured as 0.

7. The method according to claim 1, characterized in that Before configuring the link state of the first link in the current path scheduling as the online state, the method further includes: The link state of the first link in the current networking topology is updated to the online state.

8. A flow scheduling device, characterized in that: The device is applied in a controller, the controller has calculated a first forwarding path from a source network device to a destination network device, the first forwarding path includes a first link, a first link state of the first link is an offline state, and the device includes: A receiving unit, configured to receive a first Border Gateway Protocol-Link State BGP-LS message sent by a network device, wherein the first BGP-LS message includes a second link state of the first link, and the second link state is an online state; A starting unit, configured to start a delayed online task of the first link according to the online status; a cancelling unit, configured to cancel the delayed online task if the receiving unit receives again the second BGP-LS message including the first link state sent by the network device within a preset first time period; A configuration unit, for repeatedly executing the process of starting the delayed online task of the first link and canceling the delayed online task according to the online status if the first BGP-LS message and the second BGP-LS message are received multiple times within the first time period, until the first time period is exceeded and the link status of the first link in the current path scheduling is configured as the online status, so that the first link continues to participate in the path scheduling.

9. The device according to claim 8, characterized in that The canceling unit is further configured to cancel the delayed online task if the second BGP-LS message is not received after the first time period has expired; The configuration unit is further configured to configure the link state of the first link in the current path scheduling to the online state, so that the first link continues to participate in the path scheduling.

10. The device according to claim 8 or 9, characterized in that The device also includes: An updating unit, configured to update the link state of the first link in the topology of the current networking according to the online state; The recording unit is used to record a first moment of updating the link state of the first link.

11. The device according to claim 10, characterized in that The starting unit is specifically used to configure a timer, wherein the timer uses the first moment as a start time and the first time period as a timing duration.

12. The device according to claim 10, characterized in that The updating unit is further configured to update the link status of the first link in the topology of the current networking according to the offline status.

13. The device according to claim 11, characterized in that The canceling unit is specifically configured to configure the start time to be 0.

14. The device according to claim 10, characterized in that The updating unit is further configured to update the link state of the first link in the current networking topology to the online state.