SlideShare a Scribd company logo
1 of 24
1
IP Address
K. PALANIVEL
Systems Analyst, Computer Centre
Pondicherry University, Puducherry – 605014.
LECTURE 4
COMS 525: TCPIP
COURSE
TOPIC
TOPICS TO BE COVERED
• Structure of an IP address
• Classful IP addresses
• Limitations and problems with
Classful IP addresses
• Subnetting
• CIDR
• IP Version 6 addresses
What is an IP Address?
• An IP address is a unique global address for a network
interface
• Exceptions:
– Dynamically assigned IP addresses ( DHCP, Lab
7)
– IP addresses in private networks ( NAT, Lab 7)
• An IP address:
– is a 32 bit long identifier
– encodes a network number (network prefix) and a
host number
Network Prefix and Host Number
• The network prefix identifies a network and the
host number identifies a specific host (actually,
interface on the network).
• How do we know how long the network prefix is?
– Before 1993: The network prefix is implicitly defined
(see class-based addressing)
or
– After 1993: The network prefix is indicated by a
netmask.
network prefix host number
Dotted Decimal Notation
• IP addresses are written in a so-called dotted
decimal notation
• Each byte is identified by a decimal number in
the range [0..255]:
• Example:
1000111110000000 10001001 10010000
1st Byte
= 128
2nd Byte
= 143
3rd Byte
= 137
4th Byte
= 144
128.143.137.144
Example
• Example: ellington.cs.virginia.edu
• Network address is: 128.143.0.0 (or 128.143)
• Host number is: 137.144
• Netmask is: 255.255.0.0 (or ffff0000)
• Prefix or CIDR notation: 128.143.137.144/16
»Network prefix is 16 bits long
128.143 137.144
IP Addresses Format
Application dataTCP HeaderEthernet Header Ethernet Trailer
Ethernet frame
IP Header
version
(4 bits)
header
length
Type of Service/TOS
(8 bits)
Total Length (in bytes)
(16 bits)
Identification (16 bits)
flags
(3 bits)
Fragment Offset (13 bits)
Source IP address (32 bits)
Destination IP address (32 bits)
TTL Time-to-Live
(8 bits)
Protocol
(8 bits)
Header Checksum (16 bits)
32 bits
Special IP Addresses
• Reserved or (by convention) special addresses:
Loopback interfaces
– all addresses 127.0.0.1-127.255.255.255 are reserved
for loopback interfaces
– Most systems use 127.0.0.1 as loopback address
– loopback interface is associated with name
“localhost”
IP address of a network
– Host number is set to all zeros, e.g., 128.143.0.0
Broadcast address
– Host number is all ones, e.g., 128.143.255.255
– Broadcast goes to all hosts on the network
– Often ignored due to security concerns
Special IP Addresses
• Test / Experimental addresses
Certain address ranges are reserved for “experimental
use”. Packets should get dropped if they contain this
destination address (see RFC 1918):
10.0.0.0 - 10.255.255.255
172.16.0.0 - 172.31.255.255
192.168.0.0 - 192.168.255.255
• Convention (but not a reserved address)
Default gateway has host number set to ‘1’, e.g., e.g., 192.0.1.1
Subnetting
Subnetting
• Problem: Organizations have
multiple networks which are
independently managed
– Solution 1: Allocate a
separate network address
for each network
• Difficult to manage
• From the outside of the
organization, each
network must be
addressable.
– Solution 2: Add another
level of hierarchy to the IP
addressing structure
University Network
Medical
School
Library
Engineering
School
Address Assignment with Subnetting
• Each part of the organization is allocated a range of IP
addresses (subnets or subnetworks)
• Addresses in each subnet can be administered locally
University Network
Medical
School
Library
Engineering
School
128.143.0.0/16
128.143.71.0/24
128.143.136.0/24
128.143.56.0/24
128.143.121.0/24
Basic Idea of Subnetting
• Split the host number portion of an IP address into a
subnet number and a (smaller) host number.
• Result is a 3-layer hierarchy
• Then:
• Subnets can be freely assigned within the organization
• Internally, subnets are treated as separate networks
• Subnet structure is not visible outside the organization
network prefix host number
subnet numbernetwork prefix host number
extended network prefix
Subnetmask
• Routers and hosts use an extended network
prefix (subnetmask) to identify the start of the
host numbers
128.143 137.144
network prefix host number
128.143 144
network prefix host numbersubnet
number
137
extended network prefix
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
subnetmask
Advantages of Subnetting
• With subnetting, IP addresses use a 3-layer hierarchy:
» Network
» Subnet
» Host
• Reduces router complexity. Since external routers do
not know about subnetting, the complexity of routing
tables at external routers is reduced.
• Note: Length of the subnet mask need not be identical
at all subnetworks.
Example: Subnetmask
• 128.143.0.0/16 is the IP address of the network
• 128.143.137.0/24 is the IP address of the subnet
• 128.143.137.144 is the IP address of the host
• 255.255.255.0 (or ffffff00) is the subnetmask of the host
• When subnetting is used, one generally speaks of a
“subnetmask” (instead of a netmask) and a “subnet” (instead of
a network)
• Use of subnetting or length of the subnetmask if decided by the
network administrator
• Consistency of subnetmasks is responsibility of administrator
No Subnetting
• All hosts think that the other hosts are on the
same network
128.143.70.0/16
128.143.137.32/16
subnetmask: 255.255.0.0
128.143.71.21/16
subnetmask: 255.255.0.0
128.143.137.144/16
subnetmask: 255.255.0.0
128.143.71.201/16
subnetmask: 255.255.0.0
128.143.0.0/16
128.143.137.32/24
subnetmask: 255.255.255.0
128.143.71.21/24
subnetmask: 255.255.255.0
128.143.137.144/24
subnetmask: 255.255.255.0
128.143.71.201/24
subnetmask: 255.255.255.0
128.143.137.0/24
Subnet
128.143.71.0/24
Subnet
With Subnetting
• Hosts with same extended network prefix
belong to the same network
With Subnetting
• Different subnetmasks lead to different views
of the size of the scope of the network
128.143.0.0/16
128.143.137.32/26
subnetmask: 255.255.255.192
128.143.71.21/24
subnetmask: 255.255.255.0
128.143.137.144/26
subnetmask: 255.255.255.192
128.143.71.201/16
subnetmask: 255.255.0.0
128.143.71.0/24
Subnet
128.143.137.128/26
Subnet
128.143.137.0/26
Subnet
Classful IP Adresses (Until 1993)
• When Internet addresses were standardized (early 1980s),
the Internet address space was divided up into classes:
– Class A: Network prefix is 8 bits long
– Class B: Network prefix is 16 bits long
– Class C: Network prefix is 24 bits long
• Each IP address contained a key which identifies the
class:
– Class A: IP address starts with “0”
– Class B: IP address starts with “10”
– Class C: IP address starts with “110”
The old way: Internet Address Classes
Class C network id host11 0
Network Prefix
24 bits
Host Number
8 bits
bit # 0 1 23 242 313
Class B 1 network id host
bit # 0 1 15 162
Network Prefix
16 bits
Host Number
16 bits
0
31
Class A 0
Network Prefix
8 bits
bit # 0 1 7 8
Host Number
24 bits
31
Class D multicast group id11 1
bit # 0 1 2 313
0
4
Class E (reserved for future use)11 1
bit # 0 1 2 313
1
4
0
5
The old way: Internet Address Classes
• We will learn about multicast addresses later in
this course.
Problems with Classful IP Addresses
• By the early 1990s, the original classful address scheme had a
number of problems
– Flat address space. Routing tables on the backbone Internet
need to have an entry for each network address. When Class C
networks were widely used, this created a problem. By the
1993, the size of the routing tables started to outgrow the
capacity of routers.
Other problems:
– Too few network addresses for large networks
• Class A and Class B addresses were gone
– Limited flexibility for network addresses:
• Class A and B addresses are overkill (>64,000 addresses)
• Class C address is insufficient (requires 40 Class C
addresses)
Allocation of Classful Addresses
QUESTIONS ???

