Method, electronic device, computer readable medium for determining a route

By calculating deterministic delays to select the target path, the problem of node delay jitter not being considered in existing technologies is solved, thus achieving efficient message transmission and QoS objectives.

CN116566892BActive Publication Date: 2026-11-24ZTE CORP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210108264.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-28
Publication Date
2026-11-24
Estimated Expiration
2042-01-28

AI Technical Summary

Technical Problem

In deterministic network architectures, existing technologies fail to consider node latency jitter when calculating routes, resulting in inaccurate latency and an inability to achieve optimal routing.

Method used

Candidate paths are identified in the target network, and the deterministic delay of each candidate path is calculated based on the current scheduling parameters, intra-node forwarding delay, and link transmission delay. The target path is then selected, and scheduling is performed using either early or on-time transmission strategies.

Benefits of technology

Accurately select the most reasonable route to improve message transmission efficiency, ensure QoS goals are achieved, and ensure that latency and jitter are within the expected range.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116566892B_ABST
    Figure CN116566892B_ABST
Patent Text Reader

Abstract

This disclosure provides a method for determining a route, the method comprising: determining at least one candidate path in a target network; determining a deterministic delay for each candidate path based on current scheduling parameters, intra-node forwarding delay, and link transmission delay; wherein the current scheduling parameters include a current deadline scheduling delay and a current scheduling policy, the intra-node forwarding delay is the delay from when a packet enters a node to when it is forwarded to an egress port, the deterministic delay of each candidate path includes the node delay of all intermediate nodes and the link transmission delay of all links, and the node delay of each node is derived based on its intra-node forwarding delay, the current deadline scheduling delay, and the current scheduling policy; selecting a target path from the candidate paths based on the deterministic delay, and determining the route. This disclosure also provides an electronic device and a computer-readable medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of routing technology, and in particular to a method for determining a route, an electronic device, and a computer-readable medium. Background Technology

[0002] In deterministic network architectures, there are deterministic Quality of Service (QoS) objectives for forwarding, such as requiring minimum and maximum latency from the source node to the destination node, as well as bounded latency jitter. To achieve QoS objectives, deterministic paths can be used, which involve pre-calculating a strict explicit path (route) and reserving resources at nodes along the path (intermediate nodes) to meet Service Level Agreement (SLA) requirements.

[0003] In some related technologies, the local deadline of each intermediate node (router) that the traffic (packet) to be transmitted can be calculated in advance. The deadline can be an absolute time (the specific time of the clock) or a relative time (relative duration). These deadlines are stacked and carried with the forwarded packets. Each intermediate node starts deadline scheduling, that is, it prioritizes the packets according to its corresponding deadline to achieve deterministic delay requirements.

[0004] However, in the related technologies, the process of calculating the route (path) is based on nondeterministic latency that does not take into account node latency (including latency jitter), so the latency it is based on is inaccurate and cannot derive the optimal route. Summary of the Invention

[0005] This disclosure provides a method for determining a route, an electronic device, and a computer-readable medium.

[0006] In a first aspect, embodiments of this disclosure provide a method for determining a route, comprising:

[0007] Identify at least one candidate path in the target network;

[0008] Based on the current scheduling parameters, intra-node forwarding delay, and link transmission delay, the deterministic delay of each candidate path is determined. The current scheduling parameters include the current deadline scheduling delay and the current scheduling policy. The intra-node forwarding delay is the delay from when a packet enters the node to when it is forwarded to the egress port. The deterministic delay of each candidate path includes the node delay of all intermediate nodes and the link transmission delay of all links. The node delay of each intermediate node is derived from its intra-node forwarding delay, the current deadline scheduling delay, and the current scheduling policy.

[0009] The target path is selected from the candidate paths based on the deterministic latency, and the route is determined.

[0010] In some embodiments, the current scheduling policy includes either an early sending policy or a timely sending policy; the early sending policy indicates sending a message before the current deadline scheduling delay expires, and the timely sending policy indicates sending a message when the current deadline scheduling delay expires.

[0011] When the current scheduling strategy is the advance sending strategy, the node delay of each intermediate node is greater than or equal to its intra-node forwarding delay, and less than or equal to the sum of its intra-node forwarding delay and the current Deadline scheduling delay.

[0012] When the current scheduling strategy is the on-time delivery strategy, the node latency of each intermediate node is equal to the sum of its intra-node forwarding latency and the current Deadline scheduling latency.

[0013] In some embodiments, when the current scheduling policy is an advance sending policy,

[0014] The node latency of each intermediate node is equal to its intra-node forwarding latency;

[0015] or,

[0016] The node latency of each intermediate node is equal to the sum of its intra-node forwarding latency and the current Deadline scheduling latency.

[0017] In some embodiments, the current Deadline scheduling delay is deterministic or nondeterministic;

[0018] When the current Deadline scheduling delay is deterministic, the deterministic delay of the candidate path is calculated based on the value of the current Deadline scheduling delay;

[0019] When the current Deadline scheduling delay is nondeterministic, the current Deadline scheduling delay in the deterministic delay of the candidate path is counted as 0.

[0020] In some embodiments, when the current deadline scheduling delay is nondeterministic, after selecting the target path from the candidate paths based on the deterministic delay, the method further includes:

[0021] Calculate the deterministic delay of the target path; the deterministic delay of the target path is an expression that includes a variable of the current Deadline scheduling delay, the value of which is determined based on the data packet or local policy entry.

[0022] In some embodiments, prior to determining at least one candidate path in the target network, the method further includes:

[0023] Determine the current scheduling parameters.

[0024] In some embodiments, before determining the current scheduling parameters, the method further includes:

[0025] The system receives node parameter configuration instructions and sets the node parameters of the node on the local link according to the instructions. The node parameters of each node on each link include a node scheduling enable switch, a node scheduling delay set, a node scheduling policy, and an intra-node forwarding delay. The node scheduling enable switch indicates whether the node enables Deadline scheduling. The node scheduling delay set includes at least one Deadline scheduling delay supported by the node on the local link. The node scheduling policy indicates the scheduling policy supported by the Deadline scheduling delay.

[0026] In some embodiments, between the receiving node parameter configuration instruction and the determination of the current scheduling parameters, the method further includes:

[0027] Send node parameter information for the local link of the sending node;

[0028] And / or,

[0029] Receive node parameter information sent by other nodes; the node parameter information includes information on node scheduling delay set and node scheduling strategy.

[0030] In some embodiments, the node parameter information is an Intermediate System to Intermediate System (ISIS) message of Interior Gateway Protocol (IGP) or a Type-Length-Value (TLV) message of Open Shortest Path First (OSPF).

[0031] In some embodiments, the TLV message containing the node parameter information includes:

[0032] The type field is used to indicate that the TLV message is node parameter information;

[0033] The length field is used to indicate the length of the content of the TLV message;

[0034] The value of the Deadline scheduling delay for each node in the node scheduling delay set and the identifier of the scheduling policy it supports.

[0035] In some embodiments, all Deadline scheduling delays for each node support the same scheduling policy, and the difference between any two adjacent Deadline scheduling delays in the node scheduling delay set is the same; the TLV message of the node parameter information includes:

[0036] The type field is used to indicate that the TLV message is node parameter information;

[0037] The length field is used to indicate the length of the content of the TLV message;

[0038] The minimum and maximum Deadline scheduling delay values ​​in the node scheduling delay set;

[0039] The identifier of the scheduling policies supported by all Deadline scheduling delays for the node;

[0040] The difference between any two adjacent Deadline scheduling delays in the node scheduling delay set.

[0041] In some embodiments, determining the current scheduling parameters includes:

[0042] Receive binding information; the binding information includes at least one set of binding relationships, each set of binding relationships includes a preset virtual network and scheduling parameters corresponding to the preset virtual network, the scheduling parameters corresponding to the preset virtual network include the Deadline scheduling delay and scheduling policy corresponding to the preset virtual network, and each node in the preset virtual network supports the Deadline scheduling delay and scheduling policy corresponding to the preset virtual network on each link;

[0043] When the current network is a preset virtual network, the scheduling parameters corresponding to the preset virtual network are determined as the current scheduling parameters.

[0044] In some embodiments, selecting the target path from the candidate paths based on deterministic latency includes:

[0045] Based on the deterministic delay, the target path is selected from the candidate paths using the Shortest Path First (SPF) algorithm.

[0046] In some embodiments, the binding information is a TLV message of an IGP ISIS or an OSPF virtual network, and the TLV message of the binding information includes at least one of: a Flexible Algorithm Definition (FAD) TLV message, an IGP multi-topology TLV message, and an IGP network slice TLV message.

[0047] In some embodiments, the TLV message of the binding information includes:

[0048] The type field is used to indicate that the TLV message is the binding information;

[0049] The length field is used to indicate the length of the content of the TLV message;

[0050] An identifier used to indicate whether the Deadline scheduling delay corresponding to the preset virtual network is deterministic or nondeterministic; when the Deadline scheduling delay corresponding to the preset virtual network is nondeterministic, the current Deadline scheduling delay is counted as 0 during the calculation of the deterministic delay of the candidate path; when the Deadline scheduling delay corresponding to the preset virtual network is deterministic, the current Deadline scheduling delay is equal to the Deadline scheduling delay corresponding to the preset virtual network during the calculation of the deterministic delay of the candidate path.

