ROUTING ESTABLISHING METHOD AND COMMUNICATION ROUTER USING THE SAME
20220417179 · 2022-12-29
Assignee
Inventors
Cpc classification
H04W40/24
ELECTRICITY
International classification
Abstract
A routing establishing method for constructing a routing of a chain network including communication routers, each including a wired communication module, a wireless communication module, and a device configuration file. In a wired exploration procedure, exploration is performed by the source communication router through the wired communication module to obtain a wired communication status between the source and the destination communication routers. In a wireless exploration procedure, exploration is performed by the source communication router through the wireless communication module to obtain a wireless communication status between the source and the destination communication routers. In a routing decision procedure, next hop of the source communication router and whether the transmission routing is through the wired or the wireless communication module are determined and set according to the wired and the wireless communication status. The device configuration file includes device numbers related to relative positions of the communication routers.
Claims
1. A routing establishing method, for constructing a routing of a chain network, which comprises a plurality of communication routers, the communication routers comprising a source communication router and a plurality of other communication routers, the routing establishing method being applied in the source communication router, which comprises a wired communication module, a wireless communication module, and a device configuration file, the routing establishing method comprises: a wired exploration procedure, performed by the source communication router according to the device configuration file through the wired communication module to obtain a wired communication status between the source communication router and a destination communication router among the other communication routers; a wireless exploration procedure, performed by the source communication router according to the device configuration file through the wireless communication module to obtain a wireless communication status between the source communication router and the destination communication router; and a routing decision procedure, performed by the source communication router to determine and set, according to the wired communication status and the wireless communication status, a transmission routing from the source communication router to the destination communication router is through the wired communication module or the wireless communication module and a next hop of the source communication router in the transmission routing, wherein the device configuration file comprises device numbers related to relative positions of the communication routers in the chain network.
2. The routing establishing method according to claim 1, wherein in the wired exploration procedure, when the source communication router performs exploration according to the device configuration file through the wired communication module and determines that the source communication router is capable of communicating with the destination communication router through the wired communication module, the source communication router determines one of the other communication routers as the next hop through which the source communication router transmits data to the destination communication router through the wired communication module; wherein in the wireless exploration procedure, when the source communication router performs exploration according to the device configuration file through the wireless communication module and determines that the source communication router is capable of communicating with the destination communication router through the wireless communication module, the source communication router determines one of the other communication routers as the next hop through which the source communication router transmits data to the destination communication router through the wireless communication module.
3. The routing establishing method according to claim 2, wherein the source communication router further comprises at least one explosion routing table, and in the wired exploration procedure, a device number and a communication module type of the other communication router determined as the next hop of the source communication router are recorded in the at least one explosion routing table; wherein in the wireless exploration procedure, a device number and a communication module type of the other communication router determined as the next hop of the source communication router are recorded in the at least one explosion routing table; wherein in the routing decision procedure, the source communication router, according to the at least one explosion routing table and a routing optimization decision algorithm, sets the transmission routing of the source communication router to be through the wired communication module and sets the next hop of the source communication router to be the other communication router determined as the next hop in the wired exploration procedure, or sets the transmission routing of the source communication router to be through the wireless communication module and sets the next hop of the source communication router to be the other communication router determined as the next hop in the wireless exploration procedure.
4. The routing establishing method according to claim 3, wherein in the wired exploration procedure, the step of determining, by the source communication router, one of the other communication routers as the next hop through which the source communication router transmits data to the destination communication router through the wired communication module comprises: testing whether the source communication router is capable of directly communicating with the destination communication router through the wired communication module; when the source communication router is capable of directly communicating with the destination communication router through the wired communication module, setting the destination communication router to be the next hop through which the source communication router transmits data to the destination communication router through the wired communication module; and when the source communication router is not capable of directly communicating with the destination communication router through the wired communication module and is capable of communicating with the destination communication router through the wired communication module and at least one wired candidate router among the other communication routers, setting the wired candidate router closest to the destination communication router to be the next hop through which the source communication router transmits data to the destination communication router through the wired communication module.
5. The routing establishing method according to claim 4, wherein the step of setting the wired candidate router closest to the destination communication router to be the next hop through which the source communication router transmits data to the destination communication router through the wired communication module comprises: when the source communication router is not capable of directly communicating with the destination communication router through the wired communication module, determining, by the source communication router according to the device configuration file, the at least one wired candidate router among the other communication routers with which the source communication router is capable of communicating through the wired communication module; testing whether the source communication router is capable of communicating with the destination communication router through the wired communication module and the at least one wired candidate router; and when the source communication router is capable of communicating with the destination communication router through the wired communication module and the at least one wired candidate router, setting the wired candidate router closest to the destination communication router to be the next hop through which the source communication router transmits data to the destination communication router through the wired communication module.
6. The routing establishing method according to claim 3, wherein in the wireless exploration procedure, the source communication router determines the other communication router, which is capable of communicating with the destination communication router and is closest to the source communication router among the other communication routers with which the source communication router is capable of communicating through the wireless communication module, as the next hop through which the source communication router transmits data to the destination communication router through the wireless communication module.
7. The routing establishing method according to claim 6, wherein the step of determining the next hop through which the source communication router transmits data to the destination communication router through the wireless communication module comprises: determining, by the source communication router according to the device configuration file, a wireless candidate router closest to the source communication router among the other communication routers with which the source communication router is capable of communicating through the wireless communication module; testing whether the source communication router is capable of communicating with the destination communication router through the wireless communication module and the wireless candidate router; when the source communication router is capable of communicating with the destination communication router through the wireless communication module and the wireless candidate router, setting the wireless candidate router to be the next hop through which the source communication router transmits data to the destination communication router through the wireless communication module; and when the source communication router is not capable of communicating with the destination communication router through the wireless communication module and the wireless candidate router, determining, by the source communication router according to the device configuration file, another wireless candidate router second closest to the source communication router among the other communication routers with which the source communication router is capable of communicating through the wireless communication module, and when the source communication router is capable of communicating with the destination communication router through the wireless communication module and the another wireless candidate router, setting the another wireless candidate router to be the next hop through which the source communication router transmits data to the destination communication router through the wireless communication module.
8. The routing establishing method according to claim 1, wherein the device configuration file further comprises the quantity of single-chain networks in the chain network, the quantity of leaf node devices in each single-chain network, the device number of the leaf node devices in each single-chain network, the device number of a root node, the node type, and the single-chain number of the single-chain network to which the leaf node belongs.
9. The routing establishing method according to claim 1, wherein the wired communication module is a power line communication module or an Ethernet communication module.
10. The routing establishing method according to claim 1, wherein the wireless communication module is a Wi-Fi communication module.
11. The routing establishing method according to claim 1, wherein the attribute of each communication router is a root node or a leaf node.
12. A communication router with automatic routing establishment, the communication router being applied in a chain network comprising a plurality of communication routers, and one of the communication routers comprises: a wired communication module; a wireless communication module; a storage unit, configured to store a device configuration file; an environment exploration learning module, configured to perform a wired exploration procedure and a wireless exploration procedure, wherein the wired exploration procedure comprises performing exploration according to the device configuration file through the wired communication module to obtain a wired communication status between the communication router and a destination communication router among the other communication routers in the chain network, and the wireless exploration procedure comprises performing exploration according to the device configuration file through the wireless communication module to obtain a wireless communication status between the communication router and the destination communication router; and a routing optimization decision module, configured to perform a routing decision procedure comprising determining and setting, according to the wired communication status and the wireless communication status, a transmission routing from the communication router to the destination communication router is through the wired communication module or the wireless communication module and a next hop of the communication router in the transmission routing, wherein the device configuration file comprises device numbers related to relative positions of the communication routers in the chain network.
13. The communication router according to claim 12, wherein the wired exploration procedure performed by the environment exploration learning module comprises: when the environment exploration learning module performs exploration according to the device configuration file through the wired communication module and determines that the communication router is capable of communicating with the destination communication router through the wired communication module, determining, by the environment exploration learning module, one of the other communication routers in the chain network as the next hop through which the communication router transmits data to the destination communication router through the wired communication module; wherein the wireless exploration procedure performed by the environment exploration learning module further comprises: when the environment exploration learning module performs exploration according to the device configuration file through the wireless communication module and determines that the communication router is capable of communicating with the destination communication router through the wireless communication module, determining, by the environment exploration learning module, one of the other communication routers in the chain network as the next hop through which the communication router transmits data to the destination communication router through the wireless communication module.
14. The communication router according to claim 13, wherein the storage unit further stores at least one explosion routing table, and the wired exploration procedure performed by the environment exploration learning module comprises recording a device number and a communication module type of the other communication router determined as the next hop of the communication router in the at least one explosion routing table; the wireless exploration procedure performed by the environment exploration learning module comprises recording a device number and a communication module type of the other communication router determined as the next hop of the communication router in the at least one explosion routing table; the routing decision procedure performed by the routing optimization decision module comprises according to the at least one explosion routing table and a routing optimization decision algorithm, setting the transmission routing of the communication router to be through the wired communication module and setting the next hop of the communication router to be the other communication router determined as the next hop in the wired exploration procedure, or setting the transmission routing of the communication router to be through the wireless communication module and setting the next hop of the communication router to be the other communication router determined as the next hop in the wireless exploration procedure.
15. The communication router according to claim 14, wherein the wired exploration procedure performed by the environment exploration learning module further comprises: testing whether the communication router is capable of directly communicating with the destination communication router through the wired communication module; when the communication router is capable of directly communicating with the destination communication router through the wired communication module, setting the destination communication router to be the next hop through which the communication router transmits data to the destination communication router through the wired communication module; and when the communication router is not capable of directly communicating with the destination communication router through the wired communication module and is capable of communicating with the destination communication router through the wired communication module and at least one wired candidate router among the other communication routers, setting the wired candidate router closest to the destination communication router to be the next hop through which the communication router transmits data to the destination communication router through the wired communication module.
16. The communication router according to claim 15, the wired exploration procedure performed by the environment exploration learning module further comprises: when the communication router is not capable of directly communicating with the destination communication router through the wired communication module, determining, according to the device configuration file, the at least one wired candidate router among the other communication routers with which the communication router is capable of communicating through the wired communication module; testing whether the communication router is capable of communicating with the destination communication router through the wired communication module and the at least one wired candidate router; and when the communication router is capable of communicating with the destination communication router through the wired communication module and the at least one wired candidate router, setting the wired candidate router closest to the destination communication router to be the next hop through which the communication router transmits data to the destination communication router through the wired communication module.
17. The communication router according to claim 14, wherein the wireless exploration procedure performed by the environment exploration learning module further comprises: determining, by the communication router, the other communication router, which is capable of communicating with the destination communication router and is closest to the communication router among the other communication routers with which the communication router is capable of communicating through the wireless communication module, as the next hop through which the communication router transmits data to the destination communication router through the wireless communication module.
18. The communication router according to claim 17, wherein the wireless exploration procedure performed by the environment exploration learning module further comprises: determining, by the communication router according to the device configuration file, a wireless candidate router closest to the communication router among the other communication routers with which the communication router is capable of communicating through the wireless communication module; testing whether the communication router is capable of communicating with the destination communication router through the wireless communication module and the wireless candidate router; when the communication router is capable of communicating with the destination communication router through the wireless communication module and the wireless candidate router, setting the wireless candidate router to be the next hop through which the communication router transmits data to the destination communication router through the wireless communication module; and when the communication router is not capable of communicating with the destination communication router through the wireless communication module and the wireless candidate router, determining, by the communication router according to the device configuration file, another wireless candidate router second closest to the communication router among the other communication routers with which the communication router is capable of communicating through the wireless communication module, and when the communication router is capable of communicating with the destination communication router through the wireless communication module and the another wireless candidate router, setting the another wireless candidate router to be the next hop through which the communication router transmits data to the destination communication router through the wireless communication module.
19. The communication router according to claim 12, wherein the device configuration file further comprises the quantity of single-chain networks in the chain network, the quantity of leaf node devices in each single-chain network, the device number of leaf node devices in each single-chain network, the device number of a root node, the node type, and the single-chain number of the single-chain network to which the leaf node belongs.
20. The communication router according to claim 12, wherein the wired communication module is a power line communication module or an Ethernet communication module.
21. The communication router according to claim 12, wherein the wireless communication module is a Wi-Fi communication module.
22. The communication router according to claim 12, wherein the attribute of each communication router is a root node or a leaf node.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0009]
[0010]
[0011]
[0012]
[0013]
[0014]
[0015]
[0016]
[0017]
[0018]
[0019]
[0020]
[0021]
[0022]
[0023]
[0024]
[0025] In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the disclosed embodiments. It will be apparent, however, that one or more embodiments may be practiced without these specific details. In other instances, well-known structures and devices are schematically shown in order to simplify the drawing.
DETAILED DESCRIPTION
[0026] Referring to
[0027] In the wired exploration procedure, when the source communication router performs exploration according to the device configuration file through the wired communication module and determines that the source communication router is capable of communicating with the destination communication router through the wired communication module, the source communication router determines one of the other communication routers as the next hop through which the source communication router transmits data to the destination communication router through the wired communication module. In the wireless exploration procedure, when the source communication router performs exploration according to the device configuration file through the wireless communication module and determines that the source communication router is capable of communicating with the destination communication router through the wireless communication module, the source communication router determines one of the other communication routers as the next hop through which the source communication router transmits data to the destination communication router through the wireless communication module.
[0028] Each communication router further includes at least one explosion routing table. In the present embodiment, the at least one explosion routing table includes a wired routing table and a wireless routing table, for example. In the wired exploration procedure, a device number and a communication module type of the other communication router determined as the next hop of the source communication router are recorded in the at least one explosion routing table, such as the wired routing table. In the wireless exploration procedure, a device number and a communication module type of the other communication router determined as the next hop of the source communication router are recorded in the at least one explosion routing table, such as the wireless routing table. In other embodiments, the wired routing table and the wireless routing table can be integrated as a single routing table in which the information of the communication module type corresponds to the wired exploration procedure or the wireless exploration procedure.
[0029] In the routing decision procedure, the source communication router, according to at least one explosion routing table (for example, the wired routing table and the wireless routing table) and a routing optimization decision algorithm, sets the transmission routing of the source communication router to be through the wired communication module and sets the next hop of the source communication router to be the other communication router determined as the next hop in the wired exploration procedure, or sets the transmission routing of the source communication router to be through the wireless communication module and sets the next hop of the source communication router to be the other communication router determined as the next hop in the wireless exploration procedure.
[0030] In the wired exploration procedure, the step of determining, by the source communication router, one of the other communication routers as the next hop through which the source communication router transmits data to the destination communication router through the wired communication module includes steps (a1) to (a3). In step (a1), whether the source communication router is capable of directly communicating with the destination communication router through the wired communication module is tested. In step (a2), when the source communication router is capable of directly communicating with the destination communication router through the wired communication module, the destination communication router is set to be the next hop through which the source communication router transmits data to the destination communication router through the wired communication module. In step (a3), when the source communication router is not capable of directly communicating with the destination communication router through the wired communication module and is capable of communicating with the destination communication router through the wired communication module and at least one wired candidate router among the other communication routers, the wired candidate router closest to the destination communication router is set to be the next hop through which the source communication router transmits data to the destination communication router through the wired communication module. The step of setting the wired candidate router closest to the destination communication router to be the next hop through which the source communication router transmits data to the destination communication router through the wired communication module advantageously reduces the number of times of transferring the packet data through the communication router.
[0031] The above step (a3) of setting the wired candidate router closest to the destination communication router to be the next hop through which the source communication router transmits data to the destination communication router through the wired communication module further includes sub-steps (a31) to (a33). In sub-step (a31), when the source communication router is not capable of directly communicating with the destination communication router through the wired communication module, the at least one wired candidate router among the other communication routers with which the source communication router is capable of communicating through the wired communication module is determined by the source communication router according to the device configuration file. In sub-step (a32), whether the source communication router is capable of communicating with the destination communication router through the wired communication module and the at least one wired candidate router is tested. In sub-step (a33), when the source communication router is capable of communicating with the destination communication router through the wired communication module and the at least one wired candidate router, the wired candidate router closest to the destination communication router is set to be the next hop through which the source communication router transmits data to the destination communication router through the wired communication module.
[0032] In the wireless exploration procedure, the step of determining, by the source communication router, one of the other communication routers as the next hop through which the source communication router transmits data to the destination communication router through the wireless communication module further includes step (b1). In step (b1), whether the source communication router is capable of directly communicating with the destination communication router through the wireless communication module and at least one wireless candidate router among the other communication routers is tested, and when the source communication router is capable of communicating with the destination communication router through the wireless communication module and at least one wireless candidate router among the other communication routers, the wireless candidate router closest to the source communication router is set to be the next hop through which the source communication router transmits data to the destination communication router through the wireless communication module.
[0033] The above step (b1) of setting the wireless candidate router closest to the source communication router to be the next hop through which the source communication router transmits data to the destination communication router through the wireless communication module further includes sub-steps (b11) to (b16). In sub-step (b11), a wireless candidate router closest to the source communication router among the other communication routers with which the source communication router is capable of communicating through the wireless communication module is determined by the source communication router according to the device configuration file. In sub-step (b12), whether the source communication router is capable of communicating with the destination communication router through the wireless communication module and the wireless candidate router is tested. In sub-step (b13), when the source communication router is capable of communicating with the destination communication router through the wireless communication module and the wireless candidate router, the wireless candidate router is set to be the next hop through which the source communication router transmits data to the destination communication router through the wireless communication module.
[0034] In step (b12), when the source communication router is not capable of communicating with the destination communication router through the wireless communication module and the closest wireless candidate router, the procedure proceeds to sub-step (b14). In sub-step (b14), another wireless candidate router second closest to the source communication router among the other communication routers with which the source communication router is capable of communicating through the wireless communication module is determined by the source communication router according to the device configuration file. In sub-step (b15), whether the source communication router is capable of communicating with the destination communication router through the wireless communication module and the another wireless candidate router is tested. In sub-step (b16), when the source communication router is capable of communicating with the destination communication router through the wireless communication module and the another wireless candidate router, the another wireless candidate router second closest to the source communication router is set to be the next hop through which the source communication router transmits data to the destination communication router through the wireless communication module.
[0035] In step (b15), when the source communication router 200 is not capable of communicating with the destination communication router through the wireless communication module and the another wireless candidate router which is second closest to the source communication router, sub-steps (b14), (b15) and (b16) are performed until a relay wireless candidate router is found in step (b16). In other words, the wireless exploration procedure is to sequentially determine or select a wireless candidate router among other communication routers according to the distance between each other communication router and the source communication router from the closest to the farthest until the wireless candidate router that can enable communication is determined or selected. That is, when the source communication router is capable of communicating with the destination communication router through the wireless communication module and the determined or selected wireless candidate router, the determined or selected wireless candidate router is set to be the next hop.
[0036] The wired communication module can be a power line communication module or an Ethernet communication module. The wireless communication module can be a Wi-Fi communication module. The attribute of each communication router is a root node or a leaf node.
[0037] Referring to
[0038] In the wired exploration procedure performed by the environment exploration learning module 208, when the environment exploration learning module 208 performs exploration according to the device configuration file through the wired communication module 202 and determines that the communication router 200 is capable of communicating with the destination communication router through the wired communication module 202, the environment exploration learning module 208 determines one of the other communication routers in the chain network as the next hop through which the communication router 200 transmits data to the destination communication router through the wired communication module 202.
[0039] In the wireless exploration procedure performed by the environment exploration learning module 208, when the environment exploration learning module 208 performs exploration according to the device configuration file through the wireless communication module 204 and determines that the communication router 200 is capable of communicating with the destination communication router through the wireless communication module 204, the environment exploration learning module 208 determines one of the other communication routers in the chain network as the next hop through which the communication router 200 transmits data to the destination communication router through the wireless communication module 204.
[0040] The storage unit 206 of the communication router 200 further stores at least one explosion routing table. In the present embodiment, the at least one explosion routing table includes a wired routing table and a wireless routing table. In the wired exploration procedure performed by the environment exploration learning module 208, the environment exploration learning module 208 records a device number and a communication module type of the other communication router determined as the next hop of the communication router 200 in the at least one explosion routing table, such as the wired routing table. In the wireless exploration procedure performed by the environment exploration learning module 208, the environment exploration learning module 208 records a device number and a communication module type of the other communication router determined as the next hop of the communication router 200 in the at least one explosion routing table, such as the wireless routing table. In other embodiment, the wired routing table and the wireless routing table can be integrated as a single routing table in which the information of the communication module type corresponds to the wired exploration procedure or the wireless exploration procedure.
[0041] In the routing decision procedure performed by the routing optimization decision module 210, the routing optimization decision module 210, according to at least one explosion routing table (for example, the wired routing table and the wireless routing table) and a routing optimization decision algorithm, sets the transmission routing of the communication router 200 to be through the wired communication module 202 and sets the next hop of the communication router 200 to be the other communication router determined as the next hop in the wired exploration procedure, or sets the transmission routing of the communication router 200 to be through the wireless communication module 204 and sets the next hop of the communication router 200 to be the other communication router determined as the next hop in the wireless exploration procedure.
[0042] The wired exploration procedure performed by the environment exploration learning module 208 further includes: testing, by the environment exploration learning module 208, whether the communication router 200 is capable of directly communicating with the destination communication router through the wired communication module 202; when the communication router 200 is capable of directly communicating with the destination communication router through the wired communication module 202, setting the destination communication router to be the next hop through which the communication router 200 transmits data to the destination communication router through the wired communication module 202; and when the communication router 200 is not capable of directly communicating with the destination communication router through the wired communication module 202 and the communication router 200 is capable of communicating with the destination communication router through the wired communication module 202 and at least one wired candidate router among the other communication routers in the chain network, setting the wired candidate router closest to the destination communication router to be the next hop through which the communication router 200 transmits data to the destination communication router through the wired communication module 202.
[0043] The wired exploration procedure performed by the environment exploration learning module 208 further includes: when the communication router 200 is not capable of directly communicating with the destination communication router through the wired communication module 202, determining, according to the device configuration file, the at least one wired candidate router among the other communication routers in the chain network with which the communication router 200 is capable of communicating through the wired communication module 202; testing whether the communication router 200 is capable of communicating with the destination communication router through the wired communication module 202 and at least one wired candidate router; and when the communication router 200 is capable of communicating with the destination communication router through the wired communication module 202 and at least one wired candidate router, setting the wired candidate router closest to the destination communication router to be the next hop through which the communication router 200 transmits data to the destination communication router through the wired communication module 202.
[0044] In the wireless exploration procedure performed by the environment exploration learning module 208, the communication router 200 determines the other communication router, which is capable of communicating with the destination communication router through the wireless communication module 204 and is closest to the communication router 200, as the next hop through which the communication router 200 transmits data to the destination communication router through the wireless communication module 204.
[0045] The wireless exploration procedure further includes: determining, by the environment exploration learning module 208 of the communication router 200 according to the device configuration file, a wireless candidate router closest to the communication router 200 among the other communication routers with which the communication router 200 is capable of communicating with through the wireless communication module 204; testing whether the communication router 200 is capable of communicating with the destination communication router through the wireless communication module 204 and the closest wireless candidate router; and when the communication router 200 is capable of communicating with the destination communication router through the wireless communication module 204 and the closest wireless candidate router, setting the closest wireless candidate router to be the next hop through which the communication router 200 transmits data to the destination communication router through the wireless communication module 204.
[0046] On the other hand, when the communication router 200 is not capable of communicating with the destination communication router through the wireless communication module 204 and the closest wireless candidate router, the communication router 200, according to the device configuration file, determines another wireless candidate router second closest to the communication router 200 among the other communication routers with which the communication router 200 is capable of communicating through the wireless communication module 204; the communication router 200 tests whether the communication router 200 is capable of communicating with the destination communication router through the wireless communication module 204 and the another second closest wireless candidate router. When the communication router 200 is capable of communicating with the destination communication router through the wireless communication module 204 and the another second closest wireless candidate router, the another second closest wireless candidate router is set to be the next hop through which the communication router 200 transmits data to the destination communication router through the wireless communication module 204. When the communication router 200 is not capable of communicating with the destination communication router through the wireless communication module 204 and the another second closest wireless candidate router, the steps of the present paragraph are repeated. In other words, the wireless exploration procedure is to sequentially determine or select a wireless candidate router among other communication routers according to the distance between each other communication router and the communication router 200 from the closest to the farthest until the wireless candidate router that can enable communication is determined or selected. That is, when the communication router 200 is capable of communicating with the destination communication router through the wireless communication module 204 and the determined or selected wireless candidate router, the determined or selected wireless candidate router is set to be the next hop.
[0047] The communication router 200 may further selectively include an environment exploration scheduling module 212 configured to determine exploration action and exploration cycle for the wired communication module and the wireless communication module. The environment exploration scheduling module 212 is configured to schedule the action of exploring the wired communication status and the wireless communication status between the communication router 200 and the destination communication router, that is, to schedule the wired exploration procedure and the wireless exploration procedure to determine the time point, the frequency or the cycle of the exploration procedure. For example, the environment exploration scheduling module 212 performs scheduling and outputs a scheduled wired communication exploration schedule R_wr and a scheduled wireless communication exploration schedule R_wl to the environment exploration learning module 208 in the wired exploration procedure and the wireless exploration procedure, respectively. The environment exploration learning module 208, according to the wired communication exploration schedule R_wr and the wireless communication exploration schedule R_wl, performs the wired exploration procedure and the wireless exploration procedure to construct a wired routing table T_wr and a wireless routing table T_wl. For example, the environment exploration learning module 208, according to the wired communication exploration schedule R_wr and the wireless communication exploration schedule R_wl, performs exploration procedure to obtain a wired routing table T_wr and a wireless routing table T_wl.
[0048] After the communication router 200 is activated, the environment exploration learning module 208 outputs the wired routing table T_wr and the wireless routing table T_wl to the routing optimization decision module 210 for the routing optimization decision module 210 to determine and set the routing. The wired routing table T_wr and the wireless routing table T_wl outputted by the environment exploration learning module 208 include the communication module in use and the device number of the next hop. For example, the environment exploration learning module 208 transmits the communication module in use (the wired communication module or the wireless communication module) and the next hop corresponding to each routing of the communication router 200 (for example, the next hop through which the communication router 200 transmits data to the destination communication router through the wired communication module or the wireless communication module) to the routing optimization decision module 210.
[0049] The routing optimization decision module 210, according and the wired routing table T_wr and the wireless routing table T_wl and the topology of the chain network, determines the routing to optimize system efficiency. For example, during the signal transmission stage, the routing optimization decision module 210, based on the topology of the chain network, can design a better routing according to the wired communication module in use and the corresponding next hop or according to the wireless communication module in use and the corresponding next hop. The routing refers to the signal transmission path between the communication router 200 and the destination communication router. For example, the signal transmission path includes the other communication routers between the communication router 200 and the destination communication router. For example, the routing optimization decision module 210 prioritizes the wired communication module for signal transmission. Thus, the communication router 200 can transmit data to the destination communication router through at least one of the wired communication module and the wireless communication module.
[0050] Selectively, the environment exploration learning module 208 and the environment exploration scheduling module 212 can form an environment exploring module 214. The communication router 200 can further be equipped with wireless access function and used as a wireless access point for connecting the user's wireless device to the Internet. Details of the routing establishing method of
[0051] Referring to
[0052] In the chain network 300, the source communication router obtains the wired communication status and the wireless communication status between the source communication router and the destination communication router according to a device configuration file. The device configuration file can be stored in the source communication router or other device. The device configuration file can be, for example, downloaded from a control host through a user interface when the control host is booted. The device configuration file records device numbers related to relative positions of the communication routers in the chain network. The information recorded in the device configuration file further includes the quantity of single-chain networks in the chain network, the quantity of leaf node devices in each single-chain network, the device number of the leaf node devices in each single-chain network, the device number of a root node, the node type, and the single-chain number of the single-chain network to which the leaf node belongs.
[0053] Let the communication router C.sub.1,1 in the first single-chain network 302 be taken for example. The information recorded in the device configuration file of the communication router C.sub.1,1 includes the quantity of single-chain networks in the chain network (for example, the device configuration file of the communication router C.sub.1,1 records the quantity N of single-chain networks in the chain network 300), the quantity of leaf node devices in each single-chain network (for example, the device configuration file of the communication router C.sub.1,1 records the quantity K.sub.1 of leaf node devices in the first single-chain network 302), the device number of the leaf node devices in each single-chain network (for example, the device configuration file of the communication router C.sub.1,1 records corresponding device numbers of the communication routers C.sub.1,1 to C.sub.1,K.sub.
[0054] The device configuration file also includes the device numbers of all communication routers in the corresponding single-chain network, and the device numbers are related to relative positions of the communication routers in the corresponding single-chain network. For example, the device number of the communication router C.sub.1,1 is 1, indicating that the communication router C.sub.1,1 is located at the first position following the root communication router C.sub.R in the first single-chain network 302. The device number of the communication router C.sub.1,2 is 2, indicating that the communication router C.sub.1,2 is located at the second position following the root communication router C.sub.R in the first single-chain network 302.
[0055] The next hop, through which the source communication router transmits data to the destination communication router through the wired communication module and determined in the wired exploration procedure performed by the source communication router according to the device configuration file through the wired communication module, is defined as the next hop of wired communication. The next hop, through which the source communication router transmits data to the destination communication router through the wireless communication module and determined in the wireless exploration procedure performed by the source communication router according to the device configuration file through the wireless communication module, is defined as the next hop of wireless communication.
[0056] The device number and the communication module type of the next hop of wired communication are recorded in the wired routing table, and the device number and the communication module type of the next hop of wireless communication are recorded in the wireless routing table. In the routing decision procedure, through the routing optimization decision algorithm, one of the next hop of wired communication and the next hop of wireless communication is selected and recorded in a routing optimization decision table. The source communication router transmits data to the destination communication router through the selected next hop of wired communication or next hop of wireless communication through the wired communication module or the wireless communication module. The source communication router, according to the wired routing table, the wireless routing table, and the routing optimization decision table, sets the transmission routing from the source communication router to the destination communication router to be transmitted through the wired communication module and sets the next hop of the source communication router to be the next hop of wired communication, or sets the transmission routing from the source communication router to the destination communication router to be transmitted through the wireless communication module and sets the next hop of the source communication router to be the next hop of wireless communication.
[0057] Referring to
[0058] Referring to
[0059] The communication status between the source communication router and the destination communication router obtained by the source communication router performing explanation through the wired communication module in the wired exploration procedure is referred as “wired communication status”. The communication status between the source communication router and the destination communication router obtained by the source communication router performing explanation through the wireless communication module in the wireless exploration procedure is referred as “wireless communication status”.
[0060] Refer to
[0061] When exploration is performed with the arrangement that the communication router C.sub.1,1 is used as the source communication router and the communication router C.sub.1,2 is used as the destination communication router, the communication router C.sub.1,1 will first of all transmit an exploration packet to the communication router C.sub.1,2 through the wired communication module. In the exploration packet, the destination is set to be the address of the communication router C.sub.1,2. When the communication router C.sub.1,1 receives a reply from the communication router C.sub.1,2, this indicates that the communication router C.sub.1,1 can communicate with the communication router C.sub.1,2 through the wired communication module. In the wired exploration procedure, the communication router C.sub.1,1 obtains a wired communication status in which the communication router C.sub.1,1 can communicate with the communication router C.sub.1,2 through the wired communication module. Therefore, as indicated in FIG. 5A, the “destination communication router” column of the wired routing table for the arrangement that the communication router C.sub.1,1 is used as the source communication router records the communication router C.sub.1,2. Based on the step (a1) of “testing whether the source communication router is capable of directly communicating with the destination communication router through the wired communication module” and the step (a2) of “when the source communication router is capable of directly communicating with the destination communication router through the wired communication module, setting the destination communication router to be the next hop through which the source communication router transmits data to the destination communication router through the wired communication module”, the communication router C.sub.1,1 used as the source communication router is capable of directly communicating with the communication router C.sub.1,2 used as the destination communication router through the wired communication module, and the destination communication router (the communication router C.sub.1,2) can be set to be the next hop through which the source communication router transmits data to the destination communication router through the wired communication module. That is, the “next hop” column of the data row corresponding to the communication router C.sub.1,2 records the device code or the device number of the communication router C.sub.1,2.
[0062] Similarly, when exploration is performed with the arrangement that the communication router C.sub.1,1 is used as the source communication router and the communication router C.sub.1,3 is used as the destination communication router, the communication router C.sub.1,1 obtains a routing between the communication router C.sub.1,1 and the communication router C.sub.1,3, and the communication router C.sub.1,1 further obtains a wired communication status in which the communication router C.sub.1,1 can communicate with the communication router C.sub.1,3 through the wired communication module. Therefore, as indicated in
[0063] When exploration is performed with the arrangement that the communication router C.sub.1,1 is used as the source communication router and the communication router C.sub.1,4 is used as the destination communication router, the communication router C.sub.1,1 will first of all transmit an exploration packet through the wired communication module. In the exploration packet, the destination is set to be the address of the communication router C.sub.1,4. When the communication router C.sub.1,1 does not receive any reply from the communication router C.sub.1,4, the communication router C.sub.1,1 determines that it cannot directly communicate with the communication router C.sub.1,4 through the wired communication module. Then, the communication router C.sub.1,1 transmits another exploration packet through the wired communication module. In the another exploration packet, the destination is set to be the address of the communication router C.sub.1,4, and the relay node is set to be the communication router C.sub.1,3 closest to the communication router C.sub.1,4. Thus, the another exploration packet will firstly be transmitted to the communication router C.sub.1,3, then the communication router C.sub.1,3 will further transfer the another exploration packet to the communication router C.sub.1,4. When the communication router C.sub.1,3 receives a reply from the communication router C.sub.1,4 and the communication router C.sub.1,1 receives a reply from the communication router C.sub.1,3 (such as the reply that the communication router C.sub.1,4 has received the packet), the communication router C.sub.1,1 will obtain a wired communication status in which the communication router C.sub.1,1 can communicate with the communication router C.sub.1,4 through the communication router C.sub.1,3 and through the wired communication module (that is, the communication router C.sub.1,1 can communicate with the communication router C.sub.1,4 through the wired connection between the communication node C.sub.1,1 and the communication node C.sub.1,3). The communication router C.sub.1,1 does not need to know whether the communication router C.sub.1,3 and the communication router C.sub.1,4 communicate with each other through wired connection or wireless connection.
[0064] The communication router C.sub.1,1 and the communication router C.sub.1,4 cannot communicate with each other without going through the communication node C.sub.1,3 used as a relay node. Therefore, as indicated in
[0065] Similarly, when the wired exploration procedure is performed with the arrangement that the communication router C.sub.1,1 is used as the source communication router and the communication router C.sub.1,5 is used as the destination communication router, the communication router C.sub.1,1 obtains a wired communication status in which the routing between the communication node C.sub.1,1 and the communication node C.sub.1,5 through the wired communication module of the communication node C.sub.1,1 must pass through the communication router C.sub.1,3 used as the next hop to relay data. That is, the communication node C.sub.1,1 and the communication node C.sub.1,5 communicate with each other by using the wired connection between the communication router C.sub.1,1 and the communication router C.sub.1,3 and the wireless connection between the communication router C.sub.1,3 and the communication router C.sub.1,5. Therefore, as indicated in
[0066] Refer to
[0067] When the wireless exploration procedure is performed with the arrangement that the communication router C.sub.1,1 is used as the source communication router and the communication router C.sub.1,2 is used as the destination communication router, the communication router C.sub.1,1 obtains a wireless communication status in which the communication router C.sub.1,1 cannot communicate with the communication router C.sub.1,2 through the wireless communication module. Therefore, as indicated in
[0068] Refer to
[0069] When the wired exploration procedure is performed with the arrangement that the communication router C.sub.1,2 is used as the source communication router and the communication router C.sub.1,1 is used as the destination communication router, the communication router C.sub.1,2 obtains a wired communication status in which the communication router C.sub.1,2 can directly communicate with the communication router C.sub.1,1 through the wired communication module. Therefore, as indicated in
[0070] When the wired exploration procedure is performed with the arrangement that the communication router C.sub.1,2 is used as the source communication router and the communication router C.sub.1,3 is used as the destination communication router, the communication router C.sub.1,2 obtains a wired communication status in which the communication router C.sub.1,2 can directly communicate with the communication router C.sub.1,3 through the wired communication module. Therefore, as indicated in
[0071] Similarly, when the wired exploration procedure is performed with the arrangement that the communication router C.sub.1,2 is used as the source communication router and the communication router C.sub.1,4 is used as the destination communication router, the communication router C.sub.1,2 obtains a wired communication status in which the communication router C.sub.1,2 can communicate with the communication router C.sub.1,4 through the wired communication module and the relay of the communication router C.sub.1,3. That is, the communication router C.sub.1,2 can communicate with the communication router C.sub.1,4 by using the wired connection between the communication router C.sub.1,2 and the communication router C.sub.1,3 and the wireless connection between the communication router C.sub.1,3 and the communication router C.sub.1,4. Therefore, as indicated in
[0072] Similarly, when the wired exploration procedure is performed with the arrangement that the communication router C.sub.1,2 is used as the source communication router and the communication router C.sub.1,5 is used as the destination communication router, the communication router C.sub.1,2 obtains a wired communication status in which the communication router C.sub.1,2 can communicate with the communication router C.sub.1,5 through the wired communication module and the relay of the communication router C.sub.1,3. That is, the communication router C.sub.1,2 can communicate with the communication router C.sub.1,5 by using the wired connection between the communication router C.sub.1,2 and the communication router C.sub.1,3, the wireless connection between the communication router C.sub.1,3 and the communication router C.sub.1,4, and the wireless connection between the communication router C.sub.1,4 and the communication router C.sub.1,5. Therefore, as indicated in
[0073] Refer to
[0074] When the wireless exploration procedure is performed with the arrangement that the communication router C.sub.1,2 is used as the source communication router and the communication router C.sub.1,3 is used as the destination communication router, the communication router C.sub.1,2 obtains a wireless communication status in which the communication router C.sub.1,2 can directly communicate with the communication router C.sub.1,3 through the wireless communication module. Therefore, as indicated in
[0075] When the wireless exploration procedure is performed with the arrangement that the communication router C.sub.1,2 is used as the source communication router and the communication router C.sub.1,4 is used as the destination communication router, the communication router C.sub.1,2 obtains a wireless communication status in which the communication router C.sub.1,2 can communicate with the communication router C.sub.1,4 through the wireless communication module and the relay of the communication router C.sub.1,3. That is, the communication router C.sub.1,2 can communicate with the communication router C.sub.1,4 by using the wireless connection between the communication router C.sub.1,2 and the communication router C.sub.1,3 and the wireless connection between the communication router C.sub.1,3 and the communication router C.sub.1,4. Therefore, as indicated in
[0076] Refer to
[0077] Refer to
[0078] Refer to
[0079] Similarly, when the wireless exploration procedure is performed with the arrangement that the root communication router C.sub.R is used as the source communication router and the communication router C.sub.1,2 is used as the destination communication router, the root communication router C.sub.R obtains a wireless communication status in which the root communication router C.sub.R can communicate with the communication router C.sub.1,2 through the wireless communication module and the relay of the communication router C.sub.1,1. That is, the root communication router C.sub.R can communicate with the communication router C.sub.1,2 by using the wireless connection between the root communication router C.sub.R and the communication router C.sub.1,1 and the wired connection between the communication router C.sub.1,1 and the communication router C.sub.1,2. Therefore, as indicated in
[0080] Similarly, when the wireless exploration procedure is performed with the arrangement that the root communication router C.sub.R is used as the source communication router and the communication router C.sub.1,3 is used as the destination communication router, the root communication router C.sub.R obtains a wireless communication status in which the root communication router C.sub.R can communicate with the communication router C.sub.1,3 through the wireless communication module and the relay of the communication router C.sub.1,1 and the communication router C.sub.1,2. That is, the root communication router C.sub.R can communicate with the communication router C.sub.1,3 by using the wireless connection between the root communication router C.sub.R and the communication router C.sub.1,1, the wired connection between the communication router C.sub.1,1 and the communication router C.sub.1,2, and the wired connection or wireless connection between the communication router C.sub.1,2 and the communication router C.sub.1,3. Therefore, as indicated in
[0081] Similarly, when the wireless exploration procedure is performed with the arrangement that the root communication router C.sub.R is used as the source communication router and the communication router C.sub.1,4 is used as the destination communication router, the root communication router C.sub.R obtains a wireless communication status in which the root communication router C.sub.R can communicate with the communication router C.sub.1,4 through the wireless communication module and the relay of the communication router C.sub.1,1, the communication router C.sub.1,2 and the communication router C.sub.1,3 That is, the root communication router C.sub.R can communicate with the communication router C.sub.1,4 by using the wireless connection between the root communication router C.sub.R and the communication router C.sub.1,1, the wired connection between the communication router C.sub.1,1 and the communication router C.sub.1,2, the wired or wireless connection between the communication router C.sub.1,2 and the communication router C.sub.1,3, and the wireless connection between the communication router C.sub.1,3 and the communication router C.sub.1,4. Therefore, as indicated in
[0082] Similarly, when the wireless exploration procedure is performed with the arrangement that the root communication router C.sub.R is used as the source communication router and the communication router C.sub.1,5 is used as the destination communication router, the root communication router C.sub.R obtains a wireless communication status in which the root communication router C.sub.R can communicate with the communication router C.sub.1,5 through the wireless communication module and the relay of the communication routers C.sub.1,1, C.sub.1,2, C.sub.1,3 and C.sub.1,4. That is, the root communication router C.sub.R can communicate with the communication router C.sub.1,5 by using the wireless connection between the root communication router C.sub.R and the communication router C.sub.1,1, the wired connection between the communication router C.sub.1,1 and the communication router C.sub.1,2, the wired or wireless connection between the communication router C.sub.1,2 and the communication router C.sub.1,3, the wireless connection between the communication router C.sub.1,3 and the communication router C.sub.1,4, and the wireless connection between the communication router C.sub.1,4 and the communication router C.sub.1,5. Therefore, as indicated in
[0083] Referring to
[0084] Suppose the routing optimization decision module 210 generates the routing optimization decision table with the arrangement that the priority of the wired communication module is higher than the priority of the wireless communication module. As indicated in
[0085] Similarly, as indicated in
[0086] Similarly, as indicated in
[0087] Thus, after the environment exploration learning module 208 outputs the wired routing table T_wr and the wireless routing table T_wl to the routing optimization decision module 210, the routing optimization decision module 210 generates a corresponding routing optimization decision table to determine the routing establishment. For example, during the signal transmission stage, the routing optimization decision module 210 determines whether to transmit data to the destination communication router through the wired communication module or the wireless communication module of the source communication router according to the generated routing optimization decision table, and determines which communication node should the packet be transmitted to according to the next hop of transmission routing recorded in the routing optimization decision table, such that better routing can be obtained and the system efficiency can be optimized.
[0088] Before the wired exploration procedure and the wireless exploration procedure are performed, each communication router only has the information of its own device configuration file. Each communication router is ignorant of the communication environment status, for example, whether there is any metal barrier blocking wireless communication. After the wired exploration procedure and the wireless exploration procedure are performed, each communication router obtains the wired connection status and the wireless connection status between itself and other communication routers. Thus, during the signal transmission stage, each communication router, according to the routing optimization decision table generated in the routing decision procedure, obtains the next hop of transmission routing through which data is transmitted to the destination communication router. In a diversified manner, each communication router independently obtains its own wired routing table, wireless routing table, and routing optimization decision table, such that the routing for data transmission can be automatically generated and optimized without involving manual setting or adjustment, which is indeed very convenient and time saving.
[0089] Referring to
[0090] Referring to
[0091] In the single-chain network 400, suppose the root communication router C.sub.R and the communication router C.sub.1,1 are located on the deck of a container ship; the communication router C.sub.1,2, the communication router C.sub.1,3, the communication router C.sub.1,4, and the communication router C.sub.1,5 are located in the under-deck channel of the container ship; and the root communication router C.sub.R and the communication router C.sub.1,1 are separated from the communication router C.sub.1,2, the communication router C.sub.1,3, the communication router C.sub.1,4, and the communication router C.sub.1,5 by a metal deck. As indicated in
[0092] As indicated in
[0093] Details of the method for locating the next hop using the wired communication module for communication in the wired exploration procedure and the next hop using the wireless communication module for communication in the wireless exploration procedure are further described below. Refer to
[0094] In step 1106, a next hop using the wired communication module for communication and a next hop using the wireless communication module for communication are generated by the root node environment learning module 1002. In step 1108, the device number of the single-chain network to which the communication router belongs is read by the communication router, and the method proceeds to step 1110. In step 1110, a next hop using the wired communication module for communication and a next hop using the wireless communication module for communication are generated by the leaf node environment learning module 1004.
[0095] The root node environment learning module 1002 and the leaf node environment learning module 1004, based on the device configuration file, respectively obtain the wired routing table T_wr and the wireless routing table T_wl of the communication router to other communication routers according to the wired communication exploration schedule R_wr and the wireless communication exploration schedule R_wl. The root communication router needs to generate the wired routing table T_wr and the wireless routing table T_wl for the communication routers of each single-chain in the chain network, and the leaf node only needs to generate the wired routing table T_wr and the wireless routing table T_wl relevant to other communication routers in the single-chain network to which the leaf node belongs.
[0096] In step 1106, details of an example of the method for generating, by the root node environment learning module 1002, the next hop using the wired communication module for communication and the next hop using the wireless communication module for communication are described. Suppose I.sub.n,m.sup.R,Wired indicates the direct wired connection between the root communication router C.sub.R using the wired communication module and the communication router C.sub.n,m, wherein 1≤n≤N, 0≤m≤K.sub.n, that is, n is a positive integer smaller than or equivalent to N, m is a integer smaller than or equivalent to K.sub.n and greater than or equivalent to 0. Any chain of the N chains (N single-chain networks) is represented by the n-th chain, K.sub.n represents the device quantity of the n-th chain (that is, the device quantity of any of the first to the n-th chain). When the value of I.sub.n,m.sup.R,Wired is equivalent to 1, this indicates that the root communication router C.sub.R can have direct wired connection with the communication router C.sub.n,m. I.sub.n,m.sup.R,Wireless indicates the direct wireless connection between the root communication router C.sub.R using the wireless communication module and the communication router C.sub.n,m. When the value of I.sub.n,m.sup.R,Wireless is equivalent to 1, this indicates that the root communication router C.sub.R can have direct wireless connection with the communication router C.sub.n,m. The next hop through which the root communication router C.sub.R communicates with the communication router C.sub.n,m through the wired for communication module is represented as NEXT.sub.n,m.sup.R,Wired. The next hop through which the root communication router C.sub.R communicates with the communication router C.sub.n,m through the wireless communication module is represented as NEXT.sub.n,m.sup.R,Wireless. Parameter K.sub.n,m.sup.R,Wired and parameter K.sub.n,m.sup.R,Wireless are obtained firstly and expressed as equation 1 and equation 2 respectively:
K.sub.n,m.sup.R,Wired=arg max.sub.1≤k≤m{k|I.sub.n,m.sup.R,Wired=1} (Equation 1)
K.sub.n,m.sup.R,Wired=arg min.sub.1≤k≤m{k|I.sub.n,m.sup.R,Wired=1} (Equation 2)
[0097] That is, parameter K.sub.n,m.sup.R,Wired represents the maximum integer k among the values of 1 to m satisfying I.sub.n,m.sup.R,Wired=1. Parameter K.sub.n,m.sup.R,Wireless represents the minimum integer k among the values of 1 to m satisfying I.sub.n,m.sup.R,Wireless=1. Then, the next hop NEXT.sub.n,m.sup.R,Wired through which the root communication router C.sub.R communicates with the communication router C.sub.n,m through the wired communication module and the next hop NEXT.sub.n,m.sup.R,Wireless through which the root communication router C.sub.R communicates with the communication router C.sub.n,m through the wireless communication module are expressed as equation 3 and equation 4 respectively:
[0098] That is, in the n-th single-chain network, when the root communication router C.sub.R is used as the source communication router and the communication router C.sub.n,m is used as the destination communication router, the next hop NEXT.sub.n,m.sup.R,Wired through which the communication router C.sub.R communicates with the communication router C.sub.n,m through the wired communication module is set to be the communication router C.sub.n,k, wherein k is the maximum among the values of 1 to m in the communication routers having direct wired connection with the root communication router C.sub.R. That is, the next hop is the communication router farthest away from the root communication router C.sub.R. In other words, the next hop is the communication router closest to the communication router C.sub.n,m used as the destination communication router. The next hop NEXT.sub.n,m.sup.R,Wireless through which the root communication router C.sub.R communicates with the communication router C.sub.n,m through the wireless communication module can be set to be the communication router C.sub.n,k, wherein k is the minimum among the values of 1 to m in the communication routers having direct wireless connection with the root communication router C.sub.R. That is, the next hop is the communication router closest to the root communication router C.sub.R used as the source communication router.
[0099] In step 1110, details of an example of generating, by the leaf node environment learning module 1004, the next hop using the wired communication module for communication and the next hop using the wireless communication module for communication are described below. Suppose I.sub.n,m,k.sup.Wired indicates the direct wired connection status between the communication router C.sub.n,m and the communication router C.sub.n,k, wherein m≠k, 1≤m, k≤K.sub.n. When I.sub.n,m,k.sup.Wired is equivalent to 1, this indicates that the communication router C.sub.n,m and the communication router C.sub.n,k can be connected through direct wired connection. I.sub.n,m,k.sup.Wireless indicates the direct wireless connection status between the communication router C.sub.n,m and the communication router C.sub.n,k. When I.sub.n,m,k.sup.Wireless is equivalent to 1, this indicates that the communication router C.sub.n,m and the communication router C.sub.n,k can be connected through direct wireless connection. The next hop through which the communication router C.sub.n,m communicates with the communication router C.sub.n,k through the wired communication module is represented as NEXT.sub.n,m,k.sup.Wired. The next hop through which the communication router C.sub.n,m communicates with the communication router C.sub.n,k through the wireless communication module is represented as NEXT.sub.n,m,k.sup.Wireless. Parameter K.sub.n,m,k.sup.Wired and parameter K.sub.n,m,k.sup.Wireless are firstly obtained and expressed as equation 5 and equation 6 respectively:
K.sub.n,m,k.sup.Wired=arg max.sub.0≤l≤K.sub.
K.sub.n,m,k.sup.Wireless=arg min.sub.0≤l≤k.sub.
[0100] That is, parameter K.sub.n,m,k.sup.Wired represents the value l among the values of 1 to K.sub.n making the value of |m−l| the maximum when I.sub.n,m,l.sup.Wired=1 (l is between m and k). Parameter K.sub.n,m,k.sup.Wireless represents the value l among the values of 1 to K.sub.n making the value of |m−l| the minimum when I.sub.n,m,l.sup.Wired=1 (l is between m and k). Then, the next hop NEXT.sub.n,m,k.sup.Wired through which the communication router C.sub.n,m communicates with the communication router C.sub.n,k through the wired communication module and the next hop NEXT.sub.n,m,k.sup.Wireless through which the communication router C.sub.n,m communicates with the communication router C.sub.n,k through the wireless communication module are expressed as equation 7 and equation 8 respectively:
[0101] That is, in the n-th single-chain network, when the communication router C.sub.n,m is used as the source communication router and the communication router C.sub.n,k is used as the destination communication router, the next hop NEXT.sub.n,m,k.sup.Wired through which the communication router C.sub.n,m communicates with the communication router C.sub.n,k through the wired communication module is set to be the communication router
which is located between the communication router C.sub.n,m and the communication router C.sub.n,k and is farthest away from the communication router C.sub.n,m among the communication routers having direct wired connection with the communication router C.sub.n,m. The next hop NEXT.sub.n,m,k.sup.Wireless through which the communication router C.sub.n,m communicates with the communication router C.sub.n,k through the wireless communication module is set to be the communication router
which is located between the communication router C.sub.n,m and the communication router C.sub.n,k and is closest to the communication router C.sub.n,m among the communication routers having direct wired connection with the communication router C.sub.n,m.
[0102] Referring to
[0103] As indicated in
[0104] Referring to
[0105] Referring to
[0106] Based on the above considerations, communication routers 2, 3, 9, 4, 5, 17, 25, 18, and 19 are configured in the deck area 1402 of
[0107] Solid lines represent wired connection, and dotted lines represent wireless connection. For example, the communication router 9 configured in the deck area 1402 and the communication router 10 configured in the under-deck channel 1404 can be connected through wired connection; the communication router 9 configured in the deck area 1402 and the root communication router 2 can be connected through wireless connection.
[0108] As indicated in
[0109] Therefore, the embodiment of the present disclosure has the following features: (1) the design of topology architecture (for example, the chain network) is simply, such that the network engineers can conveniently and quickly plan for the long, narrow and closed site; (2) the transmission method with autonomous planning of routing is based on the chain network, therefore the network engineers only need to set the device configuration file for the communication routers of the backbone network devices, and after the site personnel configure the communication routers in the site according to the planning, each communication router will automatically perform the wired exploration procedure and the wireless exploration procedure to generate the wired routing table and the wireless routing table for the autonomous networking of the chain network; (3) the dual-mode (wired network and wireless network) chain network provides excellent transmission backup, which enhances system robustness and enables the system to quickly recover from breakdowns.
[0110] As disclosed above, the embodiments of the present disclosure are capable of resolving the problems of the network establishment in a long, narrow and closed space being too difficult, the maintenance being too time consuming and the establishment cost being too high and make the network system easy to establish. Moreover, when the network system malfunctions, the system can automatically plan the connection status and automatically clear the malfunction.
[0111] It will be apparent to those skilled in the art that various modifications and variations can be made to the disclosed embodiments. It is intended that the specification and examples be considered as exemplary only, with a true scope of the disclosure being indicated by the following claims and their equivalents.