ARP – Mapping IPs and MAC addresses
@crayzeigh@hachyderm.io
20
Slide 21
ARP – Mapping IPs and MAC addresses – Necessary for your device to talk to your router
@crayzeigh@hachyderm.io
21
Slide 22
ARP – Mapping IPs and MAC addresses – Necessary for your device to talk to your router – Finds neighbors through broadcast
@crayzeigh@hachyderm.io
22
Slide 23
ARP – Mapping IPs and MAC addresses – Necessary for your device to talk to your router – Finds neighbors through broadcast – arp -a for your local table @crayzeigh@hachyderm.io
23
Slide 24
Virtual Local Area Networks @crayzeigh@hachyderm.io
24
Slide 25
VLANs – Used for limiting broadcast domains
@crayzeigh@hachyderm.io
25
Slide 26
VLANs – Used for limiting broadcast domains – up to 4096 VLANs
1.
1
VXLAN addresses this limitation but that’s A Whole Other Thing
@crayzeigh@hachyderm.io
26
Slide 27
VLANs – Used for limiting broadcast domains – up to 4096 VLANs
1
– Can be native (default traffic on a switch port) or tagged (logically divided in packet header)
1.
VXLAN addresses this limitation but that’s A Whole Other Thing
@crayzeigh@hachyderm.io
27
Slide 28
@crayzeigh@hachyderm.io
28
Slide 29
Layer 3:
Internet Protocol Packets wrap your digital data and route it remotely @crayzeigh@hachyderm.io
29
Slide 30
Layer 3: Routing
Directing data to remote destinations @crayzeigh@hachyderm.io
30
Slide 31
IPv4 Packet Header
@crayzeigh@hachyderm.io
31
Slide 32
IP Address Classes and CIDR @crayzeigh@hachyderm.io
32
Slide 33
IP Classes & CIDR – Classless Inter-Domain Routing
@crayzeigh@hachyderm.io
33
Slide 34
IP Classes & CIDR – Classless Inter-Domain Routing – Helps determine destination locality, i.e. routing
@crayzeigh@hachyderm.io
34
Slide 35
IP Classes & CIDR – Classless Inter-Domain Routing – Helps determine destination locality, i.e. routing – CIDR replaced “class a/b/c” IP addressing to help address IP address availability
@crayzeigh@hachyderm.io
35
Converts to Binary IP: 00001010.00001010.00001010.00001010 SM: 11111111.11111111.11111111.00000000
In the Subnet Mask: 1 = Network 0 = Host @crayzeigh@hachyderm.io
40
Slide 41
Special IPs – Broadcast (ex. 10.10.10.255) – host bits are all 1’s – For sending data to all hosts in a network – Network (ex. 10.10.10.0) – host bits are all 0’s – only used for forwarding data between routers @crayzeigh@hachyderm.io
41
Slide 42
Putting it all together CIDR
10.10.10.10/24
Network
10.10.10.0/24
Broadcast IP
10.10.10.255
Available Host IPs
10.10.10.1 - 254
@crayzeigh@hachyderm.io
42
Slide 43
Bigger Networks CIDR
192.168.1.100/22
Network
192.168.0.0/22
Broadcast IP
192.168.3.255
Available Host IPs
192.168.0.1 - 192.168.3.254
@crayzeigh@hachyderm.io
43
Slide 44
Weird Ones
@crayzeigh@hachyderm.io
44
Slide 45
Weird Ones Explained /30 – “Costs” 4 IPs, but only gives 2 host addresses – Broadcast & Network IPs still required – Used for legacy compatibility or you just really like holding IP addresses
@crayzeigh@hachyderm.io
45
Slide 46
Weird Ones Explained /31 – Creates 2 adjacent host IPs – Only “costs” 2 IPs – Proposed in RFC3021 (in 2000) to combat dwindling IP availability
@crayzeigh@hachyderm.io
46
Slide 47
Weird Ones Explained /32 – Single IP Address – useful generally for isolating public internet traffic
@crayzeigh@hachyderm.io
47
Slide 48
IPv6
@crayzeigh@hachyderm.io
48
Slide 49
IPv6 Packet Header
@crayzeigh@hachyderm.io
49
Slide 50
IPv6 – 128 bits long (vs 32 bits for v4)
@crayzeigh@hachyderm.io
50
Slide 51
IPv6 – 128 bits long (vs 32 bits for v4) 32 9 2 ≈ 4.3x10
@crayzeigh@hachyderm.io
51
Slide 52
IPv6 – 128 bits long (vs 32 bits for v4) 32 9 2 ≈ 4.3x10 ≈ 4.3 billion
@crayzeigh@hachyderm.io
52
Which one is correct? ff:0:0:0:1:0:0:1 1. ff::1:0:0:1 2. ff::1::1 3. ff:0:0:0:1::1
@crayzeigh@hachyderm.io
60
Slide 61
Which one is correct?
ff:0:0:0:1:0:0:1 1. ff::1:0:0:1 2. ff::1::1 (ambiguous) 1
3. ff:0:0:0:1::1 (longest 0’s must be shortened ) 1.
RFC 5952
@crayzeigh@hachyderm.io
61
Checks network space to see address is local 2. Sends local ARP broadcast to find MAC of destination 3. wraps packet in frame with newly discovered MAC 4. sends data frame through switch to destination “directly”
@crayzeigh@hachyderm.io
68
Checks network space and see’s address is remote 2. Wraps packet in frame with router’s mac address and desired destination IP, forwards to router 3. Forwards frame to the router, router re-wraps packet with a frame pointing to the next router in line 4. And so on until the local router for 1.1.1.1 receives the packet and wraps in the final destination frame @crayzeigh@hachyderm.io
71
Slide 72
How does the router know where the next hop in line is?
@crayzeigh@hachyderm.io
72
Slide 73
Routing Tables 3 Types of Routes: – Connected: The networks connected to your interfaces – Static: Manually set, e.g. Default Route/Gateway – Learned: Learned from advertising peers, e.g. via BGP @crayzeigh@hachyderm.io
73
Slide 74
BGP
@crayzeigh@hachyderm.io
74
Slide 75
BGP
@crayzeigh@hachyderm.io
75
Slide 76
BGP
@crayzeigh@hachyderm.io
76
Slide 77
Anycast
@crayzeigh@hachyderm.io
77
Slide 78
Anycast Benefits
@crayzeigh@hachyderm.io
78
Slide 79
Anycast Benefits
@crayzeigh@hachyderm.io
79
Slide 80
What Happens when you visit a website?
@crayzeigh@hachyderm.io
80
Slide 81
@crayzeigh@hachyderm.io
81
Slide 82
Try it! use discount code THATCONF23 for $800 credit
http://eqix.co/metal /assets/Simple_Footer_center.png @crayzeigh@hachyderm.io
82
Slide 83
Getting Started check out our youtube channel for tips and ideas
http://eqix.co/start-metal @crayzeigh@hachyderm.io
83