[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2012034330A1 - Method, system and convergence loop apparatus for synchronization between apparatuses in convergence network - Google Patents

Method, system and convergence loop apparatus for synchronization between apparatuses in convergence network Download PDF

Info

Publication number
WO2012034330A1
WO2012034330A1 PCT/CN2010/079519 CN2010079519W WO2012034330A1 WO 2012034330 A1 WO2012034330 A1 WO 2012034330A1 CN 2010079519 W CN2010079519 W CN 2010079519W WO 2012034330 A1 WO2012034330 A1 WO 2012034330A1
Authority
WO
WIPO (PCT)
Prior art keywords
port
ring device
clock
type
aggregation
Prior art date
Application number
PCT/CN2010/079519
Other languages
French (fr)
Chinese (zh)
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 中兴通讯股份有限公司
Publication of WO2012034330A1 publication Critical patent/WO2012034330A1/en

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
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0673Clock or time synchronisation among packet nodes using intermediate nodes, e.g. modification of a received timestamp before further transmission to the next packet node, e.g. including internal delay time or residence time into the packet
    • 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/42Loop networks
    • 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
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • H04J3/0667Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays

Definitions

  • the present invention relates to the field of communications, and in particular to a method, system, and aggregation ring device for synchronizing devices in a converged network.
  • frequency synchronization that is, signals at the source end and the destination end maintain a certain relationship in frequency or phase
  • frequency synchronization is also generally referred to as clock synchronization.
  • clock synchronization For example, synchronous Ethernet, E1 interface clock synchronization, etc.
  • time synchronization that is, not only the same frequency, but also the same phase, and the same time count scale.
  • PTP Precision Time Protocol
  • 1588v2 The IEEE (Institute of Electrical and Electronic Engineers) has developed the Precision Time Protocol (PTP or 1588v2) for network measurement and control systems.
  • PTP uses the packet-based method to adjust the time deviation and frequency deviation between the slave clock and the master clock by using the path delay measurement principle to synchronize the time and frequency between the master clock and the slave clock.
  • the basic function of ⁇ is to keep the clocks of each node in the distributed network synchronized with frequency and time within a certain precision.
  • Boundary Clock (BC, Boundary Clock), Normal Clock (OC, Ordinary Clock), Transparent Clock (TC, Transparent Clock), Normal Clock + Boundary clock (represented by "OC+TC") means that the device has both the characteristics of a normal clock and the characteristics of a transparent transmission clock).
  • BC Boundary Clock
  • OC Ordinary Clock
  • TC Transparent Clock
  • Normal Clock + Boundary clock (represented by "OC+TC”) means that the device has both the characteristics of a normal clock and the characteristics of a transparent transmission clock).
  • OC+TC Boundary clock
  • the aggregation ring device is directly synchronized with the grandmaster clock (GM) device, which requires the aggregation ring device to As a boundary clock (slave device), PTP packets can be transparently transmitted to other devices on the ring.
  • GM grandmaster clock
  • the port of the aggregation ring device connected to the access ring device needs to provide the clock time for the access ring device. Therefore, the port is forced to be the master port. This port can block the 1588v2 interaction between the access ring and other devices on the aggregation ring. . None of the above four clock types can well satisfy the above two characteristics, resulting in poor synchronization between devices in the system.
  • a primary object of the present invention is to provide a method, system, and aggregation ring device for synchronizing devices in a converged network, so as to at least solve the problem of poor synchronization between devices in the converged network.
  • a method for synchronizing devices in a converged network including: a convergence ring device determining a port type of a current port; wherein the aggregation ring device is configured with a boundary clock and a transparent clock; The main port, the slave port, and the monthly port are connected to the access ring.
  • the aggregation ring device processes the PTP packet according to the determined port type to enable the device in the aggregation network.
  • a convergence ring device including: a port type determining module, configured to determine a port type of a current port; wherein, the aggregation ring device is configured with a boundary clock and a transparent clock; The primary port, the slave port, and the monthly port are connected to the access ring.
  • the packet processing module is configured to process the precise time protocol PTP packet according to the port type determined by the port type determining module. Synchronization between devices in the converged network where the ring device is located.
  • a converged network system including: a convergence ring device and an access ring device; the aggregation ring device includes: a port type determining module, configured to determine a port type of the current port; The ring device is configured with a boundary clock and a transparent clock; the port type includes a primary port, a secondary port, and a monthly service port, and the monthly service port is a port connected to the access ring; 4 a message processing module, configured according to the port type Determining the port type determined by the module to process the precise time protocol PTP packet, so that the devices in the aggregation network system are synchronized; the access ring device includes: a synchronization module, configured to process PTP packets according to the port type of the port, and the access ring
  • the clock type of the device is a boundary clock or a transparent clock.
  • the port types of the access ring device include the primary port and the secondary port.
  • the new clock type BC+TC is configured on the aggregation device, and the synchronization operation is performed based on the type, which solves the problem that the synchronization between the devices in the convergence network is poor, and the robustness of the network time synchronization is enhanced. Simplifies the synchronization between devices in a converged network and improves the system. System performance.
  • FIG. 2 is a schematic structural diagram of a collection ring device according to an embodiment of the present invention
  • FIG. 4 is a block diagram showing the structure of a convergence network device according to an embodiment of the present invention
  • FIG. 5 is a structural block diagram of a convergence network system according to an embodiment of the present invention.
  • the present invention considers the networking characteristics and requirements of the converged network, and introduces a new clock type, that is, a boundary clock + a transparent clock, and the device configured with the clock type has a function of a boundary clock and a transparent clock. Based on this, an embodiment of the present invention provides a method, a system, and a convergence ring device for synchronizing devices in a converged network.
  • Step 4 S42: The aggregation ring device determines a port type of a current port.
  • the aggregation ring device is configured with a boundary clock and a transparent clock (represented by "BC+TC"); the port type includes a primary port (master port), a slave port (slave port), and a service port (server port), The service port is the port connected to the access ring.
  • the aggregation device can determine the current port type and the clock type configured by itself according to the information in the configuration file.
  • Step S104 The aggregation ring device processes the PTP packet according to the determined port type, so that the devices in the convergence network are synchronized.
  • different types of ports correspond to different processing methods, for example, when the port type determined by the aggregation ring device is a service port, step S104 includes: sending the generated PTP 4 message from the current port, Discard the PTP 4 message received by the current port.
  • the foregoing method further includes the following configuration:
  • the access ring device processes the PTP packet according to the port type of the port, and the port type of the access ring device includes the primary port and the secondary port;
  • the time source of the convergence ring device that is not connected to the access ring is from a Global Positioning System (GPS), and is used as a GM clock of the convergence network;
  • GPS Global Positioning System
  • the aggregation ring device runs the BMC algorithm from the convergence ring device. Select one port as the slave port, at least one port as the master port, and select at least one port from the master port as the service port.
  • the access ring device on the access ring runs the BMC algorithm, and selects one port from the port of the access ring device as the slave port, and the remaining ports are the master ports.
  • the PTP 4 text in this embodiment includes one of the following: Announce 4 Announcement, Synchronization (Sync) 4 ⁇ , 4 ⁇ (flow_up) 4 ⁇ , Delay Request (DelayReq) 4 ⁇ And delay response (DelayResp) 4 ⁇ text.
  • Announce 4 Announcement Synchronization (Sync) 4 ⁇
  • 4 ⁇ (flow_up) 4 ⁇ Delay Request (DelayReq) 4 ⁇ And delay response (DelayResp) 4 ⁇ text.
  • the device includes a 1588 protocol stack module, a BMC algorithm module, and a packet switching module, where the BMC algorithm module is used to run
  • the BMC algorithm determines the type of each port on the node clock; ⁇ the protocol stack module, which is used to generate and process the ⁇ 4 ⁇ text; 4 ⁇ text exchange module, which is used to determine the type and port type of the ⁇ , , According to different types # ⁇ corresponding processing.
  • the performance of each port is as follows: The slave port (Slaffer port;), the received Sync message and the flow_up message need to be transparently transmitted to other primary ports (ie, the master port). And simultaneously sent to the 1588 protocol stack module. For the received DelayReq, the text is only transparently processed.
  • the DelayResp 4 message For the received DelayResp 4 message, it needs to be terminated by the destination clock identifier (ClockID) and sent to the 1588 protocol stack module for processing; for the destination ClockID that does not match, the DelayResp 4 message is only transparently processed.
  • the 1588 4 ⁇ text sent by the 1588 protocol stack module is sent normally.
  • the monthly port (Server port;), all received 1588v2 4 files are terminated on this port (not transparently transmitted, preventing the lower level 1588 4 text from traversing to the upper 1588v2 network), and must be discarded for the received Announce text.
  • the BMC algorithm module is prevented from calculating this port as a Slave port; the received DelayDeq 4 message or other redundant 1588v2 message is processed or discarded by the 1588 protocol stack module.
  • the 4 ⁇ protocol sent by the 1588 protocol stack module is not filtered (including Announce, Sync, Flow_Up, DelayResp).
  • the master port (Master port;) needs to transparently transmit the received Announce 4 file and send it to the 1588 protocol stack module to participate in the BMC algorithm.
  • the Announce 4 message issued by the platform needs to be issued normally.
  • the BMC algorithm module calculates that the port is the Master port, the port does not send the Sync message.
  • the BMC algorithm module calculates that the port is the Master port, the port does not send the Sync message.
  • the BMC algorithm module calculates that the port is the Master port, the port does not send the Sync message.
  • the time synchronization of the aggregation ring device will not affect the time synchronization of the aggregation ring device, and the time synchronization between the devices in the aggregation network can be hierarchically processed, that is, only the aggregation ring device can provide the access ring device. time.
  • Embodiment 1 This embodiment is described by taking the aggregation network shown in FIG. 3 as an example, where devices 1, 2, 3, and 5 are aggregation ring devices, and GE accesses are hanged on devices 3, 4, and 5 Ring One, GE Access ring 2, GE access ring 3, and GE access ring 4.
  • the clocks on the GE access ring are the access ring devices.
  • the clock types configured on the aggregation ring device and the access ring device are the same as those configured in the previous embodiment. That is, the aggregation ring devices 1 and 2 are set as boundaries in Figure 3.
  • Clock function devices 3, 4, 5 are set to boundary clock + transparent clock function (such as E2E transparent clock). All devices on the access ring are set to boundary clocks.
  • a TD base station is connected to the access ring device, and the TD base station is set to a normal clock. All PTP devices use the one-step clock mode defined by 1588v2.
  • the network shown in Figure 3 is a PTP clock domain, and the JLi or delay measurement mechanism is E2E.
  • the BMC algorithm is enabled for the boundary clock, the normal clock, the boundary clock + the transparent transmission clock.
  • the time source of the boundary clock of device 1 is from GPS and is the GP clock of the PTP i or .
  • the port on the link acts as the master port. This port sends the Announce message and the sync message, and responds to the DelayReq message, which sends the DelayResp message.
  • the device 4 on the aggregation ring processes the packet according to the type of the port. Take the aggregation ring device shown in Figure 2 as an example. For different port types, each module participates in the following processing: port2: Receive Announce And sync 4 ⁇ text, sent to the 1588 protocol stack module, and forwarded to the port1 port. Received DelayReq 4 ⁇ text forwarded to portl. After receiving the DelayResp 4 message, the destination block ID is matched and sent to the 1588 protocol stack module, and the unmatched forwarding is forwarded to portl, and the Announce and DelayReq messages generated by the 1588 ten-layer stack module are sent.
  • Portl Connect) Announce ⁇ ⁇ and send 1588 10 to discuss the stack module, and forwarded to port2. After receiving the Sync, DelayReq, and DelayResp 4 messages, it is forwarded to port2. Send the Announce message generated by the 1588 Ten-Stack Module. Port3, port4: Receive the Announce 4 message and discard it. The received DelayReq message or other redundant 1588v2 message is processed or discarded by the 1588 protocol stack module, and the Announce generated by the 1588 10 stack module is sent. Sync, DelayResp 4 ⁇ text. 5. All devices in the access ring run the BMC algorithm, which determines that one port on the link is a slave port, and the others are master ports.
  • All base stations run the BMC algorithm to determine the port status of the port connected to the access ring device as the slave port.
  • the access ring device is synchronized to the aggregation ring device.
  • the base station synchronizes with the access ring device, and finally reaches the entire network time synchronization.
  • This embodiment provides a new type of clock: boundary clock + transparent clock.
  • a new port type server port. This port type is based on the master port type in the PTP standard. Some new features are added. For example, the server port has all the received 1588v2 ⁇ 3 ⁇ 4 texts terminated (not transparently transmitted, preventing the lower level 1588 4 text from traversing to the upper 1588v2 network.
  • the module processes or discards.
  • the 4 ⁇ messages (including Announce, Sync, Flow_Up or DelayResp) issued by the 1588 protocol stack module are not filtered.
  • the boundary clock + transparent clock has both the function of a boundary clock and the function of a transparent clock.
  • This clock type can have one slave port and multiple master ports. Multiple master ports can specify one or several of them to be transparent ports, and you can also specify one or several of them as server ports.
  • the NE is an aggregation ring device, you need to provide clock time to the access ring device. You can manually specify the corresponding port as the server port.
  • this port participates in the BMC algorithm operation, it is fixed as the master port. Only the Announce 4 message is sent from this port, but the Announce 4 message is not received.
  • the port does not transparently transmit PTP packets from other ports. After running the BMC algorithm, this node clock will select the state of each PTP port. For example, there will be a slave + transparent port, there will be one or more server ports, there will be one or more transparent ports.
  • the clock type provided by the embodiment of the present invention may be applied.
  • This type of application can improve the time synchronization performance of the node clock on the aggregation ring. It can provide time for the access ring device, and can block the mutual connection between the aggregation ring and the access ring device. This method simplifies the complexity of the 1588v2 time synchronization network and improves the management of the 1588v2 time synchronization network.
  • Sexual clock types are interconnected. Referring to FIG.
  • an embodiment of the present invention further provides a convergence ring device, where the device includes: a port type determining module 42 configured to determine a port type of a current port;
  • the aggregation ring device is configured with a boundary clock and a transparent clock.
  • the port type includes a primary port, a secondary port, and a service port, and the service port is a port connected to the access ring.
  • the packet processing module 44 is configured according to the port type.
  • the port type determined by the determining module 42 processes the precise time protocol PTP packet, so that the devices in the convergence network where the aggregation ring device is located are synchronized.
  • the message processing module 44 includes: a message sending unit, configured to: when the type of the current port is a service port, send the generated PTP message from the current port; the message termination unit is configured to determine that the current port type is a service. The port discards the PTP packets received by the current port.
  • the PTP 4 text in this embodiment includes one of the following: Announce 4 Announcement, Synchronization (Sync) 4 ⁇ , 4 ⁇ (flow_up) 4 ⁇ , Delay Request (DelayReq) 4 ⁇ And delay response (DelayResp) 4 ⁇ text.
  • the packet processing module 44 processes the PTP packet according to the port type as follows:
  • the slave port (Slave port;), the received Sync packet and the flow_up packet need to be transparently transmitted to other primary ports (ie, the master port). And simultaneously sent to the 1588 protocol stack module.
  • For the received DelayResp 4 message it needs to be terminated by the destination clock identifier (ClockID) and sent to the 1588 protocol stack module for processing; for the destination ClockID that does not match, the DelayResp 4 message is only transparently processed.
  • the 1588 4 ⁇ text sent by the 1588 protocol stack module is sent normally.
  • the monthly port (Server port;), all received 1588v2 4 files are terminated on this port (not transparently transmitted, preventing the lower level 1588 4 text from traversing to the upper 1588v2 network), and must be discarded for the received Announce text.
  • the BMC algorithm module is prevented from calculating this port as a Slave port; the received DelayDeq 4 message or other redundant 1588v2 message is processed or discarded by the 1588 protocol stack module.
  • the 4 ⁇ protocol sent by the 1588 protocol stack module is not filtered (including Announce, Sync, Flow_Up, DelayResp).
  • the master port (Master port;) needs to transparently transmit the received Announce 4 file and send it to the 1588 protocol stack module to participate in the BMC algorithm.
  • the convergence ring device includes: an algorithm configuration module, configured to configure its own clock PTP end
  • the port state selection algorithm is the best master clock BMC algorithm
  • the port type selection module is used to run the BMC algorithm configured by the algorithm configuration module, and one port is selected as a slave port from the port, at least one port is the master port, and the master port Select at least one port in the port as the service port.
  • the clock type is the boundary clock.
  • the time source of the convergence ring device that is not connected to the access ring is from the global positioning system GPS, and is used as the GM clock of the converged network.
  • the clock type configured by the aggregation ring device in this embodiment is a boundary clock and a transparent clock, so that the PTP 4 can be processed differently according to the type of the port, and the time for providing time to the access ring is achieved, and the convergence is solved.
  • the problem of poor synchronization between devices in a network improves the robustness of network time synchronization.
  • an embodiment of the present invention further provides a converged network system, where the system includes: an aggregation ring device 50 and an access ring device 60.
  • the aggregation ring device 50 includes: a port type determining module 52, configured to determine a current port.
  • the port type of the aggregation ring device 50 is configured with a boundary clock and a transparent clock; the port type includes a primary port, a secondary port, and a monthly service port, and the monthly service port is a port connected to the access ring;
  • the module 54 is configured to process the PTP packet according to the port type determined by the port type determining module to synchronize the devices in the aggregation network system.
  • the access ring device 60 includes: a synchronization module 62, configured to: The port type of the port handles PTP packets.
  • the clock type of the access ring device 60 is a boundary clock or a transparent clock.
  • the port types of the access ring device include a primary port and a secondary port.
  • the aggregation ring device 50 specifically processes the PTP 4 packet in the same manner as the foregoing embodiment. For example, when the aggregation ring device determines that the port type is a service port, the device sends the generated PTP packet from the port and discards the PTP packet received by the port. Text. Based on this, the message processing module 54 includes: The sending unit is configured to: when the type of the current port is a monthly port, the PTP 4 message is sent from the current port; and the terminating unit is used to determine that the current port type is a monthly port, and is discarded. PTP packet received by the current port.
  • the PTP packet includes one of the following: Announce message, Synchronization (Sync) message, stream 4 (flow_up) 4 message, Delay request (DelayReq) 4 message and delay response (DelayResp) ) 4 ⁇ text.
  • the system further includes: a transmission offset TD base station connected to the access ring device, where the TD base station is configured with a common clock function for synchronizing with the access ring device 60.
  • the convergence ring device 50 includes: a first algorithm configuration module, configured to configure its own clock PTP port state selection algorithm as an optimal master clock BMC algorithm; a port type selection module, configured to run a BMC algorithm configured by an algorithm configuration module, Select one port from its own port as the slave port, at least one port as the master port, and select at least one port from the master port as the slave port.
  • the access ring device 60 includes: a second algorithm configuration module, configured to configure its own clock PTP port state selection algorithm as an optimal master clock BMC algorithm; a second port type selection module, Run the BMC algorithm configured by the algorithm configuration module to select one port from the port as the slave port and the other ports as the master port.
  • the clock type is configured as a boundary clock.
  • the time source of the convergence ring device that is not connected to the access ring is from the global positioning system GPS, and is used as the GM clock of the converged network.
  • the clock type configured by the aggregation ring device in this embodiment is a boundary clock and a transparent clock, so that the PTP 4 can be processed differently according to the type of the port, and the time for providing time to the access ring is achieved, and the convergence is solved.
  • the problem of poor synchronization between devices in a network improves the robustness of network time synchronization.
  • the time synchronization of the aggregation ring device will not affect the time synchronization of the aggregation ring device, and the time synchronization between the devices in the aggregation network can be hierarchically processed, that is, only the aggregation ring device can provide the access ring device. time. It simplifies the synchronization between devices in the converged network and improves system performance. As can be seen from the above description, the present invention achieves the following technical effects: Improve the convergence ring Time synchronization performance of the node clock. It can provide time for the access ring device, and can block mutual interference between the aggregation ring and the access ring device.
  • 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.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.

Landscapes

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

Abstract

A method, a system and a convergence loop for apparatus for synchronization between apparatuses in convergence network are provided in the invention. The method includes that: a port type of a current port is determined by a convergence loop apparatus, wherein the convergence loop apparatus is provided with functions of a boundary clock and a transparent clock, and the port types include a master port, a slave port and a server port, and the server port is the port connected to an access loop; Precision Time Protocol (PTP) messages are processed by the convergence loop apparatus according to the determined port type for realizing synchronization between the apparatuses in the convergence network. With the method and device of the invention, the problem of poor synchronism between the apparatuses in the convergence network is solved, the synchronization operation between the apparatuses in the convergence network is simplified and the performance of the system is improved.

Description

汇聚式网络中设备间的同步方法、 系统和汇聚环设备 技术领域 本发明涉及通信领域, 具体而言, 涉及一种汇聚式网络中设备间的同步 方法、 系统和汇聚环设备。 背景技术 目前, 通信网络中设备间的同步包括两种: 一种是频率同步, 即, 源端 和目的端的信号在频率或相位上保持某种特定的关系, 频率同步通常还称为 时钟同步, 例如, 同步以太网、 E1接口时钟同步等; 另一种同步是时间同步, 即, 不仅频率相同, 而且相位也相同, 并且具有相同的时间记数标尺。 IEEE ( Institute for Electrical and Electronic Engineers , 电子和电气工程师 协会)制定了应用于网络测量和控制系统的 "精确时间协议"(Precision Time Protocol, 简称 PTP或 1588v2)。 PTP通过基于包的方式, 釆用路径延迟测量 原理, 调整从时钟与主时钟的时间偏差和频率偏差, 实现主时钟与从时钟之 间的时间及频率同步。 ΡΤΡ的基本功能是使分布式网络内的各节点时钟, 在一定精度内保持频 率和时间的同步。 ΡΤΡ标准里提供了四种可用于主从时钟之间组网的基本时 钟类型: 边界时钟( BC, Boundary Clock ), 普通时钟( OC, Ordinary Clock ), 透明时钟( TC, Transparent Clock ), 普通时钟 +边界时钟(用 "OC+TC" 表 示, 指该设备既具有普通时钟的特性, 也具有透传时钟的特性)。 在分布式网 络中, 这四种时钟类型可以混合组网, 以满足设备间的同步。 而在实际组网时, 运营商有时釆用的并不是分布式网络, 而是会将网络 规划成一个汇聚环网下挂几个接入环网的形式, 这种组网方式称为汇聚式网 络。 为了提供更好的性能以及更安全简单的管理, 汇聚式网络中的设备需要 支持如下特性: 1 : 汇聚环设备直接同步于祖父时钟 (GM, Grandmaster Clock )设备, 这就需要汇聚环设备既能做边界时钟 (从设备), 又能将 PTP报文透传给环 上其他设备。 2: 汇聚环设备连接接入环设备的端口需要为接入环设备提供时钟时间, 因此希望该端口强制成 master端口; 且此端口可以阻断接入环与汇聚环其他 设备的 1588v2 艮文交互。 上述四种时钟类型均不能很好地满足上述两个特性, 导致系统内的设备 间同步性较差。 发明内容 本发明的主要目的在于提供一种汇聚式网络中设备间的同步方法、 系统 和汇聚环设备,以至少解决上述的汇聚式网络中设备间的同步性较差的问题。 根据本发明的一个方面, 提供了一种汇聚式网络中设备间的同步方法, 包括: 汇聚环设备确定当前端口的端口类型; 其中, 汇聚环设备配置有边界 时钟与透明时钟的功能; 端口类型包括主端口、 从端口和月艮务端口, 月艮务端 口为与接入环相连的端口; 该汇聚环设备按照确定的端口类型处理 3晴确时间 协议 PTP报文, 使汇聚式网络中设备间达到同步。 根据本发明的另一方面, 提供了一种汇聚环设备, 包括: 端口类型确定 模块, 用于确定当前端口的端口类型; 其中, 汇聚环设备配置有边界时钟与 透明时钟的功能; 端口类型包括主端口、 从端口和月艮务端口, 月艮务端口为与 接入环相连的端口; 报文处理模块, 用于按照端口类型确定模块确定的端口 类型处理精确时间协议 PTP报文,使汇聚环设备所在的汇聚式网络中设备间 达到同步。 根据本发明的又一方面, 提供了一种汇聚式网络系统, 包括: 汇聚环设 备和接入环设备; 汇聚环设备包括: 端口类型确定模块, 用于确定当前端口 的端口类型; 其中, 汇聚环设备配置有边界时钟与透明时钟的功能; 端口类 型包括主端口、 从端口和月艮务端口, 月艮务端口为与接入环相连的端口; 4艮文 处理模块, 用于按照端口类型确定模块确定的端口类型处理精确时间协议 PTP报文, 使汇聚式网络系统中设备间达到同步; 接入环设备包括: 同步模 块, 用于根据其端口的端口类型处理 PTP报文, 接入环设备的时钟类型为边 界时钟或透明时钟, 接入环设备的端口类型包括主端口和从端口。 通过本发明, 釆用在汇聚设备上配置新的时钟类型 BC+TC, 并基于该类 型进行同步操作, 解决了汇聚式网络中设备间的同步性较差的问题, 增强了 网络时间同步的健壮性, 简化了汇聚式网络中设备间的同步操作, 提高了系 统性能。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部 分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的 不当限定。 在附图中: 图 1是根据本发明实施例的汇聚式网络中设备间的同步方法的流程图; 图 2是根据本发明实施例的汇集环设备的结构示意图; 图 3是 居本发明实施例的汇聚式网络的结构示意图; 图 4是根据本发明实施例的汇集环设备的结构框图; 图 5是 居本发明实施例的汇聚式网络系统的结构框图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在 不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互组合。 本发明考虑汇聚式网络的组网特点及需求, 引入了新的时钟类型, 即边 界时钟 +透明时钟, 配置该时钟类型的设备具有边界时钟与透明时钟的功能。 基于此, 本发明实施例提供了一种汇聚式网络中设备间的同步方法、 系统和 汇聚环设备。 图 1示出了根据本发明实施例的一种汇聚式网络中设备间的同步方法的 流程图, 该方法包括以下步 4聚: 步 4聚 S 102, 汇聚环设备确定当前端口的端口类型; 其中, 汇聚环设备配置有边界时钟与透明时钟(用 "BC+TC" 表示) 的 功能; 端口类型包括主端口 (master端口)、 从端口 (slave端口) 和服务端 口 ( server端口), 月艮务端口为与接入环相连的端口; 汇聚设备可以根据配置文件中的信息确定当前端口的类型, 以及自身配 置的时钟类型等信息。 步骤 S 104, 汇聚环设备按照确定的端口类型处理 PTP报文, 使汇聚式 网络中设备间达到同步。 本实施例中, 不同类型的端口对应不同的 4艮文处理方式, 例如, 当汇聚 环设备确定的端口类型为服务端口时, 步骤 S 104 包括: 从该当前端口发送 生成的 PTP 4艮文, 丢弃该当前端口接收到的 PTP 4艮文。 优选地, 针对汇聚式网络的组网特点, 在进行设备间同步之前, 即上述 步骤 S 102之前, 上述方法还包括下述配置: The present invention relates to the field of communications, and in particular to a method, system, and aggregation ring device for synchronizing devices in a converged network. BACKGROUND Currently, there are two types of synchronization between devices in a communication network: One is frequency synchronization, that is, signals at the source end and the destination end maintain a certain relationship in frequency or phase, and frequency synchronization is also generally referred to as clock synchronization. For example, synchronous Ethernet, E1 interface clock synchronization, etc.; another type of synchronization is time synchronization, that is, not only the same frequency, but also the same phase, and the same time count scale. The IEEE (Institute of Electrical and Electronic Engineers) has developed the Precision Time Protocol (PTP or 1588v2) for network measurement and control systems. PTP uses the packet-based method to adjust the time deviation and frequency deviation between the slave clock and the master clock by using the path delay measurement principle to synchronize the time and frequency between the master clock and the slave clock. The basic function of ΡΤΡ is to keep the clocks of each node in the distributed network synchronized with frequency and time within a certain precision. The ΡΤΡ standard provides four basic clock types that can be used for networking between master and slave clocks: Boundary Clock (BC, Boundary Clock), Normal Clock (OC, Ordinary Clock), Transparent Clock (TC, Transparent Clock), Normal Clock + Boundary clock (represented by "OC+TC") means that the device has both the characteristics of a normal clock and the characteristics of a transparent transmission clock). In a distributed network, these four clock types can be mixed to meet the synchronization between devices. In actual networking, the operator sometimes uses a distributed network instead of a distributed network. Instead, the network is planned to be in the form of several access ring networks connected to the aggregation ring network. This networking mode is called convergence. The internet. In order to provide better performance and safer and simpler management, devices in the converged network need to support the following features: 1 : The aggregation ring device is directly synchronized with the grandmaster clock (GM) device, which requires the aggregation ring device to As a boundary clock (slave device), PTP packets can be transparently transmitted to other devices on the ring. 2: The port of the aggregation ring device connected to the access ring device needs to provide the clock time for the access ring device. Therefore, the port is forced to be the master port. This port can block the 1588v2 interaction between the access ring and other devices on the aggregation ring. . None of the above four clock types can well satisfy the above two characteristics, resulting in poor synchronization between devices in the system. SUMMARY OF THE INVENTION A primary object of the present invention is to provide a method, system, and aggregation ring device for synchronizing devices in a converged network, so as to at least solve the problem of poor synchronization between devices in the converged network. According to an aspect of the present invention, a method for synchronizing devices in a converged network is provided, including: a convergence ring device determining a port type of a current port; wherein the aggregation ring device is configured with a boundary clock and a transparent clock; The main port, the slave port, and the monthly port are connected to the access ring. The aggregation ring device processes the PTP packet according to the determined port type to enable the device in the aggregation network. Synchronization is achieved. According to another aspect of the present invention, a convergence ring device is provided, including: a port type determining module, configured to determine a port type of a current port; wherein, the aggregation ring device is configured with a boundary clock and a transparent clock; The primary port, the slave port, and the monthly port are connected to the access ring. The packet processing module is configured to process the precise time protocol PTP packet according to the port type determined by the port type determining module. Synchronization between devices in the converged network where the ring device is located. According to still another aspect of the present invention, a converged network system is provided, including: a convergence ring device and an access ring device; the aggregation ring device includes: a port type determining module, configured to determine a port type of the current port; The ring device is configured with a boundary clock and a transparent clock; the port type includes a primary port, a secondary port, and a monthly service port, and the monthly service port is a port connected to the access ring; 4 a message processing module, configured according to the port type Determining the port type determined by the module to process the precise time protocol PTP packet, so that the devices in the aggregation network system are synchronized; the access ring device includes: a synchronization module, configured to process PTP packets according to the port type of the port, and the access ring The clock type of the device is a boundary clock or a transparent clock. The port types of the access ring device include the primary port and the secondary port. Through the invention, the new clock type BC+TC is configured on the aggregation device, and the synchronization operation is performed based on the type, which solves the problem that the synchronization between the devices in the convergence network is poor, and the robustness of the network time synchronization is enhanced. Simplifies the synchronization between devices in a converged network and improves the system. System performance. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 1 is a flowchart of a method for synchronizing devices in a converged network according to an embodiment of the present invention; FIG. 2 is a schematic structural diagram of a collection ring device according to an embodiment of the present invention; FIG. 4 is a block diagram showing the structure of a convergence network device according to an embodiment of the present invention; and FIG. 5 is a structural block diagram of a convergence network system according to an embodiment of the present invention. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. The present invention considers the networking characteristics and requirements of the converged network, and introduces a new clock type, that is, a boundary clock + a transparent clock, and the device configured with the clock type has a function of a boundary clock and a transparent clock. Based on this, an embodiment of the present invention provides a method, a system, and a convergence ring device for synchronizing devices in a converged network. FIG. 1 is a flowchart of a method for synchronizing devices in a converged network according to an embodiment of the present invention. The method includes the following steps: Step 4: S42: The aggregation ring device determines a port type of a current port. The aggregation ring device is configured with a boundary clock and a transparent clock (represented by "BC+TC"); the port type includes a primary port (master port), a slave port (slave port), and a service port (server port), The service port is the port connected to the access ring. The aggregation device can determine the current port type and the clock type configured by itself according to the information in the configuration file. Step S104: The aggregation ring device processes the PTP packet according to the determined port type, so that the devices in the convergence network are synchronized. In this embodiment, different types of ports correspond to different processing methods, for example, when the port type determined by the aggregation ring device is a service port, step S104 includes: sending the generated PTP 4 message from the current port, Discard the PTP 4 message received by the current port. Preferably, for the networking feature of the convergence network, before performing the inter-device synchronization, that is, before the step S102, the foregoing method further includes the following configuration:
1 ) 配置接入环上的接入环设备的时钟类型为边界时钟或透明时钟, 其 中, 透明时钟为点到点( P2P, Peer to Peer )透明时钟或端到端 ( E2E, End to End ) 透明时钟; 根据这种配置, 接入环设备将根据其端口的端口类型处理 PTP报文, 该 接入环设备的端口类型包括主端口和从端口; 1) Configure the clock type of the access ring on the access ring as a boundary clock or a transparent clock. The transparent clock is a peer-to-peer (P2P, Peer to Peer) transparent clock or end-to-end (E2E, End to End). According to the configuration, the access ring device processes the PTP packet according to the port type of the port, and the port type of the access ring device includes the primary port and the secondary port;
2 )配置接入环设备下挂的传输偏差(TD, Transmission Deviation )基站 的时钟类型为普通时钟; 2) Configure the transmission deviation (TD, Transmission Deviation) of the access ring device to be a normal clock;
3 ) 配置汇聚式网络中未连接接入环的汇聚环设备的时钟类型为边界时 钟。 其中, 该未连接接入环的汇聚环设备的时间源来自全球定位系统(GPS , Global Positioning System ) , 且作为汇聚式网络的 GM时钟; 3) Configure the clock type of the aggregation ring device that is not connected to the access ring in the aggregation network as the boundary clock. The time source of the convergence ring device that is not connected to the access ring is from a Global Positioning System (GPS), and is used as a GM clock of the convergence network;
4 ) 配置汇聚式网络中的设备的时钟 ΡΤΡ端口状态选择算法为最佳主时 钟 (BMC, Best Master Clock ) 算法; 才艮据这种配置, 上述汇聚环设备运行 BMC算法, 从该汇聚环设备的端 口中选择一个端口为从端口, 至少一个端口为主端口, 并从主端口中选择至 少一个端口为服务端口。 接入环上的接入环设备运行所述 BMC算法, 从接 入环设备的端口中选择一个端口为从端口, 其余端口为主端口。 本实施例中的 PTP 4艮文包括以下之一: 通告 ( Announce ) 4艮文、 同步 ( Sync ) 4艮文、 流上 4艮(flow_up ) 4艮文、 延时请求( DelayReq ) 4艮文和延时 响应 (DelayResp ) 4艮文。 参见图 2所示的汇集环设备的内部结构示意图, 该设备包括 1588协议 栈模块、 BMC算法模块和报文交换模块, 其中, BMC算法模块, 用于运行 BMC算法, 判断出节点时钟上各 ΡΤΡ端口的类型; ΡΤΡ协议栈模块, 用于 生成并处理 ΡΤΡ 4艮文; 4艮文交换模块, 用于判断 4艮文的类型和端口类型, 并 才艮据不同的类型 #丈相应的处理。 其中, 4十对上述 4艮文, 各端口具有的性能如 下: 从端口 ( Slave端口;), 对于收到的 Sync报文和 flow_up报文需要透传到 其他的主端口 (即 master端口), 并同时上送至 1588协议栈模块。 对于收到 的 DelayReq 艮文只故透传处理。对于收到的 DelayResp 4艮文, 需要按目的时 钟标识 ( ClockID ) 终结并上送 1588协议栈模块处理; 对于目的 ClockID不 匹配的 DelayResp 4艮文只故透传处理。 对于 1588协议栈模块发出的 1588 4艮 文正常发送。 月艮务端口 ( Server端口;), 所有收到的 1588v2 4艮文在此端口上终结 (不 能透传, 防止下级 1588 4艮文穿越到上级 1588v2 网络中), 对于收到的 Announce 文必须丢弃, 防止 BMC算法模块将此端口计算成 Slave端口; 对于收到的正常的 DelayReq 4艮文或其它冗余 1588v2 4艮文交由 1588协议栈 模块处理或丢弃。 对于 1588 协议栈模块发出的 4艮文不作过滤 ( 包括 Announce、 Sync、 Flow—Up、 DelayResp )。 主端口(Master端口;),对于收到的 Announce 4艮文需要透传并上送 1588 协议栈模块, 参与 BMC算法运算。 对于收到的 Sync、 Flow_Up、 DelayReq、 DelayResp 4艮文只需要故透传处理。对于平台发出的 Announce 4艮文需要正常 发出。 虽然 BMC算法模块运算出该端口为 Master端口, 但是该端口不发送 Sync 艮文。 本实施例通过在汇聚设备上配置新的时钟类型 BC+TC,并基于该类型进 行同步操作, 解决了汇聚式网络中设备间的同步性较差的问题, 增强了网络 时间同步的健壮性。 并且, 接入环设备通过上述配置, 将不会影响汇聚环设 备的时间同步, 使汇聚式网络中设备间的时间同步达到了分层处理, 即只能 由汇聚环设备给接入环设备提供时间。 简化了汇聚式网络中设备间的同步操 作, 提高了系统性能。 实施例 1 本实施例以图 3所示的汇聚式网络为例进行说明, 其中, 设备 1、 2、 3、 5为汇聚环设备, 并且在设备 3、 4和 5上下挂有的 GE接入环一、 GE 接入环二、 GE接入环三和 GE接入环四。 GE接入环上的设备为接入环设备, 汇聚环设备和接入环设备配置的时钟类型与上述实施例中配置的时钟类型相 同, 即: 图 3中汇聚环设备 1和 2设置为边界时钟功能, 设备 3 , 4, 5设置 为边界时钟 +透明时钟功能 (如 E2E透明时钟)。 接入环所有设备都设置为 边界时钟。 在接入环设备都下挂一 TD基站, TD基站设置为普通时钟。 所有 PTP设备均使用 1588v2定义的一步时钟 ( one-step clock )模式。 4) Configure the clock and port state selection algorithm of the device in the aggregation network as the best master clock (BMC) algorithm; according to the configuration, the aggregation ring device runs the BMC algorithm from the convergence ring device. Select one port as the slave port, at least one port as the master port, and select at least one port from the master port as the service port. The access ring device on the access ring runs the BMC algorithm, and selects one port from the port of the access ring device as the slave port, and the remaining ports are the master ports. The PTP 4 text in this embodiment includes one of the following: Announce 4 Announcement, Synchronization (Sync) 4艮文, 4 流(flow_up) 4艮文, Delay Request (DelayReq) 4艮文And delay response (DelayResp) 4 艮 text. Referring to the internal structure of the aggregation ring device shown in FIG. 2, the device includes a 1588 protocol stack module, a BMC algorithm module, and a packet switching module, where the BMC algorithm module is used to run The BMC algorithm determines the type of each port on the node clock; ΡΤΡ the protocol stack module, which is used to generate and process the 艮 4艮 text; 4 艮 text exchange module, which is used to determine the type and port type of the 艮 , , According to different types #丈 corresponding processing. The performance of each port is as follows: The slave port (Slaffer port;), the received Sync message and the flow_up message need to be transparently transmitted to other primary ports (ie, the master port). And simultaneously sent to the 1588 protocol stack module. For the received DelayReq, the text is only transparently processed. For the received DelayResp 4 message, it needs to be terminated by the destination clock identifier (ClockID) and sent to the 1588 protocol stack module for processing; for the destination ClockID that does not match, the DelayResp 4 message is only transparently processed. The 1588 4 艮 text sent by the 1588 protocol stack module is sent normally. The monthly port (Server port;), all received 1588v2 4 files are terminated on this port (not transparently transmitted, preventing the lower level 1588 4 text from traversing to the upper 1588v2 network), and must be discarded for the received Announce text. The BMC algorithm module is prevented from calculating this port as a Slave port; the received DelayDeq 4 message or other redundant 1588v2 message is processed or discarded by the 1588 protocol stack module. The 4发出 protocol sent by the 1588 protocol stack module is not filtered (including Announce, Sync, Flow_Up, DelayResp). The master port (Master port;) needs to transparently transmit the received Announce 4 file and send it to the 1588 protocol stack module to participate in the BMC algorithm. For the received Sync, Flow_Up, DelayReq, and DelayResp 4, only the transparent transmission processing is required. The Announce 4 message issued by the platform needs to be issued normally. Although the BMC algorithm module calculates that the port is the Master port, the port does not send the Sync message. In this embodiment, by configuring a new clock type BC+TC on the aggregation device and performing synchronization operations based on the type, the problem of poor synchronization between devices in the aggregation network is solved, and the robustness of network time synchronization is enhanced. In addition, the time synchronization of the aggregation ring device will not affect the time synchronization of the aggregation ring device, and the time synchronization between the devices in the aggregation network can be hierarchically processed, that is, only the aggregation ring device can provide the access ring device. time. It simplifies the synchronization between devices in the converged network and improves system performance. Embodiment 1 This embodiment is described by taking the aggregation network shown in FIG. 3 as an example, where devices 1, 2, 3, and 5 are aggregation ring devices, and GE accesses are hanged on devices 3, 4, and 5 Ring One, GE Access ring 2, GE access ring 3, and GE access ring 4. The clocks on the GE access ring are the access ring devices. The clock types configured on the aggregation ring device and the access ring device are the same as those configured in the previous embodiment. That is, the aggregation ring devices 1 and 2 are set as boundaries in Figure 3. Clock function, devices 3, 4, 5 are set to boundary clock + transparent clock function (such as E2E transparent clock). All devices on the access ring are set to boundary clocks. A TD base station is connected to the access ring device, and the TD base station is set to a normal clock. All PTP devices use the one-step clock mode defined by 1588v2.
1. 图 3所示网络为一 PTP时钟域, JLi或延时测量机制为 E2E方式。 在 该时钟域中, 边界时钟, 普通时钟, 边界时钟 +透传时钟, 都启用 BMC算 法。 2. 设备 1的边界时钟的时间源来自 GPS , 且为该 PTP i或的 GM时钟。 才艮据 BMC算法, 其链路上的端口作为 master端口。 此端口发送 Announce 艮文和 sync 艮文, 以及响应 DelayReq 艮文, 即发送 DelayResp 艮文。 1. The network shown in Figure 3 is a PTP clock domain, and the JLi or delay measurement mechanism is E2E. In this clock domain, the BMC algorithm is enabled for the boundary clock, the normal clock, the boundary clock + the transparent transmission clock. 2. The time source of the boundary clock of device 1 is from GPS and is the GP clock of the PTP i or . According to the BMC algorithm, the port on the link acts as the master port. This port sends the Announce message and the sync message, and responds to the DelayReq message, which sends the DelayResp message.
3. 在汇聚环上的设备 3 , 4, 5 的节点时钟上, 指定与接入环设备相连 的端口为 server端口。 此节点时钟运行 BMC算法, 会选择出其中一个端口 为 slave端口, 一个端口为 master端口。 比如对于设备 4, port2 (端口 2 )为 slave端口, portl (端口 1 )为 master端口, port3 (端口 3 )和 port4 (端口 4 ) 为 server端口; 则设备 4时间同步于设备 1。 3. On the node clock of devices 3, 4, and 5 on the aggregation ring, specify the port connected to the access ring device as the server port. This node clock runs the BMC algorithm and selects one of the ports as the slave port and one port as the master port. For example, for device 4, port2 (port 2) is the slave port, portl (port 1) is the master port, port3 (port 3) and port4 (port 4) are the server ports; then device 4 is synchronized to device 1.
4. 汇聚环上的设备 4根据端口的类型对报文进行处理, 以图 2所示的 汇集环设备为例, 针对不同的端口类型, 各模块参与 4艮文的处理如下: port2: 接收 Announce和 sync 4艮文, 上送到 1588协议栈模块, 并转发 到 portl端口。 接收到 DelayReq 4艮文转发到 portl。 接收 DelayResp 4艮文, 对 于目的 ClockID匹配的上送到 1588协议栈模块, 不匹配的转发到 portl , 发 送 1588十办议栈模块生成的 Announce和 DelayReq 艮文。 portl : 接) Announce 艮文并上送 1588十办议栈模块, 并转发到 port2。 接收到 Sync、 DelayReq, DelayResp 4艮文后, 转发到 port2。 发送 1588十办议 栈模块生成的 Announce 艮文。 port3 , port4: 接收到 Announce 4艮文后丢弃, 接收到的正常的 DelayReq 艮文或其它冗余 1588v2 4艮文交由 1588协议栈模块处理或丢弃, 发送 1588 十办议栈模块生成的 Announce, Sync, DelayResp 4艮文。 5. 接入环中的所有设备都运行 BMC算法, 会决定出链路中的端口一个 为 slave端口, 其他的为 master端口。 所有基站运行 BMC算法, 决定出与接 入环设备相连的端口状态为 slave 端口。 则接入环设备同步于汇聚环设备。 基站同步于接入环设备, 最终达到全网时间同步。 本实施例通过提供一种新的时钟类型: 边界时钟 +透明时钟。 并提出一 新的端口类型: server端口。 此端口类型在 PTP标准中的 master端口类型基 础上, 新增加一些特性, 例如, server端口具有将所有收到的 1588v2 ·¾文终 结 (不能透传, 防止下级 1588 4艮文穿越到上级 1588v2网络中) 的功能, 对 于收到的 Announce 4艮文丢弃, 防止 BMC算法模块将此端口计算成 slave端 口; 对于收到的正常的 DelayReq 4艮文或其它冗余 1588v2 4艮文交由 1588协 议栈模块处理或丢弃。 对于 1588协议栈模块发出的 4艮文 (包括 Announce, Sync, Flow_Up或 DelayResp ) 不作过滤。 边界时钟 +透明时钟既有边界时 钟的功能, 又有透明时钟的功能。 此时钟类型可以有一个 slave 端口, 多个 master端口。 多个 master端口可以指定其中的某个或者某几个是透传端口, 且也可以指定其中某个或者某几个为 server端口。 例如: 若此网元为汇聚环设备, 且需要给接入环设备提供时钟时间。 则 可以人工指定相应的端口为 server端口, 此端口参与 BMC算法运算时, 固 定为 master端口。 只从该端口发送 Announce 4艮文, 不接) Announce 4艮文。 且该端口不透传其他端口过来的 PTP报文。 经过 BMC算法的运行此节点时 钟会选择出每个 PTP端口的状态。 比如会有一个 slave +透传端口, 会有一 个或者多个 server端口, 会有一个或者多个透传端口。 电信运营商在部署 1588v2 时间同步网络时, 若部署成一个汇聚环下挂 多个接入环的形式, 则可以应用本发明实施例提供的时钟类型。 该类型的应 用可以提高汇聚环上的节点时钟的时间同步性能。 可以为接入环设备提供时 间, 同时能够阻断汇聚环与接入环设备的互相千 4尤; 并且这种方式简化了 1588v2时间同步网的复杂度, 以及提高 1588v2时间同步网的管理的简便性 时钟类型进行互联互通。 参见图 4, 本发明实施例还提供了一种汇聚环设备, 该设备包括: 端口类型确定模块 42 , 用于确定当前端口的端口类型; 其中, 汇聚环设备配置有边界时钟与透明时钟的功能; 该端口类型包括 主端口、 从端口和服务端口, 服务端口为与接入环相连的端口; 艮文处理模块 44, 用于按照端口类型确定模块 42确定的端口类型处理 精确时间协议 PTP报文,使汇聚环设备所在的汇聚式网络中设备间达到同步。 4艮文处理模块 44 包括: 4艮文发送单元, 用于确定当前端口的类型为服 务端口时, 从当前端口发送生成的 PTP报文; 报文终结单元, 用于确定当前 端口的类型为服务端口时, 丢弃当前端口接收到的 PTP报文。 本实施例中的 PTP 4艮文包括以下之一: 通告 ( Announce ) 4艮文、 同步 ( Sync ) 4艮文、 流上 4艮(flow_up ) 4艮文、 延时请求( DelayReq ) 4艮文和延时 响应 (DelayResp ) 4艮文。 报文处理模块 44按照端口的类型对 PTP报文的处理如下: 从端口 ( Slave端口;), 对于收到的 Sync报文和 flow_up报文需要透传到 其他的主端口 (即 master端口), 并同时上送至 1588协议栈模块。 对于收到 的 DelayReq 4艮文只故透传处理。对于收到的 DelayResp 4艮文, 需要按目的时 钟标识 ( ClockID ) 终结并上送 1588协议栈模块处理; 对于目的 ClockID不 匹配的 DelayResp 4艮文只故透传处理。 对于 1588协议栈模块发出的 1588 4艮 文正常发送。 月艮务端口 ( Server端口;), 所有收到的 1588v2 4艮文在此端口上终结 (不 能透传, 防止下级 1588 4艮文穿越到上级 1588v2 网络中), 对于收到的 Announce 文必须丢弃, 防止 BMC算法模块将此端口计算成 Slave端口; 对于收到的正常的 DelayReq 4艮文或其它冗余 1588v2 4艮文交由 1588协议栈 模块处理或丢弃。 对于 1588 协议栈模块发出的 4艮文不作过滤 ( 包括 Announce、 Sync、 Flow—Up、 DelayResp )。 主端口(Master端口;),对于收到的 Announce 4艮文需要透传并上送 1588 协议栈模块, 参与 BMC算法运算。 对于收到的 Sync、 Flow_Up、 DelayReq, DelayResp 4艮文只需要故透传处理。对于平台发出的 Announce 4艮文需要正常 发出。 虽然 BMC算法模块运算出该端口为 Master端口, 但是该端口不发送 Sync 艮文。 优选地, 汇聚环设备包括: 算法配置模块, 用于配置自身的时钟 PTP端 口状态选择算法为最佳主时钟 BMC算法; 端口类型选择模块, 用于运行算 法配置模块配置的 BMC算法, 从自身的端口中选择一个端口为从端口, 至 少一个端口为主端口, 并从主端口中选择至少一个端口为 艮务端口。 上述描述是以该汇聚环设备连接有接入环为例进行的说明, 当本实施例 的汇集环设备未连接接入环时, 其时钟类型为边界时钟。 其中, 该未连接接 入环的汇聚环设备的时间源来自全球定位系统 GPS , 且作为汇聚式网络的 GM时钟。 本实施例的汇集环设备配置的时钟类型为边界时钟 +透明时钟, 因此其 可以才艮据端口的类型对 PTP 4艮文进行不同的处理, 达到向接入环提供时间的 目的, 解决了汇聚式网络中设备间的同步性较差的问题, 增强了网络时间同 步的健壮性。 并且, 接入环设备通过上述配置, 将不会影响汇聚环设备的时 间同步, 使汇聚式网络中设备间的时间同步达到了分层处理, 即只能由汇聚 环设备给接入环设备提供时间。 简化了汇聚式网络中设备间的同步操作, 提 高了系统性能。 参见图 5 , 本发明实施例还提供了一种汇聚式网络系统, 该系统包括: 汇聚环设备 50和接入环设备 60; 汇聚环设备 50包括: 端口类型确定模块 52 , 用于确定当前端口的端口类型; 其中, 汇聚环设 备 50 配置有边界时钟与透明时钟的功能; 端口类型包括主端口、 从端口和 月艮务端口, 月艮务端口为与接入环相连的端口; 艮文处理模块 54,用于按照端口类型确定模块确定的端口类型处理 3晴确 时间协议 PTP报文, 使汇聚式网络系统中设备间达到同步; 接入环设备 60包括: 同步模块 62, 用于根据其端口的端口类型处理 PTP报文, 接入环设备 60的时钟类型为边界时钟或透明时钟,接入环设备的端口类型包括主端口和 从端口。 汇聚环设备 50具体对 PTP 4艮文的处理与上述实施例相同, 例如: 当汇 聚环设备确定端口类型为服务端口时, 从该端口发送生成的 PTP报文, 丢弃 该端口接收到的 PTP报文。 基于此, 报文处理模块 54包括: 艮文发送单元, 用于确定当前端口的类型为月艮务端口时, 从当前端口发 送生成的 PTP 4艮文; 艮文终结单元, 用于确定当前端口的类型为月艮务端口时, 丢弃当前端口 接收到的 PTP报文。 其中, PTP报文包括以下之一: 通告 (Announce )报文、 同步 ( Sync ) 艮文、 流上 4艮 ( flow_up ) 4艮文、 延时请求 ( DelayReq ) 4艮文和延时响应 ( DelayResp ) 4艮文。 优选地, 该系统还包括: 与接入环设备相连的传输偏差 TD基站, 该 TD 基站配置有普通时钟功能, 用于与接入环设备 60进行同步。 优选地, 汇聚环设备 50 包括: 第一算法配置模块, 用于配置自身的时 钟 PTP端口状态选择算法为最佳主时钟 BMC算法; 端口类型选择模块, 用 于运行算法配置模块配置的 BMC算法, 从自身的端口中选择一个端口为从 端口, 至少一个端口为主端口, 并从主端口中选择至少一个端口为 艮务端口。 与上述汇聚环设备 50相对应地, 接入环设备 60包括: 第二算法配置模 块, 用于配置自身的时钟 PTP端口状态选择算法为最佳主时钟 BMC算法; 第二端口类型选择模块, 用于运行算法配置模块配置的 BMC算法, 从自身 的端口中选择一个端口为从端口, 其余端口为主端口。 上述描述是以该汇聚环设备 50 连接有接入环为例进行的说明, 对于未 连接接入环的汇集环设备, 其时钟类型配置为边界时钟。 其中, 该未连接接 入环的汇聚环设备的时间源来自全球定位系统 GPS , 且作为汇聚式网络的 GM时钟。 本实施例的汇集环设备配置的时钟类型为边界时钟 +透明时钟, 因此其 可以才艮据端口的类型对 PTP 4艮文进行不同的处理, 达到向接入环提供时间的 目的, 解决了汇聚式网络中设备间的同步性较差的问题, 增强了网络时间同 步的健壮性。 并且, 接入环设备通过上述配置, 将不会影响汇聚环设备的时 间同步, 使汇聚式网络中设备间的时间同步达到了分层处理, 即只能由汇聚 环设备给接入环设备提供时间。 简化了汇聚式网络中设备间的同步操作, 提 高了系统性能。 从以上的描述中可以看出, 本发明实现了如下技术效果: 提高汇聚环上 的节点时钟的时间同步性能。 可以为接入环设备提供时间, 同时能够阻断汇 聚环与接入环设备的互相千扰。 简化 1588v2 时间同步网的复杂度, 以及提 高 1588v2时间同步网的管理的简便性和安全性。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可 以用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布 在多个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程 序代码来实现, 从而, 可以将它们存储在存储装置中由计算装置来执行, 并 且在某些情况下, 可以以不同于此处的顺序执行所示出或描述的步骤, 或者 将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制作 成单个集成电路模块来实现。 这样, 本发明不限制于任何特定的硬件和软件 结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本 领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的 ^"神和 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护 范围之内。 4. The device 4 on the aggregation ring processes the packet according to the type of the port. Take the aggregation ring device shown in Figure 2 as an example. For different port types, each module participates in the following processing: port2: Receive Announce And sync 4 艮 text, sent to the 1588 protocol stack module, and forwarded to the port1 port. Received DelayReq 4 转发 text forwarded to portl. After receiving the DelayResp 4 message, the destination block ID is matched and sent to the 1588 protocol stack module, and the unmatched forwarding is forwarded to portl, and the Announce and DelayReq messages generated by the 1588 ten-layer stack module are sent. Portl : Connect) Announce 艮 并 and send 1588 10 to discuss the stack module, and forwarded to port2. After receiving the Sync, DelayReq, and DelayResp 4 messages, it is forwarded to port2. Send the Announce message generated by the 1588 Ten-Stack Module. Port3, port4: Receive the Announce 4 message and discard it. The received DelayReq message or other redundant 1588v2 message is processed or discarded by the 1588 protocol stack module, and the Announce generated by the 1588 10 stack module is sent. Sync, DelayResp 4 艮 text. 5. All devices in the access ring run the BMC algorithm, which determines that one port on the link is a slave port, and the others are master ports. All base stations run the BMC algorithm to determine the port status of the port connected to the access ring device as the slave port. The access ring device is synchronized to the aggregation ring device. The base station synchronizes with the access ring device, and finally reaches the entire network time synchronization. This embodiment provides a new type of clock: boundary clock + transparent clock. And propose a new port type: server port. This port type is based on the master port type in the PTP standard. Some new features are added. For example, the server port has all the received 1588v2 · 3⁄4 texts terminated (not transparently transmitted, preventing the lower level 1588 4 text from traversing to the upper 1588v2 network. The function of the), for the received Announce 4 file discard, prevents the BMC algorithm module from computing this port as a slave port; for the received normal DelayReq 4 text or other redundant 1588v2 4 艮 text by the 1588 protocol stack The module processes or discards. The 4艮 messages (including Announce, Sync, Flow_Up or DelayResp) issued by the 1588 protocol stack module are not filtered. The boundary clock + transparent clock has both the function of a boundary clock and the function of a transparent clock. This clock type can have one slave port and multiple master ports. Multiple master ports can specify one or several of them to be transparent ports, and you can also specify one or several of them as server ports. For example: If the NE is an aggregation ring device, you need to provide clock time to the access ring device. You can manually specify the corresponding port as the server port. When this port participates in the BMC algorithm operation, it is fixed as the master port. Only the Announce 4 message is sent from this port, but the Announce 4 message is not received. The port does not transparently transmit PTP packets from other ports. After running the BMC algorithm, this node clock will select the state of each PTP port. For example, there will be a slave + transparent port, there will be one or more server ports, there will be one or more transparent ports. When a telecom operator deploys a 1588v2 time synchronization network, if it is deployed in the form of a plurality of access rings in an aggregation ring, the clock type provided by the embodiment of the present invention may be applied. This type of application can improve the time synchronization performance of the node clock on the aggregation ring. It can provide time for the access ring device, and can block the mutual connection between the aggregation ring and the access ring device. This method simplifies the complexity of the 1588v2 time synchronization network and improves the management of the 1588v2 time synchronization network. Sexual clock types are interconnected. Referring to FIG. 4, an embodiment of the present invention further provides a convergence ring device, where the device includes: a port type determining module 42 configured to determine a port type of a current port; The aggregation ring device is configured with a boundary clock and a transparent clock. The port type includes a primary port, a secondary port, and a service port, and the service port is a port connected to the access ring. The packet processing module 44 is configured according to the port type. The port type determined by the determining module 42 processes the precise time protocol PTP packet, so that the devices in the convergence network where the aggregation ring device is located are synchronized. The message processing module 44 includes: a message sending unit, configured to: when the type of the current port is a service port, send the generated PTP message from the current port; the message termination unit is configured to determine that the current port type is a service. The port discards the PTP packets received by the current port. The PTP 4 text in this embodiment includes one of the following: Announce 4 Announcement, Synchronization (Sync) 4艮文, 4 流(flow_up) 4艮文, Delay Request (DelayReq) 4艮文And delay response (DelayResp) 4 艮 text. The packet processing module 44 processes the PTP packet according to the port type as follows: The slave port (Slave port;), the received Sync packet and the flow_up packet need to be transparently transmitted to other primary ports (ie, the master port). And simultaneously sent to the 1588 protocol stack module. For the received DelayReq 4 艮 text only transparent processing. For the received DelayResp 4 message, it needs to be terminated by the destination clock identifier (ClockID) and sent to the 1588 protocol stack module for processing; for the destination ClockID that does not match, the DelayResp 4 message is only transparently processed. The 1588 4 艮 text sent by the 1588 protocol stack module is sent normally. The monthly port (Server port;), all received 1588v2 4 files are terminated on this port (not transparently transmitted, preventing the lower level 1588 4 text from traversing to the upper 1588v2 network), and must be discarded for the received Announce text. The BMC algorithm module is prevented from calculating this port as a Slave port; the received DelayDeq 4 message or other redundant 1588v2 message is processed or discarded by the 1588 protocol stack module. The 4发出 protocol sent by the 1588 protocol stack module is not filtered (including Announce, Sync, Flow_Up, DelayResp). The master port (Master port;) needs to transparently transmit the received Announce 4 file and send it to the 1588 protocol stack module to participate in the BMC algorithm. For the received Sync, Flow_Up, DelayReq, DelayResp 4, only the transparent transmission processing is required. The Announce 4 message issued by the platform needs to be issued normally. Although the BMC algorithm module calculates that the port is the Master port, the port does not send the Sync message. Preferably, the convergence ring device includes: an algorithm configuration module, configured to configure its own clock PTP end The port state selection algorithm is the best master clock BMC algorithm; the port type selection module is used to run the BMC algorithm configured by the algorithm configuration module, and one port is selected as a slave port from the port, at least one port is the master port, and the master port Select at least one port in the port as the service port. The description is based on the example that the aggregation ring device is connected to the access ring. When the aggregation ring device in this embodiment is not connected to the access ring, the clock type is the boundary clock. The time source of the convergence ring device that is not connected to the access ring is from the global positioning system GPS, and is used as the GM clock of the converged network. The clock type configured by the aggregation ring device in this embodiment is a boundary clock and a transparent clock, so that the PTP 4 can be processed differently according to the type of the port, and the time for providing time to the access ring is achieved, and the convergence is solved. The problem of poor synchronization between devices in a network improves the robustness of network time synchronization. In addition, the time synchronization of the aggregation ring device will not affect the time synchronization of the aggregation ring device, and the time synchronization between the devices in the aggregation network can be hierarchically processed, that is, only the aggregation ring device can provide the access ring device. time. It simplifies the synchronization between devices in the converged network and improves system performance. Referring to FIG. 5, an embodiment of the present invention further provides a converged network system, where the system includes: an aggregation ring device 50 and an access ring device 60. The aggregation ring device 50 includes: a port type determining module 52, configured to determine a current port. The port type of the aggregation ring device 50 is configured with a boundary clock and a transparent clock; the port type includes a primary port, a secondary port, and a monthly service port, and the monthly service port is a port connected to the access ring; The module 54 is configured to process the PTP packet according to the port type determined by the port type determining module to synchronize the devices in the aggregation network system. The access ring device 60 includes: a synchronization module 62, configured to: The port type of the port handles PTP packets. The clock type of the access ring device 60 is a boundary clock or a transparent clock. The port types of the access ring device include a primary port and a secondary port. The aggregation ring device 50 specifically processes the PTP 4 packet in the same manner as the foregoing embodiment. For example, when the aggregation ring device determines that the port type is a service port, the device sends the generated PTP packet from the port and discards the PTP packet received by the port. Text. Based on this, the message processing module 54 includes: The sending unit is configured to: when the type of the current port is a monthly port, the PTP 4 message is sent from the current port; and the terminating unit is used to determine that the current port type is a monthly port, and is discarded. PTP packet received by the current port. The PTP packet includes one of the following: Announce message, Synchronization (Sync) message, stream 4 (flow_up) 4 message, Delay request (DelayReq) 4 message and delay response (DelayResp) ) 4 艮 text. Preferably, the system further includes: a transmission offset TD base station connected to the access ring device, where the TD base station is configured with a common clock function for synchronizing with the access ring device 60. Preferably, the convergence ring device 50 includes: a first algorithm configuration module, configured to configure its own clock PTP port state selection algorithm as an optimal master clock BMC algorithm; a port type selection module, configured to run a BMC algorithm configured by an algorithm configuration module, Select one port from its own port as the slave port, at least one port as the master port, and select at least one port from the master port as the slave port. Corresponding to the above-mentioned convergence ring device 50, the access ring device 60 includes: a second algorithm configuration module, configured to configure its own clock PTP port state selection algorithm as an optimal master clock BMC algorithm; a second port type selection module, Run the BMC algorithm configured by the algorithm configuration module to select one port from the port as the slave port and the other ports as the master port. The description is based on the example in which the aggregation ring device 50 is connected to the access ring. For the aggregation ring device that is not connected to the access ring, the clock type is configured as a boundary clock. The time source of the convergence ring device that is not connected to the access ring is from the global positioning system GPS, and is used as the GM clock of the converged network. The clock type configured by the aggregation ring device in this embodiment is a boundary clock and a transparent clock, so that the PTP 4 can be processed differently according to the type of the port, and the time for providing time to the access ring is achieved, and the convergence is solved. The problem of poor synchronization between devices in a network improves the robustness of network time synchronization. In addition, the time synchronization of the aggregation ring device will not affect the time synchronization of the aggregation ring device, and the time synchronization between the devices in the aggregation network can be hierarchically processed, that is, only the aggregation ring device can provide the access ring device. time. It simplifies the synchronization between devices in the converged network and improves system performance. As can be seen from the above description, the present invention achieves the following technical effects: Improve the convergence ring Time synchronization performance of the node clock. It can provide time for the access ring device, and can block mutual interference between the aggregation ring and the access ring device. Simplify the complexity of the 1588v2 time synchronization network and improve the simplicity and security of the 1588v2 time synchronization network. Obviously, those skilled in the art should understand that 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. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种汇聚式网络中设备间的同步方法, 其特征在于, 包括: A method for synchronizing devices between devices in a converged network, comprising:
汇聚环设备确定当前端口的端口类型;  The aggregation ring device determines the port type of the current port;
其中, 所述汇聚环设备配置有边界时钟与透明时钟的功能; 所述端 口类型包括主端口、 从端口和服务端口, 所述服务端口为与接入环相连 的端口;  The aggregation ring device is configured with a boundary clock and a transparent clock. The port type includes a primary port, a secondary port, and a service port, and the service port is a port connected to the access ring.
所述汇聚环设备按照确定的所述端口类型处理精确时间协议 PTP报 文, 使所述汇聚式网络中设备间达到同步。  The aggregation ring device processes the precise time protocol PTP packet according to the determined port type, so that the devices in the convergence network are synchronized.
2. 根据权利要求 1所述的方法, 其特征在于, 当所述汇聚环设备确定所述 端口类型为所述艮务端口时, The method according to claim 1, wherein when the aggregation ring device determines that the port type is the service port,
所述汇聚环设备按照确定的所述端口类型处理精确时间协议 PTP报 文包括: 从所述当前端口发送生成的 PTP报文, 丢弃所述当前端口接收 到的 PTP 4艮文。  The processing of the PTP message by the aggregation ring device according to the determined port type includes: sending the generated PTP message from the current port, and discarding the PTP message received by the current port.
3. 根据权利要求 1所述的方法, 其特征在于, 在所述汇聚环设备确定当前 端口的端口类型之前, 所述方法还包括: The method according to claim 1, wherein before the determining, by the aggregation ring device, the port type of the current port, the method further includes:
配置所述接入环上的接入环设备的时钟类型为边界时钟或透明时 钟,其中,所述透明时钟为点到点 P2P透明时钟或端到端 E2E透明时钟; 配置所述接入环设备下挂的传输偏差 TD基站的时钟类型为普通时 钟。  The clock type of the access ring device on the access ring is configured as a boundary clock or a transparent clock, where the transparent clock is a point-to-point P2P transparent clock or an end-to-end E2E transparent clock. The transmission delay of the downlink TD base station is a normal clock.
4. 根据权利要求 3所述的方法, 其特征在于, 所述汇聚环设备按照确定的 所述端口类型处理 PTP报文之后, 所述方法还包括: 所述接入环设备根 据其端口的端口类型处理 PTP报文, 所述接入环设备的端口类型包括主 端 π和从端 π 。 The method according to claim 3, wherein after the aggregation ring device processes the PTP packet according to the determined port type, the method further includes: the port of the access ring device according to the port thereof The type of the PTP packet is processed, and the port type of the access ring device includes a primary end π and a secondary end π.
5. 根据权利要求 1-4任一项所述的方法, 其特征在于, 在所述汇聚环设备 确定当前端口的端口类型之前, 所述方法还包括: The method according to any one of claims 1-4, wherein before the determining, by the aggregation ring device, the port type of the current port, the method further includes:
配置所述汇聚式网络中未连接接入环的汇聚环设备的时钟类型为边 界时钟。 Configure the clock type of the aggregation ring device that is not connected to the access ring in the aggregation network as the boundary clock.
6. 根据权利要求 5所述的方法, 其特征在于, 所述未连接接入环的汇聚环 设备的时间源来自全球定位系统 GPS , 且作为所述汇聚式网络的祖父 GM时钟。 The method according to claim 5, wherein the time source of the convergence ring device not connected to the access ring is from the global positioning system GPS, and serves as the grandfather GM clock of the converged network.
7. 根据权利要求 1-4任一项所述的方法, 其特征在于, 所述 PTP报文包括 以下之一: 通告 Announce 4艮文、 同步 Sync 4艮文、 ¾¾上4艮 flow_up 4艮文、 延时请求 DelayReq 艮文和延时响应 DelayResp 艮文。 The method according to any one of claims 1-4, wherein the PTP message comprises one of the following: an announcement Announce 4, a synchronous Sync 4, a 3⁄43⁄4, a 4 flow_up 4 text Delay request DelayReq and delay response DelayResp.
8. 根据权利要求 1-4任一项所述的方法, 其特征在于, 所述汇聚环设备确 定当前端口的端口类型之前, 所述方法还包括: The method according to any one of claims 1-4, wherein, before the aggregation ring device determines the port type of the current port, the method further includes:
配置所述汇聚式网络中的设备的时钟 PTP端口状态选择算法为最佳 主时钟 BMC算法;  Configure the clock of the device in the aggregation network. The PTP port state selection algorithm is the best master clock BMC algorithm.
所述汇聚环设备运行所述 BMC 算法, 从所述汇聚环设备的端口中 选择一个端口为从端口, 至少一个端口为主端口, 并从所述主端口中选 择至少一个端口为服务端口;所述接入环上的接入环设备运行所述 BMC 算法, 从所述接入环设备的端口中选择一个端口为从端口, 其余端口为 主端口。  The aggregation ring device runs the BMC algorithm, and selects one port from the port of the aggregation ring device as a slave port, at least one port is a master port, and selects at least one port from the master port as a service port; The access ring device on the access ring runs the BMC algorithm, and selects one port from the port of the access ring device as a slave port, and the remaining ports are master ports.
9. 一种汇聚环设备, 其特征在于, 包括: 端口类型确定模块, 用于确定当前端口的端口类型; An aggregation ring device, comprising: a port type determining module, configured to determine a port type of a current port;
其中, 所述汇聚环设备配置有边界时钟与透明时钟的功能; 所述端 口类型包括主端口、 从端口和服务端口, 所述服务端口为与接入环相连 的端口;  The aggregation ring device is configured with a boundary clock and a transparent clock. The port type includes a primary port, a secondary port, and a service port, and the service port is a port connected to the access ring.
艮文处理模块, 用于按照所述端口类型确定模块确定的所述端口类 型处理精确时间协议 PTP报文, 使所述汇聚环设备所在的汇聚式网络中 设备间达到同步。  The processing module is configured to process the precise time protocol PTP packet according to the port type determined by the port type determining module, so that devices in the convergence network where the aggregation ring device is located are synchronized.
10. 根据权利要求 9所述的汇聚环设备, 其特征在于, 所述报文处理模块包 括: The aggregation ring device according to claim 9, wherein the message processing module comprises:
艮文发送单元, 用于确定所述当前端口的类型为所述月艮务端口时, 从所述当前端口发送生成的 PTP 4艮文;  a sending unit, configured to send the generated PTP 4 message from the current port when the type of the current port is the monthly port;
艮文终结单元, 用于确定所述当前端口的类型为所述月艮务端口时, 丢弃所述当前端口接收到的 PTP报文。 The essay terminating unit is configured to discard the PTP packet received by the current port when the type of the current port is the monthly port.
11. 根据权利要求 9或 10所述的汇聚环设备, 其特征在于, 所述汇聚环设备 包括: The aggregation ring device according to claim 9 or 10, wherein the convergence ring device comprises:
算法配置模块, 用于配置自身的时钟 PTP端口状态选择算法为最佳 主时钟 BMC算法;  The algorithm configuration module is configured to configure its own clock. The PTP port state selection algorithm is the best master clock BMC algorithm;
端口类型选择模块, 用于运行所述算法配置模块配置的所述 BMC 算法, 从自身的端口中选择一个端口为从端口, 至少一个端口为主端口, 并从所述主端口中选择至少一个端口为月艮务端口。  a port type selection module, configured to run the BMC algorithm configured by the algorithm configuration module, select one port from the port as a slave port, at least one port is a master port, and select at least one port from the master port It is the monthly port.
12. 一种汇聚式网络系统, 其特征在于, 包括: 汇聚环设备和接入环设备; 所述汇聚环设备包括: An aggregation network system, comprising: a convergence ring device and an access ring device; the convergence ring device includes:
端口类型确定模块, 用于确定当前端口的端口类型; 其中, 所述汇 聚环设备配置有边界时钟与透明时钟的功能;所述端口类型包括主端口、 从端口和艮务端口, 所述艮务端口为与接入环相连的端口; 艮文处理模块, 用于按照所述端口类型确定模块确定的所述端口类 型处理精确时间协议 PTP报文, 使所述汇聚式网络系统中设备间达到同 步;  a port type determining module, configured to determine a port type of the current port, where the aggregation ring device is configured with a boundary clock and a transparent clock; the port type includes a primary port, a secondary port, and a service port, and the service port The port is a port connected to the access ring, and the processing module is configured to process the precise time protocol PTP packet according to the port type determined by the port type determining module, so that the devices in the convergence network system are synchronized. ;
所述接入环设备包括:  The access ring device includes:
同步模块, 用于根据其端口的端口类型处理 PTP报文, 所述接入环 设备的时钟类型为边界时钟或透明时钟, 所述接入环设备的端口类型包 括主端口和从端口。  The synchronization module is configured to process the PTP packet according to the port type of the port. The clock type of the access ring device is a boundary clock or a transparent clock, and the port type of the access ring device includes a primary port and a secondary port.
13. 根据权利要求 12所述的系统, 其特征在于, 所述报文处理模块包括: 艮文发送单元, 用于确定所述当前端口的类型为所述月艮务端口时, 从所述当前端口发送生成的 PTP 4艮文; The system according to claim 12, wherein the message processing module comprises: a message sending unit, configured to determine, when the type of the current port is the monthly port, from the current The port sends the generated PTP 4 text;
艮文终结单元, 用于确定所述当前端口的类型为所述月艮务端口时, 丢弃所述当前端口接收到的 PTP报文。  The essay terminating unit is configured to discard the PTP packet received by the current port when the type of the current port is the monthly port.
14. 才艮据权利要求 12所述的系统, 其特征在于, 所述系统还包括: 与所述接 入环设备相连的传输偏差 TD基站, 所述 TD基站配置有普通时钟功能, 用于与所述接入环设备进行同步。 The system according to claim 12, wherein the system further comprises: a transmission offset TD base station connected to the access ring device, wherein the TD base station is configured with a common clock function, and is configured to The access ring device performs synchronization.
PCT/CN2010/079519 2010-09-15 2010-12-07 Method, system and convergence loop apparatus for synchronization between apparatuses in convergence network WO2012034330A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010286305.5 2010-09-15
CN 201010286305 CN101938318B (en) 2010-09-15 2010-09-15 Synchronous method, system and convergent ring device among devices in convergent network

