Message synchronization method, apparatus and system
First Claim
1. A message synchronization method, comprising:
- obtaining a first sending time stamp of a first message transmitted on a main link, and obtaining a second sending time stamp of a first message transmitted on a backup link;
calculating a time difference between the first sending time stamp and the second sending time stamp according to the first sending time stamp and the second sending time stamp;
adding bytes in the first message transmitted on the main link and the first message transmitted on the backup link, setting the time difference in the types, and forming a second message to be transmitted on the main link and a second message to be transmitted on the backup link respectively; and
sending the second messages to a receiving end respectively on the main link and the backup link, so that when errors occur in the second message transmitted on the main link, the receiving end modifies a second receiving time stamp on the backup link according to the time difference in the second message transmitted on the backup link, and removes the added byte to obtain the first message.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments of the present invention relate to a message synchronization method, apparatus and system. The method includes: obtaining a first sending time stamp transmitted on a main link and a second sending time stamp transmitted on a backup link respectively; calculating to obtain a time difference according to the first sending time stamp and the second sending time stamp; adding bytes to the first message transmitted on the main link and the first message transmitted on the backup link, and form second messages to be transmitted on the main link and the backup link respectively; and sending the second messages to a receiving end on the main link and the backup link respectively.
12 Citations
10 Claims
-
1. A message synchronization method, comprising:
-
obtaining a first sending time stamp of a first message transmitted on a main link, and obtaining a second sending time stamp of a first message transmitted on a backup link; calculating a time difference between the first sending time stamp and the second sending time stamp according to the first sending time stamp and the second sending time stamp; adding bytes in the first message transmitted on the main link and the first message transmitted on the backup link, setting the time difference in the types, and forming a second message to be transmitted on the main link and a second message to be transmitted on the backup link respectively; and sending the second messages to a receiving end respectively on the main link and the backup link, so that when errors occur in the second message transmitted on the main link, the receiving end modifies a second receiving time stamp on the backup link according to the time difference in the second message transmitted on the backup link, and removes the added byte to obtain the first message. - View Dependent Claims (2, 3, 4)
-
-
5. A message synchronization method, comprising:
-
receiving a second message transmitted on a main link, and receiving a second message transmitted on a backup link, wherein the second message transmitted on the main link and the second message transmitted on the backup link both have a byte for setting a time difference, and the time difference is a difference between a second sending time stamp when a sending end sends the second message on the backup link and a first sending time stamp when the sending end sends the second message on the main link; obtaining a first receiving time stamp when receiving the second message transmitted on the main link, and obtaining a second receiving time stamp when receiving the second message transmitted on the backup link; and performing selection on the second message transmitted on the main link and the second message transmitted on the backup link, and if errors occur in the second message transmitted on the main link, selecting the second message transmitted on the backup link, modifying the second receiving time stamp on the backup link according to the time difference in the second message, and removing the added byte set with the time difference from the selected second message to obtain a first message. - View Dependent Claims (6)
-
-
7. A message synchronization apparatus, comprising:
-
a obtaining module, configured to obtain a first sending time stamp of a first message transmitted on a main link, and obtain a second sending time stamp of a first message transmitted on a backup link; a calculating module, configured to calculate a time difference between the first sending time stamp and the second sending time stamp according to the first sending time stamp and the second sending time stamp; a setting module, configured to add bytes in the first message transmitted on the main link and the first message transmitted on the backup link, set the time difference in the bytes, and form a second message to be transmitted on the main link and a second message to be transmitted on the backup link respectively; and a sending module, configured to send the second messages to a receiving end respectively on the main link and the backup link, so that when errors occur in the second message transmitted on the main link, the receiving end selects the second message transmitted on the backup link, modifies a second receiving time stamp on the backup link according to the time difference in the second message, and removes the added byte from the selected second message to obtain the first message. - View Dependent Claims (8)
-
-
9. A message synchronization apparatus, comprising:
-
a receiving module, configured to receive a second message transmitted on a main link, and receive a second message transmitted on a backup link, wherein the second message transmitted on the main link and the second message transmitted on the backup link both have a byte for setting a time difference, and the time difference is a difference between a second sending time stamp when a sending end sends the second message on the backup link and a first sending time stamp when the sending end sends the second message on the main link; an obtaining module, configured to obtain a first receiving time stamp when receiving the second message transmitted on the main link, and obtain a second receiving time stamp when receiving the second message transmitted on the backup link; and a selecting module, configured to perform selection on the second message transmitted on the main link and the second message transmitted on the backup link, and if errors occur in the second message transmitted on the main link, select the second message transmitted on the backup link, modify the second receiving time stamp on the backup link according to the time difference in the second message, and remove the added byte from the selected second message to obtain a first message.
-
-
10. A message synchronization system, comprising:
- a sending end and a receiving end, wherein
the sending end is configured to obtain a first sending time stamp of a first message transmitted on a main link, and obtain a second sending time stamp of a first message transmitted on a backup link;
calculate a time difference between the first sending time stamp and the second sending time stamp according to the first sending time stamp and the second sending time stamp;
add bytes in the first message transmitted on the main link and the first message transmitted on the backup link, set the time difference in the bytes, and form a second message to be transmitted on the main link and a second message to be transmitted on the backup link respectively; and
send the second messages to the receiving end respectively on the main link and the backup link; andthe receiving end is configured to receive the second message transmitted on the main link, and receive the second message transmitted on the backup link;
obtain a first receiving time stamp of the second message transmitted on the main link, and obtain a second receiving time stamp of the second message transmitted on the backup link;
perform selection on the second message transmitted on the main link and the second message transmitted on the backup link, if errors occur in the second message transmitted on the main link, select the second message transmitted on the backup link, modify the second receiving time stamp on the backup link according to the time difference in the second message, and remove the added byte from the selected second message to obtain the first message.
- a sending end and a receiving end, wherein
Specification