12.2
I
WIRELESS
APPLICATION
PROTOCOL
393
The fourth phase completes the setting up
of
a secure connection. The client
sends a
change_cipher_spec
message and copies the pending CipherSpec into
the current CipherSpec. Note
that
this message
is
not
considered
part
of
the Hand-
shake Protocol
but
is
sent using the Change Cipher Spec Protocol. The client then
immediately sends the finished message
under
the new algorithms, keys,
and
secrets.
The finished message verifies
that
the key exchange and authentication processes
were successful.
In
response
to
these two messages, the server sends its own
change_cipher_spec
message, transfers the pending to the current CipherSpec,
and sends its finished message.
At
this point the handshake
is
complete and the
client and server may begin to exchange application layer data.
Wireless
Datagraln
Protocol
WDP
is
used to adapt a higher-layer WAP protocol to the communication mechanism
(called the bearer) used between the mobile node and the WAP gateway. Adaptation
may include partitioning data into segments
of
appropriate size for the bearer and
interfacing with the bearer network.
WDP
hides details ofthe various bearer networks
from the other layers of
WAP.
In some instances, WAP
is
implemented on top of
IP.
WDP
Service
The
WDP
service
is
defined by two service primitives. The T-DUnit-
data primitive provides a nonconfirmed service with the following parameters:
• Source address: Address
of
the device making a request to the
WDP
layer
• Source port: Application address associated with the source address
• Destination address: Destination address for
the
data submitted to
WDP
• Destination port: Application address associated with the destination address
•
User
data: User data from the next higher layer, submitted to
WDP
for trans-
mission to the destination
port
The T-Derror.ind primitive
is
used
to
alert a
WDP
user
of
a failure to deliver a
WDP
datagram. In addition to the source address, source port, destination address,
and
destination
port
parameters, T-Derror.ind includes an
error
code
parameter
with local significance.
WDP
Protocol
The following fields are necessary in a
WDP
PDU:
• Destination Port
• Source Port
If
the underlying
bearer
does
not
provide segmentation and reassembly, the
feature
is
implemented in
WDP
in a bearer-independent
way.
For example, GSM (Global System for Mobile Communications) dictates a
format for a user data header, in which
the
header
consists
of
a sequence
of
infor-
mation elements, and each element
is
defined by an identifier, a length, and one
or
more
bytes of value. The
WDH
PDU
for GSM has
the
following structure:
•
Header
length (1 byte): Length
of
header.
•
Port
numbers identifier (1 byte): The value 5 indicates
that
this information
element consists
of
two
port
numbers.