10 Gbit Hardware Packet Filtering Using Commodity Network Adapters. Luca Deri <deri@ntop.org> Joseph Gasparakis <joseph.gasparakis@intel.



Similar documents
High-speed Network and Service Monitoring. Luca Deri

Wire-Speed Hardware-Assisted Traffic Filtering with Mainstream Network Adapters

Wire-speed Packet Capture and Transmission

Monitoring high-speed networks using ntop. Luca Deri

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

Towards 100 Gbit Flow-Based Network Monitoring. Luca Deri Alfredo Cardigliano

Open Source in Network Administration: the ntop Project

Exploiting Commodity Multi-core Systems for Network Traffic Analysis

Exploiting Commodity Multicore Systems for Network Traffic Analysis

Towards Monitoring Programmability in Future Internet: challenges and solutions

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

ncap: Wire-speed Packet Capture and Transmission

vpf_ring: Towards Wire-Speed Network Monitoring Using Virtual Machines

The ntop Project: Open Source Network Monitoring

On Multi Gigabit Packet Capturing With Multi Core Commodity Hardware

Open Source VoIP Traffic Monitoring

Intel DPDK Boosts Server Appliance Performance White Paper

Network Virtualization Technologies and their Effect on Performance

High Speed Network Traffic Analysis with Commodity Multi-core Systems

Software Datapath Acceleration for Stateless Packet Processing

Increasing Data Center Network Visibility with Cisco NetFlow-Lite

High-Speed Network Traffic Monitoring Using ntopng. Luca

Network Monitoring Comparison

vpf_ring: Towards Wire-Speed Network Monitoring Using Virtual Machines

Increasing Data Center Network Visibility with Cisco NetFlow-Lite

SDN software switch Lagopus and NFV enabled software node

WireCAP: a Novel Packet Capture Engine for Commodity NICs in High-speed Networks

How To Monitor And Test An Ethernet Network On A Computer Or Network Card

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

10 Gbit/s Line Rate Packet Processing Using Commodity Hardware: Survey and new Proposals

Infrastructure for active and passive measurements at 10Gbps and beyond

MIDeA: A Multi-Parallel Intrusion Detection Architecture

A Research Study on Packet Sniffing Tool TCPDUMP

I3: Maximizing Packet Capture Performance. Andrew Brown

RoCE vs. iwarp Competitive Analysis

Putting it on the NIC: A Case Study on application offloading to a Network Interface Card (NIC)

Enhancing Hypervisor and Cloud Solutions Using Embedded Linux Iisko Lappalainen MontaVista

Introduction to the NI Real-Time Hypervisor

MoonGen. A Scriptable High-Speed Packet Generator Design and Implementation. Paul Emmerich. January 30th, 2016 FOSDEM 2016

OpenFlow: Load Balancing in enterprise networks using Floodlight Controller

Stateful Inspection Technology

High-performance vswitch of the user, by the user, for the user

Application Latency Monitoring using nprobe

High-performance VoIP Traffic Optimizer Client Solution

Software-Defined Networking Architecture Framework for Multi-Tenant Enterprise Cloud Environments

Linux NIC and iscsi Performance over 40GbE

The new frontier of the DATA acquisition using 1 and 10 Gb/s Ethernet links. Filippo Costa on behalf of the ALICE DAQ group

High-Performance Many-Core Networking: Design and Implementation

Virtual Platforms Addressing challenges in telecom product development

Comparing and Improving Current Packet Capturing Solutions based on Commodity Hardware

EAGLE EYE IP TAP. 1. Introduction

Part Number: HG253s V2 Home Gateway Product Description V100R001_01. Issue HUAWEI TECHNOLOGIES CO., LTD.

Scalable Network Monitoring with SDN-Based Ethernet Fabrics

High-Density Network Flow Monitoring

Leveraging NIC Technology to Improve Network Performance in VMware vsphere

The Role of Virtual Routers In Carrier Networks

Packet Capture in 10-Gigabit Ethernet Environments Using Contemporary Commodity Hardware

OpenFlow Switching: Data Plane Performance

ntopng: Realtime Network Traffic View

Hardware Acceleration for High-density Datacenter Monitoring

Ensuring end-user quality in NFV-based infrastructures

Computer Networking. Definitions. Introduction

Collecting Packet Traces at High Speed

Configuring Your Computer and Network Adapters for Best Performance

Foundation for High-Performance, Open and Flexible Software and Services in the Carrier Network. Sandeep Shah Director, Systems Architecture EZchip

Design of an Application Programming Interface for IP Network Monitoring

Improving Passive Packet Capture: Beyond Device Polling

Promiscuous Monitoring in Ethernet and Wi-Fi Networks

How To Use Softxpand (A Thin Client) On A Pc Or Laptop Or Mac Or Macbook Or Ipad (For A Powerbook)

Deploying Network Taps for improved security

ΕΠΛ 674: Εργαστήριο 5 Firewalls

Network performance in virtual infrastructures

Network Monitoring on Multicores with Algorithmic Skeletons

ODP Application proof point: OpenFastPath. ODP mini-summit

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

APRIL 2010 HIGH PERFORMANCE NETWORK SECURITY APPLIANCES

VoIP Reliability in Managed Service Deployments

Observer Analysis Advantages

redborder IPS redborder Just common sense IPS overview Common sense

Consolidating Multiple Network Appliances

An Oracle Technical White Paper November Oracle Solaris 11 Network Virtualization and Network Resource Management

DB2 Connect for NT and the Microsoft Windows NT Load Balancing Service

Datacenter Operating Systems

Network Virtualization Based on Flows

Real-Time Virtualization How Crazy Are We?

Tempesta FW. Alexander Krizhanovsky NatSys Lab.

The IPTV-Analyzer OpenSourceDays 2012

TIME TO RETHINK PERFORMANCE MONITORING

White Paper. Solutions to VoIP (Voice over IP) Recording Deployment

Developing High-Performance, Flexible SDN & NFV Solutions with Intel Open Network Platform Server Reference Architecture

PCI Express Impact on Storage Architectures and Future Data Centers. Ron Emerick, Oracle Corporation

Transparent Optimization of Grid Server Selection with Real-Time Passive Network Measurements. Marcia Zangrilli and Bruce Lowekamp

Cisco NetFlow TM Briefing Paper. Release 2.2 Monday, 02 August 2004

Passively Monitoring Networks at Gigabit Speeds Using Commodity Hardware and Open Source Software. Luca Deri January 2003

Any-to-any switching with aggregation and filtering reduces monitoring costs

KVM PERFORMANCE IMPROVEMENTS AND OPTIMIZATIONS. Mark Wagner Principal SW Engineer, Red Hat August 14, 2011

Software Defined Networking (SDN) - Open Flow

Programmable Networking with Open vswitch

STANDPOINT FOR QUALITY-OF-SERVICE MEASUREMENT

Transcription:

10 Gbit Hardware Packet Filtering Using Commodity Network Adapters Luca Deri <deri@ntop.org> Joseph Gasparakis <joseph.gasparakis@intel.com>

10 Gbit Monitoring Challenges [1/2] High number of packets to be analyzed (10 times as much as 1 Gbit). CPU-based traffic analysis is not feasible at these speeds as it will result in severe packet loss. Packet filtering is very important, in particular on WANs, in order to early discard those packets that are not supposed to be analyzed.

10 Gbit Monitoring Challenges [2/2] Operating systems handle 10 Gbit adapters as legacy 10 Mbit adapters (use ethx for any speed). Modern computing architectures are grounded on multicore, where multiple threads of execution process data concurrently. The outcome is that basically only one core can handle incoming traffic.

OS Networking Limitations Capture Thread Capture Thread Capture Thread Capture Thread User space Kernel space Network Stack Single Resource Competition Merge and Split NIC Driver RX 0 RX 1 RX 2 RX 3 Sequential Polling RSS (Resource Side Scaling) 1-10 Gbit PHY

