Presentation is loading. Please wait.

Presentation is loading. Please wait.

Communication Networks A Second Course Jean Walrand Department of EECS University of California at Berkeley.

Similar presentations


Presentation on theme: "Communication Networks A Second Course Jean Walrand Department of EECS University of California at Berkeley."— Presentation transcript:

1 Communication Networks A Second Course Jean Walrand Department of EECS University of California at Berkeley

2 Review of TCP/IP Networks History Key Ideas Protocols Technology

3 Networks WAN MAN

4 Networks WAN MAN LAN

5 WAN LAN Networks

6 History 1962 – L. Kleinrock proposes Packet SwitchingL. Kleinrock 1966 – L. Roberts proposes architecture to DarpaL. Roberts 1969 – First demonstration of packet switching: 4-node Arpanet 1969 – S. Croker introduces RFCs (managed by J. Postel) 1972 – R. Kahn proposes an open architecture: Inter-networking with stateless routers, best effort, no control planeR. Kahn 1973 – Kahn and V. Cerf propose early ideas of IP (32-bit address) and TCP (end-to-end ACKs with a window scheme)V. Cerf 1973 – R. Metcalfe invents EthernetR. Metcalfe 1982 – IGP and EGPIGP and EGP Late 1970s, early 1980s – Berkeley develops BSD, a modified implementation of UNIX that includes TCP/IP 1983 – Arpanet switches to TCP/IP 1983 – P. Mockapetris invents DNSP. Mockapetris 1988 – Van Jacobson fixes TCPVan Jacobson 1985 – 1995 – Internet supported by NSF and other agencies 1993? – T. Berners-Lee invents WWWT. Berners-Lee 1995 – Internet is privatized 2000… - WiFi,VoIP, P2P See http://www.isoc.org/internet/history/brief.shtmlhttp://www.isoc.org/internet/history/brief.shtml

7 Key Ideas Packet Switching End-to-End error and flow control Internetworking Multiple Access DNS P2P VoIP

8 Packet Switching A B A | B | …. C A | C | ….

9 End-to-End Error and Flow Control A B A | B | n | … | EC A | B | m | … | EC B | A| k | m | … | EC ACKs all packets from A up to packet m Error control field A can have up to N packets for B that have not been acknowledged Selecting N adjusts the rate of transmissions: limit congestion If ACK is late, A retransmits packets

10 Internetworking Goal: Connect different networks 1.1 a 1.2 b 1.0 c 2.0 d 2.1 e 2.2 f a  c|1.1  2.2 | X d  f |1.1  2.2 | X a  b|1.1  1.2 | Y ROUTER Router looks at IP addresses (1.1, …) Each network uses local addresses (e.g., a, b, c, …)

11 Multiple Access Goal: Share one medium (e.g., WiFi) A B C time A | B | C | A | “Collision” Wait random time after collision C | A | “Busy” A | B | Wait until idle

12 DNS: Domain Name Service Translate Name into IP address (e.g., google.com into 216.239.57.99) Directory of DNS is distributed:.com,.edu, ….edu: berkeley.edu, stanford.edu, … Mapping can depend on source address Mapping can be done to multiple addresses

13 P2P: Peer-to-peer Goal: All peers become servers Example: Each peer knows the addresses of a set of peers: his “friends” To find a file, peer A asks his friends who in turn ask their friends, and so on, until someone, B, says he has the file… (can limit search); A then asks B for the file. Many variations are possible. The key idea is that there is no specialized server; every client becomes a server.

14 VoIP: Voice over IP Goal: Place phone calls over Internet (Should be cheaper because the Internet infrastructure is much lighter than that of the phone network.) Steps: Gateway converts phone signal into IP packets and vice- versa Protocol to convert phone number into gateway IP address Gateway converts usual control signals (dial tone, ringing, busy, …) into IP packets and vice-versa

15 Protocols: IP: Internet Protocol TCP: Transmission Control Protocol UDP: User Datagram Protocol HTTP: Hypertext Transfer Protocol FTP: File Transfer Protocol ARP: Address Resolution Protocol TCPUDP IP HTTPFTP

