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

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

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"

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

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

CS4700/CS5700 Fundaments of Computer Networks

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

EE 122: IP Forwarding and Transport Protocols

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

INTRODUCTORY COMPUTER

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

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

CE 443: Computer Networks

TCP Service Model. Announcements. TCP: Reliable, In-Order Delivery. Today s Lecture. TCP Support for Reliable Delivery. TCP Header

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

Network Performance: Queuing

CS 268: Graduate Computer Networks Spring Overview

Computer Networks

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

Quality of Service (QoS)

Announcements. Quality of Service (QoS) Goals of Today s Lecture. Scheduling. Link Scheduling: FIFO. Link Scheduling: Strict Priority

CS3600 SYSTEMS AND NETWORKS

Internet Design History and Goals

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

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

CS457 Transport Protocols. CS 457 Fall 2014

STEVEN R. BAGLEY PACKETS

Transport Protocols Reading: Sections 2.5, 5.1, and 5.2

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

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

EECS 228a Lecture 1 Overview: Networks. Jean Walrand

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 Fate sharing, e2e principle And start of RPC Jan 10, 2018

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

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

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

Goals of Today s Lecture. Adaptors Communicating

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

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

Lecture 2: Layering & End-to-End

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

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

CSCI Computer Networks

Networking Acronym Smorgasbord: , DVMRP, CBT, WFQ

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

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

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

Lecture 2: Links and Signaling

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

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

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

Introduction to TCP/IP networking

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

CS 457 Lecture 11 More IP Networking. Fall 2011

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

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

CS4700/CS5700 Fundamentals of Computer Networks

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

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

Introduction to Protocols

ECE 650 Systems Programming & Engineering. Spring 2018

Socket Programming. #In the name of Allah. Computer Engineering Department Sharif University of Technology CE443- Computer Networks

User Datagram Protocol

Transport Protocols Reading: Sections 2.5, 5.1, and 5.2

More Routing. EE122 Fall 2012 Scott Shenker

Introduction to Internetworking

CSCD 433/533 Advanced Networks

TCP Performance. EE 122: Intro to Communication Networks. Fall 2006 (MW 4-5:30 in Donner 155) Vern Paxson TAs: Dilip Antony Joseph and Sukun Kim

Network Performance: Queuing

EEC-484/584 Computer Networks

EE 122: Introduction to Computer Networks Fall 2002

Links. CS125 - mylinks 1 1/22/14

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

ECE 158A: Lecture 13. Fall 2015

Communication Fundamentals in Computer Networks

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

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

Ch. 4 - WAN, Wide Area Networks

Introduction to Networks and the Internet

Internetwork Protocols

Lecture (11) OSI layer 4 protocols TCP/UDP protocols

Lecture 3 Protocol Stacks and Layering

Outline: Connecting Many Computers

Peer entities. Protocol Layering. Protocols. Example

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

Internetworking Models The OSI Reference Model

Transport Layer Marcos Vieira

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

Interdomain Routing Reading: Sections K&R EE122: Intro to Communication Networks Fall 2007 (WF 4:00-5:30 in Cory 277)

ECE 650 Systems Programming & Engineering. Spring 2018

Introduction to Internetworking

Communications Software. CSE 123b. CSE 123b. Spring Lecture 1: Introduction & Review. Stefan Savage.

ET4254 Communications and Networking 1

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

User Datagram Protocol (UDP):

II. Principles of Computer Communications Network and Transport Layer

EEC-484/584 Computer Networks

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

cs144 Midterm Review Fall 2010

Transcription:

EE 122: Introduction To Communication Networks Fall 2007 (WF 4-5:30 in Cory 277) Vern Paxson TAs: Lisa Fowler, Daniel Killebrew & Jorge Ortiz http://inst.eecs.berkeley.edu/~ee122/ Materials with thanks to Jennifer Rexford, Ion Stoica, and colleagues at Princeton and UC Berkeley 1 Some Questions & Answers Q: Is the class full or can I enroll? A: Class size: increased! Welcome to Daniel Killebrew, our new TA: New section added: M 4-5PM, 299 Cory But not next week (holiday) Do attend one of the other sections next week (socket programming) Q: Will the class be webcast? A: No. 2 1

