EMMA Distributed QoS-Aware MQTT Middleware for Edge Computing Applications Thomas Rausch, Stefan Nastic, Schahram Dustdar TU Wien Distributed Systems Group http://dsg.tuwien.ac.at
AWS IoT 2
Publish “move x,y,z” to /robot/arm Subscribe to topic: /robot/arm Decoupled messaging 3
! Trust? ! Availability? ! End-to-end latency: ??ms 4
Edge-Enabled MOM Scale Message broker Data centers Cloud-based MOM Edge-enabled MOM Internet Mobile edge Cloudlets Extreme edge IoT Proximity & Responsiveness 5
▪ Popular platform for IoT – ISO standardized pub/sub protocol – Low-bandwidth design ▪ Simple Protocol – CONNACK – SUBSCRIBE(t), SUBACK(t) – PUBLISH(t, msg) – ... 6
Static MQTT Topic Bridging Internal Topics Central Local Broker Topic Bridge Broker Static Static config config Edge Cloud M. Garcia, “How to Bridge Mosquitto MQTT Broker to AWS IoT” The Internet of Things on AWS -- Official Blog, 2016. https://aws.amazon.com/blogs/iot/how-to-bridge-mosquitto-mqtt-broker-to-aws-iot/ 7
Goals ▪ Decentralized messaging middleware ▪ Leverages edge resources to reduce latency ▪ Can handle mobile clients ▪ Can handle volatile resources ▪ Seamlessly integrates with IoT infrastructure 8
EMMA MQTT Middleware https://git.dsg.tuwien.ac.at/emma/emma Controller N e t w o r k R e c o n fj g u r a - B r i d g i n g m o n i t o r t i o n E n g i n e T a b l e s D i s c o v e r y S e r v i c e R E S T E n d p o i n t s l o c o t Broker o r p g n MQ T T i Broker r S e r v e r o B r i d g i n g t i T a b l e n Mo Gateway GW GW C l i e n t B u fg e r i n B u fg e r o u t c c D e v i c e 9
QoS Optimization & Balancing ▪ Continuously monitor network Broker Gateway QoS via simple UDP protocol ▪ For each client create latency group to brokers ▪ Connect gateways to a broker in closest group PINGREQ PINGRESP ▪ Balance load between 0-2 ms brokers in same group 2-5 5-10 10
Orchestration :controller :gateway: :b2: :b1: :client :gateway :controller RECONREQ(b2) CONNECT TCP connect store packet :brokerA TCP open DISCONNECT lookup replay result(brokerA) control packets RECONACK(b2) CONNECT CONNECT CONNACK update CONNACK SUBSCRIBE network ... 11
Evaluation https://git.dsg.tuwien.ac.at/emma/pubsub-benchmark u s - e a s t e u - w e s t 8 5 m s Gateway Gateway Broker Broker . . . . . . 9 8 m s 2 7 m s e u - c e n t r a l Broker Controller Gateway 12
eu-west us-east eu-central Controller 13
<1 ms 85 ms 27 ms Controller 98 ms 14
Controller 15
Controller 16
Controller 17
Controller 18
Controller 19
Controller 20
Controller 21
Message Loss ▪ Caused by subscriber mobility ▪ Guaranteed message delivery requires transactional reconnection 22
More Results in the Paper 2 1 3 4 5 6 7 8 23
QoS Monitoring & Reconfiguration Dipl.-Ing. (MSc) Thomas Rausch Research Assistant TU Wien Distributed Systems Group Argentinierstraße 8/194-02, 1040, Vienna, Austria T : +43 1 58801 184 838 E : t.rausch@dsg.tuwien.ac.at dsg.tuwien.ac.at/stafg/trausch 24
Related Work – P2P Pub/Sub NCA’05 DEBS’05 MW’05 PODC’07 25
State of the Art – Research 26
State of the Art – The Real World ScalAgent. JoramMQ, a distributed MQTT broker for the Internet of Things. White paper. 2014. 27
Recommend
More recommend