WO2015172473A1 - 同步链路确定方法、装置和计算机存储介质 - Google Patents

同步链路确定方法、装置和计算机存储介质 Download PDF

Info

Publication number
WO2015172473A1
WO2015172473A1 PCT/CN2014/086324 CN2014086324W WO2015172473A1 WO 2015172473 A1 WO2015172473 A1 WO 2015172473A1 CN 2014086324 W CN2014086324 W CN 2014086324W WO 2015172473 A1 WO2015172473 A1 WO 2015172473A1
Authority
WO
WIPO (PCT)
Prior art keywords
synchronization
network device
capability information
link
port
Prior art date
Application number
PCT/CN2014/086324
Other languages
English (en)
French (fr)
Inventor
张君辉
何力
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015172473A1 publication Critical patent/WO2015172473A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks

Definitions

  • the present invention relates to synchronization technologies in the field of communications, and in particular, to a synchronization link determination method and apparatus, and a computer storage medium.
  • the existing synchronization includes frequency synchronization and time synchronization; the synchronization network is divided into a frequency synchronization network and a time synchronization network.
  • Frequency synchronization usually uses SyncE (Synchronous Ethernet) to extract clock information from the physical stream and synchronizes with SSM (Synchronous Status Message) frequency source selection and path switching.
  • Time synchronization usually uses PTP (Precise Timing Protocol) to extract timestamp information from the message, calculate the time offset and perform time calibration. Time synchronization uses the PTP protocol to select the time source and perform path switching.
  • the physical topology of the network devices is determined by sending a link discovery protocol packet, and the physical topology is synchronized according to the physical topology; however, in actual processing, some network devices do not have support for synchronization or The supported synchronization type is not adapted, which causes the network device to be unable to synchronize. Therefore, selecting a synchronous link to successfully synchronize the network devices is an urgent problem to be solved in the prior art.
  • embodiments of the present invention are directed to a method and apparatus for determining a synchronization link that can improve the synchronization success rate between devices.
  • a first aspect of the embodiments of the present invention provides a method for determining a synchronization link, where the method includes:
  • a synchronization link is determined according to the synchronization capability information.
  • the synchronization capability information includes device synchronization capability information and port synchronization capability information
  • the device synchronization capability information includes indication information of whether the network device supports synchronization and/or supported synchronization type
  • the port synchronization capability information includes indication information of whether the port of the network device supports synchronization and/or supported synchronization type.
  • the acquiring synchronization capability information of the network device includes:
  • the device synchronization capability information reported by the receiving network device is:
  • the method further includes: obtaining a clock level quality of the network device and/or a priority of a port of the network device;
  • Determining the synchronization link according to the synchronization capability information includes:
  • a link with the least number of hops is selected from the at least two candidate links as the synchronization link according to the clock level quality and/or the priority.
  • a second aspect of the embodiments of the present invention provides a synchronization link determining apparatus, where the apparatus includes:
  • An acquiring unit configured to acquire synchronization capability information of the network device
  • a determining unit configured to determine a synchronization link according to the synchronization capability information.
  • the synchronization capability information includes device synchronization capability information and port synchronization capability information
  • the device synchronization capability information includes indication information of whether the network device supports synchronization and/or supported synchronization type
  • the port synchronization capability information includes indication information of whether the port of the network device supports synchronization and/or supported synchronization type.
  • the obtaining unit includes:
  • a receiving module configured to receive device synchronization capability information reported by the network device
  • the sending module is configured to send the request information to the network device according to the device synchronization capability information
  • the receiving module is further configured to receive port synchronization capability information that is sent by the network device according to the request message.
  • the receiving module is configured to receive a switch-features message sent by the network device through an openflow communication link, and extract the device synchronization capability information from the switch-features message.
  • the obtaining unit is further configured to acquire a clock level quality of the network device and/or the network The priority of the device's port;
  • the determining unit is configured to calculate, according to the synchronization capability information, an alternative link that can be configured to be synchronized; and, according to the clock level quality and/or the priority, from at least two of the candidate links One of them is selected as the synchronous link.
  • the determining unit is configured to select, as the synchronous link, a link with a minimum number of hops from at least two candidate links according to the clock level quality and/or the priority.
  • a third aspect of the embodiments of the present invention provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are configured to perform at least one of the methods of the first aspect of the embodiments of the present invention. one.
  • the method and device for determining a synchronization link change a method for selecting a synchronization link that randomly selects a link from a physical link to perform synchronization between devices, and instead, first acquires each network device.
  • the synchronization capability information determines the synchronization link according to the synchronization capability information, and the selected synchronization link does not cause the synchronization failure due to the device not having the corresponding synchronization capability, thereby improving the synchronization success rate.
  • FIG. 1 is a schematic flowchart of a method for determining a synchronization link according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic flowchart of acquiring synchronization synchronization capability information of a network device according to Embodiment 1 of the present invention
  • FIG. 3 is a schematic structural diagram of a synchronization link determining apparatus according to Embodiment 2 of the present invention.
  • FIG. 4 is a schematic structural diagram of a synchronous network according to an example of the present invention.
  • FIG. 5 is a second schematic structural diagram of a synchronous network according to an example of the present invention.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • this embodiment provides a method for determining a synchronization link, where the method includes:
  • Step S110 Acquire synchronization capability information of the network device.
  • Step S120 Determine a synchronization link according to the synchronization capability information.
  • the synchronization capability information of the network device in the step S110 can be obtained by receiving a message reported by the network device.
  • the synchronization capability information includes whether the network device supports frequency synchronization and/or supports time synchronization; specifically, whether to support synchronous Ethernet SyncE, whether to support point-to-point PTP, and which PTP node type is supported; the node type may be a boundary At least one of a clock (Boundary Clock, BC), a transparent clock (TC), and an ordinary clock (OC).
  • BC Boundary Clock
  • TC transparent clock
  • OC ordinary clock
  • the synchronization link determining device obtains device identification information of the network device and synchronization capability information corresponding to the network device; the device identification information includes information such as a device ID or a device network address.
  • the specific information about how to obtain the network device identification information may be obtained by receiving information reported by the network device, or by extracting information such as an address (such as an IP address or a MAC address) in the data packet of the reported information.
  • the step S120 may include: determining, according to the synchronization capability information acquired in step S110, which network devices are available as intermediate devices configured to be synchronized; determining that the selected network device is configured to form a synchronization path or the like.
  • the frequency synchronization between the network device A and the network device B is required. If the network device A and the network device B cannot directly establish a connection, the intermediate device is required to assist the synchronization between the network device A and the network device B. At this time, the network device as the intermediate device is required to support the same frequency synchronization.
  • the synchronization capability information of each network device is obtained first; the synchronization link is determined according to the synchronization capability information, thereby avoiding the synchronization caused by randomly selecting a link as the synchronization link according to the physical topology. The problem of failure.
  • the synchronization capability information includes device synchronization capability information and port synchronization capability information;
  • the device synchronization capability information is configured to characterize whether the network device supports synchronization and/or supports synchronization
  • the port synchronization capability information is configured to characterize whether the port of the network device supports synchronization and/or supported synchronization types.
  • the network device may include multiple ports, and the hardware cost is reduced. Not every port of the network device can be used as a synchronization port. Therefore, whether the network device can be configured as a synchronization first is obtained. Also, which port of the network device is configurable to be synchronized.
  • the device synchronization capability information and the port synchronization capability information may be reported by the network device to the synchronization link determining device, such as a controller, but may be separately reported to the controller, and a preferred manner is provided below. details as follows:
  • the specific step S110 may include:
  • Step S111 Receive device synchronization capability information reported by the network device.
  • Step S112 Send request information to the network device according to the device synchronization capability information.
  • Step S113 Receive port synchronization capability information fed back by the network device according to the request message.
  • the network device Before the network device communicates with the synchronization link determining device such as the controller, it is preferred to establish a communication connection, such as establishing a TCP or UDP connection, such as a TCP/SSL connection. After the connection is established, the device synchronization capability information reported by the network device is received in step S111.
  • a communication connection such as establishing a TCP or UDP connection, such as a TCP/SSL connection.
  • the step S112 may be specifically: selecting, according to the device synchronization capability information, the adapted network device as the synchronization device configured to be synchronized, and sending a request message to the adapted network device. After receiving the request message, the network device will form feedback; therefore, the receiving basis is also included.
  • the port synchronization capability information of the request message feedback may be specifically: selecting, according to the device synchronization capability information, the adapted network device as the synchronization device configured to be synchronized, and sending a request message to the adapted network device. After receiving the request message, the network device will form feedback; therefore, the receiving basis is also included.
  • the port synchronization capability information of the request message feedback may be specifically: selecting, according to the device synchronization capability information, the adapted network device as the synchronization device configured to be synchronized, and sending a request message to the adapted network device. After receiving the request message, the network device will form feedback; therefore, the receiving basis is also included.
  • the controller receives the device synchronization capability information of all the network devices, and sends a request message for obtaining the port synchronization capability information to all or part of the network devices according to the current synchronization type or the synchronization requirement.
  • some network devices support time synchronization, and some network devices support frequency synchronization.
  • network device A and network device B need to perform frequency synchronization, and the controller only synchronizes to the supported frequency after obtaining the device synchronization capability information of each network device.
  • the network device sends a request message to determine which ports of the network device are available as sync ports. This reduces the amount of information transmitted between the network and the controller, and also reduces the network device and the adapted network device port that the controller filters and adapts from the vast amount of information; thereby simplifying the determination of the synchronization link.
  • the synchronization link determining device such as the controller, can receive the synchronization capability information reported by the network device through various ports, such as an Ox port, etc., in this embodiment, the synchronization is reported based on the openflow port.
  • the specific execution of the step S110 is as follows:
  • the step S112 may be: receiving a switch-features message sent by the network device through an openflow communication link; and extracting the device synchronization capability information from the switch-features message.
  • the device synchronization capability information is obtained by the receiving network device reporting the switch-features message through the openflow communication link, which can reduce the number of information interaction between the synchronization link determining device and the network device, and is more convenient.
  • the port capability synchronization information may also be transmitted through openflow.
  • the method further comprises: obtaining a clock level quality of the network device and/or a priority of a port of the network device;
  • Determining the synchronization link according to the synchronization capability information includes:
  • the specific implementation method for obtaining the quality of the clock level and the priority in the embodiment may also be obtained by reporting a message from the received network device; if, in a specific implementation process, if each network device is stored in the network, The network element of the synchronization capability information can also be obtained from the network element.
  • the step of obtaining the quality of the clock level and/or the priority may be performed only before the synchronization link is determined, and there may be no order between the acquisition of the synchronization capability information.
  • the clock level quality may be received from the network device together with the device synchronization capability information; the priority may be synchronized with the port capability information. Received from the network device together.
  • the clock quality level typically characterizes the accuracy of the network device.
  • the clock reference source with the highest clock accuracy has a clock quality level of 1 level; other network devices have a clock quality level of 2 or 3 levels.
  • a high-level network device is usually clocked to a low-level network device; for example, a network device with a clock quality level of 3 is synchronized to a network device with a clock quality level of 2 or 1.
  • the priority of the port of the network device corresponds to the priority of the synchronization link and/or the clock reference source.
  • the network device C has three ports that can be used for synchronization; port 1 is connected to the clock reference source 1; and port 2 is connected to the clock reference 2. At this time, if the priority of port 1 is higher than that of port 2, the synchronization link and/or clock reference source corresponding to port 1 is preferred.
  • the link with the lowest number of hops in the candidate link can be considered under the condition that the clock quality level and the priority are met. Synchronize the link to reduce the number of synchronization devices through which the synchronization message passes, so as to alleviate the problem of reduced synchronization accuracy caused by relay device relay forwarding.
  • the present embodiment provides a method for determining a synchronization link.
  • the synchronization link is first determined according to the synchronization capability message, instead of randomly selecting according to the physical topology result.
  • the synchronization of the synchronization link determined by the method described in this embodiment can be used to reduce the probability of synchronization failure.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the embodiment provides a synchronization link determining apparatus, where the apparatus includes:
  • the obtaining unit 110 is configured to acquire synchronization capability information of the network device.
  • the determining unit 120 is configured to determine the synchronization link according to the synchronization capability information.
  • the specific structure of the acquiring unit 110 is different according to the method for acquiring the synchronization capability information. Specifically, if the acquiring unit 110 acquires synchronization capability information by receiving a report message of the network device, the acquiring unit 110 includes a communication interface.
  • the communication interface can be a wired or wireless communication interface.
  • the wired communication interface includes a coaxial cable communication interface, a twisted pair communication interface, and a fiber optic communication interface; and the wireless communication interface may include an interface such as a transceiver antenna or a transceiver antenna array.
  • the acquiring unit 110 may include a processor.
  • the processor may pass the internal a communication interface, the internal communication interface is configured to access a storage medium therein to obtain the synchronization capability information.
  • the synchronization capability information stored in the synchronization link determining device may be the information received when the synchronization link was last determined, and is stored as history information for subsequent synchronization link determination.
  • the acquiring unit 110 similarly includes an external communication interface connected to the network element. For the specific configuration of the external communication interface, refer to the communication interface connected to the network device.
  • the specific structure of the determining unit 120 may be a processor; the processor is also connected to the storage medium through an internal communication interface or a bus; and the synchronous link is selected by running executable instructions stored on the storage medium.
  • the processor can be a digital signal processor, a single chip microcomputer, a central processing unit, a microprocessor, and a programmable logic array and the like having processing functions.
  • the synchronization capability information includes device synchronization capability information and port synchronization capability information
  • the device synchronization capability information is used to characterize whether the network device supports synchronization and/or support for synchronization; the port synchronization capability information is used to characterize whether the port of the network device supports synchronization and/or supports synchronization.
  • the obtaining unit 110 includes:
  • a receiving module configured to receive device synchronization capability information reported by the network device
  • the sending module is configured to send the request information to the network device according to the device synchronization capability information
  • the receiving module is further configured to receive port synchronization capability information that is sent by the network device according to the request message.
  • the obtaining unit 110 further includes a connection module configured to establish a communication connection with the network device.
  • the connection module may specifically correspond to a physical port.
  • the specific physical structure of the receiving module may be a receiving port; the specific physical structure of the sending module may be a sending port.
  • connection module is configured to establish a TCP/SSL connection with the network device
  • the receiving module is configured to receive a switch-features message sent by the network device through an openflow communication link, and extract the device synchronization capability information from the switch-features message.
  • the obtaining unit 110 is further configured to acquire a clock level quality of the network device and/or a priority of the port of the network device; the determining unit 120 is configured to calculate the energy according to the synchronization capability information. An alternate link for synchronization; and selecting one of the at least two of the candidate links as the synchronization link according to the clock level quality and/or the priority.
  • the determining unit 120 is specifically configured to select, as the synchronous link, a link with the least hop count from at least two candidate links according to the clock level quality and/or the priority.
  • the synchronization link determining apparatus may be a controller, such as a controller in a software-defined network SDN, and provides hardware support for the synchronization link determining method according to the first embodiment, which may be used to implement
  • the method corresponding to any technical solution in the first embodiment can effectively alleviate the probability of synchronization failure.
  • Step 1 The controller establishes a TCP/SSL connection with the network device; the online device reports the device synchronization capability information to the controller.
  • the device synchronization capability information includes whether to support SyncE, whether to support PTP, which PTP node type (BC/TC/OC) is supported, or whether to support both SyncE and PTP;
  • the local clock level quality of each network device can also be reported synchronously.
  • Step 2 The controller sends a request message, where the request message is a request for acquiring port synchronization capability information of each port of the network device.
  • the port synchronization capability information includes whether to support SyncE, whether to support PTP, or whether to support both SyncE and PTP.
  • the network device also reports the priority of each port synchronously while reporting the port capability synchronization information.
  • Step 3 The controller obtains the physical topology information of the synchronization network by sending a link discovery protocol packet or other manner, such as a BGP-LS Border Gateway Protocol-Link State Border Gateway Protocol-link state.
  • the physical topology information may be obtained. Includes the connection relationship of the physical ports of each device.
  • the step 3 and the step 1 and the step 2 have no certain order.
  • Step 4 The controller calculates an alternative link that can be used for synchronization based on the physical topology information of the synchronization network, the synchronization capability information, the clock quality level QL of the reference source, the clock quality level QL of the network device, and/or the priority. Select a link from the alternate link as the synchronous link, such as select hop The least number of links act as synchronous links.
  • Step 5 The controller sends a configuration command to the network device by using the synchronization link obtained in step 4 to establish a synchronization link and synchronize.
  • the controller and the network device are included in the network of FIG. 4; the network device includes a primary reference source, a secondary reference source, a network device NB1, a network device NB2, a network device NB3, a network device NB4, a network device NB5, and a network device NB6.
  • a method for determining a synchronous link is provided below in conjunction with FIG. 4, the method comprising:
  • Step 1 After the controller and the network device are powered on, the primary reference source, the secondary reference source, the network device NB1, the network device NB2, the network device NB3, the network device NB4, the network device NB5, the network device NB6, the network device NE7, and the base station
  • the synchronization capability information includes device synchronization capability information and port synchronization capability information.
  • the synchronization capability information specifically includes: whether to support SyncE, whether to support PTP, which PTP node type (BC/TC/OC) is supported, and whether to support both SyncE and PTP.
  • the network device also synchronously reports the local clock quality level of the network device.
  • the clock quality level QL is also equal to 11. In general, the lower the value taken by QL, the more accurate the corresponding clock.
  • the controller can determine that the network device NE1 to the network device NE6 are all network devices supporting SyncE in the network shown in FIG. 4, and the network device NE7 not only holds the SyncE, so the network device NE7 does not know. Can be used as a frequency synchronization device for Ethernet.
  • the controller preferably communicates with the network device through the openflow interface, and obtains the device synchronization capability information from the switch-features.
  • Step 2 The controller sends a request message to the network devices NE1 to NE6, respectively; the network device After receiving the request message, the port synchronization capability information of each port is reported to the controller.
  • the port indicated by the black solid dot is the port supporting SyncE
  • the port indicated by the hollow dot is the port not supporting SyncE.
  • the controller knows:
  • the ports supporting the SyncE in the network device NE1 are port 11, port 14, and port 12;
  • the ports supporting the SyncE in the network device NE2 are port 21, port 22, and port 23;
  • the ports supporting the SyncE in the network device NE3 are port 31, port 32, and port 33;
  • the ports supporting the SyncE in the network device NE4 are port 41, port 43, and port 45;
  • the ports supporting the SyncE in the network device NE5 are port 51, port 52, port 53, and port 54;
  • the ports supporting the SyncE in the network device NE6 are port 61, port 62, and port 63.
  • the port synchronization capability information may further include information such as whether to support 1 pps+tod, whether to support 2M Hz or 2M bits.
  • the controller can be used to implement synchronization between devices through port 13, port 42, and port 44.
  • port 71 and port 72 of network device NE7 are not supported by network device NE7 itself. Support for SyncE, so its port certainly does not support SyncE.
  • the third step In FIG. 4, the physical link between the network devices indicated by the solid straight line, the connection relationship between the network devices and the network device ports is as shown by the straight line in the figure.
  • the controller may detect a physical connection relationship between the network devices by sending a link discovery protocol packet LLDP.
  • the fourth step the controller selects the synchronization link from the physical connection according to the device synchronization capability information and the port synchronization capability information, and/or the clock level quality and/or priority of the network device.
  • the link corresponding to the dotted arrow is the synchronous link; wherein the link corresponding to the broken line is a broken link.
  • the broken link is used to prevent the formation of a ring synchronous link; The formation of a ring-synchronous link may result in synchronous oscillations.
  • the arrow of the dotted arrow in FIG. 4 points to the line of defense and also indicates the direction of transmission of the reference clock. As shown in FIG.
  • the controller when calculating the synchronization link, the controller mainly excludes the network device that cannot be used as the synchronization node or the synchronization port in the physical link, and the port of the network device, for example, the network device NE7 that does not support SyncE, As a synchronization node; in addition, for example, port 13 that does not support SyncE cannot be used as a forwarding port for synchronization information.
  • Step 5 The controller sends a reference source lock and a timing information output command to the network device through the synchronization link confirmed in the fourth step, and establishes a synchronization path; the synchronization path is used for synchronization between the network devices.
  • the lock message is sent hop by hop from the reference source to the network device in the direction indicated by the dotted arrow shown in FIG.
  • the network device locks the corresponding clock input port and derives the clock information to the downstream clock output port.
  • the controller issues a reference source lock and timing information output command to NE3, requests to lock port 31, and derives clock information to port 32 and port 33.
  • FIG. 4 there are multiple alternative paths for synchronizing between the base station 1 and the reference source.
  • the clock quality level of each reference source may be considered.
  • the controller and the network device are included in the network of FIG. 5; the network device includes a primary reference source GM1, a secondary reference source GM2, a network device BC1, a network device BC2, a network device BC3, a network device BC4, a network device TC5, and a network device.
  • a method for determining a synchronous link is provided below in conjunction with FIG. 5, the method comprising:
  • Step 1 After the controller and network device are powered on, all network devices report synchronization capability information to the controller.
  • the main reference source GM1, the backup reference source GM2, the network device BC1, the network The network device BC2, the network device BC3, the network device BC4, the network device TC5, the network device TC6, the slave device slave1 and the slave device slave 2 all support PTP; and the PTP types supported by the network devices BC1, BC2, BC3 and BC4 are BC;
  • the PTP type supported by the device TC5 and the network device TC6 is TC.
  • the PTP type supported by the primary reference source GM1, the secondary reference source GM2, the slave device slave1, and the slave device slave2 is OC.
  • Non-588 devices do not support PTP.
  • the port that can be used as the forwarding synchronization message can terminate the PTP packet, analyze and calculate the timestamp information in the PTP packet, calculate the time offset, and correct the system time.
  • the PTP type is TC.
  • the port of the network device will correct the timestamp inside the PTP packet, but will not terminate the PTP packet.
  • Step 2 The control device sends a request message to the PTP-enabled network device; specifically to the primary reference source GM1, the secondary reference source GM2, the network device BC1, the network device BC2, the network device BC3, the network device BC4, the network device TC5, and the network device
  • the TC6, the slave device slave1, and the slave device slave2 send a request message.
  • the primary reference source GM1, the secondary reference source GM2, the network device BC1, the network device BC2, the network device BC3, the network device BC4, the network device TC5, the network device TC6, the slave device slave1, and the slave device slave 2 respond to the request message to The controller feeds back the terminal synchronization capability information.
  • the controller knows:
  • the ports supporting PTP in the network device BC1 are port 11, port 14, and port 12;
  • the ports supporting PTP in the network device BC2 are port 21, port 22, and port 23;
  • the ports supporting PTP in the network device BC3 are port 31, port 32, and port 33;
  • the port supporting the PTP in the network device BC4 is port 41, port 43 and port 45;
  • the ports supporting PTP in the network device TC1 are port 51, port 52, port 53, and port 54;
  • the ports that support PTP in the network device TC2 are port 61, port 62, and port 63.
  • the controller cannot realize synchronization between devices through port 13, port 42, and port 44.
  • the port port 71 of the non-588 device and Port 72 because the non-588 device itself does not support PTP, so its port will definitely not support PTP.
  • the third step In FIG. 5, the physical link between the network devices indicated by the solid straight line, the connection relationship between the network devices and the network device ports is as shown in the figure.
  • the controller may detect a physical connection relationship between the network devices by sending a link discovery protocol packet LLDP.
  • the fourth step the controller selects the synchronization link from the physical connection according to the device synchronization capability information and the port synchronization capability information, and/or the clock level quality and/or priority of the network device.
  • the link corresponding to the dotted arrow is the synchronous link; wherein the link corresponding to the broken line is a broken link.
  • the broken link is used to prevent the formation of a ring-shaped synchronous link; if a ring-shaped synchronous link is formed, synchronous oscillation may occur.
  • the arrow of the dotted arrow in FIG. 5 points to the line of defense and also indicates the direction of transmission of the reference clock.
  • the controller when calculating the synchronization link, the controller mainly excludes the network devices that cannot be used as the synchronization node or the synchronization port in the physical link and the ports of the network device. For example, if the non-588 device does not support PTP, As a synchronization node; in addition, for example, port port 13 that does not support PTP cannot be used as a forwarding port for synchronization information.
  • Step 5 The controller sends a reference source lock and a timing information output command to the network device through the synchronization link confirmed in the fourth step, and establishes a synchronization path; the synchronization path is used for synchronization between the network devices.
  • the lock message is sent hop by hop from the reference source to the network device in the direction indicated by the dotted arrow in FIG. 5 .
  • the network device locks the corresponding clock input port and derives the clock information to the downstream clock output port.
  • port port 11 of network device BC1 will receive PTP packets from GM1, extract timestamp information, calculate time offset, and correct system time.
  • Port port 12 and port port 14 will send PTP packets downstream. Time information.
  • the PTP packet received by the network device TC1 from the network BC3 is transparently transmitted to the slave device Slave1 after being corrected by the timestamp.
  • the embodiments of the present invention provide a method and an apparatus for determining a synchronization link, which are used for The synchronization link is determined before the synchronization, and the phenomenon that the synchronization failure caused by selecting one link from the physical connection link as the synchronization link can be effectively avoided.
  • the embodiment of the invention further describes a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are configured as at least one of the methods described in the first embodiment; The method shown in 1.
  • the computer storage medium includes: a removable storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes.
  • the computer storage medium is preferably a non-transitory storage medium.

