Azure IoT Edge vs Protocol Gateway (IoT Hub)
Asked Answered
O

3

9

Our existing IoT Platform uses Azure Protocol Gateway and is working well. I just realized that MS Azure has launched a newer version for Protocol Gateway called IoT Edge. I was just looking for the new feature available in IoT Edge and now I'm completely confused between both components:

  • IoT Edge majorly supports local connectivity between device and gateway. What if this is not part of my requirement? Should I still upgrade to IoT Edge?
  • I don't see any performance improvements - Protocol Gateway vs Iot Edge

I understand that the answer could be a broader discussion but can anyone provide a simple explanation?

Oceanus answered 29/4, 2019 at 13:0 Comment(0)
L
3

I recommend you read a bit about Edge Computing. IoT Edge is the MS solution for Edge Computing. It allows data processing and analysis nearest the IoT devices. This shortens the latency regarding some requests which have "critical time" requirements, since the data do not need to reach the cloud.

The IoT Hub is a protocol gateway. I think the main requirement here is not "performance". So, the point is not to compare between IoT Edge and IoT Hub. The key point about IoT Hub is the interoperability it provides between some common protocols used by IoT devices: AMQP, MQTT and HTTPS. It is more related to the ease of integration among IoT system components that may be using different protocols to communicate.

Lib answered 29/4, 2019 at 13:38 Comment(0)
T
1

Azure Protocol gateway is required for conversion of protocols and ease of interoperability. For example devices that do not hold their own IoT Hub identity but speak in different protocols, to make the conversation in a common meaning, the identity translation is required. The Azure Protocol gateway does this extensively. Once the uncommon protocols (i.e., Bacnet, OPC-UA, BLE, Proprietary) are used from several devices in the field, the Azure Protocol Gateway translates to IoT Hub Primities and send the data using MQTT, AMQP to the IoT Hub premises. This gives data transparency as well.

So in simple words azure protocol gateway helps in protocol translation while azure iot edge provides transparency and IoT Hub identity to the field devices.

Transnational answered 16/5, 2019 at 5:21 Comment(0)
C
1

It depends on the type of requirement or use case and the devices that you have with you.

In general, edge device is a device that sits closer to hardware but far away from cloud, which brings computation and data storage closer to the location where it is needed, to improve response times and save bandwidth. In scenarios where the latency could be high to send it to cloud and process it, the edge device shall be helpful in doing quick processing / analytics. Edge device brings out part of the activities that were done in cloud computing capabilities to local devices and hence reduce delays, increase processing and reduce security issues etc. Typical use cases are time critical scenarios like notification of key equipment malfunction or for a autonomous car to stop immediately, it is felt that to process immediately by having a node nearby and act upon rather than sending it all the way to cloud and act on it.

However, if there is a use case that the latency or bandwidth usage is not a constraint and there is processing hardware limitation, then it is preferred to send the data to cloud and have it processed. Here, a gateway is a device that collects data from sensors for the purpose of analytics, aggregation and translates to protocol that is required to communicate with cloud. Also, note that the protocols such as HTTP, AMQP, and MQTT are the default protocols that Azure IoT Hub supports for communication over the internet with devices or gateways. Few devices or field gateways might not be able to use one of these default protocols and will require protocol supports and in such cases, you can use a gateway that can enable a protocol wrapper for IoT Hub endpoints by bridging the traffic to and from IoT Hub, hence, avoiding any impact on your IoT implementation. This is where Azure IoT protocol gateway is helpful.

The Azure IoT protocol gateway is a cloud feature or framework for protocol adaptation and is a pass-through component that accepts device connections over a specific protocol and it bridges the traffic to IoT Hub. It is designed for high-scale, bidirectional device communication with IoT Hub.

The main difference is that protocol gateway is a cloud feature so whichever protocol your device uses, it needs to at least be able to send its messages to the cloud for protocol translation. However, the IoT Edge, as the name suggests it is part of edge computing and it sits closer to device. It runs locally and can communicate with devices on the local network before sending information to the cloud. And, of course, IoT Edge enables additional scenarios if you're looking to do other edge computing. Azure IoT Edge can also be used to satisfy any need for an IoT gateway as well, whether it's related to connectivity, identity, or edge analytics. Hence, there are three patterns for using an IoT Edge device as a gateway such as transparent, protocol translation, and identity translation which you can choose as per your deployment use case or requirement. IoT Edge device accomplishes this with the help of IoT Edge runtime .

Carrnan answered 23/2, 2020 at 7:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.