A time slot resource reservation method, a communication device and a storage medium

By establishing a time slot mapping relationship between adjacent nodes in a hybrid time slot length network, the problem of inability to reasonably reserve and allocate resources in existing technologies is solved, and reasonable time slot resource reservation and scheduling in a hybrid time slot network is realized to meet the needs of deterministic services.

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

Patent Information

Application Number
CN202310457534.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-18
Publication Date
2026-11-24
Estimated Expiration
2043-04-18

AI Technical Summary

Technical Problem

Existing time slot (or periodic) scheduling mechanisms cannot achieve reasonable resource reservation and allocation in networks with mixed time slot lengths, especially when different nodes use different time slot lengths.

Method used

By receiving the probe messages sent by the second node in M ​​consecutive probe time slots, the target mapping relationship is determined, the outgoing time slot of the first node is reserved for the target messages sent by the second node, and the time slot mapping relationship between adjacent nodes is established so as to perform time slot scheduling in the mixed time slot length network.

Benefits of technology

This enables reasonable time slot resource reservation in hybrid time slot length networks, meeting the needs of deterministic services and providing a solid foundation for deploying packet time slot scheduling mechanisms in cross-domain interconnected hybrid time slot length networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118828901B_ABST
    Figure CN118828901B_ABST
Patent Text Reader

Abstract

This application provides a time slot resource reservation method, communication device, and storage medium, relating to the field of communication technology. It is used for time slot scheduling in a mixed time slot length network to reserve time slot resources for target messages to be sent. Specifically, the method includes: receiving probe messages sent by a second node in M ​​consecutive probe time slots to obtain the probe results of M probe time slots; wherein the probe result of each probe time slot is used to indicate the transmitting time slot of the first node mapped to the probe message sent within the probe time slot, and M is a positive integer; based on the probe results of the M probe time slots, determining the target mapping relationship between the target outgoing time slot of the second node and the target transmitting time slot of the first node; and based on the target mapping relationship, reserving the outgoing time slot of the first node for the target message sent by the second node.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a time slot resource reservation method, communication device and storage medium. Background Technology

[0002] Currently, to meet the demands of the Industrial Internet era, with the increasing demands on the underlying network from latency-sensitive remote control services such as telemedicine, remote driving, and network manufacturing, the industry is researching how to enhance IP / MPLS networks to provide deterministic forwarding capabilities. The IETF has released standard RFC 8655, which describes the architecture of deterministic networks and defines the Quality of Service (QoS) objectives for deterministic forwarding: minimum and maximum latency from source to destination, bounded latency jitter; allowable packet loss rate; and an upper bound on out-of-order packet delivery. In this network architecture, time-slot (or periodic) scheduling mechanisms can be employed to meet different service requirements.

[0003] However, current time slot (or period) scheduling mechanisms are usually designed for deterministic networks where all nodes have the same time slot length. For hybrid time slot networks with multiple time slot lengths, reasonable resource reservation and allocation cannot be achieved. Summary of the Invention

[0004] This application provides a time slot resource reservation method, communication device, and storage medium for establishing time slot mapping relationships in a mixed time slot length network, and reserving time slot resources for target messages that need to be sent.

[0005] To achieve the above objectives, this application adopts the following technical solution:

[0006] In a first aspect, this application provides a time slot resource reservation method, applied to a first node, the method comprising:

[0007] By receiving probe messages sent by the second node in M ​​consecutive probe time slots, the probe results of M probe time slots are obtained; wherein, the probe result of each probe time slot is used to indicate the transmission time slot of the first node mapped by the probe message sent in the probe time slot, and M is a positive integer;

[0008] Based on the detection results of M detection time slots, the target mapping relationship between the target outgoing time slot of the second node and the target transmitting time slot of the first node is determined;

[0009] Based on the target mapping relationship, the outgoing time slot of the first node is reserved for the target message sent by the second node.

[0010] Secondly, this application provides another time slot resource reservation method, applied to a second node, which includes:

[0011] Determine the number M of probe slots used to send probe messages, where M is a positive integer;

[0012] The first node sends probe messages to the second node in M ​​consecutive probe time slots, so that the first node can determine the target mapping relationship between the target outgoing time slot of the second node and the target transmitting time slot of the first node based on the probe results of the M probe time slots. The probe message corresponding to each probe time slot is used to determine the transmitting time slot of the first node corresponding to the probe time slot, and the target mapping relationship is used to instruct the first node to reserve the outgoing time slot of the first node for the target message sent by the second node.

[0013] Thirdly, a time slot resource reservation device is provided, applied to a first node, the device comprising:

[0014] The receiving module is used to obtain the detection results of M detection time slots by receiving the detection messages sent by the second node in M ​​consecutive detection time slots; wherein, the detection result of each detection time slot is used to indicate the transmission time slot of the first node mapped by the detection message sent in the detection time slot, and M is a positive integer;

[0015] The processing module is used to determine the target mapping relationship between the target outgoing time slot of the second node and the target transmitting time slot of the first node based on the detection results of M detection time slots.

[0016] The processing module is also used to reserve outgoing time slots for the first node for target messages sent by the second node based on the target mapping relationship.

[0017] Fourthly, another time slot resource reservation device is provided for application in the second node, the device comprising:

[0018] The processing module is used to determine the number M of probe slots used to send probe messages, where M is a positive integer;

[0019] The sending module is used to send probe messages to the first node in M ​​consecutive probe time slots, so that the first node can determine the target mapping relationship between the target outgoing time slot of the second node and the target transmitting time slot of the first node based on the probe results of the M probe time slots; wherein, the probe message corresponding to each probe time slot is used to determine the transmitting time slot of the first node corresponding to the probe time slot, and the target mapping relationship is used to instruct the first node to reserve the outgoing time slot of the first node for the target message sent by the second node.

[0020] Fifthly, a communication device is provided, comprising: a processor and a memory; the memory storing processor-executable instructions; when the processor is configured to execute the instructions, the communication device implements the time slot resource reservation method provided in the first or second aspect above.

[0021] In a sixth aspect, a computer-readable storage medium is provided that stores computer instructions, which, when executed on a computer, cause the computer to perform the time slot resource reservation method provided in the first or second aspect.

[0022] In a seventh aspect, a computer program product containing computer instructions is provided, which, when executed on a computer, causes the computer to perform the time slot resource reservation method provided in the first or second aspect.

[0023] In this embodiment of the application, in a hybrid time-slot length network, the mapping relationship between the outgoing time slots of the sending nodes and the transmitting time slots of the receiving nodes of adjacent nodes can be determined. This determined mapping relationship can then be used as a reference for selecting outgoing time slots, thereby enabling time slot scheduling in the hybrid time-slot length network. This reserves time slot resources for the target packets that need to be sent, meeting the requirements of deterministic services. Furthermore, this provides a good foundation for deploying packet time slot scheduling mechanisms in cross-domain interconnected hybrid time-slot length networks. Attached Figure Description

[0024] The accompanying drawings are provided to further understand the technical solutions of the present invention and constitute a part of the specification. They are used together with the embodiments of this application to explain the technical solutions of the present invention and do not constitute a limitation on the technical solutions of the present invention.

[0025] Figure 1 A schematic diagram illustrating an application scenario provided in an embodiment of this application;

[0026] Figure 2 A flowchart illustrating a time slot resource reservation method provided in an embodiment of this application;

[0027] Figure 3 This is a schematic diagram of a time slot mapping relationship provided in an embodiment of this application;

