ECE CS 372 introduction to computer networks lecture 1 chapter 4

145 452 0
ECE CS 372 introduction to computer networks lecture 1  chapter 4

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Chapter Network Layer A note on the use of these ppt slides: We’re making these slides freely available to all (faculty, students, readers) They’re in powerpoint form so you can add, modify, and delete slides (including this one) and slide content to suit your needs They obviously represent a lot of work on our part In return for use, we only ask the following:  If you use these slides (e.g., in a class) in substantially unaltered form, that you mention their source (after all, we’d like people to use our book!)  If you post any slides in substantially unaltered form on a www site, that you note that they are adapted from (or perhaps identical to) our slides, and note our copyright of this material Thanks and enjoy! JFK/KWR All material copyright 1996-2002 J.F Kurose and K.W Ross, All Rights Reserved Computer Networking: A Top Down Approach Featuring the Internet, 2nd edition Jim Kurose, Keith Ross Addison-Wesley, July 2002 Network Layer 4-1 Chapter 4: Network Layer Chapter goals: Overview: ❒ understand principles ❒ network layer services behind network layer services: ❍ ❍ ❍ ❍ routing (path selection) dealing with scale how a router works advanced topics: IPv6, mobility ❒ instantiation and implementation in the Internet ❒ routing principles: path selection ❒ hierarchical routing ❒ IP ❒ Internet routing protocols ❍ ❍ intra-domain inter-domain ❒ what’s inside a router? ❒ IPv6 ❒ mobility Network Layer 4-2 Chapter roadmap 4.1 Introduction and Network Service Models 4.2 Routing Principles 4.3 Hierarchical Routing 4.4 The Internet (IP) Protocol 4.5 Routing in the Internet 4.6 What’s Inside a Router 4.7 IPv6 4.8 Multicast Routing 4.9 Mobility Network Layer 4-3 Network layer functions ❒ transport packet from sending to receiving hosts ❒ network layer protocols in every host, router three important functions: ❒ path determination: route taken by packets from source to dest Routing algorithms ❒ forwarding: move packets from router’s input to appropriate router output ❒ call setup: some network architectures require router call setup along path before data flows application transport network data link physical network data link physical network data link physical network data link physical network data link physical network data link physical network data link physical network data link physical network data link physical application transport network data link physical Network Layer 4-4 Network service model service abstraction Q: What service model for “channel” transporting packets from sender to receiver? ❒ guaranteed bandwidth? ❒ preservation of inter-packet timing (no jitter)? ❒ loss-free delivery? ❒ in-order delivery? ❒ congestion feedback to sender? The most important abstraction provided by network layer: ? ? ? virtual circuit or datagram? Network Layer 4-5 Virtual circuits “source-to-dest path behaves much like telephone circuit” ❍ ❍ performance-wise network actions along source-to-dest path before data can flow ❒ each packet carries VC identifier (not destination host ID) ❒ every router on source-dest path maintains “state” for each passing connection ❒ call setup, teardown for each call ❍ transport-layer connection only involved two end systems ❒ link, router resources (bandwidth, buffers) may be ❍ to get circuit-like perf allocated to VC Network Layer 4-6 Virtual circuits: signaling protocols ❒ used to setup, maintain teardown VC ❒ used in ATM, frame-relay, X.25 ❒ not used in today’s Internet application transport Data flow begins network Call connected data link Initiate call physical Receive data application Accept call transport incoming call network data link physical Network Layer 4-7 Datagram networks: the Internet model ❒ 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 Send data physical application transport Receive data network data link physical Network Layer 4-8 Network layer service models: Network Architecture Internet Service Model Guarantees ? Congestion Bandwidth Loss Order Timing feedback best effort none ATM CBR ATM VBR ATM ABR ATM UBR constant rate guaranteed rate guaranteed minimum none no no no yes yes yes yes yes yes no yes no no (inferred via loss) no congestion no congestion yes no yes no no ❒ Internet model being extended: Intserv, Diffserv ❍ Chapter Network Layer 4-9 Datagram or VC network: why? Internet ❒ data exchange among 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 difficult ATM ❒ evolved from telephony ❒ human conversation: strict timing, reliability requirements ❍ need for guaranteed service ❒ “dumb” end systems ❍ telephones ❍ complexity inside network ❍ Network Layer 4- Mobility: more vocabulary Permanent address: remains constant (e.g., 128.119.40.186) visited network: network in which mobile currently resides (e.g., 79.129.13/24) Care-of-address: address in visited network (e.g., 79,129.13.2) wide area network correspondent: wants to communicate with mobile home agent: entity in visited network that performs mobility functions on behalf of mobile Network Layer 4- How you contact a mobile friend: Consider friend frequently changing addresses, how you find her? I wonder where Alice moved to? ❒ search all phone books? ❒ call her parents? ❒ expect her to let you know where he/she is? Network Layer 4- Mobility: approaches ❒ Let routing handle it: routers advertise permanent address of mobile-nodes-in-residence via usual routing table exchange ❍ ❍ ❒ routing tables indicate where each mobile located no changes to end-systems Let end-systems handle it: ❍ ❍ indirect routing: communication from correspondent to mobile goes through home agent, then forwarded to remote direct routing: correspondent gets foreign address of mobile, sends directly to mobile Network Layer 4- Mobility: approaches ❒ Let routing handle it: routers advertise permanent not address of mobile-nodes-in-residence via usual scalable routing table exchange ❍ ❍ ❒ to millions of routing tables indicate where each mobile located mobiles no changes to end-systems let end-systems handle it: ❍ ❍ indirect routing: communication from correspondent to mobile goes through home agent, then forwarded to remote direct routing: correspondent gets foreign address of mobile, sends directly to mobile Network Layer 4- Mobility: registration visited network home network wide area network mobile contacts foreign agent on entering visited network foreign agent contacts home agent home: “this mobile is resident in my network” End result: ❒ Foreign agent knows about mobile ❒ Home agent knows location of mobile Network Layer 4- Mobility via Indirect Routing foreign agent receives packets, forwards to mobile home agent intercepts packets, forwards to foreign agent home network visited network wide area network correspondent addresses packets using home address of mobile mobile replies directly to correspondent Network Layer 4- Indirect Routing: comments ❒ Mobile uses two addresses: ❍ ❍ permanent address: used by correspondent (hence mobile location is transparent to correspondent) care-of-address: used by home agent to forward datagrams to mobile ❒ foreign agent functions may be done by mobile itself ❒ triangle routing: correspondent-home-network- mobile inefficient when correspondent, mobile are in same network ❍ Network Layer 4- Forwarding datagrams to remote mobile foreign-agent-to-mobile packet packet sent by home agent to foreign agent: a packet within a packet dest: 79.129.13.2 dest: 128.119.40.186 dest: 128.119.40.186 Permanent address: 128.119.40.186 dest: 128.119.40.186 Care-of address: 79.129.13.2 packet sent by correspondent Network Layer 4- Indirect Routing: moving between networks ❒ suppose mobile user moves to another network ❍ ❍ ❍ ❍ registers with new foreign agent new foreign agent registers with home agent home agent update care-of-address for mobile packets continue to be forwarded to mobile (but with new care-of-address) ❒ Mobility, changing foreign networks transparent: going connections can be maintained! on Network Layer 4- Mobility via Direct Routing correspondent forwards to foreign agent foreign agent receives packets, forwards to mobile home network wide area network correspondent requests, receives foreign address of mobile visited network mobile replies directly to correspondent Network Layer 4- Mobility via Direct Routing: comments ❒ overcome triangle routing problem ❒ non-transparent to correspondent: correspondent must get care-of-address from home agent ❍ What happens if mobile changes networks? Network Layer 4- Mobile IP ❒ RFC 3220 ❒ has many features we’ve seen: ❍ home agents, foreign agents, foreign-agent registration, care-of-addresses, encapsulation (packet-within-apacket) ❒ three components to standard: ❍ ❍ ❍ agent discovery registration with home agent indirect routing of datagrams Network Layer 4- Mobile IP: agent discovery ❒ agent advertisement: foreign/home agents advertise service by broadcasting ICMP messages (typefield = 9) type = 24 checksum =9 code = =9 H,F bits: home and/or foreign agent R bit: registration required 16 standard ICMP fields router address type = 16 length registration lifetime sequence # RBHFMGV bits reserved or more care-ofaddresses mobility agent advertisement extension Network Layer 4- Mobile IP: registration example home agent HA: 128.119.40.7 foreign agent COA: 79.129.13.2 visited network: 79.129.13/24 ICMP agent adv COA: 79.129.13.2 … registration req COA: 79.129.13.2 HA: 128.119.40.7 MA: 128.119.40.186 Lifetime: 9999 identification: 714 encapsulation format … Mobile agent MA: 128.119.40.186 registration req COA: 79.129.13.2 HA: 128.119.40.7 MA: 128.119.40.186 Lifetime: 9999 identification:714 … registration reply time HA: 128.119.40.7 MA: 128.119.40.186 Lifetime: 4999 Identification: 714 encapsulation format … registration reply HA: 128.119.40.7 MA: 128.119.40.186 Lifetime: 4999 Identification: 714 … Network Layer 4- Network Layer: summary What we’ve covered: ❒ network layer services ❒ routing principles: link state and distance vector ❒ hierarchical routing ❒ IP ❒ Internet routing protocols RIP, OSPF, BGP ❒ what’s inside a router? ❒ IPv6 ❒ mobility Next stop: the Data link layer! Network Layer 4- ... block 11 0 010 00 00 010 111 00 010 000 00000000 200.23 .16 .0/20 Organization Organization Organization 11 0 010 00 00 010 111 00 010 000 00000000 11 0 010 00 00 010 111 00 010 010 00000000 11 0 010 00 00 010 111 00 010 100... interface 223 .1. 1 .1 223 .1. 1.2 223 .1. 1 .4 223 .1. 1.3 223 .1. 2 .1 223 .1. 2.9 223 .1. 3.27 223 .1. 2.2 223 .1. 3.2 223 .1. 3 .1 223 .1. 1 .1 = 11 011 111 000000 01 000000 01 000000 01 223 1 Network Layer 4- IP Addressing... 223 .1. 1 223 .1. 2 223 .1. 3 A ❒ E on B - 1 223 .1. 1 .4 223 .1. 2.9 223 .1. 3.27 223 .1. 1 .1 223 .1. 1.2 223 .1. 1 .4 223 .1. 1.3 223 .1. 3 .1 223 .1. 2 .1 223 .1. 2.9 223 .1. 3.27 223 .1. 2.2 E 223 .1. 3.2 Network Layer 4- IP

Ngày đăng: 04/12/2015, 20:37

Từ khóa liên quan

Mục lục

  • PowerPoint Presentation

  • Chapter 4: Network Layer

  • Chapter 4 roadmap

  • Network layer functions

  • Network service model

  • Virtual circuits

  • Virtual circuits: signaling protocols

  • Datagram networks: the Internet model

  • Network layer service models:

  • Datagram or VC network: why?

  • Slide 11

  • Routing

  • Routing Algorithm classification

  • A Link-State Routing Algorithm

  • Dijsktra’s Algorithm

  • Dijkstra’s algorithm: example

  • Dijkstra’s algorithm, discussion

  • Distance Vector Routing Algorithm

  • Distance Table: example

  • Distance table gives routing table

Tài liệu cùng người dùng

Tài liệu liên quan