Share
Embed
Introducing ONOS Blackbird
SDN Developer Society, Taipei, TW
Mar. 28, 2015
Charles Chan
March 28, 2015
Annual Pro sale · Save $30
Have presentations of your own?
Share with private links, password protection, and more control over your work.
Transcript
58 slides
-
SDN Network OS for Service Provider Networks Charles M.C.
Chan Mar. 28, 2015 SDN Developer Society, Taipei Introducing ONOS Blackbird -
/56 ▪ Charles Min-‐Cheng Chan / 詹珉誠 / @rascov
▪ Ph.D. Candidate, NaAonal Chiao Tung University ▪ Team Lead, D-‐Link NCTU Joint Research Center ▪ Individual Contributor, ONOS Project • 14 commits / 4,861 ++ / 667 -‐-‐ • IPv6: iniAal planning and development • CVE-‐2015-‐1166: denial-‐of-‐service due to excepAon handling while deserializing malformed packets Who Am I ? 2 -
/56 ▪ Introducing ONOS Blackbird • MoTvaTon •
ObjecTve • Key Features • Use Cases ▪ ONOS Architecture ▪ Performance EvaluaAon ▪ How to write an ONOS applicaAon ▪ ONOS Toward IPv6 Outline 3 -
/56 ▪ Why are service providers interested in SDN
• Reduce CAPEX and OPEX • Cloud-‐style agility, flexibility, scalability • Roll out services rapidly • Reduce operaAonal complexity, increase visibility MoTvaTon 4 -
/56 ▪ Strict requirements on SDN control plane •
Handle hundreds of millions of end points • Five nines availability, high performance, low latency • Easily create and deliver services • Seamless migraAon of exisAng networks ➡ ONOS is designed for these strict requirements ObjecTve 5 -
/56 ▪ High-‐availability, scalability, performance • Distributed Core
▪ Northbound abstracAons • ApplicaTon Intent Framework ▪ Southbound abstracAons • Protocol adapters, OF 1.0/1.3 for now -‐ Based on Loxigen ▪ GUI ▪ Open source • Apache 2.0 License Key Features -‐ Avocet 6 -
/56 ▪ IPv6 Support (experimental) ▪ Distributed ApplicaAon Framework
▪ Internet2 deployment / SDN-‐IP ▪ A lot of tesTng ▪ Performance evaluaTon / enhancement ▪ Hazelcast -‐> RAFT • Eventually consistent map • Strongly consistent map ▪ REST API ▪ Modular and extensible GUI • Angular JS Key Features -‐ Blackbird 7 -
/56 ▪ Security mode • ApplicaAon permissions ▪
ConfiguraAon Model ▪ MulAcast • SinglePointToMulAPoint (S2M) intent ▪ IPv6 ▪ NETCONF ▪ IP RAN (ONS Demo) • L3 VPN ▪ Internet2 deployment (ONS Demo) Key Features -‐ Cardinal 8 -
/56 ▪ Talk to external network using BGP ▪
Challenge: Real-‐world development (500k+ routes) • Flow entry query between controller and switch paralyzes the control plane Use Case: SDN-‐IP 9 -
/56 ▪ On-‐demand provisioning of bandwidth (calendar app) ▪
Automated handling of failures and seamless restoraAon Use Case: Packet / OpTcal Network 10 -
/56 ▪ Allows to enforce a flow through any topological
path and service chain • Per-‐flow state is maintained only at the ingress node ▪ Can be directly applied to • MPLS, using labels • IPv6, using rouAng extension headers Use Case: Segment RouTng 12 -
/56 Outline ▪ Introducing ONOS Blackbird ▪ ONOS Architecture
• ApplicaTon Intent Framework • Distributed Core ▪ Performance EvaluaAon ▪ How to write an ONOS applicaAon ▪ ONOS Toward IPv6 13 -
/56 ▪ Assign what to do (intent) instead of how
to do (flow) ▪ Intent consists of • Network Resource, e.g. link • Constraints, e.g. bandwidth • Criteria, header fields or paferns that describe a slice of traffic • InstrucTon, e.g. header mod, output to port ▪ Intent can be compiled into other well-‐known intents by IntentCompiler • HostToHostIntent -‐> PathIntent ▪ Intent can be converted into BatchOpera2on by IntentInstaller • PathIntent -‐> FlowRuleBatchOpera2ons ApplicaTon Intent Framework (1/3) 15 -
/56 ▪ Intent framework in Blackbird • No priority,
first request first allocate • No conflict resoluAon • Will be in Cardinal -‐ #2977: Add priority to remaining intent types ▪ Bandwidth constraint • Currently works in packet-‐opAcal networks only • Will be enforced when OVSDB adapter is finished ApplicaTon Intent Framework (3/3) 17 -
/56 ▪ Mastership • None, Standby (Slave), Master
▪ SynchronizaAon • Hazelcast (In-‐memory solware data grid) -‐ Distributed java.uAl.{Queue, Set, List, Map} -‐ Distributed event and listener -‐ Scale, fail-‐over…etc. • By default -‐ MulAcast 224.2.2.3:54327 • Moving from Hazelcast to RAFT Distributed Core 18 -
/56 ▪ Introducing ONOS Blackbird ▪ ONOS Architecture
▪ Performance EvaluaTon • Tested Hardware Switches • Flow Install Throughput • Intent Latency • Intent Throughput • Link Event Throughput • Port Event Throughput • Switch Event Throughput ▪ How to write an ONOS applicaAon ▪ ONOS Toward IPv6 Outline 19 -
/56 ▪ Pica8 3290 • OpenFlow 1.0 •
Small office network • ReacAve forwarding Tested Hardware Switch 20 -
/56 ▪ Bare-‐metal controller • Xeon E5-‐2670 / 32G
DDR3 RAM / SSD / 1Gbps NIC • JAVA_OPTS = -‐Xms8G -‐Xmx8G ▪ NullProvider • Fake switches, not even a virtual one Test Environment 21 -
/56 ▪ SW = 35 -‐ total # of switches
(Null Devices) connected to ONOS cluster evenly distributed to acAve ONOS nodes Flow Install Throughput -‐ Test Result 23 -
/56 Intent Latency -‐ Test Result 25 ▪ 1 -‐>
3 node(s) • EW overhead ▪ >3 nodes • Large # intents (>1000) -‐ Size ↑, latency ↓ • Small # intents -‐ Process overhead -
/56 ▪ 40 Null Devices (linear topology) on each ONOS
node ▪ 32 effecAve flicker threads ▪ Flicker eventRate varies from 4000 to 500 Link Event Throughput -‐ Test Result 29 10k-Events/s, still sufficient for large scale network -
/56 ▪ Port-‐up Aming breakdowns for a 3-‐node cluster
• OFP of_port status -‐> complete Packet-‐In/Out for link discovery: 11 ms • OFP of_port status -‐> device event: 5~11 ms • complete Packet-‐In/Out for link discovery -‐> link event: 5~6 ms • Link event -‐> graph event: 1~2 ms Port Event Latency -‐ Test Result 31 LLDP -
/56 ▪ Syn/Ack -‐> OFP role reply Aming breakdowns for
example of 58.1 ms • TCP syn -‐> OFP Hello (from ovs): 0.3 ms • OFP Hello (from ovs) -‐> OFP of_features_request: 2.6 ms • OFP of_features_request -‐> OFP of_features_reply: 47.0 ms • OFP of_feature_reply -‐> OFP role_request: 8.0 ms • OFP role_request -‐> OFP role_reply: 0.2 ms Switch Event Latency -‐ Test Result 33 -
/56 ▪ Introducing ONOS Blackbird ▪ ONOS Architecture
▪ Performance EvaluaAon ▪ How to write an ONOS applicaTon • Setup directory layout • Add pom.xml (app) • Edit pom.xml (parent) • Register applicaTon • Write applicaTon • Write unit test • Build applicaTon • Load applicaTon ▪ ONOS Toward IPv6 Outline 34 -
/56 cd ${ONOS_ROOT} mkdir -p apps/sdnds mkdir -p apps/sdnds/src/main/java/org/onosproject/sdnds mkdir
-p apps/sdnds/src/test/java/org/onosproject/sdnds Setup Directory Layout 35 application goes here unit test goes here package-wide documentation/annotation Project Object Model (app) -
/56 ▪ @Reference and @AcAvate Write ApplicaTon (2/5) 41 (prior)
Advisor Director Observer (subsequent) ask for packet in default: drop -
/56 alias ob='onos-build' alias obd='onos-build-docs' alias obi='onos-build -Dmaven.test.failure.ignore=true' alias obs='onos-build-selective'
alias op='onos-package' onos-install onos-install -nf (OS X) Build ApplicaTon 46 -
/56 Outline ▪ Introducing ONOS Blackbird ▪ ONOS Architecture
▪ Performance EvaluaAon ▪ How to write an ONOS applicaAon ▪ ONOS Toward IPv6 48 -
/56 ▪ First community-‐driven feature • Community did the
planning, development and tesAng ▪ No meeAng • All coordinaAon are done by email / jira / gerrit IPv6 Support in ONOS 49 -
/56 ▪ Use cases • SDN-‐IP -‐ Exchanging
IPv6 rouTng informaAon with BGP routers • ReacAve forwarding -‐ Forward IPv6 packets in SDN ▪ Experimental feature • Without Q/A approval IPv6 Status -‐ Blackbird 50 -
/56 ▪ Charles M.C. Chan • Ph.D. student, NaAonal
Chiao Tung University, Taiwan • IniAal planning and development ▪ Kunihiro Ishiguro • Co-‐founder, IPInfusion • Development and IPv6 tutorial script ▪ Dusan Pajin • Network engineer, Academic Network of Serbia • TesAng and development ▪ Pavlin Radoslavov • (Former) Member of Technical Staff, ON.Lab • Coordinator and lelover tasks processor ONOS IPv6 Task Force 51 -
/56 ▪ Packet serializer / deserializer ▪ Why
• Need the class to parse IPv6 packet header -‐ E.g. source IP, desAnaAon IP ▪ Challenge • Extension headers -‐ Treated as upper layer header • Upper layer checksum -‐ Pseudo header (TODO) What Have Been Done (1/4) 52 IPv6 IPv6-Ext IPv6-Ext ICMPv6 nextHeader parent … -
/56 ▪ Criteria, Selector, Treatment ▪ Why •
To support IPv6-‐related matching and acAons ▪ Criteria • Matching fields -‐ E.g. src_ipv6, dst_ipv6 ▪ Selector • Matches -‐ E.g. src_ipv6=fe80::1, src_mac=00:00:00:00:00:01 ▪ Treatment • AcAons -‐ E.g. set_dst_ipv6=fe80::2, output=3 What Have Been Done (2/4) 53 -
/56 ▪ Neighbor Discovery Protocol (NDP) ▪ Why
• Similar to ARP in IPv4 • Need to parse NDP contents -‐ E.g. Link-‐layer address What Have Been Done (3/4) 54 -
/56 ▪ Host service ▪ Why •
Need to track / monitor the locaTon of IPv6 hosts ▪ IPv4 / IPv6 • Update locaAon ▪ ARP / NDP • Update locaAon and IP/mac mapping What Have Been Done (4/4) 55 -
/56 ▪ Expose IPv6 intents in CLI / REST
▪ SDN-‐IP: verify receiving of IPv6 routes over IPv6 peering ▪ More tesAng and bug fixes ▪ Obtain Q/A approval Future Work -‐ Cardinal 56