CN117768392A - PTP synchronous message transmission optimization method under network congestion scene - Google Patents

PTP synchronous message transmission optimization method under network congestion scene Download PDF

Info

Publication number
CN117768392A
CN117768392A CN202311733689.4A CN202311733689A CN117768392A CN 117768392 A CN117768392 A CN 117768392A CN 202311733689 A CN202311733689 A CN 202311733689A CN 117768392 A CN117768392 A CN 117768392A
Authority
CN
China
Prior art keywords
message
ptp
congestion
priority
master clock
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
CN202311733689.4A
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.)
Chongqing University of Post and Telecommunications
Original Assignee
Chongqing University of Post and Telecommunications
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 Chongqing University of Post and Telecommunications filed Critical Chongqing University of Post and Telecommunications
Priority to CN202311733689.4A priority Critical patent/CN117768392A/en
Publication of CN117768392A publication Critical patent/CN117768392A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a PTP synchronous message transmission optimization method in a network congestion scene, and belongs to the technical field of industrial networks. The method comprises the following steps: s1: when the network is congested, a PTP message is identified through a message identification unit, and then the priority of the PTP message under different packaging modes, namely the 802.1p priority of the VLAN message and the DSCP priority of the IP message, is improved by a priority configuration unit, so that the priority transmission of the PTP synchronous message is ensured; s2: the interactive information between the forwarding device and the PTP master clock is designed, wherein the interactive information comprises congestion notification information sent by the forwarding device to the PTP master clock and congestion response information S3 given by the PTP master clock: based on the interaction method between the forwarding equipment and the PTP master clock, the PTP master clock selects a proper congestion control strategy according to the congestion degree carried in the congestion notification information, and the transmission efficiency of the PTP synchronous message is improved.

Description

