3GPP string Attributes, containing encapsulated information...
Stefan A.
a.freeradius at premit.de
Thu Oct 15 15:03:24 CEST 2009
Hi there,
Is there a way to get Information out of the
3GPP-GPRS-Negotiated-QoS-profile?
The Attribute is defined in the dictionary as:
ATTRIBUTE 3GPP-GPRS-Negotiated-QoS-profile 5 string
The Value of a String might be: 99-0B811F7396878774010000
To get the encapsulated "Traffic Class", I will need the most left 3 bits of
the first '7' of the string.
It would be 7 --> 0111 --> 011 --> 3
Is there a function available, to do this?
Following the complete Attribute:
AVP: l=33 v=3GPP(10415) t=3GPP-GPRS-Negotiated-QoS-profile(5): UMTS
GTP QoS Profile
Length: 25
UMTS GTP QoS Profile
Version: 99
Hyphen separator: -
00.. .... = Spare: 0
..00 1... = QoS delay: Delay class 1 (1)
.... .011 = QoS reliability: Unack GTP/LLC, Ack RLC,
Protected data (3)
1000 .... = QoS peak: Up to 128 000 oct/s (8)
.... 0... = Spare: 0
.... .001 = QoS precedence: High priority (1)
000. .... = Spare: 0
...1 1111 = QoS mean: Best effort (31)
011. .... = Traffic class: Interactive class (3)
...1 0... = Delivery order: Without delivery order ('no')
(2)
.... .011 = Delivery of erroneous SDU: Erroneous SDUs are
not delivered ('no') (3)
Maximum SDU size : 1500 octets
Maximum bit rate for uplink : 1024 kbps
Maximum bit rate for downlink : 1024 kbps
0111 .... = Residual BER: 1/100 000 = 1x10^-5 (7)
.... 0100 = SDU Error ratio: 1/10 000 = 1x10^-4 (4)
0000 00.. = Transfer delay: Subscribed Transfer Delay (in MS
to network direction) (0)
.... ..01 = Traffic handling priority: Priority level 1 (1)
Guaranteed bit rate for uplink: Subscribed guaranteed bit
rate for uplink (in MS to network direction) (0)
Guaranteed bit rate for downlink: Subscribed guaranteed bit
rate for downlink (in MS to network direction) (0)
Thank You.
Stefan
More information about the Freeradius-Users
mailing list