Network Layer.

Slides:



Advertisements
Similar presentations
1 Routing Protocols I. 2 Routing Recall: There are two parts to routing IP packets: 1. How to pass a packet from an input interface to the output interface.
Advertisements

Ch. 12 Routing in Switched Networks Routing in Packet Switched Networks Routing Algorithm Requirements –Correctness –Simplicity –Robustness--the.
NETWORK LAYER (1) T.Najah AlSubaie Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University College of Computer Since and Information System NET331.
Review: Routing algorithms Distance Vector algorithm. –What information is maintained in each router? –How to distribute the global network information?
EE 4272Spring, 2003 Chapter 10 Packet Switching Packet Switching Principles  Switching Techniques  Packet Size  Comparison of Circuit Switching & Packet.
Data Communications Packet Switching.
Networks: Routing1 Network Layer Routing. Networks: Routing2 Network Layer Concerned with getting packets from source to destination. The network layer.
Chapter 10 Introduction to Wide Area Networks Data Communications and Computer Networks: A Business User’s Approach.
EEC-484/584 Computer Networks Lecture 9 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
EEC-484/584 Computer Networks Lecture 9 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
1 Network Layer: Host-to-Host Communication. 2 Network Layer: Motivation Can we built a global network such as Internet by extending LAN segments using.
Extending Networks. Three Levels of Extension Physical Layer –Repeaters Link Layer –Bridges –Switches Network –Routers: “Connecting networks”
1 Computer Networks Switching Technologies. 2 Switched Network Long distance transmission typically done over a network of switched nodes End devices.
EECC694 - Shaaban #1 lec #7 Spring The OSI Reference Model Network Layer.
Networks: Routing1 Network Layer Routing. Networks: Routing2 Network Layer Concerned with getting packets from source to destination. The network layer.
29-Aug-154/598N: Computer Networks Switching and Forwarding Outline –Store-and-Forward Switches.
Network Layer (3). Node lookup in p2p networks Section in the textbook. In a p2p network, each node may provide some kind of service for other.
SAvPS – úvod Genči 2009 (bsaed on Tanenbaum’s slides.
Review: routing algorithms. –Choose the appropriate paths. –Routing algorithms Flooding Shortest path routing (example). –Dijkstra algorithm. –Bellman-Ford.
1 Introducing Routing 1. Dynamic routing - information is learned from other routers, and routing protocols adjust routes automatically. 2. Static routing.
Network and Communications Ju Wang Chapter 5 Routing Algorithm Adopted from Choi’s notes Virginia Commonwealth University.
EEC-484/584 Computer Networks Lecture 9 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Chapter 5 Network Layer.
CS 453 Computer Networks Lecture 18 Introduction to Layer 3 Network Layer.
CSCI 465 D ata Communications and Networks Lecture 15 Martin van Bommel CSCI 465 Data Communications & Networks 1.
Data Communications and Networking Chapter 11 Routing in Switched Networks References: Book Chapters 12.1, 12.3 Data and Computer Communications, 8th edition.
CCNA 1 v3.0 Module 10 Routing Fundamentals and Subnets.
TELE202 Lecture 6 Routing in WAN 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Packet switching in Wide Area Networks »Source: chapter 10 ¥This Lecture.
Routing Networks and Protocols Prepared by: TGK First Prepared on: Last Modified on: Quality checked by: Copyright 2009 Asia Pacific Institute of Information.
Teknik Routing Pertemuan 10 Matakuliah: H0524/Jaringan Komputer Tahun: 2009.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 1 Module 10 Routing Fundamentals and Subnets.
Network Layer (2). Review Physical layer: move bits between physically connected stations Data link layer: move frames between physically connected stations.
Network Layer Lecture Network Layer Design Issues.
Fall, 2001CS 6401 Switching and Routing Outline Routing overview Store-and-Forward switches Virtual circuits vs. Datagram switching.
Network Layer Routing Networks: Routing.
William Stallings Data and Computer Communications
INTRODUCTION NETWORKING CONCEPTS AND ADMINISTRATION CSIS 3723
Network Layer COMPUTER NETWORKS Networking Standards (Network LAYER)
Chapter 3 Part 3 Switching and Bridging
Advanced Computer Networks
Network Layer.
ROUTING.
Chapter 4 Introduction to Network Layer
Packets & Routing Lower OSI layers (1-3) concerned with packets and the network Packets carry data independently through the network, and into other networks…
Packet Switching Outline Store-and-Forward Switches
Chapter 5 The Network Layer.
What is a router? A router is a device that connects multiple computers together. Not to be confused with a switch Routers transmit packets of data across.
Network Layer – Routing 1
Switching and Forwarding Bridges and Extended LANs
EEC-484/584 Computer Networks
Chapter 3 Part 3 Switching and Bridging
THE NETWORK LAYER.
18-WAN Technologies and Dynamic routing
Intra-Domain Routing Jacob Strauss September 14, 2006.
Chapter 4 Introduction to Network Layer
Chapter 20 Network Layer: Internet Protocol
EEC-484/584 Computer Networks
EEC-484/584 Computer Networks
Dynamic Routing and OSPF
ECE453 – Introduction to Computer Networks
The Network Layer Network Layer Design Issues:
PRESENTATION COMPUTER NETWORKS
EEC-484/584 Computer Networks
Network Layer Routing Networks: Routing.
Routing Fundamentals and Subnets
Network Architecture for Cyberspace
Chapter 3 Part 3 Switching and Bridging
Routing and the Network Layer (ref: Interconnections by Perlman
Network Layer.
Virtual LAN (VLAN).
Presentation transcript:

Network Layer

Network layer Physical layer: move bits between physically connected stations Data link layer: move frames between physically connected stations Network layer: move packets from source A to destination B

Network Layer Design Issues Service interface: what kind of services to be supported at the network layer? Routing: Where to send the packets received? Congestion control: to avoid overloading some links Internetworking: How to interconnect different networks?

Service Interface Should be independent of router technology The upper layer shouldn’t worry about the topology Network address should be uniform

Two choices to send packets Connectionless – End nodes simply send packets to the routers. Packets carry full address information. Routers makes decision, based on the address information, to forward the packets. Connection-orientated – Before sending, end nodes set up a virtual circuit, then all packets are sent through this virtual circuit. Virtual circuit means that (1) each packet carried a VC identifier and (2) routers will always forward packets with the same identifier to the same next hop router determined when path was set up.

Connectionless or connection-orientated the subnet is inherently unreliable network layer provides connectionless service, just moves packets around, and let the higher layer worry about the error control and flow control Connection-orientated The subnet should provide a reliable connection oriented service. Makes it possible to provide quality of service. The company can charge based on the quality of service provided.

Datagram Virtual Circuit Circuit setup no required Addressing global addr.(large) local VC number (small) memory in no state table for VCs routers in each router Routing each packet once for all packets in a VC Router Failure no effect All VCs terminated. Cong. control hard easy Memory in packets versus memory in routers. path setup time versus address parsing time

Routing Routing – Determining the path from the source to the destination. At a router, it means which output port should a packet to be sent to Desirable properties of the routing algorithms: correctness: of course simplicity: for efficiency robustness: must be able to sustain the changes in the networks (cannot just rely on reboot) stability: when run long enough, should converge to equilibrium fairness: every one gets to send optimality: as efficient as possible, of course sometimes, these properties may conflict

Flooding Flooding send all the incoming packet to all outgoing links except the one the packet arrived on Reliable, fast, large overhead, not scalable user: military, distributed database(update everything), highly reliable packets.

Flooding Problems? A packet will be sent for infinite number of times Hop count. Don’t forward the same packet for more than H times. How to set H? Ask why when H=MAX DISTANCE, the packet must be delivered. – Consider the path between the sender and receiver.

Shortest Path find the shortest path from the source to all other nodes. Dijkstra algorithm: finding the shortest paths from the source s to all other nodes in the network. 1) Initial set = empty, 2) maintain the distance from s to all other nodes (distance(s, s) = 0, distance(s, t) = infinite) 3) repeat until all nodes are included in the set 4) find a node d currently no in the set with shortest distance 5) include d in the set 6) update the distance from s to all other nodes using 7) if distance(s, m) > distance(s, d) + dist(d, m) then 8) distance(s, m) = distance(s, d) + dist (d, m)

Shortest Path Why this gives the shortest path? Node added to the set has found its minimum distance to the source. Suppose this is not true. At a step, we add node W to the set. If there is another path s---Z---W with distance shorter than d(W), where Z is the first node in the path currently not in the set. d(Z) must be less than d(W) (why?) and we would have added Z to the set at this step rather than W.