IoT接入协议、通信协议
2017-06-20 22:32
302 查看
先读两篇文章
物联网通信协议的详解及选择建议 - 全文
常见物联网近距离无线通信技术解析 - 全文
对于物联网传输协议 ,主要分两大类 (只讨论无线传输)
接入协议 和 通信协议
1、接入协议,主要功能是组网,短距离传输等,图1为常见的相关协议
图1
图片来源:http://electronicsofthings.com/news/internet-of-things-gateway-platform-and-applications/
2、通信协议(只考虑应用层协议)(应用层协议基本都是基于TCP/UDP的,可想象OSI模型)
常见通信应用层协议见图2
图2
图2来源http://www.cnblogs.com/jhj117/p/5521083.html
注:REST 是一种规范, 存在3种规范 为RPC/SOAP/REST. REST FUL/ HTTP 为遵守REST规范的一种HTTP协议
Communication Protocol
There are many communication protocols which can be used by the IoT gateway to communicate with the cloud application. Here we discuss some of the more popular technologies along with their pros and cons.
Plain HTTP: This is by far the most ubiquitous protocol. It’s
widely accepted by servers and being backed by Internet standards has least compatibility issues. It also maps naturally with the RESTful APIs.However it suffers from large overhead in form of HTTP headers andtext
basedformat. It is stateless despite being run on top of TCP. That makes it unsuitable for real-time usage. The client must send a request in order to get a response (command) from the server.Client has
to keep polling for updates from the server.
CoAP: Constrained Application
Protocol can be considered to be binary version of HTTP. It improves on some limitations on HTTP. It has very concise headers and supported binary data format thus reducing the overhead. It can be used on top of TCP
or other transport as well even SMS. CoAP packets can be easily translated toa HTTP packet. However because of negligible Internet infrastructure support it does not play well with firewalls,proxies and
routers. Thus this protocol is only suitable for private networks typically inside the sensor network.
Web sockets: It is a
new protocol also backed by web standards. It has the same addressing and handshake mechanism as used by HTTP. Thus making it compatible with existing network infrastructure. Oncehandshake is complete it switches to
duplex communication on top of TCP. This makes it suitable forreal time, two way communication. It’s especially suitedin shared hosting
environments and gateways operating behind proxies.
MQTT: Is also a popular protocol running (optionally) on top of
TCP. It has a topic subscriber model. Though more suited for broadcasting messages to interested gateways, it’s also used forgateway to server communication. It has some features like last message persistence and will
and testament message that make it useful for IoT application.
AMQP: This perhaps is the most suited protocol for gateway server
communication. This protocol acts as a storing queue and ensures that packets are not lost, even incase of temporary outage.
XMPP: Extensible Messaging and Presence Protocol is a popular
protocol used by chat clients for real time communication. It standardizeslot of things like user authentication and message IDs. However owing to its complex specification and
exchange of data using verbose XML format makes it unsuitable for IoT application.
案例阅读:Internet of Things Gateway Platform and Applications A discussion of challenges
in designing an IoT gateway and designing a generic Gateway platform
http://blog.csdn.net/pengpengjy/article/details/53671913
相关文章推荐
- IoT接入协议、通信协议
- HomeKit 设备接入协议
- SYD8801微信接入测试结果【精简协议】【AirSync】
- NET(C#)接入Dubbo服务,Zookeeper作为Dubbo服务的注册中心,实现thrift协议访问接口(3)
- NB-IoT标准核心协议冻结
- 使用OAuth2.0协议的github、QQ、weibo第三方登录接入总结
- 接入侧的IGMP 协议
- 腾讯QQ第三方登录1:申请接入(OAuth2.0协议)
- F问题3-7:以太网使用载波监听多点接入碰撞检测协议CSMA/CD。频分复用FDM才使用载波。以太网有没有使用频分复用?
- [Micropython][ESP8266] TPYBoard V202 之MQTT协议接入OneNET云平台
- [Micropython][ESP8266] TPYBoard V202 之MQTT协议接入OneNET云平台
- 基于802.1x协议的接入认证简单实现
- 接入点内部协议及其在接入点上的实现
- Andlink 协议的三种接入模式
- IoT---(1) 窄带物联网NB-IoT协议必须要了解的几个问题
- 802.1x基于端口的接入控制协议
- Android设备标准HID协议(外接输入设备)接入蓝牙扫描枪的各种坑与解决办法
- SYD8801微信接入开始【微信蓝牙精简协议】【AirSync开发文档】
- 接入点内部协议及其在接入点上的实现