suppose you want to make a connection between the client and server using connectionless oriented approach. So for it which protocol will be referred and why .elaborate the steps
Step 1
A connectionless service is a one where the data is transferred from server to client without creating any connection between the two ends.
Step 2
User Datagram Protocol or UDP is used for connectionless approach. In UDP the server does not accept any connection, it just waits for the datagrams, once arrived the datagrams which has the address of the sender which is used by the server to send data to correct client.
Steps involved in the entire process:
Server side -
Creating UDP socket.
Binding the socket to server address.
Waiting until datagram packets arrive from client.
Processing the datagram packet and sending a reply to client.
Going back to the
3rd step.
Client side -
Creating UDP socket.
Sending message to server.
Waiting until response from server arrives.
Processing reply and going back to 2nd if necessary.
Closing socket descriptor and exiting
Comments
Leave a comment