[Click] I could not get any packet from the second output of ACKRetrySender and ACKResponder

Seng Molika sengmolika at gmail.com
Wed Aug 8 10:04:19 EDT 2012


Dear all,

I would like to ask for helps to my two questions.
  1- I am not sure my Classifier to filter 'ack', is it correct?
  2- I could not see any output from ACKRetrySender and ACKResponder. What
is the problem do I have in my click file?

The first PC, I am running hostap to make it as access point and its
Ethernet Address: 74:EA:3A:8F:38:18.
The second PC worked as the station and its Ethernet Address: C0 18 85 17
08 BC.

Click file 'test_ackRetrySender.click' run on PC_ap, and
Click file 'test_ackResponder.click' run on PC_station.

And the following are my click files which I am testing on 2 computer in
user level mode.

========= test_ackRetrySender.click ===========

AddressInfo(ap_xorr 192.168.1.1/24 wlan0);

winfo :: WirelessInfo(SSID "ap", BSSID ap_xorr, CHANNEL 11);

rates :: AvailableRates(DEFAULT 2 4 11 22);

tx :: ACKRetrySender (MAX_TRIES 3);

src1 :: InfiniteSource(DATA \<00 1F 3C 5F B9 C7  C0 18 85 17 08 BC  08 00
49 20 67 6f  20 74 6f 20  73 63 68 6f  6f 6c 2e 20
49 20 67 6f  20 74 6f 20  73 63 68 6f  6f 6c 2e 20
49 20 67 6f  20 74 6f 20  73 63 68 6f  6f 6c 2e 20
70 61 63 6b  65 74 21 0a>, LIMIT -1, STOP true)
//
    -> Queue(50) -> c_d :: Counter() -> [0]tx;

FromDevice(wlan0) -> wifi_cl :: Classifier (0/08%0c, //data
                 0/04%0c, //control
                 0/00%0c,// mgt
                 )

wifi_cl[0] -> Print(incoming_data) -> Discard;
wifi_cl[2] -> Print(incoming_mgt) -> Discard;

wifi_cl[1] -> ack_cl :: Classifier(0/d0%f0);
ack_cl -> Print(incoming_ack) -> Queue(50) -> [1]tx;

tx[0] ->c_tx::Counter()
    -> wifi_encap :: WifiEncap(0x02, WIRELESS_INFO winfo)
      -> set_rate :: SetTXRate(22)
    -> q::Queue(200)
    -> ExtraEncap()
    -> to_dev :: ToDevice(wlan0);

tx[1] -> c_rx::Counter() -> Queue(10) -> Discard;

DriverManager (pause,
        print >ap.records "data tx", print >>ap.records c_d.count,
        print >>ap.records "output 0", print >>ap.records c_tx.count,
        print >>ap.records "output 1", print >>ap.records c_rx.count)

===================  test_ackResponder.click  ====================

FromDevice(eth0)
    -> Prism2Decap()
    -> ExtraDecap()
    -> FilterTX()
    -> WifiDupeFilter()
    -> wifi_cl :: Classifier(0/08%0c); //data

resp :: ACKResponder(ETH 74:EA:3A:8F:38:18);
wifi_cl -> c_data :: Counter() -> resp;

resp [0] -> c_output0 :: Counter() -> Discard;
resp [1] -> c_ack :: Counter() -> Queue(10) -> ToDevice(eth0);

DriverManager(pause,
        print >station.records "incoming data", print >>station.records
c_data.count,
        print >>station.records "output 0- data", print >>station.records
c_output0.count,
        print >>station.records "output 1- ack", print >>station.records
c_ack.count)

================================================
_____  ap.records ______

data tx
31
output 0
92
output 1
0
_____ station.records ______

incoming data
89
output 0- data
89
output 1- ack
0

__________________________

>From the output file of ap.records and station.records, I could see that I
could not recieve any packets from output 1 of ACKRetrySender and
ACKResponder at all.

Thank you in advance,

Molika


More information about the click mailing list