[go: up one dir, main page]

CN118828901A - A time slot resource reservation method, communication device and storage medium - Google Patents

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

Info

Publication number
CN118828901A
CN118828901A CN202310457534.6A CN202310457534A CN118828901A CN 118828901 A CN118828901 A CN 118828901A CN 202310457534 A CN202310457534 A CN 202310457534A CN 118828901 A CN118828901 A CN 118828901A
Authority
CN
China
Prior art keywords
time slot
node
detection
target
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310457534.6A
Other languages
Chinese (zh)
Inventor
陈晓
彭少富
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN202310457534.6A priority Critical patent/CN118828901A/en
Priority to PCT/CN2023/141641 priority patent/WO2024217043A1/en
Publication of CN118828901A publication Critical patent/CN118828901A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • H04W72/044Wireless resource allocation based on the type of the allocated resource
    • H04W72/0446Resources in time domain, e.g. slots or frames
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/26Resource reservation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application provides a time slot resource reservation method, a communication device and a storage medium, which relate to the technical field of communication and are used for performing time slot scheduling in a mixed time slot length network and reserving time slot resources for a target message to be sent. The method specifically comprises the following steps: obtaining detection results of M detection time slots by receiving detection messages sent by a second node in the continuous M detection time slots; the detection result of each detection time slot is used for indicating a time slot in the transmission of a first node mapped by a detection message transmitted in the detection time slot, and M is a positive integer; determining a target mapping relation between a target of the second node and a time slot in target transmission of the first node based on detection results of the M detection time slots; based on the target mapping relationship, the output time slot of the first node is sent to the target report Wen Yuliu by the second node.

Description

一种时隙资源预留方法、通信装置及存储介质A time slot resource reservation method, communication device and storage medium

技术领域Technical Field

本申请涉及通信技术领域,尤其涉及一种时隙资源预留方法、通信装置及存储介质。The present application relates to the field of communication technology, and in particular to a time slot resource reservation method, a communication device and a storage medium.

背景技术Background Art

目前,为满足产业互联网阶段,随着远程医疗、远程驾驶和网络制造等远程控制类时延敏感业务对底层网络的需求,业界在研究如何增强IP/MPLS网络以提供确定性转发能力。IETF发布了标准RFC8655,描述了确定性网络的架构,定义了确定性转发的服务质量(Quality of Service,QoS)目标:从源到目的地的最小和最大时延,以及有界的时延抖动;允许的报文丢失率;无序报文传递的上界。在该网络架构中,可以采用时隙(或周期)调度机制来满足不同业务需求。At present, in order to meet the needs of the underlying network for remote control delay-sensitive services such as telemedicine, remote driving and network manufacturing, the industry is studying how to enhance IP/MPLS networks to provide deterministic forwarding capabilities. IETF has released the standard RFC8655, which describes the architecture of deterministic networks and defines the quality of service (QoS) objectives of deterministic forwarding: the minimum and maximum delays from source to destination, as well as bounded delay jitter; the allowed message loss rate; and the upper bound of out-of-order message delivery. In this network architecture, a time slot (or cycle) scheduling mechanism can be used to meet different business needs.

但是,当前的时隙(或周期)调度机制通常是针对各节点的时隙长度相同的确定性网络,对于具有多种时隙长度的混合时隙网络,无法实现合理的资源预留和分配。However, the current time slot (or cycle) scheduling mechanism is usually aimed at a deterministic network with the same time slot length for each node. For a mixed time slot network with multiple time slot lengths, reasonable resource reservation and allocation cannot be achieved.

发明内容Summary of the invention

本申请提供一种时隙资源预留方法、通信装置及存储介质,用于在混合时隙长度网络中进行时隙映射关系的建立,为需要发送的目标报文预留时隙资源。The present application provides a time slot resource reservation method, a communication device and a storage medium, which are used to establish a time slot mapping relationship in a mixed time slot length network and reserve time slot resources for a target message to be sent.

为了达到上述目的,本申请采用如下技术方案:In order to achieve the above purpose, this application adopts the following technical solutions:

第一方面,本申请提供一种时隙资源预留方法,应用于第一节点,该方法包括:In a first aspect, the present application provides a time slot resource reservation method, which is applied to a first node, and the method includes:

通过接收第二节点在连续M个探测时隙发送的探测报文,得到M个探测时隙的探测结果;其中,每个探测时隙的探测结果用于指示探测时隙内发送的探测报文映射的第一节点的发送中时隙,M为正整数;By receiving the detection message sent by the second node in M consecutive detection time slots, the detection results of the M detection time slots are obtained; wherein the detection result of each detection time slot is used to indicate the sending time slot of the first node mapped by the detection message sent in the detection time slot, and M is a positive integer;

基于M个探测时隙的探测结果,确定第二节点的目标出向时隙与第一节点的目标发送中时隙之间的目标映射关系;Determine a target mapping relationship between a target outgoing time slot of the second node and a target transmitting time slot of the first node based on the detection results of the M detection time slots;

基于目标映射关系,为第二节点发送的目标报文预留第一节点的出向时隙。Based on the target mapping relationship, an outgoing time slot of the first node is reserved for the target message sent by the second node.

第二方面,本申请提供另一种时隙资源预留方法,应用于第二节点,该包括:In a second aspect, the present application provides another time slot resource reservation method, which is applied to a second node and includes:

确定用于发送探测报文的探测时隙的个数M,M为正整数;Determine the number M of detection time slots used to send detection messages, where M is a positive integer;

在连续的M个探测时隙发送探测报文至第一节点,以使第一节点基于M个探测时隙的探测结果,确定第二节点的目标出向时隙与第一节点的目标发送中时隙之间的目标映射关系;其中,每个探测时隙对应的探测报文用于确定与探测时隙对应的第一节点的发送中时隙,目标映射关系用于指示第一节点为第二节点发送的目标报文预留第一节点的出向时隙。Send a detection message to the first node in M consecutive detection 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 sending time slot of the first node based on the detection results of the M detection time slots; wherein the detection message corresponding to each detection time slot is used to determine the sending time slot of the first node corresponding to the detection time slot, and the target mapping relationship is used to indicate the first node to reserve the outgoing time slot of the first node for the target message sent by the second node.

第三方面,提供一种时隙资源预留的装置,应用于第一节点,该装置包括:In a third aspect, a device for reserving time slot resources is provided, which is applied to a first node, and the device includes:

接收模块,用于通过接收第二节点在连续M个探测时隙发送的探测报文,得到M个探测时隙的探测结果;其中,每个探测时隙的探测结果用于指示探测时隙内发送的探测报文映射的第一节点的发送中时隙,M为正整数;A receiving module, configured to obtain 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 sending time slot of the first node mapped by the detection message sent in the detection time slot, and M is a positive integer;

处理模块,用于基于M个探测时隙的探测结果,确定第二节点的目标出向时隙与第一节点的目标发送中时隙之间的目标映射关系;A processing module, configured to determine a target mapping relationship between a target outgoing time slot of the second node and a target transmitting time slot of the first node based on the detection results of the M detection time slots;

处理模块,还用于基于目标映射关系,为第二节点发送的目标报文预留第一节点的出向时隙。The processing module is further used to reserve an outgoing time slot of the first node for a target message sent by the second node based on the target mapping relationship.

第四方面,提供另一种时隙资源预留的装置,应用于第二节点,该装置包括:In a fourth aspect, another device for reserving time slot resources is provided, which is applied to a second node, and includes:

处理模块,用于确定用于发送探测报文的探测时隙的个数M,M为正整数;A processing module, used to determine the number M of detection time slots used to send detection messages, where M is a positive integer;

发送模块,用于在连续的M个探测时隙发送探测报文至第一节点,以使第一节点基于M个探测时隙的探测结果,确定第二节点的目标出向时隙与第一节点的目标发送中时隙之间的目标映射关系;其中,每个探测时隙对应的探测报文用于确定与探测时隙对应的第一节点的发送中时隙,目标映射关系用于指示第一节点为第二节点发送的目标报文预留第一节点的出向时隙。A sending module is used to send a detection message to a first node in M consecutive detection 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 sending time slot of the first node based on the detection results of the M detection time slots; wherein the detection message corresponding to each detection time slot is used to determine the sending time slot of the first node corresponding to the detection time slot, and the target mapping relationship is used to indicate that the first node reserves the outgoing time slot of the first node for the target message sent by the second node.

第五方面,提供一种通行装置,包括:处理器和存储器;存储器存储有处理器可执行的指令;处理器被配置为执行指令时,使得该通信装置实现如上述第一方面或第二方面所提供的时隙资源预留方法。In a fifth aspect, a communication device is provided, comprising: a processor and a memory; the memory stores instructions executable by the processor; when the processor is configured to execute the instructions, the communication device implements the time slot resource reservation method provided in the first aspect or the second aspect above.

第六方面,提供一种计算机可读存储介质,计算机可读存储介质存储计算机指令,当该计算机指令在计算机上运行时,使得计算机执行第一方面或第二方面所提供的时隙资源预留方法。In a sixth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions. When the computer instructions are executed on a computer, the computer executes the time slot resource reservation method provided in the first aspect or the second aspect.

第七方面,提供一种包含计算机指令的计算机程序产品,当该计算机指令在计算机上运行时,使得计算机执行第一方面或第二方面所提供的时隙资源预留方法。In a seventh aspect, a computer program product comprising computer instructions is provided. When the computer instructions are executed on a computer, the computer executes the time slot resource reservation method provided in the first aspect or the second aspect.

本申请实施例中,在混合时隙长度网络中,可以确定相邻节点的发送节点的出向时隙与接收节点的发送中时隙之间的映射关系,以便于将确定出的映射关系将作为选择出向时隙的参考依据,进而在混合时隙长度网络中进行时隙调度,为需要发送的目标报文预留时隙资源,满足确定性业务的需求。如此,还可以为在跨域互联的混合时隙长度网络中部署分组时隙调度机制提供了良好的基础。In an embodiment of the present application, in a mixed time slot length network, the mapping relationship between the outgoing time slot of the sending node of the adjacent node and the sending time slot of the receiving node can be determined, so that the determined mapping relationship will be used as a reference for selecting the outgoing time slot, and then time slot scheduling is performed in the mixed time slot length network, and time slot resources are reserved for the target message to be sent to meet the needs of deterministic services. In this way, a good foundation can also be provided for deploying a packet time slot scheduling mechanism in a cross-domain interconnected mixed time slot length network.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

附图用来提供对本发明技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本发明的技术方案,并不构成对本发明技术方案的限制。The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present invention and do not constitute a limitation on the technical solution of the present invention.

图1为本申请实施例提供的一种应用场景的示意图;FIG1 is a schematic diagram of an application scenario provided by an embodiment of the present application;

图2为本申请实施例提供的一种时隙资源预留方法的流程示意图;FIG2 is a schematic diagram of a flow chart of a method for reserving time slot resources according to an embodiment of the present application;

图3为本申请实施例提供的一种时隙映射关系示意图;FIG3 is a schematic diagram of a time slot mapping relationship provided in an embodiment of the present application;

图4为本申请实施例提供的另一种时隙映射关系示意图;FIG4 is a schematic diagram of another time slot mapping relationship provided in an embodiment of the present application;

图5为本申请实施例提供的又一种时隙映射关系示意图;FIG5 is a schematic diagram of another time slot mapping relationship provided in an embodiment of the present application;

图6为本申请实施例提供的又一种时隙映射关系示意图;FIG6 is a schematic diagram of another time slot mapping relationship provided in an embodiment of the present application;

图7为本申请实施例提供的另一种时隙资源预留方法的流程示意图;FIG7 is a schematic diagram of a flow chart of another method for reserving time slot resources according to an embodiment of the present application;

图8为本申请实施例提供的又一种时隙资源预留方法的流程示意图;FIG8 is a schematic diagram of a flow chart of another method for reserving time slot resources according to an embodiment of the present application;

图9为本申请实施例提供的一种时隙资源预留装置的组成示意图;FIG9 is a schematic diagram of the composition of a time slot resource reservation device provided in an embodiment of the present application;

图10为本申请实施例提供的另一种时隙资源预留装置的组成示意图;FIG10 is a schematic diagram of the composition of another time slot resource reservation device provided in an embodiment of the present application;

图11为本申请实施例提供的一种时隙资源预留装置的结构示意图。FIG11 is a schematic diagram of the structure of a time slot resource reservation device provided in an embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

在本申请的描述中,除非另有说明,“/”表示“或”的意思,例如,A/B可以表示A或B。本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。此外,“至少一个”是指一个或多个,“多个”是指两个或两个以上。“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。In the description of this application, unless otherwise specified, "/" means "or", for example, A/B can mean A or B. "And/or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and/or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, "at least one" means one or more, and "plurality" means two or more. The words "first", "second", etc. do not limit the quantity and execution order, and the words "first", "second", etc. do not limit them to be different.

需要说明的是,本申请中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

此处先对本申请涉及的相关技术术语进行解释说明。Here, the relevant technical terms involved in this application are explained.

时隙(Timeslot):是时分复用的最小单位。一个时隙需设计合理的时隙长度值,以使得在一个时隙内,至少能够发送一个完整的报文。例如时隙长度值可以为10us等。Timeslot: It is the smallest unit of time division multiplexing. A timeslot needs to be designed with a reasonable timeslot length value so that at least one complete message can be sent in a timeslot. For example, the timeslot length value can be 10us.

时隙化调度(Timeslot Scheduling):是指报文在指定的时隙中发送的调度行为。Timeslot Scheduling: refers to the scheduling behavior of sending messages in specified time slots.

入向时隙(Incoming Timeslot):对于特定路径中的某个中间节点而言,该中间节点从上游节点收到的报文所包含的时隙(即上游节点的出向时隙)就是入向时隙。Incoming Timeslot: For an intermediate node in a specific path, the timeslot contained in the message received by the intermediate node from the upstream node (that is, the outgoing timeslot of the upstream node) is the incoming timeslot.

出向时隙(Outgoing Timeslot):对于特定路径中的某个中间节点而言,该中间节点继续向下游节点发送报文时,可以根据资源预留或一定的规则选择在指定的时隙中发送报文,该时隙就是出向时隙。Outgoing Timeslot: For an intermediate node in a specific path, when the intermediate node continues to send a message to a downstream node, it can choose to send the message in a specified timeslot based on resource reservation or certain rules. This timeslot is the outgoing timeslot.

发送中时隙(Ongoing Sending Timeslot):对于特定路径中的某个中间节点而言,该中间节点可以把从上游节点收到的报文继续向下游节点发送。在报文到达该中间节点的出端口时,此时出端口当前正处于发送状态中的时隙,就是发送进行中时隙。其中,发送进行中时隙并非出向时隙。Ongoing Sending Timeslot: For an intermediate node in a specific path, the intermediate node can continue to send the message received from the upstream node to the downstream node. When the message arrives at the egress port of the intermediate node, the time slot in which the egress port is currently in the sending state is the ongoing sending timeslot. Among them, the ongoing sending timeslot is not an outgoing timeslot.

编排周期(Orchestration Period):是指网络节点实现时分复用调度机制的编排周期,一个编排周期可以包括固定个数的时隙,例如一个编排周期固定包含100个时隙。Orchestration Period: refers to the orchestration period of the network node to implement the time division multiplexing scheduling mechanism. An orchestration period may include a fixed number of time slots. For example, an orchestration period includes 100 time slots.

以上是对本申请所涉及的技术术语的介绍,以下不再赘述。The above is an introduction to the technical terms involved in this application, which will not be repeated below.

如背景技术所述,确定性网络技术的技术核心为周期调度机制,其可以采用资源预留、显式路由、业务保护等手段,以在现有网络互联协议转发机制的基础上提供确定性的时延和抖动保证。其中,资源预留是指业务流量对资源的占用,包括独占或以一定比例共享,例如物理链路、链路带宽、队列资源等。显式路由是指提前选定业务流在网络中的传输路径,以确保路由的稳定性,不随网络拓扑的实时变化而发生改变,基于此可精确计算端到端的时延上界与抖动上界。业务保护是指沿多条不相交的路径同时发送多份业务流量,以降低报文丢包率。As described in the background technology, the technical core of deterministic network technology is the periodic scheduling mechanism, which can adopt resource reservation, explicit routing, service protection and other means to provide deterministic delay and jitter guarantees based on the existing network interconnection protocol forwarding mechanism. Among them, resource reservation refers to the occupation of resources by business traffic, including exclusive or shared in a certain proportion, such as physical links, link bandwidth, queue resources, etc. Explicit routing refers to the advance selection of the transmission path of the business flow in the network to ensure the stability of the route and not change with the real-time changes of the network topology. Based on this, the end-to-end delay upper bound and jitter upper bound can be accurately calculated. Service protection refers to the simultaneous sending of multiple business flows along multiple non-intersecting paths to reduce the packet loss rate.

目前,相关技术提供了一种分组时隙的调度机制,可以将时隙资源化,并对业务进行开放和预留。在网络的入口节点上,需要为具有相应到达时刻的业务流在出端口上预留相应的出向时隙资源。在网络中的中间节点上,需要为具有相应入向时隙的业务流在出端口上预留相应的出向时隙资源。特别是,中间节点上的算路模块(例如集中式控制器或分布式协议)需要进一步基于上游节点与本中间节点间固定存在的时隙相位差,来确定预留的出向时隙。但是,当前技术方案不适用于网络中不同节点使用不同时隙长度的相位差探测。At present, the relevant technology provides a scheduling mechanism for grouping time slots, which can convert time slots into resources and open and reserve services. At the ingress node of the network, it is necessary to reserve corresponding outgoing time slot resources on the egress port for service flows with corresponding arrival times. At the intermediate nodes in the network, it is necessary to reserve corresponding outgoing time slot resources on the egress port for service flows with corresponding inbound time slots. In particular, the path calculation module (such as a centralized controller or a distributed protocol) on the intermediate node needs to further determine the reserved outgoing time slot 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 using different time slot lengths at different nodes in the network.

有鉴于此,本申请提供一种时隙资源预留方法,应用于第一节点,该方法包括:通过接收第二节点在连续M个探测时隙发送的探测报文,得到M个探测时隙的探测结果;其中,每个探测时隙的探测结果用于指示探测时隙内发送的探测报文映射的第一节点的发送中时隙,M为正整数;基于M个探测时隙的探测结果,确定第二节点的目标出向时隙与第一节点的目标发送中时隙之间的目标映射关系;基于目标映射关系,为第二节点发送的目标报文预留第一节点的出向时隙。如此,可以将确定出的映射关系将作为选择出向时隙的参考依据,在混合时隙长度网络中进行时隙调度,为需要发送的目标报文预留时隙资源,满足确定性业务的需求。In view of this, the present application provides a time slot resource reservation method, which is applied to a first node, and the method includes: obtaining the detection results of M detection time slots by receiving the detection message 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 sending 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, determining 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 target mapping relationship, reserving the outgoing time slot of the first node for the target message sent by the second node. In this way, the determined mapping relationship can be used as a reference for selecting the outgoing time slot, and time slot scheduling can be performed in a mixed time slot length network to reserve time slot resources for the target message to be sent, thereby meeting the needs of deterministic services.

图1示出了适用于本申请实施例的应用场景的示意图。如图1所示,该网络100包括管理节点01、网络节点02、网络节点03、网络节点04、网络节点05、网络节点06以及网络节点07。通常,在实际应用中上述各个设备或服务功能之间的连接可以为无线连接,为了方便直观地表示各个设备之间的连接关系,图1中采用实线示意。可选的,网络100可以为确定性网络。FIG1 shows a schematic diagram of an application scenario applicable to an embodiment of the present application. As shown in FIG1 , the network 100 includes a management node 01, a network node 02, a network node 03, a network node 04, a network node 05, a network node 06, and a network node 07. Generally, in practical applications, the connection between the above-mentioned devices or service functions can be a wireless connection. In order to conveniently and intuitively represent the connection relationship between the various devices, a solid line is used in FIG1 for illustration. Optionally, the network 100 can be a deterministic network.

本申请实施例中,上述管理节点01、网络节点02、网络节点03、网络节点04、网络节点05、网络节点06以及网络节点07,可以为网络设备,或为设置于网络设备内部的芯片。上述网络设备可以是支持高速以太网接口(比如200G、400G)的网络设备。上述网络设备包括但不限于:核心路由器、边沿路由器、光传送网(optical transport network,OTN)传输设备,OTN光业务单元(optical service unit,OSU)等以及面向具体场景的基于网络协议的无线电接入网(internet protocol radio accessIn the embodiment of the present application, the management node 01, network node 02, network node 03, network node 04, network node 05, network node 06 and network node 07 may be network devices, or chips disposed inside network devices. The network devices may be network devices that support high-speed Ethernet interfaces (such as 200G, 400G). The network devices include but are not limited to: core routers, edge routers, optical transport network (OTN) transmission equipment, OTN optical service units (OSUs), etc., and Internet protocol radio access networks (IPRAs) based on Internet protocols for specific scenarios.

network,IPRAN)、交换机设备,如分组传送网(packet transportnetwork, IPRAN), switch equipment, such as packet transport network (packet transport

network,PTN)盒式或框式交换机设备。network, PTN) box or frame switch equipment.

在图1所示的网络100中,上游节点的报文能够转发至下游节点,再由下游节点转发出去。例如,若网络节点02为网络节点03的上游节点,且网络节点04为网络节点03的下游节点,则网络节点02能够向网络节点03转发报文,网络节点03还可以向网络节点04转发该报文。In the network 100 shown in FIG1 , the message of the upstream node can be forwarded to the downstream node, and then forwarded by the downstream node. For example, if network node 02 is the upstream node of network node 03, and network node 04 is the downstream node of network node 03, network node 02 can forward the message to network node 03, and network node 03 can also forward the message to network node 04.

应理解,图1所示的网络100中还可以包括其他节点或网络设备,或者其他与网络设备通信的终端设备,本申请对此并不限制。It should be understood that the network 100 shown in FIG. 1 may also include other nodes or network devices, or other terminal devices that communicate with the network devices, and the present application does not limit this.

下面结合说明书附图,对本申请提供的时隙资源预留方法进行具体介绍。The time slot resource reservation method provided in the present application is described in detail below in conjunction with the accompanying drawings of the specification.

如图2所示,本申请实施例提供了一种时隙资源预留方法,该方法应用于第一节点,该方法包括以下步骤:As shown in FIG. 2 , an embodiment of the present application provides a time slot resource reservation method, which is applied to a first node and includes the following steps:

S101、第一节点通过接收第二节点在连续M个探测时隙发送的探测报文,得到M个探测时隙的探测结果。S101. A first node receives detection messages sent by a second node in M consecutive detection time slots to obtain detection results of the M detection time slots.

其中,每个探测时隙的探测结果用于指示探测时隙内发送的探测报文对应的第一节点的发送中时隙,M为正整数。The detection result of each detection time slot is used to indicate the sending time slot of the first node corresponding to the detection message sent in the detection time slot, and M is a positive integer.

应理解,在包括第一节点和第二节点的路径中,第二节点为第一节点的上游节点,并且,第一节点还可以将从第二节点接收到的报文转发至第一节点的下游节点。其中,上述M个探测时隙即为第二节点的与探测报文相对应的M个出向时隙。It should be understood that in a path including a first node and a second node, the second node is an upstream node of the first node, and the first node may also forward a message received from the second node to a downstream node of the first node. The M detection time slots are the M outgoing time slots of the second node corresponding to the detection message.

在一些实施例中,探测报文中可以包括与该探测报文对应的出向时隙的编号。一种示例中,各个编排周期中的时隙的编号规则可以相同。例如,在第二节点的一个编排周期中,该编排周期可以包括M1个出向时隙,且该M1个出向时隙的编号依次为0至M1-1。并且,在该编排周期的相邻的下一个编排周期中,可以重复按照0至M1-1对出向时隙依次进行编号。应理解,在第二节点的其他编排周期中的出向时隙的编号方式也可以为重复按照0至M1-1依次编号。In some embodiments, the detection message may include the number of the outgoing time slot corresponding to the detection message. In one example, the numbering rules of the time slots in each scheduling cycle may be the same. For example, in a scheduling cycle of the second node, the scheduling cycle may include M1 outgoing time slots, and the M1 outgoing time slots are numbered from 0 to M1-1 in sequence. And, in the next scheduling cycle adjacent to the scheduling cycle, the outgoing time slots may be repeatedly numbered from 0 to M1-1 in sequence. It should be understood that the numbering method of the outgoing time slots in other scheduling cycles of the second node may also be repeated from 0 to M1-1 in sequence.

在一些实施例中,第一节点的编排周期可以与所述第二节点的编排周期的长度相等。In some embodiments, the orchestration period of the first node may be equal in length to the orchestration period of the second node.

在一些实施例中,探测报文还可以包括以下至少一项:第二时隙个数、第二时隙长度以及M的取值,第二时隙长度为第二节点的编排周期中的时隙的长度,第二时隙个数为第二节点的编排周期内包含的以第二时隙长度计量的时隙个数。In some embodiments, the detection message may also include at least one of the following items: the number of second time slots, the second time slot length and the value of M, the second time slot length is the length of the time slot in the scheduling period of the second node, and the second time slot number is the number of time slots measured by the second time slot length included in the scheduling period of the second node.

示例性的,第二节点可以在连接该下游节点也即第一节点的出端口采用基于时隙的报文调度机制,此时第二节点在采用报文调度机制时所使用的编排周期即为上述第二节点的编排周期,且所使用的时隙长度即为上述第二时隙长度。Exemplarily, the second node may adopt a time slot-based message scheduling mechanism at the output port connected to the downstream node, namely the first node. In this case, the scheduling period used by the second node when adopting the message scheduling mechanism is the scheduling period of the above-mentioned second node, and the time slot length used is the above-mentioned second time slot length.

在一些实施例中,M的取值根据第一时隙长度和第二时隙长度确定。一种示例中,M的取值可以等于第一时隙长度和第二时隙长度之间的最小公倍数与第二时隙长度的商。应理解,M表示能够探测出与第一节点之间的完整的时隙映射关系所涉及的第二节点的出向时隙个数。In some embodiments, the value of M is determined according to 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 time slot length and the second time slot length 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 the complete time slot mapping relationship with the first node that can be detected.

在实际实现中,第二节点可以在需要进行时隙调度的情况下发起第一节点与第二节点之间时隙映射关系探测任务,该任务的任务参数包括上述第一时隙长度和第二时隙长度。In actual implementation, the second node may initiate a time slot mapping relationship detection task between the first node and the second node when time slot scheduling is required, and the task parameters of the task include 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 scheduling period of the first node. It should be understood that the first node can adopt a message scheduling mechanism based on time slots at the egress port connected to its downstream node, and the time slot length used by the first node when adopting the message scheduling mechanism is the first time slot length, and the scheduling period used at this time is the scheduling period of the first node.

一种示例中,第二节点可以基于第一时隙长度和第二时隙长度确定M的取值,并在连续M个探测时隙发送的探测报文,以使得第一节点可以得到M个探测时隙的探测结果。In one example, the second node may determine the value of M based on the first time slot length and the second time slot length, and send a detection message in M consecutive detection time slots, so that the first node can obtain detection results of M detection time slots.

另一种示例中,第二节点可以在连续多个探测时隙发送探测报文,此处探测时隙的个数可以大于或者等于M的取值。第一节点可以基于第一时隙长度和第二时隙长度确定M的取值,并从接收到的多个探测时隙发送探测报文中选择M个连续探测时隙发送的探测报文,以可以得到M个探测时隙的探测结果。In another example, the second node may send a detection message in a plurality of consecutive detection time slots, where the number of detection time slots may be greater than or equal to the value of M. The first node may determine the value of M based on the first time slot length and the second time slot length, and select detection messages sent in M consecutive detection time slots from the detection messages sent in the received plurality of detection time slots, so as to obtain detection results of the M detection time slots.

在一些实施例中,探测报文可以是在M个探测时隙的尾端发送的,或者,也可以是在M个探测时隙的头端发送的。又或者,探测报文还可以是在M个探测时隙的其他时域位置发送的,该时域位置可以为第一节点与第二节点之间预先约定的时域位置。In some embodiments, the detection message may be sent at the end of the M detection time slots, or may be sent at the beginning of the M detection time slots. Alternatively, the detection message may be sent at other time domain positions of the M detection time slots, and the time domain position may be a time domain position pre-agreed between the first node and the second node.

在一种可能的实现方式中,第一节点可以基于M个探测时隙发送的探测报文到达第一节点的出端口的时间,确定M个探测时隙的探测结果。在一些实施例中,第一节点的入端口和出端口可以采用不同的时隙长度。In a possible implementation, the first node may determine the detection results of the M detection time slots based on the time when the detection messages sent in the M detection time slots arrive at the egress port of the first node. In some embodiments, the ingress port and egress port of the first node may use different time slot lengths.

示例性的,第一节点可以具体执行下述步骤S11-S12,以确定M个探测时隙的探测结果。Exemplarily, the first node may specifically perform the following steps S11-S12 to determine the detection results of M detection time slots.

S11、第一节点获取M个探测时隙发送的探测报文到达第一节点的出端口的时间。S11. The first node obtains the time when the detection messages sent in M detection time slots arrive at the egress port of the first node.

在需要进行时隙调度时,第二节点可以在M个连续的探测时隙中发送探测报文,进而,第一节点与第二节点连接的入端口可以接收到该探测报文,并将探测报文投递至第一节点与其他下游节点之间的出端口,从而,在第一节点的出端口可以确定获取M个探测时隙发送的探测报文到达第一节点的出端口的时间。When time slot scheduling is required, the second node can send a detection message in M consecutive detection time slots, and then the input port connecting the first node and the second node can receive the detection message and deliver the detection message to the output port between the first node and other downstream nodes. Thus, the output port of the first node can determine the time when the detection message sent in M detection time slots arrives at the output port of the first node.

示例性的,如图3所示,节点U为节点V的上游节点,节点W为节点V的下游节点。对于路径U—V—W,节点V可以将接收到的节点U发送的报文转发至节点W。若节点U连接节点V的出端口也即图3中端口1(link1)的时隙长度为Lu,节点V连接节点W的出端口也即图3中端口2(link2)的时隙长度为Lv,假设Lu与Lv的最小公倍数为Lc,则M的取值为Lc/Lu。节点U在link1的连续M个出向时隙(也可以称为探测时隙)向节点V发送探测报文。节点V的出端口可以接收到探测报文,并将探测报文投递至link2。其中,探测报文可以包括M个出向时隙的编号,例如M个出向时隙在编排周期中的编号分别为i%Q、(i+1)%Q...(i+M-1)%Q,其中%是取模运算符。Q为第二时隙个数。Exemplarily, as shown in FIG3 , 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 the received message sent by node U to node W. If the time slot length of the egress port of node U connected to node V, that is, port 1 (link1) in FIG3 , is Lu, and the time slot length of the egress port of node V connected to node W, that is, port 2 (link2) in FIG3 , is Lv, assuming that the least common multiple of Lu and Lv is Lc, then the value of M is Lc/Lu. Node U sends a detection message to node V in M consecutive outgoing time slots (also referred to as detection time slots) of link1. The egress port of node V can receive the detection message and deliver the detection message to link2. Among them, the detection message can include the numbers of the M outgoing time slots, for example, the numbers of the M outgoing time slots in the scheduling cycle are i%Q, (i+1)%Q...(i+M-1)%Q, respectively, where % is a modulo operator. Q is the number of the second time slot.

S12、第一节点基于M个探测时隙发送的探测报文到达第一节点的出端口的时间,确定M个探测时隙的探测结果。S12: The first node determines detection results of the M detection time slots based on the time when the detection messages sent in the M detection time slots arrive at the egress port of the first node.

在一些实施例中,探测结果可以包括探测时隙内发送的探测报文对应的第一节点的发送中时隙的编号。此外,探测结果还用于指示探测时隙内发送的探测报文对应的第一节点的发送中时隙的剩余时长。示例性的,以图3所示的路径U—V—W为例,节点V的一个探测结果可以包括节点U的出端口link1的出向时隙i%Q映射至节点V的出端口link2的发送中时隙的编号为j_1,且离时隙j_1结束还剩T_uv_1。In some embodiments, the detection result may include the number of the sending time slot of the first node corresponding to the detection message sent in the detection time slot. In addition, the detection result is also used to indicate the remaining duration of the sending time slot of the first node corresponding to the detection message sent in the detection time slot. Exemplarily, taking the path U-V-W shown in Figure 3 as an example, a detection result of node V may include that the outgoing time slot i%Q of the outgoing port link1 of the node U is mapped to the sending time slot numbered j_1 of the outgoing port link2 of the node V, and there is T_uv_1 left until the end of the time slot j_1.

在一些实施例中,相邻的探测时隙内发送的探测报文对应的第一节点的发送中时隙可以相同,当然,也可以不相同。In some embodiments, the sending time slots of the first node corresponding to the detection messages sent in adjacent detection time slots may be the same, or may be different.

在一些实施例中,第一节点可以记载获取到多条探测结果。例如以时隙映射关系表的形式记载获取到多条探测结果。In some embodiments, the first node may record the acquisition of multiple detection results, for example, in the form of a time slot mapping relationship table.

示例性的,上述时隙映射关系表可以如表1所示,其中,为便于查找,还可以依次为每条探测结果确定标识。例如,可以记table[0]、table[1]...table[Q-1]依次表示上述出向时隙i%Q、(i+1)%Q...(i+M-1)%Q对应的映射结果。此外,还可以采用table[].timeslot映射结果中的发送中时隙,table[].remaining表示发送中时隙的剩余时长。例如根据表1,table[0].timeslot为j_1、table[0].remaining为T_uv_1,table[m1-1].timeslot为j_m1,table[m1-1].remaining为T_uv_m1。Exemplarily, the above-mentioned time slot mapping relationship table can be shown in Table 1, wherein, for the convenience of searching, an identifier can also be determined for each detection result in turn. For example, table[0], table[1]...table[Q-1] can be recorded to represent the mapping results corresponding to the above-mentioned outgoing time slots i%Q, (i+1)%Q...(i+M-1)%Q in turn. In addition, the sending time slot in the table[].timeslot mapping result can also be used, and table[].remaining represents the remaining duration of the sending 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.

表1Table 1

示例性的,上述时隙映射关系表还可以如表2所示,其中,映射关系表还可以包括映射结果中的发送中时隙和发送中时隙的剩余时长。Exemplarily, the above-mentioned time slot mapping relationship table may also be as shown in Table 2, wherein the mapping relationship table may also include the sending time slot and the remaining duration of the sending time slot in the mapping result.

表2Table 2

标识Logo 节点U的出向时隙Outgoing time slot of node U 节点V的发送中时隙The sending time slot of node V 剩余时长Remaining time [0][0] i%Qi%Q j_1j_1 T_uv_1T_uv_1 [1][1] (i+1)%Q(i+1)%Q j_2j_2 T_uv_2T_uv_2 [m1-1][m1-1] (i+M-1)%Q(i+M-1)%Q j_Mj_M T_uv_MT_uv_M

一种可能的示例中,以图3所示的路径U—V—W为例,假设节点U的出端口(指连接节点V的出端口)的时隙长度为20us,且编排周期包含25个时隙;节点V的出端口(指连接节点W的出端口)d的时隙长度为50us,且编排周期包含10个时隙。由于节点U与节点V的时隙长度的最小公倍数为100us,则节点U需要从其编排周期的任意时隙编号i开始的连续5个时隙的尾端发送探测报文至节点V,其得到的映射关系可以如图4所示。其中,图4中示出了三种可能的示例。In a possible example, taking the path U—V—W shown in FIG3 as an example, it is assumed that the time slot length of the egress port of node U (referring to the egress port connected to node V) is 20us, and the scheduling cycle includes 25 time slots; the time slot length of the egress port of node V (referring to the egress port connected to node W) d is 50us, and the scheduling cycle includes 10 time slots. Since the least common multiple of the time slot lengths of node U and node V is 100us, node U needs to send a detection message to node V at the end of 5 consecutive time slots starting from any time slot number i of its scheduling cycle, and the resulting mapping relationship can be shown in FIG4. Among them, FIG4 shows three possible examples.

在示例1中,节点U的出向时隙i、i+1、i+2均映射到节点V的发送进行中时隙j,也即上述时隙映射关系表中的j_1、j_2、j_3均实际为j。并且,时隙i+3、i+4分别映射到发送中时隙j+1,也即上述时隙映射关系表中的j_4、j_5均实际为j+1。In Example 1, the outgoing time slots i, i+1, and i+2 of node U are all mapped to the sending time slot j of node V, that is, j_1, j_2, and j_3 in the above time slot mapping relationship table are actually j. In addition, time slots i+3 and i+4 are respectively mapped to the sending time slot j+1, that is, j_4 and j_5 in the above time slot mapping relationship table are actually j+1.

在示例2中,节点U的时隙i、i+1均映射到节点V的发送进行中时隙j,也即上述时隙映射关系表中的j_1、j_2均实际为j。并且,时隙i+2、i+3、i+4均映射到发送中时隙j+1,也即上述时隙映射关系表中的j_3、j_4、j_5均实际为j+1。In Example 2, the time slots i and i+1 of node U are mapped to the sending time slot j of node V, that is, j_1 and j_2 in the above time slot mapping relationship table are actually j. In addition, the time slots i+2, i+3, and i+4 are mapped to the sending time slot j+1, that is, j_3, j_4, and j_5 in the above time slot mapping relationship table are actually j+1.

