CN103078700A - Clock synchronization processing method - Google Patents

Clock synchronization processing method Download PDF

Info

Publication number
CN103078700A
CN103078700A CN2012105909420A CN201210590942A CN103078700A CN 103078700 A CN103078700 A CN 103078700A CN 2012105909420 A CN2012105909420 A CN 2012105909420A CN 201210590942 A CN201210590942 A CN 201210590942A CN 103078700 A CN103078700 A CN 103078700A
Authority
CN
China
Prior art keywords
clock
clock synchronization
port
processing method
register
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
CN2012105909420A
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.)
AVIC No 631 Research Institute
Original Assignee
AVIC No 631 Research Institute
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 AVIC No 631 Research Institute filed Critical AVIC No 631 Research Institute
Priority to CN2012105909420A priority Critical patent/CN103078700A/en
Publication of CN103078700A publication Critical patent/CN103078700A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a clock synchronization processing method, which solves the problem that when a plurality of clock servers are connected into exchange networks, the exchange network cannot realize the clock synchronization. The clock synchronization processing method comprises the following links that an switchboard is provided with each port receiving clock synchronization enabling register; when a plurality of clock servers are connected into exchange networks, i.e. a plurality of ports of the switchboard receive the clock synchronization signals, the corresponding interruption is generated, and the condition is reported to a CPU (central processing unit); each port receiving clock synchronization enabling register is set through the CPU, and the corresponding ports are forbidden receiving the clock synchronization signals, so that only one port receives the clock synchronization signals can be ensured; and the port receiving the clock synchronization signal sends the clock synchronization signals to all of the rest ports. When the processing method provided by the invention is adopted, when a plurality of clock servers are connected to the switchboard, the fault-tolerance processing can be carried out, the clock synchronization on the whole exchange network can still be realized, the control is simple, and the realization is easy.

Description

A kind of clock synchronous processing method
Technical field:
The invention belongs to computer communication technology, relate to a kind of clock synchronous processing method of switch in the communication network.
Background technology:
Modern switched communication network is comprised of node machine and switch, and all node machines all link to each other with switch by link, realizes distributed communication.In the hard real time switching network, in order to realize the clock synchronous of whole network, generally by a node machine as clock server, other node machine is as the clock client, regularly carry the clock sync signal of temporal information to the switch transmission by clock server, then by switch clock sync signal is sent to the clock client and bring in realization.When all clients and server sync, they have also been realized each other synchronously.
In actual applications, the user might be connected into switching network with two or more clock servers by mistake.Like this, a plurality of clock servers are the timed sending clock synchronization information all, can cause client time information saltus step to occur, causes whole switching network can't realize clock synchronous.
Summary of the invention:
The processing method that the purpose of this invention is to provide a kind of clock synchronous solves when a plurality of clock servers are connected into switching network, and switching network can't be realized the problem of clock synchronous.
Basic solution of the present invention is:
A kind of clock synchronous processing method comprises following link:
The synchronous enabled register of each port receive clock of switch configuration;
When a plurality of clock servers are connected into switching network, when namely a plurality of ports of switch receive clock sync signal, produce respective interrupt, report CPU;
By CPU the synchronous enabled register of each port receive clock is set, forbids corresponding port receive clock synchronizing signal, thereby guarantee to only have a port receive clock synchronizing signal;
Receive the port of clock sync signal to all the other port tranmitting data register synchronizing signals.
The invention has the beneficial effects as follows:
(1) each port of switch can link to each other with clock server, connects flexibly;
(2) when having a plurality of clock servers to be connected to switch, can carry out fault-tolerant processing, still can realize the clock synchronous to whole switching network;
(3) control is simple, realizes easily.
Description of drawings
Fig. 1 is exchange clock synchronous processing circuit figure of the present invention;
Fig. 2 is the synchronous process chart of exchange clock of the present invention.
Embodiment:
Below in conjunction with accompanying drawing execution mode is specifically described.
At first the exchange clock synchronous processing circuit is introduced, as shown in Figure 1: wherein, input 0~input n is the input of switch ports themselves 0~port n, is used for respectively receiving Frame and the clock sync signal that institute's connected node machine sends; Output 0~output n is the output of switch ports themselves 0~port n, is used for respectively sending Frame and clock sync signal to the node machine that connects; The input of each port has respectively three registers: register A[i], represent whether this port i has received clock sync signal, for the first time receive clock sync signal after, this register sets high, and keeps always; Register B[i], represent whether this port i receive clock synchronizing signal enables, effectively high, this register is arranged by CPU, is defaulted as height; Register C[i], represent that this port i has received that clock sync signal and this port receive clock synchronizing signal enable, high effectively, represent that namely this port received effective clock sync signal (wherein, i=0 ... n).Adder is used for calculating C[0], C[1] ..., C[n] and sum, when with greater than 1 the time, produce respective interrupt, report CPU.CPU is responsible for disposing related register, handling interrupt.
The below is introduced the synchronous handling process of exchange clock.
1) after the port i of switch receives clock sync signal, with the register A[i of correspondence] put 1, then with A[i] with B[i] with, produce C[i].Again each place value of register C is carried out addition, when sum was 1, showing had 1 port to receive clock sync signal, turns step 4); Otherwise, when sum greater than 1 the time, showing has a plurality of ports to receive clock sync signal, turns step 2);
2) switch produces respective interrupt, reports CPU;
3) CPU receives enable register to clock synchronous and arranges as required: select one in receiving a plurality of ports of clock synchronous, the corresponding register of this port is set to the state of enabling, and the corresponding register of other port is set to illegal state; Thereby guarantee to only have effectively receive clock synchronizing signal of a port;
4) because switch can only be to client tranmitting data register synchronizing signal, and can not send to clock server, therefore by everybody carries out negate to register C, need to obtain the destination interface of tranmitting data register synchronizing signal.Then, receive the port input of clock sync signal to the output tranmitting data register synchronizing signal of other all of the port;
5) each port output tranmitting data register synchronizing signal.

