ENERGY EFFICIENT SOFTWARE DEFINED NETWORKS Nicolas HUIN - - PowerPoint PPT Presentation

energy efficient software defined networks
SMART_READER_LITE
LIVE PREVIEW

ENERGY EFFICIENT SOFTWARE DEFINED NETWORKS Nicolas HUIN - - PowerPoint PPT Presentation

ENERGY EFFICIENT SOFTWARE DEFINED NETWORKS Nicolas HUIN COATI and SigNet, I3S/Inria Supervisors: Frdric Giroire & Dino Lopez 28 th September 2017 2 9/28/17 Energy Efficient Software Defined Networks Energy


slide-1
SLIDE 1

ENERGY EFFICIENT SOFTWARE DEFINED NETWORKS

Nicolas HUIN COATI and SigNet, I3S/Inria

Supervisors: Frédéric Giroire & Dino Lopez

28th September 2017

slide-2
SLIDE 2

Energy consumption of Networks

  • In 2012, communication networks consumed 330 TWh (4,6%)
  • 10% yearly growth (worldwide: 3%)

[Van Heddeghem et al., ‘14]

2

Energy Efficient Software Defined Networks 9/28/17

slide-3
SLIDE 3

Reducing Network’s Power Consumption

  • Device’s power consumption is not proportional to its load
  • Improving devices’ power proportionality [Nicollini et al, 12]
  • Power off base station in mobile networks [Zhou et al, 09]
  • Consolidation of Virtual Machines [Lin et al, 11]
  • Energy Aware Routing (EAR)
  • Minimizing the number of active network devices:

ØOur approach

Energy Efficient Software Defined Networks

3

9/28/17

slide-4
SLIDE 4

Energy Aware Routing (EAR)

4

Energy Efficient Software Defined Networks

Path between: A et D F et C A et E

Routing request while minimizing the number of active devices (routers and/or links)

9/28/17

F A B C D E H G I

slide-5
SLIDE 5

Energy Aware Routing (EAR)

5

Energy Efficient Software Defined Networks

Path between: A et D F et C A et E

Routing request while minimizing the number of active devices (routers and/or links)

9/28/17

F A B C D E H G I

Shortest path routing

slide-6
SLIDE 6

Energy Aware Routing (EAR)

6

Energy Efficient Software Defined Networks

Path between: A et D F et C A et E

9/28/17

F A B C D E H G I

Routing request while minimizing the number of active devices (routers and/or links)

slide-7
SLIDE 7

Energy Aware Routing (EAR)

7

Energy Efficient Software Defined Networks

Path between: A et D F et C A et E

9/28/17

F A B C D E H G I

Routing request while minimizing the number of active devices (routers and/or links) Energy Aware Routing

slide-8
SLIDE 8

Legacy vs. Software Defined Networks (SDN)

8

Energy Efficient Software Defined Networks 9/28/17

Legacy network

  • Distributed control
  • Manual configuration

Controller Control plane Data plane

SDN network

  • Centralized control
  • Policies deployed by the controller
slide-9
SLIDE 9

Network Function Virtualization (NFV)

Legacy networks implements network functions using expensive specific hardware called middleboxes. ØLimit adaptability to traffic (even with SDN)

Energy Efficient Software Defined Networks

9

The NFV initiative allows function to be run on general hardware using Virtual Machines (VMs).

ØEnables greater flexibility (good for energy)

9/28/17

slide-10
SLIDE 10

Goal of this thesis

Leveraging SDN and NFV for the deployment of Energy Aware Routing Consider the new constraints of these paradigms Tools

  • Linear Programming
  • Column Generation
  • Greedy Heuristics
  • SDN testbed (with SigNet team)

Energy Efficient Software Defined Networks

10

9/28/17

slide-11
SLIDE 11

SDN

During my thesis

  • Forwarding table constraints
  • The Compression Problem (Chapter 3)
  • EAR with Compression (Chapter 4)
  • MINNIE (Chapter 5)
  • Hybrid SDN networks: SENAtoR (Chapter 6)

11

Energy Efficient Software Defined Networks

NFV

  • Service Function Chaining
  • Provisioning (Chapter 7)
  • Energy efficiency (Chapter 8)

P2P

  • Structured overlay for live video streaming
  • Homogeneous (Appendix 1)
  • Heterogeneous (Appendix 2)

9/28/17

Greedy ILP Testbed Column Generation

slide-12
SLIDE 12

SOFTWARE DEFINED NETWORKS

Energy Aware Routing with Compression

12

Energy Efficient Software Defined Networks 9/28/17

slide-13
SLIDE 13
  • Dest. IP (as in legacy network)
  • Src. IP

Port … 40 fields in OpenFlow 1.3

« The first day there was OpenFlow »

OpenFlow provides per flow routing (more complex) Rules stored in TCAM, power hungry and with limited size (1 to 3k rules)

ØConstraints on the number of forwarding rules

Matching Rule Action DROP FORWARD TO PORT ENCAPSULATE & FORWARD …

13

Energy Efficient Software Defined Networks 9/28/17

The OpenFlow API was developed at Stanford [McKeown et al., 2008]

slide-14
SLIDE 14

