Docsity

IP Forwarding with Clues: A Fast Technique for Routing IP Packets - Prof. Daniel F. Massey, Study notes of Computer Science

Toggle sidebar
bg1
1
CS 557 – Lecture 25
IP Forwarding
Routing With a Clue
Yehuda Afek, Anat Bremler-Barr, and Sariel Har-Peled, 1999
Spring 2009
Forwarding IP Packets
• Objective:
– A fast table lookup for forwarding IP packets.
• Approach:
– Include a “clue” in each IP packet
– Previous router includes its longest match as the
clue
– Allows receiving router to start lookup from that clue
• Contributions:
– Interesting alternative to tag-switching, MPLS, etc.
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download IP Forwarding with Clues: A Fast Technique for Routing IP Packets - Prof. Daniel F. Massey and more Study notes Computer Science in PDF only on Docsity!

CS 557 – Lecture 25

IP Forwarding

Routing With a Clue

Yehuda Afek, Anat Bremler-Barr, and Sariel Har-Peled, 1999

Spring 2009

Forwarding IP Packets

• Objective:

  • A fast table lookup for forwarding IP packets.

• Approach:

  • Include a “clue” in each IP packet
  • Previous router includes its longest match as the clue
  • Allows receiving router to start lookup from that clue

• Contributions:

  • Interesting alternative to tag-switching, MPLS, etc.

Datagram networks

  • no call setup at network layer
  • routers: no state about end-to-end connections
    • no network-level concept of “connection”
  • packets forwarded using destination host address
    • packets between same source-dest pair may take different

paths

application

transport

network

data link

physical

application

transport

network

data link

physical

  1. Send data (^) 2. Receive data

Forwarding table

Destination Address Range Link Interface 11001000 00010111 00010000 00000000 through 0 11001000 00010111 00010111 11111111 11001000 00010111 00011000 00000000 through 1 11001000 00010111 00011000 11111111 11001000 00010111 00011001 00000000 through 2 11001000 00010111 00011111 11111111 otherwise 3 4 billion possible entries

Forwarding table

12 22 32 1 2 3 VC number interface number Incoming interface Incoming VC # Outgoing interface Outgoing VC # 1 12 2 22 2 63 1 18 3 7 2 17 1 97 3 87 … … … … Forwarding table in northwest router: Routers maintain connection state information!

Datagram or VC network

IP Forwarding

  • Must search long forwarding

table for longest match

  • Searching this list can require

multiple memory accesses

  • Simple Trie structure requires

O(logW) memory access

where W address size

  • Objective is find the longest

match faster….

Switching

  • Provides a fast lookup
  • Simply store a table mapping

VC number to interface.

  • Requires exactly 1 memory

access

  • But requires tags/circuits etc

for each flow or pair or

something….

  • Requires some sort of setup

Intuition Behind a “Clue”

  • Packet has been forwarded to R
    • Packet Destination is 129.82.100.
  • Best match at router R1 is 129.82/
    • R1 finds this best match and that entry says “forward to R2”.
  • R2 receives packet and looks up 129.82.100.
    • Starts from the top (first prefix) in its table
  • Likely that the best match at router R2 is
    • Exactly 129.82/16 or
    • Something more specific like 129.82.100/

R1 R

Sending a “Clue”

• R1 sends it Best Match as a Clue

• Allows R2 to start search from that point

Why Does This Help

  • Receiving Router Builds a Clue table:
    • First time you see the Clue, you need to look it up.
  • Second time you see the Clue, you can
    • Case 1: Search from a better starting point
    • Case 2: Immediately map Clue to final decision
      • One memory access to lookup Clue in Clue table
      • Forward this packet to FD entry in Clue Table
      • Just like Tag-Switching!
    • Case 3: Immediately map Clue to final decision
      • One memory access to lookup Clue in Clue Table
      • Forward this packet to FD entry in Clue Table
      • Just like Tag-Switching!
  • Claim Cases 2 and 3 are common
    • Can we reduce number of Case 1 events?

Advanced Clues

  • Case 2 and Case 3 are same as Before
    • Case 2: Clue is in trie and has no descendants below it
      • Clue is also the best match in this table
      • Set Final Decision (FD) = Next hop of Clue, Ptr = empty
    • Case 3: Clue is not in the table
      • Find the best match for the Clue (eg best match for 129.82/16)
      • Set Final Decision to this best match, Ptr = empty
  • Case 1:
    • Compare sending routers table with your table
    • If sender always has a better match at same time or before you do, then the clue is a best match for you as well!
    • Detailed and proved in Claim 1 of the paper
      • Most important part to understand!
      • Try an example as a starting point to understand this claim…

Example of Advanced Clues

  • Neighbor Router Sends a packet
    • Destination is 129.82.192.
    • Clue is 129.82/
  • Receiving Router Looks for Clue (129.82/16) in its forwarding table:
    • Receiving Router has 129.82/16 129.82.24/18 129.82 129.82.10/
    • Best match must be one of these three
  • Sending Router has forwarding table of: 129.82/16 129.82.24/17 129.82.10/
  • Intuition behind advanced method
    • If packet matches 129.82.24/18 at receiver, it also would have matched 129.82.24/17 at sender so it can’t be 129.82.24/17!
    • If packet matches 129.82.10/24 at receiver, it also would have matched 129.82.10/24 at the sender!
    • So the packet must match 129.82/16…. No need to search!
  • More generally, for every possible better match at the receiver, there was always a better or equal match at the sender

Example of Using Clues

Advanced says this must match *

(or else would have matched better at sender)

Might match 0000*

Must match 00*

Matches 0110*

or *

Matches 11*

or *