Communication apparatus and communication system
The communication device and system address communication delays and instability in ad hoc networks by calculating and selecting the most stable route based on hops and success rates, incorporating overhear routes for efficient data relay.
Patent Information
- Application Number
- JP2023034264
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-07
- Publication Date
- 2024-09-20
AI Technical Summary
Communication delays and instability occur when using overhear routes in ad hoc networks, leading to potential failures in data relay.
A communication device and system that calculates an evaluation value for communication routes based on hops, communication occurrences, and success rates to select the most stable route, incorporating information about overhear routes for efficient data relay.
This approach effectively reduces communication delays and ensures stability by selecting the optimal route with the lowest evaluation value, utilizing overhear routes when necessary to minimize relay distance.
Smart Images

Figure 2024126097000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a communication device and a communication system. [Background technology]
[0002] 2. Description of the Related Art Conventionally, there has been known an ad-hoc network in which a plurality of devices form a wireless network without using infrastructure such as a base station or an access point.
[0003] In an ad-hoc network, when a transmitting device cannot directly communicate with a receiving device, another device belonging to the network acts as a relay device and transmits communication data to the receiving device on behalf of the transmitting device.
[0004] In the ad-hoc network disclosed in Patent Document 1, multiple devices are connected in a ring shape to form a fixed route. Each device in the fixed route can be connected to one or more devices outside the fixed route.
[0005] In such a configuration, each device within or outside the fixed route can be a sending device or a receiving device. If a sending device cannot directly communicate with a receiving device, the communication data is relayed via the fixed route.
[0006] When a relay device in a fixed route overhears (intercepts) communication data being relayed in the fixed route, an overhear route is formed in the fixed route. In this case, by using the overhear route as a communication path for communication data, the relay path in the fixed route can be shortened. [Prior art documents] [Patent documents]
[0007] [Patent Document 1] Patent Publication No. 2022-82848 Summary of the Invention [Problem to be solved by the invention]
[0008] However, communication over an over-the-air route is more unstable than communication over a fixed route. Therefore, when an over-the-air route is used as a communication path for communication data, there is a possibility that the relay of the communication data will not be successful. In this case, communication delays will occur due to retransmission of the communication data.
[0009] Therefore, further improvements are needed to effectively reduce communication delays in ad hoc networks.
[0010] The present invention has been made in consideration of the problems inherent in the conventional techniques, and an object of the present invention is to provide a communication device and a communication system capable of effectively reducing communication delays while ensuring communication stability in an ad-hoc network. [Means for solving the problem]
[0011] A communication device according to a first aspect of the present invention is included in a plurality of communication devices forming a ring-shaped fixed route in an ad-hoc network. The communication device includes an acquisition unit that acquires a plurality of communication paths between the communication device itself and a communication device within the fixed route or outside the fixed route that is a destination of communication data, a calculation unit that calculates an evaluation value indicating a degree of communication delay and instability in each acquired communication path, a route selection unit that selects a communication path having the lowest evaluation value from among the plurality of communication paths based on the calculated evaluation value, a setting unit that sets, in the communication data, information identifying at least a communication device in the communication path that uses the overhear route when the selected communication path includes an overhear route, and a transmission unit that transmits the communication data to a communication device adjacent to the communication device itself in the communication path and relays the communication data to each communication device in the communication path.
[0012] A communication system according to a second aspect of the present invention includes a first communication device included in a plurality of communication devices forming a ring-shaped fixed route in an ad-hoc network, and a second communication device within or outside the fixed route that is a destination of communication data. The first communication device includes an acquisition unit that acquires a plurality of communication paths between itself and the second communication device, a calculation unit that calculates an evaluation value indicating a degree of communication delay and instability in each of the acquired communication paths, a route selection unit that selects a communication path having the lowest evaluation value from among the plurality of communication paths based on the calculated evaluation value, a setting unit that sets, in the communication data, information identifying at least a communication device in the communication path that uses the overhear route when the selected communication path includes an overhear route, and a transmission unit that transmits the communication data to a communication device adjacent to itself in the communication path and relays the communication data to each communication device in the communication path. Effect of the Invention
[0013] According to the present invention, it is possible to provide a communication device and a communication system capable of effectively reducing communication delays while ensuring communication stability in an ad hoc network. [Brief description of the drawings]
[0014] [Figure 1] FIG. 1 is a diagram showing an overall schematic configuration of a communication system according to this embodiment. [Figure 2A] FIG. 2A is a diagram showing an example of a routing table according to this embodiment. [Figure 2B] FIG. 2B is a diagram showing an example of a routing table according to this embodiment. [Figure 2C] FIG. 2C is a diagram showing an example of a routing table according to this embodiment. [Diagram 3] FIG. 3 is a diagram showing an example of device information according to the present embodiment. [Figure 4] FIG. 4 is a schematic diagram of the overall configuration of a communication system in an example in which an overhear route is formed within a fixed route according to the present embodiment. [Diagram 5] FIG. 5 is a diagram showing an example of a routing table in an example in which an overheard route is formed in a fixed route according to this embodiment. [Figure 6] FIG. 6 is a diagram showing an example of device information in an example in which an overhear route is formed within a fixed route according to the present embodiment. [Figure 7] FIG. 7 is a block diagram showing an example of the functional configuration of a communication device according to the present embodiment. [Figure 8] FIG. 8 is a block diagram showing an example of a hardware configuration of a communication device according to the present embodiment. [Figure 9] FIG. 9 is a diagram illustrating an example of a frame configuration according to the present embodiment. [Figure 10] FIG. 10 is a diagram illustrating an example of a frame configuration according to this embodiment. [Figure 11] FIG. 11 is a diagram showing an example of a sequence of a procedure for relaying communication data in the communication system according to the present embodiment. [Figure 12] FIG. 12 is a diagram illustrating an example of a flowchart of a communication path selection process according to the present embodiment. [Figure 13] FIG. 13 is a diagram showing an example of an operation flowchart of the communication device according to the present embodiment. [Figure 14] FIG. 14 is a diagram showing an example of a flowchart of the transmission process according to the present embodiment. [Figure 15A] FIG. 15A is a diagram showing an example of a flowchart of relaying and receiving processing according to this embodiment. [Figure 15B] FIG. 15B is a diagram showing an example of a flowchart of relaying and receiving processing according to this embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] Hereinafter, a communication device and a communication system according to the present embodiment will be described in detail with reference to the drawings. Note that the same or similar reference numerals are used to designate the same functions and configurations, and descriptions thereof will be omitted as appropriate.
[0016] [Overall configuration of the communication system] First, the configuration of a communication system 1 according to this embodiment will be described. The communication system 1 preselects a plurality of communication devices that are frequently used to relay communication data in an ad-hoc network. The communication system 1 connects communication devices having a high rate of successful relay of communication data (communication success rate) among the plurality of selected communication devices in a ring shape to form a fixed route.
[0017] In this embodiment, among all communication devices included in the communication system 1, each of the multiple communication devices forming the fixed route is also referred to as a communication device in the fixed route. In addition, among all communication devices included in the communication system 1, communication devices other than the multiple communication devices forming the fixed route are also referred to as a communication device outside the fixed route. One or more communication devices outside the fixed route can be connected to each communication device in the fixed route. A communication device outside the fixed route is connected to any one of the multiple communication devices in the fixed route. In this embodiment, among the multiple communication devices forming the fixed route, each of two communication devices forming an overheard route, which will be described later, is also referred to as a communication device in the overheard route. Note that, in the overheard route, communication can be performed between adjacent communication devices, similar to communication in the fixed route.
[0018] Fig. 1 is an overall schematic configuration diagram of a communication system 1. As shown in Fig. 1, the communication system 1 includes communication devices 10a to 10h that are communication devices within a fixed route, and communication devices 10a1, 10a2, 10b1, 10d1, and 10g1 that are communication devices outside the fixed route. The communication system 1 is mounted on, for example, a vehicle. The communication devices are also called terminals.
[0019] The communication devices 10a to 10h are connected in a ring shape to form a fixed route. Specifically, the communication devices 10a and 10b are connected to each other so that they can communicate directly with each other. The communication devices 10b and 10c are connected to each other so that they can communicate directly with each other. The communication devices 10c and 10d are connected to each other so that they can communicate directly with each other. The communication devices 10d and 10e are connected to each other so that they can communicate directly with each other. The communication devices 10e and 10f are connected to each other so that they can communicate directly with each other. The communication devices 10f and 10g are connected to each other so that they can communicate directly with each other. The communication devices 10g and 10h are connected to each other so that they can communicate directly with each other. The communication devices 10h and 10a are connected to each other so that they can communicate directly with each other.
[0020] Each of the communication devices 10a to 10h can function as a transmitter, a receiver, or a relay device of communication data within the fixed route. Each of the communication devices 10a to 10h can function as a transmitter, a receiver, or a relay device of a reception completion notification within the fixed route. Each of the communication devices 10a to 10h can function as a transmitter or a receiver of an ACK (Acknowledgment) within the fixed route. Each of the communication devices 10a to 10h can function as a transmitter or a receiver of information of a routing table and device information within the fixed route. Details of the communication data, the reception completion notification, the ACK, the information of the routing table, and the device information will be described later. The number of communication devices within the fixed route is not limited to eight, and may be three or more.
[0021] In this embodiment, in the fixed route shown in Fig. 1, communication data is relayed in a clockwise direction or counterclockwise direction along a communication path described later. Also, in this embodiment, a communication device in the fixed route adjacent to the own device in the direction of relaying communication data in the communication path is also referred to as the next communication device in the communication path. Furthermore, in this embodiment, a communication device in the fixed route adjacent to the own device in the direction opposite to the direction of relaying communication data in the communication path is also referred to as the previous communication device in the communication path.
[0022] Each of the communication devices 10a1, 10a2, 10b1, 10d1, and 10g1 is connected to a communication device within a fixed route. Specifically, the communication devices 10a1 and 10a2 are directly communicatively connected to the communication device 10a. The communication device 10b1 is directly communicatively connected to the communication device 10b. The communication device 10d1 is directly communicatively connected to the communication device 10d. The communication device 10g1 is directly communicatively connected to the communication device 10g.
[0023] Each of the communication devices 10a1, 10a2, 10b1, 10d1, and 10g1 can function as a transmitter or receiver of communication data outside the fixed route. Each of the communication devices 10a1, 10a2, 10b1, 10d1, and 10g1 can function as a transmitter or receiver of ACK outside the fixed route. Each of the communication devices 10a1, 10a2, 10b1, 10d1, and 10g1 can function as a transmitter or receiver of routing table information outside the fixed route. The number of communication devices outside the fixed route is not limited to five.
[0024] Each of the communication devices 10a to 10h (communication devices within a fixed route) and the communication devices 10a1, 10a2, 10b1, 10d1, and 10g1 (communication devices outside a fixed route) has a routing table. Also, each of the communication devices 10a to 10h (communication devices within a fixed route) has device information.
[0025] First, the routing table will be described. The routing table is route information that each communication device refers to when transmitting or relaying / receiving communication data, reception completion notification, ACK, etc., and when selecting a communication path. In this embodiment, the routing table is composed of a table for the device itself and a table for fixed routes.
[0026] Each communication device outside the fixed route stores information about itself and information about communication devices in the fixed route that are directly connected to itself in a table for itself, in association with each other. Each communication device outside the fixed route does not store any information in the table for the fixed route.
[0027] FIG. 2A is a diagram showing an example of a routing table held by each communication device outside the fixed route. As shown in FIG. 2A, the communication device 10a1 associates information about the own device with information about the communication device 10a and stores it in its own device table. Similarly, the communication device 10a2 associates information about the own device with information about the communication device 10a and stores it in its own device table (not shown). The communication device 10b1 associates information about the own device with information about the communication device 10b and stores it in its own device table (not shown). The communication device 10d1 associates information about the own device with information about the communication device 10d and stores it in its own device table (not shown). The communication device 10g1 associates information about the own device with information about the communication device 10g and stores it in its own device table (not shown).
[0028] Each communication device in a fixed route associates information about the device itself with information about the one or more communication devices outside the fixed route in a table for the device itself when one or more communication devices outside the fixed route are directly communicably connected to the device itself. Note that each communication device in a fixed route stores only information about the device itself in a table for the device itself when a communication device outside the fixed route is not directly communicably connected to the device itself.
[0029] Each communication device in the fixed route places the local device tables held by all communication devices in the fixed route except for the communication device itself in the table for fixed route. In this embodiment, each communication device in the fixed route places the local device tables held by all communication devices in the fixed route except for the communication device itself in the table for fixed route in clockwise order from the communication device in the fixed route adjacent to the communication device itself in the clockwise direction in the fixed route.
[0030] 2B and 2C are diagrams showing an example of a routing table held by each communication device in a fixed route. As shown in FIG. 2B, the communication device 10a associates information about itself with information about the communication devices 10a1 and 10a2 and stores them in its own table. The communication device 10a arranges the own device tables held by the communication devices 10b, 10c, 10d, 10e, 10f, 10g, and 10h in order in the fixed route table.
[0031] 2C, the communication device 10b stores information about the communication device 10b1 in a table for the communication device 10b in association with information about the communication device 10b1. The communication device 10b arranges the tables for the communication devices 10c, 10d, 10e, 10f, 10g, 10h, and 10a in order in the table for fixed routes.
[0032] Similarly, communication device 10c stores information about its own device in its own device table. Communication device 10d associates information about its own device with information about communication device 10d1 and stores the information in its own device table. Communication device 10e stores information about its own device in its own device table. Communication device 10f stores information about its own device in its own device table. Communication device 10g associates information about its own device with information about communication device 10g1 and stores the information in its own device table. Communication device 10h stores information about its own device in its own device table.
[0033] When each communication device in a fixed route forms an overhear route with another communication device in the fixed route (see FIG. 4), the communication device associates information about the device with information about the other communication device in the fixed route and stores the associated information in the table for the device itself. When a communication device in a fixed route receives a reception completion notification addressed to the device itself, generated by another communication device in the fixed route as described later, the communication device associates information about the device with information about the other communication device in the fixed route and stores the associated information in the table for the device itself.
[0034] Fig. 4 is a schematic diagram of the overall configuration of a communication system 1 in an example in which an overheard route is formed within a fixed route. In this embodiment, as shown in Fig. 4, two overheard routes A and B are formed. Overheard route A is formed from communication device 10a within the fixed route toward communication device 10c within the fixed route. Overheard route B is formed from communication device 10c within the fixed route toward communication device 10e within the fixed route.
[0035] FIG. 5 is a diagram showing an example of a routing table in an example in which an overhere route is formed in a fixed route. In the communication system 1 shown in FIG. 4, as shown in FIG. 5, the communication device 10a associates information of the own device, information of the communication devices 10a1 and 10a2 (communication devices outside the fixed route), and information of the communication device 10c (communication device in the overhere route A) in a table for the own device. Similarly, the communication device 10c associates information of the own device with information of the communication device 10e (communication device in the overhere route B) in a table for the own device. In this embodiment, in the routing table, a table in which communication devices in the overhere route are associated is also called an overhere route table. Note that the number of overhere routes is not limited to two.
[0036] As described later, each communication device in the communication system 1 periodically exchanges routing table information with adjacent communication devices to update the routing table. Specifically, routing table information is exchanged between adjacent communication devices within a fixed route, between communication devices outside a fixed route and communication devices within a fixed route that are directly and communicably connected, and between adjacent communication devices within an overhead route.
[0037] Next, the device information will be described. The device information is information that each communication device refers to when selecting a communication path. In this embodiment, the device information is made up of a local device table and a fixed route table.
[0038] Each communication device in the fixed route stores information about the device itself, a fixed route success rate, and a communication occurrence number in a table for the device itself, in association with each other.
[0039] The fixed route success rate is the rate at which each communication device in a fixed route successfully communicates with an adjacent communication device (a communication device in a fixed route) via the fixed route within a specified period. Since stable communication is performed between adjacent communication devices via a fixed route, in this embodiment, a fixed value of "1" is set as the fixed route success rate for all communication devices in the fixed route.
[0040] The fixed route success rate is not limited to being set to a fixed value, and may be set to a variable value. For example, the rate at which each communication device in the fixed route succeeds in communicating with an adjacent communication device via the fixed route within a specified period may be calculated, and the calculated rate may be set as the fixed route success rate.
[0041] The number of communication occurrences is the number of times that each communication device in the fixed route communicates within a specified period. Specifically, the number of communication occurrences is the number of times that communication data is transmitted by the device itself within the specified period. Note that, in the case where a communication device outside the fixed route is directly connected to the device itself so as to be able to communicate with it, the number of communication occurrences also includes the number of times that communication data transmitted from a communication device outside the fixed route is relayed within the specified period.
[0042] Each communication device in the fixed route places the local device tables held by all communication devices in the fixed route except for the communication device itself in the table for fixed route. In this embodiment, each communication device in the fixed route places the local device tables held by all communication devices in the fixed route except for the communication device itself in the table for fixed route in clockwise order from the communication device in the fixed route adjacent to the communication device itself in the clockwise direction in the fixed route.
[0043] Fig. 3 is a diagram showing an example of device information according to the present embodiment. As shown in Fig. 3, the communication device 10a stores information about its own device, a fixed route success rate value of "1", and a communication occurrence number value of "5" in association with each other in its own device table. The communication device 10a arranges the own device tables of the communication devices 10b, 10c, 10d, 10e, 10f, 10g, and 10h in order in the fixed route table.
[0044] Similarly, communication device 10b stores information about its own device, a fixed route success rate value of "1", and a number of communication occurrences value of "2" in its own device table. Communication device 10c stores information about its own device, a fixed route success rate value of "1", and a number of communication occurrences value of "3" in its own device table. Communication device 10d stores information about its own device, a fixed route success rate value of "1", and a number of communication occurrences value of "5" in its own device table.
[0045] The communication device 10e stores information about the own device, a fixed route success rate value of "1", and a number of communication occurrences value of "4" in its own device table. The communication device 10f stores information about the own device, a fixed route success rate value of "1", and a number of communication occurrences value of "1" in its own device table. The communication device 10g stores information about the own device, a fixed route success rate value of "1", and a number of communication occurrences value of "1" in its own device table. The communication device 10h stores information about the own device, a fixed route success rate value of "1", and a number of communication occurrences value of "1" in its own device table.
[0046] When each communication device in a fixed route forms an overheard route with another communication device in the fixed route (see Figure 4), the device stores information about the device itself, the fixed route success rate, the overheard route success rate, and the number of communication occurrences in a table for the device itself, in association with each other.
[0047] The overheard route success rate is the rate at which each communication device in a fixed route successfully communicates with an adjacent communication device (a communication device in an overheard route) via an overheard route within a specified period. Since unstable communication occurs between adjacent communication devices via an overheard route, in this embodiment, the rate at which each communication device in a fixed route successfully communicates with an adjacent communication device via an overheard route within a specified period is calculated, and the calculated rate is set as the overheard route success rate.
[0048] Fig. 6 is a diagram showing an example of device information in an example in which an overheard route is formed in a fixed route according to the present embodiment. In the communication system 1 shown in Fig. 4, as shown in Fig. 6, the communication device 10a associates its own device information with a fixed route success rate value of "1", an overheard route success rate value of "0.8", and a communication occurrence number value of "5" in a table for its own device. Similarly, the communication device 10c associates its own device information with a fixed route success rate value of "1", an overheard route success rate value of "0.7", and a communication occurrence number value of "3" in a table for its own device.
[0049] As described later, each communication device in the communication system 1 periodically exchanges device information with adjacent communication devices to update the device information. Specifically, the device information is exchanged between adjacent communication devices in a fixed route or between adjacent communication devices in an over-the-air route.
[0050] For example, since the overheard route A shown in FIG. 4 is formed by communication in the clockwise direction, the information of the communication device 10c and the information of the communication device 10a (the communication device in the overheard route A) are not associated in the local table of the communication device 10c in the routing table shown in FIG. 5. However, as described above, in the overheard route, communication can be performed between adjacent communication devices, similar to communication in a fixed route. Therefore, when the communication device 10c refers to the routing table and recognizes that an overheard route is formed from the communication device 10a to the communication device 10c, it identifies the communication device 10a as the communication device adjacent to the communication device 10c. This allows the communication device 10c to exchange routing table information and device information with the communication device 10a.
[0051] [Functional configuration of communication device] Next, the functional configuration of each of the communication devices 10a to 10h (communication devices in a fixed route) will be described. Fig. 7 is a block diagram showing an example of the functional configuration of each of the communication devices 10a to 10h. Since the communication devices 10a to 10h have the same functional configuration, only the functional configuration of the communication device 10a will be described below, and the functional configurations of the communication devices 10b to 10h will not be described.
[0052] As shown in FIG. 7, the communication device 10a includes a transmitter 21, a receiver 23, a control unit 25, a communication control unit 27, a memory unit 29, a generator 31, an acquirer 33, a calculator 35, a route selector 37, a setting unit 39, a counting unit 41, a routing table update unit 43, a device information update unit 45, a change unit 47, a determination unit 49, and a discard unit 51.
[0053] The transmission unit 21 transmits various frames using the antenna ANT. In this embodiment, the transmission unit 21 is capable of transmitting communication data, a reception completion notification, an ACK, information on a routing table, and device information.
[0054] The receiving unit 23 receives various frames using the antenna ANT. In this embodiment, the receiving unit 23 can receive communication data, a reception completion notification, an ACK, information in a routing table, and device information.
[0055] The control unit 25 controls the overall processing in the communication device 10a. Specifically, the control unit 25 controls the operation of each of the transmission unit 21, the reception unit 23, the communication control unit 27, the storage unit 29, the generation unit 31, the acquisition unit 33, the calculation unit 35, the route selection unit 37, the setting unit 39, the counting unit 41, the routing table update unit 43, the device information update unit 45, the change unit 47, the determination unit 49, and the discard unit 51.
[0056] The communication control unit 27 performs modulation processing for transmitting various frames via radio waves, demodulation processing for extracting various frames carried on the radio waves, etc. In this embodiment, the communication control unit 27 causes the antenna ANT to emit non-directional radio waves.
[0057] The memory unit 29 stores control parameters necessary for wireless communication, addresses of communication devices 10a to 10h (communication devices within a fixed route), addresses of communication devices 10a1, 10a2, 10b1, 10d1, and 10g1 (communication devices outside the fixed route), a routing table, device information, count values of various information counted by the counting unit 41, and the like.
[0058] The generating unit 31 sets a frame for communication data and generates communication data. As described later, in the frame for communication data, a relay address in a header is set by a setting unit 39 based on a communication path selected by a path selecting unit 37.
[0059] The generating unit 31 sets a frame for a reception completion notification and generates a reception completion notification. The generating unit 31 sets a frame for an ACK and generates an ACK. The generating unit 31 sets a frame for transmitting a routing table. The generating unit 31 sets a frame for transmitting device information.
[0060] Fig. 9 is a diagram for explaining an example of a frame configuration. As shown in Fig. 9, each frame set by the generation unit 31 is composed of a preamble field, a header field, a data field, and an FCS (Frame Check Sequence) field.
[0061] The preamble field contains a specific bit sequence that is used by the receiving communication device to synchronize with the frame. The header field contains a first destination address, a first source address, an intermediate address, a second destination address, a second source address, and a frame type. In this embodiment, the header field contains various pieces of information in the following order: first destination address, second destination address, intermediate address, second source address, first source address, and frame type.
[0062] In this embodiment, two communication devices corresponding to the start point and end point of the communication path of the frame are referred to as the first source communication device and the first destination communication device, respectively. The first source communication device and the first destination communication device are also referred to as the source communication device and the destination communication device, respectively, in the end-to-end manner.
[0063] The above expression "a communication device corresponding to the start point of the communication path of the frame" can be rephrased as "a communication device that created the frame." Also, the above expression "a communication device corresponding to the end point of the communication path of the frame" can be rephrased as "a communication device corresponding to the destination of the frame."
[0064] In this embodiment, when the first source communication device is a communication device within a fixed route, one or more communication devices intervening between the first source communication device and the first destination communication device in the communication path of the frame are referred to as relay devices. On the other hand, when the first source communication device is a communication device outside the fixed route, one or more communication devices intervening between the first destination communication device and a communication device within the fixed route directly connected to the first source communication device in a communicable manner in the communication path of the frame are referred to as relay devices.
[0065] In this embodiment, of two communication devices that can directly communicate with each other on a communication path of a frame, the communication device corresponding to the source of the frame is referred to as the second source communication device, and the communication device corresponding to the destination of the frame is referred to as the second destination communication device. Note that the second source communication device and the second destination communication device are also referred to as the source communication device and the destination communication device in a point-to-point connection, respectively.
[0066] The above expression "among two communication devices that can directly communicate on the communication path of the frame, the communication device that corresponds to the source of the frame" can be rephrased as "the communication device that is about to transmit the frame." Also, the above expression "among two communication devices that can directly communicate on the communication path of the frame, the communication device that corresponds to the destination of the frame" can be rephrased as "the communication device that corresponds to the next destination of the frame."
[0067] In addition, in communication device 10, when the first source communication device can directly communicate with the first destination communication device, the second source communication device and the second destination communication device match the first source communication device and the first destination communication device, respectively.
[0068] The address of the first destination communication device is set in the first destination address of the header field. The address of the first source communication device is set in the first source address of the header field. The first destination address and the first source address are also referred to as the destination address and the source address in the end-to-end manner, respectively. The first destination address and the first source address are also simply referred to as the destination address and the source address, respectively.
[0069] The relay address in the header field is set to the address of the relay device. If there are multiple relay devices in the communication path, the relay addresses are set to the addresses of the multiple relay devices in the order in which the frame is relayed along the communication path. The relay address is also called information that identifies the communication device in the communication path.
[0070] In this embodiment, when the first source communication device is a communication device in a fixed route and can directly communicate with the first destination communication device, no relay device exists, and therefore no information is set in the relay address. Also, when the first source communication device is a communication device outside the fixed route and a communication device in the fixed route that is directly connected to the first source communication device can directly communicate with the first destination communication device, no relay device exists, and therefore no information is set in the relay address.
[0071] The second destination address in the header field is set to the address of the second destination communication device. The second source address in the header field is set to the address of the second source communication device. The second destination address and the second source address are also referred to as the destination address and the source address in the point-to-point communication, respectively. The second destination address and the second source address are also referred to as the destination address and the source address, respectively.
[0072] The type of the header field is set with information indicating that it is a frame for communication data, information indicating that it is a frame for reception completion notification, information indicating that it is a frame for ACK, information indicating that it is a frame for sending a routing table, or information indicating that it is a frame for sending device information. The information is expressed, for example, as a 3-bit value. Specifically, the value "001" indicates that it is a frame for communication data, the value "010" indicates that it is a frame for reception completion notification, and the value "011" indicates that it is a frame for ACK. In addition, the value "110" indicates that it is a frame for sending a routing table, and the value "111" indicates that it is a frame for sending device information.
[0073] The data field contains the data to be sent, routing table information, or device information, while the FCS field contains a bit string that the receiving device uses to determine whether the frame contains an error.
[0074] In addition, when the direction of relaying communication data is predefined by the following two conditions, the header field may include over-here route usage information instead of the relay address as shown in FIG. 10. The first condition is "When a communication device receives communication data from a communication device adjacent in the counterclockwise direction in a fixed route, the communication data is relayed clockwise in the fixed route." The second condition is "When a communication device receives communication data from a communication device adjacent in the clockwise direction in a fixed route, the communication data is relayed counterclockwise in the fixed route." When an over-here route is included in the communication path of the frame, information for identifying a communication device in the communication path that uses the over-here route is set in the over-here route usage information. Even when a communication device included in the communication path is adjacent to two communication devices via a fixed route and an over-here route, the communication device to which the communication data should be transmitted can be determined by referring to the over-here route usage information.
[0075] The generating unit 31 sets a frame for the communication data when the transmitting unit 21 transmits the communication data. Specifically, the generating unit 31 sets the address of a communication device corresponding to the end point of the communication path of the communication data and the address of a communication device corresponding to the start point of the communication path of the communication data, respectively, to the first destination address and the first source address in the header field.
[0076] The generating unit 31 sets the second destination address in the header field to the next communication device in the communication path, or a communication device outside the fixed route that is directly connected to the own device so as to be able to communicate with the own device. The generating unit 31 sets the address of the own device to the second source address in the header field. The generating unit 31 sets information indicating that the transmission frame is communication data to the type of the header field. The generating unit 31 sets the data to be transmitted to the data field.
[0077] When a communication device outside the fixed route transmits communication data, the address of a communication device in the fixed route to which the device is directly connected is set in the second destination address of the header field. In this case, in this embodiment, the communication device outside the fixed route does not select a communication path, so no information is set in the relay address.
[0078] For example, when the receiver 23 overhears communication data whose second source address does not match the address of an adjacent communication device in a fixed route or the address of a communication device outside the fixed route that is directly communicably connected to the receiver 23, the generator 31 generates a frame for notifying the receiver 23 that the communication data has been overheard. The reception completion notification is used to notify the receiver 23 that the communication data has been overheard.
[0079] When setting a frame for a reception completion notification, the generating unit 31 sets the second source address of the received communication data and the address of the own device to the first destination address and the first source address in the header field, respectively. In this manner, in this embodiment, the reception completion notification is transmitted to the communication device that is the second source of the received communication data.
[0080] The generation unit 31 sets the address of an adjacent communication device in the fixed route and the address of its own device to the second destination address and second source address of the header field, respectively. The generation unit 31 sets information indicating that the transmitted frame is a reception completion notification to the type of the header field. The generation unit 31 does not set any information to the data field. Note that when setting a frame for a reception completion notification, no communication path is selected, so no information is set to the relay address.
[0081] When the receiving unit 23 receives communication data in which the address of the own device is set as the second destination address, the generating unit 31 generates a frame for ACK. The ACK is used to notify that the own device has received the communication data.
[0082] When setting a frame for ACK, the generation unit 31 sets the second source address of the received communication data to the first destination address and the second destination address of the header field. The generation unit 31 sets the address of its own device to the first source address and the second source address. The generation unit 31 sets information indicating that the transmitted frame is an ACK to the type of the header field. The generation unit 31 does not set any information to the data field. Note that when setting a frame for ACK, no communication path is selected, so no information is set to the relay address.
[0083] When the transmitting unit 21 transmits information on the routing table, the generating unit 31 sets a frame for transmitting the routing table. Specifically, the generating unit 31 sets the address of an adjacent communication device in a fixed route, the address of a communication device outside the fixed route that is directly connected to the own device so as to be able to communicate, or the address of an adjacent communication device in an over-the-air route, in the first destination address and the second destination address of the header field. The generating unit 31 sets the address of the own device in the first source address and the second source address. The generating unit 31 sets information indicating that the transmission frame is a frame for transmitting the routing table, in the type of the header field. The generating unit 31 sets information on the routing table in the data field. Note that when the frame for transmitting the routing table is set, no communication path is selected, so no information is set in the relay address.
[0084] When the transmitter 21 transmits device information, the generator 31 sets a frame for transmitting device information. Specifically, the generator 31 sets the address of an adjacent communication device in a fixed route or the address of an adjacent communication device in an over-heard route to the first destination address and the second destination address of the header field. The generator 31 sets the address of the own device to the first source address and the second source address. The generator 31 sets information indicating that the transmission frame is a frame for transmitting device information to the type of the header field. The generator 31 sets device information to the data field. Note that when the frame for transmitting device information is set, no communication path is selected, so no information is set to the relay address.
[0085] The configuration of the frame for transmitting the routing table and the frame for transmitting device information may be different from the configuration of the frame for communication data, the frame for notifying reception completion, and the frame for ACK.
[0086] The acquisition unit 33 refers to the routing table stored in the storage unit 29 and acquires a plurality of communication paths between the communication device 10a and a communication device within or outside the fixed route that is the destination of the communication data. Specifically, when the generation unit 31 generates communication data or when the reception unit 23 receives communication data from the communication device 10a1 or the communication device 10a2 that is outside the fixed route, the acquisition unit 33 acquires a plurality of communication paths between the communication device 10a and a communication device that is the destination of the communication data (first destination communication device). Each communication path is composed of one or more communication devices within the fixed route.
[0087] For example, in the communication system 1 shown in FIG. 1, when the receiver 23 receives communication data in which the address of the communication device 10g1 and the address of the communication device 10a1 are set in the first destination address and the first source address, respectively, the acquirer 33 refers to the routing table shown in FIG. 2B and acquires two communication paths. As the first communication path, the acquirer 33 acquires the communication path of the communication devices 10a, 10b, 10c, 10d, 10e, 10f, and 10g. In the first communication path, the communication data is relayed in a clockwise direction within a fixed route. As the second communication path, the acquirer 33 acquires the communication path of the communication devices 10a, 10h, and 10g. In the second communication path, the communication data is relayed in a counterclockwise direction within a fixed route.
[0088] In addition, in the communication system 1 shown in FIG. 4, when the receiver 23 receives communication data in which the address of the communication device 10e and the address of the communication device 10a1 are set in the first destination address and the first source address, respectively, the acquirer 33 refers to the routing table shown in FIG. 5 and acquires five communication paths. As the first communication path, the acquirer 33 acquires the communication path of the communication devices 10a, 10b, 10c, 10d, and 10e. In the first communication path, the communication data is relayed in a clockwise direction within a fixed route. As the second communication path, the acquirer 33 acquires the communication path of the communication devices 10a, 10b, 10c, and 10e. In the second communication path, the communication data is relayed in a clockwise direction within a fixed route using an overheard route B.
[0089] As a third communication path, the acquisition unit 33 acquires the communication path of the communication devices 10a, 10c, 10d, and 10e. In the third communication path, the communication data is relayed in a clockwise direction within a fixed route using the overhead route A. As a fourth communication path, the acquisition unit 33 acquires the communication path of the communication devices 10a, 10c, and 10e. In the fourth communication path, the communication data is relayed in a clockwise direction within a fixed route using the overhead routes A and B. As a fifth communication path, the acquisition unit 33 acquires the communication path of the communication devices 10a, 10h, 10g, 10f, and 10e. In the fifth communication path, the communication data is relayed in a counterclockwise direction within a fixed route.
[0090] The calculation unit 35 calculates an evaluation value indicating the degree of communication delay and instability in each communication path acquired by the acquisition unit 33. Specifically, the calculation unit 35 calculates the evaluation value based on the number of hops in the communication path, and the number of communication occurrences and the communication success rate of each communication device included in the communication path.
[0091] The number of hops is the number of times communication is performed between communication devices in a communication path. In general, it is assumed that the greater the number of hops, the greater the degree of communication delay. Therefore, the number of hops represents the degree of communication delay. The calculation unit 35 refers to the routing table stored in the storage unit 29 to calculate the number of hops.
[0092] The number of communication occurrences is the number of times each communication device included in the communication path communicates within a specified period. In general, it is assumed that the greater the number of communication occurrences, the more likely congestion is to occur. Therefore, the number of communication occurrences represents the degree of communication delay. The calculation unit 35 refers to the device information stored in the memory unit 29 to obtain the number of communication occurrences of each communication device included in the communication path (see Figures 3 and 6).
[0093] The communication success rate is the rate at which each communication device included in the communication path succeeds in communicating with adjacent communication devices in the communication path within a specified period of time. In general, it is assumed that when the communication success rate is low, there is a high possibility that communication will be performed again. Therefore, the communication success rate represents the degree of instability of communication. The calculation unit 35 refers to the device information stored in the memory unit 29 and obtains the fixed route success rate or over-heard route success rate of each communication device included in the communication path as the communication success rate (see Figures 3 and 6). In this embodiment, the fixed route success rate is set to a fixed value of "1".
[0094] In this embodiment, the specified period is a period until the communication device 10a exchanges device information with an adjacent communication device a predetermined number of times (for example, 10 times). Specifically, in the communication system 1 shown in Fig. 1, the communication device 10a acquires the number of communication occurrences and updates the device information every time the communication device 10a receives device information a predetermined number of times from the communication device 10b or the communication device 10h via a fixed route.
[0095] In this embodiment, the fixed route success rate is set to a fixed value of "1", but is not limited to this. The fixed route success rate may be expressed as a ratio of the number of times that the communication device 10a receives an ACK for the transmission of the device information to the number of times that the communication device 10a transmits the device information to the communication device 10b or the communication device 10h while receiving the device information from the communication device 10b or the communication device 10h a predetermined number of times.
[0096] In the communication system 1 shown in Fig. 4, the communication device 10a acquires an over-hear route success rate and a number of communication occurrences each time the communication device 10a receives device information from the communication device 10c a predetermined number of times via the over-hear route A, and updates the device information. In this embodiment, the over-hear route success rate is expressed as a ratio of the number of times that the communication device 10a receives an ACK for the transmission of the device information to the number of times that the communication device 10a transmits device information to the communication device 10c while receiving the device information from the communication device 10c a predetermined number of times. The over-hear route success rate (initial value) at the time when the over-hear route is formed is set to "1".
[0097] In this embodiment, the calculation unit 35 calculates the evaluation value based on the following formula.
[0098] (Number of hops in the communication path + total number of communications occurring in the communication path) x expected number of communications
[0099] Specifically, the calculation unit 35 acquires a first value by adding the total number of communications occurring for each communication device along the communication path acquired by the acquisition unit 33 to the number of hops. The calculation unit 35 multiplies the first value by an expected value of the number of communications on the communication path acquired by the acquisition unit 33 to acquire a second value as an evaluation value.
[0100] The expected number of communications is the reciprocal of the product of the communication success rates of each communication device. For example, if the product of the communication success rates of each communication device along a communication path is 0.5, the expected number of communications is 2. In this case, it can be expected that communication will be successful if two transmissions are made along that communication path.
[0101] 1, in the communication path (first communication path) of the above-mentioned communication devices 10a, 10b, 10c, 10d, 10e, 10f, and 10g, the number of hops is 6, the total number of communications occurring is 21, and the expected value of the number of communications is 1, so the evaluation value is 27. In the communication path (second communication path) of the above-mentioned communication devices 10a, 10h, and 10g, the number of hops is 2, the total number of communications occurring is 7, and the expected value of the number of communications is 1, so the evaluation value is 9.
[0102] In the communication system 1 shown in FIG. 4, the communication path (first communication path) of the above-mentioned communication devices 10a, 10b, 10c, 10d, and 10e has a hop count of 4, a total number of communication occurrences of 15, and an expected value of the number of communications is 1, so the evaluation value is 19. In the communication path (second communication path) of the above-mentioned communication devices 10a, 10b, 10c, and 10e, the hop count is 3, a total number of communication occurrences of 13, and an expected value of the number of communications is 1 / 0.7 (≒1.43), so the evaluation value is an approximate value of 22.9. In the communication path (third communication path) of the above-mentioned communication devices 10a, 10c, 10d, and 10e, the hop count is 3, a total number of communication occurrences of 14, and an expected value of the number of communications is 1 / 0.8 (=1.25), so the evaluation value is an approximate value of 21.3. In the communication path of the above-mentioned communication devices 10a, 10c, and 10e (the fourth communication path), the number of hops is 2, the total number of communications occurring is 12, and the expected value of the number of communications is 1 / 0.56 (≈1.79), so the evaluation value is 25. In the communication path of the above-mentioned communication devices 10a, 10h, 10g, 10f, and 10e (the fifth communication path), the number of hops is 4, the total number of communications occurring is 13, and the expected value of the number of communications is 1, so the evaluation value is 17.
[0103] The route selection unit 37 selects the communication route with the lowest evaluation value from among the multiple communication routes based on the evaluation value calculated by the calculation unit 35. For example, in the communication system 1 shown in FIG. 1, the communication route (second communication route) of the above-mentioned communication devices 10a, 10h, and 10g is selected. In the communication system 1 shown in FIG. 4, the communication route (fifth communication route) of the above-mentioned communication devices 10a, 10h, 10g, 10f, and 10e is selected. In this way, the route selection unit 37 can select the communication route with the lowest communication delay and instability from among the multiple communication routes acquired by the acquisition unit 33.
[0104] When two or more communication routes have the same evaluation value, the route selection unit 37 selects the communication route with the smallest number of hops from among these communication routes. When two or more communication routes have the same evaluation value and number of hops from among these communication routes, the route selection unit 37 selects the communication route with the smallest number of communication occurrences from among these communication routes.
[0105] The setting unit 39 sets the address of the relay device, among the addresses of the communication devices included in the communication path selected by the path selection unit 37, to the relay address of the header field in the frame for communication data in the order of relaying the frame along the communication path. Specifically, in the communication system 1 shown in FIG. 1, the communication path (second communication path) of the above-mentioned communication devices 10a, 10h, and 10g is selected, and the communication device of the first destination is the communication device 10g1, so the setting unit 39 sets the addresses of the communication devices 10h and 10g to the relay address. In the communication system 1 shown in FIG. 4, the communication path (fifth communication path) of the above-mentioned communication devices 10a, 10h, 10g, 10f, and 10e is selected, and the communication device of the first destination is the communication device 10e, so the setting unit 39 sets the addresses of the communication devices 10h, 10g, and 10f to the relay address.
[0106] In the communication system 1 shown in FIG. 1, the counting unit 41 counts the number of times that the receiving unit 23 receives device information from the communication device 10b or the communication device 10h, and stores the counted value in the memory unit 29 as the number of times the device information has been received.
[0107] 4, the counter 41 counts the number of times that the receiver 23 receives device information from the communication device 10c, and stores the counted value as the number of times that the device information is received in the storage unit 29. The counter 41 counts the number of times that the transmitter 21 transmits device information to the communication device 10c, and stores the counted value as the number of times that the device information is transmitted in the storage unit 29. The counter 41 counts the number of times that the receiver 23 receives an ACK in response to the transmission of the device information from the communication device 10c, and stores the counted value as the number of times that the ACK is received.
[0108] When the receiving unit 23 receives a reception completion notification addressed to its own device, the routing table update unit 43 adds information of other communication devices in the fixed route set in the first source address of the header field of the reception completion notification to the over-here route table. When the receiving unit 23 receives routing table information from an adjacent communication device, the routing table update unit 43 updates the routing table of its own device based on the received routing table information.
[0109] When the receiving unit 23 receives device information from an adjacent communication device, the device information update unit 45 updates the fixed route table in the device information based on the received device information. Note that the device information update unit 45 does not need to update the fixed route table in the device information every time it receives device information from an adjacent communication device. In this embodiment, the device information update unit 45 is also referred to as an update unit.
[0110] 1, when the number of times that the device information is received counted by the counter 41 reaches a predetermined number (e.g., 10 times), the device information update unit 45 acquires the number of communication occurrences and updates the device information. When the number of times that the device information is received reaches the predetermined number, the device information update unit 45 resets the number of times that the device information is received to 0.
[0111] 4, when the number of times that the device information is received counted by the counting unit 41 reaches a predetermined number (e.g., 10 times), the device information update unit 45 acquires the number of communication occurrences and the over-heard route success rate, and updates the device information. When the number of times that the device information is received reaches a predetermined number, the device information update unit 45 resets the number of times that the device information is received, the number of times that the device information is transmitted, and the number of times that ACK is received to 0.
[0112] When the receiving unit 23 receives communication data, if the first destination address of the received communication data does not match the address of the own device, the change unit 47 changes the second destination address and the second source address of the communication data to relay the communication data. Specifically, the change unit 47 refers to the relay address in the header field and changes the second destination address in the header field to the address of the communication device one step ahead in the communication path. Note that, when the address of the own device is set in the last relay address in the header field, the change unit 47 changes the second destination address in the header field to a communication device outside the fixed route that is directly connected to the own device so as to be able to communicate with the own device. The change unit 47 changes the second source address in the header field to the address of the own device.
[0113] When the receiving unit 23 receives a reception completion notification, if the first destination address of the received reception completion notification does not match the address of the own device, the changing unit 47 changes the second destination address and the second source address of the reception completion notification in order to relay the reception completion notification. Specifically, the changing unit 47 changes the second destination address and the second source address of the reception completion notification to the address of an adjacent communication device on the opposite side of the communication device that transmitted the reception completion notification within the fixed route, and the address of the own device, respectively.
[0114] When the generating unit 31 generates communication data, the determining unit 49 determines whether or not the first destination communication device is directly communicably connected to the own device. When the determining unit 49 determines that the first destination communication device is directly communicably connected to the own device, the transmitting unit 21 transmits the communication data to the first destination communication device. When the determining unit 49 determines that the first destination communication device is not directly communicably connected to the own device, the route selecting unit 37 selects a communication route, and the transmitting unit 21 transmits the communication data to the next communication device in the selected communication route.
[0115] When the receiving unit 23 receives a frame, if information indicating that the frame is for communication data is set in the type of the header field of the received frame, the determining unit 49 determines that the receiving unit 23 has received communication data. In this case, the determining unit 49 determines whether the first destination communication device is directly connected to the own device so as to be able to communicate with the own device.
[0116] When the determination unit 49 determines that the first destination communication device is directly communicably connected to the own device, the transmission unit 21 transmits communication data to the first destination communication device. When the determination unit 49 determines that the first destination communication device is not directly communicably connected to the own device, the transmission unit 21 determines whether the second source communication device is a communication device outside the fixed route.
[0117] When the determination unit 49 determines that the second source communication device is not a communication device outside the fixed route, the transmission unit 21 refers to the relay address and transmits the communication data to the next communication device in the communication path. When the determination unit 49 determines that the second source communication device is a communication device outside the fixed route, the route selection unit 37 selects a communication path, and the transmission unit 21 transmits the communication data to the next communication device in the selected communication path.
[0118] When the receiving unit 23 receives a frame, if information indicating that the frame is a reception completion notification frame is set in the type of the header field of the received frame, the determining unit 49 determines that the receiving unit 23 has received a reception completion notification. In this case, the determining unit 49 determines whether or not the first destination address matches the address of the own device.
[0119] When the determination unit 49 determines that the first destination address matches the address of the own device, the routing table update unit 43 updates the over-the-air route table. When the determination unit 49 determines that the first destination address does not match the address of the own device, the change unit 47 changes the second destination address and the second source address of the reception completion notification frame to relay the reception completion notification.
[0120] When the receiving unit 23 receives a frame, if the type of the header field of the received frame is set to indicate that it is a frame for ACK, the determining unit 49 determines that the receiving unit 23 has received an ACK.
[0121] When the receiving unit 23 receives a frame, if information indicating that the frame is for transmitting a routing table is set in the type of the header field of the received frame, the determining unit 49 determines that the receiving unit 23 has received routing table information. In this case, the routing table updating unit 43 updates the routing table of its own device based on the received routing table information.
[0122] When the transmitter 21 receives a frame, if information indicating that the frame is for transmitting device information is set in the type of the header field of the received frame, the determiner 49 determines that the receiver 23 has received device information. In this case, the device information updater 45 updates the fixed route table of the device information of the own device.
[0123] In this case, the determination unit 49 determines whether the number of times the device information has been received counted by the counting unit 41 has reached a predetermined number (for example, 10 times). When the determination unit 49 determines that the number of times the device information has been received has reached the predetermined number, the device information update unit 45 obtains the number of communication occurrences, or the number of communication occurrences and the overhear route success rate, and updates the device information, as described above.
[0124] When the receiver 23 receives an ACK, the discarder 51 stops the transmission (retransmission) of the communication data held in the own device, and discards the communication data.
[0125] [Hardware configuration of communication device] Next, the hardware configuration of each of the communication devices 10a to 10h will be described. Fig. 8 is a block diagram showing an example of the hardware configuration of each of the communication devices 10a to 10h. Since the communication devices 10a to 10h have the same hardware configuration, only the hardware configuration of the communication device 10a will be described below, and the hardware configurations of the communication devices 10b to 10h will not be described below.
[0126] As shown in FIG. 8, the communication device 10a includes a CPU (Central Processing Unit) 101, a ROM (Read Only Memory) 103, a RAM (Random Access Memory) 105, a storage 107, an antenna 109, a transmission / reception circuit 111, a counter 113, and an external interface 115.
[0127] The CPU 101 executes a program stored in the ROM 103. The CPU 101 performs calculations on data loaded into the RAM 105 in accordance with the program, and performs overall control of each part of the communication device 10a. The CPU is also called a processor.
[0128] The ROM 103 stores programs and the like executed by the CPU 101. In this embodiment, the ROM 103 stores at least programs for controlling a communication path selection process, a transmission process, and a relay / reception process, which will be described later. The RAM 105 temporarily holds calculation data when the CPU 101 executes the programs stored in the ROM 103. The ROM and RAM are also called non-volatile memory and volatile memory, respectively.
[0129] Storage 107 stores control parameters necessary for wireless communication, addresses of communication devices 10a to 10h (communication devices within a fixed route), addresses of communication devices 10a1, 10a2, 10b1, 10d1, and 10g1 (communication devices outside a fixed route), a routing table, device information, count values of various information counted by counter 113, and the like. CPU 101 controls reading and writing of data from and to storage 107 in accordance with a program stored in ROM 103. Storage 107 is, for example, a hard disk drive (HDD) or a solid state drive (SSD), and storage 107 may use both an HDD and an SSD.
[0130] The antenna 109 emits non-directional radio waves under the control of the CPU 101. The transmission / reception circuit 111 performs the above-mentioned modulation processing, demodulation processing, etc. under the control of the CPU 101. The counter 113 counts the number of times the device information is received, the number of times the device information is transmitted, and the number of times an ACK is received.
[0131] The external interface 115 is connected to an external device 200. The CPU 101 transmits and receives data to and from the external device 200 via the external interface 115.
[0132] The external device 200 generates data to be transmitted to another communication device using a communication device to which the external device 200 is connected. The external device 200 utilizes data received by the communication device to which the external device 200 is connected. The external device 200 is, for example, an in-vehicle sensor, an in-vehicle camera, an electronic control unit (ECU), etc.
[0133] [Communication data relay procedure] Next, a description will be given of an operation example of a procedure for relaying communication data in the communication system 1. In this operation example, the operation of the communication devices 10a1, 10a, 10h, and 10g will be described from when communication data is generated in the communication device 10a1 until when it is transmitted to the communication device 10g.
[0134] FIG. 11 is a diagram showing an example of a sequence of a relay procedure of communication data. As shown in FIG. 11, the communication device 10a1 generates communication data by referring to its own routing table (step S1). Specifically, the communication device 10a1 sets the address of the communication device 10g and the address of the communication device 10a1 in the first destination address and the first source address of the header field of the frame, respectively. The communication device 10a1 sets the address of the communication device 10a and the address of the communication device 10a1 in the second destination address and the second source address of the header field of the frame, respectively. Information indicating that the frame is for communication data is set in the type of the header field of the communication data. Data to be transmitted is set in the data field of the communication data.
[0135] The communication device 10a1 transmits the communication data to the communication device 10a corresponding to the second destination communication device (step S3). When the communication device 10a receives the communication data from the communication device 10a1, the communication device 10a generates an ACK and transmits it to the communication device 10a1 to notify the communication device 10a1 that the communication data has been received (step S5).
[0136] When the communication device 10a1 receives the ACK from the communication device 10a, it stops transmitting (retransmitting) the communication data held therein, discards the communication data, and ends the communication (step S7).
[0137] After transmitting the ACK to the communication device 10a1, the communication device 10a performs a receiving process (step S9). As part of the receiving process, the communication device 10a selects a communication path for the received communication data.
[0138] Fig. 12 is a diagram showing an example of a flowchart of a communication path selection process. As shown in Fig. 12, in the communication device 10a, the acquisition unit 33 refers to the routing table of the own device and acquires a plurality of communication paths between the own device and the communication device 10g (step S91). In this operation example, the acquisition unit 33 acquires the communication paths of the communication devices 10a, 10b, 10c, 10d, 10e, 10f, and 10g and the communication paths of the communication devices 10a, 10h, and 10g.
[0139] When the acquisition unit 33 acquires a plurality of communication paths, the calculation unit 35 calculates an evaluation value indicating the degree of communication delay and instability in each communication path based on the number of hops in each communication path and the number of communication occurrences and the communication success rate of each communication device included in the communication path (step S93). Specifically, the calculation unit 35 acquires a first value by adding the total value of the number of communication occurrences of each communication device included in each communication path to the number of hops along each communication path. Furthermore, the calculation unit 35 acquires a second value as an evaluation value by multiplying the first value by an expected value of the number of communications in the communication path.
[0140] When the calculation unit 35 calculates the evaluation value, the route selection unit 37 selects the communication route with the lowest evaluation value from among the multiple communication routes based on the calculated evaluation value (step S95). In this operation example, the communication device 10a selects a communication route to the communication device 10g via the communication device 10h. When the route selection unit 37 selects a communication route, the generation unit 31 and the setting unit 39 refer to the routing table of the own device and set the header field in the received communication data (step S97). Specifically, the generation unit 31 sets the address of the communication device 10h and the address of the own device to the second destination address and the second source address of the header field, respectively. The setting unit 39 sets the address of the communication device 10h to the relay address.
[0141] 11, the communication device 10a transmits the communication data to the communication device 10h corresponding to the second destination communication device (step S11). When the communication device 10h receives the communication data from the communication device 10a, it generates an ACK and transmits it to the communication device 10a to notify the communication device 10a that it has received the communication data (step S13).
[0142] When the communication device 10a receives the ACK from the communication device 10h, the discarding unit 51 stops the transmission (retransmission) of the communication data held in the communication device 10a, discards the communication data, and ends the communication (step S15).
[0143] When the communication device 10h transmits an ACK to the communication device 10a, the communication device 10h performs a receiving process (step S17). In the receiving process, the communication device 10h refers to its own routing table and modifies the header field in the received communication data. Specifically, the modification unit 47 sets the address of the communication device 10g and the address of its own device to the second destination address and the second source address, respectively, based on the relay address in the header field.
[0144] The communication device 10h transmits the communication data to the communication device 10g corresponding to the second destination communication device (step S19). When the communication device 10g receives the communication data from the communication device 10h, it generates an ACK and transmits it to the communication device 10h to notify the communication device 10h that it has received the communication data (step S23).
[0145] When the communication device 10h receives the ACK from the communication device 10g, the discarding unit 51 stops the transmission (retransmission) of the communication data held in the communication device 10h, discards the communication data, and ends the communication (step S25).
[0146] When the communication device 10h transmits an ACK to the communication device 10a, the communication device 10h performs a receiving process (step S27). In the receiving process, when the communication device 10h identifies that the address of the communication device 10h is set in the first destination address of the header field in the received communication data, the communication device 10h ends the communication of the communication data (step S29).
[0147] [Communication device operation] Next, the operation of each of the communication devices 10a to 10h, 10a1, 10a2, 10b1, 10d1, and 10g1 will be described. In the following description, the communication devices 10a to 10h, 10a1, 10a2, 10b1, 10d1, and 10g1 will be collectively referred to as communication device 10.
[0148] Fig. 13 is a diagram showing an example of an operation flowchart of the communication device. As shown in Fig. 13, the communication device 10 judges whether data to be transmitted has occurred after startup (step S101). Specifically, when the communication device 10 receives data to be transmitted to another communication device 10 from an external device connected to the communication device itself (for example, the external device 200 in Fig. 8), the communication device 10 judges that data to be transmitted has occurred.
[0149] When the communication device 10 determines that data to be transmitted has occurred, it executes a transmission process (step S103) to be described later and ends the operation. When the communication device 10 determines that data to be transmitted has not occurred, it determines whether data has been received from another communication device 10 (step S105).
[0150] When the communication device 10 determines that it has received data from another communication device 10, it executes a relay / reception process (step S107) to be described later and ends the operation. When the communication device 10 determines that it has not received data from another communication device 10, it ends the operation.
[0151] The communication device 10 intermittently determines whether or not data to be transmitted has occurred, and repeats the above-mentioned process.
[0152] [Transmission process] The transmission process will be described below. In this process, the data to be transmitted is the communication data described above. Note that the transmission of the reception completion notification, ACK, routing table information, and device information will not be described.
[0153] Fig. 14 is a diagram showing an example of a flowchart of a transmission process. As shown in Fig. 14, when data to be transmitted occurs, the communication device 10 sets a frame for the communication data and generates the communication data (step S111). When the communication device 10 generates the communication data, it checks its own routing table and device information (step S113) and determines whether its own device is a communication device within a fixed route (step S115).
[0154] When the communication device 10 determines that the communication device 10 is not a communication device within the fixed route, the communication device 10 transmits the communication data to a communication device within the fixed route to which the communication device 10 is directly connected so as to be able to communicate (step S117), and ends the transmission process.
[0155] When the communication device 10 determines that the own device is a communication device within a fixed route, the communication device 10 determines whether or not the own device is directly communicably connected to a communication device that is the first destination of the communication data (step S119).
[0156] When the communication device 10 determines that it is directly connected to the communication device that is the first destination of the communication data, it transmits the communication data to the communication device that is the first destination (step S121) and ends the transmission process.
[0157] When the communication device 10 determines that it is not directly connected to the communication device that is the first destination of the communication data, it selects a communication path to the communication device that is the first destination (steps S123 to S127). Note that the process of steps S123 to S127 is similar to the process of steps S91 to S95 in FIG. 12, and therefore the description thereof will be omitted.
[0158] When the communication device 10 selects the communication path to the first destination communication device, the communication device 10 refers to its own routing table and sets the second destination address, the second source address, and the relay address of the communication data. The communication device 10 transmits the communication data to the next communication device on the communication path (step S129), and ends the transmission process.
[0159] [Relay / receiving processing] Next, the relay and reception process will be described. In this process, the data received from the other communication device 10 is the above-mentioned communication data, routing table information, and device information. Note that the relay and reception of the reception completion notification and the reception of the ACK will not be described.
[0160] 15A and 15B are diagrams showing an example of a flowchart of relay and reception processing. As shown in FIG. 15A, when a communication device 10 receives data from another communication device 10, the communication device 10 checks the received data, its own routing table, and device information (steps S151 and S153). The communication device 10 determines whether the received data is information in the routing table (step S155).
[0161] If the communication device 10 determines that the received data is information of the routing table, it updates the routing table (step S157) and ends the relay / reception process. If the communication device 10 determines that the received data is not information of the routing table, it determines whether the received data is device information (step S159).
[0162] When the communication device 10 determines that the received data is device information, it determines whether the reception of the device information is the tenth time (step S161). When the communication device 10 determines that the reception of the device information is the tenth time, it acquires the number of communication occurrences, or the number of communication occurrences and the over-heard route success rate, updates the device information (step S163), and ends the relaying and receiving process. When the communication device 10 determines that the reception of the device information is not the tenth time, it updates the fixed route table in the device information, and ends the relaying and receiving process. Note that when the communication device 10 determines that the reception of the device information is not the tenth time, it may end the relaying and receiving process without updating the fixed route table in the device information.
[0163] When the communication device 10 determines that the received data is not device information, it determines whether the communication device that is the first destination of the received data is its own device (step S165). When the communication device 10 determines that the communication device that is the first destination of the received data is its own device, it performs a receiving process (step S167) and ends the relaying and receiving process.
[0164] 15B, when communication device 10 determines that the first destination communication device of the received data is not its own device, it determines whether or not it is directly connected to the first destination communication device (step S169). When communication device 10 determines that it is directly connected to the first destination communication device, it transmits data to the first destination communication device (step S171) and ends the relay / receive process.
[0165] When the communication device 10 determines that it is not directly connected to the first destination communication device, it determines whether the received data was transmitted from a communication device outside the fixed route. When the communication device 10 determines that the received data was transmitted from a communication device outside the fixed route, it selects a communication path to the first destination communication device (steps S175 to S179). Note that the process of steps S175 to S179 is the same as the process of steps S91 to S95 in FIG. 12, and therefore a description thereof will be omitted.
[0166] When the communication device 10 selects a communication path to the first destination communication device, the communication device 10 refers to its own routing table and sets a second destination address, a second source address, and a relay address for the received data. The communication device 10 transmits the communication data to the next communication device in the communication path (step S181), and ends the relay / receive process.
[0167] When the communication device 10 determines that the received data is not sent from a communication device outside the fixed route, the communication device 10 refers to its own routing table and changes the second destination address and second source address of the received data based on the relay address of the received data. After changing the second destination address and second source address of the received data, the communication device 10 transmits the communication data to the next communication device in the communication path (step S181) and ends the relay / receive process.
[0168] [Actions and Effects] According to this embodiment, a communication device (e.g., communication device 10a) is included in a plurality of communication devices that form a ring-shaped fixed route in an ad hoc network, and is equipped with a transmission unit 21, an acquisition unit 33, a calculation unit 35, a route selection unit 37, and a setting unit 39.
[0169] The acquisition unit 33 acquires a plurality of communication paths between the own device (e.g., communication device 10a) and a communication device (e.g., communication device 10e) within a fixed route or outside the fixed route that is the destination of the communication data. The calculation unit 35 calculates an evaluation value indicating the degree of communication delay and instability in each acquired communication path. Based on the calculated evaluation value, the path selection unit 37 selects the communication path with the lowest evaluation value from among the plurality of communication paths. The transmission unit 21 transmits the communication data to a communication device (e.g., communication device 10h) adjacent to the own device within the communication path, and causes each communication device within the communication path to relay the communication data.
[0170] With this configuration, the communication device calculates an evaluation value indicating the degree of communication delay and instability for each of the acquired multiple communication paths, and selects the communication path with the lowest evaluation value from among the multiple communication paths. This allows the communication device to transmit communication data to the destination communication device using the communication path with the lowest communication delay and instability.
[0171] Furthermore, according to this embodiment, when the selected communication path includes an over-the-air route, the setting unit 39 sets, in the communication data, at least information for identifying a communication device in the communication path that uses the over-the-air route.
[0172] With this configuration, each communication device in the communication path can refer to the information and identify whether or not the device itself is a communication device that uses an over-here route. As a result, when the communication path selected by the communication device includes an over-here route, the communication device can shorten the relay path in the fixed route by using the over-here route as the communication path for communication data.
[0173] Therefore, it is possible to provide a communication device that can effectively reduce communication delays while ensuring communication stability.
[0174] According to this embodiment, the calculation unit 35 calculates an evaluation value based on the number of hops of the communication path, and the number of communication occurrences and the communication success rate of each communication device included in the communication path. The number of hops is the number of times communication is performed between communication devices within the communication path. The number of communication occurrences is the number of times each communication device included in the communication path communicates within a specified period. The communication success rate is the rate at which each communication device included in the communication path successfully communicates with adjacent communication devices within the communication path within a specified period.
[0175] As described above, the number of hops and the number of communication occurrences represent the degree of communication delay, and the communication success rate represents the degree of communication instability. Therefore, with this configuration, the calculation unit 35 can appropriately calculate the degree of communication delay and instability of each communication path.
[0176] According to this embodiment, the calculation unit 35 obtains a first value by adding the total number of communications occurring for each communication device along the communication path to the number of hops. The calculation unit 35 obtains a second value as the evaluation value by multiplying the first value by an expected value of the number of communications. The expected value of the number of communications is represented by the reciprocal of a value obtained by multiplying the communication success rate of each communication device along the communication path.
[0177] As described above, the inverse of the value obtained by multiplying the communication success rate of each communication device along a communication path represents the expected number of communications on the communication path. The larger the expected number of communications, the higher the possibility of retransmission of communication data. Therefore, with such a configuration, the lower the evaluation value, the lower the degree of communication delay and instability. Therefore, the route selection unit 37 can appropriately select the communication route with the lowest degree of communication delay and instability by selecting the communication route with the lowest evaluation value from among multiple communication routes.
[0178] According to this embodiment, the setting unit 39 sets information for identifying each communication device in the selected communication path in the communication data in the order in which the communication data is relayed.
[0179] With this configuration, each communication device in the communication path can appropriately identify the next communication device to which communication data will be relayed by referring to the information.
[0180] According to this embodiment, the communication device (e.g., communication device 10a) further includes a memory unit 29 that stores device information including the number of communication occurrences and the communication success rate of each communication device in the fixed route. The number of communication occurrences is the number of times that each communication device in the fixed route communicates within a specified period. The communication success rate is the rate at which each communication device in the fixed route successfully communicates with an adjacent communication device via the fixed route or an overhear route within a specified period. The calculation unit 35 calculates the evaluation value by referring to the device information.
[0181] With this configuration, the calculation unit 35 can easily calculate the degree of communication delay and instability of each communication path by referring to the device information stored in the storage unit 29.
[0182] According to this embodiment, a communication device (e.g., communication device 10a) further includes a receiving unit 23 and a device information updating unit 45. The receiving unit 23 periodically receives device information held by a communication device (e.g., communication device 10b or communication device 10c) adjacent to the own device via a fixed route or an over-heard route. The device information updating unit 45 updates the number of communication occurrences and the communication success rate of other communication devices within the fixed route, which are included in the device information stored in the storage unit 29, based on the number of communication occurrences and the communication success rate of other communication devices within the fixed route, which are included in the received device information.
[0183] With this configuration, the number of communication occurrences and the communication success rate of other communication devices in the fixed route, which are included in the device information stored in the storage unit 29, are periodically updated based on the device information of adjacent communication devices. Therefore, the calculation unit 35 can calculate the degree of communication delay and instability of each communication route, which reflects the latest network state.
[0184] According to this embodiment, the device information update unit 45 acquires the number of communication occurrences and the communication success rate of its own device (e.g., communication device 10a) at each specified period, and updates the number of communication occurrences and the communication success rate of its own device, which are included in the device information stored in the memory unit 29.
[0185] With this configuration, the number of communication occurrences and the communication success rate of the own device, which are included in the device information stored in the storage unit 29, are updated at regular intervals. Therefore, the calculation unit 35 can calculate the degree of communication delay and instability of each communication path, reflecting the latest network state.
[0186] According to this embodiment, the transmitting unit 21 periodically transmits the device information stored in the storage unit 29 to an adjacent communication device (e.g., the communication device 10c). The device information updating unit 45 acquires, for each specified period, the rate at which the own device has succeeded in transmitting device information to an adjacent communication device as a communication success rate.
[0187] With this configuration, the device information update unit 45 can easily obtain the communication success rate by utilizing the exchange of device information between its own device and an adjacent communication device.
[0188] According to this embodiment, the communication system 1 includes a first communication device (e.g., communication device 10a) included in a plurality of communication devices 10a to 10h forming a ring-shaped fixed route in an ad-hoc network, and a second communication device (e.g., communication device 10e) that is a destination of communication data and is located within or outside the fixed route. The first communication device includes the above-mentioned transmission unit 21, acquisition unit 33, calculation unit 35, route selection unit 37, and setting unit 39.
[0189] With this configuration, the first communication device calculates an evaluation value indicating the degree of communication delay and instability for each of the acquired multiple communication paths, and selects the communication path with the lowest evaluation value from among the multiple communication paths. This allows the first communication device to transmit communication data to the destination second communication device using the communication path with the lowest communication delay and instability.
[0190] Furthermore, each communication device in the communication path can refer to the information to identify whether or not the device itself is a communication device that uses an over-here route. As a result, when the communication path selected by the communication device includes an over-here route, the communication device can shorten the relay path in the fixed route by using the over-here route as the communication path for communication data.
[0191] Therefore, it is possible to provide a communication system that can effectively reduce communication delays while ensuring communication stability.
[0192] [Variations] In the above embodiment, the calculation unit 35 calculates the evaluation value of each communication path based on the number of hops of the communication path and the number of communication occurrences and the communication success rate of each communication device included in the communication path, but is not limited to this. For example, the calculation unit 35 may calculate the evaluation value of each communication path based on the communication distance to the first destination communication device on the communication path.
[0193] In general, it is assumed that the longer the communication distance, the more likely a delay is to occur. Therefore, the communication distance represents the degree of communication delay. It is also assumed that the longer the communication distance, the more likely a signal waveform distortion occurs due to noise or the like. Therefore, the communication distance represents the degree of communication instability. Therefore, the calculation unit 35 can calculate the degree of communication delay and instability of each communication path by calculating an evaluation value of each communication path based on the communication distance to the first destination communication device on the communication path.
[0194] In the above embodiment, when a communication device outside the fixed route is a first source communication device, a communication device in the fixed route that is directly connected to the communication device outside the fixed route selects a communication path, but this is not limited to this. For example, each communication device outside the fixed route may store route information, and even if the communication device outside the fixed route is a first source communication device, the communication device outside the fixed route may select a communication path.
[0195] In the above embodiment, the device information update unit 45 updates the own device table of device information when the number of times of receiving the device information reaches a predetermined number (for example, 10 times), but is not limited to this. For example, the device information update unit 45 may update the own device table of device information every time it receives device information from an adjacent communication device.
[0196] In the above embodiment, the expected value of communication is expressed as the reciprocal of the value obtained by multiplying the communication success rate of each communication device along the communication path, but the expected value of communication is not limited to this. The expected value of communication may be a value calculated by another method.
[0197] Although the present embodiment has been described above, the present embodiment is not limited to this, and various modifications are possible within the scope of the gist of the present embodiment. [Explanation of symbols]
[0198] 1. Communication Systems 10a~10h Communication equipment 21 Transmitter 23 Receiving section 29 Memory section 33 Acquisition Department 35 Calculation section 37 Route Selection Section 39 Setting section 45 Device information update section
Claims
1. A communication device included in a plurality of communication devices forming a ring-shaped fixed route in an ad-hoc network, an acquisition unit that acquires a plurality of communication paths between the device itself and a communication device that is a destination of communication data and is within the fixed route or outside the fixed route; A calculation unit that calculates an evaluation value indicating a degree of communication delay and instability in each of the acquired communication paths; a route selection unit that selects, from among the plurality of communication routes, a communication route having the lowest evaluation value based on the calculated evaluation value; a setting unit that sets, in the communication data, information for identifying a communication device in the communication path that uses at least the over-the-air route when the selected communication path includes an over-the-air route; a transmission unit that transmits the communication data to a communication device adjacent to the own device within the communication path and relays the communication data to each communication device within the communication path; A communication device comprising:
2. The calculation unit calculates the evaluation value based on a number of hops of the communication path, and a number of communication occurrences and a communication success rate of each communication device included in the communication path; the number of hops is the number of times communication is performed between the communication devices on the communication path, The number of communication occurrences is the number of times that each communication device included in the communication path performed communication within a specified period, The communication device according to claim 1 , wherein the communication success rate is a rate at which each communication device included in the communication path successfully communicates with an adjacent communication device within the communication path within the specified period.
3. the calculation unit obtains a first value by adding a total value of the number of communications occurring in each communication device along the communication path to the number of hops; the calculation unit multiplies the first value by an expected value of the number of communications to obtain a second value as the evaluation value; The communication device according to claim 2 , wherein the expected value of the number of communications is expressed as an inverse of a value obtained by multiplying the communication success rate of each communication device along the communication path.
4. The communication device according to claim 1 , wherein the setting unit sets information for identifying each communication device in the selected communication path in the communication data in an order in which the communication data is relayed.
5. A storage unit is further provided for storing device information including a number of communication occurrences and a communication success rate of each communication device within the fixed route, The number of communication occurrences is the number of times that each communication device in the fixed route performed communication within the specified period, the communication success rate is a rate at which each communication device in the fixed route successfully communicates with an adjacent communication device via the fixed route or an overhear route within the specified period; The communication device according to claim 2 , wherein the calculation unit calculates the evaluation value by referring to the device information.
6. a receiving unit that periodically receives device information of a communication device adjacent to the own device from the communication device adjacent to the own device via the fixed route or the overhear route; an update unit that updates the number of communication occurrences and the communication success rate of other communication devices within the fixed route, which are included in the device information stored in the storage unit, based on the number of communication occurrences and the communication success rate of other communication devices within the fixed route, which are included in the received device information; The communication device of claim 5 further comprising:
7. The communication device according to claim 6, wherein the update unit acquires the number of communication occurrences and the communication success rate of the device at each specified period, and updates the number of communication occurrences and the communication success rate of the device contained in the device information stored in the memory unit.
8. The transmission unit periodically transmits the device information stored in the storage unit to the adjacent communication device; The communication device according to claim 7 , wherein the update unit acquires, for each specified period, a rate at which the local device has successfully transmitted the device information to the adjacent communication device as the communication success rate.
9. In an ad-hoc network, a first communication device is included in a plurality of communication devices forming a ring-shaped fixed route; a second communication device that is a destination of communication data and is within the fixed route or outside the fixed route; Equipped with The first communication device is an acquisition unit that acquires a plurality of communication paths between the own device and the second communication device; A calculation unit that calculates an evaluation value indicating a degree of communication delay and instability in each of the acquired communication paths; a route selection unit that selects, from among the plurality of communication routes, a communication route having the lowest evaluation value based on the calculated evaluation value; a setting unit that sets, in the communication data, information for identifying a communication device in the communication path that uses at least the over-the-air route when the selected communication path includes an over-the-air route; a transmission unit that transmits the communication data to a communication device adjacent to the own device within the communication path and relays the communication data to each communication device within the communication path; A communication system comprising:
Citation Information
Patent Citations
Wireless communication device and wireless communication system
JP2022082848A