Related Work

  • Reduce OpenFlow rule size [Banerjee et al., 14], [Kannan et al, 13]

ØNot standard

  • Eviction of rules

ØFrequent contact with the controller

  • Spread the rules on the network (« One Big Switch » abstraction)

[Nguyen et al., ’15]

ØNot practical for forwarding rules

  • Our contribution: Aggregation rules

Energy Efficient Software Defined Networks

14

9/28/17

slide-15
SLIDE 15

The Compression Problem

Flow Output port (1, 5) Port-4 (2, 6) Port-6 (1, ∗) Port-6 (∗, 4) Port-4 (∗, ∗) Port-5 Flow Output port (0, 4) Port-4 (0, 5) Port-5 (0, 6) Port-5 (1, 4) Port-6 (1, 5) Port-4 (1, 6) Port-6 (2, 4) Port-4 (2, 5) Port-5 (2, 6) Port-6

Priority Reduce the size of forwarding table using wildcard and default rules while maintaining the same routing (NP-Hard) [Giroire et al., ‘15]

15

Energy Efficient Software Defined Networks 9/28/17

slide-16
SLIDE 16

The Compression Problem

Reduce the size of forwarding table using wildcard and default rules Be careful about the order of the rules (1, *) then (*, 4) != (*, 4) then (1, *)

Flow Output port (1, 5) Port-4 (2, 6) Port-6 (1, ∗) Port-6 (∗, 4) Port-4 (∗, ∗) Port-5

16

Energy Efficient Software Defined Networks 9/28/17

Flow Output port (0, 4) Port-4 (0, 5) Port-5 (0, 6) Port-5 (1, 4) Port-6 (1, 5) Port-4 (1, 6) Port-6 (2, 4) Port-4 (2, 5) Port-5 (2, 6) Port-6

Priority

slide-17
SLIDE 17

Energy Aware Routing with Compression Problem (EARC)

17

Energy Efficient Software Defined Networks

Input

  • Network G=(V, A)
  • Set of requests D, between si and ti and bandwidth di
  • Link capacities Cuv
  • Forwarding table capacities Cu

Output

  • Path for every request
  • Respect node and link capacities

Goal

Minimize the total energy consumption of the network

9/28/17

slide-18
SLIDE 18

Contributions

  • ILP formulations
  • default rule only
  • default rule and wildcard rules
  • Heuristic
  • Energy saving module
  • Shutdown links
  • Routing module
  • Find a weighted shortest path according to table and link usage
  • Compression module
  • Reduce table at max capacity using wildcard rules (multiple

solutions)

18

Energy Efficient Software Defined Networks 9/28/17

Havet, H, Moulierac, Phan AlgoT el’16

slide-19
SLIDE 19

SNDlib topologies

19

Energy Efficient Software Defined Networks

atlanta (15 nodes, 22 links) germany50 (50 nodes, 44 links) http://sndlib.zib.de

9/28/17

ta2 (65 nodes, 81 links) zib54 (54 nodes, 108 links)

slide-20
SLIDE 20

Traffic estimation

Energy Efficient Software Defined Networks

20 0.2 0.4 0.6 0.8 1 5 10 15 20 Traffic [normalized] Daily time (h)

D1 D2 D3 D2 D4 D4 D5 D3 D3

0.3 0.4 0.6 0.8 1.0 5 10 15 20 24

  • ISP traffic follows predictable patterns
  • Small granularity of period creates instability
  • Only a few configurations are sufficient [Araujo et al. ,2016]

9/28/17

slide-21
SLIDE 21

Energy savings during the day

21

  • Not always possible to route w/o aggregation rules
  • Aggregation rules enable energy savings close to classical EAR

Energy Efficient Software Defined Networks 9/28/17

germany50 (50 nodes, 44 links) ta2 (65 nodes, 81 links)

slide-22
SLIDE 22

SDN IN PRACTICE

MINNIE

22

Energy Efficient Software Defined Networks 9/28/17

slide-23
SLIDE 23

MINNIE: Compressing in data centers

23

Core Aggregation Access level 0 Beacon Controller

HP OVS

Energy Efficient Software Defined Networks

  • Collaboration with the SigNet team
  • HP SDN capable switch
  • Impact of compression on packet’s delay and losses

9/28/17

Rifai, H, Caillouet, Giroire, Moulierac , Lopez, Urvoy-Keller GLOBECOM ’15, AlgoT el ’16, Computer Network

slide-24
SLIDE 24

MINNIE

24

Controller

Compression

New Packet Send corresponding rules and packet Is limit reached? Send compressed table

Routing

Energy Efficient Software Defined Networks 9/28/17

slide-25
SLIDE 25

Results: Ratio, losses & # compressions

Energy Efficient Software Defined Networks

25

9/28/17

  • Average compression ratio >80% (at least 77%)
  • Compression has no significant impact on losses
  • Except when the threshold is too low

Compression None at 500 at 1000 at 2000 when full Average compression ratio

  • 83.21%

82.19% 81.55% 81.44% Packet losses (%) 6.25 x 10-6 0.003 5.65 x 10-4 2.83 x 10-5 3.7 x 10-4 # compressions

  • 16 594

