In a short paragraph explain the transmission of data from a

In a short paragraph, explain the transmission of data from a client and a server. Explain the content (in general) of each message and the direction (from client to server or server to client).Assume that the client initiates the communication session. Include the exchange of messages in a TCP 3-way handshake.Assume that the client knows the IP address of the server already. Assume that the entire \"data\" to be transmitted from the client to the server is simply the message \"hello\" and will fit in one TCP packet.Assume that once the client sends the message successfully, that it tears down the connection and isn\'t going to leave it open.

Solution

Transmission of data from a client and a server

When a Web server sends an HTML file to a client, it uses the HTTP protocol to do so. The HTTP program layer asks the TCP layer to set up the connection and send the file. The TCP stack divides the file into packets, numbers them and then forwards them individually to the IP layer for delivery. Although each packet in the transmission will have the same source and destination IP addresses, packets may be sent along multiple routes. The TCP program layer in the client computer waits until all of the packets have arrived, then acknowledges those it receives and asks for the retransmission on any it does not (based on missing packet numbers), then assembles them into a file and delivers the file to the receiving application.

Understanding TCP 3-way handshaking

The TCP three-way handshake in Transmission Control Protocol (also called the TCP-handshake; three message handshake and/or SYN-SYN-ACK) is the method used by TCP set up a TCP/IP connection over an Internet Protocol based network.
TCP\'s three way handshaking technique is often referred to as \"SYN-SYN-ACK\" (or more accurately SYN, SYN-ACK, ACK) because there are three messages transmitted by TCP to negotiate and start a TCP session between two computers. The TCP handshaking mechanism is designed so that two computers attempting to communicate can negotiate the parameters of the network TCP socket connection before transmitting data such as SSH and HTTP web browser requests.

for example: let suppose there are 2 hosts, Host A and Host B.

Host A sends a TCP SYNchronize packet to Host B

Host B receives A\'s SYN

Host B sends a SYNchronize-ACKnowledgement

Host A receives B\'s SYN-ACK

Host A sends ACKnowledge

Host B receives ACK.
TCP socket connection is ESTABLISHED.

In a short paragraph, explain the transmission of data from a client and a server. Explain the content (in general) of each message and the direction (from clie

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site