Solved

what is tcp and http

Posted on 2014-12-24
5
196 Views
Last Modified: 2015-02-16
Hi
I want to know what exactly is tcp and http.
As per my understanding we can make a tcp socket between two machines and send data from one machine to other using it.

Http can also be used to communicate with other machine and get response back.

Whats the difference between http and tcp.
If i want to host a service which fetches user some infirmation using http get request, can i do the same thing using tcp ?

When to use tcp and when to use http ?
0
Comment
Question by:Rohit Bajaj
5 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 250 total points
ID: 40517316
TCP is Transmission Control Protocol and HTTP is Hyper Text Transmission Protocol.  They are two of the many Internet Protocols.  http://en.wikipedia.org/wiki/Transmission_Control_Protocol

TCP along with IP is used to connect sites to each other.  HTTP is used to deliver Hyper Text which is web pages from a server to a client.  HTTP does not run by itself but runs over TCP like many other protocols do like FTP.  TCP makes the logical connection but HTTP and FTP and the others are used to transfer data over a TCP connection.

At even more basic levels you have Ethernet and network cards and the other physical items that are used to physically connect one network point to another.
0
 
LVL 34

Expert Comment

by:Dan Craciun
ID: 40517384
>>When to use tcp and when to use http ?
You use tcp whenever you send data over a network (LAN, WAN, it does not matter).
You use http whenever you want to serve/receive a web page.

HTH,
Dan
0
 
LVL 5

Expert Comment

by:Dilip Patidar
ID: 40517479
Hello,

Please find the difference between TCP and HTTP..

http://www.differencebetween.net/technology/internet/difference-between-tcp-and-http/
0
 
LVL 57

Assisted Solution

by:giltjr
giltjr earned 250 total points
ID: 40517600
Think of networking as sending letters to people in the mail (a.k.a. snail mail).

UDP and TCP deal with the address on the outside of the envelope.  It has where it needs to go and where it came from.  

UDP is normal mail and TCP is when you request signed acknowledgement.  That is with UDP you have to assume it got to the destination.  TCP you get back something saying it got there.

HTTP is the "language" that the letter is written in and there are different "languages": FTP, SMTP, DNS, SSH, ect.

On top of that each "language" may have their own form of "grammar".  HTTP has different versions HTML as an example.
0
 

Author Comment

by:Rohit Bajaj
ID: 40565980
didnt got time to look at the posts. will look at it today or tomorow and close it if no further questions
thanks everyone
0

Featured Post

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question