15 213 The course that gives CMU its Zip Internetworking April 13 2004 Topics Client server programming model Networks Internetworks Global IP Internet IP addresses Domain names Connections class25 ppt A Client Server Transaction Most network applications are based on the client server model A server process and one or more client processes Server manages some resource Server provides service by manipulating resource for clients Client process 4 Client handles response 1 Client sends request 3 Server sends response Server process Resource 2 Server handles request Note clients and servers are processes running on hosts can be the same or different hosts 2 15 213 S 04 Hardware Org of a Network Host CPU chip register file ALU system bus memory bus main memory I O bridge MI Expansion slots I O bus USB controller mouse keyboard 3 graphics adapter disk controller network adapter disk network monitor 15 213 S 04 Computer Networks A network is a hierarchical system of boxes and wires organized by geographical proximity SAN System Area Network spans cluster or machine room Switched Ethernet Quadrics QSW LAN local area network spans a building or campus Ethernet is most prominent example WAN wide area network spans country or world Typically high speed point to point phone lines An internetwork internet is an interconnected set of networks The Global IP Internet uppercase I is the most famous example of an internet lowercase i Let s build an internet from the ground up 4 15 213 S 04 Lowest Level Ethernet Segment Ethernet segment consists of a collection of hosts connected by wires twisted pairs to a hub Spans room or floor in a building host 100 Mb s host hub host 100 Mb s Operation ports Each Ethernet adapter has a unique 48 bit address Hosts send bits to any host in chunks called frames Hub slavishly copies each bit from each port to every other port i e Every host sees every bit Note Hubs are on their way out Bridges switches routers have become cheap enough to replace them thus no more broadcasting 5 15 213 S 04 Next Level Bridged Ethernet Segment Spans building or campus Bridges cleverly learn which hosts are reachable from which ports and then selectively copy frames from port to port A host host hub B host 100 Mb s host X bridge 100 Mb s 1 Gb s hub 100 Mb s bridge 100 Mb s host 6 host Y host host hub host host hub host host C 15 213 S 04 Conceptual View of LANs For simplicity hubs bridges and wires are often shown as a collection of hosts attached to a single wire host 7 host host 15 213 S 04 Next Level internets Multiple incompatible LANs can be physically connected by specialized computers called routers The connected networks are called an internet host LAN 1 host host router WAN host router WAN host router host LAN 2 LAN 1 and LAN 2 might be completely different totally incompatible LANs e g Ethernet and Wifi 802 11 T1 links DSL 8 15 213 S 04 The Notion of an internet Protocol How is it possible to send bits across incompatible LANs and WANs Solution protocol software running on each host and router smoothes out the differences between the different networks Implements an internet protocol i e set of rules that governs how hosts and routers should cooperate when they transfer data from network to network TCP IP 9 is the protocol for the global IP Internet 15 213 S 04 What Does an internet Protocol Do 1 Provides a naming scheme An internet protocol defines a uniform format for host addresses Each host and router is assigned at least one of these internet addresses that uniquely identifies it 2 Provides a delivery mechanism An internet protocol defines a standard transfer unit packet Packet consists of header and payload Header contains info such as packet size source and destination addresses Payload contains data bits sent from source host 10 15 213 S 04 Transferring Data Over an internet Host A Host B client 1 server data protocol software internet packet 2 data 3 data LAN1 adapter PH FH1 4 Router LAN1 adapter LAN1 data data 7 data PH FH2 6 data PH FH2 protocol software PH FH1 LAN1 frame 8 LAN2 adapter PH FH1 LAN2 adapter LAN2 frame data LAN2 PH FH2 5 protocol software 11 15 213 S 04 Other Issues We are glossing over a number of important questions What if different networks have different maximum frame sizes segmentation How do routers know where to forward frames How are routers informed when the network topology changes What if packets get lost These and other questions are addressed by the area of systems known as computer networking 12 15 213 S 04 Global IP Internet Most famous example of an internet Based on the TCP IP protocol family IP Internet protocol Provides basic naming scheme and unreliable delivery capability of packets datagrams from host to host UDP Unreliable Datagram Protocol Uses IP to provide unreliable datagram delivery from process to process TCP Transmission Control Protocol Uses IP to provide reliable byte streams from process to process over connections Accessed via a mix of Unix file I O and functions from the sockets interface 13 15 213 S 04 Hardware and Software Org of an Internet Application Internet client host Internet server host Client User code Server TCP IP Kernel code TCP IP Sockets interface system calls Hardware interface interrupts Network adapter Hardware and firmware Network adapter Global IP Internet 14 15 213 S 04 Basic Internet Components An Internet backbone is a collection of routers nationwide or worldwide connected by high speed point to point networks A Network Access Point NAP is a router that connects multiple backbones sometimes referred to as peers Regional networks are smaller backbones that cover smaller geographical areas e g cities or states A point of presence POP is a machine that is connected to the Internet Internet Service Providers ISPs provide dial up or direct access to POPs 15 15 213 S 04 The Internet Circa 1986 In 1986 the Internet consisted of one backbone NSFNET that connected 13 sites via 45 Mbs T3 links Merit Univ of Mich NCSA Illinois Cornell Theory Center Pittsburgh Supercomputing Center San Diego Supercomputing Center John von Neumann Center Princeton BARRNet Palo Alto MidNet Lincoln NE WestNet Salt Lake City NorthwestNet Seattle SESQUINET Rice SURANET Georgia Tech Connecting to the Internet involved connecting one of your routers to a router at a backbone site or to a regional network that was already connected to the backbone 16 15 213 S 04 NSFNET Internet Backbone source www eef org 17 15 213 S 04
View Full Document