Bundle Protocol Mail Convergence Layer Leveraging legacy Internet - - PowerPoint PPT Presentation

bundle protocol mail convergence layer
SMART_READER_LITE
LIVE PREVIEW

Bundle Protocol Mail Convergence Layer Leveraging legacy Internet - - PowerPoint PPT Presentation

Platzhalter fr Bild, Bild auf Titelfolie hinter das Logo einsetzen Bundle Protocol Mail Convergence Layer Leveraging legacy Internet infrastructure for DTNs Sebastian Schildt, Bjrn Gernert and Lars Wolf CHANTS 2013, Miami What is it?


slide-1
SLIDE 1

Platzhalter für Bild, Bild auf Titelfolie hinter das Logo einsetzen Sebastian Schildt, Björn Gernert and Lars Wolf CHANTS 2013, Miami

Bundle Protocol Mail Convergence Layer

Leveraging legacy Internet infrastructure for DTNs

slide-2
SLIDE 2
  • S. Schildt | BP Mail Convergence Layer | Page 2 / 13

PC Sensor Node IEEE 802.11 (WiFi) IEEE 802.15.4 (“ZigBee”) IP TCP Bundle Protocol (RFC 5050)

TCP Convergence Layer

Bundle Protocol (RFC 5050)

802.15.4 Convergence Layer

DTN Apps DTN Apps

What is it?

§ A Convergence Layer (CL) for RFC 5050 - Bundle Protocol (BP) § Established CLs include

§ TCP, UDP, IEEE802.15.4, …

§ This work: SMTP/IMAP based CL § Full specification (internet draft) § Full implementation (for IBR-DTN)

slide-3
SLIDE 3
  • S. Schildt | BP Mail Convergence Layer | Page 3 / 13

Why another CL? Why this?

§ The Internet Mail System already possesses DTN-like store-carry and forward characteristics

§ Existing work has put mail systems on top of DTN (DakNet, Bytewalla,…) § We turn this around: Putting BP into mails should be easy

slide-4
SLIDE 4
  • S. Schildt | BP Mail Convergence Layer | Page 4 / 13

Why another CL? Why this?

§ For Mobile Users

§ Opportunistic (P2P) scenarios are too energy intensive, even with energy- efficient scanning schedules to be practically usable § Asynchronicity might make delivery impossible or imposes extra hops § Always-on well-known internet based BP routers could solve the problem for situations were direct P2P communication is not possible

MailCL can solve this in a much more elegant and cost-efficient way!

slide-5
SLIDE 5
  • S. Schildt | BP Mail Convergence Layer | Page 5 / 13

Practical Benefits

Static IPND DHT MCL n0 online n1 online n0 offline A B C D A B C D

Static

✔ ✔ ✔

IPND

✗ p

✔ ✔

DHT

✗ ✗ p

MCL

✔ ✔

✔ Successful Transmission p Partial Transmission ✗ Failed Transmission Bundle Transmission Transmission Setup Time

Sending a bundle from node n0 to n1

slide-6
SLIDE 6
  • S. Schildt | BP Mail Convergence Layer | Page 6 / 13

Encoding

Version ¡

  • Proc. Flags ¡

Block length ¡ Destination scheme offset ¡ Destination SSP offset ¡ Source scheme offset ¡ Source SSP offset ¡ Report-to scheme offset ¡ Report-to SSP offset ¡ Custodian scheme offset ¡ Custodian SSP offset ¡ Creation Timestamp time ¡ Creation Timestamp sequence number ¡ Lifetime ¡ Dictionary length ¡ Dictionary byte array (variable) ¡ Optional: Fragment offset ¡ Optional: T

  • tal application data unit length ¡

Primary Block

E-Mail E-Mail Header E-Mail Body

slide-7
SLIDE 7
  • S. Schildt | BP Mail Convergence Layer | Page 7 / 13

Encoding

Block type ¡ Block Proc. Flags ¡ Block length ¡ Payload (variable) ¡

Payload Block

E-Mail E-Mail Headers E-Mail Body MIME-Part (E-Mail text) MIME-Part (1st attachment)

slide-8
SLIDE 8
  • S. Schildt | BP Mail Convergence Layer | Page 8 / 13

Encoding

E-Mail E-Mail Header E-Mail Body MIME-Part (E-Mail text) MIME-Part (1st attachment) Block type ¡ Block Proc. Flags ¡ EID Reference Count ¡ Ref_scheme_1 ¡ Ref_ssp_1 ¡ Ref_scheme_2 ¡ Ref_ssp_2 ¡ Block length ¡ Payload (variable) ¡ Block type ¡ Block Proc. Flags ¡ EID Reference Count ¡ Ref_scheme_1 ¡ Ref_ssp_1 ¡ Ref_scheme_2 ¡ Ref_ssp_2 ¡ Block length ¡ Payload (variable) ¡ MIME-Part (2nd attachment) MIME-Part (3rd attachment)

Extension Blocks

slide-9
SLIDE 9
  • S. Schildt | BP Mail Convergence Layer | Page 9 / 13

Example

Return-path: <sender@server> Envelope-to: recv@server Delivery-date: Wed, 23 Jan 2013 19:44:25 +0100 From: sender@server To: recv@server Subject: Bundle for mail://sender@server Bundle-EMailCL-Version: 1 Bundle-Flags: 144 Bundle-Destination: dtn://some/eid Bundle-Source: dtn://second/eid Bundle-Report-To: dtn:none Bundle-Custodian: dtn:none Bundle-Creation-Time: 412281870 Bundle-Sequence-Number: 1 Bundle-Lifetime: 3600 Bundle-Payload-Flags: 8 Bundle-Payload-Block-Length: 35 Bundle-Payload-Data-Name: payload.data Content-Type: multipart/mixed; boundary="=_f-20r0xUuORzjAo2CVz1bGFWJK1irHf4t+jNIoYURaTVkAY6" This is a multi-part message in MIME format. Your mail reader does not understand MIME message format.

  • -=_f-20r0xUuORzjAo2CVz1bGFWJK1irHf4t+jNIoYURaTVkAY6
  • -=_f-20r0xUuORzjAo2CVz1bGFWJK1irHf4t+jNIoYURaTVkAY6

Content-Type: application/octet-stream Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=payload.data VGhvcm91Z2ggcmVhZGVyIGFjaGlldmVtZW50IHVubG9ja2VkIQ==

  • -=_f-20r0xUuORzjAo2CVz1bGFWJK1irHf4t+jNIoYURaTVkAY6--

For full technical specifications of the protocol consult the draft http://tools.ietf.org/html/ draft-gernert-dtnrg- mailcl-01

slide-10
SLIDE 10
  • S. Schildt | BP Mail Convergence Layer | Page 10 / 13

Design Issues for Implementations

In IBR-DTN we choose the concept of a virtual node, because

  • a bundle send to a mail address will be considered forwarded but not delivered
  • if a direct contact is possible later, the sender/forwarder will still have a copy

and would deliver it

slide-11
SLIDE 11
  • S. Schildt | BP Mail Convergence Layer | Page 11 / 13

Bandwidth

1000 2000 3000 4000 5000 6000

AOL Arcor freenet Gmail GMX T-Online web.de

bandwidth [kbit/s] 1 MiB 5 MiB 10 MiB

Sending bundles from our own mailserver to various freemail providers

slide-12
SLIDE 12
  • S. Schildt | BP Mail Convergence Layer | Page 12 / 13

Latencies

50 100 150 200 250 AOL Arcor freenet Gmail GMX T-Online web.de Latency [s]

Latency when pinging a node using different freemail providers

16.9 13.1 177.6 11.0 12.0 23.1 11.0

slide-13
SLIDE 13
  • S. Schildt | BP Mail Convergence Layer | Page 13 / 13

Conclusions

§ Presented a Mail Convergence Layer for BP networks using SMTP and IMAP § Mailservers can act as light-weight always-on BP routers, alleviating the need to deploy additional hardware § Use standard mail providers for free and leverage the resources

  • f the internet mail system for DTN apps

§ Full specifications and implementation for IBR-DTN available

https://github.com/ibrdtn/ibrdtn http://tools.ietf.org/html/draft-gernert-dtnrg-mailcl-01 Thank you! Questions?

slide-14
SLIDE 14
  • S. Schildt | BP Mail Convergence Layer | Page 14 / 13

Working Principle

Daemon 1 Daemon 2 TCP/UDP Mail-Server Mail-Server SMTP IMAP SMTP