+ All Categories
Home > Documents > 1 689 Lecture 2 Review of Last Lecture Networking basics TCP/UDP review.

1 689 Lecture 2 Review of Last Lecture Networking basics TCP/UDP review.

Date post: 15-Jan-2016
Category:
View: 216 times
Download: 0 times
Share this document with a friend
Popular Tags:
27
1 689 Lecture 2 • Review of Last Lecture • Networking basics • TCP/UDP review
Transcript
Page 1: 1 689 Lecture 2 Review of Last Lecture Networking basics TCP/UDP review.

1

689 Lecture 2

• Review of Last Lecture

• Networking basics

• TCP/UDP review

Page 2: 1 689 Lecture 2 Review of Last Lecture Networking basics TCP/UDP review.

2

Multimedia Applications

• Video-on-demand

• Near-video-on-demand

• Interactive games

• Teleconferencing

• IP Telephony

• Training/Travel videos

Page 3: 1 689 Lecture 2 Review of Last Lecture Networking basics TCP/UDP review.

3

Multimedia Requirements

• Guarantees over long periods of time

• Throughput guarantees

• Audio requires loss/delay guarantees

• Interactive apps. Require low delay

• Visual Perception allows adaptivity

• Audio not as forgiving as video

Page 4: 1 689 Lecture 2 Review of Last Lecture Networking basics TCP/UDP review.

4

Multimedia requirements

• CBR• VBR• Variable bit rate places extra burden

• Systems/devices/network support harder• Adaptive applications compensate for

bandwidth/performance degradation and packet losses.

Page 5: 1 689 Lecture 2 Review of Last Lecture Networking basics TCP/UDP review.

5

Typical System

Title:

Creator:

Preview:This EPS picture was not savedwith a preview included in it.Comment:This EPS picture will print to aPostScript printer, but not toother types of printers.

Page 6: 1 689 Lecture 2 Review of Last Lecture Networking basics TCP/UDP review.

6

Delivering multimedia

• Network transport layers responsible

Page 7: 1 689 Lecture 2 Review of Last Lecture Networking basics TCP/UDP review.

7

Transport layers

• TCP/UDP

Page 8: 1 689 Lecture 2 Review of Last Lecture Networking basics TCP/UDP review.

8

TCP

• Transport Control Protocol

• Reliable In-order delivery

• Flow control

• Responds to congestion

• “Nice” Protocol

Page 9: 1 689 Lecture 2 Review of Last Lecture Networking basics TCP/UDP review.

9

TCP Header

Page 10: 1 689 Lecture 2 Review of Last Lecture Networking basics TCP/UDP review.

10

TCP flow control

• Window based

• Sender cannot send more data than a window without acknowledgements.

• Window is a minimum of receiver’s buffer and ‘congestion window’.

• After a window of data is transmitted, in steady state, acks control sending rate.

Page 11: 1 689 Lecture 2 Review of Last Lecture Networking basics TCP/UDP review.

11

Flow control

Page 12: 1 689 Lecture 2 Review of Last Lecture Networking basics TCP/UDP review.

12

Flow control

• Congestion window is increased gradually

• At the beginning, set cwnd = 1

• For each ack, double the cwnd until a threshold

• Increase by 1 for a window of acks after that.

Page 13: 1 689 Lecture 2 Review of Last Lecture Networking basics TCP/UDP review.

13

Slow Start

Page 14: 1 689 Lecture 2 Review of Last Lecture Networking basics TCP/UDP review.

14

Additive Increase

Page 15: 1 689 Lecture 2 Review of Last Lecture Networking basics TCP/UDP review.

15

Reliable delivery

• Sender, Receiver keep track of bytes sent and bytes received.

• Acks have an indication of next byte expected.

• Three duplicate acks considered a packet loss - sender retransmits

Page 16: 1 689 Lecture 2 Review of Last Lecture Networking basics TCP/UDP review.

16

Reliable Delivery

Page 17: 1 689 Lecture 2 Review of Last Lecture Networking basics TCP/UDP review.

17

Congestion Control

• Traffic on the network is constantly changing.

• Packets may be lost due to transmission errors, switch buffer overflows, receiver buffer overflows.

• Packet loss is taken as an indication of congestion.

Page 18: 1 689 Lecture 2 Review of Last Lecture Networking basics TCP/UDP review.

18

Congestion Response

• TCP reduces sending rate on packet loss

• cwnd is halved on a packet loss

• cwnd is set to 1 on a timeout

• TCP follows -- Multiplicative Decrease and Additive Increase policy for window adjustments

Page 19: 1 689 Lecture 2 Review of Last Lecture Networking basics TCP/UDP review.

19

Congestion Response

• Queue length reduction takes qudratic time

• Multiplicative decrease allows sufficient time to reduce queue lengths -- Jacobson

• Jain -- Multiplicative decrease and additive increase allows ‘fair’ sharing of bandwidth.

• TCP -- ‘good’ citizen - allows fair sharing, avoids congestion collapse.

Page 20: 1 689 Lecture 2 Review of Last Lecture Networking basics TCP/UDP review.

20

Congestion Response

Page 21: 1 689 Lecture 2 Review of Last Lecture Networking basics TCP/UDP review.

21

TCP Congestion Response

• TCP responds to congestion.

• Increases window size until a packet loss

• This allows maximization of utilization.

• No Congestion avoidance mechanism

• Number of Proposals - TCP Vegas -- includes a rate adjustment mechanism based on observed delay.

Page 22: 1 689 Lecture 2 Review of Last Lecture Networking basics TCP/UDP review.

22

DECbit

• Indicate congestion by setting a bit in the packet.

• Receiver echoes the bit to the sender.

• Sender adjusts sending rate based on percentage of marked packets.

• Avoids congestion before it happens

• Reduces the stair-case affect of TCP.

Page 23: 1 689 Lecture 2 Review of Last Lecture Networking basics TCP/UDP review.

23

TCP and multimedia

• Reliable delivery not needed for multimedia

• Timely delivery more important than in-order delivery.

• Late packet can be thrown away

• TCP’s reliability gets in the way.

Page 24: 1 689 Lecture 2 Review of Last Lecture Networking basics TCP/UDP review.

24

UDP

• Unreliable Datagram Protocol

Page 25: 1 689 Lecture 2 Review of Last Lecture Networking basics TCP/UDP review.

25

UDP

• Provides multiplexing and demultiplexing of sources.

• No reliability, flow control, congestion control.

• Sends data in a burst.

• Most multimedia applications using UDP

Page 26: 1 689 Lecture 2 Review of Last Lecture Networking basics TCP/UDP review.

26

UDP and multimedia

• Put flow control, congestion control into application.

• Retransmit if packet deadline not past

• Move on if packet deadline is past

• Don’t respond to Congestion

• Not a “nice” citizen.

• Possible to cause congestion collapse.

Page 27: 1 689 Lecture 2 Review of Last Lecture Networking basics TCP/UDP review.

27

Summary

• TCP not well suited to multimedia.

• TCP is a well understood, ‘nice’ protocol.

• Multiplicative decrease/additive increase allows fair sharing of BW and avoids congestion collapse.

• UDP is being used by multimedia developers.


Recommended