Hardware-based NICs FPGA-based Network Adapters Endace DAG Napatech Pros: ability to operate at wire rate Cons High cost (> 10k USD) Limited number of filtering rules (~32)

What about OpenFlow? Network protocol that allows to remotely control the forwarding plane in switches Traffic To Analyze Pros: Moves filtering in switches Monitor Probe Cons: OpenFlow Controller 10 Gbit OpenFlow switches are costly Complex architecture (cables & wires)

Why is Hw Filtering Important? It prevents unwanted traffic to reach the computer hence to waste CPU cycles. Filtering in software can lead to packet loss, thus having a negative drawback on analysis. Packet filtering is the cornerstone of efficiently dispatching incoming packets to available cores, that it s the only way to exploit modern computing architectures.

Modern Networking Architectures

PF_RING+TNAPI No Mutex Needed Userland Thread Thread Thread Thread Virtual PF_RING Ethernet PF_RING Threaded Polling RX RX RX RX RSS (Resource Side Scaling) [Hardware per-flow Balancing] 1 Gbit / 10 Gbit NIC TNAPI

Intel 82599 Ethernet Controller [1/3] Latest generation of Intel 10 Gbit Ethernet Controller. Ability do define up to 32 000 perfect rules per port (unlimited hashing rules). Commodity adapter (<350 USD/port). Hardware support for virtualization (i.e. in- NIC L2 Switch) and multi RX/TX queues. Limitation: OSs exploits only basic NIC capabilities.

Intel 82599 Ethernet Controller [2/3] In 82599 packet filtering is performed in hardware at wire rate. Filtering is necessary to decide to which RX queue a packet must be assigned. Assigning a packet to a non-existing RX queue (<= number of available CPU cores) drops the packet.

Intel 82599 Ethernet Controller [3/3]

PF_RING with 82599 Support RX Packet Match 5-tuple Filter No Match Flow Director Filter No Yes Yes RX defined by 5- tuple Filter RX defined by Flow Director Filter RSS RX Assigned RX RX RX RX RX PF_RING-aware Driver PF_RING # echo "+(1,1,1,tcp,192.168.0.10/32,25,10.6.0.0/16,0)" > proc/net/pf_ring/dev/eth2/rules # echo "+(2,2,tcp,0.0.0.0,25,10.6.0.0,0)" > proc/net/pf_ring/dev/eth2/rules

Using 82559 Filters in Real Life Signaling-based realtime multimedia (e.g. VoIP, IPTV) monitoring. Network Troubleshooting: Wireshark. Traffic Classification and Balancing. Lawful Interception of IP Traffic. 10 Gbit Firewalling.

10 Gbit Snorting User space Kernel space PF_RING RX 0 RX 1 RX 2 RX 3 82599 Packets Filtering Rules (via PF_RING DAQ) RSS (Resource Side Scaling) 1-10 Gbit PHY

Divide et Impera Network Monitoring Servers Selective Packet Drop on 82599 10 Gbit Traffic Splitter / Switch 10 Gbit Ingress Stream

Performance Figures [1/2] Single filtering rule matching all packets % Capture Rate vs- Packet sizes 100 % 75 % 50 % SW Filter HW Filter 64 128 256 512 Note: Using multiple filters increases significantly CPU usage when SW filters are used (Butterfly Effect), whereas filter number does not affect HW filters. 1024 1518 25 % 0 %

Performance Figures [2/2] Single filtering rule dropping all packets % CPU Load 100 % 75 % 50 % SW Filter HW Filter 64 128 256 512 1024 1518 25 % 0 % Note: As expected CPU is not loaded at all when HW filters are used.

Final Remarks Using hardware-assisted packet filtering and balancing allows network administrators to monitor and troubleshoot 10 Gbit networks using commodity hardware. Available at no cost (GNU GPL) from http://www.ntop.org/pf_ring.html L. Deri, J. Gasparakis and F. Fusco Wire-Speed Hardware Assisted Traffic Filtering with Mainstream Adapters Proceedings of NEMA 2010, October 2010