SDN as Active Measurement Infrastructure Erik Rye , Robert Beverly - - PowerPoint PPT Presentation

sdn as active measurement infrastructure
SMART_READER_LITE
LIVE PREVIEW

SDN as Active Measurement Infrastructure Erik Rye , Robert Beverly - - PowerPoint PPT Presentation

SDN as Active Measurement Infrastructure Erik Rye , Robert Beverly US Naval Academy Naval Postgraduate School March 1, 2017 Active Internet Measurements (AIMS) Workshop E. Rye & R. Beverly (NPS) SAAMI AIMS 2017 1 / 18


slide-1
SLIDE 1

SDN as Active Measurement Infrastructure

Erik Rye∗, Robert Beverly†

∗US Naval Academy †Naval Postgraduate School

March 1, 2017

Active Internet Measurements (AIMS) Workshop

  • E. Rye & R. Beverly (NPS)

SAAMI AIMS 2017 1 / 18

slide-2
SLIDE 2

Motivation

Active Measurement Infrastructure

Today: Requires dedicated measurement nodes (e.g., Pi’s, end-hosts) No standard interface or API Limited extensibility Hard to deploy Our vision: Active measurement integrated into existing routers and switches Standards-based API for probing and receiving results Quickly create and deploy new measurement tasks Measure from the network core – rather than edge

  • E. Rye & R. Beverly (NPS)

SAAMI AIMS 2017 2 / 18

slide-3
SLIDE 3

Motivation

Active Measurement Infrastructure

Today: Requires dedicated measurement nodes (e.g., Pi’s, end-hosts) No standard interface or API Limited extensibility Hard to deploy Our vision: Active measurement integrated into existing routers and switches Standards-based API for probing and receiving results Quickly create and deploy new measurement tasks Measure from the network core – rather than edge

  • E. Rye & R. Beverly (NPS)

SAAMI AIMS 2017 2 / 18

slide-4
SLIDE 4

Motivation

Our Vision

SDN as Active Measurement Infrastructure (SAAMI): Leverage Software Defined Networks (SDNs) for active Internet measurement SDNs: Commodity network forwarding hardware programmed via centralized controller Widely deployed / supported in hardware and software How to use for active measurement?

  • E. Rye & R. Beverly (NPS)

SAAMI AIMS 2017 3 / 18

slide-5
SLIDE 5

Motivation

Our Vision

SDN as Active Measurement Infrastructure (SAAMI): Leverage Software Defined Networks (SDNs) for active Internet measurement SDNs: Commodity network forwarding hardware programmed via centralized controller Widely deployed / supported in hardware and software How to use for active measurement?

  • E. Rye & R. Beverly (NPS)

SAAMI AIMS 2017 3 / 18

slide-6
SLIDE 6

Motivation

Intuition: SDNs provide the basic building blocks for programmable active measurement: Controllers construct arbitrary packets, instruct switches to emit them out specified port Install packet match rules in switches to redirect measurement responses to controller Controller can perform arbitrarily complex computation over received measurement responses

  • E. Rye & R. Beverly (NPS)

SAAMI AIMS 2017 4 / 18

slide-7
SLIDE 7

Motivation

SDN as Active Measurement Infrastructure (SAAMI):

Motivation:

1

Lowers VP deployment barrier: Utilize large existing deployed base of SDN infrastructure. Place measurements anywhere an SDN switch exists without installation, maintenance, or policy hurdles.

2

Lowers VP diversity barrier: Place VPs in the network core without consuming an interface or valuable space / power.

3

Lowers VP utilization barrier: Standardized OpenFlow permits rapid creation and deployment new measurement tasks and protocols.

  • E. Rye & R. Beverly (NPS)

SAAMI AIMS 2017 5 / 18

slide-8
SLIDE 8

Proof-of-concept

Proof-of-concept: ping, traceroute

SAAMI Client SAAMI Controller SDN Switch Probe {Tgt, Count} (HTTP PUT) OF PacketOut ICMP Echo Request ICMP Echo Reply Probe Target OF PacketIn Dump Statistics (HTTP GET) OFEchoRequest OFEchoReply

SAAMI controller provides a RESTful API for ping Controller calibrates timing via OFEcho* Emits ping probe via OFPacketOut Responses shunted to controller via OFPacketIn Q: What’s the real-world feasibility?

  • E. Rye & R. Beverly (NPS)

SAAMI AIMS 2017 6 / 18

slide-9
SLIDE 9

Proof-of-concept

Proof-of-concept: ping, traceroute

SAAMI Client SAAMI Controller SDN Switch Probe {Tgt, Count} (HTTP PUT) OF PacketOut ICMP Echo Request ICMP Echo Reply Probe Target OF PacketIn Dump Statistics (HTTP GET) OFEchoRequest OFEchoReply

SAAMI controller provides a RESTful API for ping Controller calibrates timing via OFEcho* Emits ping probe via OFPacketOut Responses shunted to controller via OFPacketIn Q: What’s the real-world feasibility?

  • E. Rye & R. Beverly (NPS)

SAAMI AIMS 2017 6 / 18

slide-10
SLIDE 10

Results

Large-scale testing Probe 15,000 IPv4 targets From both OpenVSwitch (OVS) and hardware HP2920 Using both local and remote SAAMI controller

0.4 0.3 0.2 0.1 0.0 0.1 0.2 0.3 0.4 Error/RTT 0.0 0.2 0.4 0.6 0.8 1.0 CDF of Errors

Remote Controller, OVS Local Controller, HP2920 Local Controller, OVS Remote Controller, HP2920

  • E. Rye & R. Beverly (NPS)

SAAMI AIMS 2017 7 / 18

slide-11
SLIDE 11

Results

Custom Measurements

SAAMI facilitates new functionality: Consider classic router aliasing and ownership inference problems Imagine provider wishes/compelled to add “routerID” functionality to her network for management and debugging Define ICMP type 200 code 0 packets as “routerID” query Using SAAMI, create a switch rule and respond with device’s AS and a unique identifier

  • E. Rye & R. Beverly (NPS)

SAAMI AIMS 2017 8 / 18

slide-12
SLIDE 12

Results

Custom Measurements

Router ID: While any database could provide identical functionality, SAAMI closely couples measurement (which knows AS and router identifier) to control plane Only a few lines of code – demonstrates the ease with which new measurement protocols can be deployed operationally Provides functionality not possible in today’s hardware. While a simple example, it effectively solves aliasing and ownership problems.

  • E. Rye & R. Beverly (NPS)

SAAMI AIMS 2017 9 / 18

slide-13
SLIDE 13

Results

Custom Measurements

Really simple routerID implementation! icmp = dpkt . icmp .ICMP ( ) icmp . type = 200 icmp . code = 0 icmp . data = ‘ router_id_query ’ s . connect ( ( sys . argv [ 1 ] , 1)) s . send ( s t r ( icmp ) )

  • E. Rye & R. Beverly (NPS)

SAAMI AIMS 2017 10 / 18

slide-14
SLIDE 14

Results

Custom Measurements

Really simple SAAMI routerID response!

p = packet . Packet ( ) e = ethernet . ethernet ( dst= s e l f .gwMAC, src= s e l f .ownMAC, ethertype=ether_types . ETH_TYPE_IP) i = ipv4 . ipv4 ( src= s e l f . ownIP , dst=ip . src , proto =1) probe = icmp . icmp ( type_ =200,code=1 , data=ROUTER_ID) p . add_protocol ( e ) p . add_protocol ( i ) p . add_protocol ( probe ) p . s e r i a l i z e ( ) actions = [ parser . OFPActionOutput ( s e l f . gwPort ) ]

  • ut = parser . OFPPacketOut ( datapath=datapath ,

b u f f e r_ i d =ofproto .OFP_NO_BUFFER, in_port =datapath . ofproto .OFPP_CONTROLLER, actions=actions , data=p . data ) p r i n t " Sending router ID reply : " , ROUTER_ID datapath . send_msg ( out )

  • E. Rye & R. Beverly (NPS)

SAAMI AIMS 2017 11 / 18

slide-15
SLIDE 15

Results

Future Work

Our ideas and some questions Conduct further large-scale measurements

e.g. , comparison of SAAMI-generated traceroutes to real traceroute data Congestion estimation

How to arbitrate access to SAAMI? Would providers even allow access to core infrastructure to do this?

  • E. Rye & R. Beverly (NPS)

SAAMI AIMS 2017 12 / 18

slide-16
SLIDE 16

Results

Summary

We have a paper in progress and would love your feedback! https://arxiv.org/abs/1702.07946 SAAMI New architectural vision for the active measurement infrastructure Initial feasibility testing demonstrates promise Seeking feedback from the measurement community

  • E. Rye & R. Beverly (NPS)

SAAMI AIMS 2017 13 / 18

slide-17
SLIDE 17

Results

Background

Related Work Much work involved in measuring OpenFlow processing delays (Rostos, He, others) SLAM (Yu et al. ), generates custom packets that traverse a path within a datacenter, which themselves trigger control-plane messages to a central controller within a datacenter to compute path latency p4 INT (Inband Network Telemetry) – data plane information (e.g. per-hop latency, egress port information, etc) inserted directly into data packets as additional header fields

  • E. Rye & R. Beverly (NPS)

SAAMI AIMS 2017 14 / 18

slide-18
SLIDE 18

Results

Calibration

Accounting for Controller-Switch Latency Controller measures total time between OFPktOut and OFPktIn messages

Really want time between packet emission by switch and corresponding reply

Estimate controller to switch latency by calculating time between built-in OFEchoRequest-OFEchoReply messages for each target Subtract estimated controller-switch latency from OFPktOut

  • OFPktIn time to obtain RTT estimate
  • E. Rye & R. Beverly (NPS)

SAAMI AIMS 2017 15 / 18

slide-19
SLIDE 19

Results

Calibration

Calibration Host

eth0 eth1 OOBM

SDN Switch

port1

OpenFlow Measurement Probes / Replies

Accounting for Switch Processing Delays Switch doesn’t instantaneously emit probe upon receiving a OFPktOut – how long does it take? Measure time between OFPktOut transmission and probe emission from switch Measure time between probe receipt and OFPktIn message from switch

  • E. Rye & R. Beverly (NPS)

SAAMI AIMS 2017 16 / 18

slide-20
SLIDE 20

Results

Calibration

0.0 0.5 1.0 1.5 2.0 2.5 3.0 Delay (ms) 0.0 0.2 0.4 0.6 0.8 1.0 CDF Packet Emission on PktOut PktIn on Packet Receipt

Accounting for Switch Processing Delays > 0.95 between 1.5 and 2.0 ms time ∆ between OFPktOut and packet emission > 0.95 between .75 and 1.2 ms time ∆ between OFPktIn and packet receipt

  • E. Rye & R. Beverly (NPS)

SAAMI AIMS 2017 17 / 18

slide-21
SLIDE 21

Results

Calibration

100 200 300 400 500 Time (us) 0.0 0.2 0.4 0.6 0.8 1.0 CDF

ICMP emitted - pktOut arrival (individual) ICMP emitted - pktOut arrival (bundled)

Accounting for Multiple-Probe OFPktOut Messages TCP implementation can cause multiple probes to be “bundled” into one OFPktOut message; must quantify time variation between OFPktOut arrival at switch and bundled probe emission Not a significant source of latency – largest observed delay incurred by a probe less than .5 ms

  • E. Rye & R. Beverly (NPS)

SAAMI AIMS 2017 18 / 18