Edulogycal

Educating with Information and Technology

Trending

Wednesday, February 14, 2018

Wednesday, February 14, 2018

What is Transmission Control Protocol. Services provided by TCP. Feature of TCP.


Transmission Control Protocol ( TCP)


TCP is process- to- process protocol service. It creates virtual connection between two TCP's to send data. TCP uses flow and error control mechanism at the transport lavel. In short TCP is a connection oriented reliable transport protocol. 


TCP Services:

Process to process communication:


  • Like UDP (User datagram protocol) TCP provides process- to- process communication uning port numbers.

There are some list of well-known port numbers:


  • Stream delivery service:


Unlike UDP, TCP is a stream oriented protocol. TCP allows the sending process to deliver data as s stream of bytes and allows the receiving processes to obtain data as a stream of bytes. TCP creates an environment in which two processes seem to be connected by a imaginary "tube" that carries thair data accross the interner. The sending process produces stream of bytes and the receiving process consumes them.


  • Sending and receiving buffers:

Because the sending and the receiving process may not write or read data at the some speed. TCP means buffers for storage . The sending buffer and the receiving buffer. One for each direction.

  • Segments:

Since the IP layer is the service provider for TCP later can not be sent as a stream of beats. It needs to be sent in packets. At the transport layer TCP groups a number of bytes together into a packet called a segment. 

  • Full duplex communication:

TCP offers full duplex service. In which data can flow in both directions at the same time.

  • Connection oriented service:

TCP is a connection oriented service. The connection establishment between two TCP's is not a physical connection. It is a virtual connection. 

  • Reliable service:

TCP is a reliable transport protocol. It means an acknowledgement mechanism to check the safe and sound arrival of data.


TCP features:


Numbering system:

Data being transmitted in segment in TCP, but the segment header is not having any field as segment number. Instead there are two field called the sequence number and the acknowledgement number.

Flow control:

TCP provides flow control. The receiver of the data controls the amount of data that are to be sent by the sender.
This is turn to prevent the receiver  from being over whelmed with data. The numbering system to allows TCP to use a byte oriented flow control. 

Error control:

To provide reliable service TCP implications an error control mechanism. Although error control considers a segment as the unit of data for error detection. Error control is byte oriented.

Congestion control: 

TCP takes into account congestion in the network. The amount of data sent by a sender is not only controled by the receiver, but is aloso determined bt the level of congestion in the network.


Wednesday, February 14, 2018

What is User Datagram Protocol (UDP). Operation of User Datagram Protocol. And uses of User Datagram Protocol.

User Datagram Ptotocol


The user datagram protocol is called a connectionless, unreliable trandpotrprotocol. It does not add anything to the services of IP except to provide process- to- process communication. Also it performs very limited error checking.
UDP packets called user datagram have a fixed size header of 8 bytes.

Souce code number:

This is the port number used by the process running on the source host. It is 16 bits long, which means that the port number can range from 0- 65,535.

Destination port number:

This is the port number used by the process used by the destination host. It is slso 16 but long.

Length:

This is a 16 bit field. That defines the total length oftheo source datagram, header and data.

Checksum:

This field us used to detect errors over the entire user data.

UDP Operations:

Connectionless services:

UDP provides a connectionless service, which means each user datagram send by UDP is an independent datagram. The user datagram are not numbered. Since there is no connection establishment and no connection establishment. So each user datagram can travel on a different path. UDP can not sent a string of data to UDP. Instead each request must be small enough to feed in to ine user datagram.

Flow and error control:

There is no flow control and hence no window mechanism. The receiver may overflow with incoming massages. 
There is no error control mechanism in UDP except for the checksum.

It means that the sender does not know if a massage has been last or duplicated. When the receiver detects an error through the checksum, the user datagram is silently discard. 

Encapsulation and decapsulation:

To send a massage fron ine process to another the UDP protocol encapsulates massages in a IP datagram.

Queuing:

Queues are associated with ports. When a process starts it requires a port number from the operation system. Then incomiand outgoing queues associated with each process is created.

Uses of UDP:

  1.  UDP is suitable for a process that requires simple- request- response communication.( It is not usually used for a process such as FTP that needs to send bulk data)
  2.  UDP us suitable for a process with internal flow and error control mechanism. Ex- TFTP ( trivial file transfer protocol)
  3. UDP is a suitable transport protocol for multicasting.
  4. UDP is used for management process such as SNMP.
  5.  UDP is used for some root updating protocols, such as routine information protocol.