CS244A Midterm Review Ben Nham Some slides derived from: David Erickson (2007) Paul Tarjan (2007)

Slides:



Advertisements
Similar presentations
CS144 Review Session 4 April 25, 2008 Ben Nham
Advertisements

24-1 Chapter 24. Congestion Control and Quality of Service (part 1) 23.1 Data Traffic 23.2 Congestion 23.3 Congestion Control 23.4 Two Examples.
1 Transport Protocols & TCP CSE 3213 Fall April 2015.
Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain Chapter 2 TCP/IP Fundamentals.
Transmission Control Protocol (TCP)
Winter 2008CS244a Handout #61 CS244a: An Introduction to Computer Networks Handout 6: The Transport Layer, Transmission Control Protocol (TCP), and User.
1 TCP Congestion Control. 2 TCP Segment Structure source port # dest port # 32 bits application data (variable length) sequence number acknowledgement.
Transport Layer 3-1 outline r TCP m segment structure m reliable data transfer m flow control m congestion control.
Transport Layer 3-1 Fast Retransmit r time-out period often relatively long: m long delay before resending lost packet r detect lost segments via duplicate.
TDC365 Spring 2001John Kristoff - DePaul University1 Internetworking Technologies Transmission Control Protocol (TCP)
Lect-2: BasicsComputer Networks : An Introduction to Computer Networks Handout #2: Foundations and Basic Concepts Additional Reading Text book:
Transport Layer 3-1 Outline r TCP m Congestion control m Flow control.
Transport Layer 3-1 Transport Layer r To learn about transport layer protocols in the Internet: m TCP: connection-oriented protocol m Reliability protocol.
Transport Layer 3-1 Transport Layer r To learn about transport layer protocols in the Internet: m TCP: connection-oriented protocol m Reliability protocol.
1 Chapter 3 Transport Layer. 2 Chapter 3 outline 3.1 Transport-layer services 3.2 Multiplexing and demultiplexing 3.3 Connectionless transport: UDP 3.4.
TDC375 Winter 03/04 John Kristoff - DePaul University 1 Network Protocols Transmission Control Protocol (TCP)
Computer Networks Transport Layer. Topics F Introduction  F Connection Issues F TCP.
Lecture 1, 1Spring 2003, COM1337/3501Computer Communication Networks Rajmohan Rajaraman COM1337/3501 Textbook: Computer Networks: A Systems Approach, L.
TCP: flow and congestion control. Flow Control Flow Control is a technique for speed-matching of transmitter and receiver. Flow control ensures that a.
Lect3..ppt - 09/12/04 CIS 4100 Systems Performance and Evaluation Lecture 3 by Zornitza Genova Prodanoff.
1 #6 in Mid-Term  Most answered:  many users thru the same bottleneck -> increased queueing delay -> increased e2e latency  Possible reasons behind.
3: Transport Layer3b-1 Principles of Congestion Control Congestion: r informally: “too many sources sending too much data too fast for network to handle”
Transport Layer 4 2: Transport Layer 4.
Transport Layer3-1 Chapter 3 outline r 3.1 Transport-layer services r 3.2 Multiplexing and demultiplexing r 3.3 Connectionless transport: UDP r 3.4 Principles.
Copyright © Lopamudra Roychoudhuri
Network Layer4-1 Summary: TCP Congestion Control When CongWin is below Threshold, sender in slow-start phase, window grows exponentially. When CongWin.
Principles of Congestion Control Congestion: informally: “too many sources sending too much data too fast for network to handle” different from flow control!
1 Transport Protocols (continued) Relates to Lab 5. UDP and TCP.
TCP CS 168 Discussion Week 6 Many thanks to past EE 122 GSIs.
ICS156 final review Xiaowei Yang. What this course is about  Reinforcing basic networking concepts  Practical networking knowledge  Today Review concepts.
Review the key networking concepts –TCP/IP reference model –Ethernet –Switched Ethernet –IP, ARP –TCP –DNS.
EE 122: Congestion Control and Avoidance Kevin Lai October 23, 2002.
1 Mao W07 Midterm Review EECS 489 Computer Networks Z. Morley Mao Monday Feb 19, 2007 Acknowledgement: Some.
Network Layer4-1 Datagram networks r no call setup at network layer r routers: no state about end-to-end connections m no network-level concept of “connection”
What is TCP? Connection-oriented reliable transfer Stream paradigm
Transport Layer 3-1 Chapter 3 Transport Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March
1 Transport Layer Lecture 10 Imran Ahmed University of Management & Technology.
CS640: Introduction to Computer Networks Aditya Akella Lecture 15 TCP – III Reliability and Implementation Issues.
TCP: Transmission Control Protocol Part II : Protocol Mechanisms Computer Network System Sirak Kaewjamnong Semester 1st, 2004.
1 CS 4396 Computer Networks Lab TCP – Part II. 2 Flow Control Congestion Control Retransmission Timeout TCP:
Transport Layer3-1 Chapter 3 outline r 3.1 Transport-layer services r 3.2 Multiplexing and demultiplexing r 3.3 Connectionless transport: UDP r 3.4 Principles.
ECE 4110 – Internetwork Programming
TCP continued. Discussion – TCP Throughput TCP will most likely generate the saw tooth type of traffic. – A rough estimate is that the congestion window.
Midterm Review Chapter 1: Introduction Chapter 2: Application Layer
Quiz and Snack ECS 152B Winter 2006.
Transport Layer3-1 Chapter 3 outline r 3.1 Transport-layer services r 3.2 Multiplexing and demultiplexing r 3.3 Connectionless transport: UDP r 3.4 Principles.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Congestion Control 0.
Peer-to-Peer Networks 13 Internet – The Underlay Network
@Yuan Xue A special acknowledge goes to J.F Kurose and K.W. Ross Some of the slides used in this lecture are adapted from their.
Transport Layer session 1 TELE3118: Network Technologies Week 11: Transport Layer TCP Some slides have been taken from: r Computer Networking:
CSEN 404 Transport Layer II Amr El Mougy Lamia AlBadrawy.
11 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
1 Network Transport Layer: TCP Analysis and BW Allocation Framework Y. Richard Yang 3/30/2016.
2003 컴퓨터 통신 1 Foundation # 컴퓨터 통신 2 Outline A Detailed FTP Example Layering Packet Switching and Circuit Switching Some terms –Data rate, “Bandwidth”
CSEN 404 Introduction to Networks Amr El Mougy Lamia AlBadrawy.
DMET 602: Networks and Media Lab Amr El Mougy Yasmeen EssamAlaa Tarek.
@Yuan Xue A special acknowledge goes to J.F Kurose and K.W. Ross Some of the slides used in this lecture are adapted from their.
Karn’s Algorithm Do not use measured RTT to update SRTT and SDEV Calculate backoff RTO when a retransmission occurs Use backoff RTO for segments until.
DMET 602: Networks and Media Lab
Topics discussed in this section:
Approaches towards congestion control
Chapter 3 outline 3.1 transport-layer services
Introduction to Networks
Computer Networks Bhushan Trivedi, Director, MCA Programme, at the GLS Institute of Computer Technology, Ahmadabad.
Lecture 19 – TCP Performance
CS4470 Computer Networking Protocols
TCP Overview.
Transport Layer: Congestion Control
TCP flow and congestion control
TCP: Transmission Control Protocol Part II : Protocol Mechanisms
Presentation transcript:

CS244A Midterm Review Ben Nham Some slides derived from: David Erickson (2007) Paul Tarjan (2007)

Midterm Information In class on Tuesday – staff if you need information on taking it offsite (SCPD) One side of notes on letter-sized paper Calculator Material: Lectures and reading up to Tuesday’s class on congestion avoidance Sample midterm on eeclass

Foundations and Basic Concepts Layers: Application, transport, network, link Circuit switching vs. packet switching – Circuit switching: plain old telephone service – Two forms of packet switched networks: virtual circuits and datagram networks Delays: Propagation, transmission, queuing, processing Basic queuing theory – Little’s Result: L = λd

Sample Problem: Latency Suppose A is directly connected to B and sends a 10 MB file to B over a 10 km, 100 Mbps fiber link. What is the latency of the transmission? Latency = Time from when first bit is transmitted until last bit is received = PROP + TRANSP PROP = (10000 m) / (2 * 10^8 m/s) = 0.05 ms TRANSP = (10* 2^20 * 8 bits) / (100 * 10^6 bits/s) = ms Latency = PROP + TRANSP = ms

Sample Problem: Little’s Result You are hungry and get in your car and head to Burger Land. They are a high tech company and have an sign board showing the average arrival rate of cars to their drive through line, and the average number of cars in line. The arrival rate is 2 cars per minute, and there are on average 8 cars in line, and no one leaves the line before they are finished being serviced. How long can you expect to wait in line? Little’s Result: L = λd → Average queue length = Arrival rate * average wait time We will wait for 8 cars / (2 cars/min) = 4 min

