[go: up one dir, main page]

CN117749664A - Time delay measuring method, electronic device and computer readable medium - Google Patents

Time delay measuring method, electronic device and computer readable medium Download PDF

Info

Publication number
CN117749664A
CN117749664A CN202211114701.9A CN202211114701A CN117749664A CN 117749664 A CN117749664 A CN 117749664A CN 202211114701 A CN202211114701 A CN 202211114701A CN 117749664 A CN117749664 A CN 117749664A
Authority
CN
China
Prior art keywords
message
service
field
delay measurement
timestamp
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211114701.9A
Other languages
Chinese (zh)
Inventor
朱向阳
喻敬海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN202211114701.9A priority Critical patent/CN117749664A/en
Priority to PCT/CN2023/089159 priority patent/WO2024055584A1/en
Publication of CN117749664A publication Critical patent/CN117749664A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • H04L43/106Active monitoring, e.g. heartbeat, ping or trace-route using time related information in packets, e.g. by adding timestamps

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The disclosure provides a delay measurement method applied to a source node, comprising the following steps: generating a time delay measurement Operation Administration and Maintenance (OAM) message according to a time record table, wherein the time record table records the sending time stamp of the service message of the service flow to be tested, and the time delay measurement OAM message carries the sending time stamp information of at least one target service message of the service flow to be tested; and sending the time delay measurement OAM message. A delay measurement method applied to a sink node comprises the following steps: receiving a time delay measurement OAM message, and extracting the sending time stamp information of at least one target service message of a service flow to be tested carried by the time delay measurement OAM message; extracting a receiving time stamp of the target service message from a time record table according to the sending time stamp information of the target service message, wherein the receiving time stamp of the service message of the service stream to be tested is recorded in the time record table; and calculating the time delay of the target service message. The disclosure also provides an electronic device, a computer readable medium.

Description

