Service flow path determination method and electronic device
By obtaining and evaluating the delay requirements and time slot resources of the business flow, and determining and reserving the time slot resources of the candidate paths, the network congestion problem caused by multiple business flows is solved, and the throughput and path selection efficiency of the communication network are improved.
Patent Information
- Application Number
- PCT/CN2023/142041
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-20
- Filing Date
- 2023-12-26
- Publication Date
- 2024-10-24
AI Technical Summary
In a deterministic network, when multiple service flows arrive at the end node at the same time, it is easy to cause network congestion and affect the throughput of the communication network. It is difficult for the existing technology to effectively reserve time slot resources to meet the delay requirements and burst volume of different service flows. difference.
By obtaining the delay requirements of the target service flow and the time slot resource information of each node, candidate paths are determined, time slot resources are reserved on the egress ports of the candidate paths, the total resident delay is evaluated, and the path that meets the delay requirements is selected. paths to reduce network congestion and improve throughput.
It realizes the selection of paths that meet the delay requirements in the case of multiple business flows, reduces network congestion, improves the throughput of the communication network, and provides quantitative path selection guidance.
Smart Images

Figure CN2023142041_24102024_PF_FP_ABST
Abstract
Description
Method for determining service flow path and electronic device
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on April 20, 2023, with application number 202310463598.7 and invention name “Method and electronic device for determining the path of business flow”. The entire contents of the Chinese patent application are incorporated herein by reference. Technical Field
[0003] The embodiments of the present application relate to the field of data communication technology, and in particular to a method for determining a path of a service flow and an electronic device. Background Art
[0004] The IETF standard RFC8655 describes the architecture of deterministic networks and defines QoS (Quality of Service) objectives for deterministic forwarding: minimum and maximum source-to-destination latency, bounded latency jitter, a permissible packet loss rate, and an upper bound on out-of-order packet delivery. To achieve these objectives, deterministic networks employ resource reservation, explicit routing, and service protection. Resource reservation refers to the allocation of resources by service traffic, either exclusively or in a certain proportion. These resources include physical links, link bandwidth, and queue resources.
[0005] To meet the aforementioned deterministic QoS requirements, the IETF published a personal draft, draft-peng-detnet-packet-timeslot-mechanism-01, describing a packet timeslot scheduling mechanism. This mechanism essentially transforms timeslots into resources, opening and reserving them for services. However, due to the varying latency requirements of different service flows and their corresponding burst volume and other traffic information, reserving timeslot resources presents challenges. When multiple service flows arrive at an end node simultaneously, network congestion can easily occur, impacting the throughput of the entire communication network.
[0006] Summary of the Invention
[0007] The embodiments of the present application provide a method and electronic device for determining a path for a business flow, so as to at least solve the problem in the related art that network congestion is likely to occur when multiple business flows arrive at an end node at the same time.
[0008] In order to solve the above technical problems, this application is implemented as follows:
[0009] In a first aspect, an embodiment of the present application provides a method for determining a path of a service flow, including:
[0010] Obtain the delay requirement of the target service flow and the time slot resource information of each egress port of each node;
[0011] Determining at least one candidate path corresponding to the target service flow based on the time slot resource information of each egress port of each node;
[0012] Reserving a time slot resource for the target service flow on an egress port of a candidate node in each candidate path, and determining a total residence delay evaluation value of the target service flow on the candidate path;
[0013] A candidate path that satisfies a first condition is selected as the target path of the target service flow, where the first condition includes that time slot resources are successfully reserved for the target service flow at the egress ports of all candidate nodes constituting the selected candidate path, and that the sum of a total residence delay evaluation value and an accumulated link propagation delay of the selected candidate path meets the delay requirement.
[0014] In a second aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the above method.
[0015] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores at least one computer program, and the computer program is loaded and executed by a processor to implement the above method.
[0016] The path determination method for a business flow provided in an embodiment of the present application obtains the delay requirement of the target business flow and the time slot resource information of each egress port of each node; determines at least one candidate path corresponding to the target business flow based on the time slot resource information of each egress port of each node; reserves time slot resources for the target business flow on the egress port of the candidate node in each candidate path, and determines the total residence delay evaluation value of the target business flow on the candidate path; and selects the candidate path that meets the first condition as the target path of the target business flow.
[0017] It can be seen that, by adopting the method provided in the embodiment of the present application, when the target service flow arrives at the end node, the corresponding target path is selected according to the delay requirement of the target service flow and the time slot resource information of each egress port of each node, which can reduce the possibility of network congestion. In addition, time slot resources are reserved on the egress ports of the candidate nodes in the candidate path, and the total residence delay evaluation value of the target service flow on the candidate path is determined. Then, based on the total residence delay evaluation value, it is determined whether the target path meets the delay requirement of the target service flow, which provides quantitative guidance for determining the target path that meets specific delay requirements in the network, and is conducive to quickly and accurately selecting the target path corresponding to the target service flow, thereby improving the throughput of the entire communication network.
[0018] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0020] FIG1 is a schematic diagram showing a flow chart of a method for determining a path for a service flow provided in an embodiment of the present application;
[0021] FIG2 is a schematic diagram showing a time slot resource model of a link provided in an embodiment of the present application;
[0022] FIG3 shows a structural diagram of an extended network protocol provided in an embodiment of the present application;
[0023] FIG4 is a schematic diagram showing various typical service flow specifications and possible time slot resource reservation results for service flows provided in an embodiment of the present application;
[0024] FIG5 shows a schematic diagram of a model structure of a service reserved time slot provided in an embodiment of the present application;
[0025] FIG6 shows a schematic diagram of a network structure provided by an embodiment of the present application;
[0026] FIG7 shows a schematic diagram of a time slot mapping relationship between two adjacent upstream and downstream nodes provided by an embodiment of the present application;
[0027] FIG8 is a schematic diagram showing the relationship between the burst volume (or sub-burst volume) and the offset of the scheduling period of the service provided in an embodiment of the present application;
[0028] FIG9 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
[0030] To facilitate understanding of the embodiments of the present application, the relevant terms are explained as follows:
[0031] Timeslot: The minimum unit of time division multiplexing. A reasonable value, such as 10us, must be designed to allow at least one complete message to be sent.
[0032] Timeslot Scheduling: The scheduling behavior of sending messages in specified time slots.
[0033] Incoming Timeslot: For an intermediate node in a specific path, the timeslot contained in the message it receives from the upstream node (i.e., the outgoing timeslot of the upstream node) is its incoming timeslot.
[0034] Outgoing Timeslot: When an intermediate node on a specific path continues to send a message to a downstream node, it selects a designated timeslot based on resource reservation or certain rules to send the message. This timeslot is called the outgoing timeslot.
[0035] Ongoing Sending Timeslot: For the head node in a path, it continues to send the message received from the client to the downstream node. When the message reaches the egress port, the time slot in which the egress port is currently sending is called the sending timeslot. For the intermediate node in a path, it continues to send the message received from the upstream node to the downstream node. When the end of the inbound timeslot to which the message belongs reaches the egress port, the time slot in which the egress port is currently sending is called the sending timeslot. Note that the sending timeslot is not an outbound timeslot.
[0036] Scheduling Period: The cyclic period of the time-division multiplexing scheduling mechanism implemented by network nodes, consisting of a fixed number of time slots. For example, a scheduling period is fixed to contain 100 time slots.
[0037] Service Burst Interval: The traffic specification for a deterministic service flow typically follows a rule that a certain burst volume is generated within a recurring burst interval (i.e., the service burst interval). For example, if a service flow generates 1000 bits of traffic every 1ms, the corresponding service burst interval is 1ms.
[0038] Orchestration Period: The control plane uses the orchestration period based on the needs of all deterministic services. It allocates time slot resources to services within the orchestration period. Specifically, it specifies which time slots a service occupies and how many bits it occupies within the orchestration period. The orchestration period is typically an integer multiple of, or equal to, the scheduling period.
[0039] The IETF's draft stipulates that at the network's ingress node, outbound time slots must be reserved for traffic flows with corresponding arrival times on the egress port. Similarly, at intermediate nodes, outbound time slots must be reserved for traffic flows with corresponding inbound time slots on the egress port. However, the draft does not provide a specific time slot resource reservation scheme. This presents challenges in reserving time slots, as different deterministic traffic flows have varying latency requirements and corresponding burst volume and other traffic information.
[0040] To this end, an embodiment of the present application provides a method for determining a path for a service flow. This method can be applied to a centralized controller or to each node in a network. FIG1 shows a flow chart of a method for determining a path for a service flow provided by an embodiment of the present application. As shown in the figure, the method 100 for determining a path for a service flow includes the following steps:
[0041] S101: Obtain the delay requirement of the target service flow and the time slot resource information of each egress port of each node;
[0042] S102: Determine at least one candidate path corresponding to the target service flow based on the time slot resource information of each egress port of each node;
[0043] S103: reserving a time slot resource for the target service flow on an egress port of a candidate node in each candidate path, and determining a total residence delay evaluation value of the target service flow on the candidate path;
[0044] S104: Select a candidate path that meets a first condition as the target path of the target service flow, where the first condition includes that time slot resources are successfully reserved for the target service flow at the egress ports of all candidate nodes constituting the selected candidate path, and the sum of the total residence delay evaluation value and the accumulated link propagation delay of the selected candidate path meets the delay requirement.
[0045] Through the above steps, when a target service flow arrives, at least one candidate path corresponding to the target service flow is determined based on the time slot resource information of each egress port of each node, and time slot resources are reserved for the target service flow at the egress port of the candidate node in each candidate path, thereby selecting a target path that meets the delay requirement of the target service flow. This can reduce the possibility of network congestion. In addition, during the process of reserving time slot resources, the total residence delay evaluation value of the target service flow on the candidate path is determined, providing a basis for calculating the target path that meets the specific delay requirement in the network.
[0046] This will be explained with reference to specific examples. For each node in the network, time slot resource information can be configured for the transmission link it owns. The time slot resource information of a link can be expressed as the number of bits corresponding to all time slots included in an orchestration period. Figure 2 shows a schematic diagram of the time slot resource model of the link provided in an embodiment of the present application. The orchestration period includes N time slots, numbered 0 to N-1. The forwarding resource information contained in each time slot mainly includes the following attributes:
[0047] The number of the time slot in the scheduling cycle sequence_number: In a scheduling cycle containing N (note: N>0) time slots, the first time slot is numbered 0 and the last time slot is numbered N-1.
[0048] Timeslot_interval: The unit of time slot is us (other units such as ns and ms can also be used). Generally, the length of each time slot included in the scheduling period is the same.
[0049] The bit quota corresponding to the time slot, bits_quota: The unit is bit (byte, word, or other units can also be used). This quota can further include attributes such as the initial amount (initial_amount), the amount used by the service (used_amount), and the unused (idle) amount (unused_amount). Since initial_amount = used_amount + unused_amount, only two of these attributes are required. For example, if the initial_amount is provided in the bits_quota attribute and the unused_amount attribute is added to provide the idle value, it can be seen that the initial idle value is equal to the initial value.
[0050] The initial value (initial_amount) of bits_quota is a configurable preset value that depends on the total link bandwidth. Let's assume the total link bandwidth is C and the slot length is ti. Initial_amount should be set to a value no greater than C*ti. This is primarily to account for the transmission needs of other non-deterministic traffic flows in the network. Generally, the initial_amount is the same for each slot included in the orchestration cycle.
[0051] Since each node in the network can notify each other of the time slot resource information of the link, or obtain the time slot resource information of each link in the network through a centralized controller, when the target business flow arrives, based on the time slot resource information of each egress port of each node, at least one candidate path corresponding to the target business flow is determined, and time slot resources are reserved for the target business flow at the egress port of the candidate node in each candidate path to select the target path that meets the delay requirements of the target business flow.
[0052] Specifically, within the control plane, a centralized controller or the head node of a path, collectively referred to as a path calculation module, calculates the end-to-end target path for a deterministic service flow. Before determining the target path, the path calculation module selects several suitable candidate paths for the service flow within the network and then selects the optimal path from among these candidate paths as the target path. The candidate path for the target service flow can be determined based on the target service flow's identifier or the target service flow's requirements for link resources, bandwidth, and other factors. Alternatively, the candidate path for the target service flow can be determined based on the head node and tail node information corresponding to the target service flow.
[0053] After obtaining the candidate paths, a centralized controller reserves time slot resources, or each node in the candidate path reserves time slot resources based on a distributed protocol (such as RSVP-TE). This is collectively referred to as a resource reservation module. The resource reservation module reserves time slot resources within the idle bit quota of the corresponding time slot of the link. If the reservation fails, for example, because the idle bit quota of the time slot at the appropriate position within the scheduling cycle of a link in the candidate path is insufficient, the selected candidate path does not meet the requirements, and other candidate paths must be tried. If no candidate path that meets the requirements can be found in the entire network, the calculation result fails.
[0054] When time slot resources are successfully reserved for the target service flow on the egress ports of all candidate nodes of the candidate path and become effective as the target path, the idle time slot resources of the links along the target path will change, which will trigger the time slot resource information of these links to be re-announced in the network.
[0055] The acquiring of the time slot resource information of each egress port of each node includes:
[0056] The time slot resource information of one or more time slots of each egress port is notified to each node through an extended network protocol; the time slot resource information includes the number corresponding to the time slot, the time slot length, initial resource information, occupied resource information and idle resource information.
[0057] In specific applications, the Interior Gateway Protocol (IGP) can be extended to support the advertising of link latency resource information within the network. For example, ISIS (Intermediate System to Intermediate System) or OSPF (Open Shortest Path First) can be extended to advertise resource information for one or more time slots included in a link's orchestration cycle, including the slot number, slot length (in time units), initial slot bit count, and idle slot bit count.
[0058] BGP (Border Gateway Protocol) can also be extended to support the notification of link latency resource information within the network or between the network and the controller, that is, the notification of resource information of one or more time slots included in the link orchestration cycle, including: the number of the time slot, the length of the time slot (time unit), the initial bit number of the time slot, and the idle bit number of the time slot.
[0059] Taking the extended ISIS as an example, the existing ISIS protocol suite (refer to RFC5305, RFC5311, RFC5316, RFC5120) has defined TLVs 22 / 23 / 141 / 222 / 223 for advertising adjacency relationships. The embodiment of the present application adds a sub-TLV to these TLVs, denoted as Timeslot Resource Sub-TLV, which is used to carry the timeslot resources of the link. The structure diagram of its network protocol is shown in Figure 3, where:
[0060] Type: occupies 1 byte. Its value is to be assigned by IANA (Internet Assigned Numbers Authority) to indicate that the TLV is a Timeslot Resource Sub-TLV.
[0061] Length: 1 byte, indicating the content length of the TLV (excluding the Type and Length fields themselves).
[0062] Timeslot Count: occupies 2 bytes and indicates the number of timeslots contained in the scheduling cycle. These timeslots are numbered in sequence from 0 to N-1.
[0063] Timeslot Interval: occupies 2 bytes and indicates the length of each timeslot in microseconds (us).
[0064] The following fields are one or more groups<Sequence Number、Initial Amount、Unused Amount> , each group<Sequence Number、Initial Amount、Unused Amount> Indicates the initial bit amount and idle bit amount of the corresponding numbered time slot.
[0065] Sequence Number: occupies 2 bytes and indicates the timeslot number.
[0066] Initial Amount: occupies 4 bytes and indicates the initial bit amount of the time slot.
[0067] Unused Amount: occupies 4 bytes and indicates the amount of idle bits in the time slot.
[0068] It should be noted that the above extension is only a specific method and is not limited to such protocol extension. For example, in other extension methods, it is possible to count in bytes or nanoseconds, or even design other TLVs that can also represent time slot resource information. For example, for the above<Sequence Number、Initial Amount、Unused Amount> A separate sub-TLV is defined. Specifically, OSPF or other similar protocols, BGP-LS protocol or other similar protocols can be extended to collect time slot resource information of each egress port of each node from the network, which will not be described in detail here.
[0069] The following describes in detail the process of reserving time slot resources for the target service flow at the egress ports of all candidate nodes in the candidate path. This time slot resource reservation process can be implemented uniformly by a centralized controller or by each node included in the candidate path according to a distributed protocol (such as RSVP-TE). It should be noted that the embodiments of the present application assume that the time slots reserved by each node for all service flows during the orchestration cycle can be mapped to the corresponding time slots within the scheduling cycle without conflict.
[0070] In some possible implementations, in step S103, reserving a time slot resource for the target service flow on an egress port of a candidate node in each candidate path includes:
[0071] Step 1031a: Determine the scheduling period of each candidate node in each candidate path.
[0072] Specifically, the scheduling period of each candidate node in each candidate path can be determined in the following manner: obtaining service burst intervals corresponding to multiple preset service flows; and determining the scheduling period of each candidate node in each candidate path based on the least common multiple of the service burst intervals corresponding to the multiple service flows.
[0073] Compared with the related art, in which a preset number of time slots are artificially selected as the scheduling period, the scheduling period determination method provided in the embodiment of the present application can be applied to the time slot resource reservation of a variety of different target service flows, thereby improving the real-time performance of the time slot resource reservation.
[0074] Step 1031b: Determine a time slot reservation subtask based on the number of time slots reserved for the target service flow in the scheduling cycle of the candidate node; wherein the traffic corresponding to each time slot reservation subtask belongs to the target service flow.
[0075] Generally, deterministic service flows have specific traffic specifications, such as periodically generating a specific amount of traffic within a service burst interval of a specific length. This traffic regularly arrives at the network entry node (i.e., the head node of the path), and there is a fixed offset between the arrival time and the scheduling period of the network entry node. Because different target service flows correspond to different service burst intervals, the discrete burst volume within each service burst interval also varies. Therefore, the embodiments of the present application determine the time slot reservation subtask based on the number of time slots reserved by the target service flow in the scheduling period of the candidate node.
[0076] In some possible implementations, the number of time slots reserved for the target service flow in the scheduling cycle is determined based on a first number of service burst intervals of the target service flow in the scheduling cycle and a second number of discrete burst amounts in each of the service burst intervals; and a time slot reservation subtask is determined based on the number of time slots reserved for the target service flow in the scheduling cycle.
[0077] The following is explained with reference to specific examples. Figure 4 shows a schematic diagram of various typical service flow specifications and possible time slot resource reservation results of service flows provided by an embodiment of the present application. As shown in the figure, the service burst interval lengths of deterministic service flows service 1, 2, and 3 are all equal to the scheduling period. Service 1 generates a very small single burst amount in its burst interval (note: the small here refers to the bit quota relative to the time slot), and it may reserve time slot 2 in the scheduling period; service 2 generates two very small discrete burst amounts in its burst interval, and it may reserve time slot 3 and time slot 4 in the scheduling period; the service burst interval length of service 4 is only 1 / 3 of the scheduling period, so service 4' can be constructed first, and the length of its service burst interval is 3 times that of service 4's service burst interval. Then service 4' is similar to service 2, and generates three very small discrete burst amounts in its burst interval, and it may reserve time slot 3, time slot 17, and time slot 27 in the scheduling period.
[0078] The determining, based on a first number of service burst intervals of the target service flow in the scheduling period and a second number of discrete burst amounts in each of the service burst intervals, of the number of time slots reserved for the target service flow in the scheduling period includes:
[0079] Based on the time slot resource information of the egress ports of all candidate nodes included in the candidate path, a third number of reserved time slots corresponding to each discrete burst amount in the service burst interval in the scheduling cycle is determined; based on the first number of service burst intervals of the target service flow in the scheduling cycle, the second number of discrete burst amounts in each service burst interval, and the third number of reserved time slots corresponding to each discrete burst amount in the scheduling cycle, the number of reserved time slots for the target service flow in the scheduling cycle is determined.
[0080] This will be described with reference to a specific example. For example, service 3, as shown in Figure 4, generates a large single burst within its burst interval and may reserve multiple time slots in the scheduling cycle, such as time slot 20 and time slot 21. Specifically, determining the third number of reserved time slots in the scheduling cycle corresponding to each discrete burst within the service burst interval based on the time slot resource information of the egress ports of all candidate nodes included in the candidate path includes:
[0081] Determining initial resource information corresponding to a single time slot of the candidate node in the orchestration cycle based on time slot resource information of the egress ports of all candidate nodes included in the candidate path;
[0082] When the proportion of the discrete burst amount in the service burst interval to the initial resource information corresponding to a single time slot in the scheduling period is not higher than a preset value, the discrete burst amount corresponds to one reserved time slot; or
[0083] When the proportion of the discrete burst amount in the service burst interval to the initial resource information corresponding to a single time slot in the scheduling cycle is higher than the preset value, the discrete burst amount is split into multiple sub-burst amounts according to a preset rule, and each sub-burst amount corresponds to a reserved time slot; wherein the preset rule is that each sub-burst amount contains at least one complete message, and the proportion of each sub-burst amount to the initial resource information corresponding to a single time slot in the scheduling cycle is not higher than the preset value.
[0084] This is explained with a specific example. For each service, such as service_i, the head node H (or centralized controller) determines the number of reserved subtasks required for that service based on the service burst interval, service burst volume, the bandwidth of the head node's outbound port (link-a), the length of the orchestration cycle, and the length of the time slot. Here, one reserved subtask corresponds to a single time slot resource reservation request. As shown in Figure 3, the number of reserved subtasks required for service 1 is 1, the number required for service 2 is 2, the number required for service 3 is 2, and the number required for service 4 is 3.
[0085] The above method for determining the time slot reservation subtask can be summarized as follows:
[0086] a) First, align the service burst interval with the orchestration period to ensure they are equal in length. For example, if the service 4 service burst interval is only one-third of the orchestration period, triple it to obtain an expanded service burst interval to align with the orchestration period.
[0087] b) Check how many discrete bursts the service flow generates during the orchestration cycle. For each burst:
[0088] If the size of the burst relative to the initial bit amount (initial_amount) of a single time slot does not exceed a specific value, the burst corresponds to a reserved subtask;
[0089] If the size of the burst exceeds a specific value relative to the initial bit amount (initial_amount) of a single time slot, the burst is split into multiple sub-bursts (note that each sub-burst must contain a complete message), so that the size of each sub-burst does not exceed a specific value relative to the initial bit amount (initial_amount) of a single time slot, and each sub-burst corresponds to a reserved subtask.
[0090] Step 1031c: for each of the time slot reservation subtasks, reserve time slot resources for the target service flow on the egress port of each candidate node.
[0091] Since a path may carry multiple service flows, each service flow requires a separate reserved time slot resource. In particular, for a single service flow, it may be necessary to reserve multiple time slots within the orchestration cycle. Therefore, the embodiment of the present application reserves time slot resources for the target service flow at the egress port of each candidate node for each of the time slot reservation subtasks. Figure 5 shows a schematic diagram of the model structure of the service reservation time slot provided by the embodiment of the present application. As shown in the figure, assuming a candidate path Path_HE from the head node H to the tail node E, passing through one or more intermediate nodes I (Note: to simplify the description, only one intermediate node is depicted here), provides a carrying service for m service flows (service_1, ..., service_m). During the orchestration cycle of each egress port along the path, the service flow service_i (1≤i≤m) needs to trigger cnt_i times of time slot resource reservation.
[0092] In some possible implementations, in step S103, reserving a time slot resource for the target service flow on an egress port of a candidate node in each candidate path, and determining a total residence delay evaluation value of the target service flow on the candidate path includes:
[0093] Step 1032a: Determine the residence delay budget value of each candidate node in the candidate path based on the delay requirement and the accumulated link propagation delay of the candidate path.
[0094] The following is explained with reference to specific examples. Figure 6 shows a schematic diagram of a network structure provided by an embodiment of the present application. As shown in the figure, the network includes 6 nodes: node S, node A, node C, node E, node D and node B, and the links between two nodes are all bidirectional links. The propagation delay parameters of each link are marked in the figure. For example, the propagation delay of the link between node S and node A is 20us. Assume that the end-to-end delay required by the target business flow is 200us, which is the same requirement for the reserved subtasks corresponding to all bursts of the target business flow. The centralized controller or head node S first determines a candidate path path_SD, passing through SACED. The accumulated link propagation delay of the current candidate path is: 20us+10us+10us+10us=50us. The difference between the delay requirement of the target business flow and the accumulated link propagation delay is determined as the total residence delay budget value (total_residence_budget) of each candidate node in the candidate path: 200us-50us=150us. Assuming the average budget method is used, each candidate node will share a residence delay budget value of 150 / 5=30us.
[0095] It should be noted that the average budget method can be used to divide the total residence delay budget value (total_residence_budget) by the number of all candidate nodes in the candidate path (recorded as node_count) to obtain the average residence delay budget value, that is: averaged_node_residence_budget = total_residence_budget / node_count, and then use averaged_node_residence_budget as the residence delay budget value of each node (i.e. node_residence_budget); it can also be calculated according to actual needs. Each candidate node specifies a corresponding residence delay budget value. For example, a node residence delay specified budget list is preconfigured. By reading the node residence delay specified budget list, the residence delay specified budget of the head node H is determined as node_h_residence_specified_budget, which is used as the residence delay budget value of node H; the residence delay specified budget of the intermediate node I is determined as node_i_residence_specified_budget, which is used as the residence delay budget value of node I; and the residence delay specified budget of the tail node E is determined as node_e_residence_specified_budget, which is used as the residence delay budget value of node E. The following conditions are satisfied: total_residence_budget = node_h_residence_specified_budget + node_i_residence_specified_budget + node_e_residence_specified_budget.
[0096] Step 1032b: For each candidate node in the candidate path, reserve target time slot resources for the target service flow based on the time slot resource information of the egress port of the candidate node and the residence delay budget value of the candidate node, and determine the residence delay evaluation value corresponding to the candidate node.
[0097] This is explained with reference to a specific example. As shown in Figure 6, along the candidate path from the head node S to the tail node D, time slot resources are reserved for the target service flow at the egress port of each candidate node. For each candidate node, based on the time slot resource information of the candidate node's egress port and the resident delay budget value for the candidate node determined in the above steps, a target time slot is reserved for the target service flow, and the resident delay evaluation value corresponding to the candidate node is determined.
[0098] In the process of reserving a target time slot for a target service flow, an embodiment of the present application provides a resource reservation method that can be automatically adjusted based on a delay budget, specifically, along the direction of the head node and the tail node of the candidate path, on the egress port of each node in turn, according to the residence delay budget adjustment value (node_residence_budget_adjustment) of the current node, reserve an outgoing time slot resource, so that the residence delay evaluation value corresponding to the reserved outgoing time slot is equal to or nearly equal to the residence delay budget adjustment value (node_residence_budget_adjustment) of the current node. That is, in step 1032b, the target time slot resource is reserved for the target service flow based on the time slot resource information of the egress port of the candidate node and the residence delay budget value of the candidate node, and the residence delay evaluation value corresponding to the candidate node is determined, including:
[0099] Determine the residence delay deviation corresponding to the candidate node based on the accumulated residence delay evaluation values and accumulated residence delay budget values of all upstream nodes corresponding to the candidate node;
[0100] Determining a resident delay budget adjustment value of the candidate node based on the resident delay deviation and the resident delay budget value corresponding to the candidate node;
[0101] Based on the time slot resource information and the resident delay budget adjustment value of the egress port of the candidate node, determining the offset of the target time slot reserved by the candidate node for the target service flow relative to the sending-in-progress time slot of the egress port; wherein the sending-in-progress time slot is used to indicate the time slot that is in the sending state on the egress port of the candidate node at the target moment; when the candidate node is a head node, the target moment is the moment when the target service flow arrives at the egress port of the candidate node; or, when the candidate node is an intermediate node, the target moment is the moment when the end of the target time slot reserved on the egress port of the target upstream node immediately adjacent to the candidate node arrives at the egress port of the candidate node;
[0102] Based on the offset, a residence delay evaluation value corresponding to the candidate node is determined.
[0103] In a specific implementation, when reserving time slot resources on the egress port of the head node H, the accumulated node residence delay deviation (accumulated_node_residence_deviation) is initially 0, so the residence delay budget adjustment value (node_residence_budget_adjustment) of the head node H is equal to the residence delay budget value (node_residence_budget).
[0104] When reserving time slot resources on any node's egress port, if the residence delay evaluation value corresponding to the reserved outbound time slot is equal to the node's intra-node residence delay budget adjustment value (node_residence_budget_adjustment), the accumulated intra-node residence delay deviation (accumulated_node_residence_deviation) faced by the next node in the path will be 0, and the next node's residence delay budget adjustment value (node_residence_budget_adjustment) will be equal to its residence delay budget value (node_residence_budget). Typically, if a candidate node is able to reserve the desired time slot according to its residence delay budget value, there will be no difference between its residence delay evaluation value and its residence delay budget value. However, in some cases, due to insufficient resources in the desired time slot, resources must be reserved in a time slot near the desired time slot, which may cause a difference between its residence delay evaluation value and its residence delay budget value.
[0105] In a specific implementation, for candidate node I, there is a fixed phase difference between it and the time slot of the adjacent upstream node. The embodiment of the present application adopts the existing method to determine the relationship between any outgoing time slot of the upstream node and the sending time slot of the outgoing port of node I, especially when the time slot lengths between two adjacent nodes are different. Assuming that candidate node I has established a mapping relationship as shown in Figure 7, as shown in the figure, the message sent by the upstream node U (such as the head node H or other candidate node) of candidate node I in any outgoing time slot X of the outgoing port link a, after a link propagation delay (d_p) and a forwarding delay (d_f) in the node, the end of time slot X arrives at the outgoing port link b of candidate node I no later than time slot Y, that is, the outgoing time slot X of the outgoing port link a of the upstream node is mapped to the sending time slot Y of the outgoing port link b of this node I, and the remaining time from the end of time slot Y is T_ui.
[0106] Then, for a certain reserved subtask, assuming that a certain outgoing time slot is reserved for it at the egress port of the upstream node, the sending time slot number of the egress port of node I to which the outgoing time slot is mapped is j, and the time remaining from the end of the sending time slot is t_remaining, and the reserved outgoing time slot is offset by x (≥1) time slots after time slot j, that is, the number of the outgoing time slot is (j+x)%N, where N is the number of time slots included in the scheduling cycle and % is the remainder operator. Then, based on the offset x, the resident delay evaluation value corresponding to the candidate node is determined. The resident delay evaluation value is determined in the following way:
[0107] Obtaining a first time slot length corresponding to a target upstream node that is immediately adjacent to the candidate node among the upstream nodes and a second time slot length corresponding to the candidate node;
[0108] Based on the offset, the first time slot length, and the second time slot length, a queuing delay evaluation value on the egress port of the candidate node is determined; a remaining time from the target time to the end of the ongoing sending time slot of the candidate node is determined; and a sum of the queuing delay evaluation value, the intra-node forwarding delay corresponding to the candidate node, and the remaining time is determined as the residence delay evaluation value corresponding to the candidate node.
[0109] The queuing delay evaluation value includes a best queuing delay evaluation value, a worst queuing delay evaluation value, and an average queuing delay evaluation value; and determining the queuing delay evaluation value at the egress port of the candidate node based on the offset, the first time slot length, and the second time slot length includes: selecting one of the best queuing delay evaluation value, the worst queuing delay evaluation value, and the average queuing delay evaluation value as the queuing delay evaluation value at the egress port of the candidate node according to a preset strategy.
[0110] Specifically, the best queuing delay evaluation value T can be determined according to the following formula: best : T best =(O-1)*T v ;
[0111] Alternatively, the worst queuing delay evaluation value T is determined according to the following formula: worst : T worst =T u +O*T v ;
[0112] Alternatively, the average queuing delay evaluation value T is determined according to the following formula: ave : T ave =(T u +(2*O-1)*T v ) / 2;
[0113] Wherein, O is the offset, T u is the first time slot length corresponding to the target upstream node, T v It should be noted that, for a head node, the first time slot length corresponding to the target upstream node immediately adjacent to the head node is 0.
[0114] The best, worst, or average queuing delay evaluation values are selected and used to determine the residence delay evaluation value corresponding to the candidate node. This residence delay evaluation value is then compared with the node's residence delay budget adjustment value (node_residence_budget_adjustment) so that, when an appropriate value x is selected, the two values are equal or nearly equal, and the corresponding idle bit resources in the outbound time slot (j+x)%N meet the burst (or sub-burst) requirement corresponding to the reserved subtask. Finally, the outbound time slot number reserved by the reserved subtask on the egress port of intermediate node I and the number of bits occupied in the time slot are maintained.
[0115] In some possible implementations, after determining the residence delay evaluation value corresponding to the candidate node based on the offset, the method further includes: determining a target time slot reserved by the candidate node for the target service flow within the orchestration cycle based on the offset; and determining that time slot resources are successfully reserved for the target service flow at the egress port of the candidate node when the idle time slot resources of the target time slot are not less than the time slot resources required by the target service flow and the difference between the residence delay evaluation value determined according to the offset and the residence delay budget value is less than a first threshold.
[0116] In some possible implementations, after determining the resident delay evaluation value corresponding to the candidate node based on the offset, the outbound time slot number and the number of bits occupied in the time slot reserved by the reservation subtask on the egress port of candidate node 1 are also maintained. Specifically, a first mapping relationship is generated between the target time slot reserved on the egress port of the target upstream node and the target time slot reserved on the egress port of the candidate node; a target service flow sent by the target upstream node is received, and a target time slot reserved on the egress port for the target service flow is determined based on the first mapping relationship.
[0117] In particular, when the candidate node is the head node, the time slot reservation subtask corresponding to the target business flow is received; based on the position mapping relationship of the arrival time of the time slot reservation subtask within the scheduling cycle of the head node, and the intra-node forwarding delay corresponding to the candidate node, the sending in-progress time slot corresponding to the candidate node is determined; based on the time slot resource information and the resident delay budget value corresponding to the egress port of the head node, and the sending in-progress time slot, the offset of the target time slot corresponding to the target time slot resource reserved by the candidate node for the target business flow relative to the sending in-progress time slot of the egress port is determined.
[0118] In a specific implementation, at the head node H, the traffic arrival time of the burst (or sub-burst) corresponding to a specific reserved subtask has a fixed offset relationship with the scheduling period, that is, the traffic arrival time will fall into a fixed sending time slot. Figure 8 shows a schematic diagram of the offset relationship between the burst (or sub-burst) and the scheduling period of the service provided by the embodiment of the present application. As shown in the figure, the first burst (burst_1) of service_i arrives at the head node H, passes through a forwarding delay (denoted as d_f) within the node, and reaches the egress port link-a. At this time, the sending time slot is time slot 1, and remaining_1 remains from the end of time slot 1; the last burst (burst_cnt_i) of service_i arrives at the head node H, passes through a forwarding delay (denoted as d_f) within the node, and reaches the egress port link-a. At this time, the sending time slot is time slot N-2, and remaining_cnt_i remains from the end of time slot N-2.
[0119] Considering generality, for a certain reserved subtask, assume that the sending ongoing time slot to which its corresponding burst (or sub-burst) is mapped is numbered j, the time remaining from the end of the sending ongoing time slot is t_remaining, and the reserved outbound time slot is offset by x (≥1) time slots after time slot j, that is, the outbound time slot is numbered (j+x)%N, where N is the number of time slots included in the scheduling cycle and % is the modulo operator.
[0120] The best, worst, or average queuing delay evaluation value is selected and used to determine the residence delay evaluation value corresponding to the head node. This residence delay evaluation value is then compared with the node's residence delay budget adjustment value (node_residence_budget_adjustment) so that, when an appropriate offset x is selected, the two values are equal or nearly equal, and the corresponding outbound time slot j+x satisfies the burst (or sub-burst) requirement corresponding to the reserved subtask. Finally, the outbound time slot number reserved by the reserved subtask on the egress port of the head node H and the number of bits occupied in the time slot are maintained.
[0121] In some possible implementations, after selecting the candidate path that meets the first condition as the target path of the target business flow, it also includes: generating a second mapping relationship between the time slot reservation subtask and the target path, a third mapping relationship between the time slot reservation subtask and the target time slot of the egress port of the head node, and a fourth mapping relationship between the time slot reservation subtask and a time slot list consisting of the target time slots of the egress ports of all candidate nodes in the target path; receiving the traffic corresponding to the time slot reservation subtask of the target business flow, and determining the target time slot of the egress port of each candidate node in the target path based on the second mapping relationship, the third mapping relationship and the fourth mapping relationship.
[0122] In a specific implementation, the outgoing time slot resources (i.e., target time slots) reserved on the outgoing ports of all nodes included in the target path can be notified to the head node H during the reservation process, so that the head node H can generate a list containing all the above-mentioned outgoing time slots, and the time slot list will be recorded in the status of the maintained reservation subtask.
[0123] Step 1032c: Based on the residence delay evaluation value corresponding to each candidate node in the candidate path, determine the total residence delay evaluation value of the target service flow on the candidate path.
[0124] The sum of the residence delay evaluation values corresponding to the candidate nodes in the candidate path may be determined as the total residence delay evaluation value on the candidate path.
[0125] Normally, for the path path_HE that carries deterministic service flows, the service flows need to continue to be forwarded from the egress port of the tail node E to the service side, and also face the problem of queuing and waiting. However, this egress port facing the service side does not belong to part of path_HE, that is, for path_HE, it is impossible to reserve time slot resources on this egress port. Therefore, if it is necessary to continue to support time slot-based message scheduling on the egress port facing the service side, time slot resources should be reserved on a higher-level service path (overlay path) similar to the method provided in the embodiment of the present application. At this time, path_HE will serve as a virtual link of the overlay path and provide a deterministic delay indicator. Therefore, for path_HE, the residence delay on the tail node E is only contributed by the forwarding delay within the node, and does not include the queuing delay facing the service side port. That is, according to the time slot resource information of the egress port of the candidate node and the residence delay budget value of the candidate node, the target time slot resources are reserved for the target service flow, and the residence delay evaluation value corresponding to the candidate node is determined, including:
[0126] When the candidate node is the tail node, it is not necessary to reserve time slot resources for the target service flow on the egress port of the tail node, and the intra-node forwarding delay corresponding to the tail node is determined as the residence delay evaluation value corresponding to the tail node.
[0127] In some possible implementations, in S104, the sum of the total residence delay evaluation value of the selected candidate path and the accumulated link propagation delay meets the delay requirement, including:
[0128] The sum of the total residence delay evaluation value of the selected candidate path and the accumulated link propagation delay is equal to the delay requirement; or,
[0129] A sum of a total residence delay evaluation value and an accumulated link propagation delay of the selected candidate path is determined, and a difference between the sum and the delay requirement is smaller than a second threshold.
[0130] Through the above steps, the total residence delay evaluation value of the target service flow on the candidate path is determined, and the sum of the total residence delay evaluation value and the accumulated link propagation delay is compared with the delay requirement. When the sum is equal to or close to the delay requirement of the target service flow, and time slot resources are successfully reserved for the target service flow on the egress ports of all candidate nodes, the candidate path meets the delay requirement of the target service flow and is determined as the target path for the target service flow.
[0131] In actual applications, first, when the head node H receives a data message of a specific business flow, it queries the reserved subtask status of the maintained business flow based on the characteristic word and arrival time of the business flow, matches the message to the corresponding reserved subtask of the corresponding business flow, and encapsulates the outgoing time slot saved in the reserved subtask status for the message (according to local policies, you can choose to encapsulate a single outgoing time slot reserved on the egress port of node H, or choose to encapsulate the outgoing time slot list corresponding to the entire path).
[0132] Secondly, when the intermediate node I receives a data message encapsulated with time slot information, for messages that use the method of encapsulating a single time slot, it queries and matches the mapping table entry that maps the outgoing time slot of the upstream node to the outgoing time slot of this node, obtains the mapped outgoing time slot from the table entry, and updates it to the time slot encapsulated in the message, then accesses the corresponding time slot resources of the egress port and forwards the message to the downstream node; for messages that use the method of encapsulating a time slot list, directly obtains the next outgoing time slot from the list, then accesses the corresponding time slot resources of the egress port and forwards the message to the downstream node.
[0133] The above steps are explained below in conjunction with the network structure in Figure 6:
[0134] Assume that all nodes in the network use the same slot length, 10 μs, and that the scheduling period used is equal to the dispatch period, with each scheduling period consisting of 100 slots. Furthermore, assume that the fixed forwarding delay within each node is 10 μs.
[0135] Assume that the arrival time of its burst is mapped to the sending time slot 11 of the head node S, and there is t_11 = 6us left until the end of time slot 11. Assume that the average queuing delay evaluation value is used to determine the residence delay evaluation value corresponding to the head node S, and the residence delay evaluation value is compared with the node's residence delay budget adjustment value (30+0=30us). The outgoing time slot 13 is reserved on the egress port of node S, then the time slot offset O=13-11=2, and the time slot length of the head node is 10. According to the above calculation formula for the average queuing delay evaluation value, the average queuing delay evaluation value T is obtained. ave =(0+(2*2-1)*10) / 2=15. Furthermore, the sum of the intra-node forwarding delay, remaining time, and average queuing delay evaluation value corresponding to the head node is determined as the residence delay evaluation value corresponding to the head node, which is 10+6+15=31us. This results in a cumulative residence delay deviation of 30-31=-1us.
[0136] Assume that the tail end of node S's outbound time slot 13 is mapped to node A's transmit-in-progress time slot 70, and that t_70 = 3 us remains until the end of time slot 70. Assume that the average queuing delay evaluation value is used to determine the residence delay evaluation value corresponding to node A. This residence delay evaluation value is compared with the node's internal residence delay budget adjustment value (30 - 1 = 29 us). Outbound time slot 71 is reserved on node A's egress port, resulting in a residence delay evaluation value of 10 + 3 + 10 = 23 us for node A. This results in a cumulative residence delay deviation of 29 - 23 = 6 us.
[0137] Assume that the tail end of node A's outbound time slot 71 is mapped to node C's transmit-in-progress time slot 40, and that t_40 = 5 us remains until the end of time slot 40. Assume that the average queuing delay evaluation value is used to determine the residence delay evaluation value corresponding to node C. This residence delay evaluation value is compared with the node's internal residence delay budget adjustment value (30 + 6 = 36 us). Outbound time slot 42 is reserved on node C's egress port, resulting in a residence delay evaluation value of 10 + 5 + 20 = 35 us for node C. This results in a cumulative residence delay deviation of 36 - 35 = 1 us.
[0138] Assume that the tail end of node C's outbound time slot 42 is mapped to node E's transmit-in-progress time slot 90, and that t_90 = 1 μs remains until the end of time slot 90. Assume that the average queuing delay evaluation value is used to determine the residence delay evaluation value corresponding to node E. This residence delay evaluation value is compared with the node's internal residence delay budget adjustment value (30 + 1 = 31 μs). Outbound time slot 92 is reserved on node E's egress port, resulting in a residence delay evaluation value of 10 + 1 + 20 = 31 μs for node E. This results in a cumulative residence delay deviation of 31 - 31 = 0.
[0139] On tail node D, the estimated resident delay is the intra-node forwarding delay of 10us. This is compared with the intra-node resident delay budget adjustment value (30 + 0 = 30us), resulting in a cumulative resident delay deviation of 30 - 10 = 20us. This means that after allocating time slots to the reserved subtask, the accumulated resident delay estimate is 20us less than the total resident delay budget. Assuming this difference does not exceed the preset threshold, path_SD becomes the target path for reserved subtask 1.
[0140] After the target path takes effect, the head node S can maintain the time slot list <13,71,42,92> for reserved subtask 1. Each node can create a mapping table that maps the outbound time slots of the upstream node to the outbound time slots of the local node. For example, node A creates a mapping entry for 13->71, node C creates a mapping entry for 71->42, and node E creates a mapping entry for 42->92. When the head node S receives a service flow that matches reserved subtask 1, it can choose to encapsulate the above time slot list <13,71,42,92> into the packet based on local policies, or encapsulate a single outbound time slot 13.
[0141] This approach can reduce the possibility of network congestion and provide quantitative guidance for determining target paths in the network that meet specific delay requirements, which is conducive to improving the throughput of the entire communication network.
[0142] FIG9 shows a schematic diagram of the hardware structure of an electronic device that implements an embodiment of the present application. Referring to the figure, at the hardware level, the electronic device includes a processor, and optionally, an internal bus, a network interface, and a memory. Among them, the memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage device. Of course, the computer device may also include hardware required for other services.
[0143] The processor, network interface, and memory can be interconnected via an internal bus, such as an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. These buses can be classified as address buses, data buses, and control buses. For ease of illustration, the figure uses only one bidirectional arrow, but this does not imply that there is only one bus or only one type of bus.
[0144] The memory stores programs. Specifically, the programs may include program code, which includes computer operating instructions. The memory may include internal memory and non-volatile memory, and provides instructions and data to the processor.
[0145] The processor reads the corresponding computer program from the non-volatile memory into the internal memory and then runs it, logically forming a device for locating the target user. The processor executes the program stored in the memory and specifically performs the methods disclosed in the embodiments shown in Figures 1-8 and implements the functions and benefits of each method described in the previous method embodiments, which will not be repeated here.
[0146] The methods disclosed in the embodiments shown in Figures 1-8 of the present application can be implemented in a processor or by a processor. The processor may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits in the processor or software instructions. The above processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium well-known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory, and the processor reads the information in the memory and, in conjunction with its hardware, completes the steps of the above method.
[0147] The computer device can also execute the methods described in the above method embodiments and realize the functions and beneficial effects of the methods described in the above method embodiments, which will not be repeated here.
[0148] Of course, in addition to software implementation, the electronic device of this application does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc. That is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0149] An embodiment of the present application also proposes a computer-readable storage medium, which stores one or more programs. When the one or more programs are executed by an electronic device including multiple application programs, the electronic device executes the method disclosed in the embodiments shown in Figures 1-8 and realizes the functions and beneficial effects of the various methods described in the previous method embodiments, which will not be repeated here.
[0150] The computer-readable storage medium includes a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0151] Furthermore, an embodiment of the present application also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the following process is implemented: the method disclosed in the embodiment shown in Figures 1-8 and the functions and beneficial effects of each method described in the previous method embodiment are implemented, which will not be repeated here.
[0152] In short, the above description is only a preferred embodiment of the present application and does not limit the scope of protection of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
[0153] The systems, devices, modules, or units described in the above embodiments may be implemented by computer chips or entities, or by products having certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0154] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0155] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0156] The various embodiments in this specification are described in a progressive manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the system embodiments are generally similar to the method embodiments, so the description is relatively simple. For relevant parts, refer to the description of the method embodiments.
Claims
1. A method for determining a path of a business flow, include: Obtain the delay requirement of the target service flow and the time slot resource information of each egress port of each node; Determine at least one candidate path corresponding to the target service flow based on the time slot resource information of each egress port of each node; Reserving time slot resources for the target service flow at an egress port of a candidate node in each candidate path, and determining a total residence delay evaluation value of the target service flow on the candidate path; A candidate path that satisfies a first condition is selected as the target path of the target service flow, wherein the first condition includes that time slot resources are successfully reserved for the target service flow at the egress ports of all candidate nodes constituting the selected candidate path, and the sum of the total residence delay evaluation value of the selected candidate path and the accumulated link propagation delay meets the delay requirement.
2. The method according to claim 1, in, The reserving time slot resources for the target service flow at the egress port of the candidate node in each candidate path includes: Determine the orchestration period of each candidate node in each candidate path; Determine a time slot reservation subtask based on the number of time slots reserved by the target service flow in the scheduling cycle of the candidate node; wherein the traffic corresponding to each of the time slot reservation subtasks belongs to the target service flow; For each of the time slot reservation subtasks, time slot resources are reserved for the target service flow on the egress port of each candidate node.
3. The method according to claim 2, in, The step of determining the scheduling period of each candidate node in each candidate path includes: Obtaining service burst intervals corresponding to a plurality of preset service flows; Based on the least common multiple of the service burst intervals corresponding to the multiple service flows, the scheduling period of each candidate node in each candidate path is determined.
4. The method according to claim 2, in, The determining the time slot reservation subtask based on the number of time slots reserved by the target service flow in the scheduling cycle of the candidate node includes: Determine the number of time slots reserved for the target service flow in the scheduling cycle based on a first number of service burst intervals of the target service flow in the scheduling cycle and a second number of discrete bursts in each of the service burst intervals; A time slot reservation subtask is determined according to the number of time slots reserved for the target service flow in the scheduling cycle.
5. The method according to claim 4, in, The determining, based on a first number of service burst intervals of the target service flow in the scheduling period and a second number of discrete burst amounts in each of the service burst intervals, the number of time slots reserved for the target service flow in the scheduling period comprises: Determine, based on the time slot resource information of the egress ports of all the candidate nodes included in the candidate path, a third number of reserved time slots corresponding to each discrete burst amount in the service burst interval in the scheduling cycle; The number of time slots reserved for the target service flow in the scheduling cycle is determined based on a first number of service burst intervals of the target service flow in the scheduling cycle, a second number of discrete burst amounts in each of the service burst intervals, and a third number of reserved time slots corresponding to each discrete burst amount in the scheduling cycle.
6. The method according to claim 5, in, The determining, based on the time slot resource information of the egress ports of all the candidate nodes included in the candidate path, a third number of reserved time slots corresponding to each discrete burst amount in the service burst interval in the scheduling cycle includes: Based on the time slot resource information of the egress ports of all candidate nodes included in the candidate path, determine Determine initial resource information corresponding to a single time slot of the candidate node in the scheduling cycle; When the proportion of the discrete burst amount in the service burst interval to the initial resource information corresponding to a single time slot in the scheduling period is not higher than a preset value, the discrete burst amount corresponds to a reserved time slot; or, When the proportion of the discrete burst amount in the service burst interval to the initial resource information corresponding to a single time slot in the scheduling cycle is higher than the preset value, the discrete burst amount is split into multiple sub-burst amounts according to a preset rule, and each sub-burst amount corresponds to a reserved time slot; wherein the preset rule is that each sub-burst amount contains at least one complete message, and the proportion of each sub-burst amount to the initial resource information corresponding to a single time slot in the scheduling cycle is not higher than the preset value.
7. The method according to claim 2, in, The reserving a time slot resource for the target service flow on an egress port of a candidate node in each candidate path, and determining a total residence delay evaluation value of the target service flow on the candidate path, comprises: Determine a residence delay budget value of each candidate node in the candidate path based on the delay demand and the accumulated link propagation delay of the candidate path; For each candidate node in the candidate path, according to the time slot resource information of the egress port of the candidate node and the resident delay budget value of the candidate node, reserve a target time slot for the target service flow, and determine the resident delay evaluation value corresponding to the candidate node; Based on the residence delay evaluation value corresponding to each candidate node in the candidate path, a total residence delay evaluation value of the target service flow on the candidate path is determined.
8. The method according to claim 7, in, The reserving a target time slot resource for the target service flow according to the time slot resource information of the egress port of the candidate node and the resident delay budget value of the candidate node, and determining the resident delay evaluation value corresponding to the candidate node, comprises: The cumulative residence delay evaluation value and the cumulative residence delay evaluation value of all upstream nodes corresponding to the candidate node A residence delay budget value is used to determine the residence delay deviation corresponding to the candidate node; Determining a resident delay budget adjustment value of the candidate node based on the resident delay deviation and the resident delay budget value corresponding to the candidate node; Based on the time slot resource information and the resident delay budget adjustment value of the egress port of the candidate node, determine the offset of the target time slot reserved by the candidate node for the target service flow relative to the sending time slot of the egress port of the candidate node; wherein the sending time slot is used to indicate the time slot that is in the sending state on the egress port of the candidate node at the target moment; when the candidate node is a head node, the target moment is the moment when the target service flow arrives at the egress port of the candidate node; or, when the candidate node is an intermediate node, the target moment is the moment when the end of the target time slot reserved on the egress port of the target upstream node immediately adjacent to the candidate node arrives at the egress port of the candidate node; Based on the offset, a residence delay evaluation value corresponding to the candidate node is determined.
9. The method according to claim 8, in, The determining, based on the offset, a residence delay evaluation value corresponding to the candidate node includes: Obtaining a first time slot length corresponding to a target upstream node that is immediately adjacent to the candidate node among the upstream nodes and a second time slot length corresponding to the candidate node; Determine a queuing delay evaluation value on an egress port of the candidate node based on the offset, the first time slot length, and the second time slot length; Determine the remaining time from the target time to the end of the ongoing time slot of the candidate node; The sum of the queuing delay evaluation value, the intra-node forwarding delay corresponding to the candidate node and the remaining time is determined as the residence delay evaluation value corresponding to the candidate node.
10. The method according to claim 9, in, The queuing delay evaluation value includes the best queuing delay evaluation value, the worst queuing delay evaluation value and the average queuing delay evaluation value; The step of determining the queuing delay evaluation value on the egress port of the candidate node based on the offset, the first time slot length, and the second time slot length includes: According to a preset strategy, one of the best queuing delay evaluation value, the worst queuing delay evaluation value and the average queuing delay evaluation value is selected as the queuing delay evaluation value on the egress port of the candidate node.
11. The method according to claim 10, in, The best queuing delay evaluation value T is determined according to the following formula best : T best =(O-1)*T v ; Alternatively, the worst queuing delay evaluation value T is determined according to the following formula: worst : T worst =T u +O*T v ; Alternatively, the average queuing delay evaluation value T is determined according to the following formula: ave : T ave =(T u +(2*O-1)*T v ) / 2; Wherein, O is the offset, T u is the first time slot length corresponding to the target upstream node, T v is the second time slot length corresponding to the candidate node.
12. The method according to claim 8, in, After determining the residence delay evaluation value corresponding to the candidate node based on the offset, the method further includes: Determining, based on the offset, a target time slot reserved by the candidate node for the target service flow within the scheduling period; When the idle time slot resources of the target time slot are not lower than the time slot resources required by the target service flow, and the difference between the residence delay evaluation value determined according to the offset and the residence delay budget value is less than a first threshold, it is determined that the time slot resources are successfully reserved for the target service flow at the egress port of the candidate node.
13. The method according to claim 8, in, After determining the residence delay evaluation value corresponding to the candidate node based on the offset, the method further includes: Generate a first mapping relationship between a target time slot reserved on an egress port of the target upstream node and a target time slot reserved on an egress port of the candidate node; Receive a target service flow sent by the target upstream node, and determine a target time slot reserved for the target service flow on an egress port based on the first mapping relationship.
14. The method according to claim 8, in, The step of determining, based on the time slot resource information of the egress port of the candidate node and the resident delay budget adjustment value, an offset of a target time slot corresponding to a target time slot resource reserved by the candidate node for the target service flow relative to a sending-in-progress time slot of the egress port, comprises: In the case where the candidate node is a head node, receiving a time slot reservation subtask corresponding to the target service flow; Determine the sending ongoing time slot corresponding to the candidate node based on the position mapping relationship of the arrival time of the time slot reservation subtask in the scheduling cycle of the head node and the intra-node forwarding delay corresponding to the candidate node; Based on the time slot resource information and resident delay budget adjustment value corresponding to the egress port of the head node, as well as the sending time slot in progress, determine the offset of the target time slot corresponding to the target time slot resource reserved by the candidate node for the target service flow relative to the sending time slot in progress of the egress port.
15. The method according to claim 14, in, After selecting the candidate path that meets the first condition as the target path of the target service flow, the method further includes: Generate a second mapping relationship between the time slot reservation subtask and the target path, a third mapping relationship between the time slot reservation subtask and the target time slot of the egress port of the head node, and a fourth mapping relationship between the time slot reservation subtask and a time slot list consisting of the target time slots of all candidate node egress ports in the target path; Receive the traffic corresponding to the time slot reservation subtask of the target service flow, based on the second The mapping relationship, the third mapping relationship and the fourth mapping relationship are used to determine the target time slot of the egress port of each candidate node in the target path for the traffic corresponding to the time slot reservation subtask.
16. The method according to claim 7, in, The reserving a target time slot resource for the target service flow according to the time slot resource information of the egress port of the candidate node and the resident delay budget value of the candidate node, and determining the resident delay evaluation value corresponding to the candidate node, comprises: When the candidate node is the tail node, there is no need to reserve time slot resources for the target service flow on the egress port of the tail node, and the intra-node forwarding delay corresponding to the tail node is determined as the resident delay evaluation value corresponding to the tail node.
17. The method according to claim 1, in, The sum of the total residence delay evaluation value of the selected candidate path and the accumulated link propagation delay meets the delay requirement, including: The sum of the total residence delay evaluation value of the selected candidate path and the accumulated link propagation delay is equal to the delay requirement; or, A sum of a total residence delay evaluation value and an accumulated link propagation delay of the selected candidate path is determined, and a difference between the sum and the delay requirement is less than a second threshold.
18. The method according to claim 1, in, The obtaining of the time slot resource information of each egress port of each node includes: The time slot resource information of one or more time slots of each egress port is notified to each node through an extended network protocol; the time slot resource information includes the number corresponding to the time slot, the time slot length, initial resource information, occupied resource information and idle resource information.
19. An electronic device comprising a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 1 to 18 are implemented.
20. A readable storage medium storing a program or an instruction, wherein the program or the instruction, when executed by a processor, implements the steps of the method according to any one of claims 1 to 18.
Citation Information
Patent Citations
Time-deterministic multi-path routing method based on time expansion graph
CN113438156A
Forwarding path establishment method and device and computer readable storage medium
CN113497754A
Time-sensitive network gating list implementation method and gating list entry generation method
CN113645149A
Wide-area deterministic service flow online scheduling system
CN115442313A
Scheduling method and device, equipment and storage medium
CN115914128A
Cited By
Lossless network adaptive multipath routing method oriented to heterogeneous service flow feature perception
CN121691167A