Network Layer Virtual circuit networks – Connection-oriented service – Per-flow startup and teardown IP – Unreliable, connectionless service – Address allocation Classful vs. classless (CIDR) Subnetting for internal networks – Forwarding Longest prefix match for classless addressing

Routing Algorithms Unicast – Distance vector (Bellman-Ford): RIP (intra-AS) – Link state (Djikstra’s): OSPF (intra-AS) – Path vector: BGP (for inter-AS) – Compare: communication that is needed, convergence issues, centralized vs. distributed – Be sure you know how to use the algorithms on paper (examples in routing review session, PS2) Broadcast and multicast – Sequence number based (e.g., link state advertisements) – Reverse path broadcast/multicast – Spanning tree-based

Transport Layer TCP – Connection-oriented: 3 way handshake for setup, 2x2 way handshake at teardown – Sequence number: acknowledge up to one past last contiguous byte received TCP is Go-Back-N, not selective repeat – Window = min(cwnd, rwnd) Keep sending unacked data up to the window size – Transmission rate (ideal): W/RTT

Congestion Control Detect drop as not getting ACK before RTO – RTO = RTT + guardband (usually some exponentially decaying moving average, perhaps with variance estimate) TCP uses Additive Increase, Multiplicative Decrease – Increase window size by one maximum segment size for every RTT – If we detect a drop, cut window size in half “Slow start” optimization – Start cwnd at 1 MSS – Increase exponentially until a drop, record this window size as threshold – Drop cwnd to 1 MSS again – Increase window exponentially to threshold/2, then start AIMD

Sample Problem: TCP Congestion Control Assume this TCP implementation: – MSS = 125 bytes – RTT is fixed at 100 ms (even when buffers start filling) – Uses slow start with AIMD – Analyze one flow between A and B, where bottleneck link is 10 Mbps – Ignore receiver window What is the maximum congestion window size? – For one flow (ideally), W/RTT = rate – W = (100 ms * 10 Mbps) / (8 bits/byte) = bytes How long does it take to reach this size? – Slow start grows cwnd exponentially, starting from one MSS – Find n s.t. 125 * 2^n = => n = 10 – Then it takes n * RTT = 1s to reach the max cwnd size

Congestion Avoidance DECbit – If average queue length over last busy + idle + current period is > 1, set a bit in reply – If congestion bit is on >50% time: multiplicative decrease – Else: Additive increase Random Early Detection (RED) – Set min and max thresholds – If average queue size > max, drop – Else if average queue size < min, service – Else if average queue size between min and max: Randomly drop packet with increasing probability as queue size grows to max