elec comp 177 fall 2012
play

ELEC / COMP 177 Fall 2012 Some slides from Kurose - PowerPoint PPT Presentation

ELEC / COMP 177 Fall 2012 Some slides from Kurose and Ross, Computer Networking , 5 th Edition Project #2 Due Tuesday, Nov 6 th


  1. ELEC ¡/ ¡COMP ¡177 ¡– ¡Fall ¡2012 ¡ Some ¡slides ¡from ¡Kurose ¡and ¡Ross, ¡ Computer ¡Networking , ¡5 th ¡Edition ¡

  2. ¡ Project ¡#2 ¡ – ¡Due ¡Tuesday, ¡Nov ¡6 th ¡ ¡ Homework ¡#5 ¡– ¡Due ¡Tuesday, ¡Nov ¡13 th ¡ ¡ Later ¡this ¡semester: ¡ § Homework ¡#6 ¡-­‑ ¡Presentation ¡on ¡security/privacy ¡ ▪ Topic ¡selection ¡– ¡Due ¡Tuesday, ¡Nov ¡20 th ¡ ¡ ▪ Slides ¡ – ¡Due ¡Monday, ¡Nov ¡26 th ¡ ¡ ▪ Present! ¡ – ¡Tuesday, ¡Nov ¡27 th ¡(and ¡Thursday) ¡ § Project ¡#3 ¡– ¡Due ¡Tuesday, ¡Dec ¡4 th ¡ ¡ 2 ¡

  3. ¡ Forwarding ¡ ¡ Routing ¡ § Move ¡packets ¡from ¡ § Determine ¡path ¡(route) ¡ router’s ¡input ¡to ¡ taken ¡by ¡packets ¡from ¡ appropriate ¡router ¡ source ¡to ¡destination ¡ output ¡ § Routing ¡algorithms ¡ § Router ¡does ¡a ¡ longest ¡ prefix ¡match ¡ (LPM) ¡on ¡ entries ¡in ¡the ¡forwarding ¡ table ¡to ¡determine ¡ output ¡port ¡ 3 ¡

  4. ¡ Global ¡Information ¡ § All ¡routers ¡have ¡complete ¡topology, ¡link ¡cost ¡info ¡ § “link ¡state” ¡algorithms ¡ ¡ Decentralized ¡ § Router ¡knows ¡physically-­‑connected ¡neighbors ¡and ¡ link ¡costs ¡to ¡neighbors ¡ § Iterative ¡process ¡of ¡computation, ¡exchange ¡of ¡info ¡ with ¡neighbors ¡ § “distance ¡vector” ¡algorithms ¡ 4 ¡

  5. ¡ Network ¡topology ¡and ¡link ¡ costs ¡are ¡known ¡to ¡all ¡ nodes ¡ § Accomplished ¡via ¡“link ¡state ¡ 5 broadcast” ¡ ¡ 3 § All ¡nodes ¡have ¡same ¡info ¡ v w 5 2 ¡ Computes ¡least ¡cost ¡paths ¡ from ¡one ¡node ¡(source) ¡to ¡ u 2 z ¡ 1 3 all ¡other ¡nodes ¡ 1 2 x ¡ y § Produces ¡ forwarding ¡table ¡ 1 for ¡that ¡node ¡ ¡ Iterative: ¡after ¡k ¡iterations, ¡ know ¡least ¡cost ¡path ¡to ¡k ¡ destinations ¡ 5 ¡

  6. Resulting ¡shortest-­‑path ¡tree ¡from ¡u: ¡ Resulting ¡forwarding ¡table ¡in ¡u: ¡ destination ¡ link ¡ (u,v) ¡ v w v ¡ (u,x) ¡ x ¡ u z ¡ y ¡ (u,x) ¡ w ¡ (u,x) ¡ x ¡ y z ¡ (u,x) ¡ 6 ¡

  7. Each ¡node: Iterative, ¡asynchronous: ¡ each ¡local ¡iteration ¡caused ¡by: ¡ ¡ ¡ local ¡link ¡cost ¡change ¡ ¡ wait for (change in local link ¡ DV ¡update ¡message ¡from ¡ cost or msg from neighbor) neighbor ¡ recompute estimates Distributed: ¡ ¡ each ¡node ¡notifies ¡neighbors ¡ only ¡when ¡its ¡DV ¡changes ¡ if DV to any dest has § neighbors ¡then ¡notify ¡their ¡ changed, notify neighbors neighbors ¡if ¡necessary ¡ 7 ¡

  8. ¡ Define: ¡ ¡d x (y) ¡:= ¡cost ¡of ¡least-­‑cost ¡path ¡from ¡ x ¡to ¡ y ¡ ¡ Something ¡I ¡know… ¡ Then: ¡ Something ¡my ¡neighbor ¡told ¡me… ¡ ¡ d x (y) ¡= ¡min ¡{c(x,v) ¡+ ¡d v (y) ¡} ¡ v ¡ ¡ where ¡min ¡is ¡taken ¡over ¡all ¡neighbors ¡ v ¡of ¡ x ¡ 8 ¡

  9. Clearly, ¡d v (z) ¡= ¡5, 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are ¡identical ¡ § The ¡network ¡is ¡“flat” ¡ ¡ This ¡is ¡not ¡true ¡in ¡practice! ¡ ¡ Problem ¡1 ¡– ¡ Scale ¡ ¡ Problem ¡2 ¡-­‑ ¡ Administrative ¡autonomy ¡ § Hundreds ¡of ¡millions ¡of ¡ destinations: ¡ § Internet ¡= ¡network ¡of ¡ networks ¡ § Can’t ¡store ¡all ¡destinations ¡in ¡ routing ¡tables! ¡ § Each ¡network ¡admin ¡wants ¡to ¡ control ¡routing ¡in ¡his/her ¡own ¡ § Routing ¡table ¡exchange ¡ network ¡ would ¡swamp ¡links! ¡ ¡ § Distance-­‑vector ¡would ¡never ¡ converge ¡ 11 ¡

  12. ¡ Aggregate ¡routers ¡into ¡regions ¡(aka ¡ “ autonomous ¡systems ” ¡-­‑ ¡AS) ¡ ¡ Routers ¡inside ¡autonomous ¡system ¡run ¡same ¡ routing ¡protocol ¡ § “Intra-­‑AS” ¡routing ¡protocol ¡ § Routers ¡in ¡different ¡AS ¡can ¡run ¡different ¡intra-­‑AS ¡ routing ¡protocol ¡ ¡ Border ¡Router ¡ § Direct ¡link ¡to ¡router ¡in ¡another ¡AS ¡ 12 ¡

  13. ¡ The ¡Internet ¡uses ¡hierarchical ¡routing ¡ ¡ The ¡Internet ¡is ¡split ¡into ¡Autonomous ¡Systems ¡ § “Independent” ¡networks ¡on ¡the ¡Internet ¡ § Typically ¡owned/controlled ¡by ¡a ¡single ¡entity ¡ § Share ¡a ¡common ¡routing ¡policy ¡ ¡ Example ¡autonomous ¡systems ¡ § Pacific ¡(18663), ¡Exxon ¡(1766), ¡IBM ¡(16807), ¡Level3 ¡(3356) ¡ ¡ Different ¡routing ¡protocols ¡within ¡and ¡between ¡ autonomous ¡systems ¡ § Interior ¡gateway/routing ¡protocol ¡(e.g. ¡OSPF) ¡ § Border ¡gateway ¡protocol ¡(e.g. ¡BGP) ¡ 13 ¡

  14. AS ¡‘A’ ¡ ¡ Forwarding ¡table ¡ ¡configured ¡by ¡both ¡ intra-­‑ ¡and ¡inter-­‑AS ¡routing ¡algorithm ¡ § Intra-­‑AS ¡sets ¡entries ¡for ¡internal ¡ destinations ¡ § Inter-­‑AS ¡& ¡intra-­‑As ¡sets ¡entries ¡for ¡ external ¡destinations ¡ Interior ¡Routing ¡ Intra-AS Inter-AS Routing Protocol ¡ Routing algorithm algorithm Forwarding Stub ¡AS ¡ table 15 ¡

  15. ¡ Routing ¡ inside ¡the ¡autonomous ¡system ¡ ¡ Also ¡known ¡as ¡ Interior ¡Gateway ¡Protocols ¡ (IGP) ¡ ¡ Most ¡common ¡Intra-­‑AS ¡routing ¡protocols: ¡ § RIP: ¡Routing ¡Information ¡Protocol ¡ § OSPF: ¡Open ¡Shortest ¡Path ¡First ¡ § IGRP: ¡Interior ¡Gateway ¡Routing ¡Protocol ¡(Cisco ¡ proprietary) ¡ 16 ¡

  16. 17 ¡

  17. ¡ Distance ¡vector ¡ algorithm ¡ ¡ Included ¡in ¡BSD-­‑UNIX ¡Distribution ¡in ¡1982 ¡ ¡ Distance ¡metric: ¡# ¡of ¡hops ¡(max ¡= ¡15 ¡hops) ¡ ¡ ¡ From ¡router ¡A ¡to ¡subnets: ¡ destination ¡ ¡ ¡hops ¡ u ¡ v ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡u ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡1 ¡ w ¡ A B ¡ ¡ ¡ ¡ ¡ ¡ ¡v ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡2 ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡w ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡2 ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡x ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡3 ¡ x ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡y ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡3 ¡ C ¡ D z ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡z ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡2 ¡ y ¡ 18 ¡

  18. ¡ Distance ¡vectors ¡ § Exchanged ¡among ¡neighbors ¡every ¡30 ¡seconds ¡via ¡ Response ¡Message ¡(also ¡called ¡ advertisement ) ¡ ¡ Each ¡advertisement ¡lists ¡up ¡to ¡25 ¡destination ¡ subnets ¡within ¡AS ¡ 19 ¡

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend