Solved

what is tcp and http

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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SD - WAN 2 45
HSRP not working on N7K-c7018 3 45
P2P and MPLS 3 47
DNS @ Naked Domain Record 5 69
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.
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

863 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

20 Experts available now in Live!

Get 1:1 Help Now