CN101237319A - Time synchronization method in Ethernet ring network and Ethernet ring system - Google Patents
Time synchronization method in Ethernet ring network and Ethernet ring system Download PDFInfo
- Publication number
- CN101237319A CN101237319A CNA2008100579038A CN200810057903A CN101237319A CN 101237319 A CN101237319 A CN 101237319A CN A2008100579038 A CNA2008100579038 A CN A2008100579038A CN 200810057903 A CN200810057903 A CN 200810057903A CN 101237319 A CN101237319 A CN 101237319A
- Authority
- CN
- China
- Prior art keywords
- ring network
- ethernet ring
- message
- time
- time synchronized
- 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.)
- Granted
Links
Images
Landscapes
- Small-Scale Networks (AREA)
Abstract
The invention discloses a time synchronism method in an Ethernet ring network, comprising the following steps that: a health detection message which is used for detecting the integrity of the ring network is transmitted on the Ethernet ring network; a time synchronism message which carries over synchronizing time information is transmitted on the Ethernet ring network, and the synchronizing time information can be then informed to various transmission nodes on the Ethernet ring network. Moreover, the invention also discloses another time synchronism method in the Ethernet ring network, an Ethernet ring network system and a main node in the Ethernet ring network. By adoption the technical proposal of the invention, time synchronism in the ring network can be realized without the necessity for utilization of the health detection message, thereby reduction of the CPU efficiency of the transmission nodes and reduction of the detection efficiency of the integrity of the ring network are avoided.
Description
Technical field
The present invention relates to the Ethernet ring protection technical field, refer to the host node in method for synchronizing time, Ethernet ring network system and the ethernet ring network in the ethernet ring network especially.
Background technology
The Ethernet ring protection agreement can prevent the broadcast storm that data loopback causes in ethernet ring network, when a link on the Ethernet ring disconnects, can enable backup link rapidly to recover the communication between each node on the looped network.
Below be basic concepts and the key technology in the Ethernet ring protection agreement:
The territory: the Ethernet ring protection agreement operates on the ethernet ring network, and all nodes on the ethernet ring network belong to a territory.
Host node: a host node is arranged in each territory, is the main running node of initiating loop detection and loop prevention.One of being connected in two ports on the ethernet ring network of host node is called master port, and another is called secondary port.When loop was complete, host node blocked secondary port with open-loop.
Transmission node: other node in the territory except that host node is transmission node.
Data vlan: the VLAN that is used for the service data transmission message.
Control VLAN: a special vlan, all ports that are connected on the ethernet ring network need add this VLAN.Control VLAN is used to transmit the Ethernet ring protection protocol massages, the health detection message that will mention as the back and update etc.
Alarming mechanism: when transmission node finds that own any one port that belongs to the EAPS territory can send link failure (Link Down) message at once when becoming fault (down) state and give host node; Host node is decontroled secondary port after receiving Link Down message immediately, makes it participate in data forwarding.
Polling mechanism: host node cycle sends health detection (Hello) message and starts a timer from its master port, and this hello packet is propagated on ring through each transmission node successively; If host node can be received the hello packet that oneself sends from secondary port in the timing (Hello Time) of described timer, illustrate that then looped network is complete, keep the blocked state of secondary port; If host node is not received the hello packet that oneself sends in the Hello Time time, then think looped network generation link failure, decontrol the blocked state of secondary port, and transmission refreshes (Complete_Flush_FDB) message, to notify each transmission node renewal mac address forwarding table separately, the notification transmission node is decontroled the pre-port that blocks simultaneously.
Pre-obstruction (Pre-Forwarding) state of port: when transmission node with the port on the big looped network by fault (Down) state transition when intact (Up) state, this port of this transmission node is set to pre-blocked state, and starts a pre-timer that blocks; Be in the message of the port block data vlan of pre-blocked state, but transmit the message of control VLAN; When this transmission node receives the Complete_Flush_FDB message of autonomous node or blocks timer expiry in advance, decontrol the pre-port that blocks.
Because host node is by polling mechanism, promptly by sending and receiving the recovery that hello packet comes the perception ring, so host node perception at once when loop recovers.Therefore, be set to pre-blocked state at transmission node by Down state transition to the port of Up state, and start one pre-when blocking timer, if it is too short to block the timing (Fail Time) of timer in advance, the then pre-port that blocks may be opened before the Complete_Flush_FDB of host node message arrives, and caused loop.
In order to address the above problem, Fail Time is set to three times of Hello Time in existing Ethernet ring protection agreement.Here Hello Time is the timing that being used on the host node detects the timer of hello packet.Therefore, need be on looped network the timing of each node timer synchronously.In the prior art, by host node the value of Hello Time is carried in the hello packet announcement to all nodes on the looped network.
In the prior art, owing to propagate Hello Time information by hello packet, so each node all needs the CPU that reports to self to handle after receiving hello packet; And looped network is very high to the requirement of reliability, need send hello packet with higher frequency, this makes ring go up the CPU that each node frequently receives hello packet and report to self and handles, thereby has increased the weight of the processing burden of transmission node CPU, has reduced the efficient of CPU.In addition, hello packet is all reported to CPU and is handled on each transmission node, has also reduced the detection efficiency of polling mechanism to the looped network integrality.
Summary of the invention
The invention provides the method for synchronizing time in the ethernet ring network, the feasible time synchronized that need not to utilize in the health detection message realization looped network of this method, and then the decline of having avoided the decline of transmission node CPU efficient and having avoided looped network integrity detection efficient.
The invention provides the host node in a kind of Ethernet ring network system and a kind of ethernet ring network, the feasible time synchronized that need not to utilize in the health detection message realization looped network of this Ethernet ring network system and host node, and then the decline of having avoided the decline of transmission node CPU efficient and having avoided looped network integrity detection efficient.
For achieving the above object, technical scheme of the present invention specifically is achieved in that
The invention discloses a kind of method for synchronizing time, this method comprises:
On ethernet ring network, send the health detection message that is used to detect the looped network integrality;
On described ethernet ring network, send and carry the time synchronized message of information lock in time, with described lock in time information notify each transmission node on the described ethernet ring network.
The invention also discloses the method for synchronizing time in a kind of ethernet ring network, this method comprises:
Host node sends the health detection message that is used to detect the looped network integrality on ethernet ring network; Described host node also sends on described ethernet ring network and carries the time synchronized message of information lock in time;
Described each transmission node is sent to self after receiving described time synchronized message CPU handles, to write down information lock in time of carrying in the described time synchronized message; Described each transmission node no longer reports to the CPU of self after receiving described health detection message.
The invention discloses a kind of Ethernet ring network system, this Ethernet ring network system comprises a host node and more than one transmission node, wherein,
Host node is used for sending the health detection message that is used to detect the looped network integrality on ethernet ring network, also is used for sending on described ethernet ring network and carries the time synchronized message of information lock in time;
Described each transmission node, the CPU that is used for being sent to self after receiving described time synchronized message handles, to write down information lock in time of carrying in the described time synchronized message; After receiving described health detection message, no longer report to the CPU of self.
The invention also discloses the host node in a kind of ethernet ring network, this host node comprises: health detection message sending module and time synchronized message sending module, wherein,
The health detection message sending module is used for sending the health detection message that is used to detect the looped network integrality on ethernet ring network;
Time synchronized message sending module is used on ethernet ring network sending and carries the time synchronized message of information lock in time, with described lock in time information notify each transmission node on the described ethernet ring network.
As seen from the above technical solution, this health detection message that is used to detect the looped network integrality that on ethernet ring network, sends of the present invention, also on described ethernet ring network, send and carry the time synchronized message of information lock in time, with technical scheme with each transmission node on the described lock in time information notice looped network, making needs the frequent health detection message that sends to need not to carry information lock in time, and then the CPU that need not to be reported to each transmission node handles, thus the decline of avoiding the decline of CPU efficient and having avoided looped network integrity detection efficient.
Description of drawings
Fig. 1 is the flow chart of the method for synchronizing time in a kind of ethernet ring network of the embodiment of the invention;
Fig. 2 is the composition structured flowchart of a kind of Ethernet ring network system of the embodiment of the invention;
Fig. 3 is the structured flowchart of the host node in a kind of ethernet ring network of the embodiment of the invention.
Embodiment
Core concept of the present invention is: send the health detection message that is used to detect the looped network integrality on ethernet ring network; Also on described ethernet ring network, send and carry the time synchronized message of information lock in time, with each transmission node on the described lock in time information notice ethernet ring network.Like this, health detection message, be hello packet no longer need with lock in time information Hello Time be synchronized to each transmission node, also be that transmission node need not to be sent to self after receiving hello packet CPU handles, thereby avoided the decline of CPU efficient and the decline of looped network integrity detection efficient.
For making purpose of the present invention, technical scheme and advantage clearer, below with reference to the accompanying drawing preferred embodiment that develops simultaneously, the present invention is described in more detail.
Fig. 1 is the flow chart of the method for synchronizing time in a kind of ethernet ring network of the embodiment of the invention.As shown in Figure 1, this method comprises:
In the embodiment shown in fig. 1,, generally just change, do not need transmitting time sync message continually with user's configuration because lock in time, information Hello Time can frequent variations.Therefore, when the user revises lock in time during information Hello Time on host node, host node sends the time synchronized message that carries information lock in time on ethernet ring network, and each transmission node on the described lock in time information notice looped network is got final product.
Owing to carry in the scheme of Hello time at existing hello packet, each transmission node identifies this hello packet and reports to CPU and handle according to the target MAC (Media Access Control) address of hello packet.Therefore, in embodiments of the present invention, in order to realize backward compatibility, the target MAC (Media Access Control) address of health detection message is set to be different from its former target MAC (Media Access Control) address, and it is identical with the former target MAC (Media Access Control) address of health detection message that the target MAC (Media Access Control) address of time synchronized message is set to.Like this, under the situation of the original setting that does not change each transmission node, each transmission node is after receiving the time synchronized message, just according to its target MAC (Media Access Control) address the CPU that the time synchronized message is sent to self is handled, and after receiving health detection message, the CPU that no longer is sent to self handles.Promptly under existing network environment, only need host node is upgraded, the time synchronized message just can be handled by the CPU of existing transmission node; Health detection message is except no longer carrying information lock in time in addition, and its mechanism that detects the looped network integrality is also carried out with original mechanism, therefore can not influence the CPU of each transmission node, and promptly health detection message can not be transmitted the CPU processing of node.
Based on the foregoing description, next provide a kind of Ethernet ring network system among the present invention and the structured flowchart of the host node in a kind of ethernet ring network.
Fig. 2 is the composition structured flowchart of a kind of Ethernet ring network system of the embodiment of the invention.Ethernet ring network system among the present invention comprises a host node and more than one transmission node, and what provide in Fig. 2 is the schematic diagram of the Ethernet ring network system that is made of a host node and three transmission nodes.
In Fig. 2, host node is used for sending the health detection message that is used to detect the looped network integrality on ethernet ring network, also be used on described ethernet ring network sending and carry the time synchronized message of information lock in time, with described lock in time information notify each transmission node on the described ethernet ring network.And being used for being sent to the CPU of self after receiving described time synchronized message, handles each transmission node, to write down information lock in time of carrying in the described time synchronized message; After receiving described health detection message, no longer report to the CPU of self.
In Fig. 2, host node is by being provided with the target MAC (Media Access Control) address of described health detection message and described time synchronized message respectively, the CPU that makes each transmission node no longer report to self after receiving health detection message handles, and the CPU that reports to self after receiving the time synchronized message handles.
Fig. 3 is the structured flowchart of the host node in a kind of ethernet ring network of the embodiment of the invention.As described in Figure 3, this host node mainly comprises: health detection message sending module 301 and time synchronized message sending module 302, wherein:
Health detection message sending module 301 is used for sending the health detection message that is used to detect the looped network integrality on ethernet ring network;
Time synchronized message sending module 302 is used on ethernet ring network sending and carries the time synchronized message of information lock in time, with each transmission node on the described lock in time information notice ethernet ring network.
As shown in Figure 3, host node can further include: module 303 is set, be used for being provided with respectively the target MAC (Media Access Control) address of described health detection message and time synchronized message, handle so that each transmission node no longer reports to the CPU of self after receiving health detection message, and the CPU that reports to self after receiving the time synchronized message handles.Health detection message and the time synchronized message that module 303 will set MAC Address is set sends to health detection message sending module 301 and time synchronized message sending module 302 respectively.Health detection message sending module 301 is used for sending the health detection message from module 303 is set on ethernet ring network.Time synchronized message sending module 302 is used for sending the time synchronized message that module 303 is set from described on ethernet ring network.
In Fig. 3, time synchronized message sending module 302, be used for self place host node lock in time, information was modified the time, send described time synchronized message.
In sum, this health detection message that is used to detect the looped network integrality that on ethernet ring network, sends in the embodiment of the invention, also on described ethernet ring network, send and carry the time synchronized message of information lock in time, with technical scheme with each transmission node on the described lock in time information notice looped network, the feasible health detection message that need frequently be sent out need not to carry information lock in time, and then the CPU that need not to be reported to each transmission node handles, thereby save the cpu resource of transmission node, help the stable of equipment, and avoid the decline of looped network integrity detection efficient, make network can support fast detecting and convergence.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention, all any modifications of being made within the spirit and principles in the present invention, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1, the method for synchronizing time in a kind of ethernet ring network is characterized in that, this method comprises:
On ethernet ring network, send the health detection message that is used to detect the looped network integrality;
On described ethernet ring network, send and carry the time synchronized message of information lock in time, with described lock in time information notify each transmission node on the described ethernet ring network.
2, the method for claim 1 is characterized in that, this method also comprises:
The target MAC (Media Access Control) address of described health detection message is set, and the CPU that makes described each transmission node no longer report to self after receiving health detection message handles;
The target MAC (Media Access Control) address of described time synchronized message is set, and the CPU that makes described each transmission node report to self after receiving the time synchronized message handles, to write down information lock in time of carrying in the described time synchronized message.
3, method as claimed in claim 1 or 2 is characterized in that, when the lock in time of the host node on described ethernet ring network, information was modified, sends described time synchronized message.
4, the method for synchronizing time in a kind of ethernet ring network is characterized in that, this method comprises:
Host node sends the health detection message that is used to detect the looped network integrality on ethernet ring network; Described host node also sends on described ethernet ring network and carries the time synchronized message of information lock in time;
Described each transmission node is sent to self after receiving described time synchronized message CPU handles, to write down information lock in time of carrying in the described time synchronized message; Described each transmission node no longer reports to the CPU of self after receiving described health detection message.
5, method as claimed in claim 4 is characterized in that, this method also comprises:
Host node is by being provided with the target MAC (Media Access Control) address of described health detection message and described time synchronized message respectively, the CPU that makes each transmission node no longer report to self after receiving health detection message handles, and the CPU that reports to self after receiving the time synchronized message handles.
6, a kind of Ethernet ring network system is characterized in that, this Ethernet ring network system comprises a host node and more than one transmission node, wherein,
Host node is used for sending the health detection message that is used to detect the looped network integrality on ethernet ring network, also is used for sending on described ethernet ring network and carries the time synchronized message of information lock in time;
Described each transmission node, the CPU that is used for being sent to self after receiving described time synchronized message handles, to write down information lock in time of carrying in the described time synchronized message; After receiving described health detection message, no longer report to the CPU of self.
7, Ethernet ring network system as claimed in claim 6, it is characterized in that, described host node is by being provided with the target MAC (Media Access Control) address setting of described health detection message and described time synchronized message respectively, each transmission node that makes no longer reports to self after receiving health detection message CPU handles, and the CPU that reports to self after receiving the time synchronized message handles.
8, the host node in a kind of ethernet ring network is characterized in that, this host node comprises: health detection message sending module and time synchronized message sending module, wherein,
The health detection message sending module is used for sending the health detection message that is used to detect the looped network integrality on ethernet ring network;
Time synchronized message sending module is used on ethernet ring network sending and carries the time synchronized message of information lock in time, with described lock in time information notify each transmission node on the described ethernet ring network.
9, host node as claimed in claim 8, it is characterized in that, this host node further comprises: module is set, be used for being provided with respectively the target MAC (Media Access Control) address of described health detection message and described time synchronized message, handle so that each transmission node no longer reports to the CPU of self after receiving health detection message, and the CPU that reports to self after receiving the time synchronized message handles;
Described health detection message sending module is used for sending the health detection message that module is set from described on ethernet ring network;
Described time synchronized message sending module is used for sending the time synchronized message that module is set from described on ethernet ring network.
10, host node as claimed in claim 8 or 9 is characterized in that described time synchronized message sending module was used for when the lock in time of described host node, information was modified, and sent described time synchronized message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008100579038A CN101237319B (en) | 2008-02-20 | 2008-02-20 | Time synchronization method in Ethernet ring network and Ethernet ring system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008100579038A CN101237319B (en) | 2008-02-20 | 2008-02-20 | Time synchronization method in Ethernet ring network and Ethernet ring system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101237319A true CN101237319A (en) | 2008-08-06 |
CN101237319B CN101237319B (en) | 2012-01-04 |
Family
ID=39920695
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008100579038A Active CN101237319B (en) | 2008-02-20 | 2008-02-20 | Time synchronization method in Ethernet ring network and Ethernet ring system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101237319B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101834774A (en) * | 2009-03-11 | 2010-09-15 | 中兴通讯股份有限公司 | Address refreshing method of switching node port in Ethernet ring network and switching node |
CN101873243A (en) * | 2010-06-21 | 2010-10-27 | 中兴通讯股份有限公司 | Method and device for realizing coordinated time synchronization of 1588 message |
CN102208958A (en) * | 2011-07-04 | 2011-10-05 | 瑞斯康达科技发展股份有限公司 | Clock synchronization method for synchronous Ethernets, as well as synchronous information sending/receiving method, device and apparatus |
CN105281885A (en) * | 2014-07-25 | 2016-01-27 | 中兴通讯股份有限公司 | Time synchronization method and device used for network equipment and time synchronization server |
CN105812492A (en) * | 2016-05-16 | 2016-07-27 | 中国建设银行股份有限公司 | Data synchronizing method and system |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100481805C (en) * | 2005-11-24 | 2009-04-22 | 杭州华三通信技术有限公司 | Ring shape Ethernet and service loading implementation method thereof |
CN101001192B (en) * | 2007-01-17 | 2010-04-21 | 华为技术有限公司 | Method, system and equipment for protecting ring network link |
CN101068185B (en) * | 2007-06-19 | 2012-06-06 | 中兴通讯股份有限公司 | Ether loop net message processing method and Ethernet protecting system using the same method |
CN101075965B (en) * | 2007-06-22 | 2012-04-18 | 中兴通讯股份有限公司 | Method for controlling message classified transmission by Ethernet |
-
2008
- 2008-02-20 CN CN2008100579038A patent/CN101237319B/en active Active
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101834774A (en) * | 2009-03-11 | 2010-09-15 | 中兴通讯股份有限公司 | Address refreshing method of switching node port in Ethernet ring network and switching node |
CN101873243A (en) * | 2010-06-21 | 2010-10-27 | 中兴通讯股份有限公司 | Method and device for realizing coordinated time synchronization of 1588 message |
CN101873243B (en) * | 2010-06-21 | 2014-04-30 | 中兴通讯股份有限公司 | Method and device for realizing coordinated time synchronization of 1588 message |
CN102208958A (en) * | 2011-07-04 | 2011-10-05 | 瑞斯康达科技发展股份有限公司 | Clock synchronization method for synchronous Ethernets, as well as synchronous information sending/receiving method, device and apparatus |
CN102208958B (en) * | 2011-07-04 | 2012-12-19 | 瑞斯康达科技发展股份有限公司 | Clock synchronization method for synchronous Ethernets, as well as synchronous information sending/receiving method, device and apparatus |
CN105281885A (en) * | 2014-07-25 | 2016-01-27 | 中兴通讯股份有限公司 | Time synchronization method and device used for network equipment and time synchronization server |
CN105281885B (en) * | 2014-07-25 | 2021-04-16 | 中兴通讯股份有限公司 | Time synchronization method and device for network equipment and time synchronization server |
CN105812492A (en) * | 2016-05-16 | 2016-07-27 | 中国建设银行股份有限公司 | Data synchronizing method and system |
CN105812492B (en) * | 2016-05-16 | 2019-03-12 | 中国建设银行股份有限公司 | A kind of method of data synchronization and system |
Also Published As
Publication number | Publication date |
---|---|
CN101237319B (en) | 2012-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8339969B2 (en) | Distributed ethernet system and method for detecting fault based thereon | |
CN101262401B (en) | A method for realizing network recovery in loop network | |
CN101252500B (en) | Intersect looped network, node and realizing method of random topology intersect looped network | |
CN101345683B (en) | Protocol packet transmission control method of Ethernet automatic protection switch system | |
CN100596356C (en) | Network node and fault recovery method of Ethernet ring network therein | |
CN102014001B (en) | Method and exchange equipment for realizing fast Ethernet ring | |
AU2009295116B2 (en) | Control method for protecting failure recovery of Ethernet ring and Ethernet ring nodes | |
CN100586096C (en) | A topology notification method, system and device based on L2VPN | |
CN101841450B (en) | Method and system for realizing stable communication by forming multiple ring topologies into intersecting ring | |
CN101217445B (en) | A method of loop generation protection and Ethernet ring system | |
CN101478469B (en) | Method and system for RRPP loop link switching | |
CN102480409B (en) | Method for realizing rapid ring protection protocol (RRPP) loop shunting uplink, RRPP loop and device | |
CN101072154A (en) | Loop Ethernet switching method | |
CN100461739C (en) | RPR bidge redundancy protecting method and RPR bridge ring equipment | |
CN101237319B (en) | Time synchronization method in Ethernet ring network and Ethernet ring system | |
WO2011097893A1 (en) | Method, device and system for transmitting e1 bidirectional looped network data | |
JP5491623B2 (en) | Address refresh method and system | |
US20070165658A1 (en) | Transmission apparatus, transmission-channel-ring connecting method, and computer product | |
US8649261B2 (en) | Method and system for blocking protocol messages at a sub-ring control channel without virtual channel | |
CN101136838A (en) | Bridge mode elastic grouping ring transannular bridge equipment redundancy protecting method | |
CN101686199B (en) | Method, device and system for processing control message in Ethernet protection system | |
EP2437439A1 (en) | Method and system for refreshing the single ring address in an ethernet ring | |
CN101582848A (en) | Cross-ring protection method and system of resilient packet ring (RPR) | |
CN102055661B (en) | Ethernet multi-ring network protection method under multipoint fault condition and interconnected nodes | |
CN101136830B (en) | Loop prevention method after RPR bridge fault recovery |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Patentee after: Xinhua three Technology Co., Ltd. Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base Patentee before: Huasan Communication Technology Co., Ltd. |