16 Protocols: Fiber, Wires, WL Eth. HTTP, FTP, … IP UDP - TCP Physical Interface Synchronous unreliable bit pipe Data Link Control Data Link Control Asynchronous reliable bit pipe Physical Link Network Asynchronous routed path FHData Physical Interface Synchronous unreliable bit pipe Data Link Control Asynchronous reliable bit pipe Physical Link Network Asynchronous routed path FHData Transport PHDataPHData THData End NodeRouterEnd Node Application Data

17 IP: Internet Protocol Delivers packets between any two hosts Organizes address, manages routing tables Addresses: 32 bits, arranged so that prefix determines next router toward destination Routing algorithm: Essentially shortest path. Done in two levels: nodes are grouped; shortest path inside each group and across groups. Tables updated periodically to adjust to changes

18 TCP: Transmission Control Protocol Implements reliable delivery of byte stream between hosts Multiplexes multiple connections to and from a host: adds a “port” number End-to-end retransmissions Regulates flow to avoid congesting Destination (flow control) Routers (congestion control) Method: ACKs, control number of unacknowledged packets

19 TCP Service: IP Transport ABC [A | B | p1 | p2 | …] p1p2p1p2p3p1p2 ports Application HTTP DNS ftp TCP: Byte Stream  Ordered, reliable, well-paced

20 Congestion Control: Flows share links: How to share the links bandwidth?

21 TCP AlgorithmTCP Algorithm: AIMD AB x C DE y Limit rates: x = y TOC TOC – Congestion Control - TCP Algorithm – AIMDCongestion Control TCP Algorithm Try to be fair

22 TCP: Summary W 1 64KB X 0.5 TO 3DA X 0.5 3DA TO X 0.5 SSCA SS CA 3 3

23 Flow Control Objective: Avoid saturating destination Algorithm: Receiver avertizes window RAW RAW window = min{RAW – OUT, W} where OUT = Oustanding = Last sent – last ACKed W = Cong. Window from AIMD + refinements [ACK | RAW | …]

24 SYN k SYN n; ACK k+1 DATA k+1; ACK n+1 ACK k+n+1 data exchange FIN FIN ACK ½ close FIN FIN ACK ½ close TCP Phases: 3-way handshake

25 UDP: User Datagram Protocol Unreliable delivery of packets with error detection Multiplexes multiple connections to and from a host: adds a “port” number Adds error detection code for the packet No retransmission, no flow control

26 FTP: File Transfer Protocol Reliable delivery of file between hosts Converts file into byte stream for TCP

27 HTTP Transfer of html files Sets up TCP connections and FTP to transfer files Closes connections after transfer

28 ARP: Address Resolution Protocol Discovers local address from IP address Example: In “Internetworking” slide, host 1.1 uses ARP to discover local address b of 1.2 Protocol: Host 1.1 broadcasts request on local network: Who is 1.2? Host 1.2 replies to 1.1; local address of source (b) is in the packet.

29 Technology Communication Links Switches

30 Communication Links Fibers Cat5 Unshielded Twisted Pairs Coaxial Cable Wireless

31 Communication Links Convert bits string into signals that propagate as electromagnetic waves Optical: Typically ON/OFF  pulses of light; encoding makes sure there are enough transitions for the receiver to remain in sync Fibers: up to 10Gbps over 100 km per wavelength; up to 128 wavelengths per fiber Wired and wireless: Typically pulses of sine waves at different frequencies or phases to encode groups of bits Wires: 100 Mbps over 100 m Wireless: 100 Mbps over 30 m with multiple antennas (802.11n) Error control codes: typically to detect errors

32 Telephone SwitchTelephone Switch RouterRouter

33 Switches Various links: optical, cable, wires Looks up destination address and sends packet to corresponding output port May perform some traffic policing (limit rate) and some differentiated service (e.g., priority to VoIP packets) Fast router: total throughput of 500 Gbps From a few to 128 ports


Download ppt "Communication Networks A Second Course Jean Walrand Department of EECS University of California at Berkeley."

Similar presentations


Ads by Google