计算机网络第6版课件:Chapter 4-1 Network layer_第1页
计算机网络第6版课件:Chapter 4-1 Network layer_第2页
计算机网络第6版课件:Chapter 4-1 Network layer_第3页
计算机网络第6版课件:Chapter 4-1 Network layer_第4页
计算机网络第6版课件:Chapter 4-1 Network layer_第5页
已阅读5页,还剩31页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、Lecture on Computer NetworkFor 08Spring 2010Introduct by Weifeng SunNetwork layer2/36Chapter 4: Network LayerChapter goals: understand principles behind network layer services: network layer service models forwarding versus routing how a router works routing (path selection) dealing with scale advan

2、ced topics: IPv6, mobility instantiation, implementation in the InternetIntroduct by Weifeng SunNetwork layer3/36Chapter 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 VLSM/CIDR ICMP IPv

3、6 IP sec 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 Weifeng SunNetwork layer4/36Chapter 4: Network Layer 4. 1 Introduction 4.2 Virtual circuit and datagram networks 4.3 Whats inside a

4、 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 Weifeng SunNetwork layer5/36Network layer transport segment from

5、 sending to receiving host on sending side encapsulates segments into datagrams on rcving side, delivers segments to transport layer network layer protocols in every host, router router examines header fields in all IP datagrams passing through itapplicationtransportnetworkdata linkphysicalapplicati

6、ontransportnetworkdata linkphysicalnetworkdata linkphysicalnetworkdata linkphysicalnetworkdata linkphysicalnetworkdata linkphysicalnetworkdata linkphysicalnetworkdata linkphysicalnetworkdata linkphysicalnetworkdata linkphysicalnetworkdata linkphysicalnetworkdata linkphysicalnetworkdata linkphysicalI

7、ntroduct by Weifeng SunNetwork layer6/36Two Key Network-Layer Functions forwarding: move packets from routers input to appropriate router output routing: determine route taken by packets from source to dest. routing algorithmsanalogy:rrouting: process of planning trip from source to destrforwarding:

8、 process of getting through single interchangeIntroduct by Weifeng SunNetwork layer7/361230111value in arrivingpackets headerrouting algorithmlocal forwarding tableheader value output link01000101011110013221Interplay between routing and forwardingIntroduct by Weifeng SunNetwork layer8/36Connection

9、setup 3rd important function in some network architectures: ATM, frame relay, X.25 before datagrams flow, two end hosts and intervening routers establish virtual connection routers get involved network vs transport layer connection service: network: between two hosts (may also involve intervening ro

10、uters in case of VCs) transport: between two processesIntroduct by Weifeng SunNetwork layer9/36Network service modelQ: What service model for “channel” transporting datagrams from sender to receiver?Example services for individual datagrams: guaranteed delivery guaranteed delivery with less than 40

11、msec delayExample services for a flow of datagrams: in-order datagram delivery guaranteed minimum bandwidth to flow restrictions on changes in inter-packet spacingIntroduct by Weifeng SunNetwork layer10/36Network layer service models:NetworkArchitectureInternetATMATMATMATMServiceModelbest effortCBRV

12、BRABRUBRBandwidthnoneconstantrateguaranteedrateguaranteed minimumnoneLossnoyesyesnonoOrdernoyesyesyesyesTimingnoyesyesnonoCongestionfeedbackno (inferredvia loss)nocongestionnocongestionyesnoGuarantees ?Introduct by Weifeng SunNetwork layer11/36Chapter 4: Network Layer 4. 1 Introduction 4.2 Virtual c

13、ircuit 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 Weifeng SunNetwor

14、k layer12/36Network layer connection and connection-less service datagram network provides network-layer connectionless service VC network provides network-layer connection service analogous to the transport-layer services, but: service: host-to-host no choice: network provides one or the other impl

15、ementation: in network coreIntroduct by Weifeng SunNetwork layer13/36Virtual circuitscall setup, teardown for each call before data can floweach packet carries VC identifier (not destination host address)every router on source-dest path maintains “state” for each passing connectionlink, router resou

16、rces (bandwidth, buffers) may be allocated to VC (dedicated resources = predictable service)“source-to-dest path behaves much like telephone circuit” performance-wise network actions along source-to-dest pathIntroduct by Weifeng SunNetwork layer14/36VC implementationa VC consists of:1.path from sour

17、ce to destination2. VC numbers, one number for each link along path3. entries in forwarding tables in routers along pathpacket belonging to VC carries VC number (rather than dest address)VC number can be changed on each link.New VC number comes from forwarding tableIntroduct by Weifeng SunNetwork la

