Professional Documents
Culture Documents
1 Introduction
As a case study we will analyze the IP packet interarrival time distribution taking into account also the packet
sizes in case when the IP packet trace was measured after
the GSM/GPRS radio interface. The LLC layer worked
in unacknowledged mode and the RLC layer worked in
acknowledged mode. In that case, the interarrival time
distribution contains information about the performance
of the radio interface. We combine the technical knowledge of how the corresponding radio interface and those
interfaces closely related to it work with the statistical
analysis of the data trace. In this way we get a better understanding of those factors that are important in analysis
and modelling of the radio interface. We show examples
from upstream trafc of GPRS sessions. We also present
the main ideas of the data analysis procedure along with
the case study. However, the general idea and method
is not in any sense limited to TDMA and should be use-
frame structure used in TDMA with GPRS, see the technical specication GSM 05.01 from [5].
Basic unit
TDMA Frame
8 TSs
Multiframe
52 TDMA Frames
240
Superframe
8 multiframes
1920
2 Case study
Duration
(ms)
Denition
such it could be a complementary tool for a radio interface protocol analyzer, a physical device, which has to be
close to the base station in order to capture and monitor
the trafc of the radio interface.
TCP, UDP
GGSN
bursts, blocks, frames and possible segments. At the network side this reassembly is not done at a single device;
each block is reassembled from four bursts of bits at the
BTS and forwarded to the BSC. There, frames are reassembled from blocks and relayed to the SGSN, where
segments are reassembled from frames. A segment may
consist of one or more IP packets of the same MS. The
SNDCP can optimize channel efciency by multiplexing
several small packets into one segment. It also divides
too large packets into several segments with the aim that
one segment ts within one frame. If the segment consists of one packet only, then the packet is in practice reassembled already at the BSC, but the SGSN is the place
where the packet is completely reassembled after the Um
and Gb interfaces. The GGSN is the rst place where
any action due to the IP packet header is done.
During the time of our measurement there was at least
one GPRS mobile phone available in the Finnish market that could use 2 PDCHs in the uplink radio interface. Moreover, this particular model had been available
at least a few months. On the other hand, it is unlikely
that any phone could have used more than 2 PDCHs in
the uplink.
A physical connection between a MS and a BSS is
called a Temporary Block Flow (TBF). The TBF is a unidirectional concept and consists of the allocation of one
or more PDCHs and the number of blocks to be sent or
received. The allocation can be xed or dynamic; by dynamic allocation, the number of blocks to be transmitted
is not xed beforehand. The TBFs are the main object of
our study.
The high Bit Error Rate (BER) of radio interfaces makes it necessary to use error correcting codes.
Technical specications introduce four channel coding
schemes, but only two of them, called CS-1 and CS-2,
were implemented at the network side during the time of
our measurement. CS-1 has a better error correcting capability and thus a larger coverage, but less user payload
bits at each block, and thus it offers a lower bit rate to the
user. Channel codings are used at the Um interface.
Given a packet of size bytes, the exact number of
bits of the packet at one block depends on the channel
(1)
Here
and
is just the size
of the packet, the payload of an LLC frame, in bits. The
value 40 is explained next.
Even the use of error correcting codes does not guarantee that the blocks (and frames) are correctly received
over the Um interface. To improve the reliability of data
transfer, both the RLC and/or LLC layers may work in
acknowledged mode; blocks (frames) are sent within a
window and are periodically acknowledged using a selective acknowledgement method allowing retransmissions of erroneously received blocks (frames). When the
data used in this paper were measured, the RLC layer
worked in acknowledged mode but the LLC layer did
not. It means that no reordering mechanism of the LLC
layer Packet Data Units (PDUs) was provided. Only
transmission and format errors of PDUs were detected,
and duplicate Unconrmed Information (UI) frames that
carried PDUs were discarded. The LLC layer PDU is
the same thing as a SNDCP segment, hence typically the
same thing as one IP packet or, sometimes, two small
packets multiplexed into one segment.
The smallest size of the UI frame without payload is
5 octets, 40 bits, see 3GPP TS 04.64 from [5]. We have
used this value as framing bits in formula (1). Luckily,
the formula (1) and our analysis are not very sensitive
to the exact value of framing bits; an error of 2-3 octets
would not be even visible in gure 2.
Nblock (B,CS)
60
50
Nblock
SGSN
!
)1
BSS
FR
RF
Bursts
G ( E @B @8 5 3 0
HFDCA976421)('
%
& 1 #
MS
MAC FR
BSSGP
RF
LLC
BSSGP
MAC
RLC
GTP
"!
Blocks
GTP
Frames
LLC
RLC
IP
SNDCP
SNDCP
Segments
Packets
IP
Gi
% (%
1
Gn
Gb
Um
1
CS-1
40
30
20
10
CS-2
0
0
Um
Block
The SGSN needs to know the location of the MS before any radio resource allocation can exist and data be
transmitted or received. The network functions that take
care of the locating of the MS are called Mobility Management (MM). The MM states are called idle, stand-by
and ready states. After IP context activation, and if no
data is transmitted, the MS is in stand-by state. When the
MS needs to transmit (or receive) data, it rst changes
from stand-by state to ready state, and only then some
time slots from the Um interface are reserved. After releasing the radio resources both in the uplink and downlink there is a timer that changes the MS back to the
stand-by state unless a new allocation is requested. In
[3] it was observed that the MS usually stayed in ready
state several seconds after the data transfer was ended.
This information is important in our study since it gives
us some realistic upper bound to the packet interarrival
delay in the case when we have to decide whether two
successive packets have been transmitted within the same
TBF or not.
During the time of the measurement, GSM voice calls
had strict priority over GPRS when the time slots from
the TDMA frame were allocated. If there was contention
of available GPRS resources between several MSs, trafc from different MSs was multiplexed into available
PDCHs. This resource sharing, if it has occured, has
probably been fair between users and not based on different QoS proles.
The BTS contains the GSM RF layer and the Channel Codec Unit (CCU) which, in the case of an uplink block, decodes the channel coding scheme. The
block is then transmitted over the Abis interface to the
BSC, where the Packet Control Unit (PCU) differentiates GPRS blocks from GSM voice blocks; look at Figure 3. The RLC/MAC protocol layer is implemented in
the PCU. It turned out to be important in this study that
the transfer rate of a single block at the Abis interface has
always been 16 kb/s and the PCU frame, which carries
one decoded block, is always of size 320 bits, making
the transfer delay 20 ms. PCU frames are also sent with
periods of 20 ms. In this way, all 12 blocks that can be
transmitted within one multiframe of one PDCH get their
own PCU frame, and the total time, 240 ms, remains the
same. These values do not depend on the number of user
bits at the block, i.e. on the channel coding scheme used.
456 b
2 1 %
!
2
3
320 b
BTS
PCU
BSC
one PDCH, and each of the PDCHs has its own 16 kb/s
channel at the Abis interface. Compare with formula (2).
The transfer protocol of the Gb interface of gure 1
can be Frame Relay (FR), ATM, or even FR over ATM.
FR offers the bit rates 64 kb/s, 128 kb/s, 256 kb/s, 384
kb/s, 512 kb/s and 1984 kb/s. We do not know a priori the upstream (or downstream) transfer rate in the Gb
interface. Since it depends on how many BTSs are connected to one BSC, it need not be the same for different
physical Gb interfaces. We will see that the upstream
transfer rate can sometimes be inferred from the sessionwise data. In general we assume that one LLC frame is
transmitted within one FR frame, see gure 3.
2.2
(3)
RF
CCU
FR
Frame
!
(2)
Gb
Abis
PCU
RLC
Frame MAC
in
A
4@
6 ( 0 % 3 2 0 $
75)' 41"
9
8
@
( % $ "
)' &#!
9
C
A
4
3 %
R
SH
% !
4
2 '
1
%
G
I
P
Q
H
I 5
G
E
F
A more serious problem than distortion is the buffering that occurs in the packets path before and at the measurement interface. However, at the BTS, there should
not be any buffering of blocks: erroneous blocks need
not be stored, and correctly received blocks are relayed
immediately to the BSC. At the BSC, there must be some
buffering capability of frames and blocks since, due to
RLC layer retransmissions, the blocks may not come in
the right order to the BSC. Hence the BSC must also have
reordering capabilities of blocks which may also induce
D
50
40
D
20
30
Rate (Mb/s)
10
Bi > Bi+1
-10
'
%
Bi < Bi+1
9
(5)
Dmax (ms)
10
-5
Maximum distortion
(4)
@ (
of the packet.
We dene
and
. One
of the basic assumptions is that the size dependent distortion dened by
is small. Distortion
can be written as
, which
shows that it depends on the sizes of the packets
and
. The maximum increase occurs, when
and
bytes. The maximum decrease occurs,
when
and
bytes. Figure 5 shows
this maximum distortion as a function of the bit rate. We
assume that the interface Gn between SGSN and GGSN
has to be at least of multiplexing hierachy E3, and the
conclusion is that the size dependent distortion should
be less than
ms. We assume now that
and
do not distinguish and any more in the notation.
Time
t* ti+1
i+1
di
t* ti
i
Bi+1
@ (
d*
i
Bi
d*s
i
d*r
i
d* = d*s + d*r
i
i
i
Packet
Duration
Volume
Mean Bit
% of TCP
Count
(kB)
Rate (kb/s)
Packets
Example 1
1155
19 min. 1 sec.
111.5
0.8
94.8%
Example 2
2259
65 min. 3 sec.
290.7
0.6
9.5%
Example 3
3360
10 min. 0 sec.
270.1
3.7
99.1%
Example 4
2525
29 min. 7 sec.
156.2
0.7
92.4%
Example 5
5529
29 min. 2 sec.
215.6
1.0
99.2%
Example 6
2808
11 min. 5 sec.
152.9
1.8
98.6%
Table 2: Upstream trafc characteristics of some sessions.
E
H
G
Number of Packets
H
G
(6)
1440
Four Cases
960
5.2
5
H(v)
480
576
1024
Packet Size (B)
Figure 7: The
40 200
D
4.8
4.6
1500
-plane of example 2.
0
500
1000
1500
v (kb/s)
2000
% !
4 2 1
53 '
%
G
P
Q
G
5
E
F
2 1
2 1
1
H
%
4
52
%
(%
1
Example 2
1920
1920
H
G
480
960
1440
Interarrival Delay (ms)
10
H
I 5
G
E
1
of
Multiframe
100
1000
parameter
entropy
Example 2
Number of Packets
1000
H(v)
4.3
4.2
4.1
4
100
10
3.9
1
350
450
480
960
1440
Residual Delay (ms)
1920
is 385
which minimizes
. This entropyand choose
minimizing could then be interpreted as the equilibrium time of one LLC frame at the Gb interface. Recall
from gure 3 that, at the BSC, one LLC frame is put inside the FR frame for the Gb interface. If we know the
transfer rate of the physical Gb interface and the size of
the FR frame, then could be used to detect whether the
BSC or the Gb interface was congested or not. This is because we could compare to the ideal case with no congestion. But, as already mentioned, this would require
more accurate time stamps and more precise knowledge
of the possible distortion so that we could control the errors.
After removing
from we get the residual values
. Figures 10 and 11 show two data examples
of the distribution of the residual delay . Compare gure 10 with gure 6. The rst block of each multiframe
of one of the downlink PDCHs is reserved to signalling
by default. If no other downlink signalling is used, it
explains partially the gap between 240 ms and 480 ms.
200
100
0
-100
-200
A
C
10
A
4
1
480
960
1440
Residual Delay (ms)
-plane of Example 2.
100
9
4
1000
Number of Packets
that minimizes
500
400
v (kb/s)
300
1920
200
100
0
-100
-200
200 400 600 800 100012001400
Packet Size (B)
@ (
A
4
'
A
4
Time
A1 A2 A3 B1 B2 C1 A2 C2
t1
t2
Temporary Block Flow (TBF)
Successful
Retransmission
Erroneous
Block
A
C
9
C
Block Retransmission
t3
Figure 14: A theoretical example of a single block retransmission that occurs within the same TBF that uses
one PDCH.
which in this case can be thought of as the IP packets, are
reassembled and relayed to the SGSN and the GGSN in
the order B, A and C. The data that would be measured
in this case,
,
and
, give two pairs
and
. The interarrival
delay
is the time of two blocks, and
is the time of
Optimal measurements
D
References
[1] A. Broido, R. King, E. Nemeth, and kc. claffy,
Radon spectroscopy of packet delay, in Providing
Quality of Service in Heterogeneous Environments,
J. Charzinski, R. Lehnert, and P. Tran-Gia, Eds. ITC18, September 2003, vol. 5a of Teletrafc Science
and Engineering, pp. 419428, Elsevier.
In this paper we have analyzed sessionwise IP packet interarrival time distributions taking into account packet
sizes in the case where the IP packet trace was measured
after the GSM/GPRS packet radio interface. In our analysis it was crucial that only the RLC layer worked in ac-