CN101615998A - A kind of method and system and access switch of in Ethernet, realizing clock synchronization - Google Patents

A kind of method and system and access switch of in Ethernet, realizing clock synchronization Download PDF

Info

Publication number
CN101615998A
CN101615998A CN200910161533A CN200910161533A CN101615998A CN 101615998 A CN101615998 A CN 101615998A CN 200910161533 A CN200910161533 A CN 200910161533A CN 200910161533 A CN200910161533 A CN 200910161533A CN 101615998 A CN101615998 A CN 101615998A
Authority
CN
China
Prior art keywords
machine
clock
command machine
command
handshake message
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
CN200910161533A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN200910161533A priority Critical patent/CN101615998A/en
Publication of CN101615998A publication Critical patent/CN101615998A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention provides a kind of method and system and access switch of in Ethernet, realizing clock synchronization, the method comprises: a plurality of Ethernet switches are configured to the Ethernet switch cluster, comprise command machine and member machine in the described Ethernet switch cluster, when described command machine itself has clock maintenance function, enable this clock and keep function, when described command machine itself does not have clock maintenance function, described command machine is set has clock maintenance function; Each member machine obtains the command machine clock information from described command machine, according to described command machine clock information the clock of member machine is set, and keeps the clock synchronization with described command machine.The present invention can be applied under the various ethernet environments promptly all Ethernet switches and open under the environment of cluster management functions, under the situation of saving Internet resources, realize the clock synchronization of access switch and convergence switch, proofread and correct the clock of access switch in real time, simple possible, efficient height.

Description