PTP synchronous message transmission optimization method under network congestion scene
Technical Field
The invention belongs to the technical field of industrial networks, and relates to a PTP synchronous message transmission optimization method under a network congestion scene.
Background
The time synchronization technology is an important supporting technology for solving the problem of collaborative operation of a distributed system. IEEE 1588 is also called a PTP protocol, and the PTP protocol realizes time synchronization between devices through interaction of synchronous messages, so that compared with other synchronous means, the PTP synchronization can save deployment cost and maintenance cost on the premise of ensuring synchronization precision, and is widely applied to the field of industrial networks.
With the development of industrial networks, the scale of the networks is gradually increasing, and each network carries various types of data streams, which have different quality of service requirements. When a large number of data flows are transmitted simultaneously in a network, network load is increased, and the current congestion control technology cannot completely ensure the efficiency of PTP synchronous message transmission. Therefore, how to improve the efficiency of PTP synchronous message transmission in the network congestion scenario becomes an important problem faced by the current industrial network development.
Disclosure of Invention
Therefore, the invention aims to provide the PTP synchronous message transmission optimization method under the network congestion scene, congestion control is realized through the interaction method between the forwarding equipment and the PTP master clock, and the transmission efficiency of the PTP synchronous message is improved.
In order to achieve the above purpose, the present invention provides the following technical solutions:
a PTP synchronous message transmission optimization method under network congestion scene specifically comprises the following steps:
s1: when the network is congested, a PTP message is identified through a message identification unit, and then the priority of the PTP message under different packaging modes, namely the 802.1p priority of the VLAN message and the DSCP priority of the IP message, is improved by a priority configuration unit, so that the priority transmission of the PTP synchronous message is ensured;
s2: the method comprises the steps of designing interaction information between forwarding equipment and a PTP master clock, wherein the interaction information comprises congestion notification information sent by the forwarding equipment to the PTP master clock and congestion response information given by the PTP master clock;
s3: based on the interaction method between the forwarding equipment and the PTP master clock, the PTP master clock selects a proper congestion control strategy according to the congestion degree carried in the congestion notification information, and the transmission efficiency of the PTP synchronous message is improved.
Further, in step S1, the working steps of the priority configuration unit are as follows:
s11: when the network is congested, a message identification unit of the forwarding equipment identifies a PTP message, analyzes the message, and if the message is a VLAN message, executes S12; if the message is the IP message, executing S15;
s12: judging VLAN message, if it is PTP event message, executing S13; if the message is a PTP general message, executing S14;
s13: setting PRI field of VLAN label to 110, and conforming to IEEE 802.1p priority rule of data frame, wherein IEEE 802.1p priority of corresponding message is 6;
s14: setting PRI field of VLAN label as 101, following IEEE 802.1p priority rule of data frame, IEEE 802.1p priority of corresponding message is 5;
s15: judging the IP message, and executing S16 if the IP message is a PTP event type message; if the message is a PTP general message, executing S17;
s16: setting bits 0-5 of DS field of IP header as 110 000, and following DSCP priority dividing rule of data frame, wherein DSCP priority of corresponding message is 6;
s17: the bits 0-5 of the DS field of the IPv4 header are set to 101 110 respectively, and the DSCP priority classification rule of the data frame is followed, wherein the DSCP priority of the corresponding message is 5.
Further, in step S12 or S15, the PTP event class message includes Sync, delay_req, pdelay_req, and pdelay_resp; the PTP general class message comprises Announce, management, signaling, follow _up, delay_resp and pdelay_resp_follow_up.
Further, in step S2, the frame format of the interaction information between the forwarding device and the PTP master clock is:
signaling message fixed header with length of 44 bytes, which comprises PTP message fixed header and PTP port information;
a TLV header with a length of 10 bytes and used for carrying TLV type and related identification information;
the load is 2 bytes in length and is used for carrying congestion control information, and the load is changed according to the notification frame and the response frame; the first 1 byte is used to represent the frame type, 0 represents that the frame is a congestion notification frame, and 1 represents that the frame is a congestion response frame; for the congestion notification frame, the last 1 byte is used to represent the congestion level; for the reply frame, the last 1 byte is used to represent the action identity.
Further, in step S3, the specific steps of the interaction method between the forwarding device and the PTP master clock are as follows:
s31: the forwarding equipment compares the current exit queue length L with the queue length congestion threshold value according to the current exit queue length L min Represents a congestion threshold lower limit, L max Representing the upper limit of the congestion threshold value, so as to judge the congestion degree of the forwarding equipment: the method specifically comprises the following steps:
the forwarding equipment calculates the L of the length of the current exit queue, and compares the L with the preset upper and lower limit thresholds of the queue to obtain the congestion degree of the current forwarding equipment; if L is less than L min The congestion level is set to 0; if L min ≤L≤L max The congestion level is set to 1; if L > L max The congestion level is set to 2; sending the Signaling message to a PTP master clock;
s32: the forwarding equipment sends a congestion notification message to the PTP master clock according to the congestion degree of the forwarding equipment;
s33: after receiving the congestion notification message, the PTP master clock executes corresponding congestion control strategies according to different congestion levels, including adjusting the sending period of the message and changing the transmission path of the message, and then replying a congestion response message; if the congestion level is 0, a strategy for reducing the sending period of the PTP message is adopted, and the action mark is 0; if the congestion level is 1, a strategy for increasing the sending period of the PTP message is adopted, and the action mark is 1; if the congestion level is 2, updating the transmission path of the current PTP message, wherein the action identifier is expressed as 2; and (5) completing the transmission optimization of the PTP synchronous message.
The invention has the beneficial effects that: the invention can effectively ensure the preferential transmission of PTP synchronous messages when the industrial field network is congested. The priority of the PTP message is improved through the priority configuration unit, so that the network equipment can carry out priority processing on the PTP message, meanwhile, a congestion control frame is designed, the support forwarding equipment can actively initiate congestion notification information to the PTP master clock, the PTP master clock selects a proper congestion control strategy according to the congestion degree, the transmission efficiency of the PTP synchronous message is improved, and therefore time synchronization performance is guaranteed.
Additional advantages, objects, and features of the invention will be set forth in part in the description which follows and in part will become apparent to those having ordinary skill in the art upon examination of the following or may be learned from practice of the invention. The objects and other advantages of the invention may be realized and obtained by means of the instrumentalities and combinations particularly pointed out in the specification.
Drawings
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in the following preferred detail with reference to the accompanying drawings, in which:
fig. 1 is a flowchart showing interaction between a forwarding device and a PTP master clock in the present invention;
FIG. 2 is a flow chart of a priority configuration in accordance with the present invention;
fig. 3 is a diagram of congestion control frame design in the present invention.
Detailed Description
Other advantages and effects of the present invention will become apparent to those skilled in the art from the following disclosure, which describes the embodiments of the present invention with reference to specific examples. The invention may be practiced or carried out in other embodiments that depart from the specific details, and the details of the present description may be modified or varied from the spirit and scope of the present invention. It should be noted that the illustrations provided in the following embodiments merely illustrate the basic idea of the present invention by way of illustration, and the following embodiments and features in the embodiments may be combined with each other without conflict.
Referring to fig. 1 to 3, fig. 1 is a flowchart illustrating interaction between a forwarding device and a PTP master clock, and firstly, a network device completes initialization, and implements time synchronization of a global network through periodic interaction of PTP messages. When the network is congested, congestion notification messages are sent between forwarding equipment in the network and a PTP master clock through a communication channel, priority processing of the PTP messages is guaranteed in a mode of improving priority of PTP synchronous messages, after the PTP master clock receives the congestion notification messages, notification information is analyzed, appropriate congestion control strategies are adopted according to congestion degrees, and response messages are sent.
Fig. 2 is an overall flowchart of a priority configuration mapping method, where the flow mainly includes analysis and priority configuration of PTP messages, and the specific flow is as follows:
s1: when the network is congested, the message identification unit identifies a PTP message, analyzes the message, executes S2 if the message is a VLAN message, and executes S5 if the message is an IP message.
S2: and judging the VLAN message, if the VLAN message is the PTP event type message, executing S3, and if the VLAN message is the PTP general type message, executing S4.
S3: the PRI field of the VLAN tag is set to 110, following the IEEE 802.1p prioritization rules of the data frame, which corresponds to a message with an IEEE 802.1p priority of 6. The event message includes Sync, delay_Req, pdelay_Req, pdelay_Resp.
S4: the PRI field of the VLAN tag is set to 101, and the IEEE 802.1p prioritization rule of the data frame is followed, wherein the IEEE 802.1p prioritization of the corresponding message is 5. The general message includes Announce, management, signaling, follow_up, delay_Resp, pdelay_Resp_Follow_up.
S5: and judging the IP message, if the IP message is a PTP event type message, executing S6, and if the IP message is a PTP general type message, executing S7.
S6: the bits 0-5 of the DS field of the IP header are set to 110 000, and the DSCP priority classification rule of the data frame is followed, wherein the DSCP priority of the corresponding message is 6. The event message includes Sync, delay_Req, pdelay_Req, pdelay_Resp.
S7: the bits 0-5 of the DS field of the IPv4 header are set to 101 110 respectively, and the DSCP priority classification rule of the data frame is followed, wherein the DSCP priority of the corresponding message is 5. The general message includes Announce, management, signaling, follow_up, delay_Resp, pdelay_Resp_Follow_up.
Table 1 is an IEEE 802.1p priority configuration table for PTP messages. In the VLAN tag, the priority of PTP messages is configured with bits 0-2 of byte 3, the PRI field.
TABLE 1 PTP message IEEE 802.1p priority configuration Table
Table 2 is a DCSP priority configuration table of PTP messages. In the DS field of the IP header, the priority of PTP messages is configured with bits 0-5, namely the DSCP field.
TABLE 2PTP message DCSP priority configuration Table
Fig. 3 is a congestion control frame design diagram, in which a message type of a PTP fixed header is marked as a Signaling message, a PTP port information field is used to store information about a port to which the PTP message is to be sent, a TLV is used to define an extended function, congestion control information is stored by a load of the TLV, the first 1 byte of the load is used to indicate a frame type, 0 indicates that the frame is a congestion notification frame, and 1 indicates that the frame is a congestion response frame. For a congestion notification frame, the last 1 byte is used for indicating congestion level, 0 indicates that congestion does not occur in forwarding equipment, 1 indicates that congestion occurs in forwarding equipment, 2 indicates that congestion degree of forwarding equipment is highest, and a message passing through the equipment is discarded with a high probability; for the response frame, the last 1 byte is used to represent an action identifier, 0 represents a reduction of the transmission period of the PTP synchronization message, 1 represents an increase of the transmission period of the PTP message, and 2 represents a re-planning of the transmission path of the PTP message.
Finally, it is noted that the above embodiments are only for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made thereto without departing from the spirit and scope of the present invention, which is intended to be covered by the claims of the present invention.

