CN111065007A - Optical fiber network time-frequency synchronization method, device, medium and equipment - Google Patents

Optical fiber network time-frequency synchronization method, device, medium and equipment Download PDF

Info

Publication number
CN111065007A
CN111065007A CN201911373126.2A CN201911373126A CN111065007A CN 111065007 A CN111065007 A CN 111065007A CN 201911373126 A CN201911373126 A CN 201911373126A CN 111065007 A CN111065007 A CN 111065007A
Authority
CN
China
Prior art keywords
host
main
standby
time
fpga
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.)
Withdrawn
Application number
CN201911373126.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.)
Fifth Research Institute Of Telecommunications Technology Co ltd
Original Assignee
Fifth Research Institute Of Telecommunications 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 Fifth Research Institute Of Telecommunications Technology Co ltd filed Critical Fifth Research Institute Of Telecommunications Technology Co ltd
Priority to CN201911373126.2A priority Critical patent/CN111065007A/en
Publication of CN111065007A publication Critical patent/CN111065007A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q11/0067Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0005Switch and router aspects
    • H04Q2011/0037Operation
    • H04Q2011/0045Synchronisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects
    • H04Q2011/0081Fault tolerance; Redundancy; Recovery; Reconfigurability

Abstract

The embodiment of the application provides a time-frequency synchronization method, a time-frequency synchronization device, a time-frequency synchronization medium and a time-frequency synchronization device for an optical fiber network, wherein the method comprises the steps of monitoring state information of a main host by a standby host, calculating phase deviation between the standby host and the main host, and performing phase modulation compensation on the standby host according to the phase deviation to ensure that the phases of the main host and the standby host are consistent; the main host sends heartbeat packets to the standby host every second; if the standby host does not receive the heartbeat packet within the threshold time, executing the main/standby switching; otherwise, performing data hot backup; the FPGA blocks and outputs the frequency and time information of the main host; when the time source and the frequency source of the standby host are input normally, and the frequency detection state, the PLL are not unlocked and the time source synchronization does not exceed the set time, the CPU of the main host writes the main/standby switching state value into the FPGA register of the main host, and the FPGA of the main host performs main/standby switching.

Description

Optical fiber network time-frequency synchronization method, device, medium and equipment
Technical Field
The present application relates to the field, and in particular, to a method, an apparatus, a medium, and a device for time-frequency synchronization in an optical fiber network.
Background
In the time-frequency reference system networking based on the optical fiber network, in order to improve the stability and reliability of the reference system, the technology of main/standby hot backup is generally adopted in the system design. The main and standby hot backup means that one is used as a main host and the other is used as a standby host in the process of simultaneous operation of two devices, the main host of the optical fiber network mainly completes control management of the extension and standby hosts, the main host adopts a state machine to schedule state reporting of the extension and standby hosts and the main host actively issues parameter setting to the extension and standby hosts.
In an optical fiber network, when a primary host generates an alarm and an optical fiber link fails, a standby host of a system needs to be seamlessly switched to the primary host to take over the work of the primary host, so that the primary-standby switching based on the optical fiber network must satisfy two basic functions: firstly, the real-time monitoring of the faults of the main equipment and the standby host ensures the reliable operation of the system by monitoring the operation state of the system, and secondly, the real-time monitoring of the optical fiber link determines whether the main-standby switching is needed by judging whether the optical fiber link works normally.
The main-standby switching is carried out by detecting the working state of the system and judging whether the equipment gives an alarm or not, and the technology cannot meet the requirements of hot data backup and seamless main-standby switching of the optical fiber network.
Disclosure of Invention
The application provides a time-frequency synchronization method, a time-frequency synchronization device, a time-frequency synchronization medium and time-frequency synchronization equipment for an optical fiber network, which are used for solving the technical problems in the prior art. The invention provides a main/standby switching and time delay compensation technology based on an optical fiber network, which can realize hot backup of main/standby data (hot backup means that the main host and the standby host use the same set of data in the system, and seamless switching means that the output performance and service output of the main host and the standby host are consistent), and the equipment service and system output performance are not affected during the main/standby switching.
The embodiment of the application is realized by the following steps:
a time-frequency synchronization method for optical fiber network includes
Step 1: the main host sends the state parameters and performance parameters of the main host and all the extensions to the standby host every second, so as to realize hot backup of data;
step 2: the standby host monitors the state information of the main host, calculates the phase deviation between the standby host and the main host, and performs phase modulation compensation on the standby host according to the phase deviation to ensure that the phases of the main host and the standby host are consistent;
and step 3: the main host sends heartbeat packets to the standby host every second; if the standby host does not receive the heartbeat packet within the threshold time, executing the step 4; otherwise, executing step 1;
and 4, step 4: the FPGA blocks and outputs the frequency and time information of the main host; when the time source and the frequency source of the standby host are input normally, and the frequency detection state, the PLL are not unlocked and the time source synchronization does not exceed the set time, the CPU of the main host writes the main/standby switching state value into the FPGA register of the main host, and the FPGA of the main host performs main/standby switching.
Preferably, the main/standby switching by the FPGA specifically means that after the standby host performs phase modulation compensation according to the phase deviation, the output time and frequency information are consistent with those of the main host, and the main/standby switching state value is written to the FPGA register by the CPU, so that the FPGA performs the main/standby switching.
Preferably, during the working period of the main host, whether the communication link of the main host is normal is monitored in real time;
when at least one communication link of the main host is normal, the main host detects whether the frequency reference source alarms or not through the FPGA; if the frequency reference source generates an alarm, the step 4 is entered for switching the main host and the standby host, otherwise, the main host judges whether the main host receives a main/standby switching command sent by the upper computer, and if so, the step 4 is entered; otherwise, the step 1 is entered.
Preferably, the main host detects whether the optical fiber uplink communication link and the downlink communication link work normally through the FPGA:
the CPU of the main host computer and the FPGA of the main host computer communicate through EPC BUS, the FPGA of the main host computer obtains the status information of the optical transceiver through an I2C interface,
when the optical transceiver detects the optical fiber link failure, the optical transceiver informs the FPGA of the optical fiber link abnormality through an I2C interface, and the FGPA informs the optical fiber link alarm of the current port of the main host through an EPC BUS;
when the current optical fiber link is normal, the FPGA acquires a communication frame of the optical transceiver through the RS-485 interface, the acquired communication frame is processed through the demodulator, the data in the communication frame is analyzed through the decoder after the processing, the analyzed data is placed into a frame receiving FIFO cache, and the main host reads the data from the frame receiving FIFO cache.
Preferably, the specific process of sending the state parameters and performance parameters of the host and each extension to the standby host or extension by the active host through the optical fiber is as follows: the state parameters and performance parameters of the main host and each extension to be transmitted are put into the frame-sending FIFO through the EPCBUS bus, the FPGA of the main host reads data from the frame-sending FIFO, the data are assembled into communication frames through the encoder, and then the communication frames are transmitted to the optical transceiver after passing through the modulator.
Preferably, the phase modulation compensation is performed on the standby host according to the phase deviation to ensure that the phases of the main host and the standby host are consistent, and the specific process is as follows:
the standby host extracts the frequency signal of the main host through the optical fiber link, and locks the clock of the standby host to be the same as the clock of the main host by adopting a phase-locked loop;
the standby host sends a synchronization request packet to the main host, the main host packages the time information of the host into the synchronization packet and sends the synchronization packet to the standby host, the standby host analyzes the time stamps of T1, T2, T3 and T4 according to the interactive synchronization packet, calculates the line delay and time deviation, and performs phase modulation compensation on local time according to the line delay and the time deviation.
A time-frequency synchronization device for an optical fiber network comprises:
the main host is used for sending the state parameters and the performance parameters of the main host and the extension sets to the standby host every second to realize the hot backup of data; the main host sends heartbeat packets to the standby host every second; if the standby host does not receive the heartbeat packet within the threshold time, the FPGA of the main host blocks and outputs the frequency and time information of the main host; when the time source and the frequency source of the standby host are input normally, and the frequency detection state, the PLL are not unlocked and the time source synchronization does not exceed the set time, writing a main/standby switching state value to an FPGA register of the main host through a CPU of the main host, and performing main/standby switching by the FPGA of the main host; otherwise, the main host computer continues to realize the hot backup of the data;
and the standby host is used for monitoring the state information of the main host, calculating the phase deviation between the standby host and the main host, and performing phase modulation compensation on the standby host according to the phase deviation to ensure that the phases of the main host and the standby host are consistent.
A computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the time-frequency synchronization method for a fiber optic network according to any one of the preceding claims.
An optical cross network connection detection apparatus comprising: a memory for storing a computer program; a processor for implementing the steps of the time-frequency synchronization method for an optical fiber network according to any one of the above when the computer program is executed.
Has the advantages that:
three aspects are adopted to carry out the main-standby switching, one is that: judging whether an external reference source generates an alarm or not and whether a main host of the time-frequency synchronization equipment generates an alarm or not through the FPGA; secondly, the following steps: whether a main host of the time-frequency synchronization equipment receives a main/standby switching command issued by an upper computer or not; thirdly, the method comprises the following steps: whether the standby host of the time-frequency synchronization equipment receives the heartbeat packet sent by the main host within the threshold time or not. The existing main/standby switching technology usually detects the working state of the system and judges whether the equipment gives an alarm to switch the main/standby, and the technology cannot meet the data hot backup and the seamless switching of the main/standby of the optical fiber network.
The problems of hot backup of main and standby data, poor accuracy of equipment service and system output performance and the like are solved through a main and standby switching and delay compensation technology of an optical fiber network (the hot backup refers to that the main host and the standby host use the same set of data in the system, and the seamless switching refers to that the output performance and the service output of the main host and the standby host are kept consistent).
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a connection diagram of a fiber optic network device according to an embodiment of the present disclosure;
fig. 2 is a connection diagram of an FPGA detection link according to an embodiment of the present disclosure;
Detailed Description
The technical solution in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
A demodulator (such as the descrambler of figure 2) that functions the same as the prior art demodulator; a modulator (e.g., scrambler in fig. 2) that functions as a prior art modulator by sending out an optical signal at a certain frequency; a decoder (such as a deframer in fig. 2); the function of the decoder is the same as that of the decoder in the prior art, namely, the optical signal is converted into an electrical signal; an encoder (framer in fig. 2) that functions as a prior art encoder, i.e. converting an electrical signal into an optical signal; an optical transceiver (optical module in fig. 2) for detecting whether the optical fiber link is normal and transmitting and receiving optical signals;
referring to fig. 1, in an optical fiber network, the system is composed of a main host, a standby host and each extension, and system scheduling (polling of the main host sends scheduling instructions to the standby host and each extension, and the standby host and the extension receive setting parameters sent by the main host and send state parameters of the host to the main host after receiving the scheduling instructions) can be initiated by the main host only, so that the system has only one main host at the same time.
The connection relationship of the link detection of each device (the device refers to the main host and the standby host) in the time-frequency synchronization system is shown in fig. 2, the generation of all frame data transmitted in the link is completed by software, the processing of all the frame data is completed by the software, the FPGA is used as a core device of a data transmission layer, the de-framing (de-encapsulating) of the transmission layer data frame (encapsulation) transmission and the receiving of the data frame are mainly realized, and the scheduling and link detection frame with strong real-time requirements are responded. In order to improve the efficiency of the functions of the software and the FPGA transmission layer, the FPGA sets a buffer FIFO for receiving and sending data for each link and buffers the data according to frames. The dispatching direction of the FPGA is the connection relation between the upper level and the lower level of each node in the communication link.
The hardware structures of the main host or the standby host are completely the same.
The FPGA of the main host communicates with the standby host through communication priority (Port:00 and Port:01 are uplinks, Port:10 and Port:11 are downlinks, the uplinks are superior to the downlinks, the link priority: Port:00 is superior to Port:01, Port:10 is superior to Port:11), the FPGA and the optical transceiver judge whether the optical fiber link of the current Port is normal through an I2C interface, and if the optical transceiver reports an optical loss alarm, the FPGA informs the main host that the current link is abnormal.
The CPU of the main host computer carries out data interaction with the FPGA through an EPC BUS, the FPGA detects whether an optical fiber uplink and a downlink work normally or not, the default communication direction is the optical fiber uplink, if the uplink fails, the communication direction is switched to the optical fiber downlink, and if the uplink and the downlink both fail, the main host computer reports alarm information to the upper computer.
The optical fiber network time-frequency synchronization method is applied to each application-needed scene, and specifically comprises the following steps:
step 101: the main host sends the state parameters and performance parameters of the main host and all the extensions to the standby host every second, so as to realize hot backup of data;
step 102: the standby host monitors the state information of the main host, the main host sends the time (including integer seconds and decimal seconds) of the host to the standby host, the phase deviation between the standby host and the main host is calculated, and the phase modulation compensation is carried out on the standby host according to the phase deviation to ensure that the phases of the main host and the standby host are consistent;
the standby host writes a standby/standby switching state value into an FPGA register, the FPGA controls a synchronous equipment system to perform the standby/standby switching, the standby host is switched to the main host after switching, an external time source and a frequency source are received, each extension in the system is scheduled, and the original main host is replaced to output performance data and service data.
Step 103: the main host sends heartbeat packets to the standby host every second; if the standby host does not receive the heartbeat packet within the threshold time, executing the step 4; otherwise, executing step 1;
step 104: the FPGA blocks and outputs the frequency and time information of the main host; when the time source and the frequency source of the standby host are input normally, and the frequency detection state, the PLL are not unlocked and the time source synchronization does not exceed the set time, the CPU of the main host writes the main/standby switching state value into the FPGA register of the main host, and the FPGA of the main host performs main/standby switching.
In order to detail the optical cross-network connection detection method disclosed in the above embodiment, the performing of the main/standby switching by the FPGA specifically means that after the standby host performs phase modulation compensation according to the phase deviation, the output time and frequency information are consistent with those of the main host, the CPU writes the main/standby switching state value to the FPGA register, and the FPGA performs the main/standby switching.
In order to detail the optical cross network connection detection method disclosed in the above embodiment, during the working period of the main host, whether the communication link of the main host is normal is monitored in real time;
when at least one communication link of the main host is normal, the main host detects whether the frequency reference source alarms or not through the FPGA; if the frequency reference source generates an alarm, the step 4 is entered for switching the main host and the standby host, otherwise, the main host judges whether the main host receives a main/standby switching command sent by the upper computer, and if so, the step 4 is entered; otherwise, the step 1 is entered.
The master/standby switching command issued by the upper computer is, for example, TL 1: switch,1, crc, \\ r \ n.
In order to detail the optical cross network connection detection method disclosed in the above embodiment, the host detects whether the optical fiber uplink communication link and the optical fiber downlink communication link work normally through the FPGA. (default communication direction is optical fiber uplink communication link, if the uplink communication link is failed, the communication direction is switched to optical fiber downlink communication link, if the uplink communication link and the downlink communication link are both failed, the main host reports alarm information to the upper computer).
In order to detail the optical cross network connection detection method disclosed in the above embodiment, the main host detects whether the optical fiber uplink communication link and the optical fiber downlink communication link work normally through the FPGA:
the CPU of the main host computer and the FPGA of the main host computer communicate through EPC BUS, the FPGA of the main host computer obtains the status information of the optical transceiver through an I2C interface,
when the optical transceiver detects the optical fiber link failure, the optical transceiver informs the FPGA of the optical fiber link abnormality through an I2C interface, and the FGPA informs the optical fiber link alarm of the current port of the main host through an EPC BUS;
when the current optical fiber link is normal, the FPGA acquires a communication frame of the optical transceiver through the RS-485 interface, the acquired communication frame is processed through the demodulator, the data in the communication frame is analyzed through the decoder after the processing, the analyzed data is placed into a frame receiving FIFO cache, and the main host reads the data from the frame receiving FIFO cache. The default communication direction is an optical fiber uplink communication link, if the uplink communication link fails, the communication direction is switched to an optical fiber downlink communication link, and if the uplink communication link and the downlink communication link both fail, the main host reports alarm information to the upper computer.
In order to detail the optical cross network connection detection method disclosed in the above embodiment, the specific process of sending the state parameters and performance parameters of the host and each extension to the standby host or extension through the optical fiber by the host is to put the state parameters and performance parameters of the host and each extension to be sent into the frame sending FIFO through the EPC BUS, and after the FPGA of the host reads data from the frame sending FIFO, assemble the data into a communication frame through the encoder, and then transmit the communication frame to the optical transceiver after passing through the modulator.
In order to detail the optical cross-connect detection method disclosed in the above embodiment, the phase modulation compensation is performed on the standby host according to the phase deviation to ensure that the phases of the primary host and the standby host are consistent, and the specific process is as follows:
the standby host extracts the frequency signal of the main host through the optical fiber link, and locks the clock of the standby host to be the same as the clock of the main host by adopting a phase-locked loop;
the standby host sends a synchronization request packet to the main host, the main host packages the time information of the host into the synchronization packet and sends the synchronization packet to the standby host, the standby host analyzes the time stamps of T1, T2, T3 and T4 according to the interactive synchronization packet, calculates the line delay and time deviation, and performs phase modulation compensation on local time according to the line delay and the time deviation.
For example, when the calculated line delay value is 30ns to 150ns, the phase of the standby master is adjusted in steps using the calculated time offset.
Wherein, T1 and T3 represent timestamp pairs of the primary host, and T2 and T4 represent timestamps of the standby host; t2 is the time stamp of the data message sent at the time of receiving T1; t4 is the timestamp of the data message sent at the time of receiving T3;
line delay calculation formula:
TTL=1000000000(ns)
Sec1=(t2.s-t1.s)+(t4.s–t3.s)
Point1=(t2.f-t1.f)+(t4.f-t3.f)
delay=(sec*TTL+point)/2
time deviation calculation formula:
Sec2=(t4.s-t3.s)-(t2.s–t1.s)
point 2=(t4.f-t3.f)+(t2.f-t1.f)
offset=[(sec/2)+((point+(sec%2)*TTL)/2)/TTL]/TTL+(point-(point/TTL)*TTL)
wherein: t1.s, t2.s, t3.s, and t4.s correspond to integer seconds representing the t1, t2, t3, and t4 timestamps, respectively, and t1.f, t2.f, t3.f, and t4.f represent decimal seconds of the t1, t2, t3, and t4 timestamps; sec1 represents the sum of the round-trip delay integral values of the message communication of the main host and the standby host; point1 represents the sum of data values of round-trip delay of the main host and the standby host, and delay represents the line delay value between the main host and the standby host; sec2 represents the integer second time offset between the primary host and the backup host, point2 represents the decimal second time offset between the primary host and the backup host, and offset is the calculated time offset.
In order to detail the optical cross network connection detection method disclosed in the above embodiment, the present application provides an optical fiber network video synchronization device, which specifically includes:
the main host is used for sending the state parameters and the performance parameters of the main host and the extension sets to the standby host every second to realize the hot backup of data; the main host sends heartbeat packets to the standby host every second; if the standby host does not receive the heartbeat packet within the threshold time, the FPGA of the main host blocks and outputs the frequency and time information of the main host; when the time source and the frequency source of the standby host are input normally, and simultaneously, the frequency detection state, the PLL (phase locked loop) is not unlocked and the time source synchronization does not exceed the set time SettingTime (the frequency detection state refers to that the standby host extracts a frequency signal through an optical fiber link, if the frequency signal is lost, the detection alarms, the PLL is not unlocked, the clock of the standby host is locked to the clock output of the main host, and the time source refers to the time source externally input to the main host), writing a main/standby switching state value to an FPGA register of the main host through a CPU of the main host, and performing main/standby switching by the FPGA of the main host; otherwise, the main host computer continues to realize the hot backup of the data;
and the standby host is used for monitoring the state information of the main host, calculating the phase deviation between the standby host and the main host, and performing phase modulation compensation on the standby host according to the phase deviation to ensure that the phases of the main host and the standby host are consistent.
A computer-readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the video synchronization method over a fiber network according to any one of the preceding claims.
An optical cross network connection detection apparatus comprising: a memory for storing a computer program; a processor for implementing the steps of the video synchronization method for a fiber optic network as described in any one of the above when executing the computer program.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A time-frequency synchronization method for optical fiber network is characterized by comprising
Step 1: the main host sends the state parameters and performance parameters of the main host and all the extensions to the standby host every second, so as to realize hot backup of data;
step 2: the standby host monitors the state information of the main host, calculates the phase deviation between the standby host and the main host, and performs phase modulation compensation on the standby host according to the phase deviation to ensure that the phases of the main host and the standby host are consistent;
and step 3: the main host sends heartbeat packets to the standby host every second; if the standby host does not receive the heartbeat packet within the threshold time, executing the step 4; otherwise, executing step 1;
and 4, step 4: the FPGA blocks and outputs the frequency and time information of the main host; when the time source and the frequency source of the standby host are input normally, and the frequency detection state, the PLL are not unlocked and the time source synchronization does not exceed the set time, the CPU of the main host writes the main/standby switching state value into the FPGA register of the main host, and the FPGA of the main host performs main/standby switching.
2. The method according to claim 1, wherein the main/standby switching by the FPGA means that the standby host performs phase modulation compensation according to the phase deviation, the output time and frequency information are consistent with those of the main host, the CPU writes the main/standby switching state value into the FPGA register, and the FPGA performs the main/standby switching.
3. The method according to claim 1, wherein during the operation of the host, the host monitors whether the communication link is normal in real time;
when at least one communication link of the main host is normal, the main host detects whether the frequency reference source alarms or not through the FPGA; if the frequency reference source generates an alarm, the step 4 is entered for switching the main host and the standby host, otherwise, the main host judges whether the main host receives a main/standby switching command sent by the upper computer, and if so, the step 4 is entered; otherwise, the step 1 is entered.
4. The method of claim 3, wherein the host detects whether the optical fiber uplink and downlink communication links are working properly through the FPGA.
5. The method of claim 4, wherein the specific process of the host detecting whether the optical fiber uplink communication link and the optical fiber downlink communication link work normally through the FPGA comprises:
the CPU of the main host computer and the FPGA of the main host computer communicate through EPC BUS, the FPGA of the main host computer obtains the status information of the optical transceiver through an I2C interface,
when the optical transceiver detects the optical fiber link failure, the optical transceiver informs the FPGA of the optical fiber link abnormality through an I2C interface, and the FGPA informs the optical fiber link alarm of the current port of the main host through an EPC BUS;
when the current optical fiber link is normal, the FPGA acquires a communication frame of the optical transceiver through the RS-485 interface, the acquired communication frame is processed through the demodulator, the data in the communication frame is analyzed through the decoder after the processing, the analyzed data is placed into a frame receiving FIFO cache, and the main host reads the data from the frame receiving FIFO cache.
6. The method according to claim 3, wherein the specific process of the primary host sending the state parameters and performance parameters of the primary host and each extension to the standby host or extension through the optical fiber is as follows: the state parameters and performance parameters of the main host and each extension to be transmitted are put into the frame transmission FIFO through an EPC BUS, the FPGA of the main host reads data from the frame transmission FIFO, the data are assembled into communication frames through an encoder, and then the communication frames are transmitted to the optical transceiver after passing through a modulator.
7. The method according to claim 3, wherein the phase modulation compensation is performed on the standby host according to the phase deviation to ensure that the phases of the primary host and the standby host are consistent, and the specific process is as follows:
the standby host extracts the frequency signal of the main host through the optical fiber link, and locks the clock of the standby host to be the same as the clock of the main host by adopting a phase-locked loop;
the standby host sends a synchronization request packet to the main host, the main host packages the time information of the host into the synchronization packet and sends the synchronization packet to the standby host, the standby host analyzes the time stamps of T1, T2, T3 and T4 according to the interactive synchronization packet, calculates the line delay and time deviation, and performs phase modulation compensation on local time according to the line delay and the time deviation.
8. An optical fiber network time-frequency synchronization device, comprising:
the main host is used for sending the state parameters and the performance parameters of the main host and the extension sets to the standby host every second to realize the hot backup of data; the main host sends heartbeat packets to the standby host every second; if the standby host does not receive the heartbeat packet within the threshold time, the FPGA of the main host blocks and outputs the frequency and time information of the main host; when the time source and the frequency source of the standby host are input normally, and the frequency detection state, the PLL are not unlocked and the time source synchronization does not exceed the set time, writing a main/standby switching state value to an FPGA register of the main host through a CPU of the main host, and performing main/standby switching by the FPGA of the main host; otherwise, the main host computer continues to realize the hot backup of the data;
and the standby host is used for monitoring the state information of the main host, calculating the phase deviation between the standby host and the main host, and performing phase modulation compensation on the standby host according to the phase deviation to ensure that the phases of the main host and the standby host are consistent.
9. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the time-frequency synchronization method for a fiber optic network according to any one of claims 1 to 7.
10. An optical cross network connection detection apparatus, comprising: a memory for storing a computer program; a processor for implementing the steps of the time-frequency synchronization method of a fiber optic network according to any one of claims 1 to 7 when executing said computer program.
CN201911373126.2A 2019-12-27 2019-12-27 Optical fiber network time-frequency synchronization method, device, medium and equipment Withdrawn CN111065007A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911373126.2A CN111065007A (en) 2019-12-27 2019-12-27 Optical fiber network time-frequency synchronization method, device, medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911373126.2A CN111065007A (en) 2019-12-27 2019-12-27 Optical fiber network time-frequency synchronization method, device, medium and equipment

