Method for measuring period deviation, network equipment and readable storage medium
By receiving and processing periodic deviation information in the measured packets, the periodic deviation problem caused by time out-of-synchronization between nodes in a large-scale deterministic network is solved, and the precise orchestration of control in the upper and lower bounds of time delay is realized, ensuring network determination is ensured. Sex and efficiency.
Patent Information
- Application Number
- CN202310532587.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-10
- Publication Date
- 2024-11-12
AI Technical Summary
In large-scale deterministic networks, due to the time synchronization between nodes, the periodic deviation is unknown, and it is impossible to accurately orchestrate based on the constraints of the upper and lower bounds of time delay.
By receiving the measurement message sent by the upstream node, the period start time deviation information between the downstream node and the upstream node is determined, including physical period or hyperperiod deviation, and the information is sent to the control plane so that the control plane can be based on the upper and lower bounds of the delay based on the upper and lower bounds of the delay Constraint and precise arrangement.
The precise measurement and arrangement of periodic deviations in a large-scale deterministic network is realized, ensuring that the control surface can be accurately arranged based on the upper and lower bounds of time delay, and avoiding the uncertainty of data transmission caused by periodic deviations.
Smart Images

Figure CN118945702A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of communications, and in particular to a method for measuring period deviation, a network device and a readable storage medium. Background Art
[0002] Large-scale Deterministic Network (LDN) is the main enabling technology for deterministic forwarding. By introducing a periodic scheduling mechanism in LDN, microbursts can be avoided, ensuring deterministic latency and congestion-free packet loss. Existing LDN research mainly focuses on the jitter performance of the forwarding plane under constraints.
[0003] However, as the research scope gradually expands from the forwarding plane to the control plane, higher requirements are put forward for the precise bandwidth scheduling based on time slots on the control plane and the strict constraints on the upper and lower bounds of service delay. Due to the time asynchrony between nodes in the LDN network, the starting time of the cycle window of each node is not coordinated. After the forwarding system is started, there is a certain deviation between the physical cycle periods and / or super cycles of adjacent nodes, and this cycle deviation is an unknown quantity for the controller. In the case of unknown cycle deviation, the controller cannot accurately schedule based on the upper and lower bounds of the delay. Summary of the invention
[0004] The embodiments of the present application provide a method for measuring period deviation, a network device and a readable storage medium, which can solve the problem of being unable to accurately schedule based on upper and lower bounds of latency.
[0005] In a first aspect, a method for measuring a cycle deviation is provided, the method comprising: receiving a measurement message sent by an upstream node, wherein the measurement message is used to indicate deviation information between a start time of a cycle of a downstream node and a start time of a cycle corresponding to the upstream node, the cycle comprising a physical cycle or a super cycle; determining a receiving parameter corresponding to the measurement message; determining the deviation information according to the parameters carried in the measurement message and the receiving parameters; and sending the deviation information to a control plane.
[0006] In a second aspect, a method for measuring period deviation is provided, the method comprising: receiving deviation information sent by a downstream node, wherein the deviation information comprises: parameters carried in a measurement message sent by an upstream node, reception parameters of the measurement message received by the downstream node, and a link delay between the upstream node and the downstream node; or a deviation value between a period start time of the downstream node and a period start time corresponding to the upstream node, the period comprising a physical period or a super period.
[0007] In a third aspect, a device for measuring period deviation is provided, the device comprising: a first receiving module, used to receive a measurement message sent by an upstream node, wherein the measurement message is used to indicate deviation information between a start time of a period of a downstream node and a start time of a period corresponding to an upstream node, and the period comprises a physical period or a super period; a first determination module, used to determine a receiving parameter corresponding to the measurement message; a second determination module, used to determine the deviation information based on the parameters carried in the measurement message and the receiving parameter; and a sending module, used to send the deviation information to a control plane.
[0008] In a fourth aspect, a device for measuring period deviation is provided, the device comprising: a second receiving module, for receiving deviation information sent by a downstream node, wherein the deviation information comprises: parameters carried in a measurement message sent by an upstream node, reception parameters of the measurement message received by the downstream node, and a link delay between the upstream node and the downstream node; or a deviation value between a period start time of a downstream node and a period start time corresponding to an upstream node, wherein the period comprises a physical period or a super period.
[0009] In a fifth aspect, a network device is provided, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect and / or the second aspect.
[0010] In a sixth aspect, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0011] In the seventh aspect, a computer program product is provided, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect and / or the second aspect.
[0012] In an eighth aspect, a chip is provided, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect and / or the second aspect.
[0013] The method for measuring cycle deviation provided by the embodiment of the present invention, the network device and the readable storage medium receive a measurement message sent by an upstream node, wherein the measurement message is used to indicate the deviation information between the start time of the cycle of the downstream node and the start time of the cycle corresponding to the upstream node, and the cycle includes a physical cycle or a super cycle; determine the receiving parameters corresponding to the measurement message; determine the deviation information according to the parameters carried in the measurement message and the receiving parameters; send the deviation information to the control plane, so that the control plane can determine the cycle deviation and accurately arrange it based on the upper and lower bounds of the delay. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1a is a schematic flow chart of a method for measuring period deviation according to an embodiment of the present invention;
[0015] Figure 1b-1c is a schematic diagram of a measurement cycle according to an embodiment of the present invention;
[0016] Figure 2a is a schematic flow chart of a method for measuring period deviation according to another embodiment of the present invention;
[0017] Figure 2b-2f is a schematic diagram of a message according to an embodiment of the present invention;
[0018] Figure 2g is another schematic flow chart of a method for measuring period deviation according to another embodiment of the present invention;
[0019] Figure 2h is another schematic diagram of a method for measuring period deviation according to another embodiment of the present invention;
[0020] Figure 3 is a schematic flow chart of a method for measuring period deviation according to another embodiment of the present invention;
[0021] Figure 4 is a schematic structural diagram of a device for measuring period deviation according to an embodiment of the present invention;
[0022] Figure 5 is a schematic structural diagram of a device for measuring period deviation according to another embodiment of the present invention;
[0023] Figure 6 It is a schematic diagram of the structure of a network device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of this application.
[0025] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.
[0026] It is worth noting that the technology described in the embodiments of the present application is not limited to the Long Term Evolution (LTE) / LTE-Advanced (LTE-A) system, but can also be used in other wireless communication systems, such as Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Frequency Division Multiple Access (FDMA), Orthogonal Frequency Division Multiple Access (OFDMA), Single-carrier Frequency-Division Multiple Access (SC-FDMA) and other systems. The terms "system" and "network" in the embodiments of the present application are often used interchangeably, and the described technology can be used for the systems and radio technologies mentioned above as well as for other systems and radio technologies. The following description describes a New Radio (NR) system for illustrative purposes, and NR terminology is used in most of the following descriptions, but these technologies can also be applied to applications other than NR system applications, such as the 6th generation (6 th Generation, 6G) communication system.
[0027] The method for measuring periodic deviation provided in the embodiment of the present application is described in detail below through some embodiments and their application scenarios in combination with the accompanying drawings.
[0028] like Figure 1aAs shown, an embodiment of the present invention provides a method 200 for measuring period deviation, which can be performed by a downstream node of a forwarding plane, and the downstream node can include a terminal device and / or a network device. In other words, the method can be performed by software or hardware installed in the terminal device and / or the network device. The embodiment of the present invention includes the following steps:
[0029] S210: Receive a measurement message sent by an upstream node.
[0030] The measurement message is sent from the upstream node to the downstream node. In this step, the downstream node receives the measurement message sent by the upstream node.
[0031] Since the time between nodes in the LDN network is not synchronized, after the forwarding system is started, there is a certain period deviation between the cycles of adjacent nodes. The period deviation is the deviation between the cycle start time of the downstream node and the cycle start time corresponding to the upstream node. The measurement message is used to indicate the deviation information for measuring the deviation.
[0032] The cycle includes a physical cycle (PC) or a hyper cycle (HC). A hyper cycle includes at least two physical cycles. The upstream node and the downstream node are forwarding nodes that support physical cycle scheduling and / or hyper cycle scheduling.
[0033] like Figure 1b As shown, in the case where the cycle includes a physical cycle, the cycle deviation includes a deviation between a cycle start time T2 of a downstream node and a cycle start time T1 corresponding to an upstream node.
[0034] In the case where the cycle includes a supercycle, the cycle deviation includes the deviation between the supercycle start time T3 of the downstream node and the supercycle start time T1 corresponding to the upstream node. The supercycle start time of the downstream node is the end time of the second round of the supercycle, and the supercycle start time corresponding to the upstream node is the start time of the 0th round of the supercycle, wherein the node supporting supercycle scheduling can perceive the cyclic rounds of the physical cycle in the supercycle.
[0035] S220: Determine a receiving parameter corresponding to the measurement message.
[0036] The receiving parameters are parameters related to the measurement message reception by the downstream node, and may include period-related parameters of the downstream node and time parameters for receiving the measurement message, and the like.
[0037] S230: Determine the deviation information.
[0038] Specifically, the deviation information may be determined according to the parameters carried in the measurement message and the received parameters. Optionally, the measurement message may carry upstream node period-related parameters and a time parameter for sending the measurement message.
[0039] S250: Send the deviation information to the control plane.
[0040] The control plane can determine the deviation between the cycle start time of the downstream node and the cycle start time corresponding to the upstream node according to the deviation information, and establish a routing path based on the cycle deviation so that the forwarding plane forwards data according to the routing path.
[0041] The method for measuring cycle deviation provided by an embodiment of the present invention receives a measurement message sent by an upstream node, wherein the measurement message is used to indicate the deviation information between the cycle start time of the downstream node and the cycle start time corresponding to the upstream node, and the cycle includes a physical cycle or a super cycle; determines the receiving parameters corresponding to the measurement message; determines the deviation information according to the parameters carried in the measurement message and the receiving parameters; sends the deviation information to the control plane, so that the control plane can determine the deviation between the cycle start time of the downstream node and the cycle start time corresponding to the upstream node, and establishes a routing path based on the cycle deviation to achieve precise scheduling.
[0042] In a possible implementation, the measurement message carries at least one of the following parameters: measurement type; periodic template of the upstream node; number of time slots included in the periodic template of the upstream node; identifier of the sending time slot of the measurement message; offset between the sending time of the measurement message and the starting time of the sending time slot.
[0043] Specifically, the measurement type includes deviation information of the measurement physical cycle and / or deviation information of the measurement super cycle. When the measurement message carries the measurement type, the downstream node can determine the measurement physical cycle deviation or the measurement super cycle deviation after receiving the measurement message.
[0044] The period template of the upstream node is used to represent the communication period of the upstream node, for example, 10 microseconds (us), 20us, 40us. The number of time slots included in the period template of the upstream node may be, for example, 8, 4, or 2. The identifier of the sending time slot of the measurement message may be the number of the sending time slot of the measurement message, see Figure 1c , for example, the upstream time slot identifier upSlotId is 0; the offset between the sending time of the measurement message and the starting time of the sending time slot is, for example, the upstream time slot deviation upSlotOffset, which is used to represent the offset of the measurement message sending time t3 relative to the starting time t0 of the sending time slot with upSlotId being 0.
[0045] In a possible implementation manner, when the period of the upstream node includes a super period, the measurement message may further carry at least one of the following parameters:
[0046] The period round identifier included in the super period of the upstream node;
[0047] The number of periodic rounds included in the super period of the upstream node.
[0048] like Figure 1c When the cycle of the upstream node includes a super cycle, the parameters carried by the measurement message may be parameters related to the super cycle of the upstream node, including a cycle round identifier upCycleId for indicating the sending round of the measurement message, for example, if upCycleId is the 1st round, it means that the measurement message is sent in the 1st round of the super cycle; and a cycle round number upCycleNum for indicating the number of rounds included in the super cycle, for example, if the super cycle includes three rounds, namely the 0th round, the 1st round and the 2nd round, then upCycleNum is 3.
[0049] By measuring the parameters carried in the message, a data basis can be provided for determining the cycle deviation.
[0050] In a possible implementation manner, the period of the downstream node includes: a physical period or a super period, and the receiving parameter includes at least one of the following:
[0051] The number of time slots included in the periodic template of the downstream node;
[0052] An identifier of a receiving time slot of the measurement message;
[0053] The offset between the reception time of the measurement message and the start time of the reception time slot.
[0054] like Figure 1c The receiving parameters include the number of time slots of the downstream node periodic template, for example, the downstream time slot number downSlotNum is 5; the downstream time slot identifier, for example, downSlotId is 2; and the offset between the receiving time of the measured message and the starting time of the receiving time slot, for example, the offset downSlotOffset of the message receiving time t3' of the downstream node relative to the starting time t3' of the message receiving time slot (downSlotId is 2).
[0055] Optionally, the downstream node can determine information of the periodic template and / or the super periodic template, and determine the above-mentioned receiving parameters of the measurement message.
[0056] In a possible implementation manner, when the period of the downstream node includes a super period, the receiving parameter may further include at least one of the following:
[0057] The period round identifier of the receiving period of the measurement message in the super period;
[0058] The number of periodic rounds included in the super period of the downstream node.
[0059] like Figure 1c When the cycle of the downstream node includes a supercycle, the parameters carried by the measurement message may be parameters related to the supercycle of the downstream node, including a cycle round identifier downCycleId for indicating the receiving round of the measurement message, for example, if downCycleId is round 1, it means that the measurement message is received in round 1 of the supercycle; and a cycle round number downCycleNum for indicating the number of rounds included in the supercycle, for example, if the supercycle includes rounds 0, 1, and 2, then downCycleNum is 3. By limiting the specific content of the parameters received by the downstream node, a data basis can be further provided for determining the cycle deviation.
[0060] In a possible implementation manner, the deviation information may include the parameter carried in the measurement message, the receiving parameter, and the link delay between the upstream node and the downstream node.
[0061] Link delay is used to indicate the time required for a message to be transmitted from one end of a link to the other end, and it and the deviation value of the cycle period jointly affect the end-to-end delay of the service. In this application, link delay is a known quantity, and the specific method of obtaining the link delay value is not limited.
[0062] In step S250, the parameters carried in the measurement message, the receiving parameters, and the link delay between the upstream node and the downstream node may be sent to the control plane, so that the control plane can accurately determine the period deviation based on these parameters.
[0063] Figure 2a A schematic flow chart of a method for measuring period deviation according to another embodiment of the present invention is shown. The method comprises:
[0064] S330: Determine the deviation information.
[0065] Can be based on Figure 1a The corresponding steps of the embodiment determine the deviation information, which will not be repeated here.
[0066] S341: Determine the period deviation value.
[0067] The cycle deviation value is determined according to the cycle size, the link delay, the offset between the sending time of the measurement message and the starting time of the sending cycle, and the offset between the receiving time of the measurement message and the starting time of the receiving cycle.
[0068] Optionally, the super period deviation value is determined according to the following formula,
[0069] Δ HC =(linkDelay+upHcOffset+HC-downHcOffset)%HC
[0070] Among them, Δ HC is the super cycle deviation value, linkDelay is the link delay, upHcOffset is the offset between the sending time of the measurement message and the starting time of the corresponding super cycle, HC is the super cycle size, and downHcOffset is the offset between the receiving time of the measurement message and the starting time of the corresponding super cycle.
[0071] Further, before determining the super-period deviation value, HC is determined according to the following formula;
[0072] HC=upSlotNum*upCycleNum*T,
[0073] Among them, upSlotNum is the number of time slots included in the physical cycle of the upstream node, upCycleNum is the number of cycle rounds included in the super cycle of the upstream node, and T is the cycle template of the upstream node.
[0074] Furthermore, before determining the super period deviation value, the method further includes:
[0075] According to the following formula, the upHcOffset is determined;
[0076] upHcOffset=upSlotOffset+upSlotId*T+upCycleId*upSlotNum*T;
[0077] Among them, upSlotOffset is the offset between the sending time of the measurement message and the starting time of the sending time slot, upSlotId is the identifier of the sending time slot of the measurement message, upCycleId is the cycle round identifier included in the super cycle of the upstream node, upSlotNum is the number of time slots included in the physical cycle of the upstream node, and T is the cycle template of the upstream node.
[0078] Before determining the super period deviation value, the method further includes:
[0079] Determine the downHcOffset according to the following formula;
[0080] downHcOffset=downSlotOffset+downSlotId*T+downCycleId*downSlotNum*T
[0081] Among them, downSlotOffset is the offset between the receiving time of the measurement message and the starting time of the receiving time slot, downSlotId is the identifier of the receiving time slot of the measurement message, downCycleId is the period round identifier of the receiving cycle of the measurement message in the super cycle, and downSlotNum is the number of time slots included in the cycle template of the downstream node.
[0082] Optionally, determine the physical period deviation value according to the following formula:
[0083] Δ PC =(linkDelay+upPcOffset+PC-downPcOffset)%PC
[0084] Among them, Δ PC is the physical cycle deviation value, linkDelay is the link delay, upPcOffset is the offset between the sending time of the measurement message and the starting time of the corresponding cycle, PC is the physical cycle size, and downPcOffset is the offset between the receiving time of the measurement message and the starting time of the corresponding cycle.
[0085] Furthermore, before determining the period deviation value, the method further includes:
[0086] Determine PC according to the following formula;
[0087] PC = upSlotNum*T,
[0088] Wherein, upSlotNum is the number of time slots included in the physical cycle of the upstream node, and T is the cycle template of the upstream node.
[0089] Furthermore, before determining the period deviation value, the method further includes:
[0090] According to the following formula, the upPcOffset is determined;
[0091] upPcOffset=upSlotOffset+upSlotId*T
[0092] Wherein, upSlotOffset is the offset between the sending time of the measurement message and the starting time of the sending time slot, upSlotId is the identifier of the sending time slot of the measurement message, and T is the periodic template of the upstream node.
[0093] Furthermore, before determining the period deviation value, the method further includes:
[0094] Determine the downPcOffset according to the following formula;
[0095] downPcOffset=downSlotOffset+downSlotId*T
[0096] Wherein, downSlotOffset is the offset between the receiving time of the measurement message and the starting time of the receiving time slot, downSlotId is the identifier of the receiving time slot of the measurement message, and T is the periodic template of the upstream node.
[0097] Furthermore, before sending the parameter corresponding to the deviation information to the control plane, the method further includes:
[0098] According to the following formula, the physical period deviation value is determined;
[0099] Using the physical period deviation value as the deviation information;
[0100] Δ PC =Δ HC %(upSlotNum*T)
[0101] Among them, Δ PC is the physical period deviation value, Δ HC is the super period deviation value.
[0102] S342: Use the period deviation value as the deviation information.
[0103] S350: Send the deviation information to the control plane.
[0104] Optionally, the deviation information includes a period deviation value, that is, the forwarding plane calculates the period deviation value and sends it to the control plane. The control plane does not need to calculate and can perform accurate scheduling based on the received period deviation.
[0105] There is no limitation on the way downstream nodes send information to the control plane. For example, the information can be sent by extending the Interior Gateway Protocol / Boarder Gateway Protocol Link State (IGP / BGP-LS) protocol, extending the Path Computation Element Communication Protocol (PCEP) protocol, extending the network configuration NETCONF notification and yang structure, or using telemetry information monitoring technology.
[0106] Optionally, the deviation information is sent via a measurement information notification message. Figure 2b and Figure 2c An encapsulation example for a measurement information notification message is shown.
[0107] For example, the Intermediate System to Intermediate System (ISIS) protocol can be extended to add two link attribute sub-threshold limits (sub-TLVs). One sub-TLV type represents carrying original measurement information, and the other sub-TLV type represents carrying measurement calculation result information.
[0108] like Figure 2b As shown in the figure, the length field value of the first sub-TLV is 24, in bytes, and each field occupies 2 bytes. The information sent includes measurement type indication, period template, total number of rounds, total number of time slots, upstream sending rounds, downstream receiving rounds, upstream sending time slots, downstream receiving time slots, upstream sending time slot start offset, and downstream receiving time slot start offset.
[0109] like Figure 2c As shown in the figure, the length field value of the second sub-TLV is 12, in bytes. Each field occupies 2 bytes. The information sent includes the calculation results of the super period deviation and the physical period deviation.
[0110] In a possible implementation manner, after determining the period deviation value, the method further includes:
[0111] The corresponding relationship between the measurement type, the period template and the period deviation value is recorded.
[0112] Optionally, a storage table is maintained locally to record the correspondence between the measurement type, the period template and the period deviation value, and is used to record the super period deviation and physical period deviation measurement results corresponding to each template, as shown in Table 1 below.
[0113] Table 1
[0114]
[0115] By recording the corresponding relationship between the measurement type, the period template and the period deviation value, it is possible to determine the period deviation in subsequent steps or to judge whether the parameter needs to be reported to the control plane.
[0116] In a possible implementation manner, sending the deviation information to a control plane includes: when the period deviation value exceeds a threshold, sending the period deviation information to the control plane.
[0117] For example, when a new measurement message of the same type is received and a measurement result is obtained, the locally maintained table entry is first searched. If the stored value is empty or the deviation between the new measurement result and the stored value is greater than a specified threshold (for example, 10ns), the new measurement result is pushed to the controller; if a stored value already exists and the deviation between the new measurement result and the stored value is less than or equal to the specified threshold, only the local storage table entry is updated.
[0118] By timely updating the local storage values, the accuracy of the values stored in the local storage table can be improved.
[0119] In a possible implementation manner, after receiving the measurement message sent by the upstream node, the method further includes:
[0120] When the number of time slots included in the periodic template of the upstream node is not equal to the number of time slots included in the periodic template of the downstream node, or when the number of periodic rounds included in the super period of the upstream node is not equal to the number of periodic rounds included in the super period of the downstream node, the measurement message is discarded.
[0121] The measurement message sent by the upstream node and the measurement message received by the downstream node should include the same number of time slots and / or the same number of rounds. In other words, when the number of time slots and / or rounds included in the measurement message sent by the upstream node and the measurement message received by the downstream node are not equal, the application of the measurement message cannot accurately obtain the corresponding cycle deviation information. For example, when the downstream node determines that upSlotNum≠downSlotNum or upCycleNum≠downCycleNum, the measurement message is discarded.
[0122] Optionally, when the downstream node cannot identify the type of the measurement message or does not support the periodic template carried by the message, the measurement message is discarded.
[0123] In a possible implementation, the measurement message is obtained by extending a predetermined message; or the type of the measurement message is carried in a message header of a predetermined network layer, and the predetermined network layer includes: physical layer, layer 2 or layer 3. The measurement message can be a message of various types, such as an extended Pause message, a Y.1731OAM message, etc. The measurement message can be extended in various ways, and some common layer 2 message extensions are taken as examples below.
[0124] See also Figure 2dThe standard Ethernet message format is shown. The Ethernet message consists of a 7-byte preamble, a 1-byte Start Frame Delimiter (SFD), no less than 60 bytes of data DATA content, and a 4-byte Cyclic Redundancy Check (CRC) field. For ordinary Ethernet messages, the SFD field value is 0xD5. There are multiple values in the SFD field, allowing flexible definition of message types. For example, the SFD value of the frame preemption negotiation verification Verify message can be defined as 0x07, and the SFD value of the frame preemption negotiation response Respond message can be defined as 0x19. It is stipulated that the DATA field in the Verify message is 60 bytes of all 0s, and the DATA does not carry the Media Access Control (MAC) header information. The message will not be forwarded by the downstream node.
[0125] Optionally, the value of the SFD field is redefined to indicate that the message is a measurement message. For example, SFD is defined as 0x80 to indicate that only the physical cycle deviation is measured, 0x82 to indicate that only the super cycle deviation is measured, and 0x88 to indicate that both the physical cycle and super cycle deviation are measured. 12 bytes of the 60-byte DATA field are allocated to carry the encapsulation information of the upstream message, and each field is 2 bytes, such as Figure 2d (a) shown.
[0126] Figure 2e The basic encapsulation format of the Y.1731 OAM message header is shown. For standard Ethernet messages, when the EtherType value is 0x8902, it indicates that the DATA field carries operations administration and maintenance (OAM) information. Furthermore, the OAM type of the message is defined according to the OpCode field. For example, OpCode = 0x45 is used to specify one-way delay detection. In this embodiment, the remaining OpCode values can also be used to specify the measurement type of OAM. For example, OpCode = 0x88 indicates that both super-cycle and physical cycle deviation measurements are performed simultaneously. Similarly, the DATA field of the OAM message can be used to encode information such as the time slot of the upstream node, which occupies a total of 12 bytes, and the remaining bit space of DATA is reserved.
[0127] Figure 2f(a) shows the standard PAUSE frame format. In the Ethernet standard, the PAUSE frame notifies the peer device to stop sending messages. When EtherType = 0x8808, it indicates that the Ethernet message is a MAC control message. The value of the MAC control OpCode field indicates the specific MAC control type. For example, when OpCode = 0x0001, it indicates an 802.3x PAUSE frame. When OpCode = 0x0101, it indicates a PFC PAUSE frame. The receiving end starts the flow control operation after receiving the PAUSE frame, and then discards the PAUSE frame message. In the 802.3PAUSE message frame format, the operation parameter yy-yy is the time when the PAUSE sender requests the other party to stop sending data frames. The DATA field defaults to a reserved field. The PAUSE frame can be extended to indicate a special SP message, such as Figure 2f As shown in (b), the operation parameter can be set to 0x0000 to indicate that the PAUSE frame is a special defined message. Since the operation parameter value is 0, the message sending of the other end will not be paused, and the number of deterministic messages and the periodic template type are carried in the reserved field. The OpCode field can also be redefined to use a new MAC control frame as the measurement message of the present invention, such as Figure 2f (c). The specific format of the information carried is not described in detail.
[0128] In addition, the measurement message type can be specified by defining a special source MAC address, destination MAC address or EtherType, and the above information can be directly carried in the DATA of the Ethernet message. The specific method will not be repeated. The field values and encapsulation format of the above measurement message are only used for examples and are not intended to limit the present invention.
[0129] In a possible implementation manner, the method for measuring the periodic deviation further includes: receiving a target indication of the control plane, wherein the target indication is used to indicate at least one of the following:
[0130] Whether the measurement process is enabled;
[0131] The measurement type corresponding to the measurement message;
[0132] The sending frequency of the measurement message;
[0133] The number of times the measurement message is sent.
[0134] The control plane specifies the above parameters related to the measurement message through the target indication, that is, the control plane can control the measurement process of the cycle deviation through the target indication.
[0135] In a possible implementation manner, the method for measuring the period deviation further includes: determining at least one of the following according to the type of the downstream node:
[0136] Whether the measurement process is enabled;
[0137] The measurement type corresponding to the measurement message;
[0138] The sending frequency of the measurement message;
[0139] The number of times the measurement message is sent.
[0140] The downstream node automatically selects or sets the above measurement-related parameters according to the node type, that is, the measurement process of the period deviation can be controlled by the downstream node.
[0141] In one possible implementation, see Figure 2g A flowchart of a downstream node locally calculating and reporting a measurement result to a control plane is shown, and the embodiment includes:
[0142] Step S301, the downstream node receives the measurement message, extracts the message header field to determine the measurement message type and extracts other parameters carried by the message such as the cycle template T, upSlotId, upSlotNum, and upCycleId. Step S302, the downstream node extracts local reception parameters such as downSlotNum and downCycleNum according to the measurement type and the cycle template. Step S303, the downstream node determines the validity of the measurement message according to whether upSlotNum is equal to downSlotNum and whether upCycleNum is equal to downCycleNum; if upSlotNum≠downSlotNum or upCycleNum≠downCycleNum, the measurement message is invalid, the measurement message is discarded, and the measurement ends; otherwise, if upSlotNum=downSlotNum and upCycleNum=downCycleNum, step S304 is executed, and the downstream node extracts local parameters such as downCycleId, downSlotId, and DownSlotOffset. In step S305, the downstream node obtains the corresponding deviation value according to the formula according to the measurement type indication and the information obtained, and extracts the local storage value from the local storage table. In step S306, by judging the relationship between the difference between the local storage value and the calculation result and the predetermined threshold, it is determined whether to store the calculation value, and the measurement result is reported to the control plane.
[0143] Optionally, a method for calculating the period deviation according to the formula is shown below. Figure 2h, assuming that the upstream node ID is node1 and the downstream node ID is node2. The upstream node and the downstream node both support the cycle template T=10us, the number of physical cycle time slots is 4, both nodes support super cycle, and the number of super cycle physical cycle rounds is 3. Assuming that the upstream and downstream nodes are enabled to measure the physical cycle deviation and super cycle deviation functions, the upstream node constructs and sends a measurement message, which carries the information described in the invention content, and the values are as follows: the upstream sending round upCycleId is 0, the upstream sending time slot upSlotId is 1, and the upstream sending time slot start offset upSlotOffset is 5us.
[0144] When the measurement message arrives at the downstream node, the personal communication system (PCS) type field, EtherType or OpCode are parsed to identify the message type. The downstream node node2 supports the same cycle template and prompts relevant information as required. Assume that the downstream node's receiving window information is: the downstream receiving round downCycleId is 1, the downstream receiving time slot downSlotId is 2, and the downstream receiving time slot start offset downSlotOffset is 3us. Assume that the link delay is 103us.
[0145] According to the calculation formula and the measurement message type indication described in the content of the invention, the calculation process of the physical period deviation value is:
[0146] The supercycle size is:
[0147] HC=upSlotNum*upCycleNum*T=120
[0148] The super-period start offset of the upstream node sending time is:
[0149] upHcOffset=upSlotOffset+upSlotId*T+upCycleId*upSlotNum*T
[0150] =5+1*10+0=15
[0151] The super-period start offset of the downstream node message reception time is:
[0152] downHcOffset=downSlotOffset+downSlotId*T+downCycleId*upSlotNum*T
[0153] =3+2*10+1*4*10=63
[0154] The calculation result of super-period deviation is:
[0155] Δ HC =(linkDelay+upHcOffset+HC-downHcOffset)%HC
[0156] =(103+15+120-63)%120=55
[0157] Then the calculation result of the physical period deviation is:
[0158] Δ PC =Δ HC %(upSlotNum*T)
[0159] =55%(4*10)=15
[0160] from Figure 2h It can be seen that the calculation result is the same as the actual period deviation value. After the calculation is completed, the calculation result is stored locally, as shown in Table 2 below.
[0161] Table 2
[0162]
[0163] The method for measuring cycle deviation provided by an embodiment of the present invention receives a measurement message sent by an upstream node, wherein the measurement message is used to indicate the deviation information between the start time of the cycle of the downstream node and the start time of the cycle corresponding to the upstream node, and the cycle includes a physical cycle or a super cycle; determines the receiving parameters corresponding to the measurement message; determines the deviation information according to the parameters carried in the measurement message and the receiving parameters; and sends the deviation information to the control plane, so that the control plane can determine the cycle deviation and accurately arrange it based on the upper and lower bounds of the delay.
[0164] Figure 3 A schematic flow chart showing a method for measuring a cycle deviation according to another embodiment of the present invention is shown, which can be applied to a network device side, such as a control plane or controller in a communication process. Figure 3 As shown, the method includes:
[0165] S410: Receive deviation information sent by the downstream node.
[0166] In a possible implementation, the deviation information includes: parameters carried in a measurement message sent by an upstream node, reception parameters of the measurement message received by a downstream node, and a link delay between the upstream node and the downstream node; or a deviation value between a cycle start time of a downstream node and a cycle start time corresponding to an upstream node; wherein the cycle includes a physical cycle or a super cycle.
[0167] The above steps can be used Figure 2a or Figure 2a The same or similar descriptions of the embodiments will not be repeated any more.
[0168] In a possible implementation manner, the period of the upstream node includes: a physical period or a super period, and the parameter carried by the measurement message includes at least one of the following parameters:
[0169] A measurement type, wherein the measurement type includes deviation information of a measurement physical period and / or deviation information of a measurement super period;
[0170] The cycle template of the upstream node;
[0171] The number of time slots included in the cycle template of the upstream node;
[0172] An identifier of a time slot for sending the measurement message;
[0173] The offset between the sending time of the measurement message and the starting time of the sending time slot.
[0174] In a possible implementation manner, when the period of the upstream node includes a super period, the measurement message carries at least one of the following parameters:
[0175] The period round identifier included in the super period of the upstream node;
[0176] The number of periodic rounds included in the super period of the upstream node.
[0177] In a possible implementation manner, the period of the downstream node includes: a physical period or a super period, and the receiving parameter includes at least one of the following:
[0178] The number of time slots included in the periodic template of the downstream node;
[0179] An identifier of a receiving time slot of the measurement message;
[0180] The offset between the reception time of the measurement message and the start time of the reception time slot.
[0181] In a possible implementation manner, when the period of the downstream node includes a super period, the receiving parameter further includes at least one of the following:
[0182] The period round identifier of the receiving period of the measurement message in the super period;
[0183] The number of periodic rounds included in the super period of the downstream node.
[0184] In a possible implementation manner, when the deviation information includes a parameter carried in a measurement message sent by an upstream node, a reception parameter of the measurement message received by a downstream node, and a link delay between the upstream node and the downstream node, after receiving the deviation information, the method further includes:
[0185] The cycle deviation value is determined according to the cycle size, the link delay, the offset between the sending time of the measurement message and the starting time of the sending cycle, and the offset between the receiving time of the measurement message and the starting time of the receiving cycle.
[0186] In a possible implementation manner, the method for measuring the period deviation further includes: sending a target indication to the downstream node, wherein the target indication is used to indicate at least one of the following:
[0187] Whether the measurement process is enabled;
[0188] The measurement type corresponding to the measurement message;
[0189] The sending frequency of the measurement message;
[0190] The number of times the measurement message is sent.
[0191] Combination of the above Figure 3 A method for measuring period deviation according to another embodiment of the present invention is described. Figure 1a and 3 The interaction between the forwarding plane and the control plane described on the downstream node side is Figure 3 The description of the control plane side in the method shown is the same, and to avoid repetition, the relevant description is appropriately omitted.
[0192] Figure 4 is a schematic diagram of the structure of a device for measuring period deviation according to an embodiment of the present invention. Figure 4 As shown, the apparatus 500 for measuring period deviation includes: a first receiving module 510 , a first determining module 520 , a second determining module 530 and a sending module 540 .
[0193] The first receiving module 510 is used to receive a measurement message sent by an upstream node, wherein the measurement message is used to indicate deviation information between a start time of a cycle of a downstream node and a start time of a cycle corresponding to the upstream node, and the cycle includes a physical cycle or a super cycle; the first determining module 520 is used to determine a receiving parameter corresponding to the measurement message; the second determining module 530 is used to determine a receiving parameter corresponding to the measurement message; and the sending module 540 is used to send the deviation information to a control plane.
[0194] In a possible implementation manner, the measurement message carries at least one of the following parameters:
[0195] A measurement type, wherein the measurement type includes deviation information of a measurement physical period and / or deviation information of a measurement super period;
[0196] The cycle template of the upstream node;
[0197] The number of time slots included in the cycle template of the upstream node;
[0198] An identifier of a time slot for sending the measurement message;
[0199] The offset between the sending time of the measurement message and the starting time of the sending time slot.
[0200] In a possible implementation manner, when the period of the upstream node includes a super period, the measurement message carries at least one of the following parameters:
[0201] The period round identifier included in the super period of the upstream node;
[0202] The number of periodic rounds included in the super period of the upstream node.
[0203] In a possible implementation manner, the period of the downstream node includes: a physical period or a super period, and the receiving parameter includes at least one of the following:
[0204] The number of time slots included in the periodic template of the downstream node;
[0205] An identifier of a receiving time slot of the measurement message;
[0206] The offset between the reception time of the measurement message and the start time of the reception time slot.
[0207] In a possible implementation manner, when the period of the downstream node includes a super period, the receiving parameter further includes at least one of the following:
[0208] The period round identifier of the receiving period of the measurement message in the super period;
[0209] The number of periodic rounds included in the super period of the downstream node.
[0210] In a possible implementation manner, the deviation information includes the parameter carried in the measurement message, the reception parameter, and a link delay between the upstream node and the downstream node.
[0211] In a possible implementation, the device for measuring the cycle deviation further includes a third determination module, which is used to determine the cycle deviation value according to the cycle size, the link delay, the offset between the sending time of the measurement message and the starting time of the sending cycle, and the offset between the receiving time of the measurement message and the starting time of the receiving cycle; the cycle deviation value includes a physical cycle deviation value or a super cycle deviation value;
[0212] The period deviation value is used as the deviation information.
[0213] In a possible implementation, the apparatus for measuring period deviation further includes a recording module, which is used to record the corresponding relationship between the measurement type, the period template and the period deviation value.
[0214] In a possible implementation manner, the sending module 540 is configured to send the period deviation information to a control plane when the period deviation value exceeds a threshold.
[0215] In one possible implementation, the device for measuring the periodic deviation is also used to discard the measurement message when the number of time slots included in the periodic template of the upstream node is not equal to the number of time slots included in the periodic template of the downstream node, or when the number of periodic rounds included in the super period of the upstream node is not equal to the number of periodic rounds included in the super period of the downstream node.
[0216] In a possible implementation manner, the measurement message is obtained by extending a predetermined message; or the type of the measurement message is carried in a message header of a predetermined network layer, and the predetermined network layer includes: a physical layer, a second layer, or a third layer.
[0217] In a possible implementation manner, the apparatus for measuring the periodic deviation is further used to receive a target indication of the control plane, wherein the target indication is used to indicate at least one of the following:
[0218] Whether the measurement process is enabled;
[0219] The measurement type corresponding to the measurement message;
[0220] The sending frequency of the measurement message;
[0221] The number of times the measurement message is sent.
[0222] In a possible implementation manner, the device for measuring the period deviation is further used to determine at least one of the following according to the type of the downstream node:
[0223] Whether the measurement process is enabled;
[0224] The measurement type corresponding to the measurement message;
[0225] The sending frequency of the measurement message;
[0226] The number of times the measurement message is sent.
[0227] The device for measuring the periodic deviation in the embodiment of the present application can be a device, a device or electronic device with an operating system, or a component, an integrated circuit, or a chip in a terminal. The device or electronic device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device can be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0228] The device 500 according to the embodiment of the present invention can refer to the corresponding Figure 1a to Figure 2h The steps of the embodiment, and the various units / modules in the device 500 and the above-mentioned other operations and / or functions are respectively for implementing the method Figure 1a to Figure 2h The corresponding steps in the embodiment can achieve the same or equivalent technical effects, and for the sake of brevity, they will not be repeated here.
[0229] Figure 5 is a schematic diagram of the structure of a device for measuring period deviation according to an embodiment of the present invention. Figure 5 As shown, the apparatus 600 for measuring period deviation includes: a second receiving module 610 .
[0230] The second receiving module 610 is used to receive deviation information sent by the downstream node, wherein the deviation information includes: parameters carried in the measurement message sent by the upstream node, reception parameters of the measurement message received by the downstream node, and the link delay between the upstream node and the downstream node; or the deviation value between the cycle start time of the downstream node and the cycle start time corresponding to the upstream node; wherein the cycle includes a physical cycle or a super cycle.
[0231] In a possible implementation manner, the period of the upstream node includes: a physical period or a super period, and the parameter carried by the measurement message includes at least one of the following parameters:
[0232] A measurement type, wherein the measurement type includes deviation information of a measurement physical period and / or deviation information of a measurement super period;
[0233] The cycle template of the upstream node;
[0234] The number of time slots included in the cycle template of the upstream node;
[0235] An identifier of a time slot for sending the measurement message;
[0236] The offset between the sending time of the measurement message and the starting time of the sending time slot.
[0237] In a possible implementation manner, when the period of the upstream node includes a super period, the measurement message carries at least one of the following parameters:
[0238] The period round identifier included in the super period of the upstream node;
[0239] The number of periodic rounds included in the super period of the upstream node.
[0240] In a possible implementation manner, the period of the downstream node includes: a physical period or a super period, and the receiving parameter includes at least one of the following:
[0241] The number of time slots included in the periodic template of the downstream node;
[0242] An identifier of a receiving time slot of the measurement message;
[0243] The offset between the reception time of the measurement message and the start time of the reception time slot.
[0244] In a possible implementation manner, when the period of the downstream node includes a super period, the receiving parameter further includes at least one of the following:
[0245] The period round identifier of the receiving period of the measurement message in the super period;
[0246] The number of periodic rounds included in the super period of the downstream node.
[0247] In a possible implementation manner, when the deviation information includes a parameter carried in a measurement message sent by an upstream node, a reception parameter of the measurement message received by a downstream node, and a link delay between the upstream node and the downstream node, the device for measuring the cycle deviation is further used to:
[0248] The cycle deviation value is determined according to the cycle size, the link delay, the offset between the sending time of the measurement message and the starting time of the sending cycle, and the offset between the receiving time of the measurement message and the starting time of the receiving cycle.
[0249] In a possible implementation manner, the apparatus for measuring the period deviation is further used to: send a target indication to the downstream node, wherein the target indication is used to indicate at least one of the following:
[0250] Whether the measurement process is enabled;
[0251] The measurement type corresponding to the measurement message;
[0252] The sending frequency of the measurement message;
[0253] The number of times the measurement message is sent.
[0254] The device 600 according to the embodiment of the present invention can refer to the corresponding Figure 3 The steps are as follows, and the various units / modules in the device 600 and the above-mentioned other operations and / or functions are respectively for implementing the method Figure 3 The corresponding steps in the embodiment can achieve the same or equivalent technical effects, and for the sake of brevity, they will not be repeated here.
[0255] Optional, such as Figure 6 As shown, the embodiment of the present application also provides a network device 700, including a processor 701, a memory 702, and a program or instruction stored in the memory 702 and executable on the processor 701. For example, when the network device 700 is a terminal, the program or instruction is executed by the processor 701 to implement the various processes of the above-mentioned method embodiment for measuring periodic deviation, and the same technical effect can be achieved. When the network device 700 is a network side device, the program or instruction is executed by the processor 701 to implement the various processes of the above-mentioned method embodiment for measuring periodic deviation, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0256] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned method embodiment for measuring periodic deviation is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0257] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0258] The present application also provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the above-mentioned Figures 1a to 3 The various processes of the method embodiment can achieve the same technical effect, and to avoid repetition, they will not be described here.
[0259] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0260] The present application also provides a computer program product, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction is executed by the processor to implement the following Figures 1a to 3 The steps of the method for measuring period deviation.
[0261] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0262] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, etc.) to execute the methods described in each embodiment of the present application.
[0263] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A method for measuring period deviation, characterized in that: The method comprises: Receiving a measurement message sent by an upstream node, wherein the measurement message is used to indicate deviation information between a start time of a cycle of the downstream node and a start time of a cycle corresponding to the upstream node, wherein the cycle includes a physical cycle or a super cycle; Determining a receiving parameter corresponding to the measurement message; Determining the deviation information according to the parameters carried in the measurement message and the received parameters; The deviation information is sent to the control plane.
2. The method according to claim 1, characterized in that The measurement message carries at least one of the following parameters: A measurement type, wherein the measurement type includes deviation information of a measurement physical period and / or deviation information of a measurement super period; The cycle template of the upstream node; The number of time slots included in the cycle template of the upstream node; An identifier of a time slot for sending the measurement message; The offset between the sending time of the measurement message and the starting time of the sending time slot.
3. The method according to claim 2, wherein when the period of the upstream node includes a super period, the measurement message carries at least one of the following parameters: The period round identifier included in the super period of the upstream node; The number of periodic rounds included in the super period of the upstream node.
4. The method according to claim 1, characterized in that The period of the downstream node includes: a physical period or a super period, and the receiving parameter includes at least one of the following: The number of time slots included in the periodic template of the downstream node; An identifier of a receiving time slot of the measurement message; The offset between the reception time of the measurement message and the start time of the reception time slot.
5. The method according to claim 4, characterized in that In the case where the period of the downstream node includes a super period, the receiving parameter further includes at least one of the following: The period round identifier of the receiving period of the measurement message in the super period; The number of periodic rounds included in the super period of the downstream node.
6. The method according to claim 1, characterized in that The deviation information includes the parameters carried in the measurement message, the reception parameters, and the link delay between the upstream node and the downstream node.
7. The method according to claim 1, characterized in that Before sending the deviation information to the control plane, the method further includes: Determine a cycle deviation value according to the cycle size, link delay, the offset between the sending time of the measurement message and the starting time of the sending cycle, and the offset between the receiving time of the measurement message and the starting time of the receiving cycle; the cycle deviation value includes a physical cycle deviation value or a super cycle deviation value; The period deviation value is used as the deviation information.
8. The method according to claim 7, characterized in that After determining the period deviation value, the method further includes: The corresponding relationship between the measurement type, the period template and the period deviation value is recorded.
9. The method according to claim 7, characterized in that Sending the deviation information to the control plane includes: When the period deviation value exceeds a threshold, the period deviation information is sent to a control plane.
10. The method according to claim 7, characterized in that After receiving the measurement message sent by the upstream node, the method further includes: When the number of time slots included in the periodic template of the upstream node is not equal to the number of time slots included in the periodic template of the downstream node, or when the number of periodic rounds included in the super period of the upstream node is not equal to the number of periodic rounds included in the super period of the downstream node, the measurement message is discarded.
11. The method according to claim 1, characterized in that The measurement message is obtained by extending a predetermined message; or the type of the measurement message is carried in a message header of a predetermined network layer, and the predetermined network layer includes: a physical layer, a second layer, or a third layer.
12. The method according to claim 1, characterized in that Also includes: receiving a target indication of the control plane, wherein the target indication is used to indicate at least one of the following: Whether the measurement process is enabled; The measurement type corresponding to the measurement message; The sending frequency of the measurement message; The number of times the measurement message is sent.
13. The method according to claim 1, characterized in that Also includes: According to the type of the downstream node, at least one of the following is determined: Whether the measurement process is enabled; The measurement type corresponding to the measurement message; The sending frequency of the measurement message; The number of times the measurement message is sent.
14. A network device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method for measuring period deviation as described in any one of claims 1 to 13.
15. A readable storage medium, characterized in that: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by a processor, the steps of the method for measuring period deviation according to any one of claims 1 to 13 are implemented.