[0051] Preset the Deadline scheduling delay value for the virtual network;

[0052] The identifier of the scheduling policy corresponding to the pre-configured virtual network.

[0053] In some embodiments, the current network is a physical network or a virtual network;

[0054] The process of determining the current scheduling parameters includes: receiving a scheduling parameter setting instruction and determining the current scheduling parameters based on the scheduling parameter setting instruction.

[0055] In some embodiments, determining at least one candidate path in the target network includes:

[0056] Using the current scheduling parameters as one of the routing constraints, at least one traffic engineering (TE) path is determined as a candidate path in the target network.

[0057] In some embodiments, after selecting the target path from the candidate paths based on deterministic latency, the method further includes creating a forwarding table entry for the target path; the forwarding table entry includes:

[0058] The entry that indicates that the target path has Deadline scheduling enabled;

[0059] An entry representing the current Deadline scheduling delay;

[0060] The entries representing the current scheduling strategy;

[0061] An entry representing the deterministic time delay of the target path.

[0062] In some embodiments, the forwarding entry further includes:

[0063] An entry representing the value of the delay jitter of the target path; the delay jitter of the target path is the sum of the delay jitter of all intermediate nodes in the target path, and the delay jitter of each node is equal to the difference between the earliest possible time and the latest possible time of its message transmission;

[0064] An entry representing the sum of the link transmission delays of all links in the target path;

[0065] An entry representing the sum of the node delays of all intermediate nodes in the target path.

[0066] In a second aspect, embodiments of this disclosure provide an electronic device, which includes:

[0067] One or more processors;

[0068] A memory, on which one or more computer programs are stored:

[0069] One or more I / O interfaces are connected between the processor and the memory and configured to enable information interaction between the processor and the memory;

[0070] When the one or more computer programs are executed by the one or more processors, they can implement any of the routing determination methods of the present disclosure embodiments.

[0071] In some embodiments, the electronic device is a node.

[0072] Thirdly, embodiments of this disclosure provide a computer-readable medium having a computer program stored thereon, which, when executed by a processor, can implement any of the routing determination methods of embodiments of this disclosure.

[0073] In this embodiment of the disclosure, when calculating the route, the latency caused by enabling Deadline scheduling at each intermediate node (the current Deadline scheduling latency, which may vary within a certain range, hence the latency jitter) and the intra-node forwarding latency are both taken into account. This allows for the accurate determination of the overall deterministic latency of the candidate path. Based on this deterministic latency, the most reasonable route (target path) can be accurately selected, thereby improving the efficiency of packet transmission and ensuring the achievement of QoS goals. Attached Figure Description

[0074] In the accompanying drawings of the embodiments disclosed herein:

[0075] Figure 1 A flowchart illustrating a method for determining a route, as provided in this embodiment of the disclosure;

[0076] Figure 2 A flowchart illustrating another method for determining a route provided in an embodiment of this disclosure;

[0077] Figure 3 A schematic diagram illustrating the format of a TLV message for node parameter information provided in an embodiment of this disclosure;

[0078] Figure 4 A schematic diagram of the format of a TLV message for another node parameter information provided in an embodiment of this disclosure;

[0079] Figure 5 A schematic diagram illustrating the format of a TLV message for binding information provided in an embodiment of this disclosure;

[0080] Figure 6 A schematic diagram of a network topology used in a specific example provided in this disclosure embodiment;

[0081] Figure 7 According to Figure 6 A schematic diagram of one possible candidate path;

[0082] Figure 8 According to Figure 6 A schematic diagram illustrating another candidate path.

[0083] Figure 9 A schematic diagram of the network topology and the resulting target path used in a specific example provided in this disclosure embodiment;

[0084] Figure 10 A block diagram of an electronic device provided in an embodiment of this disclosure;

[0085] Figure 11 This is a block diagram illustrating the composition of a computer-readable medium provided in an embodiment of the present disclosure. Detailed Implementation

[0086] To enable those skilled in the art to better understand the technical solutions of this disclosure, the method for determining routes, electronic devices, and computer-readable media provided in the embodiments of this disclosure will be described in detail below with reference to the accompanying drawings.

[0087] The present disclosure will be described more fully below with reference to the accompanying drawings; however, the embodiments shown may be embodied in different forms, and the present disclosure should not be construed as limited to the embodiments set forth below. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will enable those skilled in the art to fully understand the scope of the disclosure.

[0088] The accompanying drawings of the embodiments disclosed herein are provided to further illustrate the embodiments of this disclosure and form part of the specification. They are used together with the detailed embodiments to explain this disclosure and do not constitute a limitation thereof. The above and other features and advantages will become more apparent to those skilled in the art from the description of the detailed embodiments with reference to the accompanying drawings.

[0089] This disclosure may be described with reference to plan and / or cross-sectional views using the ideal schematic diagrams of this disclosure. Therefore, the example illustrations may be modified according to manufacturing techniques and / or tolerances.

[0090] Where there is no conflict, the various embodiments of this disclosure and the features thereof in the embodiments may be combined with each other.

[0091] The terminology used in this disclosure is for the purpose of describing particular embodiments only and is not intended to limit the disclosure. The term "and / or" as used in this disclosure includes any and all combinations of one or more of the associated enumerated entries. The singular forms "a" and "the" as used in this disclosure are also intended to include the plural forms, unless the context clearly indicates otherwise. The terms "comprising," "made of," etc., as used in this disclosure specify the presence of the stated feature, integral, step, operation, element, and / or component, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof.