Claims (5)

1. A PTP synchronous message transmission optimization method under a network congestion scene is characterized by comprising the following steps:
s1: when the network is congested, a PTP message is identified through a message identification unit, and then the priority of the PTP message under different packaging modes, namely the 802.1p priority of the VLAN message and the DSCP priority of the IP message, is improved by a priority configuration unit, so that the priority transmission of the PTP synchronous message is ensured;
s2: the method comprises the steps of designing interaction information between forwarding equipment and a PTP master clock, wherein the interaction information comprises congestion notification information sent by the forwarding equipment to the PTP master clock and congestion response information given by the PTP master clock;
s3: based on the interaction method between the forwarding equipment and the PTP master clock, the PTP master clock selects a proper congestion control strategy according to the congestion degree carried in the congestion notification information, and the transmission efficiency of the PTP synchronous message is improved.
2. The PTP synchronous message transmission optimization method according to claim 1, wherein in step S1, the working steps of the priority configuration unit are:
s11: when the network is congested, a message identification unit of the forwarding equipment identifies a PTP message, analyzes the message, and if the message is a VLAN message, executes S12; if the message is the IP message, executing S15;
s12: judging VLAN message, if it is PTP event message, executing S13; if the message is a PTP general message, executing S14;
s13: setting PRI field of VLAN label to 110, and conforming to IEEE 802.1p priority rule of data frame, wherein IEEE 802.1p priority of corresponding message is 6;
s14: setting PRI field of VLAN label as 101, following IEEE 802.1p priority rule of data frame, IEEE 802.1p priority of corresponding message is 5;
s15: judging the IP message, and executing S16 if the IP message is a PTP event type message; if the message is a PTP general message, executing S17;
s16: setting bits 0-5 of DS field of IP header as 110 000, and following DSCP priority dividing rule of data frame, wherein DSCP priority of corresponding message is 6;
s17: the bits 0-5 of the DS field of the IPv4 header are set to 101 110 respectively, and the DSCP priority classification rule of the data frame is followed, wherein the DSCP priority of the corresponding message is 5.
3. The PTP synchronous message transmission optimization method according to claim 2, characterized in that in step S12 or S15, the PTP event class message includes Sync, delay_req, pdelay_req, and pdelay_resp; the PTP general class message comprises Announce, management, signaling, follow _up, delay_resp and pdelay_resp_follow_up.
4. The PTP synchronous message transmission optimization method according to claim 1, wherein in step S2, the frame format of the interaction information between the forwarding device and the PTP master clock is:
signaling message fixed header with length of 44 bytes, which comprises PTP message fixed header and PTP port information;
a TLV header with a length of 10 bytes and used for carrying TLV type and related identification information;
the load is 2 bytes in length and is used for carrying congestion control information, and the load is changed according to the notification frame and the response frame; the first 1 byte is used to represent the frame type, 0 represents that the frame is a congestion notification frame, and 1 represents that the frame is a congestion response frame; for the congestion notification frame, the last 1 byte is used to represent the congestion level; for the reply frame, the last 1 byte is used to represent the action identity.
5. The PTP synchronous message transmission optimization method according to claim 1, wherein in step S3, the specific steps of the interaction method between the forwarding device and the PTP master clock are:
s31: the forwarding equipment is based on the current exit queue lengthThe degree L is compared with the queue length congestion threshold value min Represents a congestion threshold lower limit, L max Representing the upper limit of the congestion threshold value, so as to judge the congestion degree of the forwarding equipment: the method specifically comprises the following steps:
the forwarding equipment calculates the L of the length of the current exit queue, and compares the L with the preset upper and lower limit thresholds of the queue to obtain the congestion degree of the current forwarding equipment; if L is less than L min The congestion level is set to 0; if L min ≤L≤L max The congestion level is set to 1; if L > L max The congestion level is set to 2; sending the Signaling message to a PTP master clock;
s32: the forwarding equipment sends a congestion notification message to the PTP master clock according to the congestion degree of the forwarding equipment;
s33: after receiving the congestion notification message, the PTP master clock executes corresponding congestion control strategies according to different congestion levels, including adjusting the sending period of the message and changing the transmission path of the message, and then replying a congestion response message; if the congestion level is 0, a strategy for reducing the sending period of the PTP message is adopted, and the action mark is 0; if the congestion level is 1, a strategy for increasing the sending period of the PTP message is adopted, and the action mark is 1; if the congestion level is 2, updating the transmission path of the current PTP message, wherein the action identifier is expressed as 2; and (5) completing the transmission optimization of the PTP synchronous message.
CN202311733689.4A 2023-12-15 2023-12-15 PTP synchronous message transmission optimization method under network congestion scene Pending CN117768392A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311733689.4A CN117768392A (en) 2023-12-15 2023-12-15 PTP synchronous message transmission optimization method under network congestion scene

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311733689.4A CN117768392A (en) 2023-12-15 2023-12-15 PTP synchronous message transmission optimization method under network congestion scene

