• No results found

Challenges in NetFlow based Event Logging

N/A
N/A
Protected

Academic year: 2021

Share "Challenges in NetFlow based Event Logging"

Copied!
24
0
0

Loading.... (view fulltext now)

Full text

(1)

Challenges in NetFlow

based Event Logging

Stefan Künkel

IsarNet

sk@isarnet.de

(2)

Agenda

Introduction

Getting Events

Example NSEL

What is it?

Analysis

Example CGN

Motivation

NAT overview

NAT Logging

Analysis

Summary

Take aways

Challenges in NetFlow based Event Logging © 2012 IsarNet SWS GmbH Page 2 4/3/2012

(3)

About IsarNet

• IsarNet offers highly specialized consulting

services, software solutions and workshops

covering all aspects of networking

• 34 CCIEs

• 3 CCDEs

• Located in Munich, Germany

Page 3 4/3/2012 Challenges in NetFlow based Event Logging © 2012 IsarNet SWS GmbH

(4)

IsarFlow at a glance

NetFlow

enabled Network

IsarFlow

Analyzer

NetFlow

Export

Analyses

Automated

reports via

e-mail

Automated storage

of reports and

accounting data

Threshold

monitoring

and alerting

SNMP, QoS,

IPSLA

A decade of NetFlow experience!

Page 4 4/3/2012 Challenges in NetFlow based Event Logging © 2012 IsarNet SWS GmbH

(5)

Getting Events

Page 5 4/3/2012 Challenges in NetFlow based Event Logging © 2012 IsarNet SWS GmbH

NetFlow based Event logging

not only new NetFlow export templates

not only new traffic in network

new requirements for collector and data storage

new ways to analyse data

Examples NSEL & CGN

„Classic NetFlow“ is data traffic information

Example Analysis

Protocol Overview

Top Session and Top Talker

(6)

NetFlow Security Event logging

Cisco: NetFlow export from the ASA

ASA: Cisco’s Firewall

Bidirectional flows are already assembled internally

Event driven data export

creation

denial

teardown

NSEL

Page 6 4/3/2012

But what about Syslog?

(7)

NSEL Analysis

Page 7 4/3/2012

Filter

Device or Interfaces

Source IP

(v4 & v6)

Destination IP

(v4 & v6)

Username

Protocol

Destination Port

Event Type

Timeframe

Challenges in NetFlow based Event Logging © 2012 IsarNet SWS GmbH

(8)

NSEL Analysis

4/3/2012

more

details

Challenges in NetFlow based Event Logging © 2012 IsarNet SWS GmbH

…still under development

user1

(9)

Carrier Grade NAT

aka Large Scale Nat (LSN)

Motivation

NAT overview

NAT Logging

Analysis

Summary

CGN

Page 9 4/3/2012 Challenges in NetFlow based Event Logging © 2012 IsarNet SWS GmbH

(10)

Motivation

Problem

Increasing number of IP-enabled (mobile) devices

IPv4 Address space exhausted

Solutions

1.

Efficient use of remaining IPv4 addresses

2.

Migration to IPv6 (+translations to reach IPv4)

both require address translation!

Implementation

Address translation in the provider network

Carrier Grade Network Address Translation

…CGNs will exist for several years (forever?)

…should use IPv4 addresses efficiently (many subscribers per public IPv4 Address)

4/3/2012 page 10

http://www.potaroo.net/tools/ipv4/

(11)

NAT overview

NAT 44 / NAT 444

4/3/2012 page 11

Public IPv4 Internet

CPE (NAT)

RFC 1918 private addresses

or shared transition space

(draft-weil-shared-transition-space-request-15)

More efficient usage of IPv4 resources

Application Layer Gateway (ALG) for IP-address-bound applications

Short-term solution – no IPv6 deployed

Private IPv4

(provider)

Private IPv4

(customer)

ALG

NAT

CGN

(12)

Public IPv4 Internet

IPv6 provider

network

NAT overview

NAT 64, RFC 6146

4/3/2012 page 12

IPv6 Internet

Provider network fully migrated to IPv6

IPv6 clients only

IPv4 content reachable via DNS64-translation and NAT

Long-term solution – will be there for several years (?)

ALG

NAT

DNS64

Routing

IPv4

service

IPv6

service

CGN

(13)

IPv6 provider

network

NAT overview

Dual Stack Lite (DS-Lite), RFC 6333

4/3/2012 page 13

Private IPv4

(customer)

IPv6

Internet

IPv6

(customer)

IPv4

service

IPv6

service

ALG

NAT 44

Tunnel

Routing

CPE

Dual stack

client

Directly

connected

device

(internal dual stack)

Dual Stack from client point of view

IPv4 and/or IPv6 clients/applications

Provider network IPv6 only

IPv6

IPv4

v6App

v4App

Tunnel

Public IPv4

Internet

Tunnel

Routing

CGN

(14)

Implementation & Deployment

Exemplary CGN device: Cisco CGSE for CRS-1

Performance

Concurrent sessions: 20 Million

Session creation rate: 1 Msessions/s

Throughput: 20 Gbps full-duplex

Default configuration

Portlimit 100

Timeouts (inital/active)

TCP timeout 120s/1800s

UDP timeout 30s/120s

ICMP timeout: 60 s

(15)

NAT Logging

4/3/2012 page 15

Special version of IsarFlow

monitoring system:

IsarFlow CGN

Log analysis

CGN event

logging system

CGN events via NetFlow

(session created/deleted)

(16)

NAT Logging

Logging requirements and solutions

Worst case scenario for dimensioning: failover

All sessions of one location move to other locations

Event-burst from one CGSE

20 Million add events in 20 seconds

1 Mevents/s → 180 Mbit/s

Performance of IsarFlow CGN

NAT 44 performance per server (COTS Linux box)

1.5 Mevents/s → 270 Mbit/s sustained rate

Loading of data into compressed database at that rate

Peak rate beyond 3 Mevents/s (540 Mbit/s) without loss

Performance scales with number of servers (distributed DB)

Storage requirements: 8 MB for 1 Million sessions (compressed)

(17)

CGN Analysis NAT44

(18)

CGN Analysis NAT64

(19)

CGN Analysis events

Typical event rate patterns

4/3/2012 Challenges in NetFlow based Event Logging © 2012 IsarNet SWS GmbH page 19

(20)

NAT Logging

Ideas for reducing logging effort

Bulk port allocation

Allocate several ports at once for each client

One log event for large port range

Problem:

deterministic source ports are a security problem (RFC 6056)

Possible solution:

algorithmic port scattering

General problem of bulk port allocation

Bulk allocation is „port over-provisioning“ →

lower NAT efficiency

Trade-off

4/3/2012 page 20

NAT efficiency

(cost of public

IPv4 addresses)

Logging efficiency

(cost of hard

disk space)

(21)

Traffic impact

First studies of traffic characteristics

Based on inspection of 400k sessions

No surprise: lots of short sessions

Cause h

igh NAT event rates

Affect NAT efficiency: timeout until port can be reused

Avg. Session duration (incl. timeouts) – 135 s

> 30 % UDP sessions (!)

DNS Resolver in public IP space?

SIP/VoIP also across NAT?

Evil Traffic?

(22)

Summary CGN

Summary

Carrier grade NATs are currently getting deployed

Still lots of standardization effort and new ideas

(IETF Softwire, Behave, v6ops…)

NAT session logging is a major concern

IsarFlow CGN proves feasibility of large-scale full session logging

Bulk allocation: Trade-off between NAT efficiency and logging

Traffic impact

Portlimit: limited number of sessions per user

Timeouts: keepalives necessary, as with current CPE NATs

Short sessions: Cause high event rates and block resources due to

timeouts

(23)

Take aways

Events are different from classic network traffic data

Events can not be summarized or aggregated

Logging introduces a new dimension for flow-rates

New ways to analyze events

Do we need to cross classic traffic information with events?

Please discuss with us?

What are your questions?

(24)

4/3/2012 IsarFlow Overview © 2012 IsarNet SWS GmbHIsarNet & IsarFlow © 2009 IsarNet SWS GmbH Page 24Seite 24

References

Related documents

Regarding the former, it might be rashly assumed that, of the four regiments authorized to form in 1861, the 63 rd New York State Volunteer Infantry, because of its

the ARB suggested that an innocent violation of an SEC rule may give rise to jurisdiction under SOX if an employee were retaliated against for reporting it. While it was merely

However, parental delegation of these medications, when a school nurse is not available to administer them, is allowed in 12 AAC 44.975, Exclusions (2) under “other legal authority.”

substance or its metabolites or markers’ banned; the use or the attempted use of a prohibited substances or a prohibited method; the refusing or the failing, without

But in the materialistic age in which we live today, man’ s great danger is forgetting that he is not a creature of time, but of eternity - that within his body there dwells a

Each interview consisted of providing a description of the research study, documenting the responses of adult participants, and identifying the factors that influence

First, the model computes variable costs per vehicle-km based on average fuel consumption factors for each technology and country- specific fuel prices provided by the POLES