Rajin Darko
1
Rajin Darko 1 Ca CarT rTel: el: A Distributed Mobile Sensor - - PowerPoint PPT Presentation
Rajin Darko 1 Ca CarT rTel: el: A Distributed Mobile Sensor Computing System Bret Hull, Vladimir Bychkovsky, Yang Zhang, Kevin Chen, Michel Goraczko, Allen Miu, Eugene Shih, Hari Balakrishnan and Samuel Madden MIT Computer Science and
Rajin Darko
1
MIT Computer Science and Artificial Intelligence Laboratory, Cambridge
2
3
4
5
6
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
7
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
8
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
9
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
If we would want to monitor the delays on
This solution is possible but considering
Better way would be to equip each car with a
10
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
11
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
12
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
Provide a simple programming interface CarTel applications should be as easy to write as standard Web applications, and application developers should not have to deal with distribution
Handle large amounts of heterogeneous
CarTel should not constrain sensor data types, and should make it easy to integrate new kinds of sensors, new mobile nodes, and new data types into the system.
13
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
CarTel systems connect to the network using different types of opportunistic wireless (Wi-Fi, Bluetooth..)
Internet users in their homes and other locations can allow CarTel nodes to communicate with Internet hosts.
In most cases those networks will go from good connectivity to no connectivity at all, thus making those connection intermittent for some period of time.
CarTel node can also use other mobile devices, such as mobile phones, or usb keys and flash memory to deliver data as mules
14
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
It’s a software that requests data from
15
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
2.
3.
The CarTel programming model is centralized
Applications running on the portal issue
16
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
1.
Queries specify:
What sensor data must be acquired
At what rate should they be acquired
How the data should be sub-sampled, filtered and summarized on the mobile node
On what order should the results be prioritized for returning back to the portal.
The ICEDB continuous query interface allows an application to express intra and inter query priorities.
2.
Query results stream in across an intermittently connected network and populate a relational database at the portal.
3.
Application issue SQL queries on the portal’s relational database to retrieve data they need for further analysis, visualization, etc. These are snapshot queries that run on whatever data is currently available.
17
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
CarTel handles heterogeneous sensor data,
Each sensor has an adapter running on the
Adapter handles
the details of configuring extracting information from that sensor converting it into a normalized form.
To ease management and deployment, when
18
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
ICEDB distributes query execution and result
The ICEDB server holds a list of continuous queries,
The nodes in the field run ICEDB remote, to process
Finally, when ICEDB server receives results from
19
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
ICEDB supports heterogeneous data types Makes the addition and removal of sensors relatively
Because all results are eventually stored in a
must be able to parse and store information that sensors
produce and
must be able to evolve schemas as users add new
sensors and application developers introduce new data types.
Adapter is a meta-data package used for adding new
Adapter has attributes of a sensor and executable
20
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
21
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
A typical adapter includes the following attributes:
1.
ID and name: Each adapter must be uniquely identified.
2.
Type: An adapter can either push data to ICEDB, or ICEDB can pull data by invoking the executable at a specified rate.
ICEDB invokes the executable for each push adapter once, so that it runs as a daemon in the background.
Pull adapters produce readings each time ICEDB invokes the executable program. 3.
Rate: For pull type adapters, the rate at which ICEDB should invoke the executable.
4.
Forwarding flag: Specifies whether or not raw data should be forwarded to the portal. Setting this flag is a shortcut for specifying a continuous query that selects all attributes from the sensor.
5.
Schema: A list of (name, type) pairs that specifies the attributes produced by the sensor. In our current implementation, the type field must be a valid PostgreSQL data type.
6.
Priority: The priority assigned to forwarded tuples when the forwarding flag is set
When attributes are defined, adapters reside inside the ICEDB server on the portal and are pushed out to remote nodes using CafNet
22
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
Queries in ICEDB are written in SQL with several
These queries are run over data as it is produced
SELECT carid,traceid,time,location FROM gps
WHERE gps.time BETWEEN now()-1 mins AND now() RATE 5 mins
23
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
A “Score” is assigned to each result by the ICEDB query
Local prioritization produces scorings of data that can
Global prioritization is a scoring of results by getting
24
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
To locally prioritize query results we use two
The PRIORITY keyword is specified at the end of
ICEDB transmits query result buffers strictly in order of
priority, ensuring that high priority queries are transmitted before low priority queries.
The DELIVERY ORDER clause allows the remote
25
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
ICEDB applications express global priorities using
It specifies a query that will compute a summary, which
consists of a set of tuples that summarize the entire buffer of result tuples.
When connectivity occurs, before any query
26
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
27
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
CafNet offers a message-oriented data
The unit of data transport in CafNet is an
Each ADU has its own identifier – the combination
CafNet has a job of informing the application when
28
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
CafNet defines a three-layer protocol stack:
1.
CafNet Transport Layer (CTL),
2.
CafNet Network Layer (CNL),
3.
Mule Adaptation Layer (MAL)
29
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
APPLICATION
CAFNET TRANSPORT LAYER
CAFNET NETWORK LAYER
MULE ADAPTATION LAYER
DEVICE DRIVER
30
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
31
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
The portal includes a geo-spatial data
Organizes data in terms of traces, which are
Users are given a simple graphical query
32
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
The portal shows users where they've recently driven.
33
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
Each trip is organized into a trace, which when viewed allows access to all accompanying sensor data
34
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
On this picture you can see the speed measured during drive. The red, orange, and yellow segments are slow, the greens are about average, and the blues are real fast (no blue below).
35
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
We use traffic flow data collected from our users' drives to determine congestion-prone road segments.
36
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
Users can graphically search through their traces to analyze their drives visually.
37
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
Users can also view the Wi-Fi’s that were detected on their drives by selecting the right sensor overlay on the tab on the left (Wi-Fi in this case).
38
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
39
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
40
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
41
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
42
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
During the initial deployment one of the users
From his own perspective this times didn’t
Small deviation times shows that routs are
Route Avg Dist Avg Time Std-dev Freeway City Streets Frontage Road 9.94 miles 9.83 miles 9.27 miles 19m 52s 29m 34s 31m 51s 2m 14s 2m 19s 3m 54s
43
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
44
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
We calculate traffic hot spots from the GPS records
First, we define a grid on the map (approximately 100
Next, we examine the velocity of the car at each
After filtering out cells with an insufficient number of
45
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
Picture below shows the top ten hot spots this application calculated for the areas around Boston and Seattle. Not surprisingly, in Seattle, many sections of Interstate-5 show high variation in speed during commute times.
46
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
Likewise, in Boston, Interstate-93 is a key area of congestion. However, in both areas some intersections on back-roads display congestion too.
47
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
Driving to an unfamiliar location can be difficult, even with
detailed driving directions. Streets are often unmarked and bad weather can reduce visibility.
One way of making turn-by-turn driving directions more
useful would be to include photographs of landmarks preceding each turn.
People often verbally give these types of directions: “turn
left at the red barn” or “you’ve gone too far if you see the McDonald’s.”
CarTel makes it easy to collect the photographs needed to
augment driving directions with the requisite landmarks. Cars have cameras integrated in sensors, so every few seconds along the drive picture is taken.
48
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
The portal uses these images to automatically generate a large repository of geo-coded, street-level images. This archive can be integrated with a driving direction application to provide images just prior to every turn
49
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
According to Jupiter Research, over 65% of
Since this is reasonably high density of APs, some of
If such thing would occur the main question beside
50
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
For that research an earlier version of CarTel system
(without ICEDB) has been used to collect over 290 drive hours of data about Wi-Fi connectivity in urban environments over several months.
Our data collection program continually scanned for APs,
attempted associations, and collected statistics about the following events as our users traveled on their daily paths:
Wi-Fi scans, which are reports that list nearby APs. Wi-Fi associations, which are attempts to establish link-layer
connectivity with APs.
IP address acquisitions, which are attempts to acquire an IP
address using DHCP
Ping and upload statistics, which are connectivity and throughput
statistics of TCP uploads through open APs.
51
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
Research discovered 32,000 distinct APs, of which we were able to associate with about 5,000 and acquire an IP address from about 2,000.
Moreover, the likelihood of a successful association was the same across a large range of urban vehicular speeds up to 60 km/hour.
These findings suggest that such unplanned Wi-Fi networks can be used with delay tolerant protocol stack CafNet to provide connectivity required for mobile users at vehicular speeds using CarTel.
Mean association duration 25 seconds Mean time between connections to the Internet 260 seconds Median upload throughput 30 Kbytes/s
52
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
Environmental Protection Agency (EPA) has come up with a Federal Test Procedure (FTP75) that rates cars for fuel economy and emission standards.
The procedure performs measurements as the car is driven along a particular schedule of speeds.
It shows representative typical urban driving patterns including highway driving.
Later on, that test has been criticized for assuming that braking was too gentle, and acceleration as well, and it doesn’t represents real-world driving patterns
So, In 1996, the EPA introduced a new driving cycle (US06) that includes harder acceleration and higher speeds, but this test is not used for fuel economy purposes.
According to research in the fields of air and waste
management, strong correlations exist between emission levels and both speed and acceleration.
53
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
CarTel providers made test by taking two experienced CarTel drivers and made them drive according to Federal Standards. This is what they came up with: Speed Acceleration The graph shows the cumulative distribution functions of speed and acc where the accelerations are grouped into discrete ranges including 1mph per second.
54
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
CarTel system can collect large amount of data regarding emissions, engine failures, fuel consumptions over time with the OBD-II interface.
For just a few months system collected over 60 000 records about:
Fuel consumption
Oil pressure
Troubleshooting codes
Air intake
Engine temperature
Engine throttle position and RPM
CarTel can use this data to compare data taken from the same car, on the same route over different periods of time so it can measure lack of performance
55
Motivation Overview and contribution ICEDB CafNet The Portal Case Studies The implementation
CarTel runs with a
small embedded computer running Linux 2.6
Soekris net4801
586-class processor running at 266 MHz
128 MB of RAM
1 GB or more of flash memory
802.11b miniPCI Wi-Fi card
Senao NL-2511MP with Prism 2.5 chipset flashed with firmware v 1.7.4
Rayming TN200 GPS unit
CarTel system gets its power from the cigarette lighter socket so when the ignition is on, system starts to work.
System was tried out at on ten cars, six of them were used on regular basis
56