ARP – Mapping IPs and MAC addresses
@crayzeigh@hachyderm.io
17
Slide 18
ARP – Mapping IPs and MAC addresses – Necessary for your device to talk to your router
@crayzeigh@hachyderm.io
18
Slide 19
ARP – Mapping IPs and MAC addresses – Necessary for your device to talk to your router – Finds neighbors through broadcast @crayzeigh@hachyderm.io
19
Slide 20
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
20
Slide 21
Virtual Local Area Networks @crayzeigh@hachyderm.io
21
Slide 22
VLANs – Used for limiting broadcast domains
@crayzeigh@hachyderm.io
22
Slide 23
VLANs – Used for limiting broadcast domains – up to 4096
1.
1 VLANs
VXLAN addresses this limitation but that’s A Whole Other Thing
@crayzeigh@hachyderm.io
23
Slide 24
VLANs – Used for limiting broadcast domains – up to 4096
1 VLANs
– 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
24
Slide 25
@crayzeigh@hachyderm.io
25
Slide 26
Layer 3:
Internet Protocol Packets wrap your digital data and route it remotely @crayzeigh@hachyderm.io
26
Slide 27
Layer 3: Routing
Directing data to remote destinations @crayzeigh@hachyderm.io
27
Slide 28
IPv4 Packet Header
@crayzeigh@hachyderm.io
28
Slide 29
IP Address Classes and CIDR @crayzeigh@hachyderm.io
29
Slide 30
IP Classes & CIDR – Classless Inter-Domain Routing
@crayzeigh@hachyderm.io
30
Slide 31
IP Classes & CIDR – Classless Inter-Domain Routing – Helps determine destination locality, i.e. routing
@crayzeigh@hachyderm.io
31
Slide 32
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
32
Converts to Binary IP: 00001010.00001010.00001010.00001010 SM: 11111111.11111111.11111111.00000000
In the Subnet Mask: 1 = Network 0 = Host @crayzeigh@hachyderm.io
37
Slide 38
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
38
Slide 39
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
39
Slide 40
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
40
Slide 41
Weird Ones
@crayzeigh@hachyderm.io
41
Slide 42
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
42
Slide 43
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
43
Slide 44
Weird Ones Explained /32 – Single IP Address – useful generally for isolating public internet traffic @crayzeigh@hachyderm.io
44
Slide 45
IPv6 @crayzeigh@hachyderm.io
45
Slide 46
IPv6 Packet Header
@crayzeigh@hachyderm.io
46
Slide 47
IPv6 – 128 bits long (vs 32 bits for v4)
@crayzeigh@hachyderm.io
47
Slide 48
IPv6 – 128 bits long (vs 32 bits for v4) 32 2
≈
9 4.3x10
@crayzeigh@hachyderm.io
48
Slide 49
IPv6 – 128 bits long (vs 32 bits for v4) 32 2
≈
9 4.3x10
@crayzeigh@hachyderm.io
≈ 4.3 billion
49
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
57
Slide 58
Which one is correct? ff:0:0:0:1:0:0:1 1. ff::1:0:0:1 2. ff::1::1 (ambiguous) 3. ff:0:0:0:1::1 (longest 0’s must be 1.
1 shortened )
RFC 5952
@crayzeigh@hachyderm.io
58
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
65
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
68
Slide 69
How does the router know where the next hop in line is? @crayzeigh@hachyderm.io
69
Slide 70
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
70
Slide 71
BGP
@crayzeigh@hachyderm.io
71
Slide 72
BGP
@crayzeigh@hachyderm.io
72
Slide 73
BGP
@crayzeigh@hachyderm.io
73
Slide 74
Anycast
@crayzeigh@hachyderm.io
74
Slide 75
Anycast Benefits
@crayzeigh@hachyderm.io
75
Slide 76
Anycast Benefits
@crayzeigh@hachyderm.io
76
Slide 77
What Happens when you visit a website?
@crayzeigh@hachyderm.io
77
Slide 78
@crayzeigh@hachyderm.io
78
Slide 79
Try it! use discount code ato2023 for $300 credit
http://eqix.co/metal @crayzeigh@hachyderm.io
79
Slide 80
Getting Started check out our youtube channel for tips and ideas http://eqix.co/start-metal @crayzeigh@hachyderm.io
80