L11: Link and Network layer Dina Katabi 6.033 Spring 2007 Some slides are from lectures by Nick Mckeown, Ion Stoica, Frans Kaashoek,

Slides:



Advertisements
Similar presentations
1 IP Forwarding Relates to Lab 3. Covers the principles of end-to-end datagram delivery in IP networks.
Advertisements

IP Forwarding Relates to Lab 3.
IPv4 - The Internet Protocol Version 4
6.033: Intro to Computer Networks Layering & Routing Dina Katabi & Sam Madden Some slides are contributed by N. McKewon, J. Rexford, I. Stoica.
Introduction1-1 message segment datagram frame source application transport network link physical HtHt HnHn HlHl M HtHt HnHn M HtHt M M destination application.
Network Layer: Internet-Wide Routing & BGP Dina Katabi & Sam Madden.
Chapter 20 Network Layer: Internet Protocol Stephen Kim 20.1.
Courtesy: Nick McKeown, Stanford
Network Layer Packet Forwarding IS250 Spring 2010
1 Link Layer & Network Layer Some slides are from lectures by Nick Mckeown, Ion Stoica, Frans Kaashoek, Hari Balakrishnan, and Sam Madden Prof. Dina Katabi.
EEC-484/584 Computer Networks Lecture 10 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
L10: Protocols and Layering Dina Katabi Spring Some slides are from lectures by Nick Mckeown, Ion Stoica, Frans Kaashoek,
CSE331: Introduction to Networks and Security Lecture 7 Fall 2002.
CSCI 4550/8556 Computer Networks Comer, Chapter 20: IP Datagrams and Datagram Forwarding.
1 Link Layer & Network Layer Some slides are from lectures by Nick Mckeown, Ion Stoica, Frans Kaashoek, Hari Balakrishnan, and Sam Madden Prof. Dina Katabi.
1 Reliability & Flow Control Some slides are from lectures by Nick Mckeown, Ion Stoica, Frans Kaashoek, Hari Balakrishnan, and Sam Madden Prof. Dina Katabi.
TCP: Software for Reliable Communication. Spring 2002Computer Networks Applications Internet: a Collection of Disparate Networks Different goals: Speed,
1 IP Forwarding Relates to Lab 3. Covers the principles of end-to-end datagram delivery in IP networks.
Computer Networks Layering and Routing Dina Katabi
Module 10. Internet Protocol (IP) is the routed protocol of the Internet. IP addressing enables packets to be routed from source to destination using.
ICMP (Internet Control Message Protocol) Computer Networks By: Saeedeh Zahmatkesh spring.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Network Layer ICMP and fragmentation.
S305 – Network Infrastructure Chapter 5 Network and Transport Layers.
Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes.
1 Internet Protocol. 2 Connectionless Network Layers Destination, source, hop count Maybe other stuff –fragmentation –options (e.g., source routing) –error.
Introduction to Networks CS587x Lecture 1 Department of Computer Science Iowa State University.
1 The Internet and Networked Multimedia. 2 Layering  Internet protocols are designed to work in layers, with each layer building on the facilities provided.
1 Network Layer Lecture 13 Imran Ahmed University of Management & Technology.
Border Gateway Protocol
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use of these.
1 IP : Internet Protocol Computer Network System Sirak Kaewjamnong.
Networks and Protocols CE Week 7b. Routing an Overview.
COP 5611 Operating Systems Spring 2010 Dan C. Marinescu Office: HEC 439 B Office hours: M-Wd 2:00-3:00 PM.
Network Layer4-1 The Internet Network layer forwarding table Host, router network layer functions: Routing protocols path selection RIP, OSPF, BGP IP protocol.
Transport Layer3-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
Chapter 20 Network Layer: Internet Protocol
Network Layer4-1 Datagram networks r no call setup at network layer r routers: no state about end-to-end connections m no network-level concept of “connection”
CSC 600 Internetworking with TCP/IP Unit 5: IP, IP Routing, and ICMP (ch. 7, ch. 8, ch. 9, ch. 10) Dr. Cheer-Sun Yang Spring 2001.
Lecture Topics: 11/27 Networks Layered Model Ethernet IP.
Network Layer by peterl. forwarding table routing protocols path selection RIP, OSPF, BGP IP protocol addressing conventions datagram format packet handling.
Review of key networking techniques: –Reliable communication over unreliable channels –Error detection and correction –Medium access control –routing –Congestion.
1 Figure 3-5: IP Packet Total Length (16 bits) Identification (16 bits) Header Checksum (16 bits) Time to Live (8 bits) Flags Protocol (8 bits) 1=ICMP,
Univ. of TehranComputer Network1 Advanced topics in Computer Networks University of Tehran Dept. of EE and Computer Engineering By: Dr. Nasser Yazdani.
Sem1 - Module 10 Routing Fundamentals and Subnets
1 Internetworking: IP Packet Switching Reading: (except Implementation; pp )
L11: Protocols and Network layer Frans Kaashoek Spring Some slides are from lectures by Nick Mckeown, Ion Stoica,Dina.
S305 – Network Infrastructure Chapter 5 Network and Transport Layers.
COMPUTER NETWORKS CS610 Lecture-30 Hammad Khalid Khan.
Graciela Perera Department of Computer Science and Information Systems Slide 1 of 18 INTRODUCTION NETWORKING CONCEPTS AND ADMINISTRATION CSIS 3723 Graciela.
Homework 4 Out: Fri 2/24/2017 In: Fri 3/10/2017.
A quick intro to networking
Distributed Systems CS
Data Link Layer.
IP Forwarding Covers the principles of end-to-end datagram delivery in IP networks.
THE NETWORK LAYER.
Intra-Domain Routing Jacob Strauss September 14, 2006.
CS 457 – Lecture 10 Internetworking and IP
IP Forwarding Relates to Lab 3.
IP : Internet Protocol Surasak Sanguanpong
IP Forwarding Relates to Lab 3.
EEC-484/584 Computer Networks
Viet Nguyen Jianqing Liu Yaqin Tang
Net 323 D: Networks Protocols
Distributed Systems CS
IP Forwarding Relates to Lab 3.
Networking and Network Protocols (Part2)
IP Forwarding Relates to Lab 3.
Data Link Layer. Position of the data-link layer.
Packet Switch Architectures
Distributed Systems CS
Presentation transcript:

L11: Link and Network layer Dina Katabi Spring Some slides are from lectures by Nick Mckeown, Ion Stoica, Frans Kaashoek, Hari Balakrishnan, Sam Madden, and Robert Morris

Last lecture: layering of protocols Each layer adds/strips off its own header Each layer may split up higher-level data Each layer multiplexes multiple higher layers Each layer is (mostly) transparent to higher layers data

Link Layer Problem: Deliver data from one end of the link to the other Need to address: Bits  Analog  Bits Framing Errors Medium Access Control (The Ethernet Paper)

Manchester encoding Each bit is a transition Allows the receiver to sync to the sender’s clock Time 01110

Framing Receiver needs to detect the beginning and the end of a frame Use special bit-pattern to separate frames E.g., pattern could be (7 ones) Bit stuffing is used to ensure that a special pattern does not occur in the data If pattern is  Whenever the sender sees a sequence of 6 ones in the data, it inserts a zero (reverse this operation at receiver)

Error Handling Detection: Use error detection codes, which add some redundancy to allow detecting errors When errors are detected Correction: Some codes allow for correction Retransmition: Can have the link layer retransmit the frame (rare) Discard: Most link layers just discard the frame and rely on higher layers to retransmit

Network Layer: finds a path to the destination and forwards packets along that path Difference between routing and forwarding Routing is finding the path Forwarding is the action of sending the packet to the next-hop toward its destination

Forwarding Each router has a forwarding table Forwarding tables are created by a routing protocol B C A E R2 R3 R1 R B C E A Dst. Addr Link Forwarding table at R

Inside a router Link 1, ingressLink 1, egress Link 2, ingressLink 2, egress Link 3, ingressLink 3, egress Link 4, ingressLink 4, egress Choose Egress Choose Egress Choose Egress Forwarding Decision Forwarding Table

The Internet Protocol (IP) App Transport Network Link TCP / UDP IP DataHdr DataHdr TCP packet IP packet Protocol Stack

The IP Header Flags vers TTL TOS checksum HLenTotal Length IDFRAG Offset Protocol SRC IP Address DST IP Address (OPTIONS) (PAD) Hop count

Forwarding an IP Packet Lookup packet’s DST in forwarding table –If known, find the corresponding outgoing link –If unknown, drop packet Decrement TTL and drop packet if TTL is zero; update header Checksum Forward packet to outgoing port Transmit packet onto link

And switches today… Alcatel 7670 RSP Juniper TX8/T640 TX8 Avici TSR Cisco GSR ft x 2ft x 1.5ft 4.2 kW power 160 Gb/s cap. Lucent 5ESS telephone switch

The Routing Problem: Generate forwarding tables A D C B E Goals: No loops, short paths, etc.

Path Vector Routing Protocol Initialization Each node knows the path to itself A D C B E D DST End layer Link For example, D initializes its paths null Path

Path Vector Step 1: Advertisement Each node tells its neighbors its path to each node in the graph A D C B E For example, D receives: A To null Path From A: C To null Path From C: E To null Path From E:

Path Vector Step 2: Update Route Info Each node use the advertisements to update its paths D received: A To null Path From A: C To null Path From C: E To null Path From E: D updates its paths: D DST End layer Link null Path D DST End layer Link null Path A 1 C 3 E 2 Note: At the end of first round, each node has learned all one-hop paths

Path Vector Periodically repeat Steps 1 & 2 In round 2, D receives: A To null Path From A: C To null Path From C: E To null Path From E: D updates its paths: D DST End layer Link null Path A 1 C 3 E 2 D D E B D C D DST End layer Link null Path A 1 C 3 E 2 B 3 Note: At the end of round 2, each node has learned all two-hop paths

Questions About Path Vector How do we avoid permanent loops? What happens when a node hears multiple paths to the same destination? What happens if the graph changes?

Questions About Path Vector How do we ensure no loops? When a node updates its paths, it never accepts a path that has itself What happens when a node hears multiple paths to the same destination? It picks the better path (e.g., the shorter number of hops) What happens if the graph changes? Algorithm deals well with new links To deal with links that go down, each router should discard any path that a neighbor stops advertising

Hierarchical Routing Internet: collection of domains/networks Inside a domain: Route over a graph of routers Between domains: Route over a graph of domains Address consists of “Domain Id”, “Node Id” domain-1 domain-2 domain-3 Interior router Border router

Hierarchical Routing Advantage Scalable Smaller tables Smaller messages Delegation Each domain can run its own routing protocol Disadvantage Mobility is difficult Address depends on geographic location Sup-optimal paths E.g., in the figure, the shortest path between the two machines should traverse the yellow domain.

Routing: many open issues Flat addresses and scalable? Routing in multihop WiFi networks? Routing in peer-to-peer networks? Misconfigurations between domains?