26
Dependable End-to-End Delay Constraints for Real-Time Systems using SDN Rakesh Kumar, Monowar Hasan, Smruti Padhy, Konstantin Evchenko, Lavanya Piramanayagam, Sibin Mohan and Rakesh B. Bobba The 15th International Workshop on Real-Time Networks June 27, 2017

Dependable End-to-End Delay Constraints for Real-Time ... · 3. Compute the flow path through the SDN such that its requirements are met-Solve as a multi-constraint path selection

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Dependable End-to-End Delay Constraints for Real-Time ... · 3. Compute the flow path through the SDN such that its requirements are met-Solve as a multi-constraint path selection

Dependable End-to-End Delay Constraints for Real-Time Systems using SDNRakesh Kumar, Monowar Hasan, Smruti Padhy, Konstantin Evchenko, Lavanya Piramanayagam, Sibin Mohan and Rakesh B. Bobba

The 15th International Workshop on Real-Time NetworksJune 27, 2017

Page 2: Dependable End-to-End Delay Constraints for Real-Time ... · 3. Compute the flow path through the SDN such that its requirements are met-Solve as a multi-constraint path selection

Overview

§ Time-critical real-time applications require: - A guaranteed upper bound on the end-to-end packet delay- Avionics, automobiles, industrial control systems, power control networks, etc.

§ Current approach: Separate networks for different classes of traffic (high, medium, low criticality)- Higher costs- Increased management overheads: routers/switches have to be individually programmed- Increased attack surfaces

RTN 2017 : Dependable End-to-End Delay Constraints For Real-Time Systems Using SDN 2

June

27,

201

7

Page 3: Dependable End-to-End Delay Constraints for Real-Time ... · 3. Compute the flow path through the SDN such that its requirements are met-Solve as a multi-constraint path selection

Software Defined Networking (SDN)§ Logically centralized control plane at controller

§ Standardized data plane in commoditized switches and switch-controller communication protocol

§ Controller’s Northbound API - Enables find-grained control of individual flows in the network

3

Controller

Switch

Switch

Switch

Switch

Switch

June

27,

201

7

Applications on Northbound API

Page 4: Dependable End-to-End Delay Constraints for Real-Time ... · 3. Compute the flow path through the SDN such that its requirements are met-Solve as a multi-constraint path selection

SDN Switch

RTN 2017 : Dependable End-to-End Delay Constraints For Real-Time Systems Using SDN 4

June

27,

201

7

Port

Page 5: Dependable End-to-End Delay Constraints for Real-Time ... · 3. Compute the flow path through the SDN such that its requirements are met-Solve as a multi-constraint path selection

SDN Switch

§ Each switch port contains multiple queues

RTN 2017 : Dependable End-to-End Delay Constraints For Real-Time Systems Using SDN 5

Port

June

27,

201

7

Page 6: Dependable End-to-End Delay Constraints for Real-Time ... · 3. Compute the flow path through the SDN such that its requirements are met-Solve as a multi-constraint path selection

SDN Switch

§ Each switch port contains multiple queues

§ The entire switch has a meter table

RTN 2017 : Dependable End-to-End Delay Constraints For Real-Time Systems Using SDN 6

Port

June

27,

201

7

Page 7: Dependable End-to-End Delay Constraints for Real-Time ... · 3. Compute the flow path through the SDN such that its requirements are met-Solve as a multi-constraint path selection

SDN Switch

§ Each switch port contains multiple queues

§ The entire switch has a meter table

§ Flow Tables: Contain matching rules and options to select port, queue and meters

RTN 2017 : Dependable End-to-End Delay Constraints For Real-Time Systems Using SDN 7

Port

June

27,

201

7

Page 8: Dependable End-to-End Delay Constraints for Real-Time ... · 3. Compute the flow path through the SDN such that its requirements are met-Solve as a multi-constraint path selection

Can SDN Help in Real-Time Systems?

§ SDN offers no end-to-end timing guarantees for packet flows of individual applications

§ SDN and real-time:- Can the SDN architecture enable computation of flow paths that meet real-time guarantees?

RTN 2017 : Dependable End-to-End Delay Constraints For Real-Time Systems Using SDN 8

June

27,

201

7

Page 9: Dependable End-to-End Delay Constraints for Real-Time ... · 3. Compute the flow path through the SDN such that its requirements are met-Solve as a multi-constraint path selection

Problem Overview§ Each flow (fk) with bandwidth (Bk) and given end-to-end delay (Dk) requirements

§ Problem: allocate n such flows so that the delay and bandwidth constraints are satisfied- For all flows

RTN 2017 : Dependable End-to-End Delay Constraints For Real-Time Systems Using SDN 9

SCADAController

Ethernet Relay

fk fk

June

27,

201

7

Overview/Intuition è Separate Queue for Each High Priority/Critical Flow

Page 10: Dependable End-to-End Delay Constraints for Real-Time ... · 3. Compute the flow path through the SDN such that its requirements are met-Solve as a multi-constraint path selection

Motivating Example

§ Two switch, four host topology

§ Two simultaneous flows with different traffic send rates- Two different queue configuration:

1. Each flow has a separate queue configured at 50 Mbps2. Both flows share same queue configured at 100 Mbps

RTN 2017 : Dependable End-to-End Delay Constraints For Real-Time Systems Using SDN 10

June

27,

201

7

Page 11: Dependable End-to-End Delay Constraints for Real-Time ... · 3. Compute the flow path through the SDN such that its requirements are met-Solve as a multi-constraint path selection

Motivating Example

§ Two switch, four host topology

§ Two simultaneous flows with different traffic send rates- Two different queue configuration:

1. Each flow has a separate queue configured at 50 Mbps2. Both flows share same queue configured at 100 Mbps

RTN 2017 : Dependable End-to-End Delay Constraints For Real-Time Systems Using SDN 11

The case with separate queues experiences lower average per-packet delay due to lack of interference

June

27,

201

7

Page 12: Dependable End-to-End Delay Constraints for Real-Time ... · 3. Compute the flow path through the SDN such that its requirements are met-Solve as a multi-constraint path selection

Can SDN Help in Real-Time Systems?§ SDN offers no end-to-end timing guarantees for packet flows of individual applications

§ SDN and real-time:- Can the SDN architecture enable computation of flow paths that meet real-time guarantees?

RTN 2017 : Dependable End-to-End Delay Constraints For Real-Time Systems Using SDN 12

June

27,

201

7

YES

Page 13: Dependable End-to-End Delay Constraints for Real-Time ... · 3. Compute the flow path through the SDN such that its requirements are met-Solve as a multi-constraint path selection

Solution Approach1. Setup one flow at a time- Flows priorities are assigned in delay-monotonic order (tighter delay è higher priority)

2. Access system state using the northbound API of the controller- E.g.: available resources, network topology

3. Compute the flow path through the SDN such that its requirements are met- Solve as a multi-constraint path selection problem

4. Realize path in the SDN topology by using the northbound API

13

June

27,

201

7

Page 14: Dependable End-to-End Delay Constraints for Real-Time ... · 3. Compute the flow path through the SDN such that its requirements are met-Solve as a multi-constraint path selection

Solution Approach

14

Admission Control

June

27,

201

7

Page 15: Dependable End-to-End Delay Constraints for Real-Time ... · 3. Compute the flow path through the SDN such that its requirements are met-Solve as a multi-constraint path selection

Solution Approach (contd.)

§ End-to-end delay for a given flow can be composed from individual delays at nodes/links:

RTN 2017 : Dependable End-to-End Delay Constraints For Real-Time Systems Using SDN 15

June

27,

201

7

Page 16: Dependable End-to-End Delay Constraints for Real-Time ... · 3. Compute the flow path through the SDN such that its requirements are met-Solve as a multi-constraint path selection

Solution Approach (contd.)

§ End-to-end delay for a given flow can be composed from individual delays at nodes/links:

RTN 2017 : Dependable End-to-End Delay Constraints For Real-Time Systems Using SDN 16

SCADAController

Ethernet Relay

fk PATH

(unknown!)Delay of a link

June

27,

201

7

Page 17: Dependable End-to-End Delay Constraints for Real-Time ... · 3. Compute the flow path through the SDN such that its requirements are met-Solve as a multi-constraint path selection

Solution Approach (contd.)

§ End-to-end delay for a given flow can be composed from individual delays at nodes/links:

§ Bandwidth utilization of the flow on the entire path:

RTN 2017 : Dependable End-to-End Delay Constraints For Real-Time Systems Using SDN 17

SCADAController

Ethernet Relay

fk PATH

(unknown!)Delay of a link

Required bandwidth utilization of a link

June

27,

201

7

Page 18: Dependable End-to-End Delay Constraints for Real-Time ... · 3. Compute the flow path through the SDN such that its requirements are met-Solve as a multi-constraint path selection

Solution Approach (contd.)Multi-Constraint Path (MCP) Selection

§ Delay constraint- Total delay over path less than end-to-end delay budget

§ Bandwidth constraint- Flow bandwidth utilization on all links can fit within the total utilization along the path

§ Shortest-path may NOT satisfy both the constraints!- MCP is NP-Complete!- Developed a polynomial heuristic to solve this multi-constraint problem è calculate paths

18

SCADAController

Ethernet Relay

fk PATH

(unknown!)

June

27,

201

7

Page 19: Dependable End-to-End Delay Constraints for Real-Time ... · 3. Compute the flow path through the SDN such that its requirements are met-Solve as a multi-constraint path selection

Solution Approach (Contd.)Path Realization Using Intents

§ Intent è actions performed on the packets in a given flow at an individual switch

§ Each intent is 4-tuple given by

§ Intents are realized with a flow rule and a corresponding exclusive queues

RTN 2017 : Dependable End-to-End Delay Constraints For Real-Time Systems Using SDN 19

June

27,

201

7

Page 20: Dependable End-to-End Delay Constraints for Real-Time ... · 3. Compute the flow path through the SDN such that its requirements are met-Solve as a multi-constraint path selection

EvaluationSetup

§ Experiments performed on a machine running Mininet and RYU- Python implementation of northbound application for QoS Synthesis

§ 250 random topologies: five switches, each switch having two hosts

§ Each link has the bandwidth of 10 Mbps

§ Link delays: generated uniformly randomly between [25, 125] microseconds

§ Bandwidth requirements: randomly generated between [1, 5] Mbps

§ [1, 5] real-time and [1,3] non-real time flows are generated using Netperf- Each flow lasts for 10 seconds

RTN 2017 : Dependable End-to-End Delay Constraints For Real-Time Systems Using SDN 20

June

27,

201

7

Page 21: Dependable End-to-End Delay Constraints for Real-Time ... · 3. Compute the flow path through the SDN such that its requirements are met-Solve as a multi-constraint path selection

Results

RTN 2017 : Dependable End-to-End Delay Constraints For Real-Time Systems Using SDN 21

X-axis: Delay requirements

Y-axis: Number of flows

Z-axis: % of schedulable flows

June

27,

201

7

Page 22: Dependable End-to-End Delay Constraints for Real-Time ... · 3. Compute the flow path through the SDN such that its requirements are met-Solve as a multi-constraint path selection

Results

RTN 2017 : Dependable End-to-End Delay Constraints For Real-Time Systems Using SDN 22

X-axis: Delay requirements

Y-axis: Number of flows

Z-axis: % of schedulable flows

The acceptance ratio decreases with:

1. Increasing the number of flows; or

2. For stringent end-to-end delay requirements

June

27,

201

7

Page 23: Dependable End-to-End Delay Constraints for Real-Time ... · 3. Compute the flow path through the SDN such that its requirements are met-Solve as a multi-constraint path selection

Results

RTN 2017 : Dependable End-to-End Delay Constraints For Real-Time Systems Using SDN 23

X-axis: Number of flows

Y-axis: Observed delay (99th percentile)

June

27,

201

7

Page 24: Dependable End-to-End Delay Constraints for Real-Time ... · 3. Compute the flow path through the SDN such that its requirements are met-Solve as a multi-constraint path selection

Results

RTN 2017 : Dependable End-to-End Delay Constraints For Real-Time Systems Using SDN 24

X-axis: Number of flows

Y-axis: Observed delay (99th percentile)

1. Non-real time flows do not cause interference for real-time flows

2. Increasing the number of real-time flows increases end-to-end delay

June

27,

201

7

Page 25: Dependable End-to-End Delay Constraints for Real-Time ... · 3. Compute the flow path through the SDN such that its requirements are met-Solve as a multi-constraint path selection

Conclusion

§ Our approach: - Successfully allocate flows for highly critical RTS network traffic on SDN architectures- Non-critical flows do not interfere with critical ones- Useful for COTS systems

§ The evaluation results are another instance of the “No Free Lunch Theorem”- The acceptance ratio decreases either

o With increasing the number of flows or o Stringent end-to-end delay requirements

§ Open Issues- What does the optimal allocation look like?- Multiplexing the usage of a single queue for multiple flows remains an open problem

RTN 2017 : Dependable End-to-End Delay Constraints For Real-Time Systems Using SDN 25

June

27,

201

7

Page 26: Dependable End-to-End Delay Constraints for Real-Time ... · 3. Compute the flow path through the SDN such that its requirements are met-Solve as a multi-constraint path selection

Thank You!Questions?

June

27,

201

7RT

N 2

017

: Dep

enda

ble

End-

to-E

nd D

elay

Con

stra

ints

For

Re

al-T

ime

Syst

ems

Usin

g SD

N

26

RTSS Prepinthttps://arxiv.org/abs/1703.01641