Download presentation
Presentation is loading. Please wait.
Published byDana Cross Modified over 8 years ago
1
Data Communications (SEE5523) - Chap.8a1/24 SET5534 Data Communication and Switching System Chapter 8 IP Addressing Alias Mohd FKE, UTM aliasmohd@fke.utm.my
2
Data Communications (SEE5523) - Chap.8a2/24 Objectives Understand the concept of IP addressing. Understand how to create subnet.
3
Data Communications (SEE5523) - Chap.8a3/24 Host, IP and MAC Address Host name –www.fke.utm.my IP address –161.139.114.5 (32 bits) MAC address (physical address)-NIC address –00:02:a5:b7:66:ec (48 bits)
4
Data Communications (SEE5523) - Chap.8a4/24 Level of Addressesing www.fke.utm.my DNS (domain name system) 161.139.114.5 Address Resolution Protocol (ARP) RARP 00:02:a5:b7:66:ec
5
Data Communications (SEE5523) - Chap.8a5/24 IP addresses in a network IP addresses are associated with interface –Each interface has its own address –A station can has more IP addresses –e.g router, server, etc.
6
Data Communications (SEE5523) - Chap.8a6/24 IP addressing concept Partitioned into 2 parts –Network address –Node address NetworkNode 161.139.101,2,3 161.139.111,2,3 162.130.1001,2
7
Data Communications (SEE5523) - Chap.8a7/24 IP addresssing NetworkHost 8 bits 32 bits
8
Data Communications (SEE5523) - Chap.8a8/24 IP address class 32 bits –Network identifier –Node identifier Class A Class B Class C Class D Class E 0 Network ID Host ID 110Network IDHost ID 10Network IDHost ID 1110Multicast Address 11110Unused
9
Data Communications (SEE5523) - Chap.8a9/24 IP Address Table classInitial bits # bits for net # bits for host rangeAddress spaces usable A07240.0.0.0 – 127.255.255.255 2^24 =1667216 166777 214 B101416128.0.0.0 – 191.255.255.255 2^16 =65536 65534 C110218192.0.0.0 – 223.255.255.255 2^8=256254 D111028-224.0.0.0 – 239.255.255.255 E1111027-240.0.0.0 – 247.255.255.255
10
Data Communications (SEE5523) - Chap.8a10/24 Special Address Host ID with all 0s is referred to a network number –161.139.0.0, 162.11.210.0 Host ID with all 1 is reserved to broadcast address –161.139.255.255, 161.11.210.255 0.0.0.0 is reserved and means ‘this host on this network” –Used to boot diskless WS 255.255.255.255 is reserved to broadcast to every host in the local network 127.x.x.x means ‘this node’ (local loopback).
11
Data Communications (SEE5523) - Chap.8a11/24 Problem with class assignment Class A takes 50% range Class B takes 25% Class C takes 12.5% These lead to: –Address wasteful (especially in class A) –Not enough IP addresses
12
How many nets and hosts?
13
Data Communications (SEE5523) - Chap.8a13/24 Problem with large network Class B flat network will have mre tha 60 000 hosts –How to manage? –Performance? Subdivide class B network into smaller group (subnetwork) with router
14
Data Communications (SEE5523) - Chap.8a14/24 Subnetwork benefits Ease the network manager control over the address space Easy to allocate the addresses Better network performance Hide routing structure from remote routers, thus reducing routes in their routing tables
15
Subnets 65,534 hosts … … 254 hosts … 254 subnets one class B address
16
Data Communications (SEE5523) - Chap.8a16/24 Assigning Subnetwork (Subnet) Divide host ID into 2 –Subnet address & host address Class B address (161.139) can use its 3 rd byte to identify subnet –Subnet #1 – 161.139.1.x –Subnet #2 – 161.139.2.x –x is host ID from 1-254 Network IDSubnet addr.Host addr. Host ID
17
Data Communications (SEE5523) - Chap.8a17/24 Subnet Mask (1/2) 32 bit number –Tells router to recognize the subnet field The bits covering network and subnet part of an address are set to ‘1’ –E.g. class B with 24 bit mask –Subnet mask = 255.255.255.255.0 Zero bits are used to mask ot the host number resulting only the network address 1111 0000
18
Data Communications (SEE5523) - Chap.8a18/24 Subnet Mask (2/2) Subnet mask of 255.255.255.0 for a class B tells: –Network has been partition to 254 subnets e.g. 161.139.1.x to 161.139.254.x –Logical AND between IP address with mask yields network address 161.139.2.71 AND 255.255.255.0 = 161.139.2.0 (network address) 158.100.70.51 AND 255.255.255.0=158.100.70.0 (network address)
19
Data Communications (SEE5523) - Chap.8a19/24 Subnet Mask bits 1286432168421# 10000000128 11000000192 11100000224 11110000240 11111000248 11111100252 11111110254 11111111255
20
Network prefix The class ID plus network ID portions of the IP address are known as the network prefix –class A: an 8-bit network prefix (/8) –class B: a 16-bit network prefix (/16) –class C: a 24-bit network prefix (/24)
21
Data Communications (SEE5523) - Chap.8a21/24 Subnetting Class B 255.255.0.0 (0000 0000 0000 0000) –0 subnet with 65534 hosts (default subnet) 255.255.192.0 (1100 0000 0000 0000) –4 subnets with 16382 hosts each 255.255.252.0 (1111 1100 0000 0000) –64 subnets with 1022 hosts each 255.255.254.0 (1111 1111 0000 0000) –256 subnets with 254 hosts each 255.255.255.252 (1111 1111 1111 1100) –16384 subnets with 2 hosts each
22
Data Communications (SEE5523) - Chap.8a22/24 Example (1/2) Given IP address 161.139.x.x, find out the following to have at least 500 hosts per subnet –Subnet mask –Start network ID –End network ID –Number of subnet possible
23
Data Communications (SEE5523) - Chap.8a23/24 Example (2/2) Given IP address 200.139.200.x, find out the following to have at least 5 subnet –Subnet mask –Start network ID –End network ID –Number of subnet possible
24
Data Communications (SEE5523) - Chap.8a24/24 Subnetting Class C 255.255.255.0 (0000 0000) –0 subnet with 254 hosts (default subnet) 255.255.255.192 (1100 0000) –4 subnets with 62 hosts each 255.255.255.224 (1110 0000) –8 subnets with 30 hosts each 255.255.255.240 (1111 0000) –16 subnets with 14 hosts each
25
Data Communications (SEE5523) - Chap.8a25/24 Class B Subnet with router
26
Data Communications (SEE5523) - Chap.8a26/24 Subnet Routing Traffic is routed by looking at ‘bit-wise AND’ results { if dest IP addr & subnet mask==my IP addr & subnet mask send packet to local network else send packet to router%dest IP is on different subnet }
27
Data Communications (SEE5523) - Chap.8a27/28 Subnet Results IP address Subnet maskResult 161.139.2.71255.255.255.0host 71 on subnet 161.139.2.0 130.139.34.3255.255.255.192host 3 on subnet 130.139.34.0 130.139.34.132255.255.255.192host 4 on subnet 130.139.34.128 200.190.155.66255.255.255.192host 2 on subnet 200.190.155.64
28
Private addressing (1/2) IP address depletion has resulted –from the explosion of the Internet –the inefficient use of existing IP addresses One way to cope with the depletion of IP addresses is through the use of private addressing –IP addresses used on the Internet must be globally unique, usually specified by an Internet service provider. –However, traffic that remains only on an organization's private network does not need to be globally unique just unique across that organization's private network.
29
Private addressing (2/2) In support of this, the Internet Assigned Numbers Authority (IANA) has set aside the following three ranges of private IP addresses: – 10.0.0.0 through 10.255.255.255 (equal to a single Class A Network ID) – 172.16.0.0 through 172.31.255.255 (equal to 16 contiguous Class B Network IDs) – 192.168.0.0 through 192.168.255.255 (equal to 256 contiguous Class C Network IDs) Traffic using any of these address ranges must remain on the organization's private network and cannot be forwarded on the Internet
30
DHCP DHCP works by providing a process for a server to allocate the IP information to clients. Clients lease the information from the server for an administratively defined period.
31
31 DHCP (cont…) Runs over UDP using port 67 (client) and 68 (server) Provides automatic configuration of the host connected to network or booted Provides hosts with initial configuration information upon boot-up: –IP address with subnet mask, –default gateway, –IP address of the DNS server.
32
The Order of DHCP Message Transmission
33
DHCP Interaction Automatic Allocation Manual Allocation Dynamic Allocation
34
34 DHCP Interaction (simplified)
35
IP address assigned by DHCP Data Communications (SEE5523) - Chap.8a35/24
36
Thursday, May 17, 200736 Design Goals of DHCP Eliminate manual configuration of hosts Prevent use of any IP address by more than one host Provide the same configuration - including IP address, subnet mask - to a host whenever possible Move desktop PCs between offices/location Mobile IP - laptop
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.