95 28 20

slide-26
SLIDE 26

Results: Delay

Energy Efficient Software Defined Networks

26

9/28/17

  • Compression adds no delay (if we forget the « 500 » threshold)

Ø Delayed compression

  • Compression reduces the first packet delay

Ø Avoid installing rule if corresponding wildcard rule exists Delay

slide-27
SLIDE 27

SDN IN PRACTICE

EAR in hybrid networks

27

Energy Efficient Software Defined Networks 9/28/17

slide-28
SLIDE 28

SDN & Legacy Interaction

Energy Efficient Software Defined Networks

28

  • All solutions and framework

consider full SDN networks

  • Progressive migration from

legacy to SDN

  • Cohabitation of SDN &

legacy devices and protocols (e.g., OSPF) For Energy Aware Routing: SDN devices shutdown Øfailure for legacy

9/28/17

slide-29
SLIDE 29

Contributions

  • Bring Energy Aware Routing closer to reality
  • Smooth ENergy Aware Routing (SENAtoR)
  • Smooth link extinction
  • Backup tunnels for link shutdown
  • Traffic spike mitigation (link failure or flash crowd)
  • Heuristic for EAR with SDN and backup tunnel placement

Energy Efficient Software Defined Networks

29

9/28/17

H, Rifai, Giroire, Lopez, Urvoy-Keller, Moulierac GLOBECOM ’17

slide-30
SLIDE 30

Results: Packet losses

Energy Efficient Software Defined Networks

30

9/28/17

  • Same order of packet losses than legacy network
  • Smooth extinction helps to mitigate packet losses
slide-31
SLIDE 31

NETWORK FUNCTION VIRTUALIZATION

« À à à la queleuleu » ♪

31

Energy Efficient Software Defined Networks 9/28/17

slide-32
SLIDE 32

NFV & Energy Efficiency

Network functions implemented on specific hardware (middlebox) Ø Hard to move and, thus, adapt to traffic With virtualization, functions can be executed on Virtual Machines (VM) Ø Enables greater flexibility (good for energy)

32

Energy Efficient Software Defined Networks

Scenario Router Network Function Baseline Legacy Middlebox Hardware SDN Middlebox NFV SDN NFV

9/28/17

slide-33
SLIDE 33

Service Function Chains (SFC)

Service Chain: ordered chain of network functions to apply to flows on the network

33

Energy Efficient Software Defined Networks

Video optimization Deep packet inspection Firewall

SFC A SFC B

9/28/17

slide-34
SLIDE 34

Example of Service Function Chains

34

Energy Efficient Software Defined Networks

A B C D F E

SFC A SFC B A to F A to E F to C

9/28/17

slide-35
SLIDE 35

Energy Efficient SFC Placement

Input

  • Network G=(V, A)
  • Set of requests D
  • between si and ti , bandwidth di and chain ci = (f0, f1, …, fk)
  • Link capacities Cuv
  • Node capacities Cu (e.g., number of available CPU cores,

memory)

35

Energy Efficient Software Defined Networks

Output

Path and function placement for every request Respect node and link capacities

Goal

Minimize the total energy consumption of the network

9/28/17

slide-36
SLIDE 36

Related Work

  • SFC Placement
  • Heuristics with no performance guarantee
  • Partial and exact mathematical formulations
  • Solve placement and routing independently. [Martini et al., 2015]

[Riggio et al., 2015]

  • Small network or small number of requests. [Gupta et al., 2015]

[Savi et al, 2015]

  • Energy & Virtualization
  • Some works on NFV, not on SFC

36

Energy Efficient Software Defined Networks 9/28/17

slide-37
SLIDE 37

Contributions

  • Minimize:
  • Bandwidth and study impact of number of NFV nodes (near
  • ptimal)
  • Energy consumption of links and nodes
  • Find solutions for all-to-all traffic (10k requests) on networks up to 50

nodes.

  • Layered graph
  • Column generation model
  • Improving integrality gap with cuts
  • Function replicas limit
  • GreenChains: ILP-Based heuristics

37

Energy Efficient Software Defined Networks 9/28/17

H, Jaumard, Giroire ICC 2017 H, T

  • massilli, Giroire ,Jaumard INOC 2017
slide-38
SLIDE 38

Layered Graph

2 6 5 3 4 1

Request between 1 and 4 for SFC

38

Energy Efficient Software Defined Networks

Propose an alternate way to find Service Path (path & placement of function)

9/28/17

slide-39
SLIDE 39

Layered Graph

Request between 1 and 4 for service

2 6 5 3 4 1 2 6 5 3 4 1 2 6 5 3 4 1

  • # layers = # functions + 1
  • Link between layers gives

the placement

  • Link inside layers gives

the routing

  • Path from first to last layer

39

Energy Efficient Software Defined Networks 9/28/17

slide-40
SLIDE 40

One path per demand: X

p∈P c

sd

yp

d = 1

(us, ud) ∈ SD, c ∈ Csd Link capacity: X

d=(us,ud,c)∈D

X

p∈P c

sd

Dc

sd δp uv yp d ≤ xuv Clink uv

(u, v) ∈ A Node capacity: X

d∈D

X

p∈P c

sd

Dc

sd

nc X

i=1

∆fiap

ufi

! yp

d ≤ ku ≤ Cnode u

u ∈ V

ILP Formulation (CG-simple)

40

Energy Efficient Software Defined Networks

min X

(u,v)∈A

P IDLE

uv

xuv | {z }

link switch

  • n energy

+ X

(u,v)∈A

X

p∈P c

sd

δp

uv

@ X

d=(us,ud,c)∈D

Dc

sd

Clink

`

Pmax

uv

1 A yp

d

| {z }

link bandwidth energy

+ X

u∈V

Pu ku | {z }

node resource energy

Variables for

  • Link State: ON or OFF
  • Number of Active Cores per Node
  • Service Path: potential route for a request (path & placement)

Column generation on the Service Path variables

9/28/17

slide-41
SLIDE 41

Generation of Service Path variables

Energy Efficient Software Defined Networks

41

Set of initial Service Paths for each demand Subproblem: Service Path Generator (layered graph) Optimal Fractional Solution Solve restricted master problem

No improving Service Path Column generation works on Linear Program

9/28/17

slide-42
SLIDE 42

Generation of Service Path variables

Energy Efficient Software Defined Networks

42

Set of initial Service Paths for each demand

Service Path Generator (layered graph)

Optimal Fractional Solution

Solve restricted problem No improving Service Path

Column generation works on Linear Program

  • 1. Transform LP to ILP
  • 2. Solve ILP

LP optimal value gives lower bound Integrality gap (ratio LP-ILP) gives quality of ILP solution

9/28/17

slide-43
SLIDE 43

Improving the gap: CG-cuts

43

Energy Efficient Software Defined Networks 9/28/17

Ø At least one link active per node

Ø Both arcs share the same state so

minimum network is a tree All to all traffic implies: X

v∈N +(u)

xuv ≥ 1 u ∈ V X

(u,v)∈A

xuv ≥ n − 1

X

d=(us,ud,c)∈D

X

p∈P c

sd

Dc

sd δp uv yp d ≤ xuv Clink uv

Creates big gap

slide-44
SLIDE 44

xuv ≥ X

p∈P c

sd

γp

uvyp d

∀(u, v) ∈ A, d ∈ D X

p∈P c

sd

yp

d = 1 =

⇒ X

p∈P c

sd

γp

uvyp d ≤ 1

Improving the gap: CG-cut+

44

Energy Efficient Software Defined Networks

X

d=(us,ud,c)∈D

X

p∈P c

sd

Dc

sd δp uv yp d ≤ xuv Clink uv

Creates big gap Path p uses link (u, v)

9/28/17

For each demand, the sum of its paths is equal

slide-45
SLIDE 45

Results: Integrality gap

45

Energy Efficient Software Defined Networks

atlanta (15 nodes, 44 links) germany50 (50 nodes, 88 links)

  • Both sets of cuts improve the integrality gap
  • CG-cuts+ improve solution but not scalable

9/28/17

slide-46
SLIDE 46

Results: Energy savings

46

Energy Efficient Software Defined Networks

  • Hardware (SDN+ middlebox) only provides 18 to 51% energy savings
  • NFV (SDN+NFV) provides an extra 4 to 12%

atlanta (15 nodes, 44 links) germany50 (50 nodes, 88 links)

9/28/17

slide-47
SLIDE 47

In this thesis

  • SDN
  • EARC
  • Compression provides close savings to classic EAR
  • MINNIE: no noticeable impact on performance
  • Hybrid networks
  • SENAtoR: Backup tunnels + Smooth extinction of links
  • EAR with no losses
  • NFV & SFC
  • First scalable mathematical formulation
  • NFV helps to reduce energy consumption

Energy Efficient Software Defined Networks

47

9/28/17

slide-48
SLIDE 48

Perspectives

Energy Efficient Software Defined Networks

48

  • QoS/QoE, resiliency/reliability
  • currently working on SFC w/ protection
  • Multiple controllers (placement, activation)
  • SFC extensions
  • Partial order
  • Affinity
  • PostDoc in Concordia, Montreal, Canada with Brigitte Jaumard

9/28/17

Thank you for your attention

slide-49
SLIDE 49

Result: Ratio, losses & # compressions

Energy Efficient Software Defined Networks

49

9/28/17

Compression None at 500 at 1000 at 2000 when full Average compression ratio

  • 83.21%

82.19% 81.55% 81.44% Packet losses (%) 6.25 x 10-6 0.003 5.65 x 10-4 2.83 x 10-5 3.7 x 10-4 # compressions

  • 16 594

95 28 20

  • Average compression ratio >80% (at least 76%)
  • Compression has no significant impact on losses
  • Except when the threshold is too low
slide-50
SLIDE 50

Hybrid Energy Aware Routing (hEAR)

  • Network G=(V, A)
  • Set of requests D, between si and ti with bandwidth di
  • Link capacities
  • Forwarding table capacities
  • SDN budget
  • OSPF next hops
  • Set of backup tunnels

Energy Efficient Software Defined Networks

50

Satisfy all requests (find a path) and minimize energy consumption while respecting link capacities using backup tunnels and k SDN nodes

PoP v PoP u PoP w SDN PoP Legacy PoP

ru1 ru2 ru3 rw2 rw1 rw3 rv2 rv3 rv1

9/28/17

slide-51
SLIDE 51

One path per demand: X

p∈P c

sd

yp

d = 1

(us, ud) ∈ SD, c ∈ Csd Link capacity: X

d=(us,ud,c)∈D

X

p∈P c

sd

Dc

sd δp uv yp d ≤ xuv Clink uv

(u, v) ∈ A Node capacity: X

d∈D

X

p∈P c

sd

Dc

sd

nc X

i=1

∆fiap

ufi

! yp

d ≤ ku ≤ Cnode u

u ∈ V

ILP Formulation (CG-simple)

51

Energy Efficient Software Defined Networks

min X

(u,v)∈A

P IDLE

uv

xuv | {z }

link switch

  • n energy

+ X

(u,v)∈A

X

p∈P c

sd

δp

uv

@ X

d=(us,ud,c)∈D

Dc

sd

Clink

`

Pmax

uv

1 A yp

d

| {z }

link bandwidth energy

+ X

u∈V

Pu ku | {z }

node resource energy

Variables for

  • Link State: ON or OFF
  • Number of Active Cores per Node
  • Service Path: potential route for a request (path & placement)

9/28/17

slide-52
SLIDE 52

One path per demand: X

p∈P c

sd

yp

d = 1

(us, ud) ∈ SD, c ∈ Csd Link capacity: X

d=(us,ud,c)∈D

X

p∈P c

sd

Dc

sd δp uv yp d ≤ xuv Clink uv

(u, v) ∈ A Node capacity: X

d∈D

X

p∈P c

sd

Dc

sd

nc X

i=1

∆fiap

ufi

! yp

d ≤ ku ≤ Cnode u

u ∈ V

ILP Formulation (CG-simple)

Variables for

  • Link State: ON or OFF
  • Number of Active Cores per Node
  • Service Path: potential route for a request (path & placement)

52

Energy Efficient Software Defined Networks

min X

(u,v)∈A

P IDLE

uv

xuv | {z }

link switch

  • n energy

+ X

(u,v)∈A

X

p∈P c

sd

δp

uv

@ X

d=(us,ud,c)∈D

Dc

sd

Clink

`

Pmax

uv

1 A yp

d

| {z }

link bandwidth energy

+ X

u∈V

Pu ku | {z }

node resource energy

9/28/17

slide-53
SLIDE 53

Variables for

  • Link State: ON or OFF
  • Number of Active Cores per Node
  • Service Path: potential route for a request (path & placement)

One path per demand: X

p∈P c

sd

yp

d = 1

(us, ud) ∈ SD, c ∈ Csd Link capacity: X

d=(us,ud,c)∈D

X

p∈P c

sd

Dc

sd δp uv yp d ≤ xuv Clink uv

(u, v) ∈ A Node capacity: X

d∈D

X

p∈P c

sd

Dc

sd

nc X

i=1

∆fiap

ufi

! yp

d ≤ ku ≤ Cnode u

u ∈ V

ILP Formulation (CG-simple)

53

Energy Efficient Software Defined Networks

min X

(u,v)∈A

P IDLE

uv

xuv | {z }

link switch

  • n energy

+ X

(u,v)∈A

X

p∈P c

sd

δp

uv

@ X

d=(us,ud,c)∈D

Dc

sd

Clink

`

Pmax

uv

1 A yp

d

| {z }

link bandwidth energy

+ X

u∈V

Pu ku | {z }

node resource energy

9/28/17

slide-54
SLIDE 54

Variables for

  • Link State: ON or OFF
  • Number of Active Cores per Node
  • Service Path: potential route for a request (path & placement)

One path per demand: X

p∈P c

sd

yp

d = 1

(us, ud) ∈ SD, c ∈ Csd Link capacity: X

d=(us,ud,c)∈D

X

p∈P c

sd

Dc

sd δp uv yp d ≤ xuv Clink uv

(u, v) ∈ A Node capacity: X

d∈D

X

p∈P c

sd

Dc

sd

nc X

i=1

∆fiap

ufi

! yp

d ≤ ku ≤ Cnode u

u ∈ V min X

(u,v)∈A

P IDLE

uv

xuv | {z }

link switch

  • n energy

+ X

(u,v)∈A

X

p∈P c

sd

δp

uv

@ X

d=(us,ud,c)∈D

Dc

sd

Clink

`

Pmax

uv

1 A yp

d

| {z }

link bandwidth energy

+ X

u∈V

Pu ku | {z }

node resource energy

ILP Formulation (CG-simple)

54

Energy Efficient Software Defined Networks

Column generation on the Service Path variables

9/28/17

slide-55
SLIDE 55

Use the tunnel if the road is closed

Energy Efficient Software Defined Networks

55

Use backup tunnels provided by legacy routers to redirect traffic [citation needed] OSPF1 OSPF2 SDN1

9/28/17

slide-56
SLIDE 56

Use the tunnel if the road is closed

Energy Efficient Software Defined Networks

56

Use backup tunnels provided by legacy routers to redirect traffic [citation needed] OSPF1 OSPF2 SDN1

9/28/17

slide-57
SLIDE 57

Stop saying hello to you

Energy Efficient Software Defined Networks

57

  • OSPF uses HELLO packets, at regular intervals, to notify neighbors of their

existence Ø 3 missing HELLO leads to a failure detection. Ø All data packets thus can be lost during this interval

  • Before shutdown, an SDN switch stops sending HELLO packets but still

listens for data packets Ø No packets are lost

9/28/17

slide-58
SLIDE 58

Contributions

  • Study the number of servers that can be deployed with

limited number of rules

  • Simulations on various data center topologies (fat tree,

VL2, DCell, BCube)

  • Experiments on a HP SDN-capable switch (65536

software rules, 3500 hardware rules)

58

Energy Efficient Software Defined Networks 9/28/17

slide-59
SLIDE 59

Simulation: MINNIE & 1000 servers topologies

59

Topology servers # switches # links # Avg ports # # flow Rule w/ comp # Average Computation time per switch Comp. in average (ms) Max Average Max Average Ratio Paths Comp. Group 1 k = 4 Fat-Tree (64) 1024 20 1056 54.4 454 244 216 268 999 446 ∼ 99.60 0.17 13 k = 8 Fat-Tree (8) 1024 80 1280 19.2 649 044 61 030 999 323 ∼ 99.61 0.21 7 k = 16 Fat-Tree (1) 1024 320 3072 16 630 998 15 897 999 303 ∼ 98.42 0.30 5 VL2(16, 16, 14) 896 88 384 16 261 266 42 906 1000 673 ∼ 97.90 0.15 4 VL2(8, 8, 64) 1024 28 612 ∼ 41.1 423 752 161 499 1000 799 ∼ 99.45 0.19 11 VL2(16, 16, 16) 1024 88 1152 ∼ 17.5 276 575 56 040 1000 648 ∼ 98.39 0.18 4 Group 2 DCell(32, 1) 1056 33 1584 ∼ 2.91 63 787 4893 1000 113 ∼ 97.23 0.09 2 DCell(5, 2) 930 186 1860 ∼ 3.33 11 995 5716 994 642 ∼ 87.84 0.19 2 BCube(32, 1) 1024 64 2048 ∼ 3.77 37 738 3734 999 329 ∼ 86.04 0.19 2 BCube(10, 2) 1000 300 3000 ∼ 4.62 10 683 4153 998 653 ∼ 80.85 0.25 2 BCube(6, 3) 1296 864 5184 4.8 7852 5184 991 831 ∼ 83.18 0.49 4

  • Around 1 million flows on each topologies
  • With only 1000 rules
  • Compression ratio between 80 and 99%

Energy Efficient Software Defined Networks 9/28/17

slide-60
SLIDE 60

10000 20000 30000 40000 50000 60000 70000 80000 90000 100000 00:00 00:30 01:00 01:30 02:00 02:30 03:00 03:30 Total number of rules installed time No Comp Comp 500 Comp 1000 Comp 2000 Comp end

Experiment: Number of rules over time

60

Compression event 80% compression ratio

Energy Efficient Software Defined Networks 9/28/17

slide-61
SLIDE 61

Experiment: Delay

61

Delay :

  • increases over

time without compression

  • stays constant

when compressing at 1000

  • goes haywire

when compression at 500

Energy Efficient Software Defined Networks 9/28/17

slide-62
SLIDE 62

Experiment: Compression Duration

62

5 10 15 20 25 30 Comp 500Comp 1000Comp 2000Comp end Duration (ms)

Compression + table modification

Energy Efficient Software Defined Networks 9/28/17

slide-63
SLIDE 63

Energy model

  • Hybrid model for links
  • Node consumption linear w.r.t. the number of cores

63

Energy Efficient Software Defined Networks

min X

(u,v)∈A

P IDLE

uv

xuv | {z }

link switch

  • n energy

+ X

(u,v)∈A

X

p∈P c

sd

δp

uv

@ X

d=(us,ud,c)∈D

Dc

sd

Clink

`

PMAX

uv

yp

d

1 A | {z }

link bandwidth energy

+ X

u∈V

Pu ku | {z }

node resource energy

9/28/17

slide-64
SLIDE 64

Experiment: Packet losses

64

Compression threshold None 500 1000 2000 When full # of compressions 16 594 95 28 20 % packet loss 6.25 × 10−6 0.003 5.65 × 10−4 2.83 × 10−5 3.7 × 10−4

No significant packet losses except for 500

Energy Efficient Software Defined Networks 9/28/17

slide-65
SLIDE 65

Direction-Based Algorithm

65

Compress using source aggregation, destination aggregation or default rule ⇒ Take the best table

  • 1. For each source (resp. destination), get the most occuring ports

⇒ Gives the default port of the source

  • 2. Get the most occuring port in the most occuring ports

⇒ Gives the default port

  • 3. Add the default rules and wildcard rules with lowest priority
  • 4. Add the original rules that don’t match any aggregation rules

Energy Efficient Software Defined Networks 9/28/17

slide-66
SLIDE 66

Direction-Based Algorithm

66

Flow Output port (0, 4) Port-4 (0, 5) Port-5 (0, 6) Port-5 (1, 4) Port-6 (1, 5) Port-4 (1, 6) Port-6 (2, 4) Port-4 (2, 5) Port-5 (2, 6) Port-6

Compress using source aggregation, destination aggregation or default rule ⇒ Take the best table 4 5 6 4 5 5 1 6 4 6 2 4 5 6

Energy Efficient Software Defined Networks 9/28/17

slide-67
SLIDE 67

Direction-Based Algorithm

67

Compress using source aggregation, destination aggregation or default rule ⇒ Take the best table 4 5 6 4 5 5 1 6 4 6 2 4 5 6 P0 = {5}

  • Get the most occuring

port for each source

Energy Efficient Software Defined Networks 9/28/17

slide-68
SLIDE 68

Direction-Based Algorithm

68

Compress using source aggregation, destination aggregation or default rule ⇒ Take the best table 4 5 6 4 5 5 1 6 4 6 2 4 5 6 P0 = {5}

  • Get the most occuring

port for each source P1 = {6} P2 = {4, 5, 6}

Energy Efficient Software Defined Networks 9/28/17

slide-69
SLIDE 69

Direction-Based Algorithm

69

Compress using source aggregation, destination aggregation or default rule ⇒ Take the best table 4 5 6 4 5 5 1 6 4 6 2 4 5 6 P0 = {5}

  • Get the most occuring

port in the set of most

  • ccuring ports (default

rule) P1 = {6} P2 = {4, 5, 6} D = {5}

Energy Efficient Software Defined Networks 9/28/17

slide-70
SLIDE 70

Direction-Based Algorithm

70

Compress using source aggregation, destination aggregation or default rule ⇒ Take the best table P0 = {5} Ø No rule (overlap with default)

  • Build the table

P1 = {6} Ø Add (1, *, 6) P2 = {4, 5, 6} Ø No rule (overlap with default) D = {5} Ø Add with lowest priority (*, *, 5) Forwarding table : (1, *, 6) (*, *, 5)

Energy Efficient Software Defined Networks 9/28/17

slide-71
SLIDE 71

Direction-Based Algorithm

71

Compress using source aggregation, destination aggregation or default rule ⇒ Take the best table

4 5 6 4 5 5 1 6 4 6 2 4 5 6

  • Build the table

Forwarding table: (0, 4, 4) (1, 4, 4) (2, 4, 4) (2, 6, 6) (1, *, 6) (*, *, 5)

Energy Efficient Software Defined Networks 9/28/17

slide-72
SLIDE 72

Direction-Based Algorithm

72

Compress using source aggregation, destination aggregation or default rule ⇒ Take the best table

4 5 6 4 5 5 1 6 4 6 2 4 5 6

  • Build the table

Forwarding table: (0, 4, 4) (1, 4, 4) (2, 4, 4) (2, 6, 6) (1, *, 6) (*, *, 5)

Energy Efficient Software Defined Networks 9/28/17

slide-73
SLIDE 73

More rules for less energy

  • Shutting down links increases shortest paths

ØIncrease in number of required rules

73

3 6 9 12 1 2 3 4 5 T raffic m atrices

D1 Traffic matrices

# overloaded routers (%)

D2 D3 D4 D5

3 6 9 12 15 18 1 2 3 4 5 traffic m atrices

D1 Traffic matrices

# overloaded routers (%)

D2 D3 D4 D5

Energy Efficient Software Defined Networks

germany50 (50 nodes, 88 links) ta2 (65 nodes, 81 links)

9/28/17

slide-74
SLIDE 74

Direction-Based Algorithm

74

Compress using source aggregation, destination aggregation or default rule ⇒ Take the best table

4 5 6 4 5 5 1 6 4 6 2 4 5 6

  • Build the table

Forwarding table: (0, 4, 4) (1, 4, 4) (2, 4, 4) (2, 6, 6) (1, *, 6) (*, *, 5)

Energy Efficient Software Defined Networks 9/28/17

slide-75
SLIDE 75

Direction-Based Algorithm

75

Compress using source aggregation, destination aggregation or default rule ⇒ Take the best table

Flow Output port (0, 5) Port-5 (0, 6) Port-5 (1, 4) Port-6 (1, 6) Port-6 (2, 5) Port-5 (2, 6) Port-6 (∗, ∗) Port-4 Flow Output port (0, 4) Port-4 (1, 5) Port-4 (2, 4) Port-4 (2, 6) Port-6 (1, ∗) Port-6 (∗, ∗) Port-5 Flow Output port (1, 4) Port-6 (1, 5) Port-4 (0, 6) Port-5 (∗, 4) Port-4 (∗, 5) Port-5 (∗, ∗) Port-6

Source Destination Default

Energy Efficient Software Defined Networks 9/28/17

slide-76
SLIDE 76

Other solutions

  • Integer Linear Programing formulation

Ø Not scalable

  • Greedy algorithm

Ø Each time, select the source or destination that can be compressed the best

  • Just the default port

Ø The third table of Direction-Based 76

Energy Efficient Software Defined Networks 9/28/17

slide-77
SLIDE 77

Data sets

  • Random tables
  • Density, number of sources/destinations, number of ports
  • Network tables
  • SNDlib instances (atlanta, germany50, zib54, ta2)

77

Energy Efficient Software Defined Networks 9/28/17

slide-78
SLIDE 78

Compression Ratio: Random tables

78

1 2 3 4 5 6 7 8 9 # ports 0.0 0.2 0.4 0.6 0.8 1.0 CoPp rDtLo CoPp-L3 CoPp-GreeGy CoPp-DefDult CoPp-DLr 1 2 3 4 5 6 7 8 9 # ports 0.0 0.2 0.4 0.6 0.8 1.0 Comp rDtio Comp-Dir Comp-GreeGy Comp-DefDult 5 6 7 8 9 10 11 # of network noGes 0.0 0.2 0.4 0.6 0.8 1.0 CoPp rDtLo CoPp-LP CoPp-GreeGy CoPp-DefDult CoPp-DLr 200 400 600 800 1000 # of network noGes 0.0 0.2 0.4 0.6 0.8 1.0 Comp rDtio Comp-GreeGy Comp-DefDult Comp-Dir

Greedy and Direction-Based have similar results

Energy Efficient Software Defined Networks 9/28/17

slide-79
SLIDE 79

CoPp-DLr CoPp-GreeGyCoPp-DefDult CoPp-LP 0.0 0.2 0.4 0.6 0.8 1.0 CoPp rDtLo Comp-Dir Comp-GreeGy Comp-DefDult 0.0 0.2 0.4 0.6 0.8 1.0 Comp rDtio

Compression Ratio: Network tables

Direction-Based behaves better on network tables atlanta (15 nodes, 44 links) ta2 (81 nodes, 162 links)

79

Energy Efficient Software Defined Networks 9/28/17

slide-80
SLIDE 80

Energy Proportionality

80

Load Energy consumption

PMAX

I n a c t i v e Active

PIDLE 0% 100% Prop Hybrid ON-OFF ALR Sleep mode

Network devices are not energy proportional [Chabarek et al., 2008]

Energy Efficient Software Defined Networks 9/28/17

slide-81
SLIDE 81

Energy Aware Routing (EAR)

Satisfy the requests on the network with a subset of active devices

81

Energy Efficient Software Defined Networks 9/28/17

slide-82
SLIDE 82

Legacy vs. Software Defined Networks (SDN)

82

Energy Efficient Software Defined Networks 9/28/17

slide-83
SLIDE 83

Energy Aware Routing (EAR)

83

Energy Efficient Software Defined Networks

Satisfy the requests on the network with a subset of active devices

A B C D E E

9/28/17

slide-84
SLIDE 84

Heuristic: Energy saving module

84

Energy Efficient Software Defined Networks Initial routing Find removable link with minimum load End No removable link remaining Disable link (u, v) Find a new valid routing Found link (u, v)

  • Revert routing
  • Re-enable link (u, v)

and mark it as un-removable No Yes 9/28/17

slide-85
SLIDE 85

Heuristic: Routing module

Weighted shortest path on residual graph Assignment of paths according to table and link usage Compress tables when full

85

wuv = α × wr

uv + β × wl uv

Table usage weight (0 if corresponding wildcard) Link usage weight

Energy Efficient Software Defined Networks 9/28/17

slide-86
SLIDE 86

Heuristic: Compression module

  • default port only OR wildcard + default
  • Propose several solutions to the compression problem
  • ILP formulations
  • 3-approximation algorithm
  • Greedy heuristic
  • Default port

86

Energy Efficient Software Defined Networks 9/28/17

slide-87
SLIDE 87

Energy Efficiency of Networks

0.2 0.4 0.6 0.8 1 5 10 15 20 Traffic [normalized] Daily time (h)

D1 D2 D3 D2 D4 D4 D5 D3 D3

0.3 0.4 0.6 0.8 1.0 5 10 15 20 24

Ideal power consumption Current power consumption

87

Energy Efficient Software Defined Networks 9/28/17

slide-88
SLIDE 88

88

Power Model Optimization

min X

(u,v)∈A

✓ P IDLE

uv

xuv + P LOAD

uv

fuv Cuv ◆

State of the link Fraction of bandwidth used Power used when idle Additional power

Energy Efficient Software Defined Networks 9/28/17

slide-89
SLIDE 89

Results: Hardware vs. Software

Energy Efficient Software Defined Networks

89

5 10 15 20 25 30 35 40 Software Hardware Duration (ms)

Performances of software forwarding table are way behind TCAM

9/28/17

slide-90
SLIDE 90

Contributions

  • Propose several solutions to the compression problem
  • ILP formulations, 3-approximation algorithm, greedy heuristic
  • Study EAR with Compression
  • Heuristic with joint routing and compression
  • Compare EARC and classic EAR
  • Validate on a HP SDN-capable switch (w/o energy)
  • Study end-to-end delay, packet losses, controller charge
  • Compare hardware and software rules

90

Energy Efficient Software Defined Networks 9/28/17

slide-91
SLIDE 91

Results: Spike &failure mitigation

Energy Efficient Software Defined Networks

91

9/28/17