Cross-OSU heterogeneous communication network and time synchronization method of time sensitive network in cross-OSU heterogeneous communication network
By obtaining the one-way link delay of each communication link in the cross-OSU heterogeneous communication network and accumulating the correction field field inserted into the heterogeneous path delay request message, the total link delay is calculated, the local time is adjusted, and the configuration problem is solved. It solves the challenge of time-sensitive network time synchronization across OSU heterogeneous communication networks in telecommunications networks, and achieves efficient time synchronization and accurate delay measurement.
Patent Information
- Application Number
- CN202411434033.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-15
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2044-10-15
AI Technical Summary
In power distribution communication networks, how to effectively realize time synchronization of time-sensitive networks across OSU heterogeneous communication networks, ensure the precise synchronization and transmission of time-sensitive data, and meet the requirements of low latency, high certainty and high reliability.
By obtaining the one-way link delays of each communication link in the cross-OSU heterogeneous communication network, and inserting these delays step by step in the correction field field of the heterogeneous path delay request message, the total link time is calculated. Delay, adjust local time to achieve time synchronization between different time-sensitive networks.
It achieves precise time synchronization of time-sensitive networks across OSU heterogeneous communication networks, improves the accuracy and reliability of delay measurement, and meets the needs of power distribution communication networks for low delay, high certainty and high reliability. .
Smart Images