Landscapes

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

Abstract

本发明公开了一种同步链路确定方法及装置,为降低同步失败概率而设计。所述方法包括:获取网络设备的同步能力信息或网络设备上报同步能力信息;及依据所述同步能力信息确定同步链路。本发明还同时公开了一种计算机存储介质。

Description

同步链路确定方法、装置和计算机存储介质 技术领域
本发明涉及通信领域的同步技术,尤其涉及一种同步链路确定方法及装置和计算机存储介质。
背景技术
现有的同步包括频率同步以及时间同步;同步网络分为频率同步网和时间同步网。频率同步通常采用SyncE(同步以太网)从物理码流中提取时钟信息,并采用SSM(同步状态消息)频率源选择和路径倒换实现同步。时间同步通常采用PTP(精确定时协议)从报文中提取时间戳信息,计算出时间偏差并进行时间校准。时间同步采用PTP协议选择时间源和进行路径倒换。
现有方法在进行同步时,通过发送链路发现协议报文确定网络设备之间的物理拓扑结构,根据所述物理拓扑结构进行同步;但是在实际处理过程中,有些网络设备不具备支持同步或支持的同步类型不适配,导致网络设备无法进行同步;从而选择出一条同步链路能成功实现网络设备之间的同步是现有技术急需解决的问题。
发明内容
有鉴于此,本发明实施例期望提供一种能提高设备间的同步成功率的同步链路确定方法及装置。
为达到上述目的,本发明实施例的技术方案是这样实现的:
本发明实施例第一方面提供一种同步链路确定方法,所述方法包括:
获取或上报网络设备的同步能力信息;
依据所述同步能力信息确定同步链路。
优选地,
所述同步能力信息包括设备同步能力信息以及端口同步能力信息;
所述设备同步能力信息包括所述网络设备是否支持同步和/或支持的同步类型的指示信息;
所述端口同步能力信息包括所述网络设备的端口是否支持同步和/或支持的同步类型的指示信息。
优选地,
所述获取网络设备的同步能力信息包括:
接收网络设备上报的设备同步能力信息;
依据所述设备同步能力信息,向网络设备发送请求信息;
接收网络设备依据所述请求消息反馈的端口同步能力信息。
优选地,
所述接收网络设备上报的设备同步能力信息为:
接收所述网络设备通过openflow通信链路发送的switch-features消息;
从所述switch-features消息提取所述设备同步能力信息。
优选地,
所述方法还包括:获取网络设备的时钟等级质量和/或所述网络设备的端口的优先级;
所述依据所述同步能力信息确定同步链路包括:
依据所述同步能力信息计算出能配置为同步的备选链路;
依据所述时钟等级质量和/或所述优先级,从至少两条所述备选链路中选择一条作为所述同步链路。
优选地,
所述依据所述时钟等级质量和/或所述优先级,从至少两条备选链路中 选择一条作为所述同步链路为:
依据所时钟等级质量和/或所述优先级,从至少两条备选链路中选择出跳数最少的一条链路作为所述同步链路。
本发明实施例第二方面提供一种同步链路确定装置,所述装置包括:
获取单元,配置为获取网络设备的同步能力信息;
确定单元,配置为依据所述同步能力信息确定同步链路。
优选地,
所述同步能力信息包括设备同步能力信息以及端口同步能力信息;
所述设备同步能力信息包括所述网络设备是否支持同步和/或支持的同步类型的指示信息;
所述端口同步能力信息包括所述网络设备的端口是否支持同步和/或支持的同步类型的指示信息。
优选地,
所述获取单元包括:
接收模块,配置为接收网络设备上报的设备同步能力信息;
发送模块,配置为依据所述设备同步能力信息,向网络设备发送请求信息;
所述接收模块,还配置为接收网络设备依据所述请求消息反馈的端口同步能力信息。
优选地,
所述接收模块,配置为接收所述网络设备通过openflow通信链路发送的switch-features消息;及从所述switch-features消息提取所述设备同步能力信息。
优选地,
所述获取单元,还配置为获取网络设备的时钟等级质量和/或所述网络 设备的端口的优先级;
所述确定单元,配置为依据所述同步能力信息计算出能配置为同步的备选链路;及依据所述时钟等级质量和/或所述优先级,从至少两条所述备选链路中选择一条作为所述同步链路。
优选地,
所述确定单元,配置为依据所时钟等级质量和/或所述优先级,从至少两条备选链路中选择出跳数最少的一条链路作为所述同步链路。
本发明实施例第三方面提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令配置为执行本发明实施例第一方面所述方法的至少其中之一。
本发明实施例所述的同步链路确定方法及装置,改变了现有方法随机从物理链路中选择一条链路进行设备间同步的同步链路的选择方法,取而代之的是首先获取各网络设备的同步能力信息,根据同步能力信息来确定同步链路,选择出的同步链路不会因为设备不具备相应的同步能力而导致同步失败的现象,从而提高了同步成功率。
附图说明
图1为本发明实施例一所述的同步链路确定方法的流程示意图;
图2为本发明实施例一中获取网络设备的同步了同步能力信息的流程示意图;
图3为本发明实施例二所述同步链路确定装置的结构示意图;
图4为本发明示例所述的同步网络结构示意图之一;
图5为本发明示例所述的同步网络结构示意图之二。
具体实施方式
以下结合附图对本发明的优选实施例进行详细说明,应当理解,以下所说明的优选实施例仅配置为说明和解释本发明,并不配置为限定本发明。
实施例一:
如图1所示,本实施例提供一种同步链路确定方法,所述方法包括:
步骤S110:获取网络设备的同步能力信息;
步骤S120:依据所述同步能力信息确定同步链路。
在所述步骤S110中获取网络设备的同步能力信息,可以通过接收网络设备上报消息来获得。所述同步能力信息包括网络设备是否支持频率同步和/或支持时间同步;具体如是否支持同步以太网SyncE,是否支持点到点PTP、支持哪种PTP的节点类型;所述节点类型可为边界时钟(Boundary Clock,BC)、透传时钟(Transparent Clock,TC)及普通时钟(Ordinary Clock,OC)至少其中之一。
在具体的执行过程中,同步链路确定装置如控制器,将获得网络设备的设备识别信息以及对应该网络设备的同步能力信息;所述设备识别信息包括设备ID或设备网络地址等信息。具体的如何获取网络设备识别信息可以通过接收网络设备上报的信息来获取,也可以通过提取上报信息的数据包中的地址(如IP地址或MAC地址等信息)等信息来获取。
所述步骤S120可包括:依据步骤S110所获取的同步能力信息,确定出哪些网络设备可作为配置为同步的中间设备;确定选择适配的网络设备形成同步路径等。
具体需要实现网络设备A与网络设备B之间的频率同步,若网络设备A与网络设备B之间不能直接建立连接,则需要中间设备来协助网络设备A与网络设备B的同步。此时要求作为中间设备的网络设备同样的支持频率同步。
在本实施例中在确定同步链路时,先获取各网络设备的同步能力信息;依据同步能力信息来确定同步链路,从而避免了随机根据物理拓扑选择一条链路作为同步链路导致的同步失败的问题。
优选地,所述同步能力信息包括设备同步能力信息以及端口同步能力信息;
所述设备同步能力信息配置为表征所述网络设备是否支持同步和/或支持同步的类型;
所述端口同步能力信息配置为表征所述网络设备的端口是否支持同步和/或支持的同步类型。
在具体的实现过程中,所述网络设备可能包括多个端口,处于降低硬件成本的目的,网络设备的并非每一个端口都能用作同步端口;故首先获取该网络设备是否可作为配置为同步,还要获得该网络设备的哪一个端口可配置为同步。在具体的执行过程中,所述设备同步能力信息和端口同步能力信息可以由网络设备一起上报给同步链路确定装置如控制器;但也可以分别上报给控制器,以下提供一种优选方式,具体如下:
如图2所示,具体的所述步骤S110可包括:
步骤S111:接收网络设备上报的设备同步能力信息;
步骤S112:依据所述设备同步能力信息,向网络设备发送请求信息;
步骤S113:接收网络设备依据所述请求消息反馈的端口同步能力信息。
网络设备与同步链路确定装置如控制器进行通信之前,首选建立好通信连接,如建立TCP或UDP连接,具体如TCP/SSL连接。在建立连接后,在步骤S111中接收网络设备上报的设备同步能力信息。
所述步骤S112具体可为:根据所述设备同步能力信息,选择出适配的网络设备作为配置为同步的同步设备,并向所述适配的网络设备发送请求消息。接收到所述请求消息后,网络设备会形成反馈;故还包括接收依据 请求消息反馈的端口同步能力信息。
具体如,控制器接收所有网络设备的设备同步能力信息,根据当前同步类型或同步需求,向全部或部分网络设备发送获取端口同步能力信息的请求消息。具体如此时部分网络设备支持时间同步,部分网络设备支持频率同步;当前网络设备A与网络设备B需要进行频率同步,则控制器在获得各网络设备的设备同步能力信息后,仅向支持频率同步的网络设备发送请求消息,以确定网络设备的哪些端口可作为同步端口。这样减少了网络与控制器之间传递的信息量,也减少了控制器从海量的信息中进行筛选适配的网络设备及适配的网络设备端口;从而简化了同步链路的确定。
在具体的实现过程中,同步链路确定装置如控制器,可以接收网络设备通过各种端口所上报的同步能力信息,具体如Ox端口等,在本实施例中优选为基于openflow端口上报的同步能力信息,则所述步骤S110的具体执行如下:
所述步骤S112可为:接收所述网络设备通过openflow通信链路发送的switch-features消息;及从所述switch-features消息提取所述设备同步能力信息。
通过接收网络设备通过openflow通信链路上报switch-features消息来获取设备同步能力信息,能减少同步链路确定装置与网络设备之间信息交互的次数,实现更加简便。在具体的实现过程中,所述端口能力同步信息同样可以通过openflow来传输。
优选地,所述方法还包括:获取网络设备的时钟等级质量和/或所述网络设备的端口的优先级;
所述依据所述同步能力信息确定同步链路包括:
依据所述同步能力信息计算出能配置为同步的备选链路;
依据所述时钟等级质量和/或所述优先级,从至少两条所述备选链路中 选择一条作为所述同步链路。
本实施例中获取所述时钟等级质量及所述优先级的具体实现方法,也可以是从接收的网络设备上报消息中获取;若在具体的实现过程中,若网络中设有存储各网络设备的同步能力信息的网元,则也可以从该网元中查询获得。
获取所述时钟等级质量和/或所述优先级的步骤,仅需在确定同步链路之前执行即可,与获取同步能力信息之间可以没有先后顺序。
在具体的执行过程中,为了减少信息交互的次数,简化同步链路确定操作,所述时钟等级质量可以与所述设备同步能力信息一同从网络设备接收;所述优先级可以与端口能力同步信息一同从网络设备接收。
在具体的实现过程中,所述时钟质量等级通常表征了网络设备的精确度。通常时钟精确度最高的时钟参考源的时钟质量等级为1级;其他网络设备的时钟质量等级为2级或3级等级别。在具体的实现过程中,通常为高级别的网络设备向低级别的网络设备进行时钟同步;具体如时钟质量等级为3级的网络设备向时钟质量等级为2级或1级的网络设备同步。
所述网络设备的端口的优先级对应了同步链路和/或时钟参考源的优先级。具体的如网络设备C具有三个可用作同步的端口;端口1与时钟参考源1相连;端口2与时钟参考2相连。此时若端口1的优先级高于端口2,则优选端口1所对应的同步链路和/或时钟参考源。
在具体的实现过程中,可能会出现能配置为同步的链路不止一条,此时可以在满足时钟质量等级以及优先级的条件下,还可以考虑备选链路中跳数最少的链路作为同步链路,以减少同步消息经过的同步设备的个数,以缓解因同步设备中继转发导致的同步精度下降的问题。
综合上述,本实施例提供了一种同步链路确定方法,在进行同步之前,首先依据同步能力消息确定同步链路,而非直接根据物理拓扑结果随机选 择一条路径进行同步,采用本实施例所述的方法确定的同步链路进行同步,能有效的降低同步失败的概率。
实施例二:
如图3所示,本实施例提供一种同步链路确定装置,所述装置包括:
获取单元110,配置为获取网络设备的同步能力信息;
确定单元120,配置为依据所述同步能力信息确定同步链路。
所述获取单元110的具体结构根据获取同步能力信息的方法的不同而不同,具体若所述获取单元110通过接收网络设备的上报消息获取同步能力信息,则所述获取单元110包括通信接口,所述通信接口可为有线或无线的通信接口。有线通信接口包括同轴电缆通信接口、双绞线通信接口及光纤通信接口等;所述无线通信接口可包括收发天线或收发天线阵列等接口。若所述获取单元110通过查询某一存储各网络设备的同步能力信息的网元获取所述同步能力信息,则所述获取单元110可包括处理器。当所述网元为设置在所述同步链路确定装置上的逻辑网元时,即所述同步链路确定装置本身就存储有网络设备的同步能力信息时,则所述处理器可以通过内部通信接口,所述内部通信接口用于访问其内部的存储介质,获取所述同步能力信息。存储在同步链路确定装置中的同步能力信息,可能是上次进行同步链路确定时接收的信息,作为历史信息被存储下来以供后续同步链路确定。当所述网元为与所述同步链路确定装置分离的装置时,则所述获取单元110同样的包括与所述网元连接的外部通信接口。所述外部通信接口的具体构成可以参见与网络设备连接的通信接口。
所述确定单元120的具体结构可为处理器;所述处理器还通过内部通信接口或总线与存储介质相连;通过运行存储在所述存储介质上的可执行指令,选择同步链路。所述处理器可为数字信号处理器、单片机、中央处理器、微处理器以及可编程逻辑阵列等具有处理功能的电子元器件。
所述同步能力信息包括设备同步能力信息以及端口同步能力信息;
所述设备同步能力信息用于表征所述网络设备是否支持同步和/或支持同步的类型;所述端口同步能力信息用于表征所述网络设备的端口是否支持同步和/或支持同步的类型。
所述获取单元110包括:
接收模块,配置为接收网络设备上报的设备同步能力信息;
发送模块,配置为依据所述设备同步能力信息,向网络设备发送请求信息;
所述接收模块,还配置为接收网络设备依据所述请求消息反馈的端口同步能力信息。
在具体的实现过程中,所述获取单元110还将包括连接模块,配置为与网络设备建立通信连接。
所述连接模块具体可对应物理端口。所述接收模块的具体物理结构可为接收端口;所述发送模块的具体物理结构可为发送端口。
优选地,所述连接模块,配置为建立与所述网络设备的TCP/SSL连接;
所述接收模块,配置为接收所述网络设备通过openflow通信链路发送的switch-features消息;及从所述switch-features消息提取所述设备同步能力信息。
优选地,所述获取单元110,还配置为获取网络设备的时钟等级质量和/或所述网络设备的端口的优先级;所述确定单元120,具体配置为依据所述同步能力信息计算出能用于同步的备选链路;及依据所述时钟等级质量和/或所述优先级,从至少两条所述备选链路中选择一条作为所述同步链路。
此外,所述确定单元120,具体配置为依据所时钟等级质量和/或所述优先级,从至少两条备选链路中选择出跳数最少的一条链路作为所述同步链路。
综合上述本实施例所述的同步链路确定装置,具体可为控制器,如软件定义网络SDN中的控制器,为实施例一所述的同步链路确定方法提供了硬件支持,可用来实现实施例一中任意技术方案所对应的方法,能有效的缓解同步失败的几率。
以下基于上述实施例提供几个具体示例:
示例一:
步骤1:控制器和网络设备建立TCP/SSL连接;网上设备上报设备同步能力信息给控制器。所述设备同步能力信息包括是否支持SyncE、是否支持PTP、支持哪种PTP节点类型(BC/TC/OC)或是否同时支持SyncE和PTP;
此外,在上报所述设备同步能力信息的同时,还可以同步上报各网络设备的本地时钟等级质量。
步骤2:控制器发送请求消息,所述请求消息为请求获取网络设备各端口的端口同步能力信息。所述端口同步能力信息包括是否支持SyncE、是否支持PTP或是否同时支持SyncE和PTP等信息。
此外,在上报所述端口能力同步信息的同时,网络设备还同步上报各端口的优先级。
步骤3:控制器通过发送链路发现协议报文或其它方式(比如BGP-LS Border Gateway Protocol-Link State边界网关协议-链路状态),获得同步网的物理拓扑信息;所述物理拓扑信息可包括各设备的物理端口的连接关系。在具体的执行过程中,所述步骤3与所述步骤1及步骤2没有一定的先后顺序。
步骤4:控制器基于同步网的物理拓扑信息、同步能力信息、参考源的时钟质量等级QL、网络设备的时钟质量等级QL和/或优先级,计算可用于同步的备选链路。在从备选链路中选择一条链路作为同步链路,如选择跳 数最少的链路作为同步链路。
步骤5:控制器利用步骤4得出的同步链路下发配置命令给网络设备,建立同步链路,进行同步。
示例二:
在图4的网络中包括控制器及网络设备;所述网络设备包括主参考源、备参考源、网络设备NB1、网络设备NB2、网络设备NB3、网络设备NB4、网络设备NB5、网络设备NB6、网络设备NE7、基站1和基站2。
以下结合图4给出一种同步链路确定方法,所述方法包括:
第一步:控制器及网络设备上电后,主参考源、备参考源、网络设备NB1、网络设备NB2、网络设备NB3、网络设备NB4、网络设备NB5、网络设备NB6、网络设备NE7、基站1和基站2均向控制器上报同步能力信息。其中,所述同步能力信息包括设备同步能力信息及端口同步能力信息。所述同步能力信息具体包括:是否支持SyncE、是否支持PTP、支持哪种PTP节点类型(BC/TC/OC)及是否同时支持SyncE和PTP。在具体的实现过程中,所述网络设备还同步上报网络设备的本地时钟质量等级。在图4中所述主参考源的时钟质量等级QL等于2;备参考源的时钟质量等级QL=6;网络设备NE1至网络设备NE6的时钟质量等级QL均等于11;基站1及基站2的时钟质量等级QL也均等于11。通常情况下QL的所取数值越低,则表示对应的时钟越精确。
控制器根据上报的设备同步能力信息,可确定出在图4所示的网络中,网络设备NE1至网络设备NE6均为支持SyncE的网络设备,网络设备NE7不止持SyncE,故可知网络设备NE7不可以用作以太网的频率同步设备。
具体地,控制器优选为通过openflow接口与网络设备进行通信,从switch-features中获取所述设备同步能力信息。
第二步:控制器分别向网络设备NE1至NE6发送请求消息;网络设备 接收到所述请求消息后,向控制器上报各端口的端口同步能力信息。
在图4中,黑色实心圆点表示的端口为支持SyncE的端口,空心圆点表示的端口为不支持SyncE的端口。
控制器根据网络设备上报的端口同步能力信息可知:
网络设备NE1中支持SyncE的端口为端口11、端口14以及端口12;
网络设备NE2中支持SyncE的端口为端口21、端口22以及端口23;
网络设备NE3中支持SyncE的端口为端口31、端口32以及端口33;
网络设备NE4中支持SyncE的端口为端口41、端口43以及端口45;
网络设备NE5中支持SyncE的端口为端口51、端口52、端口53以及端口54;
网络设备NE6中支持SyncE的端口为端口61、端口62以及端口63。
在具体的执行过程中,所述端口同步能力信息还可包括是否支持1pps+tod、是否支持2M Hz或2M bits等信息。
控制器根据上报的端口同步能力信息可知通过端口13、端口42以及端口44是无法用于实现设备之间的同步的;此外,网络设备NE7的端口71和端口72,因网络设备NE7本身就不支持SyncE,故其端口肯定也就不支持SyncE。
第三步:在图4中,实心直线表示的网络设备之间的物理链路,网络设备之间、网络设备端口之间的连接关系如图中实现直线所示。在具体的实现过程中,所述控制器可以通过发送链路发现协议报文LLDP来检测网络设备之间的物理连接关系。
第四步:控制器、根据设备同步能力信息及端口同步能力信息、和/或网络设备的时钟等级质量和/或优先级,从所述物理连接中选出用于同步链路。在图4中,所述虚线箭头对应的链路即为所述同步链路;其中所述虚线对应的链路为破坏链路。所述破坏链路用来防止形成环形同步链路;若 形成了环形同步链路可能导致同步震荡。在图4中所述虚线箭头的箭头指向防线还表示参考时钟的传递方向。如图4中,控制器在计算同步链路时,主要是通过排除物理链路中不能作为同步节点或同步端口的网络设备以及网络设备的端口,具体如不支持SyncE的网络设备NE7,则不能作为同步节点;另外,例如不支持SyncE的端口13,不能作为同步信息的转发端口。
第五步:控制器通过第四步确认的同步链路,向网络设备下发参考源锁定和定时信息输出命令,建立同步路径;所述同步路径用于网络设备之间的同步。控制器计算出同步链路后,将沿图4中所示虚线箭头所指向的方向,从参考源向网络设备逐跳发送锁定消息。网络设备收到锁定消息和参考源锁定和定时信息输出命令后,将锁定对应的时钟输入端口,并向下游时钟输出端口导出时钟信息。如图4,控制器下发参考源锁定和定时信息输出命令给NE3,要求锁定端口31,并向端口32和端口33导出时钟信息。
根据图4可知,基站1与参考源之间进行同步的备选路径有多条,在具体进行基站1的时钟校正以实现与参考源的同步时,可以考虑各参考源的时钟质量等级,在图4中主参考源的时钟质量等级QL=2较备参考源的时钟质量等级QL=4高,从而优选与主参考源连接的同步链路;如可以选择途经端口11、端口31、端口51及端口54的同步链路。
示例三:
在图5的网络中包括控制器及网络设备;所述网络设备包括主参考源GM1、备参考源GM2、网络设备BC1、网络设备BC2、网络设备BC3、网络设备BC4、网络设备TC5、网络设备TC6、非588设备、从设备slave 1和从设备slave 2。
以下结合图5给出一种同步链路确定方法,所述方法包括:
第一步:控制器及网络设备上电后,所有的网络设备均向控制器上报同步能力信息。其中,主参考源GM1、备参考源GM2、网络设备BC1、网 络设备BC2、网络设备BC3、网络设备BC4、网络设备TC5、网络设备TC6、从设备slave1和从设备slave 2均支持PTP;且网络设备BC1、BC2、BC3及BC4支持的PTP类型为BC;网络设备TC5及网络设备TC6支持的PTP类型为TC。主参考源GM1、备参考源GM2、从设备slave1和从设备slave2支持的PTP类型为OC。非588设备不支持PTP。
其中,PTP类型为BC的网络设备中可用作转发同步消息的端口能终结PTP报文,分析并计算PTP报文内的时间戳信息,计算时间偏差,修正系统时间;而对PTP类型为TC的网络设备的端口将对PTP报文内部的时间戳进行修正,但不终结PTP报文。
第二步:控制设备向支持PTP的网络设备发送请求消息;具体向主参考源GM1、备参考源GM2、网络设备BC1、网络设备BC2、网络设备BC3、网络设备BC4、网络设备TC5、网络设备TC6、从设备slave1和从设备slave2,发送请求消息。主参考源GM1、备参考源GM2、网络设备BC1、网络设备BC2、网络设备BC3、网络设备BC4、网络设备TC5、网络设备TC6、从设备slave1和从设备slave 2,响应所述请求消息,向控制器反馈终端同步能力信息。
控制器根据网络设备上报的端口同步能力信息可知:
网络设备BC1中支持PTP的端口为port 11、port14以及port12;
网络设备BC2中支持PTP的端口为port 21、port22以及port23;
网络设备BC3中支持PTP的端口为port 31、port32以及port33;
网络设备BC4中支持PTP的端口为port 41、port43以及port45;
网络设备TC1中支持PTP的端口为port 51、port52、port53以及port54;
网络设备TC2中支持PTP的端口为port 61、port62以及port63。
控制器根据上报的端口同步能力信息可知通过port13、port 42以及port44是无法实现设备之间的同步的;此外,非588设备的端口port 71和 port 72,因非588设备本身就不支持PTP,故其端口肯定也就不支持PTP。
第三步:在图5中,实心直线表示的网络设备之间的物理链路,网络设备之间、网络设备端口之间的连接关系如图中所示。在具体的实现过程中,所述控制器可以通过发送链路发现协议报文LLDP来检测网络设备之间的物理连接关系。
第四步:控制器、根据设备同步能力信息及端口同步能力信息、和/或网络设备的时钟等级质量和/或优先级,从所述物理连接中选出用于同步链路。在图5中,所述虚线箭头对应的链路即为所述同步链路;其中所述虚线对应的链路为破坏链路。所述破坏链路用来防止形成环形同步链路;若形成了环形同步链路可能导致同步震荡。在图5中所述虚线箭头的箭头指向防线还表示参考时钟的传递方向。如图5中,控制器在计算同步链路时,主要是通过排除物理链路中不能作为同步节点或同步端口的网络设备以及网络设备的端口,具体如不支持PTP的非588设备,则不能作为同步节点;另外,例如不支持PTP的端口port 13,不能作为同步信息的转发端口。
第五步:控制器通过第四步确认的同步链路,向网络设备下发参考源锁定和定时信息输出命令,建立同步路径;所述同步路径用于网络设备之间的同步。,控制器计算出同步链路后,沿如图5所述虚线箭头所指向的方向由参考源向网络设备逐跳发送锁定消息。网络设备收到锁定消息和参考源锁定和定时信息输出命令后,将锁定对应的时钟输入端口,并向下游时钟输出端口导出时钟信息。如图5,网络设备BC1的端口port 11将从GM1接收PTP报文,提取时间戳信息,计算时间偏差,并修正系统时间;同时端口port 12和端口port 14将向下游发送PTP报文,输出时间信息。网络设备TC1从网络BC3收到的PTP报文,经过时间戳修正后将透传给从设备Slave1。
综合上述,本发明实施例提供了一种同步链路确定方法及装置,用于 进行同步之前确定同步链路,能有效的避免的随机从物理连接链路中选择一条链路作为同步链路导致的同步失败的现象。
本发明实施例还记载一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令配置为实施例一所述方法的至少其中之一;具体如执行如图1所示的方法。
所述计算机存储介质包括:移动存储设备、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质;所述计算机存储介质优选为非瞬间存储介质。
以上所述,仅为本发明的较佳实施例而已,并非配置为限定本发明的保护范围。凡按照本发明原理所作的修改,都应当理解为落入本发明的保护范围。