[0092] Unless otherwise specified, all terms used in this disclosure (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this disclosure, and will not be interpreted as having an idealized or overly formal meaning, unless expressly so defined in this disclosure.

[0093] This disclosure is not limited to the embodiments shown in the accompanying drawings, but includes modifications to the configuration based on the manufacturing process. Therefore, the areas illustrated in the drawings are schematic, and the shapes of the areas shown illustrate specific shapes of the areas of an element, but are not intended to be limiting.

[0094] In a first aspect, embodiments of this disclosure provide a method for determining a route.

[0095] This disclosure embodiment is used to pre-calculate a deterministic route (path) when a message (traffic, data packet) needs to be transmitted from the head node to the destination node in the network, that is, to determine in what order the message should pass through which links and which intermediate nodes to reach the destination node.

[0096] Specifically, the method in this embodiment can be executed by the head node, that is, the route can be calculated by the head node.

[0097] It should be understood that the header node refers to the message; that is, any node in the network may serve as the header node. Therefore, the method of this embodiment may actually be performed by any node in the network.

[0098] Alternatively, the method of this embodiment can also be executed by a centralized controller in the network, that is, the controller can calculate the route and then send it to the nodes.

[0099] It should be understood that the method in this embodiment of the disclosure also includes the step of transmitting information between nodes, which is used to enable each node to obtain network information (such as subsequent current scheduling parameters, etc.); and when the step of calculating the route is performed by the controller, the controller can obtain network information (such as network topology, current scheduling parameters, etc.) from the network side through other means, such as obtaining it through the Border Gateway Protocol-Link State (BGP-LS), which will not be described in detail here.

[0100] Reference Figure 1 The method for determining a route according to embodiments of this disclosure includes:

[0101] S101. Identify at least one candidate path in the target network.

[0102] When a message (data packet) is to be transmitted from the head node to the destination node in the current network (target network), one or more candidate paths (deterministic paths) from the head node to the destination node are first calculated.

[0103] S102. Determine the deterministic delay of each candidate path based on the current scheduling parameters, intra-node forwarding delay, and link transmission delay.

[0104] The current scheduling parameters include the current Deadline scheduling delay and the current scheduling policy. The intra-node forwarding delay is the delay from when a packet enters the node to when it is forwarded to the outgoing port. The deterministic delay of each candidate path includes the node delay of all intermediate nodes and the link transmission delay of all links. The node delay of each intermediate node is derived from its intra-node forwarding delay, the current Deadline scheduling delay, and the current scheduling policy.

[0105] For each candidate path, calculate its overall latency (deterministic latency).

[0106] In this embodiment of the disclosure, the deterministic delay of the candidate path includes the link transmission delay of all links in the candidate path (i.e., the time spent transmitting on each link) and the node delay of all intermediate nodes (i.e., the time spent transmitting within the intermediate nodes).

[0107] The node latency of each intermediate node is calculated based on two parts: one part is the intra-node forwarding latency, and the other part is the latency caused by the Deadline scheduling.

[0108] Intra-node forwarding latency refers to the time required for any packet to travel from entering the node (e.g., entering the ingress port or control plane) to reaching the egress port of the corresponding link of the node. For each node, it is usually a fixed value.

[0109] The delay caused by Deadline scheduling is determined by the current Deadline scheduling delay (i.e., the current Deadline scheduling delay in the current scheduling parameters) and the currently selected scheduling policy (current scheduling policy). This means that after the packet reaches the queue at the outgoing port, it may wait for a certain period of time before it is actually sent, but it will definitely be sent before the Deadline scheduling delay is exhausted.

[0110] S103. Select the target path from the candidate paths based on the deterministic delay and determine the route.

[0111] Based on the deterministic delay of each candidate path, one candidate path is selected as the target path, and a route is generated based on the target path to complete the route calculation.

[0112] Of course, the process of sending messages can continue based on the calculated routes.

[0113] In this embodiment of the disclosure, when calculating the route, the latency caused by enabling Deadline scheduling at each intermediate node (the current Deadline scheduling latency, which may vary within a certain range, hence the latency jitter) and the intra-node forwarding latency are both taken into account. This allows for the accurate determination of the overall deterministic latency of the candidate path. Based on this deterministic latency, the most reasonable route (target path) can be accurately selected, thereby improving the efficiency of packet transmission and ensuring the achievement of QoS goals.

[0114] In some embodiments, the current scheduling policy includes either an early sending policy or a timely sending policy; the early sending policy indicates that the message is sent before the current Deadline scheduling delay expires, and the timely sending policy indicates that the message is sent when the current Deadline scheduling delay expires.

[0115] When the current scheduling strategy is the advance sending strategy, the node delay of each intermediate node is greater than or equal to its intra-node forwarding delay, and less than or equal to the sum of its intra-node forwarding delay and the current Deadline scheduling delay.

[0116] When the current scheduling strategy is on-time delivery, the node latency of each intermediate node is equal to the sum of its intra-node forwarding latency and the current Deadline scheduling latency.

[0117] As one embodiment of this disclosure, two candidate scheduling strategies can be used as the current scheduling strategy: an early delivery strategy and a timely delivery strategy. The early delivery strategy allows a node to send a message at any time before the corresponding deadline scheduling delay expires, while the timely delivery strategy requires a node to send a message at the exact moment the corresponding deadline scheduling delay expires. Accordingly, the node latency caused by the timely delivery strategy is "internal forwarding latency (which is inevitable) + corresponding deadline scheduling delay"; while the node latency caused by the early delivery strategy may vary between "internal forwarding latency" and "internal forwarding latency (which is inevitable) + corresponding deadline scheduling delay".

[0118] In some embodiments, when the current scheduling policy is an advance sending policy,

[0119] The node latency of each intermediate node is equal to its intra-node forwarding latency;

[0120] or,

[0121] The node latency of each intermediate node is equal to the sum of its intra-node forwarding latency and the current Deadline scheduling latency.

[0122] As mentioned before, when using an early transmission strategy, the node latency of each intermediate node is a variable within a certain range, which in turn makes the deterministic latency of the candidate paths variable and difficult to compare. Therefore, it can be set that the node latency of all intermediate nodes is taken as the minimum or maximum value during the calculation process, so that comparisons can be made under the same standard.

[0123] Of course, the method of determining the node delay is not limited to this. For example, the node delay of each intermediate node can be a random value within the range, or the middle value of the range can be taken.

[0124] In some embodiments, the current Deadline scheduling delay is deterministic or nondeterministic;

[0125] When the current deadline scheduling delay is deterministic, the deterministic delay of the candidate path is calculated based on the value of the current deadline scheduling delay;

[0126] When the current Deadline scheduling delay is nondeterministic, the current Deadline scheduling delay in the deterministic delay of the candidate path is counted as 0.

[0127] As one embodiment of this disclosure, the Deadline scheduling delay, in addition to having a "specific delay value," may also have two different types: deterministic or nondeterministic. Deterministic means that when determining the deterministic delay of a candidate path, it is calculated according to the "specific delay value" of the current Deadline scheduling delay. Nondeterministic means that during the calculation of the deterministic delay of a candidate path, the current Deadline scheduling delay is set to 0 (this does not mean its specific value is 0, but rather that the "specific delay value" of the current Deadline scheduling delay is considered meaningless).

[0128] In some embodiments, when the current deadline scheduling delay is nondeterministic, after selecting the target path from the candidate paths based on the deterministic delay, the method further includes:

[0129] Calculate the deterministic delay of the target path; the deterministic delay of the target path is an expression that includes the variable of the current Deadline scheduling delay, the value of which is determined based on the data packet or local policy entry.

[0130] As one embodiment of this disclosure, when a non-deterministic current deadline scheduling delay is used, when a candidate path is determined as the target path, the deterministic delay is calculated again. At this time, the deterministic delay includes the variable of the current deadline scheduling delay (the current deadline scheduling delay is not 0 for the target path). The specific value of the current deadline scheduling delay is obtained by other means, such as by determining it based on data packets or local policy entries. Thus, the deterministic delay of the target path calculated based on the determined current deadline scheduling delay can be obtained, and it can be used to determine whether the target path meets the requirements, etc.

[0131] Reference Figure 2 In some embodiments, before determining at least one candidate path in the target network (S101), the method further includes:

[0132] S1002. Determine the current scheduling parameters.

[0133] Before calculating candidate paths, the current scheduling parameters to be used can be determined based on the current situation, and candidate paths can be calculated based on the determined current scheduling parameters.

[0134] Of course, it is also feasible if the current scheduling parameters are fixed parameters that are set in advance.

[0135] Reference Figure 2 In some embodiments, before determining the current scheduling parameters (S1002), the following steps are also included:

[0136] S1001. Receive node parameter configuration instructions and set the node parameters on the local link according to the node parameter configuration instructions.

[0137] Each node's parameters on each link include a node scheduling enable switch, a node scheduling delay set, a node scheduling policy, and an intra-node forwarding delay. The node scheduling enable switch indicates whether the node enables Deadline scheduling. The node scheduling delay set includes at least one Deadline scheduling delay supported by the node on the local link. The node scheduling policy indicates the scheduling policy supported by the Deadline scheduling delay.

[0138] Each node in the network operates on each local link under a specific "configuration," which may include information related to deadline scheduling (node ​​parameters). That is, each node can perform deadline scheduling on each of its local links based on the corresponding "node parameters." The node parameters for each node on each local link may include a node scheduling enable switch (i.e., whether the node enables deadline scheduling on that link), a node scheduling delay set (i.e., which deadline scheduling delays the node can support on that link), a node scheduling policy (i.e., which scheduling policies the node can support for each supported deadline scheduling delay on that link), and intra-node forwarding delay (i.e., the node's intra-node forwarding delay).

[0139] Therefore, before determining the current scheduling parameters, parameter configuration instructions can be sent to each node, so that each node can set its own node parameters according to the parameter configuration instructions.

[0140] In some embodiments, between receiving the node parameter configuration instruction (S1001) and determining the current scheduling parameters (S1002), the method further includes: sending node parameter information of the local link of the node; and / or receiving node parameter information sent by other nodes.

[0141] The node parameter information includes information on the node scheduling delay set and information on the node scheduling strategy.

[0142] After each node sets the node parameters of its local link according to the parameter configuration instructions, it also needs to announce its own node parameters to other nodes (i.e., send node parameter information) and receive node parameters from other nodes (i.e., receive node parameter information) so that each node can know the node parameter configuration of the entire network.

[0143] The node parameter information includes at least the information on the node scheduling delay set and the node scheduling policy; of course, the node parameter information may also include the information on the node scheduling enable switch and the information on the intra-node forwarding delay, etc.

[0144] It should be understood that "information about a parameter" means that the status of the corresponding parameter can be determined based on the content of the information. For example, the parameter information may directly include the parameter, or the parameter may be "inferred" from the content of the information. For example, "information about the set of node scheduling delays" may directly include the value of the corresponding deadline scheduling delay, or it may include the value of the intra-node forwarding delay and the node delay values ​​for different deadline scheduling delays, and the deadline scheduling delay value can be calculated from both.

[0145] In some embodiments, the node parameter information is a Type-Length-Value (TLV) message for Interior Gateway Protocol (IGP) Intermediate System to Intermediate System (ISIS) or Open Shortest Path First (OSPF).

[0146] Specifically, node parameters can be advertised via IGP flooding. For example, existing ISIS protocol sets (refer to RFC5305, RFC5311, RFC5316, RFC5120) define TLVs 22 / 23 / 141 / 222 / 223 / 25 for advertising adjacency relationships. This embodiment of the present disclosure can add a Sub-TLV to these TLVs for advertising node parameters. Alternatively, new TLVs can be added to OSPF to accomplish the above advertising.

[0147] In some embodiments, the TLV message containing node parameter information includes:

[0148] The type field is used to indicate that the TLV message contains node parameter information;

[0149] The length field is used to indicate the length of the TLV message content;

[0150] The value of the Deadline scheduling delay for each node in the node scheduling delay set and the identifier of the scheduling policy it supports.

[0151] Reference Figure 3 As one embodiment of this disclosure, the TLV message used to announce node parameter information may include:

[0152] Indicates that the TLV message is a type field for node parameter information ( Figure 3 (Type in the text);

[0153] The length field indicates the length of the TLV message content (excluding the Type and Length fields). Figure 3 (Length in the text);

[0154] The value of each Deadline scheduling delay in the node scheduling delay set ( Figure 3 (Q1, Q2...Qn);

[0155] The identifier of the scheduling policy supported by each deadline scheduling delay ( Figure 3 Each Q is preceded by P).

[0156] In some embodiments, all Deadline scheduling delays for each node support the same scheduling policy, and the difference between any two adjacent Deadline scheduling delays in the node scheduling delay set is the same; the TLV message for node parameter information includes:

[0157] The type field is used to indicate that the TLV message contains node parameter information;

[0158] The length field is used to indicate the length of the TLV message content;

[0159] The minimum and maximum Deadline scheduling delay values ​​in the node scheduling delay set;

[0160] The identifier of the scheduling policies supported by all Deadline scheduling delays for the node;

[0161] The difference between any two adjacent Deadline scheduling delays in the node scheduling delay set.

[0162] Reference Figure 4 As another embodiment of this disclosure, when all Deadline scheduling delays support the same scheduling strategy and the difference between any two adjacent Deadline scheduling delays is the same (or has a "fixed interval"), in order to reduce the length of the announcement message, the TLV message used to announce node parameter information may also include:

[0163] Indicates that the TLV message is a type field for node parameter information ( Figure 4 (Type in the text);

[0164] The length field indicates the length of the TLV message content (excluding the Type and Length fields). Figure 4 (Length in the text);

[0165] The smallest Deadline scheduling delay value in the set of node scheduling delays ( Figure 4Q1 in the middle), and the value of the maximum Deadline scheduling delay ( Figure 4 (Qn) in the middle;

[0166] Identifiers of all deadline scheduling delay supported scheduling policies ( Figure 4 (P in the middle);

[0167] The fixed interval between any two adjacent Deadline scheduling delays in the node scheduling delay set. Figure 4 (I in the middle).

[0168] Therefore, using Q1 and Qn, as well as I, all other Qs can be calculated.

[0169] Of course, the specific form of node parameter information is not limited to the examples above, as long as it actually includes the required information.

[0170] In some embodiments, determining the current scheduling parameters (S1002) includes:

[0171] S10021, Receive binding information.

[0172] The binding information includes at least one set of binding relationships. Each set of binding relationships includes a pre-configured virtual network and the scheduling parameters corresponding to the pre-configured virtual network. The scheduling parameters corresponding to the pre-configured virtual network include the Deadline scheduling delay and scheduling policy of the pre-configured virtual network. Each node in the pre-configured virtual network supports the Deadline scheduling delay and scheduling policy of the pre-configured virtual network on each link.

[0173] S10022. When the current network is a preset virtual network, determine the scheduling parameters corresponding to the preset virtual network as the current scheduling parameters.

[0174] As one embodiment of this disclosure, one or more "pre-built virtual networks (which can be any virtual network different from the original physical network, such as IGP multi-topology, IGP flexible algorithm, network slicing, etc.)" can be created in advance, and each pre-built virtual network has corresponding (or bound) scheduling parameters, that is, there is a binding relationship between the pre-built virtual network and the scheduling parameters.

[0175] Furthermore, "binding information" can be sent to at least some nodes, which defines the above binding relationship; thus, when selecting a candidate path to transmit a message in a pre-set virtual network, the scheduling parameters bound to that pre-set virtual network can be directly used as the current scheduling parameters.

[0176] It should be understood that since the pre-configured virtual network is bound to the scheduling parameters, any node (link) in the pre-configured virtual network supports its corresponding scheduling parameters. For example, a node (link) that does not enable Deadline scheduling will not enter any pre-configured virtual network, or a node (link) that does not support the Deadline scheduling delay or scheduling policy corresponding to the pre-configured virtual network will not enter the corresponding pre-configured virtual network.

[0177] In some embodiments, selecting a target path from candidate paths based on deterministic delay (S103) includes: selecting a target path from candidate paths according to the Shortest Path First (SPF) algorithm based on deterministic delay.

[0178] For the above-mentioned pre-set virtual network, the target path can be selected from the candidate paths according to the SPF algorithm, that is, the target path is the SPF Path.

[0179] Alternatively, the binding relationship can be configured directly on only some nodes of each pre-built virtual network, and then through IGP announcements and learning, the nodes in the entire IGP domain can reach a consistent understanding of this binding relationship.

[0180] In some embodiments, the binding information is a TLV message for an ISIS or OSPF virtual network of IGP. The TLV message of the binding information includes at least one of the following: a TLV message of Flexible Algorithm Definition (FAD), a TLV message of IGP multi-topology, and a TLV message of IGP network slice.

[0181] Specifically, the binding information can also be in the form of TLV messages for newly added IGP ISIS or OSPF virtual networks, such as TLV messages for FAD, TLV messages for IGP multi-topology, TLV messages for IGP network slices, etc.

[0182] In some embodiments, the TLV message for binding information includes:

[0183] The type field is used for binding information in TLV messages;

[0184] The length field is used to specify the content length of the TLV message;

[0185] An identifier used to indicate whether the Deadline scheduling delay corresponding to the preset virtual network is deterministic or nondeterministic; when the Deadline scheduling delay corresponding to the preset virtual network is nondeterministic, the current Deadline scheduling delay is counted as 0 during the calculation of the deterministic delay of the candidate path; when the Deadline scheduling delay corresponding to the preset virtual network is deterministic, the current Deadline scheduling delay is equal to the Deadline scheduling delay corresponding to the preset virtual network during the calculation of the deterministic delay of the candidate path.

[0186] Preset the Deadline scheduling delay value for the virtual network;

[0187] The identifier of the scheduling policy corresponding to the pre-configured virtual network.

[0188] Reference Figure 5 As one embodiment of this disclosure, the TLV message containing the above binding information may include:

[0189] Indicates that the TLV message is a type field for binding information ( Figure 5 (Type in the text);

[0190] The length field indicates the length of the TLV message content (excluding the Type and Length fields). Figure 5 (Length in the text);

[0191] The indicator that specifies the Deadline scheduling delay for the pre-configured virtual network is either deterministic or non-deterministic. Figure 5 (U in the middle);

[0192] The identifier of the scheduling policy corresponding to the pre-configured virtual network ( Figure 5 (P in the middle);

[0193] The preset deadline scheduling delay value for the virtual network is ( Figure 5 (Q in the middle).

[0194] Of course, the specific form of the bound information is not limited to the examples above, as long as it actually includes the required information.

[0195] In some embodiments, the current network is a physical network or a virtual network; determining the current scheduling parameters (S1002) includes:

[0196] S10023. Receive the scheduling parameter setting instruction and determine the current scheduling parameters according to the scheduling parameter setting instruction.

[0197] As another embodiment of this disclosure, the current scheduling parameters can be directly "specified" using parameter setting instructions in a physical or virtual network.

[0198] In some embodiments, determining at least one candidate path in the target network (S101) includes: using the current scheduling parameters as one of the routing constraints, determining at least one traffic engineering (TE) path as a candidate path in the target network.

[0199] When directly specifying the current scheduling parameters, the current scheduling parameters can be used as routing constraints (there may be other constraints as well), and the calculated TE path can be used as a candidate path. The resulting candidate path is the TE Path.

[0200] It should be understood that since the current scheduling parameters are constraints, all nodes (links) in the calculated candidate paths must support the current scheduling parameters. For example, nodes (links) that do not have Deadline scheduling enabled, or that do not support the current Deadline scheduling delay or the current scheduling policy, will not be selected as candidate paths.

[0201] In some embodiments, after selecting the target path from the candidate paths based on deterministic latency (S103), the method further includes creating a forwarding table entry for the target path; the forwarding table entry includes:

[0202] The entry that indicates that the target path has Deadline scheduling enabled;

[0203] An entry representing the current Deadline scheduling delay;

[0204] The entries representing the current scheduling strategy;

[0205] An entry representing the deterministic time delay of the target path.

[0206] In some embodiments, forwarding entries further include:

[0207] The table entries characterize the delay jitter of the target path; the delay jitter of the target path is the sum of the delay jitter of all intermediate nodes in the target path, and the delay jitter of each node is equal to the difference between the earliest possible time and the latest possible time of its message transmission.

[0208] An entry representing the sum of the link transmission delays of all links in the target path;

[0209] An entry representing the sum of the node delays of all intermediate nodes in the target path.

[0210] In this embodiment of the disclosure, after determining the target path, the head node (or controller) can also create a forwarding table entry for the target path to guide the actual forwarding of packets. The forwarding table entry includes relevant information about the target path, such as:

[0211] Key value: Prefix-D (D indicates the head node)

[0212] Forwarded message: next_hop = the neighbor of the next hop

[0213] Interface = the output port of the next hop

[0214] (Alternatively, the above two items can be replaced by other forms of forwarding information such as segment lists.)

[0215] metric_type = Min Unidirectional Link Delay or Deadline-delay

[0216] Deadline Flag = TRUE (indicates that Deadline scheduling is enabled for the next selected path)

[0217] Scheduling Dealy = Current Deadline Scheduling Delay

[0218] Scheduling Policy = Current Scheduling Policy

[0219] total_metric = Deterministic delay of the target path

[0220] total_metric_variation = latency jitter of the target path

[0221] total_metric_intra_node = cumulative node latency of the target path

[0222] total_metric_link = cumulative link transmission delay of the target path.

[0223] It should be understood that other intermediate nodes can also create corresponding forwarding entries.

[0224] The following describes the overall process of the embodiments of this disclosure, including:

[0225] Step 1: On each node, configure the Deadline-based node parameters for its local link (physical link or virtual link), including: node scheduling enable switch, intra-node forwarding delay, node scheduling delay set (containing one or more Deadline scheduling delays), and the scheduling policy supported by each element (Deadline scheduling delay) in the node scheduling delay set.

[0226] Afterwards, the node announces its locally configured node parameters to the network via IGP flooding and receives node parameters announced by other nodes.

[0227] The meanings of each node parameter are as follows:

[0228] Intra-node forwarding delay: The time required for a packet to be forwarded from the ingress port to the egress port, or from the control plane to the egress port. It is generally a fixed value, denoted as F.

[0229] Node scheduling delay set: A set consisting of one or more Deadline scheduling delays Q.<Q1,Q2…Qn> Among them, Q1 is the smallest and Qn is the largest. Generally, the difference between two adjacent elements in the set is fixed, that is, starting from Q1, it increases to Qn at fixed intervals I.

[0230] Node scheduling enable switch: Configure whether to enable Deadline scheduling capability for a physical link or virtual link in the physical network. If enabled, packets forwarded through this link will be scheduled using a packet scheduling algorithm based on Deadline scheduling, so that the dwell time of the packet in the node does not exceed the maximum allowed dwell time Δ, where Δ = node forwarding delay F + Deadline scheduling delay Q.

[0231] Scheduling Strategy: For each deadline scheduling delay Q, there are two possible scheduling strategies: early delivery and on-time delivery. With the early delivery strategy, packets may be sent from the egress port before the scheduling delay Q is reached. This means the node delay (actual dwell time) within the node is within the range [F, F+Q], i.e., the minimum node delay is F, the maximum node delay is F+Q, and the node's delay jitter is Q. With the on-time delivery strategy, packets are only sent to the egress port when the scheduling delay equals Q. This means the node delay within the node is F+Q (both the minimum and maximum node delays are equal to F+Q), and the node's delay jitter is 0.

[0232] The node parameters of the aforementioned links are advertised via IGP protocol flooding in the form of node parameter information. One specific implementation of this node parameter information is an extended ISIS. Existing ISIS protocol sets (refer to RFC5305, RFC5311, RFC5316, RFC5120) have defined TLVs 22 / 23 / 141 / 222 / 223 / 25 for announcing adjacency relationships. This embodiment adds a Sub-TLV to these TLVs as node parameter information, denoted as DeadlineScheduling Sub-TLV, for announcing link node parameters. Of course, a node only needs to announce the DeadlineScheduling Sub-TLV for a link if the node scheduling enable switch is enabled on a link under its ISIS instance; otherwise, no announcement is required.

[0233] Figure 3 A specific ISIS Deadline Scheduling Sub-TLV is given, which includes:

[0234] Type (Type field): Occupies 1 byte, and its value is to be assigned by the Internet Assigned Numbers Authority (IANA) to indicate that this TLV is a Deadline Scheduling Sub-TLV.

[0235] Length (length field): occupies 1 byte and represents the length of the content of this TLV (excluding the Type and Length fields themselves).

[0236] Q: Represents the set of node scheduling delays for this link.<Q1,Q2…Qn> The unit is microseconds (µs). The information for each supported Deadline scheduling delay Q occupies 2 bytes; the highest two bits represent the scheduling policy P, and the meaning of the scheduling policy P can be: 0 is undefined, 1 indicates that only the early transmission policy is supported, 2 indicates that only the on-time transmission policy is supported, and 3 indicates that both the early transmission policy and the on-time transmission policy are supported; the subsequent bits identify the specific value of the Deadline scheduling delay Q.

[0237] As mentioned before, given the Deadline scheduling delay Q and its scheduling policy, and combined with the intra-node forwarding delay F (which can also be included in the node parameter information), the corresponding node delay and jitter attributes can be derived. Therefore, these attributes no longer need to be explicitly included in the ISIS DeadlineScheduling Sub-TLV.

[0238] It should be understood that the Deadline Scheduling Delay Q advertised in the ISIS Deadline Scheduling Sub-TLV must be consistent with the Deadline Queue Scheduling mechanism actually instantiated in the forwarding plane of that link. If the forwarding plane does not instantiate a Deadline Queue Scheduling mechanism that supports a certain Deadline Scheduling Delay Q, but advertises the Deadline Scheduling Delay Q in the ISIS Deadline Scheduling Sub-TLV, it may cause errors in subsequent route calculations.

[0239] Among them, the set of node scheduling delays that need to be notified<Q1,Q2…Qn> If the set contains many elements, the difference between any two adjacent elements is a fixed interval I, and the scheduling strategy supported for each element is the same, then a simpler extension method can be adopted, such as... Figure 4 The Deadline Scheduling Simplified Sub-TLV shown includes:

[0240] Type (Type field): Occupies 1 byte, and its value is to be assigned by IANA to indicate that this TLV is a DeadlineScheduling Sub-TLV (more specifically, Deadline Scheduling Simplified Sub-TLV).

[0241] Length (length field): occupies 1 byte and represents the length of the content of this TLV (excluding the Type and Length fields themselves).

[0242] Q: Represents the set of node scheduling delays for this link.<Q1,Q2…Qn> Q1 is the minimum Deadline scheduling delay in the set, and Qn is the maximum Deadline scheduling delay in the set, both in microseconds (µs) and each occupying 2 bytes.

[0243] I: Occupies 2 bytes, representing the fixed difference between two adjacent elements in the node scheduling delay set, in microseconds (µs). The two highest bits represent the scheduling policy P, which can be: 0 (undefined), 1 (supports only early transmission), 2 (supports only on-time transmission), or 3 (supports both early and on-time transmission).

[0244] It should be understood that, as before, Δ = F + Q, therefore the node parameter information can also be a set carrying Δ, and the Deadline scheduling delay Q can be calculated based on Δ and F.

[0245] It should be understood that this can also be achieved by extending the OSPF TLV announcement node parameters, etc., which will not be elaborated here.

[0246] Step 2: Create a virtual network (i.e., a preset virtual network, which includes any virtual network technology different from the original physical network, such as IGP multi-topology, IGP flexible algorithm, network slicing, etc.), and bind the scheduling parameters that the virtual network is expected to use (such as Deadline scheduling delay Q, scheduling policy). Through IGP announcements and learning, the binding relationship between specific virtual networks and specific scheduling parameters is made so that nodes in the entire IGP domain can reach a consistent understanding of this binding relationship.

[0247] While different virtual network technologies extend in different ways to support binding specific scheduling parameters, the binding relationship can generally be represented as: <virtual network identifier, Deadline scheduling delay Q, and scheduling policy>. For example, for IGP multi-topology technology (refer to RFC4915, RFC5120, RFC5340), the virtual network identifier can be the multi-topology identifier (MT-ID); for IGP flexible algorithm (IGP Flex-algo) technology (refer to draft-ietf-lsr-flex-algo-18), the virtual network identifier can be the flexible algorithm identifier (Flex-Algorithm); for network slicing technology (refer to draft-ietf-teas-ietf-network-slices-05), the virtual network identifier can be the network slice identifier (slice-id) or network resource partition identifier (NRP-id), etc.

[0248] In practice, the above binding relationship <virtual network identifier, deadline scheduling delay Q, and scheduling policy> can be configured on one or more nodes in the same virtual network, and then the configured binding relationship can be advertised throughout the entire IGP domain via IGP. If multiple binding relationship advertisements exist for the same virtual network identifier, the node can select the best one from the multiple binding relationships based on other information (such as the priority field accompanying the binding relationship advertisement).

[0249] Note that the Deadline scheduling delay Q in the binding relationship can be a deterministic value or an unknown value (non-deterministic).

[0250] If a virtual network uses a specific Deadline scheduling delay Q and scheduling policy based on the binding relationship, all link resources added to that virtual network must be checked. Node scheduling enable switches must be enabled, and the corresponding Deadline scheduling delay Q and scheduling policy must be supported. Otherwise, links (nodes) that do not meet the conditions will be excluded from the virtual network. Of course, if the Deadline scheduling delay Q in the binding relationship is an unknown value (non-deterministic), then checking whether the link supports the Deadline scheduling delay Q is not necessary.

[0251] The following uses IGP Flex-algo as an example to describe a specific extension method to support binding a specific Flex-algo plane (i.e., a virtual network identified by Flex-algorithm) with specific scheduling parameters (Deadline scheduling delay Q and scheduling policy).

[0252] The IGP Flex-algo scheme allows IGPs to compute constraint-based paths in the network themselves, defining corresponding extensions for ISIS and OSPF. These extensions enable routers to send TLVs, which include: Calc-Type, Metric-Type, and a set of constraints describing the topology. The combination of Calc-Type, Metric-Type, and constraints is called a Flexible Algorithm Definition (FAD). That is, IGP Flex-algo ultimately constructs a virtual network (Flex-algo plane) identified by a Flex-algorithm, and within this virtual network, computes SPF paths based on specific Calc-Type and Metric-Type, creating SPF routes. The extensions to IGP Flex-algo in this disclosure embodiment may include:

[0253] In FAD, you can add bound scheduling parameters (Deadline scheduling delay Q and scheduling policy). If the Flex-algo plane is bound to a specific Deadline scheduling delay Q and scheduling policy, then all link resources added to the Flex-algo plane must have the node scheduling enable switch turned on and support the corresponding Deadline scheduling delay Q and scheduling policy. Links (nodes) that do not meet the conditions will be excluded from the Flex-algo plane.

[0254] More specifically, this could involve extending the ISIS protocol, with new definitions in the IS-IS Flexible Algorithm Definition Sub-TLV, such as... Figure 5 The IS-IS FAD Deadline Scheduling Sub-TLV (binding information) shown includes:

[0255] Type (Type field): Occupies 1 byte, and its value is to be assigned by IANA to indicate that this TLV is IS-IS FADDeadline Scheduling Sub-TLV.

[0256] Length (length field): occupies 1 byte and represents the length of the content of this TLV (excluding the Type and Length fields themselves).

[0257] Flags: Occupies 1 byte, flag bits, currently two flags are defined.

[0258] U-flag(U): Occupies 1 bit and indicates whether the value of the Deadline scheduling delay Q is known (deterministic) or unknown (nondeterministic). The value can be: 0 indicates that the value in the subsequent Q is deterministic, and 1 indicates that the value in the subsequent Q is unknown.

[0259] P-flag: occupies 2 bits and represents the scheduling strategy. The values ​​are: 0 (undefined), 1 (early transmission strategy), 2 (on-time transmission strategy), and 3 (undefined).

[0260] Q: Occupies 2 bytes and represents the Deadline scheduling delay Q bound to the Flex-algorithm, in microseconds (µs). It should be understood that if U-flag is 1 (i.e., the value of the Deadline scheduling delay Q is positional), the value in Q can be ignored (e.g., all zeros).

[0261] It should be understood that this can also be achieved by extending OSPF's TLV announcement binding information, etc., which will not be elaborated here.

[0262] Step 3-1: In the virtual network, the bound scheduling parameters are used as the current scheduling parameters, and IGP is used to calculate the SPF path with deterministic delay and delay jitter based on the current scheduling parameters. The calculated cumulative delay and delay jitter of the path include the contribution of the transmission delay (link transmission delay) and transmission delay jitter (which is generally 0 in practice) of each link along the path, as well as the contribution of the delay (internal forwarding delay) and delay jitter within each node along the path. In this embodiment, such a path is called a Deadline SPF Path. Compared with the SPF Path in related technologies, the metric of Deadline SPF Path is a deterministic delay metric (including the deterministic cumulative node delay and cumulative link transmission delay), while the metric of traditional SPF Path is a non-deterministic delay metric (not considering node delay).

[0263] Therefore, the Deadline SPF Path can be calculated as follows:

[0264] a) For multiple candidate paths with the same origin and destination, calculate the cumulative deterministic delay metric for each path.

[0265] b) The candidate path with the smallest cumulative deterministic delay metric among these multiple candidate paths is the target path, also known as the Deadline SPF Path.

[0266] Taking IGP Flex-algo as an example, in the existing IGP Flex-algo definition of FAD, although the Metric-Type is set to Min Unidirectional Link Delay, it will calculate the SPF path with the minimum cumulative link transmission delay. However, since node delay is not considered, the total delay and delay jitter of the calculated SPF path are not deterministic.

[0267] In this embodiment of the disclosure, a new flag D-flag (Deadline Flag) is added to the IS-IS Flexible Algorithm Definition Flags Sub-TLV to indicate that it adopts the method of this embodiment of the disclosure. It occupies 1 bit and is used in conjunction with the Metric-Type: Min Unidirectional Link Delay in FAD.

[0268] When D-flag is 1, it is used to explicitly trigger the calculation of the Deadline SPF Path, which is the SPF path with the minimum sum of cumulative node delay and cumulative link transmission delay. At this time, the Deadline scheduling delay Q and scheduling policy can be obtained according to the previously defined IS-IS FAD DeadlineScheduling Sub-TLV, which are used for path calculation.

[0269] When D-flag is 0, it still uses the traditional method of calculating the SPF path with the minimum cumulative link transmission delay (i.e., the method without enabling the embodiments of this disclosure).

[0270] It should be understood that the above content is only an exemplary extension method, and other extension methods of FAD are also possible to enable the calculation of Deadline SPF Path in the Flex-algo plane, such as a newly defined metric type.

[0271] Therefore, the deterministic delay metric for calculating a candidate path is calculated as: metric = cumulative node delay of all intermediate nodes in the path + cumulative link transmission delay of all links in the path.

[0272] Assuming the current Deadline scheduling delay Q and the current scheduling policy are obtained from the IS-IS FAD Deadline Scheduling Sub-TLV, then for any intermediate node i in the candidate path, its contribution to the node delay is:

[0273] a) When the current scheduling policy is the advance sending policy, the node delay is between F(i) and F(i) + Q (current Deadline scheduling), where F(i) represents the intra-node forwarding delay of node i.

[0274] It should be understood that the actual node delay is a range (provided Q is not 0). When selecting and comparing different candidate paths, a specific value needs to be determined. Therefore, there are two methods: Method 1, where the node delay is F(i); Method 2, where the node delay is F(i) + Q. Since setting Metric-Type to Min Unidirectional LinkDelay means calculating the delay metric of the candidate path based on the minimum delay, Method 1 can be used by default.

[0275] b) When the current scheduling strategy is on-time delivery, the node delay is equal to F(i) + Q.

[0276] It should be understood that if the current Deadline scheduling delay Q is nondeterministic, then the current Deadline scheduling delay Q in the above calculation is temporarily replaced with 0.

[0277] It should be understood that the purpose of the deterministic delay metric of the above candidate paths is to compare multiple candidate paths and finally calculate the Deadline SPF Path. Therefore, as mentioned above, the deterministic delay metric of the candidate paths will be adjusted appropriately. For example, if the current Deadline scheduling delay Q is nondeterministic, then the current Deadline scheduling delay Q will be temporarily replaced with 0 in the above calculation.

[0278] However, once the Deadline SPF Path (target path) is obtained, the deterministic delay metric of the Deadline SPF Path should be the actual specific delay. As mentioned before, for any intermediate node i in the Deadline SPF Path, its contributed node delay may include Q (i.e., F(i) + Q). If Q is an unknown value, the deterministic delay of the target path is an expression including the variable Q, but still not the actual specific delay. Therefore, it is necessary to provide a definite Deadline scheduling delay Q through other means, such as carrying the value of the Deadline scheduling delay Q or other information that can derive the value of the Deadline scheduling delay Q in the forwarded data packets, or determining the value of the Deadline scheduling delay Q based on a preset local policy entry.

[0279] Therefore, for any intermediate node in the Deadline SPF Path, its contribution to the node's latency jitter is:

[0280] a) When the current scheduling strategy is the advance sending strategy, the node's latency jitter is Q;

[0281] b) When the current scheduling strategy is on-time delivery, the node's latency jitter is 0.

[0282] Furthermore, based on the Deadline SPF Path calculated within the Flex-algo plane, prefix forwarding entries (or MPLS label entries, or SID entries for Segment Routing, or SRv6 Locator entries, etc.) to other destination nodes can be established within the Flex-algo plane to guide packet forwarding. It should be understood that these forwarding entries established in a Flex-algo plane use separate prefixes (or separate MPLS labels, or separate SIDs, or separate SRv6 Locators, etc.) to distinguish them from forwarding entries in other Flex-algo planes or the original physical network. For example, if a routing table entry for Prefix-D to destination node D is maintained on the head node S within a Flex-algo plane (other label or SID entries are similar), it typically includes the following:

[0283] Key value: Prefix-D (D indicates the head node)

[0284] Forwarded message: next_hop = the neighbor of the next hop

[0285] Interface = the output port of the next hop

[0286] metric_type=Min Unidirectional Link Delay

[0287] Deadline Flag = TRUE

[0288] Scheduling Dealy = Current Deadline Scheduling Delay

[0289] Scheduling Policy = Current Scheduling Policy

[0290] total_metric = Deterministic delay of the target path

[0291] total_metric_variation = latency jitter of the target path

[0292] total_metric_intra_node = cumulative node latency of the target path

[0293] total_metric_link = cumulative link transmission delay of the target path.

[0294] It should be understood that similar extensions of IGP multi-topology and network slicing, as well as other virtual network technologies, can be implemented, but these will not be described in detail here.

[0295] Step 3-2: As another embodiment of this disclosure, it is also possible not to pre-bind the virtual network and scheduling parameters, but to directly use the specified scheduling parameters as the current scheduling parameters in the physical network or virtual network, and use the scheduling parameters as a constraint to calculate the TE path. This embodiment of the disclosure refers to such a path as the Deadline TE Path.

[0296] The deterministic delay of the TE path calculated at this time also includes the contribution of the transmission delay (link transmission delay) and transmission delay jitter (which is usually 0 in practice) of each link along the path, as well as the contribution of the delay (internal forwarding delay) and delay jitter of each node along the path.

[0297] Similar to calculating the Deadline SPF Path, before calculating the target Deadline TE Path, the best TE Path is selected from multiple candidate TE Paths. The specific method is similar to the calculation of the Deadline SPF Path, and will not be described in detail here.

[0298] For example, the aforementioned Deadline TE Path can be instantiated in the network as an RSVP-TE tunnel, a Segment Routing policy, or other forms. It is important to note that each intermediate node along the Deadline TE Path needs to install corresponding forwarding entries to guide packet forwarding along the Deadline TE Path. These forwarding entries may be public and do not include information such as the current Deadline scheduling delay Q and the current scheduling policy from the routing constraints. Therefore, the forwarded data packets need to carry the value of the current Deadline scheduling delay Q (or other information that can derive the value of the current Deadline scheduling delay Q) and the current scheduling policy, so that each intermediate node can perform packet scheduling based on the current Deadline scheduling delay Q and the current scheduling policy when it receives a packet.

[0299] The method of this disclosure embodiment is illustrated below with specific network topology and numerical values.

[0300] Specific example 1:

[0301] In Example 1, a virtual network (or Flex-algo plane) is created using IGP Flex-algo, and the Deadline SPF Path is computed within this virtual network. (See also...) Figure 6 The IGP Flex-algo plane contains 5 nodes (R1 to R5) and links connecting the nodes (all links are bidirectional links). The data on the link edge is the value of its link transmission delay (in µs).

[0302] Assume that the node parameters of all links in the virtual network are as follows:

[0303] Node scheduling enable switch: ON (on)

[0304] Intra-node forwarding latency F: 5µs

[0305] Node scheduling latency set: <10us, 20us, 30us, 40us, 50us, 60us>

[0306] Node scheduling strategy: Supports both early sending strategy and on-time sending strategy.

[0307] First, configure the FAD of IGP Flex-algo 128, setting the metric type to Min Unidirectional LinkDelay, the Deadline Flag to TRUE, and its bound scheduling parameters (e.g., the optimal scheduling parameters negotiated by all nodes, or specified scheduling parameters) to: Deadline scheduling delay Q = 10us, and scheduling policy to early transmission. Assume that the content of this FAD is the optimal FAD obtained after negotiation among all nodes in the Flex-algo 128 plane.

[0308] Taking node R1 as an example, it calculates all candidate path references with itself as the root (i.e., R1 is the head node). Figure 7 , Figure 7 In each set of data for each link edge, the first number represents the node delay of the intermediate node before the link, and the second number is the link transmission delay of the link itself; while min delay and max delay represent the lower limit and upper limit of the deterministic delay of the link segment, respectively.

[0309] Therefore, for a packet with node R1 as the head node and node R5 as the destination node, the calculated DeadlineSPF Path is: node R1 - node R2 - node R4 - node R5, with a lower limit of deterministic latency of 55us, an upper limit of 85us, and a latency jitter of 30us.

[0310] For example, if node R5 advertises Prefix-R5, which is exclusive to the flex-algo 128 plane, then node R1 will create the following forwarding table entry.

[0311] Key value: Prefix-R5

[0312] Forwarded message: next_hop = R2

[0313] Interface = link-R1R2

[0314] metric_type=Min Unidirectional Link Delay

[0315] Deadline Flag = TRUE

[0316] Scheduling Dealy = 10us

[0317] Scheduling Policy = Send in advance

[0318] total_metric = 55~85us

[0319] total_metric_variation = 30us

[0320] total_metric_intra_node=15~45us

[0321] total_metric_link = 40us.

[0322] Of course, other intermediate nodes can also create forwarding entries in a similar way.

[0323] When an intermediate node receives a data packet, if it matches the aforementioned forwarding table entry, the packet will be scheduled within the node according to the Deadline scheduling delay of 10us and the early sending strategy.

[0324] Specific example 2:

[0325] Example 2 is similar to Example 1, except that the IGP Flex-algo is replaced by IGP multi-topology or network slice, so that the Deadline SPF Path is calculated within the corresponding IGP topology or network slice. The specific process will not be described in detail here.

[0326] Specific example 3:

[0327] Example 2 is similar to Example 1, except that the current scheduling policy is changed to an on-time delivery policy, thus calculating all candidate path references. Figure 8 Because a just-in-time sending strategy is adopted, Figure 8 The min delay and max delay are equal.

[0328] Therefore, for a packet with node R1 as the head node and node R5 as the destination node, the calculated DeadlineSPF Path is: node R1-node R2-node R4-node R5. The lower and upper limits of its deterministic latency are both 85us, and the latency jitter is 0us.

[0329] Therefore, the forwarding entries generated by node R1 include:

[0330] Key value: Prefix-R5

[0331] Forwarded message: next_hop = R2

[0332] Interface = link-R1R2

[0333] metric_type=Min Unidirectional Link Delay

[0334] Deadline Flag = TRUE

[0335] Scheduling Dealy = 10us

[0336] Scheduling Policy = Timely Sending

[0337] total_metric = 85us

[0338] total_metric_variation = 0

[0339] total_metric_intra_node=45us

[0340] total_metric_link = 40us.

[0341] The other processes are similar to those in Example 1 and will not be described in detail here.

[0342] Specific example 4:

[0343] This example 4 is in reference Figure 9 Create the Deadline TEPath in the target network (which can be a physical network or a virtual network).

[0344] Figure 9 The network shown includes 6 nodes (node ​​A, node B, node C, node D, node E, and node S) and links connecting the nodes (all links are bidirectional links), where the data on the link edge is the value of its link transmission delay.

[0345] Assume that the node parameters of all links in the target network are as follows:

[0346] Node scheduling enable switch: ON;

[0347] Intra-node forwarding latency F: 5µs;

[0348] Node scheduling delay set: <10us, 20us, 30us, 40us, 50us, 60us>;

[0349] Node scheduling strategy: Supports both early sending strategy and on-time sending strategy.

[0350] When calculating a route (SR policy) from the head node S to the destination node D, the constraints (current scheduling parameters) are set as follows: the deadline scheduling delay is 10us, and the scheduling policy is the on-time delivery policy.

[0351] Without considering the influence of other constraints, the path calculation engine will select those link resources with Deadline scheduling enabled from the link state database to participate in the path calculation, and finally select a candidate path with the smallest deterministic delay metric as the target path (i.e., the Deadline TE Path in bold in the figure), which is node S-node A-node C-node E-node D, with a deterministic delay of 120us, of which the cumulative node delay is 60us and the cumulative link transmission delay is 60us.

[0352] Therefore, the following forwarding entries can be created on node S:

[0353] Key value:<Headend=S,Endpoint=D,Color=1000>

[0354] Forwarding information: Segment List =<A,C,E,D>

[0355] metric_type = Deadline-delay

[0356] Scheduling Dealy = 10us

[0357] Scheduling Policy = Timely Sending

[0358] total_metric = 120us

[0359] total_metric_variation = 0

[0360] total_metric_intra_node=60us

[0361] total_metric_link = 60us.

[0362] Furthermore, on node S, the encapsulation corresponding to the above forwarding table entry is added to the data packet to be forwarded. This will carry information in the packet that the Deadline scheduling delay is 10us (or the node delay is 15us) and that the on-time scheduling strategy is adopted, so that the packet is scheduled at each intermediate node along the way according to the scheduling delay of 10us and the on-time sending strategy.

[0363] Secondly, referring to Figure 10 This disclosure provides an electronic device, which includes:

[0364] One or more processors;

[0365] A memory, on which one or more computer programs are stored:

[0366] One or more I / O interfaces are connected between the processor and the memory and configured to enable information interaction between the processor and the memory;

[0367] When the one or more computer programs are executed by the one or more processors, they can implement any of the routing determination methods of the present disclosure embodiments.

[0368] Among them, the processor is a device with data processing capabilities, including but not limited to the central processing unit (CPU); the memory is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), and flash memory (FLASH); the I / O interface (read-write interface) is connected between the processor and the memory, enabling information exchange between the memory and the processor, including but not limited to the data bus (Bus).

[0369] In some embodiments, the electronic device is a node.

[0370] As previously stated, the electronic device performing the methods of the embodiments of this disclosure may specifically be a "node" in a network.

[0371] Of course, as mentioned above, when calculating routes, the electronic device performing the methods of the embodiments of this disclosure can also be a controller in the network.

[0372] Thirdly, referring to Figure 11 This disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, can implement any of the routing determination methods of this disclosure.

[0373] Those skilled in the art will understand that all or some of the steps, systems, and devices disclosed above, as functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof.

[0374] In hardware implementations, the division between functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be executed by several physical components working together.

[0375] Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit (CPU), digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technique for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH) or other disk storage; read-only optical disc (CD-ROM), digital versatile disc (DVD) or other optical disc storage; magnetic cartridges, magnetic tapes, disk storage or other magnetic storage; and any other media that can be used to store desired information and can be accessed by a computer. Furthermore, as is known to those skilled in the art, communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0376] This disclosure has disclosed exemplary embodiments, and although specific terminology has been used, it is for general illustrative purposes only and should not be construed as limiting. In some instances, it will be apparent to those skilled in the art that features, characteristics, and / or elements described in conjunction with particular embodiments may be used alone, or in combination with features, characteristics, and / or elements described in conjunction with other embodiments, unless otherwise expressly indicated. Therefore, those skilled in the art will understand that various changes in form and detail may be made without departing from the scope of this disclosure as set forth by the appended claims.

Claims

1. A method for determining a route, comprising: Identify at least one candidate path in the target network; Based on the current scheduling parameters, intra-node forwarding delay, and link transmission delay, the deterministic delay of each candidate path is determined. The current scheduling parameters include the current deadline scheduling delay and the current scheduling policy. The intra-node forwarding delay is the delay from when a packet enters the node to when it is forwarded to the egress port. The deterministic delay of each candidate path includes the node delay of all intermediate nodes and the link transmission delay of all links. The node delay of each intermediate node is derived from its intra-node forwarding delay, the current deadline scheduling delay, and the current scheduling policy. The node delay of each intermediate node includes the intra-node forwarding delay and the delay caused by the deadline scheduling. The delay caused by the deadline scheduling is determined by the current deadline scheduling delay and the current scheduling policy. The target path is selected from the candidate paths based on the deterministic delay, and the route is determined. The current scheduling strategy includes either an early sending strategy or a timely sending strategy; the early sending strategy indicates sending the message before the current deadline scheduling delay is exhausted, and the timely sending strategy indicates sending the message when the current deadline scheduling delay is exhausted.

2. The method according to claim 1, wherein, When the current scheduling strategy is the advance sending strategy, the node delay of each intermediate node is greater than or equal to its intra-node forwarding delay, and less than or equal to the sum of its intra-node forwarding delay and the current Deadline scheduling delay. When the current scheduling strategy is the on-time delivery strategy, the node latency of each intermediate node is equal to the sum of its intra-node forwarding latency and the current Deadline scheduling latency.

3. The method according to claim 2, wherein, When the current scheduling strategy is the advance sending strategy. The node latency of each intermediate node is equal to its intra-node forwarding latency; or, The node latency of each intermediate node is equal to the sum of its intra-node forwarding latency and the current Deadline scheduling latency.

4. The method according to claim 1, wherein, The current Deadline scheduling delay is either deterministic or non-deterministic; When the current Deadline scheduling delay is deterministic, the deterministic delay of the candidate path is calculated based on the value of the current Deadline scheduling delay; When the current Deadline scheduling delay is nondeterministic, the current Deadline scheduling delay in the deterministic delay of the candidate path is counted as 0.

5. The method according to claim 4, wherein, When the current deadline scheduling delay is nondeterministic, after selecting the target path from the candidate paths based on the deterministic delay, the method further includes: Calculate the deterministic delay of the target path; the deterministic delay of the target path is an expression that includes a variable of the current Deadline scheduling delay, the value of which is determined based on the data packet or local policy entry.

6. The method according to claim 1, wherein, Before determining at least one candidate path in the target network, the method further includes: Determine the current scheduling parameters.

7. The method according to claim 6, wherein, Before determining the current scheduling parameters, the method further includes: The system receives node parameter configuration instructions and sets the node parameters of the node on the local link according to the instructions. The node parameters of each node on each link include a node scheduling enable switch, a node scheduling delay set, a node scheduling policy, and an intra-node forwarding delay. The node scheduling enable switch indicates whether the node enables Deadline scheduling. The node scheduling delay set includes at least one Deadline scheduling delay supported by the node on the local link. The node scheduling policy indicates the scheduling policy supported by the Deadline scheduling delay.

8. The method according to claim 7, wherein, Between the receiving node parameter configuration instruction and the determination of the current scheduling parameters, the following is also included: Send node parameter information for the local link of the sending node; And / or, Receive node parameter information sent by other nodes; the node parameter information includes information on node scheduling delay set and node scheduling strategy.

9. The method according to claim 8, wherein, The node parameter information is a Type-Length-Value (TLV) message for Interior Gateway Protocol (IGP) Intermediate System to Intermediate System (ISIS) or Open Shortest Path First (OSPF).

10. The method according to claim 9, wherein, The TLV message containing the node parameter information includes: The type field is used to indicate that the TLV message is node parameter information; The length field is used to indicate the length of the content of the TLV message; The value of the Deadline scheduling delay for each node in the node scheduling delay set and the identifier of the scheduling policy it supports.

11. The method according to claim 9, wherein, All Deadline scheduling delays for each node support the same scheduling strategy, and the difference between any two adjacent Deadline scheduling delays in the node scheduling delay set is the same. The TLV message containing the node parameter information includes: The type field is used to indicate that the TLV message is node parameter information; The length field is used to indicate the length of the content of the TLV message; The minimum and maximum Deadline scheduling delay values ​​in the node scheduling delay set; The identifier of the scheduling policies supported by all Deadline scheduling delays for the node; The difference between any two adjacent Deadline scheduling delays in the node scheduling delay set.

12. The method according to claim 6, wherein, Determining the current scheduling parameters includes: Receive binding information; the binding information includes at least one set of binding relationships, each set of binding relationships includes a preset virtual network and scheduling parameters corresponding to the preset virtual network, the scheduling parameters corresponding to the preset virtual network include the Deadline scheduling delay and scheduling policy corresponding to the preset virtual network, and each node in the preset virtual network supports the Deadline scheduling delay and scheduling policy corresponding to the preset virtual network on each link; When the current network is a preset virtual network, the scheduling parameters corresponding to the preset virtual network are determined as the current scheduling parameters.

13. The method according to claim 12, wherein, The step of selecting the target path from the candidate paths based on deterministic delay includes: Based on the deterministic delay, the target path is selected from the candidate paths using the Shortest Path First (SPF) algorithm.

14. The method according to claim 12, wherein, The binding information is a TLV message for an IGP ISIS or OSPF virtual network, and the TLV message of the binding information includes at least one of the following: a Flexible Algorithm Definition (FAD) TLV message, an IGP multi-topology TLV message, and an IGP network slice TLV message.

15. The method according to claim 14, wherein, The TLV message containing the binding information includes: The type field is used to indicate that the TLV message is the binding information; The type field indicates the length of the TLV message content; An identifier used to indicate whether the Deadline scheduling delay corresponding to the preset virtual network is deterministic or nondeterministic; when the Deadline scheduling delay corresponding to the preset virtual network is nondeterministic, the current Deadline scheduling delay is counted as 0 during the calculation of the deterministic delay of the candidate path; when the Deadline scheduling delay corresponding to the preset virtual network is deterministic, the current Deadline scheduling delay is equal to the Deadline scheduling delay corresponding to the preset virtual network during the calculation of the deterministic delay of the candidate path. Preset the Deadline scheduling delay value for the virtual network; The identifier of the scheduling policy corresponding to the pre-configured virtual network.

16. The method according to claim 6, wherein, When the current network is a physical network or a virtual network, determining the current scheduling parameters includes: Receive scheduling parameter setting instructions and determine the current scheduling parameters based on the scheduling parameter setting instructions.

17. The method according to claim 16, wherein, The step of determining at least one candidate path in the target network includes: Using the current scheduling parameters as one of the routing constraints, at least one traffic engineering (TE) path is determined as a candidate path in the target network.

18. The method according to claim 1, wherein, After selecting the target path from the candidate paths based on deterministic latency, the method further includes creating a forwarding table entry for the target path; the forwarding table entry includes: The entry that indicates the target path is enabled for Deadline scheduling; An entry representing the current Deadline scheduling delay; The entries that represent the current scheduling strategy; An entry representing the deterministic time delay of the target path.

19. The method according to claim 18, wherein, The forwarding entries also include: An entry representing the value of the delay jitter of the target path; the delay jitter of the target path is the sum of the delay jitter of all intermediate nodes in the target path, and the delay jitter of each node is equal to the difference between the earliest possible time and the latest possible time of its message transmission; An entry representing the sum of the link transmission delays of all links in the target path; An entry representing the sum of the node delays of all intermediate nodes in the target path.

20. An electronic device comprising: One or more processors; A memory, on which one or more computer programs are stored: One or more I / O interfaces are connected between the processor and the memory and configured to enable information interaction between the processor and the memory; When the one or more computer programs are executed by the one or more processors, they can implement the method for determining routes as described in any one of claims 1 to 19.

21. The electronic device according to claim 20, wherein, The electronic device is a node.

22. A computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the method for determining a route as described in any one of claims 1 to 19.

Citation Information

Patent Citations

  • Deadline-oriented scheduling method capable of meeting time determinability

    CN104486250A

  • Method and device for determining forwarding path

    CN106878170A

  • Forwarding path determination method and device

    CN113542123A