Скачать презентацию COSC 6377 Computer Networks Rong Zheng rzheng cs uh Скачать презентацию COSC 6377 Computer Networks Rong Zheng rzheng cs uh

118e65fd3ed7fbc84dbac83297430ebb.ppt

  • Количество слайдов: 28

COSC 6377: Computer Networks Rong Zheng rzheng@cs. uh. edu Computer Networking: A Top Down COSC 6377: Computer Networks Rong Zheng rzheng@cs. uh. edu Computer Networking: A Top Down Approach Featuring the Internet, 3 rd edition. Jim Kurose, Keith Ross Addison-Wesley, July 2004. Introduction 1

Introduction q Overview of the course q Basic concepts and structures in computer networking Introduction q Overview of the course q Basic concepts and structures in computer networking q Network architecture Introduction 2

What’s the Internet: “nuts and bolts” view q End systems v Host computer v What’s the Internet: “nuts and bolts” view q End systems v Host computer v Network applications q Access networks v Local area networks v communication links router server workstation mobile local ISP regional ISP q Network core: v routers v network of networks company network Introduction 3

What’s the Internet: “nuts and bolts” view q Protocols define format, order of msgs What’s the Internet: “nuts and bolts” view q Protocols define format, order of msgs sent and received among network entities, and actions taken on msg transmission, receipt v router server workstation mobile local ISP e. g. , TCP, IP, HTTP, FTP, PPP q Internet: “network of networks” v v regional ISP loosely hierarchical public Internet versus private intranet q Internet standards v v RFC: Request for comments IETF: Internet Engineering Task Force company network Introduction 4

Network Components (Examples) Links Interfaces Fibers Ethernet card Switches/routers Large router Wireless card Coaxial Network Components (Examples) Links Interfaces Fibers Ethernet card Switches/routers Large router Wireless card Coaxial Cable Switch Introduction 5

Introduction 6 Introduction 6