Publications (1)

Publication Number Publication Date
WO2012034330A1 true WO2012034330A1 (en) 2012-03-22

Family

ID=43391471

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/079519 WO2012034330A1 (en) 2010-09-15 2010-12-07 Method, system and convergence loop apparatus for synchronization between apparatuses in convergence network

Country Status (2)

Country Link
CN (1) CN101938318B (en)
WO (1) WO2012034330A1 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938318B (en) * 2010-09-15 2013-02-27 中兴通讯股份有限公司 Synchronous method, system and convergent ring device among devices in convergent network
EP2487819B1 (en) 2011-02-10 2015-08-05 Alcatel Lucent Network element for a packet-switched network
CN102355396B (en) * 2011-07-21 2017-03-15 中兴通讯股份有限公司 The creation method of split-second precision protocol port, boundary clock equipment and ordinary clock equipment
CN102404104B (en) * 2011-11-24 2018-01-19 中兴通讯股份有限公司 Adaptive synchronicity method and system based on different delayed time mechanism
CN103428086B (en) * 2012-05-25 2016-08-03 北京东土科技股份有限公司 The passive port electoral machinery of transparent clock based on PTP protocol and device
CN102811171B (en) * 2012-07-25 2015-08-19 华为技术有限公司 A kind of transmitting method, Apparatus and system
CN103929294B (en) * 2014-05-05 2017-09-12 浙江大学 A kind of clock system and synchronous method
CN105846937B (en) * 2015-01-12 2019-07-23 中兴通讯股份有限公司 Time processing method and device
CN105429725B (en) * 2015-11-17 2018-06-12 中南大学 A kind of submicrosecond grade clock synchronizing method and system based on SOPC networkings
CN108462548B (en) * 2017-02-22 2021-09-03 深圳市中兴软件有限责任公司 Time synchronization method and device
CN112104432B (en) * 2019-06-17 2023-04-25 中国移动通信集团浙江有限公司 Time verification method, system, base station and bearing network in mobile communication network

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170373A (en) * 2007-11-27 2008-04-30 上海自动化仪表股份有限公司 Clock synchronization realization method for loop network
CN101459691A (en) * 2008-12-16 2009-06-17 中兴通讯股份有限公司 Method and system for realizing boundary clock in IEEE1588 protocol
CN101616163A (en) * 2009-07-27 2009-12-30 中兴通讯股份有限公司 Precise time transfer protocol message processing method and device
CN101645869A (en) * 2008-08-07 2010-02-10 上海思弘瑞电力控制技术有限公司 Switch with submicrosecond clock and switching processing method thereof
CN101938318A (en) * 2010-09-15 2011-01-05 中兴通讯股份有限公司 Synchronous method, system and convergent ring device among devices in convergent network

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7689854B2 (en) * 2006-09-22 2010-03-30 Agilent Technologies, Inc. Method and apparatus for establishing IEEE 1588 clock synchronization across a network element comprising first and second cooperating smart interface converters wrapping the network element
CN101820355B (en) * 2010-01-20 2012-03-28 瑞斯康达科技发展股份有限公司 Method for acquiring network topology and network element

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170373A (en) * 2007-11-27 2008-04-30 上海自动化仪表股份有限公司 Clock synchronization realization method for loop network
CN101645869A (en) * 2008-08-07 2010-02-10 上海思弘瑞电力控制技术有限公司 Switch with submicrosecond clock and switching processing method thereof
CN101459691A (en) * 2008-12-16 2009-06-17 中兴通讯股份有限公司 Method and system for realizing boundary clock in IEEE1588 protocol
CN101616163A (en) * 2009-07-27 2009-12-30 中兴通讯股份有限公司 Precise time transfer protocol message processing method and device
CN101938318A (en) * 2010-09-15 2011-01-05 中兴通讯股份有限公司 Synchronous method, system and convergent ring device among devices in convergent network

Also Published As

Publication number Publication date
CN101938318A (en) 2011-01-05
CN101938318B (en) 2013-02-27

Similar Documents

Publication Publication Date Title
WO2012034330A1 (en) Method, system and convergence loop apparatus for synchronization between apparatuses in convergence network
US10284318B1 (en) Controller-based network device timing synchronization
US9819541B2 (en) PTP over IP in a network topology with clock redundancy for better PTP accuracy and stability
JP5455138B2 (en) Method and clock device for processing high precision time protocol messages
WO2014101669A1 (en) Time synchronization method and system
CN101616163B (en) Method and device for processing precise time transfer protocol message
WO2017157170A1 (en) Method of updating clock synchronization topology, method of determining clock synchronization path, and apparatus
WO2013071807A1 (en) Method, system and apparatus for implementing hybrid networking of multiple clock synchronization technologies
US9369224B2 (en) Clock synchronization method and device
WO2014117489A1 (en) Clock synchronization method and device
WO2012068844A1 (en) Method and system for synchronizing clock of master-slave clock devices
WO2011134371A1 (en) Method for synchronizing clocks and clock synchronization device
EP3235310B1 (en) Communication network nodes and methods performed therein
WO2011160595A1 (en) Method, slave clock node and system for selecting master clock node based on precision time protocol (ptp) and link quality
WO2011017867A1 (en) Method and system for bearing time synchronization protocol in optical transport network
WO2012071910A1 (en) Method and device for achieving time synchronization
WO2010078800A1 (en) Method, apparatus and system for determining clock source
WO2013178148A1 (en) Clock synchronization method and device for communication network
WO2011131006A1 (en) Time processing device and method for precision clock synchronization protocol
CN102457346A (en) Time synchronization implementation method and clock node
CN102342051B (en) For coming the method for synchronised clock and relevant system and module by separating transmission first and second data via at least one time distribution protocol
CN102195996B (en) Time synchronization method for stacking system, stacking system and member equipment
US11750311B1 (en) Stacked network device as precision time protocol boundary clock
US20230199683A1 (en) Clock synchronization mode indication method and communication apparatus
JP5656306B1 (en) Synchronization establishment method

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10857186

Country of ref document: EP

Kind code of ref document: A1