在示例3中,节点U的时隙i映射到节点V的发送进行中时隙j,也即上述时隙映射关系表中的j_1实际为j。而时隙i+1、i+2、i+3均映射到发送中时隙j+2,也即上述时隙映射关系表中的j_2、j_3、j_4均实际为j+1,而时隙i+4映射的发送进行中时隙j_5实际为j+2。In Example 3, the time slot i of node U is mapped to the sending time slot j of node V, that is, j_1 in the above time slot mapping relationship table is actually j. The time slots i+1, i+2, and i+3 are all mapped to the sending time slot j+2, that is, j_2, j_3, and j_4 in the above time slot mapping relationship table are actually j+1, and the sending time slot j_5 mapped to the time slot i+4 is actually j+2.

示例性的,在该示例中,时隙映射关系表还可以如表3所示,其中,表3包括三种可能的示例分别对应的探测结果。Exemplarily, in this example, the time slot mapping relationship table may also be shown in Table 3, wherein Table 3 includes detection results corresponding to three possible examples respectively.

表3Table 3

在另一种可能的实现方式中,第一节点可以基于M个探测时隙发送的探测报文到达第一节点的入端口的时间,确定M个探测时隙的探测结果。在一些实施例中,第一节点的入端口和出端口可以采用相同的时隙长度。In another possible implementation, the first node may determine the detection results of the M detection time slots based on the time when the detection messages sent in the M detection time slots arrive at the ingress port of the first node. In some embodiments, the ingress port and the egress port of the first node may use the same time slot length.

示例性的,第一节点可以具体执行下述步骤S21-S22,以确定M个探测时隙的探测结果。Exemplarily, the first node may specifically perform the following steps S21-S22 to determine the detection results of M detection time slots.

S21、第一节点获取M个探测时隙发送的探测报文到达第一节点的入端口的时间。S21. The first node obtains the time when the detection messages sent in M detection time slots arrive at the ingress port of the first node.

示例性的,如图5所示,若节点V的所有端口(包括节点V与节点U连接的入端口以及节点V与节点W连接的出端口),采用一致的时隙长度和编排周期,且节点V内部在所有端口上时间同步。此时,图5中的端口1(link1)与端口2(link2)的时隙的相位差为0,且端口link1与端口link2的编排周期的状态始终是一致的。从而,在任何时刻,端口link1与端口link2的编排周期中的发送进行中时隙的编号是相同的,比如,基于节点V内部的时间系统,在时刻T_100,端口link1和端口link2的发送进行中时隙都是时隙1。Exemplarily, as shown in FIG5 , if all ports of node V (including the inbound port connecting node V to node U and the outbound port connecting node V to node W) use consistent time slot length and scheduling period, and the time is synchronized on all ports inside node V. At this time, the phase difference between the time slots of port 1 (link1) and port 2 (link2) in FIG5 is 0, and the status of the scheduling period of port link1 and port link2 is always consistent. Therefore, at any time, the number of the sending time slot in the scheduling period of port link1 and port link2 is the same. For example, based on the time system inside node V, at time T_100, the sending time slots of port link1 and port link2 are both time slot 1.

从而,对于入端口和出端口采用相同的时隙长多和编排周期的节点,在需要进行时隙资源预留时,第二节点可以在M个连续的探测时隙中发送探测报文,进而,第一节点与第二节点连接的入端口可以接收到该探测报文,此时,由于,第一节点的入端口和出端口可以采用相同的时隙长多和编排周期,第一节点的入端口无需实际将探测报文转发至出端口。第一节点可以通过获取入端口和出端口之间的转发时延,以进一步确定M个探测时隙的探测结果。Thus, for a node whose ingress port and egress port use the same time slot length and scheduling period, when time slot resource reservation is required, the second node can send a detection message in M consecutive detection time slots, and then the ingress port connected to the first node and the second node can receive the detection message. At this time, since the ingress port and egress port of the first node can use the same time slot length and scheduling period, the ingress port of the first node does not need to actually forward the detection message to the egress port. The first node can further determine the detection results of the M detection time slots by obtaining the forwarding delay between the ingress port and the egress port.

S22、第一节点基于M个探测时隙发送的探测报文到达第一节点的入端口的时间,以及第一节点的入端口和出端口之间的转发时延,确定M个探测时隙的探测结果。S22. The first node determines detection results of the M detection time slots 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.

在一些实施例中,第一节点可以基于入端口到出端口之间的历史转发信息,确定第一节点的入端口和出端口之间的转发时延。或者,第一节点中可以预存有预设时延,该预设时延大于或等于上述实际转发时延。第一节点可以直接获取到该预设时延,将其作为第一节点的入端口和出端口之间的转发时延,以确定M个探测时隙的探测结果。应理解,第一节点还可以以其他可能的方式检测出或获取到入端口和出端口之间的转发时延,不再一一列举。In some embodiments, the first node may determine the forwarding delay between the input port and the output port of the first node based on the historical forwarding information between the input port and the output port. Alternatively, a preset delay may be pre-stored in the first node, and the preset delay is greater than or equal to the actual forwarding delay. The first node may directly obtain the preset delay and use it as the forwarding delay between the input port and the output port of the first node to determine the detection results of the M detection time slots. It should be understood that the first node may also detect or obtain the forwarding delay between the input port and the output port in other possible ways, which are not listed one by one.

一种实现方式中,第一节点可以基于探测报文到达第一节点的入端口的时间,以及上述转发时延,预测出探测报文达到出端口的时刻,进而确定M个探测时隙的探测结果。In one implementation, the first node may predict the time when the detection message reaches the egress port based on the time when the detection message reaches the ingress port of the first node and the forwarding delay, and further determine the detection results of the M detection time slots.

示例性的,如图6所示,若第一节点的入端口和出端口之间的转发时延为T_fe,则第一节点可以基于M个探测时隙发送的探测报文到达第一节点的入端口的时间,以及第一节点的入端口和出端口之间的转发时延,预测出探测报文达到出端口的时刻。例如,图6中节点U的出端口的出向时隙i%Q中的报文,到达节点V的入端口也即图6中的端口1(link1)的时刻为T_1,则可以预测该探测报文到达出端口也即图6中的端口2(link2)的时刻为(T_1+T_fe)。进而,第一节点可以基于该时刻(T_1+T_fe),确定落入在出端口link2的哪个发送中时隙内,以及该发送中时隙的剩余时长。如此,即可得到出向时隙i%M1对应的探测结果。Exemplarily, as shown in FIG6, if the forwarding delay between the input port and the output port of the first node is T_fe, the first node can predict the time when the detection message reaches the output port based on the time when the detection message sent in M detection time slots arrives at the input port of the first node and the forwarding delay between the input port and the output port of the first node. For example, the message in the outgoing time slot i%Q of the output port of the node U in FIG6 arrives at the input port of the node V, that is, the port 1 (link1) in FIG6 at the time T_1, then it can be predicted that the time when the detection message arrives at the output port, that is, the port 2 (link2) in FIG6 is (T_1+T_fe). Furthermore, the first node can determine which sending time slot of the output port link2 it falls into, and the remaining duration of the sending time slot based on the time (T_1+T_fe). In this way, the detection result corresponding to the outgoing time slot i%M1 can be obtained.

在一些实施例中,第一节点可以基于探测报文到达第一节点的入端口的时间,确定该时刻在第一节点出端口对应的发送中时隙,进而基于转发时延,对该发送中时隙进行校正。其中,第一节点的入端口和出端口之间的转发时延为时隙长度的整数倍。In some embodiments, the first node may determine the sending time slot corresponding to the egress port of the first node at that moment based on the time when the detection message arrives at the ingress port of the first node, and then correct the sending time slot based on the forwarding delay, wherein the forwarding delay between the ingress port and the egress port of the first node is an integer multiple of the time slot length.

示例性的,第一节点可以首先直接根据探测报文的到达时刻确定该时刻落入在哪个发送中时隙内,比如图6中第一个探测报文(出向时隙i%M1对应的探测报文)的到达时刻为T_1,该时刻T_1落入在发送进行中时隙j_1'内。进而估算第一个探测报文落入在出端口link2的发送中时隙(j_1'+K)%P内,P为第一时隙个数。如此,即可得到出向时隙i%Q对应的探测结果。其中,上述转发时延为时隙长度K倍。Exemplarily, the first node can first directly determine which sending time slot the detection message falls into based on its arrival time. For example, the arrival time of the first detection message (the detection message corresponding to the outgoing time slot i%M1) in Figure 6 is T_1, and this time T_1 falls into the sending time slot j_1'. Then, it is estimated that the first detection message falls into the sending time slot (j_1'+K)%P of the egress port link2, where P is the number of the first time slot. In this way, the detection result corresponding to the outgoing time slot i%Q can be obtained. Among them, the forwarding delay is K times the time slot length.

此外,M个探测时隙的探测结果可以参考上述步骤S12中的相关描述,此处不再赘述。In addition, the detection results of the M detection time slots can refer to the relevant description in the above step S12, which will not be repeated here.

S102、第一节点基于M个探测时隙的探测结果,确定第二节点的出向时隙与第一节点的发送中时隙之间的目标映射关系。S102: The first node determines a target mapping relationship between an outgoing time slot of the second node and a transmitting time slot of the first node based on detection results of the M detection time slots.

在一些实施例中,第一节点可以将M个探测时隙作为基础时隙组,并基于基础时隙组对应的的探测结果,以及第二节点的其他的出向时隙与基础时隙组之间的对应关系,确定出其他的出向时隙与第一节点的发送中时隙之间的映射关系。In some embodiments, the first node may use M detection time slots as a basic time slot group, and based on the detection results corresponding to the basic time slot group and the correspondence between other outbound time slots of the second node and the basic time slot group, determine the mapping relationship between other outbound time slots and the sending time slots of the first node.

需要说明的是,在时隙资源预留过程中,可以通过一部分出向时隙进行第一节点与第二节点之间的时隙映射关系探测,再确定第二节点的其他的出向时隙与基础时隙组之间的相对应的探测时隙,进而基于该探测时隙的探测结果确定出与第一节点的发送中时隙之间的映射关系。此时,进行探测的这部分第二节点的出向时隙即可称为探测时隙,也即上述基础时隙组。It should be noted that, in the process of reserving time slot resources, the time slot mapping relationship between the first node and the second node can be detected through a part of the outgoing time slots, and then the corresponding detection time slots between the other outgoing time slots of the second node and the basic time slot group are determined, and then the mapping relationship between the sending time slots of the first node is determined based on the detection results of the detection time slots. At this time, the outgoing time slots of the part of the second node that are detected can be called detection time slots, that is, the above-mentioned basic time slot group.

在一些实施例中,如图7所示,S102可以具体实现为以下步骤S1021-S1023:In some embodiments, as shown in FIG. 7 , S102 may be specifically implemented as the following steps S1021-S1023:

S1021、第一节点从M个探测时隙中确定与目标出向时隙对应的目标探测时隙,并获取目标探测时隙的探测结果。S1021. The first node determines a target detection time slot corresponding to the target outbound time slot from the M detection time slots, and obtains a detection result of the target detection time slot.

其中,目标出向时隙为第二节点的编排周期中的任意一个时隙。The target outgoing time slot is any time slot in the scheduling cycle of the second node.

在一些实施例中,第一节点可以以M个探测时隙作为基础时隙组,进而基于目标出向时隙所在的目标时隙组与基础时隙组之间的时隙对应关系,确定出目标探测时隙。进而,确定出目标探测时隙时,可以在M个探测结果中确定出目标探测时隙的探测结果。In some embodiments, the first node may 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 determining the target detection time slot, the detection result of the target detection time slot may be determined from the M detection results.

首先,第一节点可以基于目标出向时隙的编号、基础时隙组中第一个探测时隙的编号、第二时隙个数以及M的取值,确定目标出向时隙所在的目标时隙组中的第一个时隙元素的编号。其中,第二时隙个数为第二节点的编排周期包含的时隙的个数。First, the first node can 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 detection time slot in the basic time slot group, the second number of time slots, and the value of M. The second number of time slots is the number of time slots included in the scheduling cycle of the second node.

示例性的,目标出向时隙所在的目标时隙组中的第一个时隙元素的编号基于以下公式(1)确定:Exemplarily, the number of the first time slot element in the target time slot group where the target outgoing time slot is located is determined based on the following formula (1):

其中,W为目标出向时隙所在的目标时隙组中的第一个时隙元素的编号;%为取模运算;Q为第二时隙个数;I为基础时隙组中第一个探测时隙的编号;X为述目标出向时隙的编号;/为浮点数的除运算;为取下整运算。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; % is a 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 a floating point number division operation; To remove the integer operation.

