transervice: service and media translation system for small devices graduate school of media and...
TRANSCRIPT
TranService: Service and Media Translation System for Small Devices
Graduate School of Media and Governance, Keio University
Jun’ichi [email protected]
Outline
Background and Goal
System Overview
Implementation
Evaluation
Future works
Conclusion
Background
Variation of ServicesWeb, Database, news ...
Variation of DevicesPC/WS, PDA, WC …
web
DB
news
PC
PDA
Phone
→ Can not use the services.
→ Can not get data suitable
for the devices.
Need to consider the difference of devices and services
Goal
Service and media translation system,
which consider the difference of
devices and services.
Movie ServerCellular Phone
POWERED BY
Device Transparency
Consider the difference among devicesTranslation based on device QoS profile
PC/WS
PDA
Phone
Web Server
Service Transparency
Consider the difference among servicesTranslation based on service QoS profile
Web Client
web
movie
QoS Profile
Request contents of QoS(Quality of Service)Data profile
Data type, Data format, Data quality
E.g., image/gif (depth: 8bit, size: 180x180)
audio/au (frequency: 44.1KHz)
Protocol profileProtocol type, Protocol information
E.g., HTTP (Accept: image/gif)
TS-Proxy
Is proxy server for TranServiceData transcodingProtocol conversionAutomatic and dynamic transcodingLoads modules dynamically
Co
ntr
oll
er
Co
ntr
oll
er
Co
ntr
oll
er
Device Module Part Service Module Part
Translation Module Part
ServiceDevice
Request C
Reply C
Request S
Reply S
TS-Proxy
Con
trol
ler
HTTP
RTSP
POP
SMTP
Action Sequence
Con
trol
ler
Con
trol
ler
Device Module Part Service Module Part
Translation Module Part
HTTP
RTSP
POP
SMTP
HTTPSMTP TEXT JPEG
GIFMPEGJPEG
Client SMTPServer
HTTPRequest Context
Context
SMTPData
Context’
Convert protocols from HTTP to SMTP
Design of QoS Profile
Created by device/service module part
Used by translation module part for dec
iding transcoding pathXML for sending and
receiving
Tree construction in this
system
QOS+ DATA| + IMAGE| | + TBMP| | + COLOR=1| | + DEPTH=0x02| | + WIDTH=180| | + HEIGHT=180| + TEXT| + DEFAULT| + CHARSET=shift-jis+ PROTOCOL + HTTP + VERSION=1.1
Transcoding Types
Protocol conversionHTTP → POP, SMTP → HTTP
Data transcodingimage/jpeg → image/gifimage/au → text/plain
Multiple transcodingtext/html → audio/au= text/html → text/plain+ text/plain → audio/au
Implementation
Implementation environmentJDK1.2 / Windows 2000Whole system about 5000 lines
Implemented modules (extracts)Device modules
HTTP device module
Translation modulesHTTP to POP3 protocol translation moduletext/html to text/plain data translation module
Service modulesHTTP service modulePOP3 service module
Application Example (1)
Controlling networked appliancesSwitching from video inputs to projectors
Use PDA as Universal Controller
PDA Matrix Switcher
Projectors
Video InputsTS-Proxy
SerialHTTP/TCP/IP
CommandsHTML
Application Example (2)
Browsing support for video streamingCelluar phone:GIF(8bit-GlayScale, 100x8
0) PC: JPEG(24bit-Color, 320x240)
Internet-ready cellular phone PC
Related Works
W M T D S
Service Transparency
Dynamic adaptation No No No No Yes
Extended functionality No No No Yes Yes
Multiple transcoding No No No No Same
Platform independency Yes Yes No No Yes
Device Transparency
Dynamic adaptation Same Yes Yes No Yes
Extended functionality Yes Yes Yes Yes Yes
Multiple transcoding Same No No No Yes
Platform independency Yes Yes No No YesW:WBI, M:KMSF-MCAP, T:TranSend, D:DeleGate, S:tranService
Measurement
1: Measure entire timeA: Receiving data from client, create QoS profile
D: Receiving data from server
2: Measure time taken by transcodingTranscoding time: 1.2 msec/num
Decision time: 0.7 msec/num
0 10 20 30 40 50 60
Tim
e (m
sec)
A
B
C
D
E
F
G
0
50
100
150
200
0 10 20 30 40 50
Whole
Transcoding
Decision
Numbers of modules
Tim
e (m
sec)
Graph 1 Graph 2
Future Works
Use distributed modulesLoad balancing, fault tolerance
Interoperability to other QoS profilesMPEG7, CC/PP, HTTP-UserAgent
Categorize service characteristicsState-less or state-full
Number of connections
Conclusion
Construct tranService system, which is media transcoding system based on QoS requirements of devices and services
DesignRealize device transparency and service transparency
ImplementationImplemented on JDK1.2
EvaluationMeasurement
Comparison
Application Example (2)
Web mail readerUsers can read web pages by mail-reader
TS-Proxy convert from SMTP to HTTP
PDA TS-Proxy
HTTP/TCP/IPSMTP/TCP/IP
Web Server
Example of Moduleimport jp.ac.keio.sfc.ht.tranService.*;
public class TextHtmltoTextPlainTranslationModule extends TranslationWorkerModule
{ public TextHtmltoTextPlainTranslationModule() { // Translation type is Data translation setTranslationType(TranslationServerModule.TRANSLATION_TYPE_DAT
A); // Input type is "text/html" setInputType(new MimeType("text", "html").toString()); // Output type is "text/plain" setOutputType(new MimeType("text", "plain").toString()); } public void execute() { try { // Receiving context Data data = getNextData(); // Here is a transcoding code ... Omitted ... // Sending context sendData(data); } catch(InterruptedException ie) { ... Ommited ... } }}
Context
Data set sent/received between module partsContent
Request from client / reply from server
Content profile
A meta-information of content
Device QoS profile
QoS profile that refer to device
Service QoS profile
QoS profile that refer to service
System Overview
Co
ntr
oll
er
Co
ntr
oll
er
Co
ntr
oll
erDevice Module Part Service Module Part
Translation Module Part
ServiceDevice
Request C
Reply C
Request S
Reply S
TS-Proxy
Related Works
Dynamic adaptationAbility to consider changes of environment dynam
ically
Extended functionalityAbility to accept for new devices and services
Multiple transcodingAbility to transcode continuously
Platform independencyAbility to use system on any platform