[0028] Figure 4 This is a schematic diagram illustrating another time slot mapping relationship provided in an embodiment of this application;

[0029] Figure 5 This is another schematic diagram of a time slot mapping relationship provided in the embodiments of this application;

[0030] Figure 6 This is another schematic diagram of a time slot mapping relationship provided in the embodiments of this application;

[0031] Figure 7 A flowchart illustrating another time slot resource reservation method provided in an embodiment of this application;

[0032] Figure 8 A flowchart illustrating another time slot resource reservation method provided in this application embodiment;

[0033] Figure 9 A schematic diagram of the composition of a time slot resource reservation device provided in an embodiment of this application;

[0034] Figure 10 A schematic diagram illustrating the composition of another time slot resource reservation device provided in this application embodiment;

[0035] Figure 11 This is a schematic diagram of a time slot resource reservation device provided in an embodiment of this application. Detailed Implementation

[0036] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0037] In the description of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B. The "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. Furthermore, "at least one" means one or more, and "multiple" means two or more. The terms "first," "second," etc., do not limit the quantity or order of execution, and "first," "second," etc., do not necessarily imply differences.

[0038] It should be noted that, in this application, the terms "exemplary" or "for example" are used to indicate that something is being described as an example, illustration, or illustration. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0039] The relevant technical terms used in this application will be explained here first.

[0040] A timeslot is the smallest unit of time-division multiplexing. A timeslot needs to be designed with a reasonable length so that at least one complete message can be sent within a single timeslot. For example, a timeslot length of 10µs could be used.

[0041] Time-slot scheduling refers to the scheduling behavior of sending messages in a specified time slot.

[0042] Incoming Timeslot: For a certain intermediate node in a specific path, the timeslot contained in the message received by the intermediate node from the upstream node (i.e., the outgoing timeslot of the upstream node) is the incoming timeslot.

[0043] Outgoing Timeslot: For an intermediate node in a specific path, when the intermediate node continues to send messages to downstream nodes, it can choose to send messages in a specified timeslot according to resource reservation or certain rules. This timeslot is called the outgoing timeslot.

[0044] Ongoing Sending Timeslot: For an intermediate node in a specific path, this intermediate node can continue to send packets received from upstream nodes to downstream nodes. When a packet arrives at the egress port of this intermediate node, the timeslot in which the egress port is currently in a sending state is called the Ongoing Sending Timeslot. It's important to note that the Ongoing Sending Timeslot is not an outgoing timeslot.

[0045] Orchestration Period: This refers to the orchestration period for network nodes to implement the time-division multiplexing scheduling mechanism. An orchestration period can include a fixed number of time slots, such as 100 time slots.

[0046] The above is an introduction to the technical terms used in this application, which will not be repeated below.

[0047] As described in the background section, the core technology of deterministic networking is the periodic scheduling mechanism, which employs resource reservation, explicit routing, and service protection to provide deterministic latency and jitter guarantees based on existing network interconnection protocol forwarding mechanisms. Resource reservation refers to the allocation of resources by service traffic, including exclusive use or sharing at a certain ratio, such as physical links, link bandwidth, and queue resources. Explicit routing involves pre-selecting the transmission path of service flows in the network to ensure route stability, which does not change with real-time changes in network topology. Based on this, the upper bound of end-to-end latency and jitter can be accurately calculated. Service protection involves simultaneously sending multiple service traffic packets along multiple non-overlapping paths to reduce packet loss rate.

[0048] Currently, related technologies provide a scheduling mechanism for packet time slots, which can resource-encode time slots and allow for the opening and reservation of services. At the network's entry node, corresponding outbound time slot resources need to be reserved at the outbound port for service flows with corresponding arrival times. At intermediate nodes in the network, corresponding outbound time slot resources need to be reserved at the outbound port for service flows with corresponding inbound time slots. In particular, the routing module (e.g., a centralized controller or distributed protocol) on the intermediate node needs to further determine the reserved outbound time slots based on the fixed time slot phase difference between the upstream node and the intermediate node. However, the current technical solution is not suitable for phase difference detection when different nodes in the network use different time slot lengths.

[0049] In view of this, this application provides a time slot resource reservation method applied to a first node. The method includes: receiving probe messages sent by a second node in M ​​consecutive probe time slots to obtain the probe results of M probe time slots; wherein the probe result of each probe time slot is used to indicate the transmitting time slot of the first node mapped to the probe message sent within the probe time slot, and M is a positive integer; determining the target mapping relationship between the target outgoing time slot of the second node and the target transmitting time slot of the first node based on the probe results of the M probe time slots; and reserving the outgoing time slot of the first node for the target message sent by the second node based on the target mapping relationship. Thus, the determined mapping relationship can be used as a reference for selecting outgoing time slots, enabling time slot scheduling in a mixed time slot length network, reserving time slot resources for the target message to be sent, and meeting the needs of deterministic services.

[0050] Figure 1 A schematic diagram illustrating an application scenario applicable to embodiments of this application is shown. For example... Figure 1 As shown, the network 100 includes management node 01, network node 02, network node 03, network node 04, network node 05, network node 06, and network node 07. Typically, in practical applications, the connections between these devices or service functions can be wireless. To conveniently and intuitively illustrate the connection relationships between the devices, Figure 1 The diagram uses solid lines. Optionally, network 100 can be a deterministic network.

[0051] In this embodiment, the management node 01, network node 02, network node 03, network node 04, network node 05, network node 06, and network node 07 can be network devices or chips installed within network devices. These network devices can support high-speed Ethernet interfaces (e.g., 200G, 400G). These network devices include, but are not limited to: core routers, edge routers, optical transport network (OTN) transmission equipment, OTN optical service units (OSUs), and internet protocol radio access networks (IPRs) for specific scenarios.

[0052] Network (IPRAN), and switching equipment, such as packet transport networks (IPRAN).

[0053] Network (PTN) box-type or chassis-type switch equipment.

[0054] exist Figure 1 In the network 100 shown, messages from upstream nodes can be forwarded to downstream nodes, and then forwarded out by the downstream nodes. For example, if network node 02 is an upstream node of network node 03, and network node 04 is a downstream node of network node 03, then network node 02 can forward messages to network node 03, and network node 03 can also forward the messages to network node 04.

[0055] It should be understood that Figure 1 The network 100 shown may also include other nodes or network devices, or other terminal devices that communicate with network devices, and this application does not limit this.

[0056] The time slot resource reservation method provided in this application will be described in detail below with reference to the accompanying drawings.

[0057] like Figure 2 As shown in the figure, this application embodiment provides a time slot resource reservation method, which is applied to a first node, and the method includes the following steps:

[0058] S101. The first node obtains the detection results of M detection time slots by receiving the detection messages sent by the second node in M ​​consecutive detection time slots.

[0059] The detection result of each detection time slot is used to indicate the transmission time slot of the first node corresponding to the detection message sent within the detection time slot, where M is a positive integer.

[0060] It should be understood that in the path including the first node and the second node, the second node is the upstream node of the first node, and the first node can also forward the messages received from the second node to the downstream node of the first node. The aforementioned M probe time slots are the M outgoing time slots of the second node corresponding to the probe messages.

[0061] In some embodiments, the probe message may include the number of the outgoing timeslot corresponding to the probe message. In one example, the numbering rule for timeslots in each orchestration cycle may be the same. For example, in one orchestration cycle of the second node, the orchestration cycle may include M1 outgoing timeslots, and the M1 outgoing timeslots are numbered sequentially from 0 to M1-1. Furthermore, in the next adjacent orchestration cycle of this orchestration cycle, the outgoing timeslots may be numbered sequentially from 0 to M1-1 again. It should be understood that the outgoing timeslots in other orchestration cycles of the second node may also be numbered sequentially from 0 to M1-1.

[0062] In some embodiments, the orchestration period of the first node may be equal to the length of the orchestration period of the second node.

[0063] In some embodiments, the probe message may further include at least one of the following: the number of second time slots, the length of the second time slot, and the value of M, wherein the length of the second time slot is the length of the time slot in the orchestration period of the second node, and the number of second time slots is the number of time slots included in the orchestration period of the second node, measured by the length of the second time slot.

[0064] For example, the second node can use a time-slot-based message scheduling mechanism at the output port connecting the downstream node, i.e., the first node. In this case, the orchestration period used by the second node when using the message scheduling mechanism is the orchestration period of the second node mentioned above, and the time slot length used is the length of the second time slot mentioned above.

[0065] In some embodiments, the value of M is determined based on the first time slot length and the second time slot length. In one example, the value of M may be equal to the quotient of the least common multiple between the first and second time slot lengths and the second time slot length. It should be understood that M represents the number of outgoing time slots of the second node involved in detecting the complete time slot mapping relationship with the first node.

[0066] In practice, the second node can initiate a time slot mapping relationship detection task between the first node and the second node when time slot scheduling is required. The task parameters of this task include the first time slot length and the second time slot length mentioned above.

[0067] Wherein, the first timeslot length is the length of the timeslot in the orchestration cycle of the first node. It should be understood that the first node may use a timeslot-based message scheduling mechanism at the output port connecting its downstream nodes. The timeslot length used by the first node when using the message scheduling mechanism is the aforementioned first timeslot length, and the orchestration cycle used at this time is the aforementioned orchestration cycle of the first node.

[0068] In one example, the second node can determine the value of M based on the length of the first time slot and the length of the second time slot, and send probe messages in M ​​consecutive probe time slots so that the first node can obtain the probe results of M probe time slots.

[0069] In another example, the second node can send probe messages in multiple consecutive probe slots, where the number of probe slots can be greater than or equal to the value of M. The first node can determine the value of M based on the length of the first and second probe slots, and select M consecutive probe slots from the received probe messages to send probe messages, so as to obtain the probe results of M probe slots.

[0070] In some embodiments, the probe message may be sent at the end of the M probe time slots, or at the beginning of the M probe time slots. Alternatively, the probe message may be sent at other time domain locations within the M probe time slots, which may be time domain locations pre-agreed between the first node and the second node.

[0071] In one possible implementation, the first node can determine the detection results of the M probe time slots based on the arrival time of the probe messages sent in the M probe time slots at the first node's output port. In some embodiments, the input and output ports of the first node can use different time slot lengths.

[0072] For example, the first node may specifically perform the following steps S11-S12 to determine the detection results of M detection time slots.

[0073] S11. The first node obtains the time when the probe messages sent by the M probe time slots arrive at the output port of the first node.

[0074] When time slot scheduling is required, the second node can send probe messages in M ​​consecutive probe time slots. Then, the ingress port connecting the first node and the second node can receive the probe messages and deliver them to the egress port between the first node and other downstream nodes. Thus, the egress port of the first node can determine the time when the probe messages sent in the M probe time slots arrive at the egress port of the first node.

[0075] For example, such as Figure 3As shown, node U is the upstream node of node V, and node W is the downstream node of node V. For the path U—V—W, node V can forward messages received from node U to node W. If node U is connected to the outgoing port of node V, that is... Figure 3 The time slot length of link1 is Lu, and the output port of node V connecting to node W is also... Figure 3 The time slot length of port 2 (link2) is Lv. Assuming the least common multiple of Lu and Lv is Lc, then M is Lc / Lu. Node U sends probe messages to node V for M consecutive outgoing time slots (also called probe slots) in link1. Node V's outgoing port can receive the probe messages and deliver them to link2. The probe messages can include the numbers of the M outgoing time slots, for example, the numbers of the M outgoing time slots in the orchestration cycle are i%Q, (i+1)%Q...(i+M-1)%Q, where % is the modulo operator. Q is the number of the second time slot.

[0076] S12. The detection results of the M probe time slots are determined by the arrival time of the probe messages sent by the first node based on the M probe time slots at the output port of the first node.

[0077] In some embodiments, the detection result may include the transmission time slot number of the first node corresponding to the probe message transmitted within the probe time slot. Furthermore, the detection result is also used to indicate the remaining duration of the transmission time slot of the first node corresponding to the probe message transmitted within the probe time slot. For example, using... Figure 3 Taking the path U—V—W as an example, a detection result of node V may include the outgoing time slot i%Q of node U's outgoing port link1 being mapped to the transmission time slot number j_1 of node V's outgoing port link2, and there is still T_uv_1 remaining before the end of time slot j_1.

[0078] In some embodiments, the transmission time slots of the first node corresponding to the probe messages sent in adjacent probe time slots may be the same, or they may be different.

[0079] In some embodiments, the first node may record multiple detection results. For example, multiple detection results may be recorded in the form of a time slot mapping table.

[0080] For example, the above time slot mapping table can be as shown in Table 1. For ease of searching, an identifier can be assigned to each probe result sequentially. For instance, table[0], table[1]...table[Q-1] can be denoted as the mapping results corresponding to the outgoing time slots i%Q, (i+1)%Q...(i+M-1)%Q, respectively. Furthermore, the transmitting time slot in the table[].timeslot mapping result can be used, and table[].remaining represents the remaining duration of the transmitting time slot. For example, according to Table 1, table[0].timeslot is j_1, table[0].remaining is T_uv_1, table[m1-1].timeslot is j_m1, and table[m1-1].remaining is T_uv_m1.

[0081] Table 1

[0082]

[0083] For example, the above time slot mapping table can also be as shown in Table 2, wherein the mapping table can also include the transmitting time slot and the remaining duration of the transmitting time slot in the mapping result.

[0084] Table 2

[0085] logo Outgoing time slot of node U Transmission time slots of node V Remaining time [0] i%Q j_1 T_uv_1 [1] (i+1)%Q j_2 T_uv_2 … … … … [m1-1] (i+M-1)%Q j_M T_uv_M

[0086] In one possible example, with Figure 3 Taking the path U—V—W as an example, assume that the time slot length of the outgoing port of node U (referring to the outgoing port connecting to node V) is 20µs, and the orchestration period contains 25 time slots; the time slot length of the outgoing port of node V (referring to the outgoing port connecting to node W) d is 50µs, and the orchestration period contains 10 time slots. Since the least common multiple of the time slot lengths of nodes U and V is 100µs, node U needs to send probe messages to node V from the end of 5 consecutive time slots starting from any time slot number i in its orchestration period. The resulting mapping relationship can be as follows: Figure 4 As shown. Among them, Figure 4 Three possible examples are shown in the figure.

[0087] In Example 1, the outgoing time slots i, i+1, and i+2 of node U are all mapped to the transmitting time slot j of node V. That is, j_1, j_2, and j_3 in the above time slot mapping table are actually j. Furthermore, time slots i+3 and i+4 are mapped to the transmitting time slot j+1, that is, j_4 and j_5 in the above time slot mapping table are actually j+1.

