App-Aware Scheduling on Networked Systems DATE 2020 Kacper - - PowerPoint PPT Presentation

app aware scheduling on networked systems
SMART_READER_LITE
LIVE PREVIEW

App-Aware Scheduling on Networked Systems DATE 2020 Kacper - - PowerPoint PPT Presentation

App-Aware Scheduling on Networked Systems DATE 2020 Kacper Wardega March 10th Boston University About us Dependable Computing Lab Boston University Kacper Wardega ktw@bu.edu Wenchao Li wenchao@bu.edu 2 March 10th, 2020. DATE K.


slide-1
SLIDE 1

App-Aware Scheduling

  • n Networked

Systems

DATE 2020 March 10th Kacper Wardega Boston University

slide-2
SLIDE 2
  • K. Wardega, App-Aware Scheduling over LWB

March 10th, 2020. DATE

About us

2

Dependable Computing Lab Boston University Kacper Wardega ktw@bu.edu Wenchao Li wenchao@bu.edu

slide-3
SLIDE 3
  • K. Wardega, App-Aware Scheduling over LWB

March 10th, 2020. DATE

Industrial Wireless ◍ Cheaper to install ◍ Easier to maintain

3

◍ Flexible ◍ Boosts productivity

(WN, 2017)

slide-4
SLIDE 4
  • K. Wardega, App-Aware Scheduling over LWB

March 10th, 2020. DATE

Problem statement

System designers aim to ensure the real-time properties of applications running over wireless networked systems in the face of communication uncertainties without sacrificing performance.

4

slide-5
SLIDE 5
  • K. Wardega, App-Aware Scheduling over LWB

March 10th, 2020. DATE

Scheduling problem

Take an application consisting of interdependent tasks and compute: ◍ Start/end times for each task, ◍ Assign messages to wireless communication rounds, and ◍ Determine the communication parameters for each message.

5

slide-6
SLIDE 6
  • K. Wardega, App-Aware Scheduling over LWB

March 10th, 2020. DATE

DAG scheduling on wireless systems

6

Applications consists of tasks that depend on one another. Task placement is known, but message passing is unreliable.

slide-7
SLIDE 7
  • K. Wardega, App-Aware Scheduling over LWB

March 10th, 2020. DATE

Scheduling objectives

◍ Communications & tasks occur in the correct order. ◍ Tasks meet respective deadlines. ◍ Each communication round lasts long enough for messages to propagate across the network (flooding). ◍ Tasks meet real-time guarantees. ◍ Minimize the makespan.

7

slide-8
SLIDE 8
  • K. Wardega, App-Aware Scheduling over LWB

March 10th, 2020. DATE

Scheduling objectives: real-time guarantees

8

*

Soft: Task * should succeed 80% of the time Weakly-hard: Task * should fail no more than 5 out of every 6 consecutive executions

beacon msg 1 msg 2 round 1

*

msg 2 msg 1 round 1

(TC, 2001)

slide-9
SLIDE 9
  • K. Wardega, App-Aware Scheduling over LWB

March 10th, 2020. DATE

Known quantities

The application is known and fixed, i.e. known task durations, message widths, task dependencies. The network statistics are known, i.e. under given communication parameters, the scheduler knows the real-time behavior of the message-passing.

9

slide-10
SLIDE 10
  • K. Wardega, App-Aware Scheduling over LWB

March 10th, 2020. DATE

Enter: the low-power wireless bus

10

LWB The LWB abstracts away the radio so that it’s as if each node were wired to every other node.

(SenSys, 2012)

slide-11
SLIDE 11
  • K. Wardega, App-Aware Scheduling over LWB

March 10th, 2020. DATE

The LWB consists of Glossy floods

11

beacon msg 1 msg 2 round 1

1st Glossy subroutine 2nd Glossy subroutine 3rd Glossy subroutine (IPSN, 2011)

slide-12
SLIDE 12
  • K. Wardega, App-Aware Scheduling over LWB

March 10th, 2020. DATE

Glossy floods are the backbone of the LWB

12

STATUS: compute

slide-13
SLIDE 13
  • K. Wardega, App-Aware Scheduling over LWB

March 10th, 2020. DATE

Glossy floods are the backbone of the LWB

13

STATUS: Glossy

slide-14
SLIDE 14
  • K. Wardega, App-Aware Scheduling over LWB

March 10th, 2020. DATE

Glossy floods are the backbone of the LWB

14

STATUS: Glossy

slide-15
SLIDE 15
  • K. Wardega, App-Aware Scheduling over LWB

March 10th, 2020. DATE

Glossy floods are the backbone of the LWB

15

STATUS: Glossy

slide-16
SLIDE 16
  • K. Wardega, App-Aware Scheduling over LWB

March 10th, 2020. DATE

Glossy floods are the backbone of the LWB

16

STATUS: Glossy

slide-17
SLIDE 17
  • K. Wardega, App-Aware Scheduling over LWB

March 10th, 2020. DATE

17

Flood successful Glossy floods are the backbone of the LWB STATUS: complete

slide-18
SLIDE 18
  • K. Wardega, App-Aware Scheduling over LWB

March 10th, 2020. DATE

LWB & glossy

1. Glossy is event-triggered, but the LWB is time-triggered. 2. There is a fundamental tradeoff between reliability and time/energy controlled by the retransmission parameter. 3. Wireless control has been demonstrated over the LWB.

18 (ICCPS, 2019)

slide-19
SLIDE 19
  • K. Wardega, App-Aware Scheduling over LWB

March 10th, 2020. DATE

Communication-adjusted task graph

19

1 2

slide-20
SLIDE 20
  • K. Wardega, App-Aware Scheduling over LWB

March 10th, 2020. DATE

Communication round dissected

20

beacon msg 1 msg 2 msg 3 msg 4 Round 1 Rounds consist of several glossy floods. Flood duration depends on message width and the retransmission parameter.

slide-21
SLIDE 21
  • K. Wardega, App-Aware Scheduling over LWB

March 10th, 2020. DATE

Optimal soft real-time schedules are obtained via MILP or SMT. But what about weakly-hard real-time?

21

Task * should succeed 80%

  • f the time

beacon msg 1 msg 2 Round 1

The product of the success rates of the Glossy floods carrying the beacon, msg 1 & 2 must be at least 80%

=

e.g.

95% 90% 94% = 80.37% x x

*

21

slide-22
SLIDE 22
  • K. Wardega, App-Aware Scheduling over LWB

March 10th, 2020. DATE

Communication failure patterns for preceding messages may violate the task’s (m,K).

22 22

beacon round 1 msg 1 msg 2 task * Allowing any failure pattern allowed by these constraints… Will the task depending

  • n those messages

always obey this constraint?

slide-23
SLIDE 23
  • K. Wardega, App-Aware Scheduling over LWB

March 10th, 2020. DATE

Abstraction for layered weakly-hard constraints ◍ Checking satisfaction

  • f w-h real-time

constraints requires universal quantifiers. ◍ We prove a min-plus abstraction for layered w-h constraints.

23

To compose two w-h constraints we leverage that in the worst case, as many misses as possible occur within the smaller window

slide-24
SLIDE 24
  • K. Wardega, App-Aware Scheduling over LWB

March 10th, 2020. DATE

Using the min-plus abstraction, we can encode the problem to SMT to obtain optimal weakly-hard real-time schedules.

24

Task * should fail no more than 5 out of every 6 consecutive executions

beacon msg 1 msg 2 Round 1

The min-plus sum of the failure characteristic of the glossy floods carrying the beacon, msg 1 & 2 must be at least (5,6)

=

e.g.

(1,8) (2,9) (1,7) =(4,7)⪯(5,6)

*

24

slide-25
SLIDE 25
  • K. Wardega, App-Aware Scheduling over LWB

March 10th, 2020. DATE

Validation & experiments

We validate scheduler correctness on synthetic and industry-related

  • applications. Furthermore, we show how a

real-time scheduler enables design automation…

25

slide-26
SLIDE 26
  • K. Wardega, App-Aware Scheduling over LWB

March 10th, 2020. DATE

Applications MIMO/switched control ◍ Multiple sensors as inputs to controllers for multiple actuators ◍ Designer specifies worst-case bounded failures permitted

26

slide-27
SLIDE 27
  • K. Wardega, App-Aware Scheduling over LWB

March 10th, 2020. DATE

Applications Design space exploration ◍ Mobile robots in a closed environment ◍ Designer specifies the application success rate and aims to minimize power usage

27

slide-28
SLIDE 28
  • K. Wardega, App-Aware Scheduling over LWB

March 10th, 2020. DATE

Our scheduler implementation is open-source

28

https://github.com/netdag/netdag

28

slide-29
SLIDE 29
  • K. Wardega, App-Aware Scheduling over LWB

March 10th, 2020. DATE

References

  • X. Li, D. Li, J. Wan et. al. “A review of industrial

wireless networks in the context of Industry 4.0”. Wireless Networks 23, pp. 23-41, 2017.

  • G. Bernat, A. Burns, and S. Member. “Weakly hard

real-time systems”. IEEE Transactions on Computers,

  • vol. 50, no. 4, pp. 308–321, 2001.
  • F. Ferrari, M. Zimmerling, L. Thiele, and O. Saukh.

“Efficient network flooding and time synchronization with glossy”. Proceedings of the ACM/IEEE International Conference on Information Processing in Sensor Networks (IPSN), pp. 73–84, 2011.

  • F. Ferrari, M. Zimmerling, L. Mottola, and L. Thiele.

“Low-power wireless bus”. Proceedings of the 10th ACM Conference on Embedded Network Sensor Systems (SenSys), p. 1, 2012.

  • F. Mager, et al. “Feedback control goes wireless:

guaranteed stability over low-power multi-hop networks”. Proceedings of the 10th ACM/IEEE International Conference on Cyber-Physical Systems (ICCPS), 2019.

29

slide-30
SLIDE 30
  • K. Wardega, App-Aware Scheduling over LWB

March 10th, 2020. DATE

Thanks!

30