Claims (1)

1. clock synchronous processing method comprises following link:
The synchronous enabled register of each port receive clock of switch configuration;
When a plurality of clock servers are connected into switching network, when namely a plurality of ports of switch receive clock sync signal, produce respective interrupt, report CPU;
By CPU the synchronous enabled register of each port receive clock is set, forbids corresponding port receive clock synchronizing signal, thereby guarantee to only have a port receive clock synchronizing signal;
Receive the port of clock sync signal to all the other port tranmitting data register synchronizing signals.
CN2012105909420A 2012-12-28 2012-12-28 Clock synchronization processing method Pending CN103078700A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012105909420A CN103078700A (en) 2012-12-28 2012-12-28 Clock synchronization processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012105909420A CN103078700A (en) 2012-12-28 2012-12-28 Clock synchronization processing method

Publications (1)

Publication Number Publication Date
CN103078700A true CN103078700A (en) 2013-05-01

Family

ID=48155115

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012105909420A Pending CN103078700A (en) 2012-12-28 2012-12-28 Clock synchronization processing method

Country Status (1)

Country Link
CN (1) CN103078700A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103414511A (en) * 2013-08-21 2013-11-27 成都成电光信科技有限责任公司 Clock synchronization type network monitoring card
US10461988B2 (en) 2015-06-26 2019-10-29 Sanechips Technology Co., Ltd. Switching network synchronization method, switching device, access device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2281568Y (en) * 1996-11-29 1998-05-13 中国科学院沈阳计算技术研究所 Terminal server for computer network
CN101146109A (en) * 2006-09-15 2008-03-19 国际商业机器公司 Time synchronization system, time synchronization device and method for providing time synchronization device
CN101498952A (en) * 2009-03-02 2009-08-05 北京红旗胜利科技发展有限责任公司 CPU, SoC chip and method for synchronizing clock
CN101751980A (en) * 2008-12-17 2010-06-23 中国科学院电子学研究所 Embedded programmable memory based on memory IP core
CN101771528A (en) * 2008-12-31 2010-07-07 华为技术有限公司 Method, device and system for realizing clock synchronization
CN102195768A (en) * 2011-05-30 2011-09-21 神州数码网络(北京)有限公司 Method for realizing precision time protocol (PTP) with nanosecond-level precision

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2281568Y (en) * 1996-11-29 1998-05-13 中国科学院沈阳计算技术研究所 Terminal server for computer network
CN101146109A (en) * 2006-09-15 2008-03-19 国际商业机器公司 Time synchronization system, time synchronization device and method for providing time synchronization device
CN101751980A (en) * 2008-12-17 2010-06-23 中国科学院电子学研究所 Embedded programmable memory based on memory IP core
CN101771528A (en) * 2008-12-31 2010-07-07 华为技术有限公司 Method, device and system for realizing clock synchronization
CN101498952A (en) * 2009-03-02 2009-08-05 北京红旗胜利科技发展有限责任公司 CPU, SoC chip and method for synchronizing clock
CN102195768A (en) * 2011-05-30 2011-09-21 神州数码网络(北京)有限公司 Method for realizing precision time protocol (PTP) with nanosecond-level precision

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103414511A (en) * 2013-08-21 2013-11-27 成都成电光信科技有限责任公司 Clock synchronization type network monitoring card
US10461988B2 (en) 2015-06-26 2019-10-29 Sanechips Technology Co., Ltd. Switching network synchronization method, switching device, access device and storage medium

Similar Documents

Publication Publication Date Title
US10476697B2 (en) Network-on-chip, data transmission method, and first switching node
CN101984573B (en) Method and system for distributed realization of LACP standard state machine
US8416811B2 (en) Coordinated timing network having servers of different capabilities
JP2016509425A (en) Synchronous signal processing method and apparatus for stereoscopic display of splice screen, splice screen
CN105516292A (en) Hot standby method of cloud platform of intelligent substation
CN104639867A (en) Method and system for resuming video conferences
CN101188599A (en) Implementation method for load balance design of electric monitoring front system of power plant
CN105681131B (en) Main preparation system and its parallel output method
CN109996325A (en) A kind of clock system and method for wireless sensor network
CN105262565A (en) Coding method and coding system capable of transmitting clock and data based on phase modulation
KR101266041B1 (en) General purpose multi-port network interface card for fault-tolerant ethernet using switching chip base of logic gate
CN103078700A (en) Clock synchronization processing method
US9641268B2 (en) Method, system and device for synchronizing clocks
CN109714124B (en) Time synchronization system and method for test system
CN102740339B (en) Base station communication method and base station, core network communications method and core network device
CN103944738B (en) A kind of interchanger for supporting Function Extension
CN109412828B (en) Method, apparatus and system for network topology discovery in software defined networks
WO2020052298A1 (en) Method and device for clock and time synchronization, and multi-router system
CN103440336A (en) Safe physical-isolation automatic transmission method of network database tables
US20160197856A1 (en) Port Status Synchronization Method, Related Device, and System
CN102970191A (en) Method and device for realizing detection protocol in distribution type system
CN103036668A (en) Rack-mounted equipment tab configuration synchronization method based on a command line
KR102087874B1 (en) Pilot setup method and device
CN107070955A (en) The transmission method and device of a kind of electric power system data
CN104270433A (en) Distributed type SSM protocol processing system and method based on complex packet switching system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130501