Search for notes by fellow students, in your own course and all over the country.

Browse our notes for titles which look like what you need, you can preview any of the notes via a sample of the contents. After you're happy these are the notes you're after simply pop them into your shopping cart.

My Basket

MECHANICAL DEVICES OF MECHATRONIC SYSTEMS£4.38

vhdl£6.25

Total£10.63

Title: Transport Layer Introduction
Description: Transport Layer Introduction

Document Preview

Extracts from the notes are below, to see the PDF you'll receive please use the links above


Transport Layer Introduction
The OSI Model's Transport Layer is the following layer (Layer-4)
...
As with all other levels,
this layer communicates with the Transport layer on the remote
host
...

The transport layer receives data from the top layer (the
application layer), breaks it into smaller size segments, numbers
each byte, and sends it to the bottom layer (the network layer)
for delivery
...
It numbers every byte in the segment
and maintains their accounting
...

• This layer provides end-to-end delivery of data
between hosts which may or may not belong to the
same subnet
...


End-to-End Communication
A process on one host uses TSAPs, commonly referred to as port
numbers, to locate its peer host on a different network
...


For example, when a DHCP client wants to communicate with
remote DHCP server, it always requests on port number 67
...

The two main Transport layer protocols are:




Transmission Control Protocol
It provides reliable communication between two hosts
...

Transmission Control Protocol

One of the most crucial protocols in the family of Internet
Protocols is the transmission Control Protocol (TCP)
...

Features












TCP is reliable protocol
...

TCP ensures that the data reaches intended
destination in the same order it was sent
...
TCP requires that
connection between two remote points be established
before sending actual data
...

TCP provides end-to-end communication
...

TCP operates in Client/Server point-to-point mode
...
e
...


Header
The length of TCP header is minimum 20 bytes long and
maximum 60 bytes
...

Destination Port (16-bits) - It identifies destination port
of the application process on the receiving device
...

Acknowledgement Number (32-bits) - When ACK flag
is set, this number contains the next sequence number
of the data byte expected and works as
acknowledgement of the previous data received
...

Reserved (3-bits) - Reserved for future use and all are
set zero by default
...

o CWR - When a host receives packet with ECE
bit set, it sets Congestion Windows Reduced
to acknowledge that ECE received
...

▪ If SYN bit is set to 1, ECE means that
the device is ECT capable
...


ACK - It indicates that Acknowledgement
field has significance
...

o PSH - When set, it is a request to the receiving
station to PUSH data (as soon as it comes) to
the receiving application without buffering it
...

▪ It is used to reject a segment
...

o SYN - This flag is used to set up a connection
between hosts
...

Because packets with SYN and FIN flags have
sequence numbers, they are processed in
correct order
...
e
...

Checksum - This field contains the checksum of
Header, Data and Pseudo Headers
...

Options - It facilitates additional options which are not
covered by the regular header
...
If this field contains data less
than 32-bit, padding is used to cover the remaining bits
to reach 32-bit boundary
...
Ports numbers can range from
0 – 65535 which are divided as:
System Ports (0 – 1023)
• User Ports ( 1024 – 49151)
• Private/Dynamic Ports (49152 – 65535)
Connection Management


TCP communication works in Server/Client model
...
Three-way handshaking is used for connection management
...
The server responds with an
acknowledgement with its own Sequence number and an ACK of
the client's segment that is one higher than the client's Sequence
number
...

Release
Either of server and client can send TCP segment with FIN flag
set to 1
...

Bandwidth Management
TCP uses the concept of window size to accommodate the need
of Bandwidth management
...
TCP uses slow start phase by using window
size 1 and increases the window size exponentially after each
successful communication
...
When the acknowledgement of this segment received the
windows size is doubled to 4 and next sent the segment sent will
be 4 data bytes long
...

If an acknowledgement is missed, i
...
data lost in transit network
or it received NACK, then the window size is reduced to half and
slow start phase starts again
...
Along with that, it uses
sequence numbers to synchronize itself with the remote host
...

The Sender knows which last data segment was received by the
Receiver when it gets ACK
...


If the sequence number of a segment recently received does not
match with the sequence number the receiver was expecting,
then it is discarded and NACK is sent back
...

Multiplexing
The technique to combine two or more data streams in one
session is called Multiplexing
...
The client itself
uses a randomly generated port number from private port
number pools
...
For example,
a client requests a web page which in turn contains different
types of data (HTTP, SMTP, FTP etc
...

This enables the client system to receive multiple connection
over single virtual connection
...

Congestion Control
When large amount of data is fed to system which is not capable
of handling it, congestion occurs
...
TCP sets a window size telling the
other end how much data segment to send
...

• When keep-alive time expires, the host sends a probe
to check if the connection still exists
...

• If the acknowledgement of sent data does not receive
within the Retransmission time, the data segment is
sent again
...

• To resume the session a host needs to send Window
Size with some larger value
...

• When the Persist timer expires, the host re-sends its
window size to let the other end know
...


Timed-Wait:
• After releasing a connection, either of the hosts waits
for a Timed-Wait time to terminate the connection
completely
...

• Timed-out can be a maximum of 240 seconds (4
minutes)
...
It provides sequence number to
each of byte sent in segment
...
e
...

When a TCP Server crashes mid-way communication and restarts its process it sends TPDU broadcast to all its hosts
...


User Datagram Protocol
The User Datagram Protocol (UDP) is simplest Transport Layer
communication protocol available of the TCP/IP protocol suite
...

UDP is said to be an unreliable transport protocol but it uses IP
services which provides best effort delivery mechanism
...
This shortcoming makes this
protocol unreliable as well as easier on processing
...
For example, in case of
video streaming, thousands of packets are forwarded towards its
users
...
The best delivery
mechanism of underlying IP protocol ensures best efforts to
deliver its packets, but even if some packets in video streaming
get lost, the impact is not calamitous and can be ignored easily
...

Features










UDP is used when acknowledgement of data does not
hold any significance
...

UDP is simple and suitable for query based
communications
...

UDP does not provide congestion control mechanism
...

UDP is stateless
...

UDP Header


UDP header is as simple as its function
...

• Destination Port - This 16 bits information, is used
identify application level service on destination
machine
...
It is 16-bits field and
minimum value is 8-byte, i
...
the size of UDP header
itself
...
IPv4 has this
field as optional so when checksum field does not
contain any value it is made 0 and all its bits are set to
zero
...
This layer exists in both layered Models because of its
significance, of interacting with user and user applications
...

A user may or may not directly interacts with the applications
...
Because this layer is on the top of the layer stack, it
does not serve any other layers
...

When an application layer protocol wants to communicate with
its peer application layer protocol on remote host, it hands over
the data or information to the Transport layer
...


There’is an ambiguity in understanding Application Layer and its
protocol
...
except those applications which interact with the
communication system
...

On the other hand, when we use a Web Browser, which is
actually using Hyper Text Transfer Protocol (HTTP) to interact
with the network
...

Another example is File Transfer Protocol, which helps a user to
transfer text based or binary files across the network
...

Hence, irrespective of which software you use, it is the protocol
which is considered at Application Layer used by that software
...


Client Server Model
Two remote application processes can communicate mainly in
two different fashions:




Peer-to-peer: Both remote processes are executing at
same level and they exchange data using some shared
resource
...


In client-server model, any process can act as Server or Client
...


A system can act as Server and Client simultaneously
...
This
may also happen that both client and server processes reside on
the same machine
...
The second process acting as a Client
also opens a socket but instead of waiting for an incoming
request, the client processes ‘requests first’
...
It can either
be an information sharing or resource request
...
One process (client) calls the
procedure lying on remote host
...
Both processes are allocated stubs
...
It passes all the
parameters pertaining to program local to it
...

Kernel sends the data over the network and the other
end receives it
...

The parameters are passed to the procedure and the
procedure is then executed
...



Title: Transport Layer Introduction
Description: Transport Layer Introduction