V6 World Congress ratools field test
-
Upload
danrlde -
Category
Technology
-
view
205 -
download
0
Transcript of V6 World Congress ratools field test
![Page 1: V6 World Congress ratools field test](https://reader031.fdocuments.us/reader031/viewer/2022032217/55a92e1e1a28ab34578b46ab/html5/thumbnails/1.jpg)
danrldedanrl/ratools.git
ratools Field Test 2014
Dan Lüdtke
![Page 2: V6 World Congress ratools field test](https://reader031.fdocuments.us/reader031/viewer/2022032217/55a92e1e1a28ab34578b46ab/html5/thumbnails/2.jpg)
danrldedanrl/ratools.git
Dan Lüdtke
• Network Engineer • Open Source Developer • Author of German book
IPv6-Workshop • AS57821 (hobby)
![Page 3: V6 World Congress ratools field test](https://reader031.fdocuments.us/reader031/viewer/2022032217/55a92e1e1a28ab34578b46ab/html5/thumbnails/3.jpg)
danrldedanrl/ratools.git
ratools
• An IPv6 router advertisement daemon
• A command line control utility
• Corresponding systemd unit files and bash completion scripts
• An implementation as close as possible to the RFCs
![Page 4: V6 World Congress ratools field test](https://reader031.fdocuments.us/reader031/viewer/2022032217/55a92e1e1a28ab34578b46ab/html5/thumbnails/4.jpg)
danrldedanrl/ratools.git
Why ratools?Evaluating RA daemons for Linux I was bothered by
• the inability to advertise admin-defined source link-layer addresses
• the lack of support for ICMPv6 RDNSS option
• implementations that do not keep state
• the RFC ignorance when it comes to de-advertising
![Page 5: V6 World Congress ratools field test](https://reader031.fdocuments.us/reader031/viewer/2022032217/55a92e1e1a28ab34578b46ab/html5/thumbnails/5.jpg)
danrldedanrl/ratools.git
![Page 6: V6 World Congress ratools field test](https://reader031.fdocuments.us/reader031/viewer/2022032217/55a92e1e1a28ab34578b46ab/html5/thumbnails/6.jpg)
danrldedanrl/ratools.git
$ ip addr show 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP>
mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:0c:29:28:fd:4c
brd ff:ff:ff:ff:ff:ff
inet6 fe80::20c:29ff:fe28:fd4c/64 scope link
valid_lft forever preferred_lft forever
![Page 7: V6 World Congress ratools field test](https://reader031.fdocuments.us/reader031/viewer/2022032217/55a92e1e1a28ab34578b46ab/html5/thumbnails/7.jpg)
danrldedanrl/ratools.git
![Page 8: V6 World Congress ratools field test](https://reader031.fdocuments.us/reader031/viewer/2022032217/55a92e1e1a28ab34578b46ab/html5/thumbnails/8.jpg)
danrldedanrl/ratools.git
![Page 9: V6 World Congress ratools field test](https://reader031.fdocuments.us/reader031/viewer/2022032217/55a92e1e1a28ab34578b46ab/html5/thumbnails/9.jpg)
![Page 10: V6 World Congress ratools field test](https://reader031.fdocuments.us/reader031/viewer/2022032217/55a92e1e1a28ab34578b46ab/html5/thumbnails/10.jpg)
danrldedanrl/ratools.git
# ractl [email protected] dump
[email protected] create [email protected] set maximum-interval 0h5m0s [email protected] set minimum-interval 0h1m0s
[email protected] enable
![Page 11: V6 World Congress ratools field test](https://reader031.fdocuments.us/reader031/viewer/2022032217/55a92e1e1a28ab34578b46ab/html5/thumbnails/11.jpg)
danrldedanrl/ratools.git
# ractl [email protected] show Router Advertisement `[email protected]': State: Enabled Created: 2014-12-28 01:00:59 Updated: 2014-12-28 01:01:30 Version: 26/26 Interface ID: 6 (eth2.3000) Interface State: 1 (Up) Interface MTU: 1500 Hardware Address: 90:e2:ba:62:a7:0c Link-local Address: :: Maximum Interval: 300 (0d 0h 5m 0s) Minimum Interval: 60 (0d 0h 1m 0s) Solicited/Unsolicited: 184/0 Unicast/Multicast: 0/184 Total RAs: 184 (20608 Bytes) Next RA scheduled: 2014-12-28 10:12:34 Current Hop Limit: 64 Managed Flag: 0 (No Managed Address Configuration) Other Managed Flag: 0 (No Other Managed Configuration) Home Agent Flag: 0 (No Mobile IPv6 Home Agent) Router Preference: 00 (Medium) NDP Proxy Flag: 0 (No NDP Proxy) Lifetime: 1800 (0h 30m 0s) Reachable Time: 0 (0h 0m 0s 0ms) Retransmission Timer: 0 (0h 0m 0s 0ms)
![Page 12: V6 World Congress ratools field test](https://reader031.fdocuments.us/reader031/viewer/2022032217/55a92e1e1a28ab34578b46ab/html5/thumbnails/12.jpg)
CC-BY Moritz Petersen
• Annual 4-day international hacker conference
• Chaos Computer Club
• 2014: 12k visitors
• Hackers love Internet
![Page 13: V6 World Congress ratools field test](https://reader031.fdocuments.us/reader031/viewer/2022032217/55a92e1e1a28ab34578b46ab/html5/thumbnails/13.jpg)
danrldedanrl/ratools.git
c3noc• Let’s build a medium-sized ISP
network around xmas!
• Access
• LAN
• WiFi
• ~20k unique devices
• ~8k devices peak
• 40-100G uplink
• EUR 3mn worth of equipment
![Page 14: V6 World Congress ratools field test](https://reader031.fdocuments.us/reader031/viewer/2022032217/55a92e1e1a28ab34578b46ab/html5/thumbnails/14.jpg)
danrldedanrl/ratools.git
ratools Field Test
• Does it work?
• Does it scale?
• Finding bugs!
![Page 15: V6 World Congress ratools field test](https://reader031.fdocuments.us/reader031/viewer/2022032217/55a92e1e1a28ab34578b46ab/html5/thumbnails/15.jpg)
danrldedanrl/ratools.git
NAT64 Setup
ROB*
*Ridiculously Oversized Box
Core Router
NAT64 DNS64
Legacy Internet Internet
WiFi, LAN, …
RAIP
legacy IP
NAT64 IP
![Page 16: V6 World Congress ratools field test](https://reader031.fdocuments.us/reader031/viewer/2022032217/55a92e1e1a28ab34578b46ab/html5/thumbnails/16.jpg)
danrldedanrl/ratools.git
Does it work?
yes
no
yes
almost
no sleep :)
![Page 17: V6 World Congress ratools field test](https://reader031.fdocuments.us/reader031/viewer/2022032217/55a92e1e1a28ab34578b46ab/html5/thumbnails/17.jpg)
danrldedanrl/ratools.git
Why did it crash?
• More users joined the NAT64 network
• Database dead-locked
• pthread_rwlock_wrlock() and friends…
• Rewrote the database code!
![Page 18: V6 World Congress ratools field test](https://reader031.fdocuments.us/reader031/viewer/2022032217/55a92e1e1a28ab34578b46ab/html5/thumbnails/18.jpg)
danrldedanrl/ratools.git
Does it scale?
![Page 19: V6 World Congress ratools field test](https://reader031.fdocuments.us/reader031/viewer/2022032217/55a92e1e1a28ab34578b46ab/html5/thumbnails/19.jpg)
danrldedanrl/ratools.git
Does it scale?
control socketerror
![Page 20: V6 World Congress ratools field test](https://reader031.fdocuments.us/reader031/viewer/2022032217/55a92e1e1a28ab34578b46ab/html5/thumbnails/20.jpg)
danrldedanrl/ratools.git
Does it scale?
db codeoptimization
configfuzzingtests
![Page 21: V6 World Congress ratools field test](https://reader031.fdocuments.us/reader031/viewer/2022032217/55a92e1e1a28ab34578b46ab/html5/thumbnails/21.jpg)
danrldedanrl/ratools.git
Does it scale?
configfuzzingtests
![Page 22: V6 World Congress ratools field test](https://reader031.fdocuments.us/reader031/viewer/2022032217/55a92e1e1a28ab34578b46ab/html5/thumbnails/22.jpg)
danrldedanrl/ratools.git
Does it scale?configfuzzingtests
hackers asleep
![Page 23: V6 World Congress ratools field test](https://reader031.fdocuments.us/reader031/viewer/2022032217/55a92e1e1a28ab34578b46ab/html5/thumbnails/23.jpg)
danrldedanrl/ratools.git
Does it scale?control socket
error
![Page 24: V6 World Congress ratools field test](https://reader031.fdocuments.us/reader031/viewer/2022032217/55a92e1e1a28ab34578b46ab/html5/thumbnails/24.jpg)
danrldedanrl/ratools.git
Does it scale?
![Page 25: V6 World Congress ratools field test](https://reader031.fdocuments.us/reader031/viewer/2022032217/55a92e1e1a28ab34578b46ab/html5/thumbnails/25.jpg)
danrldedanrl/ratools.git
![Page 26: V6 World Congress ratools field test](https://reader031.fdocuments.us/reader031/viewer/2022032217/55a92e1e1a28ab34578b46ab/html5/thumbnails/26.jpg)
danrldedanrl/ratools.git
plans