Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failing spec05 and task02 test #299

Closed

Conversation

MrKevinWeiss
Copy link
Contributor

It seems there is a border router running in the IOT lab infrastructure that is giving the test nodes an address.

See RIOT-OS/RIOT#20295 for some info.

While playing around with it I found that removing the address and adding in the spec address doesn't seem to work... Only changing CONFIG_IEEE802154_DEFAULT_CHANNEL so it never gets an address in the first place seems to make it function.

Maybe we should be hardened against it but it would be nice to know why removing and shuffling the pan_id and channel doesn't allow it to work.

It seems there have been some failures mainly
due to infrastructure. Specifically the samr21-xpro
failing to flash will cause many reruns with the same
faulty hardware.

Previously it would just take the first available
node in the list, which is deterministic but doesn't
help with flakey test reruns. This may cause an issue
with distance to other nodes, but if random selection
of nodes becomes a problem we would have to introduce
node pairing lists... Which is a bit more work.

This is at least a first step.
Since the default numof addresses is 2 we should remove one assigned so we can add our own global
@MrKevinWeiss
Copy link
Contributor Author

output when an address is assigned


> ifconfig
ifconfig
Iface  6  HWaddr: 17:32  Channel: 26  NID: 0x23  PHY: O-QPSK 
          
          Long HWaddr: EE:19:4D:E3:D3:BA:17:32 
           TX-Power: 0dBm  State: IDLE  max. Retrans.: 3  CSMA Retries: 4 
          AUTOACK  ACK_REQ  CSMA  L2-PDU:102  MTU:1280  HL:64  RTR  
          RTR_ADV  6LO  IPHC  
          Source address length: 8
          Link type: wireless
          inet6 addr: fe80::ec19:4de3:d3ba:1732  scope: link  VAL
          inet6 addr: 2001:660:3207:4cf:ec19:4de3:d3ba:1732  scope: global  VAL
          inet6 group: ff02::2
          inet6 group: ff02::1
          inet6 group: ff02::1:ffba:1732
          inet6 group: ff02::1a
          
          Statistics for Layer 2
            RX packets 11  bytes 769
            TX packets 10 (Multicast: 2)  bytes 888
            TX succeeded 10 errors 0
          Statistics for IPv6
            RX packets 10  bytes 816
            TX packets 10 (Multicast: 2)  bytes 978
            TX succeeded 10 errors 0

> ssh -t [email protected] 'socat - tcp:m3-1.saclay.iot-lab.info:20000' 


> ifconfig
ifconfig
Iface  6  HWaddr: 11:92  Channel: 26  NID: 0x23  PHY: O-QPSK 
          
          Long HWaddr: A6:05:7B:E5:C5:1E:11:92 
           TX-Power: 0dBm  State: IDLE  max. Retrans.: 3  CSMA Retries: 4 
          AUTOACK  ACK_REQ  CSMA  L2-PDU:102  MTU:1280  HL:64  RTR  
          RTR_ADV  6LO  IPHC  
          Source address length: 8
          Link type: wireless
          inet6 addr: fe80::a405:7be5:c51e:1192  scope: link  VAL
          inet6 addr: 2001:660:3207:4cf:a405:7be5:c51e:1192  scope: global  VAL
          inet6 group: ff02::2
          inet6 group: ff02::1
          inet6 group: ff02::1:ff1e:1192
          inet6 group: ff02::1a
          
          Statistics for Layer 2
            RX packets 33  bytes 2964
            TX packets 18 (Multicast: 10)  bytes 1200
            TX succeeded 17 errors 1
          Statistics for IPv6
            RX packets 26  bytes 2992
            TX packets 18 (Multicast: 10)  bytes 1362
            TX succeeded 18 errors 0

> ifconfig
ifconfig
Iface  6  HWaddr: 17:32  Channel: 26  NID: 0x23  PHY: O-QPSK 
          
          Long HWaddr: EE:19:4D:E3:D3:BA:17:32 
           TX-Power: 0dBm  State: IDLE  max. Retrans.: 3  CSMA Retries: 4 
          AUTOACK  ACK_REQ  CSMA  L2-PDU:102  MTU:1280  HL:64  RTR  
          RTR_ADV  6LO  IPHC  
          Source address length: 8
          Link type: wireless
          inet6 addr: fe80::ec19:4de3:d3ba:1732  scope: link  VAL
          inet6 addr: 2001:660:3207:4cf:ec19:4de3:d3ba:1732  scope: global  VAL
          inet6 group: ff02::2
          inet6 group: ff02::1
          inet6 group: ff02::1:ffba:1732
          inet6 group: ff02::1a
          
          Statistics for Layer 2
            RX packets 11  bytes 769
            TX packets 10 (Multicast: 2)  bytes 888
            TX succeeded 10 errors 0
          Statistics for IPv6
            RX packets 10  bytes 816
            TX packets 10 (Multicast: 2)  bytes 978
            TX succeeded 10 errors 0

> ifconfig 6 set pan_id d5d4
ifconfig 6 set pan_id d5d4
success: set network identifier on interface 6 to 0xd5d4
> ifconfig 6 set pan_id d5d4
ifconfig 6 set pan_id d5d4
success: set network identifier on interface 6 to 0xd5d4
> ifconfig 6 set chan 12
ifconfig 6 set chan 12
success: set channel on interface 6 to 12
> ifconfig 6 set chan 12
ifconfig 6 set chan 12
success: set channel on interface 6 to 12
> ifconfig
ifconfig
Iface  6  HWaddr: 17:32  Channel: 12  NID: 0xd5d4  PHY: O-QPSK 
          
          Long HWaddr: EE:19:4D:E3:D3:BA:17:32 
           TX-Power: 0dBm  State: IDLE  max. Retrans.: 3  CSMA Retries: 4 
          AUTOACK  ACK_REQ  CSMA  L2-PDU:102  MTU:1280  HL:64  RTR  
          RTR_ADV  6LO  IPHC  
          Source address length: 8
          Link type: wireless
          inet6 addr: fe80::ec19:4de3:d3ba:1732  scope: link  VAL
          inet6 addr: 2001:660:3207:4cf:ec19:4de3:d3ba:1732  scope: global  VAL
          inet6 group: ff02::2
          inet6 group: ff02::1
          inet6 group: ff02::1:ffba:1732
          inet6 group: ff02::1a
          
          Statistics for Layer 2
            RX packets 11  bytes 769
            TX packets 10 (Multicast: 2)  bytes 888
            TX succeeded 10 errors 0
          Statistics for IPv6
            RX packets 10  bytes 816
            TX packets 10 (Multicast: 2)  bytes 978
            TX succeeded 10 errors 0

> ifconfig
ifconfig
Iface  6  HWaddr: 17:32  Channel: 12  NID: 0xd5d4  PHY: O-QPSK 
          
          Long HWaddr: EE:19:4D:E3:D3:BA:17:32 
           TX-Power: 0dBm  State: IDLE  max. Retrans.: 3  CSMA Retries: 4 
          AUTOACK  ACK_REQ  CSMA  L2-PDU:102  MTU:1280  HL:64  RTR  
          RTR_ADV  6LO  IPHC  
          Source address length: 8
          Link type: wireless
          inet6 addr: fe80::ec19:4de3:d3ba:1732  scope: link  VAL
          inet6 addr: 2001:660:3207:4cf:ec19:4de3:d3ba:1732  scope: global  VAL
          inet6 group: ff02::2
          inet6 group: ff02::1
          inet6 group: ff02::1:ffba:1732
          inet6 group: ff02::1a
          
          Statistics for Layer 2
            RX packets 11  bytes 769
            TX packets 10 (Multicast: 2)  bytes 888
            TX succeeded 10 errors 0
          Statistics for IPv6
            RX packets 10  bytes 816
            TX packets 10 (Multicast: 2)  bytes 978
            TX succeeded 10 errors 0

> ifconfig 6 del 2001:660:3207:4cf:ec19:4de3:d3ba:1732
ifconfig 6 del 2001:660:3207:4cf:ec19:4de3:d3ba:1732
success: removed 2001:660:3207:4cf:ec19:4de3:d3ba:1732 to interface 6
> ifconfig
ifconfig
Iface  6  HWaddr: 11:92  Channel: 12  NID: 0xd5d4  PHY: O-QPSK 
          
          Long HWaddr: A6:05:7B:E5:C5:1E:11:92 
           TX-Power: 0dBm  State: IDLE  max. Retrans.: 3  CSMA Retries: 4 
          AUTOACK  ACK_REQ  CSMA  L2-PDU:102  MTU:1280  HL:64  RTR  
          RTR_ADV  6LO  IPHC  
          Source address length: 8
          Link type: wireless
          inet6 addr: fe80::a405:7be5:c51e:1192  scope: link  VAL
          inet6 addr: 2001:660:3207:4cf:a405:7be5:c51e:1192  scope: global  VAL
          inet6 group: ff02::2
          inet6 group: ff02::1
          inet6 group: ff02::1:ff1e:1192
          inet6 group: ff02::1a
          
          Statistics for Layer 2
            RX packets 34  bytes 3060
            TX packets 19 (Multicast: 10)  bytes 1280
            TX succeeded 18 errors 1
          Statistics for IPv6
            RX packets 27  bytes 3072
            TX packets 19 (Multicast: 10)  bytes 1426
            TX succeeded 19 errors 0

> ifconfig
ifconfig
Iface  6  HWaddr: 11:92  Channel: 12  NID: 0xd5d4  PHY: O-QPSK 
          
          Long HWaddr: A6:05:7B:E5:C5:1E:11:92 
           TX-Power: 0dBm  State: IDLE  max. Retrans.: 3  CSMA Retries: 4 
          AUTOACK  ACK_REQ  CSMA  L2-PDU:102  MTU:1280  HL:64  RTR  
          RTR_ADV  6LO  IPHC  
          Source address length: 8
          Link type: wireless
          inet6 addr: fe80::a405:7be5:c51e:1192  scope: link  VAL
          inet6 addr: 2001:660:3207:4cf:a405:7be5:c51e:1192  scope: global  VAL
          inet6 group: ff02::2
          inet6 group: ff02::1
          inet6 group: ff02::1:ff1e:1192
          inet6 group: ff02::1a
          
          Statistics for Layer 2
            RX packets 34  bytes 3060
            TX packets 19 (Multicast: 10)  bytes 1280
            TX succeeded 18 errors 1
          Statistics for IPv6
            RX packets 27  bytes 3072
            TX packets 19 (Multicast: 10)  bytes 1426
            TX succeeded 19 errors 0

> ifconfig 6 del 2001:660:3207:4cf:a405:7be5:c51e:1192
ifconfig 6 del 2001:660:3207:4cf:a405:7be5:c51e:1192
success: removed 2001:660:3207:4cf:a405:7be5:c51e:1192 to interface 6
> ifconfig 6 add beef::1/64
ifconfig 6 add beef::1/64
success: added beef::1/64 to interface 6
> ifconfig 6 add affe::1/120
ifconfig 6 add affe::1/120
success: added affe::1/120 to interface 6
> nib route add 6 :: fe80::a405:7be5:c51e:1192
nib route add 6 :: fe80::a405:7be5:c51e:1192
> nib route add 6 :: fe80::ec19:4de3:d3ba:1732
nib route add 6 :: fe80::ec19:4de3:d3ba:1732
> ping beef::1 -c 100 -i 300 -s 1024 -W 1000
ping beef::1 -c 100 -i 300 -s 1024 -W 1000

--- beef::1 PING statistics ---
100 packets transmitted, 0 packets received, 100% packet loss
> FAILED

@MrKevinWeiss
Copy link
Contributor Author

Ping @miri64 maybe it would be nice to look at this as well... Why would removing the TNT global address, then adding a known one prevent pinging?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant