Skip to contentSkip to conversation

Linux bridge on linksys WRT54GS running OpenWRT

Bridge Olaf Menzel 2 participants 4 messages Jul 7, 2005 Ethernet bridge

lore
Share & tools
lore
#0 lore raw

Hello,

I am experimenting with delivering IPv6 multicast traffic over the WRT54GS, running OpenWRT. OpenWrt is currently running linux-2.4.30 for the mipsel architecture and the OpenWRT distribution has bridged the 4 port LAN switch (vlan0) with the WLAN interface (eth1) by default. On the IP layer both devices are represented via the br0 interface. The bridge work fine for IPv4 Unicast and Multicast and for IPv6 Unicast but not for IPv6 multicast.

I went into a problem with forwarding the MLDv2_report message over the bridge from a mobile client, connected over WLAN. The MLDv2 report messages are received in in the eth1 (WLAN IF), but not in the eth0 nore in the br0 interface. Does the bridge support IPv6 multicast compliant MAC addresses, starting with 3333+LowByte(Ipv6 MulticastAddress) ? Usually a bridge is working on L2 and should forward any ICMPv6 packages .? The bridge is forwarding any other IPv6 traffic without problems e.g. ICMPv6 messages generated with ping6. MLDv2 report messages are a subset of IPv6 ICMP messages with the link local IPv6 multicast address FF02::16 ( all MLDv2 compliant router) as destination address. The same behavior I figured out with the MLDv2 query messages, sent by the Multicast router to all nodes (FF02::1) on the local link. The MLD query I have seen at the eth0 IF but not at the wireless link. Any other IPv6 link local multicast adresses are forwarded e.g. IPv6 router advertisements or neighbour soicitation messages. Do you have any idea, how to solve the problem ??

with best regards

Olaf

Signature · 6 lines
Dipl. Ing. Olaf Menzel - System Engineer
FOKUS - Fraunhofer Institute for Open Communication Systems:
- Competence Center for Advanced Satellite Communication
Schloss Birlinghoven, 53754 Sankt Augustin, Germany
Phone: +49-2241-14-3494 Mobile: +49-175-2616161 Fax:+49-2241-14-43494
email: [email protected] Internet: http://www.fokus.fhg.de/satcom
#1 lore raw
Quoted 10 lines · On Thu, 07 Jul 2005 18:37:07 +0200 Olaf Menzel…

Hello,

I am experimenting with delivering IPv6 multicast traffic over the WRT54GS, running OpenWRT. OpenWrt is currently running linux-2.4.30 for the mipsel architecture and the OpenWRT distribution has bridged the 4 port LAN switch (vlan0) with the WLAN interface (eth1) by default. On the IP layer both devices are represented via the br0 interface. The bridge work fine for IPv4 Unicast and Multicast and for IPv6 Unicast but not for IPv6 multicast.

Quoted 5 lines

I went into a problem with forwarding the MLDv2_report message over the bridge from a mobile client, connected over WLAN. The MLDv2 report messages are received in in the eth1 (WLAN IF), but not in the eth0 nore in the br0 interface. Does the bridge support IPv6 multicast compliant MAC addresses, starting with 3333+LowByte(Ipv6 MulticastAddress) ?

The bridge handles IEEE multicast mac addresses (ie. least significant bit of first byte of address is set). What is a an example Ethernet MAC address of a MLDv2 message?

Quoted 11 lines

Usually a bridge is working on L2 and should forward any ICMPv6 packages .? The bridge is forwarding any other IPv6 traffic without problems e.g. ICMPv6 messages generated with ping6. MLDv2 report messages are a subset of IPv6 ICMP messages with the link local IPv6 multicast address FF02::16 ( all MLDv2 compliant router) as destination address. The same behavior I figured out with the MLDv2 query messages, sent by the Multicast router to all nodes (FF02::1) on the local link. The MLD query I have seen at the eth0 IF but not at the wireless link. Any other IPv6 link local multicast adresses are forwarded e.g. IPv6 router advertisements or neighbour soicitation messages. Do you have any idea, how to solve the problem ??

The bridge intentionally knows nothing about higher level protocols. But if you are using ebtables/iptables perhaps a filtering rule is getting in the way.

#2 lore raw

Hello again,

see my comments inline

Quoted 23 lines · Stephen Hemminger
Quoted 10 lines · On Thu, 07 Jul 2005 18:37:07 +0200 Olaf Menzel…

Hello,

I am experimenting with delivering IPv6 multicast traffic over the WRT54GS, running OpenWRT. OpenWrt is currently running linux-2.4.30 for the mipsel architecture and the OpenWRT distribution has bridged the 4 port LAN switch (vlan0) with the WLAN interface (eth1) by default. On the IP layer both devices are represented via the br0 interface. The bridge work fine for IPv4 Unicast and Multicast and for IPv6 Unicast but not for IPv6 multicast.

Quoted 7 lines

I went into a problem with forwarding the MLDv2_report message over the bridge from a mobile client, connected over WLAN. The MLDv2 report messages are received in in the eth1 (WLAN IF), but not in the eth0 nore in the br0 interface. Does the bridge support IPv6 multicast compliant MAC addresses, starting with 3333+LowByte(Ipv6 MulticastAddress) ?

Quoted 2 lines

The bridge handles IEEE multicast mac addresses

For IPv6 Multicast the RFC 2464
(http://www.rfc-editor.org/rfc/rfc2464.txt) describes, how an IPv6 multicast compliant MAC address will be created. I hope this RFC is compatible with the IEEE multicast mac standard.

Quoted 5 lines

(ie. least significant bit of first byte of address is set). What is a an example Ethernet MAC address of a MLDv2 message?

a MLD report has the IPv6 link local multicast destination aaddress:
FF02::16(all mldv2 router) and will map to 33:33:00:00:00:16, while a MLD query with FF02::1 (all local nodes) has to be mapped to 33:33:00:00:00:01.

I will attach the whole Packet tethereal dump:

1. MLDv2 query:

Ethernet II, Src: 00:0d:88:fc:c7:6c, Dst: 33:33:00:00:00:01

    Destination: 33:33:00:00:00:01 (IPv6-Neighbor-Discovery_00:00:00:01)
    Source: 00:0d:88:fc:c7:6c (D-Link_fc:c7:6c)
    Type: IPv6 (0x86dd)
Internet Protocol Version 6
    Version: 6
    Traffic class: 0x00
    Flowlabel: 0x00000
    Payload length: 36
    Next header: IPv6 hop-by-hop option (0x00)
    Hop limit: 1
    Source address: fe80::20d:88ff:fefc:c76c (fe80::20d:88ff:fefc:c76c)
    Destination address: ff02::1 (ff02::1)

Hop-by-hop Option Header
Next header: ICMPv6 (0x3a)
Length: 0 (8 bytes)
Router alert: MLD (4 bytes)
PadN: 2 bytes
Internet Control Message Protocol v6
Type: 130 (Multicast listener query)
Code: 0
Checksum: 0x26de (correct)
Maximum response delay[ms]: 2000
Multicast Address: ::
S Flag: OFF
Robustness: 0
QQI: 0

2. MLDv2 report:

Ethernet II, Src: 00:13:10:1f:b1:ad, Dst: 33:33:00:00:00:16

    Destination: 33:33:00:00:00:16 (IPv6-Neighbor-Discovery_00:00:00:16)
    Source: 00:13:10:1f:b1:ad (Cisco-Li_1f:b1:ad)
    Type: IPv6 (0x86dd)
Internet Protocol Version 6
    Version: 6
    Traffic class: 0x00
    Flowlabel: 0x00000
    Payload length: 96
    Next header: IPv6 hop-by-hop option (0x00)
    Hop limit: 1
    Source address: fe80::213:10ff:fe1f:b1ad (fe80::213:10ff:fe1f:b1ad)
    Destination address: ff02::16 (ff02::16)

Hop-by-hop Option Header
Next header: ICMPv6 (0x3a)
Length: 0 (8 bytes)
Router alert: MLD (4 bytes)
PadN: 2 bytes
Internet Control Message Protocol v6
Type: 143 (Multicast Listener Report Message v2)
Code: 0 (Should always be zero)
Checksum: 0xfc03 (correct)
Exclude: ff02::d (ff02::d)
Mode: Exclude
Aux data len: 0
Multicast Address: ff02::d
Exclude: ff02::1:ff00:0 (ff02::1:ff00:0)
Mode: Exclude
Aux data len: 0
Multicast Address: ff02::1:ff00:0
Exclude: ff02::2 (ff02::2)
Mode: Exclude
Aux data len: 0
Multicast Address: ff02::2
Exclude: ff02::1:ff1f:b1ad (ff02::1:ff1f:b1ad)
Mode: Exclude
Aux data len: 0
Multicast Address: ff02::1:ff1f:b1ad

Quoted 16 lines
Quoted 15 lines

Usually a bridge is working on L2 and should forward any ICMPv6 packages .? The bridge is forwarding any other IPv6 traffic without problems e.g. ICMPv6 messages generated with ping6. MLDv2 report messages are a subset of IPv6 ICMP messages with the link local IPv6 multicast address FF02::16 ( all MLDv2 compliant router) as destination address. The same behavior I figured out with the MLDv2 query messages, sent by the Multicast router to all nodes (FF02::1) on the local link. The MLD query I have seen at the eth0 IF but not at the wireless link. Any other IPv6 link local multicast adresses are forwarded e.g. IPv6 router advertisements or neighbour soicitation messages. Do you have any idea, how to solve the problem ??

Quoted 5 lines

The bridge intentionally knows nothing about higher level protocols. But if you are using ebtables/iptables perhaps a filtering rule is getting in the way.

Olaf

#3 lore raw
Quoted 38 lines · On Thu, 07 Jul 2005 23:46:07 +0200 Olaf Menzel…

Hello again,

see my comments inline

Quoted 23 lines · Stephen Hemminger
Quoted 10 lines · On Thu, 07 Jul 2005 18:37:07 +0200 Olaf Menzel…

Hello,

I am experimenting with delivering IPv6 multicast traffic over the WRT54GS, running OpenWRT. OpenWrt is currently running linux-2.4.30 for the mipsel architecture and the OpenWRT distribution has bridged the 4 port LAN switch (vlan0) with the WLAN interface (eth1) by default. On the IP layer both devices are represented via the br0 interface. The bridge work fine for IPv4 Unicast and Multicast and for IPv6 Unicast but not for IPv6 multicast.

Quoted 7 lines

I went into a problem with forwarding the MLDv2_report message over the bridge from a mobile client, connected over WLAN. The MLDv2 report messages are received in in the eth1 (WLAN IF), but not in the eth0 nore in the br0 interface. Does the bridge support IPv6 multicast compliant MAC addresses, starting with 3333+LowByte(Ipv6 MulticastAddress) ?

Quoted 2 lines

The bridge handles IEEE multicast mac addresses

For IPv6 Multicast the RFC 2464
(http://www.rfc-editor.org/rfc/rfc2464.txt) describes, how an IPv6 multicast compliant MAC address will be created. I hope this RFC is compatible with the IEEE multicast mac standard.

Quoted 1 line
Quoted 8 lines
Quoted 4 lines

(ie. least significant bit of first byte of address is set). What is a an example Ethernet MAC address of a MLDv2 message?

a MLD report has the IPv6 link local multicast destination aaddress:
FF02::16(all mldv2 router) and will map to 33:33:00:00:00:16, while a MLD query with FF02::1 (all local nodes) has to be mapped to 33:33:00:00:00:01.

That is an Ethernet Multicast so it should get forwarded. It could be hardware issues try running code on a desktop linux box with two NIC's first. Does the wlan interface ever hand a multicast to the bridge code? The bigger issue with wlan is that most hardware doesn't allow source address to be set, so every packet looks like it came from the bridge rather than the originating host.

Assuming wired client on Ethernet has Mac Address A
bridge eth0 has Mac Address E bridge wlan has Mac Address W

Packets going through the bridge from A to other client (B) on the wireless side should have:
Src = A Dst = B
but most wireless hardware will always send
Src = W Dst = B
The problem is that the client B will the send back to bridge and not to the original client! The bridge will see it and toss it as junk.