Re: Problems with QoS features

Aleksej <[email protected]> Fri, 26 Sep 2008 17:30:43 +0200
Newsgroups gmane.linux.drivers.ipw2100.devel
Message-ID <[email protected]>
Yi, thank you very much for your reply!!

yes, CONFIG_IPW2200_QOS is enabled in ipw2200-1.2.2/Makefile ->
"CONFIG_IPW2200_QOS=y".

But no qos_ctrl field in 802.11 frames (example of one frame is below).
The frame itself is not of "QoS data" type (so, no qos_ctrl field).

So, you can see that the DSCP marking is properly set, but no QoS
control field in frames. What does this mean?
Maybe something wrong with ieee80211 installation? Is there any way to
find out where the problem is? (ieee80211, driver or firmware)

I also tried to load ipw2200 with the command:
#insmod ipw2200.ko qos_enable=1
but it does't help.

Thanks a million for any further hints!!
Aleksej.


Example of one data frame:

Frame 1 (1066 bytes on wire, 1066 bytes captured)
    Arrival Time: Sep 26, 2008 16:24:59.787190000
    [Time delta from previous captured frame: 0.000000000 seconds]
    [Time delta from previous displayed frame: 0.000000000 seconds]
    [Time since reference or first frame: 0.000000000 seconds]
    Frame Number: 1
    Frame Length: 1066 bytes
    Capture Length: 1066 bytes
    [Frame is marked: False]
    [Protocols in frame: eth:wlan]
Ethernet II, Src: Intel_ff:3d:42 (00:0e:35:ff:3d:42), Dst:
Supermic_2b:21:c4 (00:30:48:2b:21:c4)
    Destination: Supermic_2b:21:c4 (00:30:48:2b:21:c4)
        Address: Supermic_2b:21:c4 (00:30:48:2b:21:c4)
        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
        .... ..0. .... .... .... .... = LG bit: Globally unique
address (factory default)
    Source: Intel_ff:3d:42 (00:0e:35:ff:3d:42)
        Address: Intel_ff:3d:42 (00:0e:35:ff:3d:42)
        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
        .... ..0. .... .... .... .... = LG bit: Globally unique
address (factory default)
    Type: IP (0x0800)
IEEE 802.11
    Type/Subtype: Unknown (0x14)
    Frame Control: 0xA045 (Normal)
        Version: 1
        Type: Control frame (1)
        Subtype: 4
        Flags: 0xA0
            DS status: Not leaving DS or network is operating in
AD-HOC mode (To DS: 0 From DS: 0) (0x00)
            .... .0.. = More Fragments: This is the last fragment
            .... 0... = Retry: Frame is not being retransmitted
            ...0 .... = PWR MGT: STA will stay up
            ..1. .... = More Data: Data is buffered for STA at AP
            .0.. .... = Protected flag: Data is not protected
            1... .... = Order flag: Strictly ordered
    Duration: 7172

Internet Protocol, Src: 10.1.14.137 (10.1.14.137), Dst: 10.1.14.3 (10.1.14.3)
    Version: 4
    Header length: 20 bytes
    Differentiated Services Field: 0xa0 (DSCP 0x28: Class Selector 5; ECN: 0x00)
        1010 00.. = Differentiated Services Codepoint: Class Selector 5 (0x28)
        .... ..0. = ECN-Capable Transport (ECT): 0
        .... ...0 = ECN-CE: 0
    Total Length: 1052
    Identification: 0x0000 (0)
    Flags: 0x04 (Don't Fragment)
        0... = Reserved bit: Not set
        .1.. = Don't fragment: Set
        ..0. = More fragments: Not set
    Fragment offset: 0
    Time to live: 64
    Protocol: UDP (0x11)
    Header checksum: 0x05a4 [correct]
        [Good: True]
        [Bad : False]
    Source: 10.1.14.137 (10.1.14.137)
    Destination: 10.1.14.3 (10.1.14.3)
User Datagram Protocol, Src Port: 32772 (32772), Dst Port: 5027 (5027)
    Source port: 32772 (32772)
    Destination port: 5027 (5027)
    Length: 1032
    Checksum: 0x5c5c [correct]
        [Good Checksum: True]
        [Bad Checksum: False]
DCE RPC Request, Seq: 2693858824, Serial: 340, Frag: 47615, FragLen: 0
    Version: 4
    Packet type: Request (0)
    Flags1: 0x02 "Last Fragment"
        0... .... = Reserved: Not set
        .0.. .... = Broadcast: Not set
        ..0. .... = Idempotent: Not set
        ...0 .... = Maybe: Not set
        .... 0... = No Fack: Not set
        .... .0.. = Fragment: Not set
        .... ..1. = Last Fragment: Set
        .... ...0 = Reserved: Not set
    Flags2: 0x00
        0... .... = Reserved: Not set
        .0.. .... = Reserved: Not set
        ..0. .... = Reserved: Not set
        ...0 .... = Reserved: Not set
        .... 0... = Reserved: Not set
        .... .0.. = Reserved: Not set
        .... ..0. = Cancel Pending: Not set
        .... ...0 = Reserved: Not set
    Data Representation: 000000 (Order: Big-endian, Char: ASCII, Float: IEEE)
        Byte order: Big-endian (0)
        Character: ASCII (0)
        Floating-point: IEEE (0)
    Serial High: 0x01
    Object UUID: 0000be78-48dc-f0bb-000c-02db13a30104
    Interface UUID: 0a010e03-0000-0000-0437-682004376820
    Activity: fffffc19-0000-0000-40c1-deb780e00608
    Server boot time: Jul 14, 1970 05:20:16.000000000
    Interface Ver: 2674945
    Sequence num: 2693858824
    Opnum: 1280
    Interface Hint: 0x0000
    Activity Hint: 0x0100
    Fragment len: 0
    Fragment num: 47615
    Auth proto: Unknown (4)
    Serial Low: 0x54
    Authentication verifier


2008/9/26 Zhu Yi <[email protected]>:
> On Thu, 2008-09-25 at 01:44 -0700, Aleksej wrote:
>> Hi,
>>
>> I've installed ipw2200 and it works, but I can't figure out how to
>> make QoS features work. When I mark packets differently (with
>> iptables, DSCP & TOS marking) there is no any difference in packet
>> treatment, no prioritization. The marking is ok (I know what I'm doing
>> here). So, something wrong with firmware, ieee80211, or driver
>> installation. Are there any flags/definitions that I have to define
>> during compilation and installation specifically for enabling QoS?
>
> Did you enable CONFIG_IPW2200_QOS? Did you see qos_ctrl field in your
> 802.11 frames?
>
> Thanks,
> -yi
>
>

This is what I did:

1) installed firmware ipw2200-fw-3.0.tgz
- copied all files in /lib/firmware

2) installed ieee80211-1.2.18
- run ./remove_old script
- make; make install

3) installed ipw2200-1.2.2
- run ./remove_old (before installing ieee80211)
- make; make install

System: ubuntu 7.10, kernel 2.6.22-14

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/