loading
I am currently looking for someone to help out with this blog. I didn't realize the scope that this blog would effect. Hits from countries in political strife and the like, people looking for a way to communicate outside of government control. If you would like to help please send me an email George dot Endrulat at Gmail dot Com.

Saturday, April 9, 2011

Re: [Wing] Wing on Atheros platforms with openwrt



On Sat, Apr 9, 2011 at 6:32 PM, Ross Wakelin <ross.wakelin@gmail.com> wrote:
Hi,

at this time, ifconfig show no packets transmitted or received on
either the wlan0 or
the wing-mesh interfaces

As requested, here is the config and debug info...

OpenWrt version trunk 26507
Hardware is Ubiquity Bullet M
Kernel 2.6.37.6
kmod-ath9k version 2.6.37.6+2011-04-06-2
kmod-tun version 2.6.37.6-1
wing version 20110329-2

wing-mesh-log:
warning: added 2 Align elements
expensive Packet::push; have 10 wanted 12
expensive Packet::push; have 10 wanted 12
expensive Packet::push; have 10 wanted 12
expensive Packet::push; have 10 wanted 12
expensive Packet::push; have 10 wanted 12
wr/gw :: WINGGatewaySelector :: start_ad :: hna 10.1.2.0 255.255.255.0
6.92.125.106 seq 29
wr/gw :: WINGGatewaySelector :: start_ad :: hna 10.1.2.0 255.255.255.0
6.92.125.106 seq 29
wr/gw :: WINGGatewaySelector :: start_ad :: hna 10.1.2.0 255.255.255.0
6.92.125.106 seq 29
wr/gw :: WINGGatewaySelector :: start_ad :: hna 10.1.2.0 255.255.255.0
6.92.125.106 seq 29
wr/gw :: WINGGatewaySelector :: start_ad :: hna 10.1.2.0 255.255.255.0
6.92.125.106 seq 29
wr/gw :: WINGGatewaySelector :: start_ad :: hna 10.1.2.0 255.255.255.0
6.92.125.106 seq 29
wr/gw :: WINGGatewaySelector :: start_ad :: hna 10.1.2.0 255.255.255.0
6.92.125.106 seq 29
wr/gw :: WINGGatewaySelector :: start_ad :: hna 10.1.2.0 255.255.255.0
6.92.125.106 seq 29
wr/gw :: WINGGatewaySelector :: start_ad :: hna 10.1.2.0 255.255.255.0
6.92.125.106 seq 29
wr/gw :: WINGGatewaySelector :: start_ad :: hna 10.1.2.0 255.255.255.0
6.92.125.106 seq 29
wr/gw :: WINGGatewaySelector :: start_ad :: hna 10.1.2.0 255.255.255.0
6.92.125.106 seq 29
wr/gw :: WINGGatewaySelector :: start_ad :: hna 10.1.2.0 255.255.255.0
6.92.125.106 seq 29
wr/gw :: WINGGatewaySelector :: start_ad :: hna 10.1.2.0 255.255.255.0
6.92.125.106 seq 29
wr/gw :: WINGGatewaySelector :: start_ad :: hna 10.1.2.0 255.255.255.0
6.92.125.106 seq 29
wr/gw :: WINGGatewaySelector :: start_ad :: hna 10.1.2.0 255.255.255.0
6.92.125.106 seq 29
wr/gw :: WINGGatewaySelector :: start_ad :: hna 10.1.2.0 255.255.255.0
6.92.125.106 seq 29
wr/gw :: WINGGatewaySelector :: start_ad :: hna 10.1.2.0 255.255.255.0
6.92.125.106 seq 29
wr/gw :: WINGGatewaySelector :: start_ad :: hna 10.1.2.0 255.255.255.0
6.92.125.106 seq 29
wr/gw :: WINGGatewaySelector :: start_ad :: hna 10.1.2.0 255.255.255.0
6.92.125.106 seq 29

wing-mesh.click:
rates_1 :: AvailableRates(DEFAULT 12 18 24 36 48 72 96 108,
00:15:6D:5C:7D:6A 12 18 24 36 48 72 96 108);
channels_1 :: AvailableChannels(DEFAULT 5180 5200 5220 5240 5260 5280
5300 5320, 00:15:6D:5C:7D:6A 5180 5200 5220 5240 5260 5280 5300 5320);
dev_1 :: DevInfo(ETH 00:15:6D:5C:7D:6A, IFACE 1, CHANNEL 5200,
CHANNELS channels_1, RATES rates_1);
lt :: LinkTableMulti(IP 6.92.125.106, IFACES " 1", BETA 80);
metric :: WINGETTMetric(LT lt);
arp :: ARPTableMulti();

elementclass EtherSplit {
input -> cl :: Classifier(6/00156D5C7D6A);
cl[0] -> [0] output;
}

elementclass LinkStat {
   $debug|
input -> ps :: PaintSwitch();
es_1 :: WINGLinkStat(IP 6.92.125.106,
                                 DEV dev_1,
                                 PERIOD 10000,
                                 TAU 100000,
                                 PROBES "12 60 12 1500 18 1500 24
1500 36 1500 48 1500 72 1500 96 1500 108 1500",
                                 ARP arp,
                                 LT lt,
                                 METRIC metric,
                                 DEBUG $debug);
ps[0] -> es_1 -> output;
}

elementclass WingRouter {
 $ip, $nm, $rate, $debug|


outgoing :: SetTXRate($rate)
 -> [0] output


es :: LinkStat($debug);


gw :: WINGGatewaySelector(IP $ip,
                        PERIOD 15000,
                        EXPIRE 30000,
                        LT lt,
                        ARP arp,
                        DEBUG $debug);


track_flows :: WINGTrackFlows();


set_gateway :: WINGSetGateway(SEL gw);


forwarder :: WINGForwarder(IP $ip,
                         ARP arp,
                         DEBUG $debug);


querier :: WINGQuerier(QUERY_WAIT 5,
                        TIME_BEFORE_SWITCH 5,
                        IP $ip,
                        ARP arp,
                        LT lt,
                        DEBUG $debug);


query_forwarder :: WINGMetricFlood(IP $ip,
                                 LT lt,
                                 ARP arp,
                                 DEBUG $debug);


query_responder :: WINGQueryResponder(IP $ip,
                                    LT lt,
                                    ARP arp,
                                    DEBUG $debug);


gw_responder ::  WINGGatewayResponder(IP $ip,
                                PERIOD 15000,
                                SEL gw,
                                LT lt,
                                RESPONDER query_responder,
                                DEBUG $debug);


gw -> outgoing;
gw_responder -> outgoing;
query_responder -> outgoing;
query_forwarder -> outgoing;


query_forwarder [1] -> [0] query_responder;


input [1]
-> host_cl :: IPClassifier(dst net $ip mask $nm, -)
-> querier
-> [1] output;


host_cl [1] -> set_gateway -> [0] track_flows [0] -> querier;


forwarder[0]
 -> dt ::DecIPTTL
 -> [1] output;


dt[1]
-> ICMPError($ip, timeexceeded, 0)
-> querier;


querier [1] -> [0] query_forwarder;
es -> SetTimestamp() -> [0] output;


forwarder[1] // IP packets to me
 -> WINGStripHeader()
 -> CheckIPHeader(CHECKSUM false)
 -> from_gw_cl :: IPClassifier(src net $ip mask $nm, -)
 -> [2] output;


from_gw_cl [1] -> [1] track_flows [1] -> [2] output;


input [0]
 -> ncl :: Classifier(15/01 , // forwarder
                      15/02 , // queries
                      15/03 , // replies
                      15/04 , // es
                      15/05 , // gw
                     );


 ncl[0] -> forwarder;
 ncl[1] -> [1] query_forwarder;
 ncl[2] -> [1] query_responder;
 ncl[3] -> es;
 ncl[4] -> gw;

}

elementclass RateControl {
 $rate, $rates|

 rate_control :: Minstrel(OFFSET 4, RT $rates);

 input -> rate_control -> output;
 input [1] -> [1] rate_control [1] -> [1] output;

};

