2013-03-18 06:02:34

by Wright, Brett

[permalink] [raw]
Subject: Many 4 address mode stations

Hi All,

When we have 4 address mode stations connecting to an AP, mac80211
creates a separate virtual interface of type NL80211_IFTYPE_AP_VLAN at
the Access Point for each and every 4 address mode client that connects
to it. I guess the reason why this happens is so that each of these
interfaces is a separate port on a bridge with the AP interface, so that
the bridge can do the work of learning which devices (i.e. mac
addresses) are behind which remote station.

My problem is that we have a situation where many stations in 4 address
mode are connected to the AP. So, for example, I have 64 such stations
connected to a single AP. This means that there are 64 x
NL80211_IFTYPE_AP_VLAN interfaces created at the AP, and each added on a
separate port on a bridge that also has the AP interface.

To cut a long story short, the issue I have no is that any broadcast
traffic (or in fact any frames the bridge decides to flood) is copied to
each port on the bridge. So in the case of my example above with 64
remote stations, a single arp request is sent out as 65 separate
transmissions on the wireless network.

My problem is that this is terribly inefficient and slows the whole
wireless network down substantially for any such traffic. The
alternative is obviously not to create the NL80211_IFTYPE_AP_VLAN
interfaces for 4 address mode clients, but then the forwarding database
(or equivalent of) would then have to be managed by mac80211 much like
madwifi used to do. I can also think of some other solutions where the
NL80211_IFTYPE_AP_VLAN interfaces could still be used but would still
need to modify both mac80211 and possibly bridging also.

Has anyone thought about this issue or have any suggestions when lots of
4 address mode stations are used?

Thanks
Brett