WO2016192399A1 - 一种实现交替bmc的方法及装置 - Google Patents

一种实现交替bmc的方法及装置 Download PDF

Info

Publication number
WO2016192399A1
WO2016192399A1 PCT/CN2016/071480 CN2016071480W WO2016192399A1 WO 2016192399 A1 WO2016192399 A1 WO 2016192399A1 CN 2016071480 W CN2016071480 W CN 2016071480W WO 2016192399 A1 WO2016192399 A1 WO 2016192399A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
ring
port
time
localpriority
Prior art date
Application number
PCT/CN2016/071480
Other languages
English (en)
French (fr)
Inventor
赵洪广
瞿艳霞
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to EP16802322.4A priority Critical patent/EP3306852A4/en
Publication of WO2016192399A1 publication Critical patent/WO2016192399A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0641Change of the master or reference, e.g. take-over or failure of the master
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes

Definitions

  • Embodiments of the present invention relate to a precise time synchronization technique, and more particularly to a method and apparatus for implementing an alternate BMC.
  • a new Best Master Clock (BMC) algorithm is defined for use in telecommunications networks.
  • the Alternate BMC algorithm adjusts the rules of the data set comparison algorithm; adds the LocalPriority attribute to the data set comparison algorithm; and adds control for the state selection algorithm.
  • the non-slave attribute of the time input that is, the port that is not the slave clock attribute cannot access the time.
  • the Localpriority attribute changes the minimum path selection rule of the original standard BMC algorithm, the manually configured local priority is added before the minimum path selection, so that the topology is not formed according to the minimum path, so If the configuration is improper, it will be directly configured into a loop, or when the environment changes, it is easy to trigger a loop.
  • the noslave attribute the clock port input rule is artificially adjusted, and the loop is easily caused when the environment changes. Therefore, the application of the added Localpriority and noslave elements in the ring network poses a potential clock loop risk.
  • Most of the clock networks that are currently formed are mainly deployed in the ring network. In order to solve the risk of clock loops, users must carefully consider and analyze the networking when configuring. Consider the feasibility of networking and give detailed details of each device. The network configuration is specified. It is not necessary to configure two input nodes as in the original BMC algorithm. Other devices are configured by default. This undoubtedly increases the operation and maintenance cost during deployment.
  • An object of the embodiments of the present invention is to provide a method and apparatus for implementing an alternate BMC, which can reduce the risk of a clock loop.
  • an embodiment of the present invention provides a method for implementing an alternate optimal master clock BMC, including:
  • the Localpriority attribute includes:
  • the Localpriority of the configured output port is equal to the Localpriority of the port on its ring.
  • the method further includes:
  • the ring time node broadcasts its own device information within a waiting time of entering the slave state in advance.
  • the waiting time defaults to a product value obtained by multiplying the Announce message interval time by the hop count of the grandfather clock GM;
  • the broadcasted device information is time information of a ring time node that is a GM.
  • the method further includes: switching the state of the ring time node to a normal slave state, and then advertising the information of the real GM according to a standard protocol.
  • the method further includes: determining that the node is the ring time node on the ring that has clock communication with the ring.
  • the node has a non-slave clock noslave port; the method further includes:
  • All nodes including the ring time node select an optimal time source Ebest according to a preset state selection policy and determine all port states.
  • the state selection policy includes:
  • the node traverses all time ports of the non-noslave attribute, and selects the best Erbest as the Ebest of the node according to the data set comparison algorithm.
  • the determining all port states includes:
  • the noslave port of the node When the clockclass value of the local clock D0 of the node is between 1 and 127, if the Erbest of the noslave port is better than the local clock D0, the noslave port of the node enters a passive passive state, otherwise, the master master state is entered. ;
  • the node's noslave port When the clockclass value of the local clock D0 of the node is not between 1 and 127, if the Erbest of the noslave port is better than the local clock D0 and is better than the Ebest of the node, the node's noslave port enters Passive state, otherwise, enter the master state.
  • the non-noslave port determines the port status according to standard algorithm rules.
  • An embodiment of the present invention further provides an apparatus for implementing an alternate BMC, including at least a determining unit and a configuration unit;
  • the determining unit is configured to determine that the node where the node is located is a ring network time node that has clock communication with the ring outside the ring;
  • the configuration unit is configured to configure the LocalPriority attribute of the ring time node as: For the ring time input node: configure the LocalPriority of its input port to be better than the Localpriority of its ring port; For the ring time output node: Configure the LocalPriority of its output port LocalPriority is inferior to its ring port; for ring bidirectional time node: The LocalPriority of the configured output port is equal to the Localpriority of the port on its ring.
  • the first processing unit is further configured to: after the ring time node in which the ring network node is located, decides to enter the slave state, and broadcasts its own device information in a preset waiting time of entering the slave state.
  • the first processing unit is further configured to: when the waiting time is exceeded, switch the state of the ring time node in which it is located to a normal slave state, and then advertise the information of the real GM according to a standard protocol.
  • the determining unit is further configured to: determine that a node where the node is located has a noslave port;
  • the apparatus also includes a second processing unit for selecting Ebest according to a preset state selection policy and determining all port states.
  • the second processing unit is specifically configured to:
  • the node where it is located traverses all the time ports of the non-noslave attribute, and selects the best Erbest as the Ebest of the node according to the data set comparison algorithm;
  • the clockclass value of the local clock D0 of the node where the node is located is between 1 and 127, if the Erbest of the noslave port is better than the local clock D0, the noslave port of the node where the node is located enters the passive state; otherwise, enters the master state;
  • the non-noslave port of the node where it is located determines the port status according to standard algorithm rules.
  • the determining unit is further configured to: determine that the node where the node is located is a ring time node; correspondingly,
  • the apparatus also includes a third processing unit for implementing a slave state switch in accordance with an algorithmic flow of a standard protocol.
  • Embodiments of the present invention also provide a computer readable storage medium storing computer executable instructions for performing the method of implementing alternate BMC of any of the above.
  • the technical solution of the present application includes setting a node on the ring that communicates with the ring outside the ring as a ring time node, and configuring a Localpriority attribute of the ring time node; wherein the Localpriority attribute includes: inputting for the ring time Node: The Localpriority of its input port is better than the LocalPriority of its ring port; for the ring time output node: the Localpriority of its output port is inferior to the LocalPriority of its ring port; for the ring bidirectional time node: Configure the output port Localpriority is equal to the Localpriority of the port on its ring.
  • the ring time node After the ring network time node decides to enter the slave state, the ring time node broadcasts its own device information in a preset waiting time of entering the slave state; if the ring time node has a noslave port, the ring network The time node selects an optimal time source (Ebest) according to a preset state selection policy and determines a port state; wherein the state selection policy includes: a noslave port traverses all time ports of the non-noslave attribute, and selects according to an existing data set comparison algorithm. The best Erbest is Ebest as the noslave port. In this way, a delay filtering process is added to the time information of the ring time node to filter the invalid time information transmission caused by the LocalPriority configuration in the networking, and the invalid time information caused by the disappearance of the external time input is eliminated.
  • Ebest optimal time source
  • FIG. 1 is a flowchart of a method for implementing an alternate BMC in an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a network structure of a first embodiment of implementing a ring network time node according to the present invention
  • FIG. 3 is a schematic diagram of a network structure of a second embodiment of implementing a ring network time node according to the present invention.
  • FIG. 4 is a schematic diagram of a network structure of a third embodiment of implementing a ring network time node according to the present invention.
  • FIG. 5 is a schematic structural diagram of a device for implementing an alternate BMC according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for implementing an alternate BMC according to an embodiment of the present invention. As shown in FIG. 1, the method includes:
  • Step 100 Set the node on the ring that has clock communication with the ring as the ring time node, and configure the Localpriority attribute of the ring time node.
  • the ring network time nodes are divided into three categories:
  • a type of access clock that is, a clock obtained from the outside world through a ring time node, may also be referred to as a ring time input node;
  • One type is used for outputting an external clock, which can also be called a ring time output node;
  • the ring time node is a two-way time node of the ring network.
  • node A is the ring time input node
  • the time port connected to the PRTC is the input port
  • the port connected to node B and node F is the ring.
  • the localPriority value of the input port of node A is required to be smaller than the port on the ring.
  • the Localpriority of the output port is inferior to (if numerically greater than) the LocalPriority of the port on the ring; as shown in Figure 3,
  • node D is the ring time output node
  • node D takes time from the ring and passes the time to the downstream ring.
  • the time port connected to node D1 is the output port
  • the port connected to node C and node E is the ring port.
  • the configuration requires that the localpriority value of the output port of node D is greater than the port on the ring.
  • node D acquires time from one ring at a time and advertises to another ring. Node D also acquires from another ring at another time.
  • the capability and requirement of time, node D is the two-way time node of the ring network.
  • the configuration requires that the LocalPriority values of the four time ports on node D are equal.
  • the concept of the time node of the ring network is introduced, and the LocalPriority attribute is configured accordingly, and the specification configuration description is provided, thereby avoiding improper configuration and causing the algorithm to loop into the ring. Therefore, the risk of the clock loop is reduced.
  • the method of the embodiment of the present invention further includes: determining that the node is a ring time node on the ring and having a clock communication outside the ring.
  • the method further includes: implementing a slave state switch according to an algorithm flow of a standard protocol.
  • the method of the present invention further includes:
  • Step 101 All nodes including the ring time node select an optimal time source (Ebest) according to a preset state selection policy and determine all port states.
  • Ebest optimal time source
  • the status selection strategy includes:
  • the node traverses all time ports of the non-noslave attribute, and selects the best Erbest as the Ebest of the node according to the existing data set comparison algorithm.
  • Erbest and Ebest are the information defined in the existing protocol. Erbest refers to the best time source and time information on the port; Ebest refers to the best time input information on the device, that is, Ebest is all available. The best of Erbest information.
  • determining all port states includes:
  • the node's noslave port When the clockclass value of the local clock D0 of the node is between 1 and 127, if the Erbest of the noslave port is better than the local clock D0, the node's noslave port enters a passive state, otherwise, enters the master state;
  • the node's noslave port When the clockclass value of the local clock D0 of the node is not between 1 and 127, if the Erbest of the noslave port is better than the local clock D0 and is better than the Ebest of the node, the node's noslave port enters the passive state, otherwise, it enters the master state. ;
  • Non-noslave ports determine port status according to standard algorithm rules.
  • the selection of the Ebest of the node includes: the best Erbest selected in the Erbest except the Erbest of the noslave port.
  • the specific implementation of the selection is well known to those skilled in the art, and details are not described herein.
  • the method of the embodiment of the present invention further includes:
  • Step 102 The ring time node broadcasts its own device information in a preset waiting time of entering the slave state.
  • the ring network time node enters the slave state because it receives an upstream Announce message, compares its clock information with the device, and finds that the external device enters the slave state better than the device.
  • the Announce packet carries the time information of the ring network time node for topology calculation and the hop count information of the grandfather clock.
  • the waiting time may default to the product value obtained by multiplying the Announce message interval time by the hop count of the grandfather clock (GM, GrandMaster).
  • the waiting time may also be a value manually pre-configured by the user.
  • the device information broadcasted in this step is time information of the ring time node as the GM.
  • the method of the embodiment of the present invention further includes: switching the state of the ring time node to the normal slave state, and then notifying the information of the real GM according to the standard protocol.
  • the method further includes: implementing a slave state switch according to an algorithm flow of a standard protocol.
  • FIG. 5 is a schematic structural diagram of a device for implementing an alternate BMC according to an embodiment of the present invention. As shown in FIG. 5, at least a determining unit and a configuration unit are included;
  • the determining unit is configured to determine that the node where the node is located is a ring time node on the set ring that has clock communication with the ring;
  • the device of the present invention further includes a first processing unit, configured to broadcast its own device information within a waiting time of entering a slave state in advance after the ring network time node in which it is located decides to enter the slave state.
  • the first processing unit is further configured to: when the waiting time is exceeded, switch the state of the ring time node in which it is located to the normal slave state, and then advertise the information of the real GM according to the standard protocol.
  • the determining unit is further configured to: determine that the node where the node is located has a noslave port.
  • the apparatus of the present invention further includes a second processing unit, configured to select Ebest according to a preset state selection policy and determine all port states. Specifically used for:
  • the node where it is located traverses all the time ports of the non-noslave attribute, and selects the best Erbest as the Ebest of the node according to the existing data set comparison algorithm;
  • the noslave port of the node where the node is located enters the passive state. Otherwise, enter the master state;
  • the non-noslave port of the node where it is located determines the port status according to standard algorithm rules.
  • the determining unit is further configured to: determine that the node where the node is located is not a ring time node; accordingly, the apparatus of the present invention further includes a third processing unit, configured to implement a slave state switching according to an algorithm flow of a standard protocol.
  • the apparatus for implementing the alternate BMC in the embodiment of the present invention may be disposed in a node of the ring network.
  • the node with external clock communication is the ring time node, and configures the local priority attribute of the ring time node.
  • the Localpriority attribute includes: For the ring time input node: the LocalPriority of the input port is better than its ring. Localpriority of the upper port; for the ring time output node: the Localpriority of the output port is inferior to the Localpriority of the ring port; for the ring bidirectional time node: the LocalPriority of the configured output port is equal to the Localpriority of the port on the ring.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

