Process-to-Process Delivery: SCTP
Process-to-Process Delivery: SCTP
Process-to-Process Delivery:
SCTP
23.1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
23-4 SCTP
23.3
Table 23.4 Some SCTP applications
23.4
Figure 24.38 Multiple-stream concept
23.5
Note
23.6
Figure 23.28 Multihoming concept
23.7
Note
23.8
SCTP features
Full Duplex communication
Connection oriented
Reliable service
Unit of data : Data Chunk
can be fragmented
23.9
Note
23.10
Note
23.11
Note
23.12
Note
23.13
Figure 23.29 Comparison between a TCP segment and an SCTP packet
23.14
Note
23.15
Note
23.16
Example
B sends 11 messages
First four messages : 1st stream
Second three messages: 2nd stream
Last three messages: 3rd stream
23.17
Figure 23.30 Packet, data chunks, and streams
23.18
Note
23.19
Note
23.20
Figure 23.31 SCTP packet format
23.21
23.22
Note
23.23
Table 23.5 Types of Chunks
23.24
Control chunks pair
INIT paired with INIT ACK
DATA paired with SACK
COOKIE ECHO paired with COOKIEACK
HEARTBEAT paired with HEARTBEATACK
SHUTDOWN paired with SHUTDOWNACK
23.25
Note
23.26
Figure 23.33 Four-way handshaking (Association establishment)
23.27
Note
23.28
Data transfer
Each message coming from the process is
treated as one unit and inserted into Data
chunk
If the message is longer, it is fragmented
into multiple data chunks
Each data chunk has TSN
23.29
Figure 23.34 Simple data transfer
23.30
Note
23.31
Figure 23.35 Association termination
23.32
To be followed
23.33
Figure 23.36 Flow control, receiver site
23.34
Flow control at receiver side
When a site received a data chunk, it
stores at the end of the buffer
Subtracts the size of chunk from winsize.
Stores TSN number in cumTSN variable
When a process reads a chunk
Removes it from the queue
Adds the size of the chunk to winsize
23.35
Flow contol at receiver side
When a receiver sends SACK
Checks the value of lastack
If it is less than cumTSN , it sends cumulative
TSN number equal to cumTSN
Also includes the value of winsize
23.36
Figure 23.37 Flow control, sender site
acknowledged
23.37
Flow control at sender site
A chunk can be sent if size of data is less
than rwnd – intransit
After sending, curTSN is incremented by 1
inTransit incremented by the sent chunk size
When SACK is received
What should be done?
23.38
Figure 23.38 Flow control scenario
23.39
Figure 23.39 Error control, receiver site
23.40
Figure 23.40 Error control, sender site
23.41
Qn1
In SCTP, the value of the cumulative TSN
in a sack is 23. The value of the previous
cumulative TSN in the SACK is 29, What is
the problem?
23.42
Qn2
In SCTP, the state of a receiver is as
follows:
The receiver queue has chunks 1 to 7, 11 to
14 and 17 to 20
There are 1800 bytes of space in the queue
The value of lastACK is 4
No duplicate chunk has been received
The value of cumTSN is 5
Show the content of the receiving queue.
23.43
Qn3
State of a sender is SCTP
Sending queue has chunks 18 to 23
The value of cumTSN is 20
The value of the window size is 2000 bytes
The value of inTransit is 200
Each data chunk is 100 bytes
How many data chunks can be sent now?
What is the next data chunk to be sent?
23.44