SlideShare a Scribd company logo
7.1
Chapter 7
Network Layer:
IPAddress assignment &
Routing
• Computer Networks
• Al-Mustansiryah University
• Elec. Eng. Department College of Engineering
Fourth Year Class
IP Address assignment Methods:
• Manual Host Configuration
• RARP
• BOOTP
• DHCP
7.2
Manual Host Configuration
• Required elements:
– IP Address
– Subnet Mask
– Default Gateway
7.3
RARP
• RARP, or Reverse Address Resolution
Protocol.
• Like ARP, used to map MAC address to IP
addresses.
• Works in reverse - used by devices to find their
own IP address.
7.4
RARP request & reply
• Diskless workstations will send a RARP request,
which is a Layer-2 broadcast.
• Only a RARP server can respond to a RARP
request.
• RARP servers maintain a table of IP to MAC
address mappings for RARP clients.
• During the boot process, RARP clients call the
RARP server to obtain their IP configuration
information.
7.5
ARP/RARP Message Structure
7.6
7.7
Computer FE:ED:F9:23:44:EF needs to get its IP address for
internal operation
7.8
RARP: Request Generation
Computer FE:ED:F9:23:44:EF generates a RARP request.
7.9
Reply Generation
The RARP server creates a RARP reply message for the
requesting client
7.10
BOOTP
• Client sends a bootrequest packet - a Layer 3
broadcast (255.255.255.255)
• BOOTP server responds with a bootreply
packet containing client’s IP address and
gateway IP address.
7.11
BOOTP Message Structure
7.12
7.13
DHCP
• Like BOOTP:
– Client sends an IP broadcast datagram.
– DHCP server returns packet containing IP address
of client and gateway.
• Unlike BOOTP:
– Server can return additional information and
provide a complete IP configuration:
• Subnet mask
• Domain Name Server address
7.14
DHCP - Benefits
• Low maintenance
• Provides complete IP configuration
• Easy to renumber your network - just
change the address range covered by the
DHCP server
7.15
FORWARDING
Forwarding means to place the packet in its route to its
destination. Forwarding requires a host or a router to
have a routing table. When a host has a packet to send
or when a router has received a packet to be forwarded,
it looks at this table to find the route to the final
destination.
7.16
Routing Protocol & Routing Algorithm
A Routing Protocol is a combination of rules and
procedures that lets routers in an internet inform
each other of changes.
A Routing Algorithm is that part of network layer
software responsible for deciding which output
line and incoming packet should be transmitted
on.
7.17
Default routing
R1 is used to route packets to hosts
connected to N2.
However, R2 is used to as default to
route other packets to the rest of
Internet without listing all the
networks involved
Only one default routing is allowed
with network address 0.0.0.0
7.18
Make a routing table for router R1, using the
configuration in Figure below
Routing table for router R1 in Figure aboveSolution
m3
The table is sorted from the longest mask to the shortest mask.
Example .1
7.19
Configuration for routing example
Mask Dest. Next Hop I.
255.0.0.0 111.0.0.0 -- m0
255.255.255.224 193.14.5.160 - m2
255.255.255.224 193.14.5.192 - m1
255.255.255.255 194.17.21.16 111.20.18.14 m0
255.255.255.0 192.16.7.0 111.15.17.32 m0
255.255.255.0 194.17.21.0 111.20.18.14 m0
0.0.0.0 0.0.0.0 111.30.31.18 m0
Standard
delivery
Host-specific
Network-
specific
Default
Example .2
7.20
Make the routing table for router R1 in figure below
Subnet mask Destination Next Hop I.
255.255.255.0 200.8.4.0 ---- m2
255.255.255.0 80.4.5.0 201.4.10.3 m1
or 200.8.4.12 or m2
255.255.255.0 80.4.6.0 201.4.10.3 m1
or 200.4.8.12 or m2
0.0.0.0 0.0.0.0 m0
Solution
Example .3
7.21
Routing Protocol:
Interior Vs Exterior
7.22
Routing Architecture in the Internet
An AS is a group of networks and routers under the authority
of a single administrator.
7.23
A static routing table
contains information entered manually
Usually remained unchanged.
A dynamic routing table is updated
periodically or whenever necessarily
using one of the dynamic routing protocols
such as RIP, OSPF, or BGP.
Static versus Dynamic Routing
7.24
Routing Protocols: Interior vs Exterior
7.25
1)Routing Information Protocol (RIP)
a) RIP is based on distance vector routing
b) RIP treats all network equals; the cost of passing thru a network is
the same: one hop count per network.
c) Each router/node maintains a table of minimum number of hop-
count.
d) Path costs are based on number of hops.
7.26
Distance Vector Routing (DVR)
3 keys to understand how this algorithm works:
• Sharing knowledge about the entire AS. Each
router shares whatever it has.
• Sharing only with immediate neighbours.
• Sharing at regular intervals. e.g. every 30 sec.
7.27
Initialization of tables in distance vector routing (DVR)
7.28
Updating in distance vector routing example: C to A
A to A via C: ACA = AC+ CA = 2+2
A to B via C: ACB = AC + CB = 2+4
From C From A
A to D via C: ACD = AC + CD = 2+ inf.
A to C via C: ACC = AC + CC = 2+0
A to E via C: ACD = AC + CE = 2+4
7.29
Final Distance vector routing tables
7.30
2) Open Shortest Path First (OSPF)
a) OSPF uses link state routing to update the routing table in an area;
(OSPF divides an AS into different areas).
b) Unlike RIP, OSPF treats the entire network with different
philosophy; depending on the types, cost (metric) and condition of
each link: to define the ‘state’ of a link.
7.31
1. Start with the local node (router): the root of the tree.
2. Assign a cost of 0 to this node and make it the first permanent node.
3. Examine each neighbour node of the node that was the last
permanent node.
4. Assign a cumulative cost to each node and make it tentative.
5. Among the list of tentative nodes
a. Find the node with the smallest cumulative cost and make it permanent.
b. If a node can be reached from more than one direction
i. Select the direction with the shortest cumulative cost.
6. Repeat steps 3 to 5 until every node becomes permanent.
Shortest Path Search
Dijkstra’s Algorithm
7.32
Example of formation of shortest path tree
7.33
Shortest Path Search
The steps used in computing the shortest path from A to D.
The arrows indicate the working node – permanent label.
The cost can relates to
delay
Start search and
compare with
tentative label
Mark permanent
when shortest
node found
Once permanent
never changed
Tentative node can
always be search
and relabelled
Tentative label
change
7.34
3) BGP & Path Vector Routing (PVR)
a) Border Gateway Protocol (BGP) is an inter-domain or inter-
autonomous system routing protocol: routing between different ASs.
b) BGP uses path vector routing to update the routing table in an area.
c) DVR and LSR are not suitable candidates for inter-AS routing :
d) PVR defines the exact paths as an ordered list of ASs that a packet
should travel thru to reach the destination (besides having the
destination network and next router info.) in its routing table.
7.35
Ad

