Network Layer

202403192331
Status: #idea
Tags: CN

Network Layer

IP Address

Subnets

Classless InterDomain Routing (CIDR)

Note

The rc file stores a static IP for a host UNIX host

Dynamic Host-Control Protocol (DHCP)

  1. DHCP DISCOVER - Broadcast
src: 0.0.0.0, 68
dest: 255.255.255.255, 67
yiaddr: 0.0.0.0
Transaction ID: <randomly generated integer = 654>
  1. DHCP OFFER - Broadcast
src: <DHCP server IP>, 67
dest: 255.255.255.255, 68
yiaddr: <IP address offered to the client>
transaction ID: 654
lifetime: 3600 secs
  1. DHCP REQUEST - Broadcast
src: 0.0.0.0, 68
dest: 255.255.255.255, 67
yiaddr: <IP offered to the client>
transaction ID: 654
lifetime: 3600 sec
  1. DHCP ACK - Broadcast
src: <DHCP server IP>, 67
dest: 255.255.255.255, 68
yiaddr: <IP offered to the client>
transaction ID: 654
lifetime: 3600 sec
Warning

For the purpose of this course, do NOT take n2 (for broadcast and network address)

Network Address Translation (NAT)

NAT Table

Attention

Maps based on port number and IP.

(WAN IP, WAN Port)(LAN IP, Private port)

Pasted image 20240321160304.png

Internet Control Message Protocol (ICMP)

TODO: Traceroute and ICMP


References