Publications (1)

Publication Number Publication Date
CN117768392A true CN117768392A (en) 2024-03-26

Family

ID=90319280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311733689.4A Pending CN117768392A (en) 2023-12-15 2023-12-15 PTP synchronous message transmission optimization method under network congestion scene

Country Status (1)

Country Link
CN (1) CN117768392A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118282968A (en) * 2024-05-30 2024-07-02 湖南工商大学 Method for shielding outdated congestion feedback in network of data center under lossless network

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118282968A (en) * 2024-05-30 2024-07-02 湖南工商大学 Method for shielding outdated congestion feedback in network of data center under lossless network

Similar Documents

Publication Publication Date Title
CN111600754B (en) Industrial heterogeneous network scheduling method for interconnection of TSN (transmission time network) and non-TSN (non-Transmission time network)
US20180227225A1 (en) Sdn-based qos-supported communication tunnel establishment method and system
US20220278919A1 (en) Mapping relationship updating method and apparatus
US20190199642A1 (en) Method and Apparatus for Processing Low-Latency Service Flow
CN117768392A (en) PTP synchronous message transmission optimization method under network congestion scene
CN101582839B (en) Method, device and system for regulating data traffic
US7751330B2 (en) Method and apparatus for dynamically managing hierarchical flows
CN107454000B (en) Network data transmission device and method
US8787160B2 (en) Method, apparatus, and system for judging path congestion
EP2658184A1 (en) Method and system for updating border gateway protocol routes
CN113950104B (en) Satellite network service deterministic scheduling method based on dynamic period mapping
EP3979575B1 (en) Message forwarding method, system, device, node device, and storage medium
CN114221912B (en) Time-sensitive network access method for non-periodic time-triggered service flow
US20240223495A1 (en) Packet forwarding method and apparatus, and dragonfly network
WO2022183879A1 (en) Packet forwarding method, electronic device, and storage medium
KR20030057097A (en) Method for Interfacing IEEE802.1p and DiffServ
WO2023124427A1 (en) Data processing method, network node, computer readable storage medium
WO2020259259A1 (en) Method and device for transmitting traffic
US9699113B2 (en) Method and apparatus for bandwidth adjustment in network virtualization system
CN102546409B (en) Method and RB (route bridge) for processing message based on TRILL (Transparent Interconnection of Lots of Links) network
CN112653766B (en) Intelligent service perception method
CN100496023C (en) Method for transmitting link-state information
EP3806410A1 (en) Message control method, flow table updating method, and node device
EP2728815B1 (en) Method and rbridge for avoiding esadi protocol packet storms
CN112751715B (en) Bandwidth reservation optimization method, system and storage medium of vehicle-mounted AVB protocol

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