This application claims priority to and the benefit of Korean Patent Application No. 2007-89605, filed Sep. 4, 2007, the disclosure of which is incorporated herein by reference in its entirety.
1. Field of the Invention
The present invention relates to an apparatus and method for synchronizing time information of both transmitting and receiving sides using a key re-synchronization frame in an encryption communication environment where algorithm synchronization should be maintained. More particularly, the present invention relates to an apparatus and method for synchronizing time information of both transmitting and receiving sides, in which average delay time in a network is calculated using time information when a transmitting side transmits using a key re-synchronization frame, time information when a receiving side receives the key re-synchronization frame and the number of data frames between key re-synchronization frames to calculate a time difference between both transmitting and receiving sides using the calculated results.
2. Discussion of Related Art
Conventionally, a GPS technique has been used to synchronize time information between equipment in remote places. That is, a GPS receiver is additionally connected to equipment requiring time information synchronization and identical time information is received from a GPS source to set local time information of the equipment in remote places.
According to the conventional art, since a device such as the GPS receiver is additionally connected, cost is increased and when target equipment is installed in a closed place such as in a container or under water where a GPS signal cannot pass through, the device is useless.
In particular, equipment used for encryption communication is generally used in a closed place or cannot be connected to a device such as a GPS for security. Therefore, to synchronize time information of transmitting and receiving equipment in such an environment, time information in the process of communication should be periodically exchanged. However, data exchange between transmitting equipment and receiving equipment in remote places causes data transmission delay, and thus time information exchanged between the transmitting equipment and the receiving equipment cannot be immediately used to synchronize time information of the transmitting and receiving equipment. Also, exchanging time information between the transmitting equipment and the receiving equipment may cause an overhead of the data communication.
The present invention is directed to an apparatus and method for synchronizing time information, which does not require an additional device and additional data transmission for synchronization of time information between equipment in remote places.
The present invention is also directed to an apparatus and method for synchronizing time information of transmitting and receiving sides using a key re-synchronization frame, which periodically uses in encryption communications.
One aspect of the present invention provides an apparatus for synchronizing time information using a key re-synchronization frame in encryption communications comprising: a transmitter including an input unit for receiving a voice, a first vocoder for encoding the received voice, a frame generation unit for generating a frame with respect to the encoded voice data and a frame transmitting unit for transmitting the frame to a receiver; and the receiver including a frame receiving unit for receiving the frame transmitted from the transmitter, a frame analyzer for identifying a type of the received frame and analyzing information included in a key re-synchronization frame to calculate a time difference between a transmitting side and a receiving side, a second vocoder for decoding the voice data in the frame to be vocalized, and an output unit for outputting the vocalized voice.
Another aspect of the present invention provides a method of synchronizing time information using a key re-synchronization frame in encryption communications, the method comprising: encoding an input voice to generate the encoded voice data; generating a frame with respect to the encoded voice data; transmitting the frame from a transmitter to a receiver; receiving, at the receiver, the frame transmitted from the transmitter; determining whether the received frame is a key re-synchronization frame or a data frame; and analyzing information included in the key re-synchronization frame and correcting local time of a receiving side based on the analyzed information when the received frame is determined as the key re-synchronization frame.
The above and other features and advantages of the present invention will become more apparent to those of ordinary skill in the art by describing in detail exemplary embodiments thereof with reference to the attached drawings in which:
The present invention will now be described more fully hereinafter with reference to the accompanying drawings, in which exemplary embodiments of the invention are shown. This invention may, however, be embodied in different forms and should not be construed as limited to the exemplary embodiments set forth herein.
The transmitter 10 includes a receiving unit 11 for receiving a voice, such as a microphone, a first vocoder 12 for vocoding the received voice to generate the encoded voice data, a frame generation unit 13 for generating a frame with respect to the encoded voice data, and a frame transmitting unit 14 for transmitting the frame to the receiver. The frame generation unit 13 generates a key re-synchronization frame including key re-synchronization information and time information of a transmitting side when it is at the time of key re-synchronization. Also, a header is added to the frame so that the frame to be transmitted can be recognized as the key re-synchronization frame to be distinguished from data frames. In contrast, when it is not at the time of key re-synchronization, the frame generation unit 13 generates a data frame formed of the voice data only.
The receiver 20 includes a frame receiving unit 21 for receiving the frame transmitted by the transmitter, a frame analyzer 22 for identifying the type of the received frame and analyzing information included in a key re-synchronization frame to calculate a time difference between transmitting and receiving sides, a second vocoder 23 for decoding the voice data to be vocalized, and an output unit 24 for outputting the vocalized voice.
The frame analyzer 22 analyzes the header of the received frame to determine whether the frame includes key re-synchronization information or not, so that the key re-synchronization frame is distinguished from the data frame.
When the received frame is a key re-synchronization frame, the frame analyzer 22 determines whether the received key re-synchronization frame is an odd-numbered frame or an even-numbered frame. When it is an odd-numbered frame, time information of the transmitting side included in the key re-synchronization frame is extracted, and the extracted time information of the transmitting side and time information of the receiving side receiving the key re-synchronization frame are stored in an internal memory (not shown) of the receiving side. In addition, when it is an even-numbered key re-synchronization frame, time information of the transmitting side included in the key re-synchronization frame is extracted, and an average transmission delay value is calculated using time information of the receiving side receiving the key re-synchronization frame, the number of data frames, and time information of the transmitting side and the receiving side with respect to a previous key re-synchronization frame stored in the internal memory (not shown). A time difference between the transmitting and receiving sides is calculated using the calculated average transmission delay value, and local time of the receiving side is corrected accordingly.
When the received frame is a data frame, the frame analyzer 22 transmits the data frame to the second vocoder 23, and the second vocoder 23 decodes the voice data to be vocalized and the output unit 24 outputs the voice.
A method that can be embodied in the apparatus for synchronization according to the present invention will be described below with reference to
The voice received by a receiving unit such as a microphone is vocoded to be encoded into voice data (step 201). It is determined whether a frame to be transmitted is at the time of key re-synchronization (step 202).
When a frame to be transmitted is at the time of key re-synchronization, the corresponding current voice data is deleted (step 203). Next, key re-synchronization information for synchronizing a code algorithm and time information of the transmitting side for synchronizing time information are used to generate a key re-synchronization frame (step 204), and an identifier indicating the key re-synchronization frame is added to be transmitted to a receiver (step 205).
When it is determined that the frame to be transmitted is not at the time of key re-synchronization in step 202, voice data is used to generate a data frame (step 213), and an identifier indicating the data frame is added to be transmitted to the receiver (step 214).
The receiver receives the frame transmitted by the transmitter (step 301), and a header of the received frame is analyzed to determine a type of the frame (step 302).
When the received frame is determined as a key re-synchronization frame in step 302, key re-synchronization information and information of the transmitting side are extracted from the key re-synchronization frame (step 303). Then, key re-synchronization is performed using the extracted key re-synchronization information (step 304) and it is determined whether the key re-synchronization frame is an odd-numbered key re-synchronization frame (step 305). When it is an odd-numbered key re-synchronization frame, the time information of the transmitting side extracted from the key re-synchronization frame and time information of the receiving side when the receiving side receives the key re-synchronization frame are stored in an internal memory of the receiving side (step 306). When it is determined that it is not an odd-numbered key re-synchronization frame in step 305, an average transmission delay value is calculated using time information of the transmitting side extracted from the received key re-synchronization frame, time information of the receiving side when the receiving side receives the key re-synchronization frame, the number of data frame counters (this will be described below), and time information of the transmitting and receiving sides stored with respect to a previous key re-synchronization frame (step 307). A time difference between the transmitting side and the receiving side is calculated from the calculated average transmission delay value, the calculated time difference is reflected, and local time of the receiving side is corrected to be synchronized with the time information of the receiving side (step 308).
When the received frame is determined as a data frame rather than a key re-synchronization frame in step 302, a voice data value is extracted to be vocoded (step 313), and 1 is added to a data frame counter variable value stored in the internal memory of the receiving side (step 314). Then, the voice data value is phonetically output (step 315).
Through the process described with reference to
Abbreviations shown in
stn: Time when a transmitting side transmits an nth key re-synchronization frame
ltn: Time when a receiving side receives an nth key re-synchronization frame
dtn: Time when the transmitting side transmits an nth data frame
An: Transmission delay time for an nth frame
B: Frame generation processing time (a constant value that is determined depending on system speed)
C: Synchronization frame interval time
D: Average transmission delay time for a frame
E: Time difference between transmitting and receiving sides
F: Corrected local time of the receiving side
In
When the receiving side receives the key re-synchronization frame {circle around (1)}, it extracts time information st1 of the transmitting side from the key re-synchronization frame. Time information lt1, when the receiving side receives key re-synchronization frame {circle around (1)} is stored in an internal memory together with time information st1 of the transmitting side. When the receiving side receives data frames {circle around (2)}, {circle around (3)} and {circle around (4)}, the data is vocalized and 1 is added to a data frame counter variable value stored in the internal memory of the receiving side every time. When the receiving side receives key re-synchronization frame {circle around (5)}, it extracts time information st2 of the transmitting side from key re-synchronization frame {circle around (5)}. An average transmission delay value is calculated using the extracted time information st2, time information lt2 when the receiving side receives key re-synchronization frame {circle around (5)}, a previous key re-synchronization frame, i.e., time information st1 and lt1 with respect to key re-synchronization frame {circle around (1)}, and a data frame counter variable value. When A1=lt1−st1 (transmission delay time for frame {circle around (1)}) is calculated at the time of lt1, it is not guaranteed that time between the transmitting and receiving sides is always coincident, and thus A1 cannot be used as a transmission delay value. Therefore, synchronization frame interval time C is used to calculate average transmission delay time D for a frame as follows:
C(4B+A2+A3+A4+A5)=(lt2−lt1)
D=(lt2−lt1)/4=C/4
*As illustrated in
The calculated frame average transmission delay time D is used to calculate time difference E between the transmitting and receiving sides as follows:
E=((lt1−(st1+D))+(lt2−(st2+D)))/2
In the above equation, the left side denotes a time difference between the transmitting and receiving sides in synchronization frame 1, and the right side denotes a time difference between the transmitting and receiving sides in synchronization frame 2. The calculated time difference E between the transmitting and receiving sides is used to calculate F to be used as local time of the receiving side as follows.
F=lt
2
−E−B
Since it is calculated in synchronization frame 2, lt2 is used, and the calculated time F is used to set the local time of the receiving side, so that time information of the transmitting and receiving sides is synchronized.
According to the present invention, a key re-synchronization frame that is periodically used in an encryption communication is used to synchronize time information of transmitting and receiving apparatuses. Therefore, an additional device such as a GPS for synchronization is not required, thus reducing cost. Also, additional data transmission for time information synchronization is not required, so that system load can be lessened.
Exemplary embodiments of the invention are shown in the drawings and described above in specific terms. However, no part of the above disclosure is intended to limit the scope of the overall invention. It will be understood by those of ordinary skill in the art that various changes in form and details may be made to the exemplary embodiments without departing from the spirit and scope of the present invention as defined by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
10-2007-0089605 | Sep 2007 | KR | national |