Potential bugs in WS3 firmware causing strange behaviour
Posted: Wed Jun 02, 2021 10:34 am
Hello,
I've been testing on the new WS3-14-600-AC units over the past few days and some of the behaviour I've been seeing indicates either a hardware defect or a firmware bug.
Important Info:
Model: WS3-14-600-AC
Firmware Version: 2.0.6rc4
Note: This unit has been previously RMA'd and the following is after the unit returned from RMA
Bench Test Setup
- Switch is directly connected to AC power via it's power cord
- Front ground screw is grounded to earth ground.
Testing So Far
I started validating this switch by performing a bench test as per instructions on these forums found here: LINK INSTRUCTIONS
I noted any deviations from the standard procedure as well as any abnormalities in the results (e.g. results not matching expected result)
Bench Test:
Deviations from standard procedure:
- Used a 10' patch cable in place of a 12' patch cable
- Switch was only ran for 20 hours instead of 24 hours
Test Results:
Note that as per official instructions the switch was factory defaulted and updated to latest firmware before performing the test.
Cable Diagnostic Results
- Port 1, 3, 4, 5, 6, 7, 8, 9, 10, 11
Pair 1, Length 3M, short
Pair 2, Length 3M, short
Pair 3, Length 3M, short
Pair 4, Length 3M, short
- Port 2
Pair 1, Length 3M, short
Pair 2, Length 0M, open
Pair 3, Length 0M, open
Pair 4, Length 3M, short
- Port 12
Pair 1, Length 3M, short
Pair 2, Length 3M, short
Pair 3, Length 0M, open
Pair 4, Length 3M, short
PoE Testing:
Connected an AirFibre 5XHD and tested each port powering the AirFiber both with 24V and 48V PoE options. Radio successfully powered up for every test. Every port negotiates a 1G link.
Reboot Testing:
Switch was left running overnight with a single device connected. Upon return uptime read 20 hours which was correct.
End of Bench Test
In also performed additional testing as this switch had issues getting an IP before it was RMA'd.
I'd like to hear feedback on the abnormalities before delving into my additional testing (notably why every single port showed the wrong cable diagnostic), however the most relevant info is that the switch seems to have issues switching between DHCP and Static IP. As well rebooting the switch via RS232 and via the DEF button causes the switch to lockup and when the lockup clears it prints the following error message several times:
PHP Notice: fwrite(): send of 36 bytes failed with errno=32 Broken pipe in /www/util.php on line 37
This tells me that for certain types of reboot the PHP scripts are crashing and preventing the switch from responding with a command shell over RS232 (note that character echoback remains functional while the switch is locked). Line 37 of the util.php appears to be the function that is called to process commands inputted over RS232 (at a glance). Bugs in the RS232 command shell would also explain another issue I've been seeing where config changes input over RS232 don't appear to have an effect on the switch (e.g. manually assigning a static IP via RS232).
Please let me know if there is any more information I can provide to help aid in diagnosing this issue.
I've been testing on the new WS3-14-600-AC units over the past few days and some of the behaviour I've been seeing indicates either a hardware defect or a firmware bug.
Important Info:
Model: WS3-14-600-AC
Firmware Version: 2.0.6rc4
Note: This unit has been previously RMA'd and the following is after the unit returned from RMA
Bench Test Setup
- Switch is directly connected to AC power via it's power cord
- Front ground screw is grounded to earth ground.
Testing So Far
I started validating this switch by performing a bench test as per instructions on these forums found here: LINK INSTRUCTIONS
I noted any deviations from the standard procedure as well as any abnormalities in the results (e.g. results not matching expected result)
Bench Test:
Deviations from standard procedure:
- Used a 10' patch cable in place of a 12' patch cable
- Switch was only ran for 20 hours instead of 24 hours
Test Results:
Note that as per official instructions the switch was factory defaulted and updated to latest firmware before performing the test.
Cable Diagnostic Results
- Port 1, 3, 4, 5, 6, 7, 8, 9, 10, 11
Pair 1, Length 3M, short
Pair 2, Length 3M, short
Pair 3, Length 3M, short
Pair 4, Length 3M, short
- Port 2
Pair 1, Length 3M, short
Pair 2, Length 0M, open
Pair 3, Length 0M, open
Pair 4, Length 3M, short
- Port 12
Pair 1, Length 3M, short
Pair 2, Length 3M, short
Pair 3, Length 0M, open
Pair 4, Length 3M, short
PoE Testing:
Connected an AirFibre 5XHD and tested each port powering the AirFiber both with 24V and 48V PoE options. Radio successfully powered up for every test. Every port negotiates a 1G link.
Reboot Testing:
Switch was left running overnight with a single device connected. Upon return uptime read 20 hours which was correct.
End of Bench Test
In also performed additional testing as this switch had issues getting an IP before it was RMA'd.
I'd like to hear feedback on the abnormalities before delving into my additional testing (notably why every single port showed the wrong cable diagnostic), however the most relevant info is that the switch seems to have issues switching between DHCP and Static IP. As well rebooting the switch via RS232 and via the DEF button causes the switch to lockup and when the lockup clears it prints the following error message several times:
PHP Notice: fwrite(): send of 36 bytes failed with errno=32 Broken pipe in /www/util.php on line 37
This tells me that for certain types of reboot the PHP scripts are crashing and preventing the switch from responding with a command shell over RS232 (note that character echoback remains functional while the switch is locked). Line 37 of the util.php appears to be the function that is called to process commands inputted over RS232 (at a glance). Bugs in the RS232 command shell would also explain another issue I've been seeing where config changes input over RS232 don't appear to have an effect on the switch (e.g. manually assigning a static IP via RS232).
Please let me know if there is any more information I can provide to help aid in diagnosing this issue.