Claims (13)

  1. 一种同步链路确定方法,所述方法包括:
    获取网络设备的同步能力信息;
    依据所述同步能力信息确定同步链路。
  2. 根据权利要求1所述的方法,其中,
    所述同步能力信息包括设备同步能力信息以及端口同步能力信息;
    所述设备同步能力信息包括所述网络设备是否支持同步和/或支持的同步类型的指示信息;
    所述端口同步能力信息包括所述网络设备的端口是否支持同步和/或支持的同步类型的指示信息。
  3. 根据权利要求2所述的方法,其中,
    所述获取网络设备的同步能力信息包括:
    接收网络设备上报的设备同步能力信息;
    依据所述设备同步能力信息,向网络设备发送请求信息;
    接收网络设备依据所述请求消息反馈的端口同步能力信息。
  4. 根据权利要求3所述的方法,其中,
    所述接收网络设备上报的设备同步能力信息为:
    接收所述网络设备通过openflow通信链路发送的switch-features消息;
    从所述switch-features消息提取所述设备同步能力信息。
  5. 根据权利要求1至4任一项所述的方法,其中,
    所述方法还包括:获取网络设备的时钟等级质量和/或所述网络设备的端口的优先级;
    所述依据所述同步能力信息确定同步链路包括:
    依据所述同步能力信息计算出能配置为同步的备选链路;
    依据所述时钟等级质量和/或所述优先级,从至少两条所述备选链路中选择一条作为所述同步链路。
  6. 根据权利要求5所述的方法,其中,
    所述依据所述时钟等级质量和/或所述优先级,从至少两条备选链路中选择一条作为所述同步链路为:
    依据所时钟等级质量和/或所述优先级,从至少两条备选链路中选择出跳数最少的一条链路作为所述同步链路。
  7. 一种同步链路确定装置,所述装置包括:
    获取单元,配置为获取网络设备的同步能力信息;
    确定单元,配置为依据所述同步能力信息确定同步链路。
  8. 根据权利要求7所述的装置,其中,
    所述同步能力信息包括设备同步能力信息以及端口同步能力信息;
    所述设备同步能力信息包括所述网络设备是否支持同步和/或支持的同步类型的指示信息;
    所述端口同步能力信息包括所述网络设备的端口是否支持同步和/或支持的同步类型的指示信息。
  9. 根据权利要求8所述的装置,其中,
    所述获取单元包括:
    接收模块,配置为接收网络设备上报的设备同步能力信息;
    发送模块,配置为依据所述设备同步能力信息,向网络设备发送请求信息;
    所述接收模块,还配置为接收网络设备依据所述请求消息反馈的端口同步能力信息。
  10. 根据权利要求9所述的装置,其中,
    所述接收模块,配置为接收所述网络设备通过openflow通信链路发送 的switch-features消息;及从所述switch-features消息提取所述设备同步能力信息。
  11. 根据权利要求7至10任一项所述的装置,其中,
    所述获取单元,还配置为获取网络设备的时钟等级质量和/或所述网络设备的端口的优先级;
    所述确定单元,配置为依据所述同步能力信息计算出能配置为同步的备选链路;及依据所述时钟等级质量和/或所述优先级,从至少两条所述备选链路中选择一条作为所述同步链路。
  12. 根据权利要求11所述的装置,其中,
    所述确定单元,配置为依据所时钟等级质量和/或所述优先级,从至少两条备选链路中选择出跳数最少的一条链路作为所述同步链路。
  13. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令配置为执行权利要求1至6所述方法的至少其中之一。
PCT/CN2014/086324 2014-05-14 2014-09-11 同步链路确定方法、装置和计算机存储介质 WO2015172473A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410204584.4A CN105099646A (zh) 2014-05-14 2014-05-14 同步链路确定方法及装置
CN201410204584.4 2014-05-14

Publications (1)

Publication Number Publication Date
WO2015172473A1 true WO2015172473A1 (zh) 2015-11-19

Family

ID=54479234

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/086324 WO2015172473A1 (zh) 2014-05-14 2014-09-11 同步链路确定方法、装置和计算机存储介质

Country Status (2)

Country Link
CN (1) CN105099646A (zh)
WO (1) WO2015172473A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4123927A4 (en) * 2020-04-14 2023-09-27 Huawei Technologies Co., Ltd. METHOD, DEVICE AND SYSTEM FOR CONFIGURING PARAMETERS

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107231249B (zh) * 2016-03-25 2020-07-14 华为技术有限公司 转发节点的物理拓扑信息的获取方法、控制器和转发节点
CN115102660B (zh) * 2022-08-26 2022-11-04 深圳市英特瑞半导体科技有限公司 基于同步以太网的破环方法、装置、设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102821026A (zh) * 2011-06-08 2012-12-12 中兴通讯股份有限公司 一种精准定时协议报文路径选择方法及系统
CN102843726A (zh) * 2011-06-23 2012-12-26 中兴通讯股份有限公司 Ptp lsp的选取方法及装置
CN102957488A (zh) * 2011-08-18 2013-03-06 中兴通讯股份有限公司 一种时间同步选源方法及装置
CN103096456A (zh) * 2011-11-08 2013-05-08 华为技术有限公司 同步链路的建立方法及控制器

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8416812B2 (en) * 2008-09-22 2013-04-09 Codrut Radu Radulescu Network timing synchronization systems
CN102006135A (zh) * 2010-12-03 2011-04-06 北京华环电子股份有限公司 一种选择同步时钟源的方法及装置
CN102594689B (zh) * 2012-02-22 2015-06-10 中兴通讯股份有限公司 一种分布式网络控制方法及装置
CN103634091B (zh) * 2012-08-20 2019-05-24 中兴通讯股份有限公司 一种多同步域的时间同步系统、方法及跨域设备
CN103647658B (zh) * 2013-11-27 2016-12-07 华为技术有限公司 一种软件定义网络系统中网络设备的管理方法和控制器

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102821026A (zh) * 2011-06-08 2012-12-12 中兴通讯股份有限公司 一种精准定时协议报文路径选择方法及系统
CN102843726A (zh) * 2011-06-23 2012-12-26 中兴通讯股份有限公司 Ptp lsp的选取方法及装置
CN102957488A (zh) * 2011-08-18 2013-03-06 中兴通讯股份有限公司 一种时间同步选源方法及装置
CN103096456A (zh) * 2011-11-08 2013-05-08 华为技术有限公司 同步链路的建立方法及控制器

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4123927A4 (en) * 2020-04-14 2023-09-27 Huawei Technologies Co., Ltd. METHOD, DEVICE AND SYSTEM FOR CONFIGURING PARAMETERS

Also Published As

Publication number Publication date
CN105099646A (zh) 2015-11-25

Similar Documents

Publication Publication Date Title
US8730868B2 (en) Network node, time synchronization method and network system
US10349335B2 (en) Methods and apparatus for use in selecting a connection path for low-latency, deterministic multi-hop D2D communications
EP2688240B1 (en) Method, system and device for switching and selecting clock source device
US11228520B2 (en) Distributed database for synchronizing the accessibility of nodes and shared devices
KR20180035145A (ko) 통신 네트워크들 내의 에러 검출
US20190020463A1 (en) Method for Updating Clock Synchronization Topology, Method for Determining Clock Synchronization Path, and Device
EP3140932A1 (en) A method for robust ptp synchronization with default 1588v2 profile
JP5878641B2 (ja) ネットワーク要素間における1588時間誤差の検出方法及び検出装置
EP2852087A1 (en) Packet network synchronization method, apparatus and system
US20160211936A1 (en) A Method for Detecting Timing References Affected by a Change in Path Delay Asymmetry Between Nodes in a Communication Network
US20150113174A1 (en) Intelligent supervision for configuration of precision time protocol (ptp) entities
EP3820061A1 (en) Method and apparatus for correcting time synchronization deviation, terminal, and access layer device
WO2015165192A1 (zh) 一种时间同步的方法及装置
US20150229587A1 (en) Method and apparatus for selecting passive port of transparent clock node based on ptp
WO2015172473A1 (zh) 同步链路确定方法、装置和计算机存储介质
US8472370B2 (en) Apparatus and method for timing synchronization in a communication system
WO2015196801A1 (zh) 一种时钟时间源选择方法、装置及网元
EP3306852A1 (en) Method and apparatus for implementing alternate bmc
WO2018223962A1 (zh) 聚合链路时钟控制方法及系统
WO2023052396A1 (en) Assymetric delay compensation
US9007889B2 (en) Communication device and communication system with failure detection capabilities
EP3113415A1 (en) Network management commands
CN114124616A (zh) 基于epa总线结构的时钟同步优化方法
JP6503271B2 (ja) 時刻同期システム
JP2009153029A (ja) 伝送システム

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

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

Country of ref document: EP

Kind code of ref document: A1