A kind of method and system and access switch of in Ethernet, realizing clock synchronization
Technical field
The present invention relates to data communication field, relate in particular to a kind of method and system and access switch of the clock synchronization that in Ethernet, realizes.
Background technology
At telecommunications Internet user's access and convergence layer, when using the networking of Ethernet mode,, may use the cluster management function that provides on the Ethernet switch in order to save supervising the network agreement (Internet Protocol is called for short IP) address.The cluster management function is a kind of management method to a large amount of low-end switch, and these low-end switch are exactly member machine, and the command machine of the managing low-end switch more intense high-end switch of disposal ability normally.
Access switch is a better simply communication equipment, generally do not keep mechanism, after device looses power, system time can recover initial value, it or not correct time, this just causes the alarm of access switch, the time of log information is inaccurate, but the general user can't accomplish to proofread and correct in real time the clock of access switch, can open NTP (Network Time Protocol) (Network Time Protocol so wish access switch, be called for short NTP) come lock in time, but the huge amount of access switch is all opened the NTP function and can be caused bigger pressure to the NTP (Network Time Protocol) server.Therefore need to propose the clock synchronizing method of a kind of efficient height, good reliability.
Summary of the invention
The technical problem to be solved in the present invention has provided a kind of method and system and access switch of realizing clock synchronization in Ethernet, simply realizes the clock synchronization of Ethernet switch fast.
In order to address the above problem, the invention provides a kind of method that in Ethernet, realizes clock synchronization, comprise: a plurality of Ethernet switches are configured to the Ethernet switch cluster, comprise command machine and member machine in the described Ethernet switch cluster, when described command machine itself has clock maintenance function, enable this clock and keep function, when described command machine itself does not have clock maintenance function, described command machine is set has clock maintenance function; Each member machine obtains the command machine clock information from described command machine, according to described command machine clock information the clock of member machine is set, and keeps the clock synchronization with described command machine.
Further, said method also has following characteristics:
When described command machine was convergence switch, the member machine in the described Ethernet switch cluster was convergence switch or access switch; When described command machine was access switch, the member machine in the described Ethernet switch cluster all was access switch.
Further, said method also has following characteristics:
In the mode of opening the Network Time Protocol function described command machine is set and has clock maintenance function.
Further, said method also has following characteristics:
Described command machine sends the handshake message that carries the command machine clock information to member machine; Each member machine obtains the command machine clock information according to the described handshake message that receives.
In order to solve the problems of the technologies described above, the present invention also provides a kind of system that realizes clock synchronization in Ethernet, comprises the Ethernet switch cluster that is made of a plurality of Ethernet switches, comprises command machine and member machine in this cluster; Described command machine is used for enabling this clock and keeping function when command machine itself has clock maintenance function; When command machine itself does not have clock maintenance function, clock is set keeps function; Described member machine is used for obtaining the command machine clock information from described command machine, according to described command machine clock information the clock of member machine is set, and keeps the clock synchronization with described command machine.
Further, said system also has following characteristics:
Described command machine also is used in the mode of opening the Network Time Protocol function clock being set and keeps function.
Further, said system also has following characteristics:
Described command machine also is used for sending the handshake message that carries the command machine clock information to member machine; Described member machine also is used for knowing the command machine clock information from the described handshake message that described command machine sends, and the clock of member machine is set according to described command machine clock information.
In order to solve the problems of the technologies described above, the present invention also provides a kind of access switch of realizing clock synchronization in Ethernet, and described access switch comprises that clock keeps functional module and clock synchronization module; Also comprise the handshake message sending module that keeps functional module to link to each other with clock, the handshake message receiver module that links to each other with clock synchronization module; Described clock keeps functional module, is used for keeping the clock of described command machine when described access switch is the command machine of Ethernet switch cluster; And provide the command machine clock information to the handshake message sending module; Described handshake message sending module is used for when described access switch is the command machine of Ethernet switch cluster, keeps functional module to know the command machine clock information from described clock, and sends the handshake message that carries the command machine clock information; Described handshake message receiver module is used for when described access switch is the member machine of Ethernet switch cluster, receives from command machine and carries the handshake message of command machine clock information, and be forwarded to described clock synchronization module; Described clock synchronization module, be used for when described access switch is the member machine of Ethernet switch cluster, obtain the command machine clock information from described handshake message receiver module, the clock of member machine is set, keep clock synchronization with described command machine according to described command machine clock information.
Further, above-mentioned access switch also has following characteristics:
Described clock keeps functional module, also is used to start the Network Time Protocol function or uses local clock.
Further, above-mentioned access switch also has following characteristics:
Described handshake message receiver module links to each other with described handshake message sending module; Described handshake message receiver module, also being used at this access switch is member machine and when having the member machine of subordinate's cascade, and the handshake message that receives is forwarded to the handshake message sending module; Described handshake message sending module, also being used at this access switch is member machine and when having the member machine of subordinate's cascade, and the handshake message that the handshake message receiver module sends is transmitted to the member machine of subordinate's cascade.
The present invention can be applied under the various ethernet environments promptly all Ethernet switches and open under the environment of cluster management functions, under the situation of saving Internet resources, realize the clock synchronization of access switch and convergence switch, proofread and correct the clock of access switch in real time, make time of alarm, log information of access switch comparatively accurate, user friendly failure diagnosis work, simple possible, efficient height, response fast (response time can define flexibly).
Description of drawings
Fig. 1 is the structure chart of the access switch of the method for realization clock synchronization among the embodiment;
Fig. 2 is a flow chart of realizing the method for clock synchronization among the embodiment;
Fig. 3 is the schematic diagram that cluster is formed in the specific embodiment;
Fig. 4 is a flow chart of realizing the method for clock synchronization in the specific embodiment.
Embodiment
In Ethernet, comprise the Ethernet switch cluster that constitutes by a plurality of Ethernet switches in the system of realization clock synchronization, one or more Ethernet switches are command machine in this cluster, and the Ethernet switch in this cluster except that described command machine is a member machine.Certainly, also can comprise a plurality of Ethernet switch clusters in this system.
When command machine was convergence switch, the member machine in the Ethernet switch cluster was convergence switch or access switch; When command machine was access switch, the member machine in the Ethernet switch cluster all was access switch.
Described command machine is used for enabling this clock and keeping function when command machine itself has clock maintenance function; When command machine itself does not have clock maintenance function, in the mode of opening the Network Time Protocol function clock is set and keeps function; Also be used for sending the handshake message that carries the command machine clock information to member machine;
Described member machine is used for obtaining the command machine clock information from described command machine, according to described command machine clock information the clock of member machine is set, and keeps the clock synchronization with described command machine; Concrete, from the handshake message that carries the command machine clock information that command machine sends, know the command machine clock information, according to the command machine clock information clock of member machine is set, finish clock synchronization with command machine.
As shown in Figure 1, the access switch in said system comprises that continuous clock keeps functional module and handshake message sending module, and the handshake message receiver module and the clock synchronization module that link to each other; The handshake message receiver module also links to each other with the handshake message sending module;
Clock keeps functional module, is used for when this access switch is command machine, starting the Network Time Protocol function or to use the mode of local clock to keep the clock of this command machine, and provides the command machine clock information to the handshake message sending module;
The handshake message sending module is used for sending the handshake message that carries the command machine clock information when this access switch is command machine; Also being used at this access switch is member machine and when having the member machine of subordinate's cascade, and the handshake message that the handshake message receiver module sends is transmitted to the member machine of subordinate's cascade;
The handshake message receiver module is used for when this access switch is member machine, carries the handshake message of command machine clock information from the member machine reception of command machine or higher level's cascade, and is forwarded to described clock synchronization module; Also being used at this access switch is member machine and when having the member machine of subordinate's cascade, and the handshake message that receives is forwarded to the handshake message sending module;
Clock synchronization module is used for parsing the command machine clock information of handshake message, according to this command machine clock information this machine clock is set, and keeps the clock synchronization with command machine.
As shown in Figure 2, realize the method for Ethernet switch clock synchronization, may further comprise the steps:
Step 201 is determined command machine, creates the Ethernet switch cluster, and a plurality of Ethernet access switch are added this cluster, and the Ethernet access switch in this cluster except that command machine is a member machine;
Can select convergence switch also can select access switch as command machine as command machine.
Step 202 when command machine itself has clock maintenance function, enables this clock and keeps function, and when command machine itself does not have clock maintenance function, command machine is set has clock maintenance function, and the clock synchronization function of opening member machine;
In application, can command machine be set with unlatching Network Time Protocol functional mode and have clock maintenance function.
Step 203, command machine periodically send the handshake message that carries clock value;
Step 204, each member machine obtains the command machine clock information from described command machine, with this clock value this machine clock is set, the clock synchronization of maintenance and described command machine, flow process finishes.
Member machine also is forwarded to the handshake message that receives subordinate's cascade member machine when having subordinate's cascade member machine.
The command machine clock information can be a time difference, and each switch is all given tacit consent to a fiducial time in this cluster, and command machine is determined the current time apart from the time difference of this fiducial time, and member machine can calculate this machine clock according to this time difference.Be not limited to this a kind of command machine clock information among the present invention and represent mode, so long as can make member machine learn that the command machine clock information of command machine clock all can use.
Below with reference to accompanying drawing, in conjunction with specific embodiments the present invention is further specified.The present invention can be used for Ethernet mode network environment in most cases.
Specific embodiment:
As shown in Figure 3, the switch that comprises following support ethernet feature in the network environment in this specific embodiment one: switch 1, switch 2, switch 3, switch 4.
Referring to Fig. 4, realize that the method for clock synchronization specifically comprises the steps:
Step 401 is determined command machine, creates the Ethernet switch cluster, adds member machine;
Opening the cluster management function of switch 1, switch 2, switch 3, switch 4, finish the process that group sets up, is the process that those skilled in the art all know, and repeats no more herein.
Configuration switch 1 is a command machine, on switch 1 switch 2, switch 3, switch 4 is all added as member machine; Switch 2 or switch 3 or switch 4 can certainly be set be command machine.
Step 402 is provided with command machine and has clock maintenance function, the clock synchronization function of opening member machine;
Step 403, command machine and member machine are shaken hands, and regularly send out handshake message mutually;
In the handshake procedure of command machine and member machine, handshake message is regularly to send, and for example the cycle is 60 seconds.
Whether step 404 successfully is provided with clock and keeps function on the command machine, if, carry out next step, otherwise, go back to step 403, proceed and the shaking hands of member machine;
Step 405, command machine are determined the current time apart from the time difference of fiducial time, and this time difference is added in handshake message, send to member machine;
For example, each switch is all given tacit consent to " 0: 0: 0 on the 1st January in 2000 " for fiducial time in this cluster, command machine is determined the time difference of current time apart from this fiducial time, the unit of this time difference can be second, and this time difference can take the byte or the byte more than 4 bits of 4 bits at handshake message.
Step 406, member machine receive handshake message and therefrom parse time difference;
Step 407, whether member machine has successfully opened the clock synchronization function, if carry out next step; Otherwise, return step 403;
Step 408, member machine judge that whether the time difference that parses is greater than 0, if carry out next step; Otherwise, return step 403;
Step 409, member machine according to this time difference be provided with this machine clock (be about to fiducial time therewith time difference with member machine clock for this reason is set), keep the clock synchronization with described command machine, flow process finishes.
In sum, the present invention proposes the clock synchronization realizing method of a kind of efficient height, good reliability, proofread and correct the clock of access switch in real time, make time of alarm, log information of access switch comparatively accurate, user friendly failure diagnosis work.Typical case of the present invention is applicable to the situation of the real-time position of a large amount of access switch, and efficient is high and simple.The inventive method can be applied in the various Ethernet network environments.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (10)