Goals for Today s Class Type of Networks And the key concept of multiplexing What s a Protocol? 3 What Global (non-digital) Communication Network Do You Use Every Day? Roughly speaking, how does it work? 4 2

What s Another Such Network That You Use Every Day? 5 Taxonomy of Communication Networks Communication networks can be classified based on the way in which the nodes exchange information: 6 3

Taxonomy of Communication Networks Communication networks can be classified based on the way in which the nodes exchange information: 7 Broadcast Communication Networks Information transmitted by any node is received by every other node in the network Examples? Usually in LANs (Local Area Networks) 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) 8 4

Taxonomy of Communication Networks Communication networks can be classified based on the way in which the nodes exchange information: 9 Switched Communication Networks Information transmitted along a path of intermediary nodes ( switches or routers ) Basic issue: how the switches figure out the next hop along the path 10 5

Taxonomy of Communication Networks Communication networks can be classified based on the way in which the nodes exchange information: 11 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 12 6

Circuit Switching Node (switch) in a circuit switching network incoming links Node outgoing links How does the node connect the incoming link to the outgoing? 13 Telephone Network Alexander Graham Bell 1876: Demonstrates the telephone at US Centenary Exhibition in Philadelphia 7

Circuit Switching With Human Operator 15 Telephone Network Almon Brown Strowger (1839-1902) 1889: Invents the girl-less, cuss-less telephone system -- the mechanical switching system 8

Timing in Circuit Switching Host 1 Host 2 Switch 1 Switch 2 time 17 Timing in Circuit Switching Host 1 Host 2 Switch 1 Switch 2 Circuit Establishment propagation delay between Host 1 and Switch1 time 18 9

Timing in Circuit Switching Host 1 Host 2 Switch 1 Switch 2 Circuit Establishment Transmission delay propagation delay between Host 1 and Switch1 time 19 Timing in Circuit Switching Host 1 Host 2 Switch 1 Switch 2 Circuit Establishment Transmission delay propagation delay between Host 1 and Switch1 time 20 10

Timing in Circuit Switching Host 1 Host 2 Switch 1 Switch 2 Circuit Establishment Transmission delay propagation delay between Host 1 and Switch1 propagation delay between Host 1 and Host 2 time 21 Timing in Circuit Switching Host 1 Host 2 Switch 1 Switch 2 Circuit Establishment Transfer Transmission delay Information propagation delay between Host 1 and Switch1 propagation delay between Host 1 and Host 2 time 22 11

Timing in Circuit Switching Host 1 Host 2 Switch 1 Switch 2 Circuit Establishment Transfer Circuit Teardown Transmission delay Information propagation delay between Host 1 and Switch1 propagation delay between Host 1 and Host 2 time 23 Circuit Switching Node (switch) in a circuit switching network incoming links Node outgoing links How do the black and orange circuits share the outgoing link? 24 12

Circuit Switching: Multiplexing a Link Time-division Each circuit allocated certain time slots Frequency-division Each circuit allocated certain frequencies time frequency time 25 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 conversation data belongs E.g., slot 0 belongs to orange conversation Requires synchronization between sender and receiver surprisingly non-trivial! In case of non-permanent conversations Need to dynamically bind a slot to a conversation How to do this? If a conversation does not use its circuit the capacity is lost! 26 13

5 Minute Break Questions Before We Proceed? 27 Taxonomy of Communication Networks Communication networks can be classified based on the way in which the nodes exchange information: 28 14

Packet Switching Data sent as chunks of formatted bit-sequences (Packets) Packets have following structure: Header Data Trailer (sometimes) 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 Networks) 29 Packet Switching Node in a packet switching network incoming links Node Memory outgoing links 30 15

Packet Switching: Multiplexing/Demultiplexing Data from any conversation can be transmitted at any given time Single conversation can use the entire link capacity if it is alone How to tell them apart? Use meta-data (header) to describe data 31 Taxonomy of Communication Networks Communication networks can be classified based on the way in which the nodes exchange information: 32 16

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 stat-muxing) Essentially: chances are good that packets from different conversations won t all arrive at the same time, 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 Example: IP networks; postal system 33 Timing of Datagram Packet Switching Host 1 Host 2 Node 1 Node 2 Packet 1 propagation delay between Host 1 and Node 1 34 17

