Lecture 4 - IP Addressing-New PDF
Lecture 4 - IP Addressing-New PDF
Computer Networks
Lecture 4: Network layer
Presenter: Vo Thi Luu Phuong, PhD
Contents:
1. Introduction
2. IP addresses
3. IP subnetting technique and CIDR
application
transport
network
link
physical
network layer
data link
physical
network network
host, router
physical network network
data link data link
physical physical
datagrams passing
data link
physical
through it
application
network transport
data link network network
network physical data link data link
data link physical physical
physical
27 26 25 24 23 22 21 20
128 64 32 16 8 4 2 1
1 1 1 1 1 1 1 1 255
0 1 1 1 1 1 1 1 127
1 1 0 0 0 0 0 0 192
1 0 1 1 1 1 1 1 191
1 1 0 1 1 1 1 1 223
1 1 1 0 0 0 0 0 224
223.1.1.1
IP address is a unique
32-bit number (04 bytes
223.1.2.1
223.1.1.2
in decimal). 223.1.1.4 223.1.2.9
Structure
Network.node.node.node
Structure
Network.Network.node.node
Structure
Network.Network.Network.node
192.168.1.3
S: 128.119.40.186, 80
D: 192.168.1.1, 3345 4
D: 138.76.29.7, 5001 3 192.168.1.3
4: NAT router
3: Reply arrives
changes datagram
dest. address:
dest addr from
138.76.29.7, 5001
138.76.29.7, 5001 to 192.168.1.1, 3345
Network Layer 4-22
IP Addresses: How to Get One?
hard-coded by system admin in a file
DHCP: Dynamic Host Configuration Protocol:
dynamically get address from as server
“plug-and-play”
223.1.9.1 223.1.7.1
223.1.8.1 223.1.8.0
223.1.2.6 223.1.3.27
Answer: D
Answer: D
Answer: 203.162.1.0/28