More Related Content

What's hot (20)

Ch22
Ch22Ch22
Ch22
Wayne Jones Jnr
 
Routing table and routing algorithms
Routing table and routing algorithmsRouting table and routing algorithms
Routing table and routing algorithms
lavanyapathy
 
Week13 lec2
Week13 lec2Week13 lec2
Week13 lec2
syedhaiderraza
 
Week14 lec2
Week14 lec2Week14 lec2
Week14 lec2
syedhaiderraza
 
Routing
RoutingRouting
Routing
Amit Pandey
 
Week13 lec1
Week13 lec1Week13 lec1
Week13 lec1
syedhaiderraza
 
Routing
RoutingRouting
Routing
Sisir Ghosh
 
Week16 lec1
Week16 lec1Week16 lec1
Week16 lec1
syedhaiderraza
 
Lecture 3 network layer
Lecture 3 network layerLecture 3 network layer
Lecture 3 network layer
Ronoh Kennedy
 
Routing protocols-network-layer
Routing protocols-network-layerRouting protocols-network-layer
Routing protocols-network-layer
Nitesh Singh
 
Et3003 sem2-1314-7 network layers iv (ipv4)
Et3003 sem2-1314-7 network layers iv (ipv4)Et3003 sem2-1314-7 network layers iv (ipv4)
Et3003 sem2-1314-7 network layers iv (ipv4)
Tutun Juhana
 
Week15 lec1
Week15 lec1Week15 lec1
Week15 lec1
syedhaiderraza
 
Routing algorithm
Routing algorithmRouting algorithm
Routing algorithm
Bushra M
 
