Differenciation between HTTP and COAP

0 votes

Why do browsers and web servers not replace HTTP with COAP?

Given that, HTTP is mainly used for viewing web pages. COAP is a simplified version of HTTP for IoT or WSNs. Although COAP is based on UDP, it should have ACK messages to emulate TCP. Since COAP is simpler than HTTP, it will have lower latency and draw less power.

Is it expected that COAP will completely replace HTTP? Is it just a matter of time? 

Are there any features which are supported only by HTTP?

Sep 6, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
2,031 views

1 answer to this question.

0 votes
The industry plan is to improve HTTP by moving to HTTP/2, and HTTP/2 includes (among other features) a header compression, which should bring you similar benefits than CoAP.While most web servers and some browsers today support HTTP/2 already, AFAIK no browser nor any server support CoAP. Same goes for TLS vs. DTLS.

Are there features COAP cannot support but HTTP can?

As you said, HTTP is TCP based, while CoAP is UDP based. UDP requires that you send UDP pings every few seconds to keep the NAT/Firewall connection open, while in TCP typically it is only required every 15 min or so. So if you need to keep the connection open (e.g. for push technologies), then CoAP is less efficient than HTTP (and HTTP/2).
answered Sep 6, 2018 by Annie97
• 2,160 points

Related Questions In IoT (Internet of Things)

0 votes
1 answer

Difference between MQTT and Apache- kafka

MQTT is a standard protocol (with many ...READ MORE

answered Aug 31, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,752 views
0 votes
1 answer

comparision between OPC UA protocol and MQTT protocol

This is the first time I'm seeing ...READ MORE

answered Sep 4, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
3,150 views
0 votes
1 answer

Difference between IoTivity and AllJoyn?

Architecturally, IoTivity had four fundametal units: Discovery, ...READ MORE

answered Sep 6, 2018 in IoT (Internet of Things) by DataKing99
• 8,240 points
1,061 views
0 votes
1 answer

Difference between particle.publish event and particle.subscribe event in particle.cloud

Particle.publish() Publish an event through the Particle Cloud ...READ MORE

answered Sep 18, 2018 in IoT (Internet of Things) by anonymous2
• 4,280 points
1,384 views
0 votes
0 answers

Eclipse Californium CoAP wildcard as url path

I'm working on a CoAP app using ...READ MORE

Jul 19, 2018 in IoT (Internet of Things) by Matt
• 2,270 points
508 views
0 votes
1 answer

Sending CoAP requests using Python

It can be done using a library ...READ MORE

answered Aug 24, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
2,365 views
0 votes
1 answer

integrating CoAP and DTLS

Tested with development version 9184a75a21; $ git clone https://github.com/obgm/libcoap ...READ MORE

answered Sep 5, 2018 in IoT (Internet of Things) by lady technopath

edited Sep 5, 2018 by Vardhan 1,846 views
0 votes
1 answer

Californium CoAP path parameters

The short answer is yes you can ...READ MORE

answered Oct 10, 2018 in IoT (Internet of Things) by anonymous2
• 4,280 points
1,029 views
0 votes
1 answer

MQTT and CoAP Sensors and Actuators

For CoAP: Every 6LowPAN sensor mote has ...READ MORE

answered Oct 1, 2018 in IoT (Internet of Things) by Annie97
• 2,160 points
787 views
0 votes
1 answer

Why are oBIX and CoAP required together?

In IOT, CoAP is used as a ...READ MORE

answered Oct 9, 2018 in IoT (Internet of Things) by Annie97
• 2,160 points
709 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP