WO2012152124A1 - 外接时间端口的倒换方法及装置 - Google Patents

外接时间端口的倒换方法及装置 Download PDF

Info

Publication number
WO2012152124A1
WO2012152124A1 PCT/CN2012/072615 CN2012072615W WO2012152124A1 WO 2012152124 A1 WO2012152124 A1 WO 2012152124A1 CN 2012072615 W CN2012072615 W CN 2012072615W WO 2012152124 A1 WO2012152124 A1 WO 2012152124A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
priority
port
external time
time port
Prior art date
Application number
PCT/CN2012/072615
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 US14/116,393 priority Critical patent/US9325442B2/en
Priority to EP12782681.6A priority patent/EP2709317A4/en
Publication of WO2012152124A1 publication Critical patent/WO2012152124A1/zh

Links

Classifications

    • 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
    • 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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • 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/0644External master-clock
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40169Flexible bus arrangements
    • H04L12/40176Flexible bus arrangements involving redundancy

Definitions

  • the present invention relates to the field of communications, and in particular to a method and an apparatus for switching an external time port.
  • BACKGROUND OF THE INVENTION With the rapid development of communication networks, the synchronization requirements of networks are becoming higher and higher. The ability to extract real-time time in each node of the network is very important for the application and maintenance of the network. Especially in the current promotion of 3GPP (Third Generation Partnership Project) technology, the mobile data service is rapidly increasing, and the data service support capability of the bearer network is also put forward higher requirements. The service provision of various 3GPP networks relies to varying degrees on high-precision time synchronization in the network. Currently, the time synchronization method used in the current network is mainly to set GPS on each node in the network (Global
  • the receiving device relies on the GPS system for precise timing.
  • the prior art often uses a high-precision time protocol IEEE1588 protocol combined with GPS to implement time synchronization of the network. In this way, a part of network resources is added to the original network system to run the time synchronization protocol.
  • an external time source needs to be set in one node, and then the node is used as a GM (GrandMaster) node of the network.
  • the GM node realizes the timing of the entire network by setting the GPS receiver, and each node in the network sends a PTP (Precision Time Protocol) message to each other through the IEEE1588 protocol, so that the slave node synchronizes to the master node.
  • PTP Precision Time Protocol
  • This method can provide network time synchronization for long-distance time synchronization equipment.
  • the GPS system is no longer safe, it can be replaced with other external time sources in time, which ensures the security of the network to a large extent. It has been rapidly promoted in the field of time synchronization development.
  • the operator proposes to introduce the 1PPS (1 Pulse Per Second) signal and TOD (Time Of Date) obtained by the GM node into the GPS system through the GPS port and the FE (Fast Ethernet) port. , real time) time information.
  • 1PPS Pulse Per Second
  • TOD Time Of Date
  • TOD Time Of Date
  • a method for switching an external time port including: a node currently serving as a master node transmits time information through its first external time port; a first external time port fails, and the node has its current
  • the node priority and the priority of the primary node are updated to the preset node priority, where the preset node priority is the node priority configured for the node when the node starts; the node determines whether the second external time port is open. Status, and the priority of the second external time port is higher than the current primary node priority of the node, and if so, the second external time port delivery time information is enabled.
  • the method further includes: determining that the priority configuration of the first external time port and/or the second external time port is changed; Whether the second external time port is in the on state, and the priority of the first external time port is currently lower than the current priority of the second external time port. If yes, the second external time port transmission time information is enabled.
  • the method includes: Step 1: When the node starts, configure the node priority and the priority of the node as the preset node priority, and Configuring a priority of the first external time port and the second external time port of the node; Step 2, the node determines that both the first external time port and the second external time port are in an open state, and the first external time port has a high priority The priority of the second external time port, and the priority of the first external port is higher than the current primary node priority of the node; Step 3, the node is upgraded to the primary node, and the first external time port delivery time information is enabled, and the second The time port flag is not enabled, and the node's current node priority and the master node priority are updated to the priority of the first external time port.
  • the node determines that the first external time port is in the on state, and the second external time port is in the blocked state, and determines whether the priority of the first external port is higher than the current priority of the node. If yes, the node is upgraded to the primary node, and the first external time port delivery time information is enabled, and the current node priority and the primary node priority of the node are updated to the priority of the first external time port.
  • the method further includes: updating the current node priority and the primary node priority of the node to the priority of the second external time port. level.
  • the method further includes: all the external time ports of the node are invalid, and updating the current node priority and the primary node priority of the node to the preset node priority.
  • a new master node is selected and synchronized to the new node.
  • the node determines that the second outer time port is in the blocking state or the second external time port has a lower priority than the node current primary node priority; the method further includes: selecting a new primary node according to the BMC algorithm, and synchronizing Go to the new node.
  • an apparatus for switching an external time port comprising: a delivery module configured to transmit time information through a first external time port of a node currently serving as a primary node; and an update module, configured to be When an external time port fails, the current node priority and the primary node priority of the node are updated to a preset node priority, where the preset node priority is the node priority configured for the node when the node is started;
  • the module is configured to determine whether the second external time port of the node is in an open state, and the priority of the second external time port is higher than the current primary node priority of the node, and if yes, the switching module is triggered; the switching module is set to Set the state of the first external time port to blocking, and switch to the second external time port to transmit time information.
  • the foregoing apparatus further includes: a determining module, configured to determine that a priority configuration of the first external time port and/or the second external time port changes when the first time port does not fail, and if yes, trigger the determining module .
  • the foregoing apparatus may further include: a configuration module, configured to: when the node is started, configure a node priority and a primary node priority of the node as a preset node priority, and configure a first external connection time of the node a priority of the port and the second external time port; the selecting module is configured to determine that the first external time port and the second external time port are both in an open state, and the first external time port has a higher priority than the second external time port Priority, and if the priority of the first external port is higher than the current priority of the node, the first external time port is selected to transmit time information, and the triggering update module marks the second time port as not enabled, The node's current node priority and primary node priority are updated to the priority of
  • the selecting module may be further configured to: when determining that the first external time port is in an open state, the second external time port is in a blocked state, and the priority of the first external port is higher than a current primary node priority of the node.
  • the first external time port is selected to transmit time information
  • the update module is triggered to update the current node priority and the primary node priority of the node to the priority of the first external time port.
  • the updating module is further configured to update the current node priority and the primary node priority of the node to the priority of the second external time port when the switching module switches to the second external time port to transmit time information.
  • the apparatus may further include: an execution module, configured to disable all external time ports of the node, or part of the external time port is invalid, and another part of the external time port has a lower priority than the current priority of the node
  • execute the BMC algorithm select a new master node, and synchronize to the new node.
  • the software polls the port status of the current and other time access ports, intelligently queries and determines the status of the port and its priority level, and then searches for a new port by selecting a port with a higher priority or according to the BMC algorithm.
  • FIG. 1 is a flowchart of a method for switching an external time port according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of access time information of an isochronous time network from an external time port according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of an external time port and optical port switching of a synchronous time network according to a preferred embodiment of the present invention
  • FIG. 5 is a synchronization time based on an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of an external time port switching device according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for switching an external time port according to an embodiment of the present invention.
  • the method mainly includes the following steps (steps S102-S106): S102, a node currently serving as a master node passes its first
  • the external time port passes time information.
  • an external time port external time source may be set in one or several nodes in the system, and the priority of each external time port on each node and the node priority and the primary node priority of each node may be configured through the network management, in the initial state.
  • the priority of the primary node of each node is the same as the priority of the node.
  • the priority of the node is referred to as the preset node priority.
  • each node can start the port switching algorithm and select the external time port.
  • a node in which two external time ports are provided is taken as an example.
  • Step S102 can be triggered in the following manner: When the node is started, the node priority and the priority of the node are configured as presets.
  • the priority of the node, and the priority of the first external time port and the second external time port of the node are configured; and then it is determined whether the first external time port and the second external time port of the node are both in the open state, and if so, Further determining whether the priority of the first external time port is higher than the priority of the second external time port, and the priority of the first external port is higher than the current primary node priority of the node, and if yes, the node is upgraded as the primary
  • the first external time port delivery time information is enabled
  • the second time port is marked as not enabled
  • the current node priority and the primary node priority of the node are updated to the priority of the first external time port.
  • node Upgrade to the primary node, enable the first external time port delivery time information, and update the node's current node priority and primary node priority to the priority of the first external time port.
  • node 1 has two external time ports: an FE port and a GPS port. When node 1 is started, it is determined that both the FE port and the GPS port are in an up state, and the FE port has a higher priority.
  • the priority of the GPS port, and the priority of the FE port is higher than the priority of the node of the node 1 (in this case, the node priority in the initial state of the node 1), and the node 1 selects the FE port as the external time interface, and the GPS port is used.
  • the status flag is not enabled.
  • the node priority and GM priority are updated as port priority.
  • Node 1 is selected as the GM node, and the FE port is started as the current time port to transmit time information.
  • the subsequent nodes in the system (node 2, . ...., Node N) Time synchronization with Node 1.
  • the first external time port is invalid, and the node updates its current node priority and the primary node priority to a preset node priority, where the preset node priority is a node priority configured for the node when the node starts.
  • the FE port fails, the FE port is set to the blocking state, and the current node priority and the primary node priority of the node 1 are updated to the preset node priority (that is, the node priority initially configured for the node 1). ).
  • S106 The node determines whether the second external time port is in an open state, and the second external time port has a higher priority than the node current primary node priority. If yes, the second external time port delivery time information is enabled. For example, in FIG.
  • the FE port of the node 1 fails, the node 1 determines that the GPS port is in the on state, and the priority of the GPS port is higher than the current priority of the node 1 of the node 1 (currently the preset node priority). Therefore, the node and GM priority are updated to the priority of the GPS port, node 1 is switched to the GPS port, and the GPS port is enabled to transmit time information, that is, time information is acquired from the GPS port, and other nodes in the system are synchronized by running the 1588 protocol. Go to this node.
  • the current node priority and the primary node priority of the node may be updated to the priority of the second external time port.
  • the current node priority and the primary node priority of the node may be updated to the preset node priority according to the BMC (Best Master Clock).
  • the algorithm selects a new master node and synchronizes other nodes in the network system to the new master node (ie, the new GM node) by running the 1588 protocol.
  • node 1 After node 1 is switched to the GPS port and the GPS port fails, node 1 starts the BMC algorithm and selects a new master node for the system.
  • the new master node is node 3, and the node 1 becomes the slave node, node 3 obtains time information from the FE port with high priority, the optical port becomes the time input port of node 1, and node 1 synchronizes to node 2 through the optical port. If it is determined in step S106 that the second outer time port is in the blocked state or the second external time port has a lower priority than the current primary node priority of the node, the new master node may be selected according to the BMC algorithm. And sync to the new node.
  • the switching algorithm of the external time port of the synchronous time network is based on the synchronous time network that uses the external time source and runs the IEEE1588 protocol.
  • the algorithm for running the port switching is performed. .
  • the algorithm is implemented by setting the up/down state of the two external time ports and the priority of the two ports on the network management system, and selecting one port as the current working port according to the port state and the priority configuration on the network management system. Pass time information.
  • the current port status is polled by the software.
  • the currently selected port fails, it is determined whether the other external time port is up. If it is in the up state, the port priority and the node priority are compared.
  • the switch is switched to the port, and the time information is accessed by the port. If the port priority is lower than the node priority, the node is free to run, and according to the BMC algorithm, a new GM node is searched for in the network, and the new GM node is used. Complete the delivery of time information.
  • the synchronization time network obtains time information from the external time port by using the following steps: Step 1: One or several nodes in the system are externally connected to the time source, and each node can be configured through the network management system. External time port and node priority. Step 2: Each node starts the port switching algorithm.
  • Step 3 The system polls the working status of the currently enabled time port through software. If the current port status has not changed, it further determines whether the network management configuration has changed, that is, determines whether the priority of each external time port of the node occurs.
  • Time port if yes, determine whether the priority of the external time port of the current acquisition time information is lower than the priority of the external time port in the other state, and if so, switch to the external connection with the highest priority of the port in the open state.
  • Time port if the network management configuration has not changed, do nothing. For example, at some point, the two external time ports of the GM node (for example, port A and port B) are in an open state. Currently, the GM node transmits time information through time port A, and the network management configuration changes, so that the port The priority of B is higher than the priority of port A. Therefore, the GM node switches to port B, and obtains time information through port B. Step 4: If the current working port is detected to be invalid, the port switching calculation is started.
  • the currently failed port setting is blocked, and the GM priority is updated to the node priority, and then the other port is determined to be in the up state.
  • the status, and the priority is higher than the priority of the GM node, the current node priority and the GM node priority are upgraded to the current port priority, and the port is enabled to transmit time information, thereby realizing the switching between the external time ports.
  • Step 5 and if the selected port has a lower priority than the GM priority, the node priority is used to update the GM priority, which is used to re-run the BMC algorithm, reselect the GM node, and set the selected port to the blocking state.
  • Step 6 After the two time ports are invalid, update the current GM priority to the node priority, and run the BMC algorithm to reselect the GM node in the network, and implement the time information access by the external time port of the new GM station. At this point, the original GM node becomes a slave node, completing the time synchronization to the master node.
  • Step 7. Repeat step 1.
  • the method of the external time port switching based on the synchronous time network in the embodiment of the present invention is described in the following example. The method of the present invention is as shown in FIG.
  • the flowchart mainly includes the following steps (S501-S521): S501, the current node is operating normally.
  • S506 Determine whether the priority of the FE port of the current node is greater than the priority of the GPS port. If yes, execute S508; otherwise, execute S510.
  • the FE port Enable the FE port as the current working port, and update the node priority and the GM node priority to the FE port priority.
  • the GPS port is enabled as the current working port, and the update node priority and the GM node priority are the GPS port priority.
  • the priority of the update GM node is the node priority, which is used to re-run the BMC algorithm, and then execute S502.
  • the priority of the update GM node is the node priority, which is used to re-run the BMC algorithm, and then execute S502.
  • the update node priority and the GM node priority are the original node priorities.
  • the update node priority and the GM node priority are the original node priorities.
  • the update node priority and the GM node priority are port priorities, and the GPS port is enabled as the current external time port.
  • FIG. 6 is a schematic structural diagram of a device according to an embodiment of the present invention.
  • the switching device mainly includes: a delivery module 10, an update module 20, a determination module 30, and a switching module 40.
  • the delivery module 10 is configured to transmit time information through the first external time port of the node;
  • the update module 20 is connected to the delivery module 10, and is configured to set the node priority and the current node when the first external time port fails.
  • the node priority is updated to a preset node priority, where the preset node priority is the node priority configured for the node when the node is started; the determining module 30 is connected to the update module 20, and is set to determine the second external connection of the node. Whether the time port is in the on state, and the priority of the second external time port is higher than the current priority of the node, if yes, the switching module 40 is triggered; the switching module 40 is connected to the determining module 30, and is set to be the first The status of the external time port is set to block, and the switch to the second external time port transmits time information.
  • the apparatus further includes a determining module, the determining module being configured to determine the first external time port and/or the second external time port when the first time port does not fail.
  • the priority configuration changes, and if so, the judgment module is triggered.
  • the switching device 40 may further include: a configuration module 42 configured to configure a node priority and a primary node priority of the node as a preset node priority when the node is started, and configured The priority of the first external time port and the second external time port of the node; the selection module 44 is set to be The first external time port and the second external time port are both in an open state, and the first external time port has a higher priority than the second external time port, and the first external port has a higher priority than the current node.
  • the first external time port delivery time information is selected, and the trigger update module 20 marks the second time port as not enabled, and updates the current node priority and the primary node priority of the node to the first external connection time.
  • the priority of the port may be further configured to: when it is determined that the first external time port is in an open state, the second external time port is in a blocked state, and the priority of the first external port is higher than a current primary node priority of the node, The first external time port is selected to transmit time information, and the update module 20 is triggered to update the current node priority and the primary node priority of the node to the priority of the first external time port.
  • the update module 20 may be further configured to update the current node priority and the primary node priority of the node to the priority of the second external time port when the switching module 40 switches to the second external time port to transmit time information.
  • the switching device may further include an execution module 50, which may be configured to disable all external time ports of the node, or some of the external time ports are invalid, and another part of the external time port is prioritized.
  • the BMC algorithm is executed, a new primary node is selected, and the new node is synchronized.
  • the current and other external time port states are polled by software, and when the current port fails, the additional external time port state and its priority can be intelligently queried.
  • the external time port switching algorithm is implemented to implement time switch port switching, thereby improving the stability of the time synchronization network.
  • the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

本发明公开了一种外接时间端口的倒换方法及装置,其中,该方法包括:当前作为主节点的节点通过其第一外接时间端口传递时间信息;第一外接时间端口失效,上述节点将其当前的节点优先级和主节点优先级更新为预设的节点优先级,其中,预设的节点优先级为节点启动时为节点配置的节点优先级;上述节点判断其第二外接时间端口是否处于开通状态,且第二外接时间端口的优先级高于节点当前的主节点优先级,如果是,则启用第二外接时间端口传递时间信息。通过本发明,解决了在当前选用的时间接入端口失效时,端口之间不能完成及时倒换的问题,进而提高了时间同步网络的稳定性。

Description

外接时间端口的倒换方法及装置 技术领域 本发明涉及通信领域, 具体而言, 涉及一种外接时间端口的倒换方法及装置。 背景技术 随着通信网络的迅猛发展, 网络的同步性要求越来越高。 在网络的各个节点中能 够提取出实时时间对于网络的应用和维护都有很重要的意义。尤其在当前 3GPP (Third Generation Partnership Project, 第三代合作伙伴计划)技术的大力推广中, 移动数据业 务正在迅速增加, 对承载网的数据业务支撑能力也提出了更高的要求。 各种 3GPP网 络的业务提供, 都不同程度地依赖着网络中的高精度时间同步。 目前, 现网中使用的时间同步方式主要是在网络中的各个节点设置 GPS (Global
Positioning System, 全球定位***)接收设备, 依靠 GPS***来进行精确授时。但是, 采用这样的方式,不仅造价高,施工难度大,而且整个网络都依赖于美国的 GPS***, 安全性也不能保证。 基于以上原因, 现有技术往往采用高精度时间协议 IEEE1588协议与 GPS结合的 方式实现网络的时间同步。 这种方式需要在原来的网络***中增加一部分网络资源来 运行时间同步协议, 另外, 还需要在一个节点中设置外接时间源, 然后将该节点作为 网络的 GM (GrandMaster, 最优)节点, 该 GM节点通过设置 GPS接收机来实现对整 个网络授时,而网络中的各个节点间则通过运行 IEEE1588协议相互发送 PTP( Precision time Protocol,精确时间协议) 报文, 实现从节点同步到主节点上, 最终实现整个网络 的时间同步。 这种方式能够为远距离的时间同步设备提供网络时间同步, 同时, 届时 GPS***不再安全时, 也可以及时更换到其他外接时间源上, 很大程度上保证了网络 的安全性, 因此在时间同步开发领域中得以快速推广。 现在,在应用过程中,运营商又提出 GM节点通过 GPS端口和 FE (Fast Ethernet, 快速以太网)端口引入 GPS***中获取的 1PPS ( 1 Pulse Per Second, 秒脉冲)信号和 TOD(Time Of Date, 实时)时间信息。 但是, 由于两个端口只能同时有一个处于工作状 态, 一旦当前工作端口失效, 如何倒换到另外一个端口来引入时间信息, 目前相关技 术中并没有提出有效的解决方案, 从而无法实现外接时间端口的有效倒换。 发明内容 本发明提供一种外接时间端口的倒换方法及装置, 以至少解决上述相关技术中无 法实现外接时间端口的有效倒换的问题。 根据本发明的一个方面, 提供了一种外接时间端口的倒换方法, 包括: 当前作为 主节点的节点通过其第一外接时间端口传递时间信息; 第一外接时间端口失效, 上述 节点将其当前的节点优先级和主节点优先级更新为预设的节点优先级, 其中, 预设的 节点优先级为节点启动时为该节点配置的节点优先级; 该节点判断其第二外接时间端 口是否处于开通状态, 且第二外接时间端口的优先级高于节点当前的主节点优先级, 如果是, 则启用第二外接时间端口传递时间信息。 优选地, 在当前作为主节点的节点通过其第一外接时间端口传递时间信息之后, 该方法还包括: 确定第一外接时间端口和 /或第二外接时间端口的优先级配置发生变 化; 判断第二外接时间端口是否处于开通状态, 且第一外接时间端口当前配置的优先 级是否低于第二外接时间端口当前配置的优先级, 如果是, 则启用第二外接时间端口 传递时间信息。 优选地, 上述节点通过其第一外接时间端口传递时间信息之前, 该方法包括: 步 骤 1, 该节点启动时, 将节点的节点优先级和主节点优先级配置为预设的节点优先级, 以及配置节点的第一外接时间端口和第二外接时间端口的优先级; 步骤 2, 该节点确 定第一外接时间端口和第二外接时间端口均处于开通状态, 且第一外接时间端口的优 先级高于第二外接时间端口的优先级, 且第一外接端口的优先级高于节点当前的主节 点优先级; 步骤 3, 节点升级为主节点, 启用第一外接时间端口传递时间信息, 将第 二时间端口标志为不启用, 将节点当前的节点优先级和主节点优先级更新为第一外接 时间端口的优先级。 优选地, 在上述步骤 2中, 上述节点确定第一外接时间端口处于开通状态, 第二 外接时间端口处于阻塞状态, 则判断第一外接端口的优先级是否高于节点当前的主节 点优先级, 如果是, 则节点升级为主节点, 启用第一外接时间端口传递时间信息, 将 节点当前的节点优先级和主节点优先级更新为第一外接时间端口的优先级。 优选地, 当第一外接时间端口失效时, 在启用第二外接时间端口传递时间信息之 前, 该方法还包括: 将节点当前的节点优先级和主节点优先级更新为第二外接时间端 口的优先级。 优选地, 在启用第二外接时间端口传递时间信息之后, 该方法还包括: 上述节点 的所有外接时间端口均失效, 将节点当前的节点优先级和主节点优先级更新为预设的 节点优先级, 根据 BMC算法, 选出新的主节点, 并同步到新的节点。 优选地, 节点判断第二外时间端口处于阻塞状态或第二外接时间端口的优先级低 于节点当前的主节点优先级; 该方法还包括: 根据 BMC算法, 选出新的主节点, 并 同步到新的节点。 根据本发明的另一方面, 提供了一种外接时间端口的倒换装置, 包括: 传递模块, 设置为通过当前作为主节点的节点的第一外接时间端口传递时间信息; 更新模块, 设 置为在第一外接时间端口失效时, 将上述节点当前的节点优先级和主节点优先级更新 为预设的节点优先级, 其中, 预设的节点优先级为节点启动时为节点配置的节点优先 级; 判断模块, 设置为判断该节点的第二外接时间端口是否处于开通状态, 且第二外 接时间端口的优先级高于节点当前的主节点优先级, 如果是, 则触发倒换模块; 倒换 模块, 设置为将第一外接时间端口的状态设置为阻塞, 倒换到第二外接时间端口传递 时间信息。 优选地, 上述装置还包括: 确定模块, 设置为在第一时间端口没有失效时, 确定 第一外接时间端口和 /或第二外接时间端口的优先级配置发生变化, 如果是, 则触发判 断模块。 优选地, 上述装置还可以包括: 配置模块, 设置为在上述节点启动时, 将该节点 的节点优先级和主节点优先级配置为预设的节点优先级, 以及配置该节点的第一外接 时间端口和第二外接时间端口的优先级; 选择模块, 设置为在确定第一外接时间端口 和第二外接时间端口均处于开通状态, 且第一外接时间端口的优先级高于第二外接时 间端口的优先级, 且第一外接端口的优先级高于节点当前的主节点优先级的情况下, 选择第一外接时间端口传递时间信息, 触发更新模块将第二时间端口标志为不启用, 将上述节点当前的节点优先级和主节点优先级更新为第一外接时间端口的优先级。 优选地, 上述选择模块还可以设置为在确定第一外接时间端口处于开通状态, 第 二外接时间端口处于阻塞状态, 且第一外接端口的优先级高于节点当前的主节点优先 级的情况下, 选择第一外接时间端口传递时间信息, 并触发更新模块将节点当前的节 点优先级和主节点优先级更新为第一外接时间端口的优先级。 优选地, 上述更新模块还设置为在倒换模块倒换到第二外接时间端口传递时间信 息时, 将节点当前的节点优先级和主节点优先级更新为第二外接时间端口的优先级。 优选地, 该装置还可以包括: 执行模块, 设置为节点的所有外接时间端口都失效, 或其中部分外接时间端口失效, 另一部分外接时间端口的优先级低于节点当前的主节 点优先级的情况下, 执行 BMC算法, 选出新的主节点, 并同步到新的节点。 通过本发明, 采用软件轮询当前和其他时间接入端口的端口状态, 智能地查询并 判断端口的状态及其优先级的高低, 进而通过选择优先级较高的端口或根据 BMC算 法重新寻找新的最优节点进行时间信息的传递的方式, 解决了在当前选用的时间接入 端口失效时,端口之间不能完成及时倒换的问题,进而提高了时间同步网络的稳定性。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中: 图 1是根据本发明实施例的外接时间端口的倒换方法的流程图; 图 2是根据本发明实施例的同步时间网络从外接时间端口接入时间信息示意图; 图 3是根据本发明优选实施例的同步时间网络的外接时间端口倒换示意图; 图 4 是根据本发明优选实施例的同步时间网络的外接时间端口和光口倒换示意 图; 图 5是根据本发明实施例的基于同步时间网络的外接时间端口倒换方法实现流程 图; 图 6是根据本发明实施例的外接时间端口的倒换装置的结构示意图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 图 1是根据本发明实施例的外接时间端口的倒换方法的流程图, 如图 1所示, 该 方法主要包括以下步骤 (步骤 S102- S106): S102, 当前作为主节点的节点通过其第一外接时间端口传递时间信息。 例如, 可以在***中的一个或几个节点设置外接时间端口外接时间源, 通过网管 配置各个节点上各个外接时间端口的优先级以及各个节点的节点优先级和主节点优先 级, 在初始状态下, 各个节点的主节点优先级与节点优先级相同, 为了便于描述, 下 面将该节点优先级称为预设的节点优先级。 在***启动时, 各个节点都可以启动端口 倒换算法, 选择外接时间端口。 本发明实施例以其中的设置有两个外接时间端口的某个节点为例,步骤 S102可以 通过以下方式触发: 在该节点启动时, 将节点的节点优先级和主节点优先级配置为预 设的节点优先级,以及配置该节点的第一外接时间端口和第二外接时间端口的优先级; 然后判断该节点的第一外接时间端口和第二外接时间端口是否均处于开通状态, 如果 是, 则进一步判断第一外接时间端口的优先级是否高于第二外接时间端口的优先级, 且第一外接端口的优先级高于节点当前的主节点优先级, 如果是, 则该节点升级为主 节点, 启用第一外接时间端口传递时间信息, 将第二时间端口标志为不启用, 并将该 节点当前的节点优先级和主节点优先级更新为第一外接时间端口的优先级。 其中, 如果判断第一外接时间端口处于开通状态, 而第二外接时间端口处于阻塞 状态, 则直接判断第一外接端口的优先级是否高于节点当前的主节点优先级, 如果是, 则该节点升级为主节点, 启用第一外接时间端口传递时间信息, 将节点当前的节点优 先级和主节点优先级更新为第一外接时间端口的优先级。 例如, 在图 2中, 节点 1具有两个外接时间端口: FE口和 GPS口, 在节点 1启 动时, 判断 FE口和 GPS口均处于开通 (up) 状态, 且 FE口的优先级高于 GPS口的 优先级, 并且, FE口的优先级高于节点 1的主节点优先级(此时为节点 1初始状态下 的节点优先级),节点 1选择 FE口作为外接时间接口,将 GPS口的状态标志为不启用, 同时更新节点优先级和 GM优先级为端口优先级, 选择节点 1为 GM节点, 启动 FE 端口为当前时间端口来传递时间信息, ***中的后续节点 (节点 2, ....., 节点 N) 与 节点 1进行时间同步。 S104, 第一外接时间端口失效, 节点将其当前的节点优先级和主节点优先级更新 为预设的节点优先级, 其中, 预设的节点优先级为节点启动时为节点配置的节点优先 级。 例如, 图 3中 FE口失效, 将 FE口置为阻塞状态, 并将节点 1当前的节点优先级 和主节点优先级更新为预设的节点优先级 (即为节点 1初始配置的节点优先级)。 S106, 节点判断其第二外接时间端口是否处于开通状态, 且第二外接时间端口的 优先级高于节点当前的主节点优先级, 如果是, 则启用第二外接时间端口传递时间信 息。 例如, 图 3中, 节点 1的 FE口失效, 节点 1判断 GPS口处于开通状态, 且 GPS 口的优先级高于节点 1当前的主节点优先级 (当前为上述预设的节点优先级), 因此, 则更新节点和 GM优先级为 GPS端口的优先级, 节点 1倒换到 GPS口, 启用 GPS口 传递时间信息, 即从 GPS 口获取时间信息, 并通过运行 1588协议使***中的其他节 点同步到该节点上。 在本发明的实施例中, 在确定启用第二外接时间端口传递时间信息时, 为了便于 后续倒换, 还可以将节点当前的节点优先级和主节点优先级更新为第二外接时间端口 的优先级。 在执行步骤 S106之后,如果该节点的所有外接时间端口均失效,将该节点当前的 节点优先级和主节点优先级更新为预设的节点优先级, 根据 BMC (Best Master Clock, 最佳主时钟)算法, 选出新的主节点, 并通过运行 1588协议使网络***中的其他节点 同步到新的主节点 (即新的 GM节点) 上。 例如, 在图 4中, 节点 1在倒换到 GPS口后, GPS口失效, 则节点 1启动 BMC 算法, 为***选择新的主节点, 在图 4中, 新的主节点为节点 3, 而节点 1成为了从 节点, 节点 3从优先级高的 FE口获取时间信息, 光口就成了节点 1的时间输入端口, 节点 1通过光口同步到节点 2上。 其中,在步骤 S106中如果判断第二外时间端口处于阻塞状态或第二外接时间端口 的优先级低于该节点当前的主节点优先级, 再可以根据 BMC算法, 选出***新的主 节点, 并同步到新的节点。 在实际应用中, 同步时间网络外接时间端口的倒换算法, 是在采用外接时间源授 时且运行 IEEE1588协议的同步时间网络的基础上, 当当前选用的时间接入端口失效 时, 运行端口倒换的算法。 其中, 该算法通过对两个外接时间端口 up/down状态和网 管上对两个端口优先级的配置来开展, 根据端口状态和网管上对其的优先级配置选择 一个端口作为当前工作端口, 来传递时间信息。 通过软件轮询当前端口状态, 当当前 选用端口失效时, 判断另一个外接时间端口的是否 up, 如果处于 up状态, 则比较其 端口优先级和节点优先级的大小, 如果端口优先级更高, 则切换到该端口上, 由该端 口接入时间信息, 如果端口优先级低于节点优先级, 则该节点自由运行, 且根据 BMC 算法, 在网络中寻找新的 GM节点, 由新的 GM节点完成时间信息的传递。 例如, 在本发明一个优选实施方式中, 同步时间网络从外接时间端口获取时间信 息可以通过以下步骤实现: 步骤 1, ***中的一个或几个节点外接时间源, 通过网管可配置每个节点上外接 时间端口和节点优先级。 步骤 2, 每个节点都会启动端口倒换算法, 如果某个节点的外接时间端口处于 up 状态, 且端口优先级高于 GM节点优先级, 则升级该节点为 GM节点, 更新节点优先 级和 GM节点优先级为当前端口优先级, 并启用该端口来传递时间信息, 实现整个网 络的时间同步。 步骤 3, ***通过软件来轮询当前启用的时间端口的工作状态, 如果当前端口状 态未发生改变, 则进一步判断网管配置是否发生了改变, 即判断该节点的各个外接时 间端口的优先级是否发生了改变, 如果是, 则判断当前获取时间信息的外接时间端口 的优先级是否低于其他处于开通状态的外接时间端口的优先级, 如果是, 则倒换到处 于开通状态的端口优先级最高的外接时间端口, 如果网管配置也没发生改变, 则不做 任何操作。 例如, 在某个时刻, GM节点的两个外接时间端口 (例如, 端口 A和端口 B) 都 处于开通状态, 当前该 GM节点通过时间端口 A来传递时间信息, 而网管配置发生改 变, 使得端口 B的优先级高于端口 A的优先级, 因此, GM节点倒换到端口 B, 通过 端口 B获取时间信息。 步骤 4, 如果检测到当前工作端口失效, 则开始进行端口倒换计算, 首先将当前 失效的端口设置阻塞, 同时更新 GM优先级为节点优先级, 然后判断另一个端口是否 处于 up状态, 如果处于 up状态, 且优先级高于 GM节点优先级, 则升级当前节点优 先级和 GM节点优先级为当前端口优先级, 并启用该端口来传递时间信息, 实现了外 接时间端口之间的倒换。 步骤 5,而如果选中的端口的优先级低于 GM优先级,则用节点优先级来更新 GM 优先级, 用来重新运行 BMC算法, 重新选择 GM节点, 并且将选中的端口置为阻塞 状态。 步骤 6, 当两个时间端口都失效后, 更新当前 GM优先级为节点优先级, 通过运 行 BMC算法, 在网络中重新选择 GM节点, 由新的 GM站点的外接时间端口来实现 时间信息接入, 此时, 原来的 GM节点就变成了从节点, 完成向主节点的时间同步。 步骤 7, 重复步骤 1。 下面以某个节点具有两个外接时间端口: FE 口禾 P GPS 口为例, 对本发明实施例 的基于同步时间网络的外接时间端口倒换方法进行描述, 如图 5所示, 本实施例中倒 换流程图主要包括以下步骤 (S501-S521 ): S501 , 当前节点正在正常运行。
5502, 判断当前节点的 GPS端口是否处于 up状态, 如果是, 执行 S503 , 否则, 执行 S504。
5503 , 判断当前节点的 FE端口是否处于 up状态, 如果是, 执行 S505 , 否则, 执 行 S507。 S504, 判断当前节点的 FE端口是否处于 up状态, 如果是, 执行 S506, 否则, 执 行 S502。
5505 , 判断当前节点的 FE端口的优先级是否大于 GPS端口的优先级, 如果是, 执行 S506, 否则, 执行 S507。
5506, 判断当前节点的 FE端口的优先级是否大于 GPS端口的优先级, 如果是, 执行 S508, 否则, 执行 S510。
5507,判断当前节点的 GPS优先级是否大于 GM节点优先级,如果是,执行 S509, 否则, 执行 S511。
5508, 启用 FE端口为当前工作端口, 更新节点优先级和 GM节点优先级为 FE端 口优先级。 S509,启用 GPS端口为当前工作端口,更新节点优先级和 GM节点优先级为 GPS 端口优先级。
5510, 更新 GM节点的优先级为节点优先级, 用于重新运行 BMC算法, 再执行 S502。
5511 , 更新 GM节点的优先级为节点优先级, 用于重新运行 BMC算法, 再执行 S502。
S512, 判断 FE端口是否失效, 如果是, 执行 S514, 否则, 反复执行 S512。 S513 , 判断 GPS端口是否失效, 如果是, 执行 S515 , 否则, 反复执行 S513。
5514, 更新节点优先级和 GM节点优先级为原节点优先级。
5515 , 更新节点优先级和 GM节点优先级为原节点优先级。
5516, 判断 GPS端口是否处于 up状态, 如果是, 执行 S518, 否则, 执行 S510。 S517, 判断 FE端口是否处于 up状态, 如果是, 执行 S519, 否则, 执行 S511。
5518, 判断 GPS优先级是否大于 GM节点优先级, 如果是, 执行 S520, 否则, 执行 S510。
5519, 判断 FE优先级是否大于 GM节点优先级, 如果是, 执行 S521 , 否则, 执 行 S511。
S520, 更新节点优先级和 GM节点优先级为端口优先级, 启用 GPS端口为当前外 接时间端口。
S521 , 更新节点优先级和 GM节点优先级为端口优先级, 启用 FE端口为当前外 接时间端口。 图 6是根据本发明实施例的装置结构示意图, 如图 6所示, 该倒换装置主要包括: 传递模块 10、 更新模块 20、 判断模块 30以及倒换模块 40。 其中, 传递模块 10, 设置 为通过节点的第一外接时间端口传递时间信息; 更新模块 20, 连接至传递模块 10, 设 置为在第一外接时间端口失效时, 将节点当前的节点优先级和主节点优先级更新为预 设的节点优先级, 其中, 预设的节点优先级为节点启动时为节点配置的节点优先级; 判断模块 30,连接至更新模块 20, 设置为判断节点的第二外接时间端口是否处于开通 状态, 且第二外接时间端口的优先级高于节点当前的主节点优先级, 如果是, 则触发 倒换模块 40; 倒换模块 40, 连接至判断模块 30, 设置为将第一外接时间端口的状态 设置为阻塞, 倒换到第二外接时间端口传递时间信息。 在本发明的优选实施例的一个优选方式中, 该装置还包括一个确定模块, 该确定 模块可以设置为在第一时间端口没有失效时,确定第一外接时间端口和 /或第二外接时 间端口的优先级配置发生变化, 如果是, 则触发判断模块。 在本发明的优选实施例中, 该倒换装置 40还可以包括: 配置模块 42, 设置为在 节点启动时, 将节点的节点优先级和主节点优先级配置为预设的节点优先级, 以及配 置节点的第一外接时间端口和第二外接时间端口的优先级; 选择模块 44, 设置为在确 定第一外接时间端口和第二外接时间端口均处于开通状态, 且第一外接时间端口的优 先级高于第二外接时间端口的优先级, 且第一外接端口的优先级高于节点当前的主节 点优先级的情况下,选择第一外接时间端口传递时间信息,触发更新模块 20将第二时 间端口标志为不启用, 将节点当前的节点优先级和主节点优先级更新为第一外接时间 端口的优先级。 其中,选择模块 44还可以设置为在确定第一外接时间端口处于开通状态,第二外 接时间端口处于阻塞状态, 且第一外接端口的优先级高于节点当前的主节点优先级的 情况下,选择第一外接时间端口传递时间信息, 并触发更新模块 20将节点当前的节点 优先级和主节点优先级更新为第一外接时间端口的优先级。更新模块 20还可以设置为 在倒换模块 40倒换到第二外接时间端口传递时间信息时,将节点当前的节点优先级和 主节点优先级更新为第二外接时间端口的优先级。 在本发明的优选实施例中, 该倒换装置还可以包括执行模块 50, 该执行模块 50 可以设置为节点的所有外接时间端口都失效, 或其中部分外接时间端口失效, 另一部 分外接时间端口的优先级低于节点当前的主节点优先级的情况下, 执行 BMC算法, 选出新的主节点, 并同步到新的节点。 从以上的描述中, 可以看出, 本发明实现了如下技术效果: 通过软件轮询当前和 其他外接时间端口状态, 在当前端口失效时, 可以智能地查询另外的外接时间端口状 态和其优先级, 运行外接时间端口倒换算法实现时间接入端口的倒换, 从而提高了时 间同步网络的稳定性。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以 将它们存储在存储装置中由计算装置来执行, 并且在某些情况下, 可以以不同于此处 的顺序执行所示出或描述的步骤, 或者将它们分别制作成各个集成电路模块, 或者将 它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限制于任 何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权 利 要 求 书
1. 一种外接时间端口的倒换方法, 包括:
当前作为主节点的节点通过其第一外接时间端口传递时间信息; 所述第一外接时间端口失效, 所述节点将其当前的节点优先级和主节点优 先级更新为预设的节点优先级, 其中, 所述预设的节点优先级为所述节点启动 时为所述节点配置的节点优先级;
所述节点判断其第二外接时间端口是否处于开通状态, 且所述第二外接时 间端口的优先级高于所述节点当前的主节点优先级, 如果是, 则启用所述第二 外接时间端口传递时间信息。
2. 根据权利要求 1所述的方法, 其中, 在当前作为主节点的节点通过其第一外接 时间端口传递时间信息之后, 所述方法还包括:
确定所述第一外接时间端口和 /或所述第二外接时间端口的优先级配置发 生变化;
判断所述第二外接时间端口是否处于开通状态, 且所述第一外接时间端口 当前配置的优先级是否低于所述第二外接时间端口当前配置的优先级,如果是, 则启用所述第二外接时间端口传递时间信息。
3. 根据权利要求 1所述的方法, 其中, 所述节点通过所述第一外接时间端口传递 时间信息之前, 所述方法包括:
步骤 1, 所述节点启动时, 将所述节点的节点优先级和主节点优先级配置 为所述预设的节点优先级, 以及配置所述节点的所述第一外接时间端口和所述 第二外接时间端口的优先级;
步骤 2, 所述节点确定所述第一外接时间端口和所述第二外接时间端口均 处于开通状态, 且所述第一外接时间端口的优先级高于所述第二外接时间端口 的优先级, 且所述第一外接端口的优先级高于所述节点当前的主节点优先级; 步骤 3, 所述节点升级为主节点, 启用所述第一外接时间端口传递时间信 息, 将所述第二时间端口标志为不启用, 将所述节点当前的节点优先级和主节 点优先级更新为所述第一外接时间端口的优先级。
4. 根据权利要求 3所述的方法, 其中, 所述步骤 2中, 所述节点确定所述第一外 接时间端口处于开通状态, 所述第二外接时间端口处于阻塞状态, 则判断所述 第一外接端口的优先级是否高于所述节点当前的主节点优先级, 如果是, 则所 述节点升级为主节点, 启用所述第一外接时间端口传递时间信息, 将所述节点 当前的节点优先级和主节点优先级更新为所述第一外接时间端口的优先级。
5. 根据权利要求 1至 4中任一项所述的方法, 其中, 在启用所述第二外接时间端 口传递时间信息之前, 所述方法还包括:
将所述节点当前的节点优先级和主节点优先级更新为所述第二外接时间端 口的优先级。
6. 根据权利要求 5所述的方法, 其中, 在启用所述第二外接时间端口传递时间信 息之后, 所述方法还包括:
所述节点的所有外接时间端口均失效, 将所述节点当前的节点优先级和主 节点优先级更新为所述预设的节点优先级, 根据最佳主时钟 BMC算法, 选出 新的主节点, 并同步到所述新的节点。
7. 根据权利要求 1所述的方法, 其中,
所述节点判断所述第二外时间端口处于阻塞状态或所述第二外接时间端口 的优先级低于所述节点当前的主节点优先级;
所述方法还包括: 根据 BMC算法, 选出新的主节点, 并同步到所述新的 节点。
8. 一种外接时间端口的倒换装置, 位于节点中, 包括:
传递模块, 设置为通过所述节点的第一外接时间端口传递时间信息; 更新模块, 设置为在所述第一外接时间端口失效时, 将所述节点当前的节 点优先级和主节点优先级更新为预设的节点优先级, 其中, 所述预设的节点优 先级为所述节点启动时为所述节点配置的节点优先级;
判断模块, 设置为判断所述节点的第二外接时间端口是否处于开通状态, 且所述第二外接时间端口的优先高于所述节点当前的主节点优先级, 如果是, 则触发倒换模块;
所述倒换模块, 设置为将所述第一外接时间端口的状态设置为阻塞, 倒换 至 IJ所述第二外接时间端口传递时间信息。
9. 根据权利要求 8所述的装置, 其中, 所述装置还包括: 确定模块, 设置为在所 述第一时间端口没有失效时,确定所述第一外接时间端口和 /或所述第二外接时 间端口的优先级配置发生变化, 如果是, 则触发所述判断模块。
10. 根据权利要求 8所述的装置, 其中, 所述装置还包括: 配置模块, 设置为在所述节点启动时, 将所述节点的节点优先级和主节点 优先级配置为所述预设的节点优先级, 以及配置所述节点的所述第一外接时间 端口和所述第二外接时间端口的优先级;
选择模块, 设置为在确定所述第一外接时间端口和所述第二外接时间端口 均处于开通状态, 且所述第一外接时间端口的优先级高于所述第二外接时间端 口的优先级, 且所述第一外接端口的优先级高于所述节点当前的主节点优先级 的情况下, 选择所述第一外接时间端口传递时间信息, 触发所述更新模块将所 述第二时间端口标志为不启用, 将所述节点当前的节点优先级和主节点优先级 更新为所述第一外接时间端口的优先级。
11. 根据权利要求 10所述的装置,其中,所述选择模块还设置为在确定所述第一外 接时间端口处于开通状态, 所述第二外接时间端口处于阻塞状态, 且所述第一 外接端口的优先级高于所述节点当前的主节点优先级的情况下, 选择所述第一 外接时间端口传递时间信息, 并触发所述更新模块将所述节点当前的节点优先 级和主节点优先级更新为所述第一外接时间端口的优先级。
12. 根据权利要求 8至 11中任一项所述的装置,其中,所述更新模块还设置为在所 述倒换模块倒换到所述第二外接时间端口传递时间信息时, 将所述节点当前的 节点优先级和主节点优先级更新为所述第二外接时间端口的优先级。
13. 根据权利要求 8至 11中任一项所述的装置,其中,所述装置还包括:执行模块, 设置为所述节点的所有外接时间端口都失效, 或其中部分外接时间端口失效, 另一部分外接时间端口的优先级低于所述节点当前的主节点优先级的情况下, 执行 BMC算法, 选出新的主节点, 并同步到所述新的节点。
PCT/CN2012/072615 2011-05-09 2012-03-20 外接时间端口的倒换方法及装置 WO2012152124A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US14/116,393 US9325442B2 (en) 2011-05-09 2012-03-20 Externally connected time port changeover method and device
EP12782681.6A EP2709317A4 (en) 2011-05-09 2012-03-20 SWITCHING PROCESS AND DEVICE FOR AN EXTERNALLY CONNECTED TIMEPORT

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110118550.X 2011-05-09
CN201110118550.XA CN102170398B (zh) 2011-05-09 2011-05-09 外接时间端口的倒换方法及装置

Publications (1)

Publication Number Publication Date
WO2012152124A1 true WO2012152124A1 (zh) 2012-11-15

Family

ID=44491381

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/072615 WO2012152124A1 (zh) 2011-05-09 2012-03-20 外接时间端口的倒换方法及装置

Country Status (4)

Country Link
US (1) US9325442B2 (zh)
EP (1) EP2709317A4 (zh)
CN (1) CN102170398B (zh)
WO (1) WO2012152124A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102170398B (zh) * 2011-05-09 2016-09-28 中兴通讯股份有限公司 外接时间端口的倒换方法及装置
CN104541465A (zh) * 2012-06-20 2015-04-22 诺基亚通信公司 计算机网络中的同步
JP6567846B2 (ja) * 2015-03-18 2019-08-28 Kddi株式会社 同期装置、基地局装置、ネットワークノード、及び制御方法
CN107231207A (zh) * 2017-06-28 2017-10-03 深圳市酷泰联信科技有限公司 多网模式下智能终端自动获取网络时间的方法及***

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101051887A (zh) * 2007-05-17 2007-10-10 中控科技集团有限公司 一种多重化网络中时钟同步的方法、设备和***
CN101667909A (zh) * 2009-09-25 2010-03-10 华为技术有限公司 时钟对接方法、时钟设备及时钟对接***
CN101848193A (zh) * 2009-03-27 2010-09-29 华为技术有限公司 网络同步的方法、***和网络节点
CN102170398A (zh) * 2011-05-09 2011-08-31 中兴通讯股份有限公司 外接时间端口的倒换方法及装置

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6714563B1 (en) * 1999-04-26 2004-03-30 Cisco Technology, Inc. Network clock synchronization scheme
US7664018B2 (en) * 2002-07-02 2010-02-16 Emulex Design & Manufacturing Corporation Methods and apparatus for switching fibre channel arbitrated loop devices
US7460470B2 (en) * 2005-03-18 2008-12-02 Hewlett-Packard Development Company, L.P. Systems and methods of priority failover determination
US7486610B1 (en) * 2005-05-11 2009-02-03 Cisco Technology, Inc. Multiple virtual router group optimization
JP2007304687A (ja) * 2006-05-09 2007-11-22 Hitachi Ltd クラスタ構成とその制御手段
CN101207606A (zh) * 2006-12-18 2008-06-25 华为技术有限公司 主时钟选举的方法和装置
US8432788B2 (en) * 2007-05-18 2013-04-30 Nvidia Corporation Intelligent failback in a load-balanced networking environment
US7933198B1 (en) * 2007-05-30 2011-04-26 Foundry Networks, Llc Virtual router failover dampening
CN101399757B (zh) * 2007-09-25 2011-02-02 华为技术有限公司 跟踪时钟源的方法和装置
US7936666B2 (en) * 2007-11-20 2011-05-03 Foundry Networks, Llc Virtual router with a priority value per port
US7688802B2 (en) * 2008-05-23 2010-03-30 Honeywell International Inc. System and method for time synchronization in a wireless network
CN101594190B (zh) * 2008-05-30 2013-06-05 华为技术有限公司 电力***时间同步方法、装置及电力***
US7873862B2 (en) * 2008-10-21 2011-01-18 International Business Machines Corporation Maintaining a primary time server as the current time server in response to failure of time code receivers of the primary time server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101051887A (zh) * 2007-05-17 2007-10-10 中控科技集团有限公司 一种多重化网络中时钟同步的方法、设备和***
CN101848193A (zh) * 2009-03-27 2010-09-29 华为技术有限公司 网络同步的方法、***和网络节点
CN101667909A (zh) * 2009-09-25 2010-03-10 华为技术有限公司 时钟对接方法、时钟设备及时钟对接***
CN102170398A (zh) * 2011-05-09 2011-08-31 中兴通讯股份有限公司 外接时间端口的倒换方法及装置

Non-Patent Citations (1)

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

Also Published As

Publication number Publication date
CN102170398A (zh) 2011-08-31
CN102170398B (zh) 2016-09-28
EP2709317A4 (en) 2014-12-17
EP2709317A1 (en) 2014-03-19
US20140098827A1 (en) 2014-04-10
US9325442B2 (en) 2016-04-26

Similar Documents

Publication Publication Date Title
US9106352B2 (en) Frequency distribution using precision time protocol
EP3140932B1 (en) A method for robust ptp synchronization with default 1588v2 profile
EP2688240B1 (en) Method, system and device for switching and selecting clock source device
CN103916950A (zh) 时间同步方法及***
EP2782290A1 (en) Method, system and apparatus for implementing hybrid networking of multiple clock synchronization technologies
US20170288802A1 (en) Time Synchronization Method and Apparatus
CN102237996B (zh) 一种同步时钟的方法和时钟同步装置
WO2013029441A1 (zh) 一种时钟同步方法及装置
CN102843205A (zh) 一种基于精确时间协议的时间同步收敛的方法和装置
US9363206B2 (en) Method and apparatus for selecting passive port of transparent clock node based on PTP
WO2015010250A1 (en) Clock recovery in a packet based network
WO2011160595A1 (zh) 基于ptp及链路质量选取主时钟节点的方法、从时钟节点及***
EP3352392B1 (en) Time synchronization packet processing method and device
CN105323054A (zh) 时钟同步方法及装置
US9288075B2 (en) Method and system for auto-configuration, and network node
WO2012152124A1 (zh) 外接时间端口的倒换方法及装置
WO2013178148A1 (zh) 通信网络时钟同步方法和装置
CN102546073B (zh) 一种基于多时钟环的防止时钟切换抖动的方法
EP2701440A1 (en) Synchronization method, device and system
WO2014086254A1 (zh) 时钟保护方法、***和相关普通时钟设备
JP2013160521A (ja) 時刻設定方法、通信装置、および時刻設定プログラム
JP6805938B2 (ja) 仮想lanの時刻同期方法
WO2017166969A1 (zh) 1588报文发送方法、装置及存储介质
WO2012083763A1 (zh) 保护倒换协议状态同步方法及***
EP4068659A1 (en) Clock port attribute recovery method, device, and system

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: 12782681

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2012782681

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 14116393

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE