Presentation is loading. Please wait.

Presentation is loading. Please wait.

L11: Protocols and Network layer Frans Kaashoek 6.033 Spring 2012 Some slides are from lectures by Nick Mckeown, Ion Stoica,Dina.

Similar presentations


Presentation on theme: "L11: Protocols and Network layer Frans Kaashoek 6.033 Spring 2012 Some slides are from lectures by Nick Mckeown, Ion Stoica,Dina."— Presentation transcript:

1 L11: Protocols and Network layer Frans Kaashoek 6.033 Spring 2012 http://web.mit.edu/6.033 Some slides are from lectures by Nick Mckeown, Ion Stoica,Dina Katabi, Hari Balakrishnan, Sam Madden, and Robert Morris

2 Internet: Best Effort No Guarantees: Variable Delay (jitter) Variable rate Packet loss Duplicates Reordering Maximum length

3 End hosts implement everything else TCP emailSMTP TCP emailSMTP Reliable, flow-controlled connection Email addresses, To, Cc, etc. IP: best-effort

4 Protocol Flags vers TTL TOS checksum HLenTotal Length IDFRAG Offset Protocol SRC IP Address DST IP Address (OPTIONS) (PAD) Hop count Defines the structure of a conversation Typical a sequence of messages, each with its own header Examples: DHCP, DNS, UDP, SMTP, TCP, IP, … Internet protocols defined in text documents (RFCs)

5 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 TCP IP Ethernet data TCP IP Ethernet Email IP WIFI

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

7 The Internet “Hour glass” +------+------+------+------+------+ |Email | Web | VoIP | P2P | RTSP| +------+------+------+------+------+ | TCP | UDP | ICMP | +------+------+------+ | IP | +------+------+------+ |Ether |Sonet | ATM | +------+------+------+------+------+ |Fiber | TP | CAT5 | WiFi | GSM | +------+------+------+------+------+ "Everything over IP, and IP over everything" Transport App Network Link

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

9 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

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

11 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

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

13 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

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

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

16

17

18

19

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

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

22 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

23 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

24 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?

25 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

26 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

27 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.

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

29 Summary Protocols Layering of protocols Network layer: forwarding & Routing Path-vector routing protocol


Download ppt "L11: Protocols and Network layer Frans Kaashoek 6.033 Spring 2012 Some slides are from lectures by Nick Mckeown, Ion Stoica,Dina."

Similar presentations


Ads by Google