Unit 4 Sanjay Kumar Nayak
Unit 4 Sanjay Kumar Nayak
Unit 4 Sanjay Kumar Nayak
Unit: 4
Computer Networks
ACSE0602 Sanjay Kumar Nayak
CSE
B.Tech 6th sem Department
4/30/2024 CN Unit-5 6
PSO’s
Content
Course Outcome
Program Specific
Outcomes CO1 CO2 CO3 CO4 C05
2 2 2 2 2
PSO1
2 2 2 2
PSO2
2
2 2 2 3 2
PSO3
AVERAGE 2 2 2 2.3 2
PSO1: identify, analyze real world problems and design their ethical solutions using
artificial intelligence, robotics, virtual/augmented reality, data analytics, block chain
technology, and cloud computing.
PSO2: design and develop the hardware sensor devices and related interfacing software
systems for solving complex engineering problems.
PSO 4: conduct investigation of complex problem with the help of technical, managerial,
leadership qualities, and modern engineering tools provided by industry sponsored
laboratories.
CO PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12
2 2 2 2 2 2 2 2 2 2 2 2
CO1
2 2 2 2 2 2 2 2 2 2 2 2
CO2
2 2 2 3 2 2 2 3 2 2 2 3
CO3
2 2 2 2 2 2 2 2 2 2 2 2
CO4
2 2 2 2 2 2 2 2 2 2 2 2
CO5
2 2 2 2 2 2 2 2 2 2 2 2
Avg.
Course Outcome
Program Specific
Outcomes CO1 CO2 CO3 CO4 C05
2 2 2 2 2
PSO1
2 2 2 2
PSO2
2
2 2 2 3 2
PSO3
AVERAGE 2 2 2 2.3 2
PEO 3:To have an effective communication skills, professional attitude, ethical values and
a desire to learn specific knowledge in emerging trends, technologies for research,
innovation and product development and contribution to society.
PEO 4: To have life-long learning for up-skilling and re-skilling for successful
professional career as engineer, scientist, entrepreneur and bureaucrat for betterment of
society.
Sanjay NayakACSE0602 Computer Networks
4/30/2024 12
Result
Content
Analysis
Unit 4
• Transport Layer: Process-to-process delivery
• Transport layer protocols (UDP and TCP)
• UDP header format
• TCP header Format
• Port addressing
• Multiplexing, Connection management
• Flow control and retransmission
• Window management
• TCP Congestion control
• Quality of service
Sanjay NayakACSE0602
4/30/2024 16
Computer Networks
TCP/ IP model
Sanjay NayakACSE0602
4/30/2024 17
Computer Networks
INTRODUCTION
• The transport layer is located between the application layer and the
network layer.
Sanjay NayakACSE0602
4/30/2024 18
Computer Networks
Logical connection at the transport layer
Sanjay NayakACSE0602
4/30/2024 19
Computer Networks
Network layer versus transport layer
Sanjay NayakACSE0602
4/30/2024 20
Computer Networks
Functions of transport Layer
Sanjay NayakACSE0602
4/30/2024 21
Computer Networks
Port numbers
22
Sanjay NayakACSE0602
4/30/2024
Computer Networks
Registered port numbers
• 1024 to 49151
Sanjay NayakACSE0602
4/30/2024 23
Computer Networks
Dynamic port numbers
• 49152 to 65535
• Client process define itself with port no. chosen randomly by transport
layer
Sanjay NayakACSE0602
4/30/2024 24
Computer Networks
Example Port number
Sanjay NayakACSE0602
4/30/2024 25
Computer Networks
IP addresses versus port numbers
Sanjay NayakACSE0602
4/30/2024 26
Computer Networks
Socket address
Sanjay NayakACSE0602
4/30/2024 27
Computer Networks
Socket address
Types of Sockets : There are two types of Sockets: the datagram socket and
the stream socket.
Sanjay NayakACSE0602
4/30/2024 28
Computer Networks
Socket address
1.Datagram Socket : This is a type of network which has connection less point
for sending and receiving packets. It is similar to mailbox. The letters (data)
posted into the box are collected and delivered (transmitted) to a letterbox
(receiving socket).
Sanjay NayakACSE0602
4/30/2024 29
Computer Networks
Encapsulation and de capsulation
Sanjay NayakACSE0602
4/30/2024 30
Computer Networks
Multiplexing and de multiplexing
Sanjay NayakACSE0602
4/30/2024 31
Computer Networks
TRANSPORT-LAYER PROTOCOLS
Objective: Study about basic concept of Transport layer protocols-UDP & TCP
Sanjay NayakACSE0602
4/30/2024 32
Computer Networks
UDP -User datagram protocol
Sanjay NayakACSE0602
4/30/2024 33
Computer Networks
UDP -User datagram protocol
Sanjay NayakACSE0602
4/30/2024 34
Computer Networks
Connectionless service
Sanjay NayakACSE0602
4/30/2024 35
Computer Networks
Question
The following is a dump of a UDP header in hexadecimal format.
Sanjay NayakACSE0602
4/30/2024 36
Computer Networks
Question
Solution
a. The source port number is the first four hexadecimal digits (CB84)16
or 52100.
b. The destination port number is the second four hexadecimal digits
(000D)16 or 13.
c. The third four hexadecimal digits (001C)16 define the length of the
whole UDP packet as 28 bytes.
d. The length of the data is the length of the whole packet
minus the length of the header, or 28 – 8 = 20 bytes.
e. Since the destination port number is 13 (well-known port), the packet
is from the client to the server.
Sanjay NayakACSE0602
4/30/2024 37
Computer Networks
Question
Sanjay NayakACSE0602
4/30/2024 38
Computer Networks
Well known ports
Sanjay NayakACSE0602
4/30/2024 39
Computer Networks
TCP – transmission control protocol
connection oriented protocol
Sanjay NayakACSE0602
4/30/2024 40
Computer Networks
Connection-oriented service
Packet 2
Sanjay NayakACSE0602
4/30/2024 41
Computer Networks
Flow control ( Pushing or pulling)
Sanjay NayakACSE0602
4/30/2024 42
Computer Networks
Flow control at the transport layer
Sanjay NayakACSE0602
4/30/2024 43
Computer Networks
Flow control methods
• Simple Protocol
• The simple protocol is a connectionless protocol that provides
neither flow nor error control. (unreliable protocol)…fast ….no
acknowledgement
Sanjay NayakACSE0602
4/30/2024 44
Computer Networks
Flow control methods
Objective: Study about basic concept of Flow control and Error control
Sanjay NayakACSE0602
4/30/2024 45
Computer Networks
Stop and Wait
Sanjay NayakACSE0602
4/30/2024 46
Computer Networks
Flow control :Sliding Window protocol
Sanjay NayakACSE0602
4/30/2024 48
Computer Networks
Receiver Sliding Window
Sanjay NayakACSE0602
4/30/2024 49
Computer Networks
Sliding Window Example
Sanjay NayakACSE0602
4/30/2024 50
Computer Networks
Sender
Sanjay NayakACSE0602
4/30/2024 51
Computer Networks
Receiver
Sanjay NayakACSE0602
4/30/2024 52
Computer Networks
Stop and Wait Protocol
Sanjay NayakACSE0602
4/30/2024 53
Computer Networks
Go-Back-N ARQ sliding window Protocol
Lost Frame
Sanjay NayakACSE0602
4/30/2024 54
Computer Networks
Go-Back-N ARQ sliding window Protocol
Lost ACK
Sanjay NayakACSE0602
4/30/2024 55
Computer Networks
Selective Reject
Sanjay NayakACSE0602
4/30/2024 56
Computer Networks
TCP segment format
Sanjay NayakACSE0602
4/30/2024 57
Computer Networks
Control field
Sanjay NayakACSE0602
4/30/2024 1
Computer Networks
Content
Comparison
Sanjay NayakACSE0602
4/30/2024 60
Computer Networks
Services offered by SCTP
• Process-to-Process Communication
• Multiple Streams
• Multi homing
• Full-Duplex Communication
• Connection-Oriented Service
• Reliable Service
Sanjay NayakACSE0602
4/30/2024 61
Computer Networks
Multiple-stream concept
Sanjay NayakACSE0602
4/30/2024 62
Computer Networks
Multi homing concept
At present, SCTP does not allow load sharing between different
path. Currently, it is only for fault-tolerance.
Sanjay NayakACSE0602
4/30/2024 63
Computer Networks
Topics Discussed in the Section
Sanjay NayakACSE0602
4/30/2024 64
Computer Networks
Comparison between a TCP segment and
an SCTP packet
Sanjay NayakACSE0602
4/30/2024 66
Computer Networks
SCTP vs. TCP (2) Content
• Mandatory part of the header
– TCP: 20 bytes, SCTP: 12 bytes
– Reason: TSN in data chunk’s header, Ack. # and window size are part
of control chunk, No need for header length field (∵no option), No
need for an urgent pointer
• Checksum
– TCP: 16 bits, SCTP: 32 bit
Sanjay NayakACSE0602
4/30/2024 67
Computer Networks
SCTP vs. TCP (3) Content
• Association identifier
– TCP: none, SCTP: verification tag, Multihoming in SCTP
• Sequence number
– TCP: one # in the header, SCTP: TSN, SI and SSN define each data
chunk
– TCP:SYN and FIN need to consume one seq. #,Control chunks never
use a TSN, SI, or SSN number
Sanjay NayakACSE0602
4/30/2024 68
Computer Networks
SCTP and TCP header comparison
Sanjay NayakACSE0602
4/30/2024 69
Computer Networks
ERROR CONTROL
Sanjay NayakACSE0602
4/30/2024 70
Computer Networks
Faculty Video Links, Youtube & NPTEL
Content
Video Links and Online Courses Details
• Self Made Video Link:
• https://a.impartus.com/ilc/#/video/id/1829352
https://a.impartus.com/ilc/#/video/id/1838377
https://a.impartus.com/ilc/#/video/id/1847574
https://a.impartus.com/ilc/#/video/id/1850888
https://a.impartus.com/ilc/#/video/id/1862865
• https://a.impartus.com/ilc/#/video/id/1881999
https://a.impartus.com/ilc/#/video/id/1889154
• Youtube/other Video Links
• https://www.youtube.com/watch?v=kAty4mKczEg
• https://www.youtube.com/watch?v=trHox1bN5es
Sanjay NayakACSE0602
4/30/2024 76
Computer Networks
Content
MCQ s
Sanjay NayakACSE0602
4/30/2024 77
Computer Networks
Content
MCQ s
Sanjay NayakACSE0602
4/30/2024 78
Computer Networks
Content
MCQ s
5. Port number used by Network Time Protocol (NTP) with UDP is ________
a) 161
b) 123
c) 162
d) 124
Answer: b
Explanation: The Network Time Protocol is a clock synchronization network
protocol implemented by using UDP port number 123 to send and receive time
stamps.
6. What is the header size of a UDP packet?
a) 8 bytes
b) 8 bits
c) 16 bytes
d) 124 bytes
Answer: a
Explanation: The fixed size of the UDP packet header is 8 bytes. It contains four
two-byte fields: Source port address, Destination port address, Length of packet,
and checksum.
Sanjay NayakACSE0602
4/30/2024 79
Computer Networks
Content
MCQ s
7. The port number is “ephemeral port number”, if the source host is _______
a) NTP
b) Echo
c) Server
d) Client
Answer: d
Explanation: Port numbers from 1025 to 5000 are used as ephemeral port numbers in
Windows Operating System. Ephemeral port numbers are short-lived port numbers which
can be used for clients in a UDP system where there are temporary clients all the time.
8. “Total length” field in UDP packet header is the length of _________
a) Only UDP header
b) Only data
c) Only checksum
d) UDP header plus data
Answer: d
Explanation: Total length is the 16 bit field which contains the length of UDP header and the
data. The maximum value of the Total length field and the maximum size of a UDP
datagram is 65,535 bytes (8 byte header + 65,527 bytes of data).
Sanjay NayakACSE0602
4/30/2024 80
Computer Networks
Content
MCQ s
Sanjay NayakACSE0602
4/30/2024 81
Computer Networks
ContentPapers
Old Question
• https://firstranker.com/fr.php/frdA290120A17171122/download-
aktu-b-tech-6th-sem-2018-2019-KCS603-computer-network-
question-paper
• ACSE0602 CN.docx (sharepoint.com)
Books:
1. Forouzen, "Data Communication and Networking",TMH
Thank You