|
Softpanorama |
May the source be with you, but remember the KISS principle ;-)
Softpanorama Search
|
The Transport layer transports data to and from the correct application. This process is known as end-to-end communication. In TCP/IP the Transport layer provides a transport service for application data.
The Transport layer header includes a destination port number that identifies the destination application program on the remote machine and a source port number that identifies the application on the originating machine.
In addition, the Transport layer handles error detection, can handle
recovery problems, and regulates the flow of information. The way in which
the Transport layer handles error detection, the sequence of data,
and flow regulation depends on which protocol is used.
There are two main protocols that operate at the Transport layer, TCP and UDP. The TCP/IP protocol stack features two Transport layer protocols, TCP and UDP:
Both are implemented as a part of the Solaris kernel. There three important binary properties that serve as the base of classification of transport layer protocols:
The first important distinction between transport layer protocols is connection-oriented vs. connectionless:
The second important distinction is "stateful vs. stateless" protocols:
The third important disctinction is "reliable vs. unreliable":
Based on this classification UDP and TCP looks like complete opposites:
UDP is a connectionless, stateless, and unreliable protocol. It is faster and more efficient for many lightweight or time-sensitive purposes. Also, its stateless nature is useful for servers that answer small queries from huge numbers of clients. UDP is required for broadcast (send to all on local network) and multicast (send to all subscribers).
With UDP, the application is responsible for handling message loss, duplication, sequence (delivery out of order), and loss of connection. UDP receives incoming data from the application and encapsulates the data into UDP datagrams. UDP datagrams have a leading header section hat contains the source and destination port numbers, followed by the data section.
16 32 bitsSource port Destination port Length Checksum
Data
TCP is a connection-oriented, stateful, and reliable protocol. TCP is suited for situations where large volumes of data must travel between systems, particularly across multiple routers and gateways. TCP
has four main features:
- Virtual circuit connection
- Full-duplex connection
- Unstructured stream orientation
- Buffered transfer
The TCP segment header has more fields then UDP header. The TCP header structure is as follows:
16 32 bitsSource port Destination port Sequence number Acknowledgement number Offset Resrvd U A P R S F Window Checksum Urgent pointer Option + Padding Data TCP header structure
Transport layer - Wikipedia, the free encyclopedia
From Wikipedia
Q1. What does the receiving host do with packets when it is using a connection-oriented protocol ?
a. acknowledges only the first and last packet, puts the packets in their proper order.
b. acknowledges only the first and last packet, discards in any packet that have arrived out of sequence.
c. acknowledges each packet and puts the packets in their proper order.
d. acknowledges each packet and discards in any packet that have arrived out of order
A: C
Q2. Which set has protocols of ONLY the Network layer ?
a. IP, UDP, TCP, RARP, ICMP
b. IP, UDP, ARP, RARP, ICMP
c. SPX, UDP, GNS, ARP, APPLETALK
d. IPX, FTP, ARP, RARP, ICMP
A: B
Q3. What are three purposes of ICMP :
a. router discovery
b. guarantee of transport
c. estimate of bandwidth
d. error messaging
e. diagnostics/testing
f. guarantee of uniqueness of node addresses
A: A,D,E
Q4. Connectionless protocols are implemented using ______.
a. UDP
b. TCP
c. IP
d. ICMP
A: a
Q5: Which layer in the TCP/IP Five-layer model performs end-to-end data transfers?
Copyright © 1996-2009 by Dr. Nikolai Bezroukov. www.softpanorama.org was created as a service to the UN Sustainable Development Networking Programme (SDNP) in the author free time. Submit comments This document is an industrial compilation designed and created exclusively for educational use and is placed under the copyright of the Open Content License(OPL). Site uses AdSense so you need to be aware of Google privacy policy. Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.
Disclaimer:
Last Modified: August 14, 2009