Zaharaddeen karami lawal distance vector routing
Zaharaddeen karami lawal distance vector routingZaharaddeen karami lawal distance vector routing
Zaharaddeen karami lawal distance vector routing
Klawal13
 
Computer Network - Network Layer
Computer Network - Network LayerComputer Network - Network Layer
Computer Network - Network Layer
Manoj Kumar
 
22 Network Layer_Delivery_forwarding_and_Routing
22 Network Layer_Delivery_forwarding_and_Routing22 Network Layer_Delivery_forwarding_and_Routing
22 Network Layer_Delivery_forwarding_and_Routing
Ahmar Hashmi
 
Et3003 sem2-1314-3 ethernets
Et3003 sem2-1314-3 ethernetsEt3003 sem2-1314-3 ethernets
Et3003 sem2-1314-3 ethernets
Tutun Juhana
 
Ospf
OspfOspf
Ospf
Sasi Reddy
 
OSPF - Routing Protocol
OSPF - Routing ProtocolOSPF - Routing Protocol
OSPF - Routing Protocol
selvakumar_b1985
 
Opnet lab 2 solutions
Opnet lab 2 solutionsOpnet lab 2 solutions
Opnet lab 2 solutions
حيدر نافع nafaa
 
Routing table and routing algorithms
Routing table and routing algorithmsRouting table and routing algorithms
Routing table and routing algorithms
lavanyapathy
 
Lecture 3 network layer
Lecture 3 network layerLecture 3 network layer
Lecture 3 network layer
Ronoh Kennedy
 
Routing protocols-network-layer
Routing protocols-network-layerRouting protocols-network-layer
Routing protocols-network-layer
Nitesh Singh
 
Et3003 sem2-1314-7 network layers iv (ipv4)
Et3003 sem2-1314-7 network layers iv (ipv4)Et3003 sem2-1314-7 network layers iv (ipv4)
Et3003 sem2-1314-7 network layers iv (ipv4)
Tutun Juhana
 
Routing algorithm
Routing algorithmRouting algorithm
Routing algorithm
Bushra M
 
Zaharaddeen karami lawal distance vector routing
Zaharaddeen karami lawal distance vector routingZaharaddeen karami lawal distance vector routing
Zaharaddeen karami lawal distance vector routing
Klawal13
 
Computer Network - Network Layer
Computer Network - Network LayerComputer Network - Network Layer
Computer Network - Network Layer
Manoj Kumar
 
22 Network Layer_Delivery_forwarding_and_Routing
22 Network Layer_Delivery_forwarding_and_Routing22 Network Layer_Delivery_forwarding_and_Routing
22 Network Layer_Delivery_forwarding_and_Routing
Ahmar Hashmi
 
Et3003 sem2-1314-3 ethernets
Et3003 sem2-1314-3 ethernetsEt3003 sem2-1314-3 ethernets
Et3003 sem2-1314-3 ethernets
Tutun Juhana
 

Similar to Network layer ip address assignment and routing (20)

OSPF.pdf
OSPF.pdfOSPF.pdf
OSPF.pdf
Jayaprasanna4
 
All in one q & ans
All in one q & ansAll in one q & ans
All in one q & ans
Ravi Kodoli
 
DSR,LSR,IGMP,RIP,OSPF.ppt
DSR,LSR,IGMP,RIP,OSPF.pptDSR,LSR,IGMP,RIP,OSPF.ppt
DSR,LSR,IGMP,RIP,OSPF.ppt
Munnakumar518378
 
Routing Protocols.pptx
Routing Protocols.pptxRouting Protocols.pptx
Routing Protocols.pptx
sazia7
 
IPv6 Routing.pdf
IPv6 Routing.pdfIPv6 Routing.pdf
IPv6 Routing.pdf
niran10
 
Ch5
Ch5Ch5
Ch5
Abdisalam A. Mohamed
 
35d70683c4fd405d89db4a5287aa4b89
35d70683c4fd405d89db4a5287aa4b8935d70683c4fd405d89db4a5287aa4b89
35d70683c4fd405d89db4a5287aa4b89
Abdisalam A. Mohamed
 
Network Layer Protocol.pptx
Network Layer Protocol.pptxNetwork Layer Protocol.pptx
Network Layer Protocol.pptx
SeekayAlaisKaruppaia
 
