Professional Documents
Culture Documents
Communication Networks
EE-357 -TE-55
By Dr Mir Yasir Umair
Assistant Professor, MCS, NUST
Network Layer
Internet Protocol
Chapter 4: outline
4.1 introduction 4.5 routing algorithms
4.2 virtual circuit and datagram networks o link state
o distance vector
4.3 what’s inside a router
o hierarchical routing
4.4 IP: Internet Protocol
4.6 routing in the Internet
o datagram format
o RIP
o IPv4 addressing
o OSPF
o ICMP
o BGP
o IPv6
4.7 broadcast and multicast
routing
physical layer
…
link-level frame in: one large datagram
o different link types, different out: 3 smaller datagrams
MTUs
• large IP datagram
divided
reassembly
(“fragmented”)
within net
o one datagram becomes
several datagrams
…
o “reassembled” only at final
destination
o IP header bits used to
identify, order related
fragments
Network Layer 4-6
IP fragmentation, reassembly
length ID fragflag offset
example: =4000 =x =0 =0
❖ 4000 byte datagram
one large datagram becomes
❖ MTU = 1500 bytes several smaller datagrams
subnet host
part part
11001000 00010111 00010000 00000000
200.23.16.0/23
between host/router
and physical link 223.1.1.3
223.1.3.27
multiple interfaces
o host typically has one
or two interfaces (e.g., 223.1.3.1 223.1.3.2
wired Ethernet, wireless
802.11)
• IP addresses
associated with each 223.1.1.1 = 11011111 00000001 00000001 00000001
interface 223 1 1 1
that in chapter 5, 6.
223.1.3.27
223.1.1.3
223.1.2.2
223.1.3.1 223.1.3.2
network is called a
subnet 223.1.3.0/24
223.1.1.3
223.1.9.2 223.1.7.0
223.1.9.1 223.1.7.1
223.1.8.1 223.1.8.0
223.1.2.6 223.1.3.27
DHCP
223.1.1.0/24
server
223.1.1.1 223.1.2.1
223.1.2.0/24
223.1.3.1 223.1.3.2
223.1.3.0/24
Network Layer 4-17
DHCP client-server scenario
DHCP server: 223.1.2.5 DHCP discover arriving
client
src : 0.0.0.0, 68
Broadcast: is there a
dest.: 255.255.255.255,67
DHCPyiaddr:
server 0.0.0.0
out there?
transaction ID: 654
DHCP offer
src: 223.1.2.5, 67
Broadcast: I’m a DHCP
dest: 255.255.255.255, 68
server! Here’s an IP
yiaddrr: 223.1.2.4
address youID:can
transaction 654 use
lifetime: 3600 secs
DHCP request
src: 0.0.0.0, 68
Broadcast: OK. I’ll take
dest:: 255.255.255.255, 67
yiaddrr: 223.1.2.4
that IP address!
transaction ID: 655
lifetime: 3600 secs
DHCP ACK
src: 223.1.2.5, 67
Broadcast: OK. You’ve
dest: 255.255.255.255, 68
yiaddrr: 223.1.2.4
got that IPID:
transaction address!
655
lifetime: 3600 secs
Network Layer 4-18
EE 451 Mobile Communications
DHCP: more than IP addresses
DHCP can return more than just allocated IP address on subnet:
▪ address of first-hop router for client (default gateway)
▪ name and IP address of DNS sever
▪ network mask (indicating network versus host portion of address)
❖ encapsulation of DHCP
DHCP DHCP server, frame forwarded
DHCP UDP to client, demuxing up to
DHCP IP DHCP at client
DHCP Eth router with DHCP
DHCP
Phy server built into ❖ client now knows its IP
router address, name and IP
address of DSN server, IP
address of its first-hop
router
10.0.0.4
10.0.0.2
138.76.29.7
10.0.0.3
3 probes
Network Layer 4-31
IPv6: motivation
• initial motivation: 32-bit address space soon to be completely
allocated.
• additional motivation:
o header format helps speed processing/forwarding
o header changes to facilitate QoS
data
32 bits 4-33
Network Layer
Other changes from IPv4
• checksum: removed entirely to reduce processing time at each hop
• options: allowed, but outside of header, indicated by “Next Header” field
• ICMPv6: new version of ICMP
o additional message types, e.g. “Packet Too Big”
o multicast group management functions