CN117879744A - TSN time synchronization method of multiple redundancy sources - Google Patents

TSN time synchronization method of multiple redundancy sources Download PDF

Info

Publication number
CN117879744A
CN117879744A CN202311786741.2A CN202311786741A CN117879744A CN 117879744 A CN117879744 A CN 117879744A CN 202311786741 A CN202311786741 A CN 202311786741A CN 117879744 A CN117879744 A CN 117879744A
Authority
CN
China
Prior art keywords
time synchronization
port number
synchronization frame
master clock
redundant port
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311786741.2A
Other languages
Chinese (zh)
Inventor
王红春
金星
张树兵
陈尧
贺亚权
魏涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xi'an Yunwei Zhilian Technology Co ltd
Original Assignee
Xi'an Yunwei Zhilian Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xi'an Yunwei Zhilian Technology Co ltd filed Critical Xi'an Yunwei Zhilian Technology Co ltd
Priority to CN202311786741.2A priority Critical patent/CN117879744A/en
Publication of CN117879744A publication Critical patent/CN117879744A/en
Pending legal-status Critical Current

Links

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a TSN time synchronization method of multiple redundancy sources, which comprises the following steps: step 1, adding a master clock end system in a TSN network, designing two clocks on a switch to keep synchronous with the master clock end system, and synchronizing a slave clock end system in the network with the switch; simultaneously, each end system network card is provided with two communication network ports P1 and P2; step 2, copying a time synchronization frame into 4 time synchronization frames at a transmitting end, and sequentially filling different redundant port number information into the 4 time synchronization frames, wherein the redundant port number information comprises a redundant port number and a master clock number; step 3, the transmitting end transmits the 4 time synchronization frames obtained in the step 1 to the receiving end respectively; and step 4, the receiving end receives and analyzes the time synchronization frame and selects the time synchronization frame. Under the conditions of port redundancy and clock redundancy, the invention realizes the TSN time synchronization function of multiple redundancy sources and improves the high reliability of time synchronization.

Description

