Wireless Application Protocol
Wireless Application Protocol
Wireless Application Protocol
Wireless
Application
Protocol
4
WAP bridges the gap between the wireless mobile
world and the internet. The Wireless Application
Protocol (WAP) , is a collection of protocols and
transport layers which allow mobile and portable
communication devices such as mobile phones
and Personal Digital Assistants (PDA’s), to receive
information over the airwaves such as personal
computers users obtain information over the
internet. . WAP is simply a protocol- a
standardized way that a mobile phone talks to a
server installed in the mobile phone network.
4
WAP
Abstract
WAP bridges the gap between the wireless mobile world and the internet. The Wireless
Application Protocol (WAP) , is a collection of protocols and transport layers which
allow mobile and portable communication devices such as mobile phones and Personal
Digital Assistants (PDA’s), to receive information over the airwaves such as personal
computers users obtain information over the internet. . WAP is simply a protocol- a
standardized way that a mobile phone talks to a server installed in the mobile phone
network.
Introduction
WAP is a hot topic that has been widely hyped in the mobile industry and outside of it. It
has become imperative for all Information Technology companies in Nordic countries
and beyond to have a WAP division. Many advertising agencies and "dotcoms" have
announced WAP services. From the user's perspective, using WAP is much like surfing
the net on a personal computer; the mobile device is fitted with a small, or not so small,
display which can be used just like a desktop browser. Information sources can be
selected which are then downloaded and their content is displayed. Hyper Text links and
buttons can then be pressed to move around from page to page in a very simple way. In
this respect, there is very little difference between WAP browsing and desktop surfing,
but, behind the scenes there are considerable differences because of the medium through
which the information must travel, over radio waves rather than along hard-wired or
telephone lines.
Importance of WAP
SeminarsTopics.com
WAP
Its founder members include the major wireless vendors of Nokia, Ericsson and
Motorola, plus a newcomer Phone.com.
Compared to the wired networks there are many constraints in this wireless world.
* More latency
.In order to meet the requirements for mobile operations the solutions must be:
It is very difficult to configure WAP phones for new WAP services, with 20 or so
different parameters needing to be entered to gain access to a WAP service.
SeminarsTopics.com
WAP
Compared with the installed base of Short Message Service (SMS) compliant
phones, the relative number of handsets supporting WAP is tiny. WAP is a
protocol that runs on top of an underlying bearer. None of the existing GSM
bearers for WAP- the Short Message Service (SMS), Unstructured Supplementary
Services Data (USSD) and Circuit Switched Data (CSD) are optimized for WAP.
There are many WAP Gateway vendors out there competing against each other
with largely the same standardized product. This has led to consolidation such as
the pending acquisition of APiON by Phone.com.
Other protocols such as SIM Application Toolkit and Mobile Station Application
Execution Environment (MexE) are respectively already widely supported or
designed to supercede WAP.
WAP services are expected to be expensive to use since the tendency is to be on-
line for a long Circuit Switched Data (CSD) call as the end user uses features such
as interactivity and selection of more information. Without specific tariff
initiatives, there are likely to be some surprised WAP users when they see their
mobile phone bill for the first time after starting using WAP.
Infrastructure of WAP
SeminarsTopics.com
WAP
WML
Filter
WML
HTML
WML WAP
Web
Proxy
server
HTML
WML
Filter
TeleVAS
WAP Proxy Server
WML
The Wireless Application Protocol embraces and extends the previously conceived and
developed wireless data protocols. Phone.com created a version of the standard HTML
(Hyper Text Markup Language) Internet protocols designed specifically for effective and
cost-effective information transfer across mobile networks. Wireless terminals
incorporated a HDML (Handheld Device Markup Language) microbrowser, and
Phone.com's Handheld Device Transport Protocol (HDTP) then linked the terminal to the
SeminarsTopics.com
WAP
UP. Link Server Suite which connected to the Internet or intranet where the information
being requested resides. The Internet site content was tagged with HDML.
This technology was incorporated into WAP- and renamed using some of the many WAP-
related acronyms such as WMLS, WTP and WSP. Someone with a WAP-compliant phone
uses the in-built microbrowser to:
2. This request is passed to a WAP Gateway that then retrieves the information
from an Internet server either in standard HTML format or preferably directly
prepared for wireless terminals using WML. If the content being retrieved is in
HTML format, a filter in the WAP Gateway may try to translate it into WML. A
WML scripting language is available to format data such as calendar entries and
electronic business cards for direct incorporation into the client device.
3. The requested information is then sent from the WAP Gateway to the WAP
client, using whatever mobile network bearer service is available and most
appropriate.
SeminarsTopics.com
WAP
WTP provides the protocol that allows for interactive browsing (request/response)
applications. It supports three transaction classes: unreliable with no result message,
reliable with no result message, and reliable with one reliable result message. Essentially,
WTP defines the transaction environment in which clients and servers will interact and
exchange data.
The WDP layer operates above the bearer layer used by your communications provider.
Therefore, this additional layer allows applications to operate transparently over varying
bearer services. While WDP uses IP as the routing protocol, unlike the Web, it does not
use TCP. Instead, it uses UDP (User Datagram Protocol) which does not require messages
to be split into multiple packets and sent out only to be reassembled on the client. Due to
the nature of wireless communications, the mobile application must be talking directly to
a WAP gateway (as opposed to being routed through myriad WAP access points across
the wireless Web) which greatly reduces the overhead required by TCP.
ARCHITECTURE
A-SAP
SeminarsTopics.com
WAP
SeminarsTopics.com
WAP
sections.
The origin servers will respond to the request. The gateway now
encodes this response and its content and transfers the encoded response with the content
to the client. The WAE logical model does not only include this standard request/response
scheme, but also push devices. Then an origin server pushes content to the gateway. The
gateway encodes the pushed content and transmits the encoded pushed content to the
client.
With in a client several user agents can reside. User agents include
such items as browsers, phone books, messages editors etc. WAE does neither specify the
number of user agents nor their functionality, but assumes basic WML user agents that
support WML, WML script or both. Domain specific user agents with varying
architectures can be implemented. WTA user handles access to and interaction with
mobile telephone features (such as call control).
SeminarsTopics.com
WAP
A sandwich layer that links the WAE to two session services- one
connection oriented operating above the Wireless Transaction Protocol and a
connectionless service operating above the Wireless Datagram Protocol.
SeminarsTopics.com
WAP
Session management:
WSP introduces sessions that can be established from a client to a server and
maybe long lived. Sessions can also be released in an orderly manner. Important
for mobile applications are suspending and resuming a session.
Capability of negotiation:
Clients and servers can agree on a common level of protocol functionality during
session establishment.
Content encoding:
WSP defines an efficient binary encoding for the content it transfers. WSP offers
content typing and composite objects.
SeminarsTopics.com
WAP
headers are used to define content type, character set encoding languages etc., but
binary encoding are defined for well known headers to reduce the protocol
overheads.
Exchange of session headers: Client and server can exchange request/reply
headers that remain constant over the life time of the session. These headers may
include content types, character sets, languages, device capabilities and other
static parameters. WSP/B will not interpret header information but passes all
headers directly to service users.
Push and pull data transfer: Pulling data from the server is supported by the
WSP/B by using the request/response mechanism from HTTP/1.1. WSP/B
supports three push mechanisms for the data transfer. a confirmed data push with
in the an existing session context, a non confirmed data push with in an existing
session context and a non confirmed data push with out an existing session
context.
Asynchronous data requests: Optionally WSP/B supports a client that can send
multiple requests to a server simultaneously. This improves the efficiency for the
requests and replies can be now coalesced to in to fewer messages. Latency is also
improved, for each result can be send to the client as soon as it is available.
SeminarsTopics.com
WAP
WTP Class 0
SeminarsTopics.com
WAP
The WDP entity at the initiator sends an invoke PDU which the responder
receives. The WDP entity at the responder generates a TR-Invoke.ind primitive with the
same parameters as on initiator side except for H’ which now is for the responder side. In
this the responder does not acknowledge the message and the initiator does not perform
any retransmission and is recommended to use only when a datagram service is required.
Initiator responder
TR-SAP TR-SAP
TR-Invoke.req
(SA,SP,DA,DP,A,UD,C=0,H) Invoke TR-Invoke.ind
PDU (SA,SP,DA,DP,A,UD,C=0,H’)
WTP Class0:
WTP Class 1:
SeminarsTopics.com
WAP
Initiator responder
TR-SAP TR-SAP
TR-Invoke.req
(SA,SP,DA,DP,A,UD,C=1,H) Invoke TR-Invoke.ind
PDU (SA,SP,DA,DP,A,UD,C=1,H’)
Ack
PDU TR-Invoke.res (H’)
TR-Invoke.cnf
(H)
WTP Class1:
WTP Class 2;
SeminarsTopics.com
WAP
the WTP entity sends the invoke PDU to the responder. The responder indicates the
request with the TR-Invoke.ind primitive to a user. The responder waits for the
processing of the request, the user on the responder’s side can finally give the result UD*
to the WTP entity on responder side using TR-Result.req. Now the result PDU can be
sent back to the to the initiator which implicitly acknowledges the invoke PDU. Thus the
initiator can indicate the successful transmission of the invoke message and the result
with the two service primitives TR-Invoke.cnf and TR-Result.ind. A user may respond to
this result with the TR-Result.res then an acknowledgement PDU is generated which
finally triggers the TR-Result.cnf primitive on the responder’s side.
Initiator responder
TR-SAP TR-SAP
TR-Invoke.req
(SA,SP,DA,DP,A,UD,C=2,H) Invoke TR-Invoke.ind
PDU (SA,SP,DA,DP,A,UD,C=2,H’)
Result
TR-Result.req (UD*,H’)
TR-Invoke.cnf
(H) PDU
TR-Result.ind
(UD*, H) TR-Result.cnf
Ack (H’)
PDU
TR-Result.res
(H)
WTP Class2:
SeminarsTopics.com
WAP
The Wireless Transport Layer Security protocol is based on Transport Layer Security
(TLS) or formerly known as Secure Sockets Layer (SSL). It is designed to be used with
other WAP protocols and to support narrow-band networks. It uses data encryption with a
method that is negotiated at the start of the session to provide privacy, data integrity,
and authentication and denial-of-service protection. The latter is needed in cases when
data is replayed or not properly verified. When that happens, WTLS detects the misuse
and rejects the data in order to make many typical denial-of-service attacks harder to
accomplish.
WTLS can provide different levels of security (for privacy, data integrity and
authentication) and has been optimized for low band width, high delay bearer net works.
WTLS take in to account the low processing power and very limited memory capacity of
the mobile devices for cryptographic algorithms. WTLS supports datagram and
connection oriented transport layer protocols.
Before data can be exchanged via WTLS, a secure session has to be established. Figure
shown below illustrates the sequence of service primitives needed for “full hand shake“.
The originator and the peer of the secure session can both interrupt session establishment
any time; eg: if the parameters proposed are not acceptable.
SeminarsTopics.com
WAP
Originator Peer
SEC-SAP SEC-SAP
SEC-Create.req
(SA,SP,DA,DP,KES,CS,CM)
SEC-Create.ind
(SA,SP,DA, DP,KES,CS,CM)
SEC-Create.res
SEC-Create.cnf (SNM,KR,SID,KES’,CS’,CM’)
(SNM,KR,SID,KES’,CS’,CM’)
SEC-Exchange.req
SEC-Exchange.ind
SEC-Exchange.res
(CC)
SEC-Exchange.cnf
SEC-Commit.req (CC)
SEC-Commit.ind
SEC-Commit.cnf
SeminarsTopics.com
WAP
The first step of the secure session creation, the negotiation of the
security parameters and suites, is indicated on the originators side, followed by a request
for a certificate. The originator answers with its certificate and issues SEC-Commit.req
primitive .This primitive indicates that the hand shake is completed for the originator’s
side and that the originator now wants to switch in to the newly negotiated connection
side. The certificate is delivered to the peer side and the SEC-Commit is indicated. The
WTLS layer of the peer sends back a confirmation to the originator. This concludes the
full handshake of the for secure session setup.
SeminarsTopics.com
WAP
Sender Receiver
SEC-SAP SEC-SAP
SEC-Unitdata.req
(SA,SP,DA,DP,UD)
SEC-Unitdata.ind
(SA,SP,DA,DP,UD)
SeminarsTopics.com
WAP
SeminarsTopics.com
WAP
T-DUnitdata.req
(DA,DP,SA,SP,UD) T-SAP T-SAP
(
T-DUnitdata.ind
(SA,SP,UD)
T-DUnitdata.req
(DA,DP,SA,SP,UD)
T-DError.ind
(EC)
If a higher layer requests a service the WDP cannot fulfill, this error is indicated with
T-DError.ind service primitive. An error code (EC) is returned indicating the reason for
the error to the higher layer. However, this primitive must not be used by the WDP to
indicate problems with the bearer service, only for local problems, such as a user data
size that is too large.
If any error happen when WDP datagrams are sent from one WDP entity to another
(eg: destination is unreachable, no application is listening to the specified destination or
port etc. ) the wireless control message protocol (WCMP) provides error handling
mechanisms for WDP.WCMP can be used by the WDP nodes and gateways to report
errors. Typical WCMP messages are destination unreachable (route, port, address
unreachable), parameter problem, (errors in the packet header), message too big,
reassembly failure or echo request/reply
SeminarsTopics.com
WAP
Given its limited length of 160 characters per short message, SMS
may not be an adequate bearer for WAP because of the weight protocol of the
protocol. The overhead of the WAP protocol that would be required to be transmitted
in an SMS message would mean that even for the simplest of transactions several
SMS messages may in fact have to be sent. This means that using SMS as a bearer
SeminarsTopics.com
WAP
can be a time consuming and expensive exercise. Only one network operator- SBC of
the US- is known to be developing WAP services based on SMS.
Most of the trial WAP based services use CSD as the underlying
bearer. Since CSD has relatively few users currently, WAP could kick start usage of
and traffic generated by this bearer.
Turnaround response times for interactive applications are shorter for USSD than
SMS because of the session-based feature of USSD, and because it is NOT a store
and forward service. According to Nokia, USSD can be up to seven times faster
than SMS to carry out the same two-way transaction.
SeminarsTopics.com
WAP
Users do not need to access any particular phone menu to access services with
USSD- they can enter the Unstructured Supplementary Services Data (USSD)
command direct from the initial mobile phone screen.
Because USSD commands are routed back to the home mobile network's Home
Location Register (HLR), services based on USSD work just as well and in
exactly the same way when users are roaming.
Unstructured Supplementary Services Data (USSD) works on all existing GSM
mobile phones.
Both SIM Application Toolkit and the Wireless Application Protocol support
USSD.
USSD Stage 2 has been incorporated into the GSM standard. Whereas
USSD was previously a one way bearer useful for administrative purposes such as
service access, Stage 2 is more advanced and interactive. By sending in a USSD2
command, the user can receive an information services menu. As such, USSD
Stage 2 provides WAP-like features on EXISTING phones.
USSD strings are typically complicated for the user to remember, involving the
use of the "*" and "#" characters to denote the start and finish of the USSD string.
However, USSD) strings for regularly used services can be stored in the
phonebook, reducing the need to remember and reenter them.
SeminarsTopics.com
WAP
Since all but the early WAP enabled phones will also support the
General Packet Radio Service, WAP and GPRS could well be synergistic and be used
widely together. For the kinds of interactive, menu based information exchanges that
WAP anticipates, Circuit Switched Data is not immediate enough because of the need
to set up a call. Early prototypes of WAP services based on Circuit Switched Data
were therefore close to unusable. SMS on the other hand is immediate but is
ALWAYS store and forward, such that even when a subscriber has just requested
information from their microbrowser, the SMS Center resources are used in the
information transfer. As such, GPRS and WAP are ideal bearers for each other.
SeminarsTopics.com
WAP
END USER:
Mobile phones have become dominant tools in communications and at the same
time the internet has become a de facto platform for information. By adopting a
common protocol the end user will be provided with more value added services
which are easy to access and easy to use directly from mobile phone Telephony
oriented services will be made easier to understand and to use.
OPERATORS:
The operators can differentiate by launching special services, for example for
banking stock trading, directory services etc. A further differentiation is that the
protocol makes it possible to tailor-make specific menus with in the mobile phones,
facilitating the use of the services. This customization can be made over the air.
INDUSTRY:
Future directions:
SeminarsTopics.com
WAP
another dimension and will give opportunities for transmission of both pictures and
videos.
Conclusion:
The WAP WSP specification defines the WSP push operation and a WSP push PDU (Protocol
Data Unit). A push operation is not specified for the HTTP protocol, used by the WAP
Gateway server to communicate with content hosts.
To support pushes, the server has to provide an application interface to allow server based
applications to generate a push to a mobile client. The support of pushes on the client side
depends on the capabilities of the handsets to handle pushed content. The Nokia OTA
configuration proposal to the WAP Forum describes the use of a connectionless push over the
SMS bearer, to transfer the configuration data to the handset.
The so-called Wireless Telephony Application (WTA) was only defined by the WAP Forum in
June 1999. The WTA gives WAP some of the features that SIM Application Toolkit
incorporates such as access to phone report and call handling.
There are no "cookies" for session management, i.e. to hold the session together. Cookies are
used on the fixed Internet to identify the web browser and thereby assist in providing
customized and streamlined services. Instead, some WAP applications use indexes in the URL
as an alternative.
SeminarsTopics.com
WAP
The cookie information is transmitted via HTTP headers. Because WAP WSP is based on
HTTP headers, it should be possible to transmit cookie information to the clients. The
problem may be the clients itself, which may currently not support the handling of cookie
HTTP header information or to save this information to a persistent storage in the mobile
phone.
The Wireless Transport Layer Security defines encryption between the Mobile Station and the
WAP Gateway. The "endpoint" of the encrypted WTLS data is the WAP Gateway proxy
server. To have a secure connection to a content host (e.g. banking server) the Gateway proxy
server has to establish secure (https) connections to this hosts. In this case the proxy server
has access to the decrypted data received via WTLS from the mobile station or from the
content host via https.
WAP incorporates no compression techniques for the textual content, although the WML
markup commands are compressed. Additionally, the "deck"- the smallest unit of
downloadable information in Wireless MarkUp Language- is limited to a maximum of 1400
bytes. This means that applications need to be specifically designed to be very code efficient
by using templates and variables and keeping information on the server and using the cache
on the phone.
WML byte code converting defines a (maybe inefficient) compression technique by string
tables. With this technique duplicate strings in the WMLC bytecode are avoided. This reduces
the size of the data to transfer to the mobile client. The WSP SDU size of 1400 bytes is a
default value. An increased size may be negotiated by a mobile client within the WSP
capabilities. The WAP transport layer (WTP) is able to handle greater SDU sizes than 1400
too, by using SAR (Segmentation and Re-assembly).
However, programmers need to be aware of them when they commence WAP application
design.
WAP is a client server philosophy, requiring a microbrowser in the mobile phone and a WAP
Gateway connected to the mobile network. By early 2000, WAP clients such as the Nokia
7110 were becoming available in quantity and other phone vendors such as Alcatel and
Motorola have announced that they are introducing support for the Wireless Application
Protocol across their entire product range. However, since WAP requires a larger screen size
and more memory to handle the WAP stack, it costs more to produce a WAP handset and will
therefore mean more expensive mobile phone prices. WAP phones will therefore be
distinguishable from their non WAP counterparts to the informed observer- and will have the
"WWW:MMM" branding anyway- which the WAP Forum founders have agreed on to depict
WAP terminals. Support by mobile phones for WAP will be the simple largest determinant of
when WAP is a success.
SIM Application Toolkit is another wireless protocol that enables a similar functionality set to
WAP. SIM Application Toolkit has been around for longer than WAP and is at a later stage of
development and deployment than WAP but is a GSM only technology that has not been
SeminarsTopics.com
WAP
widely adopted by leading mobile phone vendors such as Nokia and Ericsson. SIM
Application Toolkit is supported by perhaps a quarter of the installed base of GSM phones. It
may be that application developers need to support BOTH WAP and SIM Application Toolkit
AND standard SMS in their Gateways so that the applications and services can be offered to
ALL mobile phone users, rather than just a subset. Widespread reach is of course essential in
maximizing use of the services and helping build a wireless Internet portal that is popular with
all mobile phone users.
Despite today's lack of an installed base of WAP capable mobile phones, there are several
vendors of WAP Gateways that network operators, content providers and application
developers can work with to develop WAP-based services. WAP Gateways are installed into
the mobile phone network to provide a gateway between the Internet and different mobile
nonvoice services such as the Short Message Service, Circuit Switched Data and General
Packet Radio Service. The WAP Gateway is essentially a piece of middleware, taking
information from a web server, processing it, and sending it out over the mobile network to a
WAP client.
Of the WAP Forum members, there are about a dozen suppliers of WAP Gateways. WAP
Gateway suppliers include CMG, Nokia, Ericsson, Phone.com (formerly Unwired Planet),
Materna and Motorola. SMS Server platform suppliers such as Sendit and Tecnomen have
NOT developed their own WAP Gateway.
FORMATION
Motorola, Nokia, Ericsson and the US software company Phone.com (formerly Unwired
Planet) were the initial partners that teamed up over two years ago in mid 1997 to develop
and deploy the Wireless Application Protocol (WAP). WAP is an attempt to define the
standard for how content from the Internet is filtered for mobile communications. Content is
now readily available on the Internet and WAP was designed as the (rather than one) way of
making it easily available on mobile terminals.
The WAP Forum was formed after a US network operator Omnipoint issued a tender for the
supply of mobile information services in early 1997. It received several responses from
different suppliers using proprietary techniques for delivering the information such as Smart
Messaging from Nokia and HDML from Phone.com (then called Unwired Planet). Omnipoint
informed the tender responders that it would not accept a proprietary approach and
recommended that that various vendors get together to explore defining a common standard.
After all, there was not a great deal of difference between the different approaches, which
could be combined and extended to form a powerful standard. These events were the initial
stimulus behind the development of the Wireless Application Protocol, with Ericsson and
Motorola joining Nokia and Unwired Planet as the founder members of the WAP Forum.
PHILOSOPHY
The Wireless Application Protocol takes a client server approach. It incorporates a relatively
simple microbrowser into the mobile phone, requiring only limited resources on the mobile
phone. This makes WAP suitable for thin clients and early smart phones. WAP puts the
intelligence in the WAP Gateways whilst adding just a microbrowser to the mobile phones
themselves. Microbrowser-based services and applications reside temporarily on servers, not
permanently in phones. The Wireless Application Protocol is aimed at turning a mass-market
SeminarsTopics.com
WAP
any mobile phone from those with a one line display to a smart phone
any existing or planned wireless service such as the Short Message Service, Circuit
Switched Data, Unstructured Supplementary Services Data (USSD) and General Packet
Radio Service (GPRS).
Indeed, the importance of WAP can be found in the fact that it provides an evolutionary
path for application developers and network operators to offer their services on different
network types, bearers and terminal capabilities.The design of the WAP standard separates
the application elements from the bearer being used. This helps in the migration of some
applications from SMS or Circuit Switched Data to GPRS for example.
any mobile network standard such as Code Division Multiple Access (CDMA), Global
System for Mobiles (GSM), or Universal Mobile Telephone System (3GSM). WAP has been
designed to work with all cellular standards and is supported by major worldwide wireless
leaders such as AT&T Wireless and NTT DoCoMo.
multiple input terminals such as keypads, keyboards, touch-screens and styluses.
SeminarsTopics.com