A system and method are provided for maintaining state synchronization
between a primary device and a secondary device. The present method
includes the steps of generating a sequence identifier in the primary
device, attaching the sequence identifier to a message in the primary
device, transmitting the message and the sequence identifier attached
thereto to the secondary device, and storing the sequence identifier in
the secondary device as a secondary sequence identifier. In addition, the
method includes the step of comparing a secondary sequence identifier from
the secondary device with the sequence identifier in the primary device to
detect a lost message.