Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-4963: Experimental Networking Informal Quiz Shivkumar Kalyanaraman:

Slides:



Advertisements
Similar presentations
Internet Measurement Conference 2003 Source-Level IP Packet Bursts: Causes and Effects Hao Jiang Constantinos Dovrolis (hjiang,
Advertisements

Michele Pagano – A Survey on TCP Performance Evaluation and Modeling 1 Department of Information Engineering University of Pisa Network Telecomunication.
Computer Networks: TCP Congestion Control 1 TCP Congestion Control Lecture material taken from “Computer Networks A Systems Approach”, Fourth Edition,Peterson.
Congestion Control An Overview -Jyothi Guntaka. Congestion  What is congestion ?  The aggregate demand for network resources exceeds the available capacity.
School of Information Technologies TCP Congestion Control NETS3303/3603 Week 9.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-4690: Experimental Networking Informal Quiz: Prob/Stat Shiv Kalyanaraman:
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-6600: Internet Protocols Informal Quiz #05: SOLUTIONS Shivkumar Kalyanaraman: GOOGLE: “Shiv.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-4690: Experimental Networking Informal Quiz: TCP Shiv Kalyanaraman:
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-6600: Internet Protocols Informal Quiz #07 Shivkumar Kalyanaraman: GOOGLE: “Shiv RPI”
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Basic Ideas in Probability and Statistics for Experimenters: Part I: Qualitative Discussion Shivkumar.
TDC365 Spring 2001John Kristoff - DePaul University1 Internetworking Technologies Transmission Control Protocol (TCP)
Explicit Congestion Notification ECN Tilo Hamann Technical University Hamburg-Harburg, Germany.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Basic Ideas in Probability and Statistics for Experimenters: Part II: Quantitative Work, Regression.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-6600: Internet Protocols Exam 2 Time: 75 min (strictly enforced) Points: 50 YOUR NAME: Be.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 TCP Congestion Control: AIMD and Binomial Shivkumar Kalyanaraman Rensselaer Polytechnic Institute.
Computer Networks: TCP Congestion Control 1 TCP Congestion Control Lecture material taken from “Computer Networks A Systems Approach”, Third Ed.,Peterson.
Shivkumar KalyanaramanRensselaer Q1-1 ECSE-6600: Internet Protocols Quiz 1 Time: 60 min (strictly enforced) Points: 50 YOUR NAME: Be brief, but DO NOT.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-4963: Experimental Networking Exam 1: SOLUTIONS Time: 60 min (strictly enforced) Points:
Congestion Avoidance and Control Van Jacobson Jonghyun Kim April 1, 2004.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-4963: Experimental Networking Exam 1 Time: 60 min (strictly enforced) Points: 50 YOUR NAME:
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Informal Quiz 3 True or False? T F  The Nagle algorithm in TCP is intended to allow the ack.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-6600: Internet Protocols Informal Quiz Shivkumar Kalyanaraman: Informal.
Networks : TCP Congestion Control1 TCP Congestion Control.
1 Spring Semester 2007, Dept. of Computer Science, Technion Internet Networking recitation #8 Explicit Congestion Notification (RFC 3168) Limited Transmit.
Networks : TCP Congestion Control1 TCP Congestion Control Presented by Bob Kinicki.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1-1 TCP Shivkumar Kalyanaraman Rensselaer Polytechnic Institute
Advanced Computer Networks: TCP Congestion Control 1 TCP Congestion Control Lecture material taken from “Computer Networks A Systems Approach”, Fourth.
Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar1 ECSE-4670: Computer Communication Networks (CCN) Informal Quiz 1 Shivkumar.
CMPE 257 Spring CMPE 257: Wireless and Mobile Networking Spring 2005 E2E Protocols (point-to-point)
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1-1 Informal Quiz 3 True or False? T F  Forwarding works in the control plane whereas routing.
TCP Congestion Control
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-4670: Computer Communication Networks (CCN) Informal Quiz 1 (Solutions) Shivkumar Kalyanaraman:
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 TCP (Part II) Shivkumar Kalyanaraman Rensselaer Polytechnic Institute
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-4670: Computer Communication Networks (CCN) Informal Quiz 2 Shivkumar Kalyanaraman:
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Informal Quiz 2 True or False? T F  The IP checksum protects the entire IP datagram 
Lect3..ppt - 09/12/04 CIS 4100 Systems Performance and Evaluation Lecture 3 by Zornitza Genova Prodanoff.
ACN: RED paper1 Random Early Detection Gateways for Congestion Avoidance Sally Floyd and Van Jacobson, IEEE Transactions on Networking, Vol.1, No. 4, (Aug.
Transport over Wireless Networks Myungchul Kim
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 A TCP Friendly Traffic Marker for IP Differentiated Services Feroz Azeem, Shiv Kalyanaraman,
1 TCP: Reliable Transport Service. 2 Transmission Control Protocol (TCP) Major transport protocol used in Internet Heavily used Completely reliable transfer.
TCP Trunking: Design, Implementation and Performance H.T. Kung and S. Y. Wang.
Assignment #3A Probability Ideas, Confidence Intevals, Regression, Graphing (Continued) Sunday Sept 24, 11:55pm.
9.7 Other Congestion Related Issues Outline Queuing Discipline Avoiding Congestion.
Lecture 9 – More TCP & Congestion Control
CS640: Introduction to Computer Networks Aditya Akella Lecture 15 TCP – III Reliability and Implementation Issues.
Computer Networking Lecture 18 – More TCP & Congestion Control.
WB-RTO: A Window-Based Retransmission Timeout Ioannis Psaras Demokritos University of Thrace, Xanthi, Greece.
1 CS 4396 Computer Networks Lab TCP – Part II. 2 Flow Control Congestion Control Retransmission Timeout TCP:
CS640: Introduction to Computer Networks Aditya Akella Lecture 15 TCP – III Reliability and Implementation Issues.
Jennifer Rexford Fall 2014 (TTh 3:00-4:20 in CS 105) COS 561: Advanced Computer Networks TCP.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-6600: Internet Protocols Spring 2007, Exam 1 Time: 75 min (strictly enforced) Points: 50.
Random Early Detection (RED) Router notifies source before congestion happens - just drop the packet (TCP will timeout and adjust its window) - could make.
TCP continued. Discussion – TCP Throughput TCP will most likely generate the saw tooth type of traffic. – A rough estimate is that the congestion window.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-6600: Internet Protocols Exam 2 Time: 80 min (strictly enforced) [Hint: spend time roughly.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Congestion Control 0.
Peer-to-Peer Networks 13 Internet – The Underlay Network
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Basic Ideas in Probability and Statistics for Experimenters: Part I: Qualitative Discussion Shivkumar.
11 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
Confidence Intervals Cont.
TCP - Part II Relates to Lab 5. This is an extended module that covers TCP flow control, congestion control, and error control in TCP.
Internet Networking recitation #9
Chapter 3 outline 3.1 transport-layer services
COMP 431 Internet Services & Protocols
TCP - Part II Relates to Lab 5. This is an extended module that covers TCP flow control, congestion control, and error control in TCP.
CS640: Introduction to Computer Networks
Internet Networking recitation #10
ECSE-4670: Computer Communication Networks (CCN)
TCP Congestion Control
ECSE-4670: Computer Communication Networks (CCN)
Transport Layer: Congestion Control
Presentation transcript:

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-4963: Experimental Networking Informal Quiz Shivkumar Kalyanaraman: Informal Quiz Shivkumar Kalyanaraman:

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 2 TCP  TCP can re-assemble IP fragments  Path-MTU refers to the procedure of finding the minimum MTU of the path to reduce the probability of fragmentation.  The IP header checksum field is the 16-bit two’s complement of the one’s complement sum of all 16-bit words in the header.  TCP provides reliability only at a packet-level.  Transport protocols are minimally required because IP does not provide application multiplexing support  TCP is called “self-clocking” because the source sends traffic whenever it likes  TCP by default uses a selective retransmission policy  The RTT estimation algorithm in current can only tolerate variances of upto 30%  The TCP congestion control algorithm is stable because it detects congestion reliably and its rate of window decrease is faster than its rate of window increase  TCP’s use of cumulative acks reduces the need for any timeout/retransmission of acks  Delayed-acks are good for bulk traffic, but bad for interactive traffic.  A two-way handshake is sufficient for the robust setup of a half-duplex connection, but a three-way handshake is necessary for the robust setup of a full-duplex connection

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 3 TCP  If timeouts are not used, burst packet or ack-losses cannot be recovered from  A duplicate ack gives the same information as a NAK, but it presumes the notion of a sequence number  Sequence numbers allow the detection of duplicate packets, but the sequence number space must be sized sufficiently large compared to the window size depending upon the retransmission algorithm (go-back-N or selective-repeat) used.  In a lossless network, window-based transmission can achieve full utilization  TCP sets its RTO to an average RTT measure + 4*mean deviation of RTT, based upon Chebyshev’s theorem  Retransmission ambiguity would not occur if timestamps were used on packets.  Self-clocking of TCP can be a liability in asymmetric networks where the reverse path can artifically constrain the forward path.  Self-clocking can also lead to burstiness if the reverse path is congested, and/or the receiver uses a delay-ack time to suppress ACKs.  The end-to-end congestion control model is the only one that can guarantee avoidance of congestion collapse.  In equilibrium, TCP attempts to conserve packets and operate at high utilization.  TCP does not guarantee low queueing delays because it depends upon packet loss for congestion detection

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 4 TCP/Congestion Control  Fast retransmit refers to the procedure of using three duplicate acks to infer packet loss  TCP Tahoe sets its window to 1 after every loss detection  TCP Reno may timeout quickly in a multiple packet loss scenario  TCP SACK uses selective retransmit, and like NewReno, it does not reduce its window more than once per window of packets  With a 28kbps reverse link, 1500 byte packets are regular TCP behavior, the forward link throughput is at most around 2 Mbps  FIFO+droptail provides service isolation among the participating TCP flows  Synchronization occurs because DropTail leads to bursty and correlated packet losses amongst flows; and flows react to same events  Dropping packets early has the risk that transient burstiness may be mistaken for true overload (demand > capacity)  RED determines random drop probability by comparing the average queue size to a max and min thresholds  Random dropping/marking with a bias in RED helps break synchronization

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 5  A probability density function (PDF) is a generalization of a histogram for the continuous random variable case.  A random variable (R.v.) models a measurement, whereas probability models an experiment, and r.v. is used when the measurement does not necessarily captures the set of all possible outcomes of the experiment.  In the experiment of tossing a die, the set X = {0,1,2} which denotes the possibility of the outcomes being 0, 1 or 2 is a random variable.  A mean of a random variable is also known as the first moment or centroid of a distribution.  A median is the 50 th percentile element, found using the inverse of the CDF with an argument of 0.5.  A mean is the preferred central tendency measure in a skewed distribution.  A mode (or the most probable element) is usually used with categorical random variables instead of mean or median  C.o.V. and SIQR are measures of central tendency.  Covariance, a measure of dependence between random variables, always lies between –1 and +1 Probability/Statistics

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 6  If E(XY) = E(X)E(Y), the random variables X and Y are independent  Coefficient of Variation (C.o.V) and Correlation Coefficient (  XY ) are normalized measures of spread and dependence respectively.  The C.o.V would be a useful metric to measure the unfairness of rate allocations to TCP flows passing through a single bottleneck  The correlation coefficient would be a useful metric to measure the degree of traffic and window synchronization between a pair of TCP flows competing at a bottleneck  Given 50 RTT samples, one can estimate the 95% confidence interval of the path RTT and a good estimate of maximum RTT (to set the timeout value in TCP)  A Bernoulli distribution can be studied by considering a sequence of N bernoulli trials, and counting the number of successes in N trials.  Taking a large bet with a probability of success 0.5 in a single experiment (like a lottery, without regard to cost) is superior to taking smaller bets (with probability 0.01 each) in 50 repeated, identical experiments. (Hint: probability of success in latter case is 1 – (0.99) 50 )  The Poisson distribution is a continuous-time approximation of the binomial distribution, derived by assuming np =, and n is very large.  In a Poisson arrival process, the average time since the occurrence of the last arrival is the same as the average time for the next arrival. Probability/Statistics

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 7  The Chebyshev bound for spread of a random variable is a very loose bound, especially for the normal distribution.  The distribution of sample means from any distribution (I.e. sampling distribution, assuming random sampling) tends to a normal distribution  Confidence interval gives less information compared to the notion of “statistical significance” and “null hypothesis”  A t-distribution is an approximation of the normal distribution with n-1 degrees of freedom that can be constructed with n samples from a normal population & the approximation is good when n is at least six.  The confidence interval is constructed from a normal or normal-like distribution (eg: t-distribution) of a random variable (eg: the sample mean) by excluding the tails of the distribution based upon the given confidence level  Pairing and randomized experiments are ways of ensuring the random sampling assumption and reducing correlations between experiments  If two confidence intervals for an estimate of a mean overlap and the means also lie in the CIs of each other, the means cannot be declared to be different at that level of confidence. Probability/Statistics

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 8 TCP (SOLNS)    TCP can re-assemble IP fragments   Path-MTU refers to the procedure of finding the minimum MTU of the path to reduce the probability of fragmentation.    The IP header checksum field is the 16-bit two’s complement of the one’s complement sum of all 16-bit words in the header.    TCP provides reliability only at a packet-level.   Transport protocols are minimally required because IP does not provide application multiplexing support    TCP is called “self-clocking” because the source sends traffic whenever it likes    TCP by default uses a selective retransmission policy    The RTT estimation algorithm in current TCP can only tolerate variances of upto 30%   The TCP congestion control algorithm is stable because it detects congestion reliably and its rate of window decrease is faster than its rate of window increase   TCP’s use of cumulative acks reduces the need for any timeout/retransmission of acks   Delayed-acks are good for bulk traffic, but bad for interactive traffic.   A two-way handshake is sufficient for the robust setup of a half-duplex connection, but a three-way handshake is necessary for the robust setup of a full-duplex connection

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 9 TCP (SOLNS)   If timeouts are not used, burst packet or ack-losses cannot be recovered from   A duplicate ack gives the same information as a NAK, but it presumes the notion of a sequence number   Sequence numbers allow the detection of duplicate packets, but the sequence number space must be sized sufficiently large compared to the window size depending upon the retransmission algorithm (go-back-N or selective-repeat) used.   In a lossless network, window-based transmission can achieve full utilization   TCP sets its RTO to an average RTT measure + 4*mean deviation of RTT, based upon Chebyshev’s theorem   Retransmission ambiguity would not occur if timestamps were used on packets.   Self-clocking of TCP can be a liability in asymmetric networks where the reverse path can artifically constrain the forward path.   Self-clocking can also lead to burstiness if the reverse path is congested, and/or the receiver uses a delay-ack time to suppress ACKs.   The end-to-end congestion control model is the only one that can guarantee avoidance of congestion collapse.   In equilibrium, TCP attempts to conserve packets and operate at high utilization.   TCP does not guarantee low queueing delays because it depends upon packet loss for congestion detection

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 10 TCP (SOLNS)   Fast retransmit refers to the procedure of using three duplicate acks to infer packet loss   TCP Tahoe sets its window to 1 after every loss detection   TCP Reno may timeout quickly in a multiple packet loss scenario   TCP SACK uses selective retransmit, and like NewReno, it does not reduce its window more than once per window of packets   With a 28kbps reverse link, 1500 byte packets & regular TCP behavior, the forward link throughput is at most around 2 Mbps    FIFO+droptail provides service isolation among the participating TCP flows   Synchronization occurs because DropTail leads to bursty and correlated packet losses amongst flows; and flows react to same events   Dropping packets early has the risk that transient burstiness may be mistaken for true overload (demand > capacity)   RED determines random drop probability by comparing the average queue size to a max and min thresholds   Random dropping/marking with a bias in RED helps break synchronization

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 11   A probability density function (PDF) is a generalization of a histogram for the continuous random variable case.   A random variable (R.v.) models a measurement, whereas probability models an experiment, and r.v. is used when the measurement does not necessarily captures the set of all possible outcomes of the experiment.    In the experiment of tossing a die, the set X = {0,1,2} which denotes the possibility of the outcomes being 0, 1 or 2 is a random variable.   A mean of a random variable is also known as the first moment or centroid of a distribution.   A median is the 50 th percentile element, found using the inverse of the CDF with an argument of 0.5.    A mean is the preferred central tendency measure in a skewed distribution.   A mode (or the most probable element) is usually used with categorical random variables instead of mean or median    C.o.V. and SIQR are measures of central tendency.    Covariance, a measure of dependence between random variables, always lies between –1 and +1 Probability/Statistics (SOLNS)

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 12    If E(XY) = E(X)E(Y), the random variables X and Y are independent   Coefficient of Variation (C.o.V) and Correlation Coefficient (  XY ) are normalized measures of spread and dependence respectively.   The C.o.V would be a useful metric to measure the unfairness of rate allocations to TCP flows passing through a single bottleneck   The correlation coefficient would be a useful metric to measure the degree of traffic and window synchronization between a pair of TCP flows competing at a bottleneck   Given 50 RTT samples, one can estimate the 95% confidence interval of the path RTT and a good estimate of maximum RTT (to set the timeout value in TCP)    A Bernoulli distribution can be studied by considering a sequence of N bernoulli trials, and counting the number of successes in N trials.   Taking a large bet with a probability of success 0.5 in a single experiment (like a lottery, without regard to cost) is superior to taking smaller bets (with probability 0.01 each) in 50 repeated, identical experiments. (Hint: probability of success in latter case is 1 – (0.99) 50 )   The Poisson distribution is a continuous-time approximation of the binomial distribution, derived by assuming np =, and n is very large.   In a Poisson arrival process, the average time since the occurrence of the last arrival is the same as the average time for the next arrival. Probability/Statistics (SOLNS)

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 13   The Chebyshev bound for spread of a random variable is a very loose bound, especially for the normal distribution.   The distribution of sample means from any distribution (I.e. sampling distribution, assuming random sampling) tends to a normal distribution    Confidence interval gives less information compared to the notion of “statistical significance” and “null hypothesis”   A t-distribution is an approximation of the normal distribution with n-1 degrees of freedom that can be constructed with n samples from a normal population & the approximation is good when n is at least six.   The confidence interval is constructed from a normal or normal-like distribution (eg: t-distribution) of a random variable (eg: the sample mean) by excluding the tails of the distribution based upon the given confidence level   Pairing and randomized experiments are ways of ensuring the random sampling assumption and reducing correlations between experiments   If two confidence intervals for an estimate of a mean overlap and the means also lie in the CIs of each other, the means cannot be declared to be different at that level of confidence. Probability/Statistics (SOLNS)