Wherever there exists a network of one or more nodes, the primary issue is that of communication between the nodes. In a large network of the type having a master node and a plurality of slave nodes, it is often difficult for the master node to relay a message to every slave nodes because of location or signal attenuation due to noise or poor network conditions. For example, reliable communication is vital in control networking environment using pre-existing power lines. A major problem with power line communications is the hostile medium itself. Transmission of signals through this medium results typically in reception of severely attenuated signals (e.g. 100 decibels). The master node must resort to using other nodes to route messages to the rest of the slave nodes that could be located in far remote areas or in areas of high signal attenuation. Optimal signal path routing is essential to achieve reliable and fast communication.
There are many examples of network systems in the prior art. However, many prior systems have limitations resulting from the method of router node selection. This often depends on either prior knowledge of the network, i.e. the nodes have already been configured to the network and the master node has a pre-recorded list of devices, or the selection is random if the master node does not have previous knowledge of the network. Random selection of the routers takes more time and there is no test to ensure the robustness of the router, especially during periods of high signal attenuation. As a result, a routing path that may be valid during node configuration may not be valid all the time. It may be necessary to look for alternate routing paths when network conditions are poor.
It is an object of the present invention to provide a method of configuring and managing a network so as to allow efficient communication between a master node and slave nodes with minimum delay, and in light of varying conditions of the medium.
In a first aspect of the present invention, the master node initiates a hailing process wherein all slave nodes are required to respond. This hailing process constitutes a request and is made at a forced attenuated signal. If a slave node is able to receive this forced attenuated signal, it will be able to receive transmissions at one hundred percent signal strength. This ensures the node's communication reliability. Due to noise and distance limitations, not all slave nodes acknowledge the hailing. The slave nodes that do respond (also at an attenuated level) are configured and form the master node's reaching level. Advantageously, the master node subsequently passes the hailing process one at a time to these configured slave nodes and then these slave nodes act as routers and continue to transmit the hailing process (at an attenuated level) on behalf of the master node. The responses these configured slave nodes receive pass to the master node so the master node can configure the slave nodes that responded to the second round of the hailing process. These newly configured slave nodes from the second round of hailing become routed to the master node by the slave nodes that hailed for them. This preferably continues until there are no more responses resulting from the hailing process. By the end of the process, not only has the master node configured all the slave nodes in its network, but has also built a routing table and knows which router nodes to access when trying to communicate with slave nodes outside of its reaching level.
In a second aspect of the present invention, the master node continuously monitor all of the nodes in the network to ensure their functionality and the functionality of the routing paths joining them. Requesting continuous updates of each node however, is time consuming and inefficient. To this end, the master node preferably pings only the leaf slave nodes of the network. The master node sends a ping message at an attenuated signal level. Because intermediate slave nodes, if any, have to be accessed when reaching leaf nodes, testing the leaf nodes also allow to test the communication of all the slave nodes in the network. Advantageously, this ping process occurs when the master node is in an idle state.
A further aspect of the present invention is the recovery in case of a slave node becoming out of service, for instance if the slave node itself cease to operate or if the communication link is no longer working for any reason. In this case, the master node tries to select an alternate route since the slave node may only be out of reach because of a communication problem, such as high noise. Preferably, the master node initially contacts the slave nodes that are part of the same reaching level as the de-routed node. These nodes in turn attempt to communicate with the de-routed node, one by one, at an attenuated level similar to the attenuated level used for the hailing process. If no router nodes are found within the same reaching level as the de-routed node, the master node will ask those nodes in the first reaching level (level 0). After each node in this reaching level has attempted communication and if none were successful in communicating with the de-routed node, the master node passes the request to the next reaching level (level 1). This process continues until a router node is found.
Other aspects and advantages of the invention will become more fully apparent from the following detailed description and appended claims, taken in conjunction with the accompanying figures. The figures are for the purpose of illustration and are therefore not to be considered limiting of its scope. The figures depict one of many embodiments wherein:
a shows an example of a network consisting of a master node and three unconfigured slave nodes residing in two reaching levels;
b is a view similar to
a shows examples of the differences between the signal level of a message signal used in normal communication and attenuated signals used for pinging and hailing;
b schematically illustrates the reaching area of three attenuation levels in a network consisting of a master node and a plurality of slave nodes;
a shows an example of a network with router nodes and leaf nodes;
b shows a simplified diagram of a routing table for the network of
c is a view similar to
d shows a new routing path to resolve the broken path of
e shows a simplified diagram of a routing table for the network of
Network Configuration
a depicts an example of a network (100) outlining one embodiment of the present invention. This network (100) contains a master node (103) and three unconfigured slave nodes A (104), B (105) and C (106). These could be, for example, devices interconnected by means of a power line. Ellipse (101) represents the reaching level of the master node (103) and unconfigured node A (104). Ellipse (102) represents the reaching level of unconfigured nodes B and C, respectively (105) and (106). In this particular example, the nodes in the same ellipse have less than a given level of attenuation between them. In this case, messages can be transmitted and received without a great deal of information loss. No router is necessary, therefore. The ellipse (101) that contains the master node (103) represents level 0 of routing. This means that the master node (103) can reach all of the nodes within ellipse (101) without signal reduction. Ellipse (102) represents level 1 of routing due to the distance between slave nodes A (105), B (106) and the master node (103). Direct communication between the slave nodes A (104), B (105) and master node (103) is almost impossible due to the fact that these nodes reside in different ellipses.
The first step in network configuration is known as the hailing process. The master node (103) transmits (broadcasts) a request at an intentionally attenuated level for all the unconfigured slave nodes (104) to (106) to acknowledge themselves. If an unconfigured slave node is able to receive an attenuated signal than it should also be able to receive signals transmitted not only at 100% signal strength from the master node (103), but also with signal attenuation along the path due to noise and poor network conditions. When a slave node receives a hailing message, it sends a reply message to the master node (103). The reply message is sent at an intentionally attenuated level and contains information on the identity of the slave node. When the master node (103) can receive the attenuated response from the slave node, it strengthens the master node's decision in selecting the node as router nodes. From the responses, the master node (103) has a preliminary list of the unconfigured slave nodes and thus has knowledge of which slave nodes have to be configured to the network. In this present example, however, only the unconfigured node A (104) can respond because it is the only unconfigured node within the master node's (103) reaching level (101).
In order to improve efficiency the master node (103) can be provided with pre-recorded information concerning the slave nodes. The master node (103) then proceeds with the configuration process of all the slave nodes in its unconfigured device list.
b continues with the haling example of
In
Once a reply message is received at configured slave node A (104′), a post-reply message is sent to the master node (103). This post-reply message is preferably at full strength since the communication with the master node (103) has already been established. The post-reply message is either a new message sent by the configured slave node A (104′) or a routed reply message received from an unconfigured slave node. With the responses from the unconfigured slave nodes (105), (106), the master node (103) is now aware that future messages to these slave nodes should route through slave node A (104′). In the same fashion, all of the slave nodes within ellipse (102) know that the path to the master node (103) is via slave node A (104′) because the hailing process was routed from this slave node at the request of the master node (103). Now having the identity of two more unconfigured slave nodes, the master node (103) halts the hailing process again and configures both slave nodes B and C (105), (106) one at a time, to the network. Once all slave nodes within the next routing level are configured, the master node (103) passes the hailing process to a next slave node. Slave node A (104′) passes this hailing process one at a time to all of the now configured slave nodes within its reaching level, namely slave nodes B and C (105), (106). These slave nodes continue the process and send out a request for acknowledgement from all the unconfigured slave nodes within their reaching level. In this example, slave nodes B and C (105), (106) receive no response. This information can be passed to the master node (103) via slave node (104′). A given time can also be allocated to each node for completing the hailing process. In receiving no more responses from unconfigured slave nodes, the master node (103) knows that there are no more reachable unconfigured slave nodes left on the network.
The above example outlined the automatic unconfigured slave node detection. The master node (103) can pass the hailing process to all of its configured slave nodes within its reaching level one by one until an unconfigured slave node is found. When the master node (103) does find one, the hailing process stops until the master node configures the slave node to the network. However, the unconfigured slave node detection can also be done manually. For instance, if the user knows the network topology and the reaching levels, the user can pass the hailing process to a particular slave node and override the automatic unconfigured slave node detection.
For large amounts of slave nodes on a network, it's often easier and more efficient to configure the slave nodes at the manufacturer level instead of configuring them in the field. The configuration at the manufacturer level can include built-in routing tables for the master node (103) and the router nodes. This is useful when the network topology is known before the installation. One example is that of streetlights, where a plurality of streetlights can be grouped together by their location. If this location information is available as early as the manufacturing stage, it is more time efficient to configure them at that time. The list of pre-configured slave nodes would then be added to the master node's list. As a result, the master node (103) has a pre-determined list of configured nodes and has only to determine routing paths for all these slave nodes. By pinging each slave node in its list and determining if each communication attempt was a success or failure, the master node (103) can decide which slave nodes it can communicate with directly and which slave nodes would require a router. From this information, the master node (103) can update its routing table. No hailing process is necessary in that case.
Normal Operation
The goal of the master/slave topology is to maintain communication reliability between the master and all of the slave nodes in the network. In order to achieve this, the master node preferably performs a background process known as “master ping”. The master ping is a forced attenuated request to a slave node that requires a response from the slave node. This forced attenuated signal preferably has a variable range between the attenuated signal level during node configuration (hailing process) and normal operation (no attenuation). In the preferred embodiment, the attenuated master ping has a level at the midpoint between the level of the attenuated hailing signal and the non-attenuated signal during normal operation. More preferably, the attenuated hailing signal level varies between 25% to 50% of the non-attenuated signal and the attenuated master ping signal varies between 50% to 75%.
The master ping process tests the functionality of all the routing paths by sending ping messages. The master node preferably executes this process when it is in an idle state. It then halts the process immediately after a slave node begins running an application and requires the master node's services. To make the process more efficient, the master node preferably only pings the leaf nodes, i.e. the nodes that are at the end of a branch and are thus only directly connected to one other node. In pinging only the leaves of a network, all of the intermediate nodes need to be accessed and are thus indirectly tested as well. Leaf nodes that respond and any intermediate node that transmit a response are re-validated.
In use, due to all the activity on the network, the master node never stays in an idle state for very long. As stated earlier, the process preferably halts when a slave node runs an application and requires the master node. In attending to the slave node however, the master node can also update its routing table. If it is a leaf node that requires assistance, the intermediate nodes are tested too. The goal of having a continuously updated routing table is achievable by using the master ping process and indirectly through regular master/slave node communication.
b schematically illustrates an example of the reaching area of the three attenuation levels in a network (125) consisting of a master node (126) and ten slave nodes, A to J, (130) to (139). Master node (126) has three reaching areas (127, 128 and 129) defined as concentric rings around node (126) collectively encompassing slave nodes A to J. Nodes A, B and C are in ring 127; nodes D, E and F are in ring 128; and nodes G, H, I and J are in ring 129. Each successive ring (128 and 129) has more attenuation of received signals than its neighbouring smaller ring. During the initial hailing process, nodes A (130), B (131) and C (132) were able to correctly receive the master node's (126) attenuated request at a signal strength given by curve (118) of
During the master ping process, nodes A (130) through C (132) are able to acknowledge the master node's (126) pinging. The master ping reaching area is still the same as the hailing process (118) therefore it encompasses slave nodes A (130) through C (132). During normal operation when the master node transmits at full signal strength as shown in curve (116), all nodes of network (125) are able to receive the master node's message, but use the routing path set by the hailing process to ensure a maximum connectivity. It should be noted that reaching areas aren't necessarily dependent on physical distance, but of other factors as well including noise variations, traffic concentrations, etc.
a shows an example of a network (145) that consists of a master node (146) and four slave nodes, A through D (147)-(150). Of these nodes, A (147) and C (149) are intermediate nodes and nodes B (148) and D (150) are leaf nodes. During the master ping process, the master node (146) pings only the leaf nodes, B and D (148), (150). In order to reach node D (150), the paths via node A (147) and node C (149) are indirectly tested as well. The master node's (146) routing table is given in
Error Handling and Recovery
c depicts the same network as in
In the example of
Number | Name | Date | Kind |
---|---|---|---|
5844900 | Hong et al. | Dec 1998 | A |
6094416 | Ying | Jul 2000 | A |
6147967 | Ying et al. | Nov 2000 | A |
6195687 | Greaves et al. | Feb 2001 | B1 |
6633538 | Tanaka et al. | Oct 2003 | B1 |
6675199 | Mohammed et al. | Jan 2004 | B1 |
6697845 | Andrews | Feb 2004 | B1 |
6854053 | Burkhardt et al. | Feb 2005 | B2 |
6865596 | Barber et al. | Mar 2005 | B1 |
6915346 | Kato et al. | Jul 2005 | B1 |