Timing of Datagram Packet Switching Host 1 Host 2 Node 1 Node 2 transmission time of Packet 1 at Host 1 Packet 1 propagation delay between Host 1 and Node 1 35 Timing of Datagram Packet Switching Host 1 Host 2 Node 1 Node 2 transmission time of Packet 1 at Host 1 Packet 1 propagation delay between Host 1 and Node 1 Packet 1 processing delay of Packet 1 at Node 2 Packet 1 36 18

Timing of Datagram Packet Switching Host 1 Host 2 Node 1 Node 2 transmission time of Packet 1 at Host 1 Packet 1 Packet 2 Packet 3 propagation delay between Host 1 and Node 1 Packet 1 Packet 2 Packet 3 processing delay of Packet 1 at Node 2 Packet 1 Packet 2 Packet 3 37 Datagram Packet Switching Host C Host A Host D Node 1 Node 2 Node 3 Node 5 Host B Node 4 Node 6 Node 7 Host E 38 19

Datagram Packet Switching Host C Host A Host D Node 1 Node 2 Node 3 Node 5 Host B Node 4 Node 6 Node 7 Host E 39 Datagram Packet Switching Host C Host A Host D Node 1 Node 2 Node 3 Node 5 Host B Node 4 Node 6 Node 7 Host E 40 20

Taxonomy of Communication Networks Communication networks can be classified based on the way in which the nodes exchange information: A hybrid of circuits and packets; headers include a circuit identifier established during a setup phase 41 Advantages of Circuit Switching Guaranteed bandwidth Predictable communication performance Not best-effort delivery with no real guarantees Simple abstraction Reliable communication channel between hosts No worries about lost or out-of-order packets Simple forwarding Forwarding based on time slot or frequency No need to inspect a packet header Low per-packet overhead Forwarding based on time slot or frequency No IP (and TCP/UDP) header on each packet 42 21

Disadvantages of Circuit Switching 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! 43 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 conversations, 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, sometimes combined, e.g., IP over SONET 44 22

Questions? 45 What Is A Protocol? A protocol is an agreement on how to communicate Includes syntax and semantics How a communication is specified & structured Format, order messages are sent and received What a communication means Actions taken when transmitting, receiving, or when a timer expires 46 23

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 47 Examples of Protocols in Human Interactions Asking a question 1. Raise your hand. 2. Wait to be called on. 3. Or: wait for speaker to pause and vocalize 48 24

Examples of Protocols in Human Interactions Expressing approval for a performance. 1. Applause. Who is this woman? Why don t her fans applaud her performances? 2. Foot-stomping 3. The key: a protocol should effectively enable communication. 49 Example: HyperText Transfer Protocol GET /courses/archive/spring06/cos461/ HTTP/1.1 Host: www.cs.princeton.edu User-Agent: Mozilla/4.03 CRLF Request Response HTTP/1.1 200 OK Date: Mon, 6 Feb 2006 13:09:03 GMT Server: Netscape-Enterprise/3.5.1 Last-Modified: Mon, 6 Feb 2006 11:12:23 GMT Content-Length: 21 CRLF Site under construction 50 25

Example: IP Packet 4-bit Version 4-bit Header Length 8-bit Type of Service (TOS) 16-bit Total Length (Bytes) 16-bit Identification 8-bit Time to Live (TTL) 8-bit Protocol 3-bit Flags 13-bit Fragment Offset 16-bit Header Checksum 20-byte header 32-bit Source IP Address 32-bit Destination IP Address Options (if any) Payload 51 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 source destination IP network 52 26

Example: Transmission Control Protocol 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 source network destination 53 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> 54 27

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 55 Next Lecture Architecture, Layering, and the End-to-End Principle Read 1.4 & 1.5 of Kurose/Ross Reminder: new section M 4-5, but doesn t meet next week Pick up class computer account forms Take the survey (http://tinyurl.com/2wynmu) ASAP and join the mailing list if you haven t already 56 28