More Related Content

What's hot (20)

Lesson1: Introduction To Networking Concepts
Lesson1: Introduction To Networking ConceptsLesson1: Introduction To Networking Concepts
Lesson1: Introduction To Networking Concepts
 
ITFT - IP adressing
 ITFT - IP adressing ITFT - IP adressing
ITFT - IP adressing
 
Ip address and subnetting
Ip address and subnettingIp address and subnetting
Ip address and subnetting
 
Types of ip address classes
Types of ip address classesTypes of ip address classes
Types of ip address classes
 
Ip addressing
Ip addressingIp addressing
Ip addressing
 
Subnetting
SubnettingSubnetting
Subnetting
 
IPand subnet
IPand subnetIPand subnet
IPand subnet
 
Configuration and testing of network
Configuration and testing of networkConfiguration and testing of network
Configuration and testing of network
 
I pv4 subneting
I pv4 subnetingI pv4 subneting
I pv4 subneting
 
Classes of adressing
Classes of adressingClasses of adressing
Classes of adressing
 
IP addressing and Subnetting PPT
IP addressing and Subnetting PPTIP addressing and Subnetting PPT
IP addressing and Subnetting PPT
 
Internet address
Internet addressInternet address
Internet address
 
IP Addressing
IP AddressingIP Addressing
IP Addressing
 
Ip Addressing
Ip AddressingIp Addressing
Ip Addressing
 
Ip addressing
Ip addressingIp addressing
Ip addressing
 
Lesson 3: IPv6 Fundamentals
Lesson 3: IPv6 FundamentalsLesson 3: IPv6 Fundamentals
Lesson 3: IPv6 Fundamentals
 
Ip Addressing Basics
Ip Addressing BasicsIp Addressing Basics
Ip Addressing Basics
 
Subnetting
SubnettingSubnetting
Subnetting
 
Week10 lec1
Week10 lec1Week10 lec1
Week10 lec1
 
Ipv6^ new
Ipv6^ newIpv6^ new
Ipv6^ new
 

Similar to 03 coms 525 tcpip - ip address

IP and CIDR ipv6 addressing.ppt
IP and CIDR ipv6 addressing.pptIP and CIDR ipv6 addressing.ppt
IP and CIDR ipv6 addressing.pptAkkiKumar26
 
module03-ipaddr.ppt
module03-ipaddr.pptmodule03-ipaddr.ppt
module03-ipaddr.pptImXaib
 
chsadsadasdasdasdasdsadsadsadsadsadasda10.ppt
chsadsadasdasdasdasdsadsadsadsadsadasda10.pptchsadsadasdasdasdasdsadsadsadsadsadasda10.ppt
chsadsadasdasdasdasdsadsadsadsadsadasda10.pptssuserde23af
 
network-addressing.pptx
network-addressing.pptxnetwork-addressing.pptx
network-addressing.pptxFidaBaloch8
 
this is a presentationon ip and cidr.ppt
this is a presentationon ip and cidr.pptthis is a presentationon ip and cidr.ppt
this is a presentationon ip and cidr.pptBlackHat41
 
Chapter 5 Network Configuration Basics.ppt
Chapter 5 Network Configuration Basics.pptChapter 5 Network Configuration Basics.ppt
Chapter 5 Network Configuration Basics.pptanwarkade1
 
Chapter 5 Network Configuration Basics.ppt
Chapter 5 Network Configuration Basics.pptChapter 5 Network Configuration Basics.ppt
Chapter 5 Network Configuration Basics.pptEsubesisay
 
Ip addressing
Ip addressingIp addressing
Ip addressingsid1322
 
4. Understanding Internet Protocol.pptx
4. Understanding Internet Protocol.pptx4. Understanding Internet Protocol.pptx
4. Understanding Internet Protocol.pptxRobertohtirolhsconce
 
Expl net fund_chapter_06_i_pv4_part_2
Expl net fund_chapter_06_i_pv4_part_2Expl net fund_chapter_06_i_pv4_part_2
Expl net fund_chapter_06_i_pv4_part_2kurtmctaggart
 
Topic 2.3 network addressing for tcpip
Topic 2.3 network addressing for tcpipTopic 2.3 network addressing for tcpip
Topic 2.3 network addressing for tcpipAtika Zaimi
 
IP addressing by Mamun Sir
IP addressing by Mamun SirIP addressing by Mamun Sir
IP addressing by Mamun Sirsharifbdp
 
Microsoft Offical Course 20410C_05
Microsoft Offical Course 20410C_05Microsoft Offical Course 20410C_05
Microsoft Offical Course 20410C_05gameaxt
 

Similar to 03 coms 525 tcpip - ip address (20)

IP Address
IP AddressIP Address
IP Address
 
IP and CIDR ipv6 addressing.ppt
IP and CIDR ipv6 addressing.pptIP and CIDR ipv6 addressing.ppt
IP and CIDR ipv6 addressing.ppt
 
module03-ipaddr.ppt
module03-ipaddr.pptmodule03-ipaddr.ppt
module03-ipaddr.ppt
 
chapter 4.pptx
chapter 4.pptxchapter 4.pptx
chapter 4.pptx
 
chsadsadasdasdasdasdsadsadsadsadsadasda10.ppt
chsadsadasdasdasdasdsadsadsadsadsadasda10.pptchsadsadasdasdasdasdsadsadsadsadsadasda10.ppt
chsadsadasdasdasdasdsadsadsadsadsadasda10.ppt
 
network-addressing.pptx
network-addressing.pptxnetwork-addressing.pptx
network-addressing.pptx
 
this is a presentationon ip and cidr.ppt
this is a presentationon ip and cidr.pptthis is a presentationon ip and cidr.ppt
this is a presentationon ip and cidr.ppt
 
Chapter 5 Network Configuration Basics.ppt
Chapter 5 Network Configuration Basics.pptChapter 5 Network Configuration Basics.ppt
Chapter 5 Network Configuration Basics.ppt
 
Chapter 5 Network Configuration Basics.ppt
Chapter 5 Network Configuration Basics.pptChapter 5 Network Configuration Basics.ppt
Chapter 5 Network Configuration Basics.ppt
 
chapter 5 (1).ppt
chapter 5 (1).pptchapter 5 (1).ppt
chapter 5 (1).ppt
 
Ip addressing
Ip addressingIp addressing
Ip addressing
 
Addressing
AddressingAddressing
Addressing
 
4. Understanding Internet Protocol.pptx
4. Understanding Internet Protocol.pptx4. Understanding Internet Protocol.pptx
4. Understanding Internet Protocol.pptx
 
MVA slides lesson 4
MVA slides lesson 4MVA slides lesson 4
MVA slides lesson 4
 
Expl net fund_chapter_06_i_pv4_part_2
Expl net fund_chapter_06_i_pv4_part_2Expl net fund_chapter_06_i_pv4_part_2
Expl net fund_chapter_06_i_pv4_part_2
 
Ramakant tyagi presentation on ip addressing
Ramakant tyagi presentation on ip addressingRamakant tyagi presentation on ip addressing
Ramakant tyagi presentation on ip addressing
 
Topic 2.3 network addressing for tcpip
Topic 2.3 network addressing for tcpipTopic 2.3 network addressing for tcpip
Topic 2.3 network addressing for tcpip
 
Network.pptx
Network.pptxNetwork.pptx
Network.pptx
 
IP addressing by Mamun Sir
IP addressing by Mamun SirIP addressing by Mamun Sir
IP addressing by Mamun Sir
 
Microsoft Offical Course 20410C_05
Microsoft Offical Course 20410C_05Microsoft Offical Course 20410C_05
Microsoft Offical Course 20410C_05
 

More from Palanivel Kuppusamy

16 coms 525 tcpip - routing protocols -all
16    coms 525 tcpip - routing protocols -all16    coms 525 tcpip - routing protocols -all
16 coms 525 tcpip - routing protocols -allPalanivel Kuppusamy
 
15 coms 525 tcpip - border gateway protocols
15    coms 525 tcpip - border gateway protocols15    coms 525 tcpip - border gateway protocols
15 coms 525 tcpip - border gateway protocolsPalanivel Kuppusamy
 
14 coms 525 tcpip - applications - snmp
14    coms 525 tcpip - applications - snmp14    coms 525 tcpip - applications - snmp
14 coms 525 tcpip - applications - snmpPalanivel Kuppusamy
 
13 coms 525 tcpip - applications - file transfer protocol
13   coms 525 tcpip - applications - file transfer protocol13   coms 525 tcpip - applications - file transfer protocol
13 coms 525 tcpip - applications - file transfer protocolPalanivel Kuppusamy
 
12 coms 525 tcpip - applications - http - telnet
12   coms 525 tcpip - applications - http - telnet12   coms 525 tcpip - applications - http - telnet
12 coms 525 tcpip - applications - http - telnetPalanivel Kuppusamy
 
11 coms 525 tcpip - internet protocol - forward
11   coms 525 tcpip - internet protocol - forward11   coms 525 tcpip - internet protocol - forward
11 coms 525 tcpip - internet protocol - forwardPalanivel Kuppusamy
 
10 coms 525 tcpip - internet protocol - ip
10   coms 525 tcpip -  internet protocol - ip10   coms 525 tcpip -  internet protocol - ip
10 coms 525 tcpip - internet protocol - ipPalanivel Kuppusamy
 
07 coms 525 tcpip - udp [autosaved]
07    coms 525 tcpip - udp [autosaved]07    coms 525 tcpip - udp [autosaved]
07 coms 525 tcpip - udp [autosaved]Palanivel Kuppusamy
 
06 coms 525 tcpip - dhcp and dns
06   coms 525 tcpip - dhcp and dns06   coms 525 tcpip - dhcp and dns
06 coms 525 tcpip - dhcp and dnsPalanivel Kuppusamy
 
04 coms 525 tcpip - arp and rarp
04   coms 525 tcpip - arp and rarp04   coms 525 tcpip - arp and rarp
04 coms 525 tcpip - arp and rarpPalanivel Kuppusamy
 
02 coms 525 tcpip - introduction to tcpip
02   coms 525 tcpip -  introduction to tcpip02   coms 525 tcpip -  introduction to tcpip
02 coms 525 tcpip - introduction to tcpipPalanivel Kuppusamy
 
01 coms 525 tcpip - networking concepts review
01   coms 525 tcpip - networking concepts review01   coms 525 tcpip - networking concepts review
01 coms 525 tcpip - networking concepts reviewPalanivel Kuppusamy
 
00 coms 525 tcpip - introduction to networks
00   coms 525 tcpip -  introduction to networks00   coms 525 tcpip -  introduction to networks
00 coms 525 tcpip - introduction to networksPalanivel Kuppusamy
 

More from Palanivel Kuppusamy (17)

16 coms 525 tcpip - routing protocols -all
16    coms 525 tcpip - routing protocols -all16    coms 525 tcpip - routing protocols -all
16 coms 525 tcpip - routing protocols -all
 
15 coms 525 tcpip - border gateway protocols
15    coms 525 tcpip - border gateway protocols15    coms 525 tcpip - border gateway protocols
15 coms 525 tcpip - border gateway protocols
 
14 coms 525 tcpip - applications - snmp
14    coms 525 tcpip - applications - snmp14    coms 525 tcpip - applications - snmp
14 coms 525 tcpip - applications - snmp
 
13 coms 525 tcpip - applications - file transfer protocol
13   coms 525 tcpip - applications - file transfer protocol13   coms 525 tcpip - applications - file transfer protocol
13 coms 525 tcpip - applications - file transfer protocol
 
12 coms 525 tcpip - applications - http - telnet
12   coms 525 tcpip - applications - http - telnet12   coms 525 tcpip - applications - http - telnet
12 coms 525 tcpip - applications - http - telnet
 
11 coms 525 tcpip - internet protocol - forward
11   coms 525 tcpip - internet protocol - forward11   coms 525 tcpip - internet protocol - forward
11 coms 525 tcpip - internet protocol - forward
 
10 coms 525 tcpip - internet protocol - ip
10   coms 525 tcpip -  internet protocol - ip10   coms 525 tcpip -  internet protocol - ip
10 coms 525 tcpip - internet protocol - ip
 
09 coms 525 tcpip - tcp 2
09   coms 525 tcpip - tcp 209   coms 525 tcpip - tcp 2
09 coms 525 tcpip - tcp 2
 
08 coms 525 tcpip - tcp 1
08   coms 525 tcpip - tcp 108   coms 525 tcpip - tcp 1
08 coms 525 tcpip - tcp 1
 
07 coms 525 tcpip - udp
07    coms 525 tcpip - udp07    coms 525 tcpip - udp
07 coms 525 tcpip - udp
 
07 coms 525 tcpip - udp [autosaved]
07    coms 525 tcpip - udp [autosaved]07    coms 525 tcpip - udp [autosaved]
07 coms 525 tcpip - udp [autosaved]
 
06 coms 525 tcpip - dhcp and dns
06   coms 525 tcpip - dhcp and dns06   coms 525 tcpip - dhcp and dns
06 coms 525 tcpip - dhcp and dns
 
05 coms 525 tcpip - icmp
05   coms 525 tcpip - icmp05   coms 525 tcpip - icmp
05 coms 525 tcpip - icmp
 
04 coms 525 tcpip - arp and rarp
04   coms 525 tcpip - arp and rarp04   coms 525 tcpip - arp and rarp
04 coms 525 tcpip - arp and rarp
 
02 coms 525 tcpip - introduction to tcpip
02   coms 525 tcpip -  introduction to tcpip02   coms 525 tcpip -  introduction to tcpip
02 coms 525 tcpip - introduction to tcpip
 
01 coms 525 tcpip - networking concepts review
01   coms 525 tcpip - networking concepts review01   coms 525 tcpip - networking concepts review
01 coms 525 tcpip - networking concepts review
 
00 coms 525 tcpip - introduction to networks
00   coms 525 tcpip -  introduction to networks00   coms 525 tcpip -  introduction to networks
00 coms 525 tcpip - introduction to networks
 

Recently uploaded

Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 

Recently uploaded (20)

Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 

03 coms 525 tcpip - ip address

  • 1. 1 IP Address K. PALANIVEL Systems Analyst, Computer Centre Pondicherry University, Puducherry – 605014. LECTURE 4 COMS 525: TCPIP COURSE TOPIC
  • 2. TOPICS TO BE COVERED • Structure of an IP address • Classful IP addresses • Limitations and problems with Classful IP addresses • Subnetting • CIDR • IP Version 6 addresses
  • 3. What is an IP Address? • An IP address is a unique global address for a network interface • Exceptions: – Dynamically assigned IP addresses ( DHCP, Lab 7) – IP addresses in private networks ( NAT, Lab 7) • An IP address: – is a 32 bit long identifier – encodes a network number (network prefix) and a host number
  • 4. Network Prefix and Host Number • The network prefix identifies a network and the host number identifies a specific host (actually, interface on the network). • How do we know how long the network prefix is? – Before 1993: The network prefix is implicitly defined (see class-based addressing) or – After 1993: The network prefix is indicated by a netmask. network prefix host number
  • 5. Dotted Decimal Notation • IP addresses are written in a so-called dotted decimal notation • Each byte is identified by a decimal number in the range [0..255]: • Example: 1000111110000000 10001001 10010000 1st Byte = 128 2nd Byte = 143 3rd Byte = 137 4th Byte = 144 128.143.137.144
  • 6. Example • Example: ellington.cs.virginia.edu • Network address is: 128.143.0.0 (or 128.143) • Host number is: 137.144 • Netmask is: 255.255.0.0 (or ffff0000) • Prefix or CIDR notation: 128.143.137.144/16 »Network prefix is 16 bits long 128.143 137.144
  • 7. IP Addresses Format Application dataTCP HeaderEthernet Header Ethernet Trailer Ethernet frame IP Header version (4 bits) header length Type of Service/TOS (8 bits) Total Length (in bytes) (16 bits) Identification (16 bits) flags (3 bits) Fragment Offset (13 bits) Source IP address (32 bits) Destination IP address (32 bits) TTL Time-to-Live (8 bits) Protocol (8 bits) Header Checksum (16 bits) 32 bits
  • 8. Special IP Addresses • Reserved or (by convention) special addresses: Loopback interfaces – all addresses 127.0.0.1-127.255.255.255 are reserved for loopback interfaces – Most systems use 127.0.0.1 as loopback address – loopback interface is associated with name “localhost” IP address of a network – Host number is set to all zeros, e.g., 128.143.0.0 Broadcast address – Host number is all ones, e.g., 128.143.255.255 – Broadcast goes to all hosts on the network – Often ignored due to security concerns
  • 9. Special IP Addresses • Test / Experimental addresses Certain address ranges are reserved for “experimental use”. Packets should get dropped if they contain this destination address (see RFC 1918): 10.0.0.0 - 10.255.255.255 172.16.0.0 - 172.31.255.255 192.168.0.0 - 192.168.255.255 • Convention (but not a reserved address) Default gateway has host number set to ‘1’, e.g., e.g., 192.0.1.1
  • 10. Subnetting Subnetting • Problem: Organizations have multiple networks which are independently managed – Solution 1: Allocate a separate network address for each network • Difficult to manage • From the outside of the organization, each network must be addressable. – Solution 2: Add another level of hierarchy to the IP addressing structure University Network Medical School Library Engineering School
  • 11. Address Assignment with Subnetting • Each part of the organization is allocated a range of IP addresses (subnets or subnetworks) • Addresses in each subnet can be administered locally University Network Medical School Library Engineering School 128.143.0.0/16 128.143.71.0/24 128.143.136.0/24 128.143.56.0/24 128.143.121.0/24
  • 12. Basic Idea of Subnetting • Split the host number portion of an IP address into a subnet number and a (smaller) host number. • Result is a 3-layer hierarchy • Then: • Subnets can be freely assigned within the organization • Internally, subnets are treated as separate networks • Subnet structure is not visible outside the organization network prefix host number subnet numbernetwork prefix host number extended network prefix
  • 13. Subnetmask • Routers and hosts use an extended network prefix (subnetmask) to identify the start of the host numbers 128.143 137.144 network prefix host number 128.143 144 network prefix host numbersubnet number 137 extended network prefix 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 subnetmask
  • 14. Advantages of Subnetting • With subnetting, IP addresses use a 3-layer hierarchy: » Network » Subnet » Host • Reduces router complexity. Since external routers do not know about subnetting, the complexity of routing tables at external routers is reduced. • Note: Length of the subnet mask need not be identical at all subnetworks.
  • 15. Example: Subnetmask • 128.143.0.0/16 is the IP address of the network • 128.143.137.0/24 is the IP address of the subnet • 128.143.137.144 is the IP address of the host • 255.255.255.0 (or ffffff00) is the subnetmask of the host • When subnetting is used, one generally speaks of a “subnetmask” (instead of a netmask) and a “subnet” (instead of a network) • Use of subnetting or length of the subnetmask if decided by the network administrator • Consistency of subnetmasks is responsibility of administrator
  • 16. No Subnetting • All hosts think that the other hosts are on the same network 128.143.70.0/16 128.143.137.32/16 subnetmask: 255.255.0.0 128.143.71.21/16 subnetmask: 255.255.0.0 128.143.137.144/16 subnetmask: 255.255.0.0 128.143.71.201/16 subnetmask: 255.255.0.0
  • 17. 128.143.0.0/16 128.143.137.32/24 subnetmask: 255.255.255.0 128.143.71.21/24 subnetmask: 255.255.255.0 128.143.137.144/24 subnetmask: 255.255.255.0 128.143.71.201/24 subnetmask: 255.255.255.0 128.143.137.0/24 Subnet 128.143.71.0/24 Subnet With Subnetting • Hosts with same extended network prefix belong to the same network
  • 18. With Subnetting • Different subnetmasks lead to different views of the size of the scope of the network 128.143.0.0/16 128.143.137.32/26 subnetmask: 255.255.255.192 128.143.71.21/24 subnetmask: 255.255.255.0 128.143.137.144/26 subnetmask: 255.255.255.192 128.143.71.201/16 subnetmask: 255.255.0.0 128.143.71.0/24 Subnet 128.143.137.128/26 Subnet 128.143.137.0/26 Subnet
  • 19. Classful IP Adresses (Until 1993) • When Internet addresses were standardized (early 1980s), the Internet address space was divided up into classes: – Class A: Network prefix is 8 bits long – Class B: Network prefix is 16 bits long – Class C: Network prefix is 24 bits long • Each IP address contained a key which identifies the class: – Class A: IP address starts with “0” – Class B: IP address starts with “10” – Class C: IP address starts with “110”
  • 20. The old way: Internet Address Classes Class C network id host11 0 Network Prefix 24 bits Host Number 8 bits bit # 0 1 23 242 313 Class B 1 network id host bit # 0 1 15 162 Network Prefix 16 bits Host Number 16 bits 0 31 Class A 0 Network Prefix 8 bits bit # 0 1 7 8 Host Number 24 bits 31
  • 21. Class D multicast group id11 1 bit # 0 1 2 313 0 4 Class E (reserved for future use)11 1 bit # 0 1 2 313 1 4 0 5 The old way: Internet Address Classes • We will learn about multicast addresses later in this course.
  • 22. Problems with Classful IP Addresses • By the early 1990s, the original classful address scheme had a number of problems – Flat address space. Routing tables on the backbone Internet need to have an entry for each network address. When Class C networks were widely used, this created a problem. By the 1993, the size of the routing tables started to outgrow the capacity of routers. Other problems: – Too few network addresses for large networks • Class A and Class B addresses were gone – Limited flexibility for network addresses: • Class A and B addresses are overkill (>64,000 addresses) • Class C address is insufficient (requires 40 Class C addresses)