CN115589384A - Message transmission method and device - Google Patents
Message transmission method and device Download PDFInfo
- Publication number
- CN115589384A CN115589384A CN202110755856.XA CN202110755856A CN115589384A CN 115589384 A CN115589384 A CN 115589384A CN 202110755856 A CN202110755856 A CN 202110755856A CN 115589384 A CN115589384 A CN 115589384A
- Authority
- CN
- China
- Prior art keywords
- period
- label
- message
- cycle
- duration
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L5/00—Arrangements affording multiple use of the transmission path
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L5/00—Arrangements affording multiple use of the transmission path
- H04L5/003—Arrangements for allocating sub-channels of the transmission path
- H04L5/0078—Timing of allocation
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
一种报文传输方法及装置,用于降低报文传输时延。本申请中第一设备接收来自第二设备的第一报文和第二报文,第一报文包括第一周期标签,第二报文包括第二周期标签。第一设备确定与第一周期标签对应的第三周期标签,在第三周期标签对应的周期向第三设备发送第一报文。第一设备确定与第二周期标签对应的第四周期标签,在第四周期标签对应的周期向第三设备发送第二报文。其中,第四周期标签对应的周期的起始时刻:晚于第三周期标签对应的周期的起始时刻,且早于第三周期标签对应的周期的结束时刻。由于第四周期标签对应的周期在第三周期标签对应的周期还未结束之前开始,如此可以加快第二报文的发送速度,降低第二报文的传输时延。
A message transmission method and device for reducing message transmission time delay. In this application, the first device receives the first message and the second message from the second device, the first message includes the first period label, and the second message includes the second period label. The first device determines a third periodic label corresponding to the first periodic label, and sends the first packet to the third device in a period corresponding to the third periodic label. The first device determines a fourth period label corresponding to the second period label, and sends the second packet to the third device in a period corresponding to the fourth period label. Wherein, the start moment of the period corresponding to the fourth period label is later than the start moment of the period corresponding to the third period label, and earlier than the end moment of the period corresponding to the third period label. Since the period corresponding to the fourth period label starts before the period corresponding to the third period label ends, the sending speed of the second message can be accelerated and the transmission delay of the second message can be reduced.
Description
技术领域technical field
本申请涉及通信领域,尤其涉及一种报文传输方法及装置。The present application relates to the communication field, and in particular to a message transmission method and device.
背景技术Background technique
确定性网络(Deterministic IP,DIP)技术的目标就是在现有网络互联协议(Internet Protocol,IP)转发机制的基础上提供确定性的时延和抖动保证,其技术核心为周期调度机制。确定性网络中的数据链路上任意两个相邻节点之间维持着一个稳定的周期映射关系,该周期映射关系表明了报文从上游设备发出的周期编号和从下游设备再次发出的周期编号之间的映射关系。下游设备在入端口接收报文,根据周期映射关系查询和报文携带的周期标签对应的固定周期,将该报文在本节点出端口的固定周期发送出去,并且该报文只占用本节点在固定周期的预留资源,这样就可以确保每个报文都有确定的调度周期。The goal of Deterministic IP (DIP) technology is to provide deterministic delay and jitter guarantees based on the existing Internet Protocol (IP) forwarding mechanism, and the core of its technology is the periodic scheduling mechanism. A stable cycle mapping relationship is maintained between any two adjacent nodes on the data link in the deterministic network, which indicates the cycle number of the message sent from the upstream device and the cycle number sent again from the downstream device mapping relationship between them. The downstream device receives the message at the ingress port, queries the period mapping relationship and the fixed period corresponding to the period label carried in the message, and sends the message at the fixed period of the outbound port of the node, and the message only occupies the Resources are reserved for a fixed period, so that each message can be guaranteed to have a definite scheduling period.
下游设备可以通过学习获取周期映射关系。比如,下游设备先确定上游设备的出端口在周期标签为Tx1的周期发出的首报文(首报文携带周期标签Tx1),并确定该首报文到达本节点的入端口的时间,下游设备根据Tx1对应的周期和节点抖动等参数,推算出上游设备的出端口在Tx1的周期发出的尾报文(尾报文也携带周期标签Tx1)可能到达本节点的入端口的最晚时间,基于前述信息下游设备可以获取上游设备的出端口和本节点的出端口之间的周期映射关系:周期标签Tx1→周期标签Ty2(例如(首报文到达本节点的入端口的时间+周期标签Tx1对应的周期的时长+抖动范围)之后的第一个周期的标签)。The downstream device can obtain the periodic mapping relationship through learning. For example, the downstream device first determines the first packet (the first packet carries the periodic label Tx1) sent by the outbound port of the upstream device in the period with the periodic label Tx1, and determines the time when the first packet arrives at the ingress port of the node. According to the period corresponding to Tx1 and parameters such as node jitter, calculate the latest time at which the tail message sent by the outbound port of the upstream device in the Tx1 period (the tail message also carries the period label Tx1) may arrive at the ingress port of the node, based on The downstream device of the aforementioned information can obtain the periodic mapping relationship between the outgoing port of the upstream device and the outgoing port of this node: periodic label Tx1 → periodic label Ty2 (for example (the time when the first packet arrives at the incoming port of this node + corresponding to periodic label Tx1 The label of the first period after the duration of the period + jitter range).
在确定性网络中,由于上游设备的出接口的周期的时长(比如周期标签Tx1对应的周期的时长)与下游设备的出接口的周期的时长(比如周期标签Ty2对应的周期的时长)相同,因而报文传输所经历的时延和抖动始终满足预设的上界。In a deterministic network, since the period length of the outbound interface of the upstream device (for example, the period corresponding to the period label Tx1) is the same as the period of the outbound interface of the downstream device (for example, the period corresponding to the period label Ty2), Therefore, the delay and jitter experienced by packet transmission always meet the preset upper bound.
但是在实际应用中,上游设备的出接口速率与下游设备的出接口的速率可能存在相差较大的情况,比如上游设备的出接口速率为100兆比特每秒(million bits persecond,Mbps),下游设备的出接口速率为10Mbps。However, in practical applications, there may be a large difference between the outgoing interface rate of the upstream device and the outgoing interface rate of the downstream device. For example, the outgoing interface rate of the upstream device is 100 Mbps (million bits per second, Mbps), and the downstream device The outgoing interface rate of the device is 10Mbps.
若上游设备的出接口的周期时长和下游设备的出接口的周期的时长均采用较短的时长,比如均采用2.5μs,则会导致上游设备和下游设备的最大传输单元(maximumtransmission unit,MTU)较小,且在下游设备的传输速率较低的情况下,很可能会导致下游设备的最大传输单元无法满足业务需求。比如下游设备的出接口的MTU=下游设备的出接口的周期的时长(2.5μs)*下游设备的传输速率(100Mbps)/8=30字节(Byte),其中,*表示乘以,/表示除以。可以看出,下游设备的MTU甚至小于最小以太帧64Byte的硬性限制,无法满足业务需求。If the cycle duration of the outgoing interface of the upstream device and the cycle duration of the outgoing interface of the downstream device are both shorter, for example, 2.5 μs, the maximum transmission unit (MTU) of the upstream device and the downstream device will be If the transmission rate of the downstream device is low, it is likely that the maximum transmission unit of the downstream device cannot meet the service requirements. For example, the MTU of the outgoing interface of the downstream device = the cycle duration of the outgoing interface of the downstream device (2.5 μs) * the transmission rate of the downstream device (100 Mbps) / 8 = 30 bytes (Byte), where * means multiplication, / means Divide by. It can be seen that the MTU of the downstream device is even smaller than the hard limit of 64 bytes of the minimum Ethernet frame, which cannot meet the business requirements.
为了满足业务需求,上游设备的出接口的周期时长和下游设备的出接口的周期的时长均采用较长的时长,比如均采用12.5微秒(microsecond,μs),如此,则会导致报文传输时延较大。In order to meet business requirements, the period of the outgoing interface of the upstream device and the period of the outgoing interface of the downstream device are both longer, for example, 12.5 microseconds (microsecond, μs). This will lead to packet transmission The delay is large.
发明内容Contents of the invention
为了提高报文传输时延,本申请实施例提供一种报文传输方法及装置,通过将第一设备的第四周期标签对应的周期和第三周期标签对应的周期的时域资源设置为有部分重叠的方式,提高报文传输速率,降低报文传输时延。In order to improve the message transmission delay, the embodiment of the present application provides a message transmission method and device, by setting the time domain resources of the period corresponding to the fourth period label and the period corresponding to the third period label of the first device as valid The method of partial overlap increases the packet transmission rate and reduces the packet transmission delay.
第一方面,本申请提供一种报文传输方法,该方法中:第一设备接收来自第二设备的第一报文和第二报文。第一报文包括第一周期标签,第一报文为第二设备通过第一周期标签对应的周期发送的报文。第二报文包括第二周期标签,第二报文为第二设备通过第二周期标签对应的周期发送的报文。第一设备确定与第一周期标签对应的第三周期标签,在第三周期标签对应的周期向第三设备发送第一报文。第一设备确定与第二周期标签对应的第四周期标签,在第四周期标签对应的周期向第三设备发送第二报文。其中,第四周期标签对应的周期的起始时刻:晚于第三周期标签对应的周期的起始时刻,且早于第三周期标签对应的周期的结束时刻。In a first aspect, the present application provides a message transmission method, in which: a first device receives a first message and a second message from a second device. The first packet includes a first periodic label, and the first packet is a packet sent by the second device in a period corresponding to the first periodic label. The second packet includes a second periodic label, and the second packet is a packet sent by the second device in a period corresponding to the second periodic label. The first device determines a third period label corresponding to the first period label, and sends the first packet to the third device in a period corresponding to the third period label. The first device determines a fourth period label corresponding to the second period label, and sends the second packet to the third device in a period corresponding to the fourth period label. Wherein, the start moment of the period corresponding to the fourth period label is later than the start moment of the period corresponding to the third period label, and earlier than the end moment of the period corresponding to the third period label.
由于第四周期标签对应的周期并不是在第三周期标签对应的周期结束之后才开始的,而是在第三周期标签对应的周期还未结束之前开始,即第三周期标签对应的周期和第四周期标签对应的周期的时域资源是有重叠的,如此,可以加快第二报文的发送速度,从而可以降低第二报文的传输时延。Since the period corresponding to the fourth period label does not start after the period corresponding to the third period label ends, but starts before the period corresponding to the third period label ends, that is, the period corresponding to the third period label and the period corresponding to the third period label Periodic time domain resources corresponding to the four-period labels overlap, so that the sending speed of the second message can be accelerated, thereby reducing the transmission delay of the second message.
在一种可能的实施方式中,第一设备通过第一端口在第三周期标签对应的周期向第三设备发送第一报文,第一设备通过第一端口在第四周期标签对应的周期向第三设备发送第二报文。可以看出,本申请实施例中针对第一端口的时域资源进行划分,同一个端口的两个周期的时域资源可以有重叠,从而可以提高第一端口上报文的传输速度。第一端口可以为一个物理端口,也可以为多个物理端口绑定的一个逻辑端口。In a possible implementation manner, the first device sends the first packet to the third device through the first port at the period corresponding to the third period label, and the first device sends the first packet to the third device at the period corresponding to the fourth period label through the first port. The third device sends the second packet. It can be seen that, in the embodiment of the present application, the time domain resources of the first port are divided, and the time domain resources of two cycles of the same port may overlap, so that the transmission speed of the message on the first port can be improved. The first port may be a physical port, or a logical port bound to multiple physical ports.
在一种可能的实施方式中,第一时长大于第二时长。第一时长为第三周期标签和第四周期标签对应的周期的时长。第二时长为第一周期标签和第二周期标签对应的周期的时长。也就是说第一时长并不是一定要与第二时长相等的,第一时长也可以大于第二时长,如此,比如在上游设备的出接口速率大于下游设备的出接口速率的场景下,可以使上游设备采用较短的第二时长作为周期时长,而下游设备采用较长的第一时长作为周期时长,如此,一方面可以增大传输速率较低的第一设备的最大传输单元。另一方面,由于第一设备上的第四周期标签对应的周期和第三周期标签对应的周期的时域资源有部分重叠,因此,可以提高第一设备的报文传输速率。In a possible implementation manner, the first duration is longer than the second duration. The first duration is the duration of the period corresponding to the third period label and the fourth period label. The second duration is the duration of the period corresponding to the first period label and the second period label. That is to say, the first duration does not have to be equal to the second duration. The first duration can also be greater than the second duration. In this way, for example, in a scenario where the outbound interface rate of the upstream device is greater than the outbound interface rate of the downstream device, you can use The upstream device adopts the shorter second duration as the cycle duration, while the downstream device adopts the longer first duration as the cycle duration. In this way, on the one hand, the maximum transmission unit of the first device with a lower transmission rate can be increased. On the other hand, since time domain resources of the period corresponding to the fourth period label on the first device and the period corresponding to the third period label partially overlap, the packet transmission rate of the first device can be increased.
在一种可能的实施方式中,第四周期标签对应的周期的起始时刻与第三周期标签对应的周期的起始时刻之间间隔的时长等于:第二周期标签对应的周期的起始时刻与第一周期标签对应的周期的起始时刻之间间隔的时长。由于第一设备和第二设备的各个周期的起始时刻的间隔相同,如此,第一设备和第二设备均可以间隔相同的时长到达一个周期的起始时刻,从而可以降低第一设备和第二设备使用基于周期标签交换的方法进行报文传输的复杂度,进一步简化方案。In a possible implementation manner, the duration of the interval between the start moment of the period corresponding to the fourth period label and the period start moment corresponding to the third period label is equal to: the start moment of the period corresponding to the second period label The duration between the start of the period corresponding to the first period label. Since the intervals between the starting moments of each cycle of the first device and the second device are the same, the first device and the second device can both reach the starting moment of a cycle at the same time interval, thereby reducing the time between the first device and the second device. The second device uses the method based on periodic label switching to transmit the complexity of the message, further simplifying the solution.
在一种可能的实施方式中,第四周期标签对应的周期与第三周期标签对应的周期为相邻的两个周期。第四周期标签对应的周期的起始时刻与第三周期标签对应的周期的起始时刻之间间隔的时长等于:第二时长。由于第一设备和第二设备的各个周期的起始时刻的间隔相同,又由于第一设备的相邻的两个周期的起始时刻的间隔为第二设备的一个周期的时长,如此,第二设备上相邻两个周期的起始时刻的间隔为第一设备的一个周期的时长,即第二设备的相邻两个周期的时域资源可以没有重叠,即第二设备上的周期的时长可以短一些,各个周期可以串行传输,第一设备上的周期的时长可以长一些,以便提高第一设备的一个周期的MTU,而各个周期可以并行传输,从而可以加快第一设备上的报文传输速率。又由于如此,第一设备和第二设备均可以间隔相同的时长到达一个周期的起始时刻,从而可以降低第一设备和第二设备使用基于周期标签交换的方法进行报文传输的复杂度,进一步简化方案。In a possible implementation manner, the period corresponding to the fourth period label and the period corresponding to the third period label are two adjacent periods. The duration of the interval between the start moment of the period corresponding to the fourth period label and the start moment of the period corresponding to the third period label is equal to: the second duration. Since the intervals between the starting moments of the respective cycles of the first device and the second device are the same, and because the interval between the starting moments of two adjacent cycles of the first device is the duration of one cycle of the second device, so, the first The interval between the start times of two adjacent cycles on the second device is the duration of one cycle of the first device, that is, the time domain resources of two adjacent cycles of the second device may not overlap, that is, the period of the second device The duration can be shorter, each cycle can be transmitted serially, the duration of the cycle on the first device can be longer, so as to increase the MTU of one cycle of the first device, and each cycle can be transmitted in parallel, which can speed up the first device. Packet transmission rate. And because of this, both the first device and the second device can arrive at the beginning of a cycle at the same time interval, which can reduce the complexity of message transmission between the first device and the second device using the method based on periodic label switching, Simplify the scheme further.
在一种可能的实施方式中,第一时长为第二时长的整数倍。如此,可以简化第一设备上周期标签的总数量的设置,从而可以降低第一设备和第二设备使用基于周期标签交换的方法进行报文传输的复杂度,进一步简化方案。In a possible implementation manner, the first duration is an integer multiple of the second duration. In this way, the setting of the total number of periodic labels on the first device can be simplified, thereby reducing the complexity of message transmission between the first device and the second device using a method based on periodic label switching, and further simplifying the solution.
在一种可能的实施方式中,第三周期标签的取值范围对应的取值总数量根据第一时长和第一设备的相邻两个周期的起始时刻之间间隔的时长确定。如此,可以基于第一设备的各个周期标签可以循环使用的目的设置第三周期标签的取值范围对应的取值总数量,从而可以为第一设备的各个周期标签循环使用奠定基础。In a possible implementation manner, the total number of values corresponding to the value range of the third cycle tag is determined according to the first duration and the duration of the interval between the start moments of two adjacent cycles of the first device. In this way, the total number of values corresponding to the value range of the third period label can be set based on the purpose that each period label of the first device can be recycled, so as to lay a foundation for the cycle use of each period label of the first device.
在一种可能的实施方式中,第三周期标签的取值范围对应的取值总数量为:R与C的和,R为第一时长与第一设备的相邻两个周期的起始时刻之间间隔的时长的比值,C为正整数。由于第一设备中最多有R个连续的周期满足“任两个周期的时域资源有重叠”的条件,因此,第三周期标签的取值范围对应的取值总数量大于R,则可以使第一设备的各个周期标签循环使用。In a possible implementation manner, the total number of values corresponding to the value range of the third period label is: the sum of R and C, where R is the first duration and the start time of two adjacent periods of the first device The ratio of the duration of the interval between them, C is a positive integer. Since there are at most R consecutive periods in the first device satisfying the condition that "the time-domain resources of any two periods overlap", therefore, the total number of values corresponding to the value range of the third period label is greater than R, then it can be used Each period label of the first device is recycled.
在一种可能的实施方式中,第一设备确定与第一周期标签对应的第三周期标签,包括:第一设备确定第一周期标签对应的第五周期标签;第一设备确定第五周期标签对应的第三周期标签。其中,第二数量为第一数量和第三数量的公倍数。第一数量为第一周期标签的取值范围对应的取值总数量。第二数量为第五周期标签的取值范围对应的取值总数量。第三数量为第三周期标签的取值范围对应的取值总数量。In a possible implementation manner, the first device determining the third period label corresponding to the first period label includes: the first device determining the fifth period label corresponding to the first period label; the first device determining the fifth period label corresponding to the third cycle label. Wherein, the second quantity is a common multiple of the first quantity and the third quantity. The first quantity is the total quantity of values corresponding to the value range of the first period label. The second quantity is the total quantity of values corresponding to the value range of the fifth cycle label. The third quantity is the total quantity of values corresponding to the value range of the third period label.
在第二设备的周期标签的取值范围对应的取值总数量(第一数量)较小(小于第一设备的周期标签的取值范围对应的取值总数量(第三数量))的情况下,第二设备的同一个周期标签可能对应的第一设备的不同的两个周期标签,这种情况下不适合通过计算delta的方法确定报文在第一设备的对应的发送周期的周期标签。而若先对第二设备的报文的周期标签进行转换,或者可以理解为第二设备的报文重新分配一个周期标签(为了区分,可以将该新分配的周期标签称为逻辑周期标签),由于逻辑周期标签的取值范围对应的取值总数量(第二数量)为第一数量和第三数量的公倍数,即第二数量不小于第三数量,进一步,基于报文分配的逻辑周期标签确定该报文在第一设备的发送周期的周期标签,可以通过计算delta的方法确定报文在第一设备的对应的发送周期的周期标签,从而可以简化第二设备向第一设备的周期标签映射关系的计算过程,减少计算量。In the case where the total number of values (first number) corresponding to the value range of the period label of the second device is smaller (less than the total number of values (third number) corresponding to the value range of the period label of the first device) In this case, the same period label of the second device may correspond to two different period labels of the first device. In this case, it is not suitable to determine the period label of the message in the corresponding sending period of the first device by calculating delta. . If the period label of the message of the second device is converted first, or it can be understood that the message of the second device is reassigned a period label (in order to distinguish, the newly allocated period label can be called a logical period label), Since the total number of values (the second number) corresponding to the value range of the logical period label is a common multiple of the first number and the third number, that is, the second number is not less than the third number, further, the logical period label based on message allocation To determine the period label of the message in the sending period of the first device, the period label of the corresponding sending period of the message in the first device can be determined by calculating the delta method, so that the period label of the second device to the first device can be simplified The calculation process of the mapping relationship reduces the amount of calculation.
在一种可能的实施方式中,第一设备确定第五周期标签对应的第三周期标签,包括:第一设备根据第五周期标签、第一报文的接收时刻和预设处理时长,确定第三周期标签。由于第二设备的报文重新分配一个周期标签(为了区分,可以将该新分配的周期标签称为逻辑周期标签),由于逻辑周期标签的取值范围对应的取值总数量(第二数量)不小于第三数量,因此可以依据该新的周期标签,根据第五周期标签、第一报文的接收时刻和预设处理时长,学习报文的新的周期标签与第一设备的发送周期的周期标签之间的映射关系,进而可以为依据学习到的新的周期标签与第一设备的发送周期的周期标签之间的delta计算其他报文在第一设备的发送周期奠定基础。In a possible implementation manner, the first device determining the third periodic label corresponding to the fifth periodic label includes: the first device determines the fifth periodic label according to the fifth periodic label, the receiving time of the first packet, and the preset processing duration. Three cycle labels. Since the message of the second device re-assigns a period label (in order to distinguish, the newly allocated period label can be called a logical period label), because the total number of values corresponding to the value range of the logical period label (the second quantity) is not less than the third number, so the new period label of the message and the sending period of the first device can be learned according to the new period label, according to the fifth period label, the receiving time of the first message and the preset processing time. The mapping relationship between the cycle tags can further lay the foundation for calculating the sending cycle of other messages in the first device according to the delta between the learned new cycle tag and the cycle tag of the sending cycle of the first device.
在一种可能的实施方式中,第一设备确定第六周期标签对应的第四周期标签,包括:第一设备根据第五周期标签和第三周期标签,确定第一设备和第二设备之间的周期映射关系。第一设备确定第二周期标签对应的第六周期标签。第一设备根据周期映射关系以及第六周期标签,确定第六周期标签对应的第四周期标签。由于第二设备的报文重新分配一个周期标签(为了区分,可以将该新分配的周期标签称为逻辑周期标签),由于逻辑周期标签的取值范围对应的取值总数量(第二数量)不小于第三数量,因此学习报文的新的周期标签与第一设备的发送周期的周期标签之间的映射关系之后,可以依据学习到的新的周期标签与第一设备的发送周期的周期标签之间的delta计算其他报文在第一设备的发送周期。In a possible implementation manner, the first device determining the fourth period label corresponding to the sixth period label includes: the first device determines the period between the first device and the second device according to the fifth period label and the third period label. cycle mapping relationship. The first device determines a sixth period label corresponding to the second period label. The first device determines a fourth period label corresponding to the sixth period label according to the period mapping relationship and the sixth period label. Since the message of the second device re-assigns a period label (in order to distinguish, the newly allocated period label can be called a logical period label), because the total number of values corresponding to the value range of the logical period label (the second quantity) is not less than the third number, so after learning the mapping relationship between the new period label of the message and the period label of the sending period of the first device, it can be based on the learned new period label and the period of the sending period of the first device The delta between labels calculates the sending period of other packets on the first device.
在一种可能的实施方式中,第一设备确定与第一周期标签对应的第三周期标签,通过第三周期标签对应的周期向第三设备发送第一报文,包括:第一设备在满足第一条件的情况下,确定与第一周期标签对应的第三周期标签,通过第三周期标签对应的周期向第三设备发送第一报文。其中,第一条件包括:通过第三周期标签对应的周期向第三设备发送完毕第一报文的预计时刻早于:第四周期标签对应的周期的起始时刻。In a possible implementation manner, the first device determines the third period label corresponding to the first period label, and sends the first message to the third device through the period corresponding to the third period label, including: the first device meets In the case of the first condition, a third period label corresponding to the first period label is determined, and the first packet is sent to the third device through a period corresponding to the third period label. Wherein, the first condition includes: the estimated time at which the first packet is sent to the third device through the period corresponding to the third period label is earlier than: the start time of the period corresponding to the fourth period label.
若第一条件不满足,即在第二报文被允许发送的起始时刻之前,第一报文还未发送完毕,若第一设备通过第三周期标签对应的周期向第三设备发送第一报文,由于第一设备用于发送第二报文的周期的时域资源与用于发送第一报文的周期的时域资源有重叠,因此第一报文的发送会增加第二报文的传输时延。为了不影响第一报文的传输时延,当第一条件满足的情况下才通过第三周期标签对应的周期向第三设备发送第一报文,即在第二报文被允许发送的起始时刻之前,第一报文已经发送完毕,因此第一报文不会对第二报文的传输时延造成影响,因此第一设备可以通过第三周期标签对应的周期向第三设备发送第一报文。If the first condition is not satisfied, that is, before the start time when the second message is allowed to be sent, the first message has not been sent completely, if the first device sends the first message to the third device through the cycle corresponding to the third cycle tag message, because the time domain resources used by the first device to send the second message period overlap with the time domain resources used to send the first message period, so the sending of the first message will increase the second message transmission delay. In order not to affect the transmission delay of the first message, the first message is sent to the third device through the cycle corresponding to the third cycle label when the first condition is met, that is, after the second message is allowed to be sent Before the start time, the first packet has been sent, so the first packet will not affect the transmission delay of the second packet, so the first device can send the second packet to the third device through the cycle corresponding to the third cycle label. a message.
在一种可能的实施方式中,第一设备在确定不满足第一条件的情况下:降低第一报文的发送优先级,或者丢弃第一报文。若第一条件不满足,即在第二报文被允许发送的起始时刻之前,第一报文还未发送完毕,若第一设备通过第三周期标签对应的周期向第三设备发送第一报文,由于第一设备用于发送第二报文的周期的时域资源与用于发送第一报文的周期的时域资源有重叠,因此第一报文的发送会增加第二报文的传输时延,这种情况下,可以通过降低第一报文的发送优先级,或者丢弃第一报文的处理方式以尽量保证第二报文的传输时延。In a possible implementation manner, when determining that the first condition is not satisfied, the first device: lowers the sending priority of the first packet, or discards the first packet. If the first condition is not satisfied, that is, before the start time when the second message is allowed to be sent, the first message has not been sent completely, if the first device sends the first message to the third device through the cycle corresponding to the third cycle tag message, because the time domain resources used by the first device to send the second message period overlap with the time domain resources used to send the first message period, so the sending of the first message will increase the second message In this case, the transmission delay of the second message can be ensured as much as possible by lowering the sending priority of the first message or discarding the first message.
在一种可能的实施方式中,第一条件还包括:第四周期标签对应的周期属于预设低时延流对应的周期。如此,可以预设一条或多条低时延流,比如第四周期标签对应的周期属于低时延流对应的周期,则可以尽量减少其他周期的报文对低时延流所占据的发送周期的报文的传输时延的影响,从而可以尽量保证预设的低时延流的传输时延。In a possible implementation manner, the first condition further includes: the cycle corresponding to the fourth cycle tag belongs to the cycle corresponding to the preset low-latency flow. In this way, one or more low-latency flows can be preset. For example, the cycle corresponding to the fourth cycle label belongs to the cycle corresponding to the low-latency flow, and the sending cycle occupied by the packets of other cycles to the low-latency flow can be minimized. Influenced by the transmission delay of the packet, the transmission delay of the preset low-latency flow can be guaranteed as much as possible.
在一种可能的实施方式中,预设低时延流对应的周期包括:第六周期标签对应的周期。在实际应用中,可以预先配置一些参数,比如可以为报文的一个逻辑周期标签,比如第六周期标签。如此,可以确定第一设备的第六周期标签对应的发送周期的报文为需要保证低时延的报文,为了保证此类报文的传输时延,可以对其他报文进行检查,若其他报文的传输会对此类报文的传输的时延造成影响,则可以通过丢弃其他报文或降低其他报文优先级的方式保证此类报文的传输时延。In a possible implementation manner, the preset period corresponding to the low-latency flow includes: a period corresponding to the sixth period label. In practical applications, some parameters can be pre-configured, for example, a logical period label of the packet, such as the sixth period label. In this way, it can be determined that the message of the sending cycle corresponding to the sixth cycle label of the first device is a message that needs to ensure low delay. In order to ensure the transmission delay of this type of message, other messages can be checked. If other The transmission of a message will affect the transmission delay of this type of message, and the transmission delay of this type of message can be guaranteed by discarding other messages or lowering the priority of other messages.
在一种可能的实施方式中,第一条件还包括以下内容中的至少一项:第二报文的源地址与预设低时延流对应的源地址相同。第二报文的目标地址与预设低时延流对应的目标地址相同;或,第二报文的优先级信息与预设低时延流对应的优先级信息相同。In a possible implementation manner, the first condition further includes at least one of the following contents: the source address of the second packet is the same as the source address corresponding to the preset low-latency flow. The destination address of the second packet is the same as the destination address corresponding to the preset low-latency flow; or, the priority information of the second packet is the same as the priority information corresponding to the preset low-latency flow.
在实际应用中,可以预先配置一些参数,比如可以为预设低时延流的源地址、目标地址或优先级信息中的至少一项,如此,当一个报文对应的参数与预先配置的参数匹配,则可以确定该报文为需要保证低时延的报文。为了保证此类报文的传输时延,可以对其他报文进行检查,若其他报文的传输会对此类报文的传输的时延造成影响,则可以通过丢弃其他报文或降低其他报文优先级的方式保证此类报文的传输时延。In practical applications, some parameters can be pre-configured, for example, at least one of the source address, destination address or priority information of the preset low-latency flow can be preset. match, it can be determined that the packet is a packet that needs to ensure low latency. In order to ensure the transmission delay of this type of message, other messages can be checked. If the transmission of other messages will affect the transmission delay of this type of message, you can discard other messages or reduce the The transmission delay of this type of message is guaranteed by means of the priority of the message.
相应于第一方面提供的方法,本申请还提供了一种通信装置。通信装置可以是以无线方式进行数据传输的任意一种发送端的设备(比如第二设备)或接收端的设备(比如为第一设备)。例如,通信芯片、网络设备等。在通信过程中,发送端的设备和接收端的设备是相对的。在某些通信过程中,通信装置可以作为上述第一设备或可用于第一设备的通信芯片。Corresponding to the method provided in the first aspect, the present application further provides a communication device. The communication device may be any device at the sending end (such as the second device) or device at the receiving end (such as the first device) that performs data transmission in a wireless manner. For example, communication chips, network equipment, etc. In the communication process, the device at the sending end and the device at the receiving end are relative. In some communication processes, the communication device may serve as the above-mentioned first device or a communication chip that may be used in the first device.
第二方面,提供了一种通信设备,可以为前述第一设备,包括收发单元和处理单元,以执行上述第一方面以及第一方面中任一种实施方式。收发单元用于执行与发送和接收相关的功能。可选地,收发单元包括接收单元和发送单元。在一种设计中,通信设备为通信芯片,收发单元可以为通信芯片的输入输出电路或者端口。In a second aspect, a communication device is provided, which may be the foregoing first device, and includes a transceiver unit and a processing unit, so as to implement the foregoing first aspect and any implementation manner in the first aspect. The transceiver unit is used to perform functions related to transmission and reception. Optionally, the transceiving unit includes a receiving unit and a sending unit. In one design, the communication device is a communication chip, and the transceiver unit may be an input and output circuit or port of the communication chip.
在另一种设计中,收发单元可以为发射器和接收器,或者收发单元为发射机和接收机。In another design, the transceiving unit may be a transmitter and a receiver, or the transceiving unit may be a transmitter and a receiver.
可选的,通信设备还包括可用于执行上述第一方面以及第一方面中的任一种实施方式的各个模块。Optionally, the communications device further includes various modules that can be used to implement the first aspect and any implementation manner in the first aspect.
第三方面,提供了一种通信设备,该通信设备可以为前述第一设备。包括处理器和存储器。可选的,还包括收发器,该存储器用于存储计算机程序或指令,该处理器用于从存储器中调用并运行该计算机程序或指令,当处理器执行存储器中的计算机程序或指令时,使得该通信设备执行上述第一方面以及第一方面中任一种实施方式。In a third aspect, a communication device is provided, and the communication device may be the aforementioned first device. Includes processor and memory. Optionally, a transceiver is also included, the memory is used to store computer programs or instructions, the processor is used to call and run the computer programs or instructions from the memory, and when the processor executes the computer programs or instructions in the memory, the The communication device executes the first aspect and any one implementation manner of the first aspect.
可选的,处理器为一个或多个,存储器为一个或多个。Optionally, there are one or more processors, and one or more memories.
可选的,存储器可以与处理器集成在一起,或者存储器与处理器分离设置。Optionally, the memory may be integrated with the processor, or the memory may be separated from the processor.
可选的,收发器中可以包括,发射机(发射器)和接收机(接收器)。Optionally, the transceiver may include a transmitter (transmitter) and a receiver (receiver).
第四方面,提供了一种通信设备,包括处理器。该处理器与存储器耦合,可用于执行第一方面以及第一方面中任一种可能实现方式中的方法。可选地,该通信设备还包括存储器。可选地,该通信设备还包括通信接口,处理器与通信接口耦合。In a fourth aspect, a communication device including a processor is provided. The processor is coupled with the memory, and may be used to execute the first aspect and the method in any possible implementation manner of the first aspect. Optionally, the communication device further includes a memory. Optionally, the communication device further includes a communication interface, and the processor is coupled to the communication interface.
在一种实现方式中,该通信设备为网络设备。当该通信设备为网络设备时,通信接口可以是收发器,或,输入/输出接口。可选地,收发器可以为收发电路。可选地,输入/输出接口可以为输入/输出电路。In an implementation manner, the communication device is a network device. When the communication device is a network device, the communication interface may be a transceiver, or an input/output interface. Optionally, the transceiver may be a transceiver circuit. Optionally, the input/output interface may be an input/output circuit.
在又一种实现方式中,该通信设备为芯片或芯片系统。当该通信设备为芯片或芯片系统时,通信接口可以是该芯片或芯片系统上的输入/输出接口、接口电路、输出电路、输入电路、管脚或相关电路等。处理器也可以体现为处理电路或逻辑电路。In yet another implementation manner, the communication device is a chip or a chip system. When the communication device is a chip or a chip system, the communication interface may be an input/output interface, an interface circuit, an output circuit, an input circuit, pins or related circuits on the chip or the chip system. A processor may also be embodied as processing circuitry or logic circuitry.
第五方面,提供了一种系统,系统包括上述第二设备和第一设备。In a fifth aspect, a system is provided, and the system includes the above-mentioned second device and the first device.
第六方面,提供了一种计算机程序产品,计算机程序产品包括:计算机程序(也可以称为代码,或指令),当计算机程序被运行时,使得计算机执行上述第一方面以及第一方面中任一种可能实现方式中的方法。In a sixth aspect, a computer program product is provided, and the computer program product includes: a computer program (also referred to as code, or an instruction), which, when the computer program is executed, causes the computer to execute any of the above-mentioned first aspect and the first aspect. A method in one possible implementation.
第七方面,提供了一种计算机可读存储介质,计算机可读介质存储有计算机程序(也可以称为代码,或指令)当其在计算机上运行时,使得计算机执行上述第一方面以及第一方面中任一种可能实现方式中的方法。In the seventh aspect, a computer-readable storage medium is provided, and the computer-readable medium stores a computer program (also referred to as code, or instruction) when it is run on a computer, so that the computer executes the above-mentioned first aspect and the first A method in any one of the possible implementations of the aspect.
第八方面,提供了一种处理装置,包括:输入电路、输出电路和处理电路。处理电路用于通过输入电路接收信号,并通过输出电路发射信号,使得第一方面及第一方面中任一种可能实现方式中的方法被实现。In an eighth aspect, a processing device is provided, including: an input circuit, an output circuit, and a processing circuit. The processing circuit is configured to receive a signal through the input circuit and transmit a signal through the output circuit, so that the first aspect and the method in any possible implementation manner of the first aspect are realized.
在具体实现过程中,上述处理装置可以为芯片,输入电路可以为输入管脚,输出电路可以为输出管脚,处理电路可以为晶体管、门电路、触发器和各种逻辑电路等。输入电路所接收的输入的信号可以是由例如但不限于接收器接收并输入的,输出电路所输出的信号可以是例如但不限于输出给发射器并由发射器发射的,且输入电路和输出电路可以是同一电路,该电路在不同的时刻分别用作输入电路和输出电路。本申请实施例对处理器及各种电路的具体实现方式不做限定。In a specific implementation process, the above-mentioned processing device may be a chip, the input circuit may be an input pin, the output circuit may be an output pin, and the processing circuit may be a transistor, a gate circuit, a flip-flop, and various logic circuits. The input signal received by the input circuit may be received and input by, for example but not limited to, the receiver, the output signal of the output circuit may be, for example but not limited to, output to the transmitter and transmitted by the transmitter, and the input circuit and the output The circuit may be the same circuit, which is used as an input circuit and an output circuit respectively at different times. The embodiment of the present application does not limit the specific implementation manners of the processor and various circuits.
附图说明Description of drawings
图1为本申请实施例适用的一种网络架构示意图;FIG. 1 is a schematic diagram of a network architecture applicable to an embodiment of the present application;
图2为本申请实施例适用的另一种网络架构示意图;FIG. 2 is a schematic diagram of another network architecture applicable to the embodiment of the present application;
图3为本申请实施例提供的一种数据传输示意图;FIG. 3 is a schematic diagram of data transmission provided by an embodiment of the present application;
图4为图2中设备R0向设备R1发送数据的示意图;FIG. 4 is a schematic diagram of device R0 sending data to device R1 in FIG. 2;
图5为本申请实施例提供的一种报文传输方法的流程示意图;FIG. 5 is a schematic flowchart of a message transmission method provided by an embodiment of the present application;
图6为图5提供的报文传输方法的一种可能的示例的示意图;FIG. 6 is a schematic diagram of a possible example of the message transmission method provided in FIG. 5;
图7为本申请实施例提供的一种第二设备向第一设备传输数据的结构示意图;FIG. 7 is a schematic structural diagram of a second device transmitting data to a first device according to an embodiment of the present application;
图8为本申请实施例提供的又一种第二设备向第一设备传输数据的结构示意图;FIG. 8 is a schematic structural diagram of yet another second device transmitting data to the first device according to an embodiment of the present application;
图9为本申请实施例提供一种通信设备的结构示意图;FIG. 9 is a schematic structural diagram of a communication device provided by an embodiment of the present application;
图10为本申请实施例提供另一种通信设备的结构示意图;FIG. 10 is a schematic structural diagram of another communication device provided by the embodiment of the present application;
图11为本申请实施例提供另一种通信设备的结构示意图。FIG. 11 is a schematic structural diagram of another communication device provided by the embodiment of the present application.
具体实施方式detailed description
应理解,本申请实施例的技术方案可以应用于各种通信系统,例如:移动承载前传或回传领域、城域多业务承载、数据中心互联、工业通讯等基于以太网技术的通讯系统,以及工业或通讯设备内不同元器件或模块之间的通讯系统。It should be understood that the technical solutions of the embodiments of the present application can be applied to various communication systems, such as communication systems based on Ethernet technology such as mobile bearer fronthaul or backhaul, metropolitan area multi-service bearer, data center interconnection, and industrial communication, and Communication system between different components or modules in industrial or communication equipment.
图1示例性示出了本申请实施例适用的一种网络架构示意图,如图1所示,该网络架构包括第一设备和第二设备,可选的,该网络架构还可以包括第三设备。其中,第一设备可以从第二设备接收报文,并将接收到的报文发送到第三设备。第一设备可以通过第一端口向第三设备发送报文。第一端口可以包括一个物理端口。第一端口也可以包括多个物理端口,该物理端口可以绑定为一个逻辑端口。Figure 1 exemplarily shows a schematic diagram of a network architecture applicable to the embodiment of the present application. As shown in Figure 1, the network architecture includes a first device and a second device. Optionally, the network architecture may also include a third device . Wherein, the first device may receive the message from the second device, and send the received message to the third device. The first device may send a packet to the third device through the first port. The first port may include a physical port. The first port may also include multiple physical ports, and the physical ports may be bound as one logical port.
该第一设备可以是网络设备。第二设备可以是终端设备或网络设备。第三设备可以是终端设备或网络设备。其中,网络设备可以是指路由设备(route)、交换机、网关设备(gateway)等。其中,网关设备又称网间连接器、协议转换器,是多个网络间提供数据转换服务的计算机系统或设备。网关设备还可以是指连接两种类型的网络的设备(比如连接确定性网络协议(deterministic internet protocol,DIP)网络和其他网络(其他网络比如为IPv4等、IPv6网络等)的设备),网关设备也可以是路由设备、交换机,或者为专用的网关设备等。The first device may be a network device. The second device may be a terminal device or a network device. The third device may be a terminal device or a network device. Wherein, the network device may refer to a routing device (route), a switch, a gateway device (gateway), and the like. Among them, the gateway device, also known as an internet connection or a protocol converter, is a computer system or device that provides data conversion services between multiple networks. A gateway device can also refer to a device connecting two types of networks (such as a device connecting a deterministic internet protocol (deterministic internet protocol, DIP) network and other networks (such as other networks such as IPv4, IPv6 networks, etc.)), the gateway device It can also be a routing device, a switch, or a dedicated gateway device.
其中,任意两个处于上下游关系中的设备可以分别称为上游设备和下游设备。比如上述第二设备可以称为上游设备,第一设备可以称为下游设备。再比如上述第一设备可以称为上游设备,第三设备可以称为下游设备。Wherein, any two devices in an upstream and downstream relationship may be referred to as an upstream device and a downstream device, respectively. For example, the above-mentioned second device may be called an upstream device, and the first device may be called a downstream device. For another example, the above-mentioned first device may be called an upstream device, and the third device may be called a downstream device.
图2示例性示出了本申请实施例适用的另一种网络架构示意图,如图2所示,该网络架构包括发送设备、至少一个节点以及接收设备。其中,至少一个节点可以包括设备R0至设备Rn共n个设备,n可以为正整数,其中任一个设备可以为上述网络设备。设备R0可以为路由设备、交换机或网关设备,比如设备R0可以为入口网关(ingress gateway,iGW)。设备Rn可以为路由设备、交换机或网关设备,比如设备Rn可以为出口网关(egress gateway,eGW)。其中,发送设备可以为终端设备也可以为上述网络设备。接收设备可以为终端设备也可以为上述网络设备。FIG. 2 exemplarily shows a schematic diagram of another network architecture applicable to the embodiment of the present application. As shown in FIG. 2 , the network architecture includes a sending device, at least one node, and a receiving device. Wherein, at least one node may include a total of n devices from device R0 to device Rn, where n may be a positive integer, and any one of the devices may be the aforementioned network device. The device R0 may be a routing device, a switch, or a gateway device, for example, the device R0 may be an ingress gateway (ingress gateway, iGW). The device Rn may be a routing device, a switch or a gateway device, for example, the device Rn may be an egress gateway (egress gateway, eGW). Wherein, the sending device may be a terminal device or the above-mentioned network device. The receiving device may be a terminal device or the above-mentioned network device.
上述图1中的三个设备可以为图2中的相邻的三个设备,比如,图2中的设备Rn-1、设备Rn和接收设备可以依次为图1中的第二设备、第一设备和第三设备。当然设备Rn-2、设备Rn-1和设备Rn也可以依次为图1中的第二设备、第一设备和第三设备。为了更清楚的介绍本申请实施例,后续内容以设备Rn-1、设备Rn和接收设备依次为图1中的第二设备、第一设备和第三设备为例进行介绍。The above three devices in FIG. 1 can be three adjacent devices in FIG. 2, for example, the device Rn-1, device Rn and receiving device in FIG. 2 can be the second device, the first equipment and third equipment. Of course, the device Rn-2, the device Rn-1 and the device Rn may also be the second device, the first device and the third device in FIG. 1 in sequence. In order to introduce the embodiment of the present application more clearly, the following content is introduced by taking the device Rn-1, the device Rn and the receiving device as the second device, the first device and the third device in FIG. 1 in sequence as an example.
图2中的发送设备与设备R0之间以及接收设备与设备Rn之间的连接可以通过边缘网络连接,而设备R0至设备Rn中的两个节点之间可以通过核心网络连接。发送设备与接收设备之间可以传输确定性网络协议(deterministic internet protocol,DIP)报文,即在满足确定性时延的条件下传输的报文。该确定性时延可以理解为在满足一定突发性条件的前提下,报文传输所经历的时延以及抖动在预设范围内。当然,发送设备与接收设备之间也可以传输非DIP报文。此外,发送设备也可以接收到接收设备发送的数据,即发送设备与接收设备之间可以互相传输数据,本申请以下实施例中仅以发送设备向接收设备发送数据为例进行说明,并不作为限定。The connections between the sending device and device R0 and between the receiving device and device Rn in FIG. 2 may be connected through an edge network, and the two nodes among devices R0 to Rn may be connected through a core network. A deterministic internet protocol (DIP) message may be transmitted between the sending device and the receiving device, that is, a message transmitted under a condition of satisfying a deterministic delay. The deterministic delay can be understood as the delay and jitter experienced by message transmission within a preset range under the premise of satisfying certain bursty conditions. Of course, non-DIP packets can also be transmitted between the sending device and the receiving device. In addition, the sending device can also receive the data sent by the receiving device, that is, the sending device and the receiving device can transmit data to each other. limited.
一种可能的实施方式中,可以在上游设备的出接口速率大于下游设备的出接口速率的场景下应用本申请实施例提供的方案,比如图2中设备Rn-1的出接口速率为100Mbps,设备Rn的出接口速率为10Mbps,本申请实施例提供的方案可以应用于设备Rn上,即由设备Rn执行本申请实施例中第一设备侧的方案。In a possible implementation manner, the solution provided by the embodiment of the present application can be applied in a scenario where the rate of the outbound interface of the upstream device is greater than the rate of the outbound interface of the downstream device. For example, the rate of the outbound interface of the device Rn-1 in FIG. 2 is 100 Mbps, The outgoing interface rate of the device Rn is 10 Mbps, and the solution provided in the embodiment of the present application can be applied to the device Rn, that is, the device Rn executes the solution on the first device side in the embodiment of the present application.
在又一种可能的实施方式中,也可以在上游设备的出接口速率等于或小于下游设备的出接口速率的场景下应用本申请实施例提供的方案,比如可以在设备Rn-1的出接口速率与设备Rn的出接口速率相等或小于的场景下应用本申请实施例提供的方案,再比如还可以在网络中其他相邻的两个设备上应用本申请实施例提供的方案,本申请实施例不做限定。In yet another possible implementation, the solution provided by the embodiment of this application can also be applied in the scenario where the rate of the outbound interface of the upstream device is equal to or lower than the rate of the outbound interface of the downstream device, for example, the outbound interface of the device Rn-1 can be The solution provided by the embodiment of this application is applied in the scenario where the rate is equal to or less than the rate of the outbound interface of device Rn. For another example, the solution provided by the embodiment of this application can also be applied to two other adjacent devices in the network. The implementation of this application Examples are not limited.
基于上述内容,下面对本申请实施例涉及到的术语以及相关技术进行相关介绍。Based on the above content, the terms and related technologies involved in the embodiments of the present application are introduced below.
(1)周期和周期时长。(1) Cycle and cycle duration.
本申请实施例中的设备(比如图2中的发送设备、设备R0、设备R1、设备Rn-1、设备Rn等)对出接口(本申请实施例中出接口也可以称为用于发送报文的接口或端口)的时域资源进行划分,得到该出接口的多份时域资源,该多份时域资源可以称为多个周期。其中每份时域资源的时长可以称为该周期的时长,或称为该周期的周期时长。The device in the embodiment of the present application (such as the sending device, device R0, device R1, device Rn-1, device Rn, etc. in FIG. The time-domain resources of the interface or port of the text are divided to obtain multiple time-domain resources of the outgoing interface, and the multiple time-domain resources may be called multiple cycles. The duration of each time-domain resource may be referred to as the duration of the cycle, or as the cycle duration of the cycle.
该设备的该出接口的任意两个时域资源的时长可以相等。举个例子,比如设备Rn-1的出接口的时域资源按照2.5微秒的长度划分周期,即表示设备Rn-1的该出接口的任意一个周期的时长均为2.5微秒。The time durations of any two time domain resources of the outbound interface of the device may be equal. For example, for example, the time-domain resource of the outgoing interface of the device Rn-1 is divided into cycles according to the length of 2.5 microseconds, which means that the duration of any cycle of the outgoing interface of the device Rn-1 is 2.5 microseconds.
需要注意的是,本申请实施例中两个设备对应的周期的时长可以相等,也可以不相等,比如设备R0划分的周期的时长可以与设备R1划分的周期的时长相等或不相等。It should be noted that in the embodiment of the present application, the periods corresponding to the two devices may or may not be equal in length. For example, the period divided by the device R0 may be equal or unequal to the period divided by the device R1.
图3示例性示出了一种数据传输示意图,如图3所示,不同设备划分的周期的起始时刻可能不相同,且通常任意两个节点之间周期边界的距离保持不变。如图3所示,设备R1的周期边界与设备R0的周期边界之间相差D,以及D`,且|D-D`|≤1us,当然该1us可以根据不同场景切换为不同的值。类似地,设备R0与设备Rn的周期边界之间相差D1以及D1`,且|D1-D1`|≤1us。FIG. 3 exemplarily shows a schematic diagram of data transmission. As shown in FIG. 3 , the start times of cycles divided by different devices may be different, and generally the distance between any two nodes remains unchanged. As shown in Figure 3, the difference between the period boundary of device R1 and the period boundary of device R0 is D, and D`, and |D-D`|≤1us, of course, the 1us can be switched to different values according to different scenarios. Similarly, there is a difference of D1 and D1' between the periodic boundaries of the device R0 and the device Rn, and |D1-D1'|≤1us.
(2)边缘整形。(2) Edge shaping.
如图3所示,设备R0对接收到的流量进行整形,按照每流每周期字节数不超过Bi*T的方式发送,其中Bi代表每条流服务等级协议(Service-Level Agreement,SLA)规定的带宽,T表示设备R0发送该流的端口上通过划分时域资源得到的周期的时长。As shown in Figure 3, device R0 shapes the received traffic and sends it in such a way that the number of bytes per flow per cycle does not exceed Bi*T, where Bi represents the service-level agreement (Service-Level Agreement, SLA) of each flow Specified bandwidth, T represents the duration of the cycle obtained by dividing the time domain resources on the port where the device R0 sends the flow.
(3)周期标签。(3) Cycle label.
周期标签也可以理解为周期编号。Period labels can also be understood as period numbers.
一个设备的出接口的时域资源划分得到多个周期后,可以对周期进行编号,或者称对周期打上周期标签。周期编号对应一个取值范围,或者可以称周期标签对应一个取值范围。比如该取值范围可以为[0,N],周期编号可以为[0,N]中的整数,N为正整数。该取值范围也可以为一些离散的具体的值,本申请实施例不做限制。After the time-domain resources of the outbound interface of a device are divided into multiple cycles, the cycles can be numbered, or the cycles can be labeled with a cycle. The period number corresponds to a value range, or it can be said that the period label corresponds to a value range. For example, the value range may be [0, N], the period number may be an integer in [0, N], and N is a positive integer. The value range may also be some discrete specific values, which are not limited in this embodiment of the present application.
一个设备的一个出接口对应的时域资源所划分的周期的周期标签(或称周期编号)可以在[0,N]中循环取值。举个例子,N为3,则该设备的该出接口的时域资源所划分的周期的周期标签则依次可以为:0、1、2、3、0、1、2、3…。The period label (or called period number) of the period divided by the time domain resource corresponding to an outgoing interface of a device may take values cyclically in [0, N]. For example, if N is 3, then the period labels of the periods divided by the time domain resources of the outbound interface of the device may be: 0, 1, 2, 3, 0, 1, 2, 3... in sequence.
请参阅图3,设备R0在出接口处存在多个周期,其中,在T2周期内发送的报文中携带周期标签2(携带周期标签2的具体形式有多种,比如可以是在报文中携带用于指示周期标签2的信息,比如可以用几个比特来指示周期标签的值),可以在T2周期内的首报文以及零个、一个或多个其他报文中携带周期标签2,比如可以仅在T2周期内的首报文中携带周期标签2;再比如,可以仅在T2周期内的首报文和尾报文中携带周期标签2;再比如可以在T2周期内的所有报文中携带周期标签2。类似的,在T3周期内发送的报文中携带周期标签3,在T0周期内发送的报文中携带周期标签0。Please refer to Figure 3. Device R0 has multiple cycles at the outbound interface. Among them, the message sent in the T2 cycle carries the cycle label 2 (there are many specific forms of carrying the cycle label 2, for example, it can be in the message Carry the information used to indicate the period label 2, for example, several bits can be used to indicate the value of the period label), and the period label 2 can be carried in the first message and zero, one or more other messages in the T2 period, For example, the period label 2 can be carried only in the first packet in the T2 period; for another example, the period label 2 can be carried only in the first and last packets in the T2 period; The text carries period label 2. Similarly, the
(4)报文的时延。(4) The delay of the message.
图4示例性示出了图2中设备R0向设备R1发送数据的示意图,如图4所示,计算设备R0在周期T2发送的报文到达设备R1的时延L,可以通过如下公式进行计算:Figure 4 exemplarily shows a schematic diagram of device R0 sending data to device R1 in Figure 2. As shown in Figure 4, the time delay L for calculating the packet sent by device R0 in period T2 to device R1 can be calculated by the following formula :
L=A+(设备Rn-1的出接口的一个周期的时长)+Lmax+B……公式(1)L=A+(the duration of one cycle of the outgoing interface of device Rn-1)+Lmax+B... Formula (1)
在公式(1)中,A表示设备R0的T2周期中的首报文从发送至到达设备R1入接口的时长;In the formula (1), A represents the time from sending the first packet in the T2 cycle of the device R0 to arriving at the inbound interface of the device R1;
Lmax表示设备R1内部的最大处理时延;Lmax represents the maximum processing delay inside device R1;
t1=t0+Lmax;t1=t0+Lmax;
B表示在t1时刻与t1时刻之后第一个周期的边界之间的时长,B的取值范围为[0,设备R1的出接口对应的周期的时长]。B represents the duration between time t1 and the boundary of the first cycle after time t1, and the value range of B is [0, the duration of the cycle corresponding to the outgoing interface of device R1].
需要注意的是,A的值可以理解为设备R0发送至设备R1的报文的线路时延,该线路时延可以是固定的值。一种可能的实施方式中,可以在首报文中添加首包标识,设备R1接收到携带首包标识的报文之后,记录该首报文的接收时刻t0;该报文在设备R0的发送时刻可以通过该报文中携带的时间戳等信息获取。也有可能A的值为预设的一个值。It should be noted that the value of A can be understood as the line delay of the message sent by the device R0 to the device R1, and the line delay may be a fixed value. In a possible implementation manner, the first packet identifier can be added to the first packet, and after receiving the packet carrying the first packet identifier, the device R1 records the receiving time t0 of the first packet; when the packet is sent by the device R0 The time can be obtained through information such as a time stamp carried in the message. It is also possible that the value of A is a preset value.
如图4所示,通过公式(1)可以确定设备R0在周期标签T2对应的周期发送的报文需要在设备R1设备的周期标签T1对应的周期内发送。As shown in FIG. 4 , it can be determined by formula (1) that the message sent by device R0 in the period corresponding to period label T2 needs to be sent in the period corresponding to period label T1 of device R1.
(4)周期映射关系。(4) Periodic mapping relationship.
下游设备可以建立与上游设备之间的周期映射关系,该周期映射关系包括上游设备发送报文的中携带的周期标签,与下游设备向下一跳转发该报文的周期之间的映射关系。因此,每个设备都可以根据周期映射关系,稳定地转发报文,使报文传输的时延控制在预设的时延范围内,实现确定性网络。The downstream device can establish a period mapping relationship with the upstream device. The period mapping relationship includes the period label carried in the message sent by the upstream device and the period of the downstream device forwarding the message to the next hop. . Therefore, each device can stably forward messages according to the periodic mapping relationship, so that the delay of message transmission is controlled within the preset delay range, and a deterministic network is realized.
下游设备可以学习周期映射关系,下面结合图4介绍一种下游设备学习周期映射关系的方案,如图4所示,设备R1接收到报文,其携带周期标签为T2,该周期标签T2对应的周期内的尾报文达到时间为t1,将t1所对应的设备R1的周期的下一个周期确定为该报文的发送周期(或者将t1时刻加上时长B之后的时刻对应的周期确定为该报文的发送周期),即将图4中的设备R1的周期T1确定为该报文的发送周期,从而确定设备R1学习到的设备R0和设备R1对应的周期映射关系为:周期T2映射至周期T1。The downstream device can learn the cycle mapping relationship. The following describes a scheme for the downstream device to learn the cycle mapping relationship in combination with Figure 4. As shown in Figure 4, the device R1 receives the message, which carries the cycle tag T2, and the cycle tag T2 corresponds to The arrival time of the tail message in the cycle is t1, and the next cycle of the cycle of the device R1 corresponding to t1 is determined as the sending cycle of the message (or the cycle corresponding to the time after the time t1 plus the duration B is determined as the cycle The sending period of the message), that is, the period T1 of the device R1 in Figure 4 is determined as the sending period of the message, so that the period mapping relationship between the device R0 learned by the device R1 and the corresponding period of the device R1 is determined: the period T2 is mapped to the period T1.
下面以周期映射关系为:Tx映射至Ty为例进行介绍,即上游设备的出接口的周期Tx内的报文发送至下游设备后,在下游设备的出接口的周期Ty内发送。In the following, the period mapping relationship is: Tx is mapped to Ty as an example, that is, after the packets in the period Tx of the outbound interface of the upstream device are sent to the downstream device, they are sent within the period Ty of the outbound interface of the downstream device.
可以先通过下述公式(2)计算出delta:The delta can be calculated by the following formula (2):
delta=(Ty-Tx+Ny)mod Ny……公式(2)delta=(Ty-Tx+Ny) mod Ny...Formula (2)
在公式(2)中,Ty为下游设备的出接口发送报文的周期标签;In formula (2), Ty is the periodic label of the packet sent by the outgoing interface of the downstream device;
Tx为上游设备的出接口发送报文的周期标签;Tx is the periodic label of the packet sent by the outgoing interface of the upstream device;
Ny为下游设备的周期标签的取值范围内的取值数量;比如周期标签的取值范围为[0,3],且周期标签为该取值范围内的整数,则该周期标签的取值范围内的取值数量为4;再比如周期标签的取值范围为[0,7],且周期标签为该取值范围内的整数,则该周期标签的取值范围内的取值数量为8;Ny is the number of values within the value range of the period label of the downstream device; for example, the value range of the period label is [0,3], and the period label is an integer within the value range, then the value of the period label The number of values within the range is 4; for another example, the value range of the period label is [0,7], and the period label is an integer within the value range, then the number of values within the value range of the period label is 8;
mod为取余。mod is the remainder.
之后可以根据公式(3)计算下游设备接收到报文对应的发送周期Ty’:Then, the sending period Ty' corresponding to the message received by the downstream device can be calculated according to the formula (3):
Ty’=(Tx’+delta)mod Ny……公式(3)Ty'=(Tx'+delta) mod Ny...Formula (3)
在公式(3)中,Tx’为上游设备的出接口发送报文的周期标签;In formula (3), Tx' is the periodic label of the message sent by the outgoing interface of the upstream device;
delta即为公式(2)中的delta;delta is the delta in formula (2);
mod为取余;mod is the remainder;
Ny为下游设备的周期标签的取值范围内的取值数量。Ny is the number of values within the value range of the periodic label of the downstream device.
请继续参见图4,由于通过上述公式(1)计算出:设备R0在周期标签T2对应的周期发送的报文需要在设备R1设备的周期标签T1对应的周期内发送。且设备R1的周期标签的取值范围内的取值数量为4,因此delta=(1-2+4)mod 4=3,即该3为调整值。Please continue to refer to FIG. 4 , because it is calculated by the above formula (1): the message sent by the device R0 in the period corresponding to the period label T2 needs to be sent in the period corresponding to the period label T1 of the device R1. And the number of values within the value range of the period label of the device R1 is 4, so delta=(1−2+4)mod 4=3, that is, 3 is an adjustment value.
进一步,请参阅图3,设备R1计算设备R0在T3周期发送的报文在设备R1所对应的发送周期,可以通过上述公式(3)计算,设备R0在T3周期发送的报文在设备R1所对应的发送周期=(3+3)mod4=2,即设备R0在T3周期发送的报文在设备R1所对应的发送周期的周期标签为T2。类似的,设备R0在T0周期发送的报文在设备R1所对应的发送周期的周期标签为T3。Further, please refer to Figure 3. Device R1 calculates the sending period corresponding to the message sent by device R0 in the T3 period in the device R1. It can be calculated by the above formula (3). The message sent by the device R0 in the T3 period The corresponding sending period=(3+3)mod4=2, that is, the period label of the sending period corresponding to the sending period of the device R1 for the message sent by the device R0 in the T3 period is T2. Similarly, the cycle label of the packet sent by device R0 in period T0 in the sending period corresponding to device R1 is T3.
进一步,设备R1将接收到的报文中指示T2的周期标签分别替换为指示T1的周期标签,并在T1周期将替换了周期标签后的报文发送至下游设备。类似的,设备R1将接收到的设备R0在T3周期发送的报文的周期标签替换为T2后,在T2周期进行发送;设备R1将接收到的设备R0在T0周期发送的报文的周期标签替换为T3后,在T3周期进行发送。Further, the device R1 replaces the period label indicating T2 in the received message with the period label indicating T1 respectively, and sends the message with the period label replaced to the downstream device in the T1 period. Similarly, device R1 replaces the period label of the received message sent by device R0 in T3 period with T2, and then sends it in T2 period; device R1 replaces the period label of the received message sent by device R0 in T0 period After replacing it with T3, send it in the T3 period.
与之类似,设备Rn-1接收到其上游设备发送的报文,设备Rn-1将接收到的其上游设备在T0周期发送的报文的周期标签替换为T1后,在T1周期进行发送;设备Rn-1将接收到的其上游设备在T1周期发送的报文的周期标签替换为T2后,在T2周期进行发送;设备Rn-1将接收到的其上游设备在T2周期发送的报文的周期标签替换为T3后,在T3周期进行发送。Similarly, when device Rn-1 receives a message sent by its upstream device, device Rn-1 replaces the period label of the received message sent by its upstream device in T0 period with T1, and then sends it in T1 period; Device Rn-1 replaces the cycle label of the received packet sent by its upstream device in T1 cycle with T2, and then sends it in T2 cycle; device Rn-1 will receive the message sent by its upstream device in T2 cycle After replacing the cycle label with T3, it will be sent in the T3 cycle.
(4)周期发送。(4) Send periodically.
对于设备(如上述图2中的发送设备、网关设备1、路由设备、网关设备2)的一个出接口,可以理解为该出接口的每个周期都有一个队列,队列索引为周期标签。各个周期标签对应的报文可以循环发送。一种可能的实施方式中,可以理解为每个队列对应一个门控开关,一个队列的门控开关开启可以理解为允许发送该队列对应的报文(即该队列对应的周期标签对应的报文),一个队列的门控开关关闭可以理解为停止发送该队列对应的报文。本申请实施例中提到的门控开关的开启和关闭仅仅是为了说明该队列对应的报文是否处于被允许发送的状态,在实际场景中,可以通过寄存器、计时器或者一些其他的设备或模块实现该门控开关的功能。For an outgoing interface of a device (such as the sending device, gateway device 1, routing device, and gateway device 2 in FIG. 2 ), it can be understood that each cycle of the outgoing interface has a queue, and the queue index is a cycle label. Messages corresponding to each periodic label can be sent cyclically. In a possible implementation manner, it can be understood that each queue corresponds to a gate control switch, and the opening of a gate control switch of a queue can be understood as allowing the message corresponding to the queue to be sent (that is, the message corresponding to the periodic label corresponding to the queue ), the closing of the gate switch of a queue can be understood as stopping sending the corresponding message of the queue. The opening and closing of the gate control switch mentioned in the embodiment of this application is only to illustrate whether the message corresponding to the queue is in the state of being allowed to send. The module realizes the function of the door control switch.
请继续参阅图3,设备R0的出接口有4个周期,分别对应4个队列,周期标签为T0的报文入周期标签T0对应的队列,周期标签为T1的报文入周期标签T1对应的队列,周期标签为T2的报文入周期标签T2对应的队列,周期标签为T3的报文入周期标签T3对应的队列。每个队列可以设有门控开关,当该队列的门控开关开启时,该队列中的报文可以发送,当该队列的门控开关关闭时,则不发送该队列的报文。各个队列可以循环开启,比如图3中所示的设备R0可以开启周期标签为T2的门控开关,并持续周期标签为T2的周期的时长,在该门控开关开启期间,可以发送周期标签为T2的报文,当该门控开关开启时长达到该周期标签为T2的周期的时长后,则关闭该门控开关,即停止发送周期标签为T2的报文。接着开启周期标签为T3的门控开关,并持续周期标签为T3的周期的时长,在该门控开关开启期间,可以发送周期标签为T3的报文,当该门控开关开启时长达到该周期标签为T3的周期的时长后,则关闭该门控开关,即停止发送周期标签为T3的报文。Please continue to refer to Figure 3. The outbound interface of device R0 has 4 periods, which correspond to 4 queues respectively. Packets with period label T0 enter the queue corresponding to period label T0, and packets with period label T1 enter the queue corresponding to period label T1. Queues. Packets with the periodic label T2 enter the queue corresponding to the periodic label T2, and packets with the periodic label T3 enter the queue corresponding to the periodic label T3. Each queue can be provided with a gate control switch. When the gate control switch of the queue is turned on, the messages in the queue can be sent, and when the gate control switch of the queue is turned off, the messages of the queue will not be sent. Each queue can be turned on cyclically. For example, the device R0 shown in Figure 3 can turn on the gate switch whose period label is T2, and last for the duration of the period whose period label is T2. During the period when the gate switch is turned on, it can send For the message of T2, when the opening time of the gate control switch reaches the time length of the period whose period label is T2, the gate control switch is turned off, that is, the sending of the message with the period label of T2 is stopped. Then turn on the gating switch whose period label is T3, and continue for the duration of the period whose period label is T3. During the period when the gating switch is turned on, a message with the period label T3 can be sent. When the gating switch is turned on, the duration reaches this period After the duration of the period with the label T3, the gate switch is turned off, that is, the sending of the message with the period label T3 is stopped.
图5示例性示出了一种报文传输方法的流程示意图,该方法可以由第一设备或第一设备内部的单元、模块或芯片执行。第一设备可以为前述图1中的第一设备,可以为前述图2所示网络中的设备,比如可以为设备R1至设备Rn中的一个设备,本申请实施例中以第一设备为设备Rn为例进行说明。如图5所示,该方法包括:Fig. 5 exemplarily shows a schematic flowchart of a packet transmission method, and the method may be executed by the first device or a unit, module or chip inside the first device. The first device may be the first device in the aforementioned Figure 1, or a device in the network shown in the aforementioned Figure 2, for example, it may be one of the devices R1 to Rn, and the first device is used as the device in the embodiment of the present application Rn is used as an example for illustration. As shown in Figure 5, the method includes:
S501,第一设备接收来自第二设备的第一报文和第二报文,第一报文包括第一周期标签,第一报文为第二设备通过第一周期标签对应的周期发送的报文;第二报文包括第二周期标签,第二报文为第二设备通过第二周期标签对应的周期发送的报文。S501. The first device receives a first message and a second message from the second device, the first message includes a first periodic label, and the first message is a message sent by the second device through a period corresponding to the first periodic label. The second message includes a second period label, and the second message is a message sent by the second device in a period corresponding to the second period label.
需要说明的是,第二设备发送第一报文和第二报文的端口可以是同一个,也可以是不同的两个端口。第二设备上用于发送第一报文的端口对应的周期时长与用于发送第二报文的端口对应的周期时长相同,且用于发送第一报文的端口对应的周期标签的取值范围与用于发送第二报文的端口对应的周期标签的取值范围相同。It should be noted that, the port through which the second device sends the first packet and the second packet may be the same port, or may be two different ports. The cycle duration corresponding to the port used to send the first message on the second device is the same as the cycle time corresponding to the port used to send the second message, and the value of the cycle label corresponding to the port used to send the first message The range is the same as the value range of the periodic label corresponding to the port used to send the second packet.
第二设备通过第一周期标签对应的周期可以发送一个或多个报文,第一报文可以为其中的一个报文,可以为首报文,也可以为非首报文,比如尾报文或中间的一个报文等。类似的,第二设备通过第二周期标签对应的周期可以发送一个或多个报文,第二报文可以为其中的一个报文,可以为首报文,也可以为非首报文,比如尾报文或中间的一个报文等。The second device can send one or more messages through the cycle corresponding to the first cycle label. The first message can be one of the messages, it can be the first message, or it can be a non-first message, such as the last message or A message in the middle and so on. Similarly, the second device can send one or more packets through the cycle corresponding to the second cycle label, and the second packet can be one of the packets, it can be the first packet, or it can be a non-first packet, such as the end message or a message in between, etc.
S502,第一设备确定与第一周期标签对应的第三周期标签,在第三周期标签对应的周期向第三设备发送第一报文。S502. The first device determines a third period label corresponding to the first period label, and sends a first packet to the third device in a period corresponding to the third period label.
S503,第一设备确定与第二周期标签对应的第四周期标签,在第四周期标签对应的周期向第三设备发送第二报文。其中,第四周期标签对应的周期的起始时刻:晚于第三周期标签对应的周期的起始时刻,且早于第三周期标签对应的周期的结束时刻。S503. The first device determines a fourth period label corresponding to the second period label, and sends a second packet to the third device in a period corresponding to the fourth period label. Wherein, the start moment of the period corresponding to the fourth period label is later than the start moment of the period corresponding to the third period label, and earlier than the end moment of the period corresponding to the third period label.
由于第四周期标签对应的周期并不是在第三周期标签对应的周期结束之后才开始的,而是在第三周期标签对应的周期还未结束之前就开始了,即第三周期标签对应的周期和第四周期标签对应的周期的时域资源是有重叠的,如此,可以加快第二报文的发送速度,从而可以降低第二报文的传输时延。Since the period corresponding to the fourth period label does not start after the period corresponding to the third period label ends, but starts before the period corresponding to the third period label ends, that is, the period corresponding to the third period label The time-domain resources of the period corresponding to the fourth period label overlap. In this way, the sending speed of the second message can be accelerated, thereby reducing the transmission delay of the second message.
在上述S502中,第一设备确定与第一周期标签对应的第三周期标签,可以通过第一端口在第三周期标签对应的周期向第三设备发送第一报文。在上述S503中,第一设备确定与第二周期标签对应的第四周期标签,可以通过第一端口在第四周期标签对应的周期向第三设备发送第二报文。可以看出,本申请实施例中针对第一端口的时域资源进行划分,同一个端口的两个周期的时域资源可以有重叠,从而可以提高第一端口上报文的传输速度。第一端口可以为一个物理端口,也可以为多个物理端口绑定的一个逻辑端口。In the above S502, the first device determines the third period label corresponding to the first period label, and may send the first packet to the third device through the first port in the period corresponding to the third period label. In the above S503, the first device determines the fourth periodic label corresponding to the second periodic label, and may send the second packet to the third device through the first port at the period corresponding to the fourth periodic label. It can be seen that in the embodiment of the present application, the time domain resources of the first port are divided, and the time domain resources of two periods of the same port may overlap, so that the transmission speed of the message on the first port can be improved. The first port may be a physical port, or a logical port bound to multiple physical ports.
本申请实施例中可以采用周期标签交换的转发架构,支持设备的出接口的周期设置不同的时长。第三周期标签和第四周期标签对应的周期的时长为第一时长,也可以说第一设备的第一端口对应的周期时长为第一时长。第一周期标签和第二周期标签对应的周期的时长为第二时长,也可以说第二设备的用于发送第一报文和第二报文的端口对应的周期时长为第二时长。In this embodiment of the present application, a periodic label switching forwarding architecture may be adopted to support the setting of different durations for the period of the outbound interface of the device. The duration of the period corresponding to the third period label and the fourth period label is the first period, and it can also be said that the period corresponding to the first port of the first device is the first period. The duration of the period corresponding to the first period label and the second period label is the second period. It can also be said that the period corresponding to the port of the second device for sending the first message and the second message is the second period.
第一时长可以与第二时长相等,也可以不相等。比如,第一时长可以小于第二时长,第一时长也可以等于第二时长。一种可能的实施方式中,第一时长小于或等于第二时长的情况下,为了提高数据的传输时延,第一周期标签对应的周期和第二周期标签对应的周期的时域资源可以是通过对第二设备的同一个时域资源进行划分得到的,且该两个周期的时域资源可以有重叠。即第二设备上第二周期标签对应的周期的起始时刻可以位于第一周期标签对应的周期的起始时刻之后,且位于第一周期标签对应的周期的截止时刻之前。The first duration may or may not be equal to the second duration. For example, the first duration may be less than the second duration, and the first duration may also be equal to the second duration. In a possible implementation manner, when the first duration is less than or equal to the second duration, in order to improve the data transmission delay, the time domain resources of the period corresponding to the first period label and the period corresponding to the second period label may be It is obtained by dividing the same time domain resource of the second device, and the time domain resources of the two periods may overlap. That is, the start time of the period corresponding to the second period label on the second device may be after the start time of the period corresponding to the first period label, and before the end time of the period corresponding to the first period label.
再比如,第一时长也可以大于第二时长。一种可能的实施方式中,为了提高数据的传输时延,第一周期标签对应的周期和第二周期标签对应的周期的时域资源可以有重叠。即第二设备上第二周期标签对应的周期的起始时刻可以位于第一周期标签对应的周期的起始时刻之后,且位于第一周期标签对应的周期的截止时刻之前。For another example, the first duration may also be greater than the second duration. In a possible implementation manner, in order to increase the data transmission delay, the time domain resources of the period corresponding to the first period label and the period corresponding to the second period label may overlap. That is, the start time of the period corresponding to the second period label on the second device may be after the start time of the period corresponding to the first period label, and before the end time of the period corresponding to the first period label.
又一种可能的实施方式中,第二设备上该两个周期的时域资源无重叠,且第二设备上用于发送第一报文和第二报文的端口的相邻的两个周期的时域资源无重叠。比如第一周期标签对应的周期和第二周期标签对应的周期为两个相邻的周期,则第二设备上第二周期标签对应的周期的起始时刻与第一周期标签对应的周期的截止时刻相同,或位于第一周期标签对应的周期的截止时刻之后。In another possible implementation manner, the time domain resources of the two periods on the second device do not overlap, and the two adjacent periods of the port used to send the first message and the second message on the second device The time-domain resources of have no overlap. For example, the period corresponding to the first period label and the period corresponding to the second period label are two adjacent periods, then the start time of the period corresponding to the second period label on the second device and the end of the period corresponding to the first period label The time is the same, or it is after the cut-off time of the period corresponding to the first period label.
图6示例性示出了图5提供的报文传输方法的一种可能的示例的示意图,为了更容易理解,下面结合图6对图5的方案进行介绍。FIG. 6 exemplarily shows a schematic diagram of a possible example of the packet transmission method provided in FIG. 5 . For easier understanding, the solution in FIG. 5 will be introduced below in conjunction with FIG. 6 .
如图6所示,以第二设备为图2中的设备Rn-1,第一设备为图2中的设备Rn进行示意。第一设备划分的一个周期的时长大于第二设备划分的一个周期的时长,图6中通过第一设备的一个周期的长度长于第二设备的一个周期的长度进行示意。As shown in FIG. 6 , the second device is the device Rn-1 in FIG. 2 , and the first device is the device Rn in FIG. 2 for illustration. The duration of one cycle divided by the first device is longer than the duration of one cycle divided by the second device, which is illustrated by the fact that the length of one cycle of the first device is longer than the length of one cycle of the second device in FIG. 6 .
本申请实施例中第二设备也可以采用上述图5中第一设备侧的方案来确定第二设备接收到的报文在第二设备上的发送周期,这种情况下,第二设备的上游设备可以执行图5中第二设备侧的方案,第二设备可以执行上述图5中第一设备侧的方案,而第二设备的下游设备可以执行上述图5中的第三设备侧的方案。当然,第二设备也可以用其他方案比如前述图3和图4中所示的方法来确定第二设备接收到的报文在第二设备上的发送周期,本申请实施例对此不做限制。In the embodiment of the present application, the second device can also use the scheme on the first device side in Figure 5 above to determine the sending period of the message received by the second device on the second device. In this case, the upstream of the second device The device can implement the solution on the second device side in FIG. 5 , the second device can implement the solution on the first device side in FIG. 5 , and the downstream device of the second device can implement the solution on the third device side in FIG. 5 . Of course, the second device can also use other schemes such as the methods shown in Figure 3 and Figure 4 to determine the sending period of the message received by the second device on the second device, which is not limited in the embodiment of this application .
图6中是以第二设备的各个周期是串行传输为例进行示意的,即以第二设备上的用于发送第一报文和第二报文的端口的相邻周期的时域资源无重叠为例进行展示。图6中第二设备上两个周期的时域资源没有重叠。也可以理解为相邻的两个周期中,其中一个周期的起始时刻为另一个周期的结束时刻,或位于另一个周期的结束时刻之后。当然本申请实施例中第二设备侧的两个周期的时域资源也可以有重叠,本申请实施例对此不做限制。In Fig. 6, each period of the second device is serially transmitted as an example, that is, the time domain resource of the adjacent period of the port on the second device used to send the first message and the second message No overlap is shown as an example. In FIG. 6 , the time domain resources of the two periods on the second device do not overlap. It can also be understood that in two adjacent periods, the start moment of one period is the end moment of the other period, or is located after the end moment of the other period. Of course, in the embodiment of the present application, the time domain resources of the two periods on the second device side may also overlap, which is not limited in the embodiment of the present application.
如图6所示,第一报文可以为报文a1,第二报文可以为报文a2,第一周期标签为T1,第一周期标签对应的周期可以称为T1周期,第二周期标签为T2,第二周期标签对应的周期可以称为T2周期,第三周期标签为T3,第三周期标签对应的周期可以称为T3周期,第四周期标签为T4,第四周期标签对应的周期可以称为T4周期。As shown in Figure 6, the first message can be message a1, the second message can be message a2, the first period label is T1, the period corresponding to the first period label can be called T1 period, and the second period label is T2, the period corresponding to the second period label can be called T2 period, the third period label is T3, the period corresponding to the third period label can be called T3 period, the fourth period label is T4, and the period corresponding to the fourth period label Can be called T4 cycle.
第二设备在T1周期(第一周期标签对应的周期)发送报文a1(第一报文)。第一设备接收到报文a1,确定报文a1中携带的周期标签为T1,根据周期映射关系,确定第二设备的T1(第一周期标签)映射至第一设备的T3(第三周期标签)。之后第一设备在T3周期发送报文a1(第一报文),比如向第三设备发送该第一报文。可选地,第一设备发出的第一报文中可以携带第三周期标签,也可以不携带第三周期标签,本申请实施例对此不做限制,图6中为了方便理解,以第一设备发出的第一报文携带第三周期标签为例进行示意。The second device sends the packet a1 (the first packet) in the period T1 (period corresponding to the first period label). The first device receives the message a1, determines that the period label carried in the message a1 is T1, and determines that the T1 (first period label) of the second device is mapped to the T3 (third period label) of the first device according to the period mapping relationship. ). Afterwards, the first device sends a message a1 (first message) in a T3 period, for example, sends the first message to a third device. Optionally, the first packet sent by the first device may or may not carry the third period label, which is not limited in this embodiment of the present application. For the convenience of understanding, in FIG. 6 , the first The first packet sent by the device carries the third periodic label as an example for illustration.
类似的,第二设备在T2周期(第二周期标签对应的周期)发送报文a2(第二报文)。第一设备接收到报文a2,确定报文a2中携带的周期标签为T2,第一设备根据周期映射关系,确定第二设备的T2(第二周期标签)映射至第一设备的T4(第四周期标签),之后第一设备在T4周期发送报文a2(第二报文),比如向第三设备发送该报文a2。可选地,第一设备发出的第二报文中可以携带第四周期标签,也可以不携带第四周期标签,本申请实施例对此不做限制,图6中为了方便理解,以第一设备发出的第二报文携带第四周期标签为例进行示意。Similarly, the second device sends the message a2 (the second message) in the period T2 (period corresponding to the second period label). The first device receives the message a2, and determines that the period label carried in the message a2 is T2, and the first device determines that the T2 (second period label) of the second device is mapped to the T4 (the second period label) of the first device according to the period mapping relationship. four-period label), and then the first device sends the message a2 (second message) in the T4 cycle, for example, sends the message a2 to the third device. Optionally, the second message sent by the first device may or may not carry the fourth period label, which is not limited in this embodiment of the present application. For the convenience of understanding, the first The second packet sent by the device carries the fourth cycle label as an example for illustration.
从图6中可以看出,第四周期标签对应的周期(第一设备的T4周期)的起始时刻位于第三周期标签对应的周期的起始时刻和结束时刻之间,即第三周期标签对应的周期的时域资源与第四周期标签对应的周期的时域资源有重叠。需要说明的是,图6中所示的是对第一设备的同一个端口(为了介绍方便,将该端口称为第一端口)的时域资源进行划分的示意图,本申请实施例中也可以理解为通过对第一端口的时域资源划分得到第三周期标签对应的周期和第四周期标签对应的周期,且第三周期标签对应的周期的时域资源与第四周期标签对应的周期的时域资源有重叠。It can be seen from Figure 6 that the start time of the period corresponding to the fourth period label (the T4 period of the first device) is between the start time and the end time of the period corresponding to the third period label, that is, the third period label The time domain resources of the corresponding period overlap with the time domain resources of the period corresponding to the fourth period label. It should be noted that what is shown in FIG. 6 is a schematic diagram of dividing the time-domain resources of the same port of the first device (for convenience of introduction, the port is referred to as the first port). It is understood that the period corresponding to the third period label and the period corresponding to the fourth period label are obtained by dividing the time domain resource of the first port, and the time domain resource of the period corresponding to the third period label is equal to the period corresponding to the fourth period label Time domain resources overlap.
另一方面,若第一设备有多个端口,则针对其他端口也可以执行图6所示的方案,即对其他端口也可以进行时域资源的划分,时域资源划分方法也可以与图6所示的时域资源划分方法相同,也可以不同,本申请实施例不做限制。On the other hand, if the first device has multiple ports, the scheme shown in Figure 6 can also be implemented for other ports, that is, the time domain resources can also be divided for other ports, and the time domain resource division method can also be the same as that shown in Figure 6 The shown time domain resource division methods are the same or different, which are not limited in this embodiment of the present application.
从图6可以看出,第一设备上划分的周期时长(即第一时长)可以大于第二设备上划分的周期时长(第二时长),因此,即使在第一设备的出接口速率较低的场景下,也可以通过增加第一设备的周期的时长的方式增大第一设备的MTU,以满足业务的MTU要求。It can be seen from Figure 6 that the cycle duration (namely the first duration) divided on the first device can be greater than the cycle duration (second duration) divided on the second device, therefore, even if the outbound interface rate of the first device is low In a scenario, the MTU of the first device may also be increased by increasing the cycle duration of the first device to meet the MTU requirement of the service.
进一步,若对各个周期采用串行方法进行传输,则会导致报文传输时延比较大。若再加上为了提高第一设备的MTU而提高了第一设备上划分的周期时长,则会导致报文传输时延更大。比如图6中T4周期的起始时刻位于T3周期的结束时刻或位于T3周期的结束时刻之后,即第一设备在T3周期的结束时刻才开始对T4周期内映射的报文进行传输,如此,T4周期内应发送的第二报文的时延较大。针对该问题,本申请实施例中采用并行传输多个周期的报文的方案,即第四周期标签对应的周期并不是在第三周期标签对应的周期结束之后才开始的,而是在第三周期标签对应的周期还未结束之前就开始了,即在T3周期并未结束之前,T4周期的报文就可以进行传输,如此可以缩短T4周期上的第二报文的传输时延。Further, if a serial method is used for transmission of each cycle, it will result in a relatively long delay in message transmission. In addition, in order to increase the MTU of the first device, the cycle duration divided on the first device is increased, which will result in a longer packet transmission delay. For example, in FIG. 6 , the start time of the T4 cycle is located at or after the end time of the T3 cycle, that is, the first device does not start transmitting the packets mapped in the T4 cycle until the end time of the T3 cycle. In this way, The delay of the second message that should be sent within the T4 period is relatively large. To solve this problem, the embodiment of this application adopts the scheme of transmitting messages of multiple periods in parallel, that is, the period corresponding to the label of the fourth period does not start after the period corresponding to the label of the third period ends, but starts after the period corresponding to the label of the third period ends. The cycle corresponding to the cycle label starts before the end, that is, the message of the T4 cycle can be transmitted before the end of the T3 cycle, so that the transmission delay of the second message in the T4 cycle can be shortened.
而且,在实际应用中会存在一种场景,比如上述图2中的设备Rn和接收设备之间传输的报文的频率比较低,如此在第一设备的各个周期上映射的报文是比较稀疏的。这种情况下,当在设备Rn上应用图5或图6提供的方案时,虽然第一设备的第一端口的多个周期之间可以有重叠的时域资源(即多个周期对应的总时域资源相对串行方案来说相对会减少),也可以满足第一设备的第一端口发送该多个周期对应的报文所需的时域资源。Moreover, there will be a scenario in practical applications. For example, the frequency of packets transmitted between the device Rn and the receiving device in FIG. 2 is relatively low, so the packets mapped on each period of the first device are relatively sparse. of. In this case, when the scheme provided in FIG. 5 or FIG. 6 is applied on the device Rn, although there may be overlapping time domain resources between the multiple periods of the first port of the first device (that is, the total number of periods corresponding to the multiple periods Compared with the serial solution, the time domain resources will be relatively reduced), and the time domain resources required by the first port of the first device to send the packets corresponding to the multiple periods can also be satisfied.
本申请实施例中,第四周期标签对应的周期的起始时刻与第三周期标签对应的周期的起始时刻之间间隔时长可以为一个预设的值。为了容易区分,第四周期标签对应的周期的起始时刻与第三周期标签对应的周期的起始时刻之间间隔时长可以称为第三时长,第二周期标签对应的周期的起始时刻与第一周期标签对应的周期的起始时刻之间间隔的时长可以称为第四时长。In the embodiment of the present application, the interval between the start moment of the period corresponding to the fourth period label and the start moment of the period corresponding to the third period label may be a preset value. For easy distinction, the interval between the start moment of the cycle corresponding to the fourth cycle label and the start moment of the cycle corresponding to the third cycle label can be called the third duration, and the start moment of the cycle corresponding to the second cycle label is the same as The duration of the interval between the start moments of the periods corresponding to the first period label may be referred to as a fourth duration.
一种可能的实施方式中,该第三时长可以根据第一设备上发送报文的负荷量等参数进行设置,比如发送报文的负荷量较大,则也可以将该第三时长设置的大一些,如此不同周期之间重叠的时域资源减少,多个周期对应的总时域资源增多,从而可以适当减缓报文的拥塞问题。In a possible implementation manner, the third duration can be set according to parameters such as the load of the message sent on the first device. For example, if the load of the message sent is relatively large, the third duration can also be set to a large Some, in this way, the overlapping time domain resources between different periods are reduced, and the total time domain resources corresponding to multiple periods are increased, so that the packet congestion problem can be appropriately alleviated.
再比如,比如发送报文的负荷量较小,则也可以将该第三时长设置的小一些,如此不同周期之间重叠的时域资源增多,多个周期对应的总时域资源减小,从而可以适当缩短报文传输时延。For another example, if the load of sending messages is small, the third duration can also be set smaller, so that the overlapping time domain resources between different cycles increase, and the total time domain resources corresponding to multiple cycles decrease. Therefore, the message transmission delay can be appropriately shortened.
又一种可能的实施方式中,第三时长等于:第二周期标签对应的周期的起始时刻与第一周期标签对应的周期的起始时刻之间间隔的第四时长。如此第一设备和第二设备上虽然每个周期持续时长不同,但是第一设备和第二设备上相邻两个周期的起始时刻相同,如此,可以更容易构造周期标签之间的循环映射关系,从而可以减少周期标签转换带来的计算量,进一步可以减少时延的抖动。In yet another possible implementation manner, the third duration is equal to: a fourth duration between the start moment of the period corresponding to the second period label and the start moment of the period corresponding to the first period label. In this way, although the duration of each cycle is different on the first device and the second device, the start times of two adjacent cycles on the first device and the second device are the same, so that it is easier to construct a cycle mapping between cycle tags relationship, which can reduce the amount of calculation caused by periodic label conversion, and further reduce the delay jitter.
比如,第二设备上串行发送每个周期的报文,即如图6所示,第二设备的同一个端口的相邻的两个周期的时域资源没有重叠,比如第二设备上每隔第二时长到达一个周期的起始时刻。若第一周期标签对应的周期与第二周期标签对应的周期相邻,且该两个周期的起始时刻之间间隔的时长为第二时长,即第四时长等于第二时长,则第三时长等于第二时长。For example, the second device transmits the packets of each period serially, that is, as shown in Figure 6, the time domain resources of two adjacent periods of the same port of the second device do not overlap. The start moment of a cycle is reached after the second time length. If the period corresponding to the first period label is adjacent to the period corresponding to the second period label, and the interval between the start times of the two periods is the second period, that is, the fourth period is equal to the second period, then the third The duration is equal to the second duration.
第一时长和第二时长之间的关系可以是倍数关系,也可以不是。一种可能的实施方式中,为了使方案更加简洁,可以设置第一时长为第二时长的整数倍。设置第一时长和第二时长时可以根据一些参数进行设置,比如可以根据设备的出接口传输速率、需满足的MTU、缓存容量等等。The relationship between the first duration and the second duration may be a multiple or not. In a possible implementation manner, in order to make the solution more concise, the first duration may be set to be an integer multiple of the second duration. When setting the first duration and the second duration, you can set it according to some parameters, such as the transmission rate of the outgoing interface of the device, the MTU that needs to be met, the buffer capacity, and so on.
关于第一设备的周期标签(比如第三周期标签或第四周期标签)的取值范围对应的取值总数量可以根据:第一设备的一个周期的第一时长以及第一设备的相邻两个周期的起始时刻之间间隔的第五时长来确定。第一设备的周期标签的取值范围对应的取值总数量至少为大于第一时长与第五时长的比值的整数。如此,第一设备的周期标签才可以在其对应的取值范围内进行循环。The total number of values corresponding to the value range of the period label (such as the third period label or the fourth period label) of the first device can be based on: the first duration of one period of the first device and the two adjacent periods of the first device is determined by the fifth duration of the interval between the start moments of the period. The total number of values corresponding to the value range of the period tag of the first device is at least an integer greater than the ratio of the first duration to the fifth duration. In this way, the cycle label of the first device can be cycled within its corresponding value range.
第三周期标签的取值范围对应的取值总数量可以表示为(Ny+1),(Ny+1)=R+C;R为第一时长与第五时长的比值,C为正整数,Ny为整数。第一设备的周期标签对应的取值范围可以为[0,Ny]。如此,第一设备的周期标签才可以在其对应的取值范围内进行循环。The total number of values corresponding to the value range of the third period label can be expressed as (Ny+1), (Ny+1)=R+C; R is the ratio of the first duration to the fifth duration, and C is a positive integer. Ny is an integer. A value range corresponding to the period label of the first device may be [0, Ny]. In this way, the cycle label of the first device can be cycled within its corresponding value range.
当第一周期标签对应的周期和第二周期标签对应的周期为相邻的周期,且第一周期标签对应的周期和第二周期标签对应的周期的两个起始时刻之间间隔第二时长;第三周期标签对应的周期和第四周期标签对应的周期为相邻的周期,则:第五时长为前述第四时长,且第五时长为第二时长。这种情况下,第一设备的周期标签的取值范围对应的取值总数量可以为比第一时长与第二时长的比值大的数。When the period corresponding to the first period label and the period corresponding to the second period label are adjacent periods, and the interval between the two start times of the period corresponding to the first period label and the period corresponding to the second period label is the second duration ; The period corresponding to the third period label and the period corresponding to the fourth period label are adjacent periods, then: the fifth duration is the aforementioned fourth duration, and the fifth duration is the second duration. In this case, the total number of values corresponding to the value range of the period label of the first device may be a number greater than the ratio of the first duration to the second duration.
结合图6举个例子,比如图6中第一设备的一个周期为12.5微秒(即第一时长为12.5微秒),第二设备的一个周期为5微秒(即第五时长等于第二时长,第二时长为2.5微秒),R为5。这种情况下(Ny+1)需要为比5大的整数,比如为6、7或8。而若(Ny+1)=4,Ny取值为3,即第一设备的周期标签仅能在[0,3]之间循环,但是由于T0持续的时长为12.5微秒,而相邻的两个T0之间的时长仅为4个2.5微秒(由于两个相邻T0之间间隔4个周期,且相邻两个周期的起始时刻之间间隔2.5微秒),即10微秒,即在上一个T0周期还未结束时,下一个T0周期就又到了起始时刻,显然这是不合理的。因此,为了使第一设备的周期标签可以在[0,Ny]内循环取值,Ny需为大于R的整数。Take an example in conjunction with Fig. 6, for example, one cycle of the first device in Fig. 6 is 12.5 microseconds (that is, the first duration is 12.5 microseconds), and one cycle of the second device is 5 microseconds (that is, the fifth duration is equal to the second duration, the second duration is 2.5 microseconds), and R is 5. In this case (Ny+1) needs to be an integer greater than 5, such as 6, 7 or 8. And if (Ny+1)=4, Ny takes a value of 3, that is, the cycle label of the first device can only cycle between [0, 3], but because the duration of T0 is 12.5 microseconds, and the adjacent The duration between two T0s is only 4 2.5 microseconds (because there are 4 cycles between two adjacent T0s, and the interval between the starting moments of two adjacent cycles is 2.5 microseconds), that is, 10 microseconds , that is, before the end of the previous T0 cycle, the next T0 cycle has reached the beginning moment, which is obviously unreasonable. Therefore, in order to enable the period label of the first device to take values cyclically within [0, Ny], Ny needs to be an integer greater than R.
另一方面关于C的设置可以根据经验设置,也可以根据多种参数设置,比如可以根据网络设备的内部处理报文的抖动,以及第一设备的第一端口的周期时长等。比如内部处理报文的抖动越大,则C的值可以设置的越大一些。再比如,第一端口的周期时长越长,则C的值可以设置的越小一些。在图6中以R为5,C为3,Ny为7为例进行示意。On the other hand, the setting of C can be set according to experience, or can be set according to various parameters, for example, according to the jitter of internal processing packets of the network device, and the period length of the first port of the first device, etc. For example, the greater the jitter of internally processed packets, the greater the value of C can be set. For another example, the longer the period of the first port is, the smaller the value of C can be set. In FIG. 6 , R is 5, C is 3, and Ny is 7 as an example for illustration.
也可以理解为第一设备上设置有(Ny+1)个队列,可以理解为存在(Ny+1)个门控,(Ny+1)个门控采用流水线调度,每隔第二时长依次打开一个门控,且每个门控持续打开的时长为第一时长。且在同一个时刻内,同时有R个队列的门控处于开启状态,即该R个队列上的数据处于发送状态,该R个队列还可以称为发队列;同时还有C个队列的门控处于关闭状态,即该C个队列处于接收数据状态,该C个队列也可以称为入队列或者收队列。It can also be understood that there are (Ny+1) queues set on the first device, and it can be understood that there are (Ny+1) gates, and the (Ny+1) gates are scheduled by the pipeline and opened every second time. One gate, and the duration of each gate being open is the first duration. And at the same time, the gates of R queues are open at the same time, that is, the data on the R queues is in the sending state, and the R queues can also be called sending queues; at the same time, there are gates of C queues. The control is in the closed state, that is, the C queues are in the state of receiving data, and the C queues can also be called entering queues or receiving queues.
结合上述图4举个例子,若第一设备和第二设备均采用第一时长作为周期时长,则如图4所示,报文的时延L最大可以写为(A+第一时长+Lmax+第一时长(B最大可以取值为第一时长))。若采用图5所示的方案,即第一设备采用第一时长作为周期时长,第二设备采用第二时长,则报文的时延L最大可以写为(A+第二时长+Lmax+第二时长(B最大可以取值为第二时长))。则两个方案中报文的时延的差值可以为2*(第一时长-第二时长),其中*表示乘,可以看出,采用图5所示的方案相比设备均采用较长的时长作为周期,可以节省时延。Combined with the above-mentioned Figure 4 as an example, if both the first device and the second device use the first duration as the cycle duration, as shown in Figure 4, the maximum delay L of the message can be written as (A+first duration+Lmax+th One duration (the maximum value of B can be the first duration)). If the scheme shown in Figure 5 is adopted, that is, the first device uses the first duration as the cycle duration, and the second device adopts the second duration, then the maximum packet delay L can be written as (A+second duration+Lmax+second duration (The maximum value of B can be the second duration)). Then the difference of the time delay of the message in the two schemes can be 2*(the first duration-the second duration), wherein * means multiplication, it can be seen that the scheme shown in Figure 5 is adopted compared with the equipment using a longer The length of time is used as the cycle, which can save time delay.
上述S502和S503中,第一设备确定接收到的携带周期标签的报文对应的发送周期的方式有多种,比如一种可能的实施方式中,第一设备可以根据接收到来自第二设备的报文的接收时刻、预设处理时长,该报文中携带的周期标签以及上述图4提供的相关方案,计算出该报文在第一设备对应的发送周期。In the above S502 and S503, there are many ways for the first device to determine the sending cycle corresponding to the received message carrying the cycle tag. For example, in a possible implementation, the first device may The receiving time of the message, the preset processing time, the period label carried in the message and the related solution provided in the above-mentioned FIG. 4 calculate the corresponding sending period of the message in the first device.
又一种可能的实施方式中,可以将第二设备的周期标签(比如第一周期标签和/或第二周期标签)的取值范围写为[0,Nx],第二设备的周期标签的取值范围对应的取值总数量为(Nx+1)。为了区分可以将第二设备的周期标签的取值范围对应的取值总数量称为第一数量。In yet another possible implementation manner, the value range of the period label of the second device (such as the first period label and/or the second period label) can be written as [0, Nx], and the value range of the period label of the second device The total number of values corresponding to the value range is (Nx+1). In order to distinguish, the total number of values corresponding to the value range of the period label of the second device may be called the first number.
可以将第一设备的周期标签(比如第三周期标签和/或第四周期标签)的取值范围写为[0,Ny],第一设备的周期标签的取值范围对应的取值总数量为(Ny+1)。为了区分可以将第一设备的周期标签的取值范围对应的取值总数量称为第三数量。The value range of the period label of the first device (such as the third period label and/or the fourth period label) can be written as [0, Ny], the total number of values corresponding to the value range of the period label of the first device is (Ny+1). In order to distinguish, the total quantity of values corresponding to the value range of the period label of the first device may be called the third quantity.
在具体实施中,可能会存在一种情况,(Nx+1)小于(Ny+1),比如,(Nx+1)为4,(Ny+1)为8,第二设备的出接口的周期标签在[0,3]内循环,第一设备的出接口的周期标签在[0,7]内循环。若采用上述图4所示的方案以及上述公式(2)计算出第二设备的周期标签与第一设备的周期标签之间对应的delata=0,比如第二设备的一个T0对应到第一设备的T0。但是若后续第二设备的周期标签依据公式(3)和计算出的delata进行计算则会出现问题:当第二设备的一个T0根据上述图4所示的方案映射至第一设备的T0之后,若根据计算出的delata和上述公式(3)计算出接下来的第二设备的下一个T0也会映射至第一设备的下一个T0。然而,若根据上述图4所示的方案,则第二设备的该下一个T0可能会映射至第一设备的T4。可见,该两种方式计算出的第二设备的同一个T0可能会映射至T0,也有可能会映射至T4,映射结果出现错误。可见,若直接通过上述图4所示的方案,以及上述公式(2)和公式(3)所示的方案,会导致第二设备的周期标签映射至第一设备的周期标签时出现错误。In a specific implementation, there may be a situation where (Nx+1) is smaller than (Ny+1), for example, (Nx+1) is 4, (Ny+1) is 8, and the period of the outgoing interface of the second device The label circulates within [0, 3], and the periodic label of the outgoing interface of the first device circulates within [0, 7]. If the scheme shown in Figure 4 above and the above formula (2) are used to calculate the corresponding delata=0 between the cycle label of the second device and the cycle label of the first device, for example, a T0 of the second device corresponds to the first device T0. However, if the periodic label of the second device is calculated according to the formula (3) and the calculated delta, there will be a problem: when a T0 of the second device is mapped to the T0 of the first device according to the scheme shown in Figure 4 above, If it is calculated according to the calculated delata and the above formula (3), the next T0 of the next second device will also be mapped to the next T0 of the first device. However, according to the solution shown in FIG. 4 above, the next T0 of the second device may be mapped to T4 of the first device. It can be seen that the same T0 of the second device calculated by the two methods may be mapped to T0, or may be mapped to T4, and the mapping result is wrong. It can be seen that if the scheme shown in FIG. 4 above and the schemes shown in formula (2) and formula (3) above are used directly, an error will occur when the period label of the second device is mapped to the period label of the first device.
针对(Nx+1)小于(Ny+1)的场景,本申请实施例还可以提供一种方案,该方案中可以设置一个逻辑周期标签(比如第五周期标签和第六周期标签),第一设备可以先将第二设备发送的报文中携带的周期标签映射为逻辑周期标签,之后再将报文的逻辑周期标签映射为第一设备的发送周期的周期标签。该逻辑周期标签的取值范围写为[0,Nz],即该第五周期标签和第六周期标签的取值范围对应的取值总数量为(Nz+1)。为了区分可以将第五周期标签的取值范围对应的取值总数量称为第二数量。For the scenario where (Nx+1) is smaller than (Ny+1), the embodiment of the present application can also provide a solution, in which a logical period label (such as the fifth period label and the sixth period label) can be set, the first The device may first map the period label carried in the message sent by the second device to a logical period label, and then map the logical period label of the message to the period label of the sending period of the first device. The value range of the logical period label is written as [0, Nz], that is, the total number of values corresponding to the value ranges of the fifth period label and the sixth period label is (Nz+1). In order to distinguish, the total number of values corresponding to the value range of the fifth period label may be called the second number.
一种可能的实施方式中,第二数量为第一数量和第三数量的公倍数,比如可以为最小公倍数。(Nz+1)为(Nx+1)和(Ny+1)的公倍数。举个例子,比如Nx设置为3,Ny为7。则Nz可以取值为7、15等,本申请实施例中以Nz为7举例。In a possible implementation manner, the second number is a common multiple of the first number and the third number, such as a least common multiple. (Nz+1) is a common multiple of (Nx+1) and (Ny+1). For example, let's say Nx is set to 3 and Ny is set to 7. Then Nz can take a value of 7, 15, etc. In the embodiment of the present application, Nz is 7 as an example.
上述S502中,第一设备确定第一周期标签对应的第五周期标签,之后第一设备确定第五周期标签对应的第三周期标签。上述S503中,第一设备确定第二周期标签对应的第六周期标签,之后第一设备确定第六周期标签对应的第四周期标签。In the above S502, the first device determines the fifth period label corresponding to the first period label, and then the first device determines the third period label corresponding to the fifth period label. In the above S503, the first device determines the sixth period label corresponding to the second period label, and then the first device determines the fourth period label corresponding to the sixth period label.
图7示例性示出了一种第二设备向第一设备传输数据的结构示意图,如图7所示,第一设备接收到第二设备发送的报文后,可以先进行第一次周期映射,将报文携带的周期标签映射至逻辑周期标签。比如可以设置一个计数器,收到一个周期标签后,计数器自动累加,直至计数器计数达到逻辑周期标签的最大取值后,自动清零,重新计数。计数器的值可以指示当前收到的来自第二设备的报文携带的周期标签对应的逻辑周期标签。Fig. 7 exemplarily shows a schematic diagram of the structure of a second device transmitting data to the first device. As shown in Fig. 7, after the first device receives the message sent by the second device, it can first perform the first period mapping , to map the period label carried in the packet to the logical period label. For example, a counter can be set. After receiving a period label, the counter will automatically accumulate until the counter count reaches the maximum value of the logical period label, then it will be automatically cleared and count again. The value of the counter may indicate a logical period label corresponding to the period label carried in the currently received packet from the second device.
举个例子,第一设备接收到来自第二设备的报文,报文携带周期标签T0,计数器启动,计数为1,对应的逻辑周期标签为T0(也可以为T1、T2等,可以预先设置计数器为1所对应的逻辑周期标签);第一设备接收到来自第二设备的报文,报文携带周期标签T1,计数器的计数变更为2,对应的逻辑周期标签为T1;以此类推…第一设备接收到来自第二设备的报文,报文携带周期标签T0,计数器的计数变更为5,对应的逻辑周期标签为T4;第一设备接收到来自第二设备的报文,报文携带周期标签T1,计数器的计数变更为6,对应的逻辑周期标签为T5;以此类推…第一设备接收到来自第二设备的报文,报文携带周期标签T3,计数器的计数变更为8,对应的逻辑周期标签为T7;计数器清零;接下来,第一设备接收到来自第二设备的报文,报文携带周期标签T0,计数器重新开始计数,计数为1,对应的逻辑周期标签为T0…。For example, when the first device receives a message from the second device, the message carries a period label T0, the counter starts, the count is 1, and the corresponding logical period label is T0 (it can also be T1, T2, etc., which can be set in advance The logical period label corresponding to the counter is 1); the first device receives the message from the second device, the message carries the period label T1, the count of the counter is changed to 2, and the corresponding logical period label is T1; and so on... The first device receives a message from the second device, the message carries a period label T0, the count of the counter is changed to 5, and the corresponding logical period label is T4; the first device receives a message from the second device, the message Carrying period label T1, the count of the counter is changed to 6, and the corresponding logical period label is T5; and so on...the first device receives a message from the second device, the message carries period label T3, and the count of the counter is changed to 8 , the corresponding logical period label is T7; the counter is cleared; next, the first device receives a message from the second device, the message carries the period label T0, the counter starts counting again, and the count is 1, and the corresponding logical period label for T0....
如图7所示,第一设备可以进行第二次周期映射,将报文对应的逻辑周期标签映射至第一设备的发送周期,即确定接收到的来自第二设备的报文对应的逻辑周期标签对应的发送周期的周期标签,并在该周期标签对应的周期发送该报文。第一设备将报文的逻辑周期标签映射至第一设备的发送周期的过程可以采用上述图4所示的方案以及上述公式(2)和公式(3)区别为,在计算过程中不再使用第二设备的报文中携带的周期标签计算该报文在第一设备的发送周期的周期标签,而是使用第二设备发送的报文所对应的逻辑周期标签计算该报文在第一设备的发送周期的周期标签,即上述公式(2)中Tx替换为Tz,Tz为上游设备的出接口发送报文的周期标签对应的逻辑周期标签;上述公式(3)中Tx’替换为Tz’,Tz’为上游设备的出接口发送报文的周期标签对应的逻辑周期标签。As shown in Figure 7, the first device can perform the second period mapping, mapping the logical period label corresponding to the message to the sending period of the first device, that is, to determine the logical period corresponding to the received message from the second device The period label of the sending period corresponding to the label, and the message is sent in the period corresponding to the period label. The process of the first device mapping the logical period label of the message to the sending period of the first device can adopt the scheme shown in Figure 4 above and the difference between the above formula (2) and formula (3), which is no longer used in the calculation process The period label carried in the message of the second device is used to calculate the period label of the message in the sending period of the first device, but the logical period label corresponding to the message sent by the second device is used to calculate the period label of the message in the first device The period label of the sending period, that is, in the above formula (2), Tx is replaced by Tz, and Tz is the logical period label corresponding to the period label of the packet sent by the outgoing interface of the upstream device; in the above formula (3), Tx' is replaced by Tz' , Tz' is the logical period label corresponding to the period label of the packet sent by the outgoing interface of the upstream device.
需要注意的是,第一设备将接收到的报文的逻辑周期标签映射至第一设备的发送周期,可以先通过图4所示的方案进行周期映射关系的学习。周期映射关系的学习可以通过很多条件进行触发,比如可以在第二设备向第一设备发送的报文中携带用于指示第一设备学习周期映射关系的指示信息,该指示信息比如可以携带在网际协议版本4(InternetProtocol version 4,IPv4)、网际协议版本6(Internet Protocol version 6,IPv6)IPv4的差分服务代码点(Differential Services Codepoint,DSCP)字段,可选的,该报文中携带的周期标签也可以为DSCP字段。It should be noted that the first device maps the logical period label of the received message to the sending period of the first device, and the period mapping relationship may be learned through the solution shown in FIG. 4 . The learning of the periodic mapping relationship can be triggered by many conditions. For example, the message sent by the second device to the first device can carry indication information for instructing the first device to learn the periodic mapping relationship. Protocol version 4 (Internet Protocol version 4, IPv4), Internet Protocol version 6 (Internet Protocol version 6, IPv6) IPv4 differential services code point (Differential Services Codepoint, DSCP) field, optional, period label carried in the message It can also be a DSCP field.
举个例子,第一设备计算出第一报文(携带周期标签T1(第一周期标签))对应的逻辑周期标签为T1(第五周期标签),第一设备根据上图4所示的方案,根据第五周期标签、第一报文的接收时刻和预设处理时长,计算出该第一报文在第一设备的发送周期为T1(第三周期标签),则根据上述公式(2)计算出delta为0。之后第一设备根据上述公式(3)计算接收到的报文对应的逻辑周期标签在第一设备的发送周期,比如第一设备接收到的报文携带的周期标签为T1,其对应的逻辑周期标签为T5,则该报文根据上述公式(3)计算出的在第一设备的发送周期为T5。可以看出,当存在两个携带周期标签T1的报文,该两个报文对应的逻辑周期标签不同时,该两个报文在第一设备对应的发送周期也不同,从而可以避免周期标签映射过程出错。For example, the first device calculates that the logical period label corresponding to the first message (carrying period label T1 (first period label)) is T1 (fifth period label), and the first device uses the scheme shown in Figure 4 above , according to the fifth period label, the receiving time of the first message and the preset processing time, calculate the sending period of the first message in the first device as T1 (the third period label), then according to the above formula (2) The calculated delta is 0. Then the first device calculates the sending period of the logical period label corresponding to the received message in the first device according to the above formula (3). For example, the period label carried by the message received by the first device is T1, and its corresponding logical period If the tag is T5, then the sending period of the message calculated by the above formula (3) at the first device is T5. It can be seen that when there are two messages carrying the cycle tag T1, and the logical cycle tags corresponding to the two messages are different, the corresponding sending cycles of the two messages on the first device are also different, so that the cycle tag can be avoided. An error occurred during the mapping process.
需要说明的是,本申请实施例中的逻辑周期标签仅仅是为了将第二设备发送的报文携带的周期标签映射至第一设备的发送周期的中间转换用的周期标签,为了进行区分,将其命名为逻辑周期标签,其实质可以为周期标签、索引值或标识等。It should be noted that the logical period label in the embodiment of the present application is only for mapping the period label carried in the message sent by the second device to the period label used for the intermediate conversion of the sending period of the first device. In order to distinguish, the It is named as a logical period label, and its essence can be a period label, index value or identifier, etc.
在实际应用中,可能存在一些业务有特殊的需求,比如需保证该业务流的低时延,也可以称这些流为低时延流。In practical applications, there may be some services that have special requirements, such as the need to ensure low latency of the service flow, and these flows can also be called low-latency flows.
比如,可以预设一条或多条低时延抖动流的参数,若某条业务流的参数与至少一条低时延抖动流的参数匹配,则可以确定该条业务流为低时延流,即确定该业务流的时延需要尽可能的保障,以尽量避免其时延出现较大的偏差。For example, the parameters of one or more low-latency jitter flows can be preset. If the parameters of a certain service flow match the parameters of at least one low-latency jitter flow, it can be determined that the service flow is a low-latency jitter flow, that is, Determining the delay of the service flow needs to be guaranteed as much as possible, so as to avoid a large deviation in the delay as much as possible.
其中,预设低时延流的参数包括以下内容中的至少一项:周期标签;源地址;目标地址;或,优先级信息。Wherein, the parameters of the preset low-latency flow include at least one of the following: cycle label; source address; target address; or priority information.
其中,周期标签可以为第一设备上的某一个发送周期的周期标签。举个例子,比如预设低时延流的参数包括一个或多个逻辑周期标签,比如第六周期标签。这种场景下,第一设备可以确定第六周期标签对应的报文属于预设低时延流。Wherein, the period label may be a period label of a certain sending period on the first device. For example, the parameters of the preset low-latency flow include one or more logical cycle tags, such as the sixth cycle tag. In this scenario, the first device may determine that the packet corresponding to the sixth cycle tag belongs to a preset low-latency flow.
其中,源地址可以为源媒体访问控制(Medium Access Control,MAC)地址、源网际协议(internet protocol,IP)地址等等。目的地址也可以为目的MAC地址、目的IP地址等。优先级信息可以为虚拟局域网(Virtual Local Area Network,VLAN)优先级的信息。Wherein, the source address may be a source Media Access Control (Medium Access Control, MAC) address, a source Internet Protocol (internet protocol, IP) address, and the like. The destination address may also be a destination MAC address, a destination IP address, and the like. The priority information may be virtual local area network (Virtual Local Area Network, VLAN) priority information.
再比如,若预设低时延流的参数包括周期标签(比如为第六周期标签)、源地址、目标地址和优先级信息,则当第一设备确定一个报文分配的逻辑周期标签为第六周期标签,且该报文的源地址、目标地址和优先级信息与该预设低时延流中的源地址、目标地址和优先级信息匹配,或者说相同,则第一设备可以确定该报文属于预设低时延流。For another example, if the parameters of the preset low-latency flow include a cycle label (for example, the sixth cycle label), source address, destination address, and priority information, then when the first device determines that the logical cycle label assigned to a packet is the sixth cycle label Six-period label, and the source address, destination address and priority information of the message match or are the same as the source address, destination address and priority information in the preset low-latency flow, then the first device can determine the The packet belongs to the preset low-latency flow.
本申请实施例中还可以提供一种可能的实施方式,该实施方式用于进一步对低时延流提供时延保障。比如,第二报文为需要进一步保障的低时延流中的报文,这种情况下,上述S503之前执行的S502可以替换为:第一设备在满足第一条件的情况下,确定与第一周期标签对应的第三周期标签,通过第三周期标签对应的周期向第三设备发送第一报文。A possible implementation manner may also be provided in the embodiment of the present application, and the implementation manner is used to further provide delay guarantee for low-latency streams. For example, the second message is a message in a low-latency flow that needs further guarantees. In this case, S502 performed before the above S503 can be replaced by: the first device determines the connection with the first condition when the first condition is satisfied. The third periodic label corresponding to the first periodic label sends the first packet to the third device through the period corresponding to the third periodic label.
其中,第一条件可以包括:通过第三周期标签对应的周期向第三设备发送完毕第一报文的预计时刻早于:第四周期标签对应的周期的起始时刻。Wherein, the first condition may include: the estimated time at which the first packet is sent to the third device through the period corresponding to the third period label is earlier than: the start time of the period corresponding to the fourth period label.
请继续参阅图7,第四起始时刻为第一设备发送第二报文的第四周期标签对应的周期的起始时刻。第一条件可以理解为,若第一设备在开始发送第二报文之前,第一报文可以发送完毕,则第一设备可以通过第三周期标签对应的周期发送第一报文。Please continue to refer to FIG. 7 , the fourth start time is the start time of a cycle corresponding to the fourth cycle label of the second packet sent by the first device. The first condition can be understood as, if the first device can finish sending the first packet before starting to send the second packet, then the first device can send the first packet in a cycle corresponding to the third cycle label.
但是,若第一设备在开始发送第二报文之前,第一报文还未发送完毕,由于第三周期标签和第四周期标签对应的周期有重叠的时域资源,因此当第四周期标签对应的周期的起始时刻达到后,第一报文的发送会对第二报文的时延有影响,比如可能需要先继续发送第一报文,待第一报文发送完毕之后,才开始发送第二报文,如此,导致属于低时延流的第二报文的时延增加,为了避免这种情况,因此可以当第一设备确定不满足第一条件的情况下,可以降低第一报文的发送优先级,或者丢弃第一报文。However, if the first device has not finished sending the first packet before it starts sending the second packet, since the cycles corresponding to the third cycle tag and the fourth cycle tag have overlapping time domain resources, when the fourth cycle tag After the start time of the corresponding cycle is reached, the sending of the first message will have an impact on the delay of the second message. For example, it may be necessary to continue sending the first message first, and then start after the first message is sent. Sending the second message, in this way, causes the delay of the second message belonging to the low-latency flow to increase. In order to avoid this situation, when the first device determines that the first condition is not satisfied, the first device can reduce the delay. Packet sending priority, or discard the first packet.
需要说明的是,若第二报文为需要进一步保障的低时延流中的报文,则可以对与用于发送第二报文的第四周期标签对应的周期有重叠时域资源的周期上的待发送报文均进行检查(比如图7中第四周期标签为T4,则可以对T4之前的T0至T3对应的4个周期上的待发送报文进行检查),以便确保在第四周期标签对应的周期的起始时刻,其他报文(即T4之前的T0至T3对应的4个周期上的待发送报文)的传输不会对第二报文的传输造成干扰,即其他报文不会抢占第二报文的时域资源,从而可以尽量保证第二报文的时延。其中,本申请实施例中对于如何对第一报文进行检查进行了举例说明,针对其他报文(即T4之前的T0至T3对应的4个周期上的待发送报文)中的一个报文进行的检查可以参见前述内容,仅需将第一条件中的预计时刻替换为:通过该报文对应的周期标签对应的周期发送完毕该报文的预计时刻即可。It should be noted that, if the second message is a message in a low-latency flow that needs further guarantees, the period corresponding to the fourth period label used to send the second message may have a period of overlapping time domain resources All the messages to be sent on the network are checked (for example, the label of the fourth cycle in Figure 7 is T4, then the messages to be sent on the 4 cycles corresponding to T0 to T3 before T4 can be checked), so as to ensure that in the fourth cycle At the beginning of the cycle corresponding to the cycle label, the transmission of other messages (that is, the messages to be sent in the 4 cycles corresponding to T0 to T3 before T4) will not cause interference to the transmission of the second message, that is, other messages The time domain resource of the second message will not be preempted by the message, so that the time delay of the second message can be guaranteed as much as possible. Among them, in the embodiment of the present application, an example is given for how to check the first message, for a message in other messages (that is, the messages to be sent in the 4 cycles corresponding to T0 to T3 before T4) For the checking, refer to the foregoing content, and it is only necessary to replace the estimated time in the first condition with: the estimated time when the message is sent through the period corresponding to the period tag corresponding to the message.
图8示例性示出了又一种报文传输方法,如图8所示,第一设备可能还可以接收来自第四设备的报文b1、报文b2和报文b3。其中第四设备上用于发送报文b1、报文b2和报文b3的周期时长等于第一设备上用于发送报文b1、报文b2和报文b3的周期的时长。一种可能的实施方式中,第四设备的周期标签的取值范围小于第一设备的周期标签的取值范围的情况下,比如第四设备的周期标签的取值范围为[0,3],第一设备的周期标签的取值范围为[0,7],可以采用与前述图7相同的方案计算出第四设备和第一设备之间的周期映射关系。并根据前述公式(2)计算出第一设备和第四设备对应的delta,其中,公式(2)中的Tx替换为Tz,Tz为上游设备的出接口发送报文的周期标签对应的逻辑周期标签。FIG. 8 exemplarily shows another packet transmission method. As shown in FIG. 8 , the first device may also receive packets b1 , packet b2 , and packet b3 from the fourth device. Wherein, the cycle length for sending the message b1, the message b2 and the message b3 on the fourth device is equal to the cycle time for sending the message b1, message b2 and message b3 on the first device. In a possible implementation manner, when the value range of the period label of the fourth device is smaller than the value range of the period label of the first device, for example, the value range of the period label of the fourth device is [0, 3] , the value range of the cycle label of the first device is [0, 7], and the cycle mapping relationship between the fourth device and the first device can be calculated by using the same scheme as that in FIG. 7 above. And calculate the delta corresponding to the first device and the fourth device according to the aforementioned formula (2), wherein, Tx in the formula (2) is replaced with Tz, and Tz is the logical cycle corresponding to the cycle label of the packet sent by the outgoing interface of the upstream device Label.
进一步,在计算第一设备接收到的来自第四设备的报文对应的发送周期Ty’时,不能使用上述公式(3),而是需要使用下述公式(4):Further, when calculating the sending period Ty' corresponding to the message received by the first device from the fourth device, the above formula (3) cannot be used, but the following formula (4) needs to be used:
Ty’=((Tz’+delta)*R)mod Ny……公式(4)Ty'=((Tz'+delta)*R)mod Ny...Formula (4)
在公式(3)中,Tz’为第四设备的出接口发送报文的周期标签对应的逻辑周期标签;In formula (3), Tz' is the logical period label corresponding to the period label of the message sent by the outgoing interface of the fourth device;
delta即为第一设备和第四设备对应的delta;delta is the delta corresponding to the first device and the fourth device;
*表示乘;* means multiply;
R表示时长c1和时长c2的比值,其中,时长c1为第一设备上用于发送报文b1的端口对应的一个周期的周期时长,时长c2为第一设备上用于发送报文b1的端口对应的两个相邻周期的起始时刻之间间隔的时长;R represents the ratio of the duration c1 to the duration c2, wherein the duration c1 is the cycle duration of a cycle corresponding to the port on the first device used to send the message b1, and the duration c2 is the port used to send the message b1 on the first device The duration of the interval between the starting moments of the corresponding two adjacent periods;
mod为取余;mod is the remainder;
Ny为下游设备的周期标签的取值范围内的取值数量。Ny is the number of values within the value range of the periodic label of the downstream device.
请继续参阅图8,若delta为2,时长c1为12.5微秒,时长c2为5微秒,R为5,Ny为8,则Tz’为2时,Ty’为0;Tz’为3时,Ty’为5。Please continue to refer to Figure 8. If delta is 2, duration c1 is 12.5 microseconds, duration c2 is 5 microseconds, R is 5, and Ny is 8, then when Tz' is 2, Ty' is 0; when Tz' is 3 , Ty' is 5.
通过图8所示的方案可以看出,本申请实施例提供的图7的方案中,第一设备可以接收携带的周期标签对应的周期时长较短的报文;也可以兼容接收到的携带的周期标签对应的周期时长较长的报文,且针对此类报文,在计算该报文对应的发送周期时可以通过上述公式(3)计算得到。It can be seen from the solution shown in Figure 8 that in the solution shown in Figure 7 provided by the embodiment of the present application, the first device can receive a message with a shorter cycle duration corresponding to the carried cycle tag; it can also be compatible with the received carried cycle tag The period tag corresponds to a message with a relatively long period, and for such a message, the sending period corresponding to the message can be calculated by the above formula (3).
除了上述图8所示的方案之外,本申请实施例可以提供又一种可能的实施方式中,第四设备的周期标签的取值范围大于或等于第一设备的周期标签的取值范围,这种情况下,可以采用前述图4的相关的周期映射关系学习的方案学习第四设备和第一设备的周期标签映射关系,之后依据上述公式(2)计算出delta,进一步根据公式(3)计算第四设备发送的报文中携带的周期标签在第一设备上对应的发送周期。In addition to the solution shown in FIG. 8 above, this embodiment of the present application can provide another possible implementation mode, in which the value range of the period label of the fourth device is greater than or equal to the value range of the period label of the first device, In this case, you can learn the periodic label mapping relationship between the fourth device and the first device by using the relevant period mapping relationship learning scheme in Figure 4 above, and then calculate the delta according to the above formula (2), and further according to the formula (3) Calculate the sending period corresponding to the period tag carried in the packet sent by the fourth device on the first device.
根据前述方法,图9为本申请实施例提供的通信装置的结构示意图,如图9所示,该通信装置可以为网络设备,也可以为芯片或电路,比如可设置于网络设备内的芯片或电路。图9所示的通信装置可以为前述内容中的第一设备,可以用于执行前述图5中的S501、S502和S503。According to the aforementioned method, FIG. 9 is a schematic structural diagram of a communication device provided in an embodiment of the present application. As shown in FIG. 9, the communication device may be a network device, or a chip or a circuit, such as a chip or a circuit. The communication apparatus shown in FIG. 9 may be the first device in the aforementioned content, and may be used to execute S501, S502, and S503 in the aforementioned FIG. 5 .
该通信装置901包括处理器902和收发器903。The
进一步的,该通信装置901可以包括有存储器904。图中存储器904为虚线是进一步标识存储器为可选地意思。Further, the
进一步的,该通信装置901还可以进一步包括总线系统,其中,处理器902、存储器904、收发器903可以通过总线系统相连。Furthermore, the
应理解,上述处理器902可以是一个芯片。例如,该处理器902可以是现场可编程门阵列(field programmable gate array,FPGA),可以是专用集成芯片(applicationspecific integrated circuit,ASIC),还可以是系统芯片(system on chip,SoC),还可以是中央处理器(central processor unit,CPU),还可以是网络处理器(networkprocessor,NP),还可以是数字信号处理电路(digital signal processor,DSP),还可以是微控制器(micro controller unit,MCU),还可以是可编程控制器(programmable logicdevice,PLD)或其他集成芯片。It should be understood that the above-mentioned
在实现过程中,上述方法的各步骤可以通过处理器902中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器902中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器904,处理器902读取存储器904中的信息,结合其硬件完成上述方法的步骤。In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the
应注意,本申请实施例中的处理器902可以是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法实施例的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。It should be noted that the
可以理解,本申请实施例中的存储器904可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rateSDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(directrambus RAM,DR RAM)。应注意,本文描述的系统和方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the
一种可能的实施方式中,收发器903,用于接收来自第二设备的第一报文和第二报文,第一报文包括第一周期标签,第一报文为第二设备通过第一周期标签对应的周期发送的报文;第二报文包括第二周期标签,第二报文为第二设备通过第二周期标签对应的周期发送的报文。In a possible implementation manner, the
处理器902,用于确定与第一周期标签对应的第三周期标签,在第三周期标签对应的周期通过收发器903向第三设备发送第一报文;确定与第二周期标签对应的第四周期标签,在第四周期标签对应的周期通过收发器903向第三设备发送第二报文;其中,第四周期标签对应的周期的起始时刻:晚于第三周期标签对应的周期的起始时刻,且早于第三周期标签对应的周期的结束时刻。The
在一种可能的实施方式中,处理器902,具体用于:确定第一周期标签对应的第五周期标签;确定第五周期标签对应的第三周期标签。其中,第二数量为第一数量和第三数量的公倍数;第一数量为第一周期标签的取值范围对应的取值总数量;第二数量为第五周期标签的取值范围对应的取值总数量;第三数量为第三周期标签的取值范围对应的取值总数量。In a possible implementation manner, the
在一种可能的实施方式中,处理器902,具体用于:根据第五周期标签和第三周期标签,确定第一设备和第二设备之间的周期映射关系;确定第二周期标签对应的第六周期标签;根据周期映射关系以及第六周期标签,确定第六周期标签对应的第四周期标签。In a possible implementation manner, the
在一种可能的实施方式中,处理器902,具体用于:在满足第一条件的情况下,确定与第一周期标签对应的第三周期标签,在第三周期标签对应的周期通过收发器903向第三设备发送第一报文。其中,第一条件包括:通过第三周期标签对应的周期向第三设备发送完毕第一报文的预计时刻早于:第四周期标签对应的周期的起始时刻。In a possible implementation manner, the
在一种可能的实施方式中,处理器902,还用于:在确定不满足第一条件的情况下:降低第一报文的发送优先级,或者丢弃第一报文。In a possible implementation manner, the
该通信装置所涉及的与本申请实施例提供的技术方案相关的概念,解释和详细说明及其他步骤请参见前述方法或其他实施例中关于这些内容的描述,此处不做赘述。For the concepts, explanations, detailed descriptions and other steps involved in the communication device related to the technical solutions provided by the embodiments of the present application, please refer to the foregoing methods or descriptions of these contents in other embodiments, and details are not repeated here.
根据前述方法,图10为本申请实施例提供的通信装置的结构示意图,如图10所示,通信装置1001可以包括通信接口1003和处理器1002。进一步的,该通信装置1001可以包括有存储器1004。图中存储器1004为虚线是进一步标识存储器为可选地意思。通信接口1003,用于输入和/或输出信息;处理器1002,用于执行计算机程序或指令,使得通信装置1001实现上述图5的相关方案中第一设备侧的方法。本申请实施例中,通信接口1003可以实现上述图9的收发器903所实现的方案,处理器1002可以实现上述图9的处理器902所实现的方案,存储器1004可以实现上述图9的存储器904所实现的方案,在此不再赘述。According to the foregoing method, FIG. 10 is a schematic structural diagram of a communication device provided by an embodiment of the present application. As shown in FIG. 10 , a
基于以上实施例以及相同构思,图11为本申请实施例提供的通信装置的示意图,如图11所示,该通信装置1101可以为网络设备,也可以为芯片或电路,比如可设置于网络设备的芯片或电路。Based on the above embodiments and the same idea, Fig. 11 is a schematic diagram of a communication device provided by the embodiment of the present application. As shown in Fig. 11, the
该通信装置1101包括处理单元1102和通信单元1103。进一步的,该通信装置1101可以包括有存储单元1104,也可以不包括存储单元1104。图中存储单元1104为虚线是进一步标识存储器为可选地意思。The
该通信装置可以对应上述方法中的第一设备。该通信装置可以实现如上图5中所示的任一项或任多项对应的方法中第一设备所执行的步骤。该通信装置可以包括处理单元1102、通信单元1103和存储单元1104。The communication device may correspond to the first device in the above method. The communications apparatus may implement any one or multiple steps performed by the first device in the corresponding methods shown in FIG. 5 above. The communication device may include a
一种可能的实施方式中,通信单元1103,用于接收来自第二设备的第一报文和第二报文,第一报文包括第一周期标签,第一报文为第二设备通过第一周期标签对应的周期发送的报文;第二报文包括第二周期标签,第二报文为第二设备通过第二周期标签对应的周期发送的报文。In a possible implementation manner, the
处理单元1102,用于确定与第一周期标签对应的第三周期标签,在第三周期标签对应的周期通过通信单元1103向第三设备发送第一报文;确定与第二周期标签对应的第四周期标签,在第四周期标签对应的周期通过通信单元1103向第三设备发送第二报文;其中,第四周期标签对应的周期的起始时刻:晚于第三周期标签对应的周期的起始时刻,且早于第三周期标签对应的周期的结束时刻。The
其中,处理单元1102可以是处理器或控制器,例如可以是通用中央处理器(central processing unit,CPU),通用处理器,数字信号处理(digital signalprocessing,DSP),专用集成电路(application specific integrated circuits,ASIC),现场可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包括一个或多个微处理器组合,DSP和微处理器的组合等等。存储单元1104可以是存储器。通信单元1103是一种该装置的接口电路,用于从其它装置接收信号。例如,当该装置以芯片的方式实现时,该通信单元1103是该芯片用于从其它芯片或装置接收信号的接口电路,或者,是该芯片用于向其它芯片或装置发送信号的接口电路。Wherein, the
该通信装置1101可以为上述任一实施例中的网络设备,还可以为网络设备内部的芯片。例如,当通信装置1101为网络设备时,该处理单元1102例如可以是处理器,该通信单元1103例如可以是收发器。可选的,该收发器可以包括射频电路,该存储单元例如可以是存储器。例如,当通信装置1101为网络设备内部的芯片时,该处理单元1102例如可以是处理器,该通信单元1103例如可以是输入/输出接口、管脚或电路等。该处理单元1102可执行存储单元存储的计算机执行指令,可选地,该存储单元为该芯片内的存储单元,如寄存器、缓存等,该存储单元还可以是该会话管理网元内的位于该芯片外部的存储单元,如只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)等。The
该通信装置所涉及的与本申请实施例提供的技术方案相关的概念,解释和详细说明及其他步骤请参见前述方法或其他实施例中关于这些内容的描述,此处不做赘述。For the concepts, explanations, detailed descriptions and other steps involved in the communication device related to the technical solutions provided by the embodiments of the present application, please refer to the foregoing methods or descriptions of these contents in other embodiments, and details are not repeated here.
可以理解的是,上述通信装置1101中各个单元的功能可以参考相应方法实施例的实现,此处不再赘述。It can be understood that, the functions of each unit in the
应理解,以上通信装置的单元的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。本申请实施例中,通信单元1103可以由上述图9的收发器903实现,处理单元1102可以由上述图9的处理器902实现。It should be understood that the above division of units of the communication device is only a division of logical functions, which may be fully or partially integrated into one physical entity or physically separated during actual implementation. In this embodiment of the present application, the
根据本申请实施例提供的方法,本申请还提供一种计算机程序产品,该计算机程序产品包括:计算机程序代码或指令,当该计算机程序代码或指令在计算机上运行时,使得该计算机执行图5所示实施例中任意一个实施例的方法。According to the method provided in the embodiment of the present application, the present application also provides a computer program product, the computer program product including: computer program code or instruction, when the computer program code or instruction is run on the computer, the computer is made to execute the The method of any of the illustrated embodiments.
根据本申请实施例提供的方法,本申请还提供一种计算机可读存储介质,该计算机可读介质存储有程序代码,当该程序代码在计算机上运行时,使得该计算机执行图5所示实施例中任意一个实施例的方法。According to the method provided in the embodiment of the present application, the present application also provides a computer-readable storage medium, the computer-readable medium stores program code, and when the program code is run on the computer, the computer is made to execute the implementation shown in Figure 5. The method of any one embodiment in the example.
根据本申请实施例提供的方法,本申请还提供一种芯片系统,该芯片系统可以包括处理器。该处理器与存储器耦合,可用于执行图5所示实施例中任意一个实施例的方法。可选地,该芯片系统还包括存储器。存储器,用于存储计算机程序(也可以称为代码,或指令)。处理器,用于从存储器调用并运行计算机程序,使得安装有芯片系统的设备执行图5所示实施例中任意一个实施例的方法。According to the method provided in the embodiment of the present application, the present application further provides a chip system, where the chip system may include a processor. The processor is coupled with the memory, and may be used to execute the method in any one of the embodiments shown in FIG. 5 . Optionally, the chip system further includes a memory. Memory, used to store computer programs (also called code, or instructions). The processor is configured to call and run a computer program from the memory, so that the device installed with the system-on-a-chip executes the method of any one of the embodiments shown in FIG. 5 .
根据本申请实施例提供的方法,本申请还提供一种系统,其包括前述的一个或多个第二设备以及一个或多个第一设备。According to the method provided in the embodiment of the present application, the present application further provides a system, which includes the foregoing one or more second devices and one or more first devices.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriberline,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,高密度数字视频光盘(digital video disc,DVD))、或者半导体介质(例如,固态硬盘(solid state disc,SSD))等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. A computer can be a general purpose computer, special purpose computer, a computer network, or other programmable apparatus. Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g. Coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (such as infrared, wireless, microwave, etc.) transmission to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, a data center, etc. integrated with one or more available media. Available media may be magnetic media (e.g., floppy disk, hard disk, magnetic tape), optical media (e.g., high-density digital video disc (digital video disc, DVD)), or semiconductor media (e.g., solid state disk (solid state disc, SSD) )Wait.
需要指出的是,本专利申请文件的一部分包含受著作权保护的内容。除了对专利局的专利文件或记录的专利文档内容制作副本以外,著作权人保留著作权。It should be pointed out that a part of the patent application documents contains content protected by copyright. Copyright is reserved by the copyright owner other than to make copies of the contents of the patent file or records of the Patent Office.
上述各个装置实施例中第一设备和第二设备和方法实施例中的第一设备和第二设备对应,由相应的模块或单元执行相应的步骤,例如通信单元(收发器)执行方法实施例中接收或发送的步骤,除发送、接收外的其它步骤可以由处理单元(处理器)执行。具体单元的功能可以参考相应的方法实施例。其中,处理器可以为一个或多个。The first device and the second device in the above-mentioned various apparatus embodiments correspond to the first device and the second device in the method embodiments, and the corresponding steps are executed by corresponding modules or units, for example, the communication unit (transceiver) executes the method embodiments In the step of receiving or sending, other steps besides sending and receiving may be performed by a processing unit (processor). For the functions of the specific units, reference may be made to the corresponding method embodiments. Wherein, there may be one or more processors.
在本说明书中使用的术语“部件”、“模块”、“系统”等用于表示计算机相关的实体、硬件、固件、硬件和软件的组合、软件、或执行中的软件。例如,部件可以是但不限于,在处理器上运行的进程、处理器、对象、可执行文件、执行线程、程序和/或计算机。通过图示,在计算设备上运行的应用和计算设备都可以是部件。一个或多个部件可驻留在进程和/或执行线程中,部件可位于一个计算机上和/或分布在两个或更多个计算机之间。此外,这些部件可从在上面存储有各种数据结构的各种计算机可读介质执行。部件可例如根据具有一个或多个数据分组(例如来自与本地系统、分布式系统和/或网络间的另一部件交互的二个部件的数据,例如通过信号与其它系统交互的互联网)的信号通过本地和/或远程进程来通信。The terms "component", "module", "system" and the like are used in this specification to refer to a computer-related entity, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a component may be, but is not limited to being, a process running on a processor, a processor, an object, an executable, a thread of execution, a program, and/or a computer. By way of illustration, both an application running on a computing device and the computing device can be components. One or more components can reside within a process and/or thread of execution and a component can be localized on one computer and/or distributed between two or more computers. In addition, these components can execute from various computer readable media having various data structures stored thereon. A component may, for example, be based on a signal having one or more packets of data (e.g., data from two components interacting with another component between a local system, a distributed system, and/or a network, such as the Internet via a signal interacting with other systems). Communicate through local and/or remote processes.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各种说明性逻辑块(illustrative logical block)和步骤(step),能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that various illustrative logical blocks (illustrative logical blocks) and steps (steps) described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, or a combination of computer software and electronic hardware. accomplish. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated. to another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。A unit described as a separate component may or may not be physically separated, and a component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. If the functions are realized in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium.
以上,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above is only the specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application, and should cover Within the protection scope of this application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims (27)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110755856.XA CN115589384A (en) | 2021-07-05 | 2021-07-05 | Message transmission method and device |
PCT/CN2022/097449 WO2023279903A1 (en) | 2021-07-05 | 2022-06-07 | Message transmission method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110755856.XA CN115589384A (en) | 2021-07-05 | 2021-07-05 | Message transmission method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115589384A true CN115589384A (en) | 2023-01-10 |
Family
ID=84771049
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110755856.XA Pending CN115589384A (en) | 2021-07-05 | 2021-07-05 | Message transmission method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115589384A (en) |
WO (1) | WO2023279903A1 (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111867087A (en) * | 2019-04-30 | 2020-10-30 | 华为技术有限公司 | Method and communication device for adjusting time domain resource boundary |
US20210021520A1 (en) * | 2019-07-19 | 2021-01-21 | Cisco Technology, Inc. | Per-flow queue management in a deterministic network switch based on deterministically transmitting newest-received packet instead of queued packet |
CN112311494A (en) * | 2019-07-23 | 2021-02-02 | 华为技术有限公司 | Message transmission method, device and system |
CN112448896A (en) * | 2019-08-30 | 2021-03-05 | 华为技术有限公司 | Method and device for determining transmission period in deterministic network |
CN114363270A (en) * | 2020-09-28 | 2022-04-15 | 华为技术有限公司 | Data forwarding method and related device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10313416B2 (en) * | 2017-07-21 | 2019-06-04 | Nxp B.V. | Dynamic latency control |
CN112398888B (en) * | 2019-08-15 | 2023-02-28 | 北京华为数字技术有限公司 | A communication method and device |
-
2021
- 2021-07-05 CN CN202110755856.XA patent/CN115589384A/en active Pending
-
2022
- 2022-06-07 WO PCT/CN2022/097449 patent/WO2023279903A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111867087A (en) * | 2019-04-30 | 2020-10-30 | 华为技术有限公司 | Method and communication device for adjusting time domain resource boundary |
US20210021520A1 (en) * | 2019-07-19 | 2021-01-21 | Cisco Technology, Inc. | Per-flow queue management in a deterministic network switch based on deterministically transmitting newest-received packet instead of queued packet |
CN112311494A (en) * | 2019-07-23 | 2021-02-02 | 华为技术有限公司 | Message transmission method, device and system |
CN112448896A (en) * | 2019-08-30 | 2021-03-05 | 华为技术有限公司 | Method and device for determining transmission period in deterministic network |
CN114363270A (en) * | 2020-09-28 | 2022-04-15 | 华为技术有限公司 | Data forwarding method and related device |
Also Published As
Publication number | Publication date |
---|---|
WO2023279903A1 (en) | 2023-01-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021180073A1 (en) | Packet transmission method and device, network node, and storage medium | |
US11616586B2 (en) | Period mapping method and network device | |
CN111526095B (en) | Flow control method and device | |
CN114448894B (en) | Multi-level service scheduling engine for time sensitive network and implementation method | |
WO2020155185A1 (en) | Message scheduling method, scheduler, network device and network system | |
US10367743B2 (en) | Method for traffic management at network node, and network node in packet-switched network | |
CN113472673A (en) | Method and equipment for acquiring control information | |
CN116711287A (en) | Circular Queue and Forwarding (CQF) segmentation | |
TWI756666B (en) | Method implemented by computer means of a communicating entity in a packet-switched network, and computer program and computer-readable non-transient recording medium thereof, and communicating entity of a packet-switched network | |
US20200213240A1 (en) | Method Of Synchronization Of Data Packet Transmission | |
CN108282416A (en) | A kind of dispatching method and device based on data frame | |
CN113783785A (en) | Method, device and network device for configuring ECN watermark value | |
US11805071B2 (en) | Congestion control processing method, packet forwarding apparatus, and packet receiving apparatus | |
WO2023279903A1 (en) | Message transmission method and apparatus | |
Zheng et al. | A novel low-latency scheduling approach of TSN for multi-link rate networking | |
US10999210B2 (en) | Load sharing method and network device | |
CN112751776B (en) | Congestion control method and related device | |
WO2022237415A1 (en) | Packet forwarding method and related apparatus | |
WO2023207628A1 (en) | Packet transmission method and packet forwarding device | |
CN114501544A (en) | A data transmission method, device and storage medium | |
CN114401228A (en) | End-to-end wide area crossing deterministic transmission network architecture and method | |
US20250030645A1 (en) | Packet transmission | |
WO2024051367A1 (en) | Packet transmission method, network device, and readable storage medium | |
Yao et al. | Burst-Aware Mixed Flow Scheduling in Time-Sensitive Networks for Power Business | |
CN115733808A (en) | A data transmission method, device and equipment based on circular queue cluster forwarding |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |