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 5, 2018 in IoT (Internet of Things) by Upasana
• 8,530 points
77 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 5, 2018 by Annie97
• 2,190 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,530 points
413 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,530 points
1,382 views
0 votes
1 answer

Difference between IoTivity and AllJoyn?

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

answered Sep 5, 2018 in IoT (Internet of Things) by DataKing99
• 8,130 points
153 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 17, 2018 in IoT (Internet of Things) by anonymous2
• 4,260 points
194 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,260 points
54 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,060 points
355 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 188 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,260 points
98 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,190 points
91 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,190 points
65 views