Publications (1)

Publication Number Publication Date
CN111065007A true CN111065007A (en) 2020-04-24

Family

ID=70303957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911373126.2A Withdrawn CN111065007A (en) 2019-12-27 2019-12-27 Optical fiber network time-frequency synchronization method, device, medium and equipment

Country Status (1)

Country Link
CN (1) CN111065007A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115021802A (en) * 2022-06-01 2022-09-06 清华大学 Self-healing optical fiber time-frequency synchronous network, synchronous method, networking and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207408A (en) * 2006-12-22 2008-06-25 中兴通讯股份有限公司 Apparatus and method of synthesis fault detection for main-spare taking turns
CN101547045A (en) * 2008-03-25 2009-09-30 华为技术有限公司 Passive optical network port switching method, optical line terminal and optical network system
WO2011038591A1 (en) * 2009-09-30 2011-04-07 华为技术有限公司 Method, device and system for master-backup switching in passive optical network (pon)
CN108243031A (en) * 2016-12-23 2018-07-03 大唐移动通信设备有限公司 The implementation method and device of a kind of two-node cluster hot backup

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207408A (en) * 2006-12-22 2008-06-25 中兴通讯股份有限公司 Apparatus and method of synthesis fault detection for main-spare taking turns
CN101547045A (en) * 2008-03-25 2009-09-30 华为技术有限公司 Passive optical network port switching method, optical line terminal and optical network system
WO2011038591A1 (en) * 2009-09-30 2011-04-07 华为技术有限公司 Method, device and system for master-backup switching in passive optical network (pon)
CN108243031A (en) * 2016-12-23 2018-07-03 大唐移动通信设备有限公司 The implementation method and device of a kind of two-node cluster hot backup

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黄捷: "电力系统时间同步检测技术研究与实现", 《中国优秀硕士学位论文全文数据库(工程科技I辑)》》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115021802A (en) * 2022-06-01 2022-09-06 清华大学 Self-healing optical fiber time-frequency synchronous network, synchronous method, networking and medium