[0088] In Example 2, time slots i and i+1 of node U are both mapped to time slot j of node V during transmission. That is, j_1 and j_2 in the above time slot mapping table are actually j. Furthermore, time slots i+2, i+3, and i+4 are all mapped to time slot j+1 during transmission. That is, j_3, j_4, and j_5 in the above time slot mapping table are actually j+1.

[0089] In Example 3, time slot i of node U is mapped to time slot j of node V in the process of transmission, meaning that j_1 in the time slot mapping table above is actually j. Time slots i+1, i+2, and i+3 are all mapped to time slot j+2 in the process of transmission, meaning that j_2, j_3, and j_4 in the time slot mapping table above are actually j+1, while time slot i+4 is mapped to time slot j_5 in the process of transmission, which is actually j+2.

[0090] For example, in this example, the time slot mapping table can also be as shown in Table 3, where Table 3 includes the detection results corresponding to three possible examples.

[0091] Table 3

[0092]

[0093] In another possible implementation, the first node can determine the detection results of the M probe time slots based on the arrival time of the probe messages sent in the M probe time slots at the ingress port of the first node. In some embodiments, the ingress port and egress port of the first node can use the same time slot length.

[0094] For example, the first node may specifically perform the following steps S21-S22 to determine the detection results of M detection time slots.

[0095] S21. The first node obtains the time when the probe messages sent by the M probe time slots arrive at the ingress port of the first node.

[0096] For example, such as Figure 5 As shown, if all ports of node V (including the input ports connecting node V to node U and the output ports connecting node V to node W) use the same time slot length and orchestration period, and time is synchronized on all ports within node V, then... Figure 5 The phase difference between the time slots of port 1 (link1) and port 2 (link2) is 0, and the state of the orchestration cycle of port link1 and port link2 is always consistent. Therefore, at any time, the transmission in progress time slot number in the orchestration cycle of port link1 and port link2 is the same. For example, based on the time system inside node V, at time T_100, the transmission in progress time slot of both port link1 and port link2 is time slot 1.

[0097] Therefore, for nodes whose ingress and egress ports use the same time slot length and orchestration period, when time slot resource reservation is required, the second node can send probe packets in M ​​consecutive probe time slots. The ingress port connecting the first and second nodes can then receive these probe packets. Since the first node's ingress and egress ports can use the same time slot length and orchestration period, the first node's ingress port does not need to actually forward the probe packets to the egress port. The first node can further determine the probe results of the M probe time slots by obtaining the forwarding delay between the ingress and egress ports.

[0098] S22. The detection results of the M probe time slots are determined by the arrival time of the probe messages sent by the first node based on the M probe time slots at the first node's ingress port and the forwarding delay between the first node's ingress port and egress port.

[0099] In some embodiments, the first node can determine the forwarding delay between its ingress and egress ports based on historical forwarding information between the ingress and egress ports. Alternatively, the first node can pre-store a preset delay, which is greater than or equal to the actual forwarding delay described above. The first node can directly obtain this preset delay and use it as the forwarding delay between its ingress and egress ports to determine the detection results of the M probe slots. It should be understood that the first node can also detect or obtain the forwarding delay between the ingress and egress ports in other possible ways, which will not be listed here.

[0100] In one implementation, the first node can predict the time when the probe packet arrives at the ingress port of the first node based on the time when the probe packet arrives at the ingress port of the first node and the aforementioned forwarding delay, and then determine the probe results of M probe time slots.

[0101] For example, such as Figure 6 As shown, if the forwarding delay between the ingress and egress ports of the first node is T_fe, then the first node can predict the arrival time of the probe packet at the egress port based on the arrival time of the probe packets sent in M ​​probe time slots at the ingress port of the first node, and the forwarding delay between the ingress and egress ports of the first node. For example, Figure 6 The message in the outgoing time slot i%Q of the outgoing port of node U arrives at the ingoing port of node V, i.e. Figure 6 If the time of port 1 (link1) is T_1, then it can be predicted that the probe message will arrive at the outgoing port, i.e. Figure 6The time of port 2 (link2) is (T_1+T_fe). Therefore, the first node can determine, based on this time (T_1+T_fe), which transmission time slot of the outgoing port link2 it falls into, and the remaining duration of that transmission time slot. In this way, the detection result corresponding to the outgoing time slot i%M1 can be obtained.

[0102] In some embodiments, the first node can determine the transmission time slot corresponding to the first node's output port based on the time when the probe packet arrives at the first node's ingress port, and then correct the transmission time slot based on the forwarding delay. The forwarding delay between the first node's ingress and output ports is an integer multiple of the time slot length.

[0103] For example, the first node can first determine which transmission time slot the arrival time of the probe message falls into, directly based on the arrival time of the probe message. Figure 6 The arrival time of the first probe packet (the probe packet corresponding to the outgoing time slot i%M1) is T_1, which falls within the transmitting time slot j_1'. Therefore, it is estimated that the first probe packet falls within the transmitting time slot (j_1'+K)%P of the outgoing port link2, where P is the number of the first time slots. Thus, the probe result corresponding to the outgoing time slot i%Q can be obtained. The forwarding delay mentioned above is K times the time slot length.

[0104] Furthermore, the detection results of the M detection time slots can be referred to the relevant description in step S12 above, which will not be repeated here.

[0105] S102. Based on the detection results of M detection time slots, the first node determines the target mapping relationship between the outgoing time slot of the second node and the transmitting time slot of the first node.

[0106] In some embodiments, the first node can use M probe time slots as a basic time slot group, and based on the probe results corresponding to the basic time slot group and the correspondence between the other outgoing time slots of the second node and the basic time slot group, determine the mapping relationship between the other outgoing time slots and the transmitting time slots of the first node.

[0107] It should be noted that during the time slot resource reservation process, a portion of the outgoing time slots can be used to probe the time slot mapping relationship between the first and second nodes. Then, the corresponding probe time slots between the other outgoing time slots of the second node and the basic time slot group are determined. Based on the probe results of these probe time slots, the mapping relationship with the transmitting time slots of the first node is determined. At this point, the portion of the second node's outgoing time slots used for probes can be called probe time slots, which is the aforementioned basic time slot group.

[0108] In some embodiments, such as Figure 7As shown, S102 can be specifically implemented as the following steps S1021-S1023:

[0109] S1021. The first node determines the target detection time slot corresponding to the target outgoing time slot from the M detection time slots and obtains the detection results of the target detection time slot.

[0110] The target outgoing time slot is any time slot in the orchestration cycle of the second node.

[0111] In some embodiments, the first node can use M detection time slots as a basic time slot group, and then determine the target detection time slot based on the time slot correspondence between the target time slot group (where the target outgoing time slot is located) and the basic time slot group. Furthermore, when the target detection time slot is determined, the detection result of the target detection time slot can be determined from the M detection results.

[0112] First, the first node can determine the number of the first time slot element in the target time slot group containing the target outgoing time slot based on the target outgoing time slot number, the number of the first probe time slot in the basic time slot group, the number of second time slots, and the value of M. The number of second time slots refers to the number of time slots included in the orchestration cycle of the second node.

[0113] For example, the number of the first slot element in the target slot group containing the target outgoing slot is determined based on the following formula (1):

[0114]

[0115] Where W is the number of the first time slot element in the target time slot group where the target outgoing time slot is located; % is the modulo operation; Q is the number of the second time slot; I is the number of the first detection time slot in the basic time slot group; X is the number of the target outgoing time slot; / is the floating-point division operation; This is for integer operations.

[0116] It should be noted that the multiple outgoing time slots in the orchestration cycle of the second node can be divided into multiple time slot groups. Each time slot group includes M outgoing time slots, meaning the target time slot group also includes M outgoing time slots. Furthermore, outgoing time slots in the same position within each time slot group have a corresponding relationship; for example, the first outgoing time slot in the target time slot group corresponds to the first probe time slot in the basic time slot group. The target time slot group can be any time slot group within this orchestration cycle.

[0117] Furthermore, the first node can determine the position of the target outgoing time slot in the target time slot group based on the number of the target outgoing time slot and the number of the first time slot element in the target time slot group, and take the detection time slot in the basic time slot group that is in the same position as the target detection time slot.

[0118] For example, the position of the target outgoing time slot in the target time slot group can be determined based on the following formula (2):

[0119] O = (X - W + Q) % Q Formula (2)

[0120] Where O represents the position of the target outgoing time slot within the target time slot group.

[0121] S1022. The first node determines the number of time slot offsets based on the target outgoing time slot, the first detection time slot among M detection time slots, the value of M, and the value of N.

[0122] The number of time slot offsets is used to characterize the number of time slots of the first node that exist within the time interval between the target outgoing time slot and the target detection time slot.

[0123] In some embodiments, the first node may first determine the number of time slot groups contained in the time interval between the target outgoing time slot and the first detection time slot among the M detection time slots, and then determine the number of time slot offsets.

[0124] First, the first node can determine the number of time slot groups contained in the time interval between the target outgoing time slot and the first detection time slot among the M detection time slots based on the target outgoing time slot number, the first detection time slot number among the M detection time slots, and the value of M.

[0125] For example, if the target outgoing time slot is numbered X, and the first detection time slot in the M detection time slots is numbered I, since a time slot group in the detection period of the second node includes M outgoing time slots, the number of time slot groups contained in the time interval between the target outgoing time slot and the first detection time slot in the M detection time slots can be expressed as: Taking the detection results shown in Table 3 above as an example, for any time slot X of node U, its target time slot group is the nth time slot group starting from the base time slot group. There are several time slot groups, and the time slot number of the first time slot in the group is... The second time slot is numbered as follows: The fifth time slot is numbered as follows:

[0126] Furthermore, the first node can determine the number of time slot offsets based on the number of time slot groups contained in the time interval between the target outgoing time slot and the first detection time slot among the M detection time slots, and the value of N. Here, the length of the N time slots in the first node's orchestration cycle is equal to the length of the M time slots in the second node's orchestration cycle, where N is a positive integer.

[0127] For example, the number of time slot offsets can be determined based on the following formula (3):

[0128]

[0129] Where E is the number of time slot offsets; I is the number of the first detection time slot among the M detection time slots; X is the number of the target outgoing time slot; / is a floating-point division operation; This is for integer operations.

[0130] In some embodiments, the value of N can be determined based on the first time slot length and the second time slot length. In one example, the value of N can be equal to the quotient of the least common multiple between the first and second time slot lengths and the first time slot length. It should be understood that N represents the number of transmission time slots of the first node involved in detecting the complete time slot mapping relationship with the first node.

[0131] S1023. The first node determines the target mapping relationship based on the detection results of the target detection time slot, the number of time slot offsets, and the number of first time slots.

[0132] In some embodiments, the first node may use the sum of the number of the transmitting time slot indicated by the detection result of the target detection time slot, the number of time slot offsets, and the number of first time slots as the first number. Then, a modulo operation based on the number of first time slots is performed on the first number to obtain the number of the target transmitting time slot, and the target mapping relationship is determined based on the number of the target outgoing time slot and the number of the target transmitting time slot.

[0133] The number of first time slots refers to the number of time slots, measured by the length of the first time slot, contained within the orchestration cycle of the first node.

[0134] For example, the time slot in the target transmission can be determined based on the following formula (4):

[0135]

[0136] Where Y is the number of the time slot in the target transmission; Z is the number of the transmission time slot indicated by the detection result of the target detection time slot; and P is the number of the first time slots. `<number>` represents the number of time slot offsets; ` / ` represents a floating-point division operation. % is for integer operation; % is for modulo operation.

[0137] In some embodiments, the first node may establish a mapping relationship between each outgoing time slot in the second node and the transmitting time slot of the first node based on the above-described method of determining the mapping relationship, so as to reserve time slot resources based on the mapping relationship.

[0138] S103. Based on the target mapping relationship, the first node reserves the outgoing time slot of the first node for the target message sent by the second node.

[0139] In some embodiments, the first node can determine the transmitting time slot mapped to the outgoing time slot of the second node for sending the target message based on the mapping relationship between the outgoing time slot of the second node and the transmitting time slot of the first node. Then, the outgoing time slot of the first node for sending the target message can be determined from the time slots after the transmitting time slot mapped to the outgoing time slot of the second node for sending the target message.

[0140] It should be noted that the first node can use the determined target mapping relationship as a reference for selecting outgoing time slots. When a target message needs to be sent from the second node, it first determines the target transmission time slot of the first node mapped to the target outgoing time slot of the second node used to send the target message, based on the target mapping relationship. Furthermore, outgoing time slot resources for the first node to send the target message can be reserved after this target transmission time slot. This outgoing time slot can be the next time slot after this transmission time slot in the first node, or the time slot after the next time slot, etc., and can be determined based on available idle time slot resources when sending the target message and preset delay constraints, etc.

[0141] Based on the above embodiments, in a hybrid time-slot length network, the mapping relationship between the outgoing time slots of the transmitting nodes and the transmitting time slots of the receiving nodes of adjacent nodes can be determined. This determined mapping relationship can then be used as a reference for selecting outgoing time slots, thereby enabling time slot scheduling in the hybrid time-slot length network. This reserves time slot resources for target packets that need to be sent, meeting the requirements of deterministic services. Furthermore, this provides a solid foundation for deploying packet time slot scheduling mechanisms in cross-domain interconnected hybrid time-slot length networks.

[0142] In some embodiments, such as Figure 8 As shown in the figure, this application embodiment also provides a time slot resource reservation method, applied to a second node, the method including the following steps:

[0143] S201. The second node determines the number M of probe time slots used to send probe messages, where M is a positive integer.

[0144] In some implementations, the value of M is determined based on the length of the first time slot and the length of the second time slot. The first time slot length is the length of the time slot in the orchestration cycle of the first node, and the second time slot length is the length of the time slot in the orchestration cycle of the second node. For example, the value of M is equal to the quotient of the least common multiple between the first and second time slot lengths and the second time slot length.

[0145] Furthermore, for a detailed explanation of M, please refer to the relevant description of step S101 above, which will not be repeated here.

[0146] S202. The second node sends probe messages to the first node on M consecutive probe time slots, so that the first node can determine the target mapping relationship between the target outgoing time slot of the second node and the target sending time slot of the first node based on the probe results of the M probe time slots.

[0147] Among them, the probe message corresponding to each probe time slot is used to determine the transmission time slot of the first node corresponding to the probe time slot, and the target mapping relationship is used to instruct the first node to reserve the outgoing time slot of the first node for the target message sent by the second node based on the target mapping relationship.

[0148] In some embodiments, the probe message further includes at least one of the following: the number of second time slots, the length of the second time slot, and the value of M. Wherein, the length of the second time slot is the length of a time slot in the orchestration cycle of the second node. The number of second time slots is the number of time slots included in the orchestration cycle of the second node.

[0149] In some embodiments, the probe message may be sent at the end of the M probe time slots, or at the beginning of the M probe time slots. Alternatively, the probe message may be sent at other time domain locations within the M probe time slots, which may be time domain locations pre-agreed between the first node and the second node.

[0150] Furthermore, for detailed explanations of steps S201-S202, please refer to the descriptions of steps S101-S103 above, which will not be repeated here.

[0151] Based on the above embodiments, in a hybrid time-slot length network, an upstream node (i.e., the second node mentioned above) in an adjacent time slot can first send a probe message in the probe time slot to determine the mapping relationship between the probe time slot and the sending time slot of the downstream node. Then, based on the mapping relationship corresponding to the probe time slot, the mapping relationship corresponding to other outgoing time slots of the upstream node can be determined. In this way, time slot scheduling can be performed in the hybrid time-slot length network based on the determined mapping relationship, reserving time slot resources for the target message to be sent and meeting the needs of deterministic services.

[0152] The above primarily describes the solution provided in this application from the perspective of the interaction between various nodes. It is understood that each node, such as a device or apparatus, includes corresponding hardware structures and / or software modules to perform the aforementioned functions. Those skilled in the art should readily recognize that, based on the algorithmic steps of the examples described in conjunction with the embodiments disclosed herein, the present invention can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.

[0153] Figure 9 The diagram shown is a schematic representation of a time slot resource reservation device provided in an embodiment of this application, which can be applied to the first node. Figure 9 As shown, the time slot resource reservation device 90 includes a receiving module 901 and a processing module 902.

[0154] In some embodiments, the receiving module 901 is configured to obtain the detection results of M detection time slots by receiving detection messages sent by the second node in M ​​consecutive detection time slots; wherein, the detection result of each detection time slot is used to indicate the transmitting time slot of the first node mapped by the detection message sent in the detection time slot, and M is a positive integer. The processing module 902 is configured to determine the target mapping relationship between the target outgoing time slot of the second node and the target transmitting time slot of the first node based on the detection results of the M detection time slots. The processing module 902 is also configured to reserve the outgoing time slot of the first node for the target message sent by the second node based on the target mapping relationship.

[0155] In some embodiments, the receiving module 901 is further configured to obtain the time when the probe messages sent by the M probe time slots arrive at the egress port of the first node. The processing module 902 is further configured to determine the probe results of the M probe time slots based on the time when the probe messages sent by the M probe time slots arrive at the egress port of the first node.

[0156] In some embodiments, the receiving module 901 is further configured to obtain the time when the probe messages sent in the M probe time slots arrive at the ingress port of the first node. The processing module 902 is further configured to determine the probe results of the M probe time slots based on the time when the probe messages sent in the M probe time slots arrive at the ingress port of the first node, and the forwarding delay between the ingress port and the egress port of the first node.

[0157] In some embodiments, the processing module 902 is further configured to: determine the target detection time slot corresponding to the target outgoing time slot from the M detection time slots, and obtain the detection result of the target detection time slot; determine the number of time slot offsets based on the target outgoing time slot, the first detection time slot among the M detection time slots, the value of M, and the value of N; wherein, the number of time slot offsets is the number of time slots determined based on the first time slot length in the time interval between the target outgoing time slot and the target detection time slot, the number of time slot offsets is an integer, and the value of N is equal to the quotient of the least common multiple between the first time slot length and the second time slot length and the first time slot length; determine the target mapping relationship based on the detection result of the target detection time slot, the number of time slot offsets, and the number of first time slots; the number of first time slots is the number of time slots included in the orchestration period of the first node, measured by the first time slot length, and the length of the orchestration period of the first node is equal to the length of the orchestration period of the second node.

[0158] In some embodiments, the processing module 902 is further configured to: take M probe time slots as a basic time slot group, and determine the number of the first time slot element in the target time slot group where the target outgoing time slot is located based on the number of the target outgoing time slot, the number of the first probe time slot in the basic time slot group, the number of the second time slots, and the value of M; wherein, the number of the second time slots is the number of time slots included in the orchestration period of the second node, measured by the second time slot length; determine the position of the target outgoing time slot in the target time slot group based on the number of the target outgoing time slot and the number of the first time slot element in the target time slot group; and take the probe time slot in the basic time slot group that is in the correct position as the target probe time slot.

[0159] In some embodiments, the number of the first time slot element in the target time slot group containing the target outgoing time slot is determined based on the following formula:

[0160]

[0161] Where W is the number of the first time slot element in the target time slot group where the target outgoing time slot is located; % is the modulo operation; Q is the number of the second time slot; I is the number of the first detection time slot in the basic time slot group; X is the number of the target outgoing time slot; / is the floating-point division operation; This is for integer operations.

[0162] The position of the target outgoing time slot within the target time slot group is determined based on the following formula:

[0163] O = (X - W + Q)%Q

[0164] Where O represents the position of the target outgoing time slot within the target time slot group.

[0165] In some embodiments, the processing module 902 is further configured to: determine the number of time slot groups contained in the time interval between the target outgoing time slot and the first detection time slot among the M detection time slots based on the number of the target outgoing time slot, the number of the first detection time slot among the M detection time slots, and the value of M; and determine the number of time slot offsets based on the number of time slot groups and the value of N.

[0166] In some embodiments, the number of time slot offsets is determined based on the following formula:

[0167]

[0168] Where E is the number of time slot offsets; I is the number of the first detection time slot among the M detection time slots; X is the number of the target outgoing time slot; / is a floating-point division operation; This is for integer operations.

[0169] In some embodiments, the processing module 902 is further configured to: use the sum of the number of the transmitting time slot indicated by the detection result of the target detection time slot, the number of time slot offsets, and the number of the first time slot as a first number; perform a modulo operation on the first number based on the number of the first time slot to obtain the number of the target transmitting time slot; and determine the target mapping relationship based on the number of the target outgoing time slot and the number of the target transmitting time slot.

[0170] In some embodiments, the time slot in the target transmission is determined based on the following formula:

[0171]

[0172] Where Y is the number of the time slot in the target transmission; Z is the number of the transmission time slot indicated by the detection result of the target detection time slot; and P is the number of the first time slots. `<number>` represents the number of time slot offsets; ` / ` represents a floating-point division operation. % is for integer operation; % is for modulo operation.

[0173] In some embodiments, the value of M is determined based on the first time slot length and the second time slot length. The first time slot length is the length of the time slot in the orchestration cycle of the first node, and the second time slot length is the length of the time slot in the orchestration cycle of the second node. The orchestration cycle of the first node and the orchestration cycle of the second node are of equal length.

[0174] In some embodiments, the value of M is equal to the quotient of the least common multiple between the first time slot length and the second time slot length and the second time slot length.

[0175] In some embodiments, the probe message includes the outgoing timeslot number of the second node corresponding to the probe message.

[0176] In some embodiments, the probe message further includes at least one of the following: the number of second time slots, the length of the second time slot, and the value of M, wherein the number of second time slots is the number of time slots in the orchestration cycle of the second node.

[0177] In some embodiments, the detection result is also used to indicate the remaining duration of the transmission time slot of the first node corresponding to the detection message transmitted within the detection time slot.

[0178] In some embodiments, the processing module 902 is further configured to: determine the transmission time slot mapped by the outgoing time slot of the second node for sending the target message based on the mapping relationship between the outgoing time slot of the second node and the transmission time slot of the first node; and determine the outgoing time slot of the first node for sending the target message from the time slots after the transmission time slot mapped by the outgoing time slot of the second node for sending the target message.

[0179] Figure 10 The diagram shown illustrates another time slot resource reservation device provided in this application embodiment, which can be applied to a second node. Figure 10 As shown, the time slot resource reservation device 100 includes a processing module 1001 and a sending module 1002.

[0180] In some embodiments, the processing module 1001 is configured to determine the number M of probe time slots for sending probe messages, where M is an integer greater than or equal to 1. The sending module 1002 is configured to send probe messages to the first node on M consecutive probe time slots, so that the first node determines the target mapping relationship between the target outgoing time slot of the second node and the target transmitting time slot of the first node based on the probe results of the M probe time slots; wherein, the probe message corresponding to each probe time slot is used to determine the transmitting time slot of the first node corresponding to the probe time slot, and the target mapping relationship is used to instruct the first node to reserve the outgoing time slot of the first node for the target message sent by the second node based on the target mapping relationship.

[0181] In some embodiments, the value of M is determined based on the first time slot length and the second time slot length. The first time slot length is the length of the time slot in the orchestration cycle of the first node, and the second time slot length is the length of the time slot in the orchestration cycle of the second node. The orchestration cycle of the first node and the orchestration cycle of the second node are of equal length.

[0182] In some embodiments, the value of M is equal to the quotient of the least common multiple between the first time slot length and the second time slot length and the second time slot length.

[0183] In some embodiments, the probe message includes the probe slot number of the second node corresponding to the probe message.

[0184] In some embodiments, the probe message further includes at least one of the following: the number of second time slots, the length of the second time slot, and the value of M; wherein, the length of the second time slot is the length of the time slot in the orchestration period of the second node; and the number of second time slots is the number of time slots included in the orchestration period of the second node.

[0185] It should be noted that, Figure 9 or Figure 10 Modules in a module can also be called units; for example, a processing module can be called a processing unit. Additionally, in... Figure 9 or Figure 10 In the embodiments shown, the names of the modules may not be the same as those shown in the figures. For example, the receiving module or the sending module may also be called the communication module.

[0186] Figure 9 or Figure 10 If the various units in the process are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. Storage media for storing computer software products include: USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, optical disks, and other media capable of storing program code.

[0187] In the case of implementing the functions of the integrated modules described above in hardware, this application provides a schematic diagram of the structure of a time slot resource reservation device. For example... Figure 11 As shown, the time slot resource reservation device 1100 includes: a processor 1102, a communication interface 1103, and a bus 1104. Optionally, the time slot resource reservation device 1100 may also include a memory 1101.

[0188] Processor 1102 may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 1102 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 1102 may also be a combination that implements computing functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.

[0189] Communication interface 1103 is used to connect to other devices via a communication network. This communication network can be Ethernet, wireless access network, wireless local area network (WLAN), etc.

[0190] The memory 1101 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), disk storage medium or other magnetic storage device, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto.

[0191] As one possible implementation, the memory 1101 can exist independently of the processor 1102. The memory 1101 can be connected to the processor 1102 via the bus 1104 and is used to store instructions or program code. When the processor 1102 calls and executes the instructions or program code stored in the memory 1101, it can implement the time slot resource reservation method provided in the embodiments of this application.

[0192] In another possible implementation, the memory 1101 can also be integrated with the processor 1102.

[0193] Bus 1104 can be an extended industry standard architecture (EISA) bus, etc. Bus 1104 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 11 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0194] Through the above description of the implementation methods, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the equipment or device can be divided into different functional modules to complete all or part of the functions described above.

[0195] This application also provides a computer-readable storage medium. All or part of the processes in the above method embodiments can be executed by computer instructions instructing related hardware. The program can be stored in the computer-readable storage medium, and when executed, it can include the processes of the above method embodiments. The computer-readable storage medium can be any of the foregoing embodiments or memory. The computer-readable storage medium can also be an external storage device for the above-mentioned device or apparatus, such as a plug-in hard drive, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the above-mentioned device or apparatus. Further, the computer-readable storage medium can include both internal storage units and external storage devices of the above-mentioned device or apparatus. The computer-readable storage medium is used to store the above-mentioned computer program and other programs and data required by the above-mentioned device or apparatus. The computer-readable storage medium can also be used to temporarily store data that has been output or will be output.

[0196] This application also provides a computer program product, which includes a computer program that, when run on a computer, causes the computer to execute any of the time slot resource reservation methods provided in the above embodiments.

[0197] Although this application has been described herein in conjunction with various embodiments, those skilled in the art, by reviewing the accompanying drawings, disclosure, and appended claims, will understand and implement other variations of the disclosed embodiments in carrying out the claimed application. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude multiple components. A single processor or other unit can implement several functions listed in the claims. While different dependent claims may recite certain measures, this does not mean that these measures cannot be combined to produce good results.

[0198] Although this application has been described in conjunction with specific features and embodiments, it is obvious that various modifications and combinations can be made thereto without departing from the spirit and scope of this application. Accordingly, this specification and drawings are merely exemplary illustrations of this application as defined by the appended claims, and are considered to cover any and all modifications, variations, combinations, or equivalents within the scope of this application. Clearly, those skilled in the art can make various alterations and modifications to this application without departing from the spirit and scope of this application. Thus, if such modifications and modifications of this application fall within the scope of the claims of this application and their equivalents, this application is also intended to include such modifications and modifications.

[0199] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for reserving time slot resources, characterized in that, Applied to the first node, the method includes: The detection results of the M detection time slots are obtained by receiving the detection messages sent by the second node in M ​​consecutive detection time slots; wherein, the detection result of each detection time slot is used to indicate the transmission time slot of the first node mapped by the detection message sent in the detection time slot, and M is a positive integer; Based on the detection results of the M detection time slots, the target mapping relationship between the target outgoing time slot of the second node and the target transmitting time slot of the first node is determined; Based on the target mapping relationship, the outgoing time slot of the first node is reserved for the target message sent by the second node; Wherein, the value of M is equal to the quotient of the least common multiple between the first time slot length and the second time slot length and the second time slot length, the first time slot length is the length of the time slot in the orchestration cycle of the first node, the second time slot length is the length of the time slot in the orchestration cycle of the second node, the orchestration cycle of the first node and the orchestration cycle of the second node are of equal length, and the orchestration cycle refers to the cycle in which the network node implements the time-division multiplexing scheduling mechanism; The step of determining the target mapping relationship between the target outgoing time slot of the second node and the target transmitting time slot of the first node based on the detection results of the M detection time slots includes: Determine the target detection time slot corresponding to the target outgoing time slot from the M detection time slots, and obtain the detection result of the target detection time slot; Based on the target outgoing time slot, the first detection time slot among the M detection time slots, the value of M, and the value of N, the number of time slot offsets is determined; wherein, the number of time slot offsets is the number of time slots determined based on the first time slot length in the time interval between the target outgoing time slot and the target detection time slot, the number of time slot offsets is an integer, and the value of N is equal to the quotient of the least common multiple between the first time slot length and the second time slot length and the first time slot length; Based on the detection results of the target detection time slot, the number of time slot offsets, and the number of first time slots, the target mapping relationship is determined; the number of first time slots is the number of time slots included in the orchestration period of the first node, measured by the length of the first time slot.

