Method and apparatus for tracking clock sources
First Claim
Patent Images
1. A method for tracking a clock source, the method comprising:
- classifying each of ports of a device into a slave candidate port, a master candidate port, or a slave and master candidate port, wherein at least one of the ports of the device is only classified as a master candidate port;
for each port of the device, calculating a Erbest, wherein the Erbest is a best clock source being tracked by the port of the device;
calculating a Ebest of the device only according to Erbests of the slave candidate ports and the slave and master candidate ports;
determining a best clock source of the device according the Ebest and a D0, wherein the D0 is the local clock of the device;
for each port of the device, determining a current state of the port according to the D0, the Ebest, the Erbest of the port and the classification of the port;
distributing the best clock source through a port which is determined as in a BMC_master state.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and an apparatus for tracking a clock source are disclosed. The method includes determining a best clock source to be tracked by a device according to a best clock source tracked by a slave candidate port in the device and distributing the best clock source tracked by the device through a master candidate port in a master state. Through the embodiments of the present disclosure, the clock source selection of the device converges quickly. Moreover, because the slave candidate port is determined according to the network planning, the planning of the transport network is observed.
-
Citations
8 Claims
-
1. A method for tracking a clock source, the method comprising:
-
classifying each of ports of a device into a slave candidate port, a master candidate port, or a slave and master candidate port, wherein at least one of the ports of the device is only classified as a master candidate port; for each port of the device, calculating a Erbest, wherein the Erbest is a best clock source being tracked by the port of the device; calculating a Ebest of the device only according to Erbests of the slave candidate ports and the slave and master candidate ports; determining a best clock source of the device according the Ebest and a D0, wherein the D0 is the local clock of the device; for each port of the device, determining a current state of the port according to the D0, the Ebest, the Erbest of the port and the classification of the port; distributing the best clock source through a port which is determined as in a BMC_master state. - View Dependent Claims (2, 3, 4)
-
-
5. An apparatus for tracking a clock source, the apparatus comprising:
-
a port sorting unit, configured to; classify each of ports of a device into a slave candidate port, a master candidate port, or a slave and master candidate port, wherein at least one of the ports of the device is only classified as a master candidate port; a clock source selecting unit, configured to; for each port of the device, calculate a Erbest, wherein the Erbest is a best clock source being tracked by the port of the device;
calculate a Ebest of the device only according to Erbests of the slave candidate ports and the slave and master candidate ports;
determine a best clock source of the device according the Ebest and a D0, wherein the D0 is the local clock of the device;a transmitting unit, configured to; for each port of the device, determine a current state of the port according to the D0, the Ebest, the Erbest of the port and the classification of the port;
distribute the best clock source through a port which is determined as in a BMC_master state. - View Dependent Claims (6, 7, 8)
-
Specification