1 / 26

E-mail over low bandwidth networks

E-mail over low bandwidth networks. Indika Wasala Sasanka Usgoda Arachchi Dr. Gihan Dias. Contents. Objective Research Problem Previous Work at UoM Other Related work Current Project Future Work References. Objective. To optimize email communication over Low Bandwidth networks.

carlota
Download Presentation

E-mail over low bandwidth networks

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. E-mail over low bandwidth networks Indika Wasala Sasanka Usgoda Arachchi Dr. Gihan Dias

  2. Contents • Objective • Research Problem • Previous Work at UoM • Other Related work • Current Project • Future Work • References

  3. Objective • To optimize email communication over Low Bandwidth networks.

  4. Problem • Dialup internet connections in rural areas. • ADSL connections with shared bandwidth. • Expensive Leased Lines. • CDMA/GPRS connections. • Download delays • Large attachments

  5. Previous work at UoM • On-the-fly Inter-proxy Data Compression for Web Access - Pradeepa Gurusinghe, Gihan Dias, Vishaka Nanayakkara • A Market-Based Approach to Control Web Bandwidth Usage - Chamara Dissanayake, Gihan Dias • Dynamic Bandwidth Negotiation among Web Proxies - Sumith Gamage, Gihan Dias

  6. Other Related Work • draft-ietf-lemonade-compress-04 • COMPRESS extension • IMAP Connection is compressed effectively and efficiently. • to reduce the bandwidth usage of IMAP • Commands • CAPABILITY • Response COMPRESS=DEFLATE • COMPRESS DEFLATE • Response OK DEFLATE active

  7. Current Project E-mail over low bandwidth networks

  8. Solution • IMAP proxy server and proxy client to optimize email communication over low bandwidth connection. email server email client IMAP Proxy client Legacy email client IMAP Server IMAP Proxy server Low bandwidth network

  9. Scope email client • IMAP Proxy client functions • Defining filter rule set • Assignment of priorities to emails. • Compression of IMAP requests • Decompression of IMAP responses • Sending decompressed responses to client • Sending compressed requests to server IMAP Proxy client Legacy email client

  10. Scope cont.. email server • IMAP Proxy Server functions • Email filtering • Selecting a pre-fetch model • Compression of IMAP responses • Different compressors for different content-types • Decompression of IMAP requests and sending to IMAP server. • Spam filtering IMAP Server IMAP Proxy server

  11. Solution Components • Mail server : qmail (www.qmail.org) • IMAP Server : binc imap (www.bincimap.org) • IMAP proxy : imapproxy (www.imapproxy.org) • All are open source components.

  12. Proxy Client Configuration • Filtering Rules • Configured in proxy client • Using a simple UI • Using config file • <header field:”matching string”> <priority> <image compression on/off> • from:”x@xyz.com” 1 0

  13. Proxy Client Configuration contd.. • Priorities and Pre-fetching • Priority 1 : Pre-fetch whole message • Priority 2 : Pre-fetch first 1 KB of the message • Priority 3 : Pre-fetch only the header information including attachment type if there are any. • Priority 4 : Delete messages

  14. Pre-fetching • Static • Pre-fetch at night or when the link is idle • Dynamic • While previous message / first part of message is being read

  15. Client Connects Process Client Is Link idle ? Requests Get All unseen UIDs and put them into a list IMAP Proxy server Operation NO YES

  16. Download user rule configuration into proxy server For each UID in list get # Format of a rule header and check whether Assign default priority From : x @ xyz . com 1 0 any match is found in rules = 3 config . Check Priority IMAP Proxy server Operation Contd.. NO YES

  17. IMAP Proxy server Operation Contd.. • Priority = 1 • Check for compression bit for images • Compress or leave image in original form • Compress text/html part • Send whole email to proxy client

  18. IMAP Proxy server Operation Contd.. • Priority = 2 • Check for compression bit for images • Compress or leave image in original form • Store attachments • Generate a URLs for attachments • Append URLs to the end of email • Get 1st KB of the email • Append a URL to next KB • Compress and send to proxy client

  19. IMAP Proxy server Operation Contd.. • Priority = 3 • Check for compression bit for images • Compress or leave image in original form • Leave any other attachment in original form • Compress email header • Send header to proxy client

  20. IMAP Proxy server Operation Contd.. • Priority = 4 • Delete email • Remove UID from the list

  21. Client Connects toproxy client uncompreses pre fetched email headers Email box will be populated with the headers of pre - fetched emails Client fetches an email Checks the priority of the requested email IMAP Proxy client operation

  22. IMAP Proxy client operation contd.. • Priority = 1 • Uncompress and Send pre-fetched mail to email client • Check priority of next email • If 3 start fetching next email from server • If priority is 1 or 2 check priority of next email

  23. IMAP Proxy client operation contd.. • Priority = 2 • Uncompress and Send pre-fetched part to email client • Start fetching next part from the server • If end of mail check priority of next email • If 3 start fetching next email from server • If priority is 1 or 2 check priority of next email

  24. IMAP Proxy client operation contd.. • Priority = 3 • If it was pre-fetched, uncompress and send to email client • If not fetch from server, uncompress and send to email client • Check priority of next email • If 3 start fetching next email from server • If priority is 1 or 2 check priority of next email

  25. Future Work • Caching of attachments • For future reuse • Different compression algorithms for different content types

  26. References • RFC 3501 - Internet Message Access Protocol - Version 4rev1 • RFC 2683 - IMAP4 Implementation Recommendations • RFC 3516 - IMAP4 Binary Content Extension • Arnt Gulbrandsen, draft-ietf-lemonade-compress-04 • Bruce Zenel, A general purpose proxy filtering mechanism applied to the mobile environment • Pradeepa Gurusinghe, Vishaka Nanayakkara, Gihan Dias, On-the-fly Inter-proxy Data Compression for Web Access • Chamara Disanayake & Gihan Dias,A Market-Based Approach to Control Web Bandwidth Usage • Qmail manual, www.lifewithqmail.org/lwq.html • Binc IMAP, www.bincimap.org • 8bitMIME - http://en.wikipedia.org/wiki/8BITMIME • MIME - http://en.wikipedia.org/wiki/MIME • Zlib - http://www.zlib.net/manual.html

More Related