EMMA Distributed QoS-Aware MQTT Middleware for Edge Computing - - PowerPoint PPT Presentation

emma distributed qos aware mqtt middleware for edge
SMART_READER_LITE
LIVE PREVIEW

EMMA Distributed QoS-Aware MQTT Middleware for Edge Computing - - PowerPoint PPT Presentation

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


slide-1
SLIDE 1

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

slide-2
SLIDE 2

2

AWS IoT

slide-3
SLIDE 3

3

Subscribe to topic: /robot/arm Publish “move x,y,z” to /robot/arm

Decoupled messaging

slide-4
SLIDE 4

4

Trust? ! Availability? ! End-to-end latency: ??ms !

slide-5
SLIDE 5

5

Edge-Enabled MOM

Data centers

Internet

Mobile edge Extreme edge IoT Cloudlets Message broker Cloud-based MOM Edge-enabled MOM

Scale Proximity & Responsiveness

slide-6
SLIDE 6

6

▪ Popular platform for IoT

– ISO standardized pub/sub protocol – Low-bandwidth design

▪ Simple Protocol

– CONNACK – SUBSCRIBE(t), SUBACK(t) – PUBLISH(t, msg) – ...

slide-7
SLIDE 7

7

Static MQTT Topic Bridging

Local Broker Central Broker

Internal Topics

Static config Static config 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/

Edge Topic Bridge

slide-8
SLIDE 8

8

Goals

▪ Decentralized messaging middleware ▪ Leverages edge resources to reduce latency ▪ Can handle mobile clients ▪ Can handle volatile resources ▪ Seamlessly integrates with IoT infrastructure

slide-9
SLIDE 9

9

EMMA MQTT Middleware

C l i e n t GW c GW c Broker Broker D e v i c e Mo n i t

  • r

i n g p r

  • t
  • c
  • l

Controller

B r i d g i n g T a b l e s

Gateway

B r i d g i n g T a b l e R e c

  • n

fj g u r a

  • t

i

  • n

E n g i n e R E S T E n d p

  • i

n t s N e t w

  • r

k m

  • n

i t

  • r

B u fg e r

  • u

t B u fg e r i n MQ T T S e r v e r D i s c

  • v

e r y S e r v i c e

https://git.dsg.tuwien.ac.at/emma/emma

slide-10
SLIDE 10

10

QoS Optimization & Balancing

0-2 ms 2-5 5-10 PINGREQ PINGRESP Broker Gateway

▪ Continuously monitor network QoS via simple UDP protocol ▪ For each client create latency group to brokers ▪ Connect gateways to a broker in closest group ▪ Balance load between brokers in same group

slide-11
SLIDE 11

11

Orchestration

:b1: :b2: :gateway: :controller SUBSCRIBE ... CONNECT DISCONNECT replay control packets TCP connect TCP open update network RECONACK(b2) RECONREQ(b2) :brokerA :controller :gateway :client CONNACK CONNACK lookup result(brokerA) store packet CONNECT CONNECT

slide-12
SLIDE 12

12

Evaluation

u s

  • e

a s t e u

  • w

e s t e u

  • c

e n t r a l

Broker Gateway Broker Gateway Controller . . . . . . Gateway Broker

9 8 m s 2 7 m s 8 5 m s https://git.dsg.tuwien.ac.at/emma/pubsub-benchmark

slide-13
SLIDE 13

13

Controller eu-west eu-central us-east

slide-14
SLIDE 14

14

Controller <1 ms 98 ms 27 ms 85 ms

slide-15
SLIDE 15

15

Controller

slide-16
SLIDE 16

16

Controller

slide-17
SLIDE 17

17

Controller

slide-18
SLIDE 18

18

Controller

slide-19
SLIDE 19

19

Controller

slide-20
SLIDE 20

20

Controller

slide-21
SLIDE 21

21

Controller

slide-22
SLIDE 22

22

Message Loss

▪ Caused by subscriber mobility ▪ Guaranteed message delivery requires transactional reconnection

slide-23
SLIDE 23

23

More Results in the Paper

7 1 2 3 4 5 6 8

slide-24
SLIDE 24

24 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

QoS Monitoring & Reconfiguration

slide-25
SLIDE 25

25

Related Work – P2P Pub/Sub

NCA’05 DEBS’05 MW’05 PODC’07

slide-26
SLIDE 26

26

State of the Art – Research

slide-27
SLIDE 27

27

State of the Art – The Real World

  • ScalAgent. JoramMQ, a distributed MQTT broker for the Internet of Things.

White paper. 2014.