2. The method according to claim 1, characterized in that, The step of obtaining the detection results of the M detection time slots by receiving the detection messages sent by the second node in M ​​consecutive detection time slots includes: Obtain the time when the probe messages sent by the M probe time slots arrive at the output port of the first node; The detection results of the M detection time slots are determined based on the time when the detection messages sent in the M detection time slots arrive at the output port of the first node.

3. The method according to claim 1, characterized in that, The step of obtaining the detection results of the M detection time slots by receiving the detection messages sent by the second node in M ​​consecutive detection time slots includes: Obtain the time when the probe messages sent by the M probe time slots arrive at the ingress port of the first node; The detection results of the M detection time slots are determined based on the time when the detection messages sent in the M detection time slots arrive at the ingress port of the first node, and the forwarding delay between the ingress port and the egress port of the first node.

4. The method according to claim 1, characterized in that, The step of determining the target detection time slot corresponding to the target outgoing time slot from the M detection time slots includes: Using the M detection time slots as the basic time slot group, based on the number of the target outgoing time slot, the number of the first detection time slot in the basic time slot group, the number of the second time slots, and the value of M, the number of the first time slot element in the target time slot group where the target outgoing time slot is located is determined; wherein, the number of the second time slots is the number of time slots included in the orchestration period of the second node, measured by the length of the second time slot; Based on the number of the target outgoing time slot and the number of the first time slot element in the target time slot group, the position of the target outgoing time slot in the target time slot group is determined; The detection time slot at the specified position in the basic time slot group is taken as the target detection time slot.

5. The method according to claim 4, characterized in that, The number of the first time slot element in the target time slot group containing the target outgoing time slot is determined based on the following formula: W = (I + *M + Q)%Q Wherein, W is the number of the first time slot element in the target time slot group where the target outgoing time slot is located; For modulo operation; Q is the number of the second time slot; I is the number of the first probe time slot in the basic time slot group; is the number of the target outgoing time slot; / is the floating-point division operation; For integer operations; The position of the target outgoing time slot in the target time slot group is determined based on the following formula: O = (X - W + Q) %Q Where O is the position of the target outgoing time slot in the target time slot group.

6. The method according to claim 4, characterized in that, The determination of the number of time slot offsets based on the target outgoing time slot, the first detection time slot among the M detection time slots, the value of M, and the value of N includes: Based on the target outgoing time slot number, the first detection time slot among the M detection time slots, and the value of M, determine the number of time slot groups contained in the time interval between the target outgoing time slot and the first detection time slot among the M detection time slots; The number of time slot offsets is determined based on the number of time slot groups and the value of N.

7. The method according to claim 6, characterized in that, The number of time slot offsets is determined based on the following formula: E = * N Where E is the number of time slot offsets; I is the number of the first detection time slot among the M detection time slots; X is the number of the target outgoing time slot; / is a floating-point division operation; This is for integer operations.

8. The method according to claim 1, characterized in that, The determination of the target mapping relationship based on the detection results of the target detection time slot, the number of time slot offsets, and the number of first time slots includes: The first number is the sum of the number of the transmission time slot indicated by the detection result of the target detection time slot, the number of time slot offsets, and the number of the first time slots; Perform a modulo operation on the first number based on the number of the first time slots to obtain the number of the time slot in the target transmission; The target mapping relationship is determined based on the target outgoing time slot number and the target transmitting time slot number.

9. The method according to claim 8, characterized in that, The time slot for target transmission is determined based on the following formula: Y = (Z + * N + P)% P Wherein, Y is the number of the time slot in the target transmission; Z is the number of the transmission time slot indicated by the detection result of the target detection time slot; and P is the number of the first time slots. * N is the number of time slot offsets; / is a floating-point division operation; % represents the integer operation; % represents the modulo operation; I represents the number of the first detection time slot among the M detection time slots; X represents the number of the target outgoing time slot.

10. The method according to claim 1, characterized in that, The probe message includes the outgoing time slot number of the second node corresponding to the probe message.

11. The method according to claim 10, characterized in that, The probe message further includes at least one of the following: the number of second time slots, the length of the second time slot, and the value of M, wherein the length of the second time slot is the length of the time slot in the orchestration period of the second node, and the number of the second time slots is the number of time slots included in the orchestration period of the second node, measured by the length of the second time slot.

12. The method according to claim 1, characterized in that, The detection result is also used to indicate the remaining duration of the transmission time slot of the first node corresponding to the detection message sent within the detection time slot.

13. The method according to claim 1, characterized in that, The mapping relationship between the target outgoing time slot of the second node and the target transmission time slot of the first node, which reserves the outgoing time slot of the first node for the target message sent by the second node, includes: Based on the outgoing time slot of the second node used to send the target message, which is mapped to the transmitting time slot of the first node, the outgoing time slot of the first node used to send the target message is determined from the time slots after the transmitting time slot of the first node.

14. A method for reserving time slot resources, characterized in that, Applied to the second node, including: Determine the number M of probe slots used to send probe messages, where M is a positive integer; A probe message is sent to the first node in M ​​consecutive probe time slots, so that the first node determines the target mapping relationship between the target outgoing time slot of the second node and the target transmitting time slot of the first node based on the probe results of the M probe time slots; wherein, the probe message corresponding to each probe time slot is used to determine the transmitting time slot of the first node corresponding to the probe time slot, and the target mapping relationship is used to instruct the first node to reserve the outgoing time slot of the first node for the target message sent by the second node; Wherein, the value of M is equal to the quotient of the least common multiple between the first time slot length and the second time slot length and the second time slot length, the first time slot length is the length of the time slot in the orchestration cycle of the first node, the second time slot length is the length of the time slot in the orchestration cycle of the second node, the orchestration cycle of the first node and the orchestration cycle of the second node are of equal length, and the orchestration cycle refers to the cycle in which the network node implements the time-division multiplexing scheduling mechanism; The probe message is used to enable the first node to determine the target mapping relationship in the following way: Determine the target detection time slot corresponding to the target outgoing time slot from the M detection time slots, and obtain the detection result of the target detection time slot; Based on the target outgoing time slot, the first detection time slot among the M detection time slots, the value of M, and the value of N, the number of time slot offsets is determined; wherein, the number of time slot offsets is the number of time slots determined based on the first time slot length in the time interval between the target outgoing time slot and the target detection time slot, the number of time slot offsets is an integer, and the value of N is equal to the quotient of the least common multiple between the first time slot length and the second time slot length and the first time slot length; Based on the detection results of the target detection time slot, the number of time slot offsets, and the number of first time slots, the target mapping relationship is determined; the number of first time slots is the number of time slots included in the orchestration period of the first node, measured by the length of the first time slot.

15. The method according to claim 14, characterized in that, The probe message includes the probe slot number of the second node corresponding to the probe message.

16. The method according to claim 15, characterized in that, The probe message further includes at least one of the following: the number of second time slots, the length of the second time slot, and the value of M; wherein, the number of second time slots is the number of time slots included in the orchestration period of the second node, measured by the length of the second time slot.

17. A communication device, characterized in that, include: Memory and processor; Memory and processor are coupled; The memory is used to store instructions that can be executed by the processor; When the processor executes the instructions, it performs the method as described in any one of claims 1 to 16.

18. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed on a communication device, cause the communication device to perform the method as described in any one of claims 1 to 16.