elementclass LinkScheduler {
 $lt, $arp|

 input -> FullNoteQueue(10) -> output;

};

control :: ControlSocket("TCP", 7777);

err :: WifiDupeFilter()
 -> WifiDecap()
 -> WINGCheckHeader()
 -> WINGRouteResponder(IP 6.92.125.106, LT lt, ARP arp, DEBUG true)
 -> Discard();

// has one input and one output
// takes and spits out ip packets
elementclass LinuxIPHost {
   $dev, $ip, $nm|
 input -> KernelTun($ip/$nm, MTU 1500, DEVNAME $dev)
 -> CheckIPHeader(CHECKSUM false)
 -> output;
}

elementclass SniffDevice {
   $device|
 from_dev :: FromDevice($device, PROMISC false, OUTBOUND true, SNIFFER false)
 -> output;
 input -> to_dev :: ToDevice($device);
}

wr :: WingRouter (6.92.125.106, 255.0.0.0, 12, true);

linux_ip_host :: LinuxIPHost(wing-mesh, 6.92.125.106, 255.0.0.0) -> [1] wr;

rc_split :: EtherSplit();
sl_split :: EtherSplit();

wr [0] -> WINGSetHeader() -> sl_split; // queries, replies, bcast_stats
wr [1] -> WINGSetHeader() -> rc_split;
wr [2] -> linux_ip_host;

sniff_dev_1 :: SniffDevice(wlan0);
rc_1 :: RateControl(12, rates_1);
ls_1 :: LinkScheduler(lt, arp);
outgoing_1 :: PrioSched()
-> SetTXPower(POWER 60)
-> RadiotapEncap()
-> sniff_dev_1;

sl_split[0] -> FullNoteQueue() -> WifiEncap(0x0, 00:00:00:00:00:00) ->
[0] outgoing_1;
rc_split[0] -> ls_1 -> WifiEncap(0x0, 00:00:00:00:00:00) -> rc_1 ->
[1] outgoing_1;

cl :: Classifier(12/06AA) // this protocol's ethertype
-> WINGCheckHeader()
-> wr;

sniff_dev_1
-> RadiotapDecap
-> FilterPhyErr()
-> Classifier(0/08%0c) //data
-> tx_filter_1 :: FilterTX()
-> WifiDupeFilter()
-> WifiDecap()
-> HostEtherFilter(00:15:6D:5C:7D:6A, DROP_OTHER true, DROP_OWN true)
-> Paint(0)
-> cl;

tx_filter_1[1] -> [1] rc_1 [1] -> err;

Section of the system log, showing initial startup of the mesh:

Mar 27 02:48:06 OpenWrt user.info sysinit: ifconfig: SIOCSIFHWADDR:
Invalid argument
Mar 27 02:48:06 OpenWrt user.notice mesh: No raw interfaces available. Exiting.
Mar 27 02:48:11 OpenWrt user.info sysinit: ifconfig: SIOCSIFADDR: No such device
Mar 27 02:48:11 OpenWrt kern.info kernel: device wing-mesh entered
promiscuous mode
Mar 27 02:48:12 OpenWrt user.notice ifup: Enabling Router
Solicitations on mesh (wing-mes
h)

network config file:
config 'interface' 'loopback'
       option 'ifname' 'lo'
       option 'proto' 'static'
       option 'ipaddr' '127.0.0.1'
       option 'netmask' '255.0.0.0'

config 'interface' 'lan'
       option 'ifname' 'eth0'
       option 'proto' 'static'
       option 'ipaddr' '192.168.1.1'
       option 'netmask' '255.255.255.0'

config 'interface' 'mesh'
       option 'profile' 'bulk'
       option 'rc' 'minstrel'
       option 'ls' 'fcfs'
       option 'metric' 'wcett'
       option 'prefix' '6'
       option 'period' '10000'
       option 'tau' '100000'
       option 'debug' 'true'
       option 'proto' 'wing'

wireless config file:

