Goals for Today s Class. EE 122: Networks & Protocols. What Global (non-digital) Communication Network Do You Use Every Day?

Similar documents
EE 122: Introduction To Communication Networks. Some Questions & Answers

What Global (non-digital) Communication Network Do You Use Every Day?"

What Global (non-digital) Communication Network Do You Use Every Day?"

Page 1. Goals for Today" What Is A Protocol?" CS162 Operating Systems and Systems Programming Lecture 10. Protocols, Layering and e2e Argument"

Goal of Today s Lecture. EE 122: Designing IP. The Internet Hourglass. Our Story So Far (Context) Our Story So Far (Context), Con t

IP Packet Switching. Goals of Todayʼs Lecture. Simple Network: Nodes and a Link. Connectivity Links and nodes Circuit switching Packet switching

CS4700/CS5700 Fundaments of Computer Networks

EE 122: IP Forwarding and Transport Protocols

CS 457 Networking and the Internet. Network Overview (cont d) 8/29/16. Circuit Switching (e.g., Phone Network) Fall 2016 Indrajit Ray

Page 1. Key Value Storage" System Examples" Key Values: Examples "

INTRODUCTORY COMPUTER

Page 1. Key Value Storage" System Examples" Key Values: Examples "

Computer Networks

Goals of Today s Lecture. Adaptors Communicating

CS3600 SYSTEMS AND NETWORKS

Announcements. IP Forwarding & Transport Protocols. Goals of Today s Lecture. Are 32-bit Addresses Enough? Summary of IP Addressing.

TCP Service Model. Today s Lecture. TCP Support for Reliable Delivery. EE 122:TCP, Connection Setup, Reliability

CS 268: Graduate Computer Networks Spring Overview

Announcements. Designing IP. Our Story So Far (Context) Goals of Today s Lecture. Our Story So Far (Context), Con t. The Internet Hourglass

CE 443: Computer Networks

Network Layer. IP Protocol Stack: Key AbstracHons. Best- Effort Global Packet Delivery. Circuit Switching (e.g., Phone Network)

Lecture 2 Communication services The Trasport Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Message, Segment, Packet, and Frame Link-layer services Encoding, framing, error detection, transmission control Error correction and flow control

416 Distributed Systems. Networks review; Day 2 of 2 Fate sharing, e2e principle And start of RPC Jan 10, 2018

416 Distributed Systems. Networks review; Day 1 of 2 Jan 5 + 8, 2018

STEVEN R. BAGLEY PACKETS

Internetworking Terms. Internet Structure. Internet Structure. Chapter 15&16 Internetworking. Internetwork Structure & Terms

Lecture 2: Layering & End-to-End

Part 5: Link Layer Technologies. CSE 3461: Introduction to Computer Networking Reading: Chapter 5, Kurose and Ross

Next Steps Spring 2011 Lecture #18. Multi-hop Networks. Network Reliability. Have: digital point-to-point. Want: many interconnected points

Ch. 4 - WAN, Wide Area Networks

CS457 Transport Protocols. CS 457 Fall 2014

Review of Topology and Access Techniques / Switching Concepts

Networking Overview. CS Computer Security Profs. Vern Paxson & David Wagner

Outline. EE 122: Networks Performance & Modeling. Outline. Motivations. Definitions. Timing Diagrams. Ion Stoica TAs: Junda Liu, DK Moon, David Zats

Outline: Connecting Many Computers

CSCI Computer Networks

Applications/Design. Example. Locating Resource. End-to-end. Connection UCB. Applications EECS 122

ECE 650 Systems Programming & Engineering. Spring 2018

Last time. Wireless link-layer. Introduction. Characteristics of wireless links wireless LANs networking. Cellular Internet access

CS 455: INTRODUCTION TO DISTRIBUTED SYSTEMS [NETWORKING] Frequently asked questions from the previous class surveys

EEC-484/584 Computer Networks

Introduction to TCP/IP networking

CS4700/CS5700 Fundamentals of Computer Networks

Internetwork Protocols

Lecture 2: Links and Signaling

CS519: Computer Networks. Lecture 2: Feb 2, 2004 IP (Internet Protocol)

CompSci 356: Computer Network Architectures. Lecture 8: Spanning Tree Algorithm and Basic Internetworking Ch & 3.2. Xiaowei Yang

Introduction to Internetworking

Transport Layer Marcos Vieira

Transport Protocols Reading: Sections 2.5, 5.1, and 5.2

Reminder: Datalink Functions Computer Networking. Datalink Architectures

Page 1. Goals for Today" Discussion" Example: Reliable File Transfer" CS162 Operating Systems and Systems Programming Lecture 11

Links Reading: Chapter 2. Goals of Todayʼs Lecture. Message, Segment, Packet, and Frame

ET4254 Communications and Networking 1

1/29/2008. From Signals to Packets. Lecture 6 Datalink Framing, Switching. Datalink Functions. Datalink Lectures. Character and Bit Stuffing.

Introduction to Networks and the Internet

Introduction to Networks and the Internet

EECS 228a Lecture 1 Overview: Networks. Jean Walrand

Communication Fundamentals in Computer Networks

Ethernet. EE 122: Intro to Communication Networks. Fall 2007 (WF 4-5:30 in Cory 277) Vern Paxson TAs: Lisa Fowler, Daniel Killebrew & Jorge Ortiz

Lecture 3 Protocol Stacks and Layering

ECE4110 Internetwork Programming. Introduction and Overview

Transport Protocols Reading: Sections 2.5, 5.1, and 5.2. Goals for Todayʼs Lecture. Role of Transport Layer

CS 457 Lecture 11 More IP Networking. Fall 2011

CS519: Computer Networks

Links. CS125 - mylinks 1 1/22/14

Question. Reliable Transport: The Prequel. Don t parse my words too carefully. Don t be intimidated. Decisions and Their Principles.

Data & Computer Communication

User Datagram Protocol

Networking Acronym Smorgasbord: , DVMRP, CBT, WFQ

Introduction to Protocols

No book chapter for this topic! Slides are posted online as usual Homework: Will be posted online Due 12/6

Announcements Computer Networking. What is the Objective of the Internet? Today s Lecture

ECE 158A: Lecture 13. Fall 2015

Announcements. No book chapter for this topic! Slides are posted online as usual Homework: Will be posted online Due 12/6

416 Distributed Systems. Networks review; Day 2 of 2 And start of RPC Jan 13, 2016

Introduction to Information Science and Technology 2017 Networking II. Sören Schwertfeger 师泽仁

CS 4390 Computer Networks. Transport Services and Protocols

William Stallings Data and Computer Communications 7 th Edition. Chapter 10 Circuit Switching and Packet Switching

Outline. Inter-Process Communication. IPC across machines: Problems. CSCI 4061 Introduction to Operating Systems

ECE 650 Systems Programming & Engineering. Spring 2018

CPSC156a: The Internet Co-Evolution of Technology and Society. Lecture 4: September 16, 2003 Internet Layers and the Web

Class Overview. CSE 123b Communications Software. Some hints. Some hints (2) Administrativa. Course material. Winter 2002

CSE/EE 461 The Network Layer. Application Presentation Session Transport Network Data Link Physical

CSCD 433/533 Advanced Networks

Chapter 2 - Part 1. The TCP/IP Protocol: The Language of the Internet

Homework 1. Question 1 - Layering. CSCI 1680 Computer Networks Fonseca

Network Performance: Queuing

Networking Overview. CS 161: Computer Security Prof. Vern Paxson. TAs: Jethro Beekman, Mobin Javed, Antonio Lupher, Paul Pearce & Matthias Vallentin

Concept Questions Demonstrate your knowledge of these concepts by answering the following questions in the space that is provided.

UDP and TCP. Introduction. So far we have studied some data link layer protocols such as PPP which are responsible for getting data

OSI Network Layer. Network Fundamentals Chapter 5. Version Cisco Systems, Inc. All rights reserved. Cisco Public 1

User Datagram Protocol (UDP):

Lecture 11: Fragmentation & Addressing. CSE 123: Computer Networks Stefan Savage

CSCI-1680 Link Layer Wrap-Up Rodrigo Fonseca

Connectionless and Connection-Oriented Protocols OSI Layer 4 Common feature: Multiplexing Using. The Transmission Control Protocol (TCP)

Operating Systems. 16. Networking. Paul Krzyzanowski. Rutgers University. Spring /6/ Paul Krzyzanowski

CSE 461: Computer Networks John Zahorjan Justin Chan Rajalakshmi Nandkumar CJ Park

CSCI-1680 Link Layer Wrap-Up Rodrigo Fonseca

Transcription:

