1.03k likes | 1.03k Views
Learn about the concepts of routing and forwarding in computer networks, including routing algorithms, virtual circuits, and connectionless forwarding. Understand the duties and responsibilities of the network layer, such as handling network resources, addressing, and multiplexing.
E N D
Computer Networks Bhushan Trivedi, Director, MCA Programme, at the GLS Institute of Computer Technology, Ahmadabad
Chapter 7 The Network Layer
Routing and Forwarding Routing is to know about other routers where each of them is located which networks they are connected to Forwarding is finding out about one’s own neighbouring routers forward a specified packet to its nearest neighbour to make it reach to a given destination
Routing and forwarding Routing table contains information about nearest router for given destination Routing algorithms decide placement of routers Virtual circuit is mechanism used for connection oriented forwarding Datagrams are units of data sent in connectionless forwarding
Network layer duties Handling accounting for usage of network resources Devise and implement mechanisms of identifying each machine uniquely Implement connectionless or connection-oriented forwarding Multiplexing and demultiplexing the transport layer and the data link layer jobs
Two different types of routing Collection of networks organized by a single party is known as an autonomous system (AS) Exterior routing is across AS BGP (Border Gateway Protocol) Interior routing is within AS Distance Vector Link state AODV
Other duties Accounting Receive Service from the Data Link Layer Provide Service to the Transport Layer
Global Machine-Level Addressing Classful addressing The dotted decimal notation Classless addressing Aggregating multiple routing entries Unique address requirement Network Address Translation The real solution, IPv6
Multiplexing and Demultiplexing Multiplexing and demultiplexing multiple transport layer connections Multiplexing and De-multiplexing the data link layer connections
Forwarding Connection-oriented forwarding using virtual Circuits Connectionless forwarding using datagrams Connection-oriented vs. Connectionless Forwarding forwarding examples
Steps involved in CO forwarding Find out a complete path to the other end Informs the routers along the path and gets their confirmation The service may be degraded or another path is tried if some router is not willing
Steps involved in CO forwardingIntermediaries are to (a) reserve resources (b) set the priorities (c) take a call on other services needed (d) reserve an amount of bandwidth
Steps involved in CO forwarding Connection ID is provided Independent of other routers No provision for a central authority The central authority needs to be consulted for every connection establishment process If the central authority fails, no connection is possile Assigning the connection number locally is simple and effective similar confirmation from the receiver is sought
Forwarding Virtual circuit switching Multi protocol Label Switching Flow label in IPV6
Forwarding Datagram based connectionless forwarding Comparison between Connection-oriented and Connectionless Forwarding
Forwarding: Datagram based connectionless forwarding Not wasteful Autonomy and recovery Better fault tolerance
CO vs CL forwarding Connection establishment VC requires this phase, Datagram-based solutions do not Routing Datagrams are checked and processed at every router while not in VC Speed of operation more time to route datagrams Congestion control Admission control vs routing around the congested path
CO vs CL forwarding Addressing Datagrams are designed to re-route Robustness Datagrams are more robust when congestions are expected Quality of service Connection-oriented service is better to provide QOS
Requirements of a good Routing Algorithms Simple enough to be implemented Should not oscillate Fault tolerance Speed Dynamism and flexibility Performance
Issues in router’s performance A router must scale up to the size of the network attached to it Quality of service Delay delay tolerance bandwidth, particularly for real-time applications Fault tolerance High availability
Functions of a router: Lookup • Why addresses should be truncated by prefixes • Router should divide the addresses in as many groups as the number of interfaces available. • Easy management of the entries
Issues in router’s performance Switching Queuing Robustness
Routing Internal and External routing algorithms Distance Vector Routing Problem with count-to-infinity The split horizon hack Link State Routing Routing in MANet
Facts related to Routing In a large network, there may be more than one path to a given destination Based on the parameter considered, a path can score better than others When we consider a different parameter, the best path may change
Constructing routing tables constructing routing table from two of the neighbor’s inputs