一种实现交替BMC的方法及装置,包括设置环上与环外存在时钟通信的节点为环网时间节点,并配置环网时间节点的本地优先级(Localpriority)属性;其中,Localpriority属性包括:对于环网时间输入节点:配置其输入端口的Localpriority优于其环上端口的Localpriority;对于环网时间输出节点:配置其输出端口的Localpriority劣于其环上端口的Localpriority;对于环网双向时间节点:配置输出端口的Localpriority等于其环上端口的Localpriority。从本发明提供的技术方案可见,由于引入环网时间节点的概念,并对其Localpriority属性提供了规范的配置,避免了不当的配置导致算法选路成环振荡,因此,降低了时钟环路的风险。

Description

一种实现交替BMC的方法及装置 技术领域
本发明实施例涉及精确时间同步技术,尤指一种实现交替BMC的方法及装置。
背景技术
随着精确时间同步协议(PTP,Precision Time Protocol)在电信网络中的大规模部署,时间同步协议在通讯网络中得到了越来越多的重视和广泛应用。以1588v2协议为基础,国际电信联盟(ITU,International Telecommunication Union)标准组也在定制适应电信网络的时间标准,G.8275.1协议就是ITU组织定义的时间同步的一个重要标准。
在G.8275.1协议中,定义了新的最佳主时钟(BMC,Best Master Clock)算法即交替(Alternate)BMC,用于应用在电信网络中。Alternate BMC算法与1588v2协议中定义的标准BMC算法相比,调整了数据集比较算法的规则;在数据集比较算法中加入了本地优先权(Localpriority)属性;在状态选择算法中加入了用于控制时间输入的非从时钟(noslave)属性,也就是说,非从时钟属性的端口不能接入时间。无疑,这些改变使得时钟网络拓扑按照时钟优劣来展开,更加合理,同时由于加入了Localpriority及noslave元素,大大加强了人工干预网络拓扑的能力。
但是,同时也带来了新的问题:由于Localpriority属性改变了原来标准BMC算法的最小路径选择规则,把人工配置的本地优先级加在最小路径选择前面,使得拓扑不是按照最小路径形成的,这样配置不当就会直接配置成环路,或者在环境变动时,容易引发环路;而通过noslave属性,人为调整了时钟端口输入规则,在环境变动时容易引发环路。因此,加入的Localpriority及noslave元素在环网中应用会带来潜在的时钟环路风险。而现在成型的时钟网络大多是以环网部署为主,为了解决时钟环路风险,用户在配置时,必须要仔细考虑及分析组网,考虑组网可行性及给出具体每个设备详细的组网配置指定,不象原来BMC算法只要配置2个输入节点即可,其他设备默认配置,这样,无疑使得在部署时增加了运维成本。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本发明实施例的目的在于提供一种实现交替BMC的方法及装置,能够降低时钟环路的风险。为了达到本发明实施例目的,本发明实施例提供了一种实现交替最佳主时钟BMC的方法,包括:
设置环上与环外存在时钟通信的节点为环网时间节点,并配置环网时间节点的本地优先权Localpriority属性;其中,Localpriority属性包括:
对于用于接入时钟的环网时间输入节点:配置其输入端口的Localpriority优于其环上端口的Localpriority;
对于用于向外输出时钟的环网时间输出节点:配置其输出端口的Localpriority劣于其环上端口的Localpriority;
对于时间存在双向传递的环网双向时间节点:配置输出端口的Localpriority等于其环上端口的Localpriority。
可选地,所述环网时间节点决定进入从时钟slave状态后,该方法还包括:
所述环网时间节点在预先设置的进入slave状态的等待时间内广播自身的设备信息。
可选地,所述等待时间默认为通告Announce报文间隔时间与距离祖父时钟GM的跳数相乘得到的积值;
或者,为预先配置的值。
可选地,所述广播的设备信息为作为GM的环网时间节点的时间信息。
可选地,当超过所述等待时间时,还包括:所述环网时间节点的状态切换到正常slave状态,再按照标准协议向外通告真正GM的信息。
可选地,该方法之前还包括:判断出节点为所述环上与环外存在时钟通信的所述环网时间节点。
可选地,所述节点存在非从时钟noslave端口;该方法还包括:
包括所述环网时间节点的所有节点按照预先设置的状态选择策略选择最佳的时间源Ebest并确定所有端口状态。
可选地,所述状态选择策略包括:
所述节点遍历所有非noslave属性的时间端口,按照数据集比较算法选择出最好的Erbest作为所述节点的Ebest。
可选地,所述确定所有端口状态包括:
当所述节点的本地时钟D0的clockclass数值在1到127之间时,如果所述noslave端口的Erbest优于本地时钟D0,则所述节点的noslave端口进入被动passive状态,否则,进入主master状态;
当所述节点的本地时钟D0的clockclass数值不在1到127之间时,如果所述noslave端口的Erbest优于本地时钟D0,且同时优于所述节点的Ebest,则所述节点的noslave端口进入passive状态,否则,进入master状态。
所述非noslave端口按照标准算法规则确定端口状态。
本发明实施例还提供了一种实现交替BMC的装置,至少包括判断单元、配置单元;其中,
判断单元,用于判断出自身所在节点为环上与环外存在时钟通信的环网时间节点;
配置单元,用于配置环网时间节点的Localpriority属性为:对于环网时间输入节点:配置其输入端口的Localpriority优于其环上端口的Localpriority;对于环网时间输出节点:配置其输出端口的Localpriority劣于其环上端口的Localpriority;对于环网双向时间节点:配置输出端口的Localpriority等于其环上端口的Localpriority。
可选地,还包括第一处理单元,用于自身所在的环网时间节点决定进入slave状态后,在预先设置的进入slave状态的等待时间内广播自身的设备信息。
可选地,所述第一处理单元还用于:当超过所述等待时间时,将自身所在环网时间节点的状态切换到正常slave状态,再按照标准协议向外通告真正GM的信息。
可选地,所述判断单元还用于:判断出自身所在节点存在noslave端口;
所述装置还包括第二处理单元,用于按照预先设置的状态选择策略选择Ebest并确定所有端口状态。
可选地,所述第二处理单元具体用于:
自身所在节点遍历所有非noslave属性的时间端口,按照数据集比较算法选择出最好的Erbest作为该节点的Ebest;
当自身所在节点的本地时钟D0的clockclass数值在1到127之间时,如果所述noslave端口的Erbest优于本地时钟D0,则自身所在节点的noslave端口进入passive状态,否则,进入master状态;
当自身所在节点的本地时钟D0的clockclass数值不在1到127之间时,如果所述noslave端口的Erbest优于本地时钟D0,且同时优于自身所在节点的Ebest,则自身所在节点的noslave端口进入passive状态,否则,进入master状态;
自身所在节点的非noslave端口按照标准算法规则确定端口状态。
可选地,所述判断单元还用于:判断出自身所在节点是环网时间节点;相应地,
所述装置还包括第三处理单元,用于按照标准协议的算法流程实现slave状态切换。
本发明实施例还提出了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述任一项的实现交替BMC的方法。
与现有技术相比,本申请技术方案包括设置环上与环外存在时钟通信的节点为环网时间节点,并配置环网时间节点的Localpriority属性;其中,Localpriority属性包括:对于环网时间输入节点:配置其输入端口的Localpriority优于其环上端口的Localpriority;对于环网时间输出节点:配置其输出端口的Localpriority劣于其环上端口的Localpriority;对于环网双向时间节点:配置输出端口的Localpriority等于其环上端口的Localpriority。从本发明提供的技术方案可见,由于引入环网时间节点的概念,并对其Localpriority属性提供了规范的配置,避免了不当的配置导致算法选路成环 振荡,因此,降低了时钟环路的风险。
进一步地,在环网时间节点决定进入从时钟(slave)状态后,环网时间节点在预先设置的进入slave状态的等待时间内广播自身的设备信息;如果环网时间节点存在noslave端口,环网时间节点按照预先设置的状态选择策略选择最佳的时间源(Ebest)并确定端口状态;其中,状态选择策略包括:noslave端口遍历所有非noslave属性的时间端口,按照已有数据集比较算法选择出最好的Erbest作为noslave端口的Ebest。这样,通过环网时间节点时间信息加入了一个延时过滤流程,对于由于组网中配置Localpriority引起的无效时间信息传递起到过滤作用,消除了外部时间输入消失引起的无效时间信息成环。
本发明实施例的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明实施例的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1为本发明实施例中实现交替BMC的方法的流程图;
图2为本发明实现环网时间节点的第一实施例的网络结构示意图;
图3为本发明实现环网时间节点的第二实施例的网络结构示意图;
图4为本发明实现环网时间节点的第三实施例的网络结构示意图;
图5为本发明实施例中实现交替BMC的装置的组成结构示意图。
本发明的较佳实施方式
为了便于本领域技术人员的理解,下面结合附图对本发明实施例作进一步的描述,并不能用来限制本发明的保护范围。需要说明的是,在不冲突的 情况下,本申请中的实施例及实施例中的各种方式可以相互组合。
图1为本发明实施例中实现交替BMC的方法的流程图,如图1所示,包括:
步骤100:设置环上与环外存在时钟通信的节点为环网时间节点,并配置环网时间节点的Localpriority属性。
其中,环网时间节点分为三类:
一类用于接入时钟,即通过环网时间节点从外界获取时钟,也可以称为环网时间输入节点;
一类用于向外输出时钟,也可以称为环网时间输出节点;
还有一类是,当环内与环外的地位是等同的,时间存在双向传递的可能,此时,环网时间节点为环网双向时间节点。
一个环上可以有多个环网时间节点。
本步骤中的配置环网时间节点的Localpriority属性包括:
对于环网时间输入节点:配置其输入端口的Localpriority优于(如数值上小于)其环上端口的Localpriority;如图2所示,
假设网络结构为一个标准时间源(PRTC)给一个环供时,节点A就是环网时间输入节点,节点A与PRTC相连的时间端口为输入端口、与节点B、节点F分别相连的端口为环上端口,配置时要求节点A的输入端口的Localpriority值小于其环上端口的。
对于环网时间输出节点:配置其输出端口的Localpriority劣于(如数值上大于)其环上端口的Localpriority;如图3所示,
假设网络结构为一个PRTC给两个串联环供时,节点D就是环网时间输出节点,节点D从环内获取时间,并向下游环传递时间。节点D与节点D1相连的时间端口为输出端口,与节点C、节点E分别相连的端口为环上端口,配置时要求节点D的输出端口的Localpriority值大于其环上端口的。
对于环网双向时间节点:配置输出端口的Localpriority等于(如数值上大于)其环上端口的Localpriority;如图4所示,
假设网络结构为两个PRTC给两个串联环主备供时,节点D在一个时刻从一个环上获取时间,并向另一个环通告,节点D同时兼有在另一时刻从另一个环获取时间的能力与要求,节点D就是环网双向时间节点,配置时要求节点D上4个时间端口的Localpriority数值相等。
从本发明实施例提供的技术方案可见,由于引入环网时间节点的概念,并对其Localpriority属性进行了相应配置,提供了规范的配置说明,避免了不当的配置导致算法选路成环振荡,因此,降低了时钟环路的风险。
本发明实施例方法之前还包括:判断出节点为环上与环外存在时钟通信的环网时间节点。
如果判断出节点不是环网时间节点,该方法还包括:按照标准协议的算法流程实现slave状态切换。
如果节点存在noslave端口,本发明方法还包括:
步骤101:包括环网时间节点的所有节点按照预先设置的状态选择策略选择最佳的时间源(Ebest)并确定所有端口状态。
其中,状态选择策略包括:
节点遍历所有非noslave属性的时间端口,按照已有数据集比较算法选择出最好的Erbest作为该节点的Ebest。
其中,Erbest与Ebest都是已有协议上定义的信息,Erbest是指端口上最好的时间源及其时间信息;Ebest是指设备上最好的时间输入信息,也就是说,Ebest是所有可用的Erbest信息中最好的。
其中,确定所有端口状态包括:
当节点的本地时钟D0的clockclass数值在1到127之间时,如果noslave端口的Erbest优于本地时钟D0,则节点的noslave端口进入被动(passive)状态,否则,进入主(master)状态;
当节点的本地时钟D0的clockclass数值不在1到127之间时,如果noslave端口的Erbest优于本地时钟D0,且同时优于节点的Ebest,则节点的noslave端口进入passive状态,否则,进入master状态;
非noslave端口按照标准算法规则确定端口状态。
其中,节点的Ebest的选取包括:在除noslave端口的Erbest之外的Erbest中选择出的最好的Erbest,具体如何选择的实现属于本领域技术人员的公知技术,这里不再赘述。
进一步地,在环网时间节点决定进入从时钟(slave)状态后,本发明实施例方法还包括:
步骤102:环网时间节点在预先设置的进入slave状态的等待时间内广播自身的设备信息。
环网时间节点进入slave状态是因为接收到上游的通告(Announce)报文,比较其与本设备的时钟信息,发现外部比本设备优才进入slave状态的一种行为。其中,Announce报文中携带有环网时间节点的用于拓扑计算的时间信息,以及距离祖父时钟的跳数信息。
本步骤中,等待时间可以默认为Announce报文间隔时间与距离祖父时钟(GM,GrandMaster)的跳数相乘得到的积值。
进一步地,等待时间也可以为通过用户手工预先配置的值。
本步骤中广播的设备信息为作为GM的环网时间节点的时间信息。
当超过等待时间时,本发明实施例方法还包括:环网时间节点的状态切换到正常slave状态,然后再按照标准协议向外通告真正GM的信息。
需要说明的是,如果节点不是环网时间节点,那么,该方法还包括:按照标准协议的算法流程实现slave状态切换。
图5为本发明实施例中实现交替BMC的装置的组成结构示意图,如图5所示,至少包括判断单元、配置单元;其中,
判断单元,用于判断出自身所在节点为设置环上与环外存在时钟通信的环网时间节点;
配置单元,用于配置环网时间节点的Localpriority属性为:
对于环网时间输入节点:配置其输入端口的Localpriority优于其环上端口的Localpriority;对于环网时间输出节点:配置其输出端口的Localpriority劣于其环上端口的Localpriority;对于环网双向时间节点:配置输出端口的Localpriority等于其环上端口的Localpriority。
本发明装置还包括第一处理单元,用于在自身所在的环网时间节点决定进入slave状态后,在预先设置的进入slave状态的等待时间内广播自身的设备信息。
第一处理单元还用于:当超过等待时间时,将自身所在环网时间节点的状态切换到正常slave状态,再按照标准协议向外通告真正GM的信息。
判断单元还用于:判断出自身所在节点存在noslave端口,此时,本发明装置还包括第二处理单元,用于按照预先设置的状态选择策略选择Ebest并确定所有端口状态。具体用于:
自身所在节点遍历所有非noslave属性的时间端口,按照已有数据集比较算法选择出最好的Erbest作为该节点的Ebest;
当自身所在节点的本地时钟D0的clockclass数值在1到127之间时,如果noslave端口的Erbest优于本地时钟D0,则自身所在节点的noslave端口进入passive状态,否则,进入主时钟(master)状态;
当自身所在节点的本地时钟D0的clockclass数值不在1到127之间时,如果noslave端口的Erbest优于本地时钟D0,且同时优于自身所在节点的Ebest,则自身所在节点的noslave端口进入passive状态,否则,进入master状态;
自身所在节点的非noslave端口按照标准算法规则确定端口状态。
判断单元还用于:判断出自身所在节点不是环网时间节点;相应地,本发明装置还包括第三处理单元,用于按照标准协议的算法流程实现slave状态切换。
本发明实施例实现交替BMC的装置可以设置在环网的节点中。
以上所述,仅为本发明的较佳实例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业实用性
本发明实施例提出的实现交替BMC的方法及装置,包括设置环上与环 外存在时钟通信的节点为环网时间节点,并配置环网时间节点的本地优先级(Localpriority)属性;其中,Localpriority属性包括:对于环网时间输入节点:配置其输入端口的Localpriority优于其环上端口的Localpriority;对于环网时间输出节点:配置其输出端口的Localpriority劣于其环上端口的Localpriority;对于环网双向时间节点:配置输出端口的Localpriority等于其环上端口的Localpriority。从本发明实施例提供的技术方案可见,由于引入环网时间节点的概念,并对其Localpriority属性提供了规范的配置,避免了不当的配置导致算法选路成环振荡,因此,降低了时钟环路的风险。

Claims (16)

  1. 一种实现交替最佳主时钟BMC的方法,其特征在于,包括:
    设置环上与环外存在时钟通信的节点为环网时间节点,并配置环网时间节点的本地优先权Localpriority属性;其中,Localpriority属性包括:
    对于用于接入时钟的环网时间输入节点:配置其输入端口的Localpriority优于其环上端口的Localpriority;
    对于用于向外输出时钟的环网时间输出节点:配置其输出端口的Localpriority劣于其环上端口的Localpriority;
    对于时间存在双向传递的环网双向时间节点:配置输出端口的Localpriority等于其环上端口的Localpriority。
  2. 根据权利要求1所述的方法,其特征在于,所述环网时间节点决定进入从时钟slave状态后,该方法还包括:
    所述环网时间节点在预先设置的进入slave状态的等待时间内广播自身的设备信息。
  3. 根据权利要求2所述的方法,其特征在于,所述等待时间默认为通告Announce报文间隔时间与距离祖父时钟GM的跳数相乘得到的积值;
    或者,为预先配置的值。
  4. 根据权利要求2所述的方法,其特征在于,所述广播的设备信息为作为GM的环网时间节点的时间信息。
  5. 根据权利要求2~4任一项所述的方法,其特征在于,当超过所述等待时间时,还包括:所述环网时间节点的状态切换到正常slave状态,再按照标准协议向外通告真正GM的信息。
  6. 根据权利要求1所述的方法,其特征在于,该方法之前还包括:判断出节点为所述环上与环外存在时钟通信的所述环网时间节点。
  7. 根据权利要求6所述的方法,其特征在于,所述节点存在非从时钟noslave端口;该方法还包括:
    包括所述环网时间节点的所有节点按照预先设置的状态选择策略选择最 佳的时间源Ebest并确定所有端口状态。
  8. 根据权利要求7所述的方法,其特征在于,所述状态选择策略包括:
    所述节点遍历所有非noslave属性的时间端口,按照数据集比较算法选择出最好的Erbest作为所述节点的Ebest。
  9. 根据权利要求7所述的方法,其特征在于,所述确定所有端口状态包括:
    当所述节点的本地时钟D0的clockclass数值在1到127之间时,如果所述noslave端口的Erbest优于本地时钟D0,则所述节点的noslave端口进入被动passive状态,否则,进入主master状态;
    当所述节点的本地时钟D0的clockclass数值不在1到127之间时,如果所述noslave端口的Erbest优于本地时钟D0,且同时优于所述节点的Ebest,则所述节点的noslave端口进入passive状态,否则,进入master状态;
    所述非noslave端口按照标准算法规则确定端口状态。
  10. 一种实现交替BMC的装置,其特征在于,至少包括判断单元、配置单元;其中,
    判断单元,用于判断出自身所在节点为环上与环外存在时钟通信的环网时间节点;
    配置单元,用于配置环网时间节点的Localpriority属性为:对于环网时间输入节点:配置其输入端口的Localpriority优于其环上端口的Localpriority;对于环网时间输出节点:配置其输出端口的Localpriority劣于其环上端口的Localpriority;对于环网双向时间节点:配置输出端口的Localpriority等于其环上端口的Localpriority。
  11. 根据权利要求10所述的装置,其特征在于,还包括第一处理单元,用于自身所在的环网时间节点决定进入slave状态后,在预先设置的进入slave状态的等待时间内广播自身的设备信息。
  12. 根据权利要求11所述的装置,其特征在于,所述第一处理单元还用于:当超过所述等待时间时,将自身所在环网时间节点的状态切换到正常slave状态,再按照标准协议向外通告真正GM的信息。
  13. 根据权利要求10所述的装置,其特征在于,所述判断单元还用于:判断出自身所在节点存在noslave端口;
    所述装置还包括第二处理单元,用于按照预先设置的状态选择策略选择Ebest并确定所有端口状态。
  14. 根据权利要求13所述的装置,其特征在于,所述第二处理单元具体用于:
    自身所在节点遍历所有非noslave属性的时间端口,按照数据集比较算法选择出最好的Erbest作为该节点的Ebest;
    当自身所在节点的本地时钟D0的clockclass数值在1到127之间时,如果所述noslave端口的Erbest优于本地时钟D0,则自身所在节点的noslave端口进入passive状态,否则,进入master状态;
    当自身所在节点的本地时钟D0的clockclass数值不在1到127之间时,如果所述noslave端口的Erbest优于本地时钟D0,且同时优于自身所在节点的Ebest,则自身所在节点的noslave端口进入passive状态,否则,进入master状态;
    自身所在节点的非noslave端口按照标准算法规则确定端口状态。
  15. 根据权利要求10所述的装置,其特征在于,所述判断单元还用于:判断出自身所在节点是环网时间节点;相应地,
    所述装置还包括第三处理单元,用于按照标准协议的算法流程实现slave状态切换。
  16. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-9任一项的实现交替最佳主时钟BMC的方法。