TSN time synchronization method of multiple redundancy sources
Technical Field
The invention belongs to the technical field of computer network communication, and particularly relates to a TSN time synchronization method of multiple redundancy sources.
Background
Time Sensitive Networking (TSN) time-sensitive ethernet is based on existing ethernet, and implements a set of international standards, so that a common ethernet has the characteristics of time synchronization, reliable data transmission (low packet loss rate, low delay, and low jitter). The basis of the TSN network is time synchronization, the IEEE 802.1AS defines a standard of time synchronization, and each node in the TSN network establishes a state of time synchronization by using the 802.1AS standard so AS to schedule data traffic by other services based on time sensitive characteristics.
In order to obtain high reliability during ethernet data transmission, various redundancy measures are used, a transmitting end transmits a redundancy frame, a receiving end eliminates the redundancy frame, and if one link is broken, the other link is not affected. The 802.1AS standard does not consider the case of redundancy, and because the time synchronization frames are relatively special, the transmission time stamps are encapsulated inside the frames, and the transmission time stamps of the synchronization frames of different links are different, the frame duplication and elimination cannot be simply performed to perform redundancy design. Based on this, there is a need to study a TSN time synchronization method for multiple redundancy sources.
Disclosure of Invention
The invention aims to provide a TSN time synchronization method of multiple redundancy sources, which aims to solve the technical problem that the existing time synchronization method lacks redundancy characteristics.
The invention provides a TSN time synchronization method of multiple redundancy sources, which comprises the following steps:
step 1, adding a master clock end system in a TSN network, so that the TSN network has two master clock end systems, designing two clocks on a switch to keep synchronous with the master clock end systems, and keeping the slave clock end systems in the TSN network synchronous with the switch; meanwhile, a port is added on each end system network card, so that each end system network card is provided with two communication network ports P1 and P2;
step 2, copying a time synchronization frame into 4 time synchronization frames at a transmitting end, and sequentially filling different redundant port number information into the 4 time synchronization frames, wherein the redundant port number information comprises a redundant port number and a master clock number, and the redundant port number information is combined into 4 different redundant port number information: P1C1, P1C2, P2C1, P2C2; wherein C1, C2 represent a first master clock and a standby master clock;
step 3, the transmitting end transmits the 4 time synchronization frames obtained in the step 1 to the receiving end respectively;
step 4, after receiving the time synchronization frame sent by the sending end, the receiving end firstly analyzes redundant port number information in the time synchronization frame, and selects the time synchronization frame according to the redundant port number information: the time synchronization frame is obtained according to the channel selection and the clock selection.
Further, in step 2, the redundant port number information is filled in the sourceport identity field of the time synchronization frame.
Further, in step 4, the specific operation of selecting the time synchronization frame according to the redundant port number information is as follows:
the receiving end selects a time synchronization frame according to the redundant port number in the redundant port number information, uses the time synchronization frame with the redundant port number of P1, discards the time synchronization frame with the redundant port number of P2, and uses the time synchronization frame corresponding to P2 only when the time synchronization frame corresponding to P1 is lost; then, a time synchronization frame with a master clock number of C1 is selected from the time synchronization frames with a plurality of redundant ports of P1, the time synchronization frame with the master clock number of C2 is discarded, and only when the time synchronization frame with the master clock number of C1 is lost, the time synchronization frame with the master clock number of C2 is used.
Further, step 5 is included to perform the conventional time synchronization operation in the 802.1AS standard.
Compared with the prior art, the invention has the following beneficial effects:
(1) The method of the invention adds port redundancy and clock redundancy in the TSN network on the basis of not changing 802.1AS protocol, and can realize the TSN time synchronization function of multiple redundancy sources under the condition of aiming at the two redundancies, thereby improving the high reliability of time synchronization and being compatible with the existing protocol.
(2) When the time synchronization software sends out the data frame, the port redundancy frame and the clock redundancy frame, and when the time synchronization frame is received, the time synchronization frame to be used is selected according to the redundancy information, and other redundancy frames are discarded.
(3) If one time synchronization channel or one clock fails, the time synchronization software can select other time synchronization channels to continue time synchronization, and the reliability of the time synchronization is improved.
(4) The method can be used for time synchronization with other non-redundant terminal systems, and has strong compatibility.
Drawings
Fig. 1 is a schematic diagram of adding two types of redundancy in a TSN network on which the present invention is based.
Fig. 2 is a header of a conventional PTP frame in a TSN network.
Fig. 3 is a schematic diagram of the method of the present invention.
Fig. 4 is a flowchart of time synchronization frame selection by the receiving end according to the redundant information.
The invention is further described below with reference to the drawings and the detailed description.
Detailed Description
As shown in fig. 3, the present invention provides a TSN time synchronization method for multiple redundancy sources, which includes the following steps:
step 1, two types of redundancy are set in the TSN network. The method comprises the following steps:
as shown in fig. 1, two types of redundancy are set in the TSN network, the first is to add a master clock end system in the TSN network, so that the whole TSN network has two master clock end systems (a first master clock GM1 and a standby master clock GM2 in the figure), two clocks are also designed on two switches (SW 1, SW 2) to keep synchronous with the master clock end systems, and slave clock end systems (ES 1, ES 2) are designed to keep synchronous with the switches;
the second is to add a port on each network card of the end system, so that each network card of the end system (including GM1, GM2, ES1, ES 2) has two communication ports P1, P2, and the two ports are respectively sent out after a time synchronization frame is copied into two synchronization frames.
And step 2, adding the identification of the redundant information on the time synchronization frame. The method comprises the following steps:
the redundancy of the time synchronization is not a simple redundancy of the data frames, but a redundancy of the channels (i.e. links). A synchronization frame is transmitted from different links, and different results are calculated, so that the time synchronization software needs to record the identifiers of the channels in the frame when transmitting the synchronization frame, so that the subsequent receiving end performs redundancy selection according to the identifiers.
The header of a conventional PTP frame (time synchronization frame) is shown in fig. 2. The sourcePortIdentity includes a clock serial number (clock id) and an upper port number. The invention expands sourcePortIdentity, and redundant port number information is added in the sourcePortIdentity. The redundant port number information includes a redundant port number and a master clock number, and the total number of the redundant port numbers is 4: P1C1, P1C2, P2C1, P2C2. Wherein C1, C2 represent the first master clock and the standby master clock. The following table shows:
TABLE 1 sourceportIdentity in the PTP frame header field of the present invention
The time synchronization software copies one time synchronization frame into 4 time synchronization frames at the transmitting end, sequentially fills different redundant port number information into the sourcePortIdentity of the 4 synchronization frames, and respectively obtains 4 time synchronization frames added with the redundant port number information.
And 3, the transmitting end transmits the 4 time synchronization frames obtained in the step 1 to the receiving end respectively.
And 4, after receiving the time synchronization frame sent by the sending end, the receiving end firstly analyzes redundant port number information in the time synchronization frame, and selects the time synchronization frame according to the redundant port number information. As shown in fig. 4, the specific operation is as follows:
the receiving end selects a time synchronization frame according to the redundant port number in the redundant port number information, uses the time synchronization frame with the redundant port number of P1 (A-path network port in the figure), discards the time synchronization frame with the redundant port number of P2 (B-path network port in the figure), and uses the time synchronization frame corresponding to P2 only when the time synchronization frame corresponding to P1 is lost. Then, a time synchronization frame with a master clock number of C1 (first master clock in the figure) is selected from among the plurality of time synchronization frames with a redundant port number of P1, and a time synchronization frame with a master clock number of C2 (standby master clock in the figure) is discarded, and only when the time synchronization frame with the master clock number of C1 is lost, the time synchronization frame with the master clock number of C2 is used.
And 5, performing conventional time synchronization operation in the 802.1AS standard.

Claims (4)