Similar Documents

Publication Publication Date Title
CN102843205B (en) The method and apparatus that a kind of time synchronized based on Precision Time Protocol restrains
CN110149220B (en) Method and device for managing data transmission channel
CN102984042B (en) Deterministic scheduling method and system for realizing bus communication
US9071513B2 (en) Path switch-back method and apparatus in transport network
US9515919B2 (en) Method and apparatus for protection switching in packet transport system
JP5370870B2 (en) Method for synchronizing to a local clock in a distributed computer network
JP5413750B2 (en) Method for synchronizing to a local clock in a distributed computer network
JP2009010441A (en) Interface switching method and device
EP2827506B1 (en) Method for changing overhead and preventing subnets from switching simultaneously, device, network element, and network
CN111065007A (en) Optical fiber network time-frequency synchronization method, device, medium and equipment
JP5578023B2 (en) Station side device, home side device, optical communication system, and control method of optical communication system
CN102724599A (en) Bandwidth adjustment processing method for control platform
CN107992752B (en) Data processing method and device and computer equipment
JP2009225285A (en) Ethernet transmission method, ethernet transmission device, and ethernet system
JP6274918B2 (en) Communications system
CN114528242A (en) Computer platform dual-system synchronization method, device, equipment and medium
KR101156097B1 (en) Master redundancy method in Ethernet powerlink
JP3104490B2 (en) Dependent synchronization control method for dual loop LAN
KR101973264B1 (en) Clocks timing fault recovery method and apparatus in precision time protocol system
US10250322B2 (en) Transmission system, transmission device, and transmission method
US20170063601A1 (en) Communication control device that controls network device in transmission system
WO2021139692A1 (en) Clock port attribute recovery method, device, and system
CN109361966B (en) Virtual host device in optical fiber distribution system and optical fiber distribution system
JP2015188126A (en) Communication device and communication system
JP2023554065A (en) Method and apparatus for selecting a clock source

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20200424

WW01 Invention patent application withdrawn after publication