WO2016091050A1 - 一种时间同步方法及装置 - Google Patents

一种时间同步方法及装置 Download PDF

Info

Publication number
WO2016091050A1
WO2016091050A1 PCT/CN2015/094971 CN2015094971W WO2016091050A1 WO 2016091050 A1 WO2016091050 A1 WO 2016091050A1 CN 2015094971 W CN2015094971 W CN 2015094971W WO 2016091050 A1 WO2016091050 A1 WO 2016091050A1
Authority
WO
WIPO (PCT)
Prior art keywords
port
time synchronization
physical link
physical
connection relationship
Prior art date
Application number
PCT/CN2015/094971
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 WO2016091050A1 publication Critical patent/WO2016091050A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements

Definitions

  • the present disclosure relates to mobile communication technologies, and in particular, to a time synchronization method and apparatus.
  • Time Division-Synchronous Code Division Multiple Access (TD-SCDMA), Code Division Multiple Access (CDMA), Time Division Long Access (TD-) Systems such as LTE (Time Division Long Term Evolution) have high-precision time synchronization requirements.
  • Time-division synchronous code division multiple access is the third-generation mobile communication standard (3G, 3rd Generation) and is also approved by the International Telecommunication Union (ITU).
  • ITU International Telecommunication Union
  • 3G 3rd Generation
  • Accurate time synchronization between base stations is required. If the time between base stations is not synchronized, it may cause base station interference, and even cause the base station to fail to establish a call connection.
  • the base station time synchronization problem can be solved by installing a Global Positioning System (GPS) module at each base station, but it faces the disadvantages of difficulty in installation and location, high installation and maintenance costs.
  • GPS Global Positioning System
  • FIG. 1-1 is a schematic diagram of the network architecture using the ground transmission time synchronization method, as shown in FIG. 1-1, that is, the upstream of the transmission network 11 is set up.
  • the time server 12 receiving the satellite time source converges the satellite time source through the time server 12, and then transmits the time information to each base station 13 through the time synchronization protocol of the terrestrial transmission network 11. It can be seen that the method of using ground transmission time synchronization does not need to install a GPS module on each base station 13.
  • the Institute of Electrical and Electronics Engineers (IEEE) 1588 version 2 (v2, version 2) protocol is the current industry's mainstream precision time synchronization protocol.
  • the IEEE 1588v2 protocol achieves sub-microsecond accuracy, so the IEEE 1588v2 protocol is widely used for mobile communication system synchronization.
  • IEEE 1588 protocol first by An Jie Lun Lab Development, IEEE 1588v1 version was released on November 8, 2002. The IEEE adopted the 1588 v2 draft on March 27, 2008, and improved and improved version 1 (v1, version 1). IEEE 1588v2 was released on July 24, 2008.
  • the IEEE 1588 protocol uses a master-slave time synchronization mechanism.
  • the source clock is provided by the master clock for synchronization of the next clock, and also for the slave clock reference.
  • the slave clock then corrects the local time according to the time provided by the master clock by communicating with the master clock.
  • the IEEE 1588 protocol uses the Best Master Clock (BMC) algorithm to decide which time source is the best, and accordingly decides the next port. Status value.
  • BMC Best Master Clock
  • the BMC algorithm is run independently for each clock.
  • the BMC algorithm consists of a two-part algorithm, namely a data set comparison algorithm and a port state decision algorithm. After the decision of the BMC algorithm, the time synchronization node adjusts the port time state, and the system clock tracks the optimal master clock.
  • a device node (hereinafter referred to as a node) used to set up a time synchronization network, a single node has dozens or even hundreds of service ports. According to device software or hardware implementation, all or some of these ports may support time synchronization. . If the time synchronization function is enabled on all the ports that support the time synchronization function, the number of time sources that the device participates in the source selection is too large, and the software and hardware resources occupied by each port and the central system are synchronized, which affects the system. performance. Moreover, the number of time sources that a single node participates in selecting a source is too large, which may also cause instability of repeated switching between different time sources during fault switching.
  • the technician only configures the time source in a direction such as clockwise direction of the ring network, and the time source is not configured in the counterclockwise direction due to mistakes. If the clockwise cable is interrupted, no time source is available. , resulting in a time synchronization interrupt.
  • some embodiments of the present disclosure provide for solving at least one problem existing in the prior art.
  • the time synchronization of the transmission network can be automatically planned without manual participation, thereby greatly simplifying the engineering quantity and shortening the configuration time of the entire transmission network.
  • some embodiments of the present disclosure provide a time synchronization method, the method comprising:
  • the port that needs to enable the time synchronization function is selected for each physical link according to the physical link connection relationship, the connection relationship of the ports supporting the time synchronization function on each physical link, and the time synchronization attribute of each port.
  • some embodiments of the present disclosure provide a time synchronization device, the device comprising a determining unit and a selecting unit, wherein:
  • the determining unit is configured to determine a physical link connection relationship and each physical of the transmission network according to a physical connection relationship of each port reported by each node in the transmission network, a port attribute of each port, and a time synchronization attribute of each port.
  • the selecting unit is configured to select, according to the physical link connection relationship, a connection relationship of a port supporting a time synchronization function on each physical link, and a time synchronization attribute of each port, The port for the time synchronization feature.
  • Some embodiments of the present disclosure provide a time synchronization method and apparatus, where the transmission network is determined according to a physical connection relationship of each port reported by each node in the transmission network, a port attribute of each port, and a time synchronization attribute of each port.
  • the time synchronization attribute of the port selects the port for which each time the time synchronization function needs to be enabled; thus, the time synchronization is automatically planned by the time synchronization device, thereby eliminating the need for manual participation, which greatly simplifies the engineering volume and shortens the entire transmission.
  • the configuration time of the network is not limited to.
  • Figure 1-1 is a schematic diagram of a network architecture using a ground transmission time synchronization method
  • 1-2 are schematic flowcharts of an implementation process of a time synchronization method according to some embodiments of the present disclosure
  • 1-3 are schematic flowcharts showing an implementation process of a time synchronization method according to some embodiments of the present disclosure
  • 1-4 are schematic flowcharts showing an implementation process of step 101 in some embodiments of the present disclosure
  • FIG. 2 is a schematic flowchart of an implementation process of a time synchronization method according to some embodiments of the present disclosure
  • 3-1 is a schematic flowchart of an implementation process of a time synchronization method according to some embodiments of the present disclosure
  • step 303 is a schematic flowchart of an implementation process of step 303 in some embodiments of the present disclosure
  • 4-1 is a schematic structural diagram 1 of a time synchronization apparatus according to some embodiments of the present disclosure
  • 4-2 is a schematic structural diagram of a selection unit in some embodiments of the present disclosure.
  • 4-3 is a schematic structural diagram 2 of a time synchronization apparatus according to some embodiments of the present disclosure.
  • 4-4 is a schematic structural diagram of a determining unit in some embodiments of the present disclosure.
  • FIG. 5 is a schematic structural diagram of a time synchronization system according to some embodiments of the present disclosure.
  • 6-1 is a schematic structural diagram 1 of a time synchronization apparatus according to some embodiments of the present disclosure
  • FIG. 6-2 is a schematic structural diagram of a second selection module in some embodiments of the present disclosure.
  • FIG. 1-2 is a schematic flowchart of an implementation process of a time synchronization method according to some embodiments of the present disclosure, as shown in FIG. Methods include:
  • Step 101 Determine a physical link connection relationship of the transport network and support on each physical link according to the physical connection relationship of each port reported by each node in the transport network, the port attribute of each port, and the time synchronization attribute of each port.
  • the physical connection relationship refers to a connection relationship between physical ports. For example, if two ports are connected by three GE lines, the physical connection relationship means that two ports are connected by three GE lines. Instead of abstracting the three GE lines into one line; when abstracting three GE lines into one line, the relationship between the ports represented by this method can be understood as a physical topological relationship, and the physics in some embodiments of the present disclosure Connection relationships are not physical topological relationships.
  • the physical link is abstracted. For example, if two ports are connected by ten GE lines, then the ten GE lines can be abstracted into one.
  • the port attribute of any port includes the port ID (Identity) information of any port, the board where any port is located, and the node identification information and physical interface class of any node to which the board belongs.
  • Type such as Fast Ethernet (FE) interface, Gigabit Ethernet (GE) interface, etc.
  • the port time synchronization attribute of any port includes whether any port supports time synchronization function, whether only the master port is supported, whether only the slave port is supported, and the like.
  • Step 102 Select, according to the physical link connection relationship, the connection relationship of the port supporting the time synchronization function on each physical link, and the time synchronization attribute of each port, select a time synchronization function for each physical link. port.
  • connection relationship between the physical link connection relationship and the port supporting the time synchronization function on each physical link and the time synchronization attribute of each port are The physical link selects the port that needs to enable time synchronization, including:
  • Step 1021 Determine, according to the physical link connection relationship, the connection relationship of the port supporting the time synchronization function on each physical link, and the time synchronization attribute of each port, respectively, determine the support time of each end of each physical link.
  • the port of the synchronization function
  • Step 1022 Select an N1 pair port as a port that needs to enable a time synchronization function for each physical link from the ports that support the time synchronization function on each of the determined physical links, where the N1 is preset to be greater than An integer of 1.
  • the ports that select the N1 pair port as the ports that need to enable the time synchronization function for each physical link are respectively selected from the ports that support the time synchronization function at both ends of each of the determined physical links, including:
  • the preset priority select the N1 pair port as the port that needs to enable the time synchronization function for each physical link from the ports that support the time synchronization function at both ends of each physical link.
  • the preset priority includes the different slots in the preferred node and the ports on the different boards; and the priority of the Gigabit Ethernet GE electrical interface is lower than the priority of the interface except the GE electrical interface. It can be seen that when selecting an N-pair port, the time synchronization priority set by each port can be considered for preference.
  • the priority may include different slots in different nodes and ports on different boards.
  • the priority of the GE electrical interface is lower. If there are other optical interfaces and electrical interfaces, try not to select GE electrical ports.
  • the method further includes:
  • Step 103 Enable a time synchronization function of the selected port that needs to enable the time synchronization function for each physical link.
  • Step 104 Send the port configuration information of the selected port of the physical link that needs to enable the time synchronization function to each node.
  • the time synchronization device may be a centralized control unit such as a network management system in a transmission network; the architecture of the transmission network may refer to FIG. 1-1, and each node of the transmission network refers to a transmission network.
  • a time synchronization device, that is, each time synchronization device is treated as a node.
  • the step 101 is performed according to the physical connection relationship of each port reported by each node in the transmission network, the port attribute of each port, and the time synchronization attribute of each port. Determining a physical link connection relationship of the transport network and a connection relationship of a port supporting time synchronization function on each physical link, including:
  • Step 1011 Receive a physical connection relationship of each port reported by each node in the transport network, a port attribute of each port, and a time synchronization attribute of each port.
  • Step 1012 Determine a physical link connection relationship of the transport network according to a physical connection relationship of each port and a port attribute of each port.
  • Step 1013 Determine, according to the physical link connection relationship, the physical connection relationship of each port, the port attribute of each port, and the time synchronization attribute of each port, to support time synchronization function on each physical link. Port connection relationship.
  • the method further includes:
  • Step 105 Acquire node identification information of two nodes connected to the two ends of any one of the physical links.
  • Step 106 Detect, according to the node identifier information, whether a valid time path between two nodes connected to the two ends of the physical link and the time server exists, and obtain a detection result;
  • Step 107 When the detection result indicates that the effective time path between the two nodes connected to the two ends of the physical link and the time server does not exist, report the second alarm information.
  • the second alarm information carries the node identification information, and the second alarm information is used to indicate that the time synchronization between the two nodes connected to the two ends of the physical link is interrupted. .
  • Some embodiments of the present disclosure provide a time synchronization method, wherein a physical chain of the transmission network is determined according to a physical connection relationship of each port reported by each node in the transmission network, a port attribute of each port, and a time synchronization attribute of each port.
  • a connection relationship between a road connection relationship and a port supporting a time synchronization function on each physical link a connection relationship of the physical link connection relationship, a port supporting a time synchronization function on each physical link, and a port connection of each port
  • Time synchronization attribute, for each physical link select the port that needs to enable time synchronization; thus, time synchronization is automatically performed by the time synchronization device.
  • Planning thus eliminating the need for manual participation, can greatly simplify the amount of engineering and shorten the configuration time of the entire transmission network.
  • FIG. 2 is some implementations of the present disclosure.
  • Step 201 Each node in the transmission network reports the physical connection relationship, the port attribute, and the time synchronization attribute of each port of the port to the time synchronization device.
  • the nodes of the transmission network can generally report the physical connection relationship, the port attribute and the time synchronization attribute of each port to the network management unit through the network management interface of the node, and the network management unit can be the time provided in some embodiments of the disclosure.
  • Synchronization device The reporting channel used by each node of the transmission network is generally a dedicated data communication network (DCN).
  • DCN dedicated data communication network
  • the commonly used interface protocols for reporting network management include the Qx interface protocol and the Simple Network Management Protocol (SNMP) interface protocol. Wait.
  • the physical connection relationship refers to a connection relationship between physical ports. For example, if two ports are connected by three GE lines, the physical connection relationship means that two ports are connected by three GE lines. Instead of abstracting the three GE lines into one line; when abstracting three GE lines into one line, the relationship between the ports represented by this method can be understood as a physical topological relationship, and the physics in some embodiments of the present disclosure Connection relationship is not a physical topological relationship
  • the port attribute of any port includes the port identification information of the any port, the board where the port is located, and the node identifier information and the physical interface type of the node to which the card belongs.
  • the time synchronization properties include whether any port supports time synchronization, whether only the primary port is supported, and whether only the secondary port is supported.
  • Step 202 The time synchronization device receives a physical connection relationship of each port reported by each node in the transmission network, a port attribute of each port, and a time synchronization attribute of each port.
  • Step 203 The time synchronization device determines, according to the physical connection relationship of each port reported by each node in the transmission network, the port attribute of each port, and the time synchronization attribute of each port, the physical link connection relationship and each of the transmission network.
  • Step 204 The time synchronization device is configured according to the physical link connection relationship, the connection relationship of the port supporting the time synchronization function on each physical link, and the time synchronization attribute of each port.
  • the physical link selects the port that needs to enable the time synchronization function;
  • Step 205 The time synchronization device turns on a time synchronization function of the selected port that needs to enable the time synchronization function for each physical link.
  • Step 206 The time synchronization device sends the port configuration information of the selected port of the physical link that needs to enable the time synchronization function to each node.
  • the step 203 is to determine a physical chain of the transmission network according to a physical connection relationship of each port reported by each node in the transmission network, a port attribute of each port, and a time synchronization attribute of each port.
  • the connection relationship between the road connection and the port that supports time synchronization on each physical link including:
  • FIG. 3-1 is a schematic flowchart of an implementation of a time synchronization method according to some embodiments of the present disclosure, as shown in FIG. As shown, the method includes:
  • Step 301 Determine a physical link connection relationship of the transport network and support on each physical link according to the physical connection relationship of each port reported by each node in the transport network, the port attribute of each port, and the time synchronization attribute of each port.
  • the physical connection relationship refers to a connection relationship between physical ports. For example, if two ports are connected by three GE lines, the physical connection relationship means that two ports are connected by three GE lines. Instead of abstracting the three GE lines into one line; when abstracting three GE lines into one line, the relationship between the ports represented by this method can be understood as a physical topological relationship, and the physics in some embodiments of the present disclosure Connection relationships are not physical topological relationships.
  • the port attribute of any port includes the port identification information of any port, the board of any port, and the node identification information and physical interface type of any node to which the board belongs.
  • the time synchronization attribute of any port includes any Whether a port supports time synchronization, whether it only supports the primary port, is No support for slave ports, etc.
  • Step 302 Determine the support time of each physical link according to the physical link connection relationship, the connection relationship of the port supporting the time synchronization function on each physical link, and the time synchronization attribute of each port.
  • Step 303 Select, according to M of each physical link, a port that needs to enable time synchronization for each physical link.
  • the N is an integer greater than 1; the "two ends of the port for each physical link from the ports supporting the time synchronization function at both ends" refers to two ports of the physical link. .
  • Step 304 Enable a time synchronization function of the selected port that needs to enable the time synchronization function for each physical link.
  • Step 305 Send the port configuration information of the selected port of the physical link that needs to enable the time synchronization function to each node.
  • the port that needs to enable the time synchronization function is selected for each physical link according to the M of each physical link, including:
  • Step 3031 Determine, for any physical link, whether M of any one of the physical links is equal to 0, and obtain a first determination result
  • Step 3032 When the first determination result indicates that the M of the physical link is greater than 0, determine the size relationship between the M and the N2 of the physical link, and obtain a second determination result;
  • the N2 is a preset integer greater than one
  • Step 3033 When the second determination result indicates that the M of the physical link is greater than or equal to the N2, select an N2 pair port from the ports that support the time synchronization function at both ends of the physical link. A port that needs to enable time synchronization as any of the physical links.
  • Step 3034 When the second determination result indicates that the M of the physical link is smaller than the N2, select an M pair port from the ports that support the time synchronization function at both ends of any one of the physical links.
  • the port of the time synchronization function is required for any one of the physical links.
  • Step 3035 When the first determination result indicates that the M of the physical link is equal to 0, the first alarm information is reported.
  • the first alarm information is used to indicate that any one of the physical links does not support time synchronization.
  • the values of N1 and N2 may be such that the number of ports selected for each physical link is different.
  • the port that selects the N2 pair port from the ports that support the time synchronization function at the two ends of the physical link, and the port that needs to enable the time synchronization function includes:
  • the port that supports the time synchronization function from the two ends of the physical link is selected as the port that needs to enable the time synchronization function for any one of the physical links.
  • the port attribute of any port includes at least the port identification information of the any port, the board where the port is located, and the node identifier information and the physical interface of the node to which the card belongs. Types of;
  • the time synchronization attribute of any port includes at least whether any of the ports supports time synchronization, whether only the primary port is supported, and whether only the secondary port is supported.
  • the reporting of the physical link does not support the time synchronization alarm (that is, the first alarm information is reported).
  • the time synchronization device can then further detect the following:
  • the effective time path For two nodes connected at both ends of the physical link, it is detected whether an effective time path exists between the two nodes and the time server of the transmission network. For a certain node, if the valid time path between the node and the time server cannot be found, the more serious time synchronization interrupt alarm (ie, the second alarm information) of the node is reported. It should be noted that the effective time path may be determined by using a minimum spanning tree based routing algorithm or the like.
  • determining, according to a physical connection relationship of each port reported by each node in the transmission network, a port attribute of each port, and a time synchronization attribute of each port determining a physical link connection relationship of the transmission network and each The connection relationship of the ports that support the time synchronization function on the physical link, including:
  • the technical solution provided by some embodiments of the present disclosure has the following advantages: 1) time synchronization is automatically planned by the time synchronization device, and thus no manual participation is required, which can greatly simplify the engineering quantity and shorten the configuration time of the entire transmission network; 2) The physical link and node that have no time source in the entire transmission network can be detected at the same time, and the alarm information is reported to the maintenance personnel to solve the problem. Therefore, the operation failure after the synchronization network is opened can be effectively prevented, thereby improving the reliability. 3) Configuration is uniform, each node and physical link in the transmission network can be configured to multiple time sources to ensure time-synchronized primary and backup connections, thereby avoiding configuration errors that may occur in the prior art, thereby improving reliability. .
  • FIG. 4-1 is a schematic structural diagram of a time synchronization apparatus according to some embodiments of the present disclosure. As shown in FIG. 4-1, the time synchronization apparatus is shown in FIG. 400 includes a determining unit 401 and a selecting unit 402, wherein:
  • the determining unit 401 is configured to determine a physical link connection relationship and each of the transport network according to a physical connection relationship of each port reported by each node in the transport network, a port attribute of each port, and a time synchronization attribute of each port.
  • the physical connection relationship refers to a connection relationship between physical ports. For example, if two ports are connected by three GE lines, the physical connection relationship means that two ports are connected by three GE lines. Instead of abstracting the three GE lines into one line; when abstracting three GE lines into one line, the relationship between the ports represented by this method can be understood as a physical topological relationship, and the physics in some embodiments of the present disclosure Connection relationships are not physical topological relationships.
  • the port attribute of any port includes the port identification information of any port, the board where any port is located, and the node identification information of the node to which the card belongs.
  • the physical interface type (such as the FE electrical interface and the GE optical interface). )Wait.
  • the port time synchronization attribute of any port includes whether any port supports time synchronization, whether only the primary port is supported, whether only the secondary port is supported.
  • the selecting unit 402 is configured to select a requirement for each physical link according to the physical link connection relationship, the connection relationship of the port supporting the time synchronization function on each physical link, and the time synchronization attribute of each port.
  • the port that enables time synchronization.
  • the selecting unit 402 includes a first determining module 4021 and a first selecting module 4022, where:
  • the first determining module 4021 is configured to connect, according to the physical link, each physical link
  • the connection relationship of the port supporting the time synchronization function and the time synchronization attribute of each port are respectively determined, and the ports supporting the time synchronization function at both ends of each physical link are respectively determined;
  • the first selecting module 4022 is configured to select, according to the determined port that supports the time synchronization function at both ends of each physical link, a port as a port that needs to enable a time synchronization function for each physical link, where N1 is a preset integer greater than one.
  • the selecting module is configured to select, according to a preset priority, an N1 pair port as each physical chain from the determined ports that support the time synchronization function at both ends of each physical link.
  • the port needs to open the time synchronization function.
  • the device further includes an opening unit 403 and a sending unit 404, where:
  • the opening unit 403 is configured to enable, for each physical link, a time synchronization function of the selected port that needs to enable the time synchronization function;
  • the sending unit 404 is configured to send the port configuration information of the selected port of the physical link that needs to enable the time synchronization function to each node.
  • the time synchronization device may be a centralized control unit such as a network management system in a transmission network; the architecture of the transmission network may refer to FIG. 1-1, and each node of the transmission network refers to a transmission network.
  • a time synchronization device, that is, each time synchronization device is treated as a node.
  • the determining unit 401 includes a receiving module 4011, a third determining module 4012, and a fourth determining module 4013, where:
  • the receiving module 4011 is configured to receive a physical connection relationship of each port reported by each node in the transmission network, a port attribute of each port, and a time synchronization attribute of each port;
  • the third determining module 4012 is configured to determine a physical link connection relationship of the transport network according to a physical connection relationship of each port and a port attribute of each port;
  • the fourth determining module 4013 is configured to determine each physical chain according to the physical link connection relationship, the physical connection relationship of each port, the port attribute of each port, and the time synchronization attribute of each port.
  • the port connection relationship that supports time synchronization on the road.
  • the port attribute of any port includes at least port identification information of the any port, a board where the port is located, and node identifier information of a node to which the board belongs. Physical interface type;
  • the time synchronization attribute of any port includes at least whether any of the ports supports time synchronization, Whether to support only the primary port and only the secondary port.
  • the selecting module is configured to select, according to a preset priority, an N1 pair port from each of the determined ports that support the time synchronization function on each physical link, as each physical link needs.
  • the preset priority includes the different slots in the preferred node and the ports on the different boards; and the priority of the Gigabit Ethernet GE electrical interface is lower than the priority of the interface except the GE electrical interface.
  • Some embodiments of the present disclosure provide a time synchronization apparatus, wherein the determining unit 401 determines the transmission network according to a physical connection relationship of each port reported by each node in the transmission network, a port attribute of each port, and a time synchronization attribute of each port.
  • the time synchronization attribute of each port selecting a port for each physical link that needs to enable the time synchronization function; thus, the time synchronization is automatically planned by the time synchronization device, thereby eliminating the need for manual participation, which can greatly simplify the engineering quantity. And shorten the configuration time of the entire transmission network.
  • FIG. 5 is a schematic structural diagram of a time synchronization system according to some embodiments of the present disclosure. As shown in FIG. 5, the system includes a time synchronization device 400 and a transmission. Each node 500 in the network, wherein the time synchronization device 400 includes a determining unit 401 and a selecting unit 402, wherein:
  • Each node 500 in the transmission network is configured to report the physical connection relationship of each port, the port attribute of each port, and the time synchronization attribute of each port to the time synchronization device;
  • the determining unit 401 is configured to receive a physical connection relationship of each port reported by each node in the transmission network, a port attribute of each port, and a time synchronization attribute of each port; according to the physicality of each port reported by each node in the transmission network a connection relationship, a port attribute of each port, and a time synchronization attribute of each port, and determining a physical link connection relationship of the transmission network and a connection relationship of a port supporting time synchronization function on each physical link;
  • the selecting unit 402 is configured to select a requirement for each physical link according to the physical link connection relationship, the connection relationship of the port supporting the time synchronization function on each physical link, and the time synchronization attribute of each port.
  • the port that enables time synchronization.
  • the determining unit includes a receiving module, a third determining module, and a fourth determining module, where:
  • the receiving module is configured to receive a physical connection relationship of each port reported by each node in the transmission network, a port attribute of each port, and a time synchronization attribute of each port;
  • the third determining module is configured to determine a physical link connection relationship of the transport network according to a physical connection relationship of each port and a port attribute of each port;
  • the fourth determining module is configured to determine each physical link according to the physical link connection relationship, the physical connection relationship of each port, the port attribute of each port, and the time synchronization attribute of each port.
  • the port connection relationship on the time synchronization function is supported.
  • the port attribute of any port includes the port identification information of the any port, the board where the port is located, and the node identifier information and the physical interface type of the node to which the board belongs. Wait;
  • the time synchronization attribute of any port includes whether the port supports the time synchronization function, whether only the primary port is supported, whether only the secondary port is supported, and the like.
  • FIG. 6-1 is a schematic structural diagram of a time synchronization apparatus according to some embodiments of the present disclosure. As shown in FIG. 6-1, the time synchronization apparatus 600 is illustrated.
  • the determining unit 601 is configured to determine a physical link connection relationship and each of the transport network according to a physical connection relationship of each port reported by each node in the transport network, a port attribute of each port, and a time synchronization attribute of each port.
  • the physical connection relationship refers to a connection relationship between physical ports. For example, if two ports are connected by three GE lines, the physical connection relationship means that two ports are connected by three GE lines. Instead of abstracting the three GE lines into one line; when abstracting three GE lines into one line, the relationship between the ports represented by this method can be understood as a physical topological relationship, and the physics in some embodiments of the present disclosure Connection relationships are not physical topological relationships.
  • the second determining module 6021 is configured to determine each physical chain according to the physical link connection relationship, the connection relationship of the port supporting the time synchronization function on each physical link, and the time synchronization attribute of each port.
  • the second selecting module 6022 is configured to select, according to the M of each physical link, a port that needs to enable the time synchronization function for each physical link.
  • the opening unit 603 is configured to enable time synchronization of the N pairs of ports for each physical link.
  • the sending unit 604 is configured to send port configuration information of the N pairs of ports of each physical link to each node.
  • the second selection module 6022 includes a first determining sub-module 6221, a second determining sub-module 6222, and a selecting sub-module 6223, wherein:
  • the first determining sub-module 6221 is configured to determine, for any physical link, whether the M of the any physical link is equal to 0, to obtain a first determination result;
  • the second determining sub-module 6222 is configured to determine, when the first determining result indicates that the M of the physical link is greater than 0, determine the size relationship between the M and the N2 of the physical link, and obtain the first a judgment result, wherein the N2 is a preset integer greater than 1;
  • the selecting sub-module 6223 is configured to: when the second determination result indicates that the M of the any physical link is greater than or equal to the N2, the time synchronization function is supported from both ends of the any physical link. Select the N2 pair port as the port on which the time synchronization function needs to be enabled for any of the physical links.
  • the selecting submodule is configured to select, according to a preset priority, an N2 pair port from the ports supporting the time synchronization function at both ends of any one of the physical links as the any one of the ports.
  • the physical link requires a port with time synchronization enabled.
  • the selecting submodule is further configured to: when the second determination result indicates that the M of the any physical link is smaller than the N2, from both ends of the any physical link Among the ports that support the time synchronization function, select the M pair port as the port that needs to enable the time synchronization function for any of the physical links.
  • the selecting unit further includes a reporting module, configured to report the first alarm information, where the first determination result indicates that the M of the physical link is equal to 0, the first alarm The information is used to indicate that any of the physical links does not support time synchronization.
  • the time synchronization device 600 further includes an acquiring unit, a detecting unit, and a second reporting unit, where:
  • the acquiring unit is configured to acquire node identifier information of two nodes connected to the two ends of any one of the physical links;
  • the detecting unit is configured to detect, according to the node identifier information, two ends of any one of the physical links Whether the valid time path between the two connected nodes and the time server exists, and the detection result is obtained;
  • the reporting unit is configured to report the second alarm information when the detection result indicates that the effective time path between the two nodes connected to the two ends of the physical link and the time server does not exist;
  • the second alarm information carries the node identification information, and the second alarm information is used to indicate that the time synchronization between the two nodes connected to the two ends of the physical link is interrupted.
  • the determining unit includes a receiving module, a third determining module, and a fourth determining module, where:
  • the receiving module is configured to receive a physical connection relationship of each port reported by each node in the transmission network, a port attribute of each port, and a time synchronization attribute of each port;
  • the third determining module is configured to determine a physical link connection relationship of the transport network according to a physical connection relationship of each port and a port attribute of each port;
  • the fourth determining module is configured to determine each physical link according to the physical link connection relationship, the physical connection relationship of each port, the port attribute of each port, and the time synchronization attribute of each port.
  • the port connection relationship on the time synchronization function is supported.
  • the port attribute of any port includes the port identification information of the any port, the board where the port is located, and the node identifier information of the node to which the board belongs, and the physical interface type. Wait;
  • the time synchronization attribute of any port includes whether any of the ports supports time synchronization, whether only the primary port is supported, and whether only the secondary port is supported.
  • time synchronization device is similar to the above description of the embodiment applied to the time synchronization method, and has the same advantageous effects as the method embodiment, and therefore will not be described again.
  • time synchronization method embodiment of the present disclosure please refer to the description of the time synchronization method embodiment of the present disclosure.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner such as: multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored or not executed.
  • the coupling, or direct coupling, or communication connection of the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units. It is electrical, mechanical or other form.
  • the units described above as separate components may or may not be physically separated, and the components displayed as the unit may or may not be physical units; they may be located in one place or distributed on multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the above integration
  • the unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the foregoing program may be stored in a computer readable storage medium, and when executed, the program includes The foregoing steps of the method embodiment; and the foregoing storage medium includes: a removable storage device, a read-only memory (ROM), a magnetic disk, or an optical disk, and the like, which can store program codes.
  • ROM read-only memory
  • the above-described integrated unit of the present disclosure may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a standalone product. Based on such understanding, portions of the technical solutions of some embodiments of the present disclosure that are essential or contribute to the prior art may be embodied in the form of a software product stored in a storage medium, including a plurality of instructions.
  • a computer device which may be a personal computer, server, or network device, etc.
  • the foregoing storage medium includes various media that can store program codes, such as a mobile storage device, a ROM, a magnetic disk, or an optical disk.