PCT/CN2016/071480 2015-06-05 2016-01-20 一种实现交替bmc的方法及装置 WO2016192399A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP16802322.4A EP3306852A4 (en) 2015-06-05 2016-01-20 METHOD AND APPARATUS FOR IMPLEMENTING ALTERNATIVE BMC

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510306745.5A CN106301647B (zh) 2015-06-05 2015-06-05 一种实现交替bmc的方法及装置
CN201510306745.5 2015-06-05

Publications (1)

Publication Number Publication Date
WO2016192399A1 true WO2016192399A1 (zh) 2016-12-08

Family

ID=57440214

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/071480 WO2016192399A1 (zh) 2015-06-05 2016-01-20 一种实现交替bmc的方法及装置

Country Status (3)

Country Link
EP (1) EP3306852A4 (zh)
CN (1) CN106301647B (zh)
WO (1) WO2016192399A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109586833B (zh) * 2018-12-18 2020-11-06 中国移动通信有限公司研究院 确定端口状态的方法和网络节点
CN114389734A (zh) * 2020-10-21 2022-04-22 南京中兴新软件有限责任公司 时间同步的方法、第一节点、第二节点、网络
CN115102660B (zh) * 2022-08-26 2022-11-04 深圳市英特瑞半导体科技有限公司 基于同步以太网的破环方法、装置、设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170373A (zh) * 2007-11-27 2008-04-30 上海自动化仪表股份有限公司 环网中时钟同步的实现方法
CN103634208A (zh) * 2013-11-26 2014-03-12 杭州华三通信技术有限公司 防止ptp tc环网中环路的方法和装置
CN103916950A (zh) * 2012-12-31 2014-07-09 中兴通讯股份有限公司 时间同步方法及系统
US20140281037A1 (en) * 2013-03-15 2014-09-18 Broadcom Corporation Fault Tolerant Clock Network
CN104092528A (zh) * 2014-07-14 2014-10-08 杭州华三通信技术有限公司 一种时钟同步方法和装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103107876B (zh) * 2011-11-15 2018-05-01 中兴通讯股份有限公司 一种多时钟同步技术混合组网的实现方法和系统和装置
CN103490840B (zh) * 2012-06-12 2017-11-07 中兴通讯股份有限公司 一种进行精确时间协议报文处理的装置和方法
WO2014169458A1 (en) * 2013-04-18 2014-10-23 Telefonaktiebolaget L M Ericsson (Publ) Node and method for selecting synchronization source
CN104683132A (zh) * 2013-11-29 2015-06-03 中兴通讯股份有限公司 一种确定备份时钟源的方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170373A (zh) * 2007-11-27 2008-04-30 上海自动化仪表股份有限公司 环网中时钟同步的实现方法
CN103916950A (zh) * 2012-12-31 2014-07-09 中兴通讯股份有限公司 时间同步方法及系统
US20140281037A1 (en) * 2013-03-15 2014-09-18 Broadcom Corporation Fault Tolerant Clock Network
CN103634208A (zh) * 2013-11-26 2014-03-12 杭州华三通信技术有限公司 防止ptp tc环网中环路的方法和装置
CN104092528A (zh) * 2014-07-14 2014-10-08 杭州华三通信技术有限公司 一种时钟同步方法和装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3306852A4 *

Also Published As

Publication number Publication date
CN106301647B (zh) 2019-04-19
CN106301647A (zh) 2017-01-04
EP3306852A4 (en) 2019-01-16
EP3306852A1 (en) 2018-04-11

Similar Documents

Publication Publication Date Title
US8160053B2 (en) Method, apparatus and network element for clock tracing
US9577774B2 (en) Time synchronization method and system
US20190020463A1 (en) Method for Updating Clock Synchronization Topology, Method for Determining Clock Synchronization Path, and Device
EP1811713A1 (en) Method for determining clock trace path and method of clock trace in the network
WO2016192399A1 (zh) 一种实现交替bmc的方法及装置
US9215092B2 (en) Clock selection for synchronous Ethernet
US11095553B2 (en) Method, apparatus and system for controlling routing information advertising
WO2013086833A1 (zh) 时钟时间同步源配置方法及装置
US9660920B2 (en) Switched data transmission system that may be used in particular in avionics applications
US10887036B2 (en) Simplified synchronized ethernet implementation
CN103634208B (zh) 防止ptp tc环网中环路的方法和装置
WO2016045275A1 (zh) 一种软件定义网络实现方法、主控制器和计算机存储介质
Kuhn et al. Gradient clock synchronization in dynamic networks
CN105763483A (zh) 一种报文发送方法和装置
WO2016184369A1 (zh) 一种用于配置时钟跟踪的方法及控制设备
JP2006287425A (ja) Rprリングネットワークシステム
WO2017073661A1 (ja) ネットワーク管理装置、ネットワーク管理方法、ネットワーク管理システム、および、プログラム
CN108462548B (zh) 时间同步方法及装置
WO2015184763A1 (zh) 指示同步时间源选择的方法、装置及系统
US20110002334A1 (en) Communication terminal and communication state change method
CN102932186B (zh) 一种集群系统及消除环路的方法
EP2953294A1 (en) Protection switching method, system, and node
WO2023274160A1 (zh) 避免时钟成环的方法、上游网元、下游网元及存储介质
WO2013097365A1 (zh) 收敛主时钟源的方法及网络设备
CN113938420B (zh) 一种rpr相交环的环路避免方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16802322

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2016802322

Country of ref document: EP