Real-Time � Wireless Control Networks � for Cyber-Physical Systems Chenyang Lu Cyber-Physical Systems Laboratory Department of Computer Science and Engineering
Wireless Control Networks Ø Real-time Sensor Ø Reliability Ø Control performance Actuator sensor data control command Controller 2
Wireless for Process Automation Ø World-wide adoption of wireless in process industries 1.5+ billion hours opera6ng experience 100,000s of smart wireless field devices Offshore Onshore 10,000s of wireless field networks Courtesy: Emerson Process Management Killer App of Sensor Networks! 3
WirelessHART Ø Industrial-grade reliability q Multi-channel TDMA MAC q One transmission per channel q Redundant routes q Over IEEE 802.15.4 PHY Ø Centralized network manager q collects topology information q generates routes and Industrial wireless standard for transmission schedule process monitoring and control q changes when devices/links break 4
Our Endeavor 1. Real-time scheduling theory for wireless 2. Wireless-control co-design 3. Case study: wireless structural control 5
Real-Time Scheduling for Wireless Goals Ø Real-time transmission scheduling à meet end-to-end deadlines Ø Fast schedulability analysis à online admission control and adaptation Approach Ø Leverage real-time scheduling theory for processors Ø Incorporate unique wireless characteristics Results Ø Fixed priority scheduling q Delay analysis [RTAS 2011, TC, RTSS 2015] q Priority assignment [ECRTS 2011] Ø Dynamic priority scheduling q Conflict-aware Least Laxity First [RTSS 2010] q Delay analysis for Earliest Deadline First [IWQoS 2014] 6
Real-Time Flows Ø Flow: sensor à controller à actuator over mul6-hops highest lowest priority Ø A set of flows F ={ F 1 , F 2 , …, F N } ordered by priori6es Ø Each flow F i is characterized by q A source (sensor), a des6na6on (actuator) q A route through the controller q A period P i q A deadline D i ( ≤ P i ) q Total number of transmissions C i along the route 7
Scheduling Problem Ø Fixed priority scheduling q Every flow has a fixed priority q Order transmissions based on the priorities of their flows. end-to-end delay of F i Ø Flows are schedulable if delay i ≤ D i for every flow F i deadline of F i Ø Goal: efficient delay analysis q Gives an upper bound of the end-to-end delay for each flow q Used for online admission control and adaptation 8
End-to-End Delay Analysis Ø A lower priority flow is delayed due to 2 1 q channel contention: all channels in a slot are assigned to higher priority flows 4 5 q transmission conflict involving a same node 3 1 and 5 are conflicting 4 and 5 are conflicting Ø Analyze each type of delay separately 3 and 4 are conflict-free Ø Combine both delays à end-to-end delay bound 9
Insights Ø Flows vs. Tasks Similar: channel contention q Different: transmission conflict q Ø Channel contention à multiprocessor scheduling A channel à a processor q Flow F i à a task with period P i , deadline D i , execution time C i q Leverage existing response time analysis for multiprocessors q Ø Account for delays due to transmission conflicts 10
Delay due to Conflict Ø Low-priority flow F l and high- )*$%+*, priority flow F h , conflict à F l delayed delay F l by 2 slots Ø Q ( I , h ): #transmissions of F h sharing nodes with F l q In the worst case, F h can delay F l by Q ( l , h ) slots q Q ( l , h ) = 5 à F h can delay F l F l delayed by 5 slots F l delayed by 1 slot by 2 slots !"#$%&'"( !"# &!"#$%&'"( !"$ 11
WirelessHART Tested Ø Implementation on a testbed of 69 TelosB motes. Ø WirelessHART stack on TinyOS/mote. Ø Network manager (scheduler + routing). M. Sha, D. Guna6laka, C. Wu and C. Lu, Implementa6on and Experimenta6on of Industrial Wireless Sensor- Actuator Network Protocols, European Conference on Wireless Sensor Networks (EWSN), February 2015. 12
Outline Ø WirelessHART: real-time wireless in industry Ø Real-time scheduling theory for wireless Ø Wireless-control co-design Ø Case study: wireless structural control 13
Wireless-Control Co-Design Goal: opAmize control performance over wireless Challenge Ø Wireless resource is scarce and dynamic Ø Cannot afford separating wireless and control designs Cyber-Physical Systems Approach Ø Holistic co-design of wireless and control Examples Ø Rate selection for wireless control [RTAS 2012, TECS] Ø Wireless structural control [ICCPS 2013] Ø Wireless process control [ICCPS 2015] 14
Rate Selection for Wireless Control Ø Optimize the sampling rates of control loops sharing a WirelessHART network. Ø Rate selection must balance control and network delay. q Low sampling rate à poor control performance q High sampling rate à long delay à poor control performance 15
Control Performance Index Ø Digital implementation of control loop i Periodic sampling at rate f i q Performance deviates from continuous counterpart q Ø Control cost of control loop i under rate f i [Seto RTSS’96] Approximated as with sensitivity coefficients α i e − β i f i α i , β i q n Ø Overall control cost of n loops: ∑ α i e − β i f i i = 1 16
The Rate Selection Problem Ø Constrained non-linear optimization Ø Determine sampling rates f = { f 1 , f 2 , , f n } n ∑ α i e − β i f i minimize control cost i = 1 subject to Delay bound delay i ≤ 1/ f i min ≤ f i ≤ f i max f i 17
Polynomial Time Delay Bounds Ø In terms of decision variables (rates), the delay bounds are Non-linear q Lagrange dual of objec6ve Non-convex q Non-differentiable q 6 p o o l l o r t n o c f o e t a R 18
Wireless-Control Co-Design Relax delay bound to simplify optimization Ø Derive a convex and smooth, but less precise delay bound. ➠ Rate selection becomes a convex optimization problem. Control cost 19
Evaluation 6 10 30 Greedy Heuristic Greedy Heuristic Execution Time (seconds) Subgradient Subgradient 25 Convex Approximation 4 Convex Approximation 10 Simulated Annealing Simulated Annealing Control Cost 20 2 10 15 10 0 10 5 − 2 10 0 5 10 15 20 25 30 5 10 15 20 25 30 Number of Control Loops Number of Control Loops Greedy heuristic is fast but incurs high control cost. q Subgradient method is neither efficient nor effective. q Simulated annealing incurs lowest control cost, but is slow. q Convex approximation balances control cost and execution time. q 20
Wireless Structural Control Ø Structural control systems protect civil infrastructure. Ø Wired control systems are costly and fragile. Ø Wireless structural control achieves flexibility and low cost. Hanshin Expressway Bridge ader Kobe Heritage tower crumbles down in earthquake, Japan, 1995. earthquake of Finale Emilia, Italy, 2012. 21 11/16/15
Contributions Ø Wireless Cyber-Physical Simulator (WCPS) q Capture dynamics of both physical plants and wireless networks q Enable holistic, high-fidelity simulation of wireless control systems q Integrate TOSSIM and Simulink/MATLAB q Open source: http://wcps.cse.wustl.edu Ø Realistic case studies on wireless structural control q Wireless traces from real-world environments q Structural models of a building and a large bridge q Excited by real earthquake signal traces Ø Cyber-physical co-design q End-to-end scheduling + control design q Improve control performance under wireless delay and loss B. Li, Z. Sun, K. Mechitov, G. Hackmann, C. Lu, S. Dyke, G. Agha and B. Spencer, Realis6c Case Studies of Wireless Structural Control, ACM/IEEE Interna6onal Conference on Cyber-Physical Systems (ICCPS'13), April 2013. 22 11/16/15
Bill Emerson Memorial Bridge Ø Main span: 1,150 ft. Ø Carries up to 14,000 cars a day over Mississippi. Ø In the New Madrid Seismic Zone Ø Replaced joints of the bridge by actuators (a) q 24 hydraulic actuators Ø Vibration mode: q 0.1618 Hz for 1 st mode q 0.2666 Hz for 2 nd mode q 0.3723 Hz for 3 rd mode (b) 23 11/16/15
Jindo Bridge: Wireless Traces Ø Largest wireless bride deployment [Jang 2010] q 113 Imote2 units; Peak acceleration sensitivity of 5mg – 30mg Ø RSSI/noise traces from 58-node deck-network for this study 24 11/16/15
Reduction in Max Control Power Cyber-physical co-design à 50% reduc6on in control power. 25
Conclusion Ø Real-time wireless is a reality today q Industrial standards: WirelessHART, ISA100 q Field deployments world wide Ø Real-time scheduling theory for wireless q Leverage real-time processor scheduling q Incorporate unique wireless properties Ø Cyber-physical co-design of wireless control systems q Rate selection for wireless control systems q Scheduling-control co-design for wireless structural control Ø WCPS: Wireless Cyber-Physical Simulator q Enable holistic simulations of wireless control systems q Realistic case studies of wireless structural control 26
Future Directions Ø Scaling up wireless control networks q From 100 nodes à 10,000 nodes q Dealing with dynamics locally q Hierarchical or decentralized architecture Ø Science and engineering of wireless control q Case studies à unified theory, architecture and methodology q Bridge the gap between theory and systems q Textbook on cyber-physical co-design 27
Recommend
More recommend