Chapter 4
Chapter 4
Internet Layer
By: Bikash Shrestha
2
What is an IP Address?
An Internet Protocol (IP) address is a
number that identifies a device on a
computer network.
3
History
• Between 1973 and 1983 , Vinton Cerf, John Pastel and
Robert Kahn devised networking system that enabled
them to communicate with each other.
• Their Work led to the introduction of TCP/IP Protocol.
• The IP V4 is of 32 bit so their invention now gives us
the ability to link together 232 (4,294,967,296 i.e.
nearly 4 billion ip address ) machine.
• When it was first deployed, less than 1,000 computers
were linked by IPv4.
4
IP v4 Address Notation
• IP v4 is 32 bits long.
• Thus a total of 232 IP address is possible in IPv4.
• These address are typically written in so called dotted-decimal
notation.
▫ e.g. 202.70.91.200
▫ (202)10 = ( 11001010)2
• Each interface on every host and router in the global Internet
must have an IP address that is globally Unique .
5
Class B
• Range : 128 – 191
• So total of 216-2 Networks are possible and total host = 216 in each Network.
• Default subnet mask is 255.255.0.0
8
Routing
• Routing is the process that a router uses to forward packets toward the
destination network.
• A router makes decisions based upon the destination IP address of a
packet.
• All devices along the way use the destination IP address to send the
packet in the right direction to reach its destination.
• To make the correct decisions, routers must learn how to reach remote
networks. .
16
Routing
17
Routing
18
Routing types
• Nonadaptive algorithms (Static)
• Adaptive algorithms (Dynamic)
19
Static Routes
• Static routes are configured manually, network administrators must add
and delete static routes to reflect any network topology changes.
• In a large network, the manual maintenance of routing tables could
require a lot of administrative time.
• On small networks with few possible changes, static routes require very
little maintenance.
• Static routing is not as scalable as dynamic routing because of the extra
administrative requirements
• Even in large networks, static routes that are intended to accomplish a
specific purpose are often configured in conjunction with a dynamic
routing protocol.
• The default administrative distance when using a static route is 1.
• Sometimes static routes are used for backup purposes.
20
Flooding
• Another static algorithm is flooding, in which every incoming packet is
sent out on every outgoing line except the one it arrived on.
• Flooding obviously generates vast numbers of duplicate packets, in fact,
an infinite number unless some measures are taken to damp the process.
• Technique for damming the flood is to keep track of which packets have
been flooded, to avoid sending them out a second time.
• Achieve this goal is to have the source router put a sequence number in
each packet it receives from its hosts..
21
Flooding
22
Dynamic routing
• Dynamic routing makes it possible to avoid the configuration of static
routes.
• Dynamic routing makes it possible to avoid the time-consuming and
exacting process of configuring static routes.
• Dynamic routing also makes it possible for routers to react to changes in
the network and to adjust their routing tables accordingly, without the
intervention of the network administrator.
23
Autonomous System(AS)
• An AS is a collection of networks under a common administration that
share a common routing strategy.
• To the outside world, an AS is viewed as a single entity.
• Regional Internet Registry distribute AS number.
• Autonomous systems divide the global internetwork into smaller and
more manageable networks.
• Each AS has its own set of rules and policies and an AS number that will
distinguish it from all other autonomous systems.
25
NOTE:
• Routing Between Same AS is called Interior Routing Protocol
• Routing Between Different AS is called Exterior Routing Protocol
27
Steps Node D(B), P(B) D(c), P(C ) D(D), P(D) D(E), P(E) D(F), D(F)
4 ADEBC - - - - 4,E
5 ADEBCF - - - - -
38
RIP Types
• RIP version 1
• RIP version 2
• RIPng (RIP next generation)
41
RIP version 1
• uses classful routing.
• The periodic routing updates do not carry subnet information,
• lacking support for variable length subnet masks (VLSM).
• There is also no support for router authentication, making RIP vulnerable
to various attacks.
• Broadcast is used for database update
42
RIP version 2
• RIP version 2
• It included the ability to carry subnet information, thus supporting
Classless Inter-Domain Routing (CIDR).
• In an effort to avoid unnecessary load on hosts that do not participate in
routing,
• RIPv2 multicasts the entire routing table to all adjacent routers at the
address 224.0.0.9, as opposed to RIPv1 which uses broadcast.
• Support Authentication
43
RIP
Routers in OSPF
• Internal router
• Backbone router
• Area Border Router (ABR)
• Autonomous System Boundary Router (ASBR)
48
Internal router
• Routers that have all interfaces in the same area are internal routers.
• Internal routers within the same area have identical link-state databases.
• Backbone router
▫ Routers that sit in the backbone area.
▫ They have at least one interface connected to Area 0.
▫ These routers maintain OSPF routing information using the same
procedures and algorithms as internal routers.
▫ Area 0 serves as the transit area between other OSPF areas.
49
Backbone router
• Routers that sit in the backbone area.
• They have at least one interface connected to Area 0.
• These routers maintain OSPF routing information using the same
procedures and algorithms as internal routers.
• Area 0 serves as the transit area between other OSPF areas.
50
Other Protocols
• ARP
▫ Address Resolution Protocol (ARP) is a telecommunications protocol used
for resolution of network layer addresses into link layer addresses
• RARP
▫ RARP (Reverse Address Resolution Protocol) is a protocol by which a
physical machine in a local area network can request to learn its IP address
from a gateway server's Address Resolution Protocol (ARP) table or cache.
▫ A network administrator creates a table in a local area network's gateway
router that maps the physical machine (or Media Access Control - MAC
address) addresses to corresponding Internet Protocol addresses.
▫ When a new machine is set up, its RARP client program requests from the
RARP server on the router to be sent its IP address. Assuming that an
entry has been set up in the router table, the RARP server will return the
IP address to the machine which can store it for future use.
60
61
Questions ?
64
Thank you