1, a kind of method that realizes clock synchronization in Ethernet comprises:
A plurality of Ethernet switches are configured to the Ethernet switch cluster, comprise command machine and member machine in the described Ethernet switch cluster, when described command machine itself has clock maintenance function, enable this clock and keep function, when described command machine itself does not have clock maintenance function, described command machine is set has clock maintenance function;
Each member machine obtains the command machine clock information from described command machine, according to described command machine clock information the clock of member machine is set, and keeps the clock synchronization with described command machine.
2, the method for claim 1 is characterized in that,
When described command machine was convergence switch, the member machine in the described Ethernet switch cluster was convergence switch or access switch;
When described command machine was access switch, the member machine in the described Ethernet switch cluster all was access switch.
3, method as claimed in claim 1 or 2 is characterized in that,
In the mode of opening the Network Time Protocol function described command machine is set and has clock maintenance function.
4, method as claimed in claim 3 is characterized in that,
Described command machine sends the handshake message that carries the command machine clock information to member machine; Each member machine obtains the command machine clock information according to the described handshake message that receives.
5, a kind of system that realizes clock synchronization in Ethernet is characterized in that, comprises the Ethernet switch cluster that is made of a plurality of Ethernet switches, comprises command machine and member machine in this cluster;
Described command machine is used for enabling this clock and keeping function when command machine itself has clock maintenance function; When command machine itself does not have clock maintenance function, clock is set keeps function;
Described member machine is used for obtaining the command machine clock information from described command machine, according to described command machine clock information the clock of member machine is set, and keeps the clock synchronization with described command machine.
6, system as claimed in claim 5 is characterized in that,
Described command machine also is used in the mode of opening the Network Time Protocol function clock being set and keeps function.
7, as claim 5 or 6 described systems, it is characterized in that,
Described command machine also is used for sending the handshake message that carries the command machine clock information to member machine;
Described member machine also is used for knowing the command machine clock information from the described handshake message that described command machine sends, and the clock of member machine is set according to described command machine clock information.
8, a kind of access switch of realizing clock synchronization in Ethernet is characterized in that,
Described access switch comprises that clock keeps functional module and clock synchronization module; Also comprise the handshake message sending module that keeps functional module to link to each other with clock, the handshake message receiver module that links to each other with clock synchronization module;
Described clock keeps functional module, is used for keeping the clock of described command machine when described access switch is the command machine of Ethernet switch cluster; And provide the command machine clock information to the handshake message sending module;
Described handshake message sending module is used for when described access switch is the command machine of Ethernet switch cluster, keeps functional module to know the command machine clock information from described clock, and sends the handshake message that carries the command machine clock information;
Described handshake message receiver module is used for when described access switch is the member machine of Ethernet switch cluster, receives from command machine and carries the handshake message of command machine clock information, and be forwarded to described clock synchronization module;
Described clock synchronization module, be used for when described access switch is the member machine of Ethernet switch cluster, obtain the command machine clock information from described handshake message receiver module, the clock of member machine is set, keep clock synchronization with described command machine according to described command machine clock information.
9, access switch as claimed in claim 8 is characterized in that,
Described clock keeps functional module, also is used to start the Network Time Protocol function or uses local clock.
10, access switch as claimed in claim 8 or 9 is characterized in that,
Described handshake message receiver module links to each other with described handshake message sending module;
Described handshake message receiver module, also being used at this access switch is member machine and when having the member machine of subordinate's cascade, and the handshake message that receives is forwarded to the handshake message sending module;
Described handshake message sending module, also being used at this access switch is member machine and when having the member machine of subordinate's cascade, and the handshake message that the handshake message receiver module sends is transmitted to the member machine of subordinate's cascade.
CN200910161533A 2009-07-31 2009-07-31 A kind of method and system and access switch of in Ethernet, realizing clock synchronization Pending CN101615998A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910161533A CN101615998A (en) 2009-07-31 2009-07-31 A kind of method and system and access switch of in Ethernet, realizing clock synchronization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910161533A CN101615998A (en) 2009-07-31 2009-07-31 A kind of method and system and access switch of in Ethernet, realizing clock synchronization

Publications (1)

Publication Number Publication Date
CN101615998A true CN101615998A (en) 2009-12-30

Family

ID=41495428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910161533A Pending CN101615998A (en) 2009-07-31 2009-07-31 A kind of method and system and access switch of in Ethernet, realizing clock synchronization

Country Status (1)

Country Link
CN (1) CN101615998A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102263632A (en) * 2011-08-26 2011-11-30 杭州华三通信技术有限公司 Time synchronization method in switchboard stacking system and stacking controller
CN102571911A (en) * 2011-11-17 2012-07-11 电信科学技术第五研究所 Computer time synchronizing and monitoring method based on NTP (Network Time Protocol) protocol
CN107508648A (en) * 2017-06-26 2017-12-22 清华大学 Time triggered Ethernet substep time synchronized strategy based on functions of the equipments classification
CN115687197A (en) * 2023-01-03 2023-02-03 成都登临科技有限公司 Data receiving module, data receiving method, circuit, chip and related equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102263632A (en) * 2011-08-26 2011-11-30 杭州华三通信技术有限公司 Time synchronization method in switchboard stacking system and stacking controller
CN102571911A (en) * 2011-11-17 2012-07-11 电信科学技术第五研究所 Computer time synchronizing and monitoring method based on NTP (Network Time Protocol) protocol
CN107508648A (en) * 2017-06-26 2017-12-22 清华大学 Time triggered Ethernet substep time synchronized strategy based on functions of the equipments classification
CN115687197A (en) * 2023-01-03 2023-02-03 成都登临科技有限公司 Data receiving module, data receiving method, circuit, chip and related equipment
CN115687197B (en) * 2023-01-03 2023-03-28 成都登临科技有限公司 Data receiving module, data receiving method, circuit, chip and related equipment