Landscapes

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

Abstract

本发明公开了一种时间同步方法,所述方法包括如下步骤:根据传输网络中各节点上报的各端口的物理连接关系、各端口的端口属性和各端口的时间同步属性,确定所述传输网络的物理链路连接关系和每条物理链路上支持时间同步功能的端口的连接关系(101);根据所述物理链路连接关系、每条物理链路上支持时间同步功能的端口的连接关系和所述各端口的时间同步属性,为每条物理链路选择需要开启时间同步功能的端口(102)。本发明同时还公开了一种时间同步装置。

Description

一种时间同步方法及装置
相关申请的交叉引用
本申请主张在2014年12月8日在中国提交的中国专利申请号No.201410745541.7的优先权,其全部内容通过引用包含于此。
技术领域
本公开涉及移动通信技术,尤其涉及一种时间同步方法及装置。
背景技术
随着移动通信技术的发展,时分同步码分多址(TD-SCDMA,Time Division-Synchronous Code Division Multiple Access)、码分多址(CDMA2000,Code Division Multiple Access 2000)、分时长期演进(TD-LTE,Time Division Long Term Evolution)等系统均具有高精度时间同步需求,时分同步码分多址为第三代移动通信标准(3G,3rd Generation),也是国际电信联盟(ITU,International Telecommunication Union)批准的三个3G标准中的一个。基站之间需要准确的时间同步,如果基站之间的时间不是同步的,那么会造成基站干扰,甚至导致基站不能建立通话连接。现有技术中可以通过在每个基站加装全球定位系统(GPS,Global Positioning System)模块来解决基站时间同步问题,但面临安装选址困难、安装和维护成本高的弊端。
为了降低安装难度和成本,业内一般采用地面传输时间同步的方法,图1-1为采用地面传输时间同步方法的网络架构示意图,如图1-1所示,即在传输网络11的上游设立用于接收卫星时间源的时间服务器12,通过时间服务器12对卫星时间源进行收敛集中,然后通过地面传输网络11的时间同步协议将时间信息传送给各基站13。可见,采用地面传输时间同步的方法是不需在每个基站13上安装GPS模块的。
地面传送时间同步协议方面,电气和电子工程师协会(IEEE,Institute of Electrical and Electronics Engineers)1588版本2(v2,version 2)协议为目前业界主流的精确时间同步协议。IEEE 1588v2协议的精度达到亚微秒级,因此,IEEE 1588v2协议广泛得用于移动通信系统同步。IEEE 1588协议首先由安捷 伦实验室开发,IEEE 1588v1版本于2002年11月8日发布。IEEE在2008年3月27日通过了1588 v2草案,对版本1(v1,version 1)进行了改进和提高,IEEE 1588v2于2008年7月24日发布。IEEE 1588协议采用主从式时间同步机制。在一条符合1588协议的通信路径中,由主时钟提供源时间以供下一级时钟同步,同时也供从时钟参考。从时钟则通过与主时钟互通报文消息,从而根据主时钟提供的时间校正本地时间。
对于每个时间同步节点,当具有多个时间源时,IEEE 1588协议采用最佳主时钟(BMC,Best Master Clock)算法来决策哪个时间源是最好的,并据此来决定端口的下一个状态值。每个时钟独立运行BMC算法。BMC算法包含两部分算法构成,即数据集比较算法和端口状态决策算法。经过BMC算法决策之后,时间同步节点调整端口时间状态,系统时钟跟踪决策出的最佳主时钟。
用于组建时间同步网络的传输设备等设备节点(以下简称节点),单个节点就具有几十乃至上百个业务端口,根据设备软件或硬件实现,这些端口可能全部或者其中部分端口支持时间同步功能。如果将设备所有支持时间同步功能的端口均开启其时间同步功能,会造成该设备参与选源的时间源数量过大,各端口和中心系统处理时间同步占用的软硬件资源过多,从而影响系统性能。而且单个节点参与选源的时间源数量过多,也可能会引起故障倒换时在不同时间源之间反复倒换的不稳定性。
基于以上考虑,在组建时间同步网络时需要为每个节点选择部分端口开启时间同步功能,由选定的这些端口参与时间同步选源。现有技术中,由技术人员逐个对节点进行配置和开启端口,采用人工方式具有以下问题:1)、配置工作量和复杂度高,需要结合每个节点的具体网络环境决定开启哪些端口的时间同步功能,从而导致完成整网配置所需时间较长;2)、配置难以统一,由于每台设备的网络环境以及配置人员不同,配置开启参与设备选源时的时间源时难以统一;3)、易出现配置失误,例如,技术人员只配置了环网某方向如顺时针方向的时间源,而由于失误没有配置逆时针方向的时间源,如果顺时针方向光缆中断时,则没有时间源可用,从而导致时间同步中断。
发明内容
有鉴于此,本公开一些实施例为解决现有技术中存在的至少一个问题而提 供一种时间同步方法及装置,传输网络的时间同步能够自动地进行规划,不需要人工参与,从而极大简化工程量和缩短整个传输网络的配置时间。
为达到上述目的,本公开一些实施例的技术方案是这样实现的:
第一方面,本公开一些实施例提供一种时间同步方法,所述方法包括:
根据传输网络中各节点上报的各端口的物理连接关系、各端口的端口属性和各端口的时间同步属性,确定所述传输网络的物理链路连接关系和每条物理链路上支持时间同步功能的端口的连接关系;
根据所述物理链路连接关系、每条物理链路上支持时间同步功能的端口的连接关系和所述各端口的时间同步属性,为每条物理链路选择需要开启时间同步功能的端口。
第二方面,本公开一些实施例提供一种时间同步装置,所述装置包括确定单元和选择单元,其中:
所述确定单元,用于根据传输网络中各节点上报的各端口的物理连接关系、各端口的端口属性和各端口的时间同步属性,确定所述传输网络的物理链路连接关系和每条物理链路上支持时间同步功能的端口的连接关系;
所述选择单元,用于根据所述物理链路连接关系、每条物理链路上支持时间同步功能的端口的连接关系和所述各端口的时间同步属性,为每条物理链路选择需要开启时间同步功能的端口。
本公开一些实施例提供一种时间同步方法及装置,其中,根据传输网络中各节点上报的各端口的物理连接关系、各端口的端口属性和各端口的时间同步属性,确定所述传输网络的物理链路连接关系和每条物理链路上支持时间同步功能的端口的连接关系;根据所述物理链路连接关系、每条物理链路上支持时间同步功能的端口的连接关系和所述各端口的时间同步属性,为每条物理链路选择需要开启时间同步功能的端口;如此,时间同步由时间同步装置自动地进行规划,因而不需要人工参与,能够极大简化工程量和缩短整个传输网络的配置时间。
附图说明
图1-1为采用地面传输时间同步方法的网络架构示意图;
图1-2为本公开一些实施例的时间同步方法的实现流程示意图一;
图1-3为本公开一些实施例的时间同步方法的实现流程示意图二;
图1-4为本公开一些实施例中步骤101的实现流程示意图;
图2为本公开一些实施例的时间同步方法的实现流程示意图;
图3-1为本公开一些实施例的时间同步方法的实现流程示意图;
图3-2为本公开一些实施例中步骤303的实现流程示意图;
图4-1为本公开一些实施例的时间同步装置的组成结构示意图一;
图4-2为本公开一些实施例中选择单元的组成结构示意图;
图4-3为本公开一些实施例的时间同步装置的组成结构示意图二;
图4-4为本公开一些实施例中确定单元的组成结构示意图;
图5为本公开一些实施例的时间同步系统的组成结构示意图;
图6-1为本公开一些实施例的时间同步装置的组成结构示意图一;
图6-2为本公开一些实施例中第二选择模块的组成结构示意图。
具体实施方式
下面结合附图和具体实施例对本公开的技术方案进一步详细阐述。
本公开一些实施例提供一种时间同步方法,该方法应用于时间同步装置中,图1-2为本公开一些实施例的时间同步方法的实现流程示意图一,如图1-2所示,该方法包括:
步骤101,根据传输网络中各节点上报的各端口的物理连接关系、各端口的端口属性和各端口的时间同步属性,确定所述传输网络的物理链路连接关系和每条物理链路上支持时间同步功能的端口的连接关系;
这里,所述物理连接关系是指物理上各个端口之间的连接关系,例如,两个端口之间通过三条GE线连接的,那么物理连接关系就是指两个端口之间通过三条GE线连接的,而不是将这三条GE线抽象成一条线路;当将三条GE线抽象为一条线路时,这种方法所表述的端口之间的关系可以理解为物理拓扑关系,本公开一些实施例中的物理连接关系并不是物理拓扑关系。
这里,所述物理链路为抽象出来的,例如两个端口之间通过十条GE线连接的,那么可以将这十条GE线抽象成一条。
这里,任一端口的端口属性包括任一端口的端口标识(ID,Identity)信息、任一端口所在板卡以及任一所在板卡所属节点的节点标识信息和物理接口类 型(如快速以太网(FE,Fast Ethernet)电接口、千兆以太网(GE,Gigabit Ethernet)光接口)等。
这里,任一端口的端口时间同步属性包括任一端口是否支持时间同步功能、是否仅支持主(master)端口,是否仅支持从(slave)端口等。
步骤102,根据所述物理链路连接关系、每条物理链路上支持时间同步功能的端口的连接关系和所述各端口的时间同步属性,为每条物理链路选择需要开启时间同步功能的端口。
本公开一些实施例中,所述步骤102,所述根据所述物理链路连接关系和每条物理链路上支持时间同步功能的端口的连接关系和所述各端口的时间同步属性,为每条物理链路选择需要开启时间同步功能的端口,包括:
步骤1021,根据所述物理链路连接关系、每条物理链路上支持时间同步功能的端口的连接关系和所述各端口的时间同步属性,分别确定每条物理链路的两端均支持时间同步功能的端口;
步骤1022,分别从确定的每条物理链路的两端均支持时间同步功能的端口中选择N1对端口作为每条物理链路需要开启时间同步功能的端口,其中所述N1为预设的大于1的整数。
这里,所述分别从确定的每条物理链路的两端均支持时间同步功能的端口中选择N1对端口作为每条物理链路需要开启时间同步功能的端口,包括:
按照预设的优先级,分别从确定的每条物理链路的两端均支持时间同步功能的端口中选择N1对端口作为每条物理链路需要开启时间同步功能的端口。其中,所述预设的优先级包括优选节点中不同槽位、不同板卡上的端口;而且千兆以太网GE电接口的优先级比除GE电接口外的接口的优先级低。可见,在选择N对端口时,可以考虑各端口设置的时间同步优先级进行优选,优先级可包括优先选择节点中不同槽位、不同板卡上的端口,其中GE电口的优先级较低,在有其他光接口和电接口情况下尽量不选择GE电口。
对应地,如图1-3所示,该方法还包括:
步骤103,为每条物理链路开启选择的需要开启时间同步功能的端口的时间同步功能;
步骤104,将每条物理链路的选择的需要开启时间同步功能的端口的端口配置信息下发给各节点。
本公开一些实施例中,所述时间同步装置可以是传输网络中的网管等集中控制单元;所述传输网络的架构可以参见图1-1,所述传输网络的各节点是指传输网络中的时间同步设备,即,将每一个时间同步设备看作为一个节点。
本公开一些实施例中,如图1-4所示,所述步骤101,所述根据传输网络中各节点上报的各端口的物理连接关系、各端口的端口属性和各端口的时间同步属性,确定所述传输网络的物理链路连接关系和每条物理链路上支持时间同步功能的端口的连接关系,包括:
步骤1011,接收传输网络中各节点上报的各端口的物理连接关系、各端口的端口属性和各端口的时间同步属性;
步骤1012,根据所述各端口的物理连接关系和所述各端口的端口属性,确定所述传输网络的物理链路连接关系;
步骤1013,根据所述物理链路连接关系、所述各端口的物理连接关系、所述各端口的端口属性和所述各端口的时间同步属性,确定每条物理链路上支持时间同步功能的端口连接关系。
本公开一些实施例中,该方法还包括:
步骤105,获取所述任一条物理链路的两端连接的两个节点的节点标识信息;
步骤106,根据所述节点标识信息检测所述任一条物理链路两端连接的两个节点与时间服务器之间的有效时间路径是否存在,得到检测结果;
步骤107,当所述检测结果表明所述任一条物理链路两端连接的两个节点与所述时间服务器之间的有效时间路径不存在时,上报第二告警信息;
这里,所述第二告警信息携带有所述节点标识信息,所述第二告警信息用于表明所述任一条物理链路两端连接的两个节点与所述时间服务器之间的时间同步中断。
本公开一些实施例提供一种时间同步方法,其中,根据传输网络中各节点上报的各端口的物理连接关系、各端口的端口属性和各端口的时间同步属性,确定所述传输网络的物理链路连接关系和每条物理链路上支持时间同步功能的端口的连接关系;根据所述物理链路连接关系、每条物理链路上支持时间同步功能的端口的连接关系和所述各端口的时间同步属性,为每条物理链路选择需要开启时间同步功能的端口;如此,时间同步由时间同步装置自动地进行规 划,因而不需要人工参与,能够极大简化工程量和缩短整个传输网络的配置时间。
基于上述的实施例,本公开一些实施例提供一种时间同步方法,该方法应用于时间同步系统,所述时间同步系统包括时间同步装置和传输网络中的各节点,图2为本公开一些实施例的时间同步方法的实现流程示意图,如图2所示,该方法包括:
步骤201,传输网络中各节点将自身的各端口的物理连接关系、端口属性和时间同步属性上报给时间同步装置;
这里,传输网络各节点一般可以通过节点的网络管理接口将各端口的物理连接关系、端口属性和时间同步属性上报给网络管理单元,该网络管理单元可以为本公开一些实施例中所提供的时间同步装置。传输网络各节点所采用的上报通道一般为专用的数据通信网络(DCN,Data Communication Network),常用的上报网管的接口协议包括Qx接口协议、简单网络管理协议(SNMP,Simple Network Management Protocol)接口协议等。
这里,所述物理连接关系是指物理上各个端口之间的连接关系,例如,两个端口之间通过三条GE线连接的,那么物理连接关系就是指两个端口之间通过三条GE线连接的,而不是将这三条GE线抽象成一条线路;当将三条GE线抽象为一条线路时,这种方法所表述的端口之间的关系可以理解为物理拓扑关系,本公开一些实施例中的物理连接关系并不是物理拓扑关系
这里,任一端口的端口属性包括所述任一端口的端口标识信息、所述任一端口所在板卡以及所述任一所在板卡所属节点的节点标识信息和物理接口类型等;任一端口的时间同步属性包括任一端口是否支持时间同步功能、是否仅支持主端口,是否仅支持从端口。
步骤202,所述时间同步装置接收所述传输网络中各节点上报的各端口的物理连接关系、各端口的端口属性和各端口的时间同步属性;
步骤203,所述时间同步装置根据传输网络中各节点上报的各端口的物理连接关系、各端口的端口属性和各端口的时间同步属性,确定所述传输网络的物理链路连接关系和每条物理链路上支持时间同步功能的端口的连接关系;
步骤204,所述时间同步装置根据所述物理链路连接关系、每条物理链路上支持时间同步功能的端口的连接关系和所述各端口的时间同步属性,为每条 物理链路选择需要开启时间同步功能的端口;
步骤205,所述时间同步装置为每条物理链路开启选择的需要开启时间同步功能的端口的时间同步功能;
步骤206,所述时间同步装置将每条物理链路的选择的需要开启时间同步功能的端口的端口配置信息下发给各节点。
本公开一些实施例中,所述步骤203,所述根据传输网络中各节点上报的各端口的物理连接关系、各端口的端口属性和各端口的时间同步属性,确定所述传输网络的物理链路连接关系和每条物理链路上支持时间同步功能的端口的连接关系,包括:
接收传输网络中各节点上报的各端口的物理连接关系、各端口的端口属性和各端口的时间同步属性;
根据所述各端口的物理连接关系和所述各端口的端口属性,确定所述传输网络的物理链路连接关系;
根据所述物理链路连接关系、所述各端口的物理连接关系、所述各端口的端口属性和所述各端口的时间同步属性,确定每条物理链路上支持时间同步功能的端口连接关系。
基于前述的实施例,本公开一些实施例提供一种时间同步方法,该方法应用于时间同步装置,图3-1为本公开一些实施例的时间同步方法的实现流程示意图,如图3-1所示,该方法包括:
步骤301,根据传输网络中各节点上报的各端口的物理连接关系、各端口的端口属性和各端口的时间同步属性,确定所述传输网络的物理链路连接关系和每条物理链路上支持时间同步功能的端口的连接关系;
这里,所述物理连接关系是指物理上各个端口之间的连接关系,例如,两个端口之间通过三条GE线连接的,那么物理连接关系就是指两个端口之间通过三条GE线连接的,而不是将这三条GE线抽象成一条线路;当将三条GE线抽象为一条线路时,这种方法所表述的端口之间的关系可以理解为物理拓扑关系,本公开一些实施例中的物理连接关系并不是物理拓扑关系。
这里,任一端口的端口属性包括任一端口的端口标识信息、任一端口所在板卡以及任一所在板卡所属节点的节点标识信息和物理接口类型等;任一端口的时间同步属性包括任一端口是否支持时间同步功能、是否仅支持主端口,是 否仅支持从端口等。
步骤302,根据所述物理链路连接关系、每条物理链路上支持时间同步功能的端口的连接关系和所述各端口的时间同步属性,分别确定每条物理链路的两端均支持时间同步功能的端口的连接数目M,其中所述M为大于等于0的整数;
步骤303,分别根据每条物理链路的M为每条物理链路选择需要开启时间同步功能的端口。
这里,所述N为可以本领域技术人员可以自行设置,例如,本领域技术人员可以将设置N=3。所述N为大于1的整数;所述“为每条物理链路从连接两端均支持时间同步功能的端口中选择N对端口”中的“两端”是指物理链路的两个端口。
步骤304,为每条物理链路开启选择的需要开启时间同步功能的端口的时间同步功能;
步骤305,将每条物理链路的选择的需要开启时间同步功能的端口的端口配置信息下发给各节点。
本公开一些实施例中,如图3-2所示,所述步骤303,所述分别根据每条物理链路的M为每条物理链路选择需要开启时间同步功能的端口,包括:
步骤3031,对于任一条物理链路,判断所述任一条物理链路的M是否等于0,得到第一判断结果;
步骤3032,当所述第一判断结果表明所述任一条物理链路的M大于0时,判断所述任一条物理链路的M与N2的大小关系,得到第二判断结果;
这里,所述N2为预设的大于1的整数;
步骤3033,当所述第二判断结果表明所述任一条物理链路的M大于等于所述N2时,从所述任一条物理链路的两端均支持时间同步功能的端口中选择N2对端口作为所述任一条物理链路需要开启时间同步功能的端口。
步骤3034,当所述第二判断结果表明所述任一条物理链路的M小于所述N2时,从所述任一条物理链路的两端均支持时间同步功能的端口中选择M对端口作为所述任一条物理链路需要开启时间同步功能的端口。
步骤3035,当所述第一判断结果表明所述任一条物理链路的M等于0时,上报第一告警信息;
这里,所述第一告警信息用于表明所述任一条物理链路不支持时间同步。
本公开一些实施例中,N1和N2的取值可以使得为每条物理链路所选择的端口数目均不同。
本公开一些实施例中,所述从所述任一条物理链路的两端均支持时间同步功能的端口中选择N2对端口作为所述任一条物理链路需要开启时间同步功能的端口,包括:
按照预设的优先级,从所述任一条物理链路的两端均支持时间同步功能的端口中选择N2对端口作为所述任一条物理链路需要开启时间同步功能的端口。
本公开一些实施例中,任一端口的端口属性至少包括所述任一端口的端口标识信息、所述任一端口所在板卡以及所述任一所在板卡所属节点的节点标识信息和物理接口类型;
任一端口的时间同步属性至少包括所述任一端口是否支持时间同步功能、是否仅支持主端口,是否仅支持从端口。
在本公开一些实施例中,如果检测到某条物理链路无法找到连接两端均支持时间同步功能的端口连接,则上报该条物理链路不支持时间同步告警(即上报第一告警信息)。然后时间同步装置可以进一步检测如下:
对于该条物理链路两端连接的两个节点,检测这两个节点与传输网络的时间服务器之间有效时间路径是否存在。对于某个节点,如果无法找到该节点到时间服务器之间的有效时间路径,则上报更为严重的该节点时间同步中断告警(即第二告警信息)。需要说明的是,有效时间路径在确定时可以采用基于最小生成树的路由算法等方法。
本公开一些实施例中,所述根据传输网络中各节点上报的各端口的物理连接关系、各端口的端口属性和各端口的时间同步属性,确定所述传输网络的物理链路连接关系和每条物理链路上支持时间同步功能的端口的连接关系,包括:
接收传输网络中各节点上报的各端口的物理连接关系、各端口的端口属性、各端口的时间同步属性;
根据所述各端口的物理连接关系和所述各端口的端口属性,确定所述传输网络的物理链路连接关系;
根据所述物理链路连接关系、所述各端口的物理连接关系、所述各端口的端口属性和所述各端口的时间同步属性,确定每条物理链路上支持时间同步功 能的端口连接关系。
本公开一些实施例提供的技术方案,具有以下优点:1)时间同步由时间同步装置自动地进行规划,因而不需要人工参与,能够极大简化工程量和缩短整个传输网络的配置时间;2)能够同时检测到整个传输网络没有时间源的物理链路和节点,上报告警信息提醒维护人员解决,因此,能够有效防止同步网络开通之后的运行故障,进而提高可靠性。3)配置统一,传输网络中的每个节点和物理链路均可以配置到多个时间源,保证时间同步的主用和备用连接,从而避免现有技术可能出现的配置失误,进而提高可靠性。
基于前述的实施例,本公开一些实施例提供一种时间同步装置,图4-1为本公开一些实施例的时间同步装置的组成结构示意图一,如图4-1所示,该时间同步装置400包括确定单元401、选择单元402,其中:
所述确定单元401,用于根据传输网络中各节点上报的各端口的物理连接关系、各端口的端口属性和各端口的时间同步属性,确定所述传输网络的物理链路连接关系和每条物理链路上支持时间同步功能的端口的连接关系;
这里,所述物理连接关系是指物理上各个端口之间的连接关系,例如,两个端口之间通过三条GE线连接的,那么物理连接关系就是指两个端口之间通过三条GE线连接的,而不是将这三条GE线抽象成一条线路;当将三条GE线抽象为一条线路时,这种方法所表述的端口之间的关系可以理解为物理拓扑关系,本公开一些实施例中的物理连接关系并不是物理拓扑关系。
这里,任一端口的端口属性包括任一端口的端口标识信息、任一端口所在板卡以及所述任一所在板卡所属节点的节点标识信息、物理接口类型(如FE电接口、GE光接口)等。
这里,任一端口的端口时间同步属性包括任一端口是否支持时间同步功能、是否仅支持主端口,是否仅支持从端口等。
所述选择单元402,用于根据所述物理链路连接关系、每条物理链路上支持时间同步功能的端口的连接关系和所述各端口的时间同步属性,为每条物理链路选择需要开启时间同步功能的端口。
本公开一些实施例中,如图4-2所示,所述选择单元402包括第一确定模块4021和第一选择模块4022,其中:
所述第一确定模块4021,用于根据所述物理链路连接关系、每条物理链路 上支持时间同步功能的端口的连接关系和所述各端口的时间同步属性,分别确定每条物理链路的两端均支持时间同步功能的端口;
所述第一选择模块4022,用于分别从确定的每条物理链路的两端均支持时间同步功能的端口中选择N1对端口作为每条物理链路需要开启时间同步功能的端口,其中所述N1为预设的大于1的整数。
本公开一些实施例中,所述选择模块,用于按照预设的优先级,分别从确定的每条物理链路的两端均支持时间同步功能的端口中选择N1对端口作为每条物理链路需要开启时间同步功能的端口。
本公开一些实施例中,如图4-3所示,所述装置还包括开启单元403和下发单元404,其中:
所述开启单元403,用于为每条物理链路开启选择的需要开启时间同步功能的端口的时间同步功能;
所述下发单元404,用于将每条物理链路的选择的需要开启时间同步功能的端口的端口配置信息下发给各节点。
本公开一些实施例中,所述时间同步装置可以是传输网络中的网管等集中控制单元;所述传输网络的架构可以参见图1-1,所述传输网络的各节点是指传输网络中的时间同步设备,即,将每一个时间同步设备看作为一个节点。
本公开一些实施例中,如图4-4所示,所述确定单元401包括接收模块4011、第三确定模块4012和第四确定模块4013,其中:
所述接收模块4011,用于接收传输网络中各节点上报的各端口的物理连接关系、各端口的端口属性、各端口的时间同步属性;
所述第三确定模块4012,用于根据所述各端口的物理连接关系和所述各端口的端口属性,确定所述传输网络的物理链路连接关系;
所述第四确定模块4013,用于根据所述物理链路连接关系、所述各端口的物理连接关系、所述各端口的端口属性和所述各端口的时间同步属性,确定每条物理链路上支持时间同步功能的端口连接关系。
本公开一些实施例中,所述任一端口的端口属性至少包括所述任一端口的端口标识信息、所述任一端口所在板卡以及所述任一所在板卡所属节点的节点标识信息和物理接口类型;
任一端口的时间同步属性至少包括所述任一端口是否支持时间同步功能、 是否仅支持主端口,是否仅支持从端口。
本公开一些实施例中,选择模块,用于按照预设的优先级,分别从确定的每条物理链路的两端均支持时间同步功能的端口中选择N1对端口作为每条物理链路需要开启时间同步功能的端口。其中所述预设的优先级包括优选节点中不同槽位、不同板卡上的端口;而且千兆以太网GE电接口的优先级比除GE电接口外的接口的优先级低。
本公开一些实施例提供一种时间同步装置,其中,确定单元401根据传输网络中各节点上报的各端口的物理连接关系、各端口的端口属性和各端口的时间同步属性,确定所述传输网络的物理链路连接关系和每条物理链路上支持时间同步功能的端口的连接关系;选择单元402根据所述物理链路连接关系、每条物理链路上支持时间同步功能的端口的连接关系和所述各端口的时间同步属性,为每条物理链路选择需要开启时间同步功能的端口;如此,时间同步由时间同步装置自动地进行规划,因而不需要人工参与,能够极大简化工程量和缩短整个传输网络的配置时间。
基于前述的实施例,本公开一些实施例提供一种时间同步系统,图5为本公开一些实施例的时间同步系统的组成结构示意图,如图5所示,该系统包括时间同步装置400和传输网络中各节点500,其中所述时间同步装置400包括确定单元401和选择单元402,其中:
所述传输网络中各节点500,用于将自身的各端口的物理连接关系、各端口的端口属性和各端口的时间同步属性上报给时间同步装置;
所述确定单元401,用于接收所述传输网络中各节点上报的各端口的物理连接关系、各端口的端口属性和各端口的时间同步属性;根据传输网络中各节点上报的各端口的物理连接关系、各端口的端口属性和各端口的时间同步属性,确定所述传输网络的物理链路连接关系和每条物理链路上支持时间同步功能的端口的连接关系;
所述选择单元402,用于根据所述物理链路连接关系、每条物理链路上支持时间同步功能的端口的连接关系和所述各端口的时间同步属性,为每条物理链路选择需要开启时间同步功能的端口。
本公开一些实施例中,所述确定单元包括接收模块、第三确定模块和第四确定模块,其中:
所述接收模块,用于接收传输网络中各节点上报的各端口的物理连接关系、各端口的端口属性、各端口的时间同步属性;
所述第三确定模块,用于根据各端口的物理连接关系和各端口的端口属性,确定所述传输网络的物理链路连接关系;
所述第四确定模块,用于根据所述物理链路连接关系、所述各端口的物理连接关系、所述各端口的端口属性和所述各端口的时间同步属性,确定每条物理链路上支持时间同步功能的端口连接关系。
本公开一些实施例中,任一端口的端口属性包括所述任一端口的端口标识信息、所述任一端口所在板卡以及所述任一所在板卡所属节点的节点标识信息和物理接口类型等;
任一端口的时间同步属性包括所述任一端口是否支持时间同步功能、是否仅支持主端口,是否仅支持从端口等。
基于前述的实施例,本公开一些实施例提供一种时间同步装置,图6-1为本公开一些实施例的时间同步装置的组成结构示意图,如图6-1所示,该时间同步装置600包括确定单元601、选择单元602、开启单元603和下发单元604,其中所述选择单元602包括第二确定模块6021和第二选择模块6022,其中:
所述确定单元601,用于根据传输网络中各节点上报的各端口的物理连接关系、各端口的端口属性和各端口的时间同步属性,确定所述传输网络的物理链路连接关系和每条物理链路上支持时间同步功能的端口的连接关系;
这里,所述物理连接关系是指物理上各个端口之间的连接关系,例如,两个端口之间通过三条GE线连接的,那么物理连接关系就是指两个端口之间通过三条GE线连接的,而不是将这三条GE线抽象成一条线路;当将三条GE线抽象为一条线路时,这种方法所表述的端口之间的关系可以理解为物理拓扑关系,本公开一些实施例中的物理连接关系并不是物理拓扑关系。
所述第二确定模块6021,用于根据所述物理链路连接关系、每条物理链路上支持时间同步功能的端口的连接关系和所述各端口的时间同步属性,分别确定每条物理链路的两端均支持时间同步功能的端口的连接数目M,其中所述M为大于等于0的整数;
所述第二选择模块6022,用于分别根据每条物理链路的M为每条物理链路选择需要开启时间同步功能的端口。
所述开启单元603,用于为每条物理链路开启所述N对端口的时间同步功能;
所述下发单元604,用于将每条物理链路的所述N对端口的端口配置信息下发给各节点。
本公开一些实施例中,如图6-2所示,所述第二选择模块6022包括第一判断子模块6221、第二判断子模块6222和选择子模块6223,其中:
所述第一判断子模块6221,用于对于任一条物理链路,判断所述任一条物理链路的M是否等于0,得到第一判断结果;
所述第二判断子模块6222,用于当所述第一判断结果表明所述任一条物理链路的M大于0时,判断所述任一条物理链路的M与N2的大小关系,得到第二判断结果,其中所述N2为预设的大于1的整数;
所述选择子模块6223,用于当所述第二判断结果表明所述任一条物理链路的M大于等于所述N2时,从所述任一条物理链路的两端均支持时间同步功能的端口中选择N2对端口作为所述任一条物理链路需要开启时间同步功能的端口。
本公开一些实施例中,所述选择子模块,用于按照预设的优先级,从所述任一条物理链路的两端均支持时间同步功能的端口中选择N2对端口作为所述任一条物理链路需要开启时间同步功能的端口。
本公开一些实施例中,所述选择子模块,还用于当所述第二判断结果表明所述任一条物理链路的M小于所述N2时,从所述任一条物理链路的两端均支持时间同步功能的端口中选择M对端口作为所述任一条物理链路需要开启时间同步功能的端口。
本公开一些实施例中,所述选择单元还包括上报模块,用于当所述第一判断结果表明所述任一条物理链路的M等于0时,上报第一告警信息,所述第一告警信息用于表明所述任一条物理链路不支持时间同步。
本公开一些实施例中,该时间同步装置600还包括获取单元、检测单元和第二上报单元,其中:
所述获取单元,用于获取所述任一条物理链路的两端连接的两个节点的节点标识信息;
所述检测单元,用于根据所述节点标识信息检测所述任一条物理链路两端 连接的两个节点与时间服务器之间的有效时间路径是否存在,得到检测结果;
所述上报单元,用于当所述检测结果表明所述任一条物理链路两端连接的两个节点与所述时间服务器之间的有效时间路径不存在时,上报第二告警信息;
所述第二告警信息携带有所述节点标识信息,所述第二告警信息用于表明所述任一条物理链路两端连接的两个节点与所述时间服务器之间的时间同步中断。
本公开一些实施例中,所述确定单元包括接收模块、第三确定模块和第四确定模块,其中:
所述接收模块,用于接收传输网络中各节点上报的各端口的物理连接关系、各端口的端口属性、各端口的时间同步属性;
所述第三确定模块,用于根据所述各端口的物理连接关系和所述各端口的端口属性,确定所述传输网络的物理链路连接关系;
所述第四确定模块,用于根据所述物理链路连接关系、所述各端口的物理连接关系、所述各端口的端口属性和所述各端口的时间同步属性,确定每条物理链路上支持时间同步功能的端口连接关系。
本公开一些实施例中,任一端口的端口属性包括所述任一端口的端口标识信息、所述任一端口所在板卡以及所述任一所在板卡所属节点的节点标识信息、物理接口类型等;
任一端口的时间同步属性包括所述任一端口是否支持时间同步功能、是否仅支持主端口,是否仅支持从端口。
这里需要指出的是:以上时间同步装置实施例的描述,与上述应用于时间同步方法实施例的描述是类似的,具有与方法实施例的相同的有益效果,因此不做赘述。对于本公开的时间同步装置实施例中未披露的技术细节,请参照本公开的时间同步方法实施例的描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可 以是电性的、机械的或其它形式的。
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元;既可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。
另外,在本公开各实施例中的各功能单元可以全部集成在一个处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(Read-Onlv Memory,ROM)、磁碟或者光盘等各种可以存储程序代码的介质。
或者,本公开上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本公开一些实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本公开各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本公开的具体实施方式,但本公开的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应以所述权利要求的保护范围为准。

Claims (24)

  1. 一种时间同步方法,包括:
    根据传输网络中各节点上报的各端口的物理连接关系、各端口的端口属性和各端口的时间同步属性,确定所述传输网络的物理链路连接关系和每条物理链路上支持时间同步功能的端口的连接关系;
    根据所述物理链路连接关系、每条物理链路上支持时间同步功能的端口的连接关系和所述各端口的时间同步属性,为每条物理链路选择需要开启时间同步功能的端口。
  2. 根据权利要求1所述的方法,其中,所述根据所述物理链路连接关系和每条物理链路上支持时间同步功能的端口的连接关系和所述各端口的时间同步属性,为每条物理链路选择需要开启时间同步功能的端口,包括:
    根据所述物理链路连接关系、每条物理链路上支持时间同步功能的端口的连接关系和所述各端口的时间同步属性,分别确定每条物理链路的两端均支持时间同步功能的端口;
    分别从确定的每条物理链路的两端均支持时间同步功能的端口中选择N1对端口作为每条物理链路需要开启时间同步功能的端口,其中所述N1为预设的大于1的整数。
  3. 根据权利要求2所述的方法,其中,所述分别从确定的每条物理链路的两端均支持时间同步功能的端口中选择N1对端口作为每条物理链路需要开启时间同步功能的端口,包括:
    按照预设的优先级,分别从确定的每条物理链路的两端均支持时间同步功能的端口中选择N1对端口作为每条物理链路需要开启时间同步功能的端口。
  4. 根据权利要求1所述的方法,其中,所述根据所述物理链路连接关系和每条物理链路上支持时间同步功能的端口的连接关系和所述各端口的时间同步属性,为每条物理链路选择需要开启时间同步功能的端口,包括:
    根据所述物理链路连接关系、每条物理链路上支持时间同步功能的端口的连接关系和所述各端口的时间同步属性,分别确定每条物理链路的两端均支持时间同步功能的端口的连接数目M,其中所述M为大于等于0的整数;
    分别根据每条物理链路的M为每条物理链路选择需要开启时间同步功能的 端口。
  5. 根据权利要求4所述的方法,其中,所述分别根据每条物理链路的M为每条物理链路选择需要开启时间同步功能的端口,包括:
    对于任一条物理链路,判断所述任一条物理链路的M是否等于0,得到第一判断结果;
    当所述第一判断结果表明所述任一条物理链路的M大于0时,判断所述任一条物理链路的M与N2的大小关系,得到第二判断结果,其中所述N2为预设的大于1的整数;
    当所述第二判断结果表明所述任一条物理链路的M大于等于所述N2时,从所述任一条物理链路的两端均支持时间同步功能的端口中选择N2对端口作为所述任一条物理链路需要开启时间同步功能的端口。
  6. 根据权利要求5所述的方法,其中,所述从所述任一条物理链路的两端均支持时间同步功能的端口中选择N2对端口作为所述任一条物理链路需要开启时间同步功能的端口,包括:
    按照预设的优先级,从所述任一条物理链路的两端均支持时间同步功能的端口中选择N2对端口作为所述任一条物理链路需要开启时间同步功能的端口。
  7. 根据权利要求5所述的方法,其中,所述得到第二判断结果之后,还包括:
    当所述第二判断结果表明所述任一条物理链路的M小于所述N2时,从所述任一条物理链路的两端均支持时间同步功能的端口中选择M对端口作为所述任一条物理链路需要开启时间同步功能的端口。
  8. 根据权利要求1所述的方法,其中,所述为每条物理链路选择需要开启时间同步功能的端口之后,还包括:
    为每条物理链路开启选择的需要开启时间同步功能的端口的时间同步功能;
    将每条物理链路的选择的需要开启时间同步功能的端口的端口配置信息下发给各节点。
  9. 根据权利要求5所述的方法,其中,所述得到第一判断结果之后,还包括:
    当所述第一判断结果表明所述任一条物理链路的M等于0时,上报第一告警信息,所述第一告警信息用于表明所述任一条物理链路不支持时间同步。
  10. 根据权利要求9所述的方法,还包括:
    获取所述任一条物理链路的两端连接的两个节点的节点标识信息;
    根据所述节点标识信息检测所述任一条物理链路两端连接的两个节点与时间服务器之间的有效时间路径是否存在,得到检测结果;
    当所述检测结果表明所述任一条物理链路两端连接的两个节点与所述时间服务器之间的有效时间路径不存在时,上报第二告警信息;
    所述第二告警信息携带有所述节点标识信息,所述第二告警信息用于表明所述任一条物理链路两端连接的两个节点与所述时间服务器之间的时间同步中断。
  11. 根据权利要求1至10任一项所述的方法,其中,所述根据传输网络中各节点上报的各端口的物理连接关系、各端口的端口属性和各端口的时间同步属性,确定所述传输网络的物理链路连接关系和每条物理链路上支持时间同步功能的端口的连接关系,包括:
    接收传输网络中各节点上报的各端口的物理连接关系、各端口的端口属性和各端口的时间同步属性;
    根据所述各端口的物理连接关系和所述各端口的端口属性,确定所述传输网络的物理链路连接关系;
    根据所述物理链路连接关系、所述各端口的物理连接关系、所述各端口的端口属性和所述各端口的时间同步属性,确定每条物理链路上支持时间同步功能的端口连接关系。
  12. 根据权利要求1至10任一项所述的方法,其中,任一端口的端口属性至少包括所述任一端口的端口标识信息、所述任一端口所在板卡以及所述任一所在板卡所属节点的节点标识信息和物理接口类型;
    任一端口的时间同步属性至少包括所述任一端口是否支持时间同步功能、是否仅支持主端口,是否仅支持从端口。
  13. 一种时间同步装置,包括确定单元和选择单元,其中:
    所述确定单元,用于根据传输网络中各节点上报的各端口的物理连接关系、各端口的端口属性和各端口的时间同步属性,确定所述传输网络的物理链路连接关系和每条物理链路上支持时间同步功能的端口的连接关系;
    所述选择单元,用于根据所述物理链路连接关系、每条物理链路上支持时 间同步功能的端口的连接关系和所述各端口的时间同步属性,为每条物理链路选择需要开启时间同步功能的端口。
  14. 根据权利要求13所述的装置,其中,所述选择单元包括第一确定模块和第一选择模块,其中:
    所述第一确定模块,用于根据所述物理链路连接关系、每条物理链路上支持时间同步功能的端口的连接关系和所述各端口的时间同步属性,分别确定每条物理链路的两端均支持时间同步功能的端口;
    所述第一选择模块,用于分别从确定的每条物理链路的两端均支持时间同步功能的端口中选择N1对端口作为每条物理链路需要开启时间同步功能的端口,其中所述N1为预设的大于1的整数。
  15. 根据权利要求14所述的装置,其中,所述选择模块,用于按照预设的优先级,分别从确定的每条物理链路的两端均支持时间同步功能的端口中选择N1对端口作为每条物理链路需要开启时间同步功能的端口。
  16. 根据权利要求13所述的装置,其中,所述选择单元包括第二确定模块和第二选择模块,其中:
    所述第二确定模块,用于根据所述物理链路连接关系、每条物理链路上支持时间同步功能的端口的连接关系和所述各端口的时间同步属性,分别确定每条物理链路的两端均支持时间同步功能的端口的连接数目M,其中所述M为大于等于0的整数;
    所述第二选择模块,用于分别根据每条物理链路的M为每条物理链路选择需要开启时间同步功能的端口。
  17. 根据权利要求16所述的模块,其中,所述第二选择模块包括第一判断子模块、第二判断子模块和选择子模块,其中:
    所述第一判断子模块,用于对于任一条物理链路,判断所述任一条物理链路的M是否等于0,得到第一判断结果;
    所述第二判断子模块,用于当所述第一判断结果表明所述任一条物理链路的M大于0时,判断所述任一条物理链路的M与N2的大小关系,得到第二判断结果,其中所述N2为预设的大于1的整数;
    所述选择子模块,用于当所述第二判断结果表明所述任一条物理链路的M大于等于所述N2时,从所述任一条物理链路的两端均支持时间同步功能的端口 中选择N2对端口作为所述任一条物理链路需要开启时间同步功能的端口。
  18. 根据权利要求17所述的装置,其中,所述选择子模块,用于按照预设的优先级,从所述任一条物理链路的两端均支持时间同步功能的端口中选择N2对端口作为所述任一条物理链路需要开启时间同步功能的端口。
  19. 根据权利要求17所述的装置,其中,所述选择子模块,还用于当所述第二判断结果表明所述任一条物理链路的M小于所述N2时,从所述任一条物理链路的两端均支持时间同步功能的端口中选择M对端口作为所述任一条物理链路需要开启时间同步功能的端口。
  20. 根据权利要求13所述的装置,还包括开启单元和下发单元,其中:
    所述开启单元,用于为每条物理链路开启选择的需要开启时间同步功能的端口的时间同步功能;
    所述下发单元,用于将每条物理链路的选择的需要开启时间同步功能的端口的端口配置信息下发给各节点。
  21. 根据权利要求17所述的装置,其中,所述选择单元还包括上报模块,用于当所述第一判断结果表明所述任一条物理链路的M等于0时,上报第一告警信息,所述第一告警信息用于表明所述任一条物理链路不支持时间同步。
  22. 根据权利要求21所述的装置,还包括获取单元、检测单元和上报单元,其中:
    所述获取单元,用于获取所述任一条物理链路的两端连接的两个节点的节点标识信息;
    所述检测单元,用于根据所述节点标识信息检测所述任一条物理链路两端连接的两个节点与时间服务器之间的有效时间路径是否存在,得到检测结果;
    所述上报单元,用于当所述检测结果表明所述任一条物理链路两端连接的两个节点与所述时间服务器之间的有效时间路径不存在时,上报第二告警信息;
    所述第二告警信息携带有所述节点标识信息,所述第二告警信息用于表明所述任一条物理链路两端连接的两个节点与所述时间服务器之间的时间同步中断。
  23. 根据权利要求13至22任一项所述的装置,其中,所述确定单元包括接收模块、第三确定模块和第四确定模块,其中:
    所述接收模块,用于接收传输网络中各节点上报的各端口的物理连接关系、 各端口的端口属性和各端口的时间同步属性;
    所述第三确定模块,用于根据所述各端口的物理连接关系和所述各端口的端口属性,确定所述传输网络的物理链路连接关系;
    所述第四确定模块,用于根据所述物理链路连接关系、所述各端口的物理连接关系、所述各端口的端口属性和所述各端口的时间同步属性,确定每条物理链路上支持时间同步功能的端口连接关系。
  24. 根据权利要求13至22任一项所述的装置,其中,任一端口的端口属性至少包括所述任一端口的端口标识信息、所述任一端口所在板卡以及所述任一所在板卡所属节点的节点标识信息和物理接口类型;
    任一端口的时间同步属性至少包括所述任一端口是否支持时间同步功能、是否仅支持主端口,是否仅支持从端口。
PCT/CN2015/094971 2014-12-08 2015-11-19 一种时间同步方法及装置 WO2016091050A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410745541.7 2014-12-08
CN201410745541.7A CN105744616B (zh) 2014-12-08 2014-12-08 一种时间同步方法及装置

Publications (1)

Publication Number Publication Date
WO2016091050A1 true WO2016091050A1 (zh) 2016-06-16

Family

ID=56106667

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/094971 WO2016091050A1 (zh) 2014-12-08 2015-11-19 一种时间同步方法及装置

Country Status (2)

Country Link
CN (1) CN105744616B (zh)
WO (1) WO2016091050A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106131437A (zh) * 2016-08-25 2016-11-16 武汉烽火众智数字技术有限责任公司 一种多网络摄像机时间同步方法和系统

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110167132B (zh) 2018-02-14 2021-02-12 华为技术有限公司 通信方法和通信装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8145809B1 (en) * 2007-03-09 2012-03-27 Cypress Semiconductor Corporation Busy detection logic for asynchronous communication port
CN102420667A (zh) * 2011-11-29 2012-04-18 浙江省电力公司 一种基于同步数字体系的时间同步网的系统与实现方法
CN102469569A (zh) * 2010-11-08 2012-05-23 中国移动通信集团公司 移动通信系统的时间同步方法和同步设备
CN102761407A (zh) * 2012-07-16 2012-10-31 中兴通讯股份有限公司 跨机框系统及其时间和频率透传的实现方法和装置
CN103312429A (zh) * 2013-06-08 2013-09-18 杭州华三通信技术有限公司 一种时间同步方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8145809B1 (en) * 2007-03-09 2012-03-27 Cypress Semiconductor Corporation Busy detection logic for asynchronous communication port
CN102469569A (zh) * 2010-11-08 2012-05-23 中国移动通信集团公司 移动通信系统的时间同步方法和同步设备
CN102420667A (zh) * 2011-11-29 2012-04-18 浙江省电力公司 一种基于同步数字体系的时间同步网的系统与实现方法
CN102761407A (zh) * 2012-07-16 2012-10-31 中兴通讯股份有限公司 跨机框系统及其时间和频率透传的实现方法和装置
CN103312429A (zh) * 2013-06-08 2013-09-18 杭州华三通信技术有限公司 一种时间同步方法及装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106131437A (zh) * 2016-08-25 2016-11-16 武汉烽火众智数字技术有限责任公司 一种多网络摄像机时间同步方法和系统

Also Published As

Publication number Publication date
CN105744616A (zh) 2016-07-06
CN105744616B (zh) 2018-03-23

Similar Documents

Publication Publication Date Title
US9270395B2 (en) Method for robust PTP synchronization with default 1588V2 profile
RU2638645C2 (ru) Способ для определения опорных синхросигналов, подвергнутых воздействию изменения в асимметрии задержки трассы распространения между узлами в сети связи
US10484163B2 (en) Measure and improve clock synchronization using combination of transparent and boundary clocks
CN105024855A (zh) 分布式集群管理系统和方法
US10868754B2 (en) High availability input/output management nodes
EP3352392B1 (en) Time synchronization packet processing method and device
Estrela et al. Challenges deploying PTPv2 in a global financial company
US20150113174A1 (en) Intelligent supervision for configuration of precision time protocol (ptp) entities
US20150023365A1 (en) Apparatus and method for synchronous hardware time stamping
US20170142676A1 (en) Method and Apparatus for Determining Synchronisation References
US20140347652A1 (en) Method and device for detecting symmetry of optical fiber
WO2016091050A1 (zh) 一种时间同步方法及装置
CN102665237B (zh) Ir接口协议一致性仿真测试装置及互联互通测试方法
US9179429B2 (en) Synchronization method, device, and system
US9705823B2 (en) Port status synchronization method, related device, and system
WO2020052298A1 (zh) 时钟、时间同步方法、装置以及多路由器系统
Kurtz et al. Synchronized measurement concept for failure handling in software-defined smart grid communications
CN106788949B (zh) 一种同步规划方法及装置
CN113037421A (zh) 用于时钟同步的方法、通信设备、通信系统和存储介质
CN112929115A (zh) 时间校准精度的检测方法、设备、系统及存储介质
CN112865899B (zh) 一种调整物理层phy主从模式的方法及装置
EP4192137A1 (en) Time synchronization failure processing method, apparatus and system, and storage medium
KR101735622B1 (ko) 고가용성 시스템 및 그의 시간 동기화 방법
US20160309435A1 (en) Segment synchronization method for network based display
EP4203568A1 (en) Time synchronization failure processing method, device and system

Legal Events

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

Ref document number: 15867811

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

Country of ref document: EP

Kind code of ref document: A1