Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural...

42
Low-cost Comm Rural Internet Rural Internet Mechanica A. Seth, D. Kroeker, M. Za Tetherless Computin University o munication for Kiosks Using Kiosks Using al Backhaul aharia, S. Guo, S . Keshav ng Research Group of Waterloo

Transcript of Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural...

Page 1: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Low-cost Communication for Rural Internet Kiosks Using Rural Internet Kiosks Using

Mechanical Backhaul

A. Seth, D. Kroeker, M. Zaharia, S. Guo, S . Keshav

Tetherless Computing Research GroupUniversity of Waterloo

cost Communication for Rural Internet Kiosks Using Rural Internet Kiosks Using

Mechanical Backhaul

A. Seth, D. Kroeker, M. Zaharia, S. Guo, S . Keshav

Tetherless Computing Research GroupUniversity of Waterloo

Page 2: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Outline

• The big picture: Goals, principles, and techniques

• Architecture

• Naming and addressing

Routing and locationing• Routing and locationing

• Application support

• Pilot deployment

• Conclusions

Outline

The big picture: Goals, principles, and techniques

Page 3: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Bridging the digital divide…

• Rural areas in developing countries can greatly benefit from timely access to information services

• Farmers

• Crop inputs and treatments

• Market prices

• Health workers

• Diagnosis, treatment

• Citizens

• Government services

• Grassroots media

Bridging the digital divide…

Rural areas in developing countries can greatly benefit from timely access to information services

Crop inputs and treatments

Page 4: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Reducing cost of access

• Share the cost of technology

• Share the cost of knowing

• Information kiosks

• Government of India wants to help set up 100,000 kiosks all over India by March 2008

Reducing cost of access

technology

knowing how to use the technology

Government of India wants to help set up 100,000 kiosks all over India by March 2008

Page 5: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Kiosk connectivity

• Dial-up: Low penetration, slow (56 kbps), and flaky

• Cellular broadband: Low penetration because of high Cap-Ex

• Very Small Aperture Terminals: Expensive

• Long range WiFi / WiMax

• Extensive planning required

• Expensive up-front cost (for 18m tower)

• Short range WiFi meshes

• Equipment security issues

• Not incrementally deployable

Kiosk connectivity

up: Low penetration, slow (56 kbps), and flaky

Cellular broadband: Low penetration because of high

Very Small Aperture Terminals: Expensive

Long range WiFi / WiMax

Extensive planning required

front cost (for 18m tower)

Short range WiFi meshes

Equipment security issues

Not incrementally deployable

Page 6: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Mechanical backhaul

A vehicle carries an 802.11g (54 Mbps) enabled single board computer (SBC) with 40 GB hard

Mechanical backhaul*

A vehicle carries an 802.11g (54 Mbps) enabled single board computer (SBC) with 40 GB hard-disk

*Term suggested by A.A. Penzias

Page 7: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Advantages

• Low cost of connectivity per kiosk (< $250 Cap.ex)

• Cost of mobile SBC gets shared across kiosks

• $1/person/year – no trench, no tower!

Increased penetration• Increased penetration

• Even in interior areas where there are no telephone lines

• High bandwidth data transfer in both directions

• Rapidly and incrementally deployable

Advantages

Low cost of connectivity per kiosk (< $250 Cap.ex)

Cost of mobile SBC gets shared across kiosks

no trench, no tower!

Even in interior areas where there are no telephone lines

High bandwidth data transfer in both directions

Rapidly and incrementally deployable

Page 8: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Disadvantages

• Data transfer is delayed

• Depends on frequency of visits of vehicles

• Can be up to 2 – 3 days

• But many useful applications are delay tolerant

• Suitable for smaller non-governmental organizations to set up kiosks

Disadvantages

Depends on frequency of visits of vehicles

But many useful applications are delay tolerant

governmental organizations

Page 9: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Simple backhaulSimple backhaul

Page 10: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Generalized backhaul

• Laptop and PDA users• Routing• Security• Mobile users• Custodians• Legacy applications• Multiple interfaces• Reliability

Generalized backhaul

Page 11: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Related work

• Both ends of the connection are not simultaneously present

• Cannot use standard TCP/IP, DNS, SSL

• Multiple hops of disconnection• Multiple hops of disconnection

• Cannot use MIP, HIP, I3, PCMP, etc

• Need routing control, naming and addressing

• DTN better than e-mail

• Store and forward self-describing data (bundles)

Related work

Both ends of the connection are not simultaneously

Cannot use standard TCP/IP, DNS, SSL

Multiple hops of disconnectionMultiple hops of disconnection

Cannot use MIP, HIP, I3, PCMP, etc

Need routing control, naming and addressing

describing data (bundles)

Page 12: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S
Page 13: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Outline

• The big picture: Goals, principles, and techniques

• Architecture

• Naming and addressing

Routing and locationing• Routing and locationing

• Application support

• Pilot deployment

• Conclusions

Outline

The big picture: Goals, principles, and techniques

Page 14: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Naming and addressing

• Flat namespace for identifying users and nodes

• MD5 hash of human-readable GUID

• Also used as HIBC public-

Name based forwarding• Name based forwarding

• Most general approach to build different routing schemes

Naming and addressing

Flat namespace for identifying users and nodes

readable GUID

-key for security

Most general approach to build different routing schemes

Page 15: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Routing

Internet

Proxy

I1

B1

I2

K1

U2

I1 I2 I3: Internet

gatewaysK1 K2 K3:

Kiosks

U1

Routing

Internet

Proxy

I

B3

K3

I3

B2

K2

B1 B2 B3: Mobile

DTN routersU1 U2: Users

Page 16: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Routing

Internet

Proxy

I1

B1

I2

K1

U2

I1 I2 I3: Internet

gatewaysK1 K2 K3:

Kiosks

U1

Routing

Internet

Proxy

I

B3

K3

I3

B2

K2

B1 B2 B3: Mobile

DTN routersU1 U2: Users

• Flooding

Page 17: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Routing

Internet

Proxy

I1

B1

I2

K1

U2

I1 I2 I3: Internet

gatewaysK1 K2 K3:

Kiosks

U1

Routing

Internet

Proxy

I

B3

K3

I3

B2

K2

B1 B2 B3: Mobile

DTN routersU1 U2: Users

• Flooding

Page 18: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Routing

Internet

Proxy

I1

B1

I2

K1

U2

I1 I2 I3: Internet

gatewaysK1 K2 K3:

Kiosks

U1

Routing

Internet

Proxy

I

B3

K3

I3

B2

K2

B1 B2 B3: Mobile

DTN routersU1 U2: Users

• Flooding

Page 19: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Routing

Internet

Proxy

I1

B1

I2

K1

U2

I1 I2 I3: Internet

gatewaysK1 K2 K3:

Kiosks

U1

Routing

Internet

Proxy

I

B3

K3

I3

B2

K2

B1 B2 B3: Mobile

DTN routersU1 U2: Users

• Flooding

Page 20: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Routing

Internet

Proxy

I1

B1

I2

K1

U2

I1 I2 I3: Internet

gatewaysK1 K2 K3:

Kiosks

U1

Routing

Internet

Proxy

I

B3

K3

I3

B2

K2

B1 B2 B3: Mobile

DTN routersU1 U2: Users

• Flooding

Page 21: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Routing

Internet

Proxy

I1

B1

I2

K1

U2

I1 I2 I3: Internet

gatewaysK1 K2 K3:

Kiosks

U1

Routing

Internet

Proxy

I

B3

K3

I3

B2

K2

B1 B2 B3: Mobile

DTN routersU1 U2: Users

• Link state routing

• Time varying shortest path

Page 22: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Routing and locationing

Proxy

I1

B1

HLR

[U

I2

K1

U2

I1 I2 I3: Internet

gatewaysK1 K2 K3:

Kiosks

U1

Routing and locationing

Proxy

I

B3

K3 U2

HLR

[U2, K3]

I3

B2

K2

B1 B2 B3: Mobile

DTN routersU1 U2: Users

• Default route

• Reverse path forwarding

• Late binding

Page 23: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Application support

• Goals

• Simple API – shield app. from aspects of disconnection

• Session persistence

• Intelligent use of multiple networks• Intelligent use of multiple networks

• Interaction with legacy servers

• Solution

• OCMP (Opportunistic Connection Management Protocol)

• J2ME based application layer on DTN or TCP

• Policy framework for per-bundle selection of interface

• Session migration

Application support

shield app. from aspects of disconnection

Intelligent use of multiple networksIntelligent use of multiple networks

Interaction with legacy servers

OCMP (Opportunistic Connection Management Protocol)

J2ME based application layer on DTN or TCP

bundle selection of interface

Page 24: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Segmentation-reassembly

Application

OCMP interface

Connection pool

TCP obj TCP obj

IP

Kiosk controller

App Ctrl

App plugin

Sockets

Persistent storage

Dir watcher plugin

DTN obj

RMI

Persistent storage

IP

Dialup GPRS

BPA

DTN / WiFi

Bus

DTN / WiFi

Internet gateway

Network of DTN routers

Persistent storage

BPA

Persistent storage

BPA

Connection pool

Segmentation-reassembly

Application specific plugin

DTN obj TCP obj

IP

Proxy

OCMP interface

App Ctrl

TCP obj

Persistent storage

TCP,

UDPPersistent

storage

BPA

Internet gateway

IP

Wired interface

BPA

DTN / DSL Legacy server

Network of DTN routers Internet

Persistent storage

Persistent storage

Page 25: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Outline

• The big picture: Goals, principles, and techniques

• Architecture

• Naming and addressing

Location management• Location management

• Routing

• Application support

• Pilot deployment

• Conclusions

Outline

The big picture: Goals, principles, and techniques

Page 26: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Kiosk setup (Anandpuram, AP, India)Kiosk setup (Anandpuram, AP, India)

Page 27: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Vehicle and gateway setupVehicle and gateway setup

Page 28: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Conclusions

• Mechanical backhaul is an attractive solution to provide connectivity to rural Internet kiosks

• Under $1/person/year

• Generalized backhaul is a complex problem• Generalized backhaul is a complex problem

• Innovative and practical solutions for naming, addressing, routing, security, and application development

• Planning a bigger deployment in Dec 2006

Conclusions

Mechanical backhaul is an attractive solution to provide connectivity to rural Internet kiosks

Generalized backhaul is a complex problemGeneralized backhaul is a complex problem

Innovative and practical solutions for naming, addressing, routing, security, and application

Planning a bigger deployment in Dec 2006

Page 29: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Anandpuram deploymentAnandpuram deployment

Anandpuram

Vishakapatnam

Page 30: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Opportunistic communication

Another experimental setup. Sniffers are different from traffic source/sink

Opportunistic communication

Another experimental setup. Sniffers are different from traffic source/sink

Page 31: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Room for optimization

Very few runs made full use of the production phase

Room for optimization

Very few runs made full use of the production phase

Page 32: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Very chatty association protocol

Delays in connection setup

Very chatty association protocol

Delays in connection setup

Page 33: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

1. Probe request/reply

Entry: Probe replies are often lost at the fringes

1. Probe request/reply

Entry: Probe replies are often lost at the fringes

Page 34: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

2. Authentication

Entry: Authentication requests may not reach the AP

2. Authentication

Entry: Authentication requests may not reach the AP

Page 35: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

3. ARP request/reply

Entry: ARP requests may get lost

3. ARP request/reply

Entry: ARP requests may get lost

Page 36: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

• Avoid fringe areas

• But how to know that the device is a the fringe?

More dynamic MAC bit rate selection

Recommendations

• More dynamic MAC bit rate selection

• How to prevent hysteresis

• Transmit signal strength maps

But how to know that the device is a the fringe?

More dynamic MAC bit rate selection

Recommendations

More dynamic MAC bit rate selection

How to prevent hysteresis

Transmit signal strength maps

Page 37: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Example

• aAqua project (IIT Bombay, Maharashtra, India)

• Bulletin board system for farmers to consult with experts

• Market opportunities, fertilizers, pricing

• Most people avoid buying goat milk because it smells. Can you suggest some ways to prevent the smell?

• Please see the attached pic. of a diseased muskmelon fruit, that has developed brown spots.

• We have at our disposal 10-12 tons of aloefor sale. Parties interested in purchasing please catch us at 9848263544

Example

aAqua project (IIT Bombay, Maharashtra, India)

Bulletin board system for farmers to consult with experts

Market opportunities, fertilizers, pricing

Most people avoid buying goat milk because it smells. Can you suggest some ways to prevent the smell?

Please see the attached pic. of a diseased muskmelon fruit, that has developed brown spots.

12 tons of aloe-vera plants/leaves for sale. Parties interested in purchasing please catch us at

Page 38: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Security

• Problems with PKI

• Need an extra round-trip to find the recipient public key

• Key revocation in disconnected scenarios

• Solution

Use Identity Based Cryptography• Use Identity Based Cryptography

• GUID or email address can be the public key

• Private key is generated one

• Key generation for disconnected users

• Mutual authentication

• Key revocation

Security

trip to find the recipient public key

Key revocation in disconnected scenarios

Use Identity Based CryptographyUse Identity Based Cryptography

GUID or email address can be the public key

Private key is generated one-time by a private key generator

Key generation for disconnected users

Page 39: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Open problems in location management

• Scalability

• All location updates need to travel to the HLR

• Have a distributed system of HLRs and VLRs?

How to partition into VLR regions? Cohesion within regions• How to partition into VLR regions? Cohesion within regions

• Choice of custodian(s)

• Depends upon user mobility patterns

• Recall and precision in terms of delay and replication

Open problems in location management

All location updates need to travel to the HLR

Have a distributed system of HLRs and VLRs?

How to partition into VLR regions? Cohesion within regionsHow to partition into VLR regions? Cohesion within regions

Depends upon user mobility patterns

Recall and precision in terms of delay and replication

Page 40: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Issues with link

• Route update latencies can be large

• Propagation delay in the DTN network is not the only parameter to determine link weights

• Proxy-gateway link is slow

• Intelligent scheduling through multiple gateways? Fairness?

• Schedule accuracy

• Break-downs

• Vehicle delays

Issues with link-state routing

Route update latencies can be large

Propagation delay in the DTN network is not the only parameter to determine link weights

gateway link is slow

Intelligent scheduling through multiple gateways? Fairness?

Page 41: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Problems in reliability

• How much to replicate?

• What retransmission timeout to use?

• In the absence of link-state routing, the only data available is observations of rounddistributions

Problems in reliability

What retransmission timeout to use?

state routing, the only data available is observations of round-trip delay

Page 42: Low-cost Communication for Rural Internet Kiosks Using ... · Low-cost Communication for Rural Internet Kiosks Using Mechanical Backhaul A. Seth, D. Kroeker, M. Zaharia, S. Guo, S

Implementation and status

• Implemented as extension to DTNRG implementation

• Java based application support available on PDAs

• Applications

• Blogger and Flickr uploads• Blogger and Flickr uploads

• Email

• Integration with aAqua

• Currently working on

• Security integration

• Some hardware quirks

• Cellphone based control plane

Implementation and status

Implemented as extension to DTNRG implementation

Java based application support available on PDAs

Blogger and Flickr uploadsBlogger and Flickr uploads

Cellphone based control plane