WO2012136085A1 - Transmission method and system for synchronous state information in ethernet synchronization - Google Patents

Transmission method and system for synchronous state information in ethernet synchronization Download PDF

Info

Publication number
WO2012136085A1
WO2012136085A1 PCT/CN2012/071932 CN2012071932W WO2012136085A1 WO 2012136085 A1 WO2012136085 A1 WO 2012136085A1 CN 2012071932 W CN2012071932 W CN 2012071932W WO 2012136085 A1 WO2012136085 A1 WO 2012136085A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
port
state information
synchronization state
synchronization
Prior art date
Application number
PCT/CN2012/071932
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 WO2012136085A1 publication Critical patent/WO2012136085A1/en

Links

Classifications

    • 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/407Bus networks with decentralised control
    • H04L12/413Bus networks with decentralised control with random access, e.g. carrier-sense multiple-access with collision detection (CSMA-CD)

Abstract

Disclosed in the present invention is a transmission method and system for synchronous state information in Ethernet synchronization, wherein the method comprises: a first node receives first synchronous state information from a second node on each links between the first and the second node, wherein the quality level of the first synchronous state information is the quality level of the second node; if the first node connects the second node only, the first node sets a first port on itself that it only receives the first synchronous state information of a second port on the second node, and sends second synchronous state information to the second node on the other ports except the first node among all the nodes connected to the second node, wherein the quality level of the second synchronous state information is different from the first synchronous state information, and there is a link between the first port and the second port. The present invention achieves the effect that multi-links are prevented from connecting into a ring, so as to forward the synchronous state information downward successfully.

Description

以太网同步中的同步状态信息的传输方法和系统 技术领域 本发明涉及通信领域, 具体而言, 涉及一种以太网同步中的同步状态信息的传输 方法和系统。 背景技术 在电信服务提供商网络向下一代网络的演进中, 以太网将逐步取代准同步数字系 列 (Plesynchronous Digital Hierarchy, 简称为 PDH) 以及同步光纤网络 (Synchronous Optical Network, 简称为 SONET) I同步数字体系 ( Synchronous Digital Hierarchy, 简称为 SDH)传输网。 因此, 在一些要求严格同步的应用 (包括: 无线基站以及时分 复用和复用器 (Time Division Multiplex and Multiplexer, 简称为 TDM)电路仿真设备 (Circuit Emulation Service, 简称为 CES)中, 电信服务提供商将面临如何通过以太网 传输高品质时钟同步的挑战。 最新的标准解决办法是同步以太网 (SyncE)。 在 SyncE中, 以太网采用与 SONET / SDH相同的方式, 通过高品质、 可跟踪一 级基准时钟信号同步其位时钟。 2006年, 国际电信联盟在其 G. 8261中描述了 SyncE 概念。 2007年, 在 G8262中对 SyncE性能要求进行了标准化。规定了同步以太网网络 设备中使用的时钟的最低性能要求。 同步以太网技术广泛用于数字用户线路接入复用器(Digital Subscriber Line Access Multiplexer,简称为 DSLAM)、路由器、多业务交换平台(Multiservice Switch Platform, 简称为 MSSP)、 无源光纤网络(Passive Optical Network, 简称为 PON)及多业务接入 设备。 支持通过高带宽, 融合同步以太网链路来承载话音、 数据、 视频和传统业务。 而实现同步以太网的关键技术就是同步状态信息, 同步状态信息(Synchronization Status Message, 简称为 SSM)对下游以太交换提供确定可跟踪同步分配方案的机制并 返回主要参考时钟(Primary Reference Clock,简称为 PRC)或者利用更高质量的时钟。 同步功能将处理 SSM。 在上游网络故障状态下, 同步功能根据 SSM和预置的优先权 采取适当的操作, 选择另一个同步供给。 这可能是另一个网络供给或者是外部供给。 SSM由 G 707定义。 但是由于同步状态信息的报文格式以及同步方式的限制, 目前在许多特定的环境 中, 同步状态信息会出现成环的情况, 例如: 环网, 多链路连通等等。 以图 1的组网为例, 图 2是标准 SSM协议在图 1的组网环境下的流程。 基本的多链路联通组网,包括 DUT1 102以及 DUT2 104,其中, DUT1 102禾 P DUT2 104之间通过两条链路和 /或两条以上的链路相连。 下面以 DUT1 102和 DUT2 104之 间通过两条链路进行同步状态信息的传输为例进行说明, 以上两个网元执行的步骤如 下: 步骤 S201 : 被测器件 1 (Device Under Test, 简称为 DUT) 102自身质量等级为 2, 配置端口 11以及端口 12两条链路, 端口 11和端口 12分别对应一个时钟源, 起自动 SSM算法进行同步状态信息的传输; 步骤 S202: DUT2 104自身质量等级为 4, 配置端口 21以及端口 22两条链路, 端口 21和端口 22分别对应一个时钟源, 起自动 SSM算法进行同步状态信息的传输; 其中, 端口 11与端口 21形成一条链路, 端口 12和端口 22形成一条链路; 步骤 S203 : DUT1 102端口 11和端口 12收到 DUT2 104发送的 SSM报文, 携带 质量等级为 4, DUT1 102按照配置的优先级, 选择端口 11为时钟源; 步骤 S204: 这时 DUT1 102的端口 11被选定作为源后, 端口 12就会将质量等级 4通过 SSM报文向下游传递.; 步骤 S205: DUT2 104的端口 22收到了 DUT1 102发来的 SSM报文, 就会将端 口 22选择成为时钟源并锁定; 步骤 S206: DUT1 102和 DUT2 104同时选择了接收质量等级为 4的端口的时钟 源作为锁定源, 此时, 在 DUT1和 DUT2之间的两条链路上, 存在两个锁定源, 即实 际上是 DUT2 104自身的质量等级的锁定源,这样 DUT1和 DUT2之间端口 21向端口TECHNICAL FIELD The present invention relates to the field of communications, and in particular to a method and system for transmitting synchronization state information in Ethernet synchronization. BACKGROUND OF THE INVENTION In the evolution of a telecommunication service provider network to a next generation network, Ethernet will gradually replace the Plesynchronous Digital Hierarchy (PDH) and Synchronous Optical Network (SONET) I synchronous digital. Synchronous Digital Hierarchy (SDH) transmission network. Therefore, in some applications that require strict synchronization (including: wireless base station and Time Division Multiplex and Multiplexer (TDM) Circuit Emulation Service (CES), telecommunication service provision The business will face the challenge of how to transmit high quality clock synchronization over Ethernet. The latest standard solution is Synchronous Ethernet (SyncE). In SyncE, Ethernet uses the same way as SONET / SDH, through high quality, traceable one The reference clock signal synchronizes its bit clock. In 2006, the International Telecommunication Union described the SyncE concept in its G. 8261. In 2007, the SyncE performance requirements were standardized in G8262, which specifies the use of synchronous Ethernet network equipment. Minimum performance requirements for clocks. Synchronous Ethernet technology is widely used in Digital Subscriber Line Access Multiplexers (DSLAM), routers, Multiservice Switch Platform (MSSP), and Source Optical Network (Passive Optical Network, PON for short) Service access equipment Supports high-bandwidth, converged synchronous Ethernet links to carry voice, data, video, and legacy services. The key technology for implementing synchronous Ethernet is synchronization status information, and synchronization status message (Synchronization Status Message, referred to as SSM) provides a mechanism for determining the traceable synchronization allocation scheme for the downstream EtherSwitch and returns the Primary Reference Clock (PRC) or utilizes a higher quality clock. The synchronization function will process the SSM. In the upstream network failure state, The synchronization function takes the appropriate action according to the priority of the SSM and the preset, and selects another synchronization supply. This may be another network supply or external supply. The SSM is defined by G 707. However, due to the message format and synchronization of the synchronization status information The limitation of the mode, in many specific environments, the synchronization status information will appear in the ring, such as: ring network, multi-link connectivity and so on. Taking the networking of FIG. 1 as an example, FIG. 2 is a flow of the standard SSM protocol in the networking environment of FIG. The basic multi-link communication network includes DUT1 102 and DUT2 104, wherein DUT1 102 and P DUT2 104 are connected by two links and/or more than two links. The following is an example of the transmission of the synchronization state information between the DUT1 102 and the DUT2 104 through two links. The steps performed by the above two network elements are as follows: Step S201: Device Under Test (DUT) 102: The quality level of 102 is 2, and two ports of port 11 and port 12 are configured. Port 11 and port 12 respectively correspond to one clock source, and the automatic SSM algorithm is used to transmit the synchronization state information. Step S202: The quality level of DUT2 104 itself is 4. Configure two links of port 21 and port 22. Port 21 and port 22 respectively correspond to one clock source, and the automatic SSM algorithm is used to transmit synchronization status information. Among them, port 11 forms a link with port 21, port 12 and The port 22 forms a link; Step S203: DUT1 102 port 11 and port 12 receive the SSM message sent by the DUT2 104, the carrying quality level is 4, and the DUT1 102 selects the port 11 as the clock source according to the configured priority; Step S204 : At this time, port 11 of DUT1 102 is selected as the source, and port 12 passes quality level 4 downstream through the SSM message. Step S205: Port of DUT2 104 After receiving the SSM message sent by the DUT1 102, the port 22 is selected as the clock source and locked; Step S206: The DUT1 102 and the DUT2 104 simultaneously select the clock source of the port of the receiving quality level 4 as the lock source. At the time, on the two links between DUT1 and DUT2, there are two lock sources, that is, the lock source of the quality level of DUT2 104 itself, so that port 21 to port between DUT1 and DUT2
11发送质量等级为 4的同步状态信息, 端口 12向端口 22发送质量等级为 4的同步状 态信息, 从而在两台设备之间形成了 "环路", 导致最后两端均失锁。 由上述步骤可以看出, 图 1组网中的两台网元时钟无法同步, 会对正常业务带来 严重影响。 发明内容 针对现有技术中同步状态信息在多链路联通时成环, 导致网元失锁的问题, 本发 明提供了一种以太网同步中的同步状态信息的传输方法和系统,以至少解决上述问题。 根据本发明的一个方面, 提供了一种以太网同步中的同步状态信息的传输方法, 包括: 第一节点在第一节点与第二节点之间的每条链路上接收来自第二节点的第一同 步状态信息, 其中, 第一同步状态信息的质量等级为第二节点的质量等级; 若第一节 点只连接第二节点, 则第一节点将其上的第一端口设置为只接收来自第二节点上的第 二端口的第一同步状态信息, 并在与第二节点连接的所有端口中除第一端口之外的其 他端口上向第二节点发送第二同步状态信息, 其中, 第二同步状态信息的质量等级与 第一同步状态信息不同, 第一端口与第二端口之间存在一条链路。 进一步地, 在第二节点接收到第二同步状态信息之后, 以太网同步中的同步状态 信息的传输方法还包括:第二节点只在第二端口上向第一端口发送第一同步状态信息。 进一步地, 以太网同步中的同步状态信息的传输方法还包括: 若第一节点连接第 二节点和第三节点, 第一节点比较第二节点发送的第一同步状态信息的质量等级与第 三节点发送的第三同步状态信息的质量等级; 若第二节点发送的第一同步状态信息的 质量等级高于第三节点发送的第三同步状态信息的质量等级, 则第一节点将其上的第 一端口设置为只接收来自第二节点上的第二端口的第一同步状态信息, 并在与第二节 点连接的所有端口中除第一端口之外的其他端口上向第二节点发送第二同步状态信 息, 其中, 第二同步状态信息的质量等级与第一同步状态信息不同; 以及第一节点将 其上用于连接第三节点的第三端口设置为只向第三节点的第四端口发送来自第二节点 上的第二端口的第一同步状态信息, 并在与第三节点连接的所有端口中除第三端口之 外的其他端口上向第三节点发送第二同步状态信息。 进一步地, 若第二节点发送的第一同步状态信息的质量等级低于或等于第三节点 发送的第三同步状态信息的质量等级, 方法还包括: 第一节点将其上的第三端口设置 为只接收来自第三节点上的第四端口的第三同步状态信息, 并在与第三节点连接的所 有端口中除第三端口之外的其他端口上向第三节点发送第二同步状态信息, 其中, 第 二同步状态信息的质量等级与第三同步状态信息不同; 以及第一节点将其上用于连接 第二节点的第一端口设置为只向第二节点的第二端口发送来自第三节点上的第四端口 的第三同步状态信息, 并在与第二节点连接的所有端口中除第一端口之外的其他端口 上向第二节点发送第二同步状态信息。 进一步地, 第一节点按照第二节点发送的第一同步状态信息携带的指示质量等级 的指示标志位与第三节点发送的第三同步状态信息携带的指示质量等级的指示标志位 来比较第一同步状态信息的质量等级和第三同步状态信息的质量等级。 根据本发明的另一方面, 提供了一种以太网同步中的同步状态信息的传输系统, 包括: 第一节点和第二节点, 其中: 第二节点设置为在第一节点与第二节点之间的每 条第一链路上向第一节点发送第一同步状态信息, 其中, 第一同步状态信息的质量等 级为第二节点的质量等级; 第一节点设置为在第一节点只连接第二节点时, 将其上的 第一端口设置为只接收来自第二节点上的第二端口的第一同步状态信息, 并在与第二 节点连接的所有端口中除第一端口之外的其他端口上向第二节点发送第二同步状态信 息, 其中, 第二同步状态信息的质量等级与第一同步状态信息不同, 第一端口与第二 端口之间存在一条第一链路。 进一步地, 第二节点还设置为在接收到第二同步状态信息之后, 只在第二端口上 向第一端口发送第一同步状态信息。 进一步地, 以太网同步中的同步状态信息的传输系统还包括: 连接第一节点的第 三节点,设置为在第一节点与第三节点之间的每条第二链路上发送第三同步状态信息, 其中, 第三同步状态信息的质量等级为第三节点的质量等级; 其中, 第一节点包括: 依次连接的比较单元和第一发送单元, 其中, 比较单元设置为比较第二节点发送的第 一同步状态信息的质量等级与第三节点发送的第三同步状态信息的质量等级; 第一发 送单元设置为在第一同步状态信息的质量等级高于第三同步状态信息的质量等级时, 将第一节点的第一端口设置为只接收来自第二节点的第二端口上的第一同步状态信 息, 并在与第二节点连接的所有端口中除第一端口之外的其他端口上向第二节点发送 第二同步状态信息, 其中, 第二同步状态信息的质量等级与第一同步状态信息不同; 以及将第一节点中的用于连接第三节点的第三端口设置为只向第三节点的第四端口发 送来自第二节点上的第二端口的第一同步状态信息, 并在与第三节点连接的所有端口 中除第三端口之外的其他端口上向第三节点发送第二同步状态信息。 进一步地, 第一节点还包括: 连接比较单元的第二发送单元, 设置为在第一同步 状态信息的质量等级低于或等于第三同步状态信息的质量等级时, 将第一节点的第三 端口设置为只接收来自第三节点上的第四端口的第三同步状态信息, 并在与第三节点 连接的所有端口中除第三端口之外的其他端口上向第三节点发送第二同步状态信息, 其中, 第二同步状态信息的质量等级与第三同步状态信息不同; 以及将第一节点中的 设置为连接第二节点的第一端口设置为只向第二节点的第二端口发送来自第三节点上 的第四端口的第三同步状态信息, 并在与第二节点连接的所有端口中除第一端口之外 的其他端口上向第二节点发送第二同步状态信息。 进一步地, 比较单元还设置为按照第二节点发送的第一同步状态信息携带的指示 质量等级的指示标志位与第三节点发送的第三同步状态信息携带的指示质量等级的指 示标志位来比较第一同步状态信息的质量等级和第三同步状态信息的质量等级。 通过本发明, 采用将交换设备的多链路进行分组, 并从每组中选择一条链路进行 同步状态信息的传输, 解决了的问题, 进而达到了防止多链路联通成环, 从而使同步 状态信息顺利向下游传递的效果。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中: 图 1是根据相关技术的基本多链路联通组网图; 图 2是根据相关技术的标准 SSM协议在基本多链路联通组网中的流程图; 图 3是根据本发明实施例的以太网同步中的同步状态信息的传输系统的优选结构 框图; 图 4是根据本发明实施例的以太网同步中的同步状态信息的传输方法的优选流程 图; 图 5是根据本发明实施例的以太网同步中的同步状态信息的传输方法的另一种流 程图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 实施例 1 图 3是根据本发明实施例的以太网同步中的同步状态信息的传输系统的优选结构 框图, 包括: 第一节点 302和第二节点 304, 其中, 第二节点 304设置为在第一节点 302与第二节点 304之间的每条第一链路上向第 一节点 302发送第一同步状态信息, 其中, 第一同步状态信息的质量等级为第二节点 的质量等级; 第一节点 302设置为在第一节点 302只连接第二节点 304时, 将其上的第一端口 (例如: 端口 11 )设置为只接收来自第二节点 304上的第二端口 (例如: 端口 21 ) 的 第一同步状态信息, 并在与第二节点 304连接的所有端口中除第一端口之外的其他端 口 (例如: 端口 12-ln)上向第二节点 304发送第二同步状态信息, 其中, 第二同步状 态信息的质量等级与第一同步状态信息不同, 第一端口与第二端口之间存在一条第一 链路。 本优选实施例中, 采用将交换设备的多链路进行分组, 并从每组中选择一条链路 进行同步状态信息的传输, 解决了的问题, 进而达到了防止多链路联通成环, 从而使 同步状态信息顺利向下游传递的效果。 其中, 第二同步状态信息的质量等级为可以设置为 F, 设置为指示第二节点 304 只在第二端口上向第一端口发送第一同步状态信息。 本优选实施例中的第一节点 302可以对应于图 1中的 DUT1, 第二节点 304对应 于图 1中的 DUT2, 其第一链路包括端口 li-端口 2i之间的链路, 其中, i=l,2,...n。 优选的, 第二节点 304在接收到第二同步状态信息之后, 只在第二端口上向第一 端口发送第一同步状态信息。 本优选实施例中, 第二节点 304上的除了第二端口 (例 如: 端口 21 ) 之外的其他端口 (例如: 端口 22-2n) 均不向第一节点发送同步状态信 息, 保证了在第二节点 304和第一节点 302之间仅采用一条链路传输同步状态信息, 避免形成环路, 可顺利地将将同步状态信息进行传输。 当然, 本发明并不局限于此, 例如: 在第二节点 304在接收到第二同步状态信息之后, 第二节点 304上的除了第二 端口 (例如: 端口 21 ) 之外的其他端口 (例如: 端口 22-2n) 均不向第一节点 302发 送同步状态信息, 而是发送其他信息或者数据。 当然, 本实施例并不局限于两个节点, 根据本发明实施例的以太网同步中的同步 状态信息的传输系统还可以包括三个节点, 如图 3所示, 第一节点 302、 连接第一节 点 302的第二节点 304以及连接第一节点 302的第三节点 306, 第三节点 306在第一 节点 302与第三节点 306之间的每条第二链路上发送第三同步状态信息, 其中, 第三 同步状态信息的质量等级为第三节点的质量等级。 在本实施例中, 第二链路包括端口 4i到端口 3i之间的链路, 其中, i=l,2,...n。 本优选实施例中, 在包括三个节点的情况下, 第一节点 302包括: 依次连接的比 较单元 3021和第一发送单元 3022, 其中, 比较单元 3021和第一发送单元 3022可以 通过以下步骤进行以太网同步中的同步状态信息的传输: 比较单元 3021 比较第二节点发送的第一同步状态信息的质量等级与第三节点发 送的第三同步状态信息的质量等级; 第一发送单元 3022在比较单元 3021比较出第一 同步状态信息的质量等级高于第三同步状态信息的质量等级时, 将第一节点 302的第 一端口(例如: 端口 11 )设置为只接收来自第二节点 304的第二端口(例如: 端口 21 ) 上的第一同步状态信息, 并在与第二节点 304连接的所有端口中除第一端口之外的其 他端口 (例如: 端口 12-ln)上向第二节点 304发送第二同步状态信息, 其中, 第二同 步状态信息的质量等级与第一同步状态信息不同; 以及将第一节点 302中的用于连接 第三节点 306的第三端口 (例如: 端口 41 ) 设置为只向第三节点 306的第四端口 (例 如: 端口 31 )发送来自第二节点 304上的第二端口 (例如: 端口 21 ) 的第一同步状态 信息, 并在与第三节点 306连接的所有端口中除第三端口之外的其他端口 (例如: 端 口 42-411)上向第三节点 306发送第二同步状态信息。在本优选实施例中, 在传输路径 中有三个节点, 则对三个节点两两之间的链路分别进行选择, 选择出每两个节点之间 最优的链路, 并在所有最优的链路之间选择一路最佳的链路, 在该最佳的链路接收同 步状态信息, 在防止链路成环的基础上, 节约了链路资源。 优选的, 第一节点 302还包括: 连接比较单元 3021的第二发送单元 3023。 在上 述对以太网同步中的同步状态信息的进行传输的基础上,若比较单元 3021比较出第一 同步状态信息的质量等级低于或等于第三同步状态信息的质量等级时, 则第二发送单 元 3023将第一节点 302的第三端口 (例如: 端口 41 )设置为只接收来自第三节点 306 上的第四端口 (例如: 端口 31 ) 的第三同步状态信息, 并在与第三节点 306连接的所 有端口中除第三端口之外的其他端口 (例如: 端口 42-4n)上向第三节点 306发送第二 同步状态信息, 其中, 第二同步状态信息的质量等级与第三同步状态信息不同; 以及 第二发送单元 3023将第一节点 302中的用于连接第二节点 304的第一端口(例如: 端 口 11 ) 设置为只向第二节点 304的第二端口 (例如: 端口 21 ) 发送来自第三节点 306 上的第四端口 (例如: 端口 31 ) 的第三同步状态信息, 并在与第二节点 304连接的所 有端口中除第一端口之外的其他端口 (例如: 端口 12-ln)上向第二节点 304发送第二 同步状态信息。 在本优选实施例中, 由于传输路径中有三个节点, 因此对三个节点两 两之间的链路分别进行选择, 选择出每两个节点之间最优的链路, 并在所有最优的链 路之间选择一路最佳的链路, 在最佳的链路之外的最优的链路上发送同步状态信息, 从而在防止链路成环的基础上节约了链路资源。 优选的,比较单元 3021按照第二节点 304发送的第一同步状态信息携带的指示质 量等级的指示标志位与第三节点 306发送的第三同步状态信息携带的指示质量等级的 指示标志位来比较第一同步状态信息的质量等级和第三同步状态信息的质量等级。 在 本优选实施例中, 采用对同步状态信息携带的指示质量等级的指示标志位进行判断同 步状态信息的质量等级, 节约了比较流程, 减少了工作量。 在本实施例中, 上述第一发送单元和第二发送单元根据比较单元的比较结果进行 的发送过程, 只是一个示例, 本发明并不局限于此形式, 例如: 当比较单元 3021比较 出第一同步状态信息的质量等级低于或等于第三同步状态信息的质量等级, 第一节点 302只通过其上与第二节点 304连接的一个端口 (例如: 端口 11 ) 接收来自第二节点 304发送的第一同步状态信息,而在与第二节点 304连接的其他端口(例如:端口 12-ln) 上向第二节点 304发送第二同步状态信息, 同时, 第一节点 302只通过其上与第三节 点 306连接的一个端口 (例如: 端口 41 ) 向第三节点 306发送来自第二节点 304的第 一同步状态信息, 而在与第三节点 306连接的其他端口 (例如: 端口 42-411)上向第三 节点 306发送第二同步状态信息;当比较单元 3021比较出第一同步状态信息的质量等 级高于第三同步状态信息的质量等级时, 与上述发送过程相反。 此外, 本实施例中比较单元 3021, 第一发送单元 3022和第二发送单元 3023还可 以独立于第一节点, 而单独设置在一个装置来完成相应的功能。 当然, 本实施例中的第一发送单元 3022和第二发送单元 3023还可以设置成一个 装置来完成相应的功能。 本优选实施例的同步状态信息的传输系统也不局限于包含三个节点, 系统还可以 包含三个以上的节点, 对三个以上的节点之间的同步状态信息的传输与上述一致。 例 如, 第一节点还连接第四节点, 那么, 从第一节点与第二节点之间的链路、 第一节点 与第三节点之间的链路和第一节点与第四节点之间的链路中分别选出一路最优链路, 再从每路最优链路中选择一路最佳链路, 第一节点通过该最佳链路接收该链路对应的 节点发送的同步状态消息, 并将该同步状态消息通过其他最优链路发送给其他最优链 路对应的节点。 第一节点的除最优链路之外的其他链路分别强制发送第二同步状态信 息, 即质量等级为 F的同比状态信息。 当然, 本优选实施例中的 "第一"、 "第二"和 "第三"仅仅是用于区分不同的主 体, 并不用于限定该主体。 实施例 2 图 4是根据本发明实施例的以太网同步中的同步状态信息的传输方法的优选结流 程图, 包括: 步骤 S402,第一节点在第一节点与第二节点之间的每条链路上接收来自第二节点 的第一同步状态信息, 其中, 第一同步状态信息的质量等级为第二节点的质量等级; 步骤 S404, 若第一节点只连接第二节点, 则第一节点将其上的第一端口设置为只 接收来自第二节点上的第二端口的第一同步状态信息, 并在与第二节点连接的所有端 口中除第一端口之外的其他端口上向第二节点发送第二同步状态信息, 其中, 第二同 步状态信息的质量等级与第一同步状态信息不同, 第一端口与第二端口之间存在一条 链路。 例如, 本优选实施例中的第一节点可以对应于图 1 中的 DUT1, 第二节点对应于 图 1中的 DUT2, 其第一链路为端口 11-21的链路、 端口 12-22的链路以及端口 ln-2n 的链路等。 本优选实施例中, 采用将交换设备的多链路进行分组, 并从每组中选择一条链路 进行同步状态信息的传输, 解决了的问题, 进而达到了防止多链路联通成环, 从而使 同步状态信息顺利向下游传递的效果。 优选的, 在第二节点接收到第二同步状态信息之后, 第二节点只在第二端口上向 第一端口发送第一同步状态信息。 本优选实施例中, 第二节点除了第二端口之外的其 他端口均不向第一节点发送同步状态信息, 节约了链路资源, 减少了节点之间的工作 11 Sends synchronization status information of quality level 4, and port 12 transmits synchronization status information of quality level 4 to port 22, thereby forming a "loop" between the two devices, resulting in loss of lock at both ends. As shown in the preceding steps, the clocks of the two NEs in the network shown in Figure 1 cannot be synchronized, which will seriously affect normal services. SUMMARY OF THE INVENTION The present invention provides a method and system for transmitting synchronization state information in Ethernet synchronization to solve at least the problem that the synchronization state information is looped during multi-link communication, causing the network element to lose lock. The above question. According to an aspect of the present invention, a method for transmitting synchronization state information in Ethernet synchronization is provided, including: a first node receiving a second node from each link between a first node and a second node a first synchronization state information, where the quality level of the first synchronization state information is a quality level of the second node; if the first node is only connected to the second node, the first node sets the first port on the first node to receive only from a first synchronization state information of the second port on the second node, and sending, to the second node, the second synchronization state information on the other ports except the first port of all the ports connected to the second node, where The quality level of the second synchronization status information is different from the first synchronization status information, and there is a link between the first port and the second port. Further, after the second node receives the second synchronization state information, the method for transmitting the synchronization state information in the Ethernet synchronization further includes: the second node sending the first synchronization state information to the first port only on the second port. Further, the method for transmitting synchronization state information in the Ethernet synchronization further includes: if the first node is connected to the second node and the third node, the first node compares the quality level of the first synchronization state information sent by the second node with the third a quality level of the third synchronization state information sent by the node; if the quality level of the first synchronization state information sent by the second node is higher than the quality level of the third synchronization state information sent by the third node, the first node The first port is configured to receive only the first synchronization state information from the second port on the second node, and send the first node to the second node on the ports other than the first port among all the ports connected to the second node Two synchronization state information, wherein the quality level of the second synchronization state information is different from the first synchronization state information; and the first node sets the third port on which the third node is connected to be the fourth node only to the third node The port transmits first synchronization status information from the second port on the second node, and in addition to the third port among all ports connected to the third node The second synchronization status information is sent to the third node on the other ports. Further, if the quality level of the first synchronization state information sent by the second node is lower than or equal to the quality level of the third synchronization state information sent by the third node, the method further includes: setting, by the first node, the third port on the third node Receiving only the third synchronization state information from the fourth port on the third node, and transmitting the second synchronization state information to the third node on the ports other than the third port among all the ports connected to the third node The quality level of the second synchronization state information is different from the third synchronization state information; and the first node sets the first port on which the second node is connected to be sent only to the second port of the second node. The third synchronization state information of the fourth port on the three nodes, and the second synchronization state information is sent to the second node on the ports other than the first port among all the ports connected to the second node. Further, the first node compares the indication flag bit indicating the quality level carried by the first synchronization state information sent by the second node with the indication flag bit of the indication quality level carried by the third synchronization state information sent by the third node. The quality level of the synchronization status information and the quality level of the third synchronization status information. According to another aspect of the present invention, a transmission system for synchronizing state information in Ethernet synchronization is provided, including: a first node and a second node, wherein: the second node is configured to be at the first node and the second node The first synchronization state information is sent to the first node on each of the first links, wherein the quality level of the first synchronization state information is the quality level of the second node; the first node is configured to connect only the first node. When the two nodes are, the first port on the first port is set to receive only the first synchronization state information from the second port on the second node, and other than the first port among all the ports connected to the second node The second synchronization state information is sent to the second node, where the quality level of the second synchronization state information is different from the first synchronization state information, and a first link exists between the first port and the second port. Further, the second node is further configured to send the first synchronization state information to the first port only on the second port after receiving the second synchronization state information. Further, the transmission system of the synchronization state information in the Ethernet synchronization further includes: a third node connected to the first node, configured to send the third synchronization on each second link between the first node and the third node The status information, where the quality level of the third synchronization status information is the quality level of the third node, where the first node includes: a comparison unit and a first transmission unit that are sequentially connected, wherein the comparison unit is configured to send the comparison with the second node a quality level of the first synchronization state information and a quality level of the third synchronization state information transmitted by the third node; the first transmitting unit is configured to be when the quality level of the first synchronization state information is higher than the quality level of the third synchronization state information Setting the first port of the first node to receive only the first synchronization state information on the second port from the second node, and on the ports other than the first port among all the ports connected to the second node Sending, to the second node, second synchronization state information, where the quality level of the second synchronization state information and the first synchronization state information And setting a third port in the first node for connecting the third node to send only the first synchronization state information from the second port on the second node to the fourth port of the third node, and The second synchronization status information is sent to the third node on all the ports except the third port among all the ports connected by the third node. Further, the first node further includes: a second sending unit that is connected to the comparing unit, configured to set the third node of the first node when the quality level of the first synchronization state information is lower than or equal to the quality level of the third synchronization state information The port is configured to receive only the third synchronization state information from the fourth port on the third node, and send the second synchronization to the third node on the ports other than the third port among all the ports connected to the third node State information, wherein the quality level of the second synchronization state information is different from the third synchronization state information; and setting the first port in the first node that is set to connect to the second node to be sent only to the second port of the second node The third synchronization state information from the fourth port on the third node, and transmitting the second synchronization state information to the second node on the ports other than the first port among all the ports connected to the second node. Further, the comparing unit is further configured to compare the indication flag bit indicating the quality level carried by the first synchronization state information sent by the second node with the indication flag bit indicating the quality level carried by the third synchronization state information sent by the third node. The quality level of the first synchronization state information and the quality level of the third synchronization state information. The invention solves the problem that the multi-links of the switching device are grouped, and one link is selected from each group to transmit the synchronization state information, thereby preventing the multi-link communication from being looped, thereby enabling synchronization. The effect of the status information passing downstream smoothly. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, In the drawings: FIG. 1 is a basic multi-link communication networking diagram according to the related art; FIG. 2 is a flowchart of a standard SSM protocol according to the related art in a basic multi-link communication networking; FIG. 3 is a flowchart according to the present invention. Preferred structural block diagram of a transmission system for synchronizing state information in Ethernet synchronization of an embodiment; FIG. 4 is a preferred flowchart of a method for transmitting synchronization state information in Ethernet synchronization according to an embodiment of the present invention; FIG. Another flow chart of a method of transmitting synchronization status information in Ethernet synchronization of an embodiment. 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. Embodiment 1 FIG. 3 is a block diagram showing a preferred structure of a transmission system for synchronizing state information in Ethernet synchronization according to an embodiment of the present invention, including: a first node 302 and a second node 304, where The second node 304 is configured to send first synchronization state information to the first node 302 on each of the first links between the first node 302 and the second node 304, where the quality level of the first synchronization state information is The quality level of the two nodes; the first node 302 is configured to set the first port (eg, port 11) thereon to receive only the second node 304 when the first node 302 is only connected to the second node 304. First synchronization state information of the two ports (for example: port 21), and to the second node 304 on the ports other than the first port (for example, port 12-ln) among all the ports connected to the second node 304 The second synchronization state information is sent, where the quality level of the second synchronization state information is different from the first synchronization state information, and a first link exists between the first port and the second port. In the preferred embodiment, the multi-links of the switching device are grouped, and one link is selected from each group to transmit the synchronization state information, thereby solving the problem, thereby preventing the multi-link communication from being looped. The effect of making the synchronization status information pass downstream smoothly. The quality level of the second synchronization state information may be set to F, and is set to instruct the second node 304 to send the first synchronization state information to the first port only on the second port. The first node 302 in the preferred embodiment may correspond to the DUT1 in FIG. 1, the second node 304 corresponds to the DUT2 in FIG. 1, and the first link thereof includes a link between the port li-port 2i, where i=l, 2,...n. Preferably, after receiving the second synchronization state information, the second node 304 sends the first synchronization state information to the first port only on the second port. In the preferred embodiment, the ports other than the second port (for example, port 21) on the second node 304 (for example, port 22-2n) do not send synchronization status information to the first node, which is guaranteed in the first The synchronization status information is transmitted between the two nodes 304 and the first node 302 by using only one link, avoiding the formation of a loop, and the synchronization status information can be smoothly transmitted. Of course, the present invention is not limited thereto, for example: after the second node 304 receives the second synchronization state information, other ports on the second node 304 other than the second port (for example, port 21) (for example : Port 22-2n) does not send synchronization status information to the first node 302, but transmits other information or data. Of course, the embodiment is not limited to two nodes. The transmission system of the synchronization state information in the Ethernet synchronization according to the embodiment of the present invention may further include three nodes. As shown in FIG. 3, the first node 302 and the connection a second node 304 of a node 302 and a third node 306 connecting the first node 302, the third node 306 transmitting third synchronization status information on each second link between the first node 302 and the third node 306 The quality level of the third synchronization state information is the quality level of the third node. In this embodiment, the second link includes a link between port 4i and port 3i, where i = 1, 2, ... n. In the preferred embodiment, the first node 302 includes: a comparison unit 3021 and a first sending unit 3022 connected in sequence, wherein the comparing unit 3021 and the first sending unit 3022 can be performed by the following steps. The transmission of the synchronization status information in the Ethernet synchronization: the comparing unit 3021 compares the quality level of the first synchronization status information sent by the second node with the quality level of the third synchronization status information sent by the third node; the first transmitting unit 3022 is comparing When the unit 3021 compares the quality level of the first synchronization state information with the quality level of the third synchronization state information, the first port (eg, port 11) of the first node 302 is set to receive only the second node 304. First synchronization status information on the two ports (eg, port 21), and on the other ports other than the first port (eg, port 12-ln) of all ports connected to the second node 304 to the second node 304 transmitting second synchronization state information, where the quality level of the second synchronization state information is different from the first synchronization state information; A third port (e.g., port 41) in a node 302 for connecting to the third node 306 is configured to transmit only the second port from the second node 304 to the fourth port of the third node 306 (e.g., port 31). First synchronization status information for the port (e.g., port 21), and sent to the third node 306 on all but the third port (e.g., port 42-411) of all ports connected to the third node 306 Second synchronization status information. In the preferred embodiment, there are three nodes in the transmission path, and the links between the two nodes are respectively selected, and the optimal link between each two nodes is selected, and all the optimal links are selected. Selecting the best link between the links, receiving the synchronization status information on the optimal link, and saving the link resources on the basis of preventing the link from being looped. Preferably, the first node 302 further includes: a second sending unit 3023 connected to the comparing unit 3021. On the basis of the above-mentioned transmission of the synchronization state information in the Ethernet synchronization, if the comparison unit 3021 compares the quality level of the first synchronization state information to be lower than or equal to the quality level of the third synchronization state information, the second transmission Unit 3023 sets the third port (e.g., port 41) of the first node 302 to receive only third synchronization state information from the fourth port (e.g., port 31) on the third node 306, and to the third node. All the ports connected to the 306, except for the third port (for example, the port 42-4 n ), send the second synchronization state information to the third node 306, where the quality level of the second synchronization state information is the third The synchronization status information is different; and the second transmitting unit 3023 sets the first port (eg, port 11) in the first node 302 for connecting the second node 304 to only the second port of the second node 304 (for example: Port 21) transmits third synchronization status information from a fourth port (e.g., port 31) on the third node 306, and divides all of the ports connected to the second node 304. The second synchronization status information is sent to the second node 304 on a port other than the port (e.g., port 12-ln). In the preferred embodiment, since there are three nodes in the transmission path, the links between the two nodes are respectively selected, and the optimal link between each two nodes is selected, and all the optimal links are selected. The best link is selected between the links, and the synchronization status information is sent on the optimal link outside the optimal link, thereby saving link resources on the basis of preventing the link from being looped. Preferably, the comparison unit 3021 compares the indication flag bit indicating the quality level carried by the first synchronization state information sent by the second node 304 with the indication flag bit of the indication quality level carried by the third synchronization state information sent by the third node 306. The quality level of the first synchronization state information and the quality level of the third synchronization state information. In the preferred embodiment, the quality of the synchronization status information is determined by using the indication flag indicating the quality level carried by the synchronization status information, which saves the comparison process and reduces the workload. In this embodiment, the sending process performed by the first sending unit and the second sending unit according to the comparison result of the comparing unit is only an example, and the present invention is not limited to this form, for example: when the comparing unit 3021 compares the first The quality level of the synchronization status information is lower than or equal to the quality level of the third synchronization status information, and the first node 302 receives the transmission from the second node 304 only through a port (eg, port 11) on which the second node 304 is connected. First synchronization status information, and transmitting second synchronization status information to the second node 304 on another port (eg, port 12-ln) connected to the second node 304, while the first node 302 only passes through the One port (e.g., port 41) to which the three nodes 306 are connected transmits first synchronization status information from the second node 304 to the third node 306, and to other ports connected to the third node 306 (e.g., ports 42-411). Up to the third synchronization state information is sent to the third node 306; when the comparison unit 3021 compares the quality level of the first synchronization state information is higher than the third synchronization state information When the quality level, and the transmission process is reversed. In addition, the comparing unit 3021, the first sending unit 3022, and the second sending unit 3023 in this embodiment may also be separately disposed in one device to complete the corresponding function independently of the first node. Of course, the first sending unit 3022 and the second sending unit 3023 in this embodiment may also be configured as a device to perform the corresponding functions. The transmission system of the synchronization state information of the preferred embodiment is not limited to including three nodes, and the system may further include three or more nodes, and the transmission of synchronization state information between three or more nodes is consistent with the above. For example, the first node is further connected to the fourth node, then, from the link between the first node and the second node, the link between the first node and the third node, and between the first node and the fourth node An optimal link is selected in the link, and an optimal link is selected from each of the optimal links. The first node receives the synchronization status message sent by the node corresponding to the link through the optimal link. And sending the synchronization status message to other nodes corresponding to the optimal link through other optimal links. The other links of the first node except the optimal link respectively forcibly transmit the second synchronization state information, that is, the year-on-year state information of the quality level F. Of course, the "first", "second" and "third" in the preferred embodiment are merely used to distinguish different subjects and are not intended to define the subject. Example 2 4 is a flowchart of a preferred connection of a method for transmitting synchronization state information in Ethernet synchronization according to an embodiment of the present invention, including: Step S402: A first node is on each link between a first node and a second node. Receiving the first synchronization state information from the second node, where the quality level of the first synchronization state information is the quality level of the second node; Step S404, if the first node is only connected to the second node, the first node is The first port is configured to receive only the first synchronization state information from the second port on the second node, and send the second node to the port other than the first port among all the ports connected to the second node The second synchronization state information, where the quality level of the second synchronization state information is different from the first synchronization state information, and a link exists between the first port and the second port. For example, the first node in the preferred embodiment may correspond to the DUT1 in FIG. 1, the second node corresponds to the DUT2 in FIG. 1, and the first link is the link of the port 11-21, and the port 12-22 Link and link of port ln-2n, etc. In the preferred embodiment, the multi-links of the switching device are grouped, and one link is selected from each group to transmit the synchronization state information, thereby solving the problem, thereby preventing the multi-link communication from being looped. The effect of making the synchronization status information pass downstream smoothly. Preferably, after the second node receives the second synchronization state information, the second node sends the first synchronization state information to the first port only on the second port. In the preferred embodiment, the second node does not send synchronization status information to the first node except the second port, which saves link resources and reduces work between nodes.
当然, 本优选实施例中并不局限于两个节点之间的同步状态信息的传输方法, 还 包括三个节点之间的同步状态信息的传输方法, 此时, 若第一节点连接第二节点和第 三节点, 第一节点比较第二节点发送的第一同步状态信息的质量等级与第三节点发送 的第三同步状态信息的质量等级; 若第二节点发送的第一同步状态信息的质量等级高 于第三节点发送的第三同步状态信息的质量等级, 则第一节点将其上的第一端口设置 为只接收来自第二节点上的第二端口的第一同步状态信息, 并在与第二节点连接的所 有端口中除第一端口之外的其他端口上向第二节点发送第二同步状态信息, 其中, 第 二同步状态信息的质量等级与第一同步状态信息不同; 以及第一节点将其上用于连接 第三节点的第三端口设置为只向第三节点的第四端口发送来自第二节点上的第二端口 的第一同步状态信息, 并在与第三节点连接的所有端口中除第三端口之外的其他端口 上向第三节点发送第二同步状态信息。在本优选实施例中,在传输路径中有三个节点, 则对三个节点两两之间的链路分别进行选择, 选择出每两个节点之间最优的链路, 并 在所有最优的链路之间选择一路最佳的链路, 在该最佳的链路接收同步状态信息, 在 防止链路成环的基础上, 节约了链路资源。 当然, 若第二节点发送的第一同步状态信息的质量等级低于或等于第三节点发送 的第三同步状态信息的质量等级时, 第一节点将其上的第三端口设置为只接收来自第 三节点上的第四端口的第三同步状态信息, 并在与第三节点连接的所有端口中除第三 端口之外的其他端口上向第三节点发送第二同步状态信息, 其中, 第二同步状态信息 的质量等级与第三同步状态信息不同; 以及第一节点将其上用于连接第二节点的第一 端口设置为只向第二节点的第二端口发送来自第三节点上的第四端口的第三同步状态 信息, 并在与第二节点连接的所有端口中除第一端口之外的其他端口上向第二节点发 送第二同步状态信息。 在本优选实施例中, 在传输路径中有三个节点, 则对三个节点 两两之间的链路分别进行选择, 选择出每两个节点之间最优的链路, 并在所有最优的 链路之间选择一路最佳的链路,在最佳的链路之外的最优的链路上发送同步状态信息, 在防止链路成环的基础上, 节约链路资源。 优选的, 第一节点按照第二节点发送的第一同步状态信息携带的指示质量等级的 指示标志位与第三节点发送的第三同步状态信息携带的指示质量等级的指示标志位来 比较第一同步状态信息的质量等级和第三同步状态信息的质量等级。 在本优选实施例 中, 采用对同步状态信息携带的指示质量等级的指示标志位进行判断同步状态信息的 质量等级, 节约了比较流程, 减少了工作量。 在本实施例中, 上述第一发送单元和第二发送单元根据比较单元的比较结果进行 的发送过程, 只是一个示例, 本发明并不局限于此形式, 例如: 比较出第一同步状态 信息的质量等级低于或等于第三同步状态信息的质量等级, 第一节点只通过其上与第 二节点连接的一个端口(例如: 端口 11 )接收来自第二节点发送的第一同步状态信息, 而在与第二节点连接的其他端口 (例如: 端口 12-ln)上向第二节点发送第二同步状态 信息, 同时, 第一节点只通过其上与第三节点连接的一个端口 (例如: 端口 41 ) 向第 三节点发送来自第二节点的第一同步状态信息, 而在与第三节点连接的其他端口 (例 如: 端口 42-411)上向第三节点发送第二同步状态信息; 当比较出第一同步状态信息的 质量等级高于第三同步状态信息的质量等级时, 与上述发送过程相反。 本优选实施例的同步状态信息的传输方法也不局限于三个节点之间的传输, 还可 以包含三个以上的节点之间的同步状态信息的传输, 该传输方法与上述一致。 例如, 第一节点还连接第四节点, 那么, 从第一节点与第二节点之间的链路、 第一节点与第 三节点之间的链路和第一节点与第四节点之间的链路中分别选出一路最优链路, 再从 每路最优链路中选择一路最 佳链路, 第一节点通过该最佳链路接收该链路对应的节点发送的同步状态消息, 并将该同步状态消息通过其他最优链路发送给其他最优链路对应的节点。 第一节点的 除最优链路之外的其他链路分别强制发送第二同步状态信息, 即质量等级为 F的同比 状态信息。 当然, 本优选实施例中的 "第一"、 "第二"和 "第三"仅仅是用于区分不同的主 体, 并不用于限定该主体。 上述实施例 1和实施例 2的以太网同步中的同步状态信息的传输技术可以在标准 SSM协议这个基础上, 通过对 SSM报文的分组, 分组的选举以及强制最优源之外的 端口发送质量等级来实现链路分组防止同步以太网的成环。 对与第一节点和第二节点来说,第一节点接收 SSM协议报文,判断上述报文的源 介质访问控制 (Medium Access Control, 简称为 MAC), 若源 MAC相同, 则可以认为 上述报文来自于同一个节点, 例如: 第一节点的端口收到的第二节点的端口发送来的 报文就可以认定第二节点的端口为同源端口。 并在第一节点的端口中选择一个端口对 应的时钟源作为第一节点与第二节点的链路分组中的最优时钟源, 从第一节点的端口 中选择一个端口对应的时钟源作为第一节点相对于第三节点的链路分组中的最优时钟 源。 从第一节点与第二节点的链路分组中的最优时钟源和第一节点与第三节点的链路 分组中的最优时钟源中选择一路最佳时钟源; 例如, 选择第一节点与第二节点的链路 分组中的最优时钟源作为最佳时钟源,则该最佳时钟源对应的端口按照标准 SSM协议 接收第二节点发送的第一同步状态信息, 第一节点相对于第三节点的链路分组中的最 优时钟源对应的端口发送第一同步状态消息给第三节点, 从而完成将第一同步状态信 息从第二节点发送到第三节点的过程, 第一节点与第二节点的链路分组中的其他端口 强制发送质量等级为 F的报文, 第一节点与第三节点的链路分组中的其他端口强制发 送质量等级为 F的报文,质量等级为 F的报文即第二同步状态信息的质量等级,其中, 该质量等级为 F的报文用于指示: 在接收到该质量等级为 F的报文后, 将该端口对应 的时钟设置为不进行锁定的操作, 即, 不接收第二节点发送的第一同步状态消息或不 接收第三节点发送的第三同步状态消息的操作。 采用上述链路分组的同步以太网, 可以避免造成同步状态信息成环的反向联通, 使标准 SSM协议能够在多链路联通的组网环境中正常的运用。 实施例 3 基于图 3的网络结构, 图 5出示了以太网同步中的同步状态信息的传输方法的另 一种流程图, 其中, DUT1可以为第一节点, DUT2可以为第二节点。 如图 5所示的 以太网同步中的同步状态信息的传输方法包括如下步骤: 步骤 S501 : DUT1 自身质量等级为 2, 配置端口 11到端口 In的多条链路, 并对 每条链路的端口配置相应的时钟源, 起自动 SSM算法, 也就是按照标准 SSM协议运 作, 即进行同步状态信息的传输。 步骤 S502: DUT2自身质量等级为 4, 配置端口 21到端口 2η的多条链路, 并对 每条链路的端口配置相应的时钟源, 起自动 SSM算法, 即进行同步状态信息的传输。 这里需要注意的是,系统中不仅仅包括两台 DUT设备,还可以配置多台设备的多 链路联通, 也就是可以不仅仅包括第一节点和第二节点两台设备, 还可以包括第三节 点等多个节点, 当然, 在包括多个节点的时候, 还需对每个节点之间的链路的端口配 置相应的时钟源。 以下对包括三个节点系统的同步状态信息的传输实例进行说明: 步骤 S503 : DUT1的所有端口收到对端的 SSM报文, 比较源 MAC地址, 该对端 包括 DUT2以及 DUT3。例如:第一节点的所有端口(例如:端口 11-ln以及端口 41-4n) 接收到来自第二节点与第一节点的端口连接的端口 (例如: 端口 21-2n)和第三节点与 第一节点的端口连接的端口 (例如: 端口 31-3n)发送的 SSM报文, 比较 SSM报文的 MAC地址。 步骤 S504: 按照报文的源 MAC地址分组。 同源的端口分在同一组, 也就是来自 于同一个节点的端口属于同源的端口, 例如: 第二节点的端口 (例如: 端口 21-2n)属 于一个分组, 第三节点的端口 (例如: 端口 31-3n)属于一个分组, 一个分组中可以有 多个端口, 也可以只有一个端口。 下面以第一节点与第二节点通过两条链路连接、 且第一节点与第三节点通过一个 链路连接为例进行说明同步状态信息的传输过程, 例如: 第一节点与第二节点通过两 条链路相连, 第一节点的端口 11与第二节点的端口 12相连, 第一节点的端口 12和第 二节点的端口 22相连,第一节点的端口 41与第三节点的端口 31相连, 当然该传输过 程也适用于其他连接情况。 对于一个分组具有多个同源端口的情况, 执行步骤 S505, 对于一个分组只有一个 同源端口的情况, 执行步骤 S506。 步骤 S505: 对于有多个同源端口的分组, 按照标准 SSM协议选举该分组中端口 对应的最优时钟源, 例如: 选举出第一节点的端口 11对应的时钟源为最优时钟源。在 执行完步骤 S505后, 转至步骤 S507。 步骤 S506: 对于只有一个端口的分组, 该端口直接参选, 例如: 第一节点的端口 41对应的时钟源直接作为最优时钟源。 在执行完步骤 S506后, 转至步骤 S507 步骤 S507: DUT1设备将所有分组选举的时钟源按照标准 SSM协议选举其中最 佳的时钟源, 作为 DUT1要锁定的源, 例如: 在第一节点的端口 11对应的最优时钟源 和第一节点的端口 41对应的最优时钟源中选择一个最佳时钟源 (例如: 端口 11 ), 该 最佳时钟源作为锁定源, 也就是该最佳时钟源对应的端口 (例如: 端口 11 ) 只接收与 该端口相连接的节点的端口 (例如: 端口 21 ) 发送的同步状态信息。 此时, DUT1已经选择了相应的时钟源(例如: 端口 11 )。接下来对 DUT1向下游 节点 (例如: DUT3 ) 传递同步状态信息的过程进行说明: 对于一个分组具有多个同源端口的情况, 执行 S508, 对于一个分组具有一个同源 端口的情况, 执行 S509。 步骤 S508: 对于步骤 S505中的多个同源端口的分组, 没有被选举为最优时钟源 的其他端口强制发送质量等级为 F的同步状态信息。例如,第一节点的端口 12强制发 送质量等级为 F的同步状态信息给第二节点的端口 22。 选举的最优时钟源的端口 (例 如: 端口 11和端口 41 )按照标准 SSM协议, 判断最优时钟源是否被选为 DUT1的锁 定源,若该端口(例如: 端口 11 )对应的时钟源被选择为 DUT1的锁定源, 该端口(例 如: 端口 11 )则只接收相应端口(例如: 第二节点的端口 21 )发送来的同步状态信息: 如果该端口 (例如: 端口 41 )对应的时钟源没有被 DUT1选中作为锁定源(即端口 41 对应的时钟源仅为最优时钟源), 该端口 (例如: 端口 41 ) 则向下游 (例如: 第三节 点)发送同步状态信息, 该同步状态信息携带 DUT1锁定源(例如: 端口 11对应的时 钟源) 的质量等级。 也就是说, 在选择出最优时钟源后, 例如, 端口 11和端口 41分 别对应的时钟源均被选择为最优时钟源,第一节点的端口 11对应的时钟源判断自身是 否为锁定源(即最佳时钟源), 若是, 则端口 11只接收第二节点端口 21发送的同步状 态信息, 若不是 (即最佳时钟源对应的端口为端口 41 ), 则端口 11发送从端口 41接 收到的第三节点的端口 31发送来的同步状态信息给第二节点的端口 21。 在执行完步 骤 S508后, 转至步骤 S510。 步骤 S509: 对于步骤 S506中的只有一个端口分组, 按照标准 SSM协议, 判断该 端口 (例如: 端口 41 ) 的时钟源是否被选为 DUT1的锁定源, 若被选择为 DUT1的锁 定源, 则该端口 (例如: 端口 41 )只进行接收相应端口 (例如: 端口 31 )发送来的同 步状态信息; 如果没有被 DUT1选中作为锁定源, 则向下游节点 (例如: 第二节点) 发送同步状态信息, 该同步状态信息携带 DUT1锁定源(即端口 41对应的时钟源)的 质量等级。 也就是说, 第一节点的端口 41对应的时钟源判断自身是否为锁定源, 即最 佳时钟源, 若是则只接收第三节点的端口 31发送的同步状态消息, 若不是, 则发送端 口 11接收到的第二节点的端口 21发送来的同步状态信息给第三节点的端口 31。在执 行完步骤 S509后, 转至步骤 S510。 步骤 S510: DUT1的端口 11和端口 12在一个分组, DUT1选举端口 11为设备时 钟源, 即锁定源, 那么端口 11就只接收端口 21传来的同步状态信息, 端口 12会向外 发送质量等级为 F的同步状态信息。 DUT2的端口 22收到该报文, 由于等级为 F, 因 此, 该端口 22不能作为参选源, 所以 DUT2自振。 也就是说, DUT2的其他端口 (例 如: 21-2n)不会判断自身接收到的同步状态信息, 并选择端口对应的时钟源作为锁定 源, 因此阻止了第一节点和第二节点由于多链路连接而成环。 对于 DUT3也是同样的 处理过程。 步骤 S511 : DUT1和 DUT2均达到稳定, 由此可以扩展到多台设备之间的同步状 态信息传输的方法, 从而实现全网同步。 从以上的描述中, 可以看出, 本发明实现了如下技术效果: 采用将交换设备的多 链路进行分组, 并从每组中选择一条链路进行同步状态信息的传输, 解决了的问题, 进而达到了防止多链路联通成环, 从而使同步状态信息顺利向下游传递的效果。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以 将它们存储在存储装置中由计算装置来执行, 并且在某些情况下, 可以以不同于此处 的顺序执行所示出或描述的步骤, 或者将它们分别制作成各个集成电路模块, 或者将 它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限制于任 何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。 Certainly, the preferred embodiment is not limited to the method for transmitting synchronization state information between two nodes, and further includes a method for transmitting synchronization state information between three nodes. At this time, if the first node is connected to the second node, And the third node, the first node compares the quality level of the first synchronization state information sent by the second node with the quality level of the third synchronization state information sent by the third node; and the quality of the first synchronization state information sent by the second node The level is higher than the quality level of the third synchronization state information sent by the third node, and the first node sets the first port on the first port to receive only the first synchronization state information from the second port on the second node, and Transmitting, by the second node, the second synchronization state information to the second node, where the second synchronization state information is different from the first synchronization state information; and a node sets the third port on which the third node is connected to transmit only the second port from the second node to the fourth port of the third node Opening a first synchronization status information, and transmits a second synchronization status information to the third node of the third ports except the port on all ports connected to the third point. In the preferred embodiment, if there are three nodes in the transmission path, the links between the two nodes are respectively selected, and the optimal link between each two nodes is selected, and Selecting an optimal link between all the optimal links, and receiving the synchronization status information on the optimal link, saves link resources on the basis of preventing the link from being looped. Certainly, if the quality level of the first synchronization state information sent by the second node is lower than or equal to the quality level of the third synchronization state information sent by the third node, the first node sets the third port on the first node to receive only from a third synchronization state information of the fourth port on the third node, and sending the second synchronization state information to the third node on the ports other than the third port among all the ports connected to the third node, where The quality level of the second synchronization state information is different from the third synchronization state information; and the first node sets the first port on which the second node is connected to be sent only to the second port of the second node from the third node The third synchronization state information of the fourth port, and transmitting the second synchronization state information to the second node on the ports other than the first port among all the ports connected to the second node. In the preferred embodiment, there are three nodes in the transmission path, and the links between the two nodes are respectively selected, and the optimal link between each two nodes is selected, and all the optimal links are selected. The best link is selected between the links, and the synchronization status information is sent on the optimal link outside the optimal link, and the link resources are saved on the basis of preventing the link from being looped. Preferably, the first node compares the indication flag bit indicating the quality level carried by the first synchronization state information sent by the second node with the indication flag bit of the indication quality level carried by the third synchronization state information sent by the third node. The quality level of the synchronization status information and the quality level of the third synchronization status information. In the preferred embodiment, the quality of the synchronization status information is determined by using the indication flag indicating the quality level carried by the synchronization status information, which saves the comparison process and reduces the workload. In this embodiment, the sending process performed by the first sending unit and the second sending unit according to the comparison result of the comparing unit is only an example, and the present invention is not limited to this form, for example: comparing the first synchronization state information. The quality level is lower than or equal to the quality level of the third synchronization status information, and the first node receives the first synchronization status information sent by the second node only through a port (eg, port 11) connected to the second node. Sending second synchronization status information to the second node on another port (eg, port 12-ln) connected to the second node, and the first node only passes through a port connected to the third node (eg, port) 41) transmitting first synchronization status information from the second node to the third node, and transmitting second synchronization status information to the third node on other ports (eg, ports 42-411) connected to the third node; When the quality level of the first synchronization state information is higher than the quality level of the third synchronization state information, it is opposite to the above transmission process. The transmission method of the synchronization state information of the preferred embodiment is not limited to the transmission between the three nodes, and may also include the transmission of the synchronization state information between three or more nodes, the transmission method being consistent with the above. For example, the first node is further connected to the fourth node, then, from the link between the first node and the second node, the link between the first node and the third node, and between the first node and the fourth node Select one optimal link in the link, and select the most from each optimal link. Preferably, the first node receives the synchronization status message sent by the node corresponding to the link through the optimal link, and sends the synchronization status message to the node corresponding to the other optimal link through the other optimal link. The other links of the first node except the optimal link respectively forcibly transmit the second synchronization state information, that is, the year-on-year state information of the quality level F. Of course, the "first", "second" and "third" in the preferred embodiment are merely used to distinguish different subjects and are not intended to define the subject. The transmission technology of the synchronization state information in the Ethernet synchronization of the foregoing Embodiment 1 and Embodiment 2 can be based on the standard SSM protocol, and the SSM packet is grouped, the packet is elected, and the port is sent outside the mandatory optimal source. The quality level is used to implement link grouping to prevent the ringing of synchronous Ethernet. For the first node and the second node, the first node receives the SSM protocol packet, and determines the source access control (Medium Access Control, MAC for short) of the packet. If the source MAC address is the same, the first packet may be considered. The text is from the same node. For example, the port sent by the port of the second node received by the port of the first node can determine that the port of the second node is a homologous port. And selecting a clock source corresponding to one port in the port of the first node as an optimal clock source in the link group of the first node and the second node, and selecting a clock source corresponding to the port from the port of the first node as the first The optimal clock source in the link grouping of a node relative to the third node. Selecting an optimal clock source from an optimal clock source in the link packet of the first node and the second node and an optimal clock source in the link packet of the first node and the third node; for example, selecting the first node And the optimal clock source in the link group of the second node is used as the optimal clock source, and the port corresponding to the optimal clock source receives the first synchronization state information sent by the second node according to the standard SSM protocol, where the first node is opposite to the first node. The port corresponding to the optimal clock source in the link packet of the third node sends the first synchronization status message to the third node, thereby completing the process of transmitting the first synchronization state information from the second node to the third node, the first node And the other port in the link packet of the second node forcibly transmits the packet with the quality level F, and the other ports in the link group of the first node and the third node forcibly send the packet with the quality level F, the quality level is The packet of the F is the quality level of the second synchronization state information, wherein the packet of the quality level F is used to indicate: after receiving the packet of the quality level F, the time corresponding to the port Lock operation is not set, i.e., does not receive a first synchronization status message sent by the second node or the third reception operation synchronization status message transmitted by the third node. Synchronous Ethernet with the above-mentioned link grouping can avoid the reverse communication of the synchronization status information in a loop, so that the standard SSM protocol can be used normally in the networking environment of multi-link communication. Example 3 Based on the network structure of FIG. 3, FIG. 5 shows another flow chart of a method for transmitting synchronization state information in Ethernet synchronization, wherein DUT1 may be a first node, and DUT2 may be a second node. The method for transmitting synchronization status information in Ethernet synchronization as shown in FIG. 5 includes the following steps: Step S501: DUT1 has its own quality level of 2, and configures multiple links of port 11 to port In, and for each link The port is configured with the corresponding clock source, and the automatic SSM algorithm is used, that is, the standard SSM protocol is operated, that is, the synchronization state information is transmitted. Step S502: The DUT2 has a quality level of 4, and configures multiple links of the port 21 to the port 2n, and configures a corresponding clock source for each port of the link, and starts an automatic SSM algorithm, that is, performs synchronization state information transmission. It should be noted that the system not only includes two DUT devices, but also can configure multi-link communication of multiple devices, that is, it can include not only the first node and the second node, but also the third device. A node such as a node. Of course, when multiple nodes are included, a corresponding clock source needs to be configured for the port of the link between each node. The following describes the transmission example of the synchronization status information including the three-node system: Step S503: All the ports of the DUT1 receive the SSM message of the peer end, and compare the source MAC address, and the peer end includes the DUT2 and the DUT3. For example, all ports of the first node (for example: port 11-ln and port 41-4n) receive a port (eg, port 21-2n) and a third node and the first port from the second node to the first node. The SSM packet sent by the port connected to the port of a node (for example, port 31-3n) compares the MAC address of the SSM packet. Step S504: group according to the source MAC address of the message. The ports of the same origin are in the same group, that is, the ports from the same node belong to the same port, for example: The port of the second node (for example: port 21-2n) belongs to one group, and the port of the third node (for example : Port 31-3n) belongs to a group. There can be multiple ports in a group, or only one port. In the following, the first node and the second node are connected by two links, and the first node and the third node are connected through a link as an example to describe the transmission process of the synchronization state information, for example: the first node and the second node pass The two links are connected, the port 11 of the first node is connected to the port 12 of the second node, the port 12 of the first node is connected to the port 22 of the second node, and the port 41 of the first node is connected to the port 31 of the third node. Of course, the transfer process is also applicable to other connection situations. For the case where one packet has multiple cognate ports, step S505 is performed, and if there is only one cognate port for one packet, step S506 is performed. Step S505: For a packet having multiple cognate ports, the optimal clock source corresponding to the port in the packet is elected according to the standard SSM protocol. For example, the clock source corresponding to the port 11 of the first node is elected as the optimal clock source. After step S505 is performed, the process goes to step S507. Step S506: For a packet with only one port, the port directly participates in the selection. For example, the clock source corresponding to the port 41 of the first node directly serves as an optimal clock source. After the step S506 is performed, the process goes to step S507. Step S507: The DUT1 device elects the clock source of all the group elections according to the standard SSM protocol to select the best clock source as the source to be locked by the DUT1, for example: the port at the first node. An optimal clock source corresponding to the optimal clock source corresponding to the port 41 of the first node is selected as an optimal clock source (for example, port 11), and the optimal clock source is used as a lock source, that is, the optimal clock source. The corresponding port (for example: port 11) only receives the synchronization status information sent by the port of the node connected to the port (for example: port 21). At this point, DUT1 has selected the corresponding clock source (for example: port 11). Next, the process of transmitting the synchronization status information to the downstream node (for example, DUT3) by DUT1 is explained: For a case where one packet has a plurality of cognate ports, S508 is performed, and in the case where one packet has one cognate port, S509 is executed. Step S508: For the packets of the plurality of cognate ports in step S505, the other ports that are not elected as the optimal clock source forcibly transmit the synchronization state information of the quality level F. For example, port 12 of the first node forces transmission of synchronization status information of quality level F to port 22 of the second node. The port of the optimal clock source for election (for example, port 11 and port 41) determines whether the optimal clock source is selected as the lock source of DUT1 according to the standard SSM protocol. If the clock source corresponding to the port (for example, port 11) is Select the lock source of DUT1. The port (for example: port 11) only receives the synchronization status information sent by the corresponding port (for example: port 21 of the second node): If the clock source corresponding to the port (for example: port 41) It is not selected as the lock source by DUT1 (that is, the clock source corresponding to port 41 is only the optimal clock source), and the port (for example: port 41) sends synchronization status information to the downstream (for example, the third node), the synchronization status information. The quality level of the DUT1 lock source (for example: the clock source corresponding to port 11). That is, after the optimal clock source is selected, for example, the clock source corresponding to each of the port 11 and the port 41 is selected as the optimal clock source, and the clock source corresponding to the port 11 of the first node determines whether it is the lock source. (ie, the best clock source), if yes, the port 11 only receives the synchronization status information sent by the second node port 21, and if not (ie, the port corresponding to the optimal clock source is port 41), the port 11 sends the reception from the port 41. The synchronization status information sent from the port 31 of the third node to the port 21 of the second node. After step S508 is performed, the process goes to step S510. Step S509: For only one port packet in step S506, according to the standard SSM protocol, determine whether the clock source of the port (for example: port 41) is selected as the lock source of DUT1, if selected as the lock of DUT1. If the source is fixed, the port (for example: port 41) only receives the synchronization status information sent by the corresponding port (for example: port 31); if it is not selected as the lock source by DUT1, it goes to the downstream node (for example: the second node) The synchronization status information is sent, and the synchronization status information carries the quality level of the DUT1 lock source (ie, the clock source corresponding to port 41). That is to say, the clock source corresponding to the port 41 of the first node determines whether it is the lock source, that is, the optimal clock source, and if so, only receives the synchronization status message sent by the port 31 of the third node, and if not, the port 11 is sent. The received synchronization status information sent by the port 21 of the second node is sent to the port 31 of the third node. After step S509 is performed, the process goes to step S510. Step S510: Port 11 and port 12 of DUT1 are in one group, and DUT1 elects port 11 as the device clock source, that is, the source of the lock, then port 11 only receives the synchronization status information sent by port 21, and port 12 sends the quality level to the outside. Synchronization status information for F. Port 22 of DUT2 receives the message. Since the level is F, the port 22 cannot be used as a selection source, so the DUT2 is self-oscillated. That is to say, other ports of DUT2 (for example: 21-2n) will not judge the synchronization status information received by itself, and select the clock source corresponding to the port as the lock source, thus preventing the first node and the second node from being multi-chained. The road is connected to form a ring. The same process is the same for DUT3. Step S511: Both DUT1 and DUT2 are stable, thereby expanding the method of synchronizing state information transmission between multiple devices, thereby achieving full network synchronization. From the above description, it can be seen that the present invention achieves the following technical effects: The problem is solved by grouping multiple links of the switching device and selecting one link from each group for transmission of synchronization state information. Further, the effect of preventing the multi-link communication from being looped, thereby enabling the synchronization state information to be smoothly transmitted downstream. 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 spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种以太网同步中的同步状态信息的传输方法, 包括: A method for transmitting synchronization status information in Ethernet synchronization, comprising:
第一节点在所述第一节点与第二节点之间的每条链路上接收来自所述第二 节点的第一同步状态信息, 其中, 所述第一同步状态信息的质量等级为所述第 二节点的质量等级;  The first node receives first synchronization state information from the second node on each link between the first node and the second node, where the quality level of the first synchronization state information is The quality level of the second node;
若所述第一节点只连接所述第二节点, 则所述第一节点将其上的第一端口 设置为只接收来自所述第二节点上的第二端口的所述第一同步状态信息, 并在 与所述第二节点连接的所有端口中除所述第一端口之外的其他端口上向所述第 二节点发送第二同步状态信息, 其中, 所述第二同步状态信息的质量等级与所 述第一同步状态信息不同, 所述第一端口与所述第二端口之间存在一条所述链 路。  If the first node is only connected to the second node, the first node sets the first port on the first port to receive only the first synchronization state information from the second port on the second node. Transmitting, to the second node, the second synchronization state information to the second node, where the port is not connected to the first node, where the quality of the second synchronization state information is The level is different from the first synchronization status information, and one link exists between the first port and the second port.
2. 根据权利要求 1所述的方法, 其中, 在所述第二节点接收到所述第二同步状态 信息之后, 还包括: The method according to claim 1, wherein, after the second node receives the second synchronization status information, the method further includes:
所述第二节点只在所述第二端口上向所述第一端口发送所述第一同步状态 信息。  The second node sends the first synchronization status information to the first port only on the second port.
3. 根据权利要求 1所述的方法, 其中, 还包括: 3. The method according to claim 1, further comprising:
若所述第一节点连接所述第二节点和第三节点, 所述第一节点比较所述第 二节点发送的所述第一同步状态信息的质量等级与所述第三节点发送的第三同 步状态信息的质量等级;  If the first node is connected to the second node and the third node, the first node compares a quality level of the first synchronization state information sent by the second node with a third level sent by the third node The quality level of the synchronization status information;
若所述第二节点发送的所述第一同步状态信息的质量等级高于所述第三节 点发送的第三同步状态信息的质量等级, 则所述第一节点将其上的所述第一端 口设置为只接收来自所述第二节点上的所述第二端口的所述第一同步状态信 息, 并在与所述第二节点连接的所有端口中除所述第一端口之外的其他端口上 向所述第二节点发送所述第二同步状态信息, 其中, 所述第二同步状态信息的 质量等级与所述第一同步状态信息不同; 以及所述第一节点将其上用于连接所 述第三节点的第三端口设置为只向所述第三节点的第四端口发送来自所述第二 节点上的第二端口的第一同步状态信息, 并在与所述第三节点连接的所有端口 中除所述第三端口之外的其他端口上向所述第三节点发送所述第二同步状态信 息。 And if the quality level of the first synchronization state information sent by the second node is higher than the quality level of the third synchronization state information sent by the third node, the first node The port is configured to receive only the first synchronization state information from the second port on the second node, and in addition to the first port among all ports connected to the second node Sending, by the second node, the second synchronization state information to the second node, where the quality level of the second synchronization state information is different from the first synchronization state information; and the first node is used by the first node The third port connected to the third node is configured to send only the first synchronization state information from the second port on the second node to the fourth port of the third node, and in the third node The second synchronization state information is sent to the third node on all ports of the connected ports except the third port.
4. 根据权利要求 3所述的方法, 其中, 若所述第二节点发送的所述第一同步状态 信息的质量等级低于或等于所述第三节点发送的第三同步状态信息的质量等 级, 所述方法还包括: The method according to claim 3, wherein, if the quality level of the first synchronization state information sent by the second node is lower than or equal to the quality level of the third synchronization state information sent by the third node The method further includes:
所述第一节点将其上的所述第三端口设置为只接收来自所述第三节点上的 所述第四端口的所述第三同步状态信息, 并在与所述第三节点连接的所有端口 中除所述第三端口之外的其他端口上向所述第三节点发送所述第二同步状态信 息, 其中, 所述第二同步状态信息的质量等级与所述第三同步状态信息不同; 以及所述第一节点将其上用于连接所述第二节点的所述第一端口设置为只向所 述第二节点的所述第二端口发送来自所述第三节点上的所述第四端口的所述第 三同步状态信息, 并在与所述第二节点连接的所有端口中除所述第一端口之外 的其他端口上向所述第二节点发送所述第二同步状态信息。  The first node sets the third port thereon to receive only the third synchronization state information from the fourth port on the third node, and is connected to the third node. Transmitting the second synchronization state information to the third node on the ports other than the third port, where the quality level of the second synchronization state information and the third synchronization state information And the first node sets the first port on which the second node is connected to be sent only to the second port of the second node from the third node The third synchronization state information of the fourth port, and sending the second synchronization to the second node on all ports except the first port among all ports connected to the second node status information.
5. 根据权利要求 3所述的方法, 其中, 所述第一节点按照所述第二节点发送的所 述第一同步状态信息携带的指示质量等级的指示标志位与所述第三节点发送的 第三同步状态信息携带的指示质量等级的指示标志位来比较所述第一同步状态 信息的质量等级和所述第三同步状态信息的质量等级。 The method according to claim 3, wherein the indication flag of the indicated quality level carried by the first node according to the first synchronization state information sent by the second node is sent by the third node. The indication flag indicating the quality level carried by the third synchronization state information compares the quality level of the first synchronization state information with the quality level of the third synchronization state information.
6. 一种以太网同步中的同步状态信息的传输系统, 包括: 第一节点和第二节点, 其中: 所述第二节点设置为在所述第一节点与所述第二节点之间的每条第一链路 上向所述第一节点发送第一同步状态信息, 其中, 所述第一同步状态信息的质 量等级为所述第二节点的质量等级; A transmission system for synchronizing state information in Ethernet synchronization, comprising: a first node and a second node, wherein: the second node is set to be between the first node and the second node Transmitting, by the first link, the first synchronization state information to the first node, where the quality level of the first synchronization state information is a quality level of the second node;
所述第一节点设置为在所述第一节点只连接所述第二节点时, 将其上的第 一端口设置为只接收来自所述第二节点上的第二端口的所述第一同步状态信 息, 并在与所述第二节点连接的所有端口中除所述第一端口之外的其他端口上 向所述第二节点发送第二同步状态信息, 其中, 所述第二同步状态信息的质量 等级与所述第一同步状态信息不同, 所述第一端口与所述第二端口之间存在一 条所述第一链路。  The first node is configured to, when the first node connects only the second node, set a first port thereon to receive only the first synchronization from a second port on the second node State information, and send, to the second node, second synchronization state information, on the other port except the first port, in all the ports connected to the second node, where the second synchronization state information The quality level is different from the first synchronization status information, and the first link exists between the first port and the second port.
7. 根据权利要求 6所述的系统, 其中, 所述第二节点还设置为在接收到所述第二 同步状态信息之后, 只在所述第二端口上向所述第一端口发送所述第一同步状 态信息。 7. The system according to claim 6, wherein the second node is further configured to send the the port to the first port only on the second port after receiving the second synchronization state information. First synchronization status information.
8. 根据权利要求 6所述的系统, 其中, 还包括: 连接所述第一节点的第三节点, 设置为在所述第一节点与所述第三节点之间的每条第二链路上发送第三同步状 态信息,其中,所述第三同步状态信息的质量等级为所述第三节点的质量等级; 其中, 所述第一节点包括: 依次连接的比较单元和第一发送单元, 其中, 所述比较单元设置为比较所述第二节点发送的所述第一同步状态信息的质 量等级与所述第三节点发送的所述第三同步状态信息的质量等级; 8. The system according to claim 6, further comprising: a third node connecting the first node, configured as each second link between the first node and the third node The third synchronization state information is sent, where the quality level of the third synchronization state information is the quality level of the third node, where the first node includes: a comparison unit and a first sending unit that are sequentially connected, The comparing unit is configured to compare a quality level of the first synchronization state information sent by the second node with a quality level of the third synchronization state information sent by the third node;
所述第一发送单元设置为在所述第一同步状态信息的质量等级高于所述第 三同步状态信息的质量等级时, 将所述第一节点的所述第一端口设置为只接收 来自所述第二节点的所述第二端口上的所述第一同步状态信息, 并在与所述第 二节点连接的所有端口中除所述第一端口之外的其他端口上向所述第二节点发 送所述第二同步状态信息, 其中, 所述第二同步状态信息的质量等级与所述第 一同步状态信息不同; 以及将所述第一节点中的用于连接所述第三节点的第三 端口设置为只向所述第三节点的第四端口发送来自所述第二节点上的第二端口 的所述第一同步状态信息, 并在与所述第三节点连接的所有端口中除所述第三 端口之外的其他端口上向所述第三节点发送所述第二同步状态信息。  The first sending unit is configured to set the first port of the first node to receive only from when the quality level of the first synchronization state information is higher than the quality level of the third synchronization state information The first synchronization state information on the second port of the second node, and on the ports other than the first port among all ports connected to the second node The second node sends the second synchronization state information, where the quality level of the second synchronization state information is different from the first synchronization state information; and the third node in the first node is used to connect to the third node. The third port is configured to transmit only the first synchronization state information from the second port on the second node to the fourth port of the third node, and to all ports connected to the third node Sending the second synchronization state information to the third node on a port other than the third port.
9. 根据权利要求 8所述的系统, 其中, 所述第一节点还包括: 连接比较单元的第二发送单元, 设置为在所述第一同步状态信息的质量等 级低于或等于所述第三同步状态信息的质量等级时, 将所述第一节点的所述第 三端口设置为只接收来自所述第三节点上的所述第四端口的所述第三同步状态 信息, 并在与所述第三节点连接的所有端口中除所述第三端口之外的其他端口 上向所述第三节点发送所述第二同步状态信息, 其中, 所述第二同步状态信息 的质量等级与所述第三同步状态信息不同; 以及将所述第一节点中的用于连接 所述第二节点的所述第一端口设置为只向所述第二节点的所述第二端口发送来 自所述第三节点上的所述第四端口的所述第三同步状态信息, 并在与所述第二 节点连接的所有端口中除所述第一端口之外的其他端口上向所述第二节点发送 所述第二同步状态信息。 The system according to claim 8, wherein the first node further comprises: a second sending unit connected to the comparing unit, configured to set a quality level of the first synchronization state information lower than or equal to the first When the quality level of the synchronization status information is three, the third port of the first node is set to receive only the third synchronization status information from the fourth port on the third node, and And sending, by the third node, the second synchronization state information to the third node, where the quality of the second synchronization state information is The third synchronization state information is different; and setting the first port in the first node for connecting the second node to send only the second port to the second node The third synchronization state information of the fourth port on the third node, and the second port on the port other than the first port in all ports connected to the second node Second synchronization point transmits the state information.
10. 根据权利要求 8所述的系统, 其中, 所述比较单元还设置为按照所述第二节点 发送的所述第一同步状态信息携带的指示质量等级的指示标志位与所述第三节 点发送的第三同步状态信息携带的指示质量等级的指示标志位来比较所述第一 同步状态信息的质量等级和所述第三同步状态信息的质量等级。 The system according to claim 8, wherein the comparing unit is further configured to: according to the indication flag bit of the indicated quality level carried by the first synchronization state information sent by the second node, and the third node The indication flag indicating the quality level carried by the transmitted third synchronization state information compares the quality level of the first synchronization state information with the quality level of the third synchronization state information.
PCT/CN2012/071932 2011-04-08 2012-03-05 Transmission method and system for synchronous state information in ethernet synchronization WO2012136085A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110088388.1A CN102158412B (en) 2011-04-08 2011-04-08 Transmission method and system of synchronous state information in Ethernet synchronization
CN201110088388.1 2011-04-08

Publications (1)

Publication Number Publication Date
WO2012136085A1 true WO2012136085A1 (en) 2012-10-11

Family

ID=44439608

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/071932 WO2012136085A1 (en) 2011-04-08 2012-03-05 Transmission method and system for synchronous state information in ethernet synchronization

Country Status (2)

Country Link
CN (1) CN102158412B (en)
WO (1) WO2012136085A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158412B (en) * 2011-04-08 2015-05-20 中兴通讯股份有限公司 Transmission method and system of synchronous state information in Ethernet synchronization
CN102404102B (en) * 2011-11-16 2017-07-21 南京中兴软件有限责任公司 A kind of method and apparatus of synchronous ethernet
CN103716106B (en) * 2012-09-28 2017-08-29 华为技术有限公司 Clock synchronizing method, system and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1507227A (en) * 2002-12-12 2004-06-23 华为技术有限公司 Method of preventing formation of timing loop in synchronous network
CN101068133A (en) * 2007-06-12 2007-11-07 华为技术有限公司 Time synchronizing method, network communication system and equipment and time server thereof
CN101547085A (en) * 2009-04-29 2009-09-30 华为技术有限公司 Physical layer port master-slave configuration method, device and communication system
CN102158412A (en) * 2011-04-08 2011-08-17 中兴通讯股份有限公司 Transmission method and system of synchronous state information in Ethernet synchronization

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1507227A (en) * 2002-12-12 2004-06-23 华为技术有限公司 Method of preventing formation of timing loop in synchronous network
CN101068133A (en) * 2007-06-12 2007-11-07 华为技术有限公司 Time synchronizing method, network communication system and equipment and time server thereof
CN101547085A (en) * 2009-04-29 2009-09-30 华为技术有限公司 Physical layer port master-slave configuration method, device and communication system
CN102158412A (en) * 2011-04-08 2011-08-17 中兴通讯股份有限公司 Transmission method and system of synchronous state information in Ethernet synchronization

Also Published As

Publication number Publication date
CN102158412B (en) 2015-05-20
CN102158412A (en) 2011-08-17

Similar Documents

Publication Publication Date Title
US11165630B2 (en) System and method for resilient wireless packet communications
US8160053B2 (en) Method, apparatus and network element for clock tracing
US7813271B2 (en) Aggregated link traffic protection
US8831435B2 (en) System and method for dual wavelength communications of a clock signal
US7619987B2 (en) Node device
CA2730020C (en) Synchronization of communication equipment
WO2013071807A1 (en) Method, system and apparatus for implementing hybrid networking of multiple clock synchronization technologies
WO2018090856A1 (en) Method and device for building flexible ethernet group
JP5633469B2 (en) NETWORK, FAILURE RECOVERY METHOD, AND NODE DEVICE
WO2014101669A1 (en) Time synchronization method and system
WO2020074007A1 (en) Link establishment method and apparatus, and computer readable storage medium
WO2013152700A1 (en) Clock source selection method and device for microwave network element
US20150341186A1 (en) Method and apparatus for circuit emulation with integrated network diagnostics and reduced form factor in large public communication networks
CN101447828A (en) Multi-service access SDH optical transmission device
US8244126B2 (en) Automatically selecting a clock recovery mode within optical network terminals
WO2012136085A1 (en) Transmission method and system for synchronous state information in ethernet synchronization
TW200425669A (en) System, method and device for time slot status messaging among SONET nodes
US7522614B1 (en) Multi-service access platform for telecommunications and data networks
CN102404102B (en) A kind of method and apparatus of synchronous ethernet
WO2005067195A1 (en) A method for implementing the synchronization of the timing sources in the network
CN201388200Y (en) Multi-service access SDH optical transmission set
JP2018098556A (en) Optical ring network system and path control method therefor
US20100315941A1 (en) Maintaining time-division multiplexing over pseudowire connections during network outages
WO2012071838A1 (en) Multi-link clock recovery method and apparatus
Lee et al. NetFPGA based IEEE 1588 module for time-synchronized software-defined networking

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

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

Country of ref document: EP

Kind code of ref document: A1