config 'wifi-device' 'radio0'
       option 'type' 'mac80211'
       option 'macaddr' '00:15:6d:5c:7d:6a'
       option 'hwmode' '11na'
       option 'htmode' 'HT20'
       list 'ht_capab' 'SHORT-GI-40'
       list 'ht_capab' 'TX-STBC'
       list 'ht_capab' 'RX-STBC1'
       list 'ht_capab' 'DSSS_CCK-40'
       option 'disabled' '0'
       option 'channel' '40'
       option 'txpower' '17'
       option 'country' 'US'

config 'wifi-iface'
       option 'device' 'radio0'
       option 'ssid' 'OpenWrt'
       option 'network' 'mesh'
       option 'mode' 'monitor'



This is a Bullet M5 ?  try this config on Both sides for wireless, its what im using
 
config 'wifi-device' 'phy0'
        option 'phy' 'phy0'
        option 'type' 'mac80211'
        option 'channel' '40'
        option 'country' 'US'
        option 'hwmode' '11ng'

config 'wifi-iface'
        option 'device' 'phy0'
        option 'mode' 'monitor'



 


On 9 April 2011 20:13, Roberto Riggio <roberto.riggio@create-net.org> wrote:
> Hi,
>
> I need a few more info to pinpoint the problem. Could you provide me with
> the wireless and network configuration file. Plus I will also need the the
> wing-mesh.log
> file and the /tmp/wing-mesh.click file.
>
> If you want to use the latest snapshot you could checkput the wing feed for
> openwrt:
>
> src-svn wing http://gforge.create-net.org/svn/openwrt-pkgs/trunk
>
> this should be appened to the feed.conf file in the openwrt directory. Also
> remember to
> run:
>
> ./script/feed -p wing wing
>
> In order to install the package from the wing feed.
>
> Thanks
> R.
>
> Il 09/04/2011 02:18, Ross Wakelin ha scritto:
>>
>> Oops, finger trouble.
>>
>> Anyway, I might be making progress with these devices.
>>
>> Wing still fails, but in the wing log I now see:
>>   ToDevice(wlan0) send: No such device or address.
>>
>> and in the wlan0 log I get:
>> wlan0.click.174: While initializing 'linux_ip_host/KernelTun@1 ::
>> KernelTun' : warning: Linux universal tun failed: Invalid argument
>> Router could not be initialized!
>>
>> So it looks like its trying to bring up the tunnel interface and failing.
>> So again, as I mentioned in the post that did not go to all the list
>> (sorry), what versions/releases are people using that do play happily
>> together?
>>
>> Thanks
>>
>>
>> On 9 April 2011 11:46, Paul Adams<paul@pauladamsit.com>  wrote:
>>>
>>> Hey Ross,
>>>
>>> It would seem you sent this message to me only, not to the mailing list.
>>>
>>> I'm just starting out - looking for a device to use to learn WING.
>>>
>>>
>>> I already have a working SMESH network using WRT54GL devices.  Voice
>>> works fine but it is limited.  WING seems a much better solution.
>>>
>>>
>>> Regards
>>>
>>> Paul Adams
>>>
>>>
>>> On Fri, 04/08/2011 at 3:19pm, "Ross Wakelin"<ross.wakelin@gmail.com>
>>>  wrote:
>>>>
>>>> Hi everyone
>>>>
>>>> I've spent the last two days trying to get wing running on Dir 615,
>>>> Dir 825 and Ubiquity Bullet devices - all Atheros based.
>>>> I am building from the latest trunk openwrt code, using the nightly
>>>> snapshots.
>>>>
>>>> I have not yet succeeded in getting any of these devices to talk to
>>>> any other device (I have two of each).  The builds complete OK,
>>>> install ok, and wing seems to configure ok.
>>>>
>>>> Some of the symptoms I am seeing are:
>>>> no packets ever being sent or received on the wing-mesh interface
>>>> starting wing, it is killed automatically within two seconds,
>>>> after generating a 1mb log file and filling up the ram.  In this case,
>>>> the error message in the log file goes something like:
>>>> KernelTun: resource not available
>>>> bringing up the mesh (ifup mesh) and nothing happening - nothing
>>>> in the kernel or system log files, no mesh log created, nothing.
>>>>
>>>> Several people have mentioned that they have this running, could they
>>>> please let us know what version of openwrt, kernel, wireless mac80211,
>>>> wing etc. they have built against.
>>>> The latest snapshot versions of the mac80211 have the tap patch
>>>> already installed.
>>>>
>>>> Thanks in advance
>>>>
>>>> Ross
>>>>
>>>> On 9 April 2011 10:06, Paul Adams<paul@pauladamsit.com>  wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> The D-Link DIR-825 has a Atheros AR7161 processor, 8mb flash, 64mb ram.
>>>>>  It
>>>>> is known to run OpenWRT.
>>>>>
>>>>> It has dual radio - one Atheros AR9223 802.11 b,g,n radio and one
>>>>> Atheros
>>>>> AR9220 a radio.
>>>>>
>>>>>
>>>>>
>>>>> Bearing in mind the radiotap_rate patch for the ath9k cards - would
>>>>> this
>>>>> device be a good choice for running WING?
>>>>>
>>>>> It seems very similar to the RouterStation device, except that uses
>>>>> separate
>>>>> radios.
>>>>>
>>>>>
>>>>>
>>>>> Regards
>>>>>
>>>>> Paul Adams
>>>>>
>>>>>
>>>>>
>>>>> On Wed, 04/06/2011 at 6:12am, "Outback Dingo" wrote:
>>>>>
>>>>> Roberto,
>>>>>
>>>>> You can add Ubiquiti RousterStation / RouterStation Pro, and pretty
>>>>> much
>>>>> all
>>>>> their M units as they work
>>>>>
>>>>> and I have at least one of each in the lab loaded and running
>>>>>
>>>>> On Wed, Apr 6, 2011 at 3:42 AM, Roberto Riggio
>>>>> <roberto.riggio@create-net.org>  wrote:
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I've added a few instruction about how to build wing using the
>>>>>> upstream
>>>>>> openwrt
>>>>>> sources. You can find it here:
>>>>>>
>>>>>> http://www.wing-project.org/software:embedded
>>>>>>
>>>>>> please let me know if there are enough information to acieve your
>>>>>> task.
>>>>>>
>>>>>> R.
>>>>>>
>>>>>> Il 06/04/2011 01:23, Outback Dingo ha scritto:
>>>>>>
>>>>>> On Tue, Apr 5, 2011 at 6:49 PM, Ross Wakelin<ross.wakelin@gmail.com>
>>>>>> wrote:
>>>>>>>
>>>>>>> Hi
>>>>>>> Has anyone successfully compiled and run wing on a smaller embedded
>>>>>>> device?
>>>>>>> I'm looking to use Dlink DIR-615 as my test bed, and Ubiquity
>>>>>>> Rocket/Bullet devices
>>>>>>> for the live network.  Both of these platforms are based on Atheros
>>>>>>> 9K
>>>>>>> cards, and
>>>>>>> things like OLSR, Batman and 802.11s run ok.  I'm running the custom
>>>>>>> compiles
>>>>>>> now, but wondered if someone had already done this, and any pitfalls
>>>>>>> they
>>>>>>> came
>>>>>>> up against.  I use OpenWrt trunk code with nightly updates from the
>>>>>>> svn.
>>>>>>
>>>>>> been building/loading and testing in the lab for months now, all seems
>>>>>> good to go now
>>>>>> itll run on those devices fine, we use ubiquiti also, youll need
>>>>>> the radiotap_rate patch
>>>>>> for the ath9k cards also
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>> Ross
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Wing mailing list
>>>>>>> Wing@create-net-ml.org
>>>>>>> http://diana.create-net-ml.org/cgi-bin/mailman/listinfo/wing
>>>>>>
>>>>>> _______________________________________________
>>>>>> Wing mailing list
>>>>>> Wing@create-net-ml.org
>>>>>> http://diana.create-net-ml.org/cgi-bin/mailman/listinfo/wing
>>>>>>
>>>>>>
>>>>>> --
>>>>>> --------------------------------------------------------
>>>>>> Roberto Riggio, Ph.D.
>>>>>> CREATE-NET
>>>>>> Network&  Security Solutions for Pervasive Computing Systems (iNSPIRE)
>>>>>> Senior Researcher
>>>>>> Via alla Cascata 56/D - 38123 Povo Trento (Italy)
>>>>>> e-mail: roberto.riggio@create-net.org
>>>>>> Tel: ( 39) 0461 408400 - interno/extension 708
>>>>>> Fax: ( 39) 0461 421157
>>>>>> www.create-net.org/~rriggio
>>>>>> --------------------------------------------------------
>>>>>> The information transmitted is intended only for the person or entity
>>>>>> to
>>>>>> which it is addressed and may contain confidential and/or privileged
>>>>>> material. Any review, retransmission, dissemination or other use of,
>>>>>> or
>>>>>> taking of any action in reliance upon, this information by persons or
>>>>>> entities other than the intended recipient is prohibited according to
>>>>>> the Italian Law 196/2003 of the Legislature. If you received this in
>>>>>> error, please contact the sender and delete the material from any
>>>>>> computer.
>>>>>> Le informazioni contenute in questo messaggio di posta elettronica e
>>>>>> nei
>>>>>> file allegati sono da considerarsi strettamente riservate. Il loro
>>>>>> utilizzo e' consentito esclusivamente al destinatario del messaggio,
>>>>>> per
>>>>>> le finalita' indicate nel messaggio stesso. Qualora riceveste questo
>>>>>> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
>>>>>> darcene notizia via e-mail e di procedere alla cancellazione del
>>>>>> messaggio stesso dal Vostro sistema. Trattenere il messaggio stesso,
>>>>>> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo,
>>>>>> od utilizzarlo per finalita' diverse, costituisce comportamento
>>>>>> contrario ai principi dettati dal D. Lgs. 196/2003.
>>>>>>
>>>>>> _______________________________________________
>>>>>> Wing mailing list
>>>>>> Wing@create-net-ml.org
>>>>>> http://diana.create-net-ml.org/cgi-bin/mailman/listinfo/wing
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Wing mailing list
>>>>> Wing@create-net-ml.org
>>>>> http://diana.create-net-ml.org/cgi-bin/mailman/listinfo/wing
>>>>>
>> _______________________________________________
>> Wing mailing list
>> Wing@create-net-ml.org
>> http://diana.create-net-ml.org/cgi-bin/mailman/listinfo/wing
>
>
> --
> --------------------------------------------------------
> Roberto Riggio, Ph.D.
> CREATE-NET
> Network&  Security Solutions for Pervasive Computing Systems (iNSPIRE)
> Senior Researcher
> Via alla Cascata 56/D - 38123 Povo Trento (Italy)
> e-mail: roberto.riggio@create-net.org
> Tel: (+39) 0461 408400 - interno/extension 708
> Fax: (+39) 0461 421157
> www.create-net.org/~rriggio
> --------------------------------------------------------
>
> The information transmitted is intended only for the person or entity to
> which it is addressed and may contain confidential and/or privileged
> material. Any review, retransmission, dissemination or other use of, or
> taking of any action in reliance upon, this information by persons or
> entities other than the intended recipient is prohibited according to
> the Italian Law 196/2003 of the Legislature. If you received this in
> error, please contact the sender and delete the material from any
> computer.
>
> Le informazioni contenute in questo messaggio di posta elettronica e nei
> file allegati sono da considerarsi strettamente riservate. Il loro
> utilizzo e' consentito esclusivamente al destinatario del messaggio, per
> le finalita' indicate nel messaggio stesso. Qualora riceveste questo
> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
> darcene notizia via e-mail e di procedere alla cancellazione del
> messaggio stesso dal Vostro sistema. Trattenere il messaggio stesso,
> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo,
> od utilizzarlo per finalita' diverse, costituisce comportamento
> contrario ai principi dettati dal D. Lgs. 196/2003.
>
>
> _______________________________________________
> Wing mailing list
> Wing@create-net-ml.org
> http://diana.create-net-ml.org/cgi-bin/mailman/listinfo/wing
>

_______________________________________________
Wing mailing list
Wing@create-net-ml.org
http://diana.create-net-ml.org/cgi-bin/mailman/listinfo/wing

No comments:

Post a Comment