Process To Process Delivery, UDP, TCP, SCTP
Process To Process Delivery, UDP, TCP, SCTP
Process-to-Process Delivery:
UDP, TCP, and SCTP
23.1
23-1 PROCESS-TO-PROCESS DELIVERY
23.3
Figure 23.1 Types of data deliveries
23.4
Figure 23.2 Port numbers
23.5
Figure 23.3 IP addresses versus port numbers
23.6
Figure 23.4 Internet Assigned Number Authority (IANA) ranges
23.7
Figure 23.5 Socket address
23.8
Figure 23.6 Multiplexing and demultiplexing
23.9
Figure 23.7 Error control
23.10
23-2 USER DATAGRAM PROTOCOL (UDP)
23.11
Figure 23.9 User datagram format
23.12
Note
UDP length
= IP length – IP header’s length
23.13
Figure 23.10 Pseudoheader for checksum calculation
23.14
Example 23.2
Solution:-
Step1:- Take 16 bit at a time and add two 16 bit number at a time
and if carry occurs, put it to the LSB position and simply add them.
Step2: Take the 1’s complement of the sum, we get the check sum.
Step3:- put the checksum at the place where we previously put 16
zeros for checksum calculation.
23.15
Figure 23.11 Checksum calculation of a simple UDP user datagram
At the receiver the same process follows and again calculate the
checksum and if we found all 1’s then there is no error in
transmission.
23.16
Figure 23.12 Queues in UDP
23.17
23-3 TCP
23.19
Figure 23.13 Stream delivery
23.20
Figure 23.14 Sending and receiving buffers
23.21
Figure 23.15 TCP segments
23.22
Note
23.23
Example 23.3
23.24
Note
23.25
Note
23.26
Figure 23.16 TCP segment format
23.27
Figure 23.17 Control field
23.28
Table 23.3 Description of flags in the control field
23.29
Figure 23.18 Connection establishment using three-way handshaking
23.30
Note
23.31
Note
23.32
Note
23.33
Figure 23.19 Data transfer
23.34
Figure 23.20 Connection termination using three-way handshaking
23.35
Note
23.36
Note
23.37
Figure 23.21 Half-close
23.38
Figure 23.22 Sliding window
23.39
Note
23.40