Terminal device without packet loss and control method thereof
The method of updating AODV network routing tables without entry deletion through metric comparison and load distribution addresses packet loss, maintaining network stability.
Patent Information
- Application Number
- JP2023049696
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-27
- Publication Date
- 2024-10-09
- Estimated Expiration
- 2043-03-27
AI Technical Summary
Existing AODV network systems experience packet loss during routing table updates due to temporary deletion of entries, leading to network instability.
Implement a method where new links are connected without deleting routing table entries, using a notification signal to update entries based on metric comparison and an optimizable flag to distribute calculation and communication load.
Prevents packet loss during routing table updates by maintaining route information and distributing load, ensuring stable network communication.
Smart Images

Figure 2024138958000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a terminal device that does not involve packet loss and a control method thereof. [Background technology]
[0002] A routing technique in networks called AODV (Ad hoc On-Demand Distance Vector) has been known for some time. In an AODV network system, multiple terminal devices are interconnected. Since the terminal devices correspond to nodes in the graph structure, they are also called "nodes." A communication line connecting the terminal devices is called a "link." Although it is described as a "communication line," it does not have to be wired, and the nodes may be connected by wireless communication.
[0003] Each terminal device in the AODV network system is provided with a storage unit that stores a routing table. In the routing table, the ID or address of the destination of a packet, the next hop when transmitting the packet to the destination, and information indicating the metric to the destination (e.g., information such as the number of hops) are stored as route information in association with each other.
[0004] Now, let us assume that an AODV network exists and a new link appears between two nodes that did not have a link before. Since the network connection state changes, shortcuts that did not exist before may appear. Therefore, generally speaking, it becomes necessary to rewrite all the information in the routing table that indicates the next hop and the metric to the destination.
[0005] In the conventional method of rewriting a routing table described in Patent Document 1, when the need arises for rewriting the routing table of a terminal device, the routing table for that destination is temporarily deleted. In this deleted state, when the terminal device receives a packet for the destination from an adjacent terminal device, the next hop for that packet is unknown, leading to packet loss. [Prior art documents] [Patent documents]
[0006] [Patent Document 1] Patent No. 5778357 Summary of the Invention [Problem to be solved by the invention]
[0007] In this way, in Patent Document 1, when updating the routing table, the entry is temporarily deleted, which may result in packet loss depending on the network configuration.
[0008] An object of the present invention is to provide a terminal device and a control method thereof that prevent packet loss when updating a routing table. [Means for solving the problem]
[0009] The inventors discovered that when a new link is connected in a network system and a routing table entry needs to be deleted, a route search can be performed and the routing table entry updated without deleting the entry, and this led to the completion of the present invention.
[0010] (1) A terminal device comprising: a transmitting means, in the case where a predetermined first terminal device and a predetermined second terminal device of a network system in which a plurality of terminal devices are communicatively connected by links are communicatively connected by a new link, for transmitting, in the first and second terminal devices, a notification signal having information indicating that the first and second terminal devices are communicatively connected by the new link and information indicating a metric to the first or second terminal device, to a terminal device other than the first and second terminal devices; a forwarding means, in the other terminal device which receives the notification signal, for adding a metric from the terminal device immediately before which the notification signal was transmitted to the terminal device itself to the information indicating the metric of the notification signal, and forwarding the result to the other terminal device; and an updating means for updating route information stored in a routing table when the notification signal is received, wherein the updating means compares the metric of each entry stored in the routing table with the metric stored in the notification signal, and performs a route search for entries having a metric greater than the metric stored in the notification signal by a predetermined value, and updates the entry with the search result.
[0011] The terminal device of (1) does not delete an entry in the routing table when updating the entry, so that no packet loss occurs.
[0012] (2) The terminal device of (1), wherein the route information has an optimizable flag, and the update means sets the optimizable flag to "valid" if, as a result of the comparison, the metric of the entry is greater than the metric stored in the notification signal by a predetermined value, and then, if the optimizable flag is "valid" when a data packet is received, performs a route search and changes the optimizable flag to "invalid."
[0013] The terminal device in (2) prevents all terminal devices from updating their routing tables at the same time, thereby distributing the amount of calculation and the communication load.
[0014] (3) A terminal device according to (2), which, if the packet to be transmitted by the terminal device is a packet received from another adjacent terminal device, forwards the packet according to current route information, and, if the packet to be transmitted by the terminal device is a packet generated within the terminal device itself, performs control based on the optimization possible flag.
[0015] In the case of the terminal device (3), if the packet to be sent is a packet received from another adjacent terminal device, the packet is forwarded according to the current route information, thereby further distributing the computational load and communication load caused by route search.
[0016] (4) A method for controlling a plurality of terminal devices in a network system in which the terminal devices are communicatively connected by links, comprising the steps of: when a predetermined first terminal device and a predetermined second terminal device constituting the network system are communicatively connected by a new link, a transmitting step in the first and second terminal devices, transmitting a notification signal having information indicating that the first and second terminal devices are communicatively connected by the new link and information indicating a metric to the first or second terminal device, to a terminal device other than the first and second terminal devices; a forwarding step in the other terminal device that has received the notification signal, adding a metric from the terminal device that immediately precedes the terminal device that transmitted the notification signal to the information indicating the metric of the notification signal and forwarding the result to the other terminal device by a forwarding step; and an updating step in which, when the notification signal is received, updating route information stored in a routing table by an updating means, the updating step compares the metric of each entry stored in the routing table with the metric stored in the notification signal, and performs a route search for entries having a metric greater than the metric stored in the notification signal by a predetermined value, and updates the entry based on the search result.
[0017] The terminal device control method of (4) does not delete an entry in the routing table when updating the entry, so that no packet loss occurs.
[0018] (5) A method for controlling a terminal device according to (4), wherein the route information has an optimizable flag, and in the update step, if the comparison result shows that the metric of the entry is greater than the metric stored in the notification signal by a predetermined value, the optimizable flag is set to "valid", and then, if the optimizable flag is "valid" when a data packet is received, a route search is performed and the optimizable flag is changed to "invalid".
[0019] The method of controlling the terminal devices in (5) prevents all terminal devices from updating their routing tables at once, so that the amount of calculation and the communication load can be distributed.
[0020] (6) A control method for a terminal device according to (5), in which, if a packet to be transmitted by the terminal device is a packet received from another adjacent terminal device, the packet is forwarded according to current route information, and, if the packet to be transmitted by the terminal device is a packet generated within the terminal device itself, control is performed based on the optimization possible flag.
[0021] In the control method of the terminal device (6), if the packet to be transmitted is a packet received from another adjacent terminal device, the packet is forwarded according to the current route information, so that the computational load and communication load caused by route search can be further distributed. Effect of the Invention
[0022] According to the present invention, when updating an entry in a routing table, the entry is not temporarily deleted, so that no packet loss occurs. [Brief description of the drawings]
[0023] [Figure 1] FIG. 2 is a diagram illustrating a configuration of a terminal device according to an embodiment of the present invention. [Diagram 2] FIG. 1 is a diagram illustrating the operation of AODV. [Diagram 3] FIG. 1 is a diagram illustrating the operation of AODV. [Figure 4] FIG. 1 is a diagram showing the operation of the prior art. [Diagram 5] FIG. 1 is a diagram showing the operation of the prior art. [Figure 6] FIG. 1 illustrates an embodiment of the present invention. [Figure 7] FIG. 13 is an explanatory diagram of route reversal. [Figure 8] FIG. 11 is a diagram illustrating control for load balancing. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0024] 1 is a diagram showing a configuration of a terminal device 10 according to an embodiment of the present invention. The terminal device 10 has a packet relay processing unit 11, a control unit 12, a storage unit 13, receiving units 14-1 to 14-n, and transmitting units 15-1 to 15-n.
[0025] Under the control of the control unit 12, the packet relay processing unit 11 transmits packets received by the receiving units 14-1 to 14-n from the corresponding transmitting units 15-1 to 15-n in accordance with the information stored in the header of the packets.
[0026] The control unit 12 controls the packet relay processing unit 11 in accordance with a routing table 13a stored in the storage unit 13 to relay packets and to execute processing related to the RLNK notification signal, as will be described later.
[0027] The storage unit 13 is configured by a semiconductor memory, and has a routing table 13a which is information for forwarding packets, and also stores programs and data for executing the above-mentioned processing related to the notification signal RLNK. Receiving units 14-1 to 14-n receive packets via links, and transmitting units 15-1 to 15-n transmit packets via links.
[0028] The packet relay processing unit 11 has a transmission means 11a. When a predetermined first terminal device and a predetermined second terminal device in the network system are communicatively connected by a new link, the transmission means 11a transmits, in the first and second terminal devices, a notification signal RLNK including information indicating that the first and second terminal devices are communicatively connected by the new link and information indicating a metric to the first or second terminal device, to terminal devices other than the first and second terminal devices.
[0029] A metric indicates the distance of the path (route) to a communication partner in a network. Metrics are also called routing metrics. When there are multiple paths between the source and the communication partner in a network, the metrics of each path are compared and the network is configured so that the communication data is delivered using the shortest path. Distance is not the physical length from the source to the destination, but is an index that is determined logically, for example, by the number of network devices (number of hops) that must be passed through.
[0030] The packet relay processing unit 11 also has a forwarding means 11b. In the other terminal device that has received the notification signal RLNK, the forwarding means 11b adds a metric from the terminal device that has just transmitted the notification signal RLNK to the information indicating the metric of the notification signal RLNK to the terminal device itself, and further forwards the result to the other terminal device.
[0031] The control unit 12 has an update means 12a. When the notification signal RLNK is received, the update means 12a updates the route information stored in the routing table 13a. More specifically, the update means 12a compares the metric of each entry stored in the routing table 13a with the metric stored in the notification signal RLNK, performs a route search for an entry having a metric that is a predetermined value larger than the metric stored in the notification signal RLNK, and updates the entry based on the search result. Here, when the number of hops is used, the route search is performed by comparing the metric (number of hops) of the notification signal RLNK with the metric (number of hops) stored in the routing table. Note that the route search is performed when there is a possibility that the number of hops will be small. For example, when the metric (number of hops) stored in the routing table is "2", even when the notification signal RLNK is received, the route search will not improve the situation, so the configuration may be such that the route search is not performed. [Brief explanation of AODV]
[0032] Fig. 2 shows an example of a network system in which terminal devices are connected in a ring shape. The network in Fig. 2 is made up of terminal devices 10-1 to 10-7 and links 21 to 28. A server 600 is connected to a master terminal station 500. 2, when the terminal device 10-3 communicates with a server, the terminal device 10-3 first broadcasts a RREQ (Route Request) packet. The parent terminal station 500 receives the RREQ packet and transmits a RREP (Route Reply) packet to the terminal device 10-3. When the terminal device 10-3 receives the RREP packet, a route between the terminal device 10-3 and the parent terminal station 500 is established.
[0033] For terminal devices 10-1 and 10-2 on the route, a short-life route to terminal device 10-3 is created when the RREQ packet passes through, and then a long-life route to parent terminal station 500 is created when the RREP packet passes through. In this way, when a long-life route to parent terminal station 500 is created, the already created short-life route to terminal device 10-3 becomes long-life.
[0034] On the other hand, for terminal devices 10-4 to 10-7 through which RREQ packets pass but RREP packets do not pass, a short-life route to terminal device 10-3 is created when the RREQ packet passes, but after a predetermined time has passed, the short-life route is automatically deleted.
[0035] 3 shows the next hops of the terminal devices 10-1 to 10-3 and cost values (Cost), which are information indicating the metric to the destination, when the destination of the packet after the above operations are performed is a server. Here, the cost value is the number of terminal devices (number of hops) to be passed through.
[0036] In the above operation, when the master terminal 500 returns a RREP packet to the terminal device 10-3, the terminal devices 10-1 to 10-3 register the destination of the RREP packet (for example, the terminal device 10-3 for the terminal device 10-2) as a "precursor".
[0037] If the destination route is physically disconnected or if a RERR (Route Error) packet is received from another station, the route is deleted and a RERR packet is sent to the precursor of the deleted route.
[0038] When a packet is received for a destination that has no route, a RERR packet is sent to the source of the packet.
[0039] In Patent No. 5778357 (hereinafter referred to as Document 1), the applicant of the present application has proposed a network system and a control method thereof that is based on AODV and is capable of quickly optimizing routes even when the status of network links, etc. changes.
[0040] [Route creation behavior when physical link-up is detected] Literature 1 discloses that when a new link is connected to a network, terminal devices located at both ends of the new link transmit a Route Link (RLNK) signal, which is a notification signal indicating that a link has been added, to other nodes to update route information.
[0041] The operation will be explained using Figure 4. In Figure 4, it is assumed that link 27 does not exist initially. For example, in the case of terminal device 10-6, it is six hops counterclockwise to the parent terminal, so the next hop is "05" and the cost value is "6". In this state, if link 27 is created, terminal devices 10-6 and 10-7 transmit an RLNK signal, which is a notification signal indicating that a link has been added, to other nodes. The cost field of the RLNK signal has an initial value of "1" and a value that is added each time the RLNK signal is transferred. The value displayed by "RLNK=" in Figure 4 is the value of the cost field of the RLNK signal.
[0042] Each terminal device compares the "cost value" with the "value obtained by adding 2 to the value in the cost field of the received RLNK signal", and if the former is greater than the latter, the route information is deleted. For example, in the terminal device 10-6, the "cost value" is "6" and the "value obtained by adding 2 to the value in the cost field of the received RLNK signal" is "2", so the former is greater than the latter. Therefore, the route information held by the terminal device 10-6 is deleted. In addition, in the terminal device 10-5, the "cost value" is "5" and the "value obtained by adding 2 to the value in the cost field of the received RLNK signal" is "3", so the former is greater than the latter. Therefore, the route information held by the terminal device 10-6 is also deleted. In the terminal device 10-4, the "cost value" is "4" and the "value obtained by adding 2 to the value in the cost field of the received RLNK signal" is "4", so it cannot be said that the former is greater than the latter. Therefore, the route information held by the terminal device 10-4 is not deleted and remains.
[0043] After the route information is deleted, if a communication request is made to the deleted destination, for example, a route request (RREQ) is executed and a route search is performed. As a result, new route information is created as shown to the right of "(delete)" in Figure 4.
[0044] [Packet loss issues] As described above, in the technology of Patent Document 1, when a physical link-up is detected, route information held by some terminal devices is temporarily deleted and then a new route is searched for. For this reason, depending on the network configuration, a state may occur in which the terminal devices do not have route information, which may lead to packet loss.
[0045] Figure 5 illustrates this issue. 5, it is assumed that link 35 does not exist at first. Then, the route information from terminal device 10-8 to server 600 is a clockwise route from terminal device 10-8, with a next hop of "09" and a cost value of "6." The route information from terminal device 10-7 to server 600 is a clockwise route from terminal device 10-7 with a cost value of "7" and a counterclockwise route with a cost value of "7." However, it is assumed here that the clockwise route has been determined, with the next hop being "08" and the cost value being "7."
[0046] At this time, if the link 35 is created, the terminal device 10-8 and the terminal device 10-13 each transmit an RLNK signal, which is a notification signal. In the terminal device 10-8, the "cost value" is "6" and the "value obtained by adding 2 to the value in the cost field of the received RLNK signal" is "2", so the former is greater than the latter. Therefore, the route information held by the terminal device 10-8 is deleted. With the route information held by the terminal device 10-8 deleted, the terminal device 10-7 transmits a packet whose destination is a server to the terminal device 10-8 according to the route information (arrow α in FIG. 5). Then, after the terminal device 10-8 receives the packet, the information of the next destination terminal device to which the packet should be sent is no longer available. When the number of packets that cannot be transmitted from the terminal device 10-8 exceeds the number of caches of the terminal device 10-8 in this way, packet loss occurs.
[0047] The operation of the embodiment of the present invention will be described with reference to FIGS. In the embodiment of the present invention, when it is determined in Patent Document 1 that the route information should be deleted, a RREQ signal is sent out to perform a route search without deleting the route information. In the terminal device 10-8 in FIG. 6, a RREQ signal is sent out in three directions. By the route search, the old route information with the next hop "09" and the cost value "6" is overwritten by the new route information with the next hop "13" and the cost value "2". Even if a packet is sent from the terminal device 10-7 to the terminal device 10-8, there is no state where there is no route information. Whether the route information is old or new, the packet is sent from the terminal device 10-8 to the left in FIG. 6. Therefore, no packet loss occurs.
[0048] [Possibility of route reversal] "Route reversal" refers to a state in which the next hop of the route information held by terminal device A is "terminal device B," and the next hop of the route information held by terminal device B is "terminal device A," and packets continue to travel back and forth between terminal device A and terminal device B indefinitely. 7, it is assumed that the link 27 does not exist at first. Then, for the terminal device 10-6, the next hop is "05" and the cost value is "6." For the terminal device 10-5, the next hop is "04" and the cost value is "5." In this state, when the link 27 is connected, the route search result changes the next hop to "07" and the cost value to "2" for the terminal device 10-6, and the next hop to "06" and the cost value to "3" for the terminal device 10-5. At this time, if the update in the terminal device 10-5 is earlier than the update in the terminal device 10-6, the next hop of the terminal device 10-5 will be "06" and the next hop of the terminal device 10-6 will be "05", resulting in the above-mentioned route reversal state.
[0049] Here, the timing of updating in the terminal device 10-5 and the timing of updating in the terminal device 10-6 will be explained in detail. The updating in the terminal device 10-5 is performed when the RREQ packet sent by the terminal device 10-5 in the clockwise direction is received by the parent terminal station 500, and the RREP packet sent by the parent terminal station 500 in the counterclockwise direction in FIG. 7 is received by the terminal device 10-5. Here, the RREP packet sent by the parent terminal station 500 in the counterclockwise direction in FIG. 7 is received by the terminal device 10-6 before being received by the terminal device 10-5. Then, an update of the route information in the terminal device 10-6 is caused. Therefore, the update of the route information in the terminal device 10-5 and the update of the route information in the terminal device 10-6 precede each other. Therefore, a route inversion state does not occur.
[0050] In this embodiment, in Fig. 6, a determination is made based on the RLNK signal, and if it is determined that the route information should be deleted in the case of Patent Document 1, the terminal device sends out a RREQ signal to search for a route. However, if multiple terminal devices send out RREQ signals at the same time to search for a route, the amount of calculation and communication load at that time will be heavy. Therefore, it is desirable to distribute the timing at which multiple terminal devices send out RREQ signals.
[0051] Specifically, an "optimizable flag" is provided in the route information, and instead of performing a route search when an RLNK signal is received, the optimizable flag is set to "valid". Then, instead of performing a route search when an RLNK signal is received, a route search is performed when a data packet is received. When a data packet is received, the data packet is transferred based on the route information held, and then the optimizable flag is determined. If the optimizable flag is "valid", a route search is performed at this point, and the optimizable flag is changed to "invalid" after the route search is performed. On the other hand, if the optimizable flag is "invalid", a route search is not performed and the held route information is maintained. In this way, data packets are not received all at once, so the load of the route search is distributed. Note that the packet may be transferred according to the route information after the route search.
[0052] When the optimization flag is "enabled", it means that it is possible to optimize the route information by performing a route search. When the optimization flag is "disabled", it means that it is not possible to optimize the route information by performing a route search.
[0053] Therefore, in an improved version of this embodiment, when the cost value held by the terminal device is greater than the value in the cost field of the RLNK signal by a predetermined value, the terminal device does not immediately send an RREQ signal. Instead, when a data packet is received, the packet passing through the route is forwarded according to the current route information, and then an RREQ signal is sent. In this way, the amount of calculation and communication load when updating the routing table can be distributed.
[0054] Packets sent from a certain terminal device are divided into (1) packets received from an adjacent terminal device and forwarded, and (2) packets generated within the terminal device itself. In terms of the proportion of packets, the amount of packets in (1) is much greater than the amount of packets in (2). Therefore, only in the case of (2), control based on the optimizable flag described above is performed, and in the case of (1), forwarding is immediately performed according to the current route information, thereby making it possible to distribute the load.
[0055] FIG. 8 summarizes the procedure when a data packet is received based on the above control. In step S101, it is determined whether or not there is route information. If there is no route information, the process proceeds to step S106, where a route search is performed. If there is route information, the process proceeds to step S102. Route information usually includes expiration date information (for example, see JP 2018-125607 A by the applicant of the present application). In step S102, it is confirmed whether or not the expiration date has passed, and if not, the process proceeds to step S106, where a route search is performed.
[0056] If it is within the validity period in step S102, the process proceeds to step S103, where it is determined whether the packet to be transmitted from the terminal device is the packet of (1) above or the packet of (2). If it is the packet of (1) above, the process proceeds to step S105. In step S105, the packet is transmitted according to the route information at that time. Thereafter, the process proceeds to step S109, where the process waits for the next packet.
[0057] Also, in step S103, if the packet is the above-mentioned (2), the process proceeds to step S104. In step S104, the optimizable flag mentioned above is checked. If the optimizable flag is "invalid", the process proceeds to step S105, where the packet is transmitted according to the route information at that time. If the optimizable flag is "valid", the process proceeds to step S106, where a route search is performed.
[0058] After performing a route search in step S106, the process proceeds to step S107, where the packet is sent based on the route found after the search. The process then proceeds to step S108, where the optimization possible flag is changed to "invalid." The process then proceeds to step S109, where the process waits for the next packet. By changing the optimization possible flag to "invalid" in step S108, it is possible to prevent a route search from being performed again when a packet with the same destination is subsequently generated within the terminal device.
[0059] As explained above, when the RLNK signal is received, the optimization possible flag is set to "valid." Then, after a route search is performed in step S106 in Fig. 8, the optimization possible flag is changed to "invalid" in step S108. Therefore, when the optimization flag is "enabled," it means that a route search has not yet been performed after receiving the RLNK signal, and when the optimization flag is "disabled," it means that a route search has already been performed after receiving the RLNK signal.
[0060] As shown in FIG. 8, by determining whether or not to perform a route search based on information regarding the source of a packet to be transmitted and on the optimization possible flag, load balancing can be performed appropriately.
[0061] Although the present embodiment has been described above, the present invention is not limited to such a specific embodiment, and various modifications and variations are possible within the scope of the gist of the present invention described in the claims. [Explanation of symbols]
[0062] 10 Terminal Equipment 10-1~10-13 Terminal equipment 11 Packet relay processing unit 11a Transmission means 11b Means of transfer 12 Control section 12a Update method 13 Storage section 13a Routing Table 14 Receiving section 15 Transmitter 21~34 Link 500 Main station 600 Servers
Claims
1. a transmitting means for transmitting, when a predetermined first terminal device and a predetermined second terminal device of a network system in which a plurality of terminal devices are communicatively connected by links to each other, a notification signal having information indicating that the first and second terminal devices are communicatively connected by a new link and information indicating a metric to the first or second terminal device, to a terminal device other than the first and second terminal devices; a transfer means for adding a metric from the immediately preceding terminal device that transmitted the notification signal to the information indicating the metric of the notification signal to the terminal device itself, and transferring the metric to the other terminal device; an update means for updating route information stored in a routing table when the notification signal is received; the update means compares the metric of each entry stored in the routing table with the metric stored in the notification signal, performs a route search for an entry having a metric larger than the metric stored in the notification signal by a predetermined value, and updates the entry based on the search result. A terminal device comprising:
2. 2. The terminal device according to claim 1, wherein the route information has an optimizable flag, and the update means sets the optimizable flag to "valid" if, as a result of the comparison, the metric of the entry is greater than the metric stored in the notification signal by a predetermined value, and then, if the optimizable flag is "valid" when a data packet is received, performs a route search and changes the optimizable flag to "invalid."
3. A terminal device as described in claim 2, wherein if a packet to be transmitted by the terminal device is a packet received from another adjacent terminal device, the packet is forwarded according to current route information, and if the packet to be transmitted by the terminal device is a packet generated within the terminal device itself, control is performed based on the optimization possible flag.
4. 1. A method for controlling a plurality of terminal devices in a network system in which the terminal devices are communicatively connected by links, comprising: a transmission step of transmitting, when a predetermined first terminal device and a predetermined second terminal device constituting the network system are communicatively connected by a new link, a notification signal having information indicating that the first and second terminal devices are communicatively connected by the new link and information indicating a metric to the first or second terminal device, to a terminal device other than the first and second terminal devices, by a transmission means in the first and second terminal devices; a transfer step in which, in the other terminal device that has received the notification signal, a metric from the terminal device that has just transmitted the notification signal to itself is added to information indicating the metric of the notification signal, and the metric is transferred to the other terminal device by a transfer means; an updating step of updating the route information stored in the routing table by an updating means when the notification signal is received; the updating step compares the metric of each entry stored in the routing table with the metric stored in the notification signal, performs a route search for an entry having a metric larger than the metric stored in the notification signal by a predetermined value, and updates the entry based on the search result; 23. A method for controlling a terminal device comprising:
5. 5. The method for controlling a terminal device according to claim 4, wherein the route information has an optimizable flag, and in the updating step, if the comparison result shows that the metric of the entry is greater by a predetermined value than the metric stored in the notification signal, the optimizable flag is set to "valid", and thereafter, if the optimizable flag is "valid" when a data packet is received, a route search is performed and the optimizable flag is changed to "invalid".
6. A control method for a terminal device as described in claim 5, wherein if a packet to be transmitted by a terminal device is a packet received from another adjacent terminal device, the packet is forwarded according to current route information, and if the packet to be transmitted by a terminal device is a packet generated within the terminal device itself, control is performed based on the optimization possible flag.
Citation Information
Patent Citations
Route search device
JP2007129516A
Hybrid mesh routing protocol
JP2008533809A
Communication path setting device, communication terminal, and multi-hop network system
JP2010148150A
Routing table set method in multi-area network, communication system and node
JP2013026710A
Hybrid Mesh Routing Protocol
US20080170550A1
