A managing station comprises a delay time measuring unit that measures, while transmitting a delay time measurement frame to each of the slave stations and receiving a response frame responsive to the delay time measurement frame from the slave station, an elapsed time from when transmitting the delay time measurement frame to when receiving the response frame and that calculates a delay time of the slave station; and a delay detecting unit that compares the calculated delay time and a delay judgment value that is an average of the delay times calculated in a past for the slave station to determine whether delay is occurring in the slave station for each of the slave stations and that identifies, if delay is occurring in the slave station, the position of a delay element using connection configuration information indicating connection states between the communication apparatuses in the network.
|
5. A communication method in a communication system where a managing station and a plurality of slave stations are connected via a network, the method comprising:
transmitting, by the managing station, a delay time measurement frame to a slave station from the plurality of slave stations;
starting a timing operation in response to the transmitting of the delay time measurement frame to measure an elapsed time;
receiving, by the managing station, a response frame responsive to the delay time measurement frame from the slave station;
stopping the timing operation in response to the receiving of the response frame to measure the elapsed time;
calculating a delay time of the slave station in a current communication cycle, based on the measured elapsed time;
comparing the calculated delay time with a delay judgment value that is an average of individual delay times calculated in previous communication cycles using the timing operation for the slave station, wherein the calculated delay time of the current cycle is received after the individual delay times of the previous communication cycles;
determining whether an abnormal delay is occurring in the slave station based on the comparing;
in response to the determining indicating that the abnormal delay is occurring in the slave station, identifying a position of a delay element using connection configuration information indicating connection states between the managing station and the plurality of slave stations in the network; and
in response to the determining indicating that the abnormal delay is not occurring, updating the delay judgment by recalculating the average of the individual delay times using the calculated delay time in the current cycle and the individual delay times of the previous communication cycles,
wherein the transmitting, the starting, the receiving, the stopping, the calculating, the comparing, and the determining is performed for each of the slave stations,
wherein, in response to the identified delay element being in a faulty slave station from among the plurality of slave stations, transmitting a warning indication to the faulty slave station in which the determined abnormal delay has been identified,
wherein, in response to the identified delay element being not in one of the plurality of slave stations and being between two of the plurality of slave stations, transmitting the warning indication to an adjacent slave station from among the plurality of slave stations, which is adjacent to the identified delay element, and
wherein, in response to the warning indication, one of the faulty slave station and the adjacent slave station is configured to output an alarm showing an occurrence of the determined abnormal delay.
1. A communication apparatus connected to a plurality of slave stations via a network, comprising:
a transmitter and a receiver configured to communicate with the plurality of slave stations; and
a processor configured to:
in response to the transmitter transmitting a delay time measurement frame to each of the plurality of slave stations and the receiver receiving a response frame to the delay time measurement frame from said each of the plurality of slave stations, measure, for said each of the plurality of slave stations, an elapsed time from a first point in time in which the transmitter transmitted the delay time measurement frame to a second point in time in which the receiver received the response frame, and calculate an individual delay time for said each of the plurality of slave stations based on the measured elapsed time for said each of the plurality of slave stations,
compare said individual delay time for said each of the plurality of slave stations with an individual delay judgment value, wherein the individual delay judgement is an average of individual delay times calculated in previous communication cycles for a respective slave station, wherein the individual delay time of a current cycle is received after the individual delay times of the previous communication cycles,
determine whether an abnormal delay is occurring in at least one of the plurality of slave stations,
in response to the determining that the abnormal delay is occurring, identifying a position of a delay element using connection configuration information indicating connection states between the communication apparatus and the plurality of slave stations in the network, and
in response to the determining that the abnormal delay is not occurring, updating the individual delay judgement by recalculating the average of the individual delay times using the calculated individual delay time of the current communication cycle and the delay times of the previous communication cycles,
wherein, in response to the identified delay element being in a faulty slave station from among the plurality of slave stations, the transmitter transmits a warning indication to the faulty slave station in which the determined abnormal delay has been identified,
wherein, in response to the identified delay element being not in one of the plurality of slave stations and being between two of the plurality of slave stations, the transmitter transmits the warning indication to an adjacent slave station from among the plurality of slave stations, which is adjacent to the identified delay element, and
wherein, in response to the warning indication, one of the faulty slave station and the adjacent slave station is configured to output an alarm showing an occurrence of the determined abnormal delay.
2. The communication apparatus according to
3. The communication apparatus according to
4. The communication apparatus according to
the network is at least one of: a line type network and a star type network.
6. The communication method according to
7. The communication method according to
the determining comprises, in response to the calculated delay time deviating from the delay judgment value by a predetermined amount or proportion, setting the calculated delay time as a new delay judgment value.
8. The communication method according to
the network is at least one of a line type network and a star type network.
9. The communication apparatus according to
10. The communication apparatus according to
11. The communication apparatus according to
12. The communication apparatus according to
13. The communication apparatus according to
14. The communication apparatus according to
15. The communication method of
16. The communication method of
|
The present invention relates to a communication apparatus and a communication method.
In conventional communication systems, in order for a managing station to make slave stations synchronize in operation, the managing station sends out a synchronization frame to each slave station, and the slave station having received it starts processing upon the reception.
For example, where a communication system is formed of a line-type network, the reaching time when the synchronization frame from the managing station reaches the slave station differs for each slave station due to the influence of transfer processing times in slave stations arranged in the path and transmission delay times in the cables connecting communication apparatuses.
In order to correct for the difference in the reaching time of the synchronization frame, each slave station finds out the delay time that it takes for the synchronization frame to reach the slave station, is given an offset value corresponding to the delay time, and adds the offset value to the reaching time, thereby making synchronization time be the same for each slave station. As the method with which each slave station finds out the delay time, there is known a method that measures the transmission time of a particular signal sent back and forth between the managing station and each slave station to obtain a transmission delay time from this transmission time (refer to, e.g., Patent Literature 1).
Patent Literature 1: Japanese Patent Application Laid-Open Publication No. H10-13394
In the above conventional art, when unexpected delay has occurred because a slave station on the network has failed or a hub has been added, if the synchronization frame is sent out without a delay due to that delay being taken into account, then the time when the synchronization frame reaches slave stations subsequent to the failed slave station or the added hub, as seen from the managing station, becomes later, so that an event where the synchronization time is not the same (loss of synchronization) occurs. However, there is the problem that, if such an unexpected delay element has occurred, the occurred place cannot be identified.
The present invention was made in view of the above facts, and an object thereof is to provide a communication apparatus and communication method which can detect the occurrence of unexpected delay and identify the occurred place of the delay element in a communication system where a managing station and multiple slave stations are connected via transmission paths and where communication is performed with maintaining synchronization between the slave stations.
There is provided a communication apparatus to be connected to a plurality of slave stations via a network and to manage a logical ring on the network and to communicate with the slave stations at a predetermined communication cycle, comprising: a communication unit that communicates with the slave stations; a delay time measuring unit that, while transmitting a delay time measurement frame to each of the slave stations via the communication unit and receiving a response frame to the delay time measurement frame from the slave station via the communication unit, measures elapsed time from when transmitting the delay time measurement frame to when receiving the response frame, and calculates a half of the measured elapsed time as a delay time of the slave station; and a delay detecting unit that compares the delay time calculated by the delay time measuring unit and a delay judgment value that is an average of the delay times calculated in a past for the slave station to determine whether delay is occurring in the slave station for each of the slave stations, and identifies, if delay is occurring in the slave station, the position of a delay element using connection configuration information indicating connection states between the communication apparatus and the plurality of slave stations in the network.
According to the present invention, when the delay time of a slave station is greater than an average delay time measured in the past, it is determined that a delay element is occurring, and its place is identified with use of connection configuration information. Hence, the present invention has the effect that if unexpected delay has occurred on the network because of a failure in or addition of a slave station, it can be immediately determined where the delay element has occurred.
A preferred embodiment of the communication apparatus and communication method according to the present invention will be described in detail below with reference to the accompanying drawings. Note that this embodiment is not intended to limit the present invention.
The transmitting unit 11 transmits frames generated by the frame processing unit 15 or a delay-time measurement frame (hereinafter called a measurement frame) generated by the delay time measuring unit 16, and the receiving unit 12 receives frames destined for its own station. The transmitting unit 11 and the receiving unit 12 form a communication unit. The timer unit 13 is used when measuring a transmission delay time (hereinafter called a delay time) of each slave station 30A to 30D, is started when transmitting a measurement frame, and is stopped when receiving a delay-time measurement response frame (hereinafter called a response frame).
The connection configuration information storing unit 14 stores connection configuration information (network topology information) of the communication apparatuses in the communication system. For example, in the communication system shown in
The frame processing unit 15 generates frames to be transmitted to the slave stations 30A to 30D and outputs them to the transmitting unit 11, and performs a reception process for making data in a frame received by the receiving unit 12 be, e.g., usable to the other units. In normal processing, the frame processing unit 15 generates a synchronization frame including control data and the like for each slave station 30A to 30D at a predetermined communication cycle and obtains status data from a frame received from each slave station 30A to 30D.
The delay time measuring unit 16 measures the delay time of each slave station 30A to 30D. Specifically, the delay time measuring unit 16 generates a measurement frame and starts timing operation of the timer unit 13 when the transmitting unit 11 transmits it to one slave station 30, and upon receiving a response frame that is a response to the measurement frame from the slave station 30 by the receiving unit 12, stops timing operation of the timer unit 13 to take half of the timer value counted by the timer unit 13 as the delay time of each slave station 30. The delay time measuring unit 16 performs this process sequentially for all the slave stations 30A to 30D present in the network based on the connection configuration information stored in the connection configuration information storing unit 14.
The average delay time calculating unit 17 calculates an average delay time that is a delay judgment value for each slave station 30A to 30D using the delay times calculated by the delay time measuring unit 16 in the past and stores it in the delay time storing unit 18. Further, the delay time storing unit 18 stores average delay time information in which the slave stations 30A to 30D are associated with their average delay times.
For example, as the average delay time, the average value of results of performing delay time measurement a predetermined number of times at the start of the communication system may be used, after that, the average value may be used fixedly until the communication system is initialized. In this case, the average delay time is not updated until the communication system is initialized next time.
Alternatively, as the average delay time, the average value of delay times measured a predetermined number of times over a period from the present into the past may be obtained. In this case, as to the method of determining the number of times, the number of times may be variable according to the length of the delay time, or may be variable according to the amount of variation in the average value calculated. In this case, for example, results of measuring the delay time a predetermined number of times, together with the average delay time, are stored being associated with the slave stations 30A to 30D in the average delay time information. Further, the average delay time is updated each time measurement is performed.
Alternatively, as the average delay time, the average value of delay times measured a number of times over a period from a predetermined time may be used. Here, the predetermined time may be a time when all the slave stations 30A to 30D in the network start operating or a time when the occurrence of unexpected delay has been detected in any of the slave stations 30A to 30D.
The delay detecting unit 19 compares the delay time calculated by the delay time measuring unit 16 and the average delay time stored in the delay time storing unit 18 to determine whether a delay element has occurred in the network, and if detecting the occurrence of a delay element, identifies its place. Specifically, if the delay time deviates from the average delay time by a predetermined proportion, then the delay detecting unit 19 determines that delay is occurring. Further, the delay detecting unit 19 identifies the occurred place of the delay element from the presence/non-presence of delay in each slave station 30A to 30D and the connection configuration information indicating the connection states of the slave stations 30A to 30D. By what degree the delay time deviates from the average delay time when it is determined that delay is occurring, is decided for each network, and the reference to determine that a delay element has occurred can be set such that if the delay time changes by, e.g., 10% of the average delay time or 50% thereof, the detecting unit determines so. Or, rather than detecting delay with use of the proportion of deviation, it may be determined that delay is occurring if the difference between the delay time and the average delay time is greater than or equal to a predetermined value.
The output unit 20 outputs a warning when the delay detecting unit 19 has detected the occurrence of a delay element. For example, a display function (warning indication unit) such as an LED (Light-Emitting Diode) may be provided in the managing station 10 to be lit, or an LED as a warning indication unit of the slave station 30A to 30D near the place where a delay element has occurred or an LED as a warning indication unit of the slave station 30A to 30D where a delay element has occurred may be lit. Or, those LEDs may be lit at the same time. Or, where the output unit 20 is constituted by a display device, with the connection relation of each communication apparatus obtained from the connection configuration information being displayed, the occurred place of a delay element may be displayed being laid over the connection relations of the communication apparatuses.
The slave stations 30A to 30D used in this communication system are the same in configuration as slave stations 30A to 30D used to realize usual synchronous communication except that they immediately sends a response frame destined for the managing station 10 when receiving a measurement frame, and hence description thereof is omitted.
Next, processes in this communication system will be described. Description will be made in the order of a delay time measuring process, an average delay time calculating process, and a delay detecting process.
<Delay Time Measuring Process>
The slave station 30, when having received the measurement frame (step S14), immediately transmits a response frame to the managing station 10 (step S15). At the same time that the receiving unit 12 of the managing station 10 receives the response frame from the slave station 30 to which it transmitted the measurement frame at step S13, the delay time measuring unit 16 stops timing operation of the timer unit 13 (step S16). Then, the delay time measuring unit 16 calculates the delay time of the slave station 30 selected at step S11 as half of the timer value of the stopped timer unit 13 (step S17). The calculated delay time is stored being associated with the slave station 30 in the delay time storing unit 18 (step S18). At this time, the timer value is reset.
Then, the delay time measuring unit 16 of the managing station 10 determines whether the delay time is measured for all the slave stations 30 in the network (step S19), and if the delay time is not measured for all the slave stations 30 (No at step S19), then the process returns to step S11, and the above process is repeatedly performed. If the delay time is measured for all the slave stations 30, then the process ends.
Then, the managing station 10 selects the slave station 30B, and using a measurement frame 112 and a response frame 113 likewise between itself and the slave station 30B, calculates the delay time of the slave station 30B and stores the delay time. Subsequently, the managing station 10 sequentially selects the slave stations 30C, 30D, and likewise calculates the delay times of the slave stations 30C, 30D and stores them. After storing the delay time of the slave station 30D, the managing station 10 finishes the delay time measuring process because no other slave station exists in the network.
<Average Delay Time Calculating Process>
Here, description will be made taking as an example the case where the average delay time is calculated after the delay time measuring process is performed a predetermined number of times like the case where the average delay time calculating process is performed after the communication system is initialized.
<Delay Detecting Process>
If unexpected delay is not occurring (No at step S53), it is determined that that slave station 30 is in a normal state (step S54). On the other hand, if unexpected delay is occurring (Yes at step S53), it is determined that unexpected delay is occurring in that slave station 30 (step S55).
Thereafter or after step S54, it is determined whether the delay detecting process has been performed for all the slave stations 30 (step S56), and if the delay detecting process has not been performed for all the slave stations 30 (No at step S56), then the process returns to step S51.
If the delay detecting process has been performed for all the slave stations 30 (Yes at step S56), then it is determined whether there is at least one slave station 30 in which unexpected delay has been detected (step S57). If there is no slave station 30 in which unexpected delay has been detected (No at step S57), then it is determined that the communication system is in a normal state where an unexpected delay is not occurring as much as to cause loss of synchronization (step S58). Then, it is determined whether a predetermined time has passed since a measurement frame was transmitted last time (step S59), and if the predetermined time has not passed (No at step S59), then the delay detecting unit 19 goes into a wait state. If the predetermined time has passed (Yes at step S59), then the process returns to step S51.
On the other hand, if there is at least one slave station in which unexpected delay has been detected at step S57 (Yes at step S57), then it is determined that in the communication system, so much unexpected delay is occurring as to cause loss of synchronization (step S60). Then, the delay detecting unit 19 identifies the position of the delay element using the connection configuration information stored in the connection configuration information storing unit 14 (step S61). For example, it can be thought that on the connection configuration information, the delay element exists at the boundary between a slave station 30 in which unexpected delay has been detected and a slave station 30 in which unexpected delay has not been detected or that the delay element exists in the slave station 30 in which unexpected delay has been detected that is the closest to that boundary. Then, the delay detecting unit 19 outputs the position information of the slave station 30 close to the delay element (step S62). For example, in the above example, the slave station 30 in which unexpected delay has been detected and the slave station 30 in which unexpected delay has not been detected on opposite sides of the above boundary are acquired as slave stations 30 close to the delay element. Then, the output unit 20 of the managing station 10 can light a warning indication light such as an LED provided in its own station, or light a warning indication light such as an LED provided in the slave station 30 in which unexpected delay has been detected, or display a connection state diagram based on the connection configuration information on a displaying unit such as a liquid crystal display provided in its own station and display the occurred place of the delay element laid over the diagram. This finishes the delay detecting process.
Note that if unexpected delay has been detected, the delay detecting unit 19 of the managing station 10 may stop communication in the communication system, or the delay detecting unit 19 of the managing station 10 may store, as a new average delay time, the delay time calculated at step S51 for the slave station 30 where delay is determined to have occurred in the delay time storing unit 18 so as to perform the delay detecting process based on that value. Further, the delay detecting unit 19 can efficiently identify the occurred place of the delay element by performing the delay time measuring process in the order from a slave station 30 closest to the delay element using the connection configuration information.
Note that, although in the above example description has been made of the network configuration where the managing station 10 and the slave stations 30A to 30D are connected in line, the present invention is not limited to this, but can be applied to star-type networks and line-type star-type mixed networks.
Here, it is assumed that some delay element 141 has occurred between the slave stations 30E and 30F. That is, a delay time calculated from measurement of the time from when the managing station 10 transmits a measurement frame 120 to the slave station 30E to when receiving a response frame 121 is within a predetermined range as compared with the average delay time of the slave station 30E stored in the delay time storing unit 18. In contrast, a delay time calculated from measurement of the time from when the managing station 10 transmits a measurement frame 122 to the slave station 30F to when receiving a response frame 123 is detected to greatly deviate from the predetermined range as compared with the average delay time of the slave station 30F stored in the delay time storing unit 18. At this time, unexpected delay is not occurring in the slave station 30E, and unexpected delay is occurring in the slave station 30F. Hence, it is determined that the delay element 141 is occurring on the transmission path 50 between the slave stations 30E and 30F or in the slave station 30F. Then, a warning indicating the occurrence of the delay element 141 is output to the output unit 20. For example, a warning indication light 150 provided in the managing station 10 may be lit, or warning indication lights 153, 154 provided in the slave station 30E and/or the slave station 30F close to the occurred place of the delay element 141 may be lit.
This embodiment has the effect that if unexpected delay has occurred on the network because of a failure in or addition of a slave station 30, it can be immediately determined where the delay element has occurred and that the occurred place of the delay element can be shown visually by warning indication.
As described above, the communication apparatus according to this invention is useful for networks where data is exchanged periodically.
Patent | Priority | Assignee | Title |
Patent | Priority | Assignee | Title |
5990638, | Jun 21 1996 | Fanuc, Ltd. | Synchronizing method for communication |
6278718, | Aug 29 1996 | Excel Switching Corporation | Distributed network synchronization system |
6684247, | Apr 04 2000 | Intellectual Ventures II LLC | Method and system for identifying congestion and anomalies in a network |
6717916, | Jul 25 1997 | SAMSUNG ELECTRONICS CO , LTD | Method and apparatus for initializing a packet traffic channel in a communication system |
6850491, | Aug 21 2000 | AVAYA Inc | Modeling link throughput in IP networks |
20020152303, | |||
20040153534, | |||
20040252646, | |||
20060092850, | |||
20080222275, | |||
20080232266, | |||
20090005054, | |||
20090168645, | |||
20110063979, | |||
JP10013394, | |||
JP10334027, | |||
JP2000069009, | |||
JP2000115213, | |||
JP2004228828, | |||
JP2007178226, | |||
JP3123229, | |||
JP5030126, | |||
KR1019957001166, | |||
WO9417604, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Feb 21 2011 | Mitsubishi Electric Corporation | (assignment on the face of the patent) | / | |||
May 06 2013 | KOUMOTO, HISAFUMI | Mitsubishi Electric Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 031075 | /0014 |
Date | Maintenance Fee Events |
Dec 19 2019 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Dec 21 2023 | M1552: Payment of Maintenance Fee, 8th Year, Large Entity. |
Date | Maintenance Schedule |
Jul 05 2019 | 4 years fee payment window open |
Jan 05 2020 | 6 months grace period start (w surcharge) |
Jul 05 2020 | patent expiry (for year 4) |
Jul 05 2022 | 2 years to revive unintentionally abandoned end. (for year 4) |
Jul 05 2023 | 8 years fee payment window open |
Jan 05 2024 | 6 months grace period start (w surcharge) |
Jul 05 2024 | patent expiry (for year 8) |
Jul 05 2026 | 2 years to revive unintentionally abandoned end. (for year 8) |
Jul 05 2027 | 12 years fee payment window open |
Jan 05 2028 | 6 months grace period start (w surcharge) |
Jul 05 2028 | patent expiry (for year 12) |
Jul 05 2030 | 2 years to revive unintentionally abandoned end. (for year 12) |