Wireless Application Protocol
Wireless Application Protocol
ABSTRACT
The primary means of communicating information of these days are voice and Internet. The unlimited accesses to Internet and sheer number of people connected to the Internet have made industry captain realize its potential. The industry now plans its marketing and communication strategies around the Internet. Today every banking to education, research to health-care is affected by it. E-mail is the way to communicate today. Practically who use the Internet uses E-mail. The wireless technologies and the Internet were growing separately. The wireless industry initially struggled within a number of issues like low bandwidth and low connection stability, to bring Internet to its users. They came together to form a common forum to tackle these issues. This forum is called the WAP.The wireless application protocol.
CAS, KDTY
CONTENTS
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12.
INTRODUCTION THE WAP MODEL MOTIVATION FEATURES OF WAP ARCHITECTURE WAE APPLICATIONS THE PROBLEM AREAS FUTURE OUTLOOK OF WAP MARKET POTENTIAL CONCLUSION REFERENCES
3 6 10 11 12 15 19 20 22 23 24 25
CAS, KDTY
INTRODUCTION
The primary means of communicating information of these days are voice and Internet. The unlimited accesses to Internet and sheer number of people connected to the Internet have made industry captain realize its potential. The industry now plans its marketing and communication strategies around the Internet. Today every banking to education, research to health-care is affected by it. E-mail is the way to communicate today. Practically who use the Internet uses E-mail. The wireless technologies and the Internet were growing separately. The wireless industry initially struggled within a number of issues like low bandwidth and low connection stability, to bring Internet to its users. They came together to form a common forum to tackle these issues. This forum is called the WAP.The wireless application protocol. The Wireless Application Protocol is a standard developed by the WAP Forum, a group founded by Nokia, Ericsson, Phone.com (formerly Unwired Planet), and Motorola. The WAP Forums membership roster now includes computer industry heavyweights such as Microsoft, Oracle, IBM, and Intel along with several hundred other companies. According to the WAP Forum, the goals of WAP are to be:
Independent of wireless network standard. Open to all. Proposed to the appropriate standards bodies. Scalable across transport options. Scalable across device types. Extensible over time to new networks and transports.
CAS, KDTY
WAP defines a communications protocol as well as an application environment. In essence, it is a standardized technology for crossplatform, distributed computing. It sound similar to the World Wide Web. WAP is very similar to the combination of HTML and HTTP except that it adds in one very important feature: optimization for low-bandwidth, lowmemory, and low-display capability environments. These types of environments include PDAs, wireless phones, pagers, and virtually any other communications device. Wireless Application Protocol (WAP) is a result of continuous work to define an industry-wide specification for developing applications that operate over wireless communication networks. The scope for the WAP Forum is to define market is growing very quickly and reaching new customers and providing new services. To enable operators and manufacturers to meet the challenges in advanced services, differentiation, and fast/flexible service creation, WAP defines a set of protocols in transport, session and application layers.
CAS, KDTY
The following figure helps draw a parallel to the Internet protocols. You can see how WAP extends or reuses Internet protocols to achieve mobile Internet access.
The strength of WAP (some call it the problem with WAP) lies on the fact that it very closely resembles the Internet model. In order to accommodate wireless access to the information space offered by the WWW, WAP is based on well-known Internet technology that has been optimized to meet the constraints of a wireless environment. Corresponding to HTML, WAP specifies a markup language adapted to the constraints of low bandwidth available with the usual mobile data bearers and the limited display capabilities of mobile devices - the Wireless Markup Language (WML). WML offers a navigation model designed for devices with small displays and limited input facilities (no mouse and limited keyboard). WAP also provides a means for supporting more advanced tasks, comparable to those solved by using for example JavaScript in HTML.
CAS, KDTY
CAS, KDTY
As mentioned earlier, this is very similar in concept to the standard stateless HTTP transaction involving client Web browsers.
Three are three essential product components that you need to extend your host applications and data to WAP-enabled devices. These three components are: 1. WAP Microbrowser residing in the client handheld device 2. WAP Gateway typically on wireless ISPs network infrastructure 3. WAP Server - residing either on ISPs infrastructure or on enduser organizations infrastructure .
CAS, KDTY
1.WAP Microbrowser
A WAP micro-browser is a client software designed to overcome challenges of mobile handheld devices that enables wireless access to services such as Internet information in combination with a suitable network server.
2.WAP Gateway
The idea behind WAP specifications is to connect the mobile networks to the Internet.To connect these two mega-networks, the WAP Specification assumes there will be a WAP Gateway. At its simplest level, this is a stack converter, which will convert the WAP request into a Web request and the Web response into a WAP response. WAP Gateway is a piece of software that sits between the mobile device and the external network like the Internet. The gateway does the job of converting Internet content i.e. the WML pages into byte code (WMLC) to reduce the size and number of packets, which can be understood by a WAP device. Usually located on a server of a mobile operator it handles incoming requests from your WAP phone, takes care of the conversion required during WTLS/SSL sessions and handles incoming requests from your WAP phone.It decreases the response time to the handheld device by aggregating from different servers on the web, and catching frequently used information.
CAS, KDTY
A WAP Gateway typically includes the following functionality : Protocol Gateway: The protocol Gateway translates requests from the WAP protocol stack to the WWW protocol stack(HTTP and TCP/IP). Content Encoders And Decoders:The content encoders translate web content into compact encoded formats to reduce the size and number of packets travelling over the wireless data network. The infrastructure ensures that mobile terminal users can browse a variety of WAP content and applications regardless of the wireless network they use. Application authors are able to build content services and applications that are network and terminal independent, allowing their applications to reach the largest possible audience. Because of the WAP proxy design, content and applications are hosted on standard WWW servers and can be developed using proven Web technologies such as CGI Scripting. The WAP Gateway can also interface with subscriber databases and use information from the wireless network, such as
CAS, KDTY
10
3.WAP server
It is simply a combined web server and WAP gateway. WAP devices do not use SSL. Instead they use WTLS. Most existing web servers should be able to support WAP content as well. Some new MIME types need to be added to your web server to enable it support WAP content. MIME stands for Multipurpose Internet Mail Extension, and in the web context, MIME can be thought of as a piece of header information that comes down with every file sent from a web server to a browser.
CAS, KDTY
11
MOTIVATION
During the last couple of years, the Internet has grown at a tremendous pace and has proved to be an easy and efficient way for delivering services to millions of wireline users. Parallely, wireless voice communication has grown at an equally rapid pace and gained wide acceptance. shortcomings: 1. The Internet requires a wireline connectivity for accessing the services,posing a problem to those users who spend substantial amount of their time on the move. 2. Todays wireless network infrastructure does not have the flexibility required for rapid deployment of wireless data services like telephony services. The Internet and wireless industries realised that Wireless Internet can be a single solution that can effectively address the shortcomings of both these technologies. Wireless Internet not only enables accessing the services offered by Internet from mobile phones thereby overcoming the constraint imposed by the Internet, but also allows the network operators to host wireless data services on Internet platform. Early efforts at unifying the Internet and wireless technologies to launch wireless services were not very successful. Such attempts were made by independent wireless data carriers using proprietary technologies that were bound to fail due to a fragmented market and low economies of scale. The WAP Forum was founded by Ericsson, Motorola, Nokia and Unwired Planet (now Phone.com) to develop standards to make universal wireless Internet access a reality. The WAP specification was developed by WAP Forum to adapt the Internet technology to address issues specific to wireless environment. The inherent constraints of wireless network technology like limited bandwidth, high latency, However, both these technologies have certain
CAS, KDTY
12
unpredictable availability and less reliable connection stability are adequately addressed by the WAP specification. The WAP specification also deals with issues related to wireless devices like limited computational capability, small memory size, limited battery power, limited input mode and small display size.eb server to a browser.
CAS, KDTY
13
FEATURES OF WAP
Some of the key features of WAP are :
1. Interoperability: WAP is an open license-free standard, which ensures that WAP-compliant devices are interoperable. 2. Scalability: WAP applications scale across a variety of wireless transport options like GSM SMS, GSM USSD, IP, CDMA, etc., and also across a wide range of wireless terminals from hand sets to powerful PDAs. 3. Extensibility: WAP has been designed as a future-proof technology. It is extensible over time to new networks and transports thereby protecting the mobile network 4. Flexibility: WAP is a flexible solution that caters to the requirements of various types of applications by providing service options like connection mode and connection-less services, with or without end-toend security. 5. Reusability: WAP specification extends and adapts existing Internet standards such as HTTP, IP, Proxy technology, SSL, TLS, XML, HTML,etc., to wireless environment instead of defining a new set of standards.
CAS, KDTY
14
ARCHITECTURE
The WAP Protocol Stack is implemented via a layered approach (similar to the OSI network model). These layers consist (from top to bottom) of:
Wireless Application Environment (WAE) Wireless Session Protocol (WSP) Wireless Transaction Protocol (WTP) Wireless Transport Layer Security (WTLS) Wireless Datagram Protocol (WDP) Bearers (GSM, IS-136, CDMA, GPRS, CDPD, etc.) The WAP stack can be configured in four different ways to provide
four different types of services. Following are the four types of services offered by WAP : 1. Connectionless service: The WAP protocol stack used for this service consists of only WSP layer operating directly over WDP layer. 2. Connectionless service with security: This configuration is similar to connectionless service but provides security by having WTLS layer between WSP and WDP layers. 3. Connection oriented service: The configuration of protocol stack used for this service consists of WSP, WTP and WDP layers with ordering of the layers same as that shown in Figure WTP and WDP layers together provide a connection oriented transport service in this configuration.
CAS, KDTY
15
4.Connection oriented service with security: This configuration consists of all the layers of WAP stack.
Different protocol layers and application environment of WAP: 1. Wireless Datagram Protocol (WDP)
WDP provides the higher layers of the stack with a consistent interface to underlying bearer. WDP operates transparently over one of the available bearer services there by making the upper layers of the WAP stack independent of the bearer. Since the services offered by underlying bearers vary widely, WDP contains adaptation layers to map WDP functions to services offered by different bearers. The functionality of WDP when operating on IP bearer is exactly same as the Internet standard User Datagram Protocol (UDP). WDP provides a connectionless, unreliable datagram service. WDP supports underlying bearer service. WDP uses port numbers to address higher layer entities as in transport layer of the Internet protocol stack. WDP can be extended to support optional error reporting mechanism by adding Wireless Control Message Protocol (ICMP).
CAS, KDTY
16
2. reliable push service 3 . reliable transaction service The features of WTP are selective retransmissions, duplicate removal, segmentation/reassembly, port number addressing, user-touser reliability (through user-to-user acknowledgements) in addition to protocol acknowledgements, asynchronous transactions, optional out-ofband information, delayed acknowledgements and message concatenation to improve over-the-air efficiency. WTP is message oriented protocol, which makes it suitable for interactive browsing applications.
CAS, KDTY
17
CAS, KDTY
18
application environment framework, which enables a wide range of applications (user-agents) to be used on wireless terminals. WAE is consistent with the Internet/WWW programming model including authoring and publishing methods. WAE allows the MMI to be controlled by the vendor of the handset. WAE is designed to leverage on standard Web Servers (origin servers) to host content and services. The content is addressed using the Internet standard URLs and URIs. Following are the various components of WAE: 1. Wireless Markup Language (WML) 2. WMLScript 3. WAP Content Types 4.Wireless Telephony Application (WTA) environment
WML
It is a tag based markup language, which is derived from XML and is similar to the Internet standard HTML. WML addresses the constraints such as small displays, limited user-input capability, narrow-band network connections, limited processing power and limited memory resources in a wireless device. The key features of WML are navigation support, hyperlinks, soft-button support, screen management (displaying formatted text, images) and user data input (text, selection lists).
CAS, KDTY
19
The following gives the characteristics of WML: a) WML performs the same as HTML on the Internet. b) WML is also a tag-based language. c) WML is a case-sensitive language. d) WML organizes the document that is cards and decks. Cards specify any one or more units of user interface. Cards are grouped together into deck. Cards are same as HTML file and deck is same as HTML page. e) <WML> tag identifies a deck. </WML>. f) <Card> to create a card, </Card> to close the card. g) Card has two attributes ID and title. The ID attribute is used to identify card in a deck, and title attribute takes a text string to display as the title of the card. EX: <WML> <card id = card1 title= first card> <p> WELCOME TO CARD1 </p> </card> </WML> it will print on the screen of the WAP device. Similarly the various applications can be implemented through WML.
CAS, KDTY
20
WMLScript
WMLScript is a lightweight procedural scripting language. It is an extended subset of JavaScript TM scripting language. It enhances the presentation facilities offered by WML and supports advanced dynamic UI behavior by adding intelligence on the client side. WAP defines several content formats based on standard WWW content formats that facilitate interoperable data exchange. All WAP content is specified in one of the defined content formats. As in WWW content formats, a header contain-ing content type field allows the micro-browser to process the content based on its type. The two most important formats defined by WAP are encoded WML and WMLScript formats. The purpose of WMLScript is to provide client-side procedural logic. It is based on ECMAScript (which is based on Netscapes JavaScript language), however it has been modified in places to support low bandwidth communications and thin clients. The inclusion of a scripting language into the base standard was an absolute must. While many Web developers regularly choose not to use client-side JavaScript due to browser incompatibilities (or clients running older browsers), this logic must still be replaced by additional server-side scripts. This involves extra roundtrips between clients and servers which is something all wireless developers want to avoid. WMLScript allows code to be built into files transferred to mobile client so that many of these round-trips can be eliminated. According to the WMLScript specification, some capabilities supported by WMLScript that are not supported by WML are:
Check the validity of user input Access to facilities of the device. For example, on a phone, allow the programmer to make phone calls, send messages, add phone numbers to the address book, access the SIM card etc.
CAS, KDTY
21
Generate messages and dialogs locally thus reducing the need for expensive round-trip to show alerts, error messages, confirmations etc.
Allow extensions to the device software and configuring a device after it has been deployed.
WMLScript is a case-sensitive language that supports standard variable declarations, functions, and other common constructs such as if-then statements, and for/while loops. Among the standards more interesting features are the ability to use external compilation units (via the use url pragma), access control (via the access pragma), and a set of standard libraries defined by the specification (including the Lang, Float, String, URL, WMLBrowser, and Dialogs libaries). The WMLScript standard also defines a bytecode interpreter since WMLScript code is actually compiled into binary form (by the WAP gateway) before being sent to the client.
WTA
It provides extensions for telephony services like call and feature control mechanisms, voice mail, messaging, phone-book management, etc., to make them accessible to WAP content developers. WTA framework also allows real-time processing of events important to the end-user while browsing. WTA provides a library of telephony-related functions called Wireless Telephony Application Interface (WTAI) that can be invoked from WML/WMLScript. MLScript formats. WAE typically consists of two user-agents: a micro-browser and a telephony application. A micro-browser is similar to a web browser such
CAS, KDTY
22
as Netscape Navigator or Internet Explorer with additional optimizations required to run on a consumer handset. A micro-browser interprets WML/WMLScript content types. A telephony application is used for providing telephony services offered by WTA to end-user. WWW content (e.g., HTML), a filter is used to translate the WWW content to WAP content.
APPLICATIONS
Some of the interesting applications of WAP (already existing or being worked on) are:
Computer Sciences Corporation (CSC) and Nokia are working with a Finnish fashion retailer who plans to send clothing offers direct to mobile telephones using a combination of cursors, touch screen technology and WAP to allow would-be shoppers to hot-link to order-entry pages on the web.
In Finland, children already play new versions of competitive games such as "Battleships", via the cellular networks. In the music world, Virgin Mobile in the UK offers to download the latest pop hits to customers in a daily offering.
Scala has developed several WAP products for small to mediumsized companies which would allow, for example, a field sales force to access customer order information and stock availability details via a WAP handset.
A key growth area for the technology will be business-toworkforce, with companies using WAP applications to reach employees at any time. Scala is currently working on time-sheet applications and techniques for entering and filing expense claims via the mobile phone.
CAS, KDTY
23
Nokia says applications that will benefit from WAP include customer care and provisioning, message notification and call management, e-mail, mapping and location services, weather and traffic alerts, sports.
CAS, KDTY
24
CAS, KDTY
25
differentiation between vendor products and implementations may lead to a fragmented wireless Web. WAP also could be found lacking if compared to more powerful GUI platforms such as Java, for instance. For now, processor speeds, power requirements, and vendor support are all limiting factors to Java deployment but its not hard to imagine a day in the near future where Java and WAP exist side-by-side just as Java and HTML do today. In that circumstance, Java would hold a clear advantage over WAP due to the fact that a single technology could be used to build applications for the complete range of operating devices. Of course, on the flip side, the world is not all Java and there will always be a place for markup languages in lieu of full-blown object-oriented platforms.
CAS, KDTY
26
CAS, KDTY
27
9,600 bits of information a second. With GPRS the speed will rise to 100,000.
CAS, KDTY
28
MARKET POTENTIAL
As WAP aims at bridging two of the most successful technologies of the communication revolution - Internet and Wireless, the success of WAP is assured. Market studies show that the share of global wireless communication revenues as a percentage of the total telecommunication revenues - is consistently on the rise (from a mere 5% in 1992 to around 20% in 2000). With telecommunication industry revenues touching the US $1000 billion mark and growing at a rate of 7%, the industry is all set to reach the US $1.5 trillion size by 2004. Close to a quarter of these revenues would be from the wireless domain - where WAP enabled product vendors, service providers and network operators would meet the advanced data needs of over 500 million subscribers. 04, there could be more than 700m mobile commerce users. 04, there could be more than 700m mobile commerce users.
CAS, KDTY
29
CONCLUSION
The primary focus of WAP technology is to create a global wireless internet by bringing services offered by internet to mobile phone users. Industry leaders in handset manufacturing representing over 90% of the world market and mobile network operators representing about 300 million subscribers are adopting this technology. WAP has been designed to benefit wireless subscribers, handset vendors, network operators and service providers. Subscribers get access to a wide range of services available on Internet from their mobile phones and other wireless interoperable open standard, whichis is handset vendor independent. Some critics and second-guessers have pondered the need for a technology. WAPs use of the deck of cards pattern and use of binary file distribution meshes well with the display size and bandwidth constraints of typical wireless devices. Scripting support gives us support for client-side user validation and interaction with the portable device again helping to eliminate round trips to remote servers. WAP is a young technology that is certain to mature as the wireless data industry as a whole matures; however, even as it exists today, it can be used as an extremely powerful tool in every software developers toolbox.
CAS, KDTY
30
REFERENCES
CAS, KDTY