Resource reservation method, apparatus and electronic device
By planning virtual periodic forwarding paths for deterministic flows and reserving transmission resources, the scheduling conflict problem within the deterministic network domain is resolved, enabling more efficient deterministic flow transmission.
Patent Information
- Application Number
- CN202280005110.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-08
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-12-08
AI Technical Summary
Within a deterministic network domain, data packets from multiple deterministic flows may conflict within the same scheduling period, causing transmission delays and jitter to exceed tolerance limits, thus affecting the scheduling and transmission of deterministic flows.
By planning Virtual Periodic Forwarding Paths (VPFP) for deterministic flows and reserving transmission resources for the scheduling period on each node, the goal outgoing interface of each node is ensured to transmit deterministic flows within the appropriate scheduling period, thus avoiding scheduling conflicts.
It effectively avoids scheduling conflicts between multiple deterministic streams, reduces jitter within the deterministic network domain, and improves transmission accuracy and reliability.
Smart Images

Figure CN118511482B_ABST
Abstract
Description
Technical Field
[0001] This application relates to network communication technology, and in particular to resource reservation methods, devices and electronic equipment. Background Technology
[0002] Within a deterministic network domain, scheduling conflicts of deterministic flows frequently occur. For example, data packets from three deterministic flows—flow1, flow2, and flow3—are forwarded from different edge devices to the same aggregation device and need to be forwarded out within the same scheduling cycle on the same outgoing interface of that aggregation device. However, the forwarding of data packets from flow1, flow2, and flow3 within the aforementioned scheduling cycle may exceed the forwarding capacity of that cycle, causing scheduling conflicts when flow1, flow2, and flow3 are scheduled for forwarding within that cycle, thus affecting the transmission of deterministic flows. Summary of the Invention
[0003] This application provides a resource reservation method, apparatus, and electronic device to resolve scheduling conflicts of deterministic flows within a deterministic network domain.
[0004] The embodiments of this application provide the following technical solutions:
[0005] A resource reservation method applied to a Management / Control Plane Entity (MCPE), the method comprising:
[0006] A Virtual Periodic Forwarding Path (VPFP) is determined for the deterministic flow; the VPFP includes at least one node in the VPFP other than the tail node that has a scheduling cycle mapping relationship with the next-hop node; the scheduling cycle mapping relationship refers to the mapping relationship between the scheduling cycle of the target outgoing interface for transmitting the deterministic flow on any node in the VPFP other than the tail node and the scheduling cycle of the target outgoing interface for transmitting the deterministic flow on the next-hop node.
[0007] For each target outgoing interface on each node in the VPFP, a target scheduling period for scheduling the transmission of the deterministic flow is planned; the target scheduling period of the target outgoing interface on any node in the VPFP other than the first node is determined based on the scheduling period mapping relationship between the current node and the previous hop node, and the target scheduling period of the target outgoing interface on the previous hop node.
[0008] From the available transmission resources corresponding to each target scheduling period of the target outgoing interface on each node in the VPFP, target transmission resources are reserved for transmitting the deterministic flow within that target scheduling period, so that the deterministic flow can be transmitted through the target transmission resources allocated to the target outgoing interface on each node in the VPFP for each target scheduling period.
[0009] This embodiment provides a resource distribution method, which is applied to network nodes, and the method includes:
[0010] The system receives forwarding information for a deterministic flow to be transmitted from a Management / Control Plane Entity (MCPE). This forwarding information includes at least: Virtual Periodic Forwarding Path (VPFP) configuration information and Virtual Periodic Forwarding Channel (VPFC) configuration information. The VPFP configuration information includes at least a VPFP identifier. The VPFP identifier represents the VPFP of the deterministic flow. Each node in the VPFP, except the tail node, has a scheduling cycle mapping relationship with the next-hop node. This scheduling cycle mapping relationship refers to the mapping relationship between the scheduling cycle configured on the target outgoing interface of the VPFP for transmitting the deterministic flow and the scheduling cycle configured on the target outgoing interface of the next-hop node for transmitting the deterministic flow. The VPFC configuration information includes at least: the target scheduling cycle for scheduling the transmission of the deterministic flow on the target outgoing interface of this node, and the target transmission resources allocated for transmitting the deterministic flow during the target scheduling cycle.
[0011] Upon receiving the deterministic flow, based on the forwarding information, the target scheduling period for scheduling the transmission of the deterministic flow is scheduled at the target outgoing interface on this node.
[0012] This application provides a resource reservation device, which is applied to a Management / Control Plane Entity (MCPE). The device includes:
[0013] A path determination unit is used to determine the Virtual Periodic Forwarding Path (VPFP) for a deterministic flow; any node in the VPFP except the tail node has a scheduling cycle mapping relationship with the next-hop node; the scheduling cycle mapping relationship refers to the mapping relationship between the scheduling cycle of the target outgoing interface for transmitting the deterministic flow on any node in the VPFP except the tail node and the scheduling cycle of the target outgoing interface for transmitting the deterministic flow on the next-hop node.
[0014] The period determination unit is used to plan a target scheduling period for scheduling the transmission of the deterministic flow for the target outgoing interface on each node in the VPFP. The target scheduling period of the target outgoing interface on any node in the VPFP other than the first node is determined based on the scheduling period mapping relationship between the previous hop node and the current node, as well as the target scheduling period of the target outgoing interface on the previous hop node.
[0015] The reservation unit is used to reserve target transmission resources for transmitting the deterministic flow within each target scheduling period from the available transmission resources corresponding to each target scheduling period of the target outgoing interface on each node in the VPFP, so as to transmit the deterministic flow through the target transmission resources allocated to the target outgoing interface on each node in the VPFP for each target scheduling period.
[0016] This application provides a resource distribution device, which is applied to a network node, and includes:
[0017] A receiving unit is configured to receive forwarding information of a deterministic flow to be transmitted, issued by a Management / Control Plane Entity (MCPE). The forwarding information includes at least: Virtual Periodic Forwarding Path (VPFP) configuration information and Virtual Periodic Forwarding Channel (VPFC) configuration information. The VPFP configuration information includes at least a VPFP identifier. The VPFP identifier represents the VPFP of the deterministic flow. Each node in the VPFP, except the tail node, has a scheduling cycle mapping relationship with the next-hop node. The scheduling cycle mapping relationship refers to the mapping relationship between the scheduling cycle configured on the target outgoing interface of the VPFP for transmitting the deterministic flow and the scheduling cycle configured on the target outgoing interface of the next-hop node for transmitting the deterministic flow. The VPFC configuration information includes at least: the target scheduling cycle for scheduling the transmission of the deterministic flow on the target outgoing interface of this node, and the target transmission resources allocated for transmitting the deterministic flow during the target scheduling cycle.
[0018] The scheduling unit is used, upon receiving the deterministic flow, to schedule the transmission of the deterministic flow according to the target scheduling period of the target outgoing interface on this node, based on the forwarding information.
[0019] This application also provides a network device, which includes: a processor and a machine-readable storage medium;
[0020] The machine-readable storage medium stores machine-executable instructions that can be executed by the processor;
[0021] The processor is used to execute machine-executable instructions to implement any of the methods described above.
[0022] This application also provides a machine-readable storage medium storing machine-executable instructions that can be executed by the processor;
[0023] The machine-executable instructions are executed by the processor to implement any of the methods described above.
[0024] As can be seen from the above technical solutions, in this embodiment of the application, by determining at least one target scheduling period for transmitting the deterministic flow on the target outgoing interface of each node in the VPFP, and reserving the target transmission resources allocated for transmitting the deterministic flow within the target scheduling period from the available transmission resources corresponding to each target scheduling period of the target outgoing interface on each node in the VPFP, the deterministic flow can be transmitted through the target transmission resources allocated in each target scheduling period of the target outgoing interface on each node in the VPFP. This can avoid scheduling and transmission conflicts of multiple deterministic flows. Attached Figure Description
[0025] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0026] Figure 1 This is a network structure diagram provided for an embodiment of this application;
[0027] Figure 2 This is a schematic diagram of the scheduling cycle mapping relationship provided in the embodiments of this application;
[0028] Figure 3 A flowchart illustrating the method provided in this application embodiment;
[0029] Figure 4 A flowchart illustrating the implementation of step 302 in an embodiment of this application;
[0030] Figure 5 Flowcharts of method embodiments provided in this application;
[0031] Figure 6 Another implementation flowchart of step 302 provided in the embodiments of this application;
[0032] Figure 7 A flowchart illustrating another method embodiment provided in this application;
[0033] Figure 8 A flowchart illustrating the resource reservation process provided in this application's embodiments;
[0034] Figure 9 A flowchart illustrating the resource distribution process provided in this application embodiment;
[0035] Figure 10 This is a structural diagram of the device provided in the embodiments of this application;
[0036] Figure 11 Another device structure diagram provided for embodiments of this application;
[0037] Figure 12 This is a structural diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0038] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application.
[0039] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The singular forms “a,” “the,” and “the” used in this application are also intended to include the plural forms unless the context clearly indicates otherwise.
[0040] like Figure 1 In the network topology shown, three deterministic flows, flow1, flow2, and flow3, are converged to P3 via edge devices PE1, PE2, and PE3, respectively. Here, P3 is a service provider router (P: Provider) device, also known as an aggregation device. Here, flow1, flow2, and flow3 can also be deterministic flows generated by the aggregation of multiple service flows; this embodiment is not specifically limited to this.
[0041] Consider a scenario (unavoidable in real-world applications): three deterministic flows, flow1, flow2, and flow3, arrive at P3 and need to be scheduled and forwarded to P4 within the same scheduling period (denoted as scheduling period d) on P3. Scheduling conflicts between flow1, flow2, and flow3 may occur within scheduling period d. For example, the physical link bandwidth is 100Gbps, and the scheduling period is planned to be 10us. Approximately 125,000 bytes of data can be transmitted within any scheduling period. Assume that each deterministic flow (flow1, flow2, flow3) receives 125,000 bytes of data at P3 within 10us, but no data arrives within the subsequent 990us. From a 10us time interval perspective, each deterministic flow achieves a rate of 100Gbps; however, from a 1ms time interval perspective, each deterministic flow only achieves a rate of 1Gbps. In this scenario, if flow1, flow2, and flow3 are all scheduled for transmission on interface 3 (i.e., intf3) on P3 within scheduling period d, it is possible that the arrived service data (service data of the three deterministic flows, flow1, flow2, and flow3) cannot be sent within scheduling period d. This means that scheduling conflicts occur between the three deterministic flows within scheduling period d. Such scheduling conflicts will generate additional random queuing delays. Furthermore, due to end-to-end jitter and the jitter exceeding the tolerable jitter limit of the deterministic flows after multiple hops, the Cycle Specified Queuing and Forwarding (CSQF) cannot be satisfied, affecting the scheduled transmission of the deterministic flows.
[0042] To address the aforementioned technical problems, this application proposes a resource reservation method. Based on this resource reservation method, path planning can be performed for the deterministic flow first, and resource reservation can be performed based on the planned path to ensure that scheduling conflicts of the deterministic flow do not occur in a deterministic network domain such as a CSQF domain. That is, the planned deterministic flow will not exceed the forwarding capacity of the scheduling period in any scheduling period within the deterministic network domain.
[0043] Before describing the resource reservation method proposed in the embodiments of this application, the resource reservation mathematical model provided in the embodiments of this application will be described first:
[0044] This embodiment can establish a corresponding scheduling cycle mapping relationship for deterministic flows. Here, the scheduling cycle mapping relationship refers to the mapping relationship between the scheduling cycle of the outgoing interface (denoted as the target outgoing interface) on the first node used to transmit the deterministic flow and the scheduling cycle of the outgoing interface (denoted as the target outgoing interface) on the second node used to transmit the deterministic flow. The first node refers to any node in the network domain other than the tail node on the planned forwarding path used to forward the deterministic flow, and the second node refers to the next-hop node of the first node in the aforementioned forwarding path traversed by the deterministic flow during transmission within the deterministic network domain.
[0045] As an example, the above-mentioned scheduling cycle mapping relationship can be accomplished through measurement and calibration. Figure 2 An example illustrating the scheduling cycle mapping relationship is provided. For example... Figure 2 As shown, the first scheduling cycle of the target outgoing interface on node A is mapped to the seventh scheduling cycle of the target outgoing interface on node B. Specifically, a deterministic flow packet sent in the first scheduling cycle of the target outgoing interface on node A can be scheduled for forwarding in the seventh scheduling cycle of the target outgoing interface on node B when it arrives at node B; the other scheduling cycles of the target outgoing interface on node A follow the same pattern. Based on the above scheduling cycle mapping relationship, each scheduling cycle of the target outgoing interface on node A has the same offset as the scheduling cycle mapped to the target outgoing interface on node B.
[0046] In this embodiment, the above-mentioned scheduling cycle mapping relationship can be represented by a mapping function. Figure 2 For example, the scheduling cycle mapping relationship can be regarded as the following mapping function: the domain x is the range of the scheduling cycle of the target output interface on node A (for example, scheduling cycle 0 to scheduling cycle 7). The range of values can be obtained through the above mapping function. This range is the range of the scheduling cycle of the target output interface on node B. For example, the scheduling cycle range of the target output interface on node B is scheduling cycle 0 to scheduling cycle 7.
[0047] In this embodiment, the above scheduling cycle mapping relationship is subject to the following constraint: a scheduling cycle of the target outgoing interface on the first node is mapped to a unique scheduling cycle of the target outgoing interface on the second node. Taking nodes A and B as examples, based on the above constraint, a scheduling cycle of the target outgoing interface on node A is mapped to a unique scheduling cycle of the target outgoing interface on node B. It is not allowed for multiple scheduling cycles of the target outgoing interface on node A to be simultaneously mapped to a single scheduling cycle of the target outgoing interface on node B.
[0048] Based on the above constraints, the above scheduling cycle mapping relationship means that it is an injective function.
[0049] Still applied to Figure 1The network topology shown, taking the deterministic flow forwarding path of flow1 as an example: PE1->P1->P3, if the scheduling cycle mapping relationship between interface 0 on PE1 (denoted as intf0, used to transmit the target output interface of flow1) and interface 3 on P1 (denoted as intf3, used to transmit the target output interface of flow1) is represented by an injective function f1(x) (abbreviated as f1), the scheduling cycle mapping relationship between intf3 on P1 and intf3 on P3 (used to transmit the target output interface of flow1) is represented by an injective function f2(x) (abbreviated as f2), and the scheduling cycle mapping relationship between intf0 on PE1 and intf3 on P3 (used to transmit the target output interface of flow1) is denoted as a composite function f13(x) (abbreviated as f13), then f13(x) is expressed by the following formula: f13(x)=f2(f1(x))=(f2°f1)(x). Here, "°" indicates the composition of the two functions. Since f1 and f2 are both injective functions, we can also deduce from the above equation that f13 is also an injective function.
[0050] Similarly, taking the deterministic flow forwarding path of flow2: PE2->P1->P3 as an example, the scheduling cycle mapping relationship between intf0 on PE2 (used for transmitting the target output interface of flow2) and intf3 on P3 (used for transmitting the target output interface of flow2) is denoted as the composite function g23(x) (abbreviated as g23), where g23(x) = (g1°f2)(x). Here, g1 represents the injective function g1(x), representing the scheduling cycle mapping relationship between intf0 on PE2 (used for transmitting the target output interface of flow2) and intf3 on P1 (used for transmitting the target output interface of flow2), and f2 represents the injective function f2(x), representing the scheduling cycle mapping relationship between intf3 on P1 (used for transmitting the target output interface of flow2) and intf3 on P3 (used for transmitting the target output interface of flow2). Since g1 and f2 are injective functions, the composite function g23, which combines g1 and f2, is also an injective function. Taking the defined flow forwarding path of flow3: PE3->P2->P3 as an example, the scheduling cycle mapping relationship between intf0 on PE3 (the target output interface for transmitting flow3) and intf3 on P3 (the target output interface for transmitting flow3) is denoted as the composite function h33(x), where h33(x) = h1°h2(x). Here, h1 represents the injective function h1(x), representing the scheduling cycle mapping relationship between intf0 on PE3 (the target output interface for transmitting flow3) and intf2 on P2 (the target output interface for transmitting flow3), and h2 represents the injective function h2(x), representing the scheduling cycle mapping relationship between intf2 on P2 (the target output interface for transmitting flow3) and intf3 on P3 (the target output interface for transmitting flow3). Since h1 and h2 are injective functions, the composite function h33, which combines h1 and h2, is also an injective function.
[0051] Assuming that the three deterministic flows flow1, flow2, and flow3 converge to P3 via PE1, PE2, and PE3 respectively, and are forwarded within the same scheduling period of the outgoing interface intf3 on P3, the following situation will be obtained: f13(a1), g23(b1), and h33(c1) are the same; where a1 is the scheduling period of PE1 sending flow1 through intf0, b1 is the scheduling period of PE2 sending flow2 through intf0, and c1 is the scheduling period of PE3 sending flow3 through intf0.
[0052] If f13(a1), g23(b1), and h33(c1) are the same, all representing the scheduling period d of the outgoing interface intf3 on P3, then it means that the scheduling period a1 of intf0 of PE1 is mapped to the scheduling period d of the outgoing interface intf3 on P3, the scheduling period b1 of intf0 of PE2 is mapped to the scheduling period d of the outgoing interface intf3 on P3, and the scheduling period c1 of intf0 of PE3 is mapped to the scheduling period d of the outgoing interface intf3 on P3. Under this premise, to avoid scheduling conflicts when flow1, flow2, and flow3 are scheduled and forwarded within the aforementioned scheduling period d, based on the injective nature of the injective function itself, when planning and scheduling any of flow1, flow2, and flow3, the scheduling period of the flow at the first node can be changed. Here, the first node refers to the first node on the planned forwarding path of the flow. Taking flow1 as an example, if scheduling flow1 within the scheduling period a1 of the egress interface intf0 of PE1 (the first node on the planned forwarding path of flow) causes a scheduling conflict between flow1 and flow2, which has already been scheduled for transmission, within the scheduling period d of the egress interface intf3 of P3, then the scheduling period of flow1 at the egress interface intf0 of PE1 can be changed. For example, it can be changed from scheduling period a1 to another scheduling period different from a1, such as scheduling period c1, based on the injective function. Due to the properties of the numbers, f13(c1) is different from f13(a1), i.e., f13(c1) ≠ f13(a1). Furthermore, f13(c1) is different from g23(b1), i.e., f13(c1) ≠ g23(b1). Even if flow2 is scheduled to run within the scheduling period b1 of the outgoing interface intf0 of PE2, there will be no scheduling conflict between flow1 and flow2 within the scheduling period d of the outgoing interface intf3 of P3. The scheduling and transmission planning of flow3 is similar and will not be elaborated further.
[0053] Based on the above description, in this embodiment, under the premise that the mapping relationship of the scheduling period of the target outgoing interface on different nodes is an injective function, if a deterministic flow has a scheduling conflict with other deterministic flows at the outgoing interface of the convergence point, or a scheduling conflict occurs at a low-bandwidth outgoing interface of a non-convergence point, the scheduling period of the deterministic flow at the first node (the first node in the planned forwarding path) can be changed to eliminate the above conflict. Using this principle, in this embodiment, when reserving resources for deterministic flows, the first node in the forwarding path used to forward the deterministic flow is first determined. Starting from a scheduling period of the target outgoing interface used to transmit the deterministic flow on the first node, the target scheduling period of the target outgoing interface used to transmit the deterministic flow on each node is determined sequentially based on the data transmission requirements of the deterministic flow (the available transmission resources of the target scheduling period meet the above data transmission requirements). Here, the target scheduling period of the target outgoing interface on any node other than the first node is determined based on the mapping relationship between the scheduling period of the target outgoing interface on this node and the scheduling period of the target outgoing interface on the previous hop node, as well as the target scheduling period of the target outgoing interface on the previous hop node. The following will explain... Figure 3 The process shown is described with an example:
[0054] join Figure 3 , Figure 3 This is a flowchart illustrating a method provided in an embodiment of this application. As an example, this process can be applied to a Management / Control Plane Entity (MCPE). An MCPE is a network element abstracted to describe a traffic and service information model. It is primarily responsible for network management and control. For example, it can collect topology information and Deterministic Network (DetNet) capabilities of network nodes through Network Configuration Protocol (NETCONF) / Data Modeling Language (YANG), calculate one or more effective paths through the network based on traffic establishment requests, and select the optimal path and configure the nodes on that path for traffic transmission within the DetNet. Here, the aforementioned data modeling language is used to model the configuration and status data of NETCONF, NETCONF remote procedure calls, and NETCONF notification operations.
[0055] like Figure 3 As shown, the process may include the following steps:
[0056] Step 301: Determine the Virtual Periodic Forwarding Path (VPFP) for the deterministic flow to be transmitted.
[0057] The VPFP in this embodiment differs from a conventional forwarding path used for deterministic flows. Compared to a conventional forwarding path, the VPFP in this embodiment adds a scheduling cycle mapping relationship between any node (excluding the tail node) and the next-hop node. This scheduling cycle mapping relationship, as described above, specifically refers to the mapping relationship between the scheduling cycle configured on the target outgoing interface of any node (excluding the tail node) used for transmitting deterministic flows and the scheduling cycle configured on the target outgoing interface of the next-hop node used for transmitting deterministic flows.
[0058] As an example, the first node of the aforementioned VPFP can be the ingress node (Ingress PE) for deterministic flows entering the deterministic network domain. For example... Figure 1 As shown, PE1 is the first node in the VPFP of flow1, PE2 is the first node in the VPFP of flow2, and PE3 is the first node in the VPFP of flow3.
[0059] As an example, the tail node of the aforementioned VPFP can be an egress node (Egress PE) from which a deterministic flow exits from a deterministic network domain. For example... Figure 1 The PE5 nodes shown are the tail nodes in the VPFPs of flow1 and flow2, respectively, and the PE4 node is the tail node in the VPFP of flow3.
[0060] by Figure 1 Taking flow1 as an example, in this embodiment, the VPFP of flow1 can be: (PE1, Intf0)f1(P1, Intf3)f2(P3, Intf3)f3(P4, Intf2)f4(PE5, Intf0).
[0061] In the VPFP of flow1 above, f1 represents the mapping relationship between the scheduling period of the target output interface Intf0 on PE1 for transmitting flow1 and the scheduling period of the target output interface Intf3 on P1 for transmitting flow1. Similarly, f2 represents the mapping relationship between the scheduling period of the target output interface Intf3 on P1 for transmitting flow1 and the scheduling period of the target output interface Intf3 on P3 for transmitting flow1; f3 represents the mapping relationship between the scheduling period of the target output interface Intf3 on P3 for transmitting flow1 and the scheduling period of the target output interface Intf2 on P4 for transmitting flow1; and f4 represents the mapping relationship between the scheduling period of the target output interface Intf3 on P4 for transmitting flow1 and the scheduling period of the target output interface Intf0 on PE5 for transmitting flow1.
[0062] Similarly, applied to this embodiment, Figure 1 The VPFP of flow2 shown can be: (PE2, Intf0)g1(P1, intf3)f2(P3, intf3)f3(P4, intf2)f5(PE5, Intf1); Figure 1 The VPFP of flow3 shown can be: (PE3, intf0)h1(P2, intf2)h2(P3, intf3)h3(P4, intf1)h4(PE4, intf0). g1, f5, h1, h2, h3, h4 are similar to the descriptions of f1, f2, etc. above.
[0063] Step 302: For the target output interface on each node in the VPFP, plan the target scheduling period for scheduling the transmission of the deterministic flow.
[0064] In this embodiment, the target scheduling period of the target outgoing interface on any node other than the first node in VPFP is determined based on the scheduling period mapping relationship between the current node and the previous hop node, and the target scheduling period of the target outgoing interface on the previous hop node. Here, the scheduling period mapping relationship is described above. Specifically, the scheduling period mapping relationship between any node other than the first node (denoted as node a) and the previous hop node (denoted as node b) in VPFP refers to the mapping relationship between the scheduling period of the target outgoing interface used for transmitting deterministic flows on the previous hop node, i.e., node b, and the scheduling period of the target outgoing interface used for transmitting deterministic flows on node a.
[0065] For example, taking any node other than the first node in VPFP, i.e., node a, as an example, the previous hop node of node a is node b. The mapping relationship between the scheduling period of the target outgoing interface for transmitting deterministic flow on node b and the scheduling period of the target outgoing interface for transmitting deterministic flow on node a is represented by the mapping function f. If the target scheduling period of the target outgoing interface on node b is k, then based on the mapping function f, the scheduling period f(k) is determined from all the scheduling periods of the target outgoing interface on this node a, and the scheduling period f(k) is taken as the target scheduling period of the target outgoing interface on this node a.
[0066] In this embodiment, the target scheduling period of the target outgoing interface on the first node in VPFP can be determined based on the transmission resources required for deterministic stream transmission and the current available transmission resources (hereinafter referred to as available transmission resources) of the target outgoing interface on each node of VPFP. The following will describe this through two examples, and will not be elaborated here.
[0067] As an example, the aforementioned transmission resources (such as the transmission resources required for deterministic flows, the currently available transmission resources at the target outgoing interfaces of each VPFP node, etc.) can be characterized by bandwidth. Here, the unit of bandwidth is bits per second (bps), and correspondingly, the unit of the aforementioned transmission resources is bps.
[0068] As another embodiment, the aforementioned transmission resources may not be measured in bps, but rather based on bandwidth resources, scheduling cycle duration, interface bandwidth, and node storage resources, such as high-speed on-chip cache within the ASIC, to set the unit of measurement. For example, the unit of measurement could be bytes of a certain length. For instance, one unit of measurement could be 64 bytes. It can be seen that in this embodiment, the aforementioned unit of measurement is obtained based on three dimensions: scheduling cycle duration, interface bandwidth, and node storage resources. This facilitates the subsequent implementation of resource reservation; the following description uses the unit of measurement as an example.
[0069] Based on the above description, as an example, this example can calculate the number of measurement units required for the transmission of a deterministic stream (also called the transmission resources required for the planned transmission of the deterministic stream, which can be denoted as preset transmission resources S0, representing S0 of the above measurement units) according to the transmission requirements of the deterministic stream (such as the maximum number of bytes allowed during the transmission of the deterministic stream).
[0070] As an example, this embodiment can configure the maximum transmission resources (in the aforementioned units of measurement) for each target outgoing interface on each node in the VPFP, based on the interface characteristics of the target outgoing interface itself and the specifications of the node itself, for each scheduling cycle. For example, if the duration of the scheduling cycle for the target outgoing interface on each node in the VPFP is 10µs, and using 64 bytes as the aforementioned unit of measurement, if the target outgoing interface is a 400G interface, then the maximum transmission resources of the target outgoing interface in one scheduling cycle are approximately 7812 of the aforementioned units of measurement; if the target outgoing interface is a 100G interface, then the maximum transmission resources of the target outgoing interface in one scheduling cycle are approximately 1953 of the aforementioned units of measurement; if the target outgoing interface is a 10G interface, then the maximum transmission resources of the target outgoing interface in one scheduling cycle are approximately 195 of the aforementioned units of measurement; and if the target outgoing interface is a 1G interface, then the maximum transmission resources of the target outgoing interface in one scheduling cycle are approximately 19 of the aforementioned units of measurement.
[0071] Based on the above description, as an embodiment, step 302 can begin with a reference scheduling period (such as any scheduling period of the target outgoing interface, as illustrated in the following embodiments) of the target outgoing interface on the first node in the VPFP. Based on the currently available transmission resources of the reference scheduling period and the transmission resources required for the deterministic flow to be transmitted within that reference scheduling period, it is determined whether the reference scheduling period is a candidate scheduling period for scheduling the transmission of the deterministic flow. If not, it re-attempts to start from the next reference scheduling period of the first node or changes the transmission resources required for the deterministic flow to be transmitted within that reference scheduling period, continuing the iteration. If yes, using the transmission resources required for the deterministic flow to be transmitted within that reference scheduling period as a benchmark, the candidate scheduling period of the first node is first used as the input to the first mapping relationship in the VPFP, and the output of the mapping relationship is determined. If the available transmission resources corresponding to the scheduling period of the target outgoing interface on the next hop node are greater than or equal to the above benchmark, the iteration continues. If not, the iteration continues from the next reference scheduling period of the first node or changes the transmission resources required for the deterministic flow to be transmitted within that reference scheduling period. If yes, the iteration continues by using the output of the previous mapping relationship as the input of the next mapping relationship, and sequentially judging whether the available transmission resources corresponding to the output of each mapping relationship are greater than or equal to the above benchmark. If any one of them is not satisfied, the current iteration calculation is terminated, and the iteration continues from the next reference scheduling period of the first node or changes the transmission resources required for the deterministic flow to be transmitted within that reference scheduling period. If both are satisfied, it is successfully determined that there is a target scheduling period for scheduling the transmission of the deterministic flow on the target outgoing interface of each node in the VPFP.
[0072] It should be noted that the transmission resources required by a deterministic flow during each reference scheduling period will be less than or equal to S0 as described above, as illustrated in the examples below, and will not be elaborated here.
[0073] Step 303: Reserve target transmission resources for transmitting deterministic streams within each target scheduling period from the available transmission resources corresponding to each target scheduling period of the target outgoing interface on each node in the VPFP, so as to transmit deterministic streams through the target transmission resources allocated to each target scheduling period of the target outgoing interface on each node in the VPFP.
[0074] In this embodiment, once it is determined that each node in the VPFP has at least one target scheduling period for transmitting the deterministic flow at its target outgoing interface, the target transmission resources for transmitting the deterministic flow within that target scheduling period can be directly reserved from the idle transmission resources corresponding to the target scheduling period of the target outgoing interface at each node in the VPFP. This is equivalent to updating the idle transmission resources corresponding to the target scheduling period of the target outgoing interface at each node, and the updated idle transmission resources are less than the target transmission resources before the update.
[0075] As an example, in step 303, target transmission resources for transmitting the deterministic flow are reserved from the idle transmission resources corresponding to the target scheduling period of the target outgoing interface on each node in the VPFP. This is equivalent to establishing a Virtual Periodic Forwarding Channel (VPFC) for transmitting the aforementioned deterministic flow. The VPFC depends on the VPFP, the target scheduling period of the target outgoing interface on each node of the VPFP, and the target transmission resources for transmitting the deterministic flow within the target scheduling period. In this embodiment, the VPFC is carried in the VPFP, and one VPFP can carry multiple different VPFCs.
[0076] Furthermore, in this embodiment, to optimize resource utilization, multiple deterministic flows can be aggregated together to share a single VPFC. For example, the scheduling cycle is cyclical, assuming a cycle contains 10 scheduling cycles, each cycle is 10µs, and the time for one cycle of each scheduling cycle is 100µs. If each scheduling cycle of the target outgoing interface on the first node in the aforementioned VPFC is allocated one unit of transmission resources, and if a deterministic flow corresponding to a certain application periodically sends one unit of data every 1ms (1000µs) within one scheduling cycle (taking scheduling cycle 1 as an example), this is equivalent to the application only occupying scheduling cycle 1 of the 10th cycle, scheduling cycle 1 of the 20th cycle, and so on. Based on this, one unit of data from the deterministic flows corresponding to other applications can occupy, for example, scheduling cycle 1 of the 1st to 9th cycles, scheduling cycle 1 of the 11th to 19th cycles, and so on, thus enabling multiple deterministic flows to be aggregated together to share a single VPFC. This embodiment does not specifically limit the sharing of VPFCs.
[0077] This concludes the process. Figure 3 The process is shown below.
[0078] pass Figure 3From the flow shown, in this embodiment, at each node in the VPFP for the deterministic flow, at least one target scheduling period for transmitting the deterministic flow is determined for the target egress interface, and target transmission resources for transmitting the deterministic flow within the target scheduling period are reserved from the available transmission resources corresponding to each target scheduling period of the target egress interface at each node in the VPFP, so as to transmit the deterministic flow through the target transmission resources allocated to each target scheduling period of the target egress interface at each node in the VPFP. This can avoid scheduling conflicts between multiple deterministic flows, thereby reducing CSQF end-to-end jitter and improving the accuracy of deterministic flow transmission.
[0079] The mapping relationship between the scheduling period of the target egress interface at any node (excluding the tail node) in the VPFP and the scheduling period of the target egress interface at the next-hop node is described below:
[0080] Assuming each node in the VPFP (for example, PE1, P1, P3, P4, and P5 in the VPFP of flow1 shown in Figure 1 ) is configured (divided) with n equal-length scheduling periods, where n is greater than 1.
[0081] The mapping relationship between the scheduling period of the target egress interface at any node (excluding the tail node) in the VPFP and the scheduling period of the target egress interface at the next-hop node can be expressed by the following formula:
[0082] y=(x+k) mod n, {x|0≤x<n, x∈N, n∈N}.
[0083] where x represents the scheduling period of the target egress interface at any node (excluding the tail node) in the VPFP, y represents the scheduling period of the target egress interface at the next-hop node of any node (excluding the tail node) in the VPFP, and the relationship between y and x satisfies the above mapping relationship. k is a constant, which can be set according to the jitter range between nodes. For example, the value range of k is: 0≤k<n, k∈N, n∈N, where N represents a natural number.
[0084] For example, assuming that each node in the VPFP of flow1 shown in Figure 1 is divided into 8 equal-length scheduling periods, the mapping relationship between the scheduling period of the target egress interface at any node (excluding the tail node) in the VPFP and the scheduling period of the target egress interface at the next-hop node is one of the following 8 mapping relationships:
[0085] y=(x+0) mod 8, {x|0≤x<8, x∈N};
[0086] y=(x+1) mod 8, {x|0≤x<8, x∈N}:
[0087] y=(x+2)mod 8, {x|0≤x<8, x∈N};
[0088] y=(x+3)mod 8, {x|0≤x<8, x∈N};
[0089] y=(x+4)mod 8, {x|0≤x<8, x∈N};
[0090] y=(x+5)mod 8, {x|0≤x<8, x∈N};
[0091] y=(x+6)mod 8, {x|0≤x<8, x∈N};
[0092] y=(x+7)mod 8, {x|0≤x<8, x∈N}.
[0093] Specifically, if the above Figure 1 In the flow1 shown, f1 can be expressed as: f1(x)=(x+3)mod 8, {x|0≤x<8, x∈N}; f2 can be expressed as: f2(x)=(x+1)mod 8, {x|0≤x<8, x∈N}; f3 can be expressed as: f3(x)=(x+2)mod 8, {x|0≤x<8, x∈N}; f4 can be expressed as: f4(x)=(x+4)mod 8, {x|0≤x<8, x∈N}. Figure 1 The g1, f2, f3, and f5 in the VPFP of flow2 and the h1, h2, h3, and h4 in the VPFP of flow3 are similar and will not be described again.
[0094] The mapping relationship described above is illustrated in this embodiment. In this embodiment, the mapping relationship can be an injective function, which represents the unique scheduling cycle of the target egress interface on a node other than the tail node in VPFP, mapped to the target egress interface on the next hop node.
[0095] The available transmission resources for the aforementioned target outgoing interfaces in each scheduling cycle are described below:
[0096] In this embodiment, for ease of recording, the available transmission resources corresponding to any target outgoing interface in each scheduling cycle can be represented by the scheduling cycle resource organization structure. Here, the scheduling cycle resource organization structure can be represented by the following formula: (Node ID, Interface ID, Scheduling Cycle): (Available Transmission Resources, Initial Transmission Resources). The units for both available transmission resources and initial transmission resources can be the aforementioned measurement units.
[0097] by Figure 1Taking PE1 as an example, assuming PE1's Intf0 is a 10G interface, and the number of scheduling cycles configured for PE1's Intf0 is 8, with each scheduling cycle lasting 10µs, the maximum available transmission resources per scheduling cycle of PE1's Intf0 are approximately 195 units of the aforementioned metrics. Considering actual scheduling overhead and other factors, the maximum available transmission resources per scheduling cycle of PE1's Intf0 can be set to approximately 180 units of the aforementioned metrics. Of course, the initial transmission resources for each scheduling cycle of PE1's Intf0 are 180 units of the aforementioned metrics. Based on this, the initial resource organization structure of the scheduling cycle of PE1's Intf0 is as follows:
[0098] (PE1, Intf0, Cycle0): (180, 180);
[0099] (PE1, Intf0, Cycle1): (180, 180);
[0100] (PE1, Intf0, Cycle2): (180, 180);
[0101] (PE1, Intf0, Cycle3): (180, 180);
[0102] (PE1, Intf0, Cycle4): (180, 180);
[0103] (PE1, Intf0, Cycle5): (180, 180);
[0104] (PE1, Intf0, Cycle6): (180, 180);
[0105] (PE1, Intf0, Cycle7): (180, 180).
[0106] Again Figure 1 Taking P1 as an example, assuming P1's Intf3 is a 100G interface, the number of scheduling cycles configured for P1's Intf3 is 8, the duration of each scheduling cycle is 10µs, and the maximum available transmission resources per scheduling cycle are approximately 1953 units of the aforementioned measurement. Considering factors such as actual scheduling overhead, the maximum available transmission resources per scheduling cycle of Intf3 on P1 can be set to approximately 1900 units of the aforementioned measurement. Correspondingly, the initial transmission resources per scheduling cycle of Intf3 on P1 are 1900 units of the aforementioned measurement. Based on this, the initial resource organization structure of the scheduling cycle of Intf3 on P1 is as follows:
[0107] (P1, Intf3, Cycle0): (1900, 1900);
[0108] (P1, Intf3, Cycle1): (1900, 1900);
[0109] (P1, Intf3, Cycle2): (1900, 1900);
[0110] (P1, Intf3, Cycle3): (1900, 1900);
[0111] (P1, Intf3, Cycle4): (1900, 1900);
[0112] (P1, Intf3, Cycle5): (1900, 1900);
[0113] (P1, Intf3, Cycle6): (1900, 1900);
[0114] (P1, Intf3, Cycle7): (1900, 1900).
[0115] It should be noted that in this embodiment, the available transmission resources of the target output interface change in each scheduling cycle. For example, taking Intf0 of PE1 as an example, when the above-mentioned transmission resource S0 is reserved in the available transmission resources corresponding to Cycle7 of Intf0 on PE1 through step 303 above to transmit flow1, the available transmission resources of Cycle7 of Intf0 on PE1 will change. The available transmission resources after the change are reduced by the above-mentioned transmission resource S0 compared with the original. If S0 is 50 of the above-mentioned measurement units, then the available transmission resources of Cycle7 of Intf0 on PE1 change from 180 to 130. Correspondingly, the resource organization structure of the scheduling cycle corresponding to Intf0 on PE1 (PE1, Intf0, Cycle7):(180, 180) can be changed to (PE1, Intf0, Cycle7):(130, 180). The following will describe how to reserve resources with examples, which will not be elaborated here.
[0116] The following describes how, in step 302 above, a target scheduling period is planned for scheduling deterministic flows for each node in the VPFP, targeting the target outgoing interface:
[0117] In this embodiment, a scheduling period can be specified according to actual needs to schedule the transmission of deterministic flows, which is referred to as the specified scheduling period scenario. In the specified scheduling period scenario, at least one scheduling period of the target outgoing interface on the first node in the VPFP can be specified to schedule the transmission of deterministic flows; the specified scheduling period can be called the specified scheduling period. The following describes how to implement step 302 based on the specified scheduling period scenario:
[0118] See Figure 4 , Figure 4 This is a flowchart illustrating the implementation of step 302 in an embodiment of this application. Figure 4 As shown, the process may include the following steps:
[0119] Step 401: Obtain the reference scheduling period used for scheduling deterministic flows at the target outgoing interface on the first node in VPFP.
[0120] In this embodiment, the reference scheduling period includes at least one scheduling period on the target outgoing interface of the first node in the VPFP used for transmitting deterministic flows. Applied to scenarios with a specified scheduling period, the reference scheduling period here can be a specified scheduling period.
[0121] Step 402: For the reference scheduling period of the target output interface on the first node, start the period determination process described in steps 403 to 404.
[0122] As an example, when the number of reference scheduling periods for the target outgoing interface on the first node is 1, the following steps 403 to 404 can be executed for that reference scheduling period; when the number of reference scheduling periods for the target outgoing interface on the first node is greater than 1, the reference scheduling periods are traversed in a specified order, such as in ascending order of reference scheduling period numbers, and the following steps 403 to 404 are executed for the traversed reference scheduling periods. After the execution of this process, the above reference scheduling periods are traversed again until all reference scheduling periods have been traversed.
[0123] Step 403: Determine whether the currently available transmission resources corresponding to the current scheduling period of the target outgoing interface on the current node are greater than or equal to the specified transmission resource S1; if so, proceed to step 404.
[0124] As described above, the scheduling cycle resource organization structure of each node is: (node identifier, interface identifier, scheduling cycle): (available transmission resources, initial transmission resources). Therefore, step 403 can determine whether the currently available transmission resources corresponding to the current scheduling cycle are greater than or equal to the specified transmission resource S1 based on the scheduling cycle resource organization structure of the target outgoing interface on the current node. Of course, if it is determined that the currently available transmission resources corresponding to the current scheduling cycle are less than the specified transmission resource S1, the cycle determination process can be directly terminated.
[0125] In this embodiment, the specified transmission resource S1 represents the resource required for the deterministic flow to be transmitted within the specified reference scheduling period, which is less than or equal to the transmission resource required by the deterministic flow in a complete scheduled transmission (preset transmission resource S0). Here, the specified transmission resource S1 is the resource required for transmission within one reference scheduling period, and the specified transmission resource S1 may be different in different reference scheduling periods. The preset transmission resource S0, as described above, is the transmission resource required by the deterministic flow in a complete scheduled transmission. When the complete scheduled transmission contains only one of the aforementioned reference scheduling periods, the specified transmission resource S1 is equal to the preset transmission resource S0. When the complete scheduled transmission contains two or more reference scheduling periods, the specified transmission resource S1 is less than the preset transmission resource S0, and the sum of the specified transmission resources S1 in all reference scheduling periods is equal to the preset transmission resource S0.
[0126] Step 404: Determine the current scheduling period as the candidate scheduling period for the target outgoing interface on the current node; if the current node is not the tail node, determine the next scheduling period based on the current scheduling period and the scheduling period mapping relationship between the current node and the next hop node; determine the next scheduling period as the current scheduling period, take the next hop node as the current node, and return to step 403; if the current node is the tail node, determine the candidate scheduling period for the target outgoing interface on each node in the VPFP determined in this process as the target scheduling period for scheduling the transmission of deterministic flows.
[0127] For example, if the scheduling cycle mapping relationship (i.e., the mapping function) between the current node and the next hop node is f, and the current scheduling cycle is j, then the scheduling cycle f(j) of the target output interface on the next hop node will be used as the next scheduling cycle.
[0128] Ultimately, through Figure 4 The process shown determines the target scheduling period for transmitting deterministic streams on each node in VPFP.
[0129] The following combines the resource requirements list and Figure 4 The process shown is illustrated in Example 1:
[0130] Example 1:
[0131] In this embodiment 1, the deterministic flow requirements can first be transformed into at least one resource requirement (Demand) that facilitates resource reservation. The combination of the transformed resource requirements constitutes the aforementioned deterministic flow requirements. The transformation method can be set according to actual needs, and will not be elaborated here.
[0132] To facilitate the management of transformed resource requirements, they can be recorded in a resource requirement list, such as: {Resource Requirement 1, Resource Requirement 2, ...}.
[0133] In this embodiment, the structure of each resource requirement can be as follows:
[0134] (VPFP): (Outgoing interface, scheduling period, resource requirement, minimum resource requirement).
[0135] In the above structure, "VPFP" represents a deterministic flow VPFP, such as... Figure 1 The VPFP of flow1 is shown. It can be seen that in this embodiment, each resource requirement has an associated VPFP. Of course, multiple different resource requirements can be associated with the same VPFP or different VPFPs. This embodiment does not specifically limit this; it depends on the actual business requirements of the deterministic flow.
[0136] In the above structure, "outgoing interface" refers to the interface on the first node of the VPFP used to transmit the aforementioned deterministic flow, which is also the target outgoing interface.
[0137] When applied to a scenario with a specified scheduling period, the "scheduling period" in the above structure indicates the specified scheduling period of the target output interface on the first node to schedule the transmission of the aforementioned deterministic flow.
[0138] In the above structure, "resource requirement" refers to the transmission resources required for a deterministic flow to be transmitted within a "scheduling period" in this structure, which is the specified transmission resource S1 mentioned above. "Minimum resource number" is set based on the purpose of ensuring that the same data packet of a deterministic flow will not be scheduled for transmission across scheduling periods. For example, if the transmission of each data packet of a deterministic flow requires 2 of the above-mentioned units of transmission resources, then the "minimum resource number" can be set to 2, that is, at least 2 of the above-mentioned units of transmission resources are allocated from the same scheduling period.
[0139] In this embodiment, for ease of description, the above-mentioned resource requirement structure (VPFP): (outgoing interface, scheduling period, number of resource requirements, minimum number of resources) can be simplified as:
[0140] (VPFP): (oif, cycle, res, min).
[0141] In this context, VPFP is as described above, oif represents the target outgoing interface, cycle represents the specified scheduling period, res represents the resource requirement, and min represents the minimum resource requirement. Here, res is greater than or equal to min.
[0142] For example, for a deterministic flow, if the Cycle 0-7 scheduling period of the target outgoing interface (intf0 for example) on the first node in the VPFP is designated for scheduling the transmission of this deterministic flow, and the transmission resources required for the deterministic flow to be transmitted within any scheduling period of Cycle 0-7 are one unit of the aforementioned transmission resources. Furthermore, if the "minimum number of resources" for scheduling the transmission of this deterministic flow within a scheduling period is one unit of the aforementioned transmission resources, then the resource requirements in the resource requirement list corresponding to this deterministic flow can be represented as follows:
[0143] {
[0144] (VPFP):(intf0, Cycle0, 1, 1);
[0145] (VPFP):(intf0, Cycle1, 1, 1);
[0146] (VPFP):(intf0, Cycle2, 1, 1);
[0147] (VPFP):(intf0, Cycle3, 1, 1);
[0148] (VPFP):(intf0, Cycle4, 1, 1);
[0149] (VPFP):(intf0, Cycle5, 1, 1);
[0150] (VPFP):(intf0, Cycle6, 1, 1);
[0151] (VPFP):(intf0, Cycle7, 1, 1);
[0152] }
[0153] Based on the above description, the following will still use... Figure 1 Example 1 is described using the network topology shown as an example:
[0154] Assuming the above Figure 1 The VPFP (denoted as VPFP1) of flow1 is: (PE1, Intf0)f1(P1, Intf3)f2(P3, Intf3)f3(P4, Intf2)f4(PE5, Intf0). The resource requirement list corresponding to flow1 is as follows:
[0155] {
[0156] (VPFP1):(intf0, Cycle0, 1, 1);
[0157] (VPFP1):(intf0, Cycle1, 1, 1);
[0158] (VPFP1):(intf0, Cycle2, 1, 1);
[0159] (VPFP1):(intf0, Cycle3, 1, 1);
[0160] (VPFP1)(intf0, Cycle4, 1, 1);
[0161] (VPFP1):(intf0, Cycle5, 1, 1);
[0162] (VPFP1):(intf0, Cycle6, 1, 1);
[0163] (VPFP1):(intf0, Cycle7, 1, 1);
[0164] }
[0165] For the above resource requirement list, execute as follows: Figure 5 The processing flow shown is as follows:
[0166] Step 501: Set the first resource requirement in the resource requirement list above as the current resource requirement. Then proceed to step 502.
[0167] This embodiment executes the process starting with the first resource requirement, but other orders are also possible; this embodiment is not specifically limited to any particular order.
[0168] Step 502: Obtain the VPFP associated with the current resource demand, and set the first specified scheduling period of the target output interface on the first node in the VPFP as the current scheduling period j.
[0169] Here, if (VPFP1):(intf0, Cycle0, 1, 1), then the VPFP associated with the current resource requirement is VPFP1 in the current resource requirement. The first node in VPFP1 is denoted as IngressPE, the target output interface of the first node in VPFP1 is intf0, and the last node in VPFP1 is the tail node, denoted as EgressPE.
[0170] If there are multiple specified scheduling periods for the target outgoing interface on the first node in VPFP, step 502 starts the search from the first specified scheduling period of the target outgoing interface on the first node. Of course, other orders can also be followed. This embodiment is not specifically limited.
[0171] Step 503: If cn.ci.ar[j] >= res, determine the current scheduling period j as a candidate scheduling period for scheduling deterministic flow transmission on the target outgoing interface of the current node, and execute step 504. If not satisfied, execute step 508.
[0172] Wherein, cn.ci.ar[j] represents the currently available transmission resources corresponding to the current scheduling period j of the target outgoing interface on the current node. res is the resource demand number in the current resource demand, which represents the transmission resources required for the deterministic flow to be transmitted in the current scheduling period, that is, the specified transmission resource S1 mentioned above.
[0173] If cn.ci.ar[j] >= res, it indicates that the available transmission resources corresponding to the current scheduling period j meet the transmission resources required for the deterministic flow to be transmitted within the current scheduling period. In this case, the current scheduling period j can be directly determined as a candidate scheduling period for the target outgoing interface on the current node to schedule the transmission of the deterministic flow.
[0174] Step 504: If the current node is not an EgressPE of a VPFP, proceed to step 505; if the current node is an EgressPE of a VPFP, proceed to step 506.
[0175] Step 505: Based on the current scheduling period j and the mapping relationship between the scheduling period of the target output interface on the current node and the scheduling period of the target output interface on the next hop node in VPFP, determine the next scheduling period from all the scheduling periods of the target output interface on the next hop node, take the next scheduling period as the current scheduling period j, take the next hop node as the current node, and return to execute step 503.
[0176] For example, if the mapping relationship (i.e. the mapping function) is f and the current scheduling period is j, then the scheduling period f(j) of the target output interface on the next hop node will be used as the next scheduling period.
[0177] Step 506: Record the resource allocation result corresponding to the current resource requirement. If the current resource requirement is the last resource requirement in the resource requirement list, it means that all resource requirements have been met, and proceed to step 507; otherwise, set the next resource requirement in the resource requirement list as the current resource requirement, and return to step 502.
[0178] Step 506 is executed under the premise that the current node is the EgressPE of the VPFP. If the current node is the EgressPE of the VPFP, it means that all nodes in the entire path of the VPFP associated with the current resource requirement meet the current resource requirement. In this case, as an example, the candidate scheduling period of the target outgoing interface of each node in the VPFP associated with the current resource requirement can be determined as the target scheduling period, and the resource allocation result (Result) corresponding to the current resource requirement can be recorded through step 506.
[0179] In this embodiment, the resource allocation result may include the VPFP associated with the current resource demand, the target outgoing interface on the first node of the VPFP for transmitting deterministic flows, the target scheduling period on the target outgoing interface for scheduling the transmission of deterministic flows, and the target transmission resource for scheduling the transmission of deterministic flows within the target scheduling period. Here, the target transmission resource is the aforementioned res (i.e., the aforementioned specified transmission resource S1).
[0180] As an example, the resource allocation result can be represented by the following formula: (VPFP): (target outgoing interface, target scheduling period, target transmission resources). In a specific implementation, the resource allocation result can be recorded in a resource allocation result list (ResultList), and the ResultList structure is represented as: {Result1, Result2, ...}.
[0181] Still with Figure 1 Taking the VPFP (denoted as VPFP1) of flow1 as an example, VPFP1: (PE1, Intf0)f1(P1, Intf3)f2(P3, Intf3)f3(P4, Intf2)f4(PE5, Intf0). The resource requirement list corresponding to flow1 is as described above. Combining this with the representation of the resource allocation results above, the resource requirement allocation result list here can be:
[0182] {
[0183] (VPFP):(intf0, Cycle0, 1),
[0184] (VPFP):(intf0, Cycle1, 1),
[0185] (VPFP):(intf0, Cycle2, 1),
[0186] (VPFP):(intf0, Cycle3, 1),
[0187] (VPFP):(intf0, Cycle4, 1),
[0188] (VPFP):(intf0, Cycle5, 1),
[0189] (VPFP):(intf0, Cycle6, 1),
[0190] (VPFP):(intf0, Cycle7, 1),
[0191] }
[0192] Step 507: End resource allocation for deterministic flow.
[0193] Step 508: Release the target transport resources that have been allocated to the deterministic stream.
[0194] If applied to the above list of resource allocation results, the target transmission resources corresponding to the target scheduling period of the target outgoing interface on each node in the VPFP indicated in each resource allocation result will be released.
[0195] This concludes the process. Figure 5 The process is shown below.
[0196] pass Figure 5 The process shown demonstrates how to determine the target scheduling period of the target output interface on each node in the VPFP under a specified scheduling period scenario.
[0197] In this embodiment, the scheduling period for the deterministic flow may not be specified. This means that any scheduling period of the target outgoing interface on the first node in the VPFP can be used to schedule the transmission of the deterministic flow. This scenario can be called the scenario with a non-specified scheduling period. The following describes how to implement step 302 above in the scenario with a non-specified scheduling period:
[0198] See Figure 6 , Figure 6 Another implementation flowchart of step 302 provided in an embodiment of this application. For example... Figure 6 As shown, the process may include the following steps:
[0199] Step 601: For the reference scheduling period used for scheduling deterministic flows on the first node in VPFP, determine the reference scheduling period as a candidate scheduling period for scheduling the transmission of the aforementioned deterministic flows, and initiate the period determination process from step 602 to step 605.
[0200] For scenarios involving non-specified scheduling cycles, the corresponding resource requirement format can be: (VPFP):(oif, InvalidCycle, res, min). Here, VPFP, oif, res, and min are as described above. InvalidCycle represents a non-specified scheduling cycle. It should be noted that InvalidCycle is used for ease of description and is not intended as a limitation; other symbols can also be used to represent non-specified scheduling cycles.
[0201] Based on this, as an example, each scheduling cycle of the target outgoing interface on the first node in the VPFP can be traversed. If the available transmission resources of the current scheduling cycle are greater than or equal to the above min, then the scheduling cycle is determined as a reference scheduling cycle. For the reference scheduling cycle, the above step 601 is executed.
[0202] As another embodiment, at least one reference scheduling period can be selected from all scheduling periods of the target outgoing interface on the first node in the VPFP, wherein the selected reference scheduling period currently has available transmission resources greater than or equal to the aforementioned min. Then, for each reference scheduling period, step 601 described above is performed.
[0203] Step 602: Determine whether the currently available transmission resources corresponding to the reference scheduling period are greater than or equal to the initial resource requirement required for the deterministic flow to be scheduled and transmitted within the reference scheduling period. If yes, determine the current baseline transmission resources as the initial resource requirement and execute the following step 603; if no, determine the current baseline transmission resources as the reference resource requirement, and the reference resource requirement is less than the initial resource requirement, and execute the following step 603.
[0204] As an example, if the reference scheduling period is the scheduling period of the first executed cycle of the deterministic flow at the target outgoing interface on the first node, then the initial resource requirement can be the specified transmission resource S2 assigned during the scheduling of the deterministic flow. For example, the specified transmission resource S2 can be the number of resource requirements res in the current resource requirement. Corresponding to the resource requirement format in the above scenario without a specified scheduling period, if the resource requirement is: (VPFP1):(intf0, InvalidCycle, 10, 2), then the specified transmission resource S2 can be 10 of the above measurement units.
[0205] As another embodiment, if the reference scheduling period is not the scheduling period of the first executed cycle determination process of the target outgoing interface on the first node, then the initial resource requirement is determined based on S2 and d0. Here, d0 represents the sum of the target transmission resources required for transmitting deterministic streams within each target scheduling period of the determined target outgoing interface on the first node. For example, if the difference between S2 and d0 is greater than or equal to the above min, then the initial resource requirement can be the difference between S2 and d0; if the difference between S2 and d0 is less than the above min, then the initial resource requirement can be min. For details, please refer to Embodiment 2 below, which will not be repeated here.
[0206] In this embodiment, the reference resource requirement is represented by the product of k2 and min (i.e., k2*min). cn.ci.ar[c] represents the available transmission resources corresponding to the current scheduling period, and min is as described above. Indicates rounding down.
[0207] Step 603: Based on the current scheduling cycle and the scheduling cycle mapping relationship between the current node and the next hop node, determine the next scheduling cycle from all the scheduling cycles of the target output interface on the next hop node, take the next scheduling cycle as the current scheduling cycle, and take the next hop node as the current node.
[0208] For example, if the scheduling cycle mapping relationship (i.e., the mapping function) between the current node and the next hop node is f, and the current scheduling cycle is j, then the scheduling cycle f(j) of the target output interface on the next hop node will be used as the next scheduling cycle.
[0209] Step 604: Determine whether the available transmission resources corresponding to the current scheduling period are greater than or equal to the current baseline transmission resources. If so, proceed to step 605.
[0210] As an example, if in step 604 it is found that the available transmission resources corresponding to the current scheduling period are less than the current baseline transmission resources, it may further include: checking whether the available transmission resources corresponding to the current scheduling period meet the preset resource update conditions; if so, updating the current baseline transmission resources, the updated current baseline transmission resources are less than the previous current baseline transmission resources, and then returning to execute step 604.
[0211] As an example, checking whether the available transmission resources corresponding to the current scheduling period meet the preset resource update conditions may include: calculating... The calculated result k1 is obtained. If k1 is greater than 0, it is determined that the available transmission resources corresponding to the current scheduling period meet the resource update conditions; otherwise, it is determined that the available transmission resources corresponding to the current scheduling period do not meet the resource update conditions. Here, cn.ci.ar[j] represents the available transmission resource corresponding to the current scheduling period, and min is as described above. Correspondingly, the updated current baseline transmission resource is the product of k1 and min (i.e., k1 * min).
[0212] It should be noted that, in this embodiment, if it is found that the available transmission resources corresponding to the current scheduling period do not meet the preset resource update conditions, the process for the current candidate scheduling period on the first node ends, and if the current candidate scheduling period is not the last reference scheduling period of the first node, the process is carried out according to the above... Figure 6 The process shown continues to execute the above process for the next reference scheduling cycle.
[0213] Step 605: Determine the current scheduling period as the candidate scheduling period for the target outgoing interface on the current node, and return to step 603 if the current node is not the tail node. If the current node is the tail node, determine the candidate scheduling period for the target outgoing interface on each node in the VPFP determined in this process as the target scheduling period for scheduling the transmission of deterministic streams.
[0214] Ultimately, through Figure 6 The process shown determines the target scheduling period for transmitting deterministic flows at the target output interface of each node in VPFP.
[0215] The following combines the resource requirements list and Figure 6The process shown is illustrated in Example 2:
[0216] Example 2:
[0217] In scenarios where a non-specified scheduling period is applied, in this embodiment 2, the scheduling period in the resource requirements is not a specified scheduling period; it no longer specifies the scheduling period of the target outgoing interface on the first node to schedule the transmission of deterministic flows. For example, still using... Figure 1 Taking flow1 in the network shown as an example, in a scenario with a non-specified scheduling cycle, the resource list DemandList of flow1 can be represented as: {(VPFP):(intf0,InvalidCycle,10,2)}. InvalidCycle represents a non-specified scheduling cycle.
[0218] To make this embodiment 2 clearer, the following description uses a resource requirement list of a deterministic flow (denoted as flow4) as an example. The resource requirement list of flow4 is as follows:
[0219] {
[0220] (VPFP1):(intf0,InvalidCycle,10,2);
[0221] (VPFP2):(intf0,InvalidCycle,8,2);
[0222] }
[0223] Specifically, VPFP1 is: (PE1, Intf0)f1(P1, Intf3)f2(P3, Intf3)f3(P4, Intf2)f4(PE5, Intf0). VPFP2 is: (PE2, Intf0)g1(P1, Intf3)f2(P3, Intf3)f3(P4, Intf2)f5(PE5, Intf1).
[0224] For the above resource requirement list, execute as follows: Figure 7 The processing flow shown is as follows:
[0225] Step 701: Let the first resource requirement in the above resource requirement list be the current resource requirement.
[0226] This embodiment executes the process starting with the first resource requirement, but other orders are also possible; this embodiment is not specifically limited to any particular order.
[0227] Step 702: Obtain the VPFP associated with the current resource demand, traverse the scheduling period of the target output interface on the first node of the VPFP, and take the traversed scheduling period as the current scheduling period j.
[0228] Here, if the current resource requirement is (VPFP1):(intf0,InvalidCycle,10,2), then the VPFP associated with the current resource requirement is VPFP1. In VPFP1, the target output interface on the first node is intf0, the first node in VPFP1 is denoted as IngressPE, and the last node in VPFP1 is the tail node, denoted as EgressPE.
[0229] Step 702 begins the traversal from the first scheduling cycle of the target output interface on the first node. Of course, other orders can also be followed, and this embodiment is not specifically limited.
[0230] Step 703: Determine whether the available transmission resources corresponding to the current scheduling period j are greater than or equal to the initial resource requirement (denoted as d1) required for the deterministic flow to be transmitted within the current scheduling period j. If yes, determine the current scheduling period j as the current candidate scheduling period (represented by c) of the target outgoing interface on the first node, and execute step 704. Otherwise, execute step 707.
[0231] If the current scheduling period j is the first scheduling period of the target outgoing interface intf0 on the first node, then the initial resource requirement d1 required for the deterministic flow to be transmitted within this current scheduling period j can be the resource requirement number res (represented by specifying the transmission resource S2). For example, if the current resource requirement is (VPFP1):(intf0, InvalidCycle, 10, 2), the resource requirement number res (represented by specifying the transmission resource S2) can be 10 of the above-mentioned units of measurement.
[0232] If the current scheduling period j is not the first scheduling period of the target output interface intf0 on the first node, then the initial resource requirement d1 required for the above deterministic flow to be transmitted within the current scheduling period j is not the above S2 (it is less than S2), as described in step 713 below, which will not be repeated here.
[0233] Step 704: Based on the mapping relationship between the scheduling period of the target outgoing interface on the current node and the scheduling period of the target outgoing interface on the next hop node in VPFP, and the current scheduling period j, determine the next scheduling period from all the scheduling periods of the target outgoing interface of the next hop node, take the next scheduling period as the current scheduling period j, and take the next hop node as the current node. Then execute step 705.
[0234] For example, if the mapping relationship (i.e. the mapping function) is f and the current scheduling period is j, then the scheduling period f(j) of the target output interface on the next hop node is taken as the next scheduling period, and the next scheduling period is taken as the current scheduling period j.
[0235] Step 705: If cn.ci.ar[j] >= d1, proceed to step 706; otherwise, proceed to step 707.
[0236] In step 705, cn.ci.ar[j] represents the available transmission resources corresponding to the current scheduling period j of the target outgoing interface on the current node. d1 is as described above.
[0237] Step 706: Determine the current scheduling period j as a candidate scheduling period for scheduling the transmission of deterministic flows on the current node. If the current node is not the EgressPE of VPFP, return to step 704. If the current node is the EgressPE of VPFP, execute step 714.
[0238] Step 707: Identify whether the current candidate scheduling period c of the target outgoing interface on the first node is the last scheduling period of the target outgoing interface on the first node. If not, proceed to step 708; if yes, proceed to step 718.
[0239] Step 708, calculate k1 If k1 is 0, then proceed to step 709. If k1 is greater than 0, then determine the current base transmission resource (denoted as BasicDemandres) as the product of k1 and min (represented by k1*min), and then proceed to step 710.
[0240] Here, cn.ci.ar[j] is as described above. The value indicates rounding. min represents the minimum number of resources required in the current resource requirement. For example, if the current resource requirement is (VPFP1):(intf0,InvalidCycle,10,2), then min is 2 of the above units of measurement.
[0241] Step 709: Take the above initial resource requirement d1 as the initial resource requirement required for the transmission of the deterministic flow in the next reference scheduling period of the current candidate scheduling period c of the target outgoing interface on the first node, take the next scheduling period as the current scheduling period j, and return to step 703.
[0242] Step 710: Determine the current scheduling period j as a candidate scheduling period for scheduling the transmission of deterministic flows on the current node. If the current node is not the EgressPE of VPFP, then proceed to step 711. If the current node is the EgressPE of VPFP, then proceed to step 714.
[0243] Step 711: Based on the mapping relationship between the scheduling period of the target outgoing interface on the current node and the scheduling period of the target outgoing interface on the next hop node in VPFP, and the current scheduling period j, determine the next scheduling period from all the scheduling periods of the target outgoing interface on the next hop node, take the next scheduling period as the current scheduling period j, and take the next hop node as the current node. Then execute step 712.
[0244] Step 711 is similar to step 704 above, and will not be described again.
[0245] Step 712: If cn.ci.ar[j] >= BasicDemandres, proceed to step 713; otherwise, return to step 708.
[0246] In this step 712, cn.ci.ar[j] and BasicDemandres are as described above.
[0247] Step 713: Determine the current scheduling period j as a candidate scheduling period for scheduling the transmission of deterministic flows on the current node. If the current node is not the EgressPE of VPFP, return to step 711. If the current node is the EgressPE of VPFP, execute step 714.
[0248] Step 714: Record the current resource allocation result.
[0249] Step 714 is performed assuming the current node is an EgressPE of a VPFP. If the current node is an EgressPE of a VPFP, then as an example, the current resource allocation result (Result) can be recorded. This current resource allocation result corresponds to the aforementioned current resource requirements.
[0250] In this embodiment, the current resource allocation result may include the VPFP associated with the current resource demand, the target outgoing interface on the first node of the VPFP used for transmitting deterministic flows, the target scheduling period of the target outgoing interface used for scheduling the transmission of deterministic flows, and the target transmission resources used for scheduling the transmission of deterministic flows within the target scheduling period. As an example, the above-mentioned current resource allocation result can be expressed by the following formula: (VPFP): (target outgoing interface, target scheduling period, target transmission resources).
[0251] The target scheduling period is the current candidate scheduling period on the first node in the VPFP. The target transmission resource refers to the latest current reference transmission resource as described above. In this embodiment, once the target scheduling period of the target outgoing interface on the first node in the VPFP is determined, the target scheduling periods of the target outgoing interfaces on other nodes in the VPFP can be determined based on the scheduling period mapping relationship between the up-and-down hop nodes in the VPFP (specifically, the mapping relationship between the scheduling period of the target outgoing interface in the previous hop node and the scheduling period of the target outgoing interface in the next hop node). Correspondingly, the target transmission resources used for scheduling deterministic flows within the target scheduling period of the target outgoing interfaces on other nodes in the VPFP are also the aforementioned current reference transmission resources.
[0252] Step 715: If the target transmission resource in the current resource allocation result is not the initial resource requirement d1 in step 703 above, proceed to step 716; otherwise, proceed to step 717.
[0253] Step 716: If the difference between d1 and the target transmission resource is greater than or equal to the above min, then the difference is determined as the initial resource requirement of the next reference scheduling period of the current target scheduling period of the target outgoing interface on the first node; if the difference between d1 and the target transmission resource is less than the above min, then the min is determined as the initial resource requirement of the next reference scheduling period of the current target scheduling period of the target outgoing interface on the first node; then, the next reference scheduling period is taken as the current scheduling period j, and the process returns to step 703.
[0254] Here, the current target scheduling period is the target scheduling period in the current resource allocation result.
[0255] As described in step 716, in this embodiment, if the target transmission resource in the current resource allocation result is not the initial resource requirement d1 in step 703 above, it means that the resource allocation for the current resource requirement has not yet been completed. Based on this, when the difference between d1 and the target transmission resource is greater than or equal to the above min, the difference can be determined as the initial resource requirement of the next reference scheduling period of the current target scheduling period of the target outgoing interface on the first node, and when the difference between d1 and the target transmission resource is less than the above min, the min can be determined as the initial resource requirement of the next reference scheduling period of the current target scheduling period of the target outgoing interface on the first node, so as to meet the requirement of min in the current resource requirement. Then, the next reference scheduling period of the current target scheduling period of the target outgoing interface on the first node is taken as the current scheduling period j, and the process returns to step 703. Finally, all resource allocation results that meet the current resource requirement will be obtained. As an embodiment, this embodiment can record all resource allocation results that meet the current resource requirement in a resource allocation result list (ResultList), and the ResultList structure is represented as: {Result1, Result2, ...}.
[0256] Step 717: If the current resource requirement is the last resource requirement in the resource requirement list, it means that all resource requirements have been met, and the resource allocation for the deterministic flow ends. If the current resource requirement is not the last resource requirement in the resource requirement list, the next resource requirement in the resource requirement list is determined as the current resource requirement, and the process returns to step 702.
[0257] Step 717 is performed under the premise that the target transmission resource in the current resource allocation result is the initial resource requirement d1 in step 703 above. This premise indicates that the resource allocation for the current resource requirement has been completed.
[0258] Step 718: Release the target transport resources that have been allocated to the deterministic stream.
[0259] Applying this to the resource allocation result list above, step 718 specifically involves releasing the target transmission resources in each resource allocation result corresponding to the current resource demand, in order to ensure the utilization rate of transmission resources.
[0260] This concludes the process. Figure 7 The process is shown below.
[0261] pass Figure 7 The process shown demonstrates how to determine the target scheduling period for the target output interface on each node in a VPFP in scenarios where a non-specified scheduling period is not specified.
[0262] As an example, based on Figure 7The illustrated process is applied to scenarios with non-specified scheduling cycles. A deterministic flow can be scheduled for transmission within one scheduling cycle of the target outgoing interface on the first node of the associated VPFP. For example, assuming the resource requirements of flow1 are as follows: (VPFP1):(intf0, InvalidCycle, 10, 2), the corresponding resource allocation result can be: (VPFP1):(intf0, Cycle0, 10), which means that flow1 is scheduled through one scheduling cycle (Cycle0) of the target outgoing interface intf0 of the first node in VPFP1. Based on the mapping relationship between the scheduling cycles of the target outgoing interfaces on the previous hop node and the next hop node in VPFP, the target scheduling cycles of the target outgoing interfaces on other nodes in VPFP are determined. Here, the target transmission resources used for scheduling the deterministic flow within the target scheduling cycle of the target outgoing interfaces on each node in VPFP1 are 10 of the aforementioned metric units. In this way, the scheduling transmission of flow1 on each node in VPFP1 can be planned.
[0263] As another embodiment, based on Figure 7The process shown is applied to scenarios with non-specified scheduling cycles. A deterministic flow can be scheduled for transmission on the target outgoing interface of the first node in the associated VPFP for at least two scheduling cycles. For example, if the current resource requirements of flow1 are as follows: (VPFP1):(intf0, InvalidCycle, 10, 2), the corresponding resource allocation results can be: (VPFP1):(intf0, Cycle0, 5) and (VPFP1):(intf0, Cycle1, 5). This means that: flow1 is scheduled through one scheduling cycle (Cycle0) of the target outgoing interface intf0 of the first node in VPFP1, and the target scheduling cycle of the target outgoing interface on the previous hop node and the target outgoing interface on the next hop node in VPFP is determined based on the mapping relationship between the scheduling cycles of the target outgoing interfaces on the previous hop node and the target outgoing interfaces on the next hop node. Here, the target transmission resources used for scheduling the transmission of deterministic flows within the target scheduling cycle of the target outgoing interfaces on each node in VPFP1 are 5 of the aforementioned metric units; and flow1 is scheduled through another scheduling cycle (Cycle1) of the target outgoing interface intf0 of the first node in VPFP1, and the target scheduling cycle of the target outgoing interface on the previous hop node and the target outgoing interface on the next hop node in VPFP is determined based on the mapping relationship between the scheduling cycles of the target outgoing interfaces on the previous hop node and the target outgoing interfaces on the next hop node in VPFP. Here, the target transmission resources used for scheduling the transmission of deterministic flows within the target scheduling cycle of the target outgoing interfaces on each node in VPFP1 are 5 of the aforementioned metric units. Finally, flow1 is scheduled using the two scheduling cycles Cycle0 and Cycle1 of the target output interface intf0 of the first node in VPFP1, so as to plan the scheduling and transmission of flow1 on each node in VPFP1.
[0264] In this embodiment, based on the above resource allocation results, resources can be reserved for deterministic flow execution, as detailed in [link to documentation]. Figure 8 The process shown is as follows:
[0265] See Figure 8 , Figure 8 A flowchart illustrating the resource reservation process provided in this application's embodiments. For example... Figure 8 As shown, the process may include the following steps:
[0266] Step 801: Take the first resource allocation result in the list of resource allocation results corresponding to the deterministic flow as the current resource allocation result.
[0267] This embodiment executes starting from the first resource allocation result, but other orders are also possible; this embodiment is not specifically limited to any particular order.
[0268] Step 802: Obtain the VPFP associated with the current resource allocation result. Let the first node in the VPFP be the current node, and let the target scheduling period of the target output interface on the first node in the current resource allocation result be the current scheduling period j.
[0269] Here, if the current resource allocation result is (VPFP1):(intf0, Cycle0, 10), then the VPFP associated with the current resource allocation result is VPFP1, the target outgoing interface on the first node in the current resource allocation result is Cycle0, and the target scheduling period of the target outgoing interface on the first node in the current resource allocation result is Cycle0.
[0270] Step 803: Update the currently available transmission resources corresponding to the current scheduling period j, that is, subtract the target transmission resources in the current resource allocation result from cn.ci.ar[j].
[0271] Here, cn.ci.ar[j] represents the currently available transmission resources (in the units of the above-mentioned measurement units) corresponding to the current scheduling period j of the target outgoing interface on the current node. For example, if the current resource allocation result is (VPFP1):(intf0, Cycle0, 10), then the target transmission resource is 10 of the above-mentioned measurement units. In step 803, updating the currently available transmission resources corresponding to the current scheduling period j can be done by subtracting 10 of the above-mentioned measurement units from cn.ci.ar[j], which completes the update of the currently available transmission resources corresponding to the current scheduling period j.
[0272] Step 804: If the current node is the EgressPE of the above VPFP, then proceed to step 805; otherwise, proceed to step 806.
[0273] If the current node is the EgressPE of the aforementioned VPFP, it means that resources have been reserved for deterministic flow along the entire path of the aforementioned VPFP, and then step 805 is executed.
[0274] Step 805: If the current resource allocation result is the last resource allocation result in the resource allocation result list, then end the resource reservation process; otherwise, set the next resource allocation result in the resource allocation result list as the current resource allocation result, and return to step 802.
[0275] In this embodiment, if the current resource allocation result is the last one in the resource allocation result list, it indicates that resource reservation has been completed for all resource allocation results. The resource reservation result (essentially the aforementioned resource allocation result list) can be saved to the database, and a message indicating successful resource reservation is returned. Saving the resource reservation result (essentially the aforementioned resource allocation result list) to the database is for the purpose of subsequent resource reclamation.
[0276] Step 806: Based on the mapping relationship between the scheduling period of the target outgoing interface on the current node and the scheduling period of the target outgoing interface on the next hop node in VPFP, and the current scheduling period j, determine the next scheduling period from all the scheduling periods of the target outgoing interface on the next hop node, take the next scheduling period as the current scheduling period j, take the next hop node as the current node, and return to step 803.
[0277] This concludes the process. Figure 8 The process is shown below.
[0278] pass Figure 8 The process shown enables the reservation of corresponding target transmission resources for deterministic flows within the target scheduling cycle of the target output interface on each node in VPFP.
[0279] In VPFP, each node reserves corresponding target transmission resources for deterministic flows within the target scheduling period of the target outgoing interface. This is equivalent to planning at least one VPFC within the deterministic network domain for the transmission of the deterministic flow. Within a VPFC, data packets sent within the target scheduling period of the target outgoing interface of the upstream node are scheduled and forwarded within the target scheduling period of the target outgoing interface of the downstream node.
[0280] In this embodiment, the resource reservation results also need to be sent to the network nodes in the VPFP. For details, please refer to [link to relevant documentation]. Figure 9 The process shown is as follows:
[0281] See Figure 9 , Figure 9 This is a flowchart illustrating the resource distribution process provided in an embodiment of this application. This process is applied to network nodes, such as... Figure 9 As shown, the process may include the following steps:
[0282] Step 901: The network node receives the forwarding information for the deterministic flow sent by the MCPE.
[0283] In this embodiment, the forwarding information includes at least: VPFP configuration information and VPFC configuration information.
[0284] As an example, the VPFP configuration information includes at least a VPFP identifier. The VPFP identifier is used to represent the VPFP for deterministic flows, and the VPFP has been described above and will not be repeated here.
[0285] As an example, the VPFC configuration information includes at least: the target scheduling period for scheduling deterministic flows on the target outgoing interface of this node, and the target transmission resources for transmitting deterministic flows within the target scheduling period. Optionally, the VPFC configuration information may further include the identifier of the VPFP carrying this VPFC. A single VPFP can carry multiple VPFCs; this embodiment is not specifically limited to this.
[0286] This is applied to stack mode scenarios, where deterministic flow forwarding information is generally only sent to the head node in the VPFP. Therefore, the aforementioned network node can be the head node in the VPFP. Under this premise, as an example, the VPFP configuration information also includes: a scheduling cycle pipeline corresponding to each scheduling cycle of the target outgoing interface on the head node. Here, the number of scheduling cycle pipelines is the same as the number of scheduling cycles configured for the target outgoing interface on the head node. For example, if the target outgoing interface on the head node is configured with n scheduling cycles, then the VPFP configuration information includes n scheduling cycle pipelines.
[0287] As an example, each scheduling cycle pipeline is composed of scheduling cycles determined sequentially according to the scheduling cycle mapping relationship between upstream and downstream nodes in the VPFP, starting from one scheduling cycle of the target output interface on the first node. The scheduling cycle mapping relationship is the mapping relationship between the scheduling cycle of the target output interface on the upstream node and the scheduling cycle of the target output interface on the downstream node in the VPFP. For example, if the VPFP is: (PE1, Intf0)f1(P1, Intf3)f2(P3, Intf3)f3(P4, Intf2), then one of the scheduling cycle pipelines is: (PE1, Intf0, cycle0)->(P1, Intf3, f1(cycle0))->(P3, Intf3, f2(f1(cycle0)))->(P4, Intf2, f3(f2(f1(cycle0)))). Here, cycle0 is a scheduling cycle of target output interface Intf0 on the first node PE1 of VPFP; f1(cycle0) is a scheduling cycle of target output interface Intf3 on the next hop node P1 of VPFP, which is determined based on the scheduling cycle mapping relationship between PE1 and P1 and the scheduling cycle of target output interface Intf0 on PE1; f2(f1(cycle0)) is a scheduling cycle of target output interface Intf3 on the next hop node P3 of VPFP, which is determined based on the scheduling cycle mapping relationship between the previous hop nodes P1 and P3 and the scheduling cycle of target output interface Intf3 on P1; f3(f2(f1(cycle0))) is a scheduling cycle of target output interface Intf2 on the next hop node P4 of VPFP, which is determined based on the scheduling cycle mapping relationship between the previous hop nodes P3 and P4 and the scheduling cycle of target output interface Intf3 on P3.
[0288] For the stack mode scenario described above, the VPFC configuration information is exemplified below:
[0289]
[0290] For the stack mode scenario described above, the VPFP configuration information is exemplified as follows:
[0291]
[0292] The above description uses a stack-mode scenario as an example. In a stack-mode scenario, when the first node performs deterministic flow transmission, it determines the corresponding scheduling cycle pipeline based on the current scheduling cycle of the deterministic flow and carries this scheduling cycle pipeline in the deterministic flow transmission. For example, if PE1, as the first node, is currently scheduling a deterministic flow at the target output interface, Intf0, during scheduling cycle 0, then the aforementioned scheduling cycle pipeline carried in this deterministic flow will be: (PE1, Intf0, cycle0)->(P1, Intf3, f1(cycle0))->(P3, Intf3, f2(f1(cycle0)))->(P4, Intf2, f3(f2(f1(cycle0)))). This allows other nodes in the VPFP to determine their own scheduling cycle for the deterministic flow based on the aforementioned scheduling cycle pipeline carried in the deterministic flow, and to perform deterministic flow transmission based on the determined scheduling cycle.
[0293] Of course, if applied to a swap mode scenario, the aforementioned network nodes can be any node on the VPFP, such as the first node, intermediate node P, or tail node. Unlike the scheduling cycle pipeline involved in the stack mode described above, in this embodiment, except for the tail node, the VPFC configuration information of other nodes on the VPFP only needs to further include: the target scheduling cycle for scheduling the transmission of deterministic flows on the target outgoing interface of the next-hop node, thus enabling the forwarding of deterministic flows. For example, PE1, as the first node, schedules the transmission of deterministic flows in the scheduling cycle 0 of the target outgoing interface, Intf0, and based on the configured VPFC configuration information, determines that the next-hop node P1 schedules the transmission of deterministic flows in the scheduling cycle f1 (cycle 0) of the target outgoing interface Intf3. Then, the scheduling cycle f1 (cycle 0) of P1's target outgoing interface Intf3 can be carried in the deterministic flow for forwarding. After receiving a deterministic flow, P1 determines that it will schedule the flow during scheduling period f1(cycle0) of the target egress interface Intf3. Based on the configured VPFC information, it determines that the next-hop node P3 will schedule the transmission of the deterministic flow during scheduling period f3(f2(f1(cycle0))) of the target egress interface Intf3. Then, P1 can carry the scheduling period f3(f2(f1(cycle0))) of the target egress interface Intf3 in the deterministic flow for forwarding. This process continues in sequence, ultimately enabling other nodes in the VPFC to complete the scheduling and transmission of the deterministic flow.
[0294] Step 902: Upon receiving a deterministic flow, based on the aforementioned forwarding information, schedule the transmission of the deterministic flow according to the target scheduling period of the target outgoing interface on this node.
[0295] Based on the above description of resource reservation, it can be seen that before step 902, the target transmission resources for scheduling the deterministic flow have been reserved on each node in the VPFP within the target scheduling period of the target outgoing interface. Therefore, applied to step 902, at the first node of the VPFP, the deterministic flow can be scheduled and transmitted directly according to the target transmission resources reserved for the deterministic flow within the target scheduling period of the target outgoing interface. After receiving the deterministic flow, other nodes in the VPFP also schedule and transmit the deterministic flow according to the target transmission resources reserved for the deterministic flow within the target scheduling period of the target outgoing interface, thus realizing the scheduling and transmission of the entire deterministic flow.
[0296] This concludes the process. Figure 9 The process is shown below.
[0297] pass Figure 9 The process shown implements resource distribution.
[0298] The methods provided in the embodiments of this application have been described above. The apparatus provided in the embodiments of this application is described below:
[0299] See Figure 10 , Figure 10 Description of the device structure provided in the embodiments of this application. This device is applied to a management / control plane entity (MCPE), such as... Figure 10 As shown, the device includes:
[0300] A path determination unit is used to determine the Virtual Periodic Forwarding Path (VPFP) for a deterministic flow; any node in the VPFP except the tail node has a scheduling cycle mapping relationship with the next-hop node; the scheduling cycle mapping relationship refers to the mapping relationship between the scheduling cycle of the target outgoing interface for transmitting the deterministic flow on any node in the VPFP except the tail node and the scheduling cycle of the target outgoing interface for transmitting the deterministic flow on the next-hop node.
[0301] The period determination unit is used to plan a target scheduling period for scheduling the transmission of the deterministic flow for the target outgoing interface on each node in the VPFP. The target scheduling period of the target outgoing interface on any node in the VPFP other than the first node is determined based on the scheduling period mapping relationship between the previous hop node and the current node, as well as the target scheduling period of the target outgoing interface on the previous hop node.
[0302] The reservation unit is used to reserve target transmission resources for transmitting the deterministic flow within each target scheduling period from the available transmission resources corresponding to each target scheduling period of the target outgoing interface on each node in the VPFP, so as to transmit the deterministic flow through the target transmission resources allocated to the target outgoing interface on each node in the VPFP for each target scheduling period.
[0303] As one embodiment, the step of planning the target scheduling period for scheduling deterministic flows of transmission for the target outgoing interface on each node in the VPFP includes:
[0304] Obtain the reference scheduling period used for scheduling the deterministic flow at the target output interface on the first node;
[0305] For the reference scheduling period of the target outgoing interface on the first node, the following period determination process is initiated:
[0306] Determine whether the currently available transmission resources corresponding to the current scheduling period of the target outgoing interface on the current node are greater than or equal to the specified transmission resource S1; S1 represents the transmission resources required for the deterministic flow to be transmitted in the reference scheduling period; if the currently available transmission resources corresponding to the current scheduling period are greater than or equal to S1, then the current scheduling period is determined as the candidate scheduling period of the target outgoing interface on the current node.
[0307] If the current node is not the tail node, then the next scheduling period is determined based on the current scheduling period and the scheduling period mapping relationship between the current node and the next hop node; the next scheduling period is determined as the current scheduling period, the next hop node is taken as the current node, and the step of determining whether the current available transmission resources corresponding to the current scheduling period of the target outgoing interface on the current node are greater than or equal to S1 is returned.
[0308] If the current node is the tail node, then the candidate scheduling period of the target outgoing interface on each node in the determined VPFP will be determined as the target scheduling period for scheduling the transport deterministic flow.
[0309] As an example, the VPFP is determined based on the VPFP identifier in a resource requirement corresponding to the deterministic flow;
[0310] The resource requirement indicates the specified scheduling period used for scheduling the transmission of the deterministic flow on the target outgoing interface of the first node and the number of resource requirements corresponding to the specified scheduling period; the specified scheduling period is the reference scheduling period, and the number of resource requirements corresponding to the specified scheduling period is characterized by the specified transmission resource S1.
[0311] As an example, the period determination unit, after planning the target scheduling period for scheduling the transmission of the deterministic flow for the target outgoing interface on each node in the VPFP, further records the resource allocation results;
[0312] The resource allocation result includes: the VPFP, the target outgoing interface on the first node for transmitting the deterministic flow, the target scheduling period on the target outgoing interface of the first node for scheduling the transmission of the deterministic flow, and the target transmission resource used for scheduling the transmission of the deterministic flow within the target scheduling period; the target transmission resource is S1.
[0313] As one embodiment, the step of planning the target scheduling period for scheduling deterministic flows of transmission for the target outgoing interface on each node in the VPFP includes:
[0314] For the reference scheduling period used to schedule the deterministic flow at the target outgoing interface on the first node, the following period determination process is executed:
[0315] The reference scheduling period is determined as the current candidate scheduling period for the target outgoing interface on the first node. It is then determined whether the available transmission resources corresponding to the current reference scheduling period are greater than or equal to the initial resource requirement for scheduling the deterministic flow within the reference scheduling period. Specifically, if the reference scheduling period is the first scheduling period of the target outgoing interface on the first node to execute the period determination process, the initial resource requirement is the specified transmission resource S2 assigned to the deterministic flow during scheduling; otherwise, the initial resource requirement is determined based on S2 and d0. S2 represents the transmission resources required for scheduling the deterministic flow, and d0 represents the sum of the target transmission resources required for transmitting the deterministic flow within each target scheduling period of the determined target outgoing interface on the first node.
[0316] If so, determine that the current baseline transmission resource is the initial resource requirement, and proceed to step a;
[0317] If not, determine the current baseline transmission resource as the reference resource requirement. If the reference resource requirement is less than the initial resource requirement, proceed to step a.
[0318] Step a includes: determining the next scheduling period based on the current scheduling period and the scheduling period mapping relationship between the current node and the next hop node; using the next scheduling period as the current scheduling period and the next hop node as the current node; determining whether the available transmission resources corresponding to the current scheduling period are greater than or equal to the current baseline transmission resources; if so, determining the current scheduling period as the candidate scheduling period for the target outgoing interface on the current node; if the current node is not the tail node, returning to the step of determining the next scheduling period; if the current node is the tail node, determining the candidate scheduling period for the target outgoing interface on each node in the VPFP determined in this process as the target scheduling period for scheduling deterministic transmission flows.
[0319] As an example, if the available transmission resources corresponding to the current scheduling period in step a are less than the current baseline transmission resources, the period determination unit is further configured to: check whether the available transmission resources corresponding to the current scheduling period meet the preset resource update conditions; if so, update the current baseline transmission resources, the updated current baseline transmission resources are less than the previous current baseline transmission resources, and then return to the step of determining whether the available transmission resources corresponding to the current scheduling period are greater than or equal to the current baseline transmission resources.
[0320] As one embodiment, checking whether the available transmission resources corresponding to the current scheduling period meet the preset resource update conditions includes: calculating... The calculation result k1 is obtained. If k1 is greater than 0, it is determined that the available transmission resources corresponding to the current scheduling period meet the resource update conditions; otherwise, it is determined that the available transmission resources corresponding to the current scheduling period do not meet the resource update conditions. Here, cn.ci.ar[j] represents the available transmission resources corresponding to the current scheduling period, and min represents the minimum transmission resources configured for deterministic flow within a scheduling period. Indicates rounding down;
[0321] The updated current baseline transmission resource is the product of k1 and min.
[0322] As an example, the reference resource requirement is represented by the product of k2 and min; wherein, cn.ci.ar[c] represents the available transmission resources corresponding to the current scheduling period, and min represents the minimum transmission resources configured for deterministic flows within a scheduling period. Indicates rounding down.
[0323] As an example, the VPFP is determined based on the VPFP identifier in a resource requirement corresponding to the deterministic flow;
[0324] The reference scheduling period includes: the scheduling period of the target outgoing interface on the first node that meets the following conditions: the corresponding available transmission resources are greater than or equal to min; min represents the minimum transmission resources configured for the deterministic flow to be transmitted within a scheduling period.
[0325] As an example, after the period determination unit plans the target scheduling period for scheduling the transmission of the deterministic flow for the target outgoing interface on each node in the VPFP, it further records the resource allocation results;
[0326] The resource demand allocation result includes: the VPFP, the target outgoing interface on the first node for transmitting the deterministic flow, the target scheduling period on the target outgoing interface of the first node for scheduling the transmission of the deterministic flow, and the target transmission resources used for scheduling the transmission of the deterministic flow within the target scheduling period; the target transmission resources are the current baseline transmission resources.
[0327] As an example, the scheduling cycle mapping relationship is represented by an injective function, which means that any scheduling cycle of the target outgoing interface on a node other than the tail node in VPFP is mapped to the unique scheduling cycle of the target outgoing interface on the next hop node.
[0328] As an example, each node in the VPFP is configured with n equal-length scheduling cycles, where n is greater than 1.
[0329] This concludes the process. Figure 10 The device structure is described as shown.
[0330] See Figure 11 , Figure 11 Another device structure provided in this application embodiment. This device is applied to a network node and includes:
[0331] A receiving unit is configured to receive forwarding information of a deterministic flow to be transmitted, issued by a Management / Control Plane Entity (MCPE). The forwarding information includes at least: Virtual Periodic Forwarding Path (VPFP) configuration information and Virtual Periodic Forwarding Channel (VPFC) configuration information. The VPFP configuration information includes at least a VPFP identifier. The VPFP identifier represents the VPFP of the deterministic flow. Each node in the VPFP, except the tail node, has a scheduling cycle mapping relationship with the next-hop node. The scheduling cycle mapping relationship refers to the mapping relationship between the scheduling cycle configured on the target outgoing interface of the VPFP for transmitting the deterministic flow and the scheduling cycle configured on the target outgoing interface of the next-hop node for transmitting the deterministic flow. The VPFC configuration information includes at least: the target scheduling cycle for scheduling the transmission of the deterministic flow on the target outgoing interface of this node, and the target transmission resources allocated for transmitting the deterministic flow during the target scheduling cycle.
[0332] The scheduling unit is used, upon receiving the deterministic flow, to schedule the transmission of the deterministic flow according to the target scheduling period of the target outgoing interface on this node, based on the forwarding information.
[0333] As one embodiment, the network node is the first node in the VPFP;
[0334] The VPFP configuration information also includes: a scheduling cycle pipeline corresponding to each scheduling cycle of the target output interface on the first node; the number of scheduling cycle pipelines is the same as the number of scheduling cycles configured on the target output interface on the first node; each scheduling cycle pipeline is composed of scheduling cycles determined sequentially according to the scheduling cycle mapping relationship between upstream and downstream nodes in VPFP, starting from one scheduling cycle of the target output interface on the first node; the scheduling cycle mapping relationship is the mapping relationship between the scheduling cycle of the target output interface on the upstream node and the scheduling cycle of the target output interface on the downstream node in VPFP.
[0335] This concludes the process. Figure 11 Structural description of the device shown.
[0336] This application also provides embodiments that... Figure 10 or Figure 11 The hardware structure of the device shown. See also Figure 12 , Figure 12 This is a structural diagram of an electronic device provided in an embodiment of this application. Figure 12 As shown, the hardware structure may include: a processor and a machine-readable storage medium, the machine-readable storage medium storing machine-executable instructions that can be executed by the processor; the processor is used to execute the machine-executable instructions to implement the method disclosed in the above example of this application.
[0337] Based on the same application concept as the above method, this application embodiment also provides a machine-readable storage medium storing a plurality of computer instructions, which, when executed by a processor, can implement the method disclosed in the above examples of this application.
[0338] For example, the aforementioned machine-readable storage medium can be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, etc. For instance, machine-readable storage media can be: RAM (Random Access Memory), volatile memory, non-volatile memory, flash memory, storage drives (such as hard disk drives), solid-state drives, any type of storage disk (such as optical discs, DVDs, etc.), or similar storage media, or combinations thereof.
[0339] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which can take the form of a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email sending and receiving device, game console, tablet computer, wearable device, or any combination of these devices.
[0340] For ease of description, the above devices are described separately by function as various units. Of course, in implementing this application, the functions of each unit can be implemented in one or more software and / or hardware.
[0341] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, embodiments of this application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0342] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0343] Furthermore, these computer program instructions can also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in the process. Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0344] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0345] The above description is merely an embodiment of this application and is not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A resource reservation method, characterized in that, This method is applied to management / control plane entities (MCPEs), and includes: A Virtual Periodic Forwarding Path (VPFP) is determined for the deterministic flow; any node in the VPFP, except the tail node, has a scheduling cycle mapping relationship with the next-hop node; the scheduling cycle mapping relationship refers to the mapping relationship between the scheduling cycle of the target outgoing interface for transmitting the deterministic flow on any node in the VPFP, except the tail node, and the scheduling cycle of the target outgoing interface for transmitting the deterministic flow on the next-hop node. For each target outgoing interface on each node in the VPFP, a target scheduling period for scheduling the transmission of the deterministic flow is planned; the target scheduling period of the target outgoing interface on any node in the VPFP other than the first node is determined based on the scheduling period mapping relationship between the previous hop node and the current node, and the target scheduling period of the target outgoing interface on the previous hop node. From the available transmission resources corresponding to each target scheduling period of the target outgoing interface on each node in the VPFP, target transmission resources are reserved for transmitting the deterministic flow within that target scheduling period, so that the deterministic flow can be transmitted through the target transmission resources allocated to the target outgoing interface on each node in the VPFP for each target scheduling period.
2. The method according to claim 1, characterized in that, The planning of the target scheduling period for scheduling the transmission of the deterministic flow for the target outgoing interface on each node in the VPFP includes: Obtain the reference scheduling period used for scheduling the deterministic flow at the target output interface on the first node; For the reference scheduling period of the target outgoing interface on the first node, the following period determination process is initiated: Determine whether the currently available transmission resources corresponding to the current scheduling period of the target outgoing interface on the current node are greater than or equal to the specified transmission resource S1; S1 represents the transmission resources required for the deterministic flow to be transmitted in the reference scheduling period; if the currently available transmission resources corresponding to the current scheduling period are greater than or equal to S1, then the current scheduling period is determined as the candidate scheduling period of the target outgoing interface on the current node. If the current node is not the tail node, then the next scheduling period is determined based on the current scheduling period and the scheduling period mapping relationship between the current node and the next hop node; the next scheduling period is determined as the current scheduling period, the next hop node is taken as the current node, and the step of determining whether the current available transmission resources corresponding to the current scheduling period of the target outgoing interface on the current node are greater than or equal to S1 is returned. If the current node is the tail node, then the candidate scheduling period of the target outgoing interface on each node in the determined VPFP will be determined as the target scheduling period for scheduling the transport deterministic flow.
3. The method according to claim 2, characterized in that, The VPFP is determined based on the VPFP identifier in a resource requirement corresponding to the deterministic flow; The resource requirement indicates the specified scheduling period used for scheduling the transmission of the deterministic flow on the target outgoing interface of the first node and the number of resource requirements corresponding to the specified scheduling period; the specified scheduling period is the reference scheduling period, and the number of resource requirements corresponding to the specified scheduling period is characterized by the specified transmission resource S1.
4. The method according to claim 2, characterized in that, After planning a target scheduling period for scheduling the transmission of the deterministic flow for the target outgoing interface on each node in the VPFP, the method further includes: recording the resource allocation results; The resource allocation result includes: the VPFP, the target outgoing interface on the first node for transmitting the deterministic flow, the target scheduling period on the target outgoing interface of the first node for scheduling the transmission of the deterministic flow, and the target transmission resource used for scheduling the transmission of the deterministic flow within the target scheduling period; the target transmission resource is S1.
5. The method according to claim 1, characterized in that, The planning of the target scheduling period for scheduling the transmission of the deterministic flow for the target outgoing interface on each node in the VPFP includes: For the reference scheduling period used to schedule the deterministic flow at the target outgoing interface on the first node, the following period determination process is executed: The reference scheduling period is determined as the current candidate scheduling period for the target outgoing interface on the first node. It is then determined whether the available transmission resources corresponding to the current reference scheduling period are greater than or equal to the initial resource requirement for scheduling the deterministic flow within the reference scheduling period. Specifically, if the reference scheduling period is the first scheduling period of the target outgoing interface on the first node to execute the period determination process, the initial resource requirement is the specified transmission resource S2 assigned to the deterministic flow during scheduling; otherwise, the initial resource requirement is determined based on S2 and d0. S2 represents the transmission resources required for scheduling the deterministic flow, and d0 represents the sum of the target transmission resources required for transmitting the deterministic flow within each target scheduling period of the determined target outgoing interface on the first node. If so, determine that the current baseline transmission resource is the initial resource requirement, and proceed to step a; If not, determine the current baseline transmission resource as the reference resource requirement. If the reference resource requirement is less than the initial resource requirement, proceed to step a. Step a includes: determining the next scheduling period based on the current scheduling period and the scheduling period mapping relationship between the current node and the next hop node; using the next scheduling period as the current scheduling period and the next hop node as the current node; determining whether the available transmission resources corresponding to the current scheduling period are greater than or equal to the current baseline transmission resources; if so, determining the current scheduling period as the candidate scheduling period for the target outgoing interface on the current node; if the current node is not the tail node, returning to the step of determining the next scheduling period; if the current node is the tail node, determining the candidate scheduling period for the target outgoing interface on each node in the VPFP determined in this process as the target scheduling period for scheduling deterministic transmission flows.
6. The method according to claim 5, characterized in that, If the available transmission resources for the current scheduling period in step a are less than the current baseline transmission resources, the method further includes: Check whether the available transmission resources corresponding to the current scheduling period meet the preset resource update conditions. If so, update the current baseline transmission resources. The updated current baseline transmission resources are less than the previous current baseline transmission resources. Then return to the step of determining whether the available transmission resources corresponding to the current scheduling period are greater than or equal to the current baseline transmission resources.
7. The method according to claim 6, characterized in that, The step of checking whether the available transmission resources corresponding to the current scheduling period meet the preset resource update conditions includes: calculating... The calculation result k1 is obtained. If k1 is greater than 0, it is determined that the available transmission resources corresponding to the current scheduling period meet the resource update conditions; otherwise, it is determined that the available transmission resources corresponding to the current scheduling period do not meet the resource update conditions. This represents the available transmission resources for the current scheduling period, and `min` represents the minimum transmission resources configured for deterministic flows within a scheduling period. Indicates rounding down; The updated current baseline transmission resource is the product of k1 and min.
8. The method according to claim 5, characterized in that, The reference resource requirement is represented by the product of k2 and min; where, ; This represents the available transmission resources corresponding to the current scheduling period, and `min` represents the minimum transmission resources configured for deterministic flows within a scheduling period. Indicates rounding down.
9. The method according to claim 5, characterized in that, The VPFP is determined based on the VPFP identifier in a resource requirement corresponding to the deterministic flow; The reference scheduling period includes: a scheduling period in which the target outgoing interface on the first node meets the following conditions: the corresponding available transmission resources are greater than or equal to min; min represents the minimum transmission resources configured for the deterministic flow to be transmitted within a scheduling period.
10. The method according to claim 5, characterized in that, After planning a target scheduling period for scheduling the transmission of the deterministic flow for the target outgoing interface on each node in the VPFP, the method further includes: recording the resource allocation results; The resource demand allocation result includes: the VPFP, the target outgoing interface on the first node for transmitting the deterministic flow, the target scheduling period on the target outgoing interface of the first node for scheduling the transmission of the deterministic flow, and the target transmission resources used for scheduling the transmission of the deterministic flow within the target scheduling period; the target transmission resources are the current baseline transmission resources.
11. The method according to any one of claims 1 to 10, characterized in that, The scheduling cycle mapping relationship is represented by an injective function, which means that any scheduling cycle of the target output interface on a node other than the tail node in VPFP is mapped to the unique scheduling cycle of the target output interface on the next hop node.
12. The method according to any one of claims 1 to 10, characterized in that, In the VPFP, each node is configured with n equal-length scheduling cycles, where n is greater than 1.
13. A method for distributing resources, characterized in that, This method is applied to network nodes, and the method includes: The system receives forwarding information for a deterministic flow to be transmitted from a Management / Control Plane Entity (MCPE). This forwarding information includes at least: Virtual Periodic Forwarding Path (VPFP) configuration information and Virtual Periodic Forwarding Channel (VPFC) configuration information. The VPFP configuration information includes a VPFP identifier. The VPFP identifier represents the VPFP of the deterministic flow. Each node in the VPFP, except the tail node, has a scheduling cycle mapping relationship with the next-hop node. This scheduling cycle mapping relationship refers to the mapping relationship between the scheduling cycle configured on the target outgoing interface of the VPFP for transmitting the deterministic flow and the scheduling cycle configured on the target outgoing interface of the next-hop node for transmitting the deterministic flow. The VPFC configuration information includes: the target scheduling cycle for scheduling the transmission of the deterministic flow on the target outgoing interface of this node, and the target transmission resources allocated for transmitting the deterministic flow during the target scheduling cycle. Upon receiving the deterministic flow, based on the forwarding information, the target scheduling period for scheduling the transmission of the deterministic flow is scheduled at the target outgoing interface on this node.
14. The method according to claim 13, characterized in that, The network node is the first node in the VPFP; The VPFP configuration information also includes: the scheduling cycle pipeline corresponding to each scheduling cycle of the target output interface on the first node; the number of scheduling cycle pipelines is the same as the number of scheduling cycles configured on the target output interface on the first node. Each scheduling cycle pipeline is composed of scheduling cycles determined sequentially according to the scheduling cycle mapping relationship between upstream and downstream nodes in the VPFP, starting from one scheduling cycle of the target output interface on the first node; the scheduling cycle mapping relationship is the mapping relationship between the scheduling cycle of the target output interface on the upstream node and the scheduling cycle of the target output interface on the downstream node in the VPFP.
15. A resource reservation device, characterized in that, This device is used for managing / controlling plane entities (MCPEs), and includes: A path determination unit is used to determine the Virtual Periodic Forwarding Path (VPFP) for a deterministic flow; any node in the VPFP except the tail node has a scheduling cycle mapping relationship with the next-hop node; the scheduling cycle mapping relationship refers to the mapping relationship between the scheduling cycle of the target outgoing interface for transmitting the deterministic flow on any node in the VPFP except the tail node and the scheduling cycle of the target outgoing interface for transmitting the deterministic flow on the next-hop node. The period determination unit is used to plan a target scheduling period for scheduling the transmission of the deterministic flow for the target outgoing interface on each node in the VPFP. The target scheduling period of the target outgoing interface on any node in the VPFP other than the first node is determined based on the scheduling period mapping relationship between the previous hop node and the current node, as well as the target scheduling period of the target outgoing interface on the previous hop node. The reservation unit is used to reserve target transmission resources for transmitting the deterministic flow within each target scheduling period from the available transmission resources corresponding to each target scheduling period of the target outgoing interface on each node in the VPFP, so as to transmit the deterministic flow through the target transmission resources allocated to the target outgoing interface on each node in the VPFP for each target scheduling period.
16. The apparatus according to claim 15, characterized in that, The target scheduling period for scheduling deterministic flow transmission is planned for the target outgoing interface on each node in VPFP, including: Obtain the reference scheduling period used for scheduling the deterministic flow at the target output interface on the first node; For the reference scheduling period of the target outgoing interface on the first node, the following period determination process is initiated: Determine whether the currently available transmission resources corresponding to the current scheduling period of the target outgoing interface on the current node are greater than or equal to the specified transmission resource S1; S1 represents the transmission resources required for the deterministic flow to be transmitted in the reference scheduling period; if the currently available transmission resources corresponding to the current scheduling period are greater than or equal to S1, then the current scheduling period is determined as the candidate scheduling period of the target outgoing interface on the current node. If the current node is not the tail node, then the next scheduling period is determined based on the current scheduling period and the scheduling period mapping relationship between the current node and the next hop node; the next scheduling period is determined as the current scheduling period, the next hop node is taken as the current node, and the step of determining whether the current available transmission resources corresponding to the current scheduling period of the target outgoing interface on the current node are greater than or equal to S1 is returned. If the current node is the tail node, then the candidate scheduling period of the target outgoing interface on each node in the determined VPFP will be determined as the target scheduling period for scheduling the transport deterministic flow.
17. The apparatus according to claim 16, characterized in that, The VPFP is determined based on the VPFP identifier in a resource requirement corresponding to the deterministic flow; The resource requirement indicates the specified scheduling period used for scheduling the transmission of the deterministic flow on the target outgoing interface of the first node and the number of resource requirements corresponding to the specified scheduling period; the specified scheduling period is the reference scheduling period, and the number of resource requirements corresponding to the specified scheduling period is characterized by the specified transmission resource S1.
18. The apparatus according to claim 16, characterized in that, The period determination unit, after planning the target scheduling period for scheduling the transmission of the deterministic flow for the target output interface on each node in the VPFP, further records the resource allocation results. The resource allocation result includes: the VPFP, the target outgoing interface on the first node for transmitting the deterministic flow, the target scheduling period on the target outgoing interface of the first node for scheduling the transmission of the deterministic flow, and the target transmission resource used for scheduling the transmission of the deterministic flow within the target scheduling period; the target transmission resource is S1.
19. The apparatus according to claim 15, characterized in that, The target scheduling period for scheduling deterministic flow transmission is planned for the target outgoing interface on each node in VPFP, including: For the reference scheduling period used to schedule the deterministic flow at the target outgoing interface on the first node, the following period determination process is executed: The reference scheduling period is determined as the current candidate scheduling period for the target outgoing interface on the first node. It is then determined whether the available transmission resources corresponding to the current reference scheduling period are greater than or equal to the initial resource requirement for scheduling the deterministic flow within the reference scheduling period. Specifically, if the reference scheduling period is the first scheduling period of the target outgoing interface on the first node to execute the period determination process, the initial resource requirement is the specified transmission resource S2 assigned to the deterministic flow during scheduling; otherwise, the initial resource requirement is determined based on S2 and d0. S2 represents the transmission resources required for scheduling the deterministic flow, and d0 represents the sum of the target transmission resources required for transmitting the deterministic flow within each target scheduling period of the determined target outgoing interface on the first node. If so, determine that the current baseline transmission resource is the initial resource requirement, and proceed to step a; If not, determine the current baseline transmission resource as the reference resource requirement. If the reference resource requirement is less than the initial resource requirement, proceed to step a. Step a includes: determining the next scheduling period based on the current scheduling period and the scheduling period mapping relationship between the current node and the next hop node; using the next scheduling period as the current scheduling period and the next hop node as the current node; determining whether the available transmission resources corresponding to the current scheduling period are greater than or equal to the current baseline transmission resources; if so, determining the current scheduling period as the candidate scheduling period for the target outgoing interface on the current node; if the current node is not the tail node, returning to the step of determining the next scheduling period; if the current node is the tail node, determining the candidate scheduling period for the target outgoing interface on each node in the VPFP determined in this process as the target scheduling period for scheduling deterministic transmission flows.
20. The apparatus according to claim 19, characterized in that, If the available transmission resource corresponding to the current scheduling period in step a is less than the current baseline transmission resource, the period determination unit is further used to: check whether the available transmission resource corresponding to the current scheduling period meets the preset resource update condition; if so, update the current baseline transmission resource, the updated current baseline transmission resource is less than the previous current baseline transmission resource, and then return to the step of determining whether the available transmission resource corresponding to the current scheduling period is greater than or equal to the current baseline transmission resource.
21. The apparatus according to claim 20, characterized in that, The step of checking whether the available transmission resources corresponding to the current scheduling period meet the preset resource update conditions includes: calculating... The calculation result k1 is obtained. If k1 is greater than 0, it is determined that the available transmission resources corresponding to the current scheduling period meet the resource update conditions; otherwise, it is determined that the available transmission resources corresponding to the current scheduling period do not meet the resource update conditions. This represents the available transmission resources for the current scheduling period, and `min` represents the minimum transmission resources configured for deterministic flows within a scheduling period. Indicates rounding down; The updated current baseline transmission resource is the product of k1 and min.
22. The apparatus according to claim 19, characterized in that, The reference resource requirement is represented by the product of k2 and min; where, ; This represents the available transmission resources corresponding to the current scheduling period, and `min` represents the minimum transmission resources configured for deterministic flows within a scheduling period. Indicates rounding down.
23. The apparatus according to claim 19, characterized in that, The VPFP is determined based on the VPFP identifier in a resource requirement corresponding to the deterministic flow; The reference scheduling period includes: the scheduling period of the target outgoing interface on the first node that meets the following conditions: the corresponding available transmission resources are greater than or equal to min; min represents the minimum transmission resources configured for the deterministic flow to be transmitted within a scheduling period.
24. The apparatus according to claim 19, characterized in that, After the period determination unit plans the target scheduling period for scheduling the transmission of the deterministic flow for the target outgoing interface on each node in the VPFP, it further records the resource allocation results. The resource demand allocation result includes: the VPFP, the target outgoing interface on the first node for transmitting the deterministic flow, the target scheduling period on the target outgoing interface of the first node for scheduling the transmission of the deterministic flow, and the target transmission resources used for scheduling the transmission of the deterministic flow within the target scheduling period; the target transmission resources are the current baseline transmission resources.
25. The apparatus according to any one of claims 15 to 24, characterized in that, The scheduling cycle mapping relationship is represented by an injective function, which means that any scheduling cycle of the target output interface on a node other than the tail node in VPFP is mapped to the unique scheduling cycle of the target output interface on the next hop node.
26. The apparatus according to any one of claims 15 to 24, characterized in that, In the VPFP, each node is configured with n equal-length scheduling cycles, where n is greater than 1.
27. A resource distribution device, characterized in that, This device is used in network nodes and includes: A receiving unit is configured to receive forwarding information of a deterministic flow to be transmitted, issued by a Management / Control Plane Entity (MCPE). The forwarding information includes at least: Virtual Periodic Forwarding Path (VPFP) configuration information and Virtual Periodic Forwarding Channel (VPFC) configuration information. The VPFP configuration information includes a VPFP identifier. The VPFP identifier represents the VPFP of the deterministic flow. Each node in the VPFP, except the tail node, has a scheduling cycle mapping relationship with the next-hop node. The scheduling cycle mapping relationship refers to the mapping relationship between the scheduling cycle configured on the target outgoing interface of the VPFP for transmitting the deterministic flow and the scheduling cycle configured on the target outgoing interface of the next-hop node for transmitting the deterministic flow. The VPFC configuration information includes: the target scheduling cycle for scheduling the transmission of the deterministic flow on the target outgoing interface of this node, and the target transmission resources allocated for transmitting the deterministic flow during the target scheduling cycle. The scheduling unit is used, upon receiving the deterministic flow, to schedule the transmission of the deterministic flow according to the target scheduling period of the target outgoing interface on this node, based on the forwarding information.
28. The apparatus according to claim 27, characterized in that, The network node is the first node in the VPFP; The VPFP configuration information also includes: the scheduling cycle pipeline corresponding to each scheduling cycle of the target output interface on the first node; the number of scheduling cycle pipelines is the same as the number of scheduling cycles configured on the target output interface on the first node. Each scheduling cycle pipeline is composed of scheduling cycles determined sequentially according to the scheduling cycle mapping relationship between upstream and downstream nodes in the VPFP, starting from one scheduling cycle of the target output interface on the first node; the scheduling cycle mapping relationship is the mapping relationship between the scheduling cycle of the target output interface on the upstream node and the scheduling cycle of the target output interface on the downstream node in the VPFP.
29. An electronic device, characterized in that, The electronic device includes: a processor and a machine-readable storage medium; The machine-readable storage medium stores machine-executable instructions that can be executed by the processor; The processor is configured to execute machine-executable instructions to implement the method of any one of claims 1 to 14.
30. A machine-readable storage medium, characterized in that, The machine-readable storage medium stores machine-executable instructions that can be executed by the processor; The machine-executable instructions are executed by a processor to implement the method of any one of claims 1 to 14.
Citation Information
Patent Citations
Method and device for determining transmission period in deterministic network
CN112448896A
Deterministic network system and transmission method of deterministic service
CN114363182A