Figure CN119363278A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of time synchronization in power distribution networking, and specifically to a time synchronization method for a heterogeneous communication network across optical service units (OSUs) and a time-sensitive network (TSN) therein, and a method for OSU equipment and communication equipment. Background Art
[0002] With the construction of new power systems, the pace of intelligent transformation of distribution networks has significantly accelerated, making emerging businesses such as video surveillance and Internet of Things (IoT) environmental monitoring no longer limited to the substation level, but promoting the evolution of distribution communication networks towards large bandwidth, high efficiency, ultra-real-time, high certainty, strong reliability and comprehensive carrying capacity. However, the traditional Synchronous Digital Hierarchy (SDH) / Multi-Service Transport Platform (MSTP) technology, limited by technical bottlenecks such as maximum bandwidth and cross-switching capacity, can no longer meet the digital transformation of distribution networks.
[0003] In this context, OSU technology came into being. As the next generation standard of SDH jointly defined by three authoritative standard organizations, ITU-T (International Telecommunication Union Telecommunication Standardization Sector), IEEE (Institute of Electrical and Electronics Engineers) and CCSA (China Communications Standards Association), it not only breaks through bandwidth limitations, but also provides stronger support for distribution communication networks by optimizing transmission efficiency and enhancing network flexibility. At present, this technology has been deployed in batches in distribution communication networks, effectively meeting the needs of power production for high bandwidth, high real-time performance, high reliability and comprehensive carrying capacity of communication networks.
[0004] As an emerging industrial Ethernet technology, time-sensitive networking meets the communication requirements of power distribution communication networks for low latency, high determinism, and high reliability, thanks to its technical advantages such as compatibility with traditional Ethernet, hard isolation of services based on precise time slot control, and end-to-end deterministic and reliable transmission. Therefore, introducing time-sensitive networking into the power distribution communication network and replacing existing Ethernet switches has become one of the technical routes for power distribution access communication networks. However, the introduction of time-sensitive networking also brings new challenges: how to effectively implement time synchronization technology for time-sensitive networking across heterogeneous communication networks of OSUs, thereby ensuring accurate synchronization and transmission of time-sensitive data in a complex network environment, to meet the requirements of the power distribution communication network for low latency, high determinism, and high reliability. Summary of the invention
[0005] In order to solve the problems in the related art, the embodiments of the present disclosure provide a time synchronization method across an OSU heterogeneous communication network and a time-sensitive network therein, and a method for an OSU device and a communication device.
[0006] In a first aspect, an embodiment of the present disclosure provides a time synchronization method for a time-sensitive network in an inter-OSU heterogeneous communication network, wherein the inter-OSU heterogeneous communication network includes: an optical transmission network, a first time-sensitive network to be synchronized, and a second time-sensitive network, wherein the first time-sensitive network includes a first communication device, and the second time-sensitive network includes a second communication device. The optical transmission network includes a first OSU device and a second OSU device, wherein the first communication device is connected to the first OSU device via a first communication link, and the second OSU device is connected to the second communication device via a second communication link, and the first OSU device is connected to the second OSU device via a third communication link. The method includes:
[0007] The first communication device acquires a first unidirectional link delay of the first communication link when communicating with the first OSU device;
[0008] The second OSU device acquires a second unidirectional link delay of the second communication link when communicating with the second communication device;
[0009] The first OSU device obtains the third unidirectional link delay of the third communication link when communicating with the second OSU device, including: obtaining an OSU multiframe, and obtaining a delay measurement reference time based on the OSU multiframe, wherein the OSU multiframe includes a specified number of OSU frames, the OSU frame includes a delay measurement bit, and the delay measurement bit included in the OSU multiframe carries the delay measurement reference time; calculating the third unidirectional link delay according to the delay measurement reference time; the first OSU device obtains the third unidirectional link delay;
[0010] The first communication device sends a heterogeneous path delay request message to the second communication device through the optical transmission network, wherein the first communication device, the first OSU device, and the second OSU device cumulatively insert the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay in the correction domain field of the heterogeneous path delay request message step by step;
[0011] The second communication device parses the heterogeneous path delay request message, and acquires a total link delay according to the correction domain field, where the total link delay is the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay;
[0012] The second communication device obtains the master clock timestamp value of the first time-sensitive network and the local time of the second time-sensitive network when communicating with the first communication device, and calculates the time deviation from the first communication device according to the master clock timestamp value, the local time and the total link delay;
[0013] The second communication device adjusts the local time based on the time offset so that the second time-sensitive network is synchronized with the time of the first time-sensitive network.
[0014] According to an embodiment of the present disclosure, the first communication device acquires a first unidirectional link delay of the first communication link when communicating with the first OSU device, including:
[0015] The first initiating node on the first communication link sends a first path delay request message to the first responding node on the first communication link, and receives a first path delay response message and a first path delay response follow-up message replied by the first responding node;
[0016] The first initiating node records a first sending time of the first path delay request message and a second receiving time of the first path delay response message, obtains the first receiving time of the first path delay request message from the first path delay response message, and obtains the second sending time of the first path delay request message from the first path delay response follow-up message, thereby calculating the first unidirectional link delay according to the first sending time, the first receiving time, the second sending time, and the second receiving time;
[0017] The first communication device obtains the first unidirectional link delay.
[0018] According to an embodiment of the present disclosure, calculating the first unidirectional link delay according to the first sending time, the first receiving time, the second sending time, and the second receiving time includes:
[0019] Calculate a first complete link time of sending and receiving a message by the first initiating node according to the second receiving time and the first sending time;
[0020] Calculate a first processing time for the first response node to process the message according to the first receiving time and the second sending time;
[0021] Subtracting the first processing time from the first complete link time to obtain a first bidirectional link delay of the first communication link;
[0022] Half of the first bidirectional link delay is the first unidirectional link delay.
[0023] According to an embodiment of the present disclosure, the second OSU device acquires a second unidirectional link delay of the second communication link when communicating with the second communication device, including:
[0024] The second initiating node on the second communication link sends a second path delay request message to the second responding node on the second communication link, and receives a second path delay response message and a second path delay response follow-up message replied by the second responding node;
[0025] The second initiating node records the third sending time of the second path delay request message and the fourth receiving time of the second path delay response message, obtains the third receiving time of the second path delay request message from the second path delay response message, and obtains the fourth sending time of the second path delay request message from the second path delay response follow-up message, thereby calculating the second unidirectional link delay according to the third sending time, the third receiving time, the fourth sending time, and the fourth receiving time;
[0026] The second OSU device obtains the second unidirectional link delay.
[0027] According to an embodiment of the present disclosure, the calculating the second unidirectional link delay according to the third sending time, the third receiving time, the fourth sending time, and the fourth receiving time includes:
[0028] Calculate a second complete link time for the second initiating node to send and receive a message according to the fourth receiving time and the third sending time;
[0029] Calculate a second processing time for the second response node to process the message according to the third receiving time and the fourth sending time;
[0030] Subtracting the second processing time from the second complete link time to obtain a second bidirectional link delay of the second communication link;
[0031] Half of the second bidirectional link delay is the second unidirectional link delay.
[0032] According to an embodiment of the present disclosure, the OSU frame further includes a position identification bit;
[0033] The obtaining of the OSU multiframe and obtaining the delay measurement reference time based on the OSU multiframe include: the third initiating node on the third communication link periodically sends the OSU multiframe, and uses the delay measurement bit included in the OSU multiframe to carry the OSU sending time; the third responding node on the third communication link receives the first OSU multiframe by identifying the position identification bit of the OSU frame, and parses the first OSU multiframe to obtain the corresponding OSU sending time as the delay measurement reference time of the first OSU multiframe;
[0034] The calculating the third unidirectional link delay according to the delay measurement reference time includes: the third response node calculating the third unidirectional link delay according to the delay measurement reference time of the first OSU multiframe and the OSU receiving time of receiving the first OSU multiframe.
[0035] According to an embodiment of the present disclosure, the third response node subtracts the OSU sending time from the OSU receiving time to calculate the third unidirectional link delay.
[0036] According to an embodiment of the present disclosure, the OSU frame further includes a position identification bit;
[0037] The obtaining of the OSU multiframe and obtaining the delay measurement reference time based on the OSU multiframe include:
[0038] The transmitting end of the third initiating node on the third communication link periodically sends an OSU multiframe, and uses the delay measurement bit included in the OSU multiframe to carry the sequence number;
[0039] The receiving end of the third response node on the third communication link receives the second OSU multiframe by identifying the position identification bit in the OSU frame, parses the second OSU multiframe to obtain the corresponding sequence number, and sends the sequence number corresponding to the second OSU multiframe and the response end reception time to the sending end of the third response node;
[0040] The transmitting end of the third response node obtains the responding end sending time of the third OSU multiframe, calculates the responding end residence time according to the responding end receiving time and the responding end sending time, inserts the sequence number corresponding to the second OSU multiframe and the responding end residence time into the delay measurement bit of the third OSU multiframe, and sends the third OSU multiframe at the responding end sending time;
[0041] The receiving end of the third initiating node parses the third OSU multiframe, obtains the sequence number and the responder residence time corresponding to the second OSU multiframe, and uses the responder residence time as a delay measurement reference time of the second OSU multiframe.
[0042] According to an embodiment of the present disclosure, calculating the third unidirectional link delay according to the delay measurement reference time includes:
[0043] When the transmitting end of the third initiating node sends the second OSU multiframe, start the transmitting end timer, when the receiving end of the third initiating node receives the third OSU multiframe, stop the transmitting end timer, and obtain the transmitting and receiving link time based on the transmitting end timer;
[0044] The third initiating node calculates the third unidirectional link delay according to the responder residence time and the transceiver link time.
[0045] According to an embodiment of the present disclosure, the third initiating node subtracts the responding end residence time from the transceiver link time to obtain a third bidirectional link delay, and half of the third bidirectional link delay is the third unidirectional link delay.
[0046] According to an embodiment of the present disclosure, the first communication device, the first OSU device, and the second OSU device cumulatively insert the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay in the correction domain field of the heterogeneous path delay request message step by step, including:
[0047] The first communication device inserts the first unidirectional link delay into the correction domain field of the heterogeneous path delay request message, and then sends the heterogeneous path delay request message into which the first unidirectional link delay is inserted to the first OSU device;
[0048] The first OSU device cumulatively inserts the third unidirectional link delay in the correction domain field of the heterogeneous path delay request message into which the first unidirectional link delay is inserted, and then sends the heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is inserted to the second OSU device;
[0049] The second OSU device cumulatively inserts the second unidirectional link delay in the correction domain field of the heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is inserted, and then sends the heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay is inserted to the second communication device.
[0050] According to an embodiment of the present disclosure, the first OSU device encapsulates the heterogeneous path delay request message into which the first unidirectional link delay is inserted according to the OSU protocol, and then cumulatively inserts the third unidirectional link delay into the correction domain field of the heterogeneous path delay request message into which the first unidirectional link delay is inserted;
[0051] The second OSU device decapsulates the heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay is inserted according to the OSU protocol, and then sends it to the second communication device.
[0052] According to an embodiment of the present disclosure, the second communication device acquires the master clock timestamp value of the first time-sensitive network and the local time of the second time-sensitive network when communicating with the first communication device, including:
[0053] The first communication device sends a synchronization message to the second communication device, records the timestamp value of the master clock for sending the synchronization message, then packs the timestamp value of the master clock into a follow-up message, and sends the follow-up message to the second communication device;
[0054] The second communication device receives the synchronization message, records the local time of receiving the synchronization message, and parses the follow-up message to obtain the timestamp value of the master clock.
[0055] According to an embodiment of the present disclosure, the second communication device calculates the time deviation with the first communication device according to the master clock timestamp value, the local time and the total link delay, including:
[0056] The second communication device subtracts the master clock timestamp value and the total link delay from the local time to obtain a time deviation from the first communication device.
[0057] According to an embodiment of the present disclosure, the second communication device adjusts the local time based on the time deviation, including: the second communication device adds the time deviation to the local time as the adjusted local time.
[0058] In a second aspect, an embodiment of the present disclosure provides an inter-OSU heterogeneous communication network, including: an optical transmission network, a first time-sensitive network to be synchronized, and a second time-sensitive network;
[0059] The first time-sensitive network includes a first communication device, the second time-sensitive network includes a second communication device, the optical transmission network includes a first OSU device and a second OSU device, the first communication device is connected to the first OSU device via a first communication link, the second OSU device is connected to the second communication device via a second communication link, and the first OSU device is connected to the second OSU device via a third communication link;
[0060] The first communication device sends a heterogeneous path delay request message to the second communication device through the optical transmission network, wherein the first communication device, the first OSU device, and the second OSU device cumulatively insert the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay in the correction domain field of the heterogeneous path delay request message step by step; the second communication device parses the heterogeneous path delay request message, and obtains the total link delay according to the correction domain field, and the total link delay is the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay;
[0061] The second communication device obtains the master clock timestamp value of the first time-sensitive network and the local time of the second time-sensitive network when communicating with the first communication device, and calculates the time deviation from the first communication device according to the master clock timestamp value, the local time and the total link delay;
[0062] The second communication device adjusts the local time based on the time offset so that the second time-sensitive network is synchronized with the time of the first time-sensitive network.
[0063] According to an embodiment of the present disclosure, the first communication device obtains a first unidirectional link delay of the first communication link when communicating with the first OSU device;
[0064] The second OSU device acquires a second unidirectional link delay of the second communication link when communicating with the second communication device;
[0065] The first OSU device obtains a third unidirectional link delay of the third communication link when communicating with the second OSU device.
[0066] According to an embodiment of the present disclosure, the optical transmission network further includes any one of the following optical transmission equipment: synchronous digital hierarchy SDH equipment, optical transport network OTN equipment, multi-service transport platform MSTP equipment;
[0067] Two ends of the optical transmission device are connected to the first OSU device and the second OSU device respectively.
[0068] In a third aspect, an embodiment of the present disclosure provides a method for an OSU device, wherein the OSU device is a first OSU device in an optical transmission network, wherein the first OSU device is connected to a first communication device in a first time-sensitive network through a first communication link, wherein the first OSU device is connected to a second OSU device in the optical transmission network through a third communication link, and wherein the second OSU device is connected to a second communication device in a second time-sensitive network through a second communication link, wherein the method includes:
[0069] Obtaining a third unidirectional link delay of the third communication link when communicating with the second OSU device, comprising: obtaining an OSU multiframe, and obtaining a delay measurement reference time based on the OSU multiframe, wherein the OSU multiframe includes a specified number of OSU frames, the OSU frame includes a delay measurement bit, and the delay measurement bit included in the OSU multiframe carries the delay measurement reference time; calculating the third unidirectional link delay according to the delay measurement reference time; and obtaining the third unidirectional link delay;
[0070] receiving, from the first communication device, a heterogeneous path delay request message into which a first unidirectional link delay is inserted, wherein the heterogeneous path delay request message into which the first unidirectional link delay is inserted is obtained by the first communication device inserting the first unidirectional link delay into a correction domain field of the heterogeneous path delay request message;
[0071] Accumulatively inserting the third unidirectional link delay into the correction domain field of the heterogeneous path delay request message into which the first unidirectional link delay is inserted, and then sending the heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is inserted to the second OSU device, wherein the second OSU device cumulatively inserts the second unidirectional link delay into the correction domain field of the heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is inserted, and then sending the heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay is inserted to the second communication device, the second communication device acquires the total link delay according to the correction domain field, and calculates the time deviation with the first communication device according to the total link delay, so as to achieve time synchronization between the second time-sensitive network and the first time-sensitive network;
[0072] Among them, the total link delay is the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay. The first unidirectional link delay is the delay of the first communication link obtained when the first communication device communicates with the first OSU device, and the second unidirectional link delay is the delay of the second communication link obtained when the second OSU device communicates with the second communication device.
[0073] In a fourth aspect, an embodiment of the present disclosure provides a method for an OSU device, wherein the OSU device is a second OSU device in an optical transmission network, the second OSU device is connected to a second communication device in a second time-sensitive network through a second communication link, the second OSU device is connected to a first OSU device in the optical transmission network through a third communication link, and the first OSU device is connected to a first communication device in a first time-sensitive network through a first communication link, the method comprising:
[0074] Acquire a second unidirectional link delay of a second communication link when communicating with the second communication device;
[0075] receiving, from the first OSU device, a heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is inserted, wherein the heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is obtained by accumulating and inserting step by step in the correction domain field of the heterogeneous path delay request message by the first communication device and the first OSU device;
[0076] Accumulatively inserting the second unidirectional link delay into the correction domain field of the heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is inserted, and then sending the heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay is inserted to the second communication device, so that the second communication device can obtain the total link delay according to the correction domain field, and calculate the time deviation with the first communication device according to the total link delay, so as to achieve time synchronization between the second time-sensitive network and the first time-sensitive network;
[0077] Among them, the total link delay is the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay. The first unidirectional link delay is the delay of the first communication link obtained when the first communication device communicates with the first OSU device, and the third unidirectional link delay is the delay of the third communication link obtained when the first OSU device communicates with the second OSU device.
[0078] In a fifth aspect, an embodiment of the present disclosure provides a method for a communication device, wherein the communication device is a first communication device in a first time-sensitive network, the first communication device is connected to a first OSU device in an optical transmission network through a first communication link, the first OSU device is connected to a second OSU device in the optical transmission network through a third communication link, and the second OSU device is connected to a second communication device in a second time-sensitive network through a second communication link, the method comprising:
[0079] Acquire a first unidirectional link delay of the first communication link when communicating with the first OSU device;
[0080] Insert the first unidirectional link delay into the correction domain field of the heterogeneous path delay request message, and then send the heterogeneous path delay request message into which the first unidirectional link delay is inserted to the first OSU device, wherein the first OSU device and the second OSU device cumulatively insert the third unidirectional link delay and the second unidirectional link delay into the correction domain field of the heterogeneous path delay request message into which the first unidirectional link delay is inserted step by step, and then the second OSU device sends the heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay is inserted to the second communication device; the second communication device obtains the total link delay according to the correction domain field, and calculates the time deviation with the first communication device according to the total link delay, so as to achieve time synchronization between the second time-sensitive network and the first time-sensitive network;
[0081] Among them, the total link delay is the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay; the second unidirectional link delay is the delay of the second communication link obtained when the second OSU device communicates with the second communication device; the third unidirectional link delay is the delay of the third communication link obtained when the first OSU device communicates with the second OSU device.
[0082] In a sixth aspect, an embodiment of the present disclosure provides a method for a communication device, wherein the communication device is a second communication device in a second time-sensitive network, the second communication device is connected to a second OSU device in an optical transmission network through a second communication link, the second OSU device is connected to a first OSU device through a third communication link, and the first OSU device is connected to a first communication device in a first time-sensitive network through a first communication link, the method comprising:
[0083] Acquire a heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay is inserted from the second OSU device, wherein the heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay is obtained by the first communication device, the first OSU device and the second OSU device cumulatively inserting the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay in the correction domain field of the heterogeneous path delay request message step by step;
[0084] Acquire a total link delay according to a correction domain field of the heterogeneous path delay request message, where the total link delay is the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay;
[0085] Acquire a master clock timestamp value of the first time-sensitive network and a local time of the second time-sensitive network when communicating with the first communication device, and calculate a time deviation from the first communication device based on the master clock timestamp value, the local time, and the total link delay;
[0086] The local time is adjusted based on the time deviation so that the second time-sensitive network is synchronized with the time of the first time-sensitive network.
[0087] In a seventh aspect, an embodiment of the present disclosure provides an apparatus for an OSU device, wherein the OSU device is a first OSU device in an optical transmission network, wherein the first OSU device is connected to a first communication device in a first time-sensitive network through a first communication link, wherein the first OSU device is connected to a second OSU device in the optical transmission network through a third communication link, and wherein the second OSU device is connected to a second communication device in a second time-sensitive network through a second communication link, wherein the apparatus includes:
[0088] The first acquisition module is configured to acquire the third unidirectional link delay of the third communication link when communicating with the second OSU device, including: acquiring an OSU multiframe, and acquiring a delay measurement reference time based on the OSU multiframe, wherein the OSU multiframe includes a specified number of OSU frames, the OSU frame includes a delay measurement bit, and the delay measurement bit included in the OSU multiframe carries the delay measurement reference time; calculating the third unidirectional link delay according to the delay measurement reference time; and acquiring the third unidirectional link delay;
[0089] A first receiving module is configured to receive a heterogeneous path delay request message into which a first unidirectional link delay is inserted from the first communication device, wherein the heterogeneous path delay request message into which the first unidirectional link delay is inserted is obtained by the first communication device inserting the first unidirectional link delay into a correction domain field of the heterogeneous path delay request message;
[0090] A first sending module is configured to cumulatively insert the third unidirectional link delay in the correction domain field of the heterogeneous path delay request message into which the first unidirectional link delay is inserted, and then send the heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is inserted to a second OSU device, wherein the second OSU device cumulatively inserts the second unidirectional link delay in the correction domain field of the heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is inserted, and then send the heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay is inserted to the second communication device, the second communication device acquires the total link delay according to the correction domain field, and calculates the time deviation with the first communication device according to the total link delay, so as to achieve time synchronization between the second time-sensitive network and the first time-sensitive network;
[0091] Among them, the total link delay is the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay. The first unidirectional link delay is the delay of the first communication link obtained when the first communication device communicates with the first OSU device, and the second unidirectional link delay is the delay of the second communication link obtained when the second OSU device communicates with the second communication device.
[0092] In an eighth aspect, an embodiment of the present disclosure provides an apparatus for an OSU device, wherein the OSU device is a second OSU device in an optical transmission network, the second OSU device is connected to a second communication device in a second time-sensitive network through a second communication link, the second OSU device is connected to a first OSU device in the optical transmission network through a third communication link, and the first OSU device is connected to a first communication device in a first time-sensitive network through a first communication link, the apparatus comprising:
[0093] A second acquisition module is configured to acquire a second unidirectional link delay of a second communication link when communicating with the second communication device;
[0094] A second receiving module is configured to receive, from the first OSU device, a heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is inserted, wherein the heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is obtained by accumulating and inserting step by step in a correction domain field of the heterogeneous path delay request message by the first communication device and the first OSU device;
[0095] a second sending module, configured to cumulatively insert the second unidirectional link delay into the correction domain field of the heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is inserted, and then send the heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay is inserted to the second communication device, so that the second communication device can obtain the total link delay according to the correction domain field, and calculate the time deviation with the first communication device according to the total link delay, so as to achieve time synchronization between the second time-sensitive network and the first time-sensitive network;
[0096] Among them, the total link delay is the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay. The first unidirectional link delay is the delay of the first communication link obtained when the first communication device communicates with the first OSU device, and the third unidirectional link delay is the delay of the third communication link obtained when the first OSU device communicates with the second OSU device.
[0097] In a ninth aspect, an embodiment of the present disclosure provides an apparatus for a communication device, wherein the communication device is a first communication device in a first time-sensitive network, the first communication device is connected to a first OSU device in an optical transmission network through a first communication link, the first OSU device is connected to a second OSU device in the optical transmission network through a third communication link, and the second OSU device is connected to a second communication device in a second time-sensitive network through a second communication link, the apparatus comprising:
[0098] A third acquisition module is configured to acquire a first unidirectional link delay of the first communication link when communicating with the first OSU device;
[0099] The third sending module is configured to insert the first unidirectional link delay into the correction domain field of the heterogeneous path delay request message, and then send the heterogeneous path delay request message into which the first unidirectional link delay is inserted to the first OSU device, wherein the first OSU device and the second OSU device cumulatively insert the third unidirectional link delay and the second unidirectional link delay into the correction domain field of the heterogeneous path delay request message into which the first unidirectional link delay is inserted step by step, and then the second OSU device sends the heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay is inserted to the second communication device; the second communication device obtains the total link delay according to the correction domain field, and calculates the time deviation with the first communication device according to the total link delay, so as to achieve time synchronization between the second time-sensitive network and the first time-sensitive network;
[0100] Among them, the total link delay is the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay; the second unidirectional link delay is the delay of the second communication link obtained when the second OSU device communicates with the second communication device; the third unidirectional link delay is the delay of the third communication link obtained when the first OSU device communicates with the second OSU device.
[0101] In a tenth aspect, an embodiment of the present disclosure provides an apparatus for a communication device, wherein the communication device is a second communication device in a second time-sensitive network, the second communication device is connected to a second OSU device in an optical transmission network through a second communication link, the second OSU device is connected to a first OSU device through a third communication link, and the first OSU device is connected to a first communication device in a first time-sensitive network through a first communication link, the apparatus comprising:
[0102] a fourth acquisition module, configured to acquire, from the second OSU device, a heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay is inserted, wherein the heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay is obtained by the first communication device, the first OSU device, and the second OSU device cumulatively inserting the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay in a correction domain field of the heterogeneous path delay request message step by step;
[0103] a fifth acquisition module, configured to acquire a total link delay according to a correction domain field of the heterogeneous path delay request message, wherein the total link delay is a sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay;
[0104] a calculation module, configured to obtain a master clock timestamp value of the first time-sensitive network and a local time of the second time-sensitive network when communicating with the first communication device, and calculate a time deviation from the first communication device based on the master clock timestamp value, the local time and the total link delay;
[0105] The adjustment module is configured to adjust the local time based on the time deviation so that the second time-sensitive network is synchronized with the time of the first time-sensitive network.
[0106] In the eleventh aspect, an embodiment of the present disclosure provides an electronic device, comprising a memory and a processor; wherein the memory is used to store computer instructions, wherein the computer instructions are executed by the processor to implement the method as described in any one of the third to sixth aspects.
[0107] In the twelfth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having computer instructions stored thereon, which, when executed by a processor, implement the method as described in any one of the third to sixth aspects.
[0108] In a thirteenth aspect, an embodiment of the present disclosure provides a computer program product, including computer instructions, which, when executed by a processor, implement the method described in any one of the third to sixth aspects.
[0109] According to the technical solution provided by the embodiment of the present disclosure, when the first communication device sends a heterogeneous path delay request message to the second communication device through the optical transmission network, the first communication device, the first OSU device, and the second OSU device are used to cumulatively insert the first unidirectional link delay, the third unidirectional link delay obtained based on the OSU multiframe, and the second unidirectional link delay in the correction domain field of the heterogeneous path delay request message step by step, so that the second communication device obtains the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay as the total link delay, and then calculates the time deviation between the first communication device and the first communication device based on the total link delay, so as to adjust the local time of the second time-sensitive network according to the time deviation, so that the first time-sensitive network and the second time-sensitive network are time synchronized.
[0110] The present disclosure measures link delays for multiple communication links in an inter-OSU heterogeneous communication network respectively, and when measuring different link delays, not only a time synchronization message method is adopted, but also an OSU multiframe method is adopted, that is, delay measurement bits in a specified number of OSU frames included in the OSU multiframe are simultaneously used, so that the above-mentioned multiple delay measurement bits (constituting a delay measurement field) can be used simultaneously to carry time information, and after obtaining multiple link delays, a correction domain field in a time synchronization message is innovatively used, and the correction domain field is used to accumulate and carry the multiple link delays one level at a time, thereby This enables the time-sensitive network at the other end in the cross-OSU heterogeneous communication network to obtain the sum of the link delays so as to perform time synchronization with the local time-sensitive network in the cross-OSU heterogeneous communication network, thereby achieving accurate time synchronization in the cross-OSU heterogeneous communication network, providing powerful data transmission and support capabilities for the power distribution communication network, and solving the problem that due to the jitter uncertainty of the transparent transmission time synchronization message in the heterogeneous network, the delay measurement result obtained by the direct measurement link delay method using the transparent transmission time synchronization message to measure the link delay may have large jitter and cannot meet the distribution network requirements.
[0111] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0112] Other features, objectives and advantages of the present disclosure will become more apparent through the following detailed description of non-limiting embodiments in conjunction with the accompanying drawings. In the accompanying drawings:
[0113] Figure 1 A flowchart showing a method for synchronizing a time-sensitive network in a heterogeneous communication network across OSUs according to an embodiment of the present disclosure is shown;
[0114] Figure 2 A schematic diagram showing the structure of an inter-OSU heterogeneous communication network according to an embodiment of the present disclosure is shown;
[0115] Figure 3 A schematic diagram showing a method for calculating link delay in a time synchronization method for a time-sensitive network according to an embodiment of the present disclosure;
[0116] Figure 4 A schematic diagram showing another way of calculating link delay in a time synchronization method for a time-sensitive network according to an embodiment of the present disclosure;
[0117] Figure 5 A schematic diagram showing a method for acquiring a third unidirectional link delay according to an embodiment of the present disclosure;
[0118] Figure 6 A schematic diagram showing another method for acquiring a third unidirectional link delay according to an embodiment of the present disclosure;
[0119] Figure 7 A schematic diagram showing the step-by-step accumulation and insertion of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay in the correction domain field of the heterogeneous path delay request message in an embodiment of the present disclosure;
[0120] Figure 8 A schematic diagram showing obtaining a timestamp value of a master clock of a first time-sensitive network and a local time of a second time-sensitive network in an embodiment of the present disclosure is shown;
[0121] Fig. 9 A schematic diagram showing the structure of another cross-OSU heterogeneous communication network according to an embodiment of the present disclosure is shown;
[0122] Fig.10 A flowchart showing a method for an OSU device according to an embodiment of the present disclosure is shown;
[0123] Fig.11 A flowchart showing another method for an OSU device according to an embodiment of the present disclosure;
[0124] Fig.12 A flowchart showing a method for a communication device according to an embodiment of the present disclosure is shown;
[0125] Fig.13 A flowchart showing another method for a communication device according to an embodiment of the present disclosure;
[0126] Fig.14 A structural block diagram of an apparatus for an OSU device according to an embodiment of the present disclosure is shown;
[0127] Fig.15 A structural block diagram showing another apparatus for an OSU device according to an embodiment of the present disclosure;
[0128] Fig.16 A structural block diagram of an apparatus for a communication device according to an embodiment of the present disclosure is shown;
[0129] Fig.17 A structural block diagram showing another apparatus for a communication device according to an embodiment of the present disclosure;
[0130] Fig.18 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown;
[0131] Fig.19 A schematic diagram showing the structure of a computer system suitable for implementing the method according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0132] Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. In addition, for the sake of clarity, parts not related to the description of the exemplary embodiments are omitted in the accompanying drawings.
[0133] In the present disclosure, it should be understood that terms such as "include" or "have" are intended to indicate the presence of features, numbers, steps, behaviors, components, parts, or a combination thereof disclosed in the present specification, and are not intended to exclude the possibility that one or more other features, numbers, steps, behaviors, components, parts, or a combination thereof exist or are added.
[0134] It should also be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0135] In the present disclosure, if it involves operations of obtaining user information or user data or displaying user information or user data to others, the operations are all authorized and confirmed by the user, or actively selected by the user.
[0136] As mentioned above, in order to meet the requirements of low latency, high certainty and high reliability of the distribution communication network, time-sensitive networks were introduced on the basis of batch deployment of OSU technology in the distribution communication network. Replacing existing Ethernet switches with time-sensitive networks has become one of the technical routes for distribution equipment to access the communication network. However, due to the introduction of OSU technology and time-sensitive networks, the distribution communication network is no longer a homogeneous communication network, but a heterogeneous network (cross-OSU heterogeneous communication network).
[0137] The inventors found that due to the jitter uncertainty of the transparent transmission time synchronization message in the heterogeneous network (the heterogeneous communication network across OSUs in the present disclosure), the method of directly using the transparent transmission time synchronization message to measure the link delay, that is, directly using the time synchronization message to obtain the transmission delay between two terminals, the delay measurement results obtained often show large volatility and instability. This jitter phenomenon not only expands the error range of the measurement result, but also may have an adverse effect on the network system that relies on accurate delay information.
[0138] In view of the technical problems existing in the above-mentioned prior art, the present disclosure provides a time synchronization method for a time-sensitive network in a cross-OSU heterogeneous communication network: a first communication device obtains a first unidirectional link delay of a first communication link when communicating with a first OSU device; a second OSU device obtains a second unidirectional link delay of a second communication link when communicating with a second communication device; the first OSU device obtains a third unidirectional link delay of a third communication link when communicating with a second OSU device, including: obtaining an OSU multiframe, and obtaining a delay measurement reference time based on the OSU multiframe, wherein the OSU multiframe includes a specified number of OSU frames, the OSU frame includes a delay measurement bit, and the delay measurement bit included in the OSU multiframe carries the delay measurement reference time; the third unidirectional link delay is calculated according to the delay measurement reference time; the first OSU device obtains the third unidirectional link delay; the first communication device sends a heterogeneous path to the second communication device through the optical transmission network. A delay request message, wherein the first communication device, the first OSU device, and the second OSU device cumulatively insert the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay in the correction domain field of the heterogeneous path delay request message step by step; the second communication device parses the heterogeneous path delay request message, and obtains the total link delay according to the correction domain field, and the total link delay is the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay; the second communication device obtains the master clock timestamp value of the first time-sensitive network and the local time of the second time-sensitive network when communicating with the first communication device, and calculates the time deviation with the first communication device according to the master clock timestamp value, the local time, and the total link delay; the second communication device adjusts the local time based on the time deviation so that the second time-sensitive network is synchronized with the first time-sensitive network.
[0139] In response to the measurement challenge of link delay in a heterogeneous network environment, the present disclosure adopts a more sophisticated and robust measurement strategy, measures link delays for multiple communication links in a heterogeneous network respectively, and when measuring different link delays, not only the time synchronization message method is adopted, but also the OSU multi-frame method is adopted, that is, the delay measurement bits in a specified number of OSU frames included in the OSU multi-frame are simultaneously utilized, so that the above-mentioned multiple delay measurement bits (constituting a delay measurement field) can be used simultaneously to carry time information, and after obtaining multiple link delays, the correction domain field in the time synchronization message that is not fully utilized in the prior art is innovatively used to carry the multiple link delays in a step-by-step accumulation manner, so that the time-sensitive network of the other end can obtain the sum of the link delays to synchronize time with the local time-sensitive network, eliminate the jitter effect in the transparent transmission process of the time synchronization message, and improve the accuracy and reliability of the delay measurement, thereby meeting the distribution network requirements, improving network performance, and providing a powerful data transmission and support capability for the distribution communication network.
[0140] Figure 1 A flowchart of a time synchronization method for a time-sensitive network in an inter-OSU heterogeneous communication network according to an embodiment of the present disclosure is shown.
[0141] In the present disclosure, an inter-OSU heterogeneous communication network includes: an optical transmission network, a first time-sensitive network to be synchronized, and a second time-sensitive network, the first time-sensitive network includes a first communication device, the second time-sensitive network includes a second communication device, the optical transmission network includes a first OSU device and a second OSU device, the first communication device is connected to the first OSU device through a first communication link, the second OSU device is connected to the second communication device through a second communication link, and the first OSU device is connected to the second OSU device through a third communication link, such as Figure 2 shown.
[0142] According to an embodiment of the present disclosure, the first communication device or the second communication device may be a switch, a router, etc.
[0143] According to an embodiment of the present disclosure, the first OSU device may be a source OSU device, the second OSU device may be a sink OSU device, or the first OSU device may be a sink OSU device, and the second OSU device may be a source OSU device.
[0144] Those skilled in the art should understand that the first time-sensitive network and the second time-sensitive network are any two time-sensitive networks that communicate across OSU devices in the cross-OSU heterogeneous communication network, and the first OSU device and the second OSU device are two OSU devices connected to the first time-sensitive network and the second time-sensitive network, respectively. The "first" and "second" are not used as technical means to limit the implementation methods of the time-sensitive networks and the OSU devices.
[0145] In a specific embodiment, when the cross-OSU heterogeneous communication network disclosed in the present invention is applied to power distribution networking, the cross-OSU heterogeneous communication network constitutes a heterogeneous power distribution communication network; the first time-sensitive network and the second time-sensitive network constitute a distribution access network in the heterogeneous power distribution communication network, serving as a bridge between the distribution terminal and the distribution communication network, ensuring that distribution terminals such as feeder terminals (FTU), station terminals (DTU), distribution transformer terminals (TTU), etc. can smoothly access the distribution communication network; the optical transmission network constitutes a distribution transmission network in the heterogeneous power distribution communication network, thereby realizing data transmission and interaction of the connected distribution terminals.
[0146] like Figure 1 As shown, in the above cross-OSU heterogeneous communication network, the method for performing time synchronization between the first time-sensitive network and the second time-sensitive network includes the following steps S101 to S107.
[0147] In step S101, the first communication device obtains a first unidirectional link delay of the first communication link when communicating with the first OSU device.
[0148] Among them, the first unidirectional link delay of the first communication link can be obtained by sending and receiving time synchronization messages between the first initiating node and the first responding node on the first communication link, and the time of sending and receiving the message can be obtained by hardware timestamping.
[0149] In detail, the first initiating node on the first communication link sends a first path delay request message to the first responding node on the first communication link, and receives a first path delay response message and a first path delay response follow-up message replied by the first responding node; the first initiating node records the first sending time of the first path delay request message and the second receiving time of the first path delay response message, and obtains the first receiving time of the first path delay request message from the first path delay response message, and obtains the second sending time of the first path delay request message from the first path delay response follow-up message, thereby calculating the first unidirectional link delay according to the first sending time, the first receiving time, the second sending time, and the second receiving time; the first communication device obtains the first unidirectional link delay.
[0150] According to an embodiment of the present disclosure, the first complete link time for the first initiating node to send and receive messages is calculated based on the second receiving time and the first sending time; the first processing time for the first responding node to process the message is calculated based on the first receiving time and the second sending time; the first complete link time is subtracted from the first processing time to obtain the first bidirectional link delay of the first communication link; half of the first bidirectional link delay is the first unidirectional link delay.
[0151] Figure 3 A schematic diagram showing a method for calculating link delay in a time synchronization method for a time-sensitive network according to an embodiment of the present disclosure; Figure 4 A schematic diagram showing another method for calculating link delay in a time synchronization method for a time-sensitive network according to an embodiment of the present disclosure is shown below. Figure 3 and Figure 4 The example shown illustrates a process of acquiring the first unidirectional link delay.
[0152] Since the first communication device is a communication device in the first time-sensitive network, the time synchronization message sent and received between the first initiating node and the first responding node on the first communication link can be an IEEE802.1AS protocol message, that is, a Generalized Precision Time Protocol (gPTP) message.
[0153] It is known that IEEE802.1AS protocol messages include multiple message types. Figure 3 and Figure 4In the example shown, the Pdelay_Req message is used as the first path delay request message, the PDelay_Resp message is used as the first path delay response message, and the Pdelay_Resp_Follow_Up message is used as the first path delay response follow message. The specific acquisition process is:
[0154] The first initiating node sends a Pdelay_Req message and records the first sending time, the first responding node receives the Pdelay_Req message and records the first receiving time, the first responding node packs the first receiving time into a PDelay_Resp message and sends it to the first initiating node, records the second sending time, the first responding node packs the second sending time into a Pdelay_Resp_Follow_Up message and sends it to the first initiating node, the first initiating node receives the PDelay_Resp message and records the second receiving time.
[0155] At this time, the first initiating node records two timestamps: the first sending time and the second receiving time, and obtains the first receiving time and the second sending time from the PDelay_Resp message and the Pdelay_Resp_Follow_Up message respectively, so that the first unidirectional link delay can be calculated according to the above four timestamps.
[0156] According to an embodiment of the present disclosure, calculating the first unidirectional link delay according to the first sending time, the first receiving time, the second sending time, and the second receiving time includes calculating the first unidirectional link delay D1 according to the following formula: Among them, t1 is the first sending time, t2 is the first receiving time, t3 is the second sending time, t4 is the second receiving time, t4-t1 is the first complete link time, and t3-t2 is the first processing time.
[0157] According to an embodiment of the present disclosure, since in the scenario of the heterogeneous network, the communication between the first communication device and the first OSU device is bidirectional, the first initiating node may be the first communication device, the first responding node may be the first OSU device, or the first initiating node may be the first OSU device, the first responding node may be the first communication device, that is, the first communication device and the first OSU device can both serve as initiating nodes and responding nodes.
[0158] In step S102, the second OSU device obtains a second unidirectional link delay of the second communication link when communicating with the second communication device.
[0159] The second unidirectional link delay of the second communication link can be obtained by sending and receiving time synchronization messages between the second initiating node and the second responding node on the second communication link, and the time of sending and receiving the message can be obtained by hardware timestamping.
[0160] In detail, the second initiating node on the second communication link sends a second path delay request message to the second responding node on the second communication link, and receives a second path delay response message and a second path delay response follow-up message replied by the second responding node; the second initiating node records the third sending time of the second path delay request message and the fourth receiving time of the second path delay response message, and obtains the third receiving time of the second path delay request message from the second path delay response message, and obtains the fourth sending time of the second path delay request message from the second path delay response follow-up message, thereby calculating the second unidirectional link delay according to the third sending time, the third receiving time, the fourth sending time, and the fourth receiving time; the second OSU device obtains the second unidirectional link delay.
[0161] According to an embodiment of the present disclosure, the second complete link time for the second initiating node to send and receive messages is calculated based on the fourth receiving time and the third sending time; the second processing time for the second responding node to process the message is calculated based on the third receiving time and the fourth sending time; the second processing time is subtracted from the second complete link time to obtain the second bidirectional link delay of the second communication link; half of the second bidirectional link delay is the second unidirectional link delay.
[0162] Combine the following Figure 3 and Figure 4 The example shown illustrates the process of acquiring the second unidirectional link delay.
[0163] Since the second communication device is a communication device in the second time-sensitive network, the time synchronization message sent and received between the second initiating node and the second responding node on the second communication link may be an IEEE802.1AS protocol message.
[0164] Similar to the acquisition process of the first unidirectional link delay, Figure 3 and Figure 4 In the example shown, the Pdelay_Req message is used as the second path delay request message, the PDelay_Resp message is used as the second path delay response message, and the Pdelay_Resp_Follow_Up message is used as the second path delay response follow message. The specific acquisition process is:
[0165] The second initiating node sends a Pdelay_Req message and records the third sending time, the second response node receives the Pdelay_Req message and records the third receiving time, the second response node packs the third receiving time into a PDelay_Resp message and sends it to the second initiating node, records the fourth sending time, the second response node packs the fourth sending time into a Pdelay_Resp_Follow_Up message and sends it to the second initiating node, the second initiating node receives the PDelay_Resp message and records the fourth receiving time.
[0166] At this time, the second initiating node records two timestamps: the third sending time and the fourth receiving time, and obtains the third receiving time and the fourth sending time from the PDelay_Resp message and the Pdelay_Resp_Follow_Up message respectively, thereby calculating the second unidirectional link delay based on the above four timestamps.
[0167] According to an embodiment of the present disclosure, the calculating the second unidirectional link delay according to the third sending time, the third receiving time, the fourth sending time, and the fourth receiving time includes calculating the second unidirectional link delay D2 according to the following formula: Among them, t5 is the third sending time, t6 is the third receiving time, t7 is the fourth sending time, t8 is the fourth receiving time, t8-t5 is the second complete link time, and t7-t6 is the second processing time.
[0168] Similarly, the second initiating node is the second OSU device, and the second responding node is the second communication device; or, the second initiating node is the second communication device, and the second responding node is the second OSU device.
[0169] In step S103, the first OSU device obtains the third unidirectional link delay of the third communication link when communicating with the second OSU device, including: obtaining an OSU multiframe, and obtaining a delay measurement reference time based on the OSU multiframe, wherein the OSU multiframe includes a specified number of OSU frames, the OSU frame includes a delay measurement bit, and the delay measurement bit included in the OSU multiframe carries the delay measurement reference time; calculating the third unidirectional link delay according to the delay measurement reference time; the first OSU device obtains the third unidirectional link delay.
[0170] According to an embodiment of the present disclosure, the OSU multiframe also includes a position identification bit.
[0171] Assuming that the OSU multiframe includes 32 OSU frames, each OSU frame includes a delay measurement bit and a position identification bit, and the delay measurement bit and the position identification bit respectively occupy 1 bit in the OSU frame, then the OSU multiframe includes 32 delay measurement bits and 32 position identification bits, and the delay measurement reference time carried by the delay measurement bit included in the OSU multiframe occupies 32 bits.
[0172] Figure 5 A schematic diagram showing a method for acquiring a third unidirectional link delay DM according to an embodiment of the present disclosure is shown. Figure 6 A schematic diagram showing another method for obtaining the third unidirectional link delay DM according to an embodiment of the present disclosure is shown. Figure 5 and Figure 6 Two specific implementations are used to illustrate the process of acquiring the third unidirectional link delay DM.
[0173] like Figure 5 As shown, in a first specific implementation:
[0174] The obtaining of the OSU multiframe and obtaining the delay measurement reference time based on the OSU multiframe include: the third initiating node on the third communication link periodically sends the OSU multiframe, and uses the delay measurement bit included in the OSU multiframe to carry the OSU sending time; the third responding node on the third communication link receives the first OSU multiframe by identifying the position identification bit of the OSU frame, and parses the first OSU multiframe to obtain the corresponding OSU sending time as the delay measurement reference time of the first OSU multiframe.
[0175] According to an embodiment of the present disclosure, the third response node calculates the third unidirectional link delay based on the delay measurement reference time of the first OSU multiframe and the OSU reception time of receiving the first OSU multiframe.
[0176] Specifically, the third response node subtracts the OSU sending time from the OSU receiving time to calculate the third unidirectional link delay.
[0177] In detail, the third initiating node periodically sends an OSU multiframe, and the delay measurement bit of each OSU multiframe carries the time when the third initiating node sends the OSU multiframe. The position identification bit of the frame header in each OSU multiframe is 1, and the remaining position identification bits are 0. For example, when the OSU multiframe is a 32-multiframe, the position identification bit of the frame header of the OSU multiframe periodically sent by the third initiating node is 1, and the position identification bits of the remaining 31 OSU frames are 0. Therefore, the third responding node can obtain a complete OSU multiframe by identifying the position identification bit in the OSU frame, thereby obtaining the OSU sending time carried by the 32 delay measurement bits in the OSU multiframe, and calculate the third unidirectional link delay according to the reception time of the OSU multiframe recorded by the third responding node.
[0178] like Figure 6 As shown, in the second specific implementation:
[0179] The obtaining of the OSU multiframe and obtaining the delay measurement reference time based on the OSU multiframe include: the sending end of the third initiating node on the third communication link periodically sends the OSU multiframe, and uses the delay measurement bit included in the OSU multiframe to carry the sequence number; the receiving end of the third responding node on the third communication link receives the second OSU multiframe by identifying the position identification bit in the OSU frame, parses the second OSU multiframe to obtain the corresponding sequence number, and sends the sequence number corresponding to the second OSU multiframe and the responding end receiving time to the sending end of the third responding node; the third responding node The sending end of the point obtains the responder sending time of the third OSU multiframe, calculates the responder residence time according to the responder receiving time and the responder sending time, inserts the sequence number corresponding to the second OSU multiframe and the responder residence time into the delay measurement bit of the third OSU multiframe, and sends the third OSU multiframe at the responder sending time; the receiving end of the third initiating node parses the third OSU multiframe, obtains the sequence number and the responder residence time corresponding to the second OSU multiframe, and uses the responder residence time as the delay measurement reference time of the second OSU multiframe.
[0180] According to an embodiment of the present disclosure, a transmitting end timer is started when the transmitting end of the third initiating node sends the second OSU multiframe, and the transmitting end timer is stopped when the receiving end of the third initiating node receives the third OSU multiframe, and the transceiver link time is obtained based on the transmitting end timer; the third initiating node calculates the third unidirectional link delay according to the responder residence time and the transceiver link time.
[0181] Specifically, the third initiating node subtracts the responder residence time from the transceiver link time to obtain a third bidirectional link delay, and half of the third bidirectional link delay is the third unidirectional link delay.
[0182] In detail, the transmitting end of the third initiating node periodically sends OSU multiframes and starts the transmitting end timer for each sending cycle. The delay measurement bit of each OSU multiframe sent carries the corresponding sequence number. The position identification bit of the frame header in each OSU multiframe is 1, and the remaining position identification bits are 0. The receiving end of the third response node can obtain a complete OSU multiframe by identifying the position identification bit in the OSU frame, thereby obtaining the sequence number carried by the delay measurement bit in the OSU multiframe, and recording a responder reception time at the same time, and sending the sequence number and the responder reception time to the sending end of the third response node. The sending end of the third response node obtains the responder sending time, so as to obtain the responder residence time by subtracting the responder reception time from the responder sending time, and inserts the responder residence time and the sequence number into the delay measurement bit of the OSU multiframe, and sends it to the receiving end of the third initiating node. The receiving end of the third initiating node stops the sending end timer of the sending cycle, and the time information recorded by the sending end timer is the transceiver link time, and then the transceiver link time is subtracted from the responder residence time and divided by two to obtain the third unidirectional link delay.
[0183] The present disclosure not only simply utilizes a delay measurement bit of each OSU frame in multiple OSU frames to carry time information, but also combines the position identification bit of each OSU frame. Since each OSU frame has a position identification bit and a corresponding delay measurement bit, the present disclosure can automatically identify and parse the position identification field composed of the position identification bits in the OSU multiframe. Through this automatic identification process, the specific position of each OSU frame in the OSU multiframe can be accurately located, and then the delay measurement field composed of the delay measurement bits of each OSU frame can be automatically extracted from the OSU multiframe. This method not only improves the accuracy and efficiency of delay measurement, but also ensures the integrity and reliability of delay information during the entire data transmission process.
[0184] According to an embodiment of the present disclosure, the third initiating node is the first OSU device, and the third responding node is the second OSU device; or, the third initiating node is the second OSU device, and the third responding node is the first OSU device.
[0185] In step S104, the first communication device sends a heterogeneous path delay request message to the second communication device through the optical transmission network, wherein the first communication device, the first OSU device, and the second OSU device cumulatively insert the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay in the correction domain field of the heterogeneous path delay request message step by step.
[0186] The inventors have noticed that in 1588 time synchronization, there are multiple PTP (Precision Time Protocol) synchronization message types, which are used to achieve time synchronization at different stages. The general format of PTP messages includes: PTP message encapsulation header (such as Ethernet, IPv4, IPv6, etc.), general PTP message header and different PTP message bodies.
[0187] The correction field (correctionField) is located in the PTP general message header. Due to the provisions of the IEEE802.1AS standard protocol, it is particularly noteworthy that there is a correction field (correctionField) in the PTP general message header. However, according to the provisions of the IEEE802.1AS protocol, in most PTP message types, the correction field is not actually enabled, and its value is fixed to 0. This situation provides the inventor with an idea, that is, this underutilized field can be used to carry the one-way link delay data accurately measured by the disclosed technology. This not only cleverly utilizes the redundant space of the existing protocol, but also ensures that the link delay information is effectively recorded and transmitted without interfering with the original overall time synchronization process.
[0188] In a specific embodiment, the heterogeneous path delay request message is a Pdelay_Req message.
[0189] The specific process of the first communication device, the first OSU device, and the second OSU device cumulatively inserting the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay in the correction domain field of the heterogeneous path delay request message step by step is as follows: Figure 7 As shown:
[0190] 1) The first communication device inserts the first unidirectional link delay into the correction domain field of the heterogeneous path delay request message, and then sends the heterogeneous path delay request message into which the first unidirectional link delay is inserted to the first OSU device.
[0191] 2) The first OSU device cumulatively inserts the third unidirectional link delay in the correction domain field of the heterogeneous path delay request message into which the first unidirectional link delay is inserted, and then sends the heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is inserted to the second OSU device.
[0192] 3) The second OSU device cumulatively inserts the second unidirectional link delay in the correction domain field of the heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is inserted, and then sends the heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay is inserted to the second communication device.
[0193] According to an embodiment of the present disclosure, the first OSU device encapsulates the heterogeneous path delay request message into which the first unidirectional link delay is inserted according to the OSU protocol, and then cumulatively inserts the third unidirectional link delay in the correction domain field of the heterogeneous path delay request message into which the first unidirectional link delay is inserted; the second OSU device decapsulates the heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay is inserted according to the OSU protocol, and then sends it to the second communication device.
[0194] Since the heterogeneous path delay request message (such as Pdelay_Req message) is a gPTP (generalized Precision Time Protocol) message (layer 2 message) or a UDP (User Datagram Protocol) message (layer 3 message) in a time-sensitive network, and whether it is a layer 2 message or a layer 3 message, it is an Ethernet message. Therefore, when the message reaches the OSU device, the OSU device needs to encapsulate and decapsulate it according to the OSU protocol before it can be transmitted between the first OSU device and the second OSU device.
[0195] In step S105, the second communication device parses the heterogeneous path delay request message, and obtains a total link delay according to the correction domain field, where the total link delay is the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay.
[0196] Figure 8 A schematic diagram of obtaining a master clock timestamp value of a first time-sensitive network and a local time of a second time-sensitive network in an embodiment of the present disclosure is shown.
[0197] In step S106, the second communication device obtains the master clock timestamp value of the first time-sensitive network and the local time of the second time-sensitive network when communicating with the first communication device, and calculates the time deviation with the first communication device based on the master clock timestamp value, the local time and the total link delay.
[0198] like Figure 8 As shown, the first communication device sends a synchronization message to the second communication device, records the master clock timestamp value of sending the synchronization message, and then packs the master clock timestamp value into a follow-up message and sends the follow-up message to the second communication device; the second communication device receives the synchronization message, records the local time of receiving the synchronization message, and parses the follow-up message to obtain the master clock timestamp value.
[0199] Specifically, the first communication device sends a Sync message to the second communication device and records the timestamp value t of the master clock of the first time-sensitive network. m , and then use the master clock timestamp value t m Packed into a Follow_Up message, sent to the Follow_Up message to the second communication device, the second communication device receives the Sync message and records the local time t of the second time-sensitive network s , and parse the Follow_Up message to obtain the timestamp value of the master clock of the first time-sensitive network t m .
[0200] According to an embodiment of the present disclosure, the second communication device sets the local time t s Subtract the master clock timestamp value t m and the total link delay to obtain a time deviation with the first communication device.
[0201] Specifically, the time offset offset is obtained according to the following formula: offset = t s -t m -delay.
[0202] In step S107, the second communication device adjusts the local time based on the time deviation so that the time of the second time-sensitive network is synchronized with that of the first time-sensitive network.
[0203] According to an embodiment of the present disclosure, the second communication device adds the time offset to the local time as the adjusted local time.
[0204] In practical application, since the time deviation between the first communication device and the second communication device in the above cross-OSU heterogeneous communication network has been obtained, the synchronization time between the first communication device and the second communication device in any communication cycle can be adjusted according to the time deviation: t new =t old +offset.
[0205] In an inter-OSU heterogeneous communication network, when the physical link and communication equipment remain unchanged, the link delay is basically unchanged, or the average value is very close. Therefore, the present disclosure can also set a calculation cycle, such as 5s, 10s, etc., and obtain a time deviation once in each calculation cycle to achieve time synchronization between communication devices, or calculate the average value of the time deviation of multiple calculation cycles to achieve time synchronization between communication devices.
[0206] The present invention adopts a more sophisticated and robust measurement strategy for delay measurement across OSU heterogeneous communication networks, measures link delays for multiple communication links separately, not only utilizes the time synchronization message method, but also adopts the method of carrying delay measurement information in the delay measurement field in the OSU complex frame. After obtaining multiple link delays through multiple methods, the correction domain field in the time synchronization message is used to carry the multiple link delays in a step-by-step accumulation manner, so that the time-sensitive network of the other end can obtain the sum of the link delays for time synchronization with the local time-sensitive network, thereby achieving accurate time synchronization in the cross-OSU heterogeneous communication network and providing powerful data transmission and support capabilities for the distribution communication network.
[0207] Fig. 9 A schematic structural diagram of another cross-OSU heterogeneous communication network according to an embodiment of the present disclosure is shown.
[0208] like Fig. 9As shown, a cross-OSU heterogeneous communication network includes: an optical transmission network, a first time-sensitive network to be synchronized, and a second time-sensitive network; the first time-sensitive network includes a first communication device, the second time-sensitive network includes a second communication device, the optical transmission network includes a first OSU device and a second OSU device, the first communication device is connected to the first OSU device via a first communication link, the second OSU device is connected to the second communication device via a second communication link, and the first OSU device is connected to the second OSU device via a third communication link; the first communication device sends a heterogeneous path delay request message to the second communication device via the optical transmission network, wherein the first communication device, the first OSU device, and the second OSU device are in the heterogeneous The first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay are cumulatively inserted into the correction domain field of the path delay request message step by step; the second communication device parses the heterogeneous path delay request message to obtain the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay as the total link delay; the second communication device obtains the master clock timestamp value of the first time-sensitive network and the local time of the second time-sensitive network when communicating with the first communication device, and calculates the time deviation with the first communication device according to the master clock timestamp value, the local time, and the total link delay; the second communication device adjusts the local time based on the time deviation so that the second time-sensitive network is synchronized with the first time-sensitive network.
[0209] According to an embodiment of the present disclosure, the first communication device obtains the first unidirectional link delay of the first communication link when communicating with the first OSU device; the second OSU device obtains the second unidirectional link delay of the second communication link when communicating with the second communication device; the first OSU device obtains the third unidirectional link delay of the third communication link when communicating with the second OSU device.
[0210] According to an embodiment of the present disclosure, the optical transmission network also includes any one of the following optical transmission equipment: synchronous digital hierarchy SDH equipment, optical transport network OTN equipment, multi-service transport platform MSTP equipment; the two ends of the optical transmission equipment are respectively connected to the first OSU device and the second OSU device.
[0211] Specifically, the first communication device of the first time-sensitive network is connected to the first OSU device via the first communication link. In the optical transmission network, the first OSU device is connected to the second OSU device via the third communication link, and an optical transmission device is also provided on the third communication link, through which the various services carried by the OSU device are adapted and transmitted at a high rate and large capacity to ensure smooth transmission of the services. The second OSU device of the second time-sensitive network is connected to the second communication device via the second communication link.
[0212] Fig.10 A flowchart of a method for an OSU device according to an embodiment of the present disclosure is shown. The OSU device is a first OSU device in an optical transmission network, the first OSU device is connected to a first communication device in a first time-sensitive network via a first communication link, the first OSU device is connected to a second OSU device in the optical transmission network via a third communication link, and the second OSU device is connected to a second communication device in a second time-sensitive network via a second communication link. Fig.10 As shown, the method includes steps S1001 to S1003.
[0213] In the step S1001, obtaining the third unidirectional link delay of the third communication link when communicating with the second OSU device includes: obtaining an OSU multiframe, and obtaining a delay measurement reference time based on the OSU multiframe, wherein the OSU multiframe includes a specified number of OSU frames, the OSU frame includes a delay measurement bit, and the delay measurement bit included in the OSU multiframe carries the delay measurement reference time; calculating the third unidirectional link delay according to the delay measurement reference time; and obtaining the third unidirectional link delay.
[0214] In the step S1002, a heterogeneous path delay request message into which a first unidirectional link delay is inserted is received from the first communication device, wherein the heterogeneous path delay request message into which the first unidirectional link delay is inserted is obtained by the first communication device inserting the first unidirectional link delay into a correction domain field of the heterogeneous path delay request message.
[0215] In the step S1003, the third unidirectional link delay is cumulatively inserted into the correction domain field of the heterogeneous path delay request message into which the first unidirectional link delay is inserted, and then the heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is inserted is sent to the second OSU device, wherein the second OSU device cumulatively inserts the second unidirectional link delay into the correction domain field of the heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is inserted, and then the heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay is inserted is sent to the second communication device, and the second communication device obtains the total link delay according to the correction domain field, and calculates the time deviation with the first communication device according to the total link delay, so as to achieve time synchronization between the second time-sensitive network and the first time-sensitive network.
[0216] In the present disclosure, the total link delay is the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay. The first unidirectional link delay is the delay of the first communication link obtained when the first communication device communicates with the first OSU device, and the second unidirectional link delay is the delay of the second communication link obtained when the second OSU device communicates with the second communication device.
[0217] The present disclosure obtains the third unidirectional link delay through the first OSU device, so that when a heterogeneous path delay request message with the first unidirectional link delay inserted therein is subsequently received from the first communication device, the third unidirectional link delay is continuously accumulated and inserted into the correction domain field of the heterogeneous path delay request message, that is, the first OSU device inserts the sum of the first unidirectional link delay and the third unidirectional link delay into the correction domain field, and then sends it to the second OSU device, which facilitates the subsequent operation of the second OSU device.
[0218] Fig.11 A flowchart of another method for an OSU device according to an embodiment of the present disclosure is shown. The OSU device is a second OSU device in an optical transmission network, the second OSU device is connected to a second communication device in a second time-sensitive network via a second communication link, the second OSU device is connected to a first OSU device in the optical transmission network via a third communication link, and the first OSU device is connected to a first communication device in a first time-sensitive network via a first communication link. Fig.11 As shown, the method includes steps S1101 to S1103.
[0219] In the step S1101, a second unidirectional link delay of a second communication link when communicating with the second communication device is obtained.
[0220] In the step S1102, a heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is inserted is received from the first OSU device, and the heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is obtained by cumulatively inserting the first communication device and the first OSU device in the correction domain field of the heterogeneous path delay request message step by step.
[0221] In the step S1103, the second unidirectional link delay is cumulatively inserted into the correction domain field of the heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is inserted, and then the heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay is inserted is sent to the second communication device, so that the second communication device can obtain the total link delay according to the correction domain field, and calculate the time deviation with the first communication device according to the total link delay, so as to achieve time synchronization between the second time-sensitive network and the first time-sensitive network.
[0222] In the present disclosure, the total link delay is the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay. The first unidirectional link delay is the delay of the first communication link obtained when the first communication device communicates with the first OSU device, and the third unidirectional link delay is the delay of the third communication link obtained when the first OSU device communicates with the second OSU device.
[0223] The present disclosure obtains the second unidirectional link delay through the second OSU device, so that when a heterogeneous path delay request message sent by the first OSU device and into which the sum of the first unidirectional link delay and the third unidirectional link delay is subsequently received, the second unidirectional link delay is continued to be accumulated and inserted in the correction domain field of the heterogeneous path delay request message, that is, the second OSU device inserts the sum of the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay in the correction domain field, and then sends it to the second communication device, so that the second communication device can conveniently calculate the delay between the second communication device and the first communication device according to the sum of the unidirectional link delays (total link delay).
[0224] Fig.12A flow chart of a method for a communication device according to an embodiment of the present disclosure is shown. The communication device is a first communication device in a first time-sensitive network, the first communication device is connected to a first OSU device in an optical transmission network via a first communication link, the first OSU device is connected to a second OSU device in the optical transmission network via a third communication link, and the second OSU device is connected to a second communication device in a second time-sensitive network via a second communication link. Fig.12 As shown, the method includes steps S1201 to S1202.
[0225] In the step S1201, a first unidirectional link delay of the first communication link when communicating with the first OSU device is obtained.
[0226] In the step S1202, the first unidirectional link delay is inserted into the correction domain field of the heterogeneous path delay request message, and then the heterogeneous path delay request message into which the first unidirectional link delay is inserted is sent to the first OSU device, wherein the first OSU device and the second OSU device cumulatively insert the third unidirectional link delay and the second unidirectional link delay into the correction domain field of the heterogeneous path delay request message into which the first unidirectional link delay is inserted step by step, and then the second OSU device sends the heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay is inserted to the second communication device; the second communication device obtains the total link delay according to the correction domain field, and calculates the time deviation with the first communication device according to the total link delay, so as to achieve time synchronization between the second time-sensitive network and the first time-sensitive network.
[0227] In the present disclosure, the total link delay is the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay. The second unidirectional link delay is the delay of the second communication link obtained when the second OSU device communicates with the second communication device. The third unidirectional link delay is the delay of the third communication link obtained when the first OSU device communicates with the second OSU device.
[0228] Fig.13 A flowchart of another method for a communication device according to an embodiment of the present disclosure is shown. The communication device is a second communication device in a second time-sensitive network, the second communication device is connected to a second OSU device in the optical transmission network via a second communication link, the second OSU device is connected to a first OSU device via a third communication link, and the first OSU device is connected to a first communication device in a first time-sensitive network via a first communication link. Fig.13As shown, the method includes steps S1301 to S1304.
[0229] In the step S1301, a heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay is inserted is obtained from the second OSU device. The heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay is obtained by the first communication device, the first OSU device and the second OSU device cumulatively inserting the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay in the correction domain field of the heterogeneous path delay request message step by step.
[0230] In the step S1302, a total link delay is obtained according to the correction domain field of the heterogeneous path delay request message, and the total link delay is the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay.
[0231] In the step S1303, the master clock timestamp value of the first time-sensitive network and the local time of the second time-sensitive network are obtained when communicating with the first communication device, and the time deviation from the first communication device is calculated based on the master clock timestamp value, the local time and the total link delay.
[0232] In the step S1304, the local time is adjusted based on the time deviation so that the time of the second time-sensitive network is synchronized with the time of the first time-sensitive network.
[0233] The present disclosure realizes accurate synchronization of time in heterogeneous communication networks across OSUs, providing powerful data transmission and support capabilities for the power distribution communication network.
[0234] Fig.14 The structural block diagram of a device for an OSU device according to an embodiment of the present disclosure is shown. The device 1400 comprises: a first acquisition module 1401 , a first receiving module 1402 , and a first sending module 1403 .
[0235] In the present disclosure, the OSU device is a first OSU device in an optical transmission network, the first OSU device is connected to a first communication device in a first time-sensitive network via a first communication link, the first OSU device is connected to a second OSU device in the optical transmission network via a third communication link, and the second OSU device is connected to a second communication device in a second time-sensitive network via a second communication link.
[0236] The first acquisition module 1401 is configured to obtain the third unidirectional link delay of the third communication link when communicating with the second OSU device, including: obtaining an OSU multiframe, and obtaining a delay measurement reference time based on the OSU multiframe, wherein the OSU multiframe includes a specified number of OSU frames, the OSU frame includes a delay measurement bit, and the delay measurement bit included in the OSU multiframe carries the delay measurement reference time; calculating the third unidirectional link delay according to the delay measurement reference time; and obtaining the third unidirectional link delay.
[0237] The first receiving module 1402 is configured to receive a heterogeneous path delay request message into which a first unidirectional link delay is inserted from the first communication device, wherein the heterogeneous path delay request message into which the first unidirectional link delay is inserted is obtained by the first communication device inserting the first unidirectional link delay into a correction domain field of the heterogeneous path delay request message;
[0238] The first sending module 1403 is configured to cumulatively insert the third unidirectional link delay in the correction domain field of the heterogeneous path delay request message into which the first unidirectional link delay is inserted, and then send the heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is inserted to the second OSU device, wherein the second OSU device cumulatively inserts the second unidirectional link delay in the correction domain field of the heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is inserted, and then send the heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay is inserted to the second communication device, and the second communication device obtains the total link delay according to the correction domain field, and calculates the time deviation with the first communication device according to the total link delay, so as to achieve time synchronization between the second time-sensitive network and the first time-sensitive network.
[0239] Among them, the total link delay is the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay. The first unidirectional link delay is the delay of the first communication link obtained when the first communication device communicates with the first OSU device, and the second unidirectional link delay is the delay of the second communication link obtained when the second OSU device communicates with the second communication device.
[0240] Fig.15 The structural block diagram of another apparatus for OSU equipment according to an embodiment of the present disclosure is shown. The apparatus 1500 comprises: a second acquisition module 1501 , a second receiving module 1502 , and a second sending module 1503 .
[0241] In the present disclosure, the OSU device is a second OSU device in an optical transmission network, the second OSU device is connected to a second communication device in a second time-sensitive network via a second communication link, the second OSU device is connected to a first OSU device in the optical transmission network via a third communication link, and the first OSU device is connected to a first communication device in a first time-sensitive network via a first communication link.
[0242] The second acquisition module 1501 is configured to acquire a second unidirectional link delay of a second communication link when communicating with the second communication device.
[0243] The second receiving module 1502 is configured to receive a heterogeneous path delay request message inserted with the sum of the first unidirectional link delay and the third unidirectional link delay from the first OSU device, wherein the heterogeneous path delay request message inserted with the sum of the first unidirectional link delay and the third unidirectional link delay is obtained by cumulatively inserting the first communication device and the first OSU device step by step in the correction domain field of the heterogeneous path delay request message.
[0244] The second sending module 1502 is configured to cumulatively insert the second unidirectional link delay in the correction domain field of the heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is inserted, and then send the heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay is inserted to the second communication device, so that the second communication device can obtain the total link delay according to the correction domain field, and calculate the time deviation with the first communication device according to the total link delay, so as to achieve time synchronization between the second time-sensitive network and the first time-sensitive network.
[0245] Among them, the total link delay is the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay. The first unidirectional link delay is the delay of the first communication link obtained when the first communication device communicates with the first OSU device, and the third unidirectional link delay is the delay of the third communication link obtained when the first OSU device communicates with the second OSU device.
[0246] Fig.16 The structural block diagram of a device for a communication device according to an embodiment of the present disclosure is shown. The device 1600 includes: a third acquisition module 1601 and a third sending module 1602 .
[0247] In the present disclosure, the communication device is a first communication device in a first time-sensitive network, the first communication device is connected to a first OSU device in an optical transmission network via a first communication link, the first OSU device is connected to a second OSU device in the optical transmission network via a third communication link, and the second OSU device is connected to a second communication device in a second time-sensitive network via a second communication link.
[0248] The third acquisition module 1601 is configured to acquire a first unidirectional link delay of the first communication link when communicating with the first OSU device.
[0249] The third sending module 1602 is configured to insert the first unidirectional link delay into the correction domain field of the heterogeneous path delay request message, and then send the heterogeneous path delay request message into which the first unidirectional link delay is inserted to the first OSU device, wherein the first OSU device and the second OSU device cumulatively insert the third unidirectional link delay and the second unidirectional link delay into the correction domain field of the heterogeneous path delay request message into which the first unidirectional link delay is inserted step by step, and then the second OSU device sends the heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay is inserted to the second communication device; the second communication device obtains the total link delay according to the correction domain field, and calculates the time deviation with the first communication device according to the total link delay, so as to achieve time synchronization between the second time-sensitive network and the first time-sensitive network.
[0250] Among them, the total link delay is the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay; the second unidirectional link delay is the delay of the second communication link obtained when the second OSU device communicates with the second communication device; the third unidirectional link delay is the delay of the third communication link obtained when the first OSU device communicates with the second OSU device.
[0251] Fig.17 The structural block diagram of another apparatus for communication equipment according to an embodiment of the present disclosure is shown. The apparatus 1700 comprises: a fourth acquisition module 1701 , a fifth acquisition module 1702 , a calculation module 1703 and an adjustment module 1704 .
[0252] In the present disclosure, the communication device is a second communication device in a second time-sensitive network, the second communication device is connected to a second OSU device in the optical transmission network via a second communication link, the second OSU device is connected to a first OSU device via a third communication link, and the first OSU device is connected to a first communication device in a first time-sensitive network via a first communication link.
[0253] The fourth acquisition module 1701 is configured to obtain a heterogeneous path delay request message inserted with the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay from the second OSU device, wherein the heterogeneous path delay request message inserted with the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay is obtained by the first communication device, the first OSU device, and the second OSU device cumulatively inserting the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay in the correction domain field of the heterogeneous path delay request message step by step.
[0254] The fifth acquisition module 1702 is configured to acquire a total link delay according to the correction domain field of the heterogeneous path delay request message, where the total link delay is the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay;
[0255] The calculation module 1703 is configured to obtain the master clock timestamp value of the first time-sensitive network and the local time of the second time-sensitive network when communicating with the first communication device, and calculate the time deviation with the first communication device based on the master clock timestamp value, the local time and the total link delay.
[0256] The adjustment module 1704 is configured to adjust the local time based on the time deviation so that the time of the second time-sensitive network is synchronized with the time of the first time-sensitive network.
[0257] The present disclosure also discloses an electronic device, Fig.18 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown.
[0258] like Fig.18 As shown, the electronic device includes a memory and a processor, wherein the memory is used to store computer instructions, wherein the computer instructions are executed by the processor to implement the method according to an embodiment of the present disclosure.
[0259] The first time-sensitive network includes a first communication device, the second time-sensitive network includes a second communication device, the optical transmission network includes a first OSU device and a second OSU device, the first communication device is connected to the first OSU device via a first communication link, the second OSU device is connected to the second communication device via a second communication link, and the first OSU device is connected to the second OSU device via a third communication link.
[0260] The method comprises:
[0261] According to an embodiment of the present disclosure, the first OSU device obtains the third unidirectional link delay of the third communication link when communicating with the second OSU device, including: obtaining an OSU multiframe, and obtaining a delay measurement reference time based on the OSU multiframe, wherein the OSU multiframe includes a specified number of OSU frames, the OSU frame includes a delay measurement bit, and the delay measurement bit included in the OSU multiframe carries the delay measurement reference time; calculating the third unidirectional link delay according to the delay measurement reference time; obtaining the third unidirectional link delay; receiving a heterogeneous path delay request message from the first communication device, accumulating and inserting the third unidirectional link delay in the correction domain field of the heterogeneous path delay request message, and then sending it to the second OSU device.
[0262] According to an embodiment of the present disclosure, the second OSU device obtains the second unidirectional link delay of the second communication link when communicating with the second communication device; receives a heterogeneous path delay request message from the first OSU device, accumulates and inserts the second unidirectional link delay in the correction domain field of the heterogeneous path delay request message, and then sends it to the second communication device.
[0263] According to an embodiment of the present disclosure, the first communication device obtains the first unidirectional link delay of the first communication link when communicating with the first OSU device; inserts the first unidirectional link delay into the correction domain field of the heterogeneous path delay request message and sends it to the first OSU device.
[0264] According to an embodiment of the present disclosure, the second communication device obtains a heterogeneous path delay request message with a total link delay inserted from a second OSU device, parses the heterogeneous path delay request message, and obtains the total link delay; obtains the master clock timestamp value of the first time-sensitive network and the local time of the second time-sensitive network when communicating with the first communication device, and calculates the time deviation with the first communication device based on the master clock timestamp value, the local time and the total link delay; adjusts the local time based on the time deviation so that the second time-sensitive network is synchronized with the first time-sensitive network.
[0265] Fig.19 A schematic diagram showing the structure of a computer system suitable for implementing the method according to an embodiment of the present disclosure is shown.
[0266] like Fig.19As shown, the computer system includes a processing unit, which can perform the various methods in the above-mentioned embodiments according to the program stored in the read-only memory (ROM) or the program loaded from the storage part into the random access memory (RAM). In the RAM, various programs and data required for the operation of the computer system are also stored. The processing unit, ROM and RAM are connected to each other through a bus. The input / output (I / O) interface is also connected to the bus.
[0267] The following components are connected to the I / O interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a LAN card, a modem, etc. The communication part performs a communication process via a network such as the Internet. The drive is also connected to the I / O interface as needed. Removable media, such as disks, optical disks, magneto-optical disks, semiconductor memories, etc., are installed on the drive as needed so that the computer program read therefrom is installed into the storage part as needed. Among them, the processing unit can be implemented as a processing unit such as a CPU, a GPU, a TPU, an FPGA, an NPU, etc.
[0268] In particular, according to an embodiment of the present disclosure, the method described above can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program tangibly contained on a machine-readable medium, and the computer program includes a program code for executing the above method. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium.
[0269] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0270] The units or modules involved in the embodiments described in the present disclosure may be implemented by software or programmable hardware. The units or modules described may also be set in a processor, and the names of these units or modules do not constitute limitations on the units or modules themselves in some cases.
[0271] As another aspect, the present disclosure further provides a computer-readable storage medium, which may be a computer-readable storage medium included in the electronic device or computer system in the above embodiment; or a computer-readable storage medium that exists independently and is not assembled into a device. The computer-readable storage medium stores one or more programs, and the programs are used by one or more processors to execute the method described in the present disclosure.
[0272] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present disclosure is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.
Claims
1. A time synchronization method for a time-sensitive network in a heterogeneous communication network across optical service units (OSUs), characterized in that: The cross-OSU heterogeneous communication network includes: an optical transmission network, a first time-sensitive network to be synchronized, and a second time-sensitive network, the first time-sensitive network includes a first communication device, the second time-sensitive network includes a second communication device, the optical transmission network includes a first OSU device and a second OSU device, the first communication device is connected to the first OSU device through a first communication link, the second OSU device is connected to the second communication device through a second communication link, and the first OSU device is connected to the second OSU device through a third communication link. The method includes: The first communication device acquires a first unidirectional link delay of the first communication link when communicating with the first OSU device; The second OSU device acquires a second unidirectional link delay of the second communication link when communicating with the second communication device; The first OSU device obtains the third unidirectional link delay of the third communication link when communicating with the second OSU device, including: obtaining an OSU multiframe, and obtaining a delay measurement reference time based on the OSU multiframe, wherein the OSU multiframe includes a specified number of OSU frames, the OSU frame includes a delay measurement bit, and the delay measurement bit included in the OSU multiframe carries the delay measurement reference time; calculating the third unidirectional link delay according to the delay measurement reference time; the first OSU device obtains the third unidirectional link delay; The first communication device sends a heterogeneous path delay request message to the second communication device through the optical transmission network, wherein the first communication device, the first OSU device, and the second OSU device cumulatively insert the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay in the correction domain field of the heterogeneous path delay request message step by step; The second communication device parses the heterogeneous path delay request message, and acquires a total link delay according to the correction domain field, where the total link delay is the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay; The second communication device obtains the master clock timestamp value of the first time-sensitive network and the local time of the second time-sensitive network when communicating with the first communication device, and calculates the time deviation from the first communication device according to the master clock timestamp value, the local time and the total link delay; The second communication device adjusts the local time based on the time offset so that the second time-sensitive network is synchronized with the time of the first time-sensitive network.
2. The method according to claim 1, characterized in that The first communication device acquires a first unidirectional link delay of the first communication link when communicating with the first OSU device, including: The first initiating node on the first communication link sends a first path delay request message to the first responding node on the first communication link, and receives a first path delay response message and a first path delay response follow-up message replied by the first responding node; The first initiating node records a first sending time of the first path delay request message and a second receiving time of the first path delay response message, obtains the first receiving time of the first path delay request message from the first path delay response message, and obtains the second sending time of the first path delay request message from the first path delay response follow-up message, thereby calculating the first unidirectional link delay according to the first sending time, the first receiving time, the second sending time, and the second receiving time; The first communication device obtains the first unidirectional link delay.
3. The method according to claim 2, characterized in that The calculating the first unidirectional link delay according to the first sending time, the first receiving time, the second sending time, and the second receiving time includes: Calculate a first complete link time of sending and receiving a message by the first initiating node according to the second receiving time and the first sending time; Calculate a first processing time for the first response node to process the message according to the first receiving time and the second sending time; Subtracting the first processing time from the first complete link time to obtain a first bidirectional link delay of the first communication link; Half of the first bidirectional link delay is the first unidirectional link delay.
4. The method according to claim 1, characterized in that: The second OSU device acquires a second unidirectional link delay of the second communication link when communicating with the second communication device, including: The second initiating node on the second communication link sends a second path delay request message to the second responding node on the second communication link, and receives a second path delay response message and a second path delay response follow-up message replied by the second responding node; The second initiating node records the third sending time of the second path delay request message and the fourth receiving time of the second path delay response message, obtains the third receiving time of the second path delay request message from the second path delay response message, and obtains the fourth sending time of the second path delay request message from the second path delay response follow-up message, thereby calculating the second unidirectional link delay according to the third sending time, the third receiving time, the fourth sending time, and the fourth receiving time; The second OSU device obtains the second unidirectional link delay.
5. The method according to claim 4, characterized in that The calculating the second unidirectional link delay according to the third sending time, the third receiving time, the fourth sending time, and the fourth receiving time includes: Calculate a second complete link time for the second initiating node to send and receive a message according to the fourth receiving time and the third sending time; Calculate a second processing time for the second response node to process the message according to the third receiving time and the fourth sending time; Subtracting the second processing time from the second complete link time to obtain a second bidirectional link delay of the second communication link; Half of the second bidirectional link delay is the second unidirectional link delay.
6. The method according to claim 1, characterized in that: The OSU frame also includes a position identification bit; The obtaining of the OSU multiframe and obtaining the delay measurement reference time based on the OSU multiframe include: the third initiating node on the third communication link periodically sends the OSU multiframe, and uses the delay measurement bit included in the OSU multiframe to carry the OSU sending time; the third responding node on the third communication link receives the first OSU multiframe by identifying the position identification bit of the OSU frame, and parses the first OSU multiframe to obtain the corresponding OSU sending time as the delay measurement reference time of the first OSU multiframe; The calculating the third unidirectional link delay according to the delay measurement reference time includes: the third response node calculating the third unidirectional link delay according to the delay measurement reference time of the first OSU multiframe and the OSU receiving time of receiving the first OSU multiframe.
7. The method according to claim 6, characterized in that The third response node subtracts the OSU sending time from the OSU receiving time to calculate the third unidirectional link delay.
8. The method according to claim 1, characterized in that: The OSU frame also includes a position identification bit; The obtaining of the OSU multiframe and obtaining the delay measurement reference time based on the OSU multiframe include: The transmitting end of the third initiating node on the third communication link periodically sends an OSU multiframe, and uses the delay measurement bit included in the OSU multiframe to carry the sequence number; The receiving end of the third response node on the third communication link receives the second OSU multiframe by identifying the position identification bit in the OSU frame, parses the second OSU multiframe to obtain the corresponding sequence number, and sends the sequence number corresponding to the second OSU multiframe and the response end reception time to the sending end of the third response node; The transmitting end of the third response node obtains the responding end sending time of the third OSU multiframe, calculates the responding end residence time according to the responding end receiving time and the responding end sending time, inserts the sequence number corresponding to the second OSU multiframe and the responding end residence time into the delay measurement bit of the third OSU multiframe, and sends the third OSU multiframe at the responding end sending time; The receiving end of the third initiating node parses the third OSU multiframe, obtains the sequence number and the responder residence time corresponding to the second OSU multiframe, and uses the responder residence time as a delay measurement reference time of the second OSU multiframe.
9. The method according to claim 8, characterized in that The calculating the third unidirectional link delay according to the delay measurement reference time includes: When the transmitting end of the third initiating node sends the second OSU multiframe, start the transmitting end timer, when the receiving end of the third initiating node receives the third OSU multiframe, stop the transmitting end timer, and obtain the transmitting and receiving link time based on the transmitting end timer; The third initiating node calculates the third unidirectional link delay according to the responder residence time and the transceiver link time.
10. The method according to claim 9, characterized in that The third initiating node subtracts the responder residence time from the transceiver link time to obtain a third bidirectional link delay, and half of the third bidirectional link delay is the third unidirectional link delay.
11. The method according to claim 1, characterized in that The first communication device, the first OSU device, and the second OSU device cumulatively insert the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay in the correction domain field of the heterogeneous path delay request message step by step, including: The first communication device inserts the first unidirectional link delay into the correction domain field of the heterogeneous path delay request message, and then sends the heterogeneous path delay request message into which the first unidirectional link delay is inserted to the first OSU device; The first OSU device cumulatively inserts the third unidirectional link delay in the correction domain field of the heterogeneous path delay request message into which the first unidirectional link delay is inserted, and then sends the heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is inserted to the second OSU device; The second OSU device cumulatively inserts the second unidirectional link delay in the correction domain field of the heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is inserted, and then sends the heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay is inserted to the second communication device.
12. The method according to claim 11, characterized in that: The first OSU device encapsulates the heterogeneous path delay request message into which the first unidirectional link delay is inserted according to the OSU protocol, and then cumulatively inserts the third unidirectional link delay into the correction domain field of the heterogeneous path delay request message into which the first unidirectional link delay is inserted; The second OSU device decapsulates the heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay is inserted according to the OSU protocol, and then sends it to the second communication device.
13. The method according to claim 1, characterized in that The second communication device acquires the master clock timestamp value of the first time-sensitive network and the local time of the second time-sensitive network when communicating with the first communication device, including: The first communication device sends a synchronization message to the second communication device, records the timestamp value of the master clock for sending the synchronization message, then packs the timestamp value of the master clock into a follow-up message, and sends the follow-up message to the second communication device; The second communication device receives the synchronization message, records the local time of receiving the synchronization message, and parses the follow-up message to obtain the timestamp value of the master clock.
14. The method according to claim 13, characterized in that The second communication device calculates the time deviation with the first communication device according to the timestamp value of the master clock, the local time and the total link delay, including: The second communication device subtracts the master clock timestamp value and the total link delay from the local time to obtain a time deviation from the first communication device.
15. The method according to claim 14, characterized in that The second communication device adjusts the local time based on the time offset, including: the second communication device adds the time offset to the local time as the adjusted local time.
16. An inter-OSU heterogeneous communication network, characterized in that: include: An optical transmission network, a first time-sensitive network to be synchronized, and a second time-sensitive network; The first time-sensitive network includes a first communication device, the second time-sensitive network includes a second communication device, the optical transmission network includes a first OSU device and a second OSU device, the first communication device is connected to the first OSU device via a first communication link, the second OSU device is connected to the second communication device via a second communication link, and the first OSU device is connected to the second OSU device via a third communication link; The first communication device sends a heterogeneous path delay request message to the second communication device through the optical transmission network, wherein the first communication device, the first OSU device, and the second OSU device cumulatively insert the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay in the correction domain field of the heterogeneous path delay request message step by step; the second communication device parses the heterogeneous path delay request message, and obtains the total link delay according to the correction domain field, and the total link delay is the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay; The second communication device obtains the master clock timestamp value of the first time-sensitive network and the local time of the second time-sensitive network when communicating with the first communication device, and calculates the time deviation from the first communication device according to the master clock timestamp value, the local time and the total link delay; The second communication device adjusts the local time based on the time offset so that the second time-sensitive network is synchronized with the time of the first time-sensitive network.
17. The communication network according to claim 16, characterized in that: The first communication device acquires a first unidirectional link delay of the first communication link when communicating with the first OSU device; The second OSU device acquires a second unidirectional link delay of the second communication link when communicating with the second communication device; The first OSU device obtains a third unidirectional link delay of the third communication link when communicating with the second OSU device.
18. A method for an OSU device, characterized in that: The OSU device is a first OSU device in an optical transmission network, the first OSU device is connected to a first communication device in a first time-sensitive network via a first communication link, the first OSU device is connected to a second OSU device in the optical transmission network via a third communication link, and the second OSU device is connected to a second communication device in a second time-sensitive network via a second communication link, and the method includes: Obtaining a third unidirectional link delay of the third communication link when communicating with the second OSU device, comprising: obtaining an OSU multiframe, and obtaining a delay measurement reference time based on the OSU multiframe, wherein the OSU multiframe includes a specified number of OSU frames, the OSU frame includes a delay measurement bit, and the delay measurement bit included in the OSU multiframe carries the delay measurement reference time; calculating the third unidirectional link delay according to the delay measurement reference time; and obtaining the third unidirectional link delay; receiving, from the first communication device, a heterogeneous path delay request message into which a first unidirectional link delay is inserted, wherein the heterogeneous path delay request message into which the first unidirectional link delay is inserted is obtained by the first communication device inserting the first unidirectional link delay into a correction domain field of the heterogeneous path delay request message; Accumulatively inserting the third unidirectional link delay into the correction domain field of the heterogeneous path delay request message into which the first unidirectional link delay is inserted, and then sending the heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is inserted to the second OSU device, wherein the second OSU device cumulatively inserts the second unidirectional link delay into the correction domain field of the heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is inserted, and then sending the heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay is inserted to the second communication device, the second communication device acquires the total link delay according to the correction domain field, and calculates the time deviation with the first communication device according to the total link delay, so as to achieve time synchronization between the second time-sensitive network and the first time-sensitive network; Among them, the total link delay is the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay. The first unidirectional link delay is the delay of the first communication link obtained when the first communication device communicates with the first OSU device, and the second unidirectional link delay is the delay of the second communication link obtained when the second OSU device communicates with the second communication device.
19. A method for an OSU device, characterized in that: The OSU device is a second OSU device in the optical transmission network, the second OSU device is connected to a second communication device in a second time-sensitive network via a second communication link, the second OSU device is connected to a first OSU device in the optical transmission network via a third communication link, and the first OSU device is connected to a first communication device in a first time-sensitive network via a first communication link, and the method includes: Acquire a second unidirectional link delay of a second communication link when communicating with the second communication device; receiving, from the first OSU device, a heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is inserted, wherein the heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is obtained by accumulating and inserting step by step in the correction domain field of the heterogeneous path delay request message by the first communication device and the first OSU device; Accumulatively inserting the second unidirectional link delay into the correction domain field of the heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is inserted, and then sending the heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay is inserted to the second communication device, so that the second communication device can obtain the total link delay according to the correction domain field, and calculate the time deviation with the first communication device according to the total link delay, so as to achieve time synchronization between the second time-sensitive network and the first time-sensitive network; Among them, the total link delay is the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay. The first unidirectional link delay is the delay of the first communication link obtained when the first communication device communicates with the first OSU device, and the third unidirectional link delay is the delay of the third communication link obtained when the first OSU device communicates with the second OSU device.
20. A method for a communication device, characterized in that: The communication device is a first communication device in a first time-sensitive network, the first communication device is connected to a first OSU device in an optical transmission network through a first communication link, the first OSU device is connected to a second OSU device in the optical transmission network through a third communication link, and the second OSU device is connected to a second communication device in a second time-sensitive network through a second communication link, and the method includes: Acquire a first unidirectional link delay of the first communication link when communicating with the first OSU device; Insert the first unidirectional link delay into the correction domain field of the heterogeneous path delay request message, and then send the heterogeneous path delay request message into which the first unidirectional link delay is inserted to the first OSU device, wherein the first OSU device and the second OSU device cumulatively insert the third unidirectional link delay and the second unidirectional link delay into the correction domain field of the heterogeneous path delay request message into which the first unidirectional link delay is inserted step by step, and then the second OSU device sends the heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay is inserted to the second communication device; the second communication device obtains the total link delay according to the correction domain field, and calculates the time deviation with the first communication device according to the total link delay, so as to achieve time synchronization between the second time-sensitive network and the first time-sensitive network; Among them, the total link delay is the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay; the second unidirectional link delay is the delay of the second communication link obtained when the second OSU device communicates with the second communication device; the third unidirectional link delay is the delay of the third communication link obtained when the first OSU device communicates with the second OSU device.
21. A method for a communication device, characterized in that: The communication device is a second communication device in a second time-sensitive network, the second communication device is connected to a second OSU device in an optical transmission network via a second communication link, the second OSU device is connected to a first OSU device via a third communication link, and the first OSU device is connected to a first communication device in a first time-sensitive network via a first communication link, and the method includes: Acquire a heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay is inserted from the second OSU device, wherein the heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay is obtained by the first communication device, the first OSU device and the second OSU device cumulatively inserting the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay in the correction domain field of the heterogeneous path delay request message step by step; Acquire a total link delay according to a correction domain field of the heterogeneous path delay request message, where the total link delay is the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay; Acquire a master clock timestamp value of the first time-sensitive network and a local time of the second time-sensitive network when communicating with the first communication device, and calculate a time deviation from the first communication device based on the master clock timestamp value, the local time, and the total link delay; The local time is adjusted based on the time deviation so that the second time-sensitive network is synchronized with the time of the first time-sensitive network.
22. A device for an OSU device, characterized in that: The OSU device is a first OSU device in an optical transmission network, the first OSU device is connected to a first communication device in a first time-sensitive network through a first communication link, the first OSU device is connected to a second OSU device in the optical transmission network through a third communication link, and the second OSU device is connected to a second communication device in a second time-sensitive network through a second communication link, and the apparatus includes: The first acquisition module is configured to acquire the third unidirectional link delay of the third communication link when communicating with the second OSU device, including: acquiring an OSU multiframe, and acquiring a delay measurement reference time based on the OSU multiframe, wherein the OSU multiframe includes a specified number of OSU frames, the OSU frame includes a delay measurement bit, and the delay measurement bit included in the OSU multiframe carries the delay measurement reference time; calculating the third unidirectional link delay according to the delay measurement reference time; and acquiring the third unidirectional link delay; A first receiving module is configured to receive a heterogeneous path delay request message into which a first unidirectional link delay is inserted from the first communication device, wherein the heterogeneous path delay request message into which the first unidirectional link delay is inserted is obtained by the first communication device inserting the first unidirectional link delay into a correction domain field of the heterogeneous path delay request message; A first sending module is configured to cumulatively insert the third unidirectional link delay in the correction domain field of the heterogeneous path delay request message into which the first unidirectional link delay is inserted, and then send the heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is inserted to a second OSU device, wherein the second OSU device cumulatively inserts the second unidirectional link delay in the correction domain field of the heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is inserted, and then send the heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay is inserted to the second communication device, the second communication device acquires the total link delay according to the correction domain field, and calculates the time deviation with the first communication device according to the total link delay, so as to achieve time synchronization between the second time-sensitive network and the first time-sensitive network; Among them, the total link delay is the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay. The first unidirectional link delay is the delay of the first communication link obtained when the first communication device communicates with the first OSU device, and the second unidirectional link delay is the delay of the second communication link obtained when the second OSU device communicates with the second communication device.
23. A device for an OSU device, characterized in that: The OSU device is a second OSU device in the optical transmission network, the second OSU device is connected to a second communication device in a second time-sensitive network through a second communication link, the second OSU device is connected to a first OSU device in the optical transmission network through a third communication link, and the first OSU device is connected to a first communication device in a first time-sensitive network through a first communication link, and the apparatus includes: A second acquisition module is configured to acquire a second unidirectional link delay of a second communication link when communicating with the second communication device; A second receiving module is configured to receive, from the first OSU device, a heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is inserted, wherein the heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is obtained by accumulating and inserting step by step in a correction domain field of the heterogeneous path delay request message by the first communication device and the first OSU device; a second sending module, configured to cumulatively insert the second unidirectional link delay into the correction domain field of the heterogeneous path delay request message into which the sum of the first unidirectional link delay and the third unidirectional link delay is inserted, and then send the heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay is inserted to the second communication device, so that the second communication device can obtain the total link delay according to the correction domain field, and calculate the time deviation with the first communication device according to the total link delay, so as to achieve time synchronization between the second time-sensitive network and the first time-sensitive network; Among them, the total link delay is the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay. The first unidirectional link delay is the delay of the first communication link obtained when the first communication device communicates with the first OSU device, and the third unidirectional link delay is the delay of the third communication link obtained when the first OSU device communicates with the second OSU device.
24. An apparatus for a communication device, characterized in that: The communication device is a first communication device in a first time-sensitive network, the first communication device is connected to a first OSU device in an optical transmission network through a first communication link, the first OSU device is connected to a second OSU device in the optical transmission network through a third communication link, and the second OSU device is connected to a second communication device in a second time-sensitive network through a second communication link, and the apparatus includes: A third acquisition module is configured to acquire a first unidirectional link delay of the first communication link when communicating with the first OSU device; The third sending module is configured to insert the first unidirectional link delay into the correction domain field of the heterogeneous path delay request message, and then send the heterogeneous path delay request message into which the first unidirectional link delay is inserted to the first OSU device, wherein the first OSU device and the second OSU device cumulatively insert the third unidirectional link delay and the second unidirectional link delay into the correction domain field of the heterogeneous path delay request message into which the first unidirectional link delay is inserted step by step, and then the second OSU device sends the heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay and the second unidirectional link delay is inserted to the second communication device; the second communication device obtains the total link delay according to the correction domain field, and calculates the time deviation with the first communication device according to the total link delay, so as to achieve time synchronization between the second time-sensitive network and the first time-sensitive network; Among them, the total link delay is the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay; the second unidirectional link delay is the delay of the second communication link obtained when the second OSU device communicates with the second communication device; the third unidirectional link delay is the delay of the third communication link obtained when the first OSU device communicates with the second OSU device.
25. An apparatus for a communication device, characterized in that: The communication device is a second communication device in a second time-sensitive network, the second communication device is connected to a second OSU device in an optical transmission network via a second communication link, the second OSU device is connected to a first OSU device via a third communication link, and the first OSU device is connected to a first communication device in a first time-sensitive network via a first communication link, and the apparatus includes: a fourth acquisition module, configured to acquire, from the second OSU device, a heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay is inserted, wherein the heterogeneous path delay request message into which the sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay is obtained by the first communication device, the first OSU device, and the second OSU device cumulatively inserting the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay in a correction domain field of the heterogeneous path delay request message step by step; a fifth acquisition module, configured to acquire a total link delay according to a correction domain field of the heterogeneous path delay request message, wherein the total link delay is a sum of the first unidirectional link delay, the third unidirectional link delay, and the second unidirectional link delay; a calculation module, configured to obtain a master clock timestamp value of the first time-sensitive network and a local time of the second time-sensitive network when communicating with the first communication device, and calculate a time deviation from the first communication device based on the master clock timestamp value, the local time and the total link delay; The adjustment module is configured to adjust the local time based on the time deviation so that the second time-sensitive network is synchronized with the time of the first time-sensitive network.
26. An electronic device, characterized in that: It comprises a memory and a processor; wherein the memory is used to store computer instructions, wherein the computer instructions are executed by the processor to implement the method according to any one of claims 18 to 21.
27. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the computer instructions are executed by a processor, the method described in any one of claims 18 to 21 is implemented.
28. A computer program product, comprising computer instructions, which, when executed by a processor, implement the method according to any one of claims 18 to 21.
Citation Information
Patent Citations
Network collaboration method and device, equipment and storage medium
CN114827781A
Time service system and method based on all-optical network and Kalman filtering correction and application
CN116506058A
Scheduling method and device of OSU in OTN equipment
CN117896642A