Solved

what is tcp and http

Posted on 2014-12-24
5
186 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 82

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

This is an article about my experiences with remote access to my clients (so that I may serve them) and eventually to my home office system via Radmin Remote Control. I have been using remote access for over 10 years and have been improving my metho…
Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now