Network Layer (part2)6-1 INT-201: Computer Network and Communication System อ. ดร....
-
Upload
dwayne-andrews -
Category
Documents
-
view
219 -
download
0
description
Transcript of Network Layer (part2)6-1 INT-201: Computer Network and Communication System อ. ดร....
Network Layer (part2) 6-1
INT-201:Computer Network and
Communication System
อ.ดร . ภัทร ลีลาพฤทธิ์Dr. Pattara LeelapruteComputer Engineering DepartmentKasetsart [email protected]://www.cpe.ku.ac.th/~pattara/int201
Computer Networking: A Top Down Approach ,4th edition. Jim Kurose, Keith RossAddison-Wesley, July 2007.
Special Module: IP address
Network Layer (part2) 6-2
Internet Address
Network Layer (part2) 6-3
Internet Classes
Classfull Addressing
Network Layer (part2) 6-4
IP Address Class
Network Layer (part2) 6-5
No. of Network / Host
Network Layer (part2) 6-6
IP address in decimal notation
27 26 25 24 23 22 21 20
1 0 0 1 1 1 1 0x x x x x x x x
158.108.2.61
10011110 01101100 00000010 00111101
128 + 16 + 8 + 4 + 2 + = 158
Network Layer (part2) 6-7
IP address practice
10011110 01101100 00100000 00010010 158.108.32.18
00001100 00011001 00000001 00010111 12.25.1.23
11001001 01111101 10001001 11010101 201.125.137.213
#1
#2
#3
Network Layer (part2) 6-8
IP address in decimal notation
158.108.2.61
10011110 01101100 00000010 00111101
www.ku.ac.th
Network Layer (part2) 6-9
Class ranges of Internet Address
Network Layer (part2) 6-10
IP Address Class
A50%
B25%
C12.5%
DE
Network Layer (part2) 6-11
IP Addressing: introduction IP address: 32-bit
identifier for host, router interface
interface: connection between host/router and physical link router’s typically have
multiple interfaces host typically has one
interface IP addresses
associated with each interface
223.1.1.1
223.1.1.2
223.1.1.3
223.1.1.4 223.1.2.9
223.1.2.2
223.1.2.1
223.1.3.2223.1.3.1
223.1.3.27
223.1.1.1 = 11011111 00000001 00000001 00000001
223 1 11
Network Layer (part2) 6-12
Subnets IP address:
subnet part (high order bits)
host part (low order bits)
What’s a subnet ? device interfaces
with same subnet part of IP address
can physically reach each other without intervening router
223.1.1.1
223.1.1.2
223.1.1.3
223.1.1.4 223.1.2.9
223.1.2.2
223.1.2.1
223.1.3.2223.1.3.1
223.1.3.27
network consisting of 3 subnets
subnet
Network Layer (part2) 6-13
Subnets 223.1.1.0/24223.1.2.0/24
223.1.3.0/24
Recipe To determine the
subnets, detach each interface from its host or router, creating islands of isolated networks. Each isolated network is called a subnet. Subnet mask: /24
Network Layer (part2) 6-14
IP addressing: CIDRCIDR: Classless InterDomain Routing
subnet portion of address of arbitrary length address format: a.b.c.d/x, where x is # bits in
subnet portion of address
11001000 00010111 00010000 00000000
subnetpart
hostpart
200.23.16.0/23