coap与http比较

his page compares CoAP vs HTTP and describes difference between CoAP and HTTP protocols. CoAP stands for Constrained Application Protocol and HTTP stands for Hyper Text Transfer Protocol. It provides link to difference between HTTP and HTTPS.

CoAP-Constrained Application Protocol

CoAP Architecture

This protocol is upgraded version of HTTP. It is designed for resource constained applications such as IoT/WSN/M2M etc. It is based on UDP. It uses ACK messages so that it will become reliable like TCP. It has low latency and consumes lesser power compare to HTTP. 
Refer CoAP Protocol basics➤.

HTTP-Hyper Text Transfer Protocol

HTTP connection

Figure-1 depicts HTTP protocol used between client and server as unsecured connection. HTTPS version of HTTP is used to provide secured connection. HTTP is used mainly to view web pages or websites. The protocol is designed for internet based applications and devices where power and any other constaints are not there.It is TCP based protocol. 
Refer HTTP and HTTPS basics➤.

Following is the tabular difference between CoAP and HTTP protocols.


Feature CoAP HTTP
Protocol It uses UDP. It uses TCP.
Network layer It uses IPv6 along with 6LoWPAN. It uses IP layer.
Multicast support It supports. It does not support.
Architecture model CoAP uses both client-Server & Publish-Subscribe models. HTTP uses client and server architecture.
Synchronous communication CoAP does not need this. HTTP needs this.
Overhead Less overhead and it is simple. More overhead compare to CoAP and it is complex.
Application Designed for resource constrained networking devices such as WSN/IoT/M2M. Designed for internet devices where there is no issue of any resources.
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值