This application is based on and claims priority from Japanese Patent Application No. 2007-079435, filed on Mar. 26, 2007, the entire contents of which are hereby incorporated by reference.
1. Technical Field
The present disclosure relates to a time synchronization system between wireless nodes and, more particular, to a time synchronization system between wireless nodes that can perform precise time synchronization without receiving any effect of a communication delay.
2. Related Art
The following references relate to a time synchronization system between wireless nodes in the related art. Japanese Unexamined Patent Publications: JP-A-2003-273849; JP-A-2005-286720 JP-A-2005-322982; JP-A-2006-003118; and JP-A-2006-234425.
The wireless node 1 is mutually connected to the wireless network 100 and the time server 2 is also mutually connected to the wireless network 100.
The operation shown in
The wireless node 1 includes wireless communication means for conducting wireless communications through the wireless network 100, storage means for storing programs for operating the wireless node, calculation control means such as a Central Processing Unit (CPU) for controlling the whole wireless node by reading and executing the program (not shown).
Likewise, the time server 2 includes wireless communication means for conducting wireless communications through the wireless network 100, storage means for storing programs for operating the time server, calculation control means such as a CPU for controlling the whole time server by reading and executing the program (not shown).
It is assumed that the wireless node 1 acquires precisely-controlled time information from the time server 2 using Simple Network Time Protocol (SNTP) and then performs time synchronization, where SNTP is a time information transfer protocol and generally often used in a wire network of the Internet, etc.
In
For example, the wireless node 1 transmits the time request to the time server 2 through the wireless network 100 as indicated in “RQ01” in
If the wireless node 1 determines at “S002” in
For example, it is assumed that the time of the wireless node 1 is 1 second ahead the time of the time server 2 as shown in
If the wireless node 1 transmits a time request to the time server 2 at the time “TM11” in
In the case, the time of the wireless node 1 is 1 second ahead the time of the time server 2 and therefore if the time request transmission time “TM11” is “0:02” in the wireless node time, the time request reception time “TM12” is “0:02” in the time server time.
If the time server 2 transmits a time response (containing the time request reception time and the time response transmission time) to the wireless node 1 at the time “TM13” in
In this case, the time of the wireless node 1 is 1 second ahead the time of the time server 2 and therefore if the time response transmission time “TM13” is “0:03” in the time server time, the time response reception time “TM14” is “0:05” in the wireless node time.
In this case, time difference ΔT is represented by the following expression:
ΔT={(TM12−TM11)+(TM13−TM14)}/2 (1)
and the time difference ΔT is added to the current time, thereby performing time synchronization.
For example, in
and the time difference ΔT is added to the current time, e.g., time “0:06” indicated by “TM15” in
Likewise, for example, it is assumed that the time of the wireless node 1 is 1 second behind the time of the time server 2 as shown in
If the wireless node 1 transmits a time request to the time server 2 at the time “TM21” in
In this case, the time of the wireless node 1 is 1 second behind the time of the time server 2 and therefore if the time request transmission time “TM21” is “0:01” in the wireless node time, the time request reception time “TM22” is “0:03” in the time server time.
If the time server 2 transmits a time response (containing the time request reception time and the time response transmission time) to the wireless node 1 at the time “TM23” in
In this case, the time of the wireless node 1 is 1 second behind the time of the time server 2 and therefore if the time response transmission time “TM23” is “0:04” in the time server time, the time response reception time “TM24” is “0:04” in the wireless node time.
For example, in
and the time difference ΔT is added to the current time, e.g., time “0:05” indicated by “TM25” in
Consequently, the wireless node 1 calculates the time difference ΔT based on the time request transmission time, the time response reception time, the time request reception time at the time server 2 and the time response transmission time from the time server 2, and then add the time difference to the current time, thereby performing time synchronization with the time server 2.
In the related art example shown in
Namely, in the wireless network where data communications are performed using space of different wireless communication and noise, if different wireless communication interrupts transmission just before data transmission, the data transmission enters a wait state and is executed after completion of the interrupting different wireless communication.
Thus, the transmission time of the time request or the time response (the time at which an attempt is made to transmit the time request or the time response) and the time at which the data can be transmitted actually are not coincident with each other and thus the accuracy of the time synchronization is degraded.
In a wireless network in a multi-hop environment, it is not guaranteed that the time request propagation path and the time response propagation path are coincident with each other, and further the delay time in a relay node always changes according to the processing capability of the relay node, the processing state of any other data, etc.
Thus, as the presumption of using the SNTP, the assumption is not established that the time request propagation time from the wireless node 1 to the time server 2 and the time response propagation time from the time server 2 to the wireless node 1 are equal to each other and, as a result, the accuracy of the time synchronization is degraded.
One or more exemplary embodiments of the present invention provide a time synchronization system between wireless nodes that can perform precise time synchronization without receiving any effect of a communication delay, and a wireless network system.
According to one or more exemplary embodiments of the present invention, a time synchronization system between wireless nodes, the time synchronization system comprises:
a first wireless node performing time synchronization and mutually connected to a wireless network;
adjacent wireless nodes adjacent to the first wireless node and mutually connected to the wireless network, said adjacent wireless nodes comprising a mediating wireless node and a higher-level adjacent wireless node,
wherein
(i) the first wireless node broadcasts a neighbor search packet,
(ii) the adjacent wireless nodes receive the neighbor search packet and then returns an adjacent response packet,
(iii) the first wireless node selects the mediating wireless node based on the adjacent response packet and then transmits a mediating request packet to the mediating wireless node,
(iv) the mediating wireless node receives the mediating request packet and then broadcasts a time record request packet,
(v) the first wireless node receives the time record request packet and then records reception time,
(vi) the adjacent wireless nodes receive the time record request packet and then records reception time,
(vii) the higher-level adjacent wireless node transmits a time notification packet containing the reception time to the first wireless node, and
(viii) the first wireless node calculates the difference between the recorded reception time and the reception time contained in the time notification packet and then adds the difference to current time.
According to one or more exemplary embodiments of the present invention, the adjacent response packet contains: hierarchy information; and information on the higher-level adjacent wireless node.
According to one or more exemplary embodiments of the present invention, the adjacent response packet contains: the communication quality at the time of reception of the neighbor search packet; and time at which the last time synchronization was performed.
According to one or more exemplary embodiments of the present invention, the time record request packet contains: information on the first wireless node; and information on the higher-level adjacent wireless node.
According to one or more exemplary embodiments of the present invention, the adjacent wireless nodes receiving the neighbor search packet waits for a predetermined time and then returns the adjacent response packet.
According to the present invention, precise time synchronization can be performed without receiving any effect of a communication delay, etc.
Other aspects and advantages of the invention will be apparent from the following description, the drawings and the claims.
In the accompanying drawings:
Exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings hereinafter.
In
The wireless node 3 is mutually connected to the wireless network 101 and the adjacent wireless nodes 4 to 7 are also mutually connected to the wireless network 101.
The operation of the embodiment shown in
The wireless node 3 includes wireless communication means for conducting wireless communications through the wireless network 101, storage means for storing programs for operating the wireless node, calculation control means such as a CPU for controlling the whole wireless node by reading and executing the program (not shown).
Likewise, each of the adjacent wireless nodes 4 to 7 includes wireless communication means for conducting wireless communications through the wireless network 101, storage means for storing programs for operating the adjacent wireless node, calculation control means such as a CPU for controlling the whole adjacent wireless node by reading and executing the program (not shown).
In
Likewise, in
For example, the adjacent wireless nodes “NN31” to “NN33” exist in the radio wave arrival range from the wireless node “ND31” in
For example, the adjacent wireless node “NN34” does not exist in the radio wave arrival range from the wireless node “ND31” in
Meanwhile, the adjacent wireless node “NN31” is at level 1 of the hierarchy and does not have any higher-level adjacent wireless node as shown in
The adjacent wireless node “NN32” is at level 2 of the hierarchy and the higher-level adjacent wireless node is the adjacent wireless node “NN31” as shown in
Likewise, the adjacent wireless nodes “NN33” and “NN34” are at level 3 of the hierarchy and the higher-level adjacent wireless node is the adjacent wireless node “NN32” as shown in
First of all, in a neighbor search step, the wireless node 3 broadcasts a neighbor search packet to the adjacent wireless nodes existing in the radio wave arrival range at “S101” in
For example, the wireless node “ND31” broadcasts a neighbor search packet to the adjacent wireless nodes “NN31”, “NN32”, and “NN33” as shown in “BC41”, “BC42”, and “BC43” in
However, the adjacent wireless node “NN34” exists beyond the radio wave arrival range of the wireless node “ND31” and therefore the neighbor search packet does not arrive as shown in “BC44” in
Meanwhile, at “S201” in
For example, the adjacent wireless nodes “NN31”, “NN32”, and “NN33” return an adjacent response packet to the wireless node “ND31” as shown in “RP51”, “RP52” and “RP53” in
The adjacent response packet from the adjacent wireless node “NN31” contains “1” as the hierarchy information and “none” as the higher-level adjacent wireless node information as shown in
Likewise, the adjacent response packet from the adjacent wireless node “NN33” contains “3” as the hierarchy information and “NN32” as the higher-level adjacent wireless node information as shown in
Second, in a selection step of a mediating wireless node, if the wireless node 3 determines that reception of the adjacent response packets is complete at “S102” in
For example, as seen in
That is, if the adjacent wireless node information is as shown in
Thus, for example, the wireless node “ND31” transmits a mediating request packet to the adjacent wireless node “NN32” selected as the mediating wireless node as indicated in “RQ61” in
At “S301” in
For example, the adjacent wireless node (mediating wireless node) “NN32” broadcasts a time record request packet to the wireless node and the adjacent wireless nodes “ND31”, “NN31”, “NN33”, and “NN34” in
The time record request packet from the adjacent wireless node “NN32” in
Third, in a step of time record, if the wireless node 3 determines that a time record request packet has been received at “S105” in
Meanwhile, each adjacent wireless node not selected as the mediating wireless node determines whether or not such a time record request packet has been received at “S401” in
At “S403” in
For example, the adjacent wireless node (higher-level adjacent wireless node) “NN31” transmits a time notification packet to the wireless node (the transmission source of the mediating request packet) “ND31” as indicated in “TN81” in
Last, in a step of time synchronization, if the wireless node 3 determines that a time notification packet has been received at “S107” in
For example, it is assumed that the time of the wireless node (the wireless node “ND31” in
If the adjacent wireless node (mediating wireless node) broadcasts a time record request packet as indicated in RT91 and RT92 at the time “TM91” in
The times “TM92” and “TM93” (the times of reception of the time record request packet) are recorded in the wireless node and the higher-level adjacent wireless node.
At this time, the time of the wireless node is 1 second ahead the time of the higher-level adjacent wireless node and therefore the recorded time “TM92” is “0:03” of the wireless node time and the recorded time “TM93” is “0:02” of the higher-level adjacent wireless node time.
Further, the higher-level adjacent wireless node transmits time notification packet containing the recorded time of reception of the time record request packet as indicted in TN91 at the time “TM94” in
Time difference ΔT is obtained by subtracting the time of reception of the time record request packet recorded by the wireless node itself from the time of reception of the time record request packet recorded in the higher-level adjacent wireless node. In the example shown in
ΔT=0:02−0:03=−0:01 (4)
The time difference ΔT is added to the current time, for example, time “0:05” indicated by “TM95” in
Even if the propagation time of the time notification packet is prolonged as indicated in “TN92” and arrives at the wireless node at the time “TM96”, the time of reception of the time record request packet recorded in the higher-level adjacent wireless node does not change, so that precise time synchronization can be performed without receiving any effect of a communication delay, etc.
On the other hand, for example, in the higher-level adjacent wireless node having the synchronized time, the hierarchy information is “1” in the adjacent wireless node having the reference time of the wireless network (the time to synchronize with) and thus the wireless node 3 sets “2” provided by adding “1” to the hierarchy information of the higher-level adjacent wireless node having the synchronized time as the hierarchy information of the wireless node 3.
Consequently, the wireless node for performing time synchronization carries out a neighbor search to select a mediating wireless node, and thus a time record request packet is broadcasted. Then, the wireless node records the time of reception of the time record request packet and transmits a time notification packet, which contains the time of reception of the time record request packet recorded in the higher-level adjacent wireless node, to the wireless node. Then, the wireless node finds the time difference and then adds the time difference to the current time. Therefore, precise time synchronization can be performed without receiving any effect of a communication delay, etc.
In the embodiment shown in
In this case, the synchronization accuracy of the wireless node that performs the time synchronization involves a problem. Thus, the fact that the synchronization accuracy involves a problem may be pointed out explicitly by adopting “11” provided by adding “10,” etc., to the hierarchy information of the higher-level adjacent wireless node rather than “2” provided by adding “1” to the hierarchy information of the higher-level adjacent wireless node as the hierarchy information.
If there is no adjacent wireless node for returning an adjacent response packet, transmitting a neighbor search packet may be continued until an adjacent wireless node appears in the radio wave arrival range or the wireless node may be the wireless node whose hierarchy information is “1” with the time of the wireless node as the reference time.
In the description of the embodiment shown in
In this case, the wireless node for performing the time synchronization can select a mediating wireless node based not only on the hierarchy information of the adjacent wireless node and the information of the higher-level adjacent wireless node, but also on the communication quality at the reception time of the neighbor search packet, the time at which the last time synchronization was performed, etc.
In the description of the embodiment shown in
Further, the predetermined time may be set appropriately and an adjacent response packet may be returned from the higher-level adjacent wireless node in the order of the hierarchy information, such as “1,” “2,” “3,” . . . . In this case, the wireless node can select a mediating wireless node based on the adjacent response packets earlier arriving the wireless node, so that the efficiency of the selection processing of the mediating wireless node is enhanced.
The function of recording the time of reception of the time record request packet is implemented as hardware, whereby an error caused by software between the recorded time and the actual time of reception of the time record request packet can be absorbed.
Information such as wireless node start and sleep time period is added to the sequence of time synchronization, whereby power control, etc., of the wireless node can be performed.
The time notification packet may be not only transmitted by direct wireless communications as indicated in “TN81” in
In other words, if “wireless node and mediating wireless node” and “higher-order adjacent wireless node and mediating wireless node” can perform direct wireless communications, “wireless node and higher-order adjacent wireless node” may be multi-hop wireless communications.
While there has been described in connection with the exemplary embodiments of the present invention, it will be obvious to those skilled in the art that various changes and modification may be made therein without departing from the present invention. It is aimed, therefore, to cover in the appended claim all such changes and modifications as fall within the true spirit and scope of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
2007-079435 | Mar 2007 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
7428229 | Bonta et al. | Sep 2008 | B2 |
7796549 | Grilli et al. | Sep 2010 | B2 |
20070248038 | Yamasaki et al. | Oct 2007 | A1 |
Number | Date | Country |
---|---|---|
2003-273849 | Sep 2003 | JP |
2005-286720 | Oct 2005 | JP |
2005-322982 | Nov 2005 | JP |
2006-3118 | Jan 2006 | JP |
2006-234425 | Sep 2006 | JP |
Number | Date | Country | |
---|---|---|---|
20080240075 A1 | Oct 2008 | US |