Docsity

Understanding the Network Layer: Routing, IPv4 and IPv6, and Routing Algorithms, Slides of Digital Systems Design

Partial preview of the text

Download Understanding the Network Layer: Routing, IPv4 and IPv6, and Routing Algorithms and more Slides Digital Systems Design in PDF only on Docsity!

Network Layer

4-

Chapter 4: Network LayerChapter goals: 

understand principles behind network layerservices:

routing (path selection)

dealing with scale

how a router works

advanced topics: IPv6, mobility

instantiation and implementation in theInternet

Network Layer

4-

Chapter 4: Network Layer 

4. 1 Introduction

4.2 Virtual circuit anddatagram networks

4.3 What’s inside arouter

4.4 IP: InternetProtocol

Datagram format

IPv4 addressing

ICMP

IPv

4.5 Routing algorithms

Link state

Distance Vector

Hierarchical routing

4.6 Routing in theInternet

RIP

OSPF

BGP

4.7 Broadcast andmulticast routing

Network Layer

4-

Key Network-Layer Functions

forwarding: movepackets from router’sinput to appropriaterouter output

routing: determineroute taken bypackets from sourceto dest.

Routing algorithms

analogy: 

routing: process ofplanning trip fromsource to dest

forwarding: processof getting throughsingle interchange

Network Layer

4-

1

2

3

0111

value in arrivingpacket’s header

routing algorithm

local forwarding table

header value output link

01000101

0111 1001

3 2 2 1

Interplay between routing and forwarding

Network Layer

4-

Network service model

Q: What

service model for “channel” transporting

datagrams from sender to rcvr?

Example services for

individual datagrams:

guaranteed delivery

Guaranteed deliverywith less than 40 msecdelay

Example services for a

flow of datagrams:

In-order datagramdelivery

Guaranteed minimumbandwidth to flow

Restrictions onchanges in inter-packet spacing

Network Layer

4-

Network layer service models:

Network

Architecture

Internet

ATM ATM ATM ATM

ServiceModelbest effortCBR VBR ABR UBR

Bandwidthnoneconstantrateguaranteedrateguaranteedminimumnone

Loss no yes yes no no

Orderno yes yes yes yes

Timingno yes yes no no

Congestionfeedbackno (inferredvia loss)nocongestionnocongestionyes no

Guarantees?

Network Layer

4-

Network layer connection andconnection-less service 

Datagram network provides network-layerconnectionless service

VC network provides network-layerconnection service

Analogous to the transport-layer services,but:

Service: host-to-host

No choice: network provides one or the other

Implementation: in the core

Network Layer

4-

Virtual circuits

call setup, teardown for each call

before data can flow

each packet carries VC identifier (not destination hostaddress)

every router on source-dest path maintains “state” foreach passing connection

link, router resources (bandwidth, buffers) may beallocated to VC

“source-to-dest path behaves much like telephone

circuit”

performance-wise

network actions along source-to-dest path

Network Layer

4-

Forwarding table

12

22

32

1

2

3

VC number

interfacenumber

Incoming interface

Incoming VC #

Outgoing interface

Outgoing VC #

1

12

2

22

2

63

1

18

3

7

2

17

1

97

3

87

…

…

…

…

Forwarding table innorthwest router:

Routers maintain connection state information!

Network Layer

4-

Virtual circuits: signaling protocols

used to setup, maintain teardown VC

used in ATM, frame-relay, X.

not used in today’s Internet

application

transport

network data link

physical

application

transport

network data link

physical

  1. Initiate call
    1. incoming call
  2. Accept call
  3. Call connected
  4. Data flow begins
  5. Receive data

Network Layer

4-

Forwarding table

Destination Address Range

Link Interface

11001000 00010111 00010000 00000000

through

0

11001000 00010111 00010111 1111111111001000 00010111 00011000 00000000

through

1

11001000 00010111 00011000 1111111111001000 00010111 00011001 00000000

through

2

11001000 00010111 00011111 11111111

otherwise

3

4 billionpossible entries

Network Layer

4-

Longest prefix matching

Prefix Match

Link Interface

11001000 00010111 00010

0

11001000 00010111 00011000

1

11001000 00010111 00011

2

otherwise

3

DA: 11001000

00010111

00011000

10101010

Examples

DA: 11001000

00010111

00010110

10100001

Which interface?

Which interface?

Network Layer

4-

Chapter 4: Network Layer 

4. 1 Introduction

4.2 Virtual circuit anddatagram networks

4.3 What’s inside arouter

4.4 IP: InternetProtocol

Datagram format

IPv4 addressing

ICMP

IPv

4.5 Routing algorithms

Link state

Distance Vector

Hierarchical routing

4.6 Routing in theInternet

RIP

OSPF

BGP

4.7 Broadcast andmulticast routing

Network Layer

4-

Router Architecture Overview

Two key router functions: 

run routing algorithms/protocol (RIP, OSPF, BGP)

forwarding datagrams from incoming to outgoing link