routing in computer networks for btech.pptx
routing in computer networks for btech.pptxrouting in computer networks for btech.pptx
routing in computer networks for btech.pptx
RohanRathi17
 
Chapter7ccna
Chapter7ccnaChapter7ccna
Chapter7ccna
ernestlithur
 
Chapter7ccna
Chapter7ccnaChapter7ccna
Chapter7ccna
robertoxe
 
Concept of Network Routing Layer
Concept of Network Routing LayerConcept of Network Routing Layer
Concept of Network Routing Layer
Pawan Singh
 
ospf.ppt
ospf.pptospf.ppt
ospf.ppt
SolWeje
 
Arun project-Final
Arun project-FinalArun project-Final
Arun project-Final
Arun CCNA,CCNAvoice,CCNP Voice,MCITPCertified
 
Routing protocols.pptx
Routing protocols.pptxRouting protocols.pptx
Routing protocols.pptx
MNSUAM
 
routing-Network182912222222222918298181.ppt
routing-Network182912222222222918298181.pptrouting-Network182912222222222918298181.ppt
routing-Network182912222222222918298181.ppt
alfredjbphiri
 
Ccna 2 chapter 10 v4.0 answers 2011
Ccna 2 chapter 10 v4.0 answers 2011Ccna 2 chapter 10 v4.0 answers 2011
Ccna 2 chapter 10 v4.0 answers 2011
Dân Chơi
 
Gohil-Network layer & Address Resolution Protocol.pptx
Gohil-Network layer & Address Resolution Protocol.pptxGohil-Network layer & Address Resolution Protocol.pptx
Gohil-Network layer & Address Resolution Protocol.pptx
Juvil2
 
Unit-3-Part-1 [Autosaved].ppt
Unit-3-Part-1 [Autosaved].pptUnit-3-Part-1 [Autosaved].ppt
Unit-3-Part-1 [Autosaved].ppt
Ramya Nellutla
 
Routing of netwok protocls and how .pptx
Routing of netwok protocls and how .pptxRouting of netwok protocls and how .pptx
Routing of netwok protocls and how .pptx
sayidkhalif
 
All in one q & ans
All in one q & ansAll in one q & ans
All in one q & ans
Ravi Kodoli
 
Routing Protocols.pptx
Routing Protocols.pptxRouting Protocols.pptx
Routing Protocols.pptx
sazia7
 
IPv6 Routing.pdf
IPv6 Routing.pdfIPv6 Routing.pdf
IPv6 Routing.pdf
niran10
 
routing in computer networks for btech.pptx
routing in computer networks for btech.pptxrouting in computer networks for btech.pptx
routing in computer networks for btech.pptx
RohanRathi17
 
Chapter7ccna
Chapter7ccnaChapter7ccna
Chapter7ccna
robertoxe
 
Concept of Network Routing Layer
Concept of Network Routing LayerConcept of Network Routing Layer
Concept of Network Routing Layer
Pawan Singh
 
ospf.ppt
ospf.pptospf.ppt
ospf.ppt
SolWeje
 
Routing protocols.pptx
Routing protocols.pptxRouting protocols.pptx
Routing protocols.pptx
MNSUAM
 
routing-Network182912222222222918298181.ppt
routing-Network182912222222222918298181.pptrouting-Network182912222222222918298181.ppt
routing-Network182912222222222918298181.ppt
alfredjbphiri
 
Ccna 2 chapter 10 v4.0 answers 2011
Ccna 2 chapter 10 v4.0 answers 2011Ccna 2 chapter 10 v4.0 answers 2011
Ccna 2 chapter 10 v4.0 answers 2011
Dân Chơi
 
Gohil-Network layer & Address Resolution Protocol.pptx
Gohil-Network layer & Address Resolution Protocol.pptxGohil-Network layer & Address Resolution Protocol.pptx
Gohil-Network layer & Address Resolution Protocol.pptx
Juvil2
 
Unit-3-Part-1 [Autosaved].ppt
Unit-3-Part-1 [Autosaved].pptUnit-3-Part-1 [Autosaved].ppt
Unit-3-Part-1 [Autosaved].ppt
Ramya Nellutla
 
Routing of netwok protocls and how .pptx
Routing of netwok protocls and how .pptxRouting of netwok protocls and how .pptx
Routing of netwok protocls and how .pptx
sayidkhalif
 
Ad

Recently uploaded (20)

IBAAS 2023 Series_Lecture 8- Dr. Nandi.pdf
IBAAS 2023 Series_Lecture 8- Dr. Nandi.pdfIBAAS 2023 Series_Lecture 8- Dr. Nandi.pdf
IBAAS 2023 Series_Lecture 8- Dr. Nandi.pdf
VigneshPalaniappanM
 
Dahua Smart Cityyyyyyyyyyyyyyyyyy2025.pdf
Dahua Smart Cityyyyyyyyyyyyyyyyyy2025.pdfDahua Smart Cityyyyyyyyyyyyyyyyyy2025.pdf
Dahua Smart Cityyyyyyyyyyyyyyyyyy2025.pdf
PawachMetharattanara
 
Frontend Architecture Diagram/Guide For Frontend Engineers
Frontend Architecture Diagram/Guide For Frontend EngineersFrontend Architecture Diagram/Guide For Frontend Engineers
Frontend Architecture Diagram/Guide For Frontend Engineers
Michael Hertzberg
 
860556374-10280271.pptx PETROLEUM COKE CALCINATION PLANT
860556374-10280271.pptx PETROLEUM COKE CALCINATION PLANT860556374-10280271.pptx PETROLEUM COKE CALCINATION PLANT
860556374-10280271.pptx PETROLEUM COKE CALCINATION PLANT
Pierre Celestin Eyock
 
22PCOAM16_MACHINE_LEARNING_UNIT_IV_NOTES_with_QB
22PCOAM16_MACHINE_LEARNING_UNIT_IV_NOTES_with_QB22PCOAM16_MACHINE_LEARNING_UNIT_IV_NOTES_with_QB
22PCOAM16_MACHINE_LEARNING_UNIT_IV_NOTES_with_QB
Guru Nanak Technical Institutions
 
Working with USDOT UTCs: From Conception to Implementation
Working with USDOT UTCs: From Conception to ImplementationWorking with USDOT UTCs: From Conception to Implementation
Working with USDOT UTCs: From Conception to Implementation
Alabama Transportation Assistance Program
 
Modeling the Influence of Environmental Factors on Concrete Evaporation Rate
Modeling the Influence of Environmental Factors on Concrete Evaporation RateModeling the Influence of Environmental Factors on Concrete Evaporation Rate
Modeling the Influence of Environmental Factors on Concrete Evaporation Rate
Journal of Soft Computing in Civil Engineering
 
Jacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia - Excels In Optimizing Software ApplicationsJacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia
 
[PyCon US 2025] Scaling the Mountain_ A Framework for Tackling Large-Scale Te...
[PyCon US 2025] Scaling the Mountain_ A Framework for Tackling Large-Scale Te...[PyCon US 2025] Scaling the Mountain_ A Framework for Tackling Large-Scale Te...
[PyCon US 2025] Scaling the Mountain_ A Framework for Tackling Large-Scale Te...
Jimmy Lai
 
Water Industry Process Automation & Control Monthly May 2025
Water Industry Process Automation & Control Monthly May 2025Water Industry Process Automation & Control Monthly May 2025
Water Industry Process Automation & Control Monthly May 2025
Water Industry Process Automation & Control
 
UNIT 3 Software Engineering (BCS601) EIOV.pdf
UNIT 3 Software Engineering (BCS601) EIOV.pdfUNIT 3 Software Engineering (BCS601) EIOV.pdf
UNIT 3 Software Engineering (BCS601) EIOV.pdf
sikarwaramit089
 
David Boutry - Specializes In AWS, Microservices And Python
David Boutry - Specializes In AWS, Microservices And PythonDavid Boutry - Specializes In AWS, Microservices And Python
David Boutry - Specializes In AWS, Microservices And Python
David Boutry
 
🚀 TDX Bengaluru 2025 Unwrapped: Key Highlights, Innovations & Trailblazer Tak...
🚀 TDX Bengaluru 2025 Unwrapped: Key Highlights, Innovations & Trailblazer Tak...🚀 TDX Bengaluru 2025 Unwrapped: Key Highlights, Innovations & Trailblazer Tak...
🚀 TDX Bengaluru 2025 Unwrapped: Key Highlights, Innovations & Trailblazer Tak...
SanjeetMishra29
 
AI-Powered Data Management and Governance in Retail
AI-Powered Data Management and Governance in RetailAI-Powered Data Management and Governance in Retail
AI-Powered Data Management and Governance in Retail
IJDKP
 
vtc2018fall_otfs_tutorial_presentation_1.pdf
vtc2018fall_otfs_tutorial_presentation_1.pdfvtc2018fall_otfs_tutorial_presentation_1.pdf
vtc2018fall_otfs_tutorial_presentation_1.pdf
RaghavaGD1
 
Environment .................................
Environment .................................Environment .................................
Environment .................................
shadyozq9
 
hypermedia_system_revisit_roy_fielding .
hypermedia_system_revisit_roy_fielding .hypermedia_system_revisit_roy_fielding .
hypermedia_system_revisit_roy_fielding .
NABLAS株式会社
 
Zeiss-Ultra-Optimeter metrology subject.pdf
Zeiss-Ultra-Optimeter metrology subject.pdfZeiss-Ultra-Optimeter metrology subject.pdf
Zeiss-Ultra-Optimeter metrology subject.pdf
Saikumar174642
 
Machine foundation notes for civil engineering students
Machine foundation notes for civil engineering studentsMachine foundation notes for civil engineering students
Machine foundation notes for civil engineering students
DYPCET
 
Optimizing Reinforced Concrete Cantilever Retaining Walls Using Gases Brownia...
Optimizing Reinforced Concrete Cantilever Retaining Walls Using Gases Brownia...Optimizing Reinforced Concrete Cantilever Retaining Walls Using Gases Brownia...
Optimizing Reinforced Concrete Cantilever Retaining Walls Using Gases Brownia...
Journal of Soft Computing in Civil Engineering
 
IBAAS 2023 Series_Lecture 8- Dr. Nandi.pdf
IBAAS 2023 Series_Lecture 8- Dr. Nandi.pdfIBAAS 2023 Series_Lecture 8- Dr. Nandi.pdf
IBAAS 2023 Series_Lecture 8- Dr. Nandi.pdf
VigneshPalaniappanM
 
Dahua Smart Cityyyyyyyyyyyyyyyyyy2025.pdf
Dahua Smart Cityyyyyyyyyyyyyyyyyy2025.pdfDahua Smart Cityyyyyyyyyyyyyyyyyy2025.pdf
Dahua Smart Cityyyyyyyyyyyyyyyyyy2025.pdf
PawachMetharattanara
 
Frontend Architecture Diagram/Guide For Frontend Engineers
Frontend Architecture Diagram/Guide For Frontend EngineersFrontend Architecture Diagram/Guide For Frontend Engineers
Frontend Architecture Diagram/Guide For Frontend Engineers
Michael Hertzberg
 
860556374-10280271.pptx PETROLEUM COKE CALCINATION PLANT
860556374-10280271.pptx PETROLEUM COKE CALCINATION PLANT860556374-10280271.pptx PETROLEUM COKE CALCINATION PLANT
860556374-10280271.pptx PETROLEUM COKE CALCINATION PLANT
Pierre Celestin Eyock
 
Jacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia - Excels In Optimizing Software ApplicationsJacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia
 
[PyCon US 2025] Scaling the Mountain_ A Framework for Tackling Large-Scale Te...
[PyCon US 2025] Scaling the Mountain_ A Framework for Tackling Large-Scale Te...[PyCon US 2025] Scaling the Mountain_ A Framework for Tackling Large-Scale Te...
[PyCon US 2025] Scaling the Mountain_ A Framework for Tackling Large-Scale Te...
Jimmy Lai
 
UNIT 3 Software Engineering (BCS601) EIOV.pdf
UNIT 3 Software Engineering (BCS601) EIOV.pdfUNIT 3 Software Engineering (BCS601) EIOV.pdf
UNIT 3 Software Engineering (BCS601) EIOV.pdf
sikarwaramit089
 
David Boutry - Specializes In AWS, Microservices And Python
David Boutry - Specializes In AWS, Microservices And PythonDavid Boutry - Specializes In AWS, Microservices And Python
David Boutry - Specializes In AWS, Microservices And Python
David Boutry
 
🚀 TDX Bengaluru 2025 Unwrapped: Key Highlights, Innovations & Trailblazer Tak...
🚀 TDX Bengaluru 2025 Unwrapped: Key Highlights, Innovations & Trailblazer Tak...🚀 TDX Bengaluru 2025 Unwrapped: Key Highlights, Innovations & Trailblazer Tak...
🚀 TDX Bengaluru 2025 Unwrapped: Key Highlights, Innovations & Trailblazer Tak...
SanjeetMishra29
 
AI-Powered Data Management and Governance in Retail
AI-Powered Data Management and Governance in RetailAI-Powered Data Management and Governance in Retail
AI-Powered Data Management and Governance in Retail
IJDKP
 
vtc2018fall_otfs_tutorial_presentation_1.pdf
vtc2018fall_otfs_tutorial_presentation_1.pdfvtc2018fall_otfs_tutorial_presentation_1.pdf
vtc2018fall_otfs_tutorial_presentation_1.pdf
RaghavaGD1
 
Environment .................................
Environment .................................Environment .................................
Environment .................................
shadyozq9
 
hypermedia_system_revisit_roy_fielding .
hypermedia_system_revisit_roy_fielding .hypermedia_system_revisit_roy_fielding .
hypermedia_system_revisit_roy_fielding .
NABLAS株式会社
 
Zeiss-Ultra-Optimeter metrology subject.pdf
Zeiss-Ultra-Optimeter metrology subject.pdfZeiss-Ultra-Optimeter metrology subject.pdf
Zeiss-Ultra-Optimeter metrology subject.pdf
Saikumar174642
 
Machine foundation notes for civil engineering students
Machine foundation notes for civil engineering studentsMachine foundation notes for civil engineering students
Machine foundation notes for civil engineering students
DYPCET
 
Ad

Network layer ip address assignment and routing

  • 1. 7.1 Chapter 7 Network Layer: IPAddress assignment & Routing • Computer Networks • Al-Mustansiryah University • Elec. Eng. Department College of Engineering Fourth Year Class
  • 2. IP Address assignment Methods: • Manual Host Configuration • RARP • BOOTP • DHCP 7.2
  • 3. Manual Host Configuration • Required elements: – IP Address – Subnet Mask – Default Gateway 7.3
  • 4. RARP • RARP, or Reverse Address Resolution Protocol. • Like ARP, used to map MAC address to IP addresses. • Works in reverse - used by devices to find their own IP address. 7.4
  • 5. RARP request & reply • Diskless workstations will send a RARP request, which is a Layer-2 broadcast. • Only a RARP server can respond to a RARP request. • RARP servers maintain a table of IP to MAC address mappings for RARP clients. • During the boot process, RARP clients call the RARP server to obtain their IP configuration information. 7.5
  • 7. 7.7
  • 8. Computer FE:ED:F9:23:44:EF needs to get its IP address for internal operation 7.8
  • 9. RARP: Request Generation Computer FE:ED:F9:23:44:EF generates a RARP request. 7.9
  • 10. Reply Generation The RARP server creates a RARP reply message for the requesting client 7.10
  • 11. BOOTP • Client sends a bootrequest packet - a Layer 3 broadcast (255.255.255.255) • BOOTP server responds with a bootreply packet containing client’s IP address and gateway IP address. 7.11
  • 13. 7.13
  • 14. DHCP • Like BOOTP: – Client sends an IP broadcast datagram. – DHCP server returns packet containing IP address of client and gateway. • Unlike BOOTP: – Server can return additional information and provide a complete IP configuration: • Subnet mask • Domain Name Server address 7.14
  • 15. DHCP - Benefits • Low maintenance • Provides complete IP configuration • Easy to renumber your network - just change the address range covered by the DHCP server 7.15
  • 16. FORWARDING Forwarding means to place the packet in its route to its destination. Forwarding requires a host or a router to have a routing table. When a host has a packet to send or when a router has received a packet to be forwarded, it looks at this table to find the route to the final destination. 7.16
  • 17. Routing Protocol & Routing Algorithm A Routing Protocol is a combination of rules and procedures that lets routers in an internet inform each other of changes. A Routing Algorithm is that part of network layer software responsible for deciding which output line and incoming packet should be transmitted on. 7.17
  • 18. Default routing R1 is used to route packets to hosts connected to N2. However, R2 is used to as default to route other packets to the rest of Internet without listing all the networks involved Only one default routing is allowed with network address 0.0.0.0 7.18
  • 19. Make a routing table for router R1, using the configuration in Figure below Routing table for router R1 in Figure aboveSolution m3 The table is sorted from the longest mask to the shortest mask. Example .1 7.19
  • 20. Configuration for routing example Mask Dest. Next Hop I. 255.0.0.0 111.0.0.0 -- m0 255.255.255.224 193.14.5.160 - m2 255.255.255.224 193.14.5.192 - m1 255.255.255.255 194.17.21.16 111.20.18.14 m0 255.255.255.0 192.16.7.0 111.15.17.32 m0 255.255.255.0 194.17.21.0 111.20.18.14 m0 0.0.0.0 0.0.0.0 111.30.31.18 m0 Standard delivery Host-specific Network- specific Default Example .2 7.20
  • 21. Make the routing table for router R1 in figure below Subnet mask Destination Next Hop I. 255.255.255.0 200.8.4.0 ---- m2 255.255.255.0 80.4.5.0 201.4.10.3 m1 or 200.8.4.12 or m2 255.255.255.0 80.4.6.0 201.4.10.3 m1 or 200.4.8.12 or m2 0.0.0.0 0.0.0.0 m0 Solution Example .3 7.21
  • 23. Routing Architecture in the Internet An AS is a group of networks and routers under the authority of a single administrator. 7.23
  • 24. A static routing table contains information entered manually Usually remained unchanged. A dynamic routing table is updated periodically or whenever necessarily using one of the dynamic routing protocols such as RIP, OSPF, or BGP. Static versus Dynamic Routing 7.24
  • 25. Routing Protocols: Interior vs Exterior 7.25
  • 26. 1)Routing Information Protocol (RIP) a) RIP is based on distance vector routing b) RIP treats all network equals; the cost of passing thru a network is the same: one hop count per network. c) Each router/node maintains a table of minimum number of hop- count. d) Path costs are based on number of hops. 7.26
  • 27. Distance Vector Routing (DVR) 3 keys to understand how this algorithm works: • Sharing knowledge about the entire AS. Each router shares whatever it has. • Sharing only with immediate neighbours. • Sharing at regular intervals. e.g. every 30 sec. 7.27
  • 28. Initialization of tables in distance vector routing (DVR) 7.28
  • 29. Updating in distance vector routing example: C to A A to A via C: ACA = AC+ CA = 2+2 A to B via C: ACB = AC + CB = 2+4 From C From A A to D via C: ACD = AC + CD = 2+ inf. A to C via C: ACC = AC + CC = 2+0 A to E via C: ACD = AC + CE = 2+4 7.29
  • 30. Final Distance vector routing tables 7.30
  • 31. 2) Open Shortest Path First (OSPF) a) OSPF uses link state routing to update the routing table in an area; (OSPF divides an AS into different areas). b) Unlike RIP, OSPF treats the entire network with different philosophy; depending on the types, cost (metric) and condition of each link: to define the ‘state’ of a link. 7.31
  • 32. 1. Start with the local node (router): the root of the tree. 2. Assign a cost of 0 to this node and make it the first permanent node. 3. Examine each neighbour node of the node that was the last permanent node. 4. Assign a cumulative cost to each node and make it tentative. 5. Among the list of tentative nodes a. Find the node with the smallest cumulative cost and make it permanent. b. If a node can be reached from more than one direction i. Select the direction with the shortest cumulative cost. 6. Repeat steps 3 to 5 until every node becomes permanent. Shortest Path Search Dijkstra’s Algorithm 7.32
  • 33. Example of formation of shortest path tree 7.33
  • 34. Shortest Path Search The steps used in computing the shortest path from A to D. The arrows indicate the working node – permanent label. The cost can relates to delay Start search and compare with tentative label Mark permanent when shortest node found Once permanent never changed Tentative node can always be search and relabelled Tentative label change 7.34
  • 35. 3) BGP & Path Vector Routing (PVR) a) Border Gateway Protocol (BGP) is an inter-domain or inter- autonomous system routing protocol: routing between different ASs. b) BGP uses path vector routing to update the routing table in an area. c) DVR and LSR are not suitable candidates for inter-AS routing : d) PVR defines the exact paths as an ordered list of ASs that a packet should travel thru to reach the destination (besides having the destination network and next router info.) in its routing table. 7.35
  翻译: