2012-07-09 13:53:40

by Georgiewskiy Yuriy

[permalink] [raw]
Subject: strange regression with 802.11s and bridge


Hi, i have strange regression with compat-wireless 3.5-rc5-1-snpc and
also try compat-wireless-2012-07-03 and get same behaviour.

i have the following scheme:

r1 - gateway with dhcp server and NAT.
mp1 - meshpoint with bridge mp1 and eth1 connected to r1
mp2 - meshpoint associated with mp1.

[r1 eth0(192.168.2.1/24)] <--(wired)--> [br0(192.168.2.2) with eth1 and mp1 in br0 mp1] <--wireless-->
[mp2 get ip from dhcp server on r1, in thate case its get 192.168.2.153]

with this scheme dhcp is working and mp2 getting ip from server, icmp is working, i can ping
r1(192.168.2.1) from mp2, but tcp not working betwen mp2 and r1, get timeout on any trying to connect
to any services on r1 or to internet behind r1, but tcp work fine between mp2<->mp1 and mp1<->r1.
i attach dumps from mp2 wireless interface dump-mp2.pcap and from eth0 on r1 called dump-dhcp-server.pcap
with icmp pings from mp2 to r1 and trying to ssh from mp2 to r1.

also i verify bridging with wired interface on mp1 and with ap interface - its work with same version
of compat-wireless, seems not work only in case if interface is meshpoint type. also i try with stock
3.2.22 and same scheme with meshpoint working fine without problems.

additional info from mp2:

root@prototype:~# iw dev mp1 info
Interface mp1
ifindex 7
type mesh point
wiphy 0
channel 7 (2442 MHz) HT40+

iw dev mp1 get mesh_param
mesh_retry_timeout = 100 milliseconds
mesh_confirm_timeout = 100 milliseconds
mesh_holding_timeout = 100 milliseconds
mesh_max_peer_links = 32
mesh_max_retries = 3
mesh_ttl = 31
mesh_element_ttl = 31
mesh_auto_open_plinks = 1
mesh_hwmp_max_preq_retries = 4
mesh_path_refresh_time = 1000 milliseconds
mesh_min_discovery_timeout = 100 milliseconds
mesh_hwmp_active_path_timeout = 5000 TUs
mesh_hwmp_preq_min_interval = 10 TUs
mesh_hwmp_net_diameter_traversal_time = 50 TUs
mesh_hwmp_rootmode = 0
mesh_hwmp_rann_interval = 5000
mesh_gate_announcements = 0
mesh_fwding = 1
mesh_sync_offset_max_neighor = 50
mesh_rssi_threshold = 0 dBm

iw dev mp0 station dump
Station 00:21:a4:35:36:24 (on mp1)
inactive time: 10 ms
rx bytes: 38605
rx packets: 618
tx bytes: 1107
tx packets: 10
tx retries: 0
tx failed: 0
signal: -35 [-35, -55] dBm
signal avg: -34 [-34, -52] dBm
Toffset: 15993000 us
tx bitrate: 1.0 MBit/s
rx bitrate: 1.0 MBit/s
mesh llid: 40565
mesh plid: 64186
mesh plink: ESTAB
authorized: yes
authenticated: yes
preamble: long
WMM/WME: yes
MFP: no
TDLS peer: no


brctl showstp br0
br0
bridge id 8000.00026fb894d4
designated root 8000.00026fb894d4
root port 0 path cost 0
max age 19.99 bridge max age 19.99
hello time 1.99 bridge hello time 1.99
forward delay 14.99 bridge forward delay 14.99
ageing time 299.95
hello timer 1.60 tcn timer 0.00
topology change timer 0.00 gc timer 17.68
flags


eth1 (1)
port id 8001 state forwarding
designated root 8000.00026fb894d4 path cost 100
designated bridge 8000.00026fb894d4 message age timer 0.00
designated port 8001 forward delay timer 0.00
designated cost 0 hold timer 0.59
flags

mp1 (2)
port id 8002 state forwarding
designated root 8000.00026fb894d4 path cost 100
designated bridge 8000.00026fb894d4 message age timer 0.00
designated port 8002 forward delay timer 0.00
designated cost 0 hold timer 0.59
flags

ifconfig br0
br0 Link encap:Ethernet HWaddr 00:02:6f:b8:94:d4
inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::202:6fff:feb8:94d4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6185 errors:0 dropped:0 overruns:0 frame:0
TX packets:8140 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1163015 (1.1 MiB) TX bytes:719516 (702.6 KiB)




C ????????? With Best Regards
???????????? ????. Georgiewskiy Yuriy
+7 4872 711666 +7 4872 711666
???? +7 4872 711143 fax +7 4872 711143
???????? ??? "?? ?? ??????" IT Service Ltd
http://nkoort.ru http://nkoort.ru
JID: [email protected] JID: [email protected]
YG129-RIPE YG129-RIPE


2012-07-10 07:11:51

by Georgiewskiy Yuriy

[permalink] [raw]
Subject: Re: strange regression with 802.11s and bridge

On 2012-07-09 17:08 +0400, Georgiewskiy Yuriy wrote [email protected]...:

seems dumps don't fit in list by size, can be found here -
ftp://icf.org.ru/pub/log/802.11s/dump802.11s.tar.bz2

GY>
GY>Hi, i have strange regression with compat-wireless 3.5-rc5-1-snpc and also
GY>try compat-wireless-2012-07-03 and get same behaviour.
GY>
GY>i have the following scheme:
GY>
GY>r1 - gateway with dhcp server and NAT.
GY>mp1 - meshpoint with bridge mp1 and eth1 connected to r1
GY>mp2 - meshpoint associated with mp1.
GY>
GY>[r1 eth0(192.168.2.1/24)] <--(wired)--> [br0(192.168.2.2) with eth1 and mp1
GY>in br0 mp1] <--wireless-->
GY>[mp2 get ip from dhcp server on r1, in thate case its get 192.168.2.153]
GY>
GY>with this scheme dhcp is working and mp2 getting ip from server, icmp is
GY>working, i can ping r1(192.168.2.1) from mp2, but tcp not working betwen mp2
GY>and r1, get timeout on any trying to connect
GY>to any services on r1 or to internet behind r1, but tcp work fine between
GY>mp2<->mp1 and mp1<->r1.
GY>i attach dumps from mp2 wireless interface dump-mp2.pcap and from eth0 on r1
GY>called dump-dhcp-server.pcap
GY>with icmp pings from mp2 to r1 and trying to ssh from mp2 to r1.
GY>
GY>also i verify bridging with wired interface on mp1 and with ap interface -
GY>its work with same version
GY>of compat-wireless, seems not work only in case if interface is meshpoint
GY>type. also i try with stock 3.2.22 and same scheme with meshpoint working
GY>fine without problems.
GY>
GY>additional info from mp2:
GY>
GY>root@prototype:~# iw dev mp1 info
GY>Interface mp1
GY> ifindex 7
GY> type mesh point
GY> wiphy 0
GY> channel 7 (2442 MHz) HT40+
GY>
GY>iw dev mp1 get mesh_param
GY>mesh_retry_timeout = 100 milliseconds
GY>mesh_confirm_timeout = 100 milliseconds
GY>mesh_holding_timeout = 100 milliseconds
GY>mesh_max_peer_links = 32
GY>mesh_max_retries = 3
GY>mesh_ttl = 31
GY>mesh_element_ttl = 31
GY>mesh_auto_open_plinks = 1
GY>mesh_hwmp_max_preq_retries = 4
GY>mesh_path_refresh_time = 1000 milliseconds
GY>mesh_min_discovery_timeout = 100 milliseconds
GY>mesh_hwmp_active_path_timeout = 5000 TUs
GY>mesh_hwmp_preq_min_interval = 10 TUs
GY>mesh_hwmp_net_diameter_traversal_time = 50 TUs
GY>mesh_hwmp_rootmode = 0
GY>mesh_hwmp_rann_interval = 5000
GY>mesh_gate_announcements = 0
GY>mesh_fwding = 1
GY>mesh_sync_offset_max_neighor = 50
GY>mesh_rssi_threshold = 0 dBm
GY>
GY>iw dev mp0 station dump
GY>Station 00:21:a4:35:36:24 (on mp1)
GY>inactive time: 10 ms
GY>rx bytes: 38605
GY>rx packets: 618
GY>tx bytes: 1107
GY>tx packets: 10
GY>tx retries: 0
GY>tx failed: 0
GY>signal: -35 [-35, -55] dBm
GY>signal avg: -34 [-34, -52] dBm
GY>Toffset: 15993000 us
GY>tx bitrate: 1.0 MBit/s
GY>rx bitrate: 1.0 MBit/s
GY>mesh llid: 40565
GY>mesh plid: 64186
GY>mesh plink: ESTAB
GY>authorized: yes
GY>authenticated: yes
GY>preamble: long
GY>WMM/WME: yes
GY>MFP: no
GY>TDLS peer: no
GY>
GY>
GY>brctl showstp br0
GY>br0
GY> bridge id 8000.00026fb894d4
GY> designated root 8000.00026fb894d4
GY> root port 0 path cost 0
GY> max age 19.99 bridge max age
GY>19.99
GY> hello time 1.99 bridge hello time
GY>1.99
GY> forward delay 14.99 bridge forward delay
GY>14.99
GY> ageing time 299.95
GY> hello timer 1.60 tcn timer
GY>0.00
GY> topology change timer 0.00 gc timer
GY>17.68
GY> flags
GY>
GY>
GY>eth1 (1)
GY> port id 8001 state
GY>forwarding
GY> designated root 8000.00026fb894d4 path cost 100
GY> designated bridge 8000.00026fb894d4 message age timer
GY>0.00
GY> designated port 8001 forward delay timer
GY>0.00
GY> designated cost 0 hold timer
GY>0.59
GY> flags
GY>
GY>mp1 (2)
GY> port id 8002 state
GY>forwarding
GY> designated root 8000.00026fb894d4 path cost 100
GY> designated bridge 8000.00026fb894d4 message age timer
GY>0.00
GY> designated port 8002 forward delay timer
GY>0.00
GY> designated cost 0 hold timer
GY>0.59
GY> flags
GY>
GY>ifconfig br0
GY>br0 Link encap:Ethernet HWaddr 00:02:6f:b8:94:d4
GY> inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:255.255.255.0
GY> inet6 addr: fe80::202:6fff:feb8:94d4/64 Scope:Link
GY> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
GY> RX packets:6185 errors:0 dropped:0 overruns:0 frame:0
GY> TX packets:8140 errors:0 dropped:0 overruns:0 carrier:0
GY> collisions:0 txqueuelen:0
GY> RX bytes:1163015 (1.1 MiB) TX bytes:719516 (702.6 KiB)
GY>
GY>
GY>
GY>
GY>C ????????? With Best Regards
GY>???????????? ????. Georgiewskiy Yuriy
GY>+7 4872 711666 +7 4872 711666
GY>???? +7 4872 711143 fax +7 4872 711143
GY>???????? ??? "?? ?? ??????" IT Service Ltd
GY>http://nkoort.ru http://nkoort.ru
GY>JID: [email protected] JID: [email protected]
GY>YG129-RIPE YG129-RIPE

C ????????? With Best Regards
???????????? ????. Georgiewskiy Yuriy
+7 4872 711666 +7 4872 711666
???? +7 4872 711143 fax +7 4872 711143
???????? ??? "?? ?? ??????" IT Service Ltd
http://nkoort.ru http://nkoort.ru
JID: [email protected] JID: [email protected]
YG129-RIPE YG129-RIPE