Multi-Gigabit Intrusion Detection with OpenFlow and Commodity Clusters



Similar documents
Real-World Insights from an SDN Lab. Ron Milford Manager, InCNTRE SDN Lab Indiana University

Open Source Network: Software-Defined Networking (SDN) and OpenFlow

Software Defined Networking What is it, how does it work, and what is it good for?

OpenFlow and Onix. OpenFlow: Enabling Innovation in Campus Networks. The Problem. We also want. How to run experiments in campus networks?

Securing Local Area Network with OpenFlow

Network Agent Quick Start

The Lagopus SDN Software Switch. 3.1 SDN and OpenFlow. 3. Cloud Computing Technology

ScotGrid. Bolting the door. Network Based Security Mechanisms. David Crooks, Mark Mitchell on behalf of ScotGrid Glasgow

Network Virtualization Based on Flows

Software Defined Networks

How To Understand The Power Of The Internet

Data Analysis Load Balancer

SOFTWARE-DEFINED NETWORKING AND OPENFLOW

OpenFlow: History and Overview. Demo of routers

Infrastructure for active and passive measurements at 10Gbps and beyond

Quick Start for Network Agent. 5-Step Quick Start. What is Network Agent?

Chapter 11 Cloud Application Development

Multiple Service Load-Balancing with OpenFlow

OpenFlow Based Load Balancing

SDN AND SECURITY: Why Take Over the Hosts When You Can Take Over the Network

OpenFlow and Software Defined Networking presented by Greg Ferro. OpenFlow Functions and Flow Tables

COMPSCI 314: SDN: Software Defined Networking

Software Defined Networking. Matthew Davy, Indiana University September 8th, 2011

Software Defined Networking What is it, how does it work, and what is it good for?

Virtualization: TCP/IP Performance Management in a Virtualized Environment Orlando Share Session 9308

Introduction to OpenFlow:

Oracle Big Data Appliance: Datacenter Network Integration

and reporting Slavko Gajin

Appendix A: Configuring Firewalls for a VPN Server Running Windows Server 2003

OpenFlow: Enabling Innovation in Campus Networks

Software Defined Networking A quantum leap for Devops?

Disaster Recovery Design Ehab Ashary University of Colorado at Colorado Springs

SDN and OpenFlow. Naresh Thukkani (ONF T&I Contributor) Technical Leader, Criterion Networks

Quick Start for Network Agent. 5-Step Quick Start. What is Network Agent?

SOFTWARE-DEFINED NETWORKING AND OPENFLOW

Wedge Networks: Transparent Service Insertion in SDNs Using OpenFlow

The Internet: A Remarkable Story. Inside the Net: A Different Story. Networks are Hard to Manage. Software Defined Networking Concepts

GPU-Based Network Traffic Monitoring & Analysis Tools

Ethernet-based Software Defined Network (SDN) Cloud Computing Research Center for Mobile Applications (CCMA), ITRI 雲 端 運 算 行 動 應 用 研 究 中 心

SolarWinds. Packet Analysis Sensor Deployment Guide

An Overview of OpenFlow

OpenFlow Overview. Daniel Turull

Network Instruments white paper

Configuring IPS High Bandwidth Using EtherChannel Load Balancing

OpenFlow: Concept and Practice. Dukhyun Chang

Optimizing Data Center Networks for Cloud Computing

Getting to know OpenFlow. Nick Rutherford Mariano Vallés

Tutorial: OpenFlow in GENI

Outline. Institute of Computer and Communication Network Engineering. Institute of Computer and Communication Network Engineering

OpenFlow with Intel Voravit Tanyingyong, Markus Hidell, Peter Sjödin

Hardware Performance Optimization and Tuning. Presenter: Tom Arakelian Assistant: Guy Ingalls

White Paper. Intrusion Detection Deploying the Shomiti Century Tap

Scaling Up Your Network Monitoring: From the Garden Hose to the Fire Hose

D1.2 Network Load Balancing

VXLAN: Scaling Data Center Capacity. White Paper

Setting up pfsense as a Stateful Bridging Firewall.

GlobalSCAPE DMZ Gateway, v1. User Guide

IPOP-TinCan: User-defined IP-over-P2P Virtual Private Networks

NetFlow Tracker Overview. Mike McGrath x ccie CTO mike@crannog-software.com

BROADCOM SDN SOLUTIONS OF-DPA (OPENFLOW DATA PLANE ABSTRACTION) SOFTWARE

How To Understand The Power Of A Network In A Microsoft Computer System (For A Micronetworking)

基 於 SDN 與 可 程 式 化 硬 體 架 構 之 雲 端 網 路 系 統 交 換 器

MikroTik Invisible Tools. By : Haydar Fadel 2014

NetStream (Integrated) Technology White Paper HUAWEI TECHNOLOGIES CO., LTD. Issue 01. Date

How to Create a Virtual Switch in VMware ESXi

Ten Things to Look for in an SDN Controller

Firewalls and VPNs. Principles of Information Security, 5th Edition 1

Catalyst 6500/6000 Switches NetFlow Configuration and Troubleshooting

Creating a VPN with overlapping subnets

Software Defined Network (SDN)

Network forensics 101 Network monitoring with Netflow, nfsen + nfdump

Cloud Networking Disruption with Software Defined Network Virtualization. Ali Khayam

Analyzing Full-Duplex Networks

Six Days in the Network Security Trenches at SC14. A Cray Graph Analytics Case Study

Openflow: Enabling Innovation in Campus Networks

Intel Ethernet Switch Load Balancing System Design Using Advanced Features in Intel Ethernet Switch Family

DALLAS INDEPENDENT SCHOOL DISTRICT PURCHASING DEPARTMENT ADDENDUM No. 2 NETWORK ELECTRONICS

Firewalls P+S Linux Router & Firewall 2013

Fiber Channel Over Ethernet (FCoE)

The State of OpenFlow: Advice for Those Considering SDN. Steve Wallace Executive Director, InCNTRE SDN Lab Indiana University

Wireshark in a Multi-Core Environment Using Hardware Acceleration Presenter: Pete Sanders, Napatech Inc. Sharkfest 2009 Stanford University

IPv6 SECURITY. May The Government of the Hong Kong Special Administrative Region

Chapter 4 Rate Limiting

Introduction to Infiniband. Hussein N. Harake, Performance U! Winter School

Firewalls. Ola Flygt Växjö University, Sweden Firewall Design Principles

Whitepaper Continuous Availability Suite: Neverfail Solution Architecture

CSE331: Introduction to Networks and Security. Lecture 12 Fall 2006

OpenFlow. Ihsan Ayyub Qazi. Slides use info from Nick Mckeown

Architecture Overview

vcloud Air - Virtual Private Cloud OnDemand Networking Guide

Recommendations for Network Traffic Analysis Using the NetFlow Protocol Best Practice Document

Fortinet Network Security NSE4 test questions and answers:

QuickStart Guide vcenter Server Heartbeat 5.5 Update 2

Introduction to MPIO, MCS, Trunking, and LACP

Network Virtualization and Software-defined Networking. Chris Wright and Thomas Graf Red Hat June 14, 2013

Oracle Exalogic Elastic Cloud: Datacenter Network Integration

IP Telephony Management

NAT REFERENCE GUIDE. VYATTA, INC. Vyatta System NAT. Title

Barracuda Link Balancer

Towards Software Defined Cellular Networks

Transcription:

Multi-Gigabit Intrusion Detection with OpenFlow and Commodity Clusters Copyright Ali Khalfan / Keith Lehigh 2012. This work is the intellectual property of the authors. Permission is granted for this material to be shared for non-commercial, educational purposes, provided that this copyright statement appears on the reproduced materials and notice is given that the copying is by permission of the authors. To disseminate otherwise or to republish requires written permission from the authors.

Multi-Gigabit Intrusion Detection with OpenFlow and Commodity Clusters Keith Lehigh University Information Security Office Indiana University Ali Khalfan InCNTRE Indiana University May 16, 2012

Border Router Internal Router How is Intrusion Detection done today? At least a border mirror Mirror feed may be oversubscribed Often one box per router Intrusion Detection Sensor Intrusion Detection Sensor 3

Old IDS @ IU Started out as a surplus Dell desktop with 10Mb/s border feed Datacenter feeds / some core routers Prone to packet loss 10Gb/s mirrors to 1Gb/s fiber Media converter to 1Gb/s copper 1:1 feeds to sensors Multi-core with multiple snort instances BPF load balancing 4

Network Master Plan Started in 2008 Overhaul core network infrastructure at IUB and IUPUI Security funding included Goals of core overhaul All buildings dual-homed At least 10 Gb/s everywhere Population at IUB/IUPUI : 85,000 5

The final product 6

Mirrors Unidirectional mirrors Copy outbound pkts at border Copy inbound pkts on core routers 9 @ IUB / 7 @ IUPUI Copied traffic sent via fiber to IDS 7

Router pairs Core routers are paired Routers are in separate buildings Pairs service multiple buildings Traffic can route to a building via either router in a pair 8

Internet egress 9

R1 R2 R3 Beyond single box IDS Load Balancer Large systems can handle multi-gigabit Adding capacity? multiple feeds? 16 feeds across two campuses We need a load balancer! And a cluster! IDS1 IDS2 IDS3 IDS4 IDS5 IDS6 10

Load balancing : Build Your Own Software load balancing o 1 Gb o Does not scale to multiple feeds Surplus routers or switches o Lack of access to spare routers o Hardware warranty support 11

Load balancing : Commercial Many excellent solutions Even on a reasonably well funded project, still too expensive Limited ability to customize load balancing for issues unique to research and academic networking 12

Enter OpenFlow InCNRTE Practical applications for OpenFlow Access to programming skill Access to hardware for testing and development 13

What is OpenFlow? A dominant component of Software Defined Networking Implemented by several vendors Compromise between research demands and network vendors requirements Currently deployed on several campuses 14

Control Plane Data Plane Conventional L2 Switch Control Plane and Data Plane Network devices have a control plane and a data plane Vendors have both controller plane and data plane locked as part of the firmware OpenFlow separates the control plane and opens it for researchers Control Plane Data Plane Commodity Server OpenFlow Switch 15

Control Plane Benefits of separating the planes Database Web Server Controller Application University Network Control Plane becomes part of the application development Interaction with heterogeneous switches Enhances Research and innovation Another Host Switch Vendor B Switch Vendor A 16

Control plane Done by a controller using commodity hardware/software Controller usually implemented in high level language o o o Beacon NOX Floodlight 17

Interaction with data plane Insert/modify flows Up/down ports Gather statistics Detect switch changes Controller Insert/Delete Flow Gather statistics Port up/down notification OpenFlow Switch 18

What are flows? Data Plane Flow 1 Flow 2 Flow n Headers to match against packets Counters for the rules Actions Flow 1: Header Fields Nw_src =192.168.1.5, Nw_proto=tcp Counters Packet match: 326 Actions Output to ports: 5,6 19

Headers Fields What are header fields? Matches can be based on several factors related to layers 2-4 and vlan among others Masking is possible Priority 20

Matches Flow matches can be based on several factors related to layers 2-4 and vlan among others Masking is possible Priority Timer 21

Actions Output Set/strip VLAN id Set data link src/dst Set IP src/dst Set network Type of Service Set transport src/dst Set 802.1q priority 22

Flow examples Header Fields Nw_src =192.168.1.5, Nw_proto=tcp, Priority=100 Header Fields dl_type =0x86DD Counter 326 Counter 45 Actions Output to ports: 5,6 Actions NONE Header Fields dl_type =0x0800, Priority=50 Counter 1488 Actions Output to ports: 9 23

FlowScale IU Network (Border & Core Routers) Using Top of Rack switch to evenly distribute traffic (incoming and outgoing) Process feeds at a rate of 10Gbit/s Resilience Mirroring traffic Responsive to alerts OpenFlow Switch Sensors 24

Load Distribution R1 X1 Even distribution between the multiple sensors Session information may not be broken Certain traffic trends might need to be moved/dropped on demand Rules can be up to layer 4 sum(xi)/4 R2 R3 X2 X3 OpenFlow Switch sum(xi)/4 sum(xi)/4 sum(xi)/4 Sensors 25

Load Distribution R1 192.168.1.1,80 Even distribution between the multiple sensors Session information may not be broken Certain traffic trends might need to be moved/dropped on demand Rules can be up to layer 4 R2 R3 192.168.1.1,80 OpenFlow Switch 192.168.1.1,80 Sensors 192.168.1.1,80 26

Load Distribution Even distribution between the multiple sensors Session information may not be broken Certain traffic trends might need to be moved/dropped on demand Rules can be up to layer 4 R1 X1 R2 R3 X2 X3 OpenFlow Switch Monitor tcp,udp port 53 Sensors 27

Reactive Load balancing R1 s/w processing Bandwidth of controller channel causes a bottleneck Effectiveness? Need to keep processing in hardware R2 R3 2. Add flow 1 Flow 1 OpenFlow Switch Flow 2 Sensor 1 Sensor 2 1. Incoming packet Sensor 3 28

Predefined rules R1 R2 R3 1. Controller Connects with switch 2. Install flows into switch OpenFlow Switch Divide IU s subnets into more fine-grained chunks Distribute subnets over the sensors in a round robin fashion Allow different IU subnets to have more finegrained flows than others Sensor 1 Sensor 2 Sensor 3 29

Predefined rules 192.168.1.0/24 172.16.0.0/16 4 flows 8 flows 192.168.1.0/25 (src) 192.168.1.0/25 (dst) 192.168.1.128/25 (src) 192.168.1.128/25 (dst) 172.16.0.0/18 (src) 172.16.0.0/18 (dst) 172.16.64.0/18 (src) 172.16.64.0/18 (dst) 172.16.128.0/18 (src) 172.16.128.0/18 (dst) 172.16.192.0/18 (src) 172.16.192.0/18 (dst) 30

Hot swapping flows OpenFlow allows us to modify actions of rules In a defined intervals move flows from sensors with a high load, to others with a lower load R1 Sensor 1 R2 R3 OpenFlow Switch Sensor 2 Sensor 3 31

Hot swapping flows OpenFlow allows us to modify actions of rules In a defined intervals move flows from sensors with a high load, to others with a lower load R1 Sensor 1 R2 R3 OpenFlow Switch Sensor 2 Sensor 3 32

Resilience Listen to switch for port up/down status Port DOWN: move flows to other sensors Port UP: move flows from other sensors to new sensor R1 Sensor 1 R2 R3 OpenFlow Switch Sensor 2 Sensor 3 33

Resilience Listen to switch for port up/down status Port DOWN: move flows to other sensors Port UP: move flows from other sensors to new sensor R1 Sensor 1 R2 R3 OpenFlow Switch Sensor 2 Sensor 3 34

Mirroring Traffic Every flow with an action can have another action added that corresponds to the mirroring sensor R1 Sensor 1 R2 R3 OpenFlow Switch Sensor 2 Sensor 3 35

Responsive to alerts 1. Kernel Panic! Nagios Sensor 1 2. Down Sensor 1 interface E.g. Kernel panic Nagios sends an alert to the controller indicating that the sensor s process is down Controller sends a port DOWN message to the switch, allowing the controller to behave the same way as if the link actually went down Sensor 2 Sensor 3 OpenFlow Switch IU Network Traffic 36

Responsive to alerts Nagios Sensor 1 E.g. Kernel panic Nagios sends an alert to the controller indicating that the sensor s process is down Controller sends a port DOWN message to the switch, allowing the controller to behave the same way as if the link actually went down Sensor 2 Sensor 3 OpenFlow Switch IU Network Traffic 37

IUB Controller tunnel IUPUI Controller Pronto Switch IBM Switch Sensor 1 Sensor 1 Sensor 2 Bro Sensors Sensor 2 Bro Sensors Sensor 7 Sensor 7 Sensor 8 Sensor 11 Snort Sensors Mirrored Sensors 1-7 Sensor 8 Sensor 11 Snort Sensors Mirrored Sensors 1-7 Sensor 12 Default IP and IPv6 Sensor 12 Default IP and IPv6 38

Results Load Distribution 39

Results Load Distribution 40

Results Mirroring 41

Summary Load Distribution Resilience Mirroring Responsive to external alerts 42

Limitations and future work Limitations Session breaking Most software is still beta IPv6 Future work More fine-grained flows Distribute flows based on weight of each sensor 43

IDS cluster hardware Dell R510 manager o 12 core / 24 GB / 1.5 TB Dell R310 OpenFlow controller Dell R410 (12) workers o 12 core / 24 GB / 300 GB SAS o Myricom 10Gb NIC o HP Direct-Attach Cables FreeBSD 8 Configuration management with Master Source Intra-cluster networking via private VLAN Load balanced traffic received via HP DAC 44

Another layer of load balancing Myricom Sniffer10G Multiple ring buffers presented to OS Can perform IP-based load balancing or duplicate traffic to all rings Myricom provides a libpcap wrapper Sniffer10G controlled by environment variables Libpcap wrapper obscures per-ring stats Hard to gauge packet loss in snort Myricom provides tools to read packet counters and measure bandwidth at the NIC 45

Software stack Bro = Network analysis framework Programmable Acts like a protocol parser/logger Bro running on nodes 1-7 10 workers per node Snort = packet grepper extraordinaire Snort running on nodes 8-11 7 snort instances per node Node 12 monitor IPv6 traffic and catchall IPv4 traffic Node 12 is also our tcpdump host 46

Performance numbers IUB : 1.5 million pkt/sec / 3 Gb/s average IUB : Currently 500-750k / 1.5 Gb/s average Bro capture_loss 3-5% Short term spikes above 10% 47

Future cluster improvements FreeBSD Netmap Automate OS builds with NanoBSD Expand Bro usage Use Snort for heavy packet inspection Think DLP 48

Thank you. Keith Lehigh: klehigh@iu.edu Ali Khalfan: ali.khalfan@gmail.com InCNTRE : incntre.iu.edu FlowScale : www.openflowhub.org/display/flowscale/flo wscale+home 49