Professional Documents
Culture Documents
23.5 23.6
1
05/05/2018
Figure 23.3 IP addresses versus port numbers Figure 23.4 IANA ranges
23.7 23.8
23.9 23.10
23.11 23.12
2
05/05/2018
Figure 23.8 Position of UDP, TCP, and SCTP in TCP/IP suite 23-2 USER DATAGRAM PROTOCOL (UDP)
23.15 23.16
SNMP uses two port numbers (161 and 162), each for a
different purpose, as we will see in Chapter 28.
23.17 23.18
3
05/05/2018
Note
UDP length
= IP length – IP header’s length
23.19 23.20
Example 23.2
Figure 23.11 Checksum calculation of a simple UDP user datagram
23.21 23.22
4
05/05/2018
23.25 23.26
Figure 23.14 Sending and receiving buffers Figure 23.15 TCP segments
23.27 23.28
Example 23.3
23.29 23.30
5
05/05/2018
Note
Note
The value of the acknowledgment field
The value in the sequence number field in a segment defines
of a segment defines the the number of the next byte a party
number of the first data byte expects to receive.
contained in that segment. The acknowledgment number is
cumulative.
23.31 23.32
23.33 23.34
23.35 23.36
6
05/05/2018
Note Note
A SYN segment cannot carry data, but it A SYN + ACK segment cannot
consumes one sequence number. carry data, but does consume one
sequence number.
23.37 23.38
Note
23.39 23.40
Note
23.41 23.42
7
05/05/2018
Note
23.43 23.44
Note
23.45 23.46
What is the value of the receiver window (rwnd) for host What is the size of the window for host A if the value of
A if the receiver, host B, has a buffer size of 5000 bytes rwnd is 3000 bytes and the value of cwnd is 3500 bytes?
and 1000 bytes of received and unprocessed data?
Solution
The value of rwnd = 5000 − 1000 = 4000. Host B can Solution
receive only 4000 bytes of data before overflowing its The size of the window is the smaller of rwnd and
buffer. Host B advertises this value in its next segment to congestion window (cwnd), which is 3000 bytes.
A.
23.47 23.48
8
05/05/2018
Example 23.6
Figure 23.23 Example 23.6
23.49 23.50
Note
23.51 23.52
Note Note
23.53 23.54
9
05/05/2018
Note
23.55 23.56
Note
23.57 23.58
10
05/05/2018
Note
23.61 23.62
Note
23.63 23.64
Note
23.65 23.66
11
05/05/2018
Note Note
23.67 23.68
Note Note
To distinguish between different data TCP has segments; SCTP has packets.
chunks belonging to the same stream,
SCTP uses SSNs.
23.69 23.70
Note
23.71 23.72
12
05/05/2018
Note
23.73 23.74
Note
23.75 23.76
Note
23.77 23.78
13
05/05/2018
Note
23.79 23.80
Note
23.81 23.82
Note
23.83 23.84
14
05/05/2018
Note
23.85 23.86
Figure 23.36 Flow control, receiver site Figure 23.37 Flow control, sender site
23.87 23.88
23.89 23.90
15
05/05/2018
QUESTIONS ?
23.91 11.92
16