Similar Documents

Publication Publication Date Title
EP2688240B1 (en) Method, system and device for switching and selecting clock source device
EP1702423B1 (en) Time synchronizing device and process and associated products
CN101820435B (en) Synchronization method and device for MAC (Media Access Control) address table information of distributed network processing system
CN102684904B (en) The system and method for dynamic management power in communication system
CN103595626A (en) Method for achieving dynamic path planning in ring network
CN101478435A (en) Topology collecting method for stacking system and dual control board equipment
CN101577646B (en) Alarm synchronizing method based on SNMP
CN103188064A (en) Clock synchronization method and clock synchronization device
CN101908973A (en) A kind of networking method and networked system
CN102447582A (en) Resource synchronization method and device
CN101931550B (en) Method and device for synchronizing main and standby main control boards
CN101009546A (en) Time synchronization method for network segment utilizing different time synchronization protocol
CN101895361A (en) Method, system and clock board for transmitting synchronous status message
JP5266705B2 (en) Communications system
CN101615998A (en) A kind of method and system and access switch of in Ethernet, realizing clock synchronization
CN106452648A (en) Time synchronization method and communication terminal
CN102075351A (en) Network management remote control method and system
CN114827195A (en) Electric power 5G low-delay jitter implementation method for distribution network stability protection
CN103034632A (en) Information transmitting method and a system
CN105592485B (en) A method of it is acquired in real time based on SNMP network management protocol and handles message
US10334539B2 (en) Metered interface
CN103227733A (en) Topology discovery method and topology discovery system
CN112751907B (en) Information processing method, information processing apparatus, storage medium, and electronic apparatus
CN101132367B (en) Method and device for implementing access to independent business component
CN106130823B (en) Uniformly send the method and system of BFD message

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20091230