18、yer15/36Forwarding table122232123VC numberinterfacenumberIncoming interface Incoming VC # Outgoing interface Outgoing VC #1 12 3 222 63 1 18 3 7 2 171 97 3 87 Forwarding table innorthwest router:Routers maintain connection state information!Introduct by Weifeng SunNetwork layer16/36Virtual circuits:

19、 signaling protocols used to setup, maintain teardown VC used in ATM, frame-relay, X.25 not used in todays Internetapplicationtransportnetworkdata linkphysicalapplicationtransportnetworkdata linkphysical1. Initiate call2. incoming call3. Accept call4. Call connected5. Data flow begins6. Receive data

20、Introduct by Weifeng SunNetwork layer17/36Datagram 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 pathsapplicatio

21、ntransportnetworkdata linkphysicalapplicationtransportnetworkdata linkphysical1. Send data2. Receive dataIntroduct by Weifeng SunNetwork layer18/36Forwarding table Destination Address Range Link Interface 11001000 00010111 00010000 00000000 through 0 11001000 00010111 00010111 11111111 11001000 0001

22、0111 00011000 00000000 through 1 11001000 00010111 00011000 11111111 11001000 00010111 00011001 00000000 through 2 11001000 00010111 00011111 11111111 otherwise 34 billion possible entriesIntroduct by Weifeng SunNetwork layer19/36Longest prefix matching Prefix Match Link Interface 11001000 00010111

23、00010 0 11001000 00010111 00011000 1 11001000 00010111 00011 2 otherwise 3DA: 11001000 00010111 00011000 10101010 ExamplesDA: 11001000 00010111 00010110 10100001 Which interface?Which interface?Introduct by Weifeng SunNetwork layer20/36Datagram or VC network: why?Internet (datagram)data exchange amo

24、ng computers “elastic” service, no strict timing req. “smart” end systems (computers) can adapt, perform control, error recovery simple inside network, complexity at “edge”many link types different characteristics uniform service difficultATM (VC)evolved from telephonyhuman conversation: strict timi

25、ng, reliability requirements need for guaranteed service“dumb” end systems telephones complexity inside networkIntroduct by Weifeng SunNetwork layer21/36Network Layer Design Issues Store-and-Forward Packet Switching A host with a packet to send transmits it to the nearest router, either on its own L

26、AN or over a point-to-point link to the carrier. The packet is stored there until it has fully arrived so the checksum can be verified. Then it is forwarded to the next router along the path until it reaches the destination host, where it is delivered.The environment of the network layer protocolsIn

27、troduct by Weifeng SunNetwork layer22/36Implementation of Connectionless ServiceRouting within a datagram subnet.Introduct by Weifeng SunNetwork layer23/36Implementation of Connection-oriented ServiceRouting within a virtual-circuit subnet.Introduct by Weifeng SunNetwork layer24/36Comparison of virt

28、ual circuit and datagramIntroduct by Weifeng SunNetwork layer25/36Chapter 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 Hiera

29、rchical routing 4.6 Routing in the Internet RIP OSPF BGP 4.7 Broadcast and multicast routingIntroduct by Weifeng SunNetwork layer26/36Router Architecture OverviewTwo key router functions: run routing algorithms/protocol (RIP, OSPF, BGP) forwarding datagrams from incoming to outgoing linkIntroduct by

30、 Weifeng SunNetwork layer27/36Input Port FunctionsDecentralized switching: given datagram dest., lookup output port using forwarding table in input port memorygoal: complete input port processing at line speedqueuing: if datagrams arrive faster than forwarding rate into switch fabricPhysical layer:b

31、it-level receptionData link layer:e.g., Ethernetsee chapter 5Introduct by Weifeng SunNetwork layer28/36Three types of switching fabricsIntroduct by Weifeng SunNetwork layer29/36Switching Via MemoryFirst generation routers: traditional computers with switching under direct control of CPUpacket copied

32、 to systems memory speed limited by memory bandwidth (2 bus crossings per datagram)InputPortOutputPortMemorySystem BusIntroduct by Weifeng SunNetwork layer30/36Switching Via a Bus datagram from input port memory to output port memory via a shared bus bus contention: switching speed limited by bus ba

33、ndwidth 32 Gbps bus, Cisco 5600: sufficient speed for access and enterprise routersIntroduct by Weifeng SunNetwork layer31/36Switching Via An Interconnection Network overcome bus bandwidth limitations Banyan networks, other interconnection nets initially developed to connect processors in multiproce

34、ssor advanced design: fragmenting datagram into fixed length cells, switch cells through the fabric. Cisco 12000: switches 60 Gbps through the interconnection networkIntroduct by Weifeng SunNetwork layer32/36Output Ports Buffering required when datagrams arrive from fabric faster than the transmission rate Scheduling discipline chooses among queued datagrams

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论