Docsity

Understanding Network Layer Forwarding and Routing in Computer Networks, Slides of Computer Networks

Partial preview of the text

Download Understanding Network Layer Forwarding and Routing in Computer Networks and more Slides Computer Networks in PDF only on Docsity!

Network Layer

Computer Networks

Lect-

NETWORK LAYER

Transport Layer 3-

THE NETWORK LAYER

»Outline » Introduction » Forwarding and Routing » Virtual Circuit and Datagram Networks » Inside a Router » The Internet Protocol » Routing Algorithms » Routing in the Internet » Broadcast and Multicast Routing

INTRODUCTION

Resides in core of the internet (the physical network)  Mostly in routers and switches Basic Task  Receive data from transport layer and deliver across the network to destination transport entity Basic Functions  Forwarding  Routing

Analogy  A sales man travelling from office in one city to the office in another city, uses different path and transportation as required,  The decisions to traverse , select and follow the path are analogous to network layer functions

FORWARDING AND ROUTING

FORWARDING TABLE

VIRTUAL CIRCUITS AND DATAGRAM NETWORKS

Network layer connection services are parallel to Transport Layer Services to some extent  Services are :Connection-Oriented , Connection-less

Differences  Transport Layer: handshake, process to process, in end system  Network Layer : handshake, host to host, in network core and end system. Two fundamental Classes of Networks  VC Network: provides network-layer connection service  Datagram Network: provides network-layer connectionless service Or  Networks that provides connection service at network layer only are called virtual-circuit (VC) networks, others that provide connection less service are termed as Datagram Networks

Forwarding 11

VIRTUAL CIRCUITS

“source-to-destination path behaves much like telephone circuit”

» performance-wise » network actions along source-to-destination path

»call setup, teardown for each call before data can flow

»each packet carries VC identifier (not destination host address)

»every router on source-dest path maintains “state” for each

passing connection

»link, router resources (bandwidth, buffers) may be allocated to

VC

Q: Why same VC number is not used in a

Virtual Circuit?

A: Simplified if selected by two adjacent nodes only,

otherwise all nodes in the path have to be contacted

to make sure that a VC number selected is not

already in use along the path

Forwarding 16

VIRTUAL CIRCUITS: SIGNALING PROTOCOLS

»Control Signals » Messages passed during setup of connection and later to update the forwarding table are called »Protocol that define these messages are called signaling protocol » 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 (^) 2. incoming call
  2. Call connected 3. Accept call
  3. Data flow begins 6. Receive data

Forwarding 17

DATAGRAM NETWORKS

»no call setup at network layer

»routers: no state about end-to-end connections

» no network-level concept of “connection”

»packets forwarded using destination host address

» packets between same source-dest pair may take different paths

application transport network data link physical

application transport network data link physical

  1. Send data (^) 2. Receive data

Term Router and Switch are used interchangeably

in literature,

Inside of a Router

Forwarding 20

ROUTER ARCHITECTURE OVERVIEW

Two key router functions: » run routing algorithms/protocol (RIP, OSPF, BGP) » forwarding datagrams from incoming to outgoing link

Input Port:

  • Terminate incoming connection
  • Maintain data link
  • Forward to output port

Switching Fabric Connects input and output ports

Output Ports Stores packet forwarded to it and transmit it to outgoing link

Router Processor Executes routing protocols, lots of other processing