The present invention relates to communication devices that form an industrial network and to a communication network.
Various communication networks including industrial networks can be classified into several types depending on conditions of connections between communication devices forming the communication network. Typical examples thereof include bus-type, star-type, tree-type, ring-type, and mesh-type communication networks.
Among such communication networks, a mesh-type communication network enables flexible selection of communication paths between communication devices forming the network, and various methods for selecting communication paths have been proposed. For example, Patent Literature 1 describes a method for selecting a path in a case where a mesh-type communication network is applied to form a sensor network.
In a communication network, a communication path needs to be selected in such a manner that a looped path will not be set. The Spanning Tree Protocol (STP) is present as a communication protocol to avoid setting of a looped path. The STP generates a network having a logical tree structure in a communication network having a loop-type or a mesh-type physical configuration. Specifically, with the STP, a route path cost, which is a sum of path costs depending on the communication speed from a communication device that is a source in the communication network to a communication device connected with the source communication device, is calculated, and a path with the smallest route path cost is selected.
Patent Literature 1: Japanese Patent Application Laid-open No. 2012-217164
An industrial network is typically constituted by a communication device connected with a controller, and communication devices connected with industrial machines that are controlled devices. The communication device connected with the controller may be called a master communication device or the like, and the communication devices connected with the industrial machines may be called slave communication devices or the like. Note that the controller and the industrial machines may have the functions of the communication devices. In such a case, the controller corresponds to the master communication device, and the industrial machines correspond to the slave communication devices.
To achieve accurate control of the industrial machines in a case where such an industrial network is formed by using a mesh-type communication network, the master communication device needs to collect information on communication paths to the individual slave communication devices to obtain the entire network configuration, and select a path suitable for communication for control from among a plurality of selectable communication paths.
When selecting a path by using the STP, however, the master communication device can select communication paths of a tree structure but cannot collect information on communication paths to the individual slave communication devices and thus cannot obtain the entire network configuration. Thus, in a case where a plurality of selectable communication paths are present, the master communication device cannot know such selectable communication paths. There is thus a problem in which selection of a communication path suitable for an industrial network is not guaranteed.
The present invention has been made in view of the above, and an object thereof is to provide a communication device capable of selecting a communication path suitable for an industrial network.
To solve the aforementioned problems and achieve the object, a communication device of the present invention forms a communication network. The communication device generates a search frame, which is a frame for searching for a communication path in setting a communication path to/from another communication device, transmits the search frame to other communication devices, and selects a communication path with a shortest delay time to each of the other communication devices on the basis of information in the search frame having passed through other communication devices and returned to the communication device.
A communication device according to the present invention produces an effect of being capable of selecting a communication path suitable for an industrial network.
A communication device and a communication network according to an embodiment of the present invention will be described in detail below with reference to the drawings. Note that the present invention is not limited to the embodiment.
The transmission/reception ports 211 to 214 correspond to the transmission/reception ports 1 to 4, respectively, illustrated in
The transmission units 221 to 224 transmit frames input from the transmission frame generating unit 231 to other communication devices.
The reception units 225 to 228 receive frames transmitted by other communication devices, and output the received frames to the received frame analyzing unit 230.
The received frame analyzing unit 230 includes a routing analyzing unit 241, a synchronization accuracy analyzing unit 242, and a configuration search analyzing unit 243.
The routing analyzing unit 241 determines whether each of frames received from the reception units 225 to 228 during normal operation is a frame to be received, a frame to be transferred or a frame to be discarded. The normal operation is a state in which setting of communication paths to/from the other communication devices that form the industrial network is completed and frames can be transmitted and received via the set communication paths. When a received frame is a frame to be received, the routing analyzing unit 241 retrieves information from the frame and outputs the information to the information storage unit 234, and the information storage unit 234 stores the information. When a received frame is a frame to be transferred, the routing analyzing unit 241 outputs the frame to a frame transferring unit 252, which will be described later, of the transmission frame generating unit 231. In this case, the frame output by the routing analyzing unit 241 is transferred to another communication device by the frame transferring unit 252. When a received frame is a frame to be discarded, the routing analyzing unit 241 discards the frame.
In a case where a plurality of communication paths to a communication device are present, the synchronization accuracy analyzing unit 242 uses each of the communication paths to measure a transmission delay time and the fluctuation of the transmission delay time of each of the transmission paths in transmission of the frame. The synchronization accuracy analyzing unit 242 measures the transmission delay time and the fluctuation by using the method described in the literature “International Publication No. WO 2015/162763”, for example.
Upon receiving a response frame in response to a frame for communication path search generated by a frame generating unit 251, which will be described later, of the transmission frame generating unit 231, from another communication device, the configuration search analyzing unit 243 analyzes the received response frame to analyze a path through which the response frame has been transmitted.
The transmission frame generating unit 231 includes the frame generating unit 251 and the frame transferring unit 252.
The frame generating unit 251 generates frames to be transmitted to other communication devices. Frames to be transmitted to other communication devices include a frame for searching for a communication path, a response frame in response to a frame for searching for a communication path, and the like.
The frame transferring unit 252 performs a transfer process on a frame determined to be a frame to be transferred by the routing analyzing unit 241 of the received frame analyzing unit 230. The frame transferring unit 252 also performs the transfer process on a frame for communication path search received from another communication device.
The state managing unit 232 manages the operation state of the communication device 200 and the operation states of each of the transmission/reception ports 211 to 214. The types of the operation state of the communication device 200 include a setting state in which an operation for setting a communication path to/from another communication device included in the industrial network is performed, and a normal state in which communication with another communication device by transmission/reception of frames via a set communication path is performed. The setting state includes a state in which an operation for searching for a communication path to/from another communication device is performed, and a state in which a transmission delay on each of found communication paths is measured and a communication path is selected and set on the basis of the measurement result. The operation state of each of the transmission/reception ports 211 to 214 indicates whether or not the transmission/reception port is transmitting/receiving a frame, that is, whether or not another communication device is connected with the transmission/reception port. The determination on whether or not another communication device is connected with each of the transmission/reception ports is made by the frame generating unit 251 of the transmission frame generating unit 231 by generating a frame for checking the presence of another communication device and transmitting the frame to each of the transmission/reception ports, for example. It is determined that another communication device is connected with a transmission/reception port that has received a response frame in response to the transmitted frame, and the transmission/reception port is in operation. In contrast, it is determined that no communication device is connected with a transmission/reception port that has received no response frame in response to the transmitted frame, and the transmission/reception port is not in operation.
The timer managing unit 233 holds a timer for measuring time, and outputs time information in response to a request from the state managing unit 232. Alternatively, the timer managing unit 233 may output time information in response to a request from a component other than the state managing unit 232, such as the received frame analyzing unit 230, for example.
The information storage unit 234 stores various items of information necessary for the communication device 200 to operate, such as information collected from other communication devices.
In the communication network illustrated in
Hereinafter, the operation of the master device 11 for selecting and setting a communication path to each of the slave devices 21 to 24 in the communication network having the configuration illustrated in
(Path Searching Operation)
First, the operation of the master device 11 for searching for selectable paths will be explained. To explain the operation briefly, the master device 11 transmits a search frame, which is a frame for searching for a communication path, through a port in operation, and the slave devices 21 to 24 in receipt of the search frame each output, that is, transfer the search frame through a port in operation, if any, other than the port that has received the search frame. If there is no port in operation other than the port that has received the search frame, the slave devices 21 to 24 output the search frame through the port that has received the search frame. In this process, the master device 11 generates a search frame including an ID (identification), which is its identification information, and transmission port information, which is information on the port through which the search frame is to be transmitted, and transmits the generated search frame through the port in operation. The slave devices 21 to 24 each add its ID, reception port information, which is information on the port that has received the search frame, and the transmission port information, which is information on the port through which the search frame is to be transmitted, to the search frame, and transfers the resulting search frame. In a case where a search frame that satisfies a predetermined condition is received, such as a case where a search frame that the slave devices 21 to 24 previously transferred is received again, however, the slave devices 21 to 24 transfer the search frame without adding the aforementioned information such as its ID. In this case, the slave devices 21 to 24 transfer the received search frame so that the search frame reaches the master device 11 by following the path through which the search frame was transmitted in the opposite direction. In a case where a search frame that the master device 11 previously transmitted is transferred by the slave devices 21 to 24 and returns to the master device 11, the master device 11 holds the IDs, the reception portion information and the transmission port information included in the returned search frame. Thereafter, the master device 11 analyzes the held IDs, reception port information, and transmission port information to determine selectable communication paths. Details of the operations described above will be explained separately with reference to specific examples.
Explanation of the information included in a search frame will now be explained.
Note that, in the master device 11, the frame generating unit 251 illustrated in
Upon receiving a search frame (step S10), the communication device checks information included in the search frame and, if an ID of the communication device is included in the search frame (step S11: Yes), checks whether or the number of IDs of the communication device that are included is two (step S12). If the number of IDs of the communication device that are included is two (step S12: Yes), the communication device checks whether or not the first ID included in the search frame is the ID of the communication device (step S13). The first ID included in the search frame refers to an ID at a position closest to the header of the search frame. In the case where the information having the structure illustrated in
If the first ID is not the ID of the communication device (step S13: No), the communication device transmits the received search frame through a port indicated by information immediately before the ID of the communication device that is the closer to the header of the two IDs of the communication device included in the search frame (step S15). This process of step S15 is a process of transferring the search frame received in step S10 to the port that first received the search frame.
If the number of IDs of the communication device included in the search frame is one (step S12: No), the communication device checks whether or not the received search frame has been received through the port indicated by the information immediately after the ID of the communication device included in the search frame (step S16). In other words, the communication device checks whether or not the port indicated by the information immediately after the ID of the communication device is same as the port through which the search frame has been received. If the received search frame has been received through the port indicated by the information immediately after the ID of the communication device (step S16: Yes), the communication device checks whether or not the first ID included in the search frame is the ID of the communication device (step S17). If the first ID is the ID of the communication device (step S17: Yes), the communication device stores the information included in the received search frame (step S18).
If the first ID is not the ID of the communication device (step S17: No), the communication device transmits the received search frame through the port indicated by the information immediately before the ID of the communication device (step S19). This process of step S19 is a process of transferring the search frame received in step S10 to the port that first received the search frame, similarly to the process in step S15 described above.
If the received search frame has not been received through the port indicated by the information immediately after the ID of the communication device (step S16: No), the communication device adds information on the port through which the search frame has been received, the ID of the communication device, and information on the port through which the search frame is to be transmitted to the received search frame, and transmits the resulting search frame through the port that has received the search frame (step S20). This process of step S20 is a process of adding necessary information to the search frame received in step S10, and then transmitting, that is, returning the resulting search frame through the port that has received the search frame. The search frame transmitted in step S20 corresponds to a response frame in response to the search frame received in step S10. A response frame is a search frame that is relayed while following the path through which the search frame was received in the opposite direction, and finally reaches the communication device that initially transmitted the search frame.
If the ID of the communication device is not included in the received search frame (step S11: No), the communication device checks whether or not a port in operation other than the port that has received the search frame is present (step S21). If a port in operation other than the port that has received the search frame is present (step S21: Yes), the communication device adds information on the port through which the search frame has been received, the ID of the communication device, and information on the port through which the search frame is to be transmitted to the received search frame, and transmits the resulting search frame through a port in operation other than the port that has received the search frame (step S22). In this process, if a plurality of ports in operation other than the port that has received the search frame are present, the communication device transmits the search frame through all the ports in operation (other than the port that has received the search frame).
If no port in operation other than the port that has received the search frame is present (step S21: No), the communication device adds information on the port that has received the search frame, the ID of the communication device, and information on the port through which the search frame is to be transmitted to the received search frame, and transmits the resulting search frame through the port that has received the search frame (step S23). The search frame transmitted in step S23 corresponds to a response frame in response to the search frame received in step S10.
Next, a specific example of the operation of the master device 11 for searching for selectable paths will be explained. First, the master device 11 transmits a search frame, which is a frame for searching for a communication path, through respective ports in operation. Specifically, as illustrated in
Specifically, the slave device 23 transfers the received search frame F101 converted to a search frame F1012 through the port P2 and converted to a search frame F1013 through the port P3. The search frame F1012 includes information ‘P1’ on the reception port, the identification information ‘D’ of the slave device 23, and information ‘P2’ on the transmission port in addition to the information included in the search frame F101. The search frame F1013 includes information ‘P1’ on the reception port, the identification information ‘D’ of the slave device 23, and information ‘P3’ on the transmission port in addition to the information included in the search frame F101. Similarly, the slave device 21 transfers the received search frame F103 converted to a search frame F1032 through the port P2 and converted to a search frame F1033 through the port P3. The slave device 21 further transfers the received search frame F103 converted to a search frame F1034 through the port P4. The search frame F1032 includes information ‘P1’ on the reception port, the identification information ‘B’ of the slave device 21, and information ‘P2’ on the transmission port in addition to the information included in the search frame F103. The search frame F1033 includes information ‘P1’ on the reception port, the identification information ‘B’ of the slave device 21, and information ‘P3’ on the transmission port in addition to the information included in the search frame F103. The search frame F1034 includes information ‘P1’ on the reception port, the identification information ‘B’ of the slave device 21, and information ‘P4’ on the transmission port in addition to the information included in the search frame F103.
According to the operations illustrated in
The search frame F10341 transferred by the slave device 23 is received by the master device 11. Upon receiving the search frame F10341, in which the first ID is the ID of the master device 11, the master device 11 stores information ‘0’, ‘A’, ‘P3’, ‘P1’, ‘B’, ‘P4’, ‘P2’, ‘D’, and ‘P1’ included in the search frame F10341. This process corresponds to the process in step S18 of the flowchart illustrated in
In the meantime, the slave device 24 has no port in operation other than the port that has received the search frame F1032. The slave device 24 thus transfers the search frame F1032 converted to a search frame F10324 to the port P4 that has received the search frame F1032. In this case as well, the slave device 24 adds information on the reception port, the identification information of the slave device 24, and information on the transmission port to the search frame F1032, and then transfers the resulting search frame F10324. Specifically, the slave device 24 adds information ‘P4’ on the reception port, the identification information ‘E’ of the slave device 24, and information ‘P4’ on the transmission port to the search frame F1032, and transfers the resulting search frame F10324. The process performed by the slave device 24 illustrated in
The search frame F10324 transmitted by the slave device 24 is received by the slave device 21. Upon receiving the search frame F10324, in which one ID ‘B’ of the slave device 21 is included and the information on the transmission port immediately after the ID of the slave device 21 is ‘P2’ indicating the same port as the port P2 that has received the search frame F10324, the slave device 21 transmits the search frame F10324 through the port indicated by the reception port information ‘P1’ immediately before the ID of the slave device 21. In this process, the slave device 21 transmits the received search frame F10324 without adding any information thereto. This process corresponds to the process in step S19 of the flowchart illustrated in
As illustrated in
The slave devices 21, 22, and 23 each check information included in the received search frame, and determine that its ID is not included in the received search frame. The slave devices 21, 22, and 23 each have a port or ports in operation other than the port that has received the search frame. Thus, the slave devices 21, 22, and 23 each add information on the reception port, its identification information, and information on the transmission port to the received search frame, and transmits the resulting search frame through a port or ports in operation other than the port that has received the search frame.
Specifically, the slave device 21 converts the search frame F10133 received through the port P3 to search frames F101331, F101332, and F101334, and transfers the search frames F101331, F101332, and F101334 through the ports P1, P2, and P4, respectively. The slave device 22 transfers the search frame F10343 received through the port P1 and converted to a search frame F103433 through the port P3, and the search frame F10123 received through the port P3 and converted to a search frame F101231 through the port P1. The slave device 23 converts the search frame F10331 received through the port P3 to search frames F103311 and F103312, and transfers the search frames F103311 and F103312 through the ports P1 and P2, respectively.
As illustrated in
Upon receiving the search frame F10341 illustrated in
The search frame F103411 transmitted by the master device 11 is received by the slave device 23. Upon receiving the search frame F103411, the slave device 23 checks that one ID ‘D’ of the slave device 23 is included and that the information on the transmission port immediately after the ID of the slave device 23 is ‘P1’, which indicates the port P1 that has received the search frame F103411. Thus, the slave device 23 transmits the search frame F103411 through the port indicated by the reception port information ‘P2’ immediately before the ID ‘D’ of the slave device 23. In this process, the slave device 23 transmits the received search frame F103411 without adding any information thereto. This process corresponds to the process in step S19 of the flowchart illustrated in
The search frame F103411 transmitted by the slave device 23 is received by the slave device 21. In the search frame F103411, one ID ‘B’ of the slave device 21 is included, and information on the transmission port immediately after the ID of the slave device 21 is ‘P4’, which indicates the port P4 through which the slave device 21 has received the search frame F103411. Thus, the slave device 21 performs a process similar to that of the slave device 23, to transmit the search frame F103411 through the port indicated by the reception port information ‘P1’ immediately before the ID ‘B’ of the slave device 21.
The search frame F103411 transmitted by the slave device 21 is received by the master device 11. The master device 11 receives the search frame F103411 through the port P3, and checks the information included therein. Since the search frame F103411 includes two IDs ‘A’ of the master device 11 and the first ID in the search frame F103411 is the ID of the master device 11, the master device 11 stores the information ‘0’, ‘A’, ‘P3’, ‘P1’, ‘B’, ‘P4’, ‘P2’, ‘D’, ‘P1’, ‘P’, ‘A’, and ‘P1’ included in the search frame F103411. This process corresponds to the process in step S14 of the flowchart illustrated in
Note that the operation when the master device 11 has received the search frame F10121 illustrated in
In addition, upon receiving the search frame F10122 illustrated in
The search frame F101224 transmitted by the slave device 24 is received by the slave device 21. Upon receiving the search frame F101224, the slave device 21 checks that one ID ‘B’ of the slave device 21 is included and that the information on the transmission port immediately after the ID of the slave device 21 is ‘P2’, which indicates the port P2 that has received the search frame F101224. Thus, the slave device 21 transmits the search frame F101224 through the port indicated by the reception port information ‘P4’ immediately before the ID ‘B’ of the slave device 21. In this process, the slave device 21 transmits the received search frame F101224 without adding any information thereto.
The search frame F101224 transmitted by the slave device 21 is received by the slave device 23. Upon receiving the search frame F101224, the slave device 23 checks that one ID ‘D’ of the slave device 23 is included and that the information on the transmission port immediately after the ID of the slave device 23 is ‘P2’, which indicates the port P2 that has received the search frame F101224. Thus, the slave device 23 performs a process similar to that of the slave device 21, to transmit the search frame F101224 through the port indicated by the reception port information ‘P1’ immediately before the ID ‘D’ of the slave device 23.
The search frame F101224 transmitted by the slave device 23 is received by the master device 11. Upon receiving the search frame F101224, the master device 11 checks the information included therein. In the search frame F101224, one ID ‘A’ of the master device 11 is included, and information on the transmission port immediately after the ID of the master device 11 is ‘P1’, which indicates the port P1 through which the master device 11 has received the search frame F101224. Furthermore, the first ID included in the search frame F101224 is the ID of the master device 11. Thus, the master device 11 stores the information included in the received search frame F101224. This process corresponds to the process in step S18 of the flowchart illustrated in
As illustrated in
Upon receiving the search frame F101331, the master device 11 checks the information included therein. In the search frame F101331, one ID ‘A’ of the master device 11 is included, and information on the transmission port immediately after the ID is ‘P1’, which indicates a port different from the port P3 that has received the search frame F101331. Thus, the master device 11 adds information on the reception port, the identification information of the master device 11, and information on the transmission port to the search frame F101331, and transmits the resulting search frame F1013313 through the port P3 that has received the search frame F101331. This process corresponds to the process in step S20 of the flowchart illustrated in
The search frame F1013313 transmitted by the master device 11 is received by the slave device 21. Upon receiving the search frame F1013313, the slave device 21 checks that one ID ‘B’ of the slave device 21 is included and that the information on the transmission port immediately after the ID of the slave device 21 is ‘P1’, which indicates the port P1 that has received the search frame F1013313. Thus, the slave device 21 transmits the search frame F1013313 through the port indicated by the reception port information ‘P3’ immediately before the ID ‘B’ of the slave device 21. In this process, the slave device 21 transmits the received search frame F1013313 without adding any information thereto.
The search frame F1013313 transmitted by the slave device 21 is received by the slave device 22. In the search frame F1013313, one ID ‘C’ of the slave device 22 is included, and information on the transmission port immediately after the ID of the slave device 22 is ‘P3’, which indicates the port P3 through which the slave device 22 has received the search frame F1013313. Thus, the slave device 22 performs a process similar to that of the slave device 21, to transmit the search frame F1013313 through the port indicated by the reception port information ‘P1’ immediately before the ID ‘C’ of the slave device 22.
The search frame F1013313 transmitted by the slave device 22 is received by the slave device 23. In the search frame F1013313, one ID ‘D’ of the slave device 23 is included, and information on the transmission port immediately after the ID of the slave device 23 is ‘P3’, which indicates the port P3 through which the slave device 23 has received the search frame F1013313. Thus, the slave device 23 performs a process similar to those of the slave devices 21 and 22, to transmit the search frame F1013313 through the port indicated by the reception port information ‘P1’ immediately before the ID ‘D’ of the slave device 23.
The search frame F1013313 transmitted by the slave device 23 is received by the master device 11. Upon receiving the search frame F1013313, in which two IDs ‘A’ of the master device 11 are included and the first ID is the ID of the master device 11, the master device 11 stores the information included in the search frame F1013313.
In addition, upon receiving the search frame F101332, the slave device 24 checks the information included therein. The search frame F101332 does not include the ID ‘E’ of the slave device 24. In addition, the slave device 24 has no port in operation other than the port P4 that has received the search frame F101332. Thus, the slave device 24 adds information on the reception port, the identification information of the slave device 24, and information on the transmission port to the search frame F101332, and transmits the resulting search frame F1013324 through the port P4 that has received the search frame F101332. This process corresponds to the process in step S23 of the flowchart illustrated in
The search frame F1013324 transmitted by the slave device 24 is received by the slave device 21. Upon receiving the search frame F1013324, the slave device 21 checks that one ID ‘B’ of the slave device 21 is included and that the information on the transmission port immediately after the ID of the slave device 21 is ‘P2’, which indicates the port P2 that has received the search frame F1013324. Thus, the slave device 21 transmits the search frame F1013324 through the port indicated by the reception port information ‘P3’ immediately before the ID ‘B’ of the slave device 21. In this process, the slave device 21 transmits the received search frame F1013324 without adding any information thereto.
The search frame F1013324 transmitted by the slave device 21 is received by the slave device 22. Upon receiving the search frame F1013324, the slave device 22 checks that one ID ‘C’ of the slave device 22 is included and that the information on the transmission port immediately after the ID of the slave device 22 is ‘P3’, which indicates the port P3 that has received the search frame F1013324. Thus, the slave device 22 performs a process similar to that of the slave device 21, to transmit the search frame F1013324 through the port indicated by the reception port information ‘P1’ immediately before the ID ‘C’ of the slave device 22.
The search frame F1013324 transmitted by the slave device 22 is received by the slave device 23. Upon receiving the search frame F1013324, the slave device 23 checks that one ID ‘D’ of the slave device 23 is included and that the information on the transmission port immediately after the ID of the slave device 23 is ‘P3’, which indicates the port P3 that has received the search frame F1013324. Thus, the slave device 23 performs a process similar to those of the slave devices 21 and 22, to transmit the search frame F1013324 through the port indicated by the reception port information ‘P1’ immediately before the ID ‘D’ of the slave device 23.
The search frame F1013324 transmitted by the slave device 23 is received by the master device 11. Upon receiving the search frame F1013324, in which one ID ‘A’ of the master device 11 is included, the port P1 indicated by the information immediately after the ID of the master device 11 is the reception port, and the first ID is the ID of the master device 11, the master device 11 stores the information included in the search frame F1013324.
In addition, upon receiving the search frame F101334, the slave device 23 checks the information included therein. In the search frame F101334, one ID ‘D’ of the slave device 23 is included, and information on the transmission port immediately after the ID is ‘P3’, which indicates a port different from the port P2 that has received the search frame F101334. Thus, the slave device 23 adds information on the reception port, the identification information of the slave device 23, and information on the transmission port to the search frame F101334, and transmits the resulting search frame F1013342 through the port P2 that has received the search frame F101334. This process corresponds to the process in step S20 of the flowchart illustrated in
The search frame F1013342 transmitted by the slave device 23 is received by the slave device 21. Upon receiving the search frame F1013342, the slave device 21 checks that one ID ‘B’ of the slave device 21 is included and that the information on the transmission port immediately after the ID of the slave device 21 is ‘P4’, which indicates the port P4 that has received the search frame F1013342. Thus, the slave device 21 transmits the received search frame F1013342 through the port indicated by the reception port information ‘P3’ immediately before the ID ‘B’ of the slave device 21. In this process, the slave device 21 transmits the received search frame F1013342 without adding any information thereto.
The search frame F1013342 transmitted by the slave device 21 is received by the slave device 22. Upon receiving the search frame F1013342, the slave device 22 checks that one ID ‘C’ of the slave device 22 is included and that the information on the transmission port immediately after the ID of the slave device 22 is ‘P3’, which indicates the port P3 that has received the search frame F1013342. Thus, the slave device 22 performs a process similar to that of the slave device 21, to transmit the search frame F1013342 through the port indicated by the reception port information ‘P1’ immediately before the ID ‘C’ of the slave device 22.
The search frame F1013342 transmitted by the slave device 22 is received by the slave device 23. Upon receiving the search frame F1013342, the slave device 23 checks that two IDs ‘D’ of the slave device 23 are included and that the first ID is not the ID of the slave device 23. Thus, the slave device 23 transmits the received search frame F1013342 through the port indicated by the reception port information ‘P1’ immediately before the ID ‘D’ of the slave device 23 that is closer to the header. In this process, the slave device 23 transmits the search frame F1013342 without adding any information thereto. This process corresponds to the process in step S15 of the flowchart illustrated in
The search frame F1013342 transmitted by the slave device 23 is received by the master device 11. Upon receiving the search frame F1013342, in which one ID ‘A’ of the master device 11 is included, the port P1 indicated by the information immediately after the ID of the master device 11 is the reception port, and the first ID is the ID of the master device 11, the master device 11 stores the information included in the search frame F1013342.
In addition, upon receiving the search frame F101231, the slave device 23 performs a process similar to that when the search frame F101334 has been received. Specifically, the slave device 23 checks the information included in the search frame F101231. In the search frame F101231, one ID ‘D’ of the slave device 23 is included, and information on the transmission port immediately after the ID is ‘P2’, which indicates a port different from the port P3 that has received the search frame F101231. Thus, the slave device 23 adds information on the reception port, the identification information of the slave device 23, and information on the transmission port to the search frame F101231, and transmits the resulting search frame F1012313 through the port P3 that has received the search frame F101231.
The search frame F1012313 transmitted by the slave device 23 is received by the slave device 22. Upon receiving the search frame F1012313, the slave device 22 checks that one ID ‘C’ of the slave device 22 is included and that the information on the transmission port immediately after the ID of the slave device 22 is ‘P1’, which indicates the port P1 that has received the search frame F1012313. Thus, the slave device 22 transmits the received search frame F1012313 through the port indicated by the reception port information ‘P3’ immediately before the ID ‘C’ of the slave device 22. In this process, the slave device 22 transmits the received search frame F1012313 without adding any information thereto.
The search frame F1012313 transmitted by the slave device 22 is received by the slave device 21. Upon receiving the search frame F1012313, the slave device 21 checks that one ID ‘B’ of the slave device 21 is included and that the information on the transmission port immediately after the ID of the slave device 21 is ‘P3’, which indicates the port P3 that has received the search frame F1012313. Thus, the slave device 21 performs a process similar to that of the slave device 22, to transmit the search frame F1012313 through the port indicated by the reception port information ‘P4’ immediately before the ID ‘B’ of the slave device 21.
The search frame F1012313 transmitted by the slave device 21 is received by the slave device 23. Upon receiving the search frame F1012313, the slave device 23 checks that two IDs ‘D’ of the slave device 23 are included and that the first ID is not the ID of the slave device 23. Thus, the slave device 23 transmits the received search frame F1012313 through the port indicated by the reception port information ‘P1’ immediately before the ID ‘D’ of the slave device 23 that is closer to the header. In this process, the slave device 23 transmits the search frame F1012313 without adding any information thereto.
The search frame F1012313 transmitted by the slave device 23 is received by the master device 11. Upon receiving the search frame F1012313, in which one ID ‘A’ of the master device 11 is included, the port P1 indicated by the information immediately after the ID of the master device 11 is the reception port, and the first ID is the ID of the master device 11, the master device 11 stores the information included in the search frame F1012313.
As illustrated in
Upon receiving the search frame F103311, the master device 11 checks the information included therein. In the search frame F103311, one ID ‘A’ of the master device 11 is included, and information on the transmission port immediately after the ID is ‘P3’, which indicates a port different from the port P1 that has received the search frame F103311. Thus, the master device 11 adds information on the reception port, the identification information of the master device 11, and information on the transmission port to the search frame F103311, and transmits the resulting search frame F1033111 through the port P1 that has received the search frame F103311.
The search frame F1033111 transmitted by the master device 11 is received by the slave device 23. Upon receiving the search frame F1033111, the slave device 23 checks that one ID ‘D’ of the slave device 23 is included and that the information on the transmission port immediately after the ID of the slave device 23 is ‘P1’, which indicates the port P1 that has received the search frame F1033111. Thus, the slave device 23 transmits the received search frame F1033111 through the port indicated by the reception port information ‘P3’ immediately before the ID ‘D’ of the slave device 23. In this process, the slave device 23 transmits the received search frame F1033111 without adding any information thereto.
The search frame F1033111 transmitted by the slave device 23 is received by the slave device 22. In the search frame F1033111, one ID ‘C’ of the slave device 22 is included, and information on the transmission port immediately after the ID of the slave device 22 is ‘P1’, which indicates the port P1 through which the slave device 22 has received the search frame F1033111. Thus, the slave device 22 performs a process similar to that of the slave device 23, to transmit the search frame F1033111 through the port indicated by the reception port information ‘P3’ immediately before the ID ‘C’ of the slave device 22.
The search frame F1033111 transmitted by the slave device 22 is received by the slave device 21. In the search frame F1033111, one ID ‘B’ of the slave device 21 is included, and information on the transmission port immediately after the ID of the slave device 21 is ‘P3’, which indicates the port P3 through which the slave device 21 has received the search frame F1033111. Thus, the slave device 21 performs a process similar to those of the slave devices 23 and 22, to transmit the search frame F1033111 through the port indicated by the reception port information ‘P1’ immediately before the ID ‘B’ of the slave device 21.
The search frame F1033111 transmitted by the slave device 21 is received by the master device 11. Upon receiving the search frame F1033111, in which two IDs ‘A’ of the master device 11 are included and the first ID is the ID of the master device 11, the master device 11 stores the information included in the search frame F1033111.
In addition, upon receiving the search frame F103312, the slave device 21 checks the information included therein. In the search frame F103312, one ID ‘B’ of the slave device 21 is included, and information on the transmission port immediately after the ID is ‘P3’, which indicates a port different from the port P4 that has received the search frame F103312. Thus, the slave device 21 adds information on the reception port, the identification information of the slave device 21, and information on the transmission port to the search frame F103312, and transmits the resulting search frame F1033124 through the port P4 that has received the search frame F103312. This process corresponds to the process in step S20 of the flowchart illustrated in
The search frame F1033124 transmitted by the slave device 21 is received by the slave device 23. Upon receiving the search frame F1033124, the slave device 23 checks that one ID ‘D’ of the slave device 23 is included and that the information on the transmission port immediately after the ID of the slave device 23 is ‘P2’, which indicates the port P2 that has received the search frame F1033124. Thus, the slave device 23 transmits the received search frame F1033124 through the port indicated by the reception port information ‘P3’ immediately before the ID ‘D’ of the slave device 23. In this process, the slave device 23 transmits the received search frame F1033124 without adding any information thereto.
The search frame F1033124 transmitted by the slave device 23 is received by the slave device 22. Upon receiving the search frame F1033124, the slave device 22 checks that one ID ‘C’ of the slave device 22 is included and that the information on the transmission port immediately after the ID of the slave device 22 is ‘P1’, which indicates the port P1 that has received the search frame F1033124. Thus, the slave device 22 performs a process similar to that of the slave device 23, to transmit the search frame F1033124 through the port indicated by the reception port information ‘P3’ immediately before the ID ‘C’ of the slave device 22.
The search frame F1033124 transmitted by the slave device 23 is received by the slave device 21. Upon receiving the search frame F1033124, the slave device 21 checks that two IDs ‘B’ of the slave device 21 are included and that the first ID is not the ID of the slave device 21. Thus, the slave device 21 transmits the received search frame F1033124 through the port indicated by the reception port information ‘P1’ immediately before the ID ‘B’ of the slave device 21 that is closer to the header. In this process, the slave device 21 transmits the search frame F1033124 without adding any information thereto.
The search frame F1033124 transmitted by the slave device 21 is received by the master device 11. Upon receiving the search frame F1033124, in which one ID ‘A’ of the master device 11 is included, the port P3 indicated by the information immediately after the ID of the master device 11 is the reception port, and the first ID is the ID of the master device 11, the master device 11 stores the information included in the search frame F1033124.
In addition, upon receiving the search frame F103433, the slave device 21 performs a process similar to that when the search frame F103312 has been received. Specifically, the slave device 21 checks the information included in the search frame F103433. In the search frame F103433, one ID ‘B’ of the slave device 21 is included, and information on the transmission port immediately after the ID is ‘P4’, which indicates a port different from the port P3 that has received the search frame F103433. Thus, the slave device 21 adds information on the reception port, the identification information of the slave device 21, and information on the transmission port to the search frame F103433, and transmits the resulting search frame F1034333 through the port P3 that has received the search frame F103433.
The search frame F1034333 transmitted by the slave device 21 is received by the slave device 22. Upon receiving the search frame F1034333, the slave device 22 checks that one ID ‘C’ of the slave device 22 is included and that the information on the transmission port immediately after the ID of the slave device 22 is ‘P3’, which indicates the port P3 that has received the search frame F1034333. Thus, the slave device 22 transmits the received search frame F1034333 through the port indicated by the reception port information ‘P1’ immediately before the ID ‘C’ of the slave device 22. In this process, the slave device 22 transmits the received search frame F1034333 without adding any information thereto.
The search frame F1034333 transmitted by the slave device 22 is received by the slave device 23. Upon receiving the search frame F1034333, the slave device 23 checks that one ID ‘D’ of the slave device 23 is included and that the information on the transmission port immediately after the ID of the slave device 23 is ‘P3’, which indicates the port P3 that has received the search frame F1034333. Thus, the slave device 23 performs a process similar to that of the slave device 22, to transmit the search frame F1034333 through the port indicated by the reception port information ‘P2’ immediately before the ID ‘D’ of the slave device 23.
The search frame F1034333 transmitted by the slave device 23 is received by the slave device 21. Upon receiving the search frame F1034333, the slave device 21 checks that two IDs ‘B’ of the slave device 21 are included and that the first ID is not the ID of the slave device 21. Thus, the slave device 21 transmits the received search frame F1034333 through the port indicated by the reception port information ‘P1’ immediately before the ID ‘B’ of the slave device 21 that is closer to the header. In this process, the slave device 21 transmits the search frame F1034333 without adding any information thereto.
The search frame F1034333 transmitted by the slave device 21 is received by the master device 11. Upon receiving the search frame F1034333, in which one ID ‘A’ of the master device 11 is included, the port P3 indicated by the information immediately after the ID of the master device 11 is the reception port, and the first ID is the ID of the master device 11, the master device 11 stores the information included in the search frame F1034333.
When the operations explained with reference to
The master device 11 can identify the entire configuration of the communication network and obtain all the communication paths that can be used for communication with each of the slave devices 21 to 24, that is, all the selectable communication paths, by analyzing the information strings (1) to (11) illustrated in
In a case where a path is a loop, a communication network having a logical tree structure can be formed by logically setting any of ports, which are included in the loop, of the communication device having the smallest ID or the communication device having the largest ID of all the communication devices forming the loop so that frames do not pass the port, for example.
(Path Selecting Operation)
After performing the path searching operation to collect the information strings (1) to (11) of the selectable paths illustrated in
The master device 11 analyzes the information strings illustrated in
Subsequently, the master device 11 measures transmission delay times of a path illustrated in
Subsequently, the master device 11 measures transmission delay times of a path illustrated in
Subsequently, the master device 11 measures transmission delay times of a path illustrated in
Subsequently, the master device 11 measures transmission delay times of a path illustrated in
Subsequently, the master device 11 measures transmission delay times of a path illustrated in
After completing the first delay time measurement to the sixth delay time measurement described above, the master device 11 selects a communication path to each of the slave devices on the basis of the obtained measurement results. Specifically, the master device 11 selects a communication path with the shortest transmission delay time to each of the slave devices.
In
In selecting a communication path on the basis of the measurement results illustrated in
In addition, after selecting the communication paths, the master device 11 instructs some of the slave devices to change port setting so that communication will be performed through the selected communication paths. For example, in a case where the selected communication paths are those illustrated in
While the operation of the master device 11 for selecting the paths for communication with the slave devices 21 to 24 has been explained above, the slave devices 21 to 24 can also select communication paths by performing similar procedures. For selecting communication paths, the slave devices 21 to 24 may transmit a search frame including information having the structure illustrated in
In addition, while the master device 11 selects a communication path with the shortest transmission delay time from the selectable communication paths in the embodiment, the selecting operation is not limited thereto. For example, to achieve highly accurate control, stable communication between the master device 11 and the slave devices is important, and the magnitude of fluctuation of transmission delay time may be more significant than the length of transmission delay time. Specifically, control using a communication path on which the average transmission delay time is large but the fluctuation of the transmission delay time is small may result in more accurate control than control using a communication path on which the average transmission delay time is small but the fluctuation of the transmission delay time is large. Thus, the master device 11 may measure the fluctuation of transmission delay time of each of selectable communication paths and select a communication path with the smallest fluctuation.
In addition, the master device 11 holds the results of transmission delay time measurement as illustrated in
As described above, in the communication network according to the embodiment, a communication device performs communication path setting by transmitting a search frame including information on the transmission port, information on the reception port, and identification information of the communication device through respective communication ports in operation, and collecting information indicating physical connections between respective communication devices forming the communication network. In addition, upon receiving a search frame from another communication device, the communication device performs a transfer process on the basis of information included in the search frame. In this process, the communication device adds, where necessary, information on the port that has received the search frame, the identification information of the communication device, and information on the port through which the search frame is to be transmitted to the search frame to be transferred. This enables the communication device according to the embodiment to obtain the entire configuration of the communication network. As a result, the communication device is capable of selecting a suitable communication path in the industrial network from all the selectable communication paths.
Here, hardware for implementing the communication devices will be described.
The communication device according to the embodiment can be implemented by a control circuit 100 illustrated in
The received frame analyzing unit 230, the transmission frame generating unit 231, the state managing unit 232, and the timer managing unit 233 can be implemented by reading corresponding programs from the memory 103 and executing the read programs by the processor 102. In addition, the information storage unit 234 is implemented by the memory 103. The memory 103 is also used as a temporary memory in processes performed by the processor 102. In addition, the transmission units 221 to 224 are implemented by the transmission circuit 101, and the reception units 225 to 228 are implemented by the reception circuit 104.
Alternatively, the received frame analyzing unit 230, the transmission frame generating unit 231, the state managing unit 232, and the timer managing unit 233 may be implemented by dedicated hardware.
Note that some of the received frame analyzing unit 230, the transmission frame generating unit 231, the state managing unit 232, and the timer managing unit 233 may be implemented by the processing circuit 105, and the others by the processor 102 and the memory 103 illustrated in
The configurations presented in the embodiment above are examples of the present invention, and can be combined with other known technologies or can be partly omitted or modified without departing from the scope of the present invention.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2017/035858 | 10/2/2017 | WO | 00 |