1. A method for TSN time synchronization for multiple redundancy sources, comprising the steps of:
step 1, adding a master clock end system in a TSN network, so that the TSN network has two master clock end systems, designing two clocks on a switch to keep synchronous with the master clock end systems, and keeping the slave clock end systems in the TSN network synchronous with the switch; meanwhile, a port is added on each end system network card, so that each end system network card is provided with two communication network ports P1 and P2;
step 2, copying a time synchronization frame into 4 time synchronization frames at a transmitting end, and sequentially filling different redundant port number information into the 4 time synchronization frames, wherein the redundant port number information comprises a redundant port number and a master clock number, and the redundant port number information is combined into 4 different redundant port number information: P1C1, P1C2, P2C1, P2C2; wherein C1, C2 represent a first master clock and a standby master clock;
step 3, the transmitting end transmits the 4 time synchronization frames obtained in the step 1 to the receiving end respectively;
step 4, after receiving the time synchronization frame sent by the sending end, the receiving end firstly analyzes redundant port number information in the time synchronization frame, and selects the time synchronization frame according to the redundant port number information: the time synchronization frame is obtained according to the channel selection and the clock selection.
2. The TSN time synchronization method of multiple redundancy sources of claim 1, wherein in step 2, the redundant port number information is filled in a sourcePortIdentity field of a time synchronization frame.
3. The TSN time synchronization method of multiple redundancy sources according to claim 1, wherein in step 4, the specific operation of selecting the time synchronization frame according to the redundant port number information is as follows:
the receiving end selects a time synchronization frame according to the redundant port number in the redundant port number information, uses the time synchronization frame with the redundant port number of P1, discards the time synchronization frame with the redundant port number of P2, and uses the time synchronization frame corresponding to P2 only when the time synchronization frame corresponding to P1 is lost; then, a time synchronization frame with a master clock number of C1 is selected from the time synchronization frames with a plurality of redundant ports of P1, the time synchronization frame with the master clock number of C2 is discarded, and only when the time synchronization frame with the master clock number of C1 is lost, the time synchronization frame with the master clock number of C2 is used.
4. The TSN time synchronization method of multiple redundancy sources of claim 1, further comprising step 5, performing a time synchronization operation conventional in the 802.1AS standard.
CN202311786741.2A 2023-12-22 2023-12-22 TSN time synchronization method of multiple redundancy sources Pending CN117879744A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311786741.2A CN117879744A (en) 2023-12-22 2023-12-22 TSN time synchronization method of multiple redundancy sources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311786741.2A CN117879744A (en) 2023-12-22 2023-12-22 TSN time synchronization method of multiple redundancy sources

Publications (1)

Publication Number Publication Date
CN117879744A true CN117879744A (en) 2024-04-12

Family

ID=90592748

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311786741.2A Pending CN117879744A (en) 2023-12-22 2023-12-22 TSN time synchronization method of multiple redundancy sources

Country Status (1)

Country Link
CN (1) CN117879744A (en)

Similar Documents

Publication Publication Date Title
US11824636B2 (en) Method and apparatus for sending and receiving clock synchronization packet
US20210083943A1 (en) Method and apparatus for adjusting bandwidth of transmission channel in flexible ethernet
KR101643671B1 (en) Network device and information transmission method
US7813271B2 (en) Aggregated link traffic protection
CN111095860B (en) Method and device for clock synchronization
US9184862B2 (en) Method, apparatus and system for transmitting SDH/Sonet section overhead bytes
CN103404226A (en) Method and device for data transmission
EP2461487B1 (en) Message synchronization method, apparatus and system
EP1919139B1 (en) System and method for realizing network synchronization by packet network
CN101170484B (en) A switching chip and switching device based on non compression transmission protocol
CN108322483A (en) A kind of implementation method of the receiving terminal circuit based on JESD204B agreements
US9774458B2 (en) Method for transporting Ethernet and non-Ethernet traffic over the same medium
JP2001358766A (en) System and method for packet communication and computer readable recording medium with program for making computer perform the method recorded thereon
AU2021332873A1 (en) Methods for inserting and extracting operations, administration, and maintenance of transmitting end, device, and medium
CN117879744A (en) TSN time synchronization method of multiple redundancy sources
CN102158412B (en) Transmission method and system of synchronous state information in Ethernet synchronization
WO2020181462A1 (en) Clock synchronization message interacting method and apparatus
US20080212618A1 (en) Method and System for Transmitting a Clock Rate on an Ethernet Network Link and Applications Thereof
EP3618317A1 (en) Message sending method and message receiving method and apparatus
WO2023207720A1 (en) Message processing method and apparatus
CA2699719C (en) Transmission device, transmission system, transmission method, and transmission program
WO2021031153A1 (en) Data processing device and system
CN117579220A (en) Fault code block processing method and device
CN116156556A (en) Method and device for transmitting SDH (synchronous digital hierarchy) signals for power channel SPN (synchronous digital hierarchy) network and SPN equipment
Ashwini et al. IMPLEMENTATION OF SYNCHRONOUSETHERNET IN TELECOMMUNICATION SYSTEM

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination