IP Library Granted Patent US 9,391,766
Granted Patent B2
US 9,391,766 · App. 14/369,332 · Granted Jul 12, 2016

Global synchronization method and system based on packet switching system

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,391,766
App. No.
14/369,332
Granted
Jul 12, 2016
Kind
B2
Abstract

A global synchronization method based on a packet switching system includes that: a reference chip is selected; and each chip calibrates its own timer by taking the reference chip as a reference, wherein each chip sends a zero-point pulse or zero-point pulse cell to each high-speed link (serdes) connected with the chip, and feeds back a calibration cell in response to a zero-point pulse or zero-point pulse cell received through each high-speed link. Accordingly, a global synchronization system based on a packet switching system is also disclosed. The disclosure reduces the packet loss rate and increases the accuracy of calibration.

Claims (54)

1. A global synchronization method based on a packet switching system, the packet switching system comprising a plurality of chips, the method comprising:

selecting one of the chips as a reference chip; and

calibrating, by each of the other chips, its own timer by taking the reference chip as a reference,

wherein the method further comprises:

sending, by each chip, a zero-point pulse or zero-point pulse cell to each high-speed link connected with the chip, and feeding back a calibration cell in response to a zero-point pulse or zero-point pulse cell received through each high-speed link.

2. The method according to claim 1 , wherein the selected reference chip is a reference chip elected by all the chips, or a reference chip designated by a Central Processing Unit (CPU).

3. The method according to claim DU, wherein the step of calibrating, by each chip, its own timer by taking the reference chip as a reference comprises:

calibrating, by each chip, its own timer by using the received zero-point pulse or zero-point pulse cell when the chip is calibrated by a lower-level chip, or calibrating its own timer by using a difference value in the received calibration cell when the chip is calibrated by a higher-level chip or a same level chip, wherein a Switch Fabric level 1 (SF1) chip has a level lower than that of a Switch Fabric level 2 (SF2) chip and higher than that of a Switch Access (SA) chip.

4. The method according to claim 1 , wherein when the reference chip is an SF2 chip, the step of calibrating, by each SF2 chip, its own timer by taking the reference chip as a reference comprises:

setting, by the SF2 chip, an initial value of the reference chip of the SF2 chip as a maximum invalid value;

after all effective links connected with the SF2 chip receive a calibration cell, comparing, by the SF2 chip, C_SF2_IDs in all calibration cells received, wherein each of the C_SF2_IDs represents an SF2 chip from which a timing reference of the SF2 chip comes;

when all the C_SF2_IDs are greater than its own Identify (ID) of the SF2 chip, determining, by the SF2 chip, that the SF2 chip is a reference clock, and carrying out no calibration on its own timer;

when its own ID of the SF2 chip is not minimum, selecting, by the SF2 chip, a link to which a minimum C_SF2_ID of the received C_SF2_IDs corresponds, to calibrate its own timer; and

when its own ID of the SF2 chip is not minimum and a minimum C_SF2_ID is received through a plurality of links in the all effective links, selecting, by the SF2 chip, from the plurality of links, a link an opposite terminal chip of which has a minimum SRC_ID to calibrate its own timer.

5. The method according to claim 4 , further comprising:

sending, by the SF2 chip, a calibration cell to each high-speed link, wherein a P_SF2_ID in the calibration cell is filled with the ID of the SF2 chip and the calibration cell includes a measured difference value Diff_t.

6. The method according to claim 1 , wherein when the reference chip is an SF2 chip, the step of calibrating, by each SF1 chip, its own timer by taking the reference chip as a reference comprises:

setting, by the SF1 chip, an initial value of the reference chip of the SF1 chip as a maximum invalid value;

after all effective links connected with the SF1 chip receive a calibration cell, comparing, by the SF1 chip, the received calibration cells;

when a P_SF2_ID or C_SF2_ID of the calibration cell on a link in the all effective links is minimum, selecting, by the SF1 chip, the link to calibrate its own timer, wherein the P_SF2_ID represents an SF2 chip which is directly connected with the SF1 chip through a physical link and has a minimum ID, and the C_SF2_ID represents an SF2 chip from which a timing reference of the SF1 chip comes; and

when a minimum P_SF2_ID or C_SF2_ID is received through a plurality of links in the all effective links and the plurality of links have different types of opposite terminal chips, selecting, by the SF1 chip, from the plurality of links, a link an opposite terminal chip of which is an SF2 chip to calibrate its own timer.

7. The method according to claim 6 , further comprising:

after the SF1 chip determines its own reference chip, filling, by the SF1 chip, the P_SF2_ID or C_SF2_ID of the reference chip into a C_SF2_ID field, sending the C_SF2_ID field to all SF2 chips connected with the SF1 chip, filling the SF2 chip physically connected with the SF1 chip and having the minimum ID into a P_SF2_ID field, and sending the P_SF2_ID field to all SA chips connected with the SF1 chip; and when the SF1 chip is disconnected with all SF2 chips connected with the SF1 chip, filling the maximum invalid value into the P_SF2_ID field.

8. The method according to claim 1 , wherein when the reference chip is an SF2 chip or SA chip, the step of calibrating, by each SA chip, its own timer by taking the reference chip as a reference comprises:

setting, by the SA chip, an initial value of the reference chip of the SA chip as a maximum invalid value;

after all effective links connected with the SA chip receive a calibration cell, comparing, by the SA chip, the received calibration cells;

when an opposite terminal chip of the SA chip is an SF1 chip or SF2 chip, comparing, by the SA chip, P_SF2_IDs in the received calibration cells, selecting a link corresponding to a minimum P_SF2_ID to calibrate its own timer, and recording the minimum P_SF2_ID as a reference chip of the SA chip after the calibration;

when an opposite terminal chip of the SA chip is an SF1 chip or SF2 chip and a minimum P_SF2_ID is received through a plurality of links in the all effective links, selecting, by the SA chip, from the plurality of links, a link an opposite terminal chip of which has a minimum SRC_ID to calibrate its own timer, and recording the minimum P_SF2_ID as the reference chip of the SA chip after the calibration; and

when an opposite terminal chip of the SA chip is an SA chip, comparing, by the SA chip, all received SRC_IDs, using a minimum SRC_ID as a reference to calibrate its own timer, and recording the minimum SRC_ID as its own reference chip after the calibration; and when the received minimum SRC_ID is greater than an ID of the SA chip, determining, by the SA chip, that the SA chip is a reference clock, and carrying out no calibration on its own timer.

9. The method according to claim 8 , further comprising: after the SA chip determines its own reference chip, filling, by the SA chip, the P_SF2_ID or SRC_ID of the reference chip into a C_SF2_ID field, measuring a difference value Diff_Time, and sending a calibration cell including the difference value Diff_Time to each high-speed link connected with the SA chip.

10. A global synchronization system based on a packet switching system, comprising a plurality of chips which contain a reference chip and at least one another chip which calibrates its own timer by taking the reference chip as a reference,

wherein each chip is configured to: calibrate its own timer by using the received zero-point pulse or zero-point pulse cell when the chip is calibrated by a lower-level chip, or calibrate its own timer by using a difference value in the received calibration cell when the chip is calibrated by a higher-level chip or a same level chip, wherein a Switch Fabric level 1 (SF1) chip has a level lower than that of a Switch Fabric level 2 (SF2) chip and higher than that of a Switch Access (SA) chip.

11. The system according to claim 10 , wherein the reference chip is elected by all the chips or designated by a Central Processing Unit (CPU).

12. The system according to claim 10 , wherein each chip is configured to: calibrate its own timer by using the received zero-point pulse or zero-point pulse cell when the chip is calibrated by a lower-level chip, or calibrate its own timer by using a difference value in the received calibration cell when the chip is calibrated by a higher-level chip or a same level chip, wherein a Switch Fabric level 1 (SF1) chip has a level lower than that of a Switch Fabric level 2 (SF2) chip and higher than that of a Switch Access (SA) chip.

13. The system according to claim 10 , wherein when the reference chip is an SF2 chip, each SF2 chip is configured to:

set an initial value of the reference chip of the SF2 chip as a maximum invalid value;

after all effective links connected with the SF1 chip receive a calibration cell, compare C_SF2_IDs in all calibration cells received, wherein each of the C_SF2_IDs represents an SF2 chip from which a timing reference of the SF2 chip comes;

when all the C_SF2_IDs are greater than its own Identify (ID) of the SF2 chip, determine that the SF2 chip is a reference clock, and carry out no calibration on its own timer;

when its own ID of the SF2 chip is not minimum, select a link to which a minimum C_SF2_ID of the received C_SF2_IDs corresponds, to calibrate its own timer; and

when its own ID of the SF2 chip is not minimum and a minimum C_SF2_ID is received through a plurality of links in the all effective links, select, from the plurality of links, a link an opposite terminal chip of which has a minimum SRC_ID to calibrate its own timer.

14. The system according to claim 13 , wherein the SF2 chip is further configured to send a calibration cell to each high-speed link, wherein a P_SF2_ID in the calibration cell is filled with the ID of the SF2 chip and the calibration cell includes a measured difference value Diff_t.

15. The system according to claim 10 , wherein when the reference chip is an SF2 chip, each SF1 chip is configured to:

set an initial value of the reference chip of the SF1 chip as a maximum invalid value;

after all effective links connected with the SF2 chip receive a calibration cell, compare the received calibration cells;

when a P_SF2_ID or C_SF2_ID of the calibration cell on a link in the all effective links is minimum, select the link to calibrate its own timer, wherein the P_SF2_ID represents an SF2 chip which is directly connected with the SF1 chip through a physical link and has a minimum ID, and the C_SF2_ID represents an SF2 chip from which a timing reference of the SF1 chip comes; and

when a minimum P_SF2_ID or C_SF2_ID is received through a plurality of links in the all effective links and the plurality of links have different types of opposite terminal chips, select, from the plurality of links, a link an opposite terminal chip of which is an SF2 chip to calibrate its own timer.

16. The system according to claim 15 , wherein the SF1 chip is further configured to: after the SF1 chip determines its own reference chip, fill the P_SF2_ID or C_SF2_ID of the reference chip into a C_SF2_ID field, send the C_SF2_ID field to all SF2 chips connected with the SF1 chip, fill the SF2 chip physically connected with the SF1 chip and having the minimum ID into a P_SF2_ID field, and send the P_SF2_ID field to all SA chips connected with the SF1 chip; and when the SF1 chip is disconnected with all SF2 chips connected with the SF1 chip, fill the maximum invalid value into the P_SF2_ID field.

17. The system according to claim 10 , wherein when the reference chip is an SF2 chip or SA chip, each SA chip is configured to:

set an initial value of the reference chip of the SA chip as a maximum invalid value;

after all effective links connected with the SA chip receive a calibration cell, compare the received calibration cells;

when an opposite terminal chip of the SA chip is an SF1 chip or SF2 chip, compare P_SF2_IDs in the received calibration cells, select a link corresponding to a minimum P_SF2_ID to calibrate its own timer, and record the minimum P_SF2_ID as a reference chip of the SA chip after the calibration;

when an opposite terminal chip of the SA chip is an SF1 chip or SF2 chip and a minimum P_SF2_ID is received through a plurality of links in the all effective links, select, from the plurality of links, a link an opposite terminal chip of which has a minimum SRC_ID to calibrate its own timer, and record the minimum P_SF2_ID as the reference chip of the SA chip after the calibration; and

when an opposite terminal chip of the SA chip is an SA chip, compare all received SRC_IDs, use a minimum SRC_ID as a reference to calibrate its own timer, and record the minimum SRC_ID as its own reference chip after the calibration; and when the received minimum SRC_ID is greater than an ID of the SA chip, determine that the SA chip is a reference clock, and carry out no calibration on its own timer.

18. The system according to claim 17 , wherein the SA chip is further configured to: after the SA chip determines its own reference chip, fill the P_SF2_ID or SRC_ID of the reference chip into a C_SF2_ID field, measure a difference value Diff_Time, and send a calibration cell including the difference value Diff_Time to each high-speed link connected with the SA chip.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 16, 2023
From: ZTE CORPORATION
To: SANECHIPS TECHNOLOGY CO., LTD.
Reel/Frame 062777/0001 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 7, 2015
From: HUANG, WEI
To: ZTE CORPORATION
Reel/Frame 034648/0585 →