In connection oriented method session is created before transmitting data. It provides a reliable data stream as it ensures the sequential transmission of data. In connection oriented method the process starts from the sender computer by sending a request to start the transfer that is to be acknowledged by the destination device before data can be sent and hence a virtual link is established between sender and receiver. This process is called handshaking.
After that data is transferred sequentially by processing acknowledgements. Sliding window and Stop and wait are used to provide flow control and Cyclic Redundancy Checks are used to provide error detection. These methods can either be implemented in the data link layer or in the transport layer. TCP provides a connection-oriented service.
In connectionless transmission there is no need to establish connection. The sender just starts transmitting data that's why it cannot provide the same reliability as offered by connection-oriented method. These techniques are used in the broadcast networks. In these networks there is need of maintaining the state information for the sender and receiver devices that's why it can only offer a small number of services. However the speed of connectionless networks is better than those of connection-oriented ones because they do not provide flow control and error detection. UDP provides connectionless services.
After that data is transferred sequentially by processing acknowledgements. Sliding window and Stop and wait are used to provide flow control and Cyclic Redundancy Checks are used to provide error detection. These methods can either be implemented in the data link layer or in the transport layer. TCP provides a connection-oriented service.
In connectionless transmission there is no need to establish connection. The sender just starts transmitting data that's why it cannot provide the same reliability as offered by connection-oriented method. These techniques are used in the broadcast networks. In these networks there is need of maintaining the state information for the sender and receiver devices that's why it can only offer a small number of services. However the speed of connectionless networks is better than those of connection-oriented ones because they do not provide flow control and error detection. UDP provides connectionless services.