CS 453 Computer Networks Lecture 18 Introduction to Layer 3 Network Layer.

Slides:



Advertisements
Similar presentations
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Advertisements

NETWORK LAYER (1) T.Najah AlSubaie Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University College of Computer Since and Information System NET331.
Packet Switching COM1337/3501 Textbook: Computer Networks: A Systems Approach, L. Peterson, B. Davie, Morgan Kaufmann Chapter 3.
Jaringan Komputer Lanjut Packet Switching Network.
1 Switching and Forwarding Bridges and Extended LANs.
4-1 Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving side, delivers.
Chapter 4 Network Layer slides are modified from J. Kurose & K. Ross CPE 400 / 600 Computer Communication Networks Lecture 14.
10 - Network Layer. Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 23 Introduction to Computer Networks.
William Stallings Data and Computer Communications 7th Edition
CMPE 80N - Introduction to Networks and the Internet 1 CMPE 80N Winter 2004 Lecture 15 Introduction to Networks and the Internet.
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.
1 Computer Networks Switching Technologies. 2 Switched Network Long distance transmission typically done over a network of switched nodes End devices.
1 Switching and Forwarding Bridges and Extended LANs.
1 Version 3.0 Module 10 Routing Fundamentals and Subnetting.
CMPE 80N - Introduction to Networks and the Internet 1 CMPE 80N Winter 2004 Lecture 14 Introduction to Networks and the Internet.
IP-UDP-RTP Computer Networking (In Chap 3, 4, 7) 건국대학교 인터넷미디어공학부 임 창 훈.
29-Aug-154/598N: Computer Networks Switching and Forwarding Outline –Store-and-Forward Switches.
Introduction to Network Layer. Network Layer: Motivation Can we built a global network such as Internet by extending LAN segments using bridges? –No!
Review of Networking Concepts Part 1: Switching Networks
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 4 Introduction to Network.
Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 18 Omar Meqdadi Department of Computer Science and Software Engineering University.
Network Layer4-1 Chapter 4: Network Layer Chapter goals: r understand principles behind network layer services: m network layer service models m forwarding.
Virtual Circuit Network. Network Layer 2 Network layer r transport segment from sending to receiving host r network layer protocols in every host, router.
Mukesh N. Tekwani Elphinstone College Mumbai
7-1 Last time □ Wireless link-layer ♦ Introduction Wireless hosts, base stations, wireless links ♦ Characteristics of wireless links Signal strength, interference,
1 CSE3213 Computer Network I Network Layer (7.1, 7.3, ) Course page: Slides modified from Alberto Leon-Garcia.
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 Network Layer introduction.
ECE 466 Switching Networks. ECE 466 A communication network provides a scalable solution to connect a large number of end systems Communication Networks.
TELE202 Lecture 5 Packet switching in WAN 1 Lecturer Dr Z. Huang Overview ¥Last Lectures »C programming »Source: ¥This Lecture »Packet switching in Wide.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Chapter 5 Network Layer.
Computer Networks with Internet Technology William Stallings
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 21.
Marwan Al-Namari Week 5. Responsible for delivering packets between endpoints over multiple links Physical Link Network Transport Application.
Chapter 3: Networking and Internetworking 1. Introduction Networking issues for distributed systems: Performance,scalability,reliability,security,mobility,
Packet switching network Data is divided into packets. Transfer of information as payload in data packets Packets undergo random delays & possible loss.
Netprog: Routing and the Network Layer1 Routing and the Network Layer (ref: Interconnections by Perlman)
Routing Fundamentals and Subnets Introduction to IT and Communications Technology CE
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 CH. 8: SWITCHING & DATAGRAM NETWORKS 7.1.
CS440 Computer Networks 1 Packet Switching Neil Tang 10/6/2008.
Univ. of TehranComputer Network1 Advanced topics in Computer Networks University of Tehran Dept. of EE and Computer Engineering By: Dr. Nasser Yazdani.
Slides for Chapter 3: for CS Only Networking and Internetworking Pages –
1 Switching and Forwarding Sections Connecting More Than Two Hosts Multi-access link: Ethernet, wireless –Single physical link, shared by multiple.
Network Layer Lecture Network Layer Design Issues.
Data Communication Networks Lec 13 and 14. Network Core- Packet Switching.
@Yuan Xue A special acknowledge goes to J.F Kurose and K.W. Ross Some of the slides used in this lecture are adapted from their.
Day 13 Intro to MANs and WANs. MANs Cover a larger distance than LANs –Typically multiple buildings, office park Usually in the shape of a ring –Typically.
Fall, 2001CS 6401 Switching and Routing Outline Routing overview Store-and-Forward switches Virtual circuits vs. Datagram switching.
Data and Computer Communications Chapter 7 Circuit Switching and Packet Switching.
INTRODUCTION NETWORKING CONCEPTS AND ADMINISTRATION CSIS 3723
Network Layer COMPUTER NETWORKS Networking Standards (Network LAYER)
Point-to-Point Network Switching
Chapter 4 Introduction to Network Layer
Packet Switching Datagram Approach Virtual Circuit Approach
Chapter 5 The Network Layer.
Network Layer.
Switching and Forwarding Bridges and Extended LANs
CS4470 Computer Networking Protocols
SWITCHING Switched Network Circuit-Switched Network Datagram Networks
Chapter 4 Introduction to Network Layer
Data Communication and Computer Networks
Chapter 20 Network Layer: Internet Protocol
The Network Layer Network Layer Design Issues:
Data Communication Networks
Network Layer I have learned from life no matter how far you go
PRESENTATION COMPUTER NETWORKS
Chapter 3 Part 3 Switching and Bridging
Routing and the Network Layer (ref: Interconnections by Perlman
COMPUTER NETWORKS CS610 Lecture-29 Hammad Khalid Khan.
Presentation transcript:

CS 453 Computer Networks Lecture 18 Introduction to Layer 3 Network Layer

So far, our communications has assumed that everything is point to point… We have a message at A and we send it to B We have a message at A and we send it to B We had, in layers 1 and 2, channels that gave us a “connection” between A and B

Network Layer Granted, we discussed a lot of media and protocols to make these connections… …and we had hubs and switches in the middle… But the intervening media (and hubs and switches) to took care of path… And made it seem like a “wire”

Network Layer Well, as you probably have guessed, its usually not that simple Once we push our networking out past a LAN we have a new realm of complications Internetworking LANs or even stations is the domain of the network layer

Network Layer Stations connect to networks, networks connect to other network, which connect to other networks,…. Networks take on complex topologies Fundamentally, the job of the network layer is to take messages from the transport layer and create packets for the data link layer It must do this in the context of the topology of the network

Network Layer From: Data Link Layer Network Layer Transport Layer Application Layer

Network Layer From:

Network Layer Network layer services Independent of router technology Independent of router technology Network topology, technology should be transparent to the Transport layer Network topology, technology should be transparent to the Transport layer Addressing scheme should be uniform Addressing scheme should be uniform Two classes Connectionless Service Connectionless Service Connection-oriented Service Connection-oriented Service

Network Layer Connectionless Service Strongly advocated by the Internet community Strongly advocated by the Internet community Underlying principle of the Internet Underlying principle of the Internet That the Network layer should That the Network layer should Send Packets Receive Packets And that’s about it

Network Layer Connectionless Service Packets are fed into the network Packets are fed into the network Network must route packets to destination Network must route packets to destination Packets are routed to destination independently Packets are routed to destination independently Packets transmitted in connectionless context are often referred to as datagrams Packets transmitted in connectionless context are often referred to as datagrams A connectionless network or portion thereof, might be called a datagram subnet A connectionless network or portion thereof, might be called a datagram subnet

Network Layer Connectionless Service Think of a datagram like a postal letter Think of a datagram like a postal letter You drop it in the mailbox and it arrives at its destination You drop it in the mailbox and it arrives at its destination It could have taken any of several destinations to get there,… It could have taken any of several destinations to get there,… But figuring that out is not your problem But figuring that out is not your problem Imagine sending several letters to the same destination Imagine sending several letters to the same destination They all arrive, but… They all arrive, but… They may have taken different routes to get there They may have taken different routes to get there

Network Layer Connectionless Service Imagine that the transport layer (a process) in host H1 has a message to send to host H2, and,… Imagine that the transport layer (a process) in host H1 has a message to send to host H2, and,… … it is a big message – 4 times the max packet size … it is a big message – 4 times the max packet size The network layer takes the message and breaks into 4 packets, and sends it… The network layer takes the message and breaks into 4 packets, and sends it…

Network Layer Connectionless Service From: Tanenbaum, 2003, pg. 346

Network Layer Connectionless Service Note: each packet can take a different route Note: each packet can take a different route Route decisions are made by the routers… Route decisions are made by the routers… On packet by packet basis On packet by packet basis Route decisions are made based on route tables located in each route Route decisions are made based on route tables located in each route Route table does not tell exact how to get to the destination, but which direction (which router port, or connection link) Route table does not tell exact how to get to the destination, but which direction (which router port, or connection link)

Network Layer Connectionless Service From: Tanenbaum, 2003, pg. 346 Each router has its own table Each table entry says for a given destination address – send the packet out on this port So, in router A, a packet with a destination of F is sent to port C (like to router C).. At least initially Router C gets the packet, see that it is destined for F sends it out on port E Notice that router A’s route table changes so that packets headed for F get sent to B (rather than C)

Network Layer Connectionless Service Routers can change their route tables Routers can change their route tables Routers’s job to maximize the flow of packets Routers’s job to maximize the flow of packets May change route tables because May change route tables because Link down Congested link … Router decisions and route table updates are Routing Algorithms Routing Algorithms - complex topic We will look at Routing Algorithms in more detail

Network Layer Connectionless Service By the way, this is the way IP routing works By the way, this is the way IP routing works

Network Layer Connection-Oriented Service Route through network established before packets flow Route through network established before packets flow Fixed route Fixed route Once defined all packets flow through the same route Once defined all packets flow through the same route Referred to as a Virtual Circuit Referred to as a Virtual Circuit When a sending host wants to send a packet… When a sending host wants to send a packet… The network first sends a setup packet The network first sends a setup packet The setup packet finds a path and … The setup packet finds a path and … Make forwarding table entries along the path Make forwarding table entries along the path

Network Layer Connection-Oriented Service Virtual Circuit has a connection ID Virtual Circuit has a connection ID Once a packet is assigned a connection ID (a label) it no longer needs a destination address Once a packet is assigned a connection ID (a label) it no longer needs a destination address Packet follows the virtual circuit, … Packet follows the virtual circuit, … …not routed by destination address …not routed by destination address Sort of like a phone call – once you are talking the other person, you don’t need their phone number to continue the conversation Sort of like a phone call – once you are talking the other person, you don’t need their phone number to continue the conversation When the packet stream is finished, the connection is released, and …. When the packet stream is finished, the connection is released, and …. The virtual circuit is torn-down The virtual circuit is torn-down

Network Layer Connection-Oriented Service From: Tanenbaum (2003), pg 348

Network Layer Connection-Oriented Service Once the circuit is know the virtual circuit label is added to the packet Once the circuit is know the virtual circuit label is added to the packet Virtual circuit labels are per hop Virtual circuit labels are per hop …that is, the label in a packet can be changed by the routers along the route …that is, the label in a packet can be changed by the routers along the route

Network Layer Connection-Oriented Service In the previous diagram, H1, then H3 initiate the flow of packets. In the previous diagram, H1, then H3 initiate the flow of packets. H1 establishes VC 1, so it VC label is 1 H1 establishes VC 1, so it VC label is 1 H3 starts a flow of packets, H3 starts a flow of packets, …and since it is coorinating with H1, it assigns the VC with label 1… …and since it is coorinating with H1, it assigns the VC with label 1… But Router A recognizes that VC 1 belongs to another packet flow,…so But Router A recognizes that VC 1 belongs to another packet flow,…so It renames the VC as 2, It renames the VC as 2, From A to the destination then that VC is VC 2… From A to the destination then that VC is VC 2…

Network Layer Connection-Oriented Service So, at A the router removes the VC label from the connection Id field of the packet header, and… So, at A the router removes the VC label from the connection Id field of the packet header, and… …replaces it the new VC number (2, in this example) …replaces it the new VC number (2, in this example) Replacing a label in route is called “label switch” Replacing a label in route is called “label switch” We will talk about this more later We will talk about this more later

Network Layer

So, how do they compare Connectless vs. Connection-Oriented Service Connectless vs. Connection-Oriented Service Datagrams vs. Virtual Circuits Datagrams vs. Virtual Circuits Datagrams must carry full source and destination addresses VC packets only carry the VC Label Datagram addresses must be parse and translated at each hop VC packet label simply used as a lookup

Network Layer So, how do they compare Connectionless service requires no setup Connectionless service requires no setup Send a datagram and the routers will help it find its way No pretransmission overhead Overhead per packet Connection-Oriented Services requires the VC to be setup before packet flow Connection-Oriented Services requires the VC to be setup before packet flow Setup packet sent first to establish VC For short transactions – a packet or two – connection-oriented service very expensive

Network Layer So, how do they compare Resilency to failure - router failure, line failure Connectionless – good, basically doesn’t care Connectionless – good, basically doesn’t care Not a problem – routers find a different route Connection Oriented – big problem Connection Oriented – big problem VC torn down, packet flow lost New VC must be established be transmission restarted

Network Layer So, how do they compare Quality of Service Connectionless Service Connectionless Service None, difficult, maybe Connectionless – best available Connection-Oriented Service Connection-Oriented Service Good, easy to establish Resources can be reserved when VC is setup

Network Layer So, how do they compare Traffic load, congestion handling Connectionless Service Connectionless Service Not much, sort of Connection-Oriented Connection-Oriented Easy, reliable Reserve resources (bandwidth) at VC setup