Internet structure: network of networks q roughly hierarchical q at center: “tier-1” ISPs (e. Internet structure: network of networks q roughly hierarchical q at center: “tier-1” ISPs (e. g. , MCI, Sprint, AT&T, Cable and Wireless), national/international coverage v treat each other as equals Tier-1 providers interconnect (peer) privately Tier 1 ISP NAP Tier-1 providers also interconnect at public network access points (NAPs) Tier 1 ISP Introduction 7

Tier-1 ISP: e. g. , Sprint US backbone network DS 3 (45 Mbps) OC Tier-1 ISP: e. g. , Sprint US backbone network DS 3 (45 Mbps) OC 3 (155 Mbps) OC 12 (622 Mbps) OC 48 (2. 4 Gbps) Seattle Tacoma Stockton San Jose Cheyenne Kansas City New York Pennsauken Relay Wash. DC Chicago Roachdale Anaheim Atlanta Fort Worth Orlando Introduction 8

Internet structure: network of networks q “Tier-2” ISPs: smaller (often regional) ISPs v Connect Internet structure: network of networks q “Tier-2” ISPs: smaller (often regional) ISPs v Connect to one or more tier-1 ISPs, possibly other tier-2 ISPs Tier-2 ISP pays tier-1 ISP for connectivity to rest of Internet q tier-2 ISP is customer of tier-1 provider Tier-2 ISP Tier 1 ISP Tier-2 ISP NAP Tier 1 ISP Tier-2 ISPs also peer privately with each other, interconnect at NAP Tier-2 ISP Introduction 9

Internet structure: network of networks q “Tier-3” ISPs and local ISPs v last hop Internet structure: network of networks q “Tier-3” ISPs and local ISPs v last hop (“access”) network (closest to end systems) local ISP Local and tier 3 ISPs are customers of higher tier ISPs connecting them to rest of Internet Tier 3 ISP Tier-2 ISP local ISP Tier-2 ISP Tier 1 ISP Tier-2 ISP local ISP NAP Tier 1 ISP Tier-2 ISP local ISP Introduction 10

Internet structure: network of networks q a packet passes through many networks! local ISP Internet structure: network of networks q a packet passes through many networks! local ISP Tier 3 ISP Tier-2 ISP local ISP Tier-2 ISP Tier 1 ISP Tier-2 ISP local ISP NAP Tier 1 ISP Tier-2 ISP local ISP Introduction 11

Protocol “Layers” Networks are complex! q many “pieces”: v hosts v routers v links Protocol “Layers” Networks are complex! q many “pieces”: v hosts v routers v links of various media v applications v protocols v hardware, software Question: Is there any hope of organizing structure of network? Or at least our discussion of networks? Introduction 12

An Imaginary 2 -tier Application Transmission Media SMTP SSH Coaxial cable FTP Fiber optic An Imaginary 2 -tier Application Transmission Media SMTP SSH Coaxial cable FTP Fiber optic HTTP Packet radio q New application has to interface to all existing media v adding new application requires O(m) work, m = number of media q New media requires all existing applications be modified v adding new media requires O(a) work, a = number of applications q Total work in system O(ma) eventually too much work to add apps/media q Application end points may not be on the same media! Introduction 13

Solution: Indirection q Solution: introduce an intermediate layer that provides a single abstraction for Solution: Indirection q Solution: introduce an intermediate layer that provides a single abstraction for various network technologies v v O(1) work to add app/media Indirection is an often used technique in computer science Application SMTP SSH NFS HTTP Intermediate layer Transmission Media Coaxial cable Fiber optic 802. 11 LAN Introduction 14

Network Architecture q Architecture is not the implementation itself q Architecture is how to Network Architecture q Architecture is not the implementation itself q Architecture is how to “organize” implementations v what interfaces are supported v where functionality is implemented q Architecture is the modular design of the network Introduction 15

Software Modularity Break system into modules: q Well-defined interfaces gives flexibility v can change Software Modularity Break system into modules: q Well-defined interfaces gives flexibility v can change implementation of modules v can extend functionality of system by adding new modules q Interfaces hide information v allows for flexibility v but can hurt performance Introduction 16

Network Modularity Like software modularity, but with a twist: q Implementation distributed across routers Network Modularity Like software modularity, but with a twist: q Implementation distributed across routers and hosts q Must decide both: v how to break system into modules v where modules are implemented Introduction 17

Layering q Layering is a particular form of modularization q The system is broken Layering q Layering is a particular form of modularization q The system is broken into a vertical hierarchy of logically distinct entities (layers) q The service provided by one layer is based solely on the service provided by layer below q Rigid structure: easy reuse, performance suffers Introduction 18

ISO OSI Reference Model q ISO – International Standard Organization q OSI – Open ISO OSI Reference Model q ISO – International Standard Organization q OSI – Open System Interconnection q Seven layers v Lower two layers are peer-to-peer v Network layer involves multiple switches v Next four layers are end-to-end Host 1 Application Presentation Session Transport Network Datalink Physical medium A Intermediate switch Network Datalink Physical Host 2 Application Presentation Session Transport Network Datalink Physical medium B Introduction 19

Key Concepts q Service – says what a layer does v Ethernet: unreliable subnet Key Concepts q Service – says what a layer does v Ethernet: unreliable subnet unicast/multicast/broadcast datagram service v IP: unreliable end-to-end unicast datagram service v TCP: reliable end-to-end bi-directional byte stream service q Service Interface – says how to access the service v E. g. UNIX socket interface q Protocol – says how is the service implemented v a set of rules and formats that govern the communication between two peers Introduction 20

Functions of the Layers v v v v Service: Handles details of application programs. Functions of the Layers v v v v Service: Handles details of application programs. Functions: Service: Controls delivery of data between hosts. Functions: Connection establishment/termination, error control, flow control, congestion control, etc. Application telnet, ftp, email Layer www, NFS Transport TCP, UDP Layer Network Layer IP, ICMP, OSPF RIP, BGP Service: Moves packets inside the network. Functions: Routing, addressing, switching, etc. (Data) Link Ethernet, Wi. Fi Service: Reliable transfer of frames over a link. Functions: Synchronization, error control, flow control, etc. Layer T 1 Introduction 22

Internet Protocol Architecture FTP program FTP protocol FTP program TCP protocol TCP IP Ethernet Internet Protocol Architecture FTP program FTP protocol FTP program TCP protocol TCP IP Ethernet Driver IP protocol Ethernet Driver IP IP protocol ATM Driver ATM protocol IP ATM Driver Introduction 23

Internet Protocol Architecture MPEG Servier program UDP IP Ethernet Driver MPEG Player program RTP Internet Protocol Architecture MPEG Servier program UDP IP Ethernet Driver MPEG Player program RTP protocol UDP protocol IP protocol Ethernet Driver IP UDP IP protocol ATM Driver ATM protocol IP ATM Driver Introduction 24

source message segment Ht datagram Hn Ht frame Hl Hn Ht M M Encapsulation source message segment Ht datagram Hn Ht frame Hl Hn Ht M M Encapsulation application transport network link physical Hl Hn Ht M switch destination M Ht M Hn Ht Hl Hn Ht M M application transport network link physical Hn Ht Hl Hn Ht M M router Introduction 25

Hourglass Note: Additional protocols like routing protocols (RIP, OSPF) needed to make IP work Hourglass Note: Additional protocols like routing protocols (RIP, OSPF) needed to make IP work Introduction 26

Implications of Hourglass A single Internet layer module: q Allows all networks to interoperate Implications of Hourglass A single Internet layer module: q Allows all networks to interoperate v all networks technologies that support IP can exchange packets q Allows all applications to function on all networks v all applications that can run on IP can use any network q Simultaneous developments above and below IP Introduction 27

Reality q Layering is a convenient way to think about networks q But layering Reality q Layering is a convenient way to think about networks q But layering is often violated v Firewalls v Transparent v NAT caches boxes Introduction 28

Thinking Exercise – Interplanetary Internet q Network entities: v Ground stations v Satellites, space Thinking Exercise – Interplanetary Internet q Network entities: v Ground stations v Satellites, space stations at near-Earth orbit 600 kilometers (~ 2 s) v Mars rovers take ~ 10 to 30 min v Planets farther away? q Objective: v Interconnect with earthbound networks? http: //www. spectrum. ieee. org/WEBONLY/publicfeature/aug 05/0805 inte. html Introduction 29