Background Flashcards
Does layer 1 have a way to communicate from device to device?
No, it’s like shouting in a room. Everyone hears/sees communication
Does a device operating at layer 4 have only layer 4 capabilities?
No, it has layer 4 and all of the way down.
What is another name for layer 2
Data link
What is the most common layer 2 protocol?
Ethernet
Addressing protocol in layer 2
MAC address
Transmission encapsulation in layer 2
Frames
Two parts of a mac address
24 bits of manufacturer info
24 bits of uniqueness
Layer 2 Frame mac header includes (3 things)
Dest MAC address
Source MAC Address
Layer 3 protocol, typically IP
Difference between hub and switch
Hub is layer 1 (collisions and dumb and broadcast)
Switch is layer 2 (MAC address table, store & forward)
IP Address to binary

What is another way to think of /16 or /25
The number of 1’s in the subnet mask
In a router’s route table, is a more specific route preferred or generic?
More specific. /anything more specfic than /0 will be selected.
What is ARP?
Address Resolution Protocol, getting MAC addresses for IP Addresses
This device moves packets from source to destination, encapsulating things in new layer 2 frames on the way, using ARP to find the next MAC to IP mapping
Router
Two protocols operating at layer 4
TCP
UDP
TCP segments are encapsulated in these
IP Packets
Do TCP segments have SCR/DST information?
No, rely on IP packets for device addressing
What is NAT?
Network Address Transalation - Translates source IP address to something else, often private IP to public. Helps with shortage of IPV4 addresses.
In static NAT, the router maintains a NAT table and this kind of relationship of internal IP’s to external IPs
1:1, each internal source gets a different external IP.
Dynamic NAT has a small pool of IP and allocates them in this kind of manner
Temporary (if IPs run out, possible a request from a new internal client could fail)
Dynamic NAT: What kind of mapping relationship exists from internal to the limited pool of external address?
Also 1:1, for the duration of the allocation
Port Address Translation creates a NAT table and maps internal devices to external IPs in this way
Many internal to 1 External, also mapping to new client ports to avoid collision
2 Common examples of Port Address Translation
Home routers
AWS NAT Gateway
AWS Example of Static NAT implementation
Internet Gateway (IGW)