Goals for Today s Class EE 122: & Protocols Ion Stoica TAs: Junda Liu, DK Moon, David Zats http://inst.eecs.berkeley.edu/~ee122/fa09 (Materials with thanks to Vern Paxson, Jennifer Rexford, and colleagues at UC Berkeley) Type of And the key concept of multiplexing What is a Protocol? 1 2 What Global (non-digital) Communication Network Do You Use Every Day? What s Another Such Network That You Use Every Day? Roughly speaking, how does it work? 3 4 5 6 1

Broadcast Communication Information transmitted by any node is received by every other node in the network Examples? Usually in LANs (Local Area ) E.g., Ethernet (classical), WiFi E.g., lecture! What problems does this raise? Problem #1: limited range Problem #2: privacy of communication Problem #3: coordinating access to the shared communication medium (Multiple Access Problem) 7 8 Switched Communication Information transmitted along a path of intermediary nodes ( switches or routers ) Basic issue: how the switches figure out the next hop along the path 9 10 Circuit Switching (e.g., Phone Network) Establish: source creates circuit to destination Nodes along the path store connection info Nodes generally reserve resources for the connection If circuit not available: Busy signal Transfer: source sends data over the circuit No destination address, since nodes know path Teardown: source tears down circuit when done Circuit Switching Node (switch) in a circuit switching network incoming links Node outgoing links 11 How does the node connect the incoming link to the outgoing? 12 2

Telephone Network Alexander Graham Bell 1876: Demonstrates the telephone at US Centenary Exhibition in Philadelphia Circuit Switching With Human Operator 14 Telephone Network Almon Brown Strowger (1839-1902) 1889: Invents the girl-less, cuss-less telephone system -- the mechanical switching system 16 Circuit Circuit 17 18 3

Circuit Circuit and Host 2 19 20 Circuit and Host 2 Circuit and Host 2 Transfer Information Transfer Information Circuit Teardown 21 22 Circuit Switching Circuit Switching: Multiplexing a Link Node (switch) in a circuit switching network incoming links Node outgoing links Time-division Each circuit allocated certain slots Frequency-division Each circuit allocated certain frequencies How do the black and red circuits share the 23 24 outgoing link? frequency 4

Time-Division Multiplexing/Demultiplexing Frames Slots = 0 1 2 3 4 5 0 1 2 3 4 5 Time divided into frames; frames into slots Relative slot position inside a frame determines to which circuit data belongs E.g., slot 0 belongs to red circuit Requires synchronization between sender and receiver surprisingly non-trivial! In case of non-permanent circuits Need to dynamically bind a slot to a circuit How to do this? If sender does not send data the circuit s capacity is lost! 25 5 Minute Break Questions Before We Proceed? 26 Packet Switching Data sent as chunks of formatted bit-sequences (Packets) Packets have following structure: Header Data Trailer (somes) Header and Trailer carry control information (e.g., destination address, checksum) Each packet traverses the network from node to node along some path (Routing) based on header info Usually, once a node receives the entire packet, it stores it (hopefully briefly) and then forwards it to the next node (Store-and-Forward ) 27 28 Packet Switching Packet Switching: Multiplexing/ Demultiplexing Node in a packet switching network incoming links Node Memory outgoing links Data from any flow can be transmitted at any given Single flow can use the entire link capacity if it is alone How to tell them apart? Use meta-data (header) to describe data Note: for packet switching we use flow (instead of circuit) to denote packets sent by a sender to a receiver 29 30 5

31 Datagram Packet Switching Each packet is independently switched Each packet header contains full destination address No resources are pre-allocated (reserved) in advance Leverages statistical multiplexing (or statmuxing) Essentially: chances are good that packets from different flows won t all arrive at the same, so we can get by without enough capacity for all of them at their peak transmission rate Assuming independence of traffic sources, can compute probability that there is enough capacity 32 Example: IP networks; postal system propagation delay between Host 1 and transmission of at Host 1 propagation delay between Host 1 and 33 34 transmission of at Host 1 propagation delay between Host 1 and processing delay of at transmission of at Host 1 Packet 2 Packet 3 propagation delay between Host 1 and Packet 2 Packet 3 processing delay of at Packet 2 Packet 3 35 36 6

Datagram Packet Switching Datagram Packet Switching Host C Host C Host A Host D Host A Host D Node 3 Node 3 Node 5 Node 5 Host B Node 4 Node 6 Node 7 Host E Host B Node 4 Node 6 Node 7 Host E 37 38 Datagram Packet Switching Host C Host A Host D Node 5 Node 3 Host B Node 4 Node 6 Node 7 Host E A hybrid of circuits and packets; headers include a circuit identifier established during a setup phase 39 40 Advantages of Circuit Switching Disadvantages of Circuit Switching Guaranteed bandwidth Predictable communication performance Simple abstraction Reliable communication channel between hosts No worries about lost or out-of-order packets Simple forwarding Forwarding based on slot or frequency No need to inspect a packet header Low per-packet overhead Forwarding based on slot or frequency No IP (and TCP/UDP) header on each packet 41 Wasted bandwidth Bursty traffic leads to idle connection during silent period Unable to achieve gains from statistical multiplexing Blocked connections Connection refused when resources are not sufficient Unable to offer okay service to everybody Connection set-up delay No communication until the connection is set up Unable to avoid extra latency for small data transfers Network state Network nodes must store per-connection information Unable to avoid per-connection storage and state This makes failures more disruptive! 42 7

Packet-Switching vs. Circuit- Switching Critical advantage of packet-switching over circuit switching: Exploitation of statistical multiplexing Another: since routers don t know about individual flows, when a router or link fails, it s: Easy to fail over to a different path A third: easier for different parties to link their networks together because they re not promising to reserve resources for one another However, packet-switching must handle congestion: More complex routers Harder to provide good network services (e.g., delay and bandwidth guarantees) In practice, somes combined, e.g., IP over SONET 43 Questions? 44 What Is A Protocol? A protocol is an agreement on how to communicate Includes Syntax: how a communication is specified & structured Format, order messages are sent and received Semantics: what a communication means Actions taken when transmitting, receiving, or when a r expires Examples of Protocols in Human Interactions Telephone 1. (Pick up / open up the phone.) 2. Listen for a dial tone / see that you have service. 3. Dial. 4. Should hear ringing 5. Callee: Hello? 6. Caller: Hi, it s Alice. Or: Hi, it s me ( what s that about?) 7. Caller: Hey, do you think blah blah blah pause 8. Callee: Yeah, blah blah blah pause 9. Caller: Bye 10. Callee: Bye 11. Hang up 45 46 Examples of Protocols in Human Interactions Example: The Internet Protocol (IP) Asking a question 1. Raise your hand. 2. Wait to be called on. 3. Or: wait for speaker to pause and vocalize Problem: Many different network technologies e.g., Ethernet, Token Ring, ATM, Frame Relay, etc. How can you hook them together? n x n translations? IP was invented to glue them together n translations Minimal requirements (datagram) 47 The Internet is founded on IP IP over everything 48 8

Example: IP Packet 4-bit 4-bit Header 8-bit Type of Version Length Service (TOS) 16-bit Identification 8-bit Time to Live (TTL) 8-bit Protocol 16-bit Total Length (Bytes) 3-bit 13-bit Fragment Offset Flags 32-bit Source IP Address 32-bit Destination IP Address Options (if any) 16-bit Header Checksum source IP: Best-Effort Packet Delivery Datagram packet switching Send data in packets Header with source & destination address Service it provides: Packets may be lost Packets may be corrupted Packets may be delivered out of order IP network destination Payload 49 50 Example: Transmission Control Protocol (TCP) Communication service Ordered, reliable byte stream Simultaneous transmission in both directions Key mechanisms at end hosts Retransmit lost and corrupted packets Discard duplicate packets and put packets in order Flow control to avoid overloading the receiver buffer Congestion control to adapt sending rate to network load TCP connection Protocol Standardization Ensure communicating hosts speak the same protocol Standardization to enable multiple implementations Or, the same folks have to write all the software Standardization: Internet Engineering Task Force Based on working groups that focus on specific issues Produces Request For Comments (RFCs) Promoted to standards via rough consensus and running code IETF Web site is http://www.ietf.org RFCs archived at http://www.rfc-editor.org De facto standards: same folks writing the code P2P file sharing, Skype, <your protocol here> source network destination 51 52 Summary Types of communication networks Broadcast, circuit-switched, packet-switched Advantages & disadvantages of each Protocols: agreement on how to communicate For networks, often requires formal standardization Next Lecture Socket Programming, DK Moon Pick up class computer account forms Take the survey (http://tinyurl.com/n44c7y ) ASAP and join the mailing list if you haven t already 53 54 9