Hi Ben, As my understand, OVS may contain two part: one is openvswitch_mod kernel module, which works with bridge and forwards the packets according to the forwarding table entries. another is some user-space applications such as tools used to add/del interfaces to the kernel module, add/del forwarding entries.
The cost means what is the minimal set of user-space applications that i can use to control the kernel module. After knowing this, i may try to cross compile these applications to run them on andriod. I think the whole source code of OVS maybe an overkill to the andriod platform since some libraries may not be supported. Thanks 2011/1/26 Ben Pfaff <b...@nicira.com> > On Wed, Jan 26, 2011 at 12:35:33PM -0800, Yongqiang Liu wrote: > > The motivation of installing ovs on Andriod is to easily control multiple > > interfaces (e.g, wifi and 3G). So far we have found out that wifi can > > appear as an eth0 interface, and 3G can appear as a ppp-based interface, > for > > example in Nexus One Phone, the name of the interface is rmnet0. > > Interesting. OK that makes sense. > > > Do you think ovs can handle these two interfaces? > > OVS doesn't have any special support for wireless. But it should > support bridging wireless interfaces to the extent that they resemble > Ethernet interfaces. > > Previously Jesse has stated that this probably won't be good enough > though, see > http://www.mail-archive.com/discuss@openvswitch.org/msg01128.html: > > ---------------------------------------------------------------------- > On Fri, Jan 14, 2011 at 12:41 PM, Ben Pfaff <b...@nicira.com> wrote: > > On Fri, Jan 14, 2011 at 09:44:47AM +0100, J?r?mie Tarot wrote: > >> Before risking to go a dead end road, could someone tell me if Open > >> vSwitch works with wireless interfaces and, if so, can these be part > >> of a bond ? > > > > It should work, to the extent that wireless interfaces act like Ethernet > > interfaces. OVS does not have any special support for wireless > > protocols. > > Actually, it won't work in most situations. Wireless base stations > generally only allow packets with the source MAC address of NIC that > completed the initial handshake. Therefore, only a single device > would be able to communicate and only over a single link unless you > did some type of MAC rewriting. > > This isn't specific to Open vSwitch, it's enforced by the access point. > ---------------------------------------------------------------------- > > > BTW, i have cross compiled the openvswitch_mod.ko module for Android by > a > > little trick: > > > > run configure without cross_compile, and then modify the Makefile in > > datapath/linux-2.6 to add cross compile variables, and then run make in > that > > directory, and then i can get the cross compiled kernel module and it can > be > > installed on android. > > > > It seems ok, and this is a snapshot on my phone: > > > > <3>[105110.598785] init: sys_prop: permission denied uid:2000 > > name:adb.connected > > <4>[105178.558044] Open vSwitch 1.0.3, built Jan 24 2011 19:24:35 > > # lsmod > > openvswitch_mod 62905 0 - Live 0xbf211000 > > tiwlan_drv 660205 0 - Live 0xbf14f000 > > stp 1266 0 - Live 0xbf135000 > > llc 3143 1 stp, Live 0xbf12e000 > > # > > > > So i wonder how can test the module with the minimal cost? > > I'm not sure what you mean by "cost" here. ovs-openflowd would probably > be sufficient for the simplest kind of testing. >
_______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss_openvswitch.org