25
Quick Implementation of a WAP Push Gateway Wen-Hung Su Fu Jen Catholic University Computer Science and Information Engineering Department Moblie Communication System Topic

Quick Implementation of a WAP Push Gateway Wen-Hung Su Fu Jen Catholic University Computer Science and Information Engineering Department Moblie Communication

Embed Size (px)

Citation preview

Page 1: Quick Implementation of a WAP Push Gateway Wen-Hung Su Fu Jen Catholic University Computer Science and Information Engineering Department Moblie Communication

Quick Implementation of a

WAP Push Gateway

Wen-Hung Su

Fu Jen Catholic University

Computer Science and Information Engineering Department

Moblie Communication System

Topic

Page 2: Quick Implementation of a WAP Push Gateway Wen-Hung Su Fu Jen Catholic University Computer Science and Information Engineering Department Moblie Communication

Outline

• Introduction

• Gateway Structure

• WAP Gateway Implementation

• Convert HTTP Proxy to WAP Gateway

• Push Operation and WAP Test-bed

• Conclusion and Future Work

• Reference

Page 3: Quick Implementation of a WAP Push Gateway Wen-Hung Su Fu Jen Catholic University Computer Science and Information Engineering Department Moblie Communication

Introduction

• What is WAP?

• Two possible mechanisms to access Internet in the WAP environment

1.WSP/HTTP exchange via WAP gateway

2.Directly access over pure WSP

• transformed a HTTP proxy into WAP gateway 1. coded header

2. push operation of WAP

Page 4: Quick Implementation of a WAP Push Gateway Wen-Hung Su Fu Jen Catholic University Computer Science and Information Engineering Department Moblie Communication

Gateway Structure - HTTP Proxy Operations

Request

Request

ResponseResponse

CacheStorage

Response

RequestCache

Storage

No

Yes

WEB Server

CacheStorage

WEB Server

HTTP Proxy

Client System

InternetLocal Network

Page 5: Quick Implementation of a WAP Push Gateway Wen-Hung Su Fu Jen Catholic University Computer Science and Information Engineering Department Moblie Communication

Gateway Structure - WAP Gateway Operations

HTTP

WSP

WAP Gateway

Mapping

Table

HTTP

WEB Server

WSP

WAP Domain Internet

Page 6: Quick Implementation of a WAP Push Gateway Wen-Hung Su Fu Jen Catholic University Computer Science and Information Engineering Department Moblie Communication

WAP Gateway Implementation

The architecture is composed of six modules

Page 7: Quick Implementation of a WAP Push Gateway Wen-Hung Su Fu Jen Catholic University Computer Science and Information Engineering Department Moblie Communication

WAP Gateway Implementation (cont.)

Dispatch Module•The dispatcher itself is a thread,and can get the socket connection.

•Forward the request by calling RunSet method to record request’s state and start request thread.

Page 8: Quick Implementation of a WAP Push Gateway Wen-Hung Su Fu Jen Catholic University Computer Science and Information Engineering Department Moblie Communication

WAP Gateway Implementation (cont.)

State Module•State module handles the Request Thread, Request Line, Request Header,

Proxy Connection, Reply Line and Reply Header for client request task.

Page 9: Quick Implementation of a WAP Push Gateway Wen-Hung Su Fu Jen Catholic University Computer Science and Information Engineering Department Moblie Communication

WAP Gateway Implementation (cont.)

Request Thread Module1. Parse the request line and decode binary format to string format fitting for HTTP.

2. Parse the request header and decode binary format to well-known-header string format fitting for HTTP.

3. WAP Gateway creates a connection and sends a HTTP request translating from WSP request to the web server which client original request.Then receiving the HTTP reply message.

4. Parse the reply line and encode string format to binary format fitting for WSP.

5. Parse the reply header and encode well-known-header string format to binary format fitting the WSP.

6. WAP Gateway sends a WSP reply message to the client.

Page 10: Quick Implementation of a WAP Push Gateway Wen-Hung Su Fu Jen Catholic University Computer Science and Information Engineering Department Moblie Communication

WAP Gateway Implementation (cont.)

Request Decoding Module•Module includes two parts: request line decoding and request header decoding.

•Request line parser gets the TID

(Transaction ID), PDU type, and URI of the request packet. Then it translates the PDU type to a string format by using a defined mapping table.

•Request header parser gets the well-known-header values and translates those to the string type header’s names by a defined mapping table. According to those values to get string type header’s values.

Page 11: Quick Implementation of a WAP Push Gateway Wen-Hung Su Fu Jen Catholic University Computer Science and Information Engineering Department Moblie Communication

WAP Gateway Implementation (cont.)

Proxy Connection Module•WAPGateway connects the web server using this Proxy Connection module.

•Another task of Proxy Connection module is writing response message to the client to finish the primal request.

Page 12: Quick Implementation of a WAP Push Gateway Wen-Hung Su Fu Jen Catholic University Computer Science and Information Engineering Department Moblie Communication

WAP Gateway Implementation (cont.)

Reply Encoding Module•Module includes two parts: response status line encoding and response header encoding.

•Response status line parser gets the Version, Response Status Code, and Reason of the reply packet. Then it encodes these information to a binary format by using a defined mapping table.

•Response header parser gets the string type header’s names and translates those to the well-known-header values by a defined mapping table.

Page 13: Quick Implementation of a WAP Push Gateway Wen-Hung Su Fu Jen Catholic University Computer Science and Information Engineering Department Moblie Communication

• The example below illustrates the translation of headers

WAP Gateway Implementation (cont.)

Page 14: Quick Implementation of a WAP Push Gateway Wen-Hung Su Fu Jen Catholic University Computer Science and Information Engineering Department Moblie Communication

WAP Gateway Implementation (cont.)

Page 15: Quick Implementation of a WAP Push Gateway Wen-Hung Su Fu Jen Catholic University Computer Science and Information Engineering Department Moblie Communication

WAP Gateway Implementation (cont.)

Page 16: Quick Implementation of a WAP Push Gateway Wen-Hung Su Fu Jen Catholic University Computer Science and Information Engineering Department Moblie Communication

WAP Gateway Implementation (cont.)

Page 17: Quick Implementation of a WAP Push Gateway Wen-Hung Su Fu Jen Catholic University Computer Science and Information Engineering Department Moblie Communication

WAP Gateway Implementation (cont.)

Translation of headers DEMO

Page 18: Quick Implementation of a WAP Push Gateway Wen-Hung Su Fu Jen Catholic University Computer Science and Information Engineering Department Moblie Communication
Page 19: Quick Implementation of a WAP Push Gateway Wen-Hung Su Fu Jen Catholic University Computer Science and Information Engineering Department Moblie Communication

WAP Gateway Implementation (cont.)

Page 20: Quick Implementation of a WAP Push Gateway Wen-Hung Su Fu Jen Catholic University Computer Science and Information Engineering Department Moblie Communication

Convert HTTP Proxy to WAP Gateway

Page 21: Quick Implementation of a WAP Push Gateway Wen-Hung Su Fu Jen Catholic University Computer Science and Information Engineering Department Moblie Communication

Push Operation

Page 22: Quick Implementation of a WAP Push Gateway Wen-Hung Su Fu Jen Catholic University Computer Science and Information Engineering Department Moblie Communication

WAP Test-bed

Page 23: Quick Implementation of a WAP Push Gateway Wen-Hung Su Fu Jen Catholic University Computer Science and Information Engineering Department Moblie Communication

Conclusion and Future Work

• In this paper, we firstly introduce the replacing internal operation code of HTTP proxy server to WSP header code and construct a WAP Gateway. Base on the replacing, quickly turning a HTTP Proxy Server to WAP Gateway by adding extra mechanisms

is feasible. Next, a possible push operation sequence is proposed. Finally, the developing WAP Test-bed is illustrated.

Future Work• (1) continue implementing the functionality of our WAP Push

Gateway.• (2)complete the WAP Test-bed and investigate the gateway performance.• (3) estimate the rationality of the proxy caching operation within

WAP Gateway.

Page 24: Quick Implementation of a WAP Push Gateway Wen-Hung Su Fu Jen Catholic University Computer Science and Information Engineering Department Moblie Communication

Reference

[1] WAP Forum, “Wireless Application ProtocolArchitecture Specification”, April 1998.http://www.wapforum.org/[2] WAP Forum, “WAP Wireless Session ProtocolSpecification”, May 1999.http://www.wapforum.org/[3] H. Mei, and Y.M. Wen, “Turning a HTTPProxy to WAP Gateway”, Proceedings of INET2000, July 2000 (Accepted).[4] W. J. Lin, and H. Mei, “A High PerformanceJava-based HTTP Proxy Server”, Proceedingsof 1999 Workshop on Distributed SystemTechnologies & Applications, May 1999, pp.654-663.

Page 25: Quick Implementation of a WAP Push Gateway Wen-Hung Su Fu Jen Catholic University Computer Science and Information Engineering Department Moblie Communication

Reference(cont.)[5] R. Fielding, J. Gettys, J. Mogul, H. Frystyk andT. Berners-Lee, “Hypertext Transfer Protocol-- HTTP/1.1”, RFC 2068, January 1997.[6] Paul S. Hethmon, “Illustrated Guide to HTTP”,Manning Publications Co, 1997.[7] WAP Forum, “WAP Wireless MarkupLanguage Specification”, November 1999.http://www.wapforum.org/[8] Nokia WAP Toolkit SDK 1.3http://www.forum.nokia.com/[9] WAP Forum, “WAP Push ArchitectureOverview”, November 1999.http://www.wapforum.org/[10] WAP Forum, “WAP Push Proxy GatewayService Specification”, August 1999.http://www.wapforum.org/