CN117879744A - TSN time synchronization method of multiple redundancy sources - Google Patents
TSN time synchronization method of multiple redundancy sources Download PDFInfo
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 18
- 230000001360 synchronised effect Effects 0.000 claims abstract description 7
- 230000005540 biological transmission Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0658—Clock or time synchronisation among packet nodes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- 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
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.
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) |
-
2023
- 2023-12-22 CN CN202311786741.2A patent/CN117879744A/en active Pending
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 | |
KR101434931B1 (en) | Method, apparatus and system for transmitting sdh/sonet section overhead bytes | |
WO2019084732A1 (en) | Clock synchronization method and apparatus | |
CN113574826B (en) | Method and device for synchronizing messages by interactive clock | |
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 | |
EP4207859A1 (en) | Methods for inserting and extracting operations, administration, and maintenance of transmitting end, device, and medium | |
JP2001358766A (en) | System and method for packet communication and computer readable recording medium with program for making computer perform the method recorded thereon | |
US9774458B2 (en) | Method for transporting Ethernet and non-Ethernet traffic over the same medium | |
CN109818704A (en) | Data transmission method and equipment | |
CN117879744A (en) | TSN time synchronization method of multiple redundancy sources | |
EP3618317A1 (en) | Message sending method and message receiving method and apparatus | |
CN102158412B (en) | Transmission method and system of synchronous state information in Ethernet synchronization | |
US8665912B2 (en) | Method and system for transmitting a clock rate on an Ethernet network link and applications thereof | |
WO2023207720A1 (en) | Message processing method and apparatus | |
CN118055076A (en) | Message processing method, message processing method and device | |
WO2021031153A1 (en) | Data processing device and system | |
CN116156556A (en) | Method and device for transmitting SDH (synchronous digital hierarchy) signals for power channel SPN (synchronous digital hierarchy) network and SPN equipment | |
CN118251864A (en) | Control signaling transmission method, communication node and base station | |
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 |