Time delay measuring method, electronic device and computer readable medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a delay measurement method, an electronic device, and a computer readable medium.
Background
The internet engineering task force (IETF, the Internet Engineering Task Force) RFC6374 draft proposes an end-to-end multiprotocol label switching (MPLS, multi-Protocol Label Switching) network performance measurement protocol, and quality of service (QoS, quality of Service) indexes supporting measurement include packet loss rate, delay, jitter, throughput, and the like, and two end nodes perform performance measurement by establishing connection and inter-operation management maintenance (OAM, operation Administration and Maintenance) messages, as shown in fig. 1, a source node a sends a Query OAM message to a sink node B, after receiving the Query OAM message, the sink node B optionally sends a Response OAM message back to the source node a, and calculation of performance parameters may be performed at the source node a or at the sink node B.
An encapsulated format of an OAM message in RFC6374 draft is shown in fig. 2, where an OAM message Type carried by the OAM message is indicated by a Channel Type (Channel Type) field value. In the RFC6374 draft, 5 new Channel Type field value indications are defined to carry 5 new OAM messages for passive packet loss measurement, active delay measurement, passive packet loss plus active delay measurement, and active packet loss plus active delay measurement, respectively. The encapsulated format of the OAM packet as shown in fig. 2 further includes a GAL field, a Version (Version) field, a Reserved (Reserved) field, and a G-Ach message field. The OAM message format and measurement method for passive latency measurement are not defined in RFC6374 draft.
When the RFC6374 draft is used for measuring the unidirectional time delay, a source node sends out a time delay measurement OAM message and records a sending time stamp in the OAM message, and a sink node records a receiving time stamp of the OAM message, so that the unidirectional time delay is calculated according to the sending time stamp and the receiving time stamp. However, such an active delay measurement method based on OAM packets has a disadvantage of low accuracy, and in addition, the active delay measurement method may require a large amount of OAM packets to be injected into the network. Deterministic network (DetNet, deterministic Networking) MPLS networks require accurate delay measurement capability, and the use of RFC6374 draft for measuring unidirectional delay of DetNet MPLS traffic fails to meet the requirements of DetNet MPLS networks.
Disclosure of Invention
The embodiment of the disclosure provides a time delay measuring method, electronic equipment and a computer readable medium.
In a first aspect, an embodiment of the present disclosure provides a delay measurement method, including:
generating a time delay measurement OAM message according to a time record table, wherein the time record table records the sending time stamp of the service message of the service flow to be tested, and the time delay measurement OAM message carries the sending time stamp information of at least one target service message of the service flow to be tested;
And sending the time delay measurement OAM message.
In some embodiments, generating the delay measurement OAM message from the time log table includes:
determining the message format of the time delay measurement OAM message;
extracting the sending time stamp of the target service message from the time record table according to the message format;
and constructing the time delay measurement OAM message according to the message format, wherein the time delay measurement OAM message carries the sending time stamp information and the message format information of each target service message.
In some embodiments, the delay measurement OAM packet includes a message format field, a traffic flow identification field, a timestamp information field;
the value of the message format field characterizes the message format;
the service flow identification field carries a service flow identification of the service flow to be tested;
and the timestamp information field carries the sending timestamp information of each target service message.
In some embodiments, the timestamp information field includes a starting message sequence number field, a starting timestamp field, a sequence number interval field, a sequence number field, and a timestamp offset field, where each of the target service messages corresponds to one of the timestamp offset fields;
The initial message sequence number field carries the sequence number of the first target service message, wherein each target service message is ordered according to the sequence number;
the initial timestamp field carries a sending timestamp of the first target service message;
the value of the sequence number interval field represents the difference value of the sequence numbers of two adjacent target service messages;
the value of the sequence number field characterizes the number of sequence numbers carried by the time delay measurement OAM message;
the value of the timestamp offset field characterizes the offset value of the sending timestamp of the corresponding target service message relative to the first target service message.
In some embodiments, the timestamp information field includes a sequence number field, and a timestamp field, where each of the target service packets corresponds to one of the sequence number field and one of the timestamp field;
the value of the sequence number field characterizes the number of sequence numbers carried by the time delay measurement OAM message;
the sequence number field carries the sequence number of the corresponding target service message;
and the timestamp field carries a corresponding sending timestamp of the target service message.
In some embodiments, the delay measurement OAM message further includes a message type field;
the message type field carries a value characterizing that the type of the delay measurement OAM message is a passive delay measurement OAM message.
In some embodiments, determining the message format of the delay measurement OAM message includes:
and determining the message format according to the time recording rule corresponding to the service flow to be detected.
In some embodiments, extracting the transmission timestamp of the at least one target service message from the time record table includes:
determining the serial number of each target service message according to the message format;
and extracting the sending time stamp of the target service message from the time record table by taking the service flow identifier of the service flow to be detected and the serial number of the target service message as indexes.
In some embodiments, before generating the delay measurement OAM message according to the time record table, the method further includes:
when the service message of the service flow to be tested is sent, the sending time stamp of the service message is recorded in the time record table.
In some embodiments, recording the sending timestamp of the service message in the time recording table includes:
Determining a time recording rule of the service flow to be tested;
recording a service flow identifier of a service flow to be tested, a serial number of a first service message and a sending time stamp of the first service message into the time recording table according to a time recording rule of the service flow to be tested, wherein the first service message is a service message meeting the time recording rule of the service flow to be tested in the service flow to be tested.
In some embodiments, determining the time recording rule of the service flow to be measured includes:
and determining the time recording rule of the service flow to be detected according to a time recording rule table, wherein the time recording rule table is configured with the time recording rule of the service flow.
In some embodiments, the time recording rule comprises:
recording a sending time stamp of each service message of the service flow to be tested;
recording the sending time stamp of the service message according to the preset sequence number interval by taking the service message with the sequence number in the service stream to be tested as a starting point;
and continuously recording the sending time stamps of the service messages with a preset number by taking the service messages with the sequence numbers in the service flow to be tested as a starting point.
In a second aspect, an embodiment of the present disclosure provides a delay measurement method, including:
Receiving a time delay measurement OAM message, and extracting the sending time stamp information of at least one target service message of a service flow to be tested carried by the time delay measurement OAM message;
extracting a receiving time stamp of the target service message from a time record table according to the sending time stamp information of the target service message, wherein the receiving time stamp of the service message of the service stream to be tested is recorded in the time record table;
and calculating the time delay of the target service message.
In some embodiments, extracting the transmission timestamp information of the at least one target service packet of the service flow to be measured carried by the delay measurement OAM packet includes:
determining the message format of the time delay measurement OAM message according to the message format information carried by the time delay measurement OAM message;
and extracting the sending time stamp information of each target service message from the time delay measurement OAM message according to the message format.
In some embodiments, the delay measurement OAM packet includes a message format field, a traffic flow identification field, a timestamp information field; extracting the sending timestamp information of at least one target service message of the service flow to be measured carried by the time delay measurement OAM message comprises the following steps:
Determining the message format of the delay measurement OAM message according to the value of the message format field;
extracting a service flow identifier of the service flow to be detected, which is carried by the service flow identifier field;
and extracting the sequence number and the sending timestamp of the target service message from the timestamp information field according to the message format.
In some embodiments, the timestamp information field includes a starting message sequence number field, a starting timestamp field, a sequence number interval field, a sequence number field, and a timestamp offset field, where each of the target service messages corresponds to one of the timestamp offset fields; extracting the sequence number and the sending timestamp of the target service message from the timestamp information field according to the message format, wherein the sequence number and the sending timestamp comprise:
determining the number of sequence numbers carried by the time delay measurement OAM message according to the value of the sequence number field;
extracting the sequence number of the first target service message carried by the sequence number field of the initial message, wherein the target service messages are ordered according to the sequence number;
extracting a sending time stamp of the first target service message carried by the starting time stamp field;
Determining the sequence number of each target service message according to the sequence number of the first target service message and the value of the sequence number interval field;
and determining the sending time stamp of each target service message according to the sending time stamp of the first target service message and the value of the time stamp offset field corresponding to each target service message.
In some embodiments, the timestamp information field includes a sequence number field, and a timestamp field, where each of the target service packets corresponds to one of the sequence number field and one of the timestamp field; extracting the sequence number and the sending timestamp of the target service message from the timestamp information field according to the message format, wherein the sequence number and the sending timestamp comprise:
determining the number of sequence numbers carried by the time delay measurement OAM message according to the value of the sequence number field;
extracting the sequence number of the corresponding target service message carried by the sequence number field;
and extracting the sending time stamp of the corresponding target service message carried by the time stamp field.
In some embodiments, extracting the receiving timestamp of the target service message from the time record table according to the sending timestamp information of the target service message includes:
And extracting the receiving time stamp of the target service message from the time record table by taking the service flow identifier of the service flow to be detected and the sequence number of the target service message as indexes.
In some embodiments, the delay measurement OAM message further includes a message type field; receiving a time delay measurement OAM message, extracting the sending timestamp information of at least one target service message of a service flow to be tested carried by the time delay measurement OAM message, and comprising the following steps:
receiving the time delay measurement OAM message;
and extracting the sending time stamp information of at least one target service message of the service flow to be tested carried by the time delay measurement OAM message under the condition that the value of the message type field represents that the type of the time delay measurement OAM message is a passive time delay measurement OAM message.
In some embodiments, the method further comprises:
when receiving the service message of the service flow to be tested, recording the receiving time stamp of the service message in the time record table.
In some embodiments, recording the reception timestamp of the service message in the time recording table includes:
determining a time recording rule of the service flow to be tested;
recording a service flow identifier of a service flow to be tested, a serial number of a second service message and a receiving timestamp of the second service message into the time recording table according to a time recording rule of the service flow to be tested, wherein the second service message is a service message meeting the time recording rule of the service flow to be tested in the service flow to be tested.
In some embodiments, determining the time recording rule of the service flow to be measured includes:
and determining the time recording rule of the service flow to be detected according to a time recording rule table, wherein the time recording rule table is configured with the time recording rule of the service flow.
In some embodiments, the time recording rule comprises:
recording a receiving time stamp of each service message of the service flow to be tested;
recording the receiving time stamp of the service message according to the preset sequence number interval by taking the service message with the sequence number in the service stream to be tested as a starting point;
and continuously recording the receiving time stamps of a predetermined number of service messages by taking the service messages with the sequence numbers in the service flow to be tested as a starting point.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
one or more processors;
and a memory having one or more programs stored thereon, which when executed by the one or more processors, cause the one or more processors to implement the latency measurement method according to the first aspect of the embodiments of the present disclosure and/or the latency measurement method according to the second aspect of the embodiments of the present disclosure.
In a fourth aspect, embodiments of the present disclosure provide a computer readable medium having stored thereon a computer program which, when executed by a processor, implements the method of latency measurement described in the first aspect of embodiments of the present disclosure and/or the method of latency measurement described in the second aspect of embodiments of the present disclosure.
In the embodiment of the disclosure, the sending time stamp of the service message of the service flow to be measured is recorded in the time record table of the source node of the service flow to be measured, the receiving time stamp of the service message of the service flow to be measured is recorded in the time record table of the sink node, when the time delay measurement is carried out on the service flow to be measured, the time delay measurement OAM message carrying the sending time stamp information of at least one target service message is generated according to the time record table, and the sending time stamp of the target service message is sent to the sink node by the sending time delay measurement OAM message, so that the sink node can calculate the real time delay of the target message according to the sending time stamp and the receiving time stamp, thereby realizing passive time delay measurement, improving the precision of time delay measurement, avoiding the influence of time delay measurement on normal service without injecting a large amount of OAM messages into a network.
Drawings
Fig. 1 is an end-to-end performance measurement OAM message interaction schematic;
Fig. 2 is a schematic diagram of an OAM message format;
FIG. 3 is a flow chart of a method of delay measurement;
FIG. 4 is a flow chart of some steps of another delay measurement method;
fig. 5 is a flow chart of a method of delay measurement;
FIG. 6 is a flow chart of some steps of another delay measurement method;
FIG. 7 is a block diagram of an electronic device;
FIG. 8 is a block diagram of the components of a computer readable medium;
FIG. 9 is a schematic diagram of a time recording table;
FIG. 10 is a schematic diagram of a time recording rule table;
fig. 11 is a schematic diagram of a delay measurement OAM message format;
FIG. 12 is a schematic illustration of a time recording table;
fig. 13 is a schematic diagram of a delay measurement OAM message format;
FIG. 14 is a schematic illustration of a time recording table;
fig. 15 is a schematic diagram of a delay measurement OAM message format.
Detailed Description
In order to better understand the technical solutions of the present disclosure, the time delay measurement method, the electronic device and the computer readable medium provided by the present disclosure are described in detail below with reference to the accompanying drawings.
Example embodiments will be described more fully hereinafter with reference to the accompanying drawings, but may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Embodiments of the disclosure and features of embodiments may be combined with each other without conflict.
As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used herein, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and the present disclosure, and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
In a first aspect, referring to fig. 3, an embodiment of the present disclosure provides a delay measurement method, including:
s11, generating a time delay measurement OAM message according to a time record table, wherein a transmission time stamp of a service message of a service flow to be tested is recorded in the time record table, and the time delay measurement OAM message carries transmission time stamp information of at least one target service message of the service flow to be tested;
s12, sending the time delay measurement OAM message.
In some embodiments, the generating of the delay measurement OAM message based on the OAM message format of the RFC6374 protocol specifically refers to improving the OAM message format specified by the RFC6374 protocol, so that the delay measurement OAM message can carry the sending timestamp information of at least one target service message of the service flow to be measured, thereby enabling passive delay measurement.
In the embodiment of the disclosure, when a source node of a service flow to be tested sends a service message, a sending timestamp of the service message is recorded in a time record table. And when the time delay of the service message of the service flow to be measured is measured, generating a time delay measurement OAM message carrying the sending time stamp information of at least one target service message according to the time record table. It should be noted that the target service message refers to one of the service messages recorded with the transmission time stamp in the time record table.
In the embodiment of the present disclosure, sending the delay measurement OAM packet refers to sending the delay measurement OAM packet from a source node of a service flow to be measured to a sink node of the service flow to be measured.
The embodiment of the disclosure does not particularly limit the timestamp information carried by the delay measurement OAM message. The time stamp information is information enabling the sink node to determine the transmission time stamp of the target service message.
It should be noted that, in the embodiment of the present disclosure, when performing delay measurement, a sending timestamp of a service packet of a service flow to be measured is sent to a destination node by a source node by sending a delay measurement OAM packet, and the delay of a real service packet of the service flow to be measured is measured instead of the delay of the OAM packet, thereby implementing passive delay measurement.
In the delay measurement method provided by the embodiment of the disclosure, the transmission time stamp of the service message of the service flow to be measured is recorded in the time record table of the source node of the service flow to be measured, when the delay measurement is performed on the service flow to be measured, the delay measurement OAM message carrying the transmission time stamp information of at least one target service message is generated according to the time record table, and the transmission time stamp of the target service message is transmitted to the sink node by the transmission time stamp measurement OAM message, so that the sink node can calculate the real delay of the target message, thereby realizing passive delay measurement, improving the precision of delay measurement, avoiding the influence of delay measurement on normal service because of massive injection of OAM messages into the network.
The embodiment of the disclosure does not particularly limit how the delay measurement OAM message carries the transmission rate timestamp information, and the format of the delay measurement OAM message.
In some embodiments, generating the delay measurement OAM message from the time log table includes: determining the message format of the time delay measurement OAM message; extracting the sending time stamp of the target service message from the time record table according to the message format; and constructing the time delay measurement OAM message according to the message format, wherein the time delay measurement OAM message carries the sending time stamp information and the message format information of each target service message.
It should be noted that, in the embodiment of the present disclosure, determining the message format of the delay measurement OAM packet refers to a process of planning the target service packet carried by the delay measurement OAM packet. For example, determining the number of time stamps of the target service message carried by the delay measurement OAM message, determining the sequence number of the carried target service message, determining the manner of carrying the transmission time stamp information, and the like, which are not particularly limited in the embodiments of the present disclosure.
After the message format of the delay measurement OAM message is determined, namely, after the target service message carried by the delay measurement OAM message is planned, the sending timestamp of the target service message can be extracted from the time record table according to the message format, and the delay measurement OAM message is constructed according to the message format.
The embodiment of the disclosure defines an OAM message format for passive delay measurement, and can carry the sending timestamp information of the target service message.
In some embodiments, the delay measurement OAM packet includes a message format field, a traffic flow identification field, a timestamp information field; the value of the message format field characterizes the message format; the service flow identification field carries a service flow identification of the service flow to be tested; and the timestamp information field carries the sending timestamp information of each target service message.
It should be noted that, in the embodiment of the present disclosure, the formats of the timestamp information fields in the delay measurement OAM messages corresponding to different message formats are different, that is, different message formats represent different timestamp information carrying manners.
In some embodiments, the message format field, the traffic flow identification field are defined in a fixed header and the timestamp information field is defined in a variable portion.
In some embodiments, the delay measurement OAM packet in the embodiments of the present disclosure is defined based on an improvement of the OAM protocol of RFC6374 draft, and the meaning of a Version (Version) field, a Flags (Flags) field, a Control Code (Control Code) field, a Message Length (Message Length) field, a QTF field, a session identification (Session Identifier) field, and a DS field in the fixed header of the delay measurement OAM packet in the embodiments of the present disclosure is consistent with the active delay measurement OAM packet encapsulation in the OAM protocol of RFC6374 draft. The OAM protocol based on the RFC6374 draft is improved to define a time delay measurement OAM message for passive time delay measurement, and the OAM protocol based on the RFC6374 draft can be compatible.
The format of the timestamp information field is not particularly limited in the embodiments of the present disclosure.
In some embodiments, the timestamp information field includes a starting message sequence number field, a starting timestamp field, a sequence number interval field, a sequence number field, and a timestamp offset field, where each of the target service messages corresponds to one of the timestamp offset fields; the initial message sequence number field carries the sequence number of the first target service message, wherein each target service message is ordered according to the sequence number; the initial timestamp field carries a sending timestamp of the first target service message; the value of the sequence number interval field represents the difference value of the sequence numbers of two adjacent target service messages; the value of the sequence number field characterizes the number of sequence numbers carried by the time delay measurement OAM message; the value of the timestamp offset field characterizes the offset value of the sending timestamp of the corresponding target service message relative to the first target service message.
In some embodiments, the timestamp information field includes a sequence number field, and a timestamp field, where each of the target service packets corresponds to one of the sequence number field and one of the timestamp field; the value of the sequence number field characterizes the number of sequence numbers carried by the time delay measurement OAM message; the sequence number field carries the sequence number of the corresponding target service message; and the timestamp field carries a corresponding sending timestamp of the target service message.
In some embodiments, the delay measurement OAM message further includes a message type field; the message type field carries a value characterizing that the type of the delay measurement OAM message is a passive delay measurement OAM message.
In the embodiment of the disclosure, the message type field is defined in the delay measurement OAM message, so that the sink node can identify the delay measurement OAM message for passive delay measurement according to the value of the message type field.
In some embodiments, consistent with the active latency measurement OAM message in the OAM protocol of RFC6374 draft, the message Type field is a Channel Type (Channel Type) field, and a Channel Type field value representing a passive latency measurement is assigned. The embodiment of the disclosure does not specifically limit the Channel Type field value representing the passive delay measurement, for example, when the Channel Type field value is 0x88, the passive delay measurement is represented.
The embodiment of the disclosure does not particularly limit how to determine the message format of the delay measurement OAM message.
In some embodiments, the source node may record the sending time stamp of the service packet of the service flow to be measured in the time record table according to different time record rules, where a time record rule refers to a rule that records the sending time stamp in the time record table when the service packet is sent, for example, whether to record the sending time stamp of the service packet of the service flow, which service packets are recorded, how many service packets are recorded, and so on. The transmission time stamps of the service messages recorded by different time recording rules may be different, so that the transmission time stamps of the target service messages carried by the delay measurement OAM messages may also be different. That is, in the embodiments of the present disclosure, the message format of the delay measurement OAM message has a correlation with the time recording rule that records the transmission time stamp of the traffic message.
Accordingly, in some embodiments, determining the message format of the delay measurement OAM message includes: and determining the message format according to the time recording rule corresponding to the service flow to be detected.
In the embodiment of the disclosure, the message format of the delay measurement OAM message is determined according to the time record rule corresponding to the service flow to be measured, so that the sending time stamp of the target service message can be extracted from the time record table.
The format of the time record table is not particularly limited in the embodiments of the present disclosure. In some embodiments, the time record table is indexed by a sequence number of the traffic message and a traffic flow identification of the traffic flow. And determining the sending time stamp of the service message carried by the message format, and determining the sequence number of the target service message, so that the sending time stamp of the target service message can be extracted from the time record table according to the service flow identification of the service flow to be detected and the sequence number of the target service message.
Accordingly, in some embodiments, extracting the transmission timestamp of the at least one target service packet from the time record table includes: determining the serial number of each target service message according to the message format; and extracting the sending time stamp of the target service message from the time record table by taking the service flow identifier of the service flow to be detected and the serial number of the target service message as indexes.
In some embodiments, referring to fig. 4, before generating the delay measurement OAM message according to the time record table, the method further includes:
and S13, when the service message of the service flow to be tested is sent, recording the sending time stamp of the service message in the time record table.
In some embodiments, the source node may record the sending time stamp of the service packet of the service flow to be measured in the time record table according to different time record rules, where a time record rule refers to a rule that records the sending time stamp in the time record table when the service packet is sent, for example, whether to record the sending time stamp of the service packet of the service flow, which service packets are recorded, how many service packets are recorded, and so on.
Accordingly, in some embodiments, recording the transmission time stamp of the service packet in the time recording table includes: determining a time recording rule of the service flow to be tested; recording a service flow identifier of a service flow to be tested, a serial number of a first service message and a sending time stamp of the first service message into the time recording table according to a time recording rule of the service flow to be tested, wherein the first service message is a service message meeting the time recording rule of the service flow to be tested in the service flow to be tested.
In an embodiment of the present disclosure, a time recording rule table is defined for configuring time recording rules of a traffic flow.
Accordingly, in some embodiments, determining the time recording rule of the service flow to be measured includes: and determining the time recording rule of the service flow to be detected according to a time recording rule table, wherein the time recording rule table is configured with the time recording rule of the service flow.
The time recording rule is not particularly limited in the embodiments of the present disclosure. For example, the time recording rule includes: the sending time stamp of the service message of the service flow is not recorded; recording a sending time stamp of each service message of the service flow to be tested; recording the sending time stamp of the service message according to the preset sequence number interval by taking the service message with the sequence number in the service stream to be tested as a starting point; and continuously recording the sending time stamps of the service messages with a preset number by taking the service messages with the sequence numbers in the service flow to be tested as a starting point.
In a second aspect, referring to fig. 5, an embodiment of the present disclosure provides a delay measurement method, including:
s21, receiving a time delay measurement OAM message, and extracting the sending time stamp information of at least one target service message of a service flow to be tested carried by the time delay measurement OAM message;
S22, extracting a receiving time stamp of the target service message from a time record table according to the sending time stamp information of the target service message, wherein the receiving time stamp of the service message of the service flow to be tested is recorded in the time record table;
s23, calculating the time delay of the target service message.
In some embodiments, the delay measurement OAM packet is generated based on an OAM packet format of RFC6374 protocol, specifically, generating the delay measurement OAM packet based on an OAM packet format of RFC6374 protocol refers to improving on the basis of an OAM packet format specified by RFC6374 protocol, so that the delay measurement OAM packet can carry transmission timestamp information of at least one target service packet of a service flow to be measured, thereby enabling passive delay measurement.
In the embodiment of the disclosure, a receiving timestamp of a service message of a service flow to be measured is recorded in a time record table of a sink node of the service flow to be measured, after receiving a delay measurement OAM message, the sink node can determine a sending timestamp of a target service message according to sending timestamp information of the target service message, extract the receiving timestamp of the target service message from the time record table, and obtain the delay of the target service message by subtracting the sending timestamp and the receiving timestamp of the target service message.
According to the delay measurement method provided by the embodiment of the disclosure, the sink node can calculate the real delay of the target message according to the sending timestamp and the receiving timestamp, so that the passive delay measurement is realized, the accuracy of the delay measurement is improved, and a large amount of OAM messages are not required to be injected into the network, thereby avoiding the influence of the delay measurement on normal service.
In some embodiments, the delay measurement OAM message sent by the source node carries message format information. The message format determines the number of time stamps of the target service message carried by the time delay measurement OAM message, the sequence number of the carried target service message, the mode of carrying and sending time stamp information and the like. The sink node can determine the message format of the delay measurement OAM message according to the message format information, and further extract the sending timestamp information carried by the delay measurement OAM message.
Accordingly, in some embodiments, extracting the transmission timestamp information of the delay measurement OAM packet carrying at least one target service packet of the service flow to be measured includes: determining the message format of the time delay measurement OAM message according to the message format information carried by the time delay measurement OAM message; and extracting the sending time stamp information of each target service message from the time delay measurement OAM message according to the message format.
The embodiment of the disclosure defines an OAM message format for passive delay measurement, and can carry the sending timestamp information of the target service message.
Accordingly, in some embodiments, the delay measurement OAM packet includes a message format field, a traffic flow identification field, a timestamp information field; extracting the sending timestamp information of at least one target service message of the service flow to be measured carried by the time delay measurement OAM message comprises the following steps: determining the message format of the delay measurement OAM message according to the value of the message format field; extracting a service flow identifier of the service flow to be detected, which is carried by the service flow identifier field; and extracting the sequence number and the sending timestamp of the target service message from the timestamp information field according to the message format.
The format of the timestamp information field is not particularly limited in the embodiments of the present disclosure.
In some embodiments, the timestamp information field includes a starting message sequence number field, a starting timestamp field, a sequence number interval field, a sequence number field, and a timestamp offset field, where each of the target service messages corresponds to one of the timestamp offset fields; extracting the sequence number and the sending timestamp of the target service message from the timestamp information field according to the message format, wherein the sequence number and the sending timestamp comprise: determining the number of sequence numbers carried by the time delay measurement OAM message according to the value of the sequence number field; extracting the sequence number of the first target service message carried by the sequence number field of the initial message, wherein the target service messages are ordered according to the sequence number; extracting a sending time stamp of the first target service message carried by the starting time stamp field; determining the sequence number of each target service message according to the sequence number of the first target service message and the value of the sequence number interval field; and determining the sending time stamp of each target service message according to the sending time stamp of the first target service message and the value of the time stamp offset field corresponding to each target service message.
In some embodiments, the timestamp information field includes a sequence number field, and a timestamp field, where each of the target service packets corresponds to one of the sequence number field and one of the timestamp field; extracting the sequence number and the sending timestamp of the target service message from the timestamp information field according to the message format, wherein the sequence number and the sending timestamp comprise: determining the number of sequence numbers carried by the time delay measurement OAM message according to the value of the sequence number field; extracting the sequence number of the corresponding target service message carried by the sequence number field; and extracting the sending time stamp of the corresponding target service message carried by the time stamp field.
The format of the time record table is not particularly limited in the embodiments of the present disclosure. In some embodiments, the time record table is indexed by a sequence number of the traffic message and a traffic flow identification of the traffic flow. The sink node determines the sequence number of the target service message and the service flow identifier of the service flow to be tested according to the transmission time stamp information carried by the time delay measurement OAM message, and further can extract the receiving time stamp of the target service message from the time record table according to the service flow identifier of the service flow to be tested and the sequence number of the target service message
In some embodiments, extracting the receiving timestamp of the target service message from the time record table according to the sending timestamp information of the target service message includes: and extracting the receiving time stamp of the target service message from the time record table by taking the service flow identifier of the service flow to be detected and the sequence number of the target service message as indexes.
In the embodiment of the disclosure, the message type field is defined in the delay measurement OAM message, and the sink node can identify the delay measurement OAM message for passive delay measurement according to the value of the message type field.
In some embodiments, consistent with the active latency measurement OAM message in the OAM protocol of RFC6374 draft, the message Type field is a Channel Type (Channel Type) field, and a Channel Type field value representing a passive latency measurement is assigned. The embodiment of the disclosure does not specifically limit the Channel Type field value representing the passive delay measurement, for example, when the Channel Type field value is 0x88, the passive delay measurement is represented.
Accordingly, in some embodiments the delay measurement OAM message further includes a message type field; receiving a time delay measurement OAM message, extracting the sending timestamp information of at least one target service message of a service flow to be tested carried by the time delay measurement OAM message, and comprising the following steps: receiving the time delay measurement OAM message; and extracting the sending time stamp information of at least one target service message of the service flow to be tested carried by the time delay measurement OAM message under the condition that the value of the message type field represents that the type of the time delay measurement OAM message is a passive time delay measurement OAM message.
In some embodiments, referring to fig. 6, the method further comprises:
and S24, when the service message of the service flow to be detected is received, recording the receiving time stamp of the service message in the time record table.
In some embodiments, the sink node may record the receiving time stamp of the service packet of the service flow to be measured in the time record table according to different time record rules, where the time record rule refers to a rule that records the receiving time stamp in the time record table when receiving the service packet, for example, whether to record the receiving time stamp of the service packet of the service flow, which service packets to record the receiving time stamp, how many service packets to record the receiving time stamp, and so on.
Accordingly, in some embodiments, recording the reception timestamp of the service packet in the time recording table includes: determining a time recording rule of the service flow to be tested; recording a service flow identifier of a service flow to be tested, a serial number of a second service message and a receiving timestamp of the second service message into the time recording table according to a time recording rule of the service flow to be tested, wherein the second service message is a service message meeting the time recording rule of the service flow to be tested in the service flow to be tested.
It should be noted that, in the embodiment of the present disclosure, a time recording rule of a sending timestamp of a service packet in a source node for recording a service flow to be measured is consistent with a time recording rule of an receiving timestamp of a service packet in a sink node for recording a service flow to be measured.
In an embodiment of the present disclosure, a time recording rule table is defined for configuring time recording rules of a traffic flow.
Accordingly, in some embodiments, determining the time recording rule of the service flow to be measured includes: and determining the time recording rule of the service flow to be detected according to a time recording rule table, wherein the time recording rule table is configured with the time recording rule of the service flow.
The time recording rule is not particularly limited in the embodiments of the present disclosure. For example, the time recording rule includes: the receiving time stamp of the service message of the service flow is not recorded; recording a receiving time stamp of each service message of the service flow to be tested; recording the receiving time stamp of the service message according to the preset sequence number interval by taking the service message with the sequence number in the service stream to be tested as a starting point; and continuously recording the receiving time stamps of a predetermined number of service messages by taking the service messages with the sequence numbers in the service flow to be tested as a starting point.
In a third aspect, referring to fig. 7, an embodiment of the present disclosure provides an electronic device, including:
one or more processors 101;
a memory 102 having one or more programs stored thereon, which when executed by one or more processors cause the one or more processors to implement the latency measurement method described in the first aspect of the disclosed embodiments and/or the latency measurement method described in the second aspect of the disclosed embodiments;
one or more I/O interfaces 103, coupled between the processor and the memory, are configured to enable information interaction of the processor with the memory.
Wherein the processor 101 is a device having data processing capabilities, including but not limited to a Central Processing Unit (CPU) or the like; memory 102 is a device with data storage capability including, but not limited to, random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically charged erasable programmable read-only memory (EEPROM), FLASH memory (FLASH); an I/O interface (read/write interface) 103 is connected between the processor 101 and the memory 102 to enable information interaction between the processor 101 and the memory 102, including but not limited to a data Bus (Bus) or the like.
In some embodiments, processor 101, memory 102, and I/O interface 103 are connected to each other via bus 104, and thus to other components of the computing device.
Fourth aspect, referring to fig. 8, an embodiment of the present disclosure provides a computer readable medium having a computer program stored thereon, which when executed by a processor implements the delay measurement method of the first aspect of the embodiment of the present disclosure and/or the delay measurement method of the second aspect of the embodiment of the present disclosure.
In order to enable those skilled in the art to more clearly understand the technical solutions provided by the embodiments of the present disclosure, the following details of the technical solutions provided by the embodiments of the present disclosure are described by specific embodiments:
example 1
This embodiment improves on the OAM protocol of the RFC6374 draft.
And allocating a value in the Channel Type of the G-Ach to indicate that the passive delay measurement OAM message is carried, and identifying and processing the passive delay measurement OAM message according to the Channel Type when the OAM entity receives the G-Ach message.
A table (called timeRecordTable) is added to the node to record the sending or receiving time stamp of the service message. When the traffic stream source node sends the traffic message, the sending time stamp of the traffic message is recorded in the table, the traffic stream identifier (flow-id) and the message serial number (seq-no) are used as indexes, similarly, when the traffic stream sink node receives the traffic message, the flow-id and the seq-no are also used as indexes to record the receiving time stamp (timestamp), and the format of the timeRecordTable is shown in figure 9.
The time stamp of which traffic messages is recorded for a traffic stream identified as flow-id depends on the node configuration. This embodiment adds a table (called timeRecordRule) in the node to indicate which service message records to send/receive timestamps. the timeRecordRule table entry uses flow-id as a key value, and further includes a rule type, initial Sequence No (initSeqNo), sequence No Offset (seqnoffset), and packet count, as shown in fig. 10, a rule type value of 0 indicates that all messages are time stamped, a rule type value of 1 indicates that all messages are not time stamped, a rule type value of 2 indicates that all messages are time stamped at intervals of 3 sequence numbers from sequence number 1 and 100 are recorded in total, a rule type value of 4 indicates that all messages are time stamped continuously recorded from sequence number 5, and the rule of the rule type can be flexibly customized, except for the rule described above, and the embodiment is not limited in any way. Generally, the same rules are configured on the traffic source and the destination nodes for the traffic flows of the same flow-id.
The passive delay measurement OAM packet fixed header format is defined as shown in fig. 11 (a), where the meaning of Version, flags, control Code, message Length, QTF, session Identifier and DS fields are consistent with the active delay measurement OAM packet encapsulation. The flow-id field is used to carry a service flow identifier to which the message belongs, and the FlowId Timestamp Record Type (FTRT) field indicates a manner of carrying a service message timestamp, that is, a variable part format of the passive delay measurement OAM message. For example, when the timeRecordRule is configured to record all service message time stamps or record time stamps of N service messages at intervals, the FTRT value may be defined as 1, and the variable part of the passive delay measurement message may be defined as shown in (b) of fig. 11, where the meaning of each field is as follows:
Initial Sequence No field: the service message serial number of the first time stamp carried by the OAM message;
initial Timestamp: the OAM message carries a first time stamp;
sequence No Offset (SNO): service message sequence number interval;
sequence No Count (SNC): the number of service message sequence numbers;
timestamp offset N: the value range of N is 2 to SNC compared with the offset value of the first time stamp.
For another example, when the rule of the corresponding flow-id field service flow in the timerecord rule table is configured to record the continuous M service message time stamps, the FTRT value may be defined as 2, and the format definition of the variable part of the passive delay measurement OAM message is shown in fig. 11 (c), and the meaning of each field is as follows:
sequence No Count (SNC): the number of service message time stamps carried by the OAM message;
sequence N: the sequence number of the Nth service message, wherein the value range of N is 1-SNC;
timestamp N: and the time stamp of the Nth service message, wherein the value range of N is 1-SNC.
It should be noted that the two passive delay measurement OAM message formats are only schematic, and the sequence and length of each field are not limited in this embodiment.
When a service source node (OAM Query node) performs performance measurement on a certain flow-id service, firstly, a timeRecordRule table is queried, a corresponding OAM message encapsulation format is selected according to a configured rule, and the Operation Administration and Maintenance (OAM) message encapsulation format is indicated by an FTRT field. Before sending an OAM message, a source node (Query node) inquires a service message timestamp recorded in a timeRecordTable, and constructs the OAM message (Query message) according to a format corresponding to an FTRT field.
When receiving passive delay measurement OAM, a service sink node (OAM response node) firstly identifies the carrying mode of a sending time stamp according to the FTRT field, sequentially extracts the sequence number and the sending time stamp of the service message from the OAM message according to the indication of the FTRT field, then queries the timeRecordTable locally by flow-id and the sequence number to obtain the receiving time stamp of the service message, and finally calculates the actual one-way delay of the service message according to the sending time stamp and the receiving time stamp of the service message.
Example two
In this embodiment, it is assumed that there is a DetNet MPLS traffic flow to be detected, whose flow-ids are respectively 1, called flow1, and time synchronization between source and destination nodes. The flow1 configures recording rules of service message time stamps in a timeRecordRule table of a source node and a destination node, and the rule of the flow1 configuration is that the service message time stamps are recorded by 2 messages at intervals from a sequence number 1. The Flow1 service Flow finishes sending a plurality of service messages, and a sending timestamp (tx timestamp) and a receiving timestamp (rx timestamp) of the message belonging to the Flow1 are respectively recorded in a timeRecordTable of the source and the destination nodes, and the Flow-id and the seq-no are used as indexes, as shown in fig. 12.
In order to perform accurate one-way delay measurement on the flow1 service flow, the source node selects a passive delay measurement method, and the Channel Type value is 0x88. For flow1, find the timeRecordTable, because the configuration rule is that 2 messages record service message time stamps at intervals, so the FTRT field is valued to be 1, the single OAM message carries 10 service message sending time stamp information, the initial service message serial number is 1, the corresponding time stamp in the timeRecordTable is 111000000, the 2 nd service message serial number is 3, the corresponding time stamp in the timeRecordTable is 113000000, so the offset2 is 2000000, the time stamp offset value calculation and encapsulation method of the 3 rd to 10 th service messages is the same as that of the 2 nd message, and the OAM message content is shown in fig. 13.
The method comprises the steps that a sink node receives an OAM message, firstly, the OAM message carrying passive time delay measurement is identified according to the value of ChannelType being 0x88, and then, the encapsulation format of the message is identified according to an encapsulated FTRT field. For flow1, the FTRT field is 1, and the OAM message format can be correctly identified by the OAM entity of the host node.
According to the message format indicated by FTRT, for flow1, the number of transmission time stamps of the carried service messages is 10, the initial sequence number is 1, the sequence number offset value is 2, the transmission time stamp is 111000000, the timeRecordTable is searched for by using flow-id=1 and sequence number 1, the receiving time stamp is 111000035, so that the 1 st service message Wen Shanxiang delay is calculated to be 35, then for flow1, the service message time stamp offset value of sequence number 3 is 2000000, the transmission time stamp is calculated to be 113000000, then the timeRecordTable is searched for by using flow-id=1 and seq-no=3, the receiving time stamp is 113000029, so that the unidirectional time delay of the sequence number 3 message is calculated to be 29, and the transmission, receiving time stamp extraction and unidirectional time delay calculation modes of the rest 8 messages are the same as those of the sequence number 3 message, and are not repeated.
Example III
In this embodiment, it is assumed that there is a DetNet MPLS traffic flow to be detected, whose flow-id is 2, called flow2, and time synchronization between source and destination nodes. The flow2 configures recording rules of the service message time stamp in the timeRecordRule table of the source and destination nodes, and the rule configured by the flow2 is to record the service message time stamp randomly. The two service flows finish sending a plurality of service messages, the sending and receiving time stamps of the messages to which the two services belong are respectively recorded in a timeRecordTable of the source and destination nodes, and flow-id and seq-no are used as indexes, as shown in fig. 14.
In order to perform accurate unidirectional delay measurement on the flow2 service flow, the source node selects a passive delay measurement method, and the value of ChannelType is 0x88. For flow2, a timeRecordRule table is searched, because the configuration rule is to randomly record a message timestamp, the FTRT field is valued to be 2, the single OAM message is planned to sequentially carry the sending timestamp information of 5 service messages, the 1 st service message sequence number is 2, the timestamp is 360000012, the second service message sequence number is 6, the timestamp is 420001023, the 5 th service message sequence number is 17, the timestamp is 276555123, and the OAM message content is shown in fig. 15.
The method comprises the steps that a sink node receives an OAM message, firstly, the OAM message carrying passive time delay measurement is identified according to the value of ChannelType being 0x88, and then, the encapsulation format of the message is identified according to an encapsulated FTRT field. For flow2, the FTRT field is 2, and the OAM message format can be correctly identified by the OAM entity of the host node.
According to the message format indicated by the FTRT field, for flow2, the number of transmission time stamps of the carried service messages is 5, for the 1 st service message, the sequence number is 2, the transmission time stamp is 360000012, the timeRecordTable is searched by flow-id=2 and seq-no=2, the receiving time stamp is 360000036, so that the time delay of the 1 st service message Wen Shanxiang is calculated to be 24, and the time stamp extraction and one-way time delay calculation methods of the 2 nd to 5 th messages are the same as those of the first message and are not repeated.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, functional modules/units in the apparatus, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between the functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed cooperatively by several physical components. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.
Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should be interpreted in a generic and descriptive sense only and not for purpose of limitation. In some instances, it will be apparent to one skilled in the art that features, characteristics, and/or elements described in connection with a particular embodiment may be used alone or in combination with other embodiments unless explicitly stated otherwise. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the scope of the disclosure as set forth in the appended claims.

Claims (25)

1.一种时延测量方法,包括:1. A delay measurement method, including: 根据时间记录表生成时延测量Operation Administration and Maintenance(OAM)报文,其中,所述时间记录表中记录待测业务流的业务报文的发送时间戳,所述时延测量OAM报文携带所述待测业务流的至少一个目标业务报文的发送时间戳信息;A delay measurement Operation Administration and Maintenance (OAM) message is generated according to the time record table, wherein the time record table records the sending timestamp of the service message of the service flow to be measured, and the delay measurement OAM message carries the Describe the sending timestamp information of at least one target service packet of the service flow to be tested; 发送所述时延测量OAM报文。Send the delay measurement OAM message. 2.根据权利要求1所述的方法,其中,所述根据时间记录表生成时延测量OAM报文,包括:2. The method according to claim 1, wherein generating a delay measurement OAM message according to a time record table includes: 确定所述时延测量OAM报文的消息格式;Determine the message format of the delay measurement OAM message; 根据所述消息格式,从所述时间记录表中提取所述目标业务报文的发送时间戳;According to the message format, extract the sending timestamp of the target service message from the time record table; 根据所述消息格式构造所述时延测量OAM报文,所述时延测量OAM报文携带各个所述目标业务报文的发送时间戳信息和所述消息格式的信息。The delay measurement OAM message is constructed according to the message format, and the delay measurement OAM message carries the sending timestamp information of each of the target service messages and the message format information. 3.根据权利要求2所述的方法,其中,所述时延测量OAM报文包括消息格式字段、业务流标识字段、时间戳信息字段;3. The method according to claim 2, wherein the delay measurement OAM message includes a message format field, a service flow identification field, and a timestamp information field; 所述消息格式字段的值表征所述消息格式;The value of the message format field represents the message format; 所述业务流标识字段携带所述待测业务流的业务流标识;The service flow identification field carries the service flow identification of the service flow to be tested; 所述时间戳信息字段携带各个所述目标业务报文的发送时间戳信息。The timestamp information field carries the sending timestamp information of each of the target service messages. 4.根据权利要求3所述的方法,其中,所述时间戳信息字段包括起始报文序列号字段、起始时间戳字段、序列号间隔字段、序列号数量字段、时间戳偏移字段,其中,每一个所述目标业务报文对应一个所述时间戳偏移字段;4. The method according to claim 3, wherein the timestamp information field includes a starting message sequence number field, a starting timestamp field, a sequence number interval field, a sequence number quantity field, and a timestamp offset field, Wherein, each of the target service messages corresponds to one of the timestamp offset fields; 所述起始报文序列号字段携带第一个所述目标业务报文的序列号,其中,各个所述目标业务报文按照序列号排序;The starting message sequence number field carries the sequence number of the first target service message, wherein each of the target service messages is sorted according to the sequence number; 所述起始时间戳字段携带第一个所述目标业务报文的发送时间戳;The starting timestamp field carries the sending timestamp of the first target service message; 所述序列号间隔字段的值表征相邻的两个所述目标业务报文序列号的差值;The value of the sequence number interval field represents the difference between the sequence numbers of two adjacent target service packets; 所述序列号数量字段的值表征所述时延测量OAM报文携带的序列号的数量;The value of the sequence number quantity field represents the number of sequence numbers carried in the delay measurement OAM message; 所述时间戳偏移字段的值表征对应的目标业务报文的发送时间戳相对于第一个所述目标业务报文的偏移值。The value of the timestamp offset field represents the offset value of the sending timestamp of the corresponding target service message relative to the first target service message. 5.根据权利要求3所述的方法,其中,所述时间戳信息字段包括序列号数量字段、序列号字段、时间戳字段,其中,每一个所述目标业务报文对应一个所述序列号字段和一个所述时间戳字段;5. The method according to claim 3, wherein the timestamp information field includes a sequence number field, a sequence number field, and a timestamp field, wherein each of the target service messages corresponds to one of the sequence number fields. and a said timestamp field; 所述序列号数量字段的值表征所述时延测量OAM报文携带的序列号的数量;The value of the sequence number quantity field represents the number of sequence numbers carried in the delay measurement OAM message; 所述序列号字段携带对应的所述目标业务报文的序列号;The sequence number field carries the corresponding sequence number of the target service message; 所述时间戳字段携带对应的所述目标业务报文的发送时间戳。The timestamp field carries the corresponding sending timestamp of the target service message. 6.根据权利要求3所述的方法,其中,所述时延测量OAM报文还包括消息类型字段;6. The method according to claim 3, wherein the delay measurement OAM message further includes a message type field; 所述消息类型字段携带表征所述时延测量OAM报文的类型为被动时延测量OAM消息的值。The message type field carries a value indicating that the type of the delay measurement OAM message is a passive delay measurement OAM message. 7.根据权利要求2所述的方法,其中,所述确定所述时延测量OAM报文的消息格式,包括:7. The method according to claim 2, wherein the determining the message format of the delay measurement OAM message includes: 根据所述待测业务流对应的时间记录规则,确定所述消息格式。The message format is determined according to the time recording rules corresponding to the business flow to be tested. 8.根据权利要求2所述的方法,其中,所述从所述时间记录表中提取至少一个目标业务报文的发送时间戳,包括:8. The method according to claim 2, wherein extracting the sending timestamp of at least one target service message from the time record table includes: 根据所述消息格式,确定各个所述目标业务报文的序列号;Determine the sequence number of each target service message according to the message format; 以所述待测业务流的业务流标识和所述目标业务报文的序列号为索引,从所述时间记录表中提取所述目标业务报文的发送时间戳。Using the service flow identifier of the service flow to be measured and the sequence number of the target service message as indexes, extract the sending timestamp of the target service message from the time record table. 9.根据权利要求1至8中任意一项所述的方法,其中,所述根据时间记录表生成时延测量OAM报文之前,所述方法还包括:9. The method according to any one of claims 1 to 8, wherein before generating the delay measurement OAM message according to the time record table, the method further includes: 当发送所述待测业务流的业务报文时,在所述时间记录表中记录所述业务报文的发送时间戳。When the service packet of the service flow to be tested is sent, the sending timestamp of the service packet is recorded in the time record table. 10.根据权利要求9所述的方法,其中,所述在所述时间记录表中记录所述业务报文的发送时间戳,包括:10. The method according to claim 9, wherein recording the sending timestamp of the service message in the time record table includes: 确定所述待测业务流的时间记录规则;Determine the time recording rules for the business flow to be tested; 根据待测业务流的时间记录规则,将所述待测业务流的业务流标识、第一业务报文的序列号、所述第一业务报文的发送时间戳记录到所述时间记录表中,其中,所述第一业务报文为所述待测业务流中满足所述待测业务流的时间记录规则的业务报文。According to the time recording rules of the service flow to be tested, the service flow identifier of the service flow to be tested, the sequence number of the first service message, and the sending timestamp of the first service message are recorded in the time recording table. , wherein the first service packet is a service packet in the service flow to be tested that satisfies the time recording rule of the service flow to be tested. 11.根据权利要求10所述的方法,其中,所述确定所述待测业务流的时间记录规则,包括:11. The method according to claim 10, wherein determining the time recording rules of the business flow to be tested includes: 根据时间记录规则表确定所述待测业务流的时间记录规则,其中,所述时间记录规则表中配置有业务流的时间记录规则。The time recording rules of the business flow to be measured are determined according to the time recording rule table, where the time recording rules of the business flow are configured in the time recording rule table. 12.根据权利要求10所述的方法,其中,所述时间记录规则包括:12. The method of claim 10, wherein the time recording rules include: 记录所述待测业务流的每一个业务报文的发送时间戳;Record the sending timestamp of each service message of the service flow to be tested; 以所述待测业务流中指定序列号的业务报文为起点、按照预设序列号间隔记录业务报文的发送时间戳;Taking the service message with the specified sequence number in the service flow to be tested as the starting point and recording the sending timestamp of the service message according to the preset sequence number interval; 以所述待测业务流中指定序列号的业务报文为起点,连续记录预定数量的业务报文的发送时间戳。Starting from the service message with the specified sequence number in the service flow to be tested, the sending timestamps of a predetermined number of service messages are continuously recorded. 13.一种时延测量方法,包括:13. A delay measurement method, including: 接收时延测量Operation Administration and Maintenance(OAM)报文,提取所述时延测量OAM报文携带待测业务流的至少一个目标业务报文的发送时间戳信息;Receive the delay measurement Operation Administration and Maintenance (OAM) message, and extract the sending timestamp information of at least one target service message of the service flow to be measured that the delay measurement OAM message carries; 根据所述目标业务报文的发送时间戳信息,从时间记录表中提取所述目标业务报文的接收时间戳,其中,所述时间记录表中记录所述待测业务流的业务报文的接收时间戳;According to the sending timestamp information of the target service message, the reception timestamp of the target service message is extracted from the time record table, wherein the time record table records the service message of the service flow to be tested. receive timestamp; 计算所述目标业务报文的时延。Calculate the delay of the target service message. 14.根据权利要求13所述的方法,其中,所述提取所述时延测量OAM报文携带待测业务流的至少一个目标业务报文的发送时间戳信息,包括:14. The method according to claim 13, wherein the extracting the delay measurement OAM message carries the sending timestamp information of at least one target service message of the service flow to be measured, including: 根据所述时延测量OAM报文携带的消息格式的信息,确定所述时延测量OAM报文的消息格式;Determine the message format of the delay measurement OAM message according to the message format information carried in the delay measurement OAM message; 根据所述消息格式从所述时延测量OAM报文中提取各个所述目标业务报文的发送时间戳信息。Extract the sending timestamp information of each target service message from the delay measurement OAM message according to the message format. 15.根据权利要求14所述的方法,其中,所述时延测量OAM报文包括消息格式字段、业务流标识字段、时间戳信息字段;所述提取所述时延测量OAM报文携带待测业务流的至少一个目标业务报文的发送时间戳信息,包括:15. The method according to claim 14, wherein the delay measurement OAM message includes a message format field, a service flow identification field, and a timestamp information field; the extraction of the delay measurement OAM message carries the information to be measured. The sending timestamp information of at least one target service packet of the service flow, including: 根据所述消息格式字段的值确定所述时延测量OAM报文的消息格式;Determine the message format of the delay measurement OAM message according to the value of the message format field; 提取所述业务流标识字段携带的所述待测业务流的业务流标识;Extract the service flow identifier of the service flow to be tested carried in the service flow identifier field; 根据所述消息格式从所述时间戳信息字段中提取所述目标业务报文的序列号和发送时间戳。Extract the sequence number and sending timestamp of the target service message from the timestamp information field according to the message format. 16.根据权利要求15所述的方法,其中,所述时间戳信息字段包括起始报文序列号字段、起始时间戳字段、序列号间隔字段、序列号数量字段、时间戳偏移字段,其中,每一个所述目标业务报文对应一个所述时间戳偏移字段;所述根据所述消息格式从所述时间戳信息字段中提取所述目标业务报文的序列号和发送时间戳,包括:16. The method according to claim 15, wherein the timestamp information field includes a starting message sequence number field, a starting timestamp field, a sequence number interval field, a sequence number quantity field, and a timestamp offset field, Each of the target service messages corresponds to one of the timestamp offset fields; and extracting the sequence number and sending timestamp of the target service message from the timestamp information field according to the message format, include: 根据所述序列号数量字段的值确定所述时延测量OAM报文携带的序列号的数量;Determine the number of sequence numbers carried in the delay measurement OAM message according to the value of the sequence number quantity field; 提取所述起始报文序列号字段携带的第一个所述目标业务报文的序列号,其中,各个所述目标业务报文按照序列号排序;Extract the sequence number of the first target service message carried in the starting message sequence number field, wherein each of the target service messages is sorted according to the sequence number; 提取所述起始时间戳字段携带的第一个所述目标业务报文的发送时间戳;Extract the sending timestamp of the first target service message carried in the starting timestamp field; 根据第一个所述目标业务报文的序列号和所述序列号间隔字段的值,确定各个所述目标业务报文的序列号;Determine the sequence number of each of the target service messages according to the sequence number of the first target service message and the value of the sequence number interval field; 根据第一个所述目标业务报文的发送时间戳和各个所述目标业务报文对应的所述时间戳偏移字段的值,确定各个所述目标业务报文的发送时间戳。The sending timestamp of each target service message is determined based on the sending timestamp of the first target service message and the value of the timestamp offset field corresponding to each target service message. 17.根据权利要求15所述的方法,其中,所述时间戳信息字段包括序列号数量字段、序列号字段、时间戳字段,其中,每一个所述目标业务报文对应一个所述序列号字段和一个所述时间戳字段;所述根据所述消息格式从所述时间戳信息字段中提取所述目标业务报文的序列号和发送时间戳,包括:17. The method according to claim 15, wherein the timestamp information field includes a sequence number field, a sequence number field, and a timestamp field, wherein each of the target service messages corresponds to one of the sequence number fields. and a timestamp field; extracting the sequence number and sending timestamp of the target service message from the timestamp information field according to the message format, including: 根据所述序列号数量字段的值确定所述时延测量OAM报文携带的序列号的数量;Determine the number of sequence numbers carried in the delay measurement OAM message according to the value of the sequence number quantity field; 提取所述序列号字段携带的对应的所述目标业务报文的序列号;Extract the sequence number of the corresponding target service message carried in the sequence number field; 提取所述时间戳字段携带的对应的所述目标业务报文的发送时间戳。Extract the corresponding sending timestamp of the target service message carried in the timestamp field. 18.根据权利要求15至17中任意一项所述的方法,其中,所述根据所述目标业务报文的发送时间戳信息,从时间记录表中提取所述目标业务报文的接收时间戳,包括:18. The method according to any one of claims 15 to 17, wherein the receiving timestamp of the target service message is extracted from a time record table according to the sending timestamp information of the target service message. ,include: 以所述待测业务流的业务流标识和所述目标业务报文的序号为索引,从所述时间记录表中提取所述目标业务报文的接收时间戳。Using the service flow identifier of the service flow to be tested and the sequence number of the target service message as indexes, extract the reception timestamp of the target service message from the time record table. 19.根据权利要求15至17中任意一项所述的方法,其中,所述时延测量OAM报文还包括消息类型字段;所述接收时延测量OAM报文,提取所述时延测量OAM报文携带待测业务流的至少一个目标业务报文的发送时间戳信息,包括:19. The method according to any one of claims 15 to 17, wherein the delay measurement OAM message further includes a message type field; the receiving delay measurement OAM message extracts the delay measurement OAM The message carries the sending timestamp information of at least one target service message of the service flow to be tested, including: 接收所述时延测量OAM报文;Receive the delay measurement OAM message; 在所述消息类型字段的值表征所述时延测量OAM报文的类型为被动时延测量OAM消息的情况下,提取所述时延测量OAM报文携带待测业务流的至少一个目标业务报文的发送时间戳信息。When the value of the message type field indicates that the type of the delay measurement OAM message is a passive delay measurement OAM message, extract the delay measurement OAM message and carry at least one target service message of the service flow to be measured. The sending timestamp information of the text. 20.根据权利要求13至17中任意一项所述的方法,其中,所述方法还包括:20. The method of any one of claims 13 to 17, wherein the method further comprises: 当接收到所述待测业务流的业务报文时,在所述时间记录表中记录所述业务报文的接收时间戳。When a service packet of the service flow to be measured is received, the reception timestamp of the service packet is recorded in the time record table. 21.根据权利要求20所述的方法,其中,所述在所述时间记录表中记录所述业务报文的接收时间戳,包括:21. The method according to claim 20, wherein recording the reception timestamp of the service message in the time record table includes: 确定所述待测业务流的时间记录规则;Determine the time recording rules for the business flow to be tested; 根据待测业务流的时间记录规则,将所述待测业务流的业务流标识、第二业务报文的序列号、所述第二业务报文的接收时间戳记录到所述时间记录表中,其中,所述第二业务报文为所述待测业务流中满足所述待测业务流的时间记录规则的业务报文。According to the time recording rules of the service flow to be tested, the service flow identifier of the service flow to be tested, the sequence number of the second service message, and the reception timestamp of the second service message are recorded in the time recording table. , wherein the second service message is a service message in the service flow to be tested that satisfies the time recording rule of the service flow to be tested. 22.根据权利要求21所述的方法,其中,所述确定所述待测业务流的时间记录规则,包括:22. The method according to claim 21, wherein determining the time recording rules of the business flow to be tested includes: 根据时间记录规则表确定所述待测业务流的时间记录规则,其中,所述时间记录规则表中配置有业务流的时间记录规则。The time recording rules of the business flow to be measured are determined according to the time recording rule table, where the time recording rules of the business flow are configured in the time recording rule table. 23.根据权利要求21所述的方法,其中,所述时间记录规则包括:23. The method of claim 21, wherein the time recording rules include: 记录所述待测业务流的每一个业务报文的接收时间戳;Record the reception timestamp of each service message of the service flow to be tested; 以所述待测业务流中指定序列号的业务报文为起点、按照预设序列号间隔记录业务报文的接收时间戳;Taking the service message with the specified sequence number in the service flow to be tested as the starting point and recording the reception timestamp of the service message according to the preset sequence number interval; 以所述待测业务流中指定序列号的业务报文为起点,连续记录预定数量的业务报文的接收时间戳。Starting from the service message with the specified sequence number in the service flow to be tested, the reception timestamps of a predetermined number of service messages are continuously recorded. 24.一种电子设备,包括:24. An electronic device, including: 一个或多个处理器;one or more processors; 存储器,其上存储有一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现以下方法中的至少一者:A memory having one or more programs stored thereon. When the one or more programs are executed by the one or more processors, the one or more processors implement at least one of the following methods: 根据权利要求1至12中任意一项所述的时延测量方法;The delay measurement method according to any one of claims 1 to 12; 根据权利要求13至23中任意一项所述的时延测量方法。The delay measurement method according to any one of claims 13 to 23. 25.一种计算机可读介质,其上存储有计算机程序,所述程序被处理器执行时实现以下方法中的至少一者:25. A computer-readable medium having a computer program stored thereon, which when executed by a processor implements at least one of the following methods: 根据权利要求1至12中任意一项所述的时延测量方法;The delay measurement method according to any one of claims 1 to 12; 根据权利要求13至23中任意一项所述的时延测量方法。The delay measurement method according to any one of claims 13 to 23.
CN202211114701.9A 2022-09-14 2022-09-14 Time delay measuring method, electronic device and computer readable medium Pending CN117749664A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211114701.9A CN117749664A (en) 2022-09-14 2022-09-14 Time delay measuring method, electronic device and computer readable medium
PCT/CN2023/089159 WO2024055584A1 (en) 2022-09-14 2023-04-19 Delay measurement method, electronic device, and computer-readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211114701.9A CN117749664A (en) 2022-09-14 2022-09-14 Time delay measuring method, electronic device and computer readable medium

Publications (1)

Publication Number Publication Date
CN117749664A true CN117749664A (en) 2024-03-22

Family

ID=90257815

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211114701.9A Pending CN117749664A (en) 2022-09-14 2022-09-14 Time delay measuring method, electronic device and computer readable medium

Country Status (2)

Country Link
CN (1) CN117749664A (en)
WO (1) WO2024055584A1 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026504B (en) * 2006-02-24 2011-05-11 华为技术有限公司 Network performance measuring method
CN102201983A (en) * 2011-05-03 2011-09-28 中兴通讯股份有限公司 Method, terminal and system for measuring asymmetric time delay of transmission link
RO131470A2 (en) * 2015-04-10 2016-10-28 Ixia, A California Corporation Methods, systems and computer-readable media for one-way link delay measurement
CN113644998B (en) * 2021-08-23 2023-06-09 烽火通信科技股份有限公司 IOAM time delay measuring method and device for 5G network
CN113992297B (en) * 2021-12-06 2022-05-03 网络通信与安全紫金山实验室 Method, device, electronic device and storage medium for determining network delay
CN115002008B (en) * 2022-08-05 2022-11-04 北京云脉芯联科技有限公司 Method, device, equipment and storage medium for measuring network delay

Also Published As

Publication number Publication date
WO2024055584A1 (en) 2024-03-21

Similar Documents

Publication Publication Date Title
CN1710888B (en) Method of generating a monitoring datagram
US6853619B1 (en) System and method for measuring the transfer durations and loss rates in high volume telecommunication networks
CN113328902B (en) Network performance detection method and device and network equipment
US8923142B2 (en) Passive monitoring of network performance
CN103299583A (en) Systems and methods for measuring available capacity and tight link capacity of IP paths from a single endpoint
CN107508719A (en) Measure the method, apparatus and network node of network delay
JP2004112791A (en) Method of measuring network operation parameter
CN109547288B (en) A Protocol-Independent Forwarding Network Programmable Flow Measurement Method
US20230300051A1 (en) In-band Edge-to-Edge Round-Trip Time Measurement
US11121938B2 (en) Performance measurement in a packet-switched communication network
US20250202790A1 (en) Delay measurement method and apparatus, storage medium and program product
US7715317B2 (en) Flow generation method for internet traffic measurement
US11483122B2 (en) Time transfer using passive tapping
US7701863B2 (en) Decentralized SLS monitoring for throughput in a differentiated service environment
CN117749664A (en) Time delay measuring method, electronic device and computer readable medium
CN116074191A (en) IOAM processing method, device, electronic equipment and computer readable storage medium
WO2020259113A1 (en) Network performance measurement device and method
CN114039888A (en) Time delay measuring method and device
WO2016202025A1 (en) Trap message processing method and apparatus
CN118449886B (en) A cross-domain performance detection method and device
US20180262577A1 (en) Method and system for signaling and radio connection optimization over a cellular network
CN119484332A (en) Business flow message processing method, electronic device and storage medium
CN116112402B (en) Bandwidth monitoring method, system, PTP equipment and bandwidth computing equipment
CN115499335B (en) A network performance measurement method, device, communication equipment and storage medium
CN119109816A (en) IFIT measurement method and device

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