WO2016184369A1 - Method for configuring clock tracking and control device - Google Patents
Method for configuring clock tracking and control device Download PDFInfo
- Publication number
- WO2016184369A1 WO2016184369A1 PCT/CN2016/082069 CN2016082069W WO2016184369A1 WO 2016184369 A1 WO2016184369 A1 WO 2016184369A1 CN 2016082069 W CN2016082069 W CN 2016082069W WO 2016184369 A1 WO2016184369 A1 WO 2016184369A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- node
- clock source
- clock
- source node
- sub
- Prior art date
- Legal status (The legal status 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 status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/44—Star or tree networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L7/00—Arrangements for synchronising receiver with transmitter
Definitions
- a configuration unit configured to perform clock tracing configuration on the first non-clock source node according to the clock injection node of the first non-clock source node.
- a second determining subunit configured to use the node in the first link set that is adjacent to the first non-clock source node as a clock injection node of the first non-clock source node.
- the determining unit includes:
- the network further includes a second non-clock source adjacent to the first non-clock source node a node, the fourth determining subunit is specifically configured to:
- a shortest path tree where the shortest path tree includes a third sub-branch and a fourth sub-branch, and the third sub-branch traverses the sub-level from the second sub-node
- the node reaches a branch of the first non-clock source node
- the fourth sub-branch is a branch that traverses the child node from the third sub-node to the second non-clock source node step by step, the second sub-node and the
- the third child node is a child node of the tree root;
- the first chain topology includes the third sub-branch, the fourth sub-branch, and a first link, where the first link is the first non-clock source A link between the node and the second non-clock source node.
- a second adding unit configured to add the first chain topology to the tree root.
- the network further includes: a third non-clock source node and a fourth non-clock source node, The third non-clock source node is adjacent to the fourth non-clock source node, and the fourth determining sub-unit is specifically configured to:
- the eighth possible implementation manner of the second aspect is further provided, and the following:
- the ninth possible implementation of the second aspect is further provided, where the fifth determining sub-unit is specifically configured to:
- the first direction is a direction from the start node of the chain topology to a termination node along the chain topology, and the second direction is opposite to a direction of the first direction;
- first hop count is a hop count of the first neighboring node from a first clock source node
- first clock source node is provided to the first neighboring node a clock source node of the reference clock signal
- second hop count is a hop count of the second neighboring node from the second clock source node
- the second clock source node is configured to provide a reference clock signal to the second neighboring node of Clock source node
- the first neighboring node is injected into the node as a clock of the first non-clock source node.
- a tenth possible implementation of the second aspect is further provided, where the fifth determining subunit is specifically configured to:
- the parent nodes of the starting node and the terminating node are used as injection nodes of the chain topology
- the third adjacent node is injected into the node as a clock of the first non-clock source.
- n clock source nodes include at least two nodes adjacent to the first non-clock source node
- the determining unit is specifically configured to select a fourth neighboring node as a clock injection node of the first non-clock source node, where the fourth neighboring node is adjacent to the first non-clock source node among the n clock source nodes. node.
- the control device acquires a topology of the network, where the network includes a first non-clock source node and n clock source nodes, and the n clock source nodes are configured to provide the The reference clock signal that the network performs clock synchronization.
- the control device determines, according to the topology of the network, a clock injection node of the first non-clock source node, that is, a node for providing a clock signal for tracking to the first non-clock source node.
- the control device is based on The clock injection node performs clock tracking configuration on the first non-clock source node, so that the first non-clock source node can track the clock signal output by the clock injection node, and implements the first non- Clock synchronization of the clock source node.
- the control device of the embodiment of the present invention can automatically configure the clock of the non-clock source node according to the topology of the network, and does not need to manually configure the non-clock source node, thereby reducing the workload and improving the working efficiency.
- FIG. 1 is a schematic diagram of a network topology.
- FIG. 2 is a flowchart of a method for configuring clock tracking according to an embodiment of the present invention.
- FIG. 3 is a schematic structural diagram of a control device according to an embodiment of the present invention.
- FIG. 4 is a schematic structural diagram of another control device according to an embodiment of the present invention.
- FIG. 6 is a flowchart of another method for configuring clock tracing according to an embodiment of the present invention.
- FIG. 7 is a flowchart of another method for configuring clock tracing according to an embodiment of the present invention.
- FIG. 8 is a schematic diagram of a network topology structure according to an embodiment of the present invention.
- FIG. 9 is a schematic diagram of another network topology structure according to an embodiment of the present invention.
- FIG. 11 is a schematic diagram of clock tracing configuration of the topology shown in FIG. 8 according to an embodiment of the present invention.
- the first non-clock source node tracks the selected clock signal to generate a clock signal of the first non-clock source node.
- the first non-clock source node may further output a clock signal of the first non-clock source node to a third non-clock source node, where the third non-clock source node is a node adjacent to the first non-clock source node.
- the network shown in FIG. 1 will be described below as an example.
- BITS1 outputs clock signal 01 to NE1, and BITS2 outputs clock signal to NE2.
- NE2 tracks the clock signal 02 to generate a clock signal 03.
- NE2 outputs a clock signal 03 to NE1.
- NE1 will receive two clock signals, one clock signal is the clock signal 01 from BITS1, and the other clock signal is the clock signal 03 from NE2.
- NE1 tracks the clock signal 01 output by BITS1 according to the clock tracking information configured by NE1.
- NE1 generates a clock signal 04 and uses the clock signal 04 as a clock signal of NE1 itself.
- NE1 outputs a clock signal 04 to NE2 and NE3.
- NE1 can use the clock signal 04 to implement communication services, such as transmitting messages.
- the identifier of the non-clock source node is different from the identifier of the clock source node, that is, whether the node is a non-clock source node or a clock source node according to the identifier, for example, the identifier of the clock source node includes a specific flag bit, and the specific flag bit is used for Identifies that the node is a clock source node.
- the adjacent ones are adjacent and directly connected, for example, the node adjacent to the first non-clock source includes a first clock source node, and the first non-clock source node is opposite to the first clock source node. Neighboring and directly connected, the phase A neighbor can be a neighbor relationship between two nodes.
- the topology information includes: an identifier of the first non-clock source node, an identifier of the second non-clock source node, an identifier of a node adjacent to the first non-clock source node, and the second non- ID of the node to which the clock source node is adjacent.
- the clock source node corresponding to a certain node is a clock source node that provides a reference clock signal to the certain node, and the number of hops of the clock source node corresponding to the certain node from the certain node is a, indicating the certain
- the clock signal output by the clock source node corresponding to each node reaches the certain node after a hop.
- the first non-clock source node is NE3 in FIG. 1
- the nodes adjacent to the first non-clock source node include NE1 and NE4 in FIG. 1
- BTIS1 is a clock source node that provides a reference clock signal to NE1
- BITS2 is the clock source node that provides the reference clock signal to NE4.
- the hop count of NE1 from BITS1 is 1, the hop count of NE1 from BITS2 is 2, and the hop count of NE4 from BITS2 is 2.
- the clock injection node of NE3 can be NE1. .
- the control device may be configured according to the connection relationship between the n clock source nodes and the m non-clock source nodes, and the The connection relationship of each non-clock source node among the m non-clock source nodes determines the clock injection node of each non-clock source node.
- the 203 may include: the control device is configured to the first non-clock source node. a port SSP is configured, the first port is configured to connect a clock injection node of the first non-clock source node, so that the first non-clock source node tracks a clock injection node output of the first non-clock source node Clock signal.
- node 1 includes port 1, wherein port 1 is used to connect the clock injection node of node 1, so the control device can configure the SSP of port 1, for example, the clock signal received by port 1 has the highest priority, thereby Causes node 1 to track the clock signal received by port 1.
- the control device acquires a topology of the network, and determines, according to the topology structure of the network, a clock injection node of the first non-clock source node, that is, for the first non-clock
- the source node provides a node for the clock signal for tracking.
- the control device performs clock tracking configuration on the first non-clock source node according to the clock injection node, and implements clock synchronization on the first non-clock source node.
- the control device of the embodiment of the present invention can automatically configure the clock of the non-clock source node according to the topology of the network, and does not need to manually configure the non-clock source node, thereby reducing the workload and improving the working efficiency.
- the control device in the embodiment of the present invention may be physically one device or multiple devices.
- the functions of the control device are implemented, that is, the multiple devices can coordinate 201, 202, and 203 included in the method provided by the embodiment of the present invention.
- the control device may be a server, a software defined network (English: Software Defined Network, SDN for short) controller, or a network management device.
- the specific screening rule may include at least one of the following rules: a link that retains the connection port as an optical port, a fiber link that retains a transmission rate greater than a preset value, and each port is located on a different physical board when the multi-port is enabled. the link to.
- the control device determines, according to the topology structure of the network, that only one node in the first link set is adjacent to the first non-clock source node, where the first link set is the first
- the non-clock source node connects the link sets of the n clock source nodes.
- the first non-clock source node can only receive a clock signal through the one adjacent node.
- the control device uses, as the clock injection node of the first non-clock source node, the node in the first link set that is adjacent to the first non-clock source node.
- 202 in the corresponding embodiment of FIG. 2 may include 601, 602, and 603.
- the control device determines, according to the topology structure of the network, that the second link set includes at least two nodes that are adjacent to the first non-clock source node, where the second link set is the first non- The clock source node is connected to the link set of the n clock source nodes.
- NE1, NE2 and the root of the tree constitute a minimum ring, and NE1 and NE2 form a chain topology, and if NE1 and NE2 are added to the root of the tree In the middle, NE3, NE4 and the root of the tree constitute a minimum ring, and NE3 and NE4 form a chain topology.
- the network includes n clock source nodes and m non-clock source nodes.
- the embodiment of the present invention may determine a node belonging to the first type of node from the m non-clock source nodes, or Identify the nodes that belong to the second type of node.
- the first type of node refers to a node that has only one adjacent node in the link set for connecting the n clock source nodes. If the first non-clock source node belongs to the first type of node, the control device sets the node in the first link set adjacent to the first non-clock source node as the first non-clock Source node clock injection node.
- 1101 is similar to 901. For related information, refer to the description of 901, and details are not described here.
- the control device determines that the root node includes only one start node of the chain topology and a parent node of the termination node, indicating a parent node and a termination node of the start node of the chain topology
- the parent node is the same node, and the parent nodes of the start node and the terminating node are used as injection nodes of the chain topology.
- the control device injects the third adjacent node as a clock of the first non-clock source into a node.
- NE9 is injected into the node as the clock of NE11
- NE11 is injected into the node as the clock of NE13
- NE13 is injected into the node as the clock of NE12
- NE12 is used as NE10.
- the clock is injected into the node.
- the control device may select the injection node according to the corresponding level, thereby facilitating Management of the selected clock injection node.
- Level(NE 2 ) Max(Level(r 1 ), Level(r 2 ))+1, where Level(NE 2 ) represents the level of the second type of node, and Level(r 1 ) represents the chain topology.
- the identifier of the non-clock source node is different from the identifier of the clock source node, that is, whether the node is a non-clock source node or a clock source node according to the identifier, for example, the identifier of the clock source node includes a specific flag bit, and the specific flag bit is used for Identifies that the node is a clock source node.
- the adjacent ones are adjacent and directly connected, for example, the node adjacent to the first non-clock source includes a first clock source node, and the first non-clock source node is opposite to the first clock source node. Adjacent and directly connected, the neighbor may be a neighbor relationship between two nodes.
- the network includes the first clock source node, the second clock source node, the first non-clock source node, and the second non-clock source node.
- the configuration may include: a connection relationship between the first clock source node and the first non-clock source node, a connection relationship between the second clock source node and the second non-clock source node, and the first non-clock A connection relationship between the source node and the second non-clock source node.
- the topology information includes: an identifier of the first non-clock source node, an identifier of the second non-clock source node, an identifier of a node adjacent to the first non-clock source node, and the second non- ID of the node to which the clock source node is adjacent.
- the configuration unit 1303 is configured to perform clock tracing configuration on the first non-clock source node according to the clock injection node of the first non-clock source node.
- the configuration unit 1303 may perform an SSP for the first port on the first non-clock source node.
- the first port is configured to connect the clock injection node of the first non-clock source node, so that the first non-clock source node tracks the clock signal output by the clock injection node of the first non-clock source node.
- node 1 includes port 1, where port 1 is used to connect the clock injection node of node 1, so configuration unit 1303 can configure the SSP of port 1, for example, the clock signal received by port 1 has the highest priority, thereby making Node 1 tracks the clock signal received by port 1.
- the acquiring unit 1301 acquires a topology of the network
- the determining unit 1302 determines, according to the topology structure of the network, a clock injection node of the first non-clock source node, that is, the The first non-clock source node provides a node for the clock signal for tracking.
- the configuration unit 1303 performs clock tracking configuration on the first non-clock source node according to the clock injection node, and implements clock synchronization on the first non-clock source node.
- the control device of the embodiment of the present invention can automatically configure the clock of the non-clock source node according to the topology of the network, and does not need to manually configure the non-clock source node, thereby reducing the workload and improving the working efficiency.
- the control device may be an SDN controller, and the network includes a first clock source node (not shown), a second clock source node (not shown), and a first non- A clock source node and a second non-clock source node.
- the acquiring unit in the SDN controller acquires a topology of the network, and the determining unit in the SDN controller determines a clock injection node of the first non-clock source node, and a configuration unit in the SDN controller Performing a clock tracing configuration on the first non-clock source node.
- the clock configuration port may be configured on the first non-clock source node.
- the first non-clock source node sends the topology of the network to the SDN controller through the clock configuration port.
- the network shown in Figure 8 includes three clock source nodes and four non-clock source nodes.
- the three hours The clock source nodes are BITS1, BTIS2, and BITS3.
- the 14 non-clock source nodes are NE1, NE2, NE3, NE4, NE5, NE6, NE7, NE8, NE9, NE10, NE11, NE12, NE13, and NE14, respectively.
- the NE5 is the first non-clock source node
- the first link set is a set of links used by the NE5 to connect the BITS1, the BTIS2, and the BITS3, that is, the first link set includes the first link, The second link, the third link, the fourth link, the fifth link, and the sixth link.
- the determining unit 1302 in the embodiment corresponding to FIG. 13 may include a third determining subunit 1501, a fourth determining subunit 1502, and a fifth determining subunit 1503.
- the first non-clock source node receives a clock signal through the at least two adjacent nodes.
- the second link set includes a set of links used by NE1 to connect BITS1, BITS2, and BITS3, that is, the second link set includes The seventh link, the eighth link, the ninth link, the tenth link, and the eleventh link.
- the seventh link can be represented as NE1-BITS1.
- the eighth link can be represented as NE1-NE2-BITS2.
- the ninth link can Expressed as NE1-NE3-NE4-NE2-BITS2.
- the tenth link can be represented as NE1-NE2-NE4-NE6-BITS3.
- the eleventh link can be represented as NE1-NE3-NE4-NE6-BITS3.
- the fourth determining subunit 1502 is configured to determine, according to the topology of the network, a chain topology in which the first non-clock source node is located.
- the clock injection node of the first non-clock source node may be a node selected from nodes adjacent to the first non-clock source node in the first direction or the second direction.
- the first direction is a direction from the start node to the end node of the chain topology along the chain topology
- the second direction is opposite to the first direction, that is, along the chain topology
- the terminating node of the chain topology is in the direction of the starting node.
- the starting node of the chain topology is a node indicating a starting position of the chain topology
- the terminating node of the chain topology is a node indicating a termination position of the chain topology, as shown in FIG.
- the determining unit 1302 in the embodiment of the present invention may determine, from the m non-clock source nodes, a node that belongs to the first type of node, or the network includes n clock source nodes and m non-clock source nodes, or Identify the nodes that belong to the second type of node.
- the first type of node refers to a node that has only one adjacent node in the link set for connecting the n clock source nodes. If the first non-clock source node belongs to the first type of node, the determining unit 1302 uses the node in the first link set adjacent to the first non-clock source node as the first non-clock source. The node's clock is injected into the node.
- the second type of node refers to a node that is used to connect the n clock source nodes to include at least two adjacent nodes, and if the first non-clock source node belongs to the second type of node, determining The unit 1302 may determine a chain topology in which the first non-clock source node is located, and determine a clock injection node of the first non-clock source node according to a connection relationship between the n clock source nodes and the chain topology. Wherein, if the first non-clock source node belongs to the second type of node, in a specific case, for example, the n clock source nodes include at least two adjacent to the first non-clock source node.
- the node, the determining unit 1302 may select the fourth adjacent node as a clock injection node of the first non-clock source node, where the fourth adjacent node is the first non-clock source among the n clock source nodes The node to which the node is adjacent.
- first determining subunit 1401 determines that only one of the first link sets is adjacent to the first non-clock source node.
- Embodiments of the present invention provide Two specific methods of determination are described below.
- the first determining subunit 1401 may determine the first of the m non-clock source nodes according to the topology of the network. A subclass node. The first determining subunit 1401 may select any one of the first subclass nodes as the first non-clock source node. The first sub-class node has only one contiguous node in the network.
- the topology of the network is represented by topology information, where the topology information includes an identifier of each of the m non-clock source sources and an identifier of an adjacent node among the non-clock sources.
- Table 1 shows the topology information corresponding to NE5, NE7, NE13, and NE14 in Fig. 8.
- the first determining sub-unit 1401 may determine that the NE7 has only one adjacent node, that is, NE5, according to the number of nodes included in the adjacent nodes of any one of the nodes in Table 1. The first determining subunit 1401 may also determine from the table 1 that the NE 14 has only one contiguous node, namely, NE13. The first determining subunit 1401 can know that NE7 and NE14 belong to the first subclass node.
- the second function is: a node in the network that is adjacent to the first non-clock source node, and a node that is adjacent to the first non-clock source node in the first link set.
- the control device of the embodiment of the present invention may further include a deleting unit, after deleting the first sub-class node, the deleting unit is configured to delete the first sub-class node in the network to perform a network topology.
- Update determining the new first child according to the updated topology of the network Class node.
- the deleting unit is configured to delete the first non-clock source node from a topology of the network. For example, it can be determined according to Table 1 that the NE7 has only one contiguous node, and the deleting unit can delete the NE7 from the topology of the network, and obtain the updated topology of the network as shown in FIG. 9.
- the control device further includes a generating unit, where the determining unit 1302 is further configured to: determine, by the clock injection node of the first non-clock source node, a hop count from the first clock source node, where the generating unit uses Then, if the hop count is greater than a preset threshold, a prompt message is generated.
- the determining unit 1302 may determine the first sub-class node in the network, and set the determined variable R corresponding to the first sub-class node to -1, and then the deleting unit deletes the first
- the sub-class node updates the topology of the network, and the determining unit 1302 determines, according to the updated topology of the network, the new first sub-class node in the network, and the new first sub-port
- the variable R corresponding to the class node is set to R-1.
- the first determining sub-unit 1401 is specifically configured to perform the third function and the fourth function, and is also used to perform the fifth function or the sixth function.
- the first determining subunit 1401 may use BITS1, BITS2, and BITS3 as the root of the tree.
- the fourth function obtaining a shortest path tree according to the tree root and the topology of the network.
- the control device may further include a deleting unit, before deleting the unit, the deleting unit is configured to delete The first sub-class node in the topology, in the fourth function, generating a shortest path tree in which the topology of the first sub-class node is deleted, thereby simplifying the network topology and reducing the generation of the The amount of work when the shortest path tree.
- the sixth function if the child node of the tree root includes the first non-clock source node and the first child node, that is, the first non-clock source node and the first child node are the tree a child node of the root, determining that the first child branch and the second child branch do not include a node that satisfies the first condition, and the first non-time
- the parent node of the clock source node serves as a node adjacent to the first non-clock source node in the first link set.
- the first child node is a non-clock source node
- the shortest path tree includes the first child branch and the second child branch
- the first child branch includes the first non-clock source node
- the second sub-branch includes the first sub-node.
- the first sub-branch may be a sub-level traversing the sub-node from the first non-clock source node until reaching a branch of the first end node of the shortest path tree, that is, starting from the first non-clock source Stepping along a child node of the first non-clock source node, a child node of the child node of the first non-clock source node, and reaching a branch of the first end node, wherein the first end node A node that has no children.
- the second sub-branch may be a branch that traverses the child node step by step from the first child node until reaching a second end node of the shortest path tree, where the second end node has no child nodes Node.
- the first sub-branch includes NE8, NE9, NE10, NE11, NE12, and NE13. And NE14.
- the second sub-branch is a branch that traverses the child node step by step from the NE7, and the NE7 has no child node, and the second sub-branch includes the NE7.
- the first non-clock source node may be added to the tree root to update the tree root, so the first determination is performed.
- the sub-unit 1401 may re-generate the shortest path tree according to the updated tree root, thereby determining a new clock injection node of the first non-clock source node.
- the control device The method further includes: a first adding unit, configured to add the first non-clock source node to the tree root.
- the following describes how the fourth determining sub-unit 1502 in the embodiment of the present invention determines the chain topology in which the first non-clock source node is located.
- the embodiments of the present invention provide two specific determination manners, which are respectively described below.
- the seventh function using the n clock source nodes as a tree root.
- the fourth sub-determining unit may determine whether the third sub-branch and the fourth sub-branch have nodes satisfying the second condition, where the second condition is that two adjacent nodes belong to the first The third sub-branch and the fourth sub-branch, if it is determined that only the first non-clock source node and the second non-clock source node satisfy the second condition, the third sub-branch The fourth sub-branch is connected by the first non-clock source node and the second non-clock source node, and the first chain topology And the tree root constitutes a minimum ring, and the first chain topology is obtained. For example, in FIG.
- the network of the embodiment of the present invention further includes a third non-clock source node and a fourth non-clock source node, where the third non-clock source node is adjacent to the fourth non-clock source node, and fourth
- the determining subunit 1502 is specifically configured to perform the tenth function, the eleventh function, and the twelfth function.
- the tenth function using the n clock source nodes as a tree root.
- the eleventh function obtaining a shortest path tree according to the tree root and the topology of the network.
- the shortest path tree includes a fifth sub-branch and a sixth sub-branch
- the fifth sub-branch is a branch that traverses the sub-node from the fourth sub-node to the third non-clock source node step by step
- the fifth sub-branch includes the first non-clock source node
- the sixth sub-branch is a branch that traverses the child node from the fifth child node to the fourth non-clock source node step by step, the fourth child node and the first
- the five child nodes are child nodes of the tree root.
- the root of the tree includes BITS1, BITS2, BITS3, NE1, NE2, NE3, NE4, NE5, NE6, NE7, and NE8.
- the child nodes of the tree root include NE9 and NE10. If the first non-clock source node is NE9, the third non-clock source node is NE11, and the fourth non-clock source node is NE13, the fifth sub-branch is gradually traversing the child node from NE9 to reach NE11.
- the traversal process includes: obtaining the child node of NE9 as NE11, and the fifth sub-branch includes NE9 and NE11, and the sixth sub-branch is a sub-branch that is traversed from NE10 to NE13 step by step, and the specific traversal process
- the method includes: obtaining a child node of NE10 as NE12, and obtaining a child node of NE12 as NE13, and the sixth sub-branch includes NE10, NE12, and NE13.
- the twelfth function determining that only the third non-clock source node and the fourth non-clock source are The node satisfies the third condition, and obtains a second chain topology, where the second chain topology includes the fifth sub-branch, the sixth sub-branch, and the second link, where the second link is the A link between the three non-clock source nodes and the fourth non-clock source node.
- the fourth determining subunit 1502 may determine whether the fifth sub-branch and the sixth sub-branch have nodes that meet the third condition, where the third condition is that the two adjacent nodes belong to the fifth a child branch and the sixth child branch, if it is determined that only the third non-clock source node and the fourth non-clock source node satisfy the third condition, the fifth child branch and the And obtaining, by the third non-clock source node, the fourth non-clock source node, and the second chain topology and the tree root forming a minimum ring, obtaining the second chain topology . For example, in FIG.
- the embodiment of the present invention may perform clock tracing configuration on each node in the second chain topology, and add the second chain topology to the tree root.
- the fourth determining sub-unit 1502 may regenerate the shortest path tree according to the updated root, thereby determining a new clock injection node of the first non-clock source node.
- the control device may further include: a third adding unit, configured to add the second chain topology to the tree root.
- the determining unit 1302 may obtain each non-clock of the m non-clock source nodes according to the method for generating the shortest path tree.
- the clock of the source node is injected into the node.
- the thirteenth function determining the first neighboring node and the second neighboring node.
- the first adjacent node is adjacent to the first non-clock source node in a first direction, that is, the node adjacent to the first non-clock source node in the first direction is the first adjacent node
- the second adjacent node abuts the first non-clock source node in a second direction, that is, the first non-
- the node adjacent to the clock source node in the second direction is the second adjacent node.
- the first direction is a direction from the start node of the chain topology to the end node along the chain topology, and the second direction is opposite to the direction of the first direction.
- the starting node of the chain topology is a node representing a starting position of the chain topology
- the terminating node of the chain topology is a node indicating a termination position of the chain topology.
- the fourteenth function obtaining a first hop count and a second hop count, where the first hop count is a hop count of the first neighboring node from a first clock source node, and the first clock source node is a
- the first neighboring node provides a clock source node of the reference clock signal, where the first hop count is the number of hops that the clock signal output by the first clock source node reaches the first neighboring node.
- the second hop count is a hop count of the second neighboring node from the second clock source node, and the second clock source node is a clock source node that provides a reference clock signal to the second neighboring node, where the The second hop count is the number of hops that the clock signal output by the second clock source node reaches the second adjacent node.
- the first clock source node and the second clock source node may be the same or different.
- the fifteenth function if the first hop count is less than or equal to the second hop count, the first neighboring node is injected into the node as a clock of the first non-clock source node.
- the hop count of the first neighboring node from the first clock source node is less than or equal to the distance of the second neighboring node.
- the clock injection node of each node in the chain topology may be determined according to the hop count priority manner.
- the specific implementation may be determined from one end of the chain topology and determined hop by hop.
- the chain topology includes NE9, NE11, NE13, NE12, and NE10, the starting node of the chain topology is NE10, and the terminating node of the chain topology is NE9.
- the parent nodes of NE9 and NE10 are both NE8, so NE8 is used as the injection node of the chain topology.
- the seventeenth function if it is determined that the first parent node and the second parent node are included in the root of the tree, obtaining a third hop count and a fourth hop count; if the third hop count is less than or equal to the The fourth hop count uses the first parent node as an injection node of the chain topology.
- the third hop count is a hop count of the first parent node from the third clock source node
- the fourth hop count is a hop count of the second parent node from the fourth clock source node.
- the third clock source node is a clock source node that provides a reference clock signal to the first parent node
- the fourth clock source node is a clock source node that provides a reference clock signal to the second parent node.
- the parent node of the originating node NE1 is the first parent node BITS1
- the parent node of the terminating node NE2 is the second parent node BITS2, the first parent node.
- the clock source node is itself, so the third clock source node is the first parent node BITS1, and the fourth clock source node is the same.
- the point is the second parent node BITS2.
- the third hop count and the fourth hop count are both zero.
- the nineteenth function injecting the third adjacent node as a clock of the first non-clock source into a node.
- the clock injection nodes of the nodes in the chain topology may be used as the primary clock injection nodes of the nodes in the chain topology; the determining unit 1302 It can also be used to acquire an alternate clock injection node of the chain topology. If the primary clock injection node is unavailable, the clock signal output by the alternate clock injection node can be tracked.
- the clock tracking configuration of the non-clock source node shown in FIG. 8 can be as shown in FIG. 12.
- the solid arrow in FIG. 12 indicates the direction of the clock signal output by the main clock injection node, and the dotted arrow indicates the standby clock injection node output. The direction of the clock signal.
- the determining unit 1302 may be further configured to select the injection node according to the corresponding level, thereby It is convenient to manage the selected clock injection node.
- the determining unit 1302 may further set the level of the chain topology, for example, the level of the chain topology is the same as the level of the node in the chain topology, for using the clock tracking configuration for the network. Loop into the test.
- control device in the embodiment of the present invention is described above from the perspective of a modular functional entity. Embodiments of the control device in the embodiment of the present invention will be described below from the perspective of hardware processing.
- another control device provided by an embodiment of the present invention includes a processor 1601, a communications interface 1602, a memory 1603, and a communication bus 1604.
- the control device provided by the embodiment of the present invention may adopt the method in the embodiment corresponding to FIG. 2, FIG. 5, FIG. 6, or FIG.
- the processor 1601 is configured to execute the program 1605.
- program 1605 can include program code, the program code including computer operating instructions.
- the processor 1601 may be a central processing unit CPU, or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
- CPU central processing unit
- ASIC application specific integrated circuit
- the network includes a first non-clock source node and n clock source nodes, where the n clock source nodes are used to provide a reference clock signal for clock synchronization of the network, where n is greater than or An integer equal to 1;
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to 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 invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
- the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
- the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
- a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
- the foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (ROM, Read-Only) Memory, random access memory (RAM), disk or optical disk, and other media that can store program code.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
Description
本申请要求于2015年5月15日提交中国专利局、申请号为CN201510249225.5、发明名称为“一种用于配置时钟跟踪的方法及控制设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application filed on May 15, 2015, the Chinese Patent Application No. CN201510249225.5, entitled "A Method and Control Device for Configuring Clock Tracking", the entire contents of which is hereby incorporated by reference. This is incorporated herein by reference.
本发明属于通信技术领域,尤其涉及一种用于配置时钟跟踪的方法及控制设备。The present invention belongs to the field of communications technologies, and in particular, to a method and a control device for configuring clock tracking.
为了保证通信业务的正常运行,网络中的多个非时钟源节点需要对一个或多个时钟源节点产生的时钟信号进行跟踪,以实现所述网络的时钟同步,即所述网络中的多个非时钟源节点的时钟频率或者时钟相位的差值在一定的误差范围内。In order to ensure the normal operation of the communication service, multiple non-clock source nodes in the network need to track the clock signals generated by one or more clock source nodes to implement clock synchronization of the network, that is, multiple in the network. The difference between the clock frequency or the clock phase of the non-clock source node is within a certain error range.
在实现时钟同步时,所述网络中的第一非时钟源节点会接收第一非时钟源节点邻接的节点输出的时钟信号。第一非时钟源节点邻接的节点可包括多个节点,比如第一时钟源节点和第二非时钟源节点均为第一非时钟源节点邻接的节点。第一非时钟源节点可根据配置的时钟跟踪信息,从第一时钟源节点提供的时钟信号和第二非时钟源节点提供的时钟信号选取一个时钟信号进行跟踪,生成第一非时钟源节点的时钟信号。第一非时钟源节点还可以向第三非时钟源节点输出第一非时钟源节点的时钟信号,第三非时钟源节点也是第一非时钟源节点邻接的节点。When clock synchronization is implemented, a first non-clock source node in the network receives a clock signal output by a node adjacent to the first non-clock source node. The node adjacent to the first non-clock source node may include multiple nodes, for example, the first clock source node and the second non-clock source node are nodes adjacent to the first non-clock source node. The first non-clock source node may select a clock signal from the clock signal provided by the first clock source node and the clock signal provided by the second non-clock source node according to the configured clock tracking information to generate a first non-clock source node. Clock signal. The first non-clock source node may further output a clock signal of the first non-clock source node to the third non-clock source node, and the third non-clock source node is also a node adjacent to the first non-clock source node.
目前,主要采用人工配置的方式,对网络中的多个非时钟源节点进行时钟跟踪配置,即通过人工配置第一非时钟源节点的时钟跟踪信息,这种配置方式会产生较大的工作量。At present, the manual configuration is adopted to perform clock tracking configuration on multiple non-clock source nodes in the network, that is, manually configuring clock tracking information of the first non-clock source node, and this configuration method generates a large workload. .
发明内容Summary of the invention
本发明实施例提供了一种用于配置时钟跟踪的方法及控制设备,能够 自动实现时钟同步和减少工作量,有助于提高工作效率。Embodiments of the present invention provide a method and a control device for configuring clock tracking, which are capable of Automated clock synchronization and reduced workloads help increase productivity.
为此,本发明实施例解决技术问题的技术方案是:To this end, the technical solution to solve the technical problem in the embodiments of the present invention is:
第一方面,提供了一种用于配置时钟跟踪的方法,包括:In a first aspect, a method for configuring clock tracking is provided, comprising:
控制设备获取网络的拓扑结构,所述网络包括第一非时钟源节点和n个时钟源节点,所述n个时钟源节点用于提供所述网络进行时钟同步的基准时钟信号,所述n为大于或等于1的整数;The control device acquires a topology of the network, where the network includes a first non-clock source node and n clock source nodes, and the n clock source nodes are used to provide a reference clock signal for clock synchronization of the network, where n is An integer greater than or equal to 1;
所述控制设备根据所述网络的拓扑结构,确定所述第一非时钟源节点的时钟注入节点,所述第一非时钟源节点的时钟注入节点用于向所述第一非时钟源节点提供用于跟踪的时钟信号;Determining, by the control device, a clock injection node of the first non-clock source node according to a topology of the network, where a clock injection node of the first non-clock source node is configured to provide the first non-clock source node Clock signal for tracking;
所述控制设备根据所述第一非时钟源节点的时钟注入节点,对所述第一非时钟源节点进行时钟跟踪配置。The control device performs clock tracing configuration on the first non-clock source node according to the clock injection node of the first non-clock source node.
结合上述第一方面,还提供了第一方面的第一种可能的实现方式,所述控制设备根据所述网络的拓扑结构,确定所述第一非时钟源节点的时钟注入节点包括:With reference to the foregoing first aspect, a first possible implementation manner of the first aspect is further provided, where the control device determines, according to the topology of the network, that the clock injection node of the first non-clock source node includes:
所述控制设备根据所述网络的拓扑结构,确定第一链路集中仅有一个与所述第一非时钟源节点邻接的节点,所述第一链路集为所述第一非时钟源节点连接所述n个时钟源节点的链路集;Determining, according to the topology structure of the network, that the first link set has only one node adjacent to the first non-clock source node, and the first link set is the first non-clock source node Connecting a link set of the n clock source nodes;
所述控制设备将所述第一链路集中与所述第一非时钟源节点邻接的节点,作为所述第一非时钟源节点的时钟注入节点。The control device uses the node in the first link set that is adjacent to the first non-clock source node as a clock injection node of the first non-clock source node.
结合上述第一方面的第一种可能的实现方式,还提供了第一方面的第二种可能的实现方式,所述控制设备根据所述网络的拓扑结构,确定第一链路集中仅有一个与所述第一非时钟源节点邻接的节点包括:In conjunction with the first possible implementation manner of the foregoing first aspect, a second possible implementation manner of the first aspect is further provided, where the control device determines that only one of the first link sets is determined according to the topology of the network. The node adjacent to the first non-clock source node includes:
所述控制设备将所述n个时钟源节点作为树根;The control device uses the n clock source nodes as a root;
所述控制设备根据所述树根和所述网络的拓扑结构,获得最短路径树;The control device obtains a shortest path tree according to the tree root and the topology of the network;
若所述树根的子节点仅包括所述第一非时钟源节点,则所述控制设备将所述第一非时钟源的父节点作为所述第一链路集中与所述第一非时钟源节点邻接的节点;或者,If the child node of the root of the tree includes only the first non-clock source node, the control device uses the parent node of the first non-clock source as the first link set and the first non-clock a node to which the source node is adjacent; or,
若所述树根的子节点包括所述第一非时钟源节点和第一子节点,则所述控制设备确定第一子枝和第二子枝不包含满足第一条件的节点后,将所述第一非时钟源节点的父节点作为所述第一链路集中与所述第一非时钟源节点邻 接的节点,所述最短路径树包括所述第一子枝和所述第二子枝,所述第一子枝包括所述第一非时钟源节点,所述第二子枝包括所述第一子节点,所述第一条件为邻接的两个节点分别属于所述第一子枝和所述第二子枝。If the child node of the tree root includes the first non-clock source node and the first child node, the control device determines that the first child branch and the second child branch do not include the node that satisfies the first condition, a parent node of the first non-clock source node as the first link set and the first non-clock source node a node that includes the first sub-branch and the second sub-branch, the first sub-branch includes the first non-clock source node, and the second sub-branch includes the a child node, the first condition is that two adjacent nodes belong to the first child branch and the second child branch, respectively.
结合上述第一方面的第二种可能的实现方式,还提供了第一方面的第三种可能的实现方式,所述方法还包括:In conjunction with the second possible implementation of the foregoing first aspect, a third possible implementation of the first aspect is further provided, where the method further includes:
所述控制设备将所述第一非时钟源节点添加到所述树根中。The control device adds the first non-clock source node to the tree root.
结合上述第一方面,还提供了第一方面的第四种可能的实现方式,所述控制设备根据所述网络的拓扑结构,确定所述第一非时钟源节点的时钟注入节点包括:With reference to the foregoing first aspect, a fourth possible implementation manner of the first aspect is further provided, where the control device determines, according to the topology of the network, that the clock injection node of the first non-clock source node includes:
所述控制设备根据所述网络的拓扑结构,确定第二链路集中包括至少两个与所述第一非时钟源节点邻接的节点,所述第二链路集为所述第一非时钟源节点连接所述n个时钟源节点的链路集;Determining, by the control device, that the second link set includes at least two nodes adjacent to the first non-clock source node according to the topology of the network, where the second link set is the first non-clock source Nodes connect the set of links of the n clock source nodes;
所述控制设备根据所述网络的拓扑结构,确定所述第一非时钟源节点位于的链状拓扑;Determining, by the control device, a chain topology in which the first non-clock source node is located according to a topology of the network;
所述控制设备根据所述n个时钟源节点和所述链状拓扑的连接关系,确定所述第一非时钟源节点的时钟注入节点。The control device determines a clock injection node of the first non-clock source node according to a connection relationship between the n clock source nodes and the chain topology.
结合上述第一方面的第四种可能的实现方式,还提供了第一方面的第五种可能的实现方式,所述网络还包括与所述第一非时钟源节点邻接的第二非时钟源节点,所述控制设备根据所述网络的拓扑结构,确定所述第一非时钟源节点位于的链状拓扑包括:In conjunction with the fourth possible implementation manner of the foregoing first aspect, a fifth possible implementation manner of the first aspect is further provided, the network further includes a second non-clock source adjacent to the first non-clock source node And determining, by the control device, the chain topology in which the first non-clock source node is located according to the topology of the network, where:
所述控制设备将所述n个时钟源节点作为树根;The control device uses the n clock source nodes as a root;
所述控制设备根据所述树根和所述网络的拓扑结构,获得最短路径树,所述最短路径树包括第三子枝和第四子枝,所述第三子枝为从第二子节点逐级遍历子节点到达所述第一非时钟源节点的树枝,所述第四子枝为从第三子节点逐级遍历子节点到达所述第二非时钟源节点的树枝,所述第二子节点和所述第三子节点是所述树根的子节点;The control device obtains a shortest path tree according to the tree root and the topology of the network, where the shortest path tree includes a third sub-branch and a fourth sub-branch, and the third sub-branch is a second sub-node Traversing the child node to the branch of the first non-clock source node step by step, the fourth sub-branch is a branch that traverses the child node step by step from the third child node to the second non-clock source node, the second The child node and the third child node are child nodes of the tree root;
所述控制设备确定仅有所述第一非时钟源节点和所述第二非时钟源节点满足第二条件,获得第一链状拓扑,所述第二条件为邻接的两个节点分别属于所述第三子枝和所述第四子枝,所述第一链状拓扑包括所述第三子枝、所述第四子枝和第一链路,所述第一链路为所述第一非时钟源节点和所述第二 非时钟源节点之间的链路。The control device determines that only the first non-clock source node and the second non-clock source node satisfy the second condition, and obtains a first chain topology, where the second condition is that two adjacent nodes belong to the node The third sub-branch and the fourth sub-branch, the first chain topology includes the third sub-branch, the fourth sub-branch, and a first link, where the first link is the a non-clock source node and the second A link between non-clock source nodes.
结合上述第一方面的第五种可能的实现方式,还提供了第一方面的第六种可能的实现方式中,所述方法还包括:In conjunction with the fifth possible implementation of the foregoing first aspect, the sixth possible implementation manner of the first aspect is further provided, the method further includes:
所述控制设备将所述第一链状拓扑添加到所述树根中。The control device adds the first chain topology to the tree root.
结合上述第一方面的第四种可能的实现方式,还提供了第一方面的第七种可能的实现方式,所述网络还包括:第三非时钟源节点和第四非时钟源节点,所述第三非时钟源节点与所述第四非时钟源节点邻接,所述控制设备根据所述网络的拓扑结构,确定所述第一非时钟源节点位于的链状拓扑包括:With reference to the fourth possible implementation manner of the foregoing first aspect, the seventh possible implementation manner of the first aspect is further provided, the network further includes: a third non-clock source node and a fourth non-clock source node, where The third non-clock source node is adjacent to the fourth non-clock source node, and the control device determines, according to the topology structure of the network, that the chain topology of the first non-clock source node is:
所述控制设备将所述n个时钟源节点作为树根;The control device uses the n clock source nodes as a root;
所述控制设备根据所述树根和所述网络的拓扑结构,获得最短路径树,所述最短路径树包括第五子枝和第六子枝,所述第五子枝为从第四子节点逐级遍历子节点到达所述第三非时钟源节点的树枝,所述第五子枝包括所述第一非时钟源节点,所述第六子枝为从第五子节点逐级遍历子节点到达所述第四非时钟源节点的树枝,所述第四子节点和所述第五子节点是所述树根的子节点;The control device obtains a shortest path tree according to the tree root and the topology of the network, where the shortest path tree includes a fifth sub-branch and a sixth sub-branch, and the fifth sub-branch is a fourth sub-node Traversing the child node to the branch of the third non-clock source node step by step, the fifth sub-branch includes the first non-clock source node, and the sixth sub-branch traverses the child node step by step from the fifth sub-node Arriving at a branch of the fourth non-clock source node, the fourth child node and the fifth child node being child nodes of the tree root;
所述控制设备确定仅有所述第三非时钟源节点和所述第四非时钟源节点满足第三条件,获得第二链状拓扑,所述第三条件为邻接的两个节点分别属于所述第五子枝和所述第六子枝,所述第二链状拓扑包括所述第五子枝、所述第六子枝和第二链路,所述第二链路为所述第三非时钟源节点和所述第四非时钟源节点之间的链路。The control device determines that only the third non-clock source node and the fourth non-clock source node satisfy the third condition, and obtains a second chain topology, where the third condition is that the two adjacent nodes belong to the The fifth sub-branch and the sixth sub-branch, the second chain topology includes the fifth sub-branch, the sixth sub-branch, and a second link, where the second link is the A link between the three non-clock source nodes and the fourth non-clock source node.
结合上述第一方面的第七种可能的实现方式,还提供了第一方面的第八种可能的实现方式,所述方法还包括:In conjunction with the seventh possible implementation of the foregoing first aspect, the eighth possible implementation of the first aspect is further provided, where the method further includes:
所述控制设备将所述第二链状拓扑添加到所述树根中。The control device adds the second chain topology to the tree root.
结合上述第一方面的第四种可能的实现方式,还提供了第一方面的第九种可能的实现方式,所述控制设备根据所述n个时钟源节点和所述链状拓扑的连接关系,确定所述第一非时钟源节点的时钟注入节点,包括:In conjunction with the fourth possible implementation of the foregoing first aspect, the ninth possible implementation manner of the first aspect is further provided, the control device is configured according to the connection relationship between the n clock source nodes and the chain topology Determining a clock injection node of the first non-clock source node, including:
所述控制设备确定第一邻接节点和第二邻接节点,所述第一邻接节点在第一方向上邻接所述第一非时钟源节点,所述第二邻接节点在第二方向上邻接所述第一非时钟源节点,所述第一方向为沿着所述链状拓扑从所述链状拓扑的起始节点到达所述链状拓扑的终止节点的方向,所述第二方向与所述第 一方向的方向相反;Determining, by the control device, a first neighboring node and a second neighboring node, the first neighboring node abutting the first non-clock source node in a first direction, and the second neighboring node abutting the second direction in a second direction a first non-clock source node, the first direction being a direction from the start node of the chain topology to a termination node of the chain topology along the chain topology, the second direction and the First The direction of one direction is opposite;
所述控制设备获得第一跳数和第二跳数,所述第一跳数是所述第一邻接节点距离第一时钟源节点的跳数,所述第一时钟源节点是向所述第一邻接节点提供基准时钟信号的时钟源节点,所述第二跳数是所述第二邻接节点距离第二时钟源节点的跳数,所述第二时钟源节点是向所述第二邻接节点提供基准时钟信号的时钟源节点;The control device obtains a first hop count and a second hop count, where the first hop count is a hop count of the first neighboring node from a first clock source node, and the first clock source node is to the first a neighboring node provides a clock source node of the reference clock signal, the second hop count is a hop count of the second neighboring node from the second clock source node, and the second clock source node is to the second neighboring node a clock source node that provides a reference clock signal;
若所述第一跳数小于或等于所述第二跳数,则所述控制设备将所述第一邻接节点作为所述第一非时钟源节点的时钟注入节点。And if the first hop count is less than or equal to the second hop count, the control device injects the first adjacent node as a clock of the first non-clock source node into a node.
结合上述第一方面的第四种可能的实现方式,还提供了第一方面的第十种可能的实现方式,所述控制设备根据所述n个时钟源节点和所述链状拓扑的连接关系,确定所述第一非时钟源节点的时钟注入节点,包括:In conjunction with the fourth possible implementation manner of the foregoing first aspect, a tenth possible implementation manner of the first aspect is further provided, where the control device is configured according to the connection relationship between the n clock source nodes and the chain topology Determining a clock injection node of the first non-clock source node, including:
若所述控制设备确定出所述树根中仅包括第三父节点,所述第三父节点是所述链状拓扑的起始节点和所述链状拓扑的终止节点的共同的父节点,则将所述第三父节点作为所述链状拓扑的注入节点;或者,If the control device determines that only the third parent node is included in the tree root, the third parent node is a common parent node of the starting node of the chain topology and the terminating node of the chain topology, Then using the third parent node as an injection node of the chain topology; or
若所述控制设备确定出所述树根中包括第一父节点和第二父节点,所述第一父节点为所述链状拓扑的起始节点和/或终止节点的父节点,所述第二父节点为所述链状拓扑的起始节点和/或终止节点的父节点,所述控制设备获得第三跳数和第四跳数,所述第三跳数是所述第一父节点距离第三时钟源节点的跳数,所述第三时钟源节点是向所述第一父节点提供基准时钟信号的时钟源节点,所述第四跳数是所述第二父节点距离第四时钟源节点跳数,所述第四时钟源节点是向所述第二父节点提供基准时钟信号的时钟源节点;若所述第三跳数小于或等于所述第四跳数,则所述控制设备将所述第一父节点作为所述链状拓扑的注入节点;If the control device determines that the root node includes a first parent node and a second parent node, the first parent node is a start node of the chain topology and/or a parent node of the termination node, The second parent node is a start node of the chain topology and/or a parent node of the termination node, and the control device obtains a third hop count and a fourth hop count, the third hop count being the first parent The number of hops of the node from the third clock source node, the third clock source node is a clock source node that provides a reference clock signal to the first parent node, and the fourth hop count is the second parent node distance a clock source node hop count, the fourth clock source node is a clock source node that provides a reference clock signal to the second parent node; if the third hop count is less than or equal to the fourth hop count, The control device uses the first parent node as an injection node of the chain topology;
所述控制设备确定所述第一非时钟源节点在第三方向上邻接的第三邻接节点,所述第三方向为沿着所述链状拓扑从所述第一非时钟源节点至所述注入节点的方向;Determining, by the control device, that the first non-clock source node is adjacent to a third neighboring node in a third direction, the third direction is from the first non-clock source node to the injecting along the chain topology The direction of the node;
所述控制设备将所述第三邻接节点,作为所述第一非时钟源的时钟注入节点。The control device injects the third adjacent node as a clock of the first non-clock source into a node.
结合上述第一方面,还提供了第一方面的第十一种可能的实现方式,所述控制设备根据所述网络的拓扑结构,确定所述第一非时钟源节点的时钟注 入节点,包括:In conjunction with the foregoing first aspect, an eleventh possible implementation manner of the first aspect is further provided, where the control device determines a clock note of the first non-clock source node according to a topology of the network. Incoming nodes, including:
若所述n个时钟源节点包括至少两个与所述第一非时钟源节点邻接的节点,则所述控制设备选取第四邻接节点作为所述第一非时钟源节点的时钟注入节点,所述第四邻接节点是所述n个时钟源节点中与所述第一非时钟源节点邻接的节点。If the n clock source nodes include at least two nodes adjacent to the first non-clock source node, the control device selects a fourth neighboring node as a clock injection node of the first non-clock source node. The fourth adjacent node is a node adjacent to the first non-clock source node among the n clock source nodes.
第二方面,提供了一种控制设备,包括:In a second aspect, a control device is provided, comprising:
获取单元,用于获取网络的拓扑结构,所述网络包括第一非时钟源节点和n个时钟源节点,所述n个时钟源节点用于提供所述网络进行时钟同步的基准时钟信号,所述n为大于或等于1的整数;An acquiring unit, configured to acquire a topology of the network, where the network includes a first non-clock source node and n clock source nodes, where the n clock source nodes are used to provide a reference clock signal for clock synchronization of the network, where Let n be an integer greater than or equal to 1;
确定单元,用于根据所述网络的拓扑结构,确定所述第一非时钟源节点的时钟注入节点,所述第一非时钟源节点的时钟注入节点用于向所述第一非时钟源节点提供用于跟踪的时钟信号;a determining unit, configured to determine a clock injection node of the first non-clock source node according to a topology of the network, where a clock injection node of the first non-clock source node is used to send to the first non-clock source node Providing a clock signal for tracking;
配置单元,用于根据所述第一非时钟源节点的时钟注入节点,对所述第一非时钟源节点进行时钟跟踪配置。And a configuration unit, configured to perform clock tracing configuration on the first non-clock source node according to the clock injection node of the first non-clock source node.
结合上述第二方面,还提供了第二方面的第一种可能的实现方式,所述确定单元包括:In conjunction with the foregoing second aspect, a first possible implementation manner of the second aspect is further provided, where the determining unit includes:
第一确定子单元,用于根据所述网络的拓扑结构,确定第一链路集中仅有一个与所述第一非时钟源节点邻接的节点,所述第一链路集为所述第一非时钟源节点连接所述n个时钟源节点的链路集;a first determining subunit, configured to determine, according to a topology structure of the network, that only one node in the first link set is adjacent to the first non-clock source node, where the first link set is the first A non-clock source node is connected to the link set of the n clock source nodes;
第二确定子单元,用于将所述第一链路集中与所述第一非时钟源节点邻接的节点,作为所述第一非时钟源节点的时钟注入节点。And a second determining subunit, configured to use the node in the first link set that is adjacent to the first non-clock source node as a clock injection node of the first non-clock source node.
结合上述第二方面的第一种可能的实现方式,还提供了第二方面的第二种可能的实现方式,所述第一确定子单元具体用于:In conjunction with the first possible implementation of the foregoing second aspect, a second possible implementation of the second aspect is further provided, where the first determining sub-unit is specifically configured to:
将所述n个时钟源节点作为树根;Using the n clock source nodes as a tree root;
根据所述树根和所述网络的拓扑结构,获得最短路径树;Obtaining a shortest path tree according to the tree root and the topology of the network;
若所述树根的子节点仅包括所述第一非时钟源节点,则将所述第一非时钟源的父节点作为所述第一链路集中与所述第一非时钟源节点邻接的节点;或者,If the child node of the root node includes only the first non-clock source node, the parent node of the first non-clock source is adjacent to the first non-clock source node as the first link set Node; or,
若所述树根的子节点包括所述第一非时钟源节点和第一子节点,则确定第一子枝和第二子枝不包含满足第一条件的节点后,将所述第一非时钟源节 点的父节点作为所述第一链路集中与所述第一非时钟源节点邻接的节点,所述最短路径树包括所述第一子枝和所述第二子枝,所述第一子枝包括所述第一非时钟源节点,所述第二子枝包括所述第一子节点,所述第一条件为邻接的两个节点分别属于所述第一子枝和所述第二子枝。If the child node of the tree root includes the first non-clock source node and the first child node, determining that the first child branch and the second child branch do not include a node that satisfies the first condition, the first non- Clock source section a parent node of the point as a node adjacent to the first non-clock source node in the first link set, the shortest path tree including the first child branch and the second child branch, the first child The branch includes the first non-clock source node, the second sub-branch includes the first sub-node, and the first condition is that two adjacent nodes belong to the first sub-branch and the second sub-child respectively branch.
结合上述第二方面的第二种可能的实现方式,还提供了第二方面的第三种可能的实现方式,还包括:In conjunction with the second possible implementation manner of the foregoing second aspect, a third possible implementation manner of the second aspect is further provided, and the following:
第一添加单元,用于将所述第一非时钟源节点添加到所述树根中。a first adding unit, configured to add the first non-clock source node to the tree root.
在第二方面的第四种可能的实现方式中,所述确定单元包括:In a fourth possible implementation manner of the second aspect, the determining unit includes:
第三确定子单元,用于根据所述网络的拓扑结构,确定第二链路集中包括至少两个与所述第一非时钟源节点邻接的节点,所述第二链路集为所述第一非时钟源节点连接所述n个时钟源节点的链路集;a third determining subunit, configured to determine, according to a topology of the network, that the second link set includes at least two nodes adjacent to the first non-clock source node, where the second link set is the A non-clock source node is connected to the link set of the n clock source nodes;
第四确定子单元,用于根据所述网络的拓扑结构,确定所述第一非时钟源节点位于的链状拓扑;a fourth determining subunit, configured to determine, according to a topology structure of the network, a chain topology in which the first non-clock source node is located;
第五确定子单元,用于根据所述n个时钟源节点和所述链状拓扑的连接关系,确定所述第一非时钟源节点的时钟注入节点。And a fifth determining subunit, configured to determine a clock injection node of the first non-clock source node according to a connection relationship between the n clock source nodes and the chain topology.
结合上述第二方面的第四种可能的实现方式,还提供了第二方面的第五种可能的实现方式,所述网络还包括与所述第一非时钟源节点邻接的第二非时钟源节点,所述第四确定子单元具体用于:In conjunction with the fourth possible implementation of the foregoing second aspect, a fifth possible implementation manner of the second aspect is further provided, the network further includes a second non-clock source adjacent to the first non-clock source node a node, the fourth determining subunit is specifically configured to:
将所述n个时钟源节点作为树根;Using the n clock source nodes as a tree root;
根据所述树根和所述网络的拓扑结构,获得最短路径树,所述最短路径树包括第三子枝和第四子枝,所述第三子枝为从第二子节点逐级遍历子节点到达所述第一非时钟源节点的树枝,所述第四子枝为从第三子节点逐级遍历子节点到达所述第二非时钟源节点的树枝,所述第二子节点和所述第三子节点是所述树根的子节点;Obtaining, according to the tree root and the topology of the network, a shortest path tree, where the shortest path tree includes a third sub-branch and a fourth sub-branch, and the third sub-branch traverses the sub-level from the second sub-node The node reaches a branch of the first non-clock source node, and the fourth sub-branch is a branch that traverses the child node from the third sub-node to the second non-clock source node step by step, the second sub-node and the The third child node is a child node of the tree root;
确定仅有所述第一非时钟源节点和所述第二非时钟源节点满足第二条件,获得第一链状拓扑,所述第二条件为邻接的两个节点分别属于所述第三子枝和所述第四子枝,所述第一链状拓扑包括所述第三子枝、所述第四子枝和第一链路,所述第一链路为所述第一非时钟源节点和所述第二非时钟源节点之间的链路。Determining that only the first non-clock source node and the second non-clock source node satisfy the second condition, obtaining a first chain topology, where the second condition is that two adjacent nodes belong to the third sub- And the fourth sub-topology, the first chain topology includes the third sub-branch, the fourth sub-branch, and a first link, where the first link is the first non-clock source A link between the node and the second non-clock source node.
结合上述第二方面的第五种可能的实现方式,还提供了第二方面的第六 种可能的实现方式,还包括:In combination with the fifth possible implementation of the second aspect above, a sixth aspect of the second aspect is also provided Possible implementations include:
第二添加单元,用于将所述第一链状拓扑添加到所述树根中。a second adding unit, configured to add the first chain topology to the tree root.
结合上述第二方面的第四种可能的实现方式,还提供了第二方面的第七种可能的实现方式,所述网络还包括:第三非时钟源节点和第四非时钟源节点,所述第三非时钟源节点与所述第四非时钟源节点邻接,所述第四确定子单元具体用于:In conjunction with the fourth possible implementation of the foregoing second aspect, the seventh possible implementation of the second aspect is further provided, the network further includes: a third non-clock source node and a fourth non-clock source node, The third non-clock source node is adjacent to the fourth non-clock source node, and the fourth determining sub-unit is specifically configured to:
将所述n个时钟源节点作为树根;Using the n clock source nodes as a tree root;
根据所述树根和所述网络的拓扑结构,获得最短路径树,所述最短路径树包括第五子枝和第六子枝,所述第五子枝为从第四子节点逐级遍历子节点到达所述第三非时钟源节点的树枝,所述第五子枝包括所述第一非时钟源节点,所述第六子枝为从第五子节点逐级遍历子节点到达所述第四非时钟源节点的树枝,所述第四子节点和所述第五子节点是所述树根的子节点;Obtaining, according to the tree root and the topology of the network, a shortest path tree, where the shortest path tree includes a fifth sub-branch and a sixth sub-branch, and the fifth sub-branch is traversing the sub-level from the fourth sub-node The node reaches the branch of the third non-clock source node, the fifth sub-branch includes the first non-clock source node, and the sixth sub-branch traverses the child node step by step from the fifth sub-node to the first a branch of four non-clock source nodes, the fourth child node and the fifth child node being child nodes of the tree root;
确定仅有所述第三非时钟源节点和所述第四非时钟源节点满足第三条件,获得第二链状拓扑,所述第三条件为邻接的两个节点分别属于所述第五子枝和所述第六子枝,所述第二链状拓扑包括所述第五子枝、所述第六子枝和第二链路,所述第二链路为所述第三非时钟源节点和所述第四非时钟源节点之间的链路。Determining that only the third non-clock source node and the fourth non-clock source node satisfy the third condition, and obtaining a second chain topology, where the third condition belongs to the adjacent two nodes respectively belonging to the fifth sub- a second chain topology including the fifth sub-branch, the sixth sub-branch, and a second link, where the second link is the third non-clock source A link between the node and the fourth non-clock source node.
结合上述第二方面的第七种可能的实现方式,还提供了第二方面的第八种可能的实现方式,还包括:With reference to the seventh possible implementation manner of the foregoing second aspect, the eighth possible implementation manner of the second aspect is further provided, and the following:
第三添加单元,用于将所述第二链状拓扑添加到所述树根中。And a third adding unit, configured to add the second chain topology to the tree root.
结合上述第二方面的第四种可能的实现方式,还提供了第二方面的第九种可能的实现方式,所述第五确定子单元具体用于:In conjunction with the fourth possible implementation of the foregoing second aspect, the ninth possible implementation of the second aspect is further provided, where the fifth determining sub-unit is specifically configured to:
确定第一邻接节点和第二邻接节点,所述第一邻接节点在第一方向上邻接所述第一非时钟源节点,所述第二邻接节点在第二方向上邻接所述第一非时钟源节点,所述第一方向为沿着所述链状拓扑从所述链状拓扑的起始节点到达终止节点的方向,所述第二方向与所述第一方向的方向相反;Determining a first neighboring node that is adjacent to the first non-clock source node in a first direction, and a second neighboring node abutting the first non-clock in a second direction a source node, the first direction is a direction from the start node of the chain topology to a termination node along the chain topology, and the second direction is opposite to a direction of the first direction;
获得第一跳数和第二跳数,所述第一跳数是所述第一邻接节点距离第一时钟源节点的跳数,所述第一时钟源节点是向所述第一邻接节点提供基准时钟信号的时钟源节点,所述第二跳数是所述第二邻接节点距离第二时钟源节点的跳数,所述第二时钟源节点是向所述第二邻接节点提供基准时钟信号的 时钟源节点;Obtaining a first hop count and a second hop count, where the first hop count is a hop count of the first neighboring node from a first clock source node, and the first clock source node is provided to the first neighboring node a clock source node of the reference clock signal, the second hop count is a hop count of the second neighboring node from the second clock source node, and the second clock source node is configured to provide a reference clock signal to the second neighboring node of Clock source node;
若所述第一跳数小于或等于所述第二跳数,则将所述第一邻接节点作为所述第一非时钟源节点的时钟注入节点。And if the first hop count is less than or equal to the second hop count, the first neighboring node is injected into the node as a clock of the first non-clock source node.
结合上述第二方面的第四种可能的实现方式,还提供了第二方面的第十种可能的实现方式,所述第五确定子单元具体用于:In conjunction with the fourth possible implementation of the foregoing second aspect, a tenth possible implementation of the second aspect is further provided, where the fifth determining subunit is specifically configured to:
若确定出所述树根中仅包括一个所述链状拓扑的起始节点和终止节点的父节点,则将所述起始节点和终止节点的父节点作为所述链状拓扑的注入节点;或者,If it is determined that the starting node of the chain topology and the parent node of the terminating node are included in the tree root, the parent nodes of the starting node and the terminating node are used as injection nodes of the chain topology; or,
若确定出所述树根中包括第一父节点和第二父节点,所述第一父节点为所述链状拓扑的起始节点和/或终止节点的父节点,所述第二父节点为所述链状拓扑的起始节点和/或终止节点的父节点,则获得第三跳数和第四跳数,所述第三跳数是所述第一父节点距离第三时钟源节点的跳数,所述第三时钟源节点是向所述第一父节点提供基准时钟信号的时钟源节点,所述第四跳数是所述第二父节点距离第四时钟源节点跳数,所述第四时钟源节点是向所述第二父节点提供基准时钟信号的时钟源节点;若所述第三跳数小于或等于所述第四跳数,则将所述第一父节点作为所述链状拓扑的注入节点;If it is determined that the root of the tree includes a first parent node and a second parent node, the first parent node is a start node of the chain topology and/or a parent node of a termination node, and the second parent node Obtaining a third hop count and a fourth hop count for the start node of the chain topology and/or the parent node of the termination node, where the third hop count is the third clock source node of the first parent node a hop count, the third clock source node is a clock source node that provides a reference clock signal to the first parent node, and the fourth hop count is a hop count of the second parent node from the fourth clock source node. The fourth clock source node is a clock source node that provides a reference clock signal to the second parent node; if the third hop count is less than or equal to the fourth hop count, the first parent node is used as An injection node of the chain topology;
确定所述第一非时钟源节点在第三方向上邻接的第三邻接节点,所述第三方向为沿着所述链状拓扑从所述第一非时钟源节点至所述注入节点的方向;Determining, by the third non-clock source node, a third adjacent node that is adjacent in a third direction, where the third direction is a direction from the first non-clock source node to the injection node along the chain topology;
将所述第三邻接节点,作为所述第一非时钟源的时钟注入节点。The third adjacent node is injected into the node as a clock of the first non-clock source.
结合上述第二方面,还提供了第二方面的第十一种可能的实现方式,若所述n个时钟源节点包括至少两个与所述第一非时钟源节点邻接的节点,则所述确定单元具体用于选取第四邻接节点作为所述第一非时钟源节点的时钟注入节点,所述第四邻接节点是所述n个时钟源节点中与所述第一非时钟源节点邻接的节点。With reference to the foregoing second aspect, an eleventh possible implementation manner of the second aspect is further provided, if the n clock source nodes include at least two nodes adjacent to the first non-clock source node, The determining unit is specifically configured to select a fourth neighboring node as a clock injection node of the first non-clock source node, where the fourth neighboring node is adjacent to the first non-clock source node among the n clock source nodes. node.
通过上述技术方案可知,在本发明实施例中,控制设备获取网络的拓扑结构,所述网络包括第一非时钟源节点和n个时钟源节点,所述n个时钟源节点用于提供所述网络进行时钟同步的基准时钟信号。所述控制设备根据所述网络的拓扑结构,确定所述第一非时钟源节点的时钟注入节点,即用于向所述第一非时钟源节点提供用于跟踪的时钟信号的节点。所述控制设备根据 所述时钟注入节点,对所述第一非时钟源节点进行时钟跟踪配置,从而使得所述第一非时钟源节点能够跟踪所述时钟注入节点输出的时钟信号,实现了对所述第一非时钟源节点的时钟同步。本发明实施例的所述控制设备可根据网络的拓扑结构,对非时钟源节点的时钟进行自动配置,无需对非时钟源节点进行手动配置,减少了工作量,有助于提高工作效率。According to the foregoing technical solution, in the embodiment of the present invention, the control device acquires a topology of the network, where the network includes a first non-clock source node and n clock source nodes, and the n clock source nodes are configured to provide the The reference clock signal that the network performs clock synchronization. The control device determines, according to the topology of the network, a clock injection node of the first non-clock source node, that is, a node for providing a clock signal for tracking to the first non-clock source node. The control device is based on The clock injection node performs clock tracking configuration on the first non-clock source node, so that the first non-clock source node can track the clock signal output by the clock injection node, and implements the first non- Clock synchronization of the clock source node. The control device of the embodiment of the present invention can automatically configure the clock of the non-clock source node according to the topology of the network, and does not need to manually configure the non-clock source node, thereby reducing the workload and improving the working efficiency.
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Other figures may also be obtained from those of ordinary skill in the art in view of these figures.
图1为一种网络拓扑结构示意图。FIG. 1 is a schematic diagram of a network topology.
图2为本发明实施例提供的一种用于配置时钟跟踪的方法的流程图。FIG. 2 is a flowchart of a method for configuring clock tracking according to an embodiment of the present invention.
图3为本发明实施例提供的一种控制设备的结构示意图。FIG. 3 is a schematic structural diagram of a control device according to an embodiment of the present invention.
图4为本发明实施例提供的另一种控制设备的结构示意图。FIG. 4 is a schematic structural diagram of another control device according to an embodiment of the present invention.
图5为本发明实施例提供的另一种用于配置时钟跟踪的方法的流程图。FIG. 5 is a flowchart of another method for configuring clock tracing according to an embodiment of the present invention.
图6为本发明实施例提供的另一种用于配置时钟跟踪的方法的流程图。FIG. 6 is a flowchart of another method for configuring clock tracing according to an embodiment of the present invention.
图7为本发明实施例提供的另一种用于配置时钟跟踪的方法的流程图。FIG. 7 is a flowchart of another method for configuring clock tracing according to an embodiment of the present invention.
图8为本发明实施例提供的一种网络拓扑结构示意图。FIG. 8 is a schematic diagram of a network topology structure according to an embodiment of the present invention.
图9为本发明实施例提供的另一种网络拓扑结构示意图。FIG. 9 is a schematic diagram of another network topology structure according to an embodiment of the present invention.
图10为本发明实施例提供的根据图8所示的拓扑结构生成的最短路径树的示意图。FIG. 10 is a schematic diagram of a shortest path tree generated according to the topology shown in FIG. 8 according to an embodiment of the present invention.
图11为本发明实施例提供的对图8所示的拓扑结构进行时钟跟踪配置的示意图。FIG. 11 is a schematic diagram of clock tracing configuration of the topology shown in FIG. 8 according to an embodiment of the present invention.
图12为本发明实施例提供的对图8所示的拓扑结构进行时钟跟踪配置的示意图;FIG. 12 is a schematic diagram of clock tracing configuration of the topology shown in FIG. 8 according to an embodiment of the present disclosure;
图13为本发明实施例提供的另一种控制设备的结构示意图。FIG. 13 is a schematic structural diagram of another control device according to an embodiment of the present invention.
图14为本发明实施例提供的另一种控制设备的结构示意图。FIG. 14 is a schematic structural diagram of another control device according to an embodiment of the present invention.
图15为本发明实施例提供的另一种控制设备的结构示意图。 FIG. 15 is a schematic structural diagram of another control device according to an embodiment of the present invention.
图16为本发明实施例提供的另一种控制设备的结构示意图。FIG. 16 is a schematic structural diagram of another control device according to an embodiment of the present invention.
为了保证通信业务的正常运行,网络中的多个非时钟源节点需要对一个或多个时钟源节点产生的时钟信号进行跟踪,以实现所述网络的时钟同步。例如,在无线网络中,所有的基站都需要进行时钟同步。用户从第一基站切换到第二基站的过程中,如果第一基站的时钟和第二基站的时钟不同步,用户会出现掉线或者语音单通等异常情况。所述时钟同步包括时钟频率同步和时钟相位同步两种实现方式。所述时钟频率同步是两个节点的时钟频率的差值在第一预设范围内,所述两个节点的时钟相位可以相同也可以不同。所述两个节点可以是网络中的任意两个节点。所述时钟相位同步是两个节点的时钟相位的差值在第二预设范围内,且所述两个节点的时钟频率的差值在第一预设范围内。In order to ensure the normal operation of the communication service, multiple non-clock source nodes in the network need to track the clock signals generated by one or more clock source nodes to implement clock synchronization of the network. For example, in a wireless network, all base stations require clock synchronization. During the process of the user switching from the first base station to the second base station, if the clock of the first base station and the clock of the second base station are not synchronized, the user may have an abnormal situation such as a dropped line or a voice single pass. The clock synchronization includes two implementations of clock frequency synchronization and clock phase synchronization. The clock frequency synchronization is that the difference between the clock frequencies of the two nodes is within a first preset range, and the clock phases of the two nodes may be the same or different. The two nodes can be any two nodes in the network. The clock phase synchronization is that the difference between the clock phases of the two nodes is within the second preset range, and the difference between the clock frequencies of the two nodes is within the first preset range.
在实现时钟同步时,所述网络中的第一非时钟源节点会接收第一非时钟源节点邻接的节点输出的时钟信号。所述第一非时钟源节点邻接的节点包括至少一个节点。所述至少一个节点可以包括时钟源节点和/或非时钟源节点。比如:第一时钟源节点和第二非时钟源节点均为所述第一非时钟源节点邻接的节点。所述第一非时钟源节点可根据配置的时钟跟踪信息,从所述第一时钟源节点提供的时钟信号和所述第二非时钟源节点提供的时钟信号选取一个时钟信号。所述第一非时钟源节点对其选取的时钟信号进行跟踪,生成所述第一非时钟源节点的时钟信号。所述第一非时钟源节点还可以向第三非时钟源节点输出所述第一非时钟源节点的时钟信号,所述第三非时钟源节点是第一非时钟源节点邻接的节点。下面以图1所示的网络为例进行说明。When clock synchronization is implemented, a first non-clock source node in the network receives a clock signal output by a node adjacent to the first non-clock source node. The node adjacent to the first non-clock source node includes at least one node. The at least one node may comprise a clock source node and/or a non-clock source node. For example, the first clock source node and the second non-clock source node are nodes adjacent to the first non-clock source node. The first non-clock source node may select a clock signal from a clock signal provided by the first clock source node and a clock signal provided by the second non-clock source node according to the configured clock tracking information. The first non-clock source node tracks the selected clock signal to generate a clock signal of the first non-clock source node. The first non-clock source node may further output a clock signal of the first non-clock source node to a third non-clock source node, where the third non-clock source node is a node adjacent to the first non-clock source node. The network shown in FIG. 1 will be described below as an example.
图1所示的网络包括大楼综合定时供给(英文:Building Integrated Timing Supply,简称:BITS)1、BITS2、网元(英文:network element,简称:NE)1、NE2、NE3和NE4。其中,BTIS1和BITS2为图1所示的网络的原始时钟源,即BTIS1和BITS2输出的时钟信号为图1所示的网络的基准时钟信号。NE1、NE2、NE3和NE4分别根据BITS1和BITS2中的一个BITS输出的时钟信号,生成自身的时钟信号。The network shown in FIG. 1 includes Building Integrated Timing Supply (BITS) 1,
举例说明,BITS1向NE1输出时钟信号01,BITS2向NE2输出时钟信号 02。NE2对时钟信号02进行跟踪,生成时钟信号03。NE2向NE1输出时钟信号03。NE1会接收到两个时钟信号,一个时钟信号是来自BITS1的时钟信号01,另一个时钟信号是来自NE2的时钟信号03。NE1根据NE1配置的时钟跟踪信息,对BITS1输出的时钟信号01进行跟踪。NE1生成时钟信号04,将时钟信号04作为NE1自身的时钟信号。NE1向NE2和NE3输出时钟信号04。其中,NE1可以利用时钟信号04实现通信业务,例如传输报文等。For example, BITS1 outputs clock signal 01 to NE1, and BITS2 outputs clock signal to NE2. 02. NE2 tracks the clock signal 02 to generate a clock signal 03. NE2 outputs a clock signal 03 to NE1. NE1 will receive two clock signals, one clock signal is the clock signal 01 from BITS1, and the other clock signal is the clock signal 03 from NE2. NE1 tracks the clock signal 01 output by BITS1 according to the clock tracking information configured by NE1. NE1 generates a clock signal 04 and uses the clock signal 04 as a clock signal of NE1 itself. NE1 outputs a clock signal 04 to NE2 and NE3. Among them, NE1 can use the clock signal 04 to implement communication services, such as transmitting messages.
NE2可根据其上配置的时钟跟踪信息,对时钟信号02进行跟踪。NE3和NE4可以分别根据各自配置的时钟跟踪信息,从接收到的至少两个时钟信号中选取一个时钟信号进行跟踪。NE2 can track clock signal 02 according to the clock tracking information configured on it. NE3 and NE4 can select one clock signal from at least two received clock signals for tracking according to the clock tracking information of the respective configurations.
在对网络中的非时钟源节点进行时钟跟踪配置时,主要采用的是人工配置的方式,即通过人工配置第一非时钟源节点的时钟跟踪信息,产生较大的工作量。若网络的拓扑发生变化,则需要重新对变化后的网络中的非时钟源节点进行人工配置,工作效率较低。When the clock tracking configuration is performed on the non-clock source node in the network, the manual configuration mode is adopted, that is, the clock tracking information of the first non-clock source node is manually configured, thereby generating a large workload. If the topology of the network changes, you need to manually configure the non-clock source nodes in the changed network, which is inefficient.
时钟跟踪配置会遵循一定的配置规则,例如该配置规则可以包括以下两方面要求:一是不会出现时钟跟踪配置成环的现象,即避免至少两个非时钟源节点之间相互跟踪使得跟踪路径成环。时钟跟踪配置成环会引起整个网络的时钟振荡。例如在图1所示的网络中,避免出现NE1跟踪NE2输出的时钟信号,NE2跟踪NE4输出的时钟信号,NE4跟踪NE3输出的时钟信号,NE3跟踪NE1输出的时钟信号的现象。二是选取从所述时钟源节点输出后经过节点最少的时钟信号作为跟踪的时钟信号。这是因为所述时钟源节点输出的时钟信号,每经过一个节点,信号精度就会发生一定的损失。其中需要说明的是,对于某些节点,例如链状拓扑中的节点,不一定按照第二方面的要求进行配置。可见,由于上述人工配置的方式需要人为确定出多个非时钟源节点跟踪的时钟信号,之后再进行人工配置,而这种人为确定的方式很难保证多个非时钟源节点都按照配置规则进行配置,例如当所述网络的拓扑比较复杂时,这种人为确定的方式很难避免在环状拓扑中出现时钟跟踪配置成环的现象。The clock tracing configuration follows certain configuration rules. For example, the configuration rule can include the following two requirements: First, the clock tracking configuration is not configured, that is, the at least two non-clock source nodes are prevented from tracking each other to make the tracking path. Into the ring. Clock tracking configured into a loop causes the clock of the entire network to oscillate. For example, in the network shown in FIG. 1, the clock signal of NE1 tracking NE2 output is avoided, NE2 tracks the clock signal output by NE4, NE4 tracks the clock signal output by NE3, and NE3 tracks the phenomenon of the clock signal output by NE1. The second is to select the clock signal that is the least after the output from the clock source node as the tracking clock signal. This is because the clock signal output by the clock source node has a certain loss of signal precision every time one node passes. It should be noted that for some nodes, such as nodes in a chain topology, they are not necessarily configured according to the requirements of the second aspect. It can be seen that, due to the above-mentioned manual configuration, it is necessary to manually determine the clock signals tracked by multiple non-clock source nodes, and then manually configure them, and this artificially determined manner is difficult to ensure that multiple non-clock source nodes follow the configuration rules. Configuration, for example, when the topology of the network is relatively complicated, such an artificially determined manner is difficult to avoid the phenomenon that clock tracking is configured into a ring in a ring topology.
为了解决上述问题,本发明实施例提供了一种用于配置时钟跟踪的方法及控制设备。所述控制设备获取网络的拓扑结构,所述网络包括第一非时钟源节点和n个时钟源节点,所述n个时钟源节点用于提供所述网络进行时钟同步的基准时钟信号,所述n为大于或等于1的整数;所述控制设备根据所 述网络的拓扑结构,确定所述第一非时钟源节点的时钟注入节点,所述第一非时钟源节点的时钟注入节点用于向所述第一非时钟源节点提供用于跟踪的时钟信号;所述控制设备根据所述第一非时钟源节点的时钟注入节点,对所述第一非时钟源节点进行时钟跟踪配置。本发明实施例提供的方法和设备,能够自动实现时钟同步和减少工作量,有助于提高工作效率。In order to solve the above problem, an embodiment of the present invention provides a method and a control device for configuring clock tracking. The control device acquires a topology of a network, where the network includes a first non-clock source node and n clock source nodes, where the n clock source nodes are used to provide a reference clock signal for clock synchronization of the network, n is an integer greater than or equal to 1; the control device is based on a topology of the network, the clock injection node of the first non-clock source node is determined, and the clock injection node of the first non-clock source node is configured to provide a clock signal for tracking to the first non-clock source node The control device performs clock tracing configuration on the first non-clock source node according to the clock injection node of the first non-clock source node. The method and device provided by the embodiments of the present invention can automatically implement clock synchronization and reduce workload, which helps improve work efficiency.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”或“第四”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third" or "fourth" and the like in the specification and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe specific Order or order. It is to be understood that the data so used may be interchanged where appropriate so that the embodiments described herein can be implemented in a sequence other than what is illustrated or described herein. In addition, the terms "comprises" and "comprises" and "comprises", and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that comprises a series of steps or units is not limited to Those steps or units may include other steps or units not explicitly listed or inherent to such processes, methods, products or devices.
请参阅图2,本发明实施例提供的一种用于配置时钟跟踪的方法包括:Referring to FIG. 2, a method for configuring clock tracking according to an embodiment of the present invention includes:
201:控制设备获取网络的拓扑结构。201: The control device acquires a topology of the network.
举例说明,所述网络包括第一非时钟源节点和n个时钟源节点,所述n为大于或等于1的整数。其中,所述n个时钟源节点中的任意一个时钟源节点可用于提供时钟同步的基准时钟信号,即所述n个时钟源节点中的任意一个时钟源节点可作为所述网络的原始时钟源。所述n个时钟源节点中的任意一个时钟源节点输出的时钟信号可同时满足时钟频率同步和时钟相位同步。所述第一非时钟源节点本身不能提供所述基准时钟信号,所述第一非时钟源节点可根据所述n个时钟源节点提供的所述基准时钟信号进行时钟同步。For example, the network includes a first non-clock source node and n clock source nodes, and the n is an integer greater than or equal to 1. Any one of the n clock source nodes may be used to provide a clock synchronization reference clock signal, that is, any one of the n clock source nodes may serve as an original clock source of the network. . The clock signal output by any one of the n clock source nodes can simultaneously satisfy clock frequency synchronization and clock phase synchronization. The first non-clock source node itself cannot provide the reference clock signal, and the first non-clock source node can perform clock synchronization according to the reference clock signal provided by the n clock source nodes.
其中,所述拓扑结构可以通过拓扑信息表示,所述拓扑信息具体包括:所述第一非时钟源节点的标识和所述第一非时钟源节点邻接的节点的标识。若所述第一非时钟源节点具有多个邻接的节点,则所述拓扑信息还包括:所述第一非时钟源节点用于连接所述多个邻接的节点中每个节点的端口标识。非时钟源节点的标识与时钟源节点的标识不同,即根据标识可确定一个节点是非时钟源节点还是时钟源节点,例如时钟源节点的标识包含特定的标志位,所述特定的标志位用于标识该节点是时钟源节点。在本发明实施例中,邻接表示相邻且直接相连,比如所述第一非时钟源邻接的节点包括第一时钟源节点,所述第一非时钟源节点与所述第一时钟源节点相邻且直接连接,所述相 邻可以是两个节点之间是邻居关系。The topology may be represented by the topology information, where the topology information specifically includes: an identifier of the first non-clock source node and an identifier of a node adjacent to the first non-clock source node. If the first non-clock source node has multiple contiguous nodes, the topology information further includes: the first non-clock source node is configured to connect a port identifier of each of the plurality of contiguous nodes. The identifier of the non-clock source node is different from the identifier of the clock source node, that is, whether the node is a non-clock source node or a clock source node according to the identifier, for example, the identifier of the clock source node includes a specific flag bit, and the specific flag bit is used for Identifies that the node is a clock source node. In the embodiment of the present invention, the adjacent ones are adjacent and directly connected, for example, the node adjacent to the first non-clock source includes a first clock source node, and the first non-clock source node is opposite to the first clock source node. Neighboring and directly connected, the phase A neighbor can be a neighbor relationship between two nodes.
举例说明,所述网络可以包括至少两个非时钟源节点,即所述网络包括n个时钟源节点和m个非时钟源节点,m为大于或等于1的整数。所述m个非时钟源节点包括所述第一非时钟源节点。所述网络的拓扑结构包括所述m个非时钟源节点与所述n个时钟源节点的连接关系,以及所述m个非时钟源节点中任意两个非时钟源节点间的连接关系。相应地,所述拓扑信息包括:所述m个非时钟源节点中各非时钟源节点的标识以及各非时钟源节点邻接的节点的标识。下面通过一个例子加以说明,所述网络包括所述第一时钟源节点、第二时钟源节点、所述第一非时钟源节点和第二非时钟源节点,所述拓扑结构可包括:所述第一时钟源节点和所述第一非时钟源节点的连接关系、所述第二时钟源节点和所述第二非时钟源节点的连接关系以及所述第一非时钟源节点和所述第二非时钟源节点的连接关系。相应地,所述拓扑信息包括:所述第一非时钟源节点的标识、所述第二非时钟源节点的标识、所述第一非时钟源节点邻接的节点的标识以及所述第二非时钟源节点邻接的节点的标识。For example, the network may include at least two non-clock source nodes, that is, the network includes n clock source nodes and m non-clock source nodes, and m is an integer greater than or equal to 1. The m non-clock source nodes include the first non-clock source node. The topology of the network includes a connection relationship between the m non-clock source nodes and the n clock source nodes, and a connection relationship between any two non-clock source nodes of the m non-clock source nodes. Correspondingly, the topology information includes: an identifier of each non-clock source node of the m non-clock source nodes and an identifier of a node adjacent to each non-clock source node. The following includes an example, the network includes the first clock source node, the second clock source node, the first non-clock source node, and the second non-clock source node, and the topology may include: a connection relationship between the first clock source node and the first non-clock source node, a connection relationship between the second clock source node and the second non-clock source node, and the first non-clock source node and the first The connection relationship between two non-clock source nodes. Correspondingly, the topology information includes: an identifier of the first non-clock source node, an identifier of the second non-clock source node, an identifier of a node adjacent to the first non-clock source node, and the second non- ID of the node to which the clock source node is adjacent.
202:所述控制设备根据所述网络的拓扑结构,确定所述第一非时钟源节点的时钟注入节点,所述第一非时钟源节点的时钟注入节点用于向所述第一非时钟源节点提供用于跟踪的时钟信号。202: The control device determines, according to a topology structure of the network, a clock injection node of the first non-clock source node, where a clock injection node of the first non-clock source node is used to the first non-clock source The node provides a clock signal for tracking.
举例说明,所述第一非时钟源节点的时钟注入节点用于向所述第一非时钟源节点提供所述第一非时钟源节点所需跟踪的时钟信号。所述控制设备根据所述第一非时钟源节点与所述n个时钟源节点的连接关系,确定出所述第一非时钟源节点的时钟注入节点。For example, the clock injection node of the first non-clock source node is configured to provide the first non-clock source node with a clock signal required to be tracked by the first non-clock source node. The control device determines a clock injection node of the first non-clock source node according to a connection relationship between the first non-clock source node and the n clock source nodes.
举例说明,所述控制设备确定出的所述第一非时钟源节点的时钟注入节点至少满足所述网络不会出现时钟跟踪配置成环现象,即避免多个非时钟源节点之间相互跟踪以使得跟踪路径成环。此外,所述第一非时钟节点的时钟注入节点可以为在所述第一非时钟源节点邻接的节点中距离该邻接的节点对应的时钟源节点的跳数最小的节点。某个节点对应的时钟源节点为向所述某个节点提供基准时钟信号的时钟源节点,所述某个节点距离所述某个节点对应的时钟源节点的跳数为a,表示所述某个节点对应的时钟源节点输出的时钟信号经过a跳后到达所述某个节点。以图1所示的网络拓扑结构为例,若所述第一非时钟源节点为图1中的NE3,所述第一非时钟源节点邻接的节点包括图1中的NE1和NE4,BTIS1为向NE1提供基准时钟信号的时钟源节点, BITS2为向NE4提供基准时钟信号的时钟源节点,则NE1距离BITS1的跳数为1,NE1距离BITS2的跳数为2,NE4距离BITS2的跳数为2,则NE3的时钟注入节点可以是NE1。For example, the clock injection node of the first non-clock source node determined by the control device meets at least the clock tracking configuration loop phenomenon of the network, that is, the mutual tracking of multiple non-clock source nodes is avoided. Make the tracking path loop. In addition, the clock injection node of the first non-clock node may be a node with the smallest hop count of the clock source node corresponding to the adjacent node among the nodes adjacent to the first non-clock source node. The clock source node corresponding to a certain node is a clock source node that provides a reference clock signal to the certain node, and the number of hops of the clock source node corresponding to the certain node from the certain node is a, indicating the certain The clock signal output by the clock source node corresponding to each node reaches the certain node after a hop. Taking the network topology shown in FIG. 1 as an example, if the first non-clock source node is NE3 in FIG. 1, the nodes adjacent to the first non-clock source node include NE1 and NE4 in FIG. 1, and BTIS1 is a clock source node that provides a reference clock signal to NE1, BITS2 is the clock source node that provides the reference clock signal to NE4. The hop count of NE1 from BITS1 is 1, the hop count of NE1 from BITS2 is 2, and the hop count of NE4 from BITS2 is 2. The clock injection node of NE3 can be NE1. .
举例说明,若所述网络包括n个时钟源节点和m个非时钟源节点,所述控制设备可以根据所述n个时钟源节点与所述m个非时钟源节点的连接关系,以及所述m个非时钟源节点中各非时钟源节点的连接关系,确定出所述各非时钟源节点的时钟注入节点。For example, if the network includes n clock source nodes and m non-clock source nodes, the control device may be configured according to the connection relationship between the n clock source nodes and the m non-clock source nodes, and the The connection relationship of each non-clock source node among the m non-clock source nodes determines the clock injection node of each non-clock source node.
203:所述控制设备根据所述第一非时钟源节点的时钟注入节点,对所述第一非时钟源节点进行时钟跟踪配置。203: The control device performs clock tracing configuration on the first non-clock source node according to a clock injection node of the first non-clock source node.
举例说明,所述控制设备根据所述第一非时钟源节点的时钟注入节点,生成所述第一非时钟源节点的时钟跟踪配置参数。所述控制设备将所述时钟跟踪配置参数发送至所述第一非时钟源节点。For example, the control device generates a clock tracking configuration parameter of the first non-clock source node according to a clock injection node of the first non-clock source node. The control device sends the clock tracking configuration parameter to the first non-clock source node.
举例说明,若所述时钟跟踪配置参数包括端口的同步源优先级(英文:synchronization source priority,简称:SSP),则203可以包括:所述控制设备对所述第一非时钟源节点上的第一端口的SSP进行配置,所述第一端口用于连接所述第一非时钟源节点的时钟注入节点,以使得第一非时钟源节点跟踪所述第一非时钟源节点的时钟注入节点输出的时钟信号。例如,节点1上包括端口1,其中端口1用于连接节点1的时钟注入节点,因此所述控制设备可以对端口1的SSP进行配置,例如使得端口1接收的时钟信号的优先级最高,从而使得节点1跟踪端口1接收的时钟信号。其中,端口的SSP的数值与端口接收的时钟信号的优先级可以依据以下原则:若某一端口对应的SSP设置为0,表示不跟踪该端口接收的时钟信号,若某一端口对应的SSP不为0,SSP的数值越小,表示该端口接收的时钟信号的优先级越高。For example, if the clock tracking configuration parameter includes a synchronization source priority (SSP) of the port, the 203 may include: the control device is configured to the first non-clock source node. a port SSP is configured, the first port is configured to connect a clock injection node of the first non-clock source node, so that the first non-clock source node tracks a clock injection node output of the first non-clock source node Clock signal. For example,
本发明实施例提供的方法中,控制设备获取网络的拓扑结构,并根据所述网络的拓扑结构,确定所述第一非时钟源节点的时钟注入节点,即用于向所述第一非时钟源节点提供用于跟踪的时钟信号的节点。所述控制设备根据所述时钟注入节点,对所述第一非时钟源节点进行时钟跟踪配置,实现了对所述第一非时钟源节点的时钟同步。本发明实施例的所述控制设备可根据网络的拓扑结构,对非时钟源节点的时钟进行自动配置,无需对非时钟源节点进行手动配置,减少了工作量,有助于提高工作效率。In the method provided by the embodiment of the present invention, the control device acquires a topology of the network, and determines, according to the topology structure of the network, a clock injection node of the first non-clock source node, that is, for the first non-clock The source node provides a node for the clock signal for tracking. The control device performs clock tracking configuration on the first non-clock source node according to the clock injection node, and implements clock synchronization on the first non-clock source node. The control device of the embodiment of the present invention can automatically configure the clock of the non-clock source node according to the topology of the network, and does not need to manually configure the non-clock source node, thereby reducing the workload and improving the working efficiency.
本发明实施例中的控制设备在物理上可以为一个设备,也可以在多个设 备上实现所述控制设备的功能,即所述多个设备可以协调完成本发明实施例提供的方法包括的201、202和203。具体地,所述控制设备可以为服务器、软件定义网络(英文:Software Defined Network,简称:SDN)控制器或网络管理设备。The control device in the embodiment of the present invention may be physically one device or multiple devices. The functions of the control device are implemented, that is, the multiple devices can coordinate 201, 202, and 203 included in the method provided by the embodiment of the present invention. Specifically, the control device may be a server, a software defined network (English: Software Defined Network, SDN for short) controller, or a network management device.
如图3所示,所述控制设备可以具为SDN控制器,所述网络包括第一时钟源节点(图中未示出)、第二时钟源节点(图中未示出)、第一非时钟源节点和第二非时钟源节点。所述SDN控制器获取所述网络的拓扑结构,确定出所述第一非时钟源节点的时钟注入节点,并对所述第一非时钟源节点进行时钟跟踪配置。其中所述第一非时钟源节点上可以配置有时钟配置端口。所述第一非时钟源节点通过所述时钟配置端口向所述SDN控制器发送所述网络的拓扑结构。所述第一非时钟源节点还可通过所述时钟配置端口接收所述SDN控制器发送的时钟跟踪配置参数。如图4所示,所述控制设备可以包括服务器和网络管理设备。所述网络管理设备可获取所述网络的拓扑结构并向所述服务器发送所述拓扑结构。所述服务器确定出所述第一非时钟源节点的时钟注入节点,并由所述服务器通过所述网络管理设备对所述第一非时钟源节点进行时钟跟踪配置。需要说明的是,图3和图4仅为一种示例性的说明,实际上所述控制设备还可以有多种构成方式,并且所述控制设备可以通过任意一种通信方式与所述第一非时钟源节点进行通信连接,本发明实施例对此均不加以限定。As shown in FIG. 3, the control device may be an SDN controller, and the network includes a first clock source node (not shown), a second clock source node (not shown), and a first non- A clock source node and a second non-clock source node. The SDN controller acquires a topology of the network, determines a clock injection node of the first non-clock source node, and performs clock tracking configuration on the first non-clock source node. The clock configuration port may be configured on the first non-clock source node. The first non-clock source node sends the topology of the network to the SDN controller through the clock configuration port. The first non-clock source node may further receive a clock tracking configuration parameter sent by the SDN controller through the clock configuration port. As shown in FIG. 4, the control device may include a server and a network management device. The network management device may acquire a topology of the network and send the topology to the server. The server determines a clock injection node of the first non-clock source node, and performs clock tracing configuration on the first non-clock source node by the server through the network management device. It should be noted that FIG. 3 and FIG. 4 are only an exemplary description. In fact, the control device may also have multiple configurations, and the control device may be connected to the first by any communication method. The non-clock source node performs the communication connection, which is not limited in this embodiment of the present invention.
可选的,201之前还包括:所述控制设备获取所述第一非时钟源节点与所述n个时钟源节点的链接属性,根据所述链接属性对网络的拓扑结构进行筛选,则201中获取的所述网络的拓扑结构是根据所述链接属性进行筛选后获得的拓扑结构。其中所述链接属性可以包括:连接端口的属性,比如是光口还是电口,是否支持同步以太技术或者1588v2等等;或者,所述链接属性可以包括传输线的属性,比如是通过光纤连接还是电连接,传输线的传输速率等等。其中具体的筛选规则可以包括以下规则中的至少一种:保留连接端口为光口的链接、保留传输速率大于预设值的光纤链接,以及保留多端口使能时各个端口位于不同的物理板上的链接。Optionally, before 201, the control device acquires a link attribute of the first non-clock source node and the n clock source nodes, and filters a topology of the network according to the link attribute, where 201 The obtained topology of the network is a topology obtained by filtering according to the link attribute. The link attribute may include: an attribute of the connection port, such as an optical port or an electrical port, whether to support the synchronization Ethernet technology or 1588v2, etc.; or, the link attribute may include a property of the transmission line, such as whether it is connected through a fiber or a fiber. Connection, transfer rate of the transmission line, and so on. The specific screening rule may include at least one of the following rules: a link that retains the connection port as an optical port, a fiber link that retains a transmission rate greater than a preset value, and each port is located on a different physical board when the multi-port is enabled. the link to.
在本发明实施例的202中,所述控制设备根据所述拓扑结构,确定出所述第一非时钟源节点的时钟注入节点。其中,所述第一非时钟源节点在所述拓扑结构中处于不同位置时,所述时钟注入节点的确定方式也不同,下面结 合图8所示的结构,分别通过图5、图6和图7对时钟注入节点的确定方法进行说明。In the 202 of the embodiment of the present invention, the control device determines, according to the topology structure, a clock injection node of the first non-clock source node. Wherein, when the first non-clock source node is in different positions in the topology, the clock injection node is determined differently, and the following Referring to the structure shown in FIG. 8, the method of determining the clock injection node will be described with reference to FIGS. 5, 6, and 7.
(1)所述时钟注入节点的第一种确定方式(1) The first method of determining the clock injection node
如图5所示,图2对应的实施例中的202可以包括501和502。As shown in FIG. 5, 202 in the corresponding embodiment of FIG. 2 may include 501 and 502.
501:所述控制设备根据所述网络的拓扑结构,确定第一链路集中仅有一个与所述第一非时钟源节点邻接的节点,其中,所述第一链路集为所述第一非时钟源节点连接所述n个时钟源节点的链路集。501: The control device determines, according to the topology structure of the network, that only one node in the first link set is adjacent to the first non-clock source node, where the first link set is the first The non-clock source node connects the link sets of the n clock source nodes.
举例说明,若所述第一链路集只有一个与所述第一非时钟源节点邻接的节点,则所述第一非时钟源节点只能通过所述一个邻接的节点接收到时钟信号。For example, if the first link set has only one node adjacent to the first non-clock source node, the first non-clock source node can only receive a clock signal through the one adjacent node.
图8所示的网络包括3个时钟源节点和14个非时钟源节点。所述3个时钟源节点分别为BITS1、BTIS2和BITS3。所述14个非时钟源节点分别为NE1、NE2、NE3、NE4、NE5、NE6、NE7、NE8、NE9、NE10、NE11、NE12、NE13和NE14。若NE5为所述第一非时钟源节点,则所述第一链路集为NE5用于连接BITS1、BTIS2和BITS3的链路的集合,即所述第一链路集包括第一链路、第二链路、第三链路、第四链路、第五链路和第六链路。所述第一链路可表示为NE5-NE3-NE1-BITS1。所述第二链路可表示为NE5-NE3-NE1-NE2-BITS2。所述第三链路可表示为NE5-NE3-NE4-NE2-BITS2。所述第四链路可表示为NE5-NE3-NE4-NE2-NE1-BITS1。所述第五链路可表示为NE5-NE3-NE4-NE6-BITS3。所述第六链路可表示为NE5-NE3-NE1-NE2-NE4-NE6-BITS3。NE5只能通过NE3链接3个时钟源节点,即第一链路集仅包含NE5的邻接节点NE3。NE5仅通过NE3接收到时钟信号。The network shown in Figure 8 includes three clock source nodes and four non-clock source nodes. The three clock source nodes are BITS1, BTIS2, and BITS3, respectively. The 14 non-clock source nodes are NE1, NE2, NE3, NE4, NE5, NE6, NE7, NE8, NE9, NE10, NE11, NE12, NE13, and NE14, respectively. If the NE5 is the first non-clock source node, the first link set is a set of links used by the NE5 to connect the BITS1, the BTIS2, and the BITS3, that is, the first link set includes the first link, The second link, the third link, the fourth link, the fifth link, and the sixth link. The first link can be represented as NE5-NE3-NE1-BITS1. The second link can be represented as NE5-NE3-NE1-NE2-BITS2. The third link can be represented as NE5-NE3-NE4-NE2-BITS2. The fourth link can be represented as NE5-NE3-NE4-NE2-NE1-BITS1. The fifth link can be represented as NE5-NE3-NE4-NE6-BITS3. The sixth link can be represented as NE5-NE3-NE1-NE2-NE4-NE6-BITS3. NE5 can only link three clock source nodes through NE3, that is, the first link set only contains NE5 neighboring node NE3. NE5 receives the clock signal only through NE3.
502:所述控制设备将所述第一链路集中与所述第一非时钟源节点邻接的节点,作为所述第一非时钟源节点的时钟注入节点。502. The control device uses, as the clock injection node of the first non-clock source node, the node in the first link set that is adjacent to the first non-clock source node.
如图8所示的网络中,所述控制设备(图8中未示出)将NE3配置为NE5的时钟注入节点。In the network shown in FIG. 8, the control device (not shown in FIG. 8) configures NE3 as a clock injection node of NE5.
(2)所述时钟注入节点的第二种确定方式(2) The second determination method of the clock injection node
如图6所示,图2对应的实施例中的202可以包括601、602和603。 As shown in FIG. 6, 202 in the corresponding embodiment of FIG. 2 may include 601, 602, and 603.
601:所述控制设备根据所述网络的拓扑结构,确定第二链路集中包括至少两个与所述第一非时钟源节点邻接的节点,所述第二链路集为所述第一非时钟源节点连接所述n个时钟源节点的链路集。601: The control device determines, according to the topology structure of the network, that the second link set includes at least two nodes that are adjacent to the first non-clock source node, where the second link set is the first non- The clock source node is connected to the link set of the n clock source nodes.
举例说明,若所述第二链路集包括至少两个与所述第一非时钟源节点邻接的节点,则所述第一非时钟源节点通过该至少两个邻接的节点接收到时钟信号。For example, if the second link set includes at least two nodes adjacent to the first non-clock source node, the first non-clock source node receives a clock signal through the at least two adjacent nodes.
如图8所示,若NE1为所述第一非时钟源节点,则第二链路集包括为NE1用于连接BITS1、BITS2和BITS3的链路的集合,即所述第二链路集包括第七链路、第八链路、第九链路、第十链路和第十一链路。所述第七链路可表示为NE1-BITS1。所述第八链路可表示为NE1-NE2-BITS2。所述第九链路可表示为NE1-NE3-NE4-NE2-BITS2。所述第十链路可表示为NE1-NE2-NE4-NE6-BITS3。所述第十一链路可表示为NE1-NE3-NE4-NE6-BITS3。所述第七链路中,NE1邻接的节点为BITS1。NE1用于连接BITS2的链路集中,NE1的两个邻接的节点分别为NE2和NE3。NE1用于连接BITS3的链路集中,NE1的两个邻接的节点分别为NE2和NE3。所述第二链路集包括三个与NE1邻接的节点,所述与NE1邻接的节点分别为BITS1、NE2和NE3。NE1能够通过BITS1、NE2或者NE3接收到时钟信号。As shown in FIG. 8, if NE1 is the first non-clock source node, the second link set includes a set of links used by NE1 to connect BITS1, BITS2, and BITS3, that is, the second link set includes The seventh link, the eighth link, the ninth link, the tenth link, and the eleventh link. The seventh link can be represented as NE1-BITS1. The eighth link can be represented as NE1-NE2-BITS2. The ninth link can be represented as NE1-NE3-NE4-NE2-BITS2. The tenth link can be represented as NE1-NE2-NE4-NE6-BITS3. The eleventh link can be represented as NE1-NE3-NE4-NE6-BITS3. In the seventh link, the node adjacent to NE1 is BITS1. NE1 is used to connect to the link set of BITS2. The two adjacent nodes of NE1 are NE2 and NE3. NE1 is used to connect to the link set of BITS3. The two adjacent nodes of NE1 are NE2 and NE3. The second link set includes three nodes adjacent to NE1, and the nodes adjacent to NE1 are BITS1, NE2, and NE3, respectively. NE1 can receive the clock signal through BITS1, NE2 or NE3.
602:所述控制设备根据所述网络的拓扑结构,确定所述第一非时钟源节点位于的链状拓扑。602. The control device determines, according to a topology of the network, a chain topology in which the first non-clock source node is located.
举例说明,将所述n个时钟源节点作为树根,所述链状拓扑指的是与所述树根构成所述第一非时钟源节点的最小环的链状的拓扑结构。最小环指的本身为环状拓扑,并且除本身的环状拓扑外不包含其他环状拓扑的拓扑结构。在确定所述第一非时钟源节点的时钟注入节点之后,可以将所述链状拓扑加入所述树根。在图8中,若所述树根包括BITS1、BTS2和BITS,则NE1、NE2和所述树根构成最小环,NE1和NE2构成一个链状拓扑,若将NE1和NE2加入到所述树根中,则NE3、NE4和所述树根构成最小环,NE3和NE4构成一个链状拓扑。For example, the n clock source nodes are used as a tree root, and the chain topology refers to a chain topology that forms a minimum ring of the first non-clock source node with the tree root. The minimum ring finger itself is a ring topology and does not contain other ring topology topologies other than its own ring topology. After determining the clock injection node of the first non-clock source node, the chain topology may be added to the tree root. In FIG. 8, if the root of the tree includes BITS1, BTS2, and BITS, NE1, NE2 and the root of the tree constitute a minimum ring, and NE1 and NE2 form a chain topology, and if NE1 and NE2 are added to the root of the tree In the middle, NE3, NE4 and the root of the tree constitute a minimum ring, and NE3 and NE4 form a chain topology.
603:所述控制设备根据所述n个时钟源节点和所述链状拓扑的连接关系,确定所述第一非时钟源节点的时钟注入节点。603. The control device determines, according to a connection relationship between the n clock source nodes and the chain topology, a clock injection node of the first non-clock source node.
举例说明,所述第一非时钟源节点的时钟注入节点可以是从所述第一非时钟源节点在第一方向或第二方向上邻接的节点中选出的节点。所述第一方 向是沿着所述链状拓扑从所述链状拓扑的起始节点到终止节点的方向,第二方向与所述第一方向相反,即是沿着所述链状拓扑从所述链状拓扑的终止节点到起始节点的方向。所述链状拓扑的起始节点为表示所述链状拓扑的起始位置的节点,所述链状拓扑的终止节点为表示所述链状拓扑的终止位置的节点,如图8所示,以NE9、NE11、NE13、NE12和NE10构成的链状拓扑为例,NE10可以为NE9、NE11、NE13、NE12和NE10构成的链状拓扑的起始节点,NE9可以为NE9、NE11、NE13、NE12和NE10构成的链状拓扑的终止节点。第一方向为沿着所述链状拓扑从NE10到NE9的方向,第二方向为沿着所述链状拓扑从NE9到NE10的方向。NE11在第一方向上邻接的节点为NE9,NE11在第二方向上邻接的节点为NE13。所述控制设备可从NE9和NE13中选出一个节点作为NE11的时钟注入节点。For example, the clock injection node of the first non-clock source node may be a node selected from nodes adjacent to the first non-clock source node in the first direction or the second direction. The first party The direction is from the starting node of the chain topology to the terminating node along the chain topology, and the second direction is opposite to the first direction, that is, from the chain shape along the chain topology The direction in which the topology terminates the node to the starting node. The starting node of the chain topology is a node indicating a starting position of the chain topology, and the terminating node of the chain topology is a node indicating a termination position of the chain topology, as shown in FIG. Take the chain topology consisting of NE9, NE11, NE13, NE12, and NE10 as an example. NE10 can be the starting node of the chain topology composed of NE9, NE11, NE13, NE12, and NE10. NE9 can be NE9, NE11, NE13, NE12. The terminating node of the chain topology formed by NE10. The first direction is a direction from NE10 to NE9 along the chain topology, and the second direction is a direction from NE9 to NE10 along the chain topology. The node adjacent to NE11 in the first direction is NE9, and the node adjacent to NE11 in the second direction is NE13. The control device may select one of NE9 and NE13 as the clock injection node of NE11.
(3)所述时钟注入节点的第三种确定方式(3) The third determination method of the clock injection node
如图7所示,图2对应的实施例中的202可以包括701。As shown in FIG. 7, 202 in the corresponding embodiment of FIG. 2 may include 701.
701:若所述n个时钟源节点包括至少两个与所述第一非时钟源节点邻接的节点,则所述控制设备选取第四邻接节点作为所述第一非时钟源节点的时钟注入节点,所述第四邻接节点是所述n个时钟源节点中与所述第一非时钟源节点邻接的节点。701: If the n clock source nodes include at least two nodes adjacent to the first non-clock source node, the control device selects a fourth neighboring node as a clock injection node of the first non-clock source node. The fourth adjacent node is a node adjacent to the first non-clock source node among the n clock source nodes.
所述控制设备可以根据时钟源节点的优先级选取所述第四邻接节点,例如从所述n个时钟源节点中与所述第一非时钟源节点邻接的节点中,选取优先级最高的一个节点作为所述第四邻接节点。The control device may select the fourth neighboring node according to the priority of the clock source node, for example, select one of the n clock source nodes adjacent to the first non-clock source node, and select the highest priority one. The node acts as the fourth adjacent node.
可选的,所述控制设备可以将所述第四邻接节点作为所述第一非时钟源节点主用的时钟注入节点,并且选取第五邻接节点作为所述第一非时钟源节点备用的时钟注入节点。其中所述第五邻接节点也是所述n个时钟源节点中与所述第一非时钟源节点邻接的节点。若所述主用的时钟注入节点不可用,所述第一非时钟源节点跟踪所述备用的时钟注入节点输出的时钟信号。Optionally, the control device may inject the fourth neighboring node as a clock for the first non-clock source node, and select a fifth neighboring node as the clock of the first non-clock source node. Inject the node. The fifth adjacent node is also a node adjacent to the first non-clock source node among the n clock source nodes. If the primary clock injection node is not available, the first non-clock source node tracks the clock signal output by the alternate clock injection node.
所述网络包括n个时钟源节点和m个非时钟源节点,则本发明实施例在具体实现202时,可以从所述m个非时钟源节点中确定出属于第一类节点的节点,或者确定出属于第二类节点的节点。其中所述第一类节点指的是用于连接所述n个时钟源节点的链路集中只有一个邻接节点的节点。若所述第一非时钟源节点属于所述第一类节点,则所述控制设备将所述第一链路集中与所述第一非时钟源节点邻接的节点,作为所述第一非时钟源节点的时钟注入
节点。所述第二类节点指的是用于连接所述n个时钟源节点的链路集中包括至少两个邻接节点的节点,若所述第一非时钟源节点属于所述第二类节点,可以确定所述第一非时钟源节点位于的链状拓扑,根据所述n个时钟源节点和所述链状拓扑的连接关系,确定所述第一非时钟源节点的时钟注入节点。其中,若所述第一非时钟源节点属于所述第二类节点,在一种特定的情况下,例如所述n个时钟源节点包括至少两个与所述第一非时钟源节点邻接的节点,可以选取所述第四邻接节点作为所述第一非时钟源节点的时钟注入节点,所述第四邻接节点是所述n个时钟源节点中与所述第一非时钟源节点邻接的节点。The network includes n clock source nodes and m non-clock source nodes. When the
下面本发明实施例将具体说明如何确定501中所述第一链路集中仅有的一个与所述第一非时钟源节点邻接的节点。本发明实施例提供两种具体的确定方式,下面分别说明。The following embodiments of the present invention will specifically describe how to determine only one node in the first link set in 501 that is adjacent to the first non-clock source node. The embodiments of the present invention provide two specific determination manners, which are respectively described below.
在第一种方式中,图5对应的实施例的501可以包括801和802。In the first mode, 501 of the embodiment corresponding to FIG. 5 may include 801 and 802.
801:所述控制设备根据所述网络的拓扑结构,确定所述网络中仅有一个与所述第一非时钟源节点邻接的节点。801: The control device determines, according to the topology structure of the network, that only one node in the network is adjacent to the first non-clock source node.
举例说明,若所述网络包括n个时钟源节点和m个非时钟源节点,则所述控制设备可以根据所述网络的拓扑结构,确定出所述m个非时钟源节点中的第一子类节点。所述控制设备可选择所述第一子类节点中的任一个节点作为所述第一非时钟源节点。其中,所述第一子类节点在所述网络中仅有一个邻接的节点。For example, if the network includes n clock source nodes and m non-clock source nodes, the control device may determine the first one of the m non-clock source nodes according to the topology of the network. Class node. The control device may select any one of the first sub-class nodes as the first non-clock source node. The first sub-class node has only one contiguous node in the network.
所述网络的拓扑结构通过拓扑信息表示,所述拓扑信息包括所述m个非时钟源中各非时钟源节点的标识以及所述各非时钟源中邻接的节点的标识。表1示出了图8中的NE5、NE7、NE13和NE14对应的拓扑信息。The topology of the network is represented by topology information, where the topology information includes an identifier of each of the m non-clock source sources and an identifier of an adjacent node among the non-clock sources. Table 1 shows the topology information corresponding to NE5, NE7, NE13, and NE14 in Fig. 8.
表1Table 1
所述控制设备可以根据表1中任意一个节点的邻接的节点包括的节点个
数,确定出NE7只有一个邻接的节点,即NE5。所述控制设备还可根据表1确定NE14只有一个邻接的节点,即NE13。所述控制设备可获知NE7和NE14属于所述第一子类节点。The control device may be based on nodes included in adjacent nodes of any one of the nodes in Table 1.
The number determines that NE7 has only one adjacent node, NE5. The control device may also determine according to Table 1 that the
802:所述控制设备将所述网络中与所述第一非时钟源节点邻接的节点,作为所述第一链路集中与所述第一非时钟源节点邻接的节点。802. The control device uses a node in the network that is adjacent to the first non-clock source node as a node that is adjacent to the first non-clock source node in the first link set.
由于所述第一非时钟源节点只有一个邻接的节点,因此,将所述第一非时钟源节点唯一的一个邻接的节点作为所述第一链路集中与所述第一非时钟源节点邻接的节点,从而作为所述第一非时钟源节点的时钟注入节点。Because the first non-clock source node has only one contiguous node, the contiguous node that is unique to the first non-clock source node is adjacent to the first non-clock source node as the first link set. a node, thereby injecting a node as a clock of the first non-clock source node.
例如,NE7和NE14属于所述第一子类节点,若NE7为所述第一非时钟源节点,则所述控制设备可将NE7邻接的NE5作为NE7的时钟注入节点。若NE14为所述第一非时钟源节点,则所述控制设备可将NE14邻接的NE13作为NE14的时钟注入节点。For example, NE7 and NE14 belong to the first sub-class node. If NE7 is the first non-clock source node, the control device may inject NE5 adjacent to NE7 as a clock of NE7 into the node. If the
本发明实施例在确定出所述第一子类节点后,可以在所述网络中删除所述第一子类节点以进行网络拓扑的更新,根据更新后的所述网络的拓扑结构确定出新的所述第一子类节点。具体地,本实施例还可以包括:所述控制设备从所述网络的拓扑结构中删除所述第一非时钟源节点。例如,所述控制设备可根据表1确定出NE7只有一个邻接的节点,可以将NE7从所述网络的拓扑中删除,得到如图9所示的更新后的所述网络的拓扑结构。所述控制设备根据图9所示的更新后的网络的拓扑结构,可获得表2所示的拓扑信息。或者所述控制设备可对表1所示的拓扑信息进行更新,获得表2所示的拓扑信息。图2所示的拓扑信息与图9所示的网络的拓扑结构对应。After determining the first sub-class node, the first sub-class node may be deleted in the network to update the network topology, and the new topology is determined according to the updated topology of the network. The first subclass node. Specifically, the embodiment may further include: the control device deleting the first non-clock source node from a topology of the network. For example, the control device may determine that the NE7 has only one contiguous node according to Table 1, and may delete the NE7 from the topology of the network, and obtain the updated topology of the network as shown in FIG. 9. The control device can obtain the topology information shown in Table 2 according to the topology structure of the updated network shown in FIG. Alternatively, the control device may update the topology information shown in Table 1 to obtain the topology information shown in Table 2. The topology information shown in FIG. 2 corresponds to the topology of the network shown in FIG.
表2Table 2
若所述控制设备根据表2确定出所述网络中仅有一个与第一非时钟源节点邻接的节点,根据801和802对所述第一非时钟源节点的时钟注入节点进行设置。例如若所述NE5或NE14为所述控制设备根据表2确定的第一非时钟源节点,则所述控制设备可将NE3设置为NE5的时钟注入节点,所述控制 设备可将NE13设置为NE14的时钟注入节点。If the control device determines, according to Table 2, that there is only one node adjacent to the first non-clock source node in the network, set the clock injection node of the first non-clock source node according to 801 and 802. For example, if the NE5 or NE14 is the first non-clock source node determined by the control device according to Table 2, the control device may set NE3 as a clock injection node of NE5, the control The device can set NE13 as the clock injection node of NE14.
本实施例还可以包括:若确定出更新后的所述拓扑结构不包括所述第一子类节点,确定更新后的所述拓扑结构中的所述第二类节点。也就是说,若将所述网络中所述第一子类节点都删除后,根据剩余的拓扑结构确定所述第二类节点。The embodiment may further include: if it is determined that the updated topology does not include the first sub-class node, determining the second-type node in the updated topology. That is to say, if the first sub-class node in the network is deleted, the second-type node is determined according to the remaining topology.
本实施例中,若所述第一非时钟源节点属于所述第一子类节点,还可以在所述第一非时钟源节点的时钟注入节点距离第一时钟源节点的跳数较多时进行提示,所述第一时钟源节点是向所述第一非时钟源节点提供基准时钟信号的时钟源节点。具体地,本实施例还可以包括:确定出所述第一非时钟源节点的时钟注入节点距离所述第一时钟源节点的跳数,并且若该跳数大于预设阈值时,生成提示信息。在具体实现时,可以确定出所述网络中的第一子类节点,将确定出的所述第一子类节点对应的变量R设置为-1,之后删除所述第一子类节点以更新所述网络的拓扑结构,根据更新后的所述网络的拓扑结构,确定出所述网络中新的所述第一子类节点,将新的所述第一子类节点对应的变量R设置为R-1。不断循环上述过程,直至所述网络中不再存在所述第一子类节点,根据所述第一子类节点对应的变量R计算所述第一子类节点距离所述第一子类节点对应的时钟源节点的跳数,第一子类节点中的任一个节点对应的时钟源节点是向所述任一个节点提供基准时钟信号的时钟源节点。其中,若对应的变量R最小的所述第一子类节点中的任一个节点为第一节点,所述第一节点距离所述第一节点对应的时钟源节点的跳数为m+1,m为所述第一节点对应的时钟源节点与所述第节点之间的链状拓扑的数量,之后变量R每减1,距离所述第一子类节点对应的时钟源节点的跳数则加1。In this embodiment, if the first non-clock source node belongs to the first sub-class node, the clock injection node of the first non-clock source node may be more than the hop count of the first clock source node. The first clock source node is a clock source node that provides a reference clock signal to the first non-clock source node. Specifically, the embodiment may further include: determining a hop count of the clock injection node of the first non-clock source node from the first clock source node, and generating a prompt message if the hop count is greater than a preset threshold . In a specific implementation, the first sub-class node in the network may be determined, and the determined variable R corresponding to the first sub-class node is set to -1, and then the first sub-class node is deleted to be updated. The topology of the network determines a new first sub-class node in the network according to the updated topology of the network, and sets a variable R corresponding to the new first sub-class node to R-1. Continuously looping the above process until the first sub-class node no longer exists in the network, and calculating, according to the variable R corresponding to the first sub-class node, the first sub-class node corresponding to the first sub-class node The number of hops of the clock source node, and the clock source node corresponding to any one of the first sub-class nodes is a clock source node that provides a reference clock signal to any one of the nodes. Wherein, if any one of the first sub-category nodes with the corresponding variable R is the first node, the hop count of the first node from the clock source node corresponding to the first node is m+1, m is the number of chain topologies between the clock source node corresponding to the first node and the first node, and then the variable R is decremented by one, and the number of hops of the clock source node corresponding to the first subclass node is
在第二种方式中,本发明实施例的501具体可以包括901和902,还包括903或者904。In the second mode, 501 of the embodiment of the present invention may specifically include 901 and 902, and further includes 903 or 904.
901:所述控制设备将所述n个时钟源节点作为树根。901: The control device uses the n clock source nodes as a root.
如图8所示的网络,所述控制设备可将BITS1、BITS2和BITS3作为所述树根。As shown in the network of FIG. 8, the control device may use BITS1, BITS2, and BITS3 as the root of the tree.
902:根据所述树根和所述网络的拓扑结构,获得最短路径树(英文:Shortest Path Tree,简称:SPT)。902: Obtain a shortest path tree (English: Shortest Path Tree, SPT for short) according to the tree root and the topology of the network.
在本发明实施例中,所述最短路径树中从树根到一个树叶的路径是从所 述树根到该树叶的各个通路路径中跳数最短的路径。树根指的是所述最短路径树中没有父节点的节点,树叶指的是所述最短路径树中除所述树根之外的节点。In the embodiment of the present invention, the path from the root to the leaf in the shortest path tree is from the The path from the root to the shortest hop in each path of the leaf. A tree root refers to a node in the shortest path tree that has no parent node, and a leaf refers to a node other than the tree root in the shortest path tree.
其中,本实施例中将所述n个时钟源节点作为所述树根。可以通过广度优先搜索算法等方式生成所述最短路径树。例如对于图8中所示的拓扑结构,生成如图10所示的最短路径树。在图10中,所述最短路径树由实线构成,NE之间的虚线表示NE之间具有邻接关系。The n clock source nodes are used as the root of the tree in this embodiment. The shortest path tree may be generated by a breadth-first search algorithm or the like. For example, for the topology shown in FIG. 8, the shortest path tree as shown in FIG. 10 is generated. In FIG. 10, the shortest path tree is composed of solid lines, and the broken line between NEs indicates that there is an adjacency relationship between NEs.
由于在实际网络中通常包括大量的基站,而基站属于所述第一子类节点,因此在901之前,本实施例还可以删除所述拓扑结构中的所述第一子类节点,902中生成删除了所述第一子类节点的拓扑结构的最短路径树,从而简化了所述网络拓扑,减少生成所述最短路径树时的工作量。Since the actual network includes a large number of base stations, and the base station belongs to the first sub-class node, before the 901, the first sub-class node in the topology may be deleted in the embodiment, and the eNB generates the 902. The shortest path tree of the topology of the first sub-class node is deleted, thereby simplifying the network topology and reducing the workload when generating the shortest path tree.
903:若所述树根的子节点仅包括所述第一非时钟源节点,则所述控制设备将所述第一非时钟源的父节点作为所述第一链路集中与所述第一非时钟源节点邻接的节点。903: If the child node of the root of the tree includes only the first non-clock source node, the control device uses the parent node of the first non-clock source as the first link set and the first node. A node that is not adjacent to the clock source node.
若图10所示的网络中,所述树根包括BITS1、BITS2、BITS、NE1、NE2、NE3、NE4、NE5、NE6和NE7,则所述树根的子节点仅包括NE8。若所述第一非时钟源节点为NE8,则所述控制设备将NE8的父节点NE6作为所述第一链路集中与所述第一非时钟源节点邻接的节点,即NE6为NE8的时钟注入节点。In the network shown in FIG. 10, the tree root includes BITS1, BITS2, BITS, NE1, NE2, NE3, NE4, NE5, NE6, and NE7, and the child nodes of the tree root only include NE8. If the first non-clock source node is NE8, the control device uses the parent node NE6 of the NE8 as the node adjacent to the first non-clock source node in the first link set, that is, the clock of NE6 is NE8. Inject the node.
举例说明,某个节点的子节点指的是该某个节点的下一级节点,该某个节点的下一级节点为该某个节点邻接的节点,并且该某个节点的下一级节点距离所述树根的跳数为该某个节点距离所述树根的跳数加1的和。某个节点的父节点指的是该某个节点的上一级节点,该某个节点的上一级节点为该某个节点邻接的节点,并且该某个节点的上一级节点距离所述树根的跳数为该某个节点距离所述树根的跳数减1的差。其中,子节点和父节点的定义与现有的定义相同,这里不再赘述。For example, a child node of a node refers to a node of the next level of the node, and a node of the next level of the node is a node adjacent to the node, and a node of the next node of the node The hop count from the root of the tree is the sum of the hop count of the certain node from the root of the tree plus one. The parent node of a certain node refers to the upper-level node of the certain node, the upper-level node of the certain node is the node adjacent to the certain node, and the upper-level node of the certain node is far from the node The hop count of the root of the tree is the difference between the hop count of the certain node and the root of the tree minus one. The definitions of the child nodes and the parent nodes are the same as the existing definitions, and are not described here.
904:若所述树根的子节点包括所述第一非时钟源节点和第一子节点,即所述第一非时钟源节点和所述第一子节点均是所述树根的子节点,则所述控制设备确定第一子枝和第二子枝不包含满足第一条件的节点后,将所述第一非时钟源节点的父节点作为所述第一链路集中与所述第一非时钟源节点邻接的节点。 904: If the child node of the tree root includes the first non-clock source node and the first child node, that is, the first non-clock source node and the first child node are both child nodes of the tree root After the control device determines that the first sub-branch and the second sub-branch do not include the node that meets the first condition, the parent node of the first non-clock source node is used as the first link set and the first A node that is not adjacent to the clock source node.
所述第一子节点为非时钟源节点,所述最短路径树包括所述第一子枝和所述第二子枝,所述第一子枝包括所述第一非时钟源节点,所述第二子枝包括所述第一子节点。其中,所述第一子枝可以为从所述第一非时钟源节点逐级遍历子节点,直至到达所述最短路径树的第一末端节点的树枝,即从所述第一非时钟源开始,逐级沿着所述第一非时钟源节点的子节点、所述第一非时钟源节点的子节点的子节点、直至到达没有子节点的所述第一末端节点的树枝,其中所述第一末端节点为没有子节点的节点。类似的,所述第二子枝可以为从所述第一子节点逐级遍历子节点,直至到达所述最短路径树的第二末端节点的树枝,其中所述第二末端节点为没有子节点的节点。The first child node is a non-clock source node, the shortest path tree includes the first child branch and the second child branch, and the first child branch includes the first non-clock source node, The second sub-branch includes the first sub-node. The first sub-branch may be a sub-level traversing the sub-node from the first non-clock source node until reaching a branch of the first end node of the shortest path tree, that is, starting from the first non-clock source Stepping along a child node of the first non-clock source node, a child node of the child node of the first non-clock source node, and reaching a branch of the first end node having no child node, wherein The first end node is a node with no child nodes. Similarly, the second sub-branch may be a branch that traverses the child node step by step from the first child node until reaching a second end node of the shortest path tree, where the second end node has no child nodes Node.
若图10所示的网络中,所述树根包括BITS1、BITS2、BITS3、NE1、NE2、NE3、NE4、NE5和NE6,则所述树根的子节点包括NE8和NE7。若所述第一非时钟源节点为NE8,第一子节点为NE7,则所述第一子枝为从NE8逐级遍历子节点的树枝,具体遍历过程包括:得到NE8的子节点为NE9和NE10,NE9的子节点为NE11,NE10的子节点为NE12,NE12的子节点为NE13,NE13的子节点为NE14,则所述第一子枝包括:NE8、NE9、NE10、NE11、NE12、NE13和NE14。所述第二子枝为从NE7逐级遍历子节点的树枝,所述NE7没有子节点,则所述第二子枝包括NE7。In the network shown in FIG. 10, the tree root includes BITS1, BITS2, BITS3, NE1, NE2, NE3, NE4, NE5, and NE6, and the child nodes of the tree root include NE8 and NE7. If the first non-clock source node is NE8 and the first child node is NE7, the first sub-branch is a branch that traverses the child node step by step from the NE8. The specific traversal process includes: obtaining the child node of the NE8 as NE9 and The child nodes of NE10 and NE9 are NE11, the child nodes of NE10 are NE12, the child nodes of NE12 are NE13, and the child nodes of NE13 are NE14. The first sub-branch includes NE8, NE9, NE10, NE11, NE12, and NE13. And NE14. The second sub-branch is a branch that traverses the child node step by step from the NE7, and the NE7 has no child node, and the second sub-branch includes the NE7.
所述控制设备可以确定所述第一子枝和所述第二子枝上是否包含满足所述第一条件的节点,所述第一条件为邻接的两个节点分别属于所述第一子枝和所述第二子枝,若确定出不包含满足所述第一条件的节点,则说明所述第一子枝和所述第二子枝不相连,进一步说明所述第一非时钟源节点属于所述第一类节点,因此将所述第一非时钟源节点的父节点作为所述第一链路集中与所述第一非时钟源节点邻接的节点,从而作为所述第一非时钟源节点的时钟注入节点。例如在图10中,将NE8的父节点NE6作为所述第一链路集中与NE8邻接的节点,从而将NE6作为NE8的时钟注入节点。The control device may determine whether the first sub-branch and the second sub-branch include a node that satisfies the first condition, where the first condition is that two adjacent nodes belong to the first sub-branch And the second sub-branch, if it is determined that the node that meets the first condition is not included, the first sub-branch and the second sub-branch are not connected, and the first non-clock source node is further illustrated. Having the first type of node, the parent node of the first non-clock source node is used as the node adjacent to the first non-clock source node in the first link set, thereby serving as the first non-clock The clock of the source node is injected into the node. For example, in FIG. 10, the parent node NE6 of NE8 is used as a node adjacent to NE8 in the first link set, thereby injecting NE6 as a clock of NE8 into the node.
本发明实施例确定出所述第一非时钟源节点的时钟注入节点后,可以将所述第一非时钟源节点加入到所述树根中以对所述树根进行更新,因此902中可以根据更新后的所述树根重新生成所述最短路径树,从而确定出新的所述第一非时钟源节点的时钟注入节点。具体地,本实施例还可以包括:所述控制设备将所述第一非时钟源节点添加到所述树根中。After determining the clock injection node of the first non-clock source node, the first non-clock source node may be added to the tree root to update the tree root, so the 902 may Regenerating the shortest path tree according to the updated tree root, thereby determining a new clock injection node of the first non-clock source node. Specifically, the embodiment may further include: the control device adding the first non-clock source node to the tree root.
下面说明本发明实施例如何确定出602中的所述第一非时钟源节点位于 的链状拓扑。本发明实施例提供两种具体的确定方式,下面分别说明。The following describes how the first non-clock source node in the 602 is located in the embodiment of the present invention. Chain topology. The embodiments of the present invention provide two specific determination manners, which are respectively described below.
第一种方式,本发明实施例的所述网络还包括与所述第一非时钟源节点邻接的第二非时钟源节点,602具体可以包括1001、1002和1003。In a first mode, the network in the embodiment of the present invention further includes a second non-clock source node adjacent to the first non-clock source node, and 602 may specifically include 1001, 1002, and 1003.
1001:所述控制设备将所述n个时钟源节点作为树根。1001: The control device uses the n clock source nodes as a root.
1001与901类似,相关之处请参见对901的描述,这里不再赘述。1001 is similar to 901. For related information, please refer to the description of 901, and details are not described herein.
1002:所述控制设备根据所述树根和所述网络的拓扑结构,获得最短路径树。1002: The control device obtains a shortest path tree according to the tree root and the topology of the network.
所述最短路径树包括第三子枝和第四子枝,所述第三子枝为从第二子节点逐级遍历子节点到达所述第一非时钟源节点的树枝,所述第四子枝为从第三子节点逐级遍历子节点到达所述第二非时钟源节点的树枝,所述第二子节点和所述第三子节点是所述树根的子节点。The shortest path tree includes a third sub-branch and a fourth sub-branch, and the third sub-branch is a branch that traverses the sub-node from the second sub-node to the first non-clock source node step by step, the fourth sub-branch The branch is a branch that traverses the child node step by step from the third child node to the second non-clock source node, and the second child node and the third child node are child nodes of the tree root.
若图10所示的网络中,所述树根包括BITS1、BITS2、BITS3、NE1、NE2、NE3、NE4、NE5、NE6、NE7和NE8。则所述树根的子节点包括NE9和NE10。若所述第一非时钟源节点为NE11,所述第二非时钟源节点为NE13,则所述第三子枝为从NE9逐渐遍历子节点到达NE11的子枝,具体遍历过程包括:得到NE9的子节点为NE11,则所述第三子枝包括NE9和NE11,所述第四子枝为从NE10逐级遍历达到NE13的子枝,具体遍历过程包括:得到NE10的子节点为NE12,得到NE12的子节点为NE13,则所述第四子枝包括NE10、NE12和NE13。In the network shown in FIG. 10, the root of the tree includes BITS1, BITS2, BITS3, NE1, NE2, NE3, NE4, NE5, NE6, NE7, and NE8. Then the child nodes of the tree root include NE9 and NE10. If the first non-clock source node is NE11 and the second non-clock source node is NE13, the third sub-branch is a sub-branch that gradually traverses the child node from NE9 to reach NE11, and the specific traversal process includes: obtaining NE9 The child node is NE11, and the third child branch includes the NE9 and the NE11, and the fourth child branch is a child branch that traverses the NE13 step by step from the NE10. The specific traversal process includes: obtaining the child node of the NE10 as the NE12, The child node of NE12 is NE13, and the fourth sub-branch includes NE10, NE12, and NE13.
1003:所述控制设备确定仅有所述第一非时钟源节点和所述第二非时钟源节点满足第二条件,获得第一链状拓扑,所述第一链状拓扑包括所述第三子枝、所述第四子枝和第一链路,所述第一链路为所述第一非时钟源节点和所述第二非时钟源节点之间的链路。1003: The control device determines that only the first non-clock source node and the second non-clock source node satisfy a second condition, and obtains a first chain topology, where the first chain topology includes the third a child branch, the fourth child branch, and a first link, where the first link is a link between the first non-clock source node and the second non-clock source node.
所述控制设备可以确定所述第三子枝和所述第四子枝上是否具有满足所述第二条件的节点,所述第二条件为邻接的两个节点分别属于所述第三子枝和所述第四子枝,若确定出仅有所述第一非时钟源节点和所述第二非时钟源节点满足所述第二条件,则说明所述第三子枝和所述第四子枝通过所述第一非时钟源节点和所述第二非时钟源节点相连,并且所述第一链状拓扑和所述树根构成最小环,获得所述第一链状拓扑。例如在图10中,所述控制设备确定出所述第三子枝和所述第四子枝上仅有NE11和NE13满足所述第二条件 时,则获得所述第一链状拓扑,所述第一链状拓扑包括依次经过NE9、NE11、NE13、NE12和NE10的链路。The control device may determine whether the third sub-branch and the fourth sub-branch have nodes that meet the second condition, where the second condition is that two adjacent nodes belong to the third sub-branch And the fourth sub-branch, if it is determined that only the first non-clock source node and the second non-clock source node satisfy the second condition, the third sub-branch and the fourth The child branch is connected to the second non-clock source node by the first non-clock source node, and the first chain topology and the tree root constitute a minimum ring, and the first chain topology is obtained. For example, in FIG. 10, the control device determines that only NE11 and NE13 on the third sub-branch and the fourth sub-branch meet the second condition. The first chain topology is obtained, and the first chain topology includes links passing through NE9, NE11, NE13, NE12, and NE10 in sequence.
本发明实施例在获得所述第一链状拓扑之后,可以对所述第一链状拓扑上的每一个节点都进行时钟跟踪配置,并将所述第一链状拓扑加入到所述树根中以对所述树根进行更新,1002中可以根据更新后的所述树根重新生成所述最短路径树,从而确定出新的所述第一非时钟源节点的时钟注入节点。具体地,本实施例还可以包括:所述控制设备将所述第一链状拓扑添加到所述树根中。After obtaining the first chain topology, the embodiment of the present invention may perform clock tracking configuration on each node in the first chain topology, and add the first chain topology to the tree root. The tree root is updated, and the shortest path tree may be regenerated according to the updated tree root to determine a new clock injection node of the first non-clock source node. Specifically, the embodiment may further include: the control device adds the first chain topology to the tree root.
第二种方式,本发明实施例的所述网络还包括第三非时钟源节点和第四非时钟源节点,所述第三非时钟源节点与所述第四非时钟源节点邻接,602具体可以包括1101、1102和1103。In a second mode, the network of the embodiment of the present invention further includes a third non-clock source node and a fourth non-clock source node, where the third non-clock source node is adjacent to the fourth non-clock source node, and 602 is specific. It may include 1101, 1102, and 1103.
1101:所述控制设备将所述n个时钟源节点作为树根。1101: The control device uses the n clock source nodes as a root.
1101与901类似,相关之处请参见对901的描述,这里不再赘述。1101 is similar to 901. For related information, refer to the description of 901, and details are not described here.
1102:所述控制设备根据所述树根和所述网络的拓扑结构,获得最短路径树。1102: The control device obtains a shortest path tree according to the tree root and a topology of the network.
所述最短路径树包括第五子枝和第六子枝,所述第五子枝为从第四子节点逐级遍历子节点到达所述第三非时钟源节点的树枝,所述第五子枝包括所述第一非时钟源节点,所述第六子枝为从第五子节点逐级遍历子节点到达所述第四非时钟源节点的树枝,所述第四子节点和所述第五子节点是所述树根的子节点。The shortest path tree includes a fifth sub-branch and a sixth sub-branch, and the fifth sub-branch is a branch that traverses the sub-node from the fourth sub-node to the third non-clock source node step by step, the fifth sub-branch The branch includes the first non-clock source node, and the sixth sub-branch is a branch that traverses the child node from the fifth child node to the fourth non-clock source node step by step, the fourth child node and the first The five child nodes are child nodes of the tree root.
若图10所示的网络中,所述树根包括BITS1、BITS2、BITS3、NE1、NE2、NE3、NE4、NE5、NE6、NE7和NE8。则所述树根的子节点包括NE9和NE10。若所述第一非时钟源节点为NE9,所述第三非时钟源节点为NE11,所述第四非时钟源节点为NE13,则所述第五子枝为从NE9逐渐遍历子节点到达NE11的子枝,具体遍历过程包括:得到NE9的子节点为NE11,则所述第五子枝包括NE9和NE11,所述第六子枝为从NE10逐级遍历达到NE13的子枝,具体遍历过程包括:得到NE10的子节点为NE12,得到NE12的子节点为NE13,则所述第六子枝包括NE10、NE12和NE13。In the network shown in FIG. 10, the root of the tree includes BITS1, BITS2, BITS3, NE1, NE2, NE3, NE4, NE5, NE6, NE7, and NE8. Then the child nodes of the tree root include NE9 and NE10. If the first non-clock source node is NE9, the third non-clock source node is NE11, and the fourth non-clock source node is NE13, the fifth sub-branch is gradually traversing the child node from NE9 to reach NE11. The traversal process includes: obtaining the child node of NE9 as NE11, and the fifth sub-branch includes NE9 and NE11, and the sixth sub-branch is a sub-branch that is traversed from NE10 to NE13 step by step, and the specific traversal process The method includes: obtaining a child node of NE10 as NE12, and obtaining a child node of NE12 as NE13, and the sixth sub-branch includes NE10, NE12, and NE13.
1103:所述控制设备确定仅有所述第三非时钟源节点和所述第四非时钟源节点满足第三条件,获得第二链状拓扑,所述第二链状拓扑包括所述第五 子枝、所述第六子枝和第二链路,所述第二链路为所述第三非时钟源节点和所述第四非时钟源节点之间的链路。1103: The control device determines that only the third non-clock source node and the fourth non-clock source node satisfy a third condition, obtain a second chain topology, and the second chain topology includes the fifth a child branch, the sixth child branch, and a second link, where the second link is a link between the third non-clock source node and the fourth non-clock source node.
所述控制设备可以确定所述第五子枝和所述第六子枝上是否具有满足所述第三条件的节点,所述第三条件为邻接的两个节点分别属于所述第五子枝和所述第六子枝,若确定出仅有所述第三非时钟源节点和所述第四非时钟源节点满足所述第三条件,则说明所述第五子枝和所述第六子枝通过所述第三非时钟源节点和所述第四非时钟源节点相连,并且所述第二链状拓扑和所述树根构成最小环,则获得所述第二链状拓扑。例如在图10中,所述控制设备确定出所述第五子枝和所述第六子枝上仅有NE11和NE13满足所述第三条件时,获得所述第二链状拓扑,所述第二链状拓扑包括依次经过NE9、NE11、NE13、NE12和NE10的链路。The control device may determine whether the fifth sub-branch and the sixth sub-branch have nodes that meet the third condition, where the third condition is that two adjacent nodes belong to the fifth sub-branch And the sixth sub-branch, if it is determined that only the third non-clock source node and the fourth non-clock source node satisfy the third condition, the fifth sub-branch and the sixth The second chain topology is obtained by the child branch being connected to the fourth non-clock source node and the second chain topology and the tree root forming a minimum ring. For example, in FIG. 10, when the control device determines that only the NE11 and the NE13 satisfy the third condition on the fifth sub-branch and the sixth sub-branch, the second chain topology is obtained. The second chain topology includes links that pass through NE9, NE11, NE13, NE12, and NE10 in sequence.
本发明实施例在获得所述第二链状拓扑之后,可以对所述第二链状拓扑上的每一个节点都进行时钟跟踪配置,并将所述第二链状拓扑加入到所述树根中以对所述树根进行更新,1102中可以根据更新后的所述树根重新生成所述最短路径树,从而确定出新的所述第一非时钟源节点的时钟注入节点。具体地,本实施例还可以包括:所述控制设备将所述第二链状拓扑添加到所述树根中。After obtaining the second chain topology, the embodiment of the present invention may perform clock tracing configuration on each node in the second chain topology, and add the second chain topology to the tree root. The tree root is updated, and the shortest path tree may be regenerated according to the updated tree root in 1102, thereby determining a new clock injection node of the first non-clock source node. Specifically, the embodiment may further include: the control device adding the second chain topology to the tree root.
在本发明实施例中,若所述网络包括n个时钟源节点和m个非时钟源节点,所述控制设备可以根据生成最短路径树的方式,获得所述m个非时钟源节点中各非时钟源节点的时钟注入节点。下面具体说明。In the embodiment of the present invention, if the network includes n clock source nodes and m non-clock source nodes, the control device may obtain each of the m non-clock source nodes according to a method for generating a shortest path tree. The clock source node's clock is injected into the node. The details are described below.
本发明实施例的202可以包括1201至1207。202 of an embodiment of the present invention may include 1201 to 1207.
1201:所述控制设备将所述n个时钟源节点作为树根,根据所述树根和所述网络的拓扑结构,获得最短路径树。1201: The control device uses the n clock source nodes as a root, and obtains a shortest path tree according to the tree root and the topology of the network.
1202:所述控制设备从所述树根的各个子节点开始,逐级遍历子节点,将所述树根的任一子节点和从该子节点开始逐级遍历的子节点作为同一子枝。1202: The control device starts from each child node of the tree root, traverses the child node step by step, and uses any child node of the tree root and a child node traversed step by step from the child node as the same child branch.
例如在图10中,NE1、NE2和NE6是所述树根的各个子节点,所述控制设备从NE1、NE2和NE6开始,逐级遍历子节点,将NE1和从NE1开始逐级遍历的子节点,即NE1、NE3、NE5和NE7作为同一子枝,例如子枝01,将从NE2和从NE2开始逐级遍历的子节点,即NE2和NE4作为同一子枝, 例如子枝02,并且将从NE6和从NE6开始逐级遍历的子节点,即NE8、NE9、NE10、NE11、NE12、NE13和NE14作为同一子枝,例如子枝03。For example, in FIG. 10, NE1, NE2, and NE6 are the respective child nodes of the tree root, and the control device starts from NE1, NE2, and NE6, traverses the child nodes step by step, and traverses NE1 and the child traversing stepwise from NE1. The nodes, that is, NE1, NE3, NE5, and NE7 are the same sub-branch, for example, the sub-branch 01, and the child nodes that are traversed step by step from NE2 and NE2, that is, NE2 and NE4 are the same sub-branch. For example, the child branch 02, and the child nodes traversing step by step from NE6 and from NE6, that is, NE8, NE9, NE10, NE11, NE12, NE13, and NE14 are the same child branch, for example, child branch 03.
1203:若确定出所述最短路径树中存在满足第四条件的至少一对节点,从满足所述第四条件的至少一对节点中,将对应的第一参数最小的一对节点作为第一节点和第二节点,所述第四条件包括:邻接的一对节点分别属于不同的两根子枝,所述第一参数包括:一对节点分别距离所述树根的最少跳数之和。1203: If it is determined that at least one pair of nodes satisfying the fourth condition exists in the shortest path tree, and selecting, from the at least one pair of nodes that meet the fourth condition, a pair of nodes with the smallest first parameter as the first node The node and the second node, the fourth condition includes: the adjacent pair of nodes respectively belong to different two sub-branches, and the first parameter comprises: a sum of a minimum number of hops of the pair of nodes respectively from the root of the tree.
在本发明实施例中,实际上是根据所述n个时钟源节点与所述链状拓扑的连接关系,确定出时钟注入节点。其中需要说明的是,将所述树根看作是一个节点,所述链状拓扑和所述树根能够构成环状拓扑,而1203实际上就是从所述环状拓扑中确定出最小环,并且进一步根据所述最小环确定出时钟注入节点。下面以图10为例具体说明。In the embodiment of the present invention, the clock injection node is actually determined according to the connection relationship between the n clock source nodes and the chain topology. It should be noted that the root of the tree is regarded as a node, and the chain topology and the root can form a ring topology, and 1203 actually determines a minimum ring from the ring topology. And determining a clock injection node based on the minimum loop. The following is a detailed description of FIG. 10 as an example.
本发明实施例首先通过所述第四条件确定是否存在所述链状拓扑和所述树根构成的环状拓扑,具体地,所述控制设备确定是否存在满足所述第四条件的至少一对节点,如果存在,则能够说明所述网络中包括所述环状拓扑。例如在图10中,可以确定出NE1和NE2互为邻接的节点并且分别属于不同的两根子枝,NE3和NE4互为邻接的节点并且分别属于不同的两根子枝,因此NE1和NE2为满足所述第四条件的一对节点,并且NE3和NE4为满足所述第四条件的一对节点,进一步说明NE1、NE2和所述树根构成环状拓扑,并且NE3、NE4、NE1、NE2和所述树根也构成环状拓扑。The embodiment of the present invention first determines, by the fourth condition, whether the chain topology and the ring topology formed by the tree root exist, and specifically, the control device determines whether there is at least one pair that satisfies the fourth condition. A node, if present, can be said to include the ring topology in the network. For example, in FIG. 10, it can be determined that NE1 and NE2 are adjacent nodes and belong to different two sub-branches, and NE3 and NE4 are adjacent nodes and belong to different two sub-branches respectively, so NE1 and NE2 are satisfied. A pair of nodes of the fourth condition, and NE3 and NE4 are a pair of nodes satisfying the fourth condition, further illustrating that NE1, NE2 and the root of the tree form a ring topology, and NE3, NE4, NE1, NE2, and The root of the tree also constitutes a ring topology.
而为了从所述环状拓扑中确定出所述最小环,本发明实施例从满足所述第四条件的至少一对节点中,找到对应的所述第一参数最小的一对节点作为所述第一节点和所述第二节点,其中,所述第一参数为一对节点分别距离所述树根的最少跳数之和,因此说明在满足所述第四条件的所述至少一对节点中,所述第一节点距离所述树根的最少跳数与所述第二节点距离所述树根的最少跳数之和是最小的,因此所述第一节点、所述第二节点和所述树根构成所述最小环。下面以图10为例加以说明。NE1距离所述树根的最少跳数为1,NE2距离所述树根的最少跳数为1,因此NE1和NE2分别距离所述树根的最少跳数之和为2,而NE3和NE4分别距离所述树根的最少跳数之和为4,因此说明NE1和NE2与所述树根构成最小环。In order to determine the minimum ring from the ring topology, the embodiment of the present invention finds, from the at least one pair of nodes that meet the fourth condition, a pair of nodes corresponding to the first parameter as the minimum. a first node and the second node, wherein the first parameter is a sum of a minimum number of hops of the pair of nodes respectively from the root of the tree, and thus the at least one pair of nodes satisfying the fourth condition is illustrated The sum of the minimum number of hops of the first node from the root of the tree and the minimum number of hops of the second node from the root of the tree is minimal, so the first node, the second node, and The root of the tree constitutes the smallest loop. The following is an example of Fig. 10 as an example. The minimum hop count of NE1 from the root of the tree is 1, and the minimum hop count of NE2 from the root of the tree is 1, so the sum of the minimum hops of NE1 and NE2 from the root of the tree is 2, respectively, and NE3 and NE4 respectively The sum of the minimum number of hops from the root of the tree is 4, so that NE1 and NE2 and the root of the tree form a minimum ring.
1204:所述控制设备分别从所述第一节点、所述第二节点开始逐级遍历 父节点直至所述树根的子节点,并且获得所述第一节点、所述第二节点和逐级遍历获得的父节点所共同位于的链状拓扑。1204: The control device starts traversing step by step from the first node and the second node, respectively. The parent node is up to the child node of the tree root, and obtains a chain topology in which the first node, the second node, and the parent node obtained by the stepwise traversal are co-located.
在确定出构成所述最小环的所述第一节点和所述第二节点后,需要进一步根据确定出构成所述最小环的其他节点,具体方式是从所述第一节点和所述第二节点开始逐级遍历父节点直至所述树根的子节点。以图10为例,在1203中确定出NE1和NE2为所述第一节点和所述第二节点,从NE1和NE2开始逐级遍历父节点,由于NE1和NE2为所述树根的子节点,因此遍历后没有得到任何节点,说明所述最小环中除了NE1和NE2不包括其他节点,因此获得NE1和NE2构成的所述链状拓扑。After determining the first node and the second node constituting the minimum ring, further determining, according to the other nodes constituting the minimum ring, is determined from the first node and the second The node begins to traverse the parent node step by step up to the child nodes of the tree root. Taking FIG. 10 as an example, it is determined in 1203 that NE1 and NE2 are the first node and the second node, and the parent node is traversed step by step from NE1 and NE2, because NE1 and NE2 are child nodes of the tree root. Therefore, no nodes are obtained after the traversal, indicating that the NE1 and NE2 do not include other nodes in the minimum ring, and thus the chain topology composed of NE1 and NE2 is obtained.
1205:所述控制设备根据所述n个时钟源节点与所述链状拓扑的连接关系以及所述链状拓扑中各非时钟源节点的连接关系,确定出所述链状拓扑中各个节点的时钟注入节点。1205: The control device determines, according to a connection relationship between the n clock source nodes and the chain topology, and a connection relationship between each non-clock source node in the chain topology, determining each node in the chain topology. The clock is injected into the node.
其中,所述链状拓扑中任一节点的时钟注入节点,可以是从该节点在第一方向和第二方向上邻接的节点中确定出的,其中,所述第一方向为沿着所述链状拓扑从所述链状拓扑的起始节点到达终止节点的方向,所述第二方向与所述第一方向的方向相反。并且,所述控制设备在确定该节点的时钟注入节点时,可以采取跳数优先的方式,也可以采取环网优先的方式。The clock injection node of any one of the chain topologies may be determined from nodes adjacent to the node in the first direction and the second direction, wherein the first direction is along the The chain topology is from a starting node of the chain topology to a direction of a terminating node, the second direction being opposite to a direction of the first direction. Moreover, when determining the clock injection node of the node, the control device may adopt a hop count priority manner or a ring network priority manner.
1206:所述控制设备将所述链状拓扑加入到所述树根中。1206: The control device adds the chain topology to the tree root.
在确定出所述链状拓扑中各非时钟源节点的时钟注入节点后,将所述链状拓扑加入到所述树根中,得到新的树根,因此所述新的树根包括所述n个时钟源节点和已经确定了时钟注入节点的非时钟源节点。After determining the clock injection node of each non-clock source node in the chain topology, adding the chain topology to the tree root to obtain a new tree root, so the new tree root includes the n clock source nodes and non-clock source nodes for which clock injection nodes have been determined.
1207:若确定出所述网络中包括与所述树根邻接的节点,所述控制设备返回执行1201中的所述根据所述树根生成所述拓扑结构的最短路径树,从而确定与所述树根邻接的节点的时钟注入节点。通过循环执行1201至1207,直至确定出所述网络中不包括与所述树根邻接的节点,则表示对所述网络中各非时钟源节点都确定时钟注入节点,可以结束本实施例的流程,并且最终对图8所示的非时钟源节点进行的时钟跟踪配置可以如图11所示,图11中的箭头方向表示时钟注入节点输出时钟信号的方向。其中,需要说明的是,1207中的所述树根指的是1206中生成的所述新的树根。1207: If it is determined that the node in the network that is adjacent to the root of the tree, the control device returns to the shortest path tree that generates the topology according to the tree root in the execution 1201, thereby determining The clock of the node adjacent to the root of the tree is injected into the node. By executing the loops 1201 to 1207 until it is determined that the node adjacent to the root of the tree is not included in the network, it indicates that the clock injection node is determined for each non-clock source node in the network, and the process of this embodiment may be ended. And finally the clock tracking configuration for the non-clock source node shown in FIG. 8 can be as shown in FIG. 11, and the direction of the arrow in FIG. 11 indicates the direction in which the clock injection node outputs the clock signal. It should be noted that the tree root in 1207 refers to the new tree root generated in 1206.
需要说明的是,通过本实施例的1201至1207确定出的所述时钟注入节 点,能够满足以下配置规则:避免时钟跟踪配置成环的现象,即使对于拓扑比较复杂的网络,也能够保证满足上述配置规则。It should be noted that the clock injection section determined by 1201 to 1207 of the embodiment is described. The following configuration rules can be met: The clock tracking is configured to be looped. Even for a network with a complex topology, the above configuration rules can be guaranteed.
在本实施例的1203中,若确定出所述最短路径树中存在满足所述第四条件的至少一对节点,能够进一步确定出由所述链状拓扑和所述树根构成的最小环。而本实施例还可以包括:若确定出所述最短路径树中不存在满足所述第四条件的至少一对节点,也就是所述最短路径树中不包括最小环时,此时所述树根仅与一个节点邻接,因此所述控制设备将所述树根邻接的节点作为第二子类节点;所述控制设备将所述第二子类节点中各非时钟源节点的父节点作为所述第二子类节点中各非时钟源节点的时钟注入节点。例如在8中,若BITS1、BITS2、BITS3、NE1、NE2、NE3、NE4、NE5、NE6和NE7为所述树根,则所述最短路径树中不存在满足所述第四条件的至少一对节点,因此将与所述树根邻接的NE8作为所述第二子类节点,将NE8的父节点,即NE6作为NE8的时钟注入节点。其中所述第二子类节点属于所述第一类节点。In 1203 of the embodiment, if it is determined that at least one pair of nodes satisfying the fourth condition exists in the shortest path tree, the minimum ring formed by the chain topology and the tree root can be further determined. The embodiment may further include: if it is determined that at least one pair of nodes satisfying the fourth condition does not exist in the shortest path tree, that is, when the minimum path tree does not include a minimum ring, the tree at this time The root is only adjacent to one node, so the control device uses the node adjacent to the root of the tree as the second sub-class node; the control device takes the parent node of each non-clock source node in the second sub-class node as a A clock injection node of each non-clock source node in the second sub-class node. For example, in 8, if BITS1, BITS2, BITS3, NE1, NE2, NE3, NE4, NE5, NE6, and NE7 are the root of the tree, at least one pair that satisfies the fourth condition does not exist in the shortest path tree. The node, therefore, NE8, which is adjacent to the root of the tree, is used as the second sub-class node, and the parent node of NE8, that is, NE6, is injected into the node as the clock of NE8. The second sub-class node belongs to the first type of node.
为了提高处理效率,节省处理时间,本实施例还可以对所述拓扑结构进行拆分,具体拆分方式是,从所述拓扑结构中删除所述树根,将删除了所述树根的拓扑结构拆分成第一子网拓扑和第二子网拓扑,其中所述第一子网拓扑和所述第二子网拓扑不连通,并且可以对所述第一子网拓扑和所述第二子网拓扑分别执行1201至1207。In order to improve the processing efficiency and save the processing time, the topology may be split in the embodiment. The specific splitting manner is: deleting the tree root from the topology, and deleting the topology of the root The structure is split into a first subnet topology and a second subnet topology, wherein the first subnet topology and the second subnet topology are not connected, and the first subnet topology and the second may be The subnet topology performs 1201 to 1207 respectively.
在本实施例603和1205中具体确定时钟注入节点的方式,即可以采取跳数优先的方式,也可以采取环网优先的方式。下面以603为例进行说明。In the
首先说明跳数优先的方式,具体地,本发明实施例的603可以包括1301只1303。First, the manner in which the hop count is prioritized is described. Specifically, the 603 of the embodiment of the present invention may include 1301 only 1303.
1301:所述控制设备确定第一邻接节点和第二邻接节点。1301: The control device determines a first neighboring node and a second neighboring node.
其中,所述第一邻接节点在第一方向上邻接所述第一非时钟源节点,即所述第一非时钟源节点在所述第一方向上邻接的节点为所述第一邻接节点,所述第二邻接节点在第二方向上邻接所述第一非时钟源节点,即所述第一非时钟源节点在所述第二方向上邻接的节点为所述第二邻接节点。所述第一方向为沿着所述链状拓扑从所述链状拓扑的起始节点到达终止节点的方向,所述第二方向与所述第一方向的方向相反。所述链状拓扑的起始节点为表示所述链状拓扑的起始位置的节点,所述链状拓扑的终止节点为表示所述链状拓扑的终止位置的节点。 The first adjacent node is adjacent to the first non-clock source node in a first direction, that is, the node adjacent to the first non-clock source node in the first direction is the first adjacent node, The second adjacent node is adjacent to the first non-clock source node in the second direction, that is, the node adjacent to the first non-clock source node in the second direction is the second adjacent node. The first direction is a direction from the start node of the chain topology to the end node along the chain topology, and the second direction is opposite to the direction of the first direction. The starting node of the chain topology is a node representing a starting position of the chain topology, and the terminating node of the chain topology is a node indicating a termination position of the chain topology.
例如在图10中NE9、NE11、NE13、NE12和NE10构成的链状拓扑中,NE10可以为所述链状拓扑的起始节点,NE9可以作为所述链状拓扑的终止节点。则所述第一方向为沿着所述链状拓扑从NE10到NE9的方向,所述第二方向为沿着所述链状拓扑从NE9到NE10的方向,并且所述第一非时钟源节点NE11在所述第一方向上邻接的第一邻接节点为NE9,NE11在所述第二方向上邻接的第二邻接节点为NE13。For example, in the chain topology formed by NE9, NE11, NE13, NE12, and NE10 in FIG. 10, NE10 may be the starting node of the chain topology, and NE9 may serve as the terminating node of the chain topology. The first direction is a direction from NE10 to NE9 along the chain topology, the second direction is a direction from NE9 to NE10 along the chain topology, and the first non-clock source node The first adjacent node adjacent to the NE11 in the first direction is NE9, and the second adjacent node adjacent to the NE11 in the second direction is NE13.
1302:所述控制设备获得第一跳数和第二跳数,所述第一跳数是所述第一邻接节点距离第一时钟源节点的跳数,所述第一时钟源节点是向所述第一邻接节点提供基准时钟信号的时钟源节点,所述第一跳数即所述第一时钟源节点输出的时钟信号到达所述第一邻接节点所经过的跳数。所述第二跳数是所述第二邻接节点距离第二时钟源节点的跳数,所述第二时钟源节点是向所述第二邻接节点提供基准时钟信号的时钟源节点,所述第二跳数即所述第二时钟源节点输出的时钟信号到达所述第二邻接节点所经过的跳数。其中所述n个时钟源节点中包括所述第一时钟源节点和所述第二时钟源节点,所述第一时钟源节点和所述第二时钟源节点可以相同,也可以不同。1302: The control device obtains a first hop count and a second hop count, where the first hop count is a hop count of the first neighboring node from a first clock source node, and the first clock source node is a The first adjacent node provides a clock source node of the reference clock signal, and the first hop count is the number of hops that the clock signal output by the first clock source node reaches the first adjacent node. The second hop count is a hop count of the second neighboring node from the second clock source node, and the second clock source node is a clock source node that provides a reference clock signal to the second neighboring node, where the The second hop count is the number of hops that the clock signal output by the second clock source node reaches the second adjacent node. The first clock source node and the second clock source node may be the same or different.
若图10所示的网络中,所述第一时钟源节点BTIS3向所述第一邻接节点NE9提供基准时钟信号,所述第二时钟源节点BITS3向所述第二邻接节点NE13提供基准时钟信号,NE9的时钟跟踪路径为BITS3->NE6->NE8->NE9,所述控制设备获得所述第一跳数为3跳,NE13的时钟跟踪路径为BITS3->NE6->NE8->NE9->NE11->NE13,所述控制设备获得所述第二跳数为5跳。In the network shown in FIG. 10, the first clock source node BTIS3 provides a reference clock signal to the first adjacent node NE9, and the second clock source node BITS3 provides a reference clock signal to the second adjacent node NE13. The clock tracking path of the NE9 is BITS3->NE6->NE8->NE9, and the control device obtains the first hop count as 3 hops, and the clock tracking path of the NE13 is BITS3->NE6->NE8->NE9- >NE11->NE13, the control device obtains the second hop count as 5 hops.
1303:若所述第一跳数小于或等于所述第二跳数,则所述控制设备将所述第一邻接节点作为所述第一非时钟源节点的时钟注入节点。1303: If the first hop count is less than or equal to the second hop count, the control device injects the first adjacent node as a clock of the first non-clock source node into a node.
若确定出所述第一跳数小于或等于所述第二跳数,说明所述第一邻接节点距离所述第一时钟源节点的跳数,小于或等于所述第二邻接节点距离所述第二时钟源节点的跳数,由于时钟源节点输出的时钟信号,每经过一跳数,信号精度就会降低,因此说明所述第一邻接节点输出的时钟信号的精度高于或者等于所述第二邻接节点输出的时钟信号的精度,因此将所述第一邻接节点作为所述第一非时钟源节点的时钟注入节点。If it is determined that the first hop count is less than or equal to the second hop count, the hop count of the first neighboring node from the first clock source node is less than or equal to the distance of the second neighboring node. The hop count of the second clock source node is lower than the clock signal output by the clock source node, and the accuracy of the clock signal output by the first adjacent node is higher than or equal to the above. The accuracy of the clock signal output by the second adjacent node, thus injecting the first adjacent node as a clock of the first non-clock source node into the node.
本发明实施例可以根据跳数优先的方式,确定所述链状拓扑中各个节点的时钟注入节点,具体实现时可以从所述链状拓扑的一端开始,逐跳确定。 In the embodiment of the present invention, the clock injection node of each node in the chain topology may be determined according to the hop count priority manner. The specific implementation may be determined from one end of the chain topology and determined hop by hop.
除了跳数优先的方式,本发明实施例还可以采取环网优先的方式选取时钟注入节点。具体地,本发明实施例的603可以包括1403和1404,还包括1401或者1402。In addition to the hop-first mode, the embodiment of the present invention may also adopt a ring network priority manner to select a clock injection node. Specifically, 603 of the embodiment of the present invention may include 1403 and 1404, and further includes 1401 or 1402.
1401:若所述控制设备确定出所述树根中仅包括一个所述链状拓扑的起始节点和终止节点的父节点,说明所述链状拓扑的起始节点的父节点和终止节点的父节点为同一节点,则将所述起始节点和终止节点的父节点作为所述链状拓扑的注入节点。1401: If the control device determines that the root node includes only one start node of the chain topology and a parent node of the termination node, indicating a parent node and a termination node of the start node of the chain topology The parent node is the same node, and the parent nodes of the start node and the terminating node are used as injection nodes of the chain topology.
若图10所示的网络中,所述链状拓扑包括NE9、NE11、NE13、NE12和NE10,所述链状拓扑的起始节点为NE10,所述链状拓扑的终止节点为NE9。NE9和NE10的父节点均为NE8,因此将NE8作为所述链状拓扑的注入节点。In the network shown in FIG. 10, the chain topology includes NE9, NE11, NE13, NE12, and NE10, the starting node of the chain topology is NE10, and the terminating node of the chain topology is NE9. The parent nodes of NE9 and NE10 are both NE8, so NE8 is used as the injection node of the chain topology.
1402:若所述控制设备确定出所述树根中包括第一父节点和第二父节点,所述控制设备获得第三跳数和第四跳数;若所述第三跳数小于或等于所述第四跳数,则所述控制设备将所述第一父节点作为所述链状拓扑的注入节点。1402: If the control device determines that the root node includes a first parent node and a second parent node, the control device obtains a third hop count and a fourth hop count; if the third hop count is less than or equal to The fourth hop count, the control device uses the first parent node as an injection node of the chain topology.
其中,所述第一父节点为所述链状拓扑的起始节点和/或终止节点的父节点,所述第二父节点为所述链状拓扑的起始节点和/或终止节点的父节点,例如在图10中,所述链状拓扑包括NE1和NE2,NE1为所述链状拓扑的起始节点,NE2为所述链状拓扑的终止节点。NE1的父节点为所述第一父节点BITS1,NE2的父节点为所述第二父节点BITS2。The first parent node is a parent node of the chain topology and/or a parent node of a terminating node, and the second parent node is a parent node of the chain topology and/or a parent of the terminating node. Nodes, such as in FIG. 10, the chain topology includes NE1 and NE2, NE1 is the starting node of the chain topology, and NE2 is the terminating node of the chain topology. The parent node of NE1 is the first parent node BITS1, and the parent node of NE2 is the second parent node BITS2.
所述第三跳数是所述第一父节点距离第三时钟源节点的跳数,所述第四跳数是所述第二父节点距离第四时钟源节点跳数。所述第三时钟源节点是向所述第一父节点提供基准时钟信号的时钟源节点,所述第四时钟源节点是向所述第二父节点提供基准时钟信号的时钟源节点。若图10所示的网络中,所述起始节点NE1的父节点为所述第一父节点BITS1,所述终止节点NE2的父节点为所述第二父节点BITS2,所述第一父节点本身即为时钟源节点,因此所述第三时钟源节点即为所述第一父节点BITS1,同样,所述第四时钟源节点即为所述第二父节点BITS2。所述第三跳数和所述第四跳数均为0。The third hop count is a hop count of the first parent node from the third clock source node, and the fourth hop count is a hop count of the second parent node from the fourth clock source node. The third clock source node is a clock source node that provides a reference clock signal to the first parent node, and the fourth clock source node is a clock source node that provides a reference clock signal to the second parent node. In the network shown in FIG. 10, the parent node of the originating node NE1 is the first parent node BITS1, and the parent node of the terminating node NE2 is the second parent node BITS2, the first parent node. The clock source node is itself, so the third clock source node is the first parent node BITS1, and the fourth clock source node is the second parent node BITS2. The third hop count and the fourth hop count are both zero.
若确定出所述第三跳数小于或等于所述第四跳数,说明所述第一父节点输出的时钟信号的精度高于或者等于所述第二父节点输出的时钟信号的精度,因此将所述第一父节点作为所述链状拓扑的注入节点。If it is determined that the third hop count is less than or equal to the fourth hop count, the accuracy of the clock signal output by the first parent node is higher than or equal to the accuracy of the clock signal output by the second parent node, The first parent node is used as an injection node of the chain topology.
1403:所述控制设备确定所述第一非时钟源节点在第三方向上邻接的第 三邻接节点,所述第三方向为沿着所述链状拓扑从所述第一非时钟源节点至所述注入节点的方向。1403: The control device determines that the first non-clock source node is adjacent to the third party. The third adjacent node, the third direction is a direction from the first non-clock source node to the injection node along the chain topology.
例如在图10中,所述链状拓扑包括NE9、NE11、NE13、NE12和NE10,NE8为所述链状拓扑的注入节点,所述第三方向为沿着所述链状拓扑从所述第一非时钟源节点NE11至所述注入节点NE8的方向,所述第一非时钟源节点NE11在所述第三方向上邻接的所述第三邻居节点为NE9。For example, in FIG. 10, the chain topology includes NE9, NE11, NE13, NE12, and NE10, NE8 is an injection node of the chain topology, and the third direction is along the chain topology from the first A direction of the non-clock source node NE11 to the injection node NE8, wherein the third non-clock source node NE11 is adjacent to the third neighbor node in the third direction.
1404:所述控制设备将所述第三邻接节点,作为所述第一非时钟源的时钟注入节点。1404: The control device injects the third adjacent node as a clock of the first non-clock source into a node.
若图10所示的网络中,将NE8作为NE9的时钟注入节点后,将NE9作为NE11的时钟注入节点,将NE11作为NE13的时钟注入节点,将NE13作为NE12的时钟注入节点,将NE12作为NE10的时钟注入节点。In the network shown in Figure 10, after NE8 is injected into the node as the clock of NE9, NE9 is injected into the node as the clock of NE11, and NE11 is injected into the node as the clock of NE13. NE13 is injected into the node as the clock of NE12, and NE12 is used as NE10. The clock is injected into the node.
在选取出所述链状拓扑中各个节点的时钟注入节点后,可以将所述链状拓扑中各个节点的时钟注入节点作为所述链状拓扑中各个节点的主用时钟注入节点;本实施例还可以包括:所述控制设备获取所述链状拓扑的备用时钟注入节点。若所述主用时钟注入节点不可用,可以跟踪所述备用时钟注入节点输出的时钟信号。例如对图8所示的非时钟源节点进行的时钟跟踪配置可以如图12所示,图12中实线箭头表示主用时钟注入节点输出的时钟信号的方向,虚线箭头表示备用时钟注入节点输出的时钟信号的方向。After the clock injection node of each node in the chain topology is selected, the clock injection node of each node in the chain topology may be used as the primary clock injection node of each node in the chain topology; The method may further include: the control device acquiring the backup clock injection node of the chain topology. If the primary clock injection node is unavailable, the clock signal output by the alternate clock injection node can be tracked. For example, the clock tracking configuration of the non-clock source node shown in FIG. 8 can be as shown in FIG. 12. The solid arrow in FIG. 12 indicates the direction of the clock signal output by the main clock injection node, and the dotted arrow indicates the standby clock injection node output. The direction of the clock signal.
在本实施例中采用环网优先的方式选取时钟注入节点时,若所述第三跳数等于所述第四跳数,所述控制设备还可以根据对应的等级选取所述注入节点,从而便于对选取时钟注入节点的管理。具体地设置等级的方式可以包括:Level(BITSi)=a,其中Level(BITSi)表示任一个时钟源的等级,a为预设的初始值,该初始值可以为正数,例如a=1。Level(NE2)=Max(Level(r1),Level(r2))+1,其中Level(NE2)表示所述第二类节点的等级,Level(r1)表示所述链状拓扑的起始节点的父节点的等级,Level(r2)表示所述链状拓扑的终止节点的父节点的等级,Max(Level(r1),Level(r2))表示Level(r1)和Level(r2)中的最大值。所述第二子类节点的等级为所述第二子类节点的父节点的等级+1。在选取所述注入节点时,比较所述第三跳数和所述第四跳数,若所述第三跳数等于所述第四跳数,从中选取等级较小的节点作为所述注入节点。其中还可以对所述链状拓扑的等级进行设置,例如所述链状拓扑的等级与所述链状拓扑上的节点的等级相同,以用于对所述网络是否存在时钟跟踪配置成环进行检测。 In the embodiment, when the clock injection node is selected by using the ring network priority mode, if the third hop count is equal to the fourth hop count, the control device may select the injection node according to the corresponding level, thereby facilitating Management of the selected clock injection node. The manner of setting the level may include: Level(BITS i )=a, where Level(BITS i ) represents the level of any clock source, and a is a preset initial value, and the initial value may be a positive number, for example, a= 1. Level(NE 2 )=Max(Level(r 1 ), Level(r 2 ))+1, where Level(NE 2 ) represents the level of the second type of node, and Level(r 1 ) represents the chain topology. The level of the parent node of the starting node, Level(r 2 ) represents the level of the parent node of the terminating node of the chain topology, and Max (Level(r 1 ), Level(r 2 )) represents Level(r 1 ) And the maximum value in Level(r 2 ). The level of the second sub-class node is the level +1 of the parent node of the second sub-class node. Comparing the third hop count and the fourth hop count when the injection node is selected, and if the third hop count is equal to the fourth hop count, selecting a node with a smaller rank as the injection node . The level of the chain topology may also be set, for example, the level of the chain topology is the same as the level of the node in the chain topology, and is used to configure whether the network has clock tracking configured for the ring. Detection.
上面对本发明实施例中的用于配置时钟跟踪的方法的实施例进行了描述,下面将从模块化功能实体的角度对本发明实施例中的控制设备进行描述。The embodiment of the method for configuring clock tracing in the embodiment of the present invention has been described above. The control device in the embodiment of the present invention will be described below from the perspective of a modular functional entity.
请参阅图13,本发明实施例提供的一种控制设备包括:获取单元1301、确定单元1302和配置单元1303。本发明实施例提供的控制设备可以采用上述图2、图5、图6或图7对应的实施例中的方法。Referring to FIG. 13 , a control device provided by an embodiment of the present invention includes: an obtaining
获取单元1301,用于获取网络的拓扑结构。The obtaining
举例说明,所述网络包括第一非时钟源节点和n个时钟源节点,所述n为大于或等于1的整数。其中,所述n个时钟源节点中的任意一个时钟源节点可用于提供时钟同步的基准时钟信号,即所述n个时钟源节点中的任意一个时钟源节点可作为所述网络的原始时钟源。所述n个时钟源节点中的任意一个时钟源节点输出的时钟信号可同时满足时钟频率同步和时钟相位同步。所述第一非时钟源节点本身不能提供所述基准时钟信号,所述第一非时钟源节点可根据所述n个时钟源节点提供的所述基准时钟信号进行时钟同步。For example, the network includes a first non-clock source node and n clock source nodes, and the n is an integer greater than or equal to 1. Any one of the n clock source nodes may be used to provide a clock synchronization reference clock signal, that is, any one of the n clock source nodes may serve as an original clock source of the network. . The clock signal output by any one of the n clock source nodes can simultaneously satisfy clock frequency synchronization and clock phase synchronization. The first non-clock source node itself cannot provide the reference clock signal, and the first non-clock source node can perform clock synchronization according to the reference clock signal provided by the n clock source nodes.
其中,所述拓扑结构可以通过拓扑信息表示,所述拓扑信息具体包括:所述第一非时钟源节点的标识和所述第一非时钟源节点邻接的节点的标识。若所述第一非时钟源节点具有多个邻接的节点,则所述拓扑信息还包括:所述第一非时钟源节点用于连接所述多个邻接的节点中每个节点的端口标识。非时钟源节点的标识与时钟源节点的标识不同,即根据标识可确定一个节点是非时钟源节点还是时钟源节点,例如时钟源节点的标识包含特定的标志位,所述特定的标志位用于标识该节点是时钟源节点。在本发明实施例中,邻接表示相邻且直接相连,比如所述第一非时钟源邻接的节点包括第一时钟源节点,所述第一非时钟源节点与所述第一时钟源节点相邻且直接连接,所述相邻可以是两个节点之间是邻居关系。The topology may be represented by the topology information, where the topology information specifically includes: an identifier of the first non-clock source node and an identifier of a node adjacent to the first non-clock source node. If the first non-clock source node has multiple contiguous nodes, the topology information further includes: the first non-clock source node is configured to connect a port identifier of each of the plurality of contiguous nodes. The identifier of the non-clock source node is different from the identifier of the clock source node, that is, whether the node is a non-clock source node or a clock source node according to the identifier, for example, the identifier of the clock source node includes a specific flag bit, and the specific flag bit is used for Identifies that the node is a clock source node. In the embodiment of the present invention, the adjacent ones are adjacent and directly connected, for example, the node adjacent to the first non-clock source includes a first clock source node, and the first non-clock source node is opposite to the first clock source node. Adjacent and directly connected, the neighbor may be a neighbor relationship between two nodes.
举例说明,所述网络可以包括至少两个非时钟源节点,即所述网络包括n个时钟源节点和m个非时钟源节点,m为大于或等于1的整数。所述m个非时钟源节点包括所述第一非时钟源节点。所述网络的拓扑结构包括所述m个非时钟源节点与所述n个时钟源节点的连接关系,以及所述m个非时钟源节点中任意两个非时钟源节点间的连接关系。相应地,所述拓扑信息包括:所述m个非时钟源节点中各非时钟源节点的标识以及各非时钟源节点邻接的节点的标识。下面通过一个例子加以说明,所述网络包括所述第一时钟源节点、第二时钟源节点、所述第一非时钟源节点和第二非时钟源节点,所述拓扑结 构可包括:所述第一时钟源节点和所述第一非时钟源节点的连接关系、所述第二时钟源节点和所述第二非时钟源节点的连接关系以及所述第一非时钟源节点和所述第二非时钟源节点的连接关系。相应地,所述拓扑信息包括:所述第一非时钟源节点的标识、所述第二非时钟源节点的标识、所述第一非时钟源节点邻接的节点的标识以及所述第二非时钟源节点邻接的节点的标识。For example, the network may include at least two non-clock source nodes, that is, the network includes n clock source nodes and m non-clock source nodes, and m is an integer greater than or equal to 1. The m non-clock source nodes include the first non-clock source node. The topology of the network includes a connection relationship between the m non-clock source nodes and the n clock source nodes, and a connection relationship between any two non-clock source nodes of the m non-clock source nodes. Correspondingly, the topology information includes: an identifier of each non-clock source node of the m non-clock source nodes and an identifier of a node adjacent to each non-clock source node. The following is an example. The network includes the first clock source node, the second clock source node, the first non-clock source node, and the second non-clock source node. The configuration may include: a connection relationship between the first clock source node and the first non-clock source node, a connection relationship between the second clock source node and the second non-clock source node, and the first non-clock A connection relationship between the source node and the second non-clock source node. Correspondingly, the topology information includes: an identifier of the first non-clock source node, an identifier of the second non-clock source node, an identifier of a node adjacent to the first non-clock source node, and the second non- ID of the node to which the clock source node is adjacent.
确定单元1302,用于根据所述网络的拓扑结构,确定所述第一非时钟源节点的时钟注入节点,所述第一非时钟源节点的时钟注入节点用于向所述第一非时钟源节点提供用于跟踪的时钟信号。a determining
举例说明,所述第一非时钟源节点的时钟注入节点用于向所述第一非时钟源节点提供所述第一非时钟源节点所需跟踪的时钟信号。确定单元1302根据所述第一非时钟源节点与所述n个时钟源节点的连接关系,确定出所述第一非时钟源节点的时钟注入节点。For example, the clock injection node of the first non-clock source node is configured to provide the first non-clock source node with a clock signal required to be tracked by the first non-clock source node. The determining
举例说明,确定单元1302确定出的所述第一非时钟源节点的时钟注入节点至少满足所述网络不会出现时钟跟踪配置成环现象,即避免多个非时钟源节点之间相互跟踪以使得跟踪路径成环。此外,所述第一非时钟节点的时钟注入节点可以为在所述第一非时钟源节点邻接的节点中距离该邻接的节点对应的时钟源节点的跳数最小的节点。某个节点对应的时钟源节点为向所述某个节点提供基准时钟信号的时钟源节点。以图1所示的网络拓扑结构为例,若所述第一非时钟源节点为图1中的NE3,所述第一非时钟源节点邻接的节点包括图1中的NE1和NE4,BTIS1为向NE1提供基准时钟信号的时钟源节点,BITS2为向NE4提供基准时钟信号的时钟源节点,则NE1距离BITS1的跳数为1,NE1距离BITS2的跳数为2,NE4距离BITS2的跳数为2,则NE3的时钟注入节点可以是NE1。For example, the clock injection node of the first non-clock source node determined by the determining
举例说明,若所述网络包括n个时钟源节点和m个非时钟源节点,确定单元1302可以根据所述n个时钟源节点与所述m个非时钟源节点的连接关系,以及所述m个非时钟源节点中各非时钟源节点的连接关系,确定出所述各非时钟源节点的时钟注入节点。For example, if the network includes n clock source nodes and m non-clock source nodes, the determining
配置单元1303,用于根据所述第一非时钟源节点的时钟注入节点,对所述第一非时钟源节点进行时钟跟踪配置。The
举例说明,配置单元1303根据所述第一非时钟源节点的时钟注入节点,生成所述第一非时钟源节点的时钟跟踪配置参数。配置单元1303将所述时钟
跟踪配置参数发送至所述第一非时钟源节点。For example, the
举例说明,若所述时钟跟踪配置参数包括端口的同步源优先级(英文:synchronization source priority,简称:SSP),则配置单元1303可以对所述第一非时钟源节点上的第一端口的SSP进行配置,所述第一端口用于连接所述第一非时钟源节点的时钟注入节点,以使得第一非时钟源节点跟踪所述第一非时钟源节点的时钟注入节点输出的时钟信号。例如,节点1上包括端口1,其中端口1用于连接节点1的时钟注入节点,因此配置单元1303可以对端口1的SSP进行配置,例如使得端口1接收的时钟信号的优先级最高,从而使得节点1跟踪端口1接收的时钟信号。For example, if the clock tracking configuration parameter includes a synchronization source priority (SSP) of the port, the
本发明实施例提供的控制设备中,获取单元1301获取网络的拓扑结构,确定单元1302根据所述网络的拓扑结构,确定所述第一非时钟源节点的时钟注入节点,即用于向所述第一非时钟源节点提供用于跟踪的时钟信号的节点。配置单元1303根据所述时钟注入节点,对所述第一非时钟源节点进行时钟跟踪配置,实现了对所述第一非时钟源节点的时钟同步。本发明实施例的所述控制设备可根据网络的拓扑结构,对非时钟源节点的时钟进行自动配置,无需对非时钟源节点进行手动配置,减少了工作量,有助于提高工作效率。In the control device provided by the embodiment of the present invention, the acquiring
本发明实施例中的控制设备在物理上可以为一个设备,也可以在多个设备上实现所述控制设备的功能,即所述多个设备可以协调完成获取模块1301、确定单元1302和配置单元1303的功能。具体地,所述控制设备可以为服务器、软件定义网络(英文:Software Defined Network,简称:SDN)控制器或网络管理设备。The control device in the embodiment of the present invention may be physically one device, or may implement the function of the control device on multiple devices, that is, the multiple devices may coordinate to complete the obtaining
如图3所示,所述控制设备可以具为SDN控制器,所述网络包括第一时钟源节点(图中未示出)、第二时钟源节点(图中未示出)、第一非时钟源节点和第二非时钟源节点。所述SDN控制器中的获取单元获取所述网络的拓扑结构,所述SDN控制器中的确定单元确定出所述第一非时钟源节点的时钟注入节点,所述SDN控制器中的配置单元对所述第一非时钟源节点进行时钟跟踪配置。其中所述第一非时钟源节点上可以配置有时钟配置端口。所述第一非时钟源节点通过所述时钟配置端口向所述SDN控制器发送所述网络的拓扑结构。所述第一非时钟源节点还可通过所述时钟配置端口接收所述SDN控制器发送的时钟跟踪配置参数。如图4所示,所述控制设备可以包括服务器和网络管理设备。所述网络管理设备中的获取单元可获取所述网络的拓扑结构 并向所述服务器发送所述拓扑结构。所述服务器中的确定单元确定出所述第一非时钟源节点的时钟注入节点,并由所述服务器通过所述网络管理设备中的配置单元对所述第一非时钟源节点进行时钟跟踪配置。需要说明的是,图3和图4仅为一种示例性的说明,实际上所述控制设备还可以有多种构成方式,并且所述控制设备可以通过任意一种通信方式与所述第一非时钟源节点进行通信连接,本发明实施例对此均不加以限定。As shown in FIG. 3, the control device may be an SDN controller, and the network includes a first clock source node (not shown), a second clock source node (not shown), and a first non- A clock source node and a second non-clock source node. The acquiring unit in the SDN controller acquires a topology of the network, and the determining unit in the SDN controller determines a clock injection node of the first non-clock source node, and a configuration unit in the SDN controller Performing a clock tracing configuration on the first non-clock source node. The clock configuration port may be configured on the first non-clock source node. The first non-clock source node sends the topology of the network to the SDN controller through the clock configuration port. The first non-clock source node may further receive a clock tracking configuration parameter sent by the SDN controller through the clock configuration port. As shown in FIG. 4, the control device may include a server and a network management device. The acquiring unit in the network management device may acquire the topology of the network And transmitting the topology to the server. a determining unit in the server determines a clock injection node of the first non-clock source node, and performs clock tracing configuration on the first non-clock source node by the server through a configuration unit in the network management device . It should be noted that FIG. 3 and FIG. 4 are only an exemplary description. In fact, the control device may also have multiple configurations, and the control device may be connected to the first by any communication method. The non-clock source node performs the communication connection, which is not limited in this embodiment of the present invention.
可选的,所述控制设备可以还包括筛选单元,获取单元1301用于,获取网络的拓扑结构之前,获取所述第一非时钟源节点与所述n个时钟源节点的链接属性,所述筛选单元用于根据所述链接属性对网络的拓扑结构进行筛选,则获取单元获取的所述网络的拓扑结构是根据所述链接属性进行筛选后获得的拓扑结构。其中所述链接属性可以包括:连接端口的属性,比如是光口还是电口,是否支持同步以太技术或者1588v2等等;或者,所述链接属性可以包括传输线的属性,比如是通过光纤连接还是电连接,传输线的传输速率等等。其中具体的筛选规则可以包括以下规则中的至少一种:保留连接端口为光口的链接、保留传输速率大于预设值的光纤链接,以及保留多端口使能时各个端口位于不同的物理板上的链接。Optionally, the control device may further include a screening unit, where the acquiring
在本发明实施例的确定单元1302根据所述拓扑结构,确定出所述第一非时钟源节点的时钟注入节点。其中,所述第一非时钟源节点在所述拓扑结构中处于不同位置时,所述时钟注入节点的确定方式也不同,下面结合图8所示的结构,分别通过图5、图6和图7对时钟注入节点的确定方法进行说明。The determining
(1)所述时钟注入节点的第一种确定方式(1) The first method of determining the clock injection node
如图14所示,图13对应的实施例中的确定单元1302可以包括第一确定子单元1401和第二确定子单元1402。As shown in FIG. 14, the determining
第一确定子单元1401,用于根据所述网络的拓扑结构,确定第一链路集中仅有一个与所述第一非时钟源节点邻接的节点,所述第一链路集为所述第一非时钟源节点连接所述n个时钟源节点的链路集。a first determining sub-unit 1401, configured to determine, according to a topology structure of the network, that only one node in the first link set is adjacent to the first non-clock source node, where the first link set is the first A non-clock source node connects the set of links of the n clock source nodes.
举例说明,若所述第一链路集只有一个与所述第一非时钟源节点邻接的节点,则所述第一非时钟源节点只能通过所述一个邻接的节点接收到时钟信号。For example, if the first link set has only one node adjacent to the first non-clock source node, the first non-clock source node can only receive a clock signal through the one adjacent node.
图8所示的网络包括3个时钟源节点和14个非时钟源节点。所述3个时 钟源节点分别为BITS1、BTIS2和BITS3。所述14个非时钟源节点分别为NE1、NE2、NE3、NE4、NE5、NE6、NE7、NE8、NE9、NE10、NE11、NE12、NE13和NE14。若NE5为所述第一非时钟源节点,则所述第一链路集为NE5用于连接BITS1、BTIS2和BITS3的链路的集合,即所述第一链路集包括第一链路、第二链路、第三链路、第四链路、第五链路和第六链路。所述第一链路可表示为NE5-NE3-NE1-BITS1。所述第二链路可表示为NE5-NE3-NE1-NE2-BITS2。所述第三链路可表示为NE5-NE3-NE4-NE2-BITS2。所述第四链路可表示为NE5-NE3-NE4-NE2-NE1-BITS1。所述第五链路可表示为NE5-NE3-NE4-NE6-BITS3。所述第六链路可表示为NE5-NE3-NE1-NE2-NE4-NE6-BITS3。NE5只能通过NE3链接3个时钟源节点,即第一链路集仅包含NE5的邻接节点NE3。NE5仅通过NE3接收到时钟信号。The network shown in Figure 8 includes three clock source nodes and four non-clock source nodes. The three hours The clock source nodes are BITS1, BTIS2, and BITS3. The 14 non-clock source nodes are NE1, NE2, NE3, NE4, NE5, NE6, NE7, NE8, NE9, NE10, NE11, NE12, NE13, and NE14, respectively. If the NE5 is the first non-clock source node, the first link set is a set of links used by the NE5 to connect the BITS1, the BTIS2, and the BITS3, that is, the first link set includes the first link, The second link, the third link, the fourth link, the fifth link, and the sixth link. The first link can be represented as NE5-NE3-NE1-BITS1. The second link can be represented as NE5-NE3-NE1-NE2-BITS2. The third link can be represented as NE5-NE3-NE4-NE2-BITS2. The fourth link can be represented as NE5-NE3-NE4-NE2-NE1-BITS1. The fifth link can be represented as NE5-NE3-NE4-NE6-BITS3. The sixth link can be represented as NE5-NE3-NE1-NE2-NE4-NE6-BITS3. NE5 can only link three clock source nodes through NE3, that is, the first link set only contains NE5 neighboring node NE3. NE5 receives the clock signal only through NE3.
第二确定子单元1402,用于将所述第一链路集中与所述第一非时钟源节点邻接的节点,作为所述第一非时钟源节点的时钟注入节点。The second determining
如图8所示的网络中,所述控制设备(图8中未示出)将NE3配置为NE5的时钟注入节点。In the network shown in FIG. 8, the control device (not shown in FIG. 8) configures NE3 as a clock injection node of NE5.
(2)所述时钟注入节点的第二种确定方式(2) The second determination method of the clock injection node
如图15所示,图13对应的实施例中的确定单元1302可以包括第三确定子单元1501、第四确定子单元1502和第五确定子单元1503。As shown in FIG. 15, the determining
第三确定子单元1501,用于根据所述网络的拓扑结构,确定第二链路集中包括至少两个与所述第一非时钟源节点邻接的节点,所述第二链路集为所述第一非时钟源节点连接所述n个时钟源节点的链路集。a third determining
举例说明,若所述第二链路集包括至少两个与所述第一非时钟源节点邻接的节点,则所述第一非时钟源节点通过该至少两个邻接的节点接收到时钟信号。For example, if the second link set includes at least two nodes adjacent to the first non-clock source node, the first non-clock source node receives a clock signal through the at least two adjacent nodes.
如图8所示,若NE1为所述第一非时钟源节点,则第二链路集包括为NE1用于连接BITS1、BITS2和BITS3的链路的集合,即所述第二链路集包括第七链路、第八链路、第九链路、第十链路和第十一链路。所述第七链路可表示为NE1-BITS1。所述第八链路可表示为NE1-NE2-BITS2。所述第九链路可 表示为NE1-NE3-NE4-NE2-BITS2。所述第十链路可表示为NE1-NE2-NE4-NE6-BITS3。所述第十一链路可表示为NE1-NE3-NE4-NE6-BITS3。所述第七链路中,NE1邻接的节点为BITS1。NE1用于连接BITS2的链路集中,NE1的两个邻接的节点分别为NE2和NE3。NE1用于连接BITS3的链路集中,NE1的两个邻接的节点分别为NE2和NE3。所述第二链路集包括三个与NE1邻接的节点,所述与NE1邻接的节点分别为BITS1、NE2和NE3。NE1能够通过BITS1、NE2或者NE3接收到时钟信号。As shown in FIG. 8, if NE1 is the first non-clock source node, the second link set includes a set of links used by NE1 to connect BITS1, BITS2, and BITS3, that is, the second link set includes The seventh link, the eighth link, the ninth link, the tenth link, and the eleventh link. The seventh link can be represented as NE1-BITS1. The eighth link can be represented as NE1-NE2-BITS2. The ninth link can Expressed as NE1-NE3-NE4-NE2-BITS2. The tenth link can be represented as NE1-NE2-NE4-NE6-BITS3. The eleventh link can be represented as NE1-NE3-NE4-NE6-BITS3. In the seventh link, the node adjacent to NE1 is BITS1. NE1 is used to connect to the link set of BITS2. The two adjacent nodes of NE1 are NE2 and NE3. NE1 is used to connect to the link set of BITS3. The two adjacent nodes of NE1 are NE2 and NE3. The second link set includes three nodes adjacent to NE1, and the nodes adjacent to NE1 are BITS1, NE2, and NE3, respectively. NE1 can receive the clock signal through BITS1, NE2 or NE3.
第四确定子单元1502,用于根据所述网络的拓扑结构,确定所述第一非时钟源节点位于的链状拓扑。The fourth determining
举例说明,将所述n个时钟源节点作为树根,所述链状拓扑指的是与所述树根构成所述第一非时钟源节点的最小环的链状的拓扑结构。最小环指的本身为环状拓扑,并且除本身的环状拓扑外不包含其他环状拓扑的拓扑结构。在确定所述第一非时钟源节点的时钟注入节点之后,可以将所述链状拓扑加入所述树根。在图8中,若所述树根包括BITS1、BTS2和BITS,则NE1、NE2和所述树根构成最小环,NE1和NE2构成一个链状拓扑,若将NE1和NE2加入到所述树根中,则NE3、NE4和所述树根构成最小环,NE3和NE4构成一个链状拓扑。For example, the n clock source nodes are used as a tree root, and the chain topology refers to a chain topology that forms a minimum ring of the first non-clock source node with the tree root. The minimum ring finger itself is a ring topology and does not contain other ring topology topologies other than its own ring topology. After determining the clock injection node of the first non-clock source node, the chain topology may be added to the tree root. In FIG. 8, if the root of the tree includes BITS1, BTS2, and BITS, NE1, NE2 and the root of the tree constitute a minimum ring, and NE1 and NE2 form a chain topology, and if NE1 and NE2 are added to the root of the tree In the middle, NE3, NE4 and the root of the tree constitute a minimum ring, and NE3 and NE4 form a chain topology.
第五确定子单元1503,用于根据所述n个时钟源节点和所述链状拓扑的连接关系,确定所述第一非时钟源节点的时钟注入节点。The fifth determining
举例说明,所述第一非时钟源节点的时钟注入节点可以是从所述第一非时钟源节点在第一方向或第二方向上邻接的节点中选出的节点。所述第一方向是沿着所述链状拓扑从所述链状拓扑的起始节点到终止节点的方向,第二方向与所述第一方向相反,即是沿着所述链状拓扑从所述链状拓扑的终止节点到起始节点的方向。所述链状拓扑的起始节点为表示所述链状拓扑的起始位置的节点,所述链状拓扑的终止节点为表示所述链状拓扑的终止位置的节点,如图8所示,以NE9、NE11、NE13、NE12和NE10构成的链状拓扑为例,NE10可以为NE9、NE11、NE13、NE12和NE10构成的链状拓扑的起始节点,NE9可以为NE9、NE11、NE13、NE12和NE10构成的链状拓扑的终止节点。第一方向为沿着所述链状拓扑从NE10到NE9的方向,第二方向为沿着所述链状拓扑从NE9到NE10的方向。NE11在第一方向上邻接的节点为NE9,NE11在第二方向上邻接的节点为NE13。第五确定子单元1503可从
NE9和NE13中选出一个节点作为NE11的时钟注入节点。For example, the clock injection node of the first non-clock source node may be a node selected from nodes adjacent to the first non-clock source node in the first direction or the second direction. The first direction is a direction from the start node to the end node of the chain topology along the chain topology, and the second direction is opposite to the first direction, that is, along the chain topology The terminating node of the chain topology is in the direction of the starting node. The starting node of the chain topology is a node indicating a starting position of the chain topology, and the terminating node of the chain topology is a node indicating a termination position of the chain topology, as shown in FIG. Take the chain topology consisting of NE9, NE11, NE13, NE12, and NE10 as an example. NE10 can be the starting node of the chain topology composed of NE9, NE11, NE13, NE12, and NE10. NE9 can be NE9, NE11, NE13, NE12. The terminating node of the chain topology formed by NE10. The first direction is a direction from NE10 to NE9 along the chain topology, and the second direction is a direction from NE9 to NE10 along the chain topology. The node adjacent to NE11 in the first direction is NE9, and the node adjacent to NE11 in the second direction is NE13. The fifth determining
(3)所述时钟注入节点的第三种确定方式(3) The third determination method of the clock injection node
若所述n个时钟源节点包括至少两个与所述第一非时钟源节点邻接的节点,则所述确定单元1302具体用于选取第四邻接节点作为所述第一非时钟源节点的时钟注入节点,所述第四邻接节点是所述n个时钟源节点中与所述第一非时钟源节点邻接的节点。If the n clock source nodes include at least two nodes adjacent to the first non-clock source node, the determining
确定单元1302可以根据时钟源节点的优先级选取所述第四邻接节点,例如从所述n个时钟源节点中与所述第一非时钟源节点邻接的节点中,选取优先级最高的一个节点作为所述第四邻接节点。The determining
可选的,确定单元1302可以将所述第四邻接节点作为所述第一非时钟源节点主用的时钟注入节点,并且选取第五邻接节点作为所述第一非时钟源节点备用的时钟注入节点。其中所述第五邻接节点也是所述n个时钟源节点中与所述第一非时钟源节点邻接的节点。若所述主用的时钟注入节点不可用,所述第一非时钟源节点跟踪所述备用的时钟注入节点输出的时钟信号。Optionally, the determining
所述网络包括n个时钟源节点和m个非时钟源节点,则本发明实施例中的确定单元1302,可以从所述m个非时钟源节点中确定出属于第一类节点的节点,或者确定出属于第二类节点的节点。其中所述第一类节点指的是用于连接所述n个时钟源节点的链路集中只有一个邻接节点的节点。若所述第一非时钟源节点属于所述第一类节点,则确定单元1302将所述第一链路集中与所述第一非时钟源节点邻接的节点,作为所述第一非时钟源节点的时钟注入节点。所述第二类节点指的是用于连接所述n个时钟源节点的链路集中包括至少两个邻接节点的节点,若所述第一非时钟源节点属于所述第二类节点,确定单元1302可以确定所述第一非时钟源节点位于的链状拓扑,根据所述n个时钟源节点和所述链状拓扑的连接关系,确定所述第一非时钟源节点的时钟注入节点。其中,若所述第一非时钟源节点属于所述第二类节点,在一种特定的情况下,例如所述n个时钟源节点包括至少两个与所述第一非时钟源节点邻接的节点,确定单元1302可以选取所述第四邻接节点作为所述第一非时钟源节点的时钟注入节点,所述第四邻接节点是所述n个时钟源节点中与所述第一非时钟源节点邻接的节点。The determining
下面本发明实施例将具体说明第一确定子单元1401如何确定所述第一链路集中仅有的一个与所述第一非时钟源节点邻接的节点。本发明实施例提供
两种具体的确定方式,下面分别说明。The following embodiments of the present invention will specifically describe how the first determining
在第一种方式中,第一确定子单元1401具体用于:执行第一功能和第二功能。In the first mode, the first determining
所述第一功能:根据所述网络的拓扑结构,确定所述网络中仅有一个与所述第一非时钟源节点邻接的节点。The first function: determining, according to the topology of the network, that only one node in the network is adjacent to the first non-clock source node.
举例说明,若所述网络包括n个时钟源节点和m个非时钟源节点,则第一确定子单元1401可以根据所述网络的拓扑结构,确定出所述m个非时钟源节点中的第一子类节点。第一确定子单元1401可选择所述第一子类节点中的任一个节点作为所述第一非时钟源节点。其中,所述第一子类节点在所述网络中仅有一个邻接的节点。For example, if the network includes n clock source nodes and m non-clock source nodes, the first determining
所述网络的拓扑结构通过拓扑信息表示,所述拓扑信息包括所述m个非时钟源中各非时钟源节点的标识以及所述各非时钟源中邻接的节点的标识。表1示出了图8中的NE5、NE7、NE13和NE14对应的拓扑信息。The topology of the network is represented by topology information, where the topology information includes an identifier of each of the m non-clock source sources and an identifier of an adjacent node among the non-clock sources. Table 1 shows the topology information corresponding to NE5, NE7, NE13, and NE14 in Fig. 8.
第一确定子单元1401可以根据表1中任意一个节点的邻接的节点包括的节点个数,确定出NE7只有一个邻接的节点,即NE5。第一确定子单元1401还可根据表1确定NE14只有一个邻接的节点,即NE13。第一确定子单元1401可获知NE7和NE14属于所述第一子类节点。The first determining sub-unit 1401 may determine that the NE7 has only one adjacent node, that is, NE5, according to the number of nodes included in the adjacent nodes of any one of the nodes in Table 1. The first determining
所述第二功能:将所述网络中与所述第一非时钟源节点邻接的节点,作为所述第一链路集中与所述第一非时钟源节点邻接的节点。The second function is: a node in the network that is adjacent to the first non-clock source node, and a node that is adjacent to the first non-clock source node in the first link set.
由于所述第一非时钟源节点只有一个邻接的节点,因此,第一确定子单元1401将所述第一非时钟源节点唯一的一个邻接的节点作为所述第一链路集中与所述第一非时钟源节点邻接的节点,从而作为所述第一非时钟源节点的时钟注入节点。Since the first non-clock source node has only one contiguous node, the first determining sub-unit 1401 uses the contiguous node unique to the first non-clock source node as the first link set and the first A node that is not adjacent to the clock source node, thereby serving as a clock injection node of the first non-clock source node.
例如,NE7和NE14属于所述第一子类节点,若NE7为所述第一非时钟源节点,则第一确定子单元1401可将NE7邻接的NE5作为NE7的时钟注入节点。若NE14为所述第一非时钟源节点,则第一确定子单元1401可将NE14邻接的NE13作为NE14的时钟注入节点。For example, NE7 and NE14 belong to the first sub-class node. If NE7 is the first non-clock source node, the first determining sub-unit 1401 may inject NE5 adjacent to NE7 as a clock of NE7. If the
本发明实施例的所述控制设备还可以包括删除单元,在确定出所述第一子类节点后,所述删除单元用于在所述网络中删除所述第一子类节点以进行网络拓扑的更新,根据更新后的所述网络的拓扑结构确定出新的所述第一子
类节点。具体地,所述删除单元用于从所述网络的拓扑结构中删除所述第一非时钟源节点。例如,可根据表1确定出NE7只有一个邻接的节点,所述删除单元可以将NE7从所述网络的拓扑中删除,得到如图9所示的更新后的所述网络的拓扑结构。获取单元1301根据图9所示的更新后的网络的拓扑结构,可获得表2所示的拓扑信息。或者获取单元1301可对表1所示的拓扑信息进行更新,获得表2所示的拓扑信息。图2所示的拓扑信息与图9所示的网络的拓扑结构对应。The control device of the embodiment of the present invention may further include a deleting unit, after deleting the first sub-class node, the deleting unit is configured to delete the first sub-class node in the network to perform a network topology. Update, determining the new first child according to the updated topology of the network
Class node. Specifically, the deleting unit is configured to delete the first non-clock source node from a topology of the network. For example, it can be determined according to Table 1 that the NE7 has only one contiguous node, and the deleting unit can delete the NE7 from the topology of the network, and obtain the updated topology of the network as shown in FIG. 9. The obtaining
若第一确定子单元1401根据表2确定出所述网络中仅有一个与第一非时钟源节点邻接的节点,根据所述第一功能和所述第二功能对所述第一非时钟源节点的时钟注入节点进行设置。例如若所述NE5或NE14为第一确定子单元1401根据表2确定的第一非时钟源节点,则第一确定子单元1401可将NE3设置为NE5的时钟注入节点,第一确定子单元1401可将NE13设置为NE14的时钟注入节点。If the first determining
确定单元1302还可以用于,若确定出更新后的所述拓扑结构不包括所述第一子类节点,确定更新后的所述拓扑结构中的所述第二类节点。也就是说,若将所述网络中所述第一子类节点都删除后,根据剩余的拓扑结构确定所述第二类节点。The determining
本实施例中,若所述第一非时钟源节点属于所述第一子类节点,还可以在所述第一非时钟源节点的时钟注入节点距离第一时钟源节点的跳数较多时进行提示,所述第一时钟源节点是向所述第一非时钟源节点提供基准时钟信号的时钟源节点。具体地,所述控制设备还包括生成单元,确定单元1302还用于,确定出所述第一非时钟源节点的时钟注入节点距离所述第一时钟源节点的跳数,所述生成单元用于,若该跳数大于预设阈值时,生成提示信息。在具体实现时,确定单元1302可以确定出所述网络中的第一子类节点,将确定出的所述第一子类节点对应的变量R设置为-1,之后删除单元删除所述第一子类节点以更新所述网络的拓扑结构,确定单元1302根据更新后的所述网络的拓扑结构,确定出所述网络中新的所述第一子类节点,将新的所述第一子类节点对应的变量R设置为R-1。不断循环上述过程,直至所述网络中不再存在所述第一子类节点,根据所述第一子类节点对应的变量R计算所述第一子类节点距离所述第一子类节点对应的时钟源节点的跳数,第一子类节点中的任一个节点对应的时钟源节点是向所述任一个节点提供基准时钟信号的
时钟源节点。其中,若对应的变量R最小的所述第一子类节点中的任一个节点为第一节点,所述第一节点距离所述第一节点对应的时钟源节点的跳数为m+1,m为所述第一节点对应的时钟源节点与所述第节点之间的链状拓扑的数量,之后变量R每减1,距离所述第一子类节点对应的时钟源节点的跳数则加1。In this embodiment, if the first non-clock source node belongs to the first sub-class node, the clock injection node of the first non-clock source node may be more than the hop count of the first clock source node. The first clock source node is a clock source node that provides a reference clock signal to the first non-clock source node. Specifically, the control device further includes a generating unit, where the determining
在第二种方式中,第一确定子单元1401具体用于:执行第三功能和第四功能,还用于执行第五功能或者第六功能。In the second mode, the first determining sub-unit 1401 is specifically configured to perform the third function and the fourth function, and is also used to perform the fifth function or the sixth function.
所述第三功能:将所述n个时钟源节点作为树根。The third function: using the n clock source nodes as a tree root.
如图8所示的网络,第一确定子单元1401可将BITS1、BITS2和BITS3作为所述树根。As shown in the network of FIG. 8, the first determining
所述第四功能:根据所述树根和所述网络的拓扑结构,获得最短路径树。The fourth function: obtaining a shortest path tree according to the tree root and the topology of the network.
其中,本实施例中将所述n个时钟源节点作为所述树根。可以通过广度优先搜索算法等方式生成所述最短路径树。例如对于图8中所示的拓扑结构,生成如图10所示的最短路径树。The n clock source nodes are used as the root of the tree in this embodiment. The shortest path tree may be generated by a breadth-first search algorithm or the like. For example, for the topology shown in FIG. 8, the shortest path tree as shown in FIG. 10 is generated.
由于在实际网络中通常包括大量的基站,而基站属于所述第一子类节点,因此所述控制设备还可以包括删除单元,在执行所述第三功能之前,所述删除单元用于,删除所述拓扑结构中的所述第一子类节点,所述第四功能中生成删除了所述第一子类节点的拓扑结构的最短路径树,从而简化了所述网络拓扑,减少生成所述最短路径树时的工作量。The control device may further include a deleting unit, before deleting the unit, the deleting unit is configured to delete The first sub-class node in the topology, in the fourth function, generating a shortest path tree in which the topology of the first sub-class node is deleted, thereby simplifying the network topology and reducing the generation of the The amount of work when the shortest path tree.
所述第五功能:若所述树根的子节点仅包括所述第一非时钟源节点,则将所述第一非时钟源的父节点作为所述第一链路集中与所述第一非时钟源节点邻接的节点。The fifth function: if the child node of the tree root only includes the first non-clock source node, the parent node of the first non-clock source is used as the first link set and the first A node that is not adjacent to the clock source node.
若图10所示的网络中,所述树根包括BITS1、BITS2、BITS、NE1、NE2、NE3、NE4、NE5、NE6和NE7,则所述树根的子节点仅包括NE8。若所述第一非时钟源节点为NE8,则第一确定子单元1401将NE8的父节点NE6作为所述第一链路集中与所述第一非时钟源节点邻接的节点,即NE6为NE8的时钟注入节点。In the network shown in FIG. 10, the tree root includes BITS1, BITS2, BITS, NE1, NE2, NE3, NE4, NE5, NE6, and NE7, and the child nodes of the tree root only include NE8. If the first non-clock source node is NE8, the first determining sub-unit 1401 uses the parent node NE6 of the NE8 as a node adjacent to the first non-clock source node in the first link set, that is, NE6 is NE8. The clock is injected into the node.
所述第六功能:若所述树根的子节点包括所述第一非时钟源节点和第一子节点,即所述第一非时钟源节点和所述第一子节点均是所述树根的子节点,则确定第一子枝和第二子枝不包含满足第一条件的节点后,将所述第一非时 钟源节点的父节点作为所述第一链路集中与所述第一非时钟源节点邻接的节点。The sixth function: if the child node of the tree root includes the first non-clock source node and the first child node, that is, the first non-clock source node and the first child node are the tree a child node of the root, determining that the first child branch and the second child branch do not include a node that satisfies the first condition, and the first non-time The parent node of the clock source node serves as a node adjacent to the first non-clock source node in the first link set.
所述第一子节点为非时钟源节点,所述最短路径树包括所述第一子枝和所述第二子枝,所述第一子枝包括所述第一非时钟源节点,所述第二子枝包括所述第一子节点。其中,所述第一子枝可以为从所述第一非时钟源节点逐级遍历子节点,直至到达所述最短路径树的第一末端节点的树枝,即从所述第一非时钟源开始,逐级沿着所述第一非时钟源节点的子节点、所述第一非时钟源节点的子节点的子节点、直至到达所述第一末端节点的树枝,其中所述第一末端节点为没有子节点的节点。类似的,所述第二子枝可以为从所述第一子节点逐级遍历子节点,直至到达所述最短路径树的第二末端节点的树枝,其中所述第二末端节点为没有子节点的节点。The first child node is a non-clock source node, the shortest path tree includes the first child branch and the second child branch, and the first child branch includes the first non-clock source node, The second sub-branch includes the first sub-node. The first sub-branch may be a sub-level traversing the sub-node from the first non-clock source node until reaching a branch of the first end node of the shortest path tree, that is, starting from the first non-clock source Stepping along a child node of the first non-clock source node, a child node of the child node of the first non-clock source node, and reaching a branch of the first end node, wherein the first end node A node that has no children. Similarly, the second sub-branch may be a branch that traverses the child node step by step from the first child node until reaching a second end node of the shortest path tree, where the second end node has no child nodes Node.
若图10所示的网络中,所述树根包括BITS1、BITS2、BITS3、NE1、NE2、NE3、NE4、NE5和NE6,则所述树根的子节点包括NE8和NE7。若所述第一非时钟源节点为NE8,第一子节点为NE7,则所述第一子枝为从NE8逐级遍历子节点的树枝,具体遍历过程包括:得到NE8的子节点为NE9和NE10,NE9的子节点为NE11,NE10的子节点为NE12,NE12的子节点为NE13,NE13的子节点为NE14,则所述第一子枝包括:NE8、NE9、NE10、NE11、NE12、NE13和NE14。所述第二子枝为从NE7逐级遍历子节点的树枝,所述NE7没有子节点,则所述第二子枝包括NE7。In the network shown in FIG. 10, the tree root includes BITS1, BITS2, BITS3, NE1, NE2, NE3, NE4, NE5, and NE6, and the child nodes of the tree root include NE8 and NE7. If the first non-clock source node is NE8 and the first child node is NE7, the first sub-branch is a branch that traverses the child node step by step from the NE8. The specific traversal process includes: obtaining the child node of the NE8 as NE9 and The child nodes of NE10 and NE9 are NE11, the child nodes of NE10 are NE12, the child nodes of NE12 are NE13, and the child nodes of NE13 are NE14. The first sub-branch includes NE8, NE9, NE10, NE11, NE12, and NE13. And NE14. The second sub-branch is a branch that traverses the child node step by step from the NE7, and the NE7 has no child node, and the second sub-branch includes the NE7.
第一确定子单元1401可以确定所述第一子枝和所述第二子枝上是否包含满足所述第一条件的节点,所述第一条件为邻接的两个节点分别属于所述第一子枝和所述第二子枝,若确定出不包含满足所述第一条件的节点,则说明所述第一子枝和所述第二子枝不相连,进一步说明所述第一非时钟源节点属于所述第一类节点,因此将所述第一非时钟源节点的父节点作为所述第一链路集中与所述第一非时钟源节点邻接的节点,从而作为所述第一非时钟源节点的时钟注入节点。例如在图10中,将NE8的父节点NE6作为所述第一链路集中与NE8邻接的节点,从而将NE6作为NE8的时钟注入节点。The first determining
本发明实施例确定出所述第一非时钟源节点的时钟注入节点后,可以将所述第一非时钟源节点加入到所述树根中以对所述树根进行更新,因此第一确定子单元1401中可以根据更新后的所述树根重新生成所述最短路径树,从而确定出新的所述第一非时钟源节点的时钟注入节点。具体地,所述控制设 备还包括:第一添加单元,用于将所述第一非时钟源节点添加到所述树根中。After the clock injection node of the first non-clock source node is determined, the first non-clock source node may be added to the tree root to update the tree root, so the first determination is performed. The sub-unit 1401 may re-generate the shortest path tree according to the updated tree root, thereby determining a new clock injection node of the first non-clock source node. Specifically, the control device The method further includes: a first adding unit, configured to add the first non-clock source node to the tree root.
下面说明本发明实施例中的第四确定子单元1502如何确定出所述第一非时钟源节点位于的链状拓扑。本发明实施例提供两种具体的确定方式,下面分别说明。The following describes how the fourth determining sub-unit 1502 in the embodiment of the present invention determines the chain topology in which the first non-clock source node is located. The embodiments of the present invention provide two specific determination manners, which are respectively described below.
第一种方式,本发明实施例的所述网络还包括与所述第一非时钟源节点邻接的第二非时钟源节点,第四确定子单元1502具体用于:执行第七功能、第八功能和第九功能。The first mode, the network of the embodiment of the present invention further includes a second non-clock source node adjacent to the first non-clock source node, and the fourth determining sub-unit 1502 is specifically configured to: perform the seventh function, the eighth Features and ninth features.
所述第七功能:将所述n个时钟源节点作为树根。The seventh function: using the n clock source nodes as a tree root.
所述第八功能:根据所述树根和所述网络的拓扑结构,获得最短路径树。The eighth function: obtaining a shortest path tree according to the tree root and the topology of the network.
所述最短路径树包括第三子枝和第四子枝,所述第三子枝为从第二子节点逐级遍历子节点到达所述第一非时钟源节点的树枝,所述第四子枝为从第三子节点逐级遍历子节点到达所述第二非时钟源节点的树枝,所述第二子节点和所述第三子节点是所述树根的子节点。The shortest path tree includes a third sub-branch and a fourth sub-branch, and the third sub-branch is a branch that traverses the sub-node from the second sub-node to the first non-clock source node step by step, the fourth sub-branch The branch is a branch that traverses the child node step by step from the third child node to the second non-clock source node, and the second child node and the third child node are child nodes of the tree root.
若图10所示的网络中,所述树根包括BITS1、BITS2、BITS3、NE1、NE2、NE3、NE4、NE5、NE6、NE7和NE8。则所述树根的子节点包括NE9和NE10。若所述第一非时钟源节点为NE11,所述第二非时钟源节点为NE13,则所述第三子枝为从NE9逐渐遍历子节点到达NE11的子枝,具体遍历过程包括:得到NE9的子节点为NE11,则所述第三子枝包括NE9和NE11,所述第四子枝为从NE10逐级遍历达到NE13的子枝,具体遍历过程包括:得到NE10的子节点为NE12,得到NE12的子节点为NE13,则所述第四子枝包括NE10、NE12和NE13。In the network shown in FIG. 10, the root of the tree includes BITS1, BITS2, BITS3, NE1, NE2, NE3, NE4, NE5, NE6, NE7, and NE8. Then the child nodes of the tree root include NE9 and NE10. If the first non-clock source node is NE11 and the second non-clock source node is NE13, the third sub-branch is a sub-branch that gradually traverses the child node from NE9 to reach NE11, and the specific traversal process includes: obtaining NE9 The child node is NE11, and the third child branch includes the NE9 and the NE11, and the fourth child branch is a child branch that traverses the NE13 step by step from the NE10. The specific traversal process includes: obtaining the child node of the NE10 as the NE12, The child node of NE12 is NE13, and the fourth sub-branch includes NE10, NE12, and NE13.
所述第九功能:确定仅有所述第一非时钟源节点和所述第二非时钟源节点满足第二条件,获得第一链状拓扑,所述第一链状拓扑包括所述第三子枝、所述第四子枝和第一链路,所述第一链路为所述第一非时钟源节点和所述第二非时钟源节点之间的链路。The ninth function: determining that only the first non-clock source node and the second non-clock source node satisfy the second condition, obtaining a first chain topology, the first chain topology including the third a child branch, the fourth child branch, and a first link, where the first link is a link between the first non-clock source node and the second non-clock source node.
所述第四子确定单元可以确定所述第三子枝和所述第四子枝上是否具有满足所述第二条件的节点,所述第二条件为邻接的两个节点分别属于所述第三子枝和所述第四子枝,若确定出仅有所述第一非时钟源节点和所述第二非时钟源节点满足所述第二条件,则说明所述第三子枝和所述第四子枝通过所述第一非时钟源节点和所述第二非时钟源节点相连,并且所述第一链状拓扑 和所述树根构成最小环,获得所述第一链状拓扑。例如在图10中,所述第四子确定单元确定出所述第三子枝和所述第四子枝上仅有NE11和NE13满足所述第二条件时,则获得所述第一链状拓扑,所述第一链状拓扑包括依次经过NE9、NE11、NE13、NE12和NE10的链路。The fourth sub-determining unit may determine whether the third sub-branch and the fourth sub-branch have nodes satisfying the second condition, where the second condition is that two adjacent nodes belong to the first The third sub-branch and the fourth sub-branch, if it is determined that only the first non-clock source node and the second non-clock source node satisfy the second condition, the third sub-branch The fourth sub-branch is connected by the first non-clock source node and the second non-clock source node, and the first chain topology And the tree root constitutes a minimum ring, and the first chain topology is obtained. For example, in FIG. 10, when the fourth sub-determining unit determines that only NE11 and NE13 on the third sub-branch and the fourth sub-branch meet the second condition, the first chain is obtained. Topology, the first chain topology includes links passing through NE9, NE11, NE13, NE12, and NE10 in sequence.
本发明实施例在获得所述第一链状拓扑之后,可以对所述第一链状拓扑上的每一个节点都进行时钟跟踪配置,并将所述第一链状拓扑加入到所述树根中以对所述树根进行更新,所述第四子确定单元可以根据更新后的所述树根重新生成所述最短路径树,从而确定出新的所述第一非时钟源节点的时钟注入节点。具体地,所述控制设备还可以包括:第二添加单元,用于将所述第一链状拓扑添加到所述树根中。After obtaining the first chain topology, the embodiment of the present invention may perform clock tracking configuration on each node in the first chain topology, and add the first chain topology to the tree root. In order to update the root of the tree, the fourth sub-determining unit may regenerate the shortest path tree according to the updated root, thereby determining a clock injection of the new first non-clock source node. node. Specifically, the control device may further include: a second adding unit, configured to add the first chain topology to the tree root.
第二种方式,本发明实施例的所述网络还包括第三非时钟源节点和第四非时钟源节点,所述第三非时钟源节点与所述第四非时钟源节点邻接,第四确定子单元1502具体用于:执行第十功能、第十一功能和第十二功能。In a second mode, the network of the embodiment of the present invention further includes a third non-clock source node and a fourth non-clock source node, where the third non-clock source node is adjacent to the fourth non-clock source node, and fourth The determining
所述第十功能:将所述n个时钟源节点作为树根。The tenth function: using the n clock source nodes as a tree root.
所述第十一功能:根据所述树根和所述网络的拓扑结构,获得最短路径树。The eleventh function: obtaining a shortest path tree according to the tree root and the topology of the network.
所述最短路径树包括第五子枝和第六子枝,所述第五子枝为从第四子节点逐级遍历子节点到达所述第三非时钟源节点的树枝,所述第五子枝包括所述第一非时钟源节点,所述第六子枝为从第五子节点逐级遍历子节点到达所述第四非时钟源节点的树枝,所述第四子节点和所述第五子节点是所述树根的子节点。The shortest path tree includes a fifth sub-branch and a sixth sub-branch, and the fifth sub-branch is a branch that traverses the sub-node from the fourth sub-node to the third non-clock source node step by step, the fifth sub-branch The branch includes the first non-clock source node, and the sixth sub-branch is a branch that traverses the child node from the fifth child node to the fourth non-clock source node step by step, the fourth child node and the first The five child nodes are child nodes of the tree root.
若图10所示的网络中,所述树根包括BITS1、BITS2、BITS3、NE1、NE2、NE3、NE4、NE5、NE6、NE7和NE8。则所述树根的子节点包括NE9和NE10。若所述第一非时钟源节点为NE9,所述第三非时钟源节点为NE11,所述第四非时钟源节点为NE13,则所述第五子枝为从NE9逐渐遍历子节点到达NE11的子枝,具体遍历过程包括:得到NE9的子节点为NE11,则所述第五子枝包括NE9和NE11,所述第六子枝为从NE10逐级遍历达到NE13的子枝,具体遍历过程包括:得到NE10的子节点为NE12,得到NE12的子节点为NE13,则所述第六子枝包括NE10、NE12和NE13。In the network shown in FIG. 10, the root of the tree includes BITS1, BITS2, BITS3, NE1, NE2, NE3, NE4, NE5, NE6, NE7, and NE8. Then the child nodes of the tree root include NE9 and NE10. If the first non-clock source node is NE9, the third non-clock source node is NE11, and the fourth non-clock source node is NE13, the fifth sub-branch is gradually traversing the child node from NE9 to reach NE11. The traversal process includes: obtaining the child node of NE9 as NE11, and the fifth sub-branch includes NE9 and NE11, and the sixth sub-branch is a sub-branch that is traversed from NE10 to NE13 step by step, and the specific traversal process The method includes: obtaining a child node of NE10 as NE12, and obtaining a child node of NE12 as NE13, and the sixth sub-branch includes NE10, NE12, and NE13.
所述第十二功能:确定仅有所述第三非时钟源节点和所述第四非时钟源 节点满足第三条件,获得第二链状拓扑,所述第二链状拓扑包括所述第五子枝、所述第六子枝和第二链路,所述第二链路为所述第三非时钟源节点和所述第四非时钟源节点之间的链路。The twelfth function: determining that only the third non-clock source node and the fourth non-clock source are The node satisfies the third condition, and obtains a second chain topology, where the second chain topology includes the fifth sub-branch, the sixth sub-branch, and the second link, where the second link is the A link between the three non-clock source nodes and the fourth non-clock source node.
第四确定子单元1502可以确定所述第五子枝和所述第六子枝上是否具有满足所述第三条件的节点,所述第三条件为邻接的两个节点分别属于所述第五子枝和所述第六子枝,若确定出仅有所述第三非时钟源节点和所述第四非时钟源节点满足所述第三条件,则说明所述第五子枝和所述第六子枝通过所述第三非时钟源节点和所述第四非时钟源节点相连,并且所述第二链状拓扑和所述树根构成最小环,则获得所述第二链状拓扑。例如在图10中,第四确定子单元1502确定出所述第五子枝和所述第六子枝上仅有NE11和NE13满足所述第三条件时,获得所述第二链状拓扑,所述第二链状拓扑包括依次经过NE9、NE11、NE13、NE12和NE10的链路。The fourth determining
本发明实施例在获得所述第二链状拓扑之后,可以对所述第二链状拓扑上的每一个节点都进行时钟跟踪配置,并将所述第二链状拓扑加入到所述树根中以对所述树根进行更新,第四确定子单元1502可以根据更新后的所述树根重新生成所述最短路径树,从而确定出新的所述第一非时钟源节点的时钟注入节点。具体地,所述控制设备还可以包括:第三添加单元,用于将所述第二链状拓扑添加到所述树根中。After obtaining the second chain topology, the embodiment of the present invention may perform clock tracing configuration on each node in the second chain topology, and add the second chain topology to the tree root. In order to update the root of the tree, the fourth determining sub-unit 1502 may regenerate the shortest path tree according to the updated root, thereby determining a new clock injection node of the first non-clock source node. . Specifically, the control device may further include: a third adding unit, configured to add the second chain topology to the tree root.
在本发明实施例中,若所述网络包括n个时钟源节点和m个非时钟源节点,确定单元1302可以根据生成最短路径树的方式,获得所述m个非时钟源节点中各非时钟源节点的时钟注入节点,具体方式请参见方法实施例的相关之处,这里不再赘述。In the embodiment of the present invention, if the network includes n clock source nodes and m non-clock source nodes, the determining
在本实施例的第五确定子单元1503具体确定时钟注入节点的方式,即可以采取跳数优先的方式,也可以采取环网优先的方式。下面具体说明。The fifth determining sub-unit 1503 in this embodiment specifically determines the manner in which the clock is injected into the node, that is, the hop-first priority mode or the ring-network priority mode may be adopted. The details are described below.
首先说明跳数优先的方式,具体地,第五确定子单元1503具体用于:执行第十三功能、第十四功能和第十五功能。First, the manner in which the hop count is prioritized is described. Specifically, the fifth determining sub-unit 1503 is specifically configured to perform the thirteenth function, the fourteenth function, and the fifteenth function.
所述第十三功能:确定第一邻接节点和第二邻接节点。The thirteenth function: determining the first neighboring node and the second neighboring node.
其中,所述第一邻接节点在第一方向上邻接所述第一非时钟源节点,即所述第一非时钟源节点在所述第一方向上邻接的节点为所述第一邻接节点,所述第二邻接节点在第二方向上邻接所述第一非时钟源节点,即所述第一非 时钟源节点在所述第二方向上邻接的节点为所述第二邻接节点。所述第一方向为沿着所述链状拓扑从所述链状拓扑的起始节点到达终止节点的方向,所述第二方向与所述第一方向的方向相反。所述链状拓扑的起始节点为表示所述链状拓扑的起始位置的节点,所述链状拓扑的终止节点为表示所述链状拓扑的终止位置的节点。The first adjacent node is adjacent to the first non-clock source node in a first direction, that is, the node adjacent to the first non-clock source node in the first direction is the first adjacent node, The second adjacent node abuts the first non-clock source node in a second direction, that is, the first non- The node adjacent to the clock source node in the second direction is the second adjacent node. The first direction is a direction from the start node of the chain topology to the end node along the chain topology, and the second direction is opposite to the direction of the first direction. The starting node of the chain topology is a node representing a starting position of the chain topology, and the terminating node of the chain topology is a node indicating a termination position of the chain topology.
例如在图10中NE9、NE11、NE13、NE12和NE10构成的链状拓扑中,NE10可以为所述链状拓扑的起始节点,NE9可以作为所述链状拓扑的终止节点。则所述第一方向为沿着所述链状拓扑从NE10到NE9的方向,所述第二方向为沿着所述链状拓扑从NE9到NE10的方向,并且所述第一非时钟源节点NE11在所述第一方向上邻接的第一邻接节点为NE9,NE11在所述第二方向上邻接的第二邻接节点为NE13。For example, in the chain topology formed by NE9, NE11, NE13, NE12, and NE10 in FIG. 10, NE10 may be the starting node of the chain topology, and NE9 may serve as the terminating node of the chain topology. The first direction is a direction from NE10 to NE9 along the chain topology, the second direction is a direction from NE9 to NE10 along the chain topology, and the first non-clock source node The first adjacent node adjacent to the NE11 in the first direction is NE9, and the second adjacent node adjacent to the NE11 in the second direction is NE13.
所述第十四功能:获得第一跳数和第二跳数,所述第一跳数是所述第一邻接节点距离第一时钟源节点的跳数,所述第一时钟源节点是向所述第一邻接节点提供基准时钟信号的时钟源节点,所述第一跳数即所述第一时钟源节点输出的时钟信号到达所述第一邻接节点所经过的跳数。所述第二跳数是所述第二邻接节点距离第二时钟源节点的跳数,所述第二时钟源节点是向所述第二邻接节点提供基准时钟信号的时钟源节点,所述第二跳数即所述第二时钟源节点输出的时钟信号到达所述第二邻接节点所经过的跳数。其中所述n个时钟源节点中包括所述第一时钟源节点和所述第二时钟源节点,所述第一时钟源节点和所述第二时钟源节点可以相同,也可以不同。The fourteenth function: obtaining a first hop count and a second hop count, where the first hop count is a hop count of the first neighboring node from a first clock source node, and the first clock source node is a The first neighboring node provides a clock source node of the reference clock signal, where the first hop count is the number of hops that the clock signal output by the first clock source node reaches the first neighboring node. The second hop count is a hop count of the second neighboring node from the second clock source node, and the second clock source node is a clock source node that provides a reference clock signal to the second neighboring node, where the The second hop count is the number of hops that the clock signal output by the second clock source node reaches the second adjacent node. The first clock source node and the second clock source node may be the same or different.
若图10所示的网络中,所述第一时钟源节点BTIS3向所述第一邻接节点NE9提供基准时钟信号,所述第二时钟源节点BITS3向所述第二邻接节点NE13提供基准时钟信号,NE9的时钟跟踪路径为BITS3->NE6->NE8->NE9,第五确定子单元1503获得所述第一跳数为3跳,NE13的时钟跟踪路径为BITS3->NE6->NE8->NE9->NE11->NE13,第五确定子单元1503获得所述第二跳数为5跳。In the network shown in FIG. 10, the first clock source node BTIS3 provides a reference clock signal to the first adjacent node NE9, and the second clock source node BITS3 provides a reference clock signal to the second adjacent node NE13. The clock tracking path of the NE9 is BITS3->NE6->NE8->NE9, and the fifth determining sub-unit 1503 obtains the first hop count as 3 hops, and the clock tracking path of the NE13 is BITS3->NE6->NE8-> NE9->NE11->NE13, the fifth determining sub-unit 1503 obtains the second hop count as 5 hops.
所述第十五功能:若所述第一跳数小于或等于所述第二跳数,则将所述第一邻接节点作为所述第一非时钟源节点的时钟注入节点。The fifteenth function: if the first hop count is less than or equal to the second hop count, the first neighboring node is injected into the node as a clock of the first non-clock source node.
若确定出所述第一跳数小于或等于所述第二跳数,说明所述第一邻接节点距离所述第一时钟源节点的跳数,小于或等于所述第二邻接节点距离所述第二时钟源节点的跳数,由于时钟源节点输出的时钟信号,每经过一跳数, 信号精度就会降低,因此说明所述第一邻接节点输出的时钟信号的精度高于或者等于所述第二邻接节点输出的时钟信号的精度,因此将所述第一邻接节点作为所述第一非时钟源节点的时钟注入节点。If it is determined that the first hop count is less than or equal to the second hop count, the hop count of the first neighboring node from the first clock source node is less than or equal to the distance of the second neighboring node. The number of hops of the second clock source node, due to the clock signal output by the clock source node, each time a hop count is passed, The accuracy of the signal is reduced, so that the accuracy of the clock signal output by the first adjacent node is higher than or equal to the accuracy of the clock signal output by the second adjacent node, so the first adjacent node is used as the first The clock injection node of the non-clock source node.
本发明实施例可以根据跳数优先的方式,确定所述链状拓扑中各个节点的时钟注入节点,具体实现时可以从所述链状拓扑的一端开始,逐跳确定。In the embodiment of the present invention, the clock injection node of each node in the chain topology may be determined according to the hop count priority manner. The specific implementation may be determined from one end of the chain topology and determined hop by hop.
除了跳数优先的方式,本发明实施例还可以采取环网优先的方式选取时钟注入节点。具体地,第五确定子单元1503具体用于:执行第十八功能和第十九功能,还用于执行第十六功能或者第十七功能。In addition to the hop-first mode, the embodiment of the present invention may also adopt a ring network priority manner to select a clock injection node. Specifically, the fifth determining sub-unit 1503 is specifically configured to: perform the eighteenth function and the nineteenth function, and also perform the sixteenth function or the seventeenth function.
所述第十六功能:若确定出所述树根中仅包括一个所述链状拓扑的起始节点和终止节点的父节点,说明所述链状拓扑的起始节点的父节点和终止节点的父节点为同一节点,则将所述起始节点和终止节点的父节点作为所述链状拓扑的注入节点。The sixteenth function: if it is determined that the root node includes only one start node of the chain topology and a parent node of the termination node, indicating a parent node and a termination node of the start node of the chain topology The parent node is the same node, and the parent nodes of the start node and the terminating node are used as injection nodes of the chain topology.
若图10所示的网络中,所述链状拓扑包括NE9、NE11、NE13、NE12和NE10,所述链状拓扑的起始节点为NE10,所述链状拓扑的终止节点为NE9。NE9和NE10的父节点均为NE8,因此将NE8作为所述链状拓扑的注入节点。In the network shown in FIG. 10, the chain topology includes NE9, NE11, NE13, NE12, and NE10, the starting node of the chain topology is NE10, and the terminating node of the chain topology is NE9. The parent nodes of NE9 and NE10 are both NE8, so NE8 is used as the injection node of the chain topology.
所述第十七功能:若确定出所述树根中包括第一父节点和第二父节点,则获得第三跳数和第四跳数;若所述第三跳数小于或等于所述第四跳数,则将所述第一父节点作为所述链状拓扑的注入节点。The seventeenth function: if it is determined that the first parent node and the second parent node are included in the root of the tree, obtaining a third hop count and a fourth hop count; if the third hop count is less than or equal to the The fourth hop count uses the first parent node as an injection node of the chain topology.
其中,所述第一父节点为所述链状拓扑的起始节点和/或终止节点的父节点,所述第二父节点为所述链状拓扑的起始节点和/或终止节点的父节点,例如在图10中,所述链状拓扑包括NE1和NE2,NE1为所述链状拓扑的起始节点,NE2为所述链状拓扑的终止节点。NE1的父节点为所述第一父节点BITS1,NE2的父节点为所述第二父节点BITS2。The first parent node is a parent node of the chain topology and/or a parent node of a terminating node, and the second parent node is a parent node of the chain topology and/or a parent of the terminating node. Nodes, such as in FIG. 10, the chain topology includes NE1 and NE2, NE1 is the starting node of the chain topology, and NE2 is the terminating node of the chain topology. The parent node of NE1 is the first parent node BITS1, and the parent node of NE2 is the second parent node BITS2.
所述第三跳数是所述第一父节点距离第三时钟源节点的跳数,所述第四跳数是所述第二父节点距离第四时钟源节点跳数。所述第三时钟源节点是向所述第一父节点提供基准时钟信号的时钟源节点,所述第四时钟源节点是向所述第二父节点提供基准时钟信号的时钟源节点。若图10所示的网络中,所述起始节点NE1的父节点为所述第一父节点BITS1,所述终止节点NE2的父节点为所述第二父节点BITS2,所述第一父节点本身即为时钟源节点,因此所述第三时钟源节点即为所述第一父节点BITS1,同样,所述第四时钟源节 点即为所述第二父节点BITS2。所述第三跳数和所述第四跳数均为0。The third hop count is a hop count of the first parent node from the third clock source node, and the fourth hop count is a hop count of the second parent node from the fourth clock source node. The third clock source node is a clock source node that provides a reference clock signal to the first parent node, and the fourth clock source node is a clock source node that provides a reference clock signal to the second parent node. In the network shown in FIG. 10, the parent node of the originating node NE1 is the first parent node BITS1, and the parent node of the terminating node NE2 is the second parent node BITS2, the first parent node. The clock source node is itself, so the third clock source node is the first parent node BITS1, and the fourth clock source node is the same. The point is the second parent node BITS2. The third hop count and the fourth hop count are both zero.
若确定出所述第三跳数小于或等于所述第四跳数,说明所述第一父节点输出的时钟信号的精度高于或者等于所述第二父节点输出的时钟信号的精度,因此将所述第一父节点作为所述链状拓扑的注入节点。If it is determined that the third hop count is less than or equal to the fourth hop count, the accuracy of the clock signal output by the first parent node is higher than or equal to the accuracy of the clock signal output by the second parent node, The first parent node is used as an injection node of the chain topology.
所述第十八功能:确定所述第一非时钟源节点在第三方向上邻接的第三邻接节点,所述第三方向为沿着所述链状拓扑从所述第一非时钟源节点至所述注入节点的方向。The eighteenth function: determining that the first non-clock source node is adjacent to a third neighboring node in a third direction, and the third direction is from the first non-clock source node to the chain topology The direction of the injection node.
例如在图10中,所述链状拓扑包括NE9、NE11、NE13、NE12和NE10,NE8为所述链状拓扑的注入节点,所述第三方向为沿着所述链状拓扑从所述第一非时钟源节点NE11至所述注入节点NE8的方向,所述第一非时钟源节点NE11在所述第三方向上邻接的所述第三邻居节点为NE9。For example, in FIG. 10, the chain topology includes NE9, NE11, NE13, NE12, and NE10, NE8 is an injection node of the chain topology, and the third direction is along the chain topology from the first A direction of the non-clock source node NE11 to the injection node NE8, wherein the third non-clock source node NE11 is adjacent to the third neighbor node in the third direction.
所述第十九功能:将所述第三邻接节点,作为所述第一非时钟源的时钟注入节点。The nineteenth function: injecting the third adjacent node as a clock of the first non-clock source into a node.
若图10所示的网络中,将NE8作为NE9的时钟注入节点后,将NE9作为NE11的时钟注入节点,将NE11作为NE13的时钟注入节点,将NE13作为NE12的时钟注入节点,将NE12作为NE10的时钟注入节点。In the network shown in Figure 10, after NE8 is injected into the node as the clock of NE9, NE9 is injected into the node as the clock of NE11, and NE11 is injected into the node as the clock of NE13. NE13 is injected into the node as the clock of NE12, and NE12 is used as NE10. The clock is injected into the node.
在选取出所述链状拓扑中各个节点的时钟注入节点后,可以将所述链状拓扑中各个节点的时钟注入节点作为所述链状拓扑中各个节点的主用时钟注入节点;确定单元1302还可以用于获取所述链状拓扑的备用时钟注入节点。若所述主用时钟注入节点不可用,可以跟踪所述备用时钟注入节点输出的时钟信号。例如对图8所示的非时钟源节点进行的时钟跟踪配置可以如图12所示,图12中实线箭头表示主用时钟注入节点输出的时钟信号的方向,虚线箭头表示备用时钟注入节点输出的时钟信号的方向。After the clock injection nodes of the nodes in the chain topology are selected, the clock injection nodes of the nodes in the chain topology may be used as the primary clock injection nodes of the nodes in the chain topology; the determining
在本实施例中采用环网优先的方式选取时钟注入节点时,若所述第三跳数等于所述第四跳数,确定单元1302还可以用于根据对应的等级选取所述注入节点,从而便于对选取时钟注入节点的管理。具体地设置等级的方式可以包括:Level(BITSi)=a,其中Level(BITSi)表示任一个时钟源的等级,a为预设的初始值,该初始值可以为正数,例如a=1。Level(NE2)=Max(Level(r1),Level(r2))+1,其中Level(NE2)表示所述第二类节点的等级,Level(r1)表示所述链状拓扑的起始节点的父节点的等级,Level(r2)表示
所述链状拓扑的终止节点的父节点的等级,Max(Level(r1),Level(r2))表示Level(r1)和Level(r2)中的最大值。所述第二子类节点的等级为所述第二子类节点的父节点的等级+1。在选取所述注入节点时,比较所述第三跳数和所述第四跳数,若所述第三跳数等于所述第四跳数,从中选取等级较小的节点作为所述注入节点。其中确定单元1302还可以对所述链状拓扑的等级进行设置,例如所述链状拓扑的等级与所述链状拓扑上的节点的等级相同,以用于对所述网络是否存在时钟跟踪配置成环进行检测。In the embodiment, when the clock injecting node is selected in a loop-first manner, if the third hop count is equal to the fourth hop count, the determining
上面从模块化功能实体的角度对本发明实施例中的控制设备的实施例进行描述。下面将从硬件处理的角度对本发明实施例中的控制设备的实施例进行描述。The embodiment of the control device in the embodiment of the present invention is described above from the perspective of a modular functional entity. Embodiments of the control device in the embodiment of the present invention will be described below from the perspective of hardware processing.
请参阅图16,本发明实施例提供的另一种控制设备包括:处理器(processor)1601、通信接口(Communications Interface)1602、存储器(memory)1603和通信总线1604。本发明实施例提供的控制设备可以采用上述图2、图5、图6或图7对应的实施例中的方法。Referring to FIG. 16, another control device provided by an embodiment of the present invention includes a
处理器1601,通信接口1602,存储器1603通过总线1604完成相互间的通信。The
处理器1601,用于执行程序1605。The
具体地,程序1605可以包括程序代码,所述程序代码包括计算机操作指令。In particular, program 1605 can include program code, the program code including computer operating instructions.
处理器1601可能是一个中央处理器CPU,或者是特定集成电路ASIC(Application Specific Integrated Circuit),或者是被配置成实施本申请实施例的一个或多个集成电路。The
存储器1603,用于存放程序1605。存储器1603可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。程序1605用于执行以下步骤:The memory 1603 is configured to store the program 1605. The memory 1603 may include a high speed RAM memory and may also include a non-volatile memory such as at least one disk memory. Program 1605 is used to perform the following steps:
获取网络的拓扑结构,所述网络包括第一非时钟源节点和n个时钟源节点,所述n个时钟源节点用于提供所述网络进行时钟同步的基准时钟信号,所述n为大于或等于1的整数;Obtaining a topology of the network, where the network includes a first non-clock source node and n clock source nodes, where the n clock source nodes are used to provide a reference clock signal for clock synchronization of the network, where n is greater than or An integer equal to 1;
根据所述网络的拓扑结构,确定所述第一非时钟源节点的时钟注入节点,所述第一非时钟源节点的时钟注入节点用于向所述第一非时钟源节点提供用 于跟踪的时钟信号;Determining, according to a topology of the network, a clock injection node of the first non-clock source node, where a clock injection node of the first non-clock source node is configured to provide the first non-clock source node Clock signal for tracking;
根据所述第一非时钟源节点的时钟注入节点,对所述第一非时钟源节点进行时钟跟踪配置。And performing clock tracking configuration on the first non-clock source node according to the clock injection node of the first non-clock source node.
程序1605中各步骤的具体实现参见图13-图15所示实施例中的相应单元的实现方式,在此不赘述。For the specific implementation of the steps in the program 1605, refer to the implementation of the corresponding unit in the embodiment shown in FIG. 13 to FIG. 15 , and details are not described herein.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to 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.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (ROM, Read-Only) Memory, random access memory (RAM), disk or optical disk, and other media that can store program code.
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the embodiments are modified, or the equivalents of the technical features are replaced by the equivalents of the technical solutions of the embodiments of the present invention.
Claims (18)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510249225.5A CN106301643B (en) | 2015-05-15 | 2015-05-15 | A kind of method and control device for configurable clock generator tracking |
| CN201510249225.5 | 2015-05-15 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2016184369A1 true WO2016184369A1 (en) | 2016-11-24 |
Family
ID=57319379
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/082069 Ceased WO2016184369A1 (en) | 2015-05-15 | 2016-05-13 | Method for configuring clock tracking and control device |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106301643B (en) |
| WO (1) | WO2016184369A1 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106888122B (en) * | 2017-03-06 | 2020-07-14 | 烽火通信科技股份有限公司 | Method and system for synchronous network tracking configuration |
| CN108809833A (en) * | 2018-06-15 | 2018-11-13 | 烽火通信科技股份有限公司 | A method of automatically configuring synchronous network clock track path |
| CN113507723B (en) * | 2021-06-04 | 2022-04-29 | 烽火通信科技股份有限公司 | Detection method, device and equipment for 5G intelligent clock ring formation and storage medium |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101286835A (en) * | 2007-04-11 | 2008-10-15 | 华为技术有限公司 | A clock tracking method, device and network element equipment |
| CN102739389A (en) * | 2012-06-13 | 2012-10-17 | 中兴通讯股份有限公司 | Method and system for multi-GM (Grand Master) equipment time synchronization in packet transport network |
| WO2013044281A1 (en) * | 2011-09-29 | 2013-04-04 | Fts Computertechnik Gmbh | Method for a clock-rate correction in a network consisting of nodes |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102215101B (en) * | 2011-05-31 | 2015-09-16 | 中兴通讯股份有限公司 | A kind of clock synchronizing method and equipment |
| CN102833026B (en) * | 2012-08-31 | 2015-09-09 | 华为技术有限公司 | A kind of clock tracing method, system and network element |
-
2015
- 2015-05-15 CN CN201510249225.5A patent/CN106301643B/en active Active
-
2016
- 2016-05-13 WO PCT/CN2016/082069 patent/WO2016184369A1/en not_active Ceased
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101286835A (en) * | 2007-04-11 | 2008-10-15 | 华为技术有限公司 | A clock tracking method, device and network element equipment |
| WO2013044281A1 (en) * | 2011-09-29 | 2013-04-04 | Fts Computertechnik Gmbh | Method for a clock-rate correction in a network consisting of nodes |
| CN102739389A (en) * | 2012-06-13 | 2012-10-17 | 中兴通讯股份有限公司 | Method and system for multi-GM (Grand Master) equipment time synchronization in packet transport network |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106301643B (en) | 2018-10-30 |
| CN106301643A (en) | 2017-01-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101286835B (en) | Clock tracing method, device and network element device | |
| US10892884B2 (en) | Method for updating clock synchronization topology, method for determining clock synchronization path, and device | |
| US9722861B2 (en) | Fault-resilient broadcast, multicast, and unicast services | |
| US20150318941A1 (en) | Method for robust ptp synchronization with default 1588v2 profile | |
| CN106487558B (en) | A method and device for realizing expansion and contraction of access equipment | |
| CN103036787B (en) | A kind of network routing convergence treating method and apparatus | |
| WO2008141574A1 (en) | A method for establishing clock trace relationship and an equipment for computing clock trace relationship | |
| WO2015106618A1 (en) | Resource scheduling method and apparatus | |
| CN106059696B (en) | A kind of configuration method and device of synchronous net | |
| WO2013086833A1 (en) | Clock time synchronization source configuration method and device | |
| JP6204168B2 (en) | Transfer device, server, and route change method | |
| WO2016184369A1 (en) | Method for configuring clock tracking and control device | |
| WO2020125683A1 (en) | Method for determining port status and network node | |
| CN105827570A (en) | Method, device and system for time synchronization of aggregation network precision time protocol (PTP) | |
| CN106357501A (en) | Intelligent clock planning configuration method, device and integrated controller | |
| CN116094957A (en) | Port connection detection method, device and storage medium | |
| CN107547159A (en) | A kind of planing method and management equipment in clock tracing path | |
| WO2009000211A1 (en) | Method, network device and network system for network clock tracing | |
| WO2016004752A1 (en) | Method and device for determining end-to-end routing | |
| CN101247345B (en) | Splitting and Merging Methods of Routing Domains | |
| CN112910689B (en) | Clock network topology construction method and system | |
| CN103178919B (en) | The method and the network equipment of convergence master clock source | |
| CN108337145B (en) | Processing method and device of multi-loop network | |
| WO2016180232A1 (en) | Clock planning method and device | |
| CN100508431C (en) | Method of accelerating network convergence in intelligent exchange light network |
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: 16795856 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: 16795856 Country of ref document: EP Kind code of ref document: A1 |