Two distinct techniques are used in data communications to transfer data. Each has its own advantages and disadvantages. They are the connection-oriented method and the connectionless method:
Chat with our AI personalities
In the transport layer there are two main protocols: TCP and UDP. TCP is acronym for transmission control protocol; it is a connection oriented protocol. That is, it first establishes a connection and then communicates. UDP is acronym for user datagram protocol; it is a connectionless protocol. That is, it does not establish any connection and just sends data.
A connection-based protocol uses a technique known as hand-shaking. This means that every packet that is transmitted needs a reply, so that the sender knows the packet arrived correctly. It relies on quality of transmission for this purpose. Connection-based protocols also have error detection and correction, flow control as well.
A connection-less protocol has none of the features above. It relies on speed, not quality, so it does not check or wait for a response from the receiver for any packets that are transmitted.
tcp makes a connection, checks whether the data us received and resends it if its not this is called a oriented protocol and examples of that is web browser and email udp does not guarantee delivery by first connecting and checking whether data is received this is called connectionless protocol. an example is broadcasting and other types of transmission
Connection Oriented Connection Less A connection-oriented networking protocol is one that delivers a stream of data in the same order as it was sent, after first establishing a communication session These protocols do not establish a connection between devices. As soon as a device has data to send to another, it just sends it. connection-oriented protocols are reliable Are not reliable Performance is slow due to overhead of establishing a connection, closing it and sending acknowledgements of receiving data. The servers are stateless servers. Data is guaranteed to be transferred in the order in which it was sent Successful data transfer to the destination from the source is not guaranteed. Data is transferred in a stream Data is transferred as datagrams (Packets). Used in FTP,HTTP TFTP,NFS
connectionless oriented protol is an http protocol.it is high security protocol.
connection oriented protocol is an fat protocol.it is not a security protocol
ex: in ur account 3000/- balance is there;
let assume u r processing applicateion is used http protocol.u enter into the ATM and pickout 500/-remaing 2500/-. it is irrespective of other person account and ur account.
if ur processing application is fat protocol u draw 500 from atrm and u come back.
after that some other person enter into ATM that person insert the ATM card into machine.he has drawn 2000.instead of his account he got money from ur accout.bcz ur application processing connection oriented protocol.
send u r query to javvadibabu@gmail.com
But i just want to know one thing. To my knowledge,ATM uses Point to point protocol, even if v use connection oriented protocol, in the connection oriented after the transaction is over the connection will be closed and if a new person comes in he has to establish a new connection only. I don't think you r right.
1. In connectionless communication there is no need to establish connection between source (sender) and destination (receiver). But in connection-oriented communication connection must established before data transfer. 2.Connection-oriented communication is more reliable then connectionless communication. 3.In connection-oriented communication information can be resend if there is an error in receiver side ( missing data, corrupt data etc. ).But in connectionless communication it is not possible because the destination does not inform the source about data is received or not. 4. Connection-oriented communication have higher overhead and and place greater demands on bandwidth. But in connectionless communication requires far less overhead than connection-oriented communication.
Connectionless communication is considered unreliable comparatively to connection-oriented communication. Connectionless does not create virtual circuit from source to destination. By not requiring an acknowledgement of receipt from the recipient connectionless communication carries less overhead. In contrast a connection-oriented communication requires an acknowledgement of receipt from the recipient which creates additional overhead which in turn increases the possibility of communication delays.
connectionless transmission is slightly less reliable than connection oriented transmission
connection oriented transmission takes slightly more time than connectionless transmission