Download presentation
Presentation is loading. Please wait.
1
Process-to-process delivery UDP TCP SCTP
Chapter 23. UDP and TCP Process-to-process delivery UDP TCP SCTP Spring 2010 Communication Networks, KWU
2
Types of Data Deliveries
Spring 2010 Communication Networks, KWU
3
Communication Networks, KWU
Port Numbers Spring 2010 Communication Networks, KWU
4
IP Address vs. Port Numbers
Spring 2010 Communication Networks, KWU
5
Port Numbers: IANA Ranges
Spring 2010 Communication Networks, KWU
6
Communication Networks, KWU
Socket Address Spring 2010 Communication Networks, KWU
7
Communication Networks, KWU
Error Control at L2/L4 Spring 2010 Communication Networks, KWU
8
Transport Layer Protocols
Spring 2010 Communication Networks, KWU
9
Well-Known Ports used by UDP
Spring 2010 Communication Networks, KWU
10
Communication Networks, KWU
UDP Datagram UDP is a connectionless, unreliable protocol that has no flow and error control It uses port numbers to multiplex data from the application layer Spring 2010 Communication Networks, KWU
11
Communication Networks, KWU
UDP Pseudoheader Spring 2010 Communication Networks, KWU
12
Example: Checksum Calculation
Spring 2010 Communication Networks, KWU
13
Well-Known Ports used by TCP
Spring 2010 Communication Networks, KWU
14
Communication Networks, KWU
Stream Delivery of TCP TCP is a transport protocol which is Reliable Connection-oriented Stream-oriented Spring 2010 Communication Networks, KWU
15
Communication Networks, KWU
Sequence Number The bytes of data being transferred in each connection are numbered by TCP The numbering starts with a randomly generated number The value of the sequence number field in a segment defines the number of the first data byte contained in that segment The value of the acknowledgment field in a segment defines the number of the next byte a party expects to receive The acknowledgment number is cumulative Spring 2010 Communication Networks, KWU
16
Sequence Number: Example
Imagine a TCP connection is transferring a file of 6000 bytes. The first byte is numbered What are the sequence numbers for each segment if data are sent in five segments with the first four segments carrying 1000 bytes and the last segment carrying 2000 bytes? The following shows the sequence number for each segment: Segment 1 ==> sequence number: 10,010 (range: 10,010 to 11,009) Segment 2 ==> sequence number: 11,010 (range: 11,010 to 12,009) Segment 3 ==> sequence number: 12,010 (range: 12,010 to 13,009) Segment 4 ==> sequence number: 13,010 (range: 13,010 to 14,009) Segment 5 ==> sequence number: 14,010 (range: 14,010 to 16,009) Spring 2010 Communication Networks, KWU
17
Communication Networks, KWU
TCP Segment Format Spring 2010 Communication Networks, KWU
18
Control Field and Flags
Spring 2010 Communication Networks, KWU
19
Connection Establishment: Three-Way Handshaking
Spring 2010 Communication Networks, KWU
20
Communication Networks, KWU
Data Transfer Spring 2010 Communication Networks, KWU
21
Connection Termination: Three-Way Handshaking
Spring 2010 Communication Networks, KWU
22
Communication Networks, KWU
Sliding Window TCP’s sliding windows are byte-oriented The size of window is the lesser of rwnd and cwnd rwnd: receiver window cwnd: congestion window Spring 2010 Communication Networks, KWU
23
Sliding Window: Example
Spring 2010 Communication Networks, KWU
24
Example: Normal Operation
Spring 2010 Communication Networks, KWU
25
Communication Networks, KWU
Example: Lost Segment Spring 2010 Communication Networks, KWU
26
Example: Fast Retransmission
Spring 2010 Communication Networks, KWU
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.