Computer Science, asked by Diya1111111, 1 year ago

What are the functions of TCP/IP ?

Answers

Answered by Girishmathur
6
In the simplest of terms, the IP protocol is used to route data packets through a network so it reaches the right destination (basically, data from the sender to the receiver). IP also is the mechanism to identify a computers network address and host address (thus forming the IP address).

The TCP protocol is used to ensure the data from the sender to the receiver gets there reliability and in order (meaning the receiver can put the data it receives from the sender in order so the data makes sense since there is no way to know which parts of all the data the sender is sending will actually be received by the receiver). Also, TCP is responsible for congestion control, meaning it controls the speed at which data is being sent (this is more complicated than it sounds and entire papers are written on how to determine the correct speed since there is no DIRECT feedback on how congested a network is).

So basically:

IP: 
1.) Route data from sender to receiver.
2.) Define an IP address.

TCP:
1.) Ensure data arrives to the receiver.
2.) Ensure the data is in order.
3.) Control speed at which data is sent (congestion control algorithm)

Note I’ve simplified this greatly. There are a lot technical details, and I do mean a lot.

Answered by Anonymous
4
Definition of TCP/IP
TCP/IP stands for “Transmission Control Protocol / Internet Protocol”. It is basically a network protocol that defines the details of how data is sent and received through network adapters, hubs, switches, routers and other network communications hardware. It was developed by the US department of defense for the purpose of connecting government computer systems to each other through a global, fault tolerant, network. The defense department network was opened up to research institutions and eventually the general public to create what is now the Internet. The TCP/IP protocol was also placed in the public domain so that any software company could develop networking software based on the protocol. Because it is the primary protocol used on the Internet, and it is in the public domain, it has become the most popular networking protocol throughout the world and is therefore well supported by almost all computer systems and networking hardware.

How they work?
The TCP/IP protocol is designed such that each computer or device in a network has a unique "IP Address" (Internet Protocol Address) and each IP address can open and communicate over up to 65535 different “ports” for sending and receiving data to or from any other network device. The IP Address uniquely identifies the computer or device on the network and a "Port Number" identifies a specific connection between one computer or device and another (i.e between two IP Addresses). A TCP/IP "port" can be thought of as a private two-way communications line where the port number is used to identify a unique connection between two devices. The concept is very similar to any other type of port on your PC (serial, parallel, etc) except that instead of having a physical connection, the TCP/IP protocol creates a "virtual IP port" and the network hardware and software is responsible for routing data in and out of each virtual IP port.

TCP/IP connections work in a manner similar to a telephone call where someone has to initiate the connection by dialing the phone. At the other end of the connection, someone has to be listening for calls and then pick up the line when a call comes in. In TCP/IP communications, the IP Address is analogous to a telephone number and the port number would be analogous to a particular extension once the call has been answered. The “Client” in a TCP/IP connection is the computer or device that “dials the phone” and the “Server” is the computer that is “listening” for calls to come in. In other words, the Client needs to know the IP Address of whatever Server it wants to connect to and it also needs to know the port number that it wants to send and receive data through after a connection has been established. The Server only has to listen for connections and either accept them or reject them when they are initiated by a client.

Once a connection through a TCP/IP port has been established between a TCP/IP client and a TCP/IP server, data can be sent in either direction exactly the same way that data is sent through any other type of port on a PC (serial, parallel, etc.). The only difference is that the data is sent across your network. The connection between a Client and a Server remains open until either the client or the server terminates the connection (i.e. hangs up the phone). One extremely nice benefit of the TCP/IP protocol is that the low level drivers that implement the sending and receiving of data perform error checking on all data so you are guaranteed that there will be no errors in any data that you send or receive.

Source: Internet.
Similar questions