需要说明的是,可以将第二节点的编排周期中的多个出向时隙划分为多个时隙组,其中,一个时隙组中包括M个出向时隙,也即目标时隙组也包括M个出向时隙。并且,在各个时隙组的位置相同的出向时隙具有对应关系,例如,目标时隙组中的第一个出向时隙与基础时隙组中的第一个探测时隙具有对应关系。目标时隙组可以为该编排周期中的任意一个时隙组。It should be noted that the multiple outbound time slots in the scheduling cycle of the second node can be divided into multiple time slot groups, wherein one time slot group includes M outbound time slots, that is, the target time slot group also includes M outbound time slots. In addition, the outbound time slots at the same position in each time slot group have a corresponding relationship, for example, the first outbound time slot in the target time slot group has a corresponding relationship with the first detection time slot in the basic time slot group. The target time slot group can be any time slot group in the scheduling cycle.

进而,第一节点可以基于目标出向时隙的编号以及目标时隙组中的第一个时隙元素的编号,确定目标出向时隙在目标时隙组中的位置,并将基础时隙组中的处于同样位置的探测时隙作为目标探测时隙。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 use the detection time slot at the same position in the basic time slot group as the target detection time slot.

示例性的,目标出向时隙在目标时隙组中的位置可以基于以下公式(2)确定:Exemplarily, the position of the target outgoing time slot in the target time slot group can be determined based on the following formula (2):

O = (X - W + Q) % Q 公式(2)O = (X - W + Q) % Q Formula (2)

其中,O为目标出向时隙在目标时隙组中的位置。Wherein, O is the position of the target outgoing time slot in the target time slot group.

S1022、第一节点基于目标出向时隙、M个探测时隙中第一个探测时隙、M的取值以及N的取值,确定时隙偏移个数。S1022: The first node determines the number of time slot offsets based on the target outbound 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 used to represent 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.

在一些实施例中,第一节点可以首先确定目标出向时隙和M个探测时隙中第一个探测时隙之间的时间间隔内包含的时隙组数,进而确定时隙偏移个数。In some embodiments, the first node may first determine the number of time slot groups included 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.

首先,第一节点可以基于目标出向时隙的编号、M个探测时隙中第一个探测时隙的编号以及M的取值,确定目标出向时隙和M个探测时隙中第一个探测时隙之间的时间间隔内包含的时隙组数。First, the first node may determine the number of time slot groups included 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.

示例性的,若目标出向时隙的编号为X,M个探测时隙中第一个探测时隙的编号为I,由于第二节点的探测周期中一个时隙组中包括M个出向时隙,则目标出向时隙和M个探测时隙中第一个探测时隙之间的时间间隔内包含的时隙组数可以表示为以上述表3所示的探测结果为例,对于节点U的任意时隙X,它所处的目标时隙组是从基时隙组开始的第个时隙组,该时隙组的第一个时隙的时隙编号为第二个时隙的时隙编号为第5个时隙的时隙编号为 Exemplarily, 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 cycle of the second node includes M outgoing time slots, the number of time slot groups included 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 as an example, for any time slot X of node U, the target time slot group it is in is the first time slot group from the base time slot group. The first time slot of the time slot group is numbered as The second time slot is numbered The time slot number of the 5th time slot is

进而,第一节点可以基于目标出向时隙和M个探测时隙中第一个探测时隙之间的时间间隔内包含的时隙组数,和N的取值,确定时隙偏移个数。其中,第一节点的编排周期中的N个时隙的长度等于第二节点的编排周期中的M个时隙的长度,N为正整数。Furthermore, the first node may determine the number of time slot offsets based on the number of time slot groups included in the time interval between the target outgoing time slot and the first detection time slot in the M detection time slots, and the value of N. The length of the N time slots in the scheduling cycle of the first node is equal to the length of the M time slots in the scheduling cycle of the second node, and N is a positive integer.

示例性的,时隙偏移个数可以基于以下公式(3)确定:Exemplarily, the number of time slot offsets may be determined based on the following formula (3):

其中,E为时隙偏移个数;I为M个探测时隙中第一个探测时隙的编号;X为述目标出向时隙的编号;/为浮点数的除运算;为取下整运算。Wherein, 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 the division operation of floating point numbers; To remove the integer operation.

在一些实施例中,N的取值可以根据第一时隙长度和第二时隙长度确定。一种示例中,N的取值可以等于第一时隙长度和第二时隙长度之间的最小公倍数与第一时隙长度的商。应理解,N表示能够探测出与第一节点之间的完整的时隙映射关系所涉及的第一节点的发送中时隙个数。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 time slot length and the second time slot length and the first time slot length. It should be understood that N represents the number of time slots in the transmission of the first node involved in the complete time slot mapping relationship between the first node and the first node that can be detected.

S1023、第一节点基于目标探测时隙的探测结果、时隙偏移个数以及第一时隙个数,确定目标映射关系。S1023: The first node determines a 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.

在一些实施例中,第一节点可以以目标探测时隙的探测结果所指示的发送中时隙的编号、时隙偏移个数,以及第一时隙个数的和为第一编号。进而对第一编号进行基于第一时隙个数的取模运算,得到目标发送中时隙的编号,并基于目标出向时隙的编号和目标发送中时隙的编号,确定目标映射关系。In some embodiments, the first node may use the number of the sending time slot indicated by the detection result of the target detection time slot, the number of time slot offsets, and the first time slot number as the first number. Then, the first number is modulo-operated based on the first time slot number to obtain the number of the target sending 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 sending time slot.

其中,第一时隙个数为第一节点的编排周期内包含的以第一时隙长度计量的时隙个数。The first number of time slots is the number of time slots measured by the first time slot length contained in the scheduling period of the first node.

示例性的,目标发送中时隙可以基于以下公式(4)确定:Exemplarily, the target transmission time slot may be determined based on the following formula (4):

其中,Y为目标发送中时隙的编号;Z为目标探测时隙的探测结果所指示的发送中时隙的编号;P为第一时隙个数;为时隙偏移个数;/为浮点数的除运算;为取下整运算;%为取模运算。Wherein, Y is the number of the target sending time slot; Z is the number of the sending time slot indicated by the detection result of the target detection time slot; P is the number of the first time slot; is the number of time slot offsets; / is the floating point number division operation; is the rounding operation; % is the modulo operation.

在一些实施例中,第一节点可以基于上述确定映射关系的方式,建立第二节点中各个出向时隙与第一节点的发送中时隙之间的映射关系,以便于基于该映射关系进行时隙资源预留。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-mentioned manner of determining the mapping relationship, so as to reserve time slot resources based on the mapping relationship.

S103、第一节点基于目标映射关系,为第二节点发送的目标报文预留第一节点的出向时隙。S103: The first node reserves an outgoing time slot of the first node for a target message sent by the second node based on the target mapping relationship.

在一些实施例中,第一节点可以基于第二节点的出向时隙与第一节点的发送中时隙之间的映射关系,确定第二节点用于发送目标报文的出向时隙所映射的发送中时隙。进而从第二节点用于发送目标报文的出向时隙所映射的发送中时隙之后的时隙中,确定第一节点用于发送目标报文的出向时隙。In some embodiments, the first node may determine the sending 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 sending time slot of the first node. Then, the outgoing time slot used by the first node to send the target message is determined from the time slot after the sending time slot mapped by the outgoing time slot of the second node for sending the target message.

需要说明的是,第一节点可以将确定出的目标映射关系,作为择出向时隙的参考依据,在需要从第二节点用于发送目标报文时,首先基于目标映射关系,确定用于发送目标报文的第二节点的目标出向时隙所映射的第一节点的目标发送中时隙。进而,可以预留出该目标发送中时隙之后的用于发送目标报文的第一节点的出向时隙资源,该出向时隙可以为第一节点中该发送中时隙之后的下一个时隙,或下一个时隙之后的时隙等,其可以基于发送目标报文时的可选的空闲时隙资源以及预设的时延约束条件等可能的预设条件确定。It should be noted that the first node can use the determined target mapping relationship as a reference for selecting an outgoing time slot. When the second node is needed to send a target message, the first node's target sending time slot mapped to the target outgoing time slot of the second node for sending the target message is first determined based on the target mapping relationship. Furthermore, an outgoing time slot resource for the first node for sending the target message after the target sending time slot can be reserved. The outgoing time slot can be the next time slot after the sending time slot in the first node, or the time slot after the next time slot, etc. It can be determined based on possible preset conditions such as optional idle time slot resources when sending the target message and preset delay constraints.

基于上述实施例,在混合时隙长度网络中,可以确定相邻节点的发送节点的出向时隙与接收节点的发送中时隙之间的映射关系,以便于将确定出的映射关系将作为选择出向时隙的参考依据,进而在混合时隙长度网络中进行时隙调度,为需要发送的目标报文预留时隙资源,满足确定性业务的需求。如此,还可以为在跨域互联的混合时隙长度网络中部署分组时隙调度机制提供了良好的基础。Based on the above embodiment, in a mixed time slot length network, the mapping relationship between the outgoing time slot of the sending node of the adjacent node and the sending time slot of the receiving node can be determined, so that the determined mapping relationship will be used as a reference for selecting the outgoing time slot, and then time slot scheduling is performed in the mixed time slot length network, and time slot resources are reserved for the target message to be sent to meet the needs of deterministic services. In this way, a good foundation can also be provided for deploying a packet time slot scheduling mechanism in a cross-domain interconnected mixed time slot length network.

在一些实施例中,如图8所示,本申请实施例还提供一种时隙资源预留方法,应用于第二节点,该方法包括以下步骤:In some embodiments, as shown in FIG8 , the embodiment of the present application further provides a time slot resource reservation method, which is applied to the second node, and the method includes the following steps:

S201、第二节点确定用于发送探测报文的探测时隙的个数M,M为正整数。S201. The second node determines the number M of detection time slots used to send detection messages, where M is a positive integer.

在一些实施中,M的取值根据第一时隙长度和第二时隙长度确定,第一时隙长度为第一节点的编排周期中的时隙的长度,第二时隙长度为第二节点的编排周期中的时隙的长度。示例性的,M的取值等于第一时隙长度和第二时隙长度之间的最小公倍数与第二时隙长度的商。In some implementations, the value of M is determined according to a first time slot length and a second time slot length, the first time slot length being the length of a time slot in a scheduling cycle of the first node, and the second time slot length being the length of a time slot in a scheduling cycle of the second node. Exemplarily, 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.

此外,关于M的详细说明可以参考上文步骤S101的相关描述,此处不再赘述。In addition, for a detailed description of M, please refer to the relevant description of step S101 above, which will not be repeated here.

S202、第二节点在连续的M个探测时隙上发送探测报文至第一节点,以使第一节点基于M个探测时隙的探测结果,确定第二节点的目标出向时隙与第一节点的目标发送中时隙之间的目标映射关系。S202. The second node sends a detection message to the first node in M consecutive detection time slots, so that the first node determines a target mapping relationship between a target outgoing time slot of the second node and a target sending time slot of the first node based on detection results of the M detection time slots.

其中,每个探测时隙对应的探测报文用于确定与探测时隙对应的第一节点的发送中时隙,目标映射关系用于指示第一节点基于目标映射关系为第二节点发送的目标报文预留第一节点的出向时隙。The detection message corresponding to each detection time slot is used to determine the sending time slot of the first node corresponding to the detection 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.

在一些实施例中,探测报文还包括以下至少一项:第二时隙个数、第二时隙长度以及M的取值。其中,第二时隙长度为第二节点的编排周期中的时隙的长度。第二时隙个数为第二节点的编排周期包含的时隙的个数。In some embodiments, the detection 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. The second time slot length is the length of the time slot in the scheduling cycle of the second node. The number of second time slots is the number of time slots included in the scheduling cycle of the second node.

在一些实施例中,探测报文可以是在M个探测时隙的尾端发送的,或者,也可以是在M个探测时隙的头端发送的。又或者,探测报文还可以是在M个探测时隙的其他时域位置发送的,该时域位置可以为第一节点与第二节点之间预先约定的时域位置。In some embodiments, the detection message may be sent at the end of the M detection time slots, or may be sent at the beginning of the M detection time slots. Alternatively, the detection message may be sent at other time domain positions of the M detection time slots, and the time domain position may be a time domain position pre-agreed between the first node and the second node.

此外,步骤S201-S202的详细说明还可以参考上文步骤S101-S103的描述,此处不再赘述。In addition, the detailed description of steps S201-S202 can also refer to the description of steps S101-S103 above, which will not be repeated here.

