Anda di halaman 1dari 12

CGN Logging: Horror Stories & Happy Endings

Chris Grundemann :: NANOG 54 :: 7 February 2012

CGN Logging
Horror Stories
o o

CGN logs required Testing results Current options Deterministic reservation

Happy Endings
o o

Cable Television Laboratories, Inc. 2012. All Rights Reserved. Proprietary/Confidential.

2/9/12

Identity Traceback Illustration


DHCP Log
A:10.0.0.1 B:10.0.0.2 C:10.0.0.3

Webserver log
204.57.36.2:4567 - - [10/ Oct/2010:13:55:36 -0700] "GET /illegal.html HTTP/ 1.0" 200 2326

: 10.0.0.1

CGN Log
: 10.0.0.2 10.0.0.2:1234 -> 204.57.36.2:4567 [10/Oct/ 2010:13:55:36 -0700] 10.0.0.1:1234 -> 204.57.36.2:2345 [10/Oct/ 2010:13:55:38-0700] 10.0.0.3:4356 -> 204.57.36.2:3456 [10/Oct/ 2010:13:55:45 -0700] 10.0.0.2:3456 -> 204.57.36.2:4569 [10/Oct/ 2010:13:55:47 -0700]
2/9/12

Cable Television Laboratories, Inc. 2012. All Rights Reserved. Proprietary/Confidential.

CGN Testing Background


CableLabs first conducted CGN testing in 2010 Second round June Sep, 2011
o

Both NAT444 and DS-Lite

Additional CGN testing in IPv6 interop events Logging has been one aspect of testing

Cable Television Laboratories, Inc. 2012. All Rights Reserved. Proprietary/Confidential.

2/9/12

CGN Logging Feature Highlights


Remote reporting supports Syslog only Template for logging is currently not configurable Syslog facility is configurable Data fields include: Time Stamp, Source IP/Port, NAT IP/Port, Destination IP/Port, Host Name
o o

173 542 bytes (DS-Lite) 150 450 bytes (NAT444)

Cable Television Laboratories, Inc. 2012. All Rights Reserved. Proprietary/Confidential.

2/9/12

CGN Logging (DS-Lite)

Cable Television Laboratories, Inc. 2012. All Rights Reserved. Proprietary/Confidential.

2/9/12

CGN Logging (NAT444)

Cable Television Laboratories, Inc. 2012. All Rights Reserved. Proprietary/Confidential.

2/9/12

The Horror (log volumes)


150 - 450 bytes/connection + 33k - 216k connections per sub per day -------------------------------------------------------------5 - 96 MB / user / day

Thats potentially over 1 PB per 1M subs per month Its also over 20Mbps for just the log stream
8
Cable Television Laboratories, Inc. 2012. All Rights Reserved. Proprietary/Confidential. 2/9/12

Log Reduction Strategies


Port block reservations
o

Reduce logging up to 100x Reduces volume, but not search time See next slide

Log compression
o

Deterministic reservation
o

Cable Television Laboratories, Inc. 2012. All Rights Reserved. Proprietary/Confidential.

2/9/12

Proposal: Deterministic Port Reservation


draft-donley-behave-deterministic-cgn Collect inside range, outside range, compression ratio
o o o o o

Compression ratio inside/outside Inside range/compression ratio = ports/user Set aside well-known ports (<1024) & dynamic overflow range Pre-reserve port ranges for each internal IP address Allow dynamic reservation above that threshold
Remote logging only required for dynamic reservations Still need state logging locally for every active connection

Limitation: Requires low compression ratios


10
Cable Television Laboratories, Inc. 2012. All Rights Reserved. Proprietary/Confidential. 2/9/12

The Happy Ending


DHCP

Reserved Port (e.g. 80)

CGN Device

IP 1 Reserved Pool

Static, PCP, portal, etc.

CGN Mapping Table

Subscriber 1 (DHCP STP Address 1) Subscriber 2 (DHCP STP Address 2) Subscriber 3 (DHCP STP Address 3) Subscriber 4 (DHCP STP Address 4)
11

IP 1, Port Pool 1 IP 1, Port Pool 2 Pool IP 1, Port exhausted Pool 3 IP 1, Port Pool 4
IP 1 Logging Bulk Pool
2/9/12

Required

Cable Television Laboratories, Inc. 2012. All Rights Reserved. Proprietary/Confidential.

Questions?

Chris Grundemann c.grundemann@cablelabs.com

12

Cable Television Laboratories, Inc. 2012. All Rights Reserved. Proprietary/Confidential.

2/9/12

Anda mungkin juga menyukai