計算機網(wǎng)絡(luò)第6版課件:Chapter 4-5 Routing in the Internet_第1頁
計算機網(wǎng)絡(luò)第6版課件:Chapter 4-5 Routing in the Internet_第2頁
計算機網(wǎng)絡(luò)第6版課件:Chapter 4-5 Routing in the Internet_第3頁
計算機網(wǎng)絡(luò)第6版課件:Chapter 4-5 Routing in the Internet_第4頁
計算機網(wǎng)絡(luò)第6版課件:Chapter 4-5 Routing in the Internet_第5頁
已閱讀5頁,還剩49頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認(rèn)領(lǐng)

文檔簡介

1、Lecture on Computer NetworkFor 08Spring 2010Introduct by Weifeng SunRouting in the Internet2/54RIP ( Routing Information Protocol) distance vector algorithm included in BSD-UNIX Distribution in 1982 distance metric: # of hops (max = 15 hops)DCBAuvwxyzdestination hops u 1 v 2 w 2 x 3 y 3 z 2 From rou

2、ter A to subnets:Introduct by Weifeng SunRouting in the Internet3/54RIP advertisements distance vectors: exchanged among neighbors every 30 sec via Response Message (also called advertisement) each advertisement: list of up to 25 destination subnets within ASIntroduct by Weifeng SunRouting in the In

3、ternet4/54RIP: Example Destination Network Next Router Num. of hops to dest. wA2yB2 zB7x-1.wxyzACDBRouting/Forwarding table in DIntroduct by Weifeng SunRouting in the Internet5/54RIP: Example Destination Network Next Router Num. of hops to dest. wA2yB2 zB A7 5x-1.Routing/Forwarding table in DwxyzACD

4、B Dest Next hops w - 1 x - 1 z C 4 . .Advertisementfrom A to DIntroduct by Weifeng SunRouting in the Internet6/54RIP: Link Failure and Recovery If no advertisement heard after 180 sec - neighbor/link declared dead routes via neighbor invalidated new advertisements sent to neighbors neighbors in turn

5、 send out new advertisements (if tables changed) link failure info quickly (?) propagates to entire net poison reverse used to prevent ping-pong loops (infinite distance = 16 hops)Introduct by Weifeng SunRouting in the Internet7/54RIP Table processing RIP routing tables managed by application-level

6、process called route-d (daemon) advertisements sent in UDP packets, periodically repeatedphysicallinknetwork forwarding (IP) tableTransprt (UDP)routedphysicallinknetwork (IP)Transprt (UDP)routedforwardingtableIntroduct by Weifeng SunRouting in the Internet8/54Chapter 4: Network Layer 4. 1 Introducti

7、on 4.2 Virtual circuit and datagram networks 4.3 Whats inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing ICMP IPv6 4.5 Routing algorithms Link state Distance Vector Hierarchical routing 4.6 Routing in the Internet RIP OSPF BGP 4.7 Broadcast and multicast routingIntroduct by W

8、eifeng SunRouting in the Internet9/54OSPF (Open Shortest Path First) “open”: publicly available uses Link State algorithm LS packet dissemination topology map at each node route computation using Dijkstras algorithm OSPF advertisement carries one entry per neighbor router advertisements disseminated

9、 to entire AS (via flooding) carried in OSPF messages directly over IP (rather than TCP or UDPIntroduct by Weifeng SunRouting in the Internet10/54OSPF “advanced” features (not in RIP) security: all OSPF messages authenticated (to prevent malicious intrusion) multiple same-cost paths allowed (only on

10、e path in RIP) For each link, multiple cost metrics for different TOS (e.g., satellite link cost set “l(fā)ow” for best effort; high for real time) integrated uni- and multicast support: Multicast OSPF (MOSPF) uses same topology data base as OSPF hierarchical OSPF in large domains.Introduct by Weifeng S

11、unRouting in the Internet11/54Hierarchical OSPFIntroduct by Weifeng SunRouting in the Internet12/54Routing HierarchyPartition Network into “Areas”Within area Each node has routes to every other nodeOutside area Each node has routes for other top-level areas only Inter-area packets are routed to near

12、est appropriate border routerConstraint: no path between two sub-areas of an area can exit that areaBackbone AreasLower-level AreasArea-BorderRouterIntroduct by Weifeng SunRouting in the Internet13/54Hierarchical OSPF two-level hierarchy: local area, backbone. Link-state advertisements only in area

13、each nodes has detailed area topology; only know direction (shortest path) to nets in other areas. area border routers: “summarize” distances to nets in own area, advertise to other Area Border routers. backbone routers: run OSPF routing limited to backbone. boundary routers: connect to other ASs.In

14、troduct by Weifeng SunRouting in the Internet14/54Chapter 4: Network Layer 4. 1 Introduction 4.2 Virtual circuit and datagram networks 4.3 Whats inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing ICMP IPv6 4.5 Routing algorithms Link state Distance Vector Hierarchical routing

15、4.6 Routing in the Internet RIP OSPF BGP 4.7 Broadcast and multicast routingIntroduct by Weifeng SunRouting in the Internet15/54Internet inter-AS routing: BGP BGP (Border Gateway Protocol): the de facto standard BGP provides each AS a means to:1. Obtain subnet reachability information from neighbori

16、ng ASs.2. Propagate reachability information to all AS-internal routers.3. Determine “good” routes to subnets based on reachability information and policy. allows subnet to advertise its existence to rest of Internet: “I am here”Introduct by Weifeng SunRouting in the Internet16/54BGP basics pairs of

17、 routers (BGP peers) exchange routing info over semi-permanent TCP connections: BGP sessions BGP sessions need not correspond to physical links. when AS2 advertises a prefix to AS1: AS2 promises it will forward datagrams towards that prefix. AS2 can aggregate prefixes in its advertisement3b1d3a1c2aA

18、S3AS1AS21a2c2b1b3ceBGP sessioniBGP sessionIntroduct by Weifeng SunRouting in the Internet17/54Distributing reachability info using eBGP session between 3a and 1c, AS3 sends prefix reachability info to AS1. 1c can then use iBGP do distribute new prefix info to all routers in AS1 1b can then re-advert

19、ise new reachability info to AS2 over 1b-to-2a eBGP session when router learns of new prefix, it creates entry for prefix in its forwarding table.3b1d3a1c2aAS3AS1AS21a2c2b1b3ceBGP sessioniBGP sessionIntroduct by Weifeng SunRouting in the Internet18/54Path attributes & BGP routes advertised prefi

20、x includes BGP attributes. prefix + attributes = “route” two important attributes: AS-PATH: contains ASs through which prefix advertisement has passed: e.g, AS 67, AS 17 NEXT-HOP: indicates specific internal-AS router to next-hop AS. (may be multiple links from current AS to next-hop-AS) when gatewa

21、y router receives route advertisement, uses import policy to accept/decline.Introduct by Weifeng SunRouting in the Internet19/54BGP route selectionrouter may learn about more than 1 route to some prefix. Router must select route.elimination rules:1. local preference value attribute: policy decision2

22、. shortest AS-PATH 3. closest NEXT-HOP router: hot potato routing4. additional criteria Introduct by Weifeng SunRouting in the Internet20/54BGP messages BGP messages exchanged using TCP. BGP messages: OPEN: opens TCP connection to peer and authenticates sender UPDATE: advertises new path (or withdra

23、ws old) KEEPALIVE keeps connection alive in absence of UPDATES; also ACKs OPEN request NOTIFICATION: reports errors in previous msg; also used to close connectionIntroduct by Weifeng SunRouting in the Internet21/54BGP routing policyrA,B,C are provider networksrX,W,Y are customer (of provider network

24、s)rX is dual-homed: attached to two networksmX does not want to route from B via X to Cm. so X will not advertise to B a route to CABC W XYlegend: customer network: provider network Introduct by Weifeng SunRouting in the Internet22/54BGP routing policy (2)rA advertises path AW to BrB advertises path

25、 BAW to X rShould B advertise path BAW to C?mNo way! B gets no “revenue” for routing CBAW since neither W nor C are Bs customers mB wants to force C to route to w via AmB wants to route only to/from its customers!ABC W XYlegend: customer network: provider network Introduct by Weifeng SunRouting in t

26、he Internet23/54Why different Intra- and Inter-AS routing ? Policy: Inter-AS: admin wants control over how its traffic routed, who routes through its net. Intra-AS: single admin, so no policy decisions neededScale: hierarchical routing saves table size, reduced update trafficPerformance: Intra-AS: c

27、an focus on performance Inter-AS: policy may dominate over performanceIntroduct by Weifeng SunRouting in the Internet24/54Route SummarizationRouting table/24/24/24/24/24/24AIntroduct by Weifeng SunRouting in the Internet25/54Route Sum

28、marization Routing protocols can summarize addresses of several networks into one addressI can route to the /16 network.Routing Table/16BRouting Table/24/24/24/24/24/24AIntroduct by Weifeng SunRouting in the Intern

29、et26/54(Summarizing within an Octet)/24 = 10101100 . 00010000 . 10101 000 . 00000000相同的位數(shù)為相同的位數(shù)為21(Number of Common Bits = 21)不同位數(shù)不同位數(shù)11位位(Noncommon Bits = 11) 匯總:匯總:/21(Summary: /21)/24 = 172 . 16 . 10101 001 . 0 /24 = 172 . 16 . 10101 010

30、 . 0 /24 = 172 . 16 . 10101 011 . 0 /24 = 172 . 16 . 10101 100 . 0 /24 = 172 . 16 . 10101 101 . 0 /24 = 172 . 16 . 10101 110 . 0 /24 = 172 . 16 . 10101 111 . 0 Introduct by Weifeng SunRouting in the Internet27/54Summarization ExampleHQHB192

31、.168.8.0/24/24/24A ? /24 /24 /24Introduct by Weifeng SunRouting in the Internet28/54Exercise AnswerHQHB/24/24/24 Networks /24 through /24 are summarized by in one advertisement 192.168.8

32、.0/21A /21 /24 /24 /24Introduct by Weifeng SunRouting in the Internet29/54Chapter 4: Network Layer 4. 1 Introduction 4.2 Virtual circuit and datagram networks 4.3 Whats inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing ICMP IPv6 4.

33、5 Routing algorithms Link state Distance Vector Hierarchical routing 4.6 Routing in the Internet RIP OSPF BGP 4.7 Broadcast and multicast routingIntroduct by Weifeng SunRouting in the Internet30/54R1R2R3R4sourceduplicationR1R2R3R4in-networkduplicationduplicatecreation/transmissionduplicateduplicateB

34、roadcast Routing deliver packets from source to all other nodes source duplication is inefficient:rsource duplication: how does source determine recipient addresses?Introduct by Weifeng SunRouting in the Internet31/54In-network duplication flooding: when node receives brdcst pckt, sends copy to all

35、neighbors Problems: cycles & broadcast storm controlled flooding: node only brdcsts pkt if it hasnt brdcst same packet before Node keeps track of pckt ids already brdcsted Or reverse path forwarding (RPF): only forward pckt if it arrived on shortest path between node and source spanning tree No

36、redundant packets received by any nodeIntroduct by Weifeng SunRouting in the Internet32/54ABGDEcFABGDEcF(a) Broadcast initiated at A(b) Broadcast initiated at DSpanning Tree First construct a spanning tree Nodes forward copies only along spanning treeIntroduct by Weifeng SunRouting in the Internet33

37、/54ABGDEcF12345(a) Stepwise construction of spanning treeABGDEcF(b) Constructed spanning treeSpanning Tree: Creation Center node Each node sends unicast join message to center node Message forwarded until it arrives at a node already belonging to spanning treeIntroduct by Weifeng SunRouting in the I

38、nternet34/54Multicast Routing: Problem Statement Goal: find a tree (or trees) connecting routers having local mcast group members tree: not all paths between routers used source-based: different tree from each sender to rcvrs shared-tree: same tree used by all group membersShared treeSource-based tr

39、eesIntroduct by Weifeng SunRouting in the Internet35/54Approaches for building mcast treesApproaches: source-based tree: one tree per source shortest path trees reverse path forwarding group-shared tree: group uses one tree minimal spanning (Steiner) center-based treeswe first look at basic approach

40、es, then specific protocols adopting these approachesIntroduct by Weifeng SunRouting in the Internet36/54Shortest Path Tree mcast forwarding tree: tree of shortest path routes from source to all receivers Dijkstras algorithmR1R2R3R4R5R6R7216345irouter with attachedgroup memberrouter with no attached

41、group memberlink used for forwarding,i indicates order linkadded by algorithmLEGENDS: sourceIntroduct by Weifeng SunRouting in the Internet37/54Reverse Path Forwardingif (mcast datagram received on incoming link on shortest path back to center) then flood datagram onto all outgoing links else ignore

42、 datagramqrely on routers knowledge of unicast shortest path from it to senderqeach router has simple forwarding behavior:Introduct by Weifeng SunRouting in the Internet38/54Reverse Path Forwarding: example result is a source-specific reverse SPT may be a bad choice with asymmetric linksR1R2R3R4R5R6

43、R7router with attachedgroup memberrouter with no attachedgroup memberdatagram will be forwardedLEGENDS: sourcedatagram will not be forwardedIntroduct by Weifeng SunRouting in the Internet39/54Reverse Path Forwarding: pruning forwarding tree contains subtrees with no mcast group members no need to fo

44、rward datagrams down subtree “prune” msgs sent upstream by router with no downstream group membersR1R2R3R4R5R6R7router with attachedgroup memberrouter with no attachedgroup memberprune messageLEGENDS: sourcelinks with multicastforwardingPPPIntroduct by Weifeng SunRouting in the Internet40/54Shared-T

45、ree: Steiner Tree Steiner Tree: minimum cost tree connecting all routers with attached group members problem is NP-complete excellent heuristics exists not used in practice: computational complexity information about entire network needed monolithic: rerun whenever a router needs to join/leaveIntrod

46、uct by Weifeng SunRouting in the Internet41/54Center-based trees single delivery tree shared by all one router identified as “center” of tree to join: edge router sends unicast join-msg addressed to center router join-msg “processed” by intermediate routers and forwarded towards center join-msg eith

47、er hits existing tree branch for this center, or arrives at center path taken by join-msg becomes new branch of tree for this routerIntroduct by Weifeng SunRouting in the Internet42/54Center-based trees: an exampleSuppose R6 chosen as center:R1R2R3R4R5R6R7router with attachedgroup memberrouter with

48、no attachedgroup memberpath order in which join messages generatedLEGEND2131Introduct by Weifeng SunRouting in the Internet43/54Internet Multicasting Routing: DVMRP DVMRP: distance vector multicast routing protocol, RFC1075 flood and prune: reverse path forwarding, source-based tree RPF tree based o

49、n DVMRPs own routing tables constructed by communicating DVMRP routers no assumptions about underlying unicast initial datagram to mcast group flooded everywhere via RPF routers not wanting group: send upstream prune msgsIntroduct by Weifeng SunRouting in the Internet44/54DVMRP: continued soft state

50、: DVMRP router periodically (1 min.) “forgets” branches are pruned: mcast data again flows down unpruned branch downstream router: reprune or else continue to receive data routers can quickly regraft to tree following IGMP join at leaf odds and ends commonly implemented in commercial routers Mbone r

51、outing done using DVMRPIntroduct by Weifeng SunRouting in the Internet45/54TunnelingQ: How to connect “islands” of multicast routers in a “sea” of unicast routers? qmcast datagram encapsulated inside “normal” (non-multicast-addressed) datagramqnormal IP datagram sent thru “tunnel” via regular IP uni

52、cast to receiving mcast routerqreceiving mcast router unencapsulates to get mcast datagramphysical topologylogical topologyIntroduct by Weifeng SunRouting in the Internet46/54PIM: Protocol Independent Multicast not dependent on any specific underlying unicast routing algorithm (works with all) two d

53、ifferent multicast distribution scenarios :Dense:qgroup members densely packed, in “close” proximity.qbandwidth more plentifulSparse:q# networks with group members small wrt # interconnected networksqgroup members “widely dispersed”qbandwidth not plentifulIntroduct by Weifeng SunRouting in the Inter

54、net47/54Consequences of Sparse-Dense Dichotomy: Dense group membership by routers assumed until routers explicitly prune data-driven construction on mcast tree (e.g., RPF) bandwidth and non-group-router processing profligateSparse: no membership until routers explicitly join receiver- driven construction of mcast tree (e.g., center-based) bandwidth and non-group-router processing conservativeIntroduct by Weifeng SunRouting in the Internet48/54PIM- Dense Modeflood-and-prune RPF, similar to DVMRP butqunde

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論