基于上述实施例,在混合时隙长度网络中,相邻时隙中的上游节点(也即上述第二节点)可以首先在探测时隙中发送探测报文,以确定探测时隙与下游节点的发送中时隙之间的映射关系,进而,再基于探测时隙对应的映射关系确定该上游节点的其他出向时隙对应的映射关系。如此,可以基于确定出的映射关系,在混合时隙长度网络中进行时隙调度,为需要发送的目标报文预留时隙资源,满足确定性业务的需求。Based on the above embodiment, in a mixed time slot length network, the upstream node (i.e., the above second node) in the adjacent time slot can first send a detection message in the detection time slot to determine the mapping relationship between the detection time slot and the sending time slot of the downstream node, and then determine the mapping relationship corresponding to other outgoing time slots of the upstream node based on the mapping relationship corresponding to the detection time slot. In this way, time slot scheduling can be performed in the mixed time slot length network based on the determined mapping relationship, and time slot resources can be reserved for the target message to be sent to meet the needs of deterministic services.

上述主要从各个节点之间交互的角度对本申请提供的方案进行了介绍。可以理解的是,各个节点,例如装置或设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的算法步骤,本发明能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。The above mainly introduces the solution provided by the present application from the perspective of interaction between various nodes. It is understandable that each node, such as a device or equipment, includes a hardware structure and/or software module corresponding to each function in order to realize the above functions. It should be easily appreciated by those skilled in the art that, in combination with the algorithm steps of each example described in the embodiments disclosed herein, the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

图9所示为本申请实施例提供的一种时隙资源预留装置的组成示意图,可以应用于第一节点。如图9所示,该时隙资源预留装置90包括接收模块901和处理模块902。FIG9 is a schematic diagram showing the composition of a time slot resource reservation device provided in an embodiment of the present application, which can be applied to a first node. As shown in FIG9 , the time slot resource reservation device 90 includes a receiving module 901 and a processing module 902 .

在一些实施例中,接收模块901,用于通过接收第二节点在连续M个探测时隙发送的探测报文,得到M个探测时隙的探测结果;其中,每个探测时隙的探测结果用于指示探测时隙内发送的探测报文映射的第一节点的发送中时隙,M为正整数。处理模块902,用于基于M个探测时隙的探测结果,确定第二节点的目标出向时隙与第一节点的目标发送中时隙之间的目标映射关系,处理模块902,还用于基于目标映射关系,为第二节点发送的目标报文预留第一节点的出向时隙。In some embodiments, the receiving module 901 is used to obtain the detection results of M detection time slots by receiving the detection message 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 sending 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 used to 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 detection results of the M detection time slots, and the processing module 902 is also used 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.

在一些实施例中,接收模块901,还用于获取M个探测时隙发送的探测报文到达第一节点的出端口的时间。处理模块902,还用于基于M个探测时隙发送的探测报文到达第一节点的出端口的时间,确定M个探测时隙的探测结果。In some embodiments, the receiving module 901 is further used to obtain the time when the detection messages sent by the M detection time slots arrive at the egress port of the first node. The processing module 902 is further used to determine the detection results of the M detection time slots based on the time when the detection messages sent by the M detection time slots arrive at the egress port of the first node.

在一些实施例中,接收模块901,还用于获取M个探测时隙发送的探测报文到达第一节点的入端口的时间。处理模块902,还用于基于M个探测时隙发送的探测报文到达第一节点的入端口的时间,以及第一节点的入端口和出端口之间的转发时延,确定M个探测时隙的探测结果。In some embodiments, the receiving module 901 is further used to obtain the time when the detection messages sent in the M detection time slots arrive at the ingress port of the first node. The processing module 902 is further used to determine the detection results of the M detection time slots 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.

在一些实施例中,处理模块902,还用于:从M个探测时隙中确定与目标出向时隙对应的目标探测时隙,并获取目标探测时隙的探测结果;基于目标出向时隙、M个探测时隙中第一个探测时隙、M的取值以及N的取值,确定时隙偏移个数;其中,时隙偏移个数为基于第一时隙长度在目标出向时隙与目标探测时隙之间的时间间隔中确定的时隙个数,时隙偏移个数为整数,N的取值等于第一时隙长度和第二时隙长度之间的最小公倍数与第一时隙长度的商;基于目标探测时隙的探测结果、时隙偏移个数以及第一时隙个数,确定目标映射关系;第一时隙个数为第一节点的编排周期内包含的以第一时隙长度计量的时隙个数,第一节点的编排周期与第二节点的编排周期的长度相等。In some embodiments, the processing module 902 is further used to: determine a target detection time slot corresponding to a target outbound time slot from the M detection time slots, and obtain a detection result of the target detection time slot; determine the number of time slot offsets based on the target outbound 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 in the time interval between the target outbound time slot and the target detection time slot based on the first time slot length, 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 a target mapping relationship based on the detection result of the target detection time slot, the number of time slot offsets, and the first number of time slots; the first number of time slots is the number of time slots measured in the first time slot length contained in the scheduling period of the first node, and the length of the scheduling period of the first node is equal to the length of the scheduling period of the second node.

在一些实施例中,处理模块902,还用于:以M个探测时隙作为基础时隙组,基于目标出向时隙的编号、基础时隙组中第一个探测时隙的编号、第二时隙个数以及M的取值,确定目标出向时隙所在的目标时隙组中的第一个时隙元素的编号;其中,第二时隙个数为第二节点的编排周期内包含的以第二时隙长度计量的时隙个数;基于目标出向时隙的编号以及目标时隙组中的第一个时隙元素的编号,确定目标出向时隙在目标时隙组中的位置;将基础时隙组中的处于位置的探测时隙作为目标探测时隙。In some embodiments, the processing module 902 is also used to: take M detection time slots as the 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 detection time slot in the basic time slot group, the number of the second time slots and the value of M; wherein the second number of time slots is the number of time slots measured by the second time slot length included in the scheduling period of the second node; 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 use the detection time slot at the position in the basic time slot group as the target detection time slot.

在一些实施例中,目标出向时隙所在的目标时隙组中的第一个时隙元素的编号基于以下公式确定:In some embodiments, the number of the first time slot element in the target time slot group where the target outgoing time slot is located is determined based on the following formula:

其中,W为目标出向时隙所在的目标时隙组中的第一个时隙元素的编号;%为取模运算;Q为第二时隙个数;I为基础时隙组中第一个探测时隙的编号;X为述目标出向时隙的编号;/为浮点数的除运算;为取下整运算。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; % is a 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 a floating point number division operation; To remove the integer operation.

目标出向时隙在目标时隙组中的位置基于以下公式确定: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)%QO=(X-W+Q)%Q

其中,O为目标出向时隙在目标时隙组中的位置。Wherein, O is the position of the target outgoing time slot in the target time slot group.

在一些实施例中,处理模块902,还用于:基于目标出向时隙的编号、M个探测时隙中第一个探测时隙的编号、以及M的取值,确定目标出向时隙和M个探测时隙中第一个探测时隙之间的时间间隔内包含的时隙组数;基于时隙组数和N的取值,确定时隙偏移个数。In some embodiments, the processing module 902 is also used to: determine the number of time slot groups included 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; determine the number of time slot offsets based on the number of time slot groups and the value of N.

在一些实施例中,时隙偏移个数基于以下公式确定:In some embodiments, the number of time slot offsets is determined based on the following formula:

其中,E为时隙偏移个数;I为M个探测时隙中第一个探测时隙的编号;X为述目标出向时隙的编号;/为浮点数的除运算;为取下整运算。Wherein, 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 the division operation of floating point numbers; To remove the integer operation.

在一些实施例中,处理模块902,还用于:以目标探测时隙的探测结果所指示的发送中时隙的编号、时隙偏移个数、以及第一时隙个数的和为第一编号;对第一编号进行基于第一时隙个数的取模运算,得到目标发送中时隙的编号;基于目标出向时隙的编号和目标发送中时隙的编号,确定目标映射关系。In some embodiments, the processing module 902 is also used to: take the sum of the number of the sending 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 the first number; perform a modulo operation on the first number based on the first number of time slots to obtain the number of the target sending time slot; determine the target mapping relationship based on the number of the target outgoing time slot and the number of the target sending time slot.

在一些实施例中,目标发送中时隙基于以下公式确定:In some embodiments, the target transmit mid-slot is determined based on the following formula:

其中,Y为目标发送中时隙的编号;Z为目标探测时隙的探测结果所指示的发送中时隙的编号;P为第一时隙个数;为时隙偏移个数;/为浮点数的除运算;为取下整运算;%为取模运算。Wherein, Y is the number of the target sending time slot; Z is the number of the sending time slot indicated by the detection result of the target detection time slot; P is the number of the first time slot; is the number of time slot offsets; / is the floating point number division operation; is the rounding operation; % is the modulo operation.

在一些实施例中,M的取值根据第一时隙长度和第二时隙长度确定,第一时隙长度为第一节点的编排周期中的时隙的长度,第二时隙长度为第二节点的编排周期中的时隙的长度,第一节点的编排周期与第二节点的编排周期的长度相等。In some embodiments, the value of M is determined according to a first time slot length and a second time slot length, the first time slot length is the length of a time slot in a scheduling period of the first node, the second time slot length is the length of a time slot in a scheduling period of the second node, and the length of the scheduling period of the first node is equal to the length of the scheduling period of the second node.

在一些实施例中,M的取值等于第一时隙长度和第二时隙长度之间的最小公倍数与第二时隙长度的商。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.

在一些实施例中,探测报文包括与探测报文对应的第二节点的出向时隙的编号。In some embodiments, the detection message includes the number of the outgoing time slot of the second node corresponding to the detection message.

在一些实施例中,探测报文还包括以下至少一项:第二时隙个数、第二时隙长度以及M的取值,第二时隙个数为第二节点的编排周期中的时隙的个数。In some embodiments, the detection message further includes at least one of the following items: the second number of time slots, the second time slot length, and the value of M, where the second number of time slots is the number of time slots in the scheduling cycle of the second node.

在一些实施例中,探测结果还用于指示探测时隙内发送的探测报文对应的第一节点的发送中时隙的剩余时长。In some embodiments, the detection result is also used to indicate the remaining duration of the sending time slot of the first node corresponding to the detection message sent in the detection time slot.

在一些实施例中,处理模块902,还用于:基于第二节点的出向时隙与第一节点的发送中时隙之间的映射关系,确定第二节点用于发送目标报文的出向时隙所映射的发送中时隙;从第二节点用于发送目标报文的出向时隙所映射的发送中时隙之后的时隙中,确定第一节点用于发送目标报文的出向时隙。In some embodiments, the processing module 902 is also used to: determine the sending 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 sending time slot of the first node; determine the outgoing time slot used by the first node to send the target message from the time slot after the sending time slot mapped by the outgoing time slot of the second node for sending the target message.

图10所示为本申请实施例提供的另一种时隙资源预留装置的组成示意图,可以应用于第二节点。如图10所示,该时隙资源预留装置100包括处理模块1001和发送模块1002。FIG10 is a schematic diagram showing the composition of another time slot resource reservation device provided in an embodiment of the present application, which can be applied to a second node. As shown in FIG10 , the time slot resource reservation device 100 includes a processing module 1001 and a sending module 1002 .

在一些实施例中,处理模块1001,用于确定用于发送探测报文的探测时隙的个数M,M为大于或等于1的整数。发送模块1002,用于在连续的M个探测时隙上发送探测报文至第一节点,以使第一节点基于M个探测时隙的探测结果,确定第二节点的目标出向时隙与第一节点的目标发送中时隙之间的目标映射关系;其中,每个探测时隙对应的探测报文用于确定与探测时隙对应的第一节点的发送中时隙,目标映射关系用于指示第一节点基于目标映射关系为第二节点发送的目标报文预留第一节点的出向时隙。In some embodiments, the processing module 1001 is used to determine the number M of detection time slots used to send detection messages, where M is an integer greater than or equal to 1. The sending module 1002 is used to send detection messages to the first node in M consecutive detection 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 sending time slot of the first node based on the detection results of the M detection time slots; wherein the detection message corresponding to each detection time slot is used to determine the sending time slot of the first node corresponding to the detection time slot, and the target mapping relationship is used to indicate that the first node reserves the outgoing time slot of the first node for the target message sent by the second node based on the target mapping relationship.

在一些实施例中,M的取值根据第一时隙长度和第二时隙长度确定,第一时隙长度为第一节点的编排周期中的时隙的长度,第二时隙长度为第二节点的编排周期中的时隙的长度,第一节点的编排周期与第二节点的编排周期的长度相等。In some embodiments, the value of M is determined according to a first time slot length and a second time slot length, the first time slot length is the length of a time slot in a scheduling period of the first node, the second time slot length is the length of a time slot in a scheduling period of the second node, and the length of the scheduling period of the first node is equal to the length of the scheduling period of the second node.

在一些实施例中,M的取值等于第一时隙长度和第二时隙长度之间的最小公倍数与第二时隙长度的商。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.

在一些实施例中,探测报文包括与探测报文对应的第二节点的探测时隙的编号。In some embodiments, the detection message includes the number of the detection time slot of the second node corresponding to the detection message.

在一些实施例中,探测报文还包括以下至少一项:第二时隙个数、第二时隙长度以及M的取值;其中,第二时隙长度为第二节点的编排周期中的时隙的长度;第二时隙个数为第二节点的编排周期包含的时隙的个数。In some embodiments, the detection message also includes at least one of the following items: the number of second time slots, the length of the second time slot and the value of M; wherein the second time slot length is the length of the time slot in the scheduling cycle of the second node; the number of second time slots is the number of time slots included in the scheduling cycle of the second node.

需要说明的是,图9或图10中的模块也可以称为单元,例如,处理模块可以称为处理单元。另外,在图9或图10所示的实施例中,各个模块的名称也可以不是图中所示的名称,例如,接收模块或发送模块也可以称为通信模块。It should be noted that the modules in FIG9 or FIG10 may also be referred to as units, for example, the processing module may be referred to as a processing unit. In addition, in the embodiments shown in FIG9 or FIG10, the names of the modules may not be the names shown in the figure, for example, the receiving module or the sending module may also be referred to as a communication module.

图9或图10中的各个单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。存储计算机软件产品的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random accessmemory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the various units in FIG. 9 or FIG. 10 are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The storage medium for storing computer software products includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

在采用硬件的形式实现上述集成的模块的功能的情况下,本申请实施例提供一种时隙资源预留装置的结构示意图。如图11所示,该时隙资源预留装置1100包括:处理器1102,通信接口1103,总线1104。可选的,时隙资源预留装置1100还可以包括存储器1101。In the case of implementing the functions of the above-mentioned integrated modules in the form of hardware, an embodiment of the present application provides a schematic diagram of the structure of a time slot resource reservation device. As shown in FIG11 , 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.

处理器1102,可以是实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。该处理器1102可以是中央处理器,通用处理器,数字信号处理器,专用集成电路,现场可编程门阵列或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器1102也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等。The processor 1102 may be a device that implements or executes various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of the present application. The processor 1102 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array, 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 the present application. The processor 1102 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

通信接口1103,用于与其他设备通过通信网络连接。该通信网络可以是以太网,无线接入网,无线局域网(wireless local area networks,WLAN)等。The communication interface 1103 is used to connect with other devices via a communication network, such as Ethernet, wireless access network, wireless local area network (WLAN), etc.

存储器1101,可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。The memory 1101 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

作为一种可能的实现方式,存储器1101可以独立于处理器1102存在,存储器1101可以通过总线1104与处理器1102相连接,用于存储指令或者程序代码。处理器1102调用并执行存储器1101中存储的指令或程序代码时,能够实现本申请实施例提供的时隙资源预留方法。As a possible implementation, the memory 1101 may exist independently of the processor 1102, and the memory 1101 may be connected to the processor 1102 via a bus 1104 for storing instructions or program codes. When the processor 1102 calls and executes the instructions or program codes stored in the memory 1101, the time slot resource reservation method provided in the embodiment of the present application can be implemented.

另一种可能的实现方式中,存储器1101也可以和处理器1102集成在一起。In another possible implementation, the memory 1101 may also be integrated with the processor 1102 .

总线1104,可以是扩展工业标准结构(extended industry standardarchitecture,EISA)总线等。总线1104可以分为地址总线、数据总线、控制总线等。为便于表示,图11中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus 1104 may be an extended industry standard architecture (EISA) bus, etc. The bus 1104 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, FIG11 only uses one thick line, but does not mean that there is only one bus or one type of bus.

通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备或装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the equipment or device is divided into different functional modules to complete all or part of the functions described above.

本申请实施例还提供一种计算机可读存储介质。上述方法实施例中的全部或者部分流程可以由计算机指令来指示相关的硬件完成,该程序可存储于上述计算机可读存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。计算机可读存储介质可以是前述任一实施例的或内存。上述计算机可读存储介质也可以是上述设备或装置的外部存储设备,例如上述设备或装置上配备的插接式硬盘,智能存储卡(smart media card,SMC),安全数字(secure digital,SD)卡,闪存卡(flash card)等。进一步地,上述计算机可读存储介质还可以既包括上述设备或装置的内部存储单元也包括外部存储设备。上述计算机可读存储介质用于存储上述计算机程序以及上述设备或装置所需的其他程序和数据。上述计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。The embodiment of the present application also provides a computer-readable storage medium. All or part of the processes in the above method embodiments can be completed by computer instructions to instruct the relevant hardware, and the program can be stored in the above computer-readable storage medium. When the program is executed, it may include the processes of the above method embodiments. The computer-readable storage medium can be the memory or memory of any of the above embodiments. The above computer-readable storage medium can also be an external storage device of the above device or device, such as a plug-in hard disk, a smart memory card (smart media card, SMC), a secure digital (secure digital, SD) card, a flash card (flash card), etc. equipped on the above device or device. Further, the above computer-readable storage medium can also include both the internal storage unit of the above device or device and an external storage device. The above computer-readable storage medium is used to store the above computer program and other programs and data required by the above device or device. The above computer-readable storage medium can also be used to temporarily store data that has been output or is to be output.

本申请实施例还提供一种计算机程序产品,该计算机产品包含计算机程序,当该计算机程序产品在计算机上运行时,使得该计算机执行上述实施例中所提供的任一项时隙资源预留方法。An embodiment of the present application also provides a computer program product, which includes a computer program. When the computer program product is run on a computer, the computer is enabled to execute any one of the time slot resource reservation methods provided in the above embodiments.

尽管在此结合各实施例对本申请进行了描述,然而,在实施所要求保护的本申请过程中,本领域技术人员通过查看附图、公开内容、以及所附权利要求书,可理解并实现公开实施例的其他变化。在权利要求中,“包括”(Comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。单个处理器或其他单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。Although the present application is described herein in conjunction with various embodiments, in the process of implementing the claimed application, those skilled in the art may understand and implement other changes to the disclosed embodiments by viewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "one" or "an" does not exclude multiple situations. A single processor or other unit can implement several functions listed in the claims. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.

尽管结合具体特征及其实施例对本申请进行了描述,显而易见的,在不脱离本申请的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本申请的示例性说明,且视为已覆盖本申请范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Although the present application has been described in conjunction with specific features and embodiments thereof, it is obvious that various modifications and combinations may be made thereto without departing from the spirit and scope of the present application. Accordingly, this specification and the drawings are merely exemplary illustrations of the present application as defined by the appended claims, and are deemed to have covered any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, those skilled in the art may make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应该以权利要求的保护范围为准。The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims (21)

1.一种时隙资源预留方法,其特征在于,应用于第一节点,所述方法包括:1. A time slot resource reservation method, characterized in that it is applied to a first node, and the method comprises: 通过接收第二节点在连续M个探测时隙发送的探测报文,得到所述M个探测时隙的探测结果;其中,每个所述探测时隙的探测结果用于指示所述探测时隙内发送的探测报文映射的所述第一节点的发送中时隙,M为正整数;By receiving the detection message sent by the second node in M consecutive detection time slots, the detection results of the M detection time slots are obtained; wherein the detection result of each detection time slot is used to indicate the sending time slot of the first node mapped by the detection message sent in the detection time slot, and M is a positive integer; 基于所述M个探测时隙的探测结果,确定所述第二节点的目标出向时隙与所述第一节点的目标发送中时隙之间的目标映射关系;Determine, based on the detection results of the M detection time slots, a target mapping relationship between a target outgoing time slot of the second node and a target sending time slot of the first node; 基于所述目标映射关系,为所述第二节点发送的目标报文预留所述第一节点的出向时隙。Based on the target mapping relationship, an outbound time slot of the first node is reserved for the target message sent by the second node. 2.根据权利要求1所述的方法,其特征在于,所述通过接收第二节点在连续M个探测时隙发送的探测报文,得到所述M个探测时隙的探测结果,包括:2. The method according to claim 1, wherein 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 comprises: 获取所述M个探测时隙发送的探测报文到达所述第一节点的出端口的时间;Obtaining the time when the detection messages sent by the M detection time slots arrive at the egress port of the first node; 基于所述M个探测时隙发送的探测报文到达所述第一节点的出端口的时间,确定所述M个探测时隙的探测结果。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 egress port of the first node. 3.根据权利要求1所述的方法,其特征在于,所述通过接收第二节点在连续M个探测时隙发送的探测报文,得到所述M个探测时隙的探测结果,包括:3. The method according to claim 1, wherein the step of receiving the detection message sent by the second node in M consecutive detection time slots to obtain the detection results of the M detection time slots comprises: 获取所述M个探测时隙发送的探测报文到达所述第一节点的入端口的时间;Obtaining the time when the detection messages sent by the M detection time slots arrive at the ingress port of the first node; 基于所述M个探测时隙发送的探测报文到达所述第一节点的入端口的时间,以及所述第一节点的入端口和出端口之间的转发时延,确定所述M个探测时隙的探测结果。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.根据权利要求1所述的方法,其特征在于,所述M的取值等于所述第一时隙长度和所述第二时隙长度之间的最小公倍数与所述第二时隙长度的商,所述第一时隙长度为所述第一节点的编排周期中的时隙的长度,所述第二时隙长度为所述第二节点的编排周期中的时隙的长度,所述第一节点的编排周期与所述第二节点的编排周期的长度相等。4. The method according to claim 1 is characterized in that 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 scheduling period of the first node, the second time slot length is the length of the time slot in the scheduling period of the second node, and the scheduling period of the first node is equal to the scheduling period of the second node. 5.根据权利要求1所述的方法,其特征在于,所述基于所述M个探测时隙的探测结果,确定所述第二节点的目标出向时隙与所述第一节点的目标发送中时隙之间的目标映射关系,包括:5. The method according to claim 1, characterized in that the step of determining 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 detection results of the M detection time slots comprises: 从所述M个探测时隙中确定与所述目标出向时隙对应的目标探测时隙,并获取所述目标探测时隙的探测结果;Determine a target detection time slot corresponding to the target outgoing time slot from the M detection time slots, and obtain a detection result of the target detection time slot; 基于所述目标出向时隙、所述M个探测时隙中第一个探测时隙、所述M的取值以及N的取值,确定时隙偏移个数;其中,所述时隙偏移个数为基于第一时隙长度在所述目标出向时隙与所述目标探测时隙之间的时间间隔中确定的时隙个数,所述时隙偏移个数为整数,所述N的取值等于所述第一时隙长度和所述第二时隙长度之间的最小公倍数与所述第一时隙长度的商;Based on the target outgoing time slot, the first detection time slot in the M detection time slots, the value of M and the value of N, determine the number of time slot offsets; wherein the number of time slot offsets is the number of time slots determined in the time interval between the target outgoing time slot and the target detection time slot based on the first time slot length, 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; 基于所述目标探测时隙的探测结果、所述时隙偏移个数以及第一时隙个数,确定所述目标映射关系;所述第一时隙个数为所述第一节点的编排周期内包含的以所述第一时隙长度计量的时隙个数。The target mapping relationship is determined based on the detection result of the target detection time slot, the number of time slot offsets and the first number of time slots; the first number of time slots is the number of time slots measured by the first time slot length included in the scheduling period of the first node. 6.根据权利要求5所述的方法,其特征在于,所述从所述M个探测时隙中确定与目标出向时隙对应的目标探测时隙,包括:6. The method according to claim 5, characterized in that the step of determining the target detection time slot corresponding to the target outbound time slot from the M detection time slots comprises: 以所述M个探测时隙作为基础时隙组,基于所述目标出向时隙的编号、所述基础时隙组中第一个探测时隙的编号、第二时隙个数以及所述M的取值,确定所述目标出向时隙所在的目标时隙组中的第一个时隙元素的编号;其中,所述第二时隙个数为所述第二节点的编排周期内包含的以所述第二时隙长度计量的时隙个数;Taking 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 second number of time slots and the value of M, determine the number of the first time slot element in the target time slot group where the target outgoing time slot is located; wherein the second number of time slots is the number of time slots measured by the second time slot length contained in the scheduling period of the second node; 基于所述目标出向时隙的编号以及所述目标时隙组中的第一个时隙元素的编号,确定所述目标出向时隙在所述目标时隙组中的位置;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; 将所述基础时隙组中的处于所述位置的探测时隙作为所述目标探测时隙。The detection time slot at the position in the basic time slot group is used as the target detection time slot. 7.根据权利要求6所述的方法,其特征在于,7. The method according to claim 6, characterized in that 所述目标出向时隙所在的目标时隙组中的第一个时隙元素的编号基于以下公式确定:The number of the first time slot element in the target time slot group where the target outgoing time slot is located is determined based on the following formula: 其中,W为所述目标出向时隙所在的目标时隙组中的第一个时隙元素的编号;%为取模运算;Q为所述第二时隙个数;I为所述基础时隙组中第一个探测时隙的编号;X为所述目标出向时隙的编号;/为浮点数的除运算;为取下整运算;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; % is a 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 a floating point number division operation; To remove the integer operation; 所述目标出向时隙在所述目标时隙组中的位置基于以下公式确定: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)%QO=(X-W+Q)%Q 其中,O为所述目标出向时隙在所述目标时隙组中的位置。Wherein, O is the position of the target outgoing time slot in the target time slot group. 8.根据权利要求6所述的方法,其特征在于,所述基于所述目标出向时隙、所述M个探测时隙中第一个探测时隙、所述M的取值以及N的取值,确定时隙偏移个数,包括:8. The method according to claim 6, characterized in that the determining the number of time slot offsets based on the target outgoing time slot, the first detection time slot of the M detection time slots, the value of M and the value of N comprises: 基于所述目标出向时隙的编号、所述M个探测时隙中第一个探测时隙的编号、以及所述M的取值,确定所述目标出向时隙和所述M个探测时隙中第一个探测时隙之间的时间间隔内包含的时隙组数;Determine the number of time slot groups included in the time interval between the target outgoing time slot and the first detection time slot in the M detection time slots based on the number of the target outgoing time slot, the number of the first detection time slot in the M detection time slots, and the value of M; 基于所述时隙组数和所述N的取值,确定所述时隙偏移个数。Based on the number of time slot groups and the value of N, the number of time slot offsets is determined. 9.根据权利要求8所述的方法,其特征在于,所述时隙偏移个数基于以下公式确定:9. The method according to claim 8, characterized in that the number of time slot offsets is determined based on the following formula: 其中,E为所述时隙偏移个数;I为所述M个探测时隙中第一个探测时隙的编号;X为所述目标出向时隙的编号;/为浮点数的除运算;为取下整运算。Wherein, E is the number of the time slot offsets; I is the number of the first detection time slot in the M detection time slots; X is the number of the target outgoing time slot; / is a floating point number division operation; To remove the integer operation. 10.根据权利要求5所述的方法,其特征在于,所述基于所述目标探测时隙的探测结果、所述时隙偏移个数以及第一时隙个数,确定所述目标映射关系,包括:10. The method according to claim 5, characterized in that the determining 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 comprises: 以所述目标探测时隙的探测结果所指示的发送中时隙的编号、所述时隙偏移个数、以及所述第一时隙个数的和为第一编号;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 first number of time slots is used as the first number; 对所述第一编号进行基于所述第一时隙个数的取模运算,得到所述目标发送中时隙的编号;Performing a modulo operation on the first number based on the number of the first time slots to obtain the number of the target sending time slot; 基于所述目标出向时隙的编号和所述目标发送中时隙的编号,确定所述目标映射关系。The target mapping relationship is determined based on the number of the target outgoing time slot and the number of the target sending time slot. 11.根据权利要求10所述的方法,其特征在于,所述目标发送中时隙基于以下公式确定:11. The method according to claim 10, characterized in that the target transmission time slot is determined based on the following formula: 其中,Y为所述目标发送中时隙的编号;Z为所述目标探测时隙的探测结果所指示的发送中时隙的编号;P为所述第一时隙个数;为所述时隙偏移个数;/为浮点数的除运算;为取下整运算;%为取模运算。Wherein, Y is the number of the target sending time slot; Z is the number of the sending time slot indicated by the detection result of the target detection time slot; P is the number of the first time slots; is the number of time slot offsets; / is the division operation of floating point numbers; is the rounding operation; % is the modulo operation. 12.根据权利要求1所述的方法,其特征在于,所述探测报文包括与所述探测报文对应的所述第二节点的出向时隙的编号。12. The method according to claim 1, characterized in that the detection message includes the number of the outgoing time slot of the second node corresponding to the detection message. 13.根据权利要求12所述的方法,其特征在于,所述探测报文还包括以下至少一项:第二时隙个数、第二时隙长度以及所述M的取值,所述第二时隙长度为所述第二节点的编排周期中的时隙的长度,所述第二时隙个数为所述第二节点的编排周期内包含的以所述第二时隙长度计量的时隙个数。13. The method according to claim 12 is characterized in that the detection message also includes at least one of the following items: a second number of time slots, a second time slot length, and a value of M, wherein the second time slot length is the length of a time slot in a scheduling cycle of the second node, and the second number of time slots is the number of time slots measured by the second time slot length contained in the scheduling cycle of the second node. 14.根据权利要求1所述的方法,其特征在于,所述探测结果还用于指示所述探测时隙内发送的探测报文对应的所述第一节点的发送中时隙的剩余时长。14. The method according to claim 1 is characterized in that the detection result is also used to indicate the remaining duration of the first node's sending time slot corresponding to the detection message sent in the detection time slot. 15.根据权利要求1所述的方法,其特征在于,所述基于所述第二节点的目标出向时隙与所述第一节点的目标发送中时隙之间的映射关系,为所述第二节点发送的目标报文预留所述第一节点的出向时隙,包括:15. The method according to claim 1, characterized in that the reserving the outgoing time slot of the first node for the target message sent by the second node based on the mapping relationship between the target outgoing time slot of the second node and the target sending time slot of the first node comprises: 基于所述第二节点用于发送所述目标报文的出向时隙所映射的所述第一节点的发送中时隙,从所述第一节点的发送中时隙之后的时隙中,确定所述第一节点用于发送所述目标报文的出向时隙。Based on the transmitting time slot of the first node mapped to the outgoing time slot of the second node for sending the target message, the outgoing time slot used by the first node to send the target message is determined from the time slots after the transmitting time slot of the first node. 16.一种时隙资源预留方法,其特征在于,应用于第二节点,包括:16. A time slot resource reservation method, characterized in that it is applied to a second node, comprising: 确定用于发送探测报文的探测时隙的个数M,M为正整数;Determine the number M of detection time slots used to send detection messages, where M is a positive integer; 在连续的M个探测时隙发送探测报文至第一节点,以使所述第一节点基于所述M个探测时隙的探测结果,确定所述第二节点的目标出向时隙与所述第一节点的目标发送中时隙之间的目标映射关系;其中,每个所述探测时隙对应的探测报文用于确定与所述探测时隙对应的所述第一节点的发送中时隙,所述目标映射关系用于指示所述第一节点为所述第二节点发送的目标报文预留所述第一节点的出向时隙。Send detection messages to the first node in M consecutive detection 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 sending time slot of the first node based on the detection results of the M detection time slots; wherein the detection message corresponding to each of the detection time slots is used to determine the sending time slot of the first node corresponding to the detection 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. 17.根据权利要求16所述的方法,其特征在于,所述M的取值等于所述第一时隙长度和所述第二时隙长度之间的最小公倍数与所述第二时隙长度的商,其中,所述第一时隙长度为所述第一节点的编排周期中的时隙的长度,所述第二时隙长度为所述第二节点的编排周期中的时隙的长度,所述第一节点的编排周期与所述第二节点的编排周期的长度相等。17. The method according to claim 16, characterized in that 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, wherein the first time slot length is the length of the time slot in the scheduling period of the first node, the second time slot length is the length of the time slot in the scheduling period of the second node, and the length of the scheduling period of the first node is equal to the length of the scheduling period of the second node. 18.根据权利要求17所述的方法,其特征在于,所述探测报文包括与所述探测报文对应的所述第二节点的探测时隙的编号。18. The method according to claim 17, wherein the detection message comprises a number of a detection time slot of the second node corresponding to the detection message. 19.根据权利要求18所述的方法,其特征在于,所述探测报文还包括以下至少一项:第二时隙个数、所述第二时隙长度以及所述M的取值;其中,所述第二时隙个数为所述第二节点的编排周期内包含的以所述第二时隙长度计量的时隙个数。19. The method according to claim 18 is characterized in that the detection message also includes at least one of the following items: 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 measured by the second time slot length contained in the scheduling period of the second node. 20.一种通信装置,其特征在于,包括:存储器和处理器;存储器和处理器耦合;存储器用于存储所述处理器可执行的指令;所述处理器执行所述指令时执行如权利要求1至19中任一项所述的方法。20. A communication device, comprising: a memory and a processor; the memory and the processor are coupled; the memory is used to store instructions executable by the processor; when the processor executes the instructions, it executes the method according to any one of claims 1 to 19. 21.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机指令,当所述计算机指令在通信装置上运行时,使得所述通信装置执行如权利要求1至19中任一项所述方法。21. A computer-readable storage medium, characterized in that computer instructions are stored on the computer-readable storage medium, and when the computer instructions are executed on a communication device, the communication device executes the method as claimed in any one of claims 1 to 19.
CN202310457534.6A 2023-04-18 2023-04-18 A time slot resource reservation method, communication device and storage medium Pending CN118828901A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202310457534.6A CN118828901A (en) 2023-04-18 2023-04-18 A time slot resource reservation method, communication device and storage medium
PCT/CN2023/141641 WO2024217043A1 (en) 2023-04-18 2023-12-25 Time slot resource reservation method, communication device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310457534.6A CN118828901A (en) 2023-04-18 2023-04-18 A time slot resource reservation method, communication device and storage medium

Publications (1)

Publication Number Publication Date
CN118828901A true CN118828901A (en) 2024-10-22

Family

ID=93083089

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310457534.6A Pending CN118828901A (en) 2023-04-18 2023-04-18 A time slot resource reservation method, communication device and storage medium

Country Status (2)

Country Link
CN (1) CN118828901A (en)
WO (1) WO2024217043A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7444419B2 (en) * 2003-10-10 2008-10-28 Microsoft Corporation Media stream scheduling for hiccup-free fast-channel-change in the presence of network chokepoints
CN110139306B (en) * 2018-02-09 2021-12-31 华为技术有限公司 Method, communication device and system for sending measurement report
CN112787924B (en) * 2020-09-28 2022-02-18 中兴通讯股份有限公司 Time slot cross path configuration method, computer device and readable medium
CN115037399A (en) * 2021-03-03 2022-09-09 中兴通讯股份有限公司 Message forwarding method, electronic device and storage medium
CN115695283B (en) * 2022-10-26 2025-04-18 北京星网锐捷网络技术有限公司 A service channel establishment method, device, electronic device and storage medium

Also Published As

Publication number Publication date
WO2024217043A1 (en) 2024-10-24

Similar Documents

Publication Publication Date Title
CN106998302B (en) Method and device for allocating service flow
WO2019184925A1 (en) Message sending method, network node and system
WO2019214561A1 (en) Packet sending method, network node, and system
JP4756143B2 (en) Multi-route dynamic routing algorithm
US8115617B2 (en) Alarm reordering to handle alarm storms in large networks
US11616586B2 (en) Period mapping method and network device
CN113711572A (en) Message transmission method and device
CN115037399A (en) Message forwarding method, electronic device and storage medium
CN106713141A (en) Method for obtaining target transmission path and network node thereof
CN101789949B (en) Method and router equipment for realizing load sharing
CN114124753B (en) Message sending method and device
JP2011199840A (en) Communication device, communication system, and route assignment method
CN118828901A (en) A time slot resource reservation method, communication device and storage medium
Nithin et al. Efficient load balancing for multicast traffic in data center networks using SDN
CN118740733A (en) A service arrangement method, device and storage medium
JP2019521609A (en) Method and device for obtaining path information of data packet
CN119402416B (en) Communication method and device
CN119233405A (en) Service forwarding method and device, storage medium and electronic device
WO2024217051A1 (en) Service flow path determination method and electronic device
WO2024250697A1 (en) Packet forwarding method and apparatus, electronic device, and storage medium
CN118413527A (en) Data processing method, data processing device and computer storage medium
WO2024230241A1 (en) Message sending method, target node, and electronic device
CN118921290A (en) Deterministic link construction method and device
WO2025065229A1 (en) Packet forwarding method and apparatus, network device, and storage medium
WO2024164732A1 (en) Cycle resource determination method and apparatus, storage medium, and electronic apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication