SlideShare una empresa de Scribd logo
1 de 19
Descargar para leer sin conexión
Computer Networks                                       Prof. Hema A Murthy




                                        Network Layer
         • Deliver a packet from a source to a
           destination across a WAN / LAN
         • Best effort to deliver packet
         • Internetworking




Indian Institute of Technology Madras
Computer Networks                                                Prof. Hema A Murthy




                A Network Acros the Globe

                                    Subnet 1          Subnet 2


                       ..   .
           A
                       .        . .                         B
                                .
                         . .. .
                                               Subnet 3
Indian Institute of Technology Madras
Computer Networks                                       Prof. Hema A Murthy




                           Network Layer: Issues
         • Network wide address
         • Routing
         • Load balancing, link failure
                – Reroute
         • Diversity
                – Handle differences between subnet, maximum
                  frame size
                – Ethernet – Token ring

Indian Institute of Technology Madras
Computer Networks                                  Prof. Hema A Murthy




                           Network Layer: Issues
         • Policies
                – Security, Organisation,
         • Rational policies
                – Different kinds of links
         • Network Layer Services:
                – Connection Oriented
                – Connectionless


Indian Institute of Technology Madras
Computer Networks                                      Prof. Hema A Murthy




                         Network Layer (contd.)
         • Connection Oriented:
                –   (Telephone System View)
                –    Consumer Carrier View
                –    Setup
                –    Transfer reliable packet stream
                –    Disconnect



Indian Institute of Technology Madras
Computer Networks                                       Prof. Hema A Murthy




                                        Network Layer
         • Connectionless: (ARPANET View)
                – Send, Receive
                – No error checking or flow control
         • Internally VC or DG
         • Externally all possible




Indian Institute of Technology Madras
Computer Networks                                 Prof. Hema A Murthy




                          Network Layer (contd)
         • VC         VC        DG      DG
         • VC         DG        DG      VC
         • VC – Avoids setting up a new route for
           every packet or cell




Indian Institute of Technology Madras
Computer Networks                                                              Prof. Hema A Murthy

Comparison VC and DG services:

           Issues                            DG                        VC
      Circuit setup                     Not required             Not required
      Addressing                        Every packet full        Check packet
                                        source and destination   start VC no
      Routing                           Each packet              Route check, all
                                                                 packets follow route
      Failure of                        Packets lost, no other   All VCs through
      route                             effect                   router fail
     Congestion                         Difficult                Easy if enough buffer
     control                                                     space for each VC

Indian Institute of Technology Madras
Computer Networks                                                  Prof. Hema A Murthy




                                        Virtual Circuits
                                                       B



                              C #1          2      3
                          V

                              1
                                                           6   C

                 A
                                        4          5

                                            VC#2


Indian Institute of Technology Madras
Computer Networks                                          Prof. Hema A Murthy




                                        Virtual Circuits
         • Virtual circuits maintained across the
           network
                – Router maintains host and VC number




Indian Institute of Technology Madras
Computer Networks                                         Prof. Hema A Murthy




                                        InterNetworking

         • InterNetworking – interconnecting different
           Networks
         • heterogeneity and scale
         • addressing problem
         • A logical network built over a collection of
           physical networks



Indian Institute of Technology Madras
Computer Networks                                                       Prof. Hema A Murthy




            Example of Internetworking

                           N1 (Ethernet)

                                                       PPP    R3
                             h1           R1      h2               N2
                                                             N4
                                                       R2

                                        N3 FDDI
                                                              h6   h7    h8



                                 h4               h5
Indian Institute of Technology Madras
Computer Networks                                                             Prof. Hema A Murthy




                       Issues in Internetworking
      h1 – h8


      TCP


          IP
                                  IP                  IP           IP

      ETH
                         ETH            FDDI   FDDI    PPP   PPP        ETH


                                R1                R2               R3

Indian Institute of Technology Madras
Computer Networks                                  Prof. Hema A Murthy




                       Issues in Internetworking
         • Different packet sizes
         • Different protocols
         • Different packet formats




Indian Institute of Technology Madras
Computer Networks                                                 Prof. Hema A Murthy




                      Network Layer in TCP/IP
         • Connectionless
                – Best effort model
                – IP makes every effort to deliver datagrams
                – Carries enough information to let network forward the
                  packet to its destination
                – Network makes a best effort
                – No effort made to recover from corrupted / erroneous/
                  misdelivered packets
                – IP – runs over anything!


Indian Institute of Technology Madras
Computer Networks                                                               Prof. Hema A Murthy



                                    IP Packet format
                           header              data
All packets align on 32 bit boundaries – to simplify processing
       0               4                 8            16             19                     31
           Version Hidden                    TOS                  Length
                            Identifier                     Flag            Offset
                TTL                     Protocol                  Checksum
                                                   Source address

                                                   Destination address
                                                   Option Variable



Indian Institute of Technology Madras          Data
Computer Networks                                                       Prof. Hema A Murthy




                                   IP Packet Format
         • Identifier
                – Fragmentation ID
                – (all frags belong to same packet)
         • RARP
                – Reverse Address Resolution Protocol
                – Useful for diskless workstation
                – Normally get IP address from etc/ system configuration/
                  network
         • Host sends broadcast
                – Ethernet address to all reply an Ethernet address with IP
         •               address – unicast
                – Host issues TFTP for boot image



Indian Institute of Technology Madras
Computer Networks                                                       Prof. Hema A Murthy




                                   IP Packet Format
         •     Multiple RARP servers for redundancy
                – Increased traffic on the network
                – Broadcast for RARP not forwarded by all routes (IP)
                – Use BOOTP (UDP)
                      • Forwarded by router
                      • Gets IP address of server with boot image
         • Fragmentation Offset
                      • Location of fragmentation in DG
         • TTL
                –   Limit packet life time
                –   Support to count time in seconds
                –   Maximum life time – 255
                –   In practice hop count


Indian Institute of Technology Madras
Computer Networks                                                            Prof. Hema A Murthy




                                   IP Packet Format
         •    Protocol
                – When Network Layer assembles DL – it needs to know to which process
                  to give it to?
                – TCP/ UDP – protocol – process not global across the entire Internet
         •    Header Checksum – verifies header only
         •    Options
                – Security
                – Strict source routing
                      • Complete path source to destination
                      • Loose source routing
                            – Must pass through certain routers
                      • Record route
                      • Router append its IP address on packet
                      • Record time stamp
                            – Records IP address and time




Indian Institute of Technology Madras

Más contenido relacionado

La actualidad más candente

La actualidad más candente (8)

Traffic Engineering in Metro Ethernet
Traffic Engineering in Metro EthernetTraffic Engineering in Metro Ethernet
Traffic Engineering in Metro Ethernet
 
Review on security issues of AODV routing protocol for MANETs
Review on security issues of AODV routing protocol for MANETsReview on security issues of AODV routing protocol for MANETs
Review on security issues of AODV routing protocol for MANETs
 
A NETWORK DATA AND COMMUNICATION ANALYSIS BASED COMBINED APPROACH TO IMPROVE ...
A NETWORK DATA AND COMMUNICATION ANALYSIS BASED COMBINED APPROACH TO IMPROVE ...A NETWORK DATA AND COMMUNICATION ANALYSIS BASED COMBINED APPROACH TO IMPROVE ...
A NETWORK DATA AND COMMUNICATION ANALYSIS BASED COMBINED APPROACH TO IMPROVE ...
 
557 562
557 562557 562
557 562
 
Ijarcet vol-2-issue-7-2297-2301
Ijarcet vol-2-issue-7-2297-2301Ijarcet vol-2-issue-7-2297-2301
Ijarcet vol-2-issue-7-2297-2301
 
Mini Project- Implementation & Evaluation Of Wireless La Ns
Mini Project- Implementation & Evaluation Of Wireless La NsMini Project- Implementation & Evaluation Of Wireless La Ns
Mini Project- Implementation & Evaluation Of Wireless La Ns
 
Ccna day1
Ccna day1Ccna day1
Ccna day1
 
Implementation of intelligent wide area network(wan)- report
Implementation of intelligent wide area network(wan)- reportImplementation of intelligent wide area network(wan)- report
Implementation of intelligent wide area network(wan)- report
 

Similar a Network layer

Lecture01_Networks_Intro.pdf
Lecture01_Networks_Intro.pdfLecture01_Networks_Intro.pdf
Lecture01_Networks_Intro.pdfsyam babu
 
Lecture04_Layering.pdf
Lecture04_Layering.pdfLecture04_Layering.pdf
Lecture04_Layering.pdfsyam babu
 
Metro ethernet metanoiainc-next-gen-workshop_2007-07-17
Metro ethernet metanoiainc-next-gen-workshop_2007-07-17Metro ethernet metanoiainc-next-gen-workshop_2007-07-17
Metro ethernet metanoiainc-next-gen-workshop_2007-07-17Vishal Sharma, Ph.D.
 
The Network Layer
The Network LayerThe Network Layer
The Network Layeradil raja
 
Presentation1.pptx
Presentation1.pptxPresentation1.pptx
Presentation1.pptxMathavan N
 
Introduction To Computer Networks
Introduction To Computer NetworksIntroduction To Computer Networks
Introduction To Computer Networksadil raja
 
Manet - The Art of Networking without a Network
Manet - The Art of Networking without a NetworkManet - The Art of Networking without a Network
Manet - The Art of Networking without a NetworkTarun Varshney
 
Life & Work of Dr. Vinton Cerf and Dr. Robert Kahn | Turing100@Persistent
Life & Work of Dr. Vinton Cerf and Dr. Robert Kahn | Turing100@PersistentLife & Work of Dr. Vinton Cerf and Dr. Robert Kahn | Turing100@Persistent
Life & Work of Dr. Vinton Cerf and Dr. Robert Kahn | Turing100@PersistentPersistent Systems Ltd.
 
Statistical Dissemination Control in Large Machine-to-Machine Communication N...
Statistical Dissemination Control in Large Machine-to-Machine Communication N...Statistical Dissemination Control in Large Machine-to-Machine Communication N...
Statistical Dissemination Control in Large Machine-to-Machine Communication N...kitechsolutions
 
Network architecture
Network architectureNetwork architecture
Network architectureOnline
 
Modern Carrier Strategies for Traffic Engineering
Modern Carrier Strategies for Traffic EngineeringModern Carrier Strategies for Traffic Engineering
Modern Carrier Strategies for Traffic EngineeringVishal Sharma, Ph.D.
 
4 Structure Cabling System Design
4 Structure Cabling System Design4 Structure Cabling System Design
4 Structure Cabling System DesignMrirfan
 

Similar a Network layer (20)

Lecture01_Networks_Intro.pdf
Lecture01_Networks_Intro.pdfLecture01_Networks_Intro.pdf
Lecture01_Networks_Intro.pdf
 
Lecture04_Layering.pdf
Lecture04_Layering.pdfLecture04_Layering.pdf
Lecture04_Layering.pdf
 
token bus
 token bus token bus
token bus
 
Metro ethernet metanoiainc-next-gen-workshop_2007-07-17
Metro ethernet metanoiainc-next-gen-workshop_2007-07-17Metro ethernet metanoiainc-next-gen-workshop_2007-07-17
Metro ethernet metanoiainc-next-gen-workshop_2007-07-17
 
The Network Layer
The Network LayerThe Network Layer
The Network Layer
 
Final#1
Final#1Final#1
Final#1
 
Final#1
Final#1Final#1
Final#1
 
Presentation1.pptx
Presentation1.pptxPresentation1.pptx
Presentation1.pptx
 
Introduction To Computer Networks
Introduction To Computer NetworksIntroduction To Computer Networks
Introduction To Computer Networks
 
MPLS ppt
MPLS pptMPLS ppt
MPLS ppt
 
Networking lec1 4
Networking lec1 4Networking lec1 4
Networking lec1 4
 
Manet - The Art of Networking without a Network
Manet - The Art of Networking without a NetworkManet - The Art of Networking without a Network
Manet - The Art of Networking without a Network
 
Life & Work of Dr. Vinton Cerf and Dr. Robert Kahn | Turing100@Persistent
Life & Work of Dr. Vinton Cerf and Dr. Robert Kahn | Turing100@PersistentLife & Work of Dr. Vinton Cerf and Dr. Robert Kahn | Turing100@Persistent
Life & Work of Dr. Vinton Cerf and Dr. Robert Kahn | Turing100@Persistent
 
Statistical Dissemination Control in Large Machine-to-Machine Communication N...
Statistical Dissemination Control in Large Machine-to-Machine Communication N...Statistical Dissemination Control in Large Machine-to-Machine Communication N...
Statistical Dissemination Control in Large Machine-to-Machine Communication N...
 
Isys20261 lecture 06
Isys20261 lecture 06Isys20261 lecture 06
Isys20261 lecture 06
 
1. computer networks u1 ver 1.0
1. computer networks u1 ver 1.01. computer networks u1 ver 1.0
1. computer networks u1 ver 1.0
 
Network architecture
Network architectureNetwork architecture
Network architecture
 
Modern Carrier Strategies for Traffic Engineering
Modern Carrier Strategies for Traffic EngineeringModern Carrier Strategies for Traffic Engineering
Modern Carrier Strategies for Traffic Engineering
 
4 Structure Cabling System Design
4 Structure Cabling System Design4 Structure Cabling System Design
4 Structure Cabling System Design
 
Nat report1
Nat report1Nat report1
Nat report1
 

Network layer

  • 1. Computer Networks Prof. Hema A Murthy Network Layer • Deliver a packet from a source to a destination across a WAN / LAN • Best effort to deliver packet • Internetworking Indian Institute of Technology Madras
  • 2. Computer Networks Prof. Hema A Murthy A Network Acros the Globe Subnet 1 Subnet 2 .. . A . . . B . . .. . Subnet 3 Indian Institute of Technology Madras
  • 3. Computer Networks Prof. Hema A Murthy Network Layer: Issues • Network wide address • Routing • Load balancing, link failure – Reroute • Diversity – Handle differences between subnet, maximum frame size – Ethernet – Token ring Indian Institute of Technology Madras
  • 4. Computer Networks Prof. Hema A Murthy Network Layer: Issues • Policies – Security, Organisation, • Rational policies – Different kinds of links • Network Layer Services: – Connection Oriented – Connectionless Indian Institute of Technology Madras
  • 5. Computer Networks Prof. Hema A Murthy Network Layer (contd.) • Connection Oriented: – (Telephone System View) – Consumer Carrier View – Setup – Transfer reliable packet stream – Disconnect Indian Institute of Technology Madras
  • 6. Computer Networks Prof. Hema A Murthy Network Layer • Connectionless: (ARPANET View) – Send, Receive – No error checking or flow control • Internally VC or DG • Externally all possible Indian Institute of Technology Madras
  • 7. Computer Networks Prof. Hema A Murthy Network Layer (contd) • VC VC DG DG • VC DG DG VC • VC – Avoids setting up a new route for every packet or cell Indian Institute of Technology Madras
  • 8. Computer Networks Prof. Hema A Murthy Comparison VC and DG services: Issues DG VC Circuit setup Not required Not required Addressing Every packet full Check packet source and destination start VC no Routing Each packet Route check, all packets follow route Failure of Packets lost, no other All VCs through route effect router fail Congestion Difficult Easy if enough buffer control space for each VC Indian Institute of Technology Madras
  • 9. Computer Networks Prof. Hema A Murthy Virtual Circuits B C #1 2 3 V 1 6 C A 4 5 VC#2 Indian Institute of Technology Madras
  • 10. Computer Networks Prof. Hema A Murthy Virtual Circuits • Virtual circuits maintained across the network – Router maintains host and VC number Indian Institute of Technology Madras
  • 11. Computer Networks Prof. Hema A Murthy InterNetworking • InterNetworking – interconnecting different Networks • heterogeneity and scale • addressing problem • A logical network built over a collection of physical networks Indian Institute of Technology Madras
  • 12. Computer Networks Prof. Hema A Murthy Example of Internetworking N1 (Ethernet) PPP R3 h1 R1 h2 N2 N4 R2 N3 FDDI h6 h7 h8 h4 h5 Indian Institute of Technology Madras
  • 13. Computer Networks Prof. Hema A Murthy Issues in Internetworking h1 – h8 TCP IP IP IP IP ETH ETH FDDI FDDI PPP PPP ETH R1 R2 R3 Indian Institute of Technology Madras
  • 14. Computer Networks Prof. Hema A Murthy Issues in Internetworking • Different packet sizes • Different protocols • Different packet formats Indian Institute of Technology Madras
  • 15. Computer Networks Prof. Hema A Murthy Network Layer in TCP/IP • Connectionless – Best effort model – IP makes every effort to deliver datagrams – Carries enough information to let network forward the packet to its destination – Network makes a best effort – No effort made to recover from corrupted / erroneous/ misdelivered packets – IP – runs over anything! Indian Institute of Technology Madras
  • 16. Computer Networks Prof. Hema A Murthy IP Packet format header data All packets align on 32 bit boundaries – to simplify processing 0 4 8 16 19 31 Version Hidden TOS Length Identifier Flag Offset TTL Protocol Checksum Source address Destination address Option Variable Indian Institute of Technology Madras Data
  • 17. Computer Networks Prof. Hema A Murthy IP Packet Format • Identifier – Fragmentation ID – (all frags belong to same packet) • RARP – Reverse Address Resolution Protocol – Useful for diskless workstation – Normally get IP address from etc/ system configuration/ network • Host sends broadcast – Ethernet address to all reply an Ethernet address with IP • address – unicast – Host issues TFTP for boot image Indian Institute of Technology Madras
  • 18. Computer Networks Prof. Hema A Murthy IP Packet Format • Multiple RARP servers for redundancy – Increased traffic on the network – Broadcast for RARP not forwarded by all routes (IP) – Use BOOTP (UDP) • Forwarded by router • Gets IP address of server with boot image • Fragmentation Offset • Location of fragmentation in DG • TTL – Limit packet life time – Support to count time in seconds – Maximum life time – 255 – In practice hop count Indian Institute of Technology Madras
  • 19. Computer Networks Prof. Hema A Murthy IP Packet Format • Protocol – When Network Layer assembles DL – it needs to know to which process to give it to? – TCP/ UDP – protocol – process not global across the entire Internet • Header Checksum – verifies header only • Options – Security – Strict source routing • Complete path source to destination • Loose source routing – Must pass through certain routers • Record route • Router append its IP address on packet • Record time stamp – Records IP address and time Indian Institute of Technology Madras