Unit II Basic Internetworking: Presentation By: Kaythry P. Assistant Professor, ECE SSN College of Engineering
Unit II Basic Internetworking: Presentation By: Kaythry P. Assistant Professor, ECE SSN College of Engineering
BASIC
INTERNETWORKING
Presentation by:
KAYTHRY P.
Assistant Professor, ECE
SSN College of Engineering
Objectives
At end of this session, learners able to answer,
What is an internet?
What is sub netting and addressing?
Introduction
• By using switches and bridges it is possible to build a
large network but it is only up to certain limit.
• In order to further increase the scalability of network ,
we connect multiple networks by a device called as
“Router”
• Hence the network layer comes in to picture which
takes the responsibility of packet delivery from source
to destination among multiple networks
• internet – logical network built out of collection of
physical networks.
• Network of networks
• Routers / gateways - interconnect networks
• internetwork Internetworking
– collection of
networks
– interconnecte
d to provide
host-host to
packet
delivery
service.
internetwork :
H represents hosts
and R represents
routers
Basic Concepts
• IP – Internet Protocol
• CIDR – Classless Inter Domain Routing
• ARP – Address Resolution Protocol
• DHCP – Dynamic Host Control Protocol
• ICMP – Internet Control Message Protocol
Internetworking
• What is IP
– IP stands for Internet Protocol, runs over anything
– Key tool used today to build scalable, heterogeneous
internetworks
– It runs on all the nodes in a collection of networks
– It defines the infrastructure that allows these nodes
and networks to function as a single logical
internetwork
• Strategy
– Fragmentation occurs in a router when it receives a
datagram that it wants to forward over a network
which has (MTU < datagram)
– Reassembly is done at the receiving host
– All the fragments carry the same identifier in the
Ident field
– Fragments are self-contained datagrams
– IP does not recover from missing fragments
IP Fragmentation and Reassembly
Solution
We replace each group of 8 bits with its equivalent decimal
number and add dots for separation.
27 = 126 class A
networks
Each
IP Addresses
of them
accommodate
----- 224 -2 ( 16
million) hosts
Class B – 65,534
hosts
Class C – 256 unique
host identifiers, 0
not valid, 255 –
broadcasting,
remaining 254
attached to hosts
(221)
• In classful is divided into five classes, the
address space : A, B, C, D, and E
• Find the class of each address.
• a. 00000001 00001011 00001011 11101111
• b. 11000001 10000011 00011011 11111111
• c. 14.23.120.8
• d. 252.5.15.111
Number of blocks and block size in classful IPv4 addressing
Find the error, if any, in the following IPv4 addresses.
IP Datagram Forwarding
• Strategy
– every datagram contains destination's address
– if directly connected to destination network, then forward
to host
– if not directly connected to destination network, then
forward to some router
– forwarding table maps network number into next hop
– each host has a default router
– each router maintains a forwarding table
Blocks in class A
32
Default mask and subnet mask
• The network address is
the beginning address of
each block.
• It can be found by
applying the default
mask to any of the
addresses in the block
(including itself). It
retains the netid of the
block and sets the hostid
to zero
• Add another Subnetting
level to
address/routing
hierarchy: subnet
• Subnet masks
single network
number can be
shared among
multiple
networks
involves
configuring all
the modes on
each subnets.
• Subnet – visible
Subnetting
37
Comparison of a default
mask and a subnet mask
• Techniques
– encode physical address in host part of IP address
– table-based
• ARP (Address Resolution Protocol)
– table of IP to physical address bindings
– broadcast request if IP address not in table
– target machine responds with its physical address
– table entries are discarded if not refreshed
ARP Packet Format
• ICMP-Redirect
– From router to a source host
– Eg. It tells source, a better route to the destination
Internet Control Message Protocol
(ICMP)
• ICMP provides two widely used debugging
tools:
– Ping : uses ICMP echo messages to determine if a
node is reachable and alive