The Scientific World Journal

Volume 2014 (2014), Article ID 751491, 7 pages

http://dx.doi.org/10.1155/2014/751491

Research Article

Delay Analysis of Networked Control Systems Based on 100 M Switched Ethernet

Ming Li

College of Mathematics & Computer Science, Wuhan Textile University, Wuhan 430200, China

Received 25 January 2014; Accepted 7 May 2014; Published 5 June 2014

Academic Editor: Chin-Chia Wu

Copyright © 2014 Ming Li. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

Abstract.

For the delay may degrade the performance of networked control systems, networked control systems based on 100 M switched Ethernet are proposed in this paper. According to the working principle of Ethernet switch, the formulas of the upper bound delay of the single-level switched Ethernet and the multiple-level switched Ethernet are deduced by the timing diagram method, and the values of the upper bound delay are also given. The key factors that influence the upper bound delay of switched Ethernet are analyzed; then, the characteristics of the upper bound delay are presented, which show that the delay induced by the single-level 100 M switched Ethernet has little effect on the performance of control systems, while the delay induced by the multiple-level 100 M switched Ethernet may meet the time requirements of all classes of control systems if the numbers of levels and the numbers of nodes connecting to switches are set properly. Finally, the performance of networked control systems is simulated by TrueTime, and the results further show the feasibility and superiority of 100 M switched Ethernet based networked control systems without modification of the network protocols.

1. Introduction

Networked control systems (NCSs) are feedback control systems wherein the control loops are closed through real-time control networks. For NCSs use the public or private communication networks to replace the point-to-point data transmission of traditional control systems, they have the advantages of reduced system wiring, ease of system diagnosis and maintenance, and increased system agility [1, 2]. But because of the limited bandwidth and the QoS of the communication networks, there exist some problems, such as network-induced delay and packet dropouts, in the NCSs. These problems can degrade the performance of control systems and can even destabilize the control systems. Therefore, the control networks are one of the most important factors that affect the performance of the NCSs [2–6]. There are many people researching these problems of the NCSs. Kim et al.  [7] proposed a new scheduling method to obtain a maximum allowable delay bound for the scheduling of networked discrete control systems. Lian et al. [8] studied the key components of time delay to provide guidelines for obtaining the optimal working range of sampling times. Walsh et al.  [9] introduced a novel control network protocol, try-once-discard (TOD), for multiple-input-multiple-output NCSs. But these works cannot consider the usage of switched Ethernet in an NCS.

Switched Ethernet is one of the fastest growing LAN technologies nowadays, and it overcomes the limitation of shared Ethernet; therefore, it can significantly improve the real-time data transmission of control networks. Currently, the technology of 100 M switched Ethernet is very mature and is already used very widely [10]. Since switched Ethernet has many advantages over other fieldbuses, it has obtained more and more attention of researchers in the field of control [11–15]. But current researches are mainly focused on 10 M shared Ethernet, and the network protocols must be modified to some extent in order to obtain real-time data transmission; therefore, the conclusions obtained from 10 M shared Ethernet cannot be directly applied to 100 M switched Ethernet.

Aiming at the performance degradation of control systems caused by the network-induced delay, the 100 M commercial switched Ethernet is presented to establish an NCS without any modification of the network protocols in this paper. This paper is organized as follows. First, the upper bound delay of the 100 M commercial switched Ethernet with single level and multiple levels is analyzed by the timing diagram in order to show how the delay induced by switched Ethernet affects the performance of an NCS. Then, through a case, the tool TrueTime is used to simulate the performance of an NCS based on 100 M commercial switched Ethernet to show the feasibility and superiority of this class of NCSs. Finally, we present our conclusions.

2. Delay Description of an NCS

In NCSs, many nodes, such as the sensors, actuators, and controllers, must use control networks to exchange the data to complete the control tasks, as shown in Figure 1  [1–4].

Figure 1: The structure of networked control systems.

This delay caused by the network communication is called network-induced delay. There exist the delay from the sensors to the controllers and the delay from the controllers to the actuators in Figure 1, where is the sampling serial number. At the sampling time , the whole delay induced by the control network can be denoted as . The delay is one of the key problems when analyzing and designing an NCS  [16].

The delay of an NCS is actually induced in the communication process when the data are transmitted from one node to other nodes; in such process, the data are encapsulated in the source nodes and decapsulated in the destination nodes [6]. The delay induced in this process is made up of four parts: the processing delay for transmission at the source , the waiting delay , the transmission delay , and the processing delay for reception at the destination , where and are produced at the source node, is produced at the destination node, and is the sum of the transmission time of the data frames and the propagation time of the channel. Therefore, the whole delay can be denoted as

The delay induced by control networks may be constant, time-variant, or random according to the communication protocols used by control networks; also, the delay may be limited or unlimited [17]. Shared Ethernet, for example, uses the protocol CSMA/CD, so the delay is random and unlimited, while the delay induced by CAN fieldbus is random and limited because of the protocol CSMA/BA.

The methods used to analyze and design an NCS may be different because of the different characteristics of the delay. The random delay,  for example,  can be changed into the fixed one when a buffer is used at the receiving node,  or the random delay can be modeled as Markov chain in order to simplify the analysis of an NCS. However, as for the delay based on the Internet, the dynamic model of the end-end delay can be established through the system identification. Moreover, an NCS can be analyzed and designed according to whether the delay is smaller or bigger than one sampling period.

The standard IEC 61784-2 made by the International Electric Committee classifies the industrial control systems into 3 classes according to the transmission time between two nodes [12]. We can use this standard to judge whether the network-induced delay meets the requirements of a control system.

(1)The First Class. The delay is less than 100 ms. Most processes in process automation and building control fall into this class.(2)The Second Class. The delay is less than 10 ms. This is the requirement for most tooling machine control systems like programmable logic controllers (PLCs) or PC-based control.(3)The Third Class. The delay is less than 1 ms with a jitter of not more than 1 μs. It is imposed by the requirement of motion control systems.

3. Upper Bound Delay of 100 M Switched Ethernet

An Ethernet switch can effectively identify the destination of data frames and relay the frames only to the destination ports without affecting other ports, so Ethernet switch can isolate the collision domain of the networks and suppress the broadcast storm. Ethernet switch can transmit the frames through three methods: cut-through, store-and-forward, and fragment-free [10].

According to the connection mode between switches and nodes, the single-level switched Ethernet and the multiple-level switched Ethernet can be classified. Figure 2(a) is a single-level switched Ethernet where only one switch exists in the whole networks; however, Figure 2(b) is a simple two-level switched Ethernet where there are three switches and two levels in the whole networks.

(a)

(b)

Figure 2: The hierarchical structure of switched Ethernet.

In order to analyze the upper bound delay of 100 M switched Ethernet, some necessary conditions should be made as follows.

(1)The switching technology of a switch is store-and-forward.(2)The buffer of a switch is large enough and no packet overflows from the switch.(3)All the cables in the networks are of the same length.

3.1. Upper Bound Delay of Single-Level 100 M Switched Ethernet

A single-level 100 M switched Ethernet is suitable to establish an NCS that is located in a small range with a few controlled parameters and does not have complex control tasks. If the transmission medium is the twisted-pair cable, the single-level switched Ethernet will have the coverage area where the radium is 100 m and the switch is located in the center. Because there is only one switch in the network, every node must connect to a port of the switch.

When the source node A sends data to the destination node B, the timing diagram of the data from A to B is shown in Figure 3, provided that no data exist in the buffer of the switch.

Figure 3: The timing diagram of the minimum delay of a single-level switched Ethernet.

According to Figure 3, the formula of the minimum delay is obtained as follows:

where is the transmission delay of the data frames and its value equals the length of the frame divided by the transmission rate and , proportional to the length of the communication media, is the propagation delay from the source to the destination.

If the 100 M switched Ethernet conforms to the standard 100BASE-TX, the value of the minimum delay can be calculated as follows (the length of the frame is set as 576 bits that is big enough to transmit control message):

So the minimum delay of the single-level 100 M switched Ethernet is very small compared with the requirements of all classes of control systems, and then it can be ignored completely.

If there are some data in the buffer of a switch, the timing diagram of the data from A to B is shown in Figure 4. At this situation, the delay will be the sum of and queuing delay ; that is,

Supposing that there are frames in the buffer of the switch, the queuing delay can be calculated as

where (defined as  μs) is the interframe delay; is the length of valid data in the frame; is the overhead of a frame and is defined as 26 bytes here; and, also, denotes the bit time that is defined as  μs in the 100 M switched Ethernet.

Figure 4: The timing diagram of a single-level switched Ethernet.

Obviously, the upper bound delay () of the single-level switched Ethernet will be obtained when the numbers of the data frames () in the buffer of the switch reach the maximum.

If there are nodes connecting to a switch and nodes simultaneously send data to one node, the maximum value of will be reached, that is, . So the formula of the upper bound delay of the single-level switched Ethernet should be shown as follows:

In order to illustrate this formula, is assumed to be equal to 141. Therefore, the upper bound delay can be calculated as

From the above value, we can see that the upper bound delay of the single-level 100 M switched Ethernet is far less than the requirements of motion control systems even though there are a large number of data frames in the buffer of a 100 M switch. In fact, it is very rare that there exist 140 frames in the buffer of a 100 M switch if the network is in the stable situation.

Now, the characteristics of the single-level 100 M switched Ethernet can be concluded as follows: the upper bound delay is only affected by the numbers of the data frames in the buffer of a switch and has nothing to do with the network loads; more than one NCS can be established by only one 100 M Ethernet switch; and each NCS has no effect on others if the source port and the destination port in each control loop are completely different. It is feasible to apply the single-level 100 M switched Ethernet to all classes of NCSs.

3.2. Upper Bound Delay of Multiple-Level 100 M Switched Ethernet

A multiple-level 100 M switched Ethernet is formed by more than one switch to cover relatively wider area. The advantage of the multiple-level switched Ethernet is that it can easily establish the hierarchical and distributed control systems, which is helpful to the NCSs that have a lot of controlled parameters and have very complex control tasks.

In order to obtain the upper bound delay of the multiple-level 100 M switched Ethernet, let us firstly analyze a simple two-level switched Ethernet as shown in Figure 2(b). The first level of the two-level switched Ethernet has two 100 M switches (S11 and S12) and each switch is connected by two nodes; the second level has only one 100 M switch (S21) that is connected by two first-level switches. When three nodes (N1, N2, and N3) send data to the node N4 simultaneously, the upper bound delay () will be produced. At this situation, the timing diagram of the two-level switched Ethernet is shown as in Figure 5.

Figure 5: The timing diagram of a two-level switched Ethernet.

The communication process can be described as follows. Firstly, the data frames f1 and f2 will reach the switch S11 simultaneously, while the data frame f3 will reach the switch S12 according to its road. Then, the data frame f1 (or f2) will be transmitted to the switch S21 through the switch S11, while the data frame f2 (or f1) will wait to be transmitted in the buffer of the switch S11 until f1 (or f2) is finished, but the data frame f3 will be directly transmitted to the node N4 through the switch S12. Finally, the data frame f1 will reach the node N4 through the switch S12 and then the data frame f2 will also reach the node N4 after an interframe delay between two successive frames. At this situation, the maximum number of the switches from the source to the destination is three, and the maximum number of the frames in the buffer of the switch from the source to the destination is two.

So the upper bound delay of the NCS can be calculated as

In general, let us assume that the number of the levels is , the maximum number of the nodes connecting to one switch is , the maximum number of the switches from source nodes to destination nodes is , and the maximum number of the frames in the buffer of a switch is ; then, the following can be obtained:

Therefore, the formula of the upper bound delay of multiple-level switched Ethernet is given as follows:

From the formula (10), we can see that the key factors are and that affect the upper bound delay of multiple-level switched Ethernet.

For example, if there are 3500 parameters that need to be measured and controlled, an NCS based on the multiple-level 100 M switched Ethernet is designed that has about 600 sensor nodes and 500 actuator nodes. Let us consider the following two topologies.

(1)The is set as two and the is set as ten. Then, the upper bound delay can be calculated as

We can see that the value is very small and satisfies the time requirements of all classes of control systems.(2)The is set as eight and the is set as one hundred forty. Then, the upper bound delay can be calculated as

At this situation, the upper bound delay does not satisfy the requirement of motion control systems, but it still satisfies the requirements of the first class and the second class of control systems.

Now, the characteristics of the upper bound delay of the multiple-level 100 M switched Ethernet can be concluded as follows: the upper bound delays of the multiple-level 100 M switched Ethernet under different network topologies are different from each other. If the numbers of levels and the numbers of nodes connected to the switches in the networks are set properly, the delay induced by the multiple-level 100 M switched Ethernet can meet the time requirements of all classes of control systems.

4. Simulation Analysis

In order to further illustrate the effect of the delay induced by 100 M switched Ethernet on the performance of an NCS, consider the following controlled plant:

An NCS is established by 100 M commercial switched Ethernet in order to control the plant, where the PID control method is used, that is, proportional coefficient , integral coefficient , and differential coefficient , and the sampling period is set as 8 ms. The TrueTime tool [18–22] is adopted to simulate the performance of the NCS under some different network environments, where the sensor nodes are clock-driven, the controller nodes and actuator nodes are event-driven, and all the nodes on the networks use the strategy of prioFP and have the same priority. Figure 6 is the simulation diagram of the NCS based on a single-level 100 M switched Ethernet.

Figure 6: The simulation diagram of the NCS based on single-level 100 M switched Ethernet.

In order to compare the performance of the control systems under different network environments, 10 M switched Ethernet, CAN fieldbus, and nonnetwork environment are also used here. The step responses of the control systems under different network environments can be obtained as Figure 7 shows.

Figure 7: The step responses of the control systems under different network environments.

The performance indexes of different control systems are shown in Table 1. We can find that the performance of the NCS based on single-level 100 M switched Ethernet is very similar to that of the nonnetworked control system, and their performances are more better than those of the NCS based on 10 M switched Ethernet and CAN fieldbus. Moreover, the control strategy and the control method of the nonnetworked control system can be used directly by the NCS based on single-level 100 M switched Ethernet without any modification.

Table 1: The performance indexes of the control systems.

Network environments
Overshoot
Settling time/s

Nonnetwork
28.315%
0.304

100 M
42.111%
0.306

10 M
62.552%
0.382

CAN
94.111%
0.642

Finally, in order to analyze whether the two NCSs whose control loops are closed through different ports on the same switch have influence on each other, we establish two independent NCSs (NCS 1 and NCS 2) by only one 100 M switched Ethernet, as shown in Figure 8. The controlled plants (Plant 1 and Plant 2), the structures, the controller parameters, and the network topologies of the two NCSs are all the same as those of the NCS in Figure 6.

Figure 8: Two independent NCSs based on one 100 M switch.

After simulation, the results show that the step responses of the two NCSs are exactly the same as those of the NCS based on single-level 100 M switched Ethernet, which proves that the different NCSs established by one 100 M switch have no effect on each other if the source ports and destination ports of different control loops are completely different.

5. Conclusions

The delay induced by control networks is the most important factor to affect the performance of an NCS. In this paper, an NCS based on 100 M commercial switched Ethernet is proposed to solve the problems induced by the delay, provided that there is no packet dropout in the communication process. The delay induced by the single-level 100 M switched Ethernet is less than the time requirements of all classes of control systems, and the performance of an NCS based on a single-level 100 M switched Ethernet is the same as that of the nonnetwork control system, so it is feasible to apply the single-level 100 M switched Ethernet to all classes of control systems; however, the delay induced by the multiple-level 100 M switched Ethernet may meet the time requirements of control systems if the number of levels and the number of nodes connecting to the 100 M switches are set properly. Furthermore, we find that more than one NCS can be established by only one switch and they have no effect on each other if the source ports and the destination ports of different control loops are completely different. The feasibility and superiority of an NCS based on 100 M switched Ethernet are proved in this paper, and we hold that this class of the NCSs can be widely used in the fields of industrial automation.

Conflict of Interests

The author declares that there is no conflict of interests regarding the publication of this paper.

References

R. A. Gupta and M. Y. Chow, “Networked control system: overview and research trends,” IEEE Transactions on Industrial Electronics, vol. 57, no. 7, pp. 2527–2535, 2010.

W. Chen and L. Qiu, “Stabilization of networked control systems with multirate sampling,” Automatica, vol. 49, no. 6, pp. 1528–1537, 2013.

B. Rahmani and A. H. D. Markazi, “Variable selective control method for networked control systems,” IEEE Transactions on Control Systems Technology, vol. 21, no. 3, pp. 975–982, 2013.

W. Zhang, M. S. Branicky, and S. M. Phillips, “Stability of networked control systems,” IEEE Control Systems Magazine, vol. 21, no. 1, pp. 84–99, 2001.

B.-Q. Yu, J.-Y. Wang, and Y.-F. Wang, “Guaranteed cost control for networked control systems with long time-delay and data packet dropout,” Control Engineering of China, vol. 20, no. 1, pp. 59–62, 2013.

L.-M. Yang, Y.-H. Li, and H.-B. Yuan, “Analysis of time dealy in networked control systems and study of data transmission technology,” Control and Decision, vol. 19, no. 4, pp. 361–366, 2004.

D. S. Kim, D. H. Choi, and P. Mohapatra, “Real-time scheduling method for networked discrete control systems,” Control Engineering Practice, vol. 17, no. 5, pp. 564–570, 2009.

F. L. Lian, J. Moyne, and D. Tilbury, “Network design consideration for distributed control systems,” IEEE Transactions on Control Systems Technology, vol. 10, no. 2, pp. 297–307, 2002.

G. C. Walsh, H. Ye, and L. G. Bushnell, “Stability analysis of networked control systems,” IEEE Transactions on Control Systems Technology, vol. 10, no. 3, pp. 438–446, 2002.

S. T. Andrew and J. W. David, Computer Networks, Prentice Hall, New York, NY, USA, 5th edition, 2010.

K. C. Lee, S. Lee, and M. H. Lee, “Worst case communication delay of real-time industrial switched Ethernet with multiple levels,” IEEE Transactions on Industrial Electronics, vol. 53, no. 5, pp. 1669–1676, 2006.

M. Felser, “Real-time Ethernet—industry prospective,” Proceedings of the IEEE, vol. 93, no. 6, pp. 1118–1129, 2005.

J. D. Decotignie, “The many faces of industrial Ethernet [past and present],” IEEE Industrial Electronics Magazine, vol. 3, no. 1, pp. 8–19, 2009.

K. Ji and W. J. Kim, “Real-time control of networked control systems via Ethernet,” International Journal of Control, Automation and Systems, vol. 3, no. 4, pp. 591–600, 2005.

N. Bibinagar and W. J. Kim, “Switched Ethernet-based real-time networked control system with multiple-client-server architecture,” IEEE/ASME Transactions on Mechatronics, vol. 18, no. 1, pp. 104–112, 2013.

Z.-D. Zhou, B.-Y. Chen, Q. Liu, and Y. Long, “Study on delay distribution of network control system,” Control and Decision, vol. 25, no. 4, pp. 592–597, 2010.

J. P. Hespanha, P. Naghshtabrizi, and Y. G. Xu, “A survey of recent results in networked control systems,” Proceedings of the IEEE, vol. 95, no. 1, pp. 138–162, 2007.

A. Cervin, D. Henriksson, B. Lincoln, J. Eker, and K. Arzen, “How does control timing affect performance? Analysis and simulation of timing using Jitterbug and TrueTime,” IEEE Control Systems Magazine, vol. 23, no. 3, pp. 16–30, 2003.

J. J. Lin, H. Li, and F. Xia, “Simulation research for networked cascade control system based on truetime,” in Proceedings of the 9th World Congress on Intelligent Control and Automation (WCICA '11), pp. 485–488, Taipei, Taiwan, June 2011.

A. Cuenca, J. Salt, A. Sala, and R. Piza, “A delay-dependent dual-rate PID controller over an Ethernet network,” IEEE Transactions on Industrial Informatics, vol. 7, no. 1, pp. 18–29, 2011.

C. F. Caruntu and C. Lazar, “Robustly stabilising model predictive control design for networked control systems with an application to direct current motors,” IET Control Theory & Applications, vol. 6, no. 7, pp. 943–952, 2012.

P. Ferrari, A. Flammini, M. Rizzi, and E. Sisinni, “Improving simulation of wireless networked control systems based on WirelessHART,” Computer Standards & Interfaces, vol. 35, no. 6, pp. 605–615, 2013.