Appear to be locking up under heavy traffic
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: Appear to be locking up under heavy traffic
by Eugeny ·
Router/switch filters the traffic, sending to W5500 only traffic designated to it and broadcasts.
I used W5100 (which has more or less the same engine), and empirically found out that W5x00 does not perform well under high load, in particular the issue, which I caught, is when TCP communication gets out of order - W5100 can not recover properly from it.
But your case sounds different, as you say there’s nothing sent from the W5500 - in my case it sends some packets when its times out (can be up to 2 minutes).
You already have a workaround for the problem - buy cheapest router, and put it before W5500. Ugly, but it should work
While you performed initial troubleshooting, more steps are needed to find the cause.
I usually use Wireshark, but I guess your network sniffer is set up in correct location of the network (connected directly to W5500?) and can capture everything on the wire. Then, how much time did you wait to decide that there’s nothing in there? 30 seconds? 5 minutes? Remember W5500 works according to its timeout algorithm, which may cause it looking hung for minutes.
Needs more monitoring time to ensure there’s nothing on the wire for minutes after ping request is sent.
Dump all registers (common as well as socket for all sockets) to see anomalities.
That is a good way to detect reset.
Then logically, W5500 gets something it thinks wrong it can not digest in your network. Until we find out what it is, not possible to say anything certain. For this you must watch the traffic before the W5500 (e.g. connect some bridge PC with two ports to W5500 with one port and to wall jack to another, and run Wireshark on it),
Good that you mentioned it. I think you can easily change this software setting, at least for testing purposes, and see if W5500 behaves the same way.
RE: Appear to be locking up under heavy traffic
by acpie360 ·
Thanks for the reply.
Can you tell me where to find this timeout algorithm you were referring to? I assume we are using the default settings at the moment since there is no code on our side that sets up anything related to timeout.
Perhaps to say that nothing coming out of W5500 is a bit premature because I don’t think we knew what to look for at the time of system locking up or had waited long enough. The Wireshark capture, through the use of a network sniffer, was showing tons of seemingly unrelated traffic.
FYI - This is the sniffer we are using:
https://www.amazon.com/Dualcomm-1000Base-T-Gigabit-Ethernet-Network/dp/B004EWVFAY/ref=sr_1_3?ie=UTF8&qid=1543770322&sr=8-3&keywords=network+tap
We also suspect that there might be electrical/wiring issues in this large building because when we put a network sniffer between the W5500 and the wall jack, we can’t seem to reproduce the problem. This makes the troubleshooting really difficult. We have to not use the sniffer first to make the problem happen, then insert the sniffer after the problem occurs. Of course, this causes the PHY layer to disconnect then reconnect.
RE: RE: Appear to be locking up under heavy traffic
by Eugeny ·
Pages 39-40 of the datasheet.
TCPto is total timeout, which is progressive with each next retry taking 2x more time (until time quantum value becomes >=65536). Thus at later stages time between packet retransmit will be 6.4 seconds.
Related to W5500? (being as destination or source?)
In my experience there could be such issues. I have simple ASUS hub device, and sometimes, when I power W5100 up, W5100 becomes crazy showing contonuous incoming traffic (RX LED is on and activity LED is constantly blinking), when there is no traffic at all. Only hard reset (sometimes several times) helps. But it seems to be related to this hub attached, and I suspect it really has something with electronics rather than driving algorithm or logical problem. I recall there were also reports that W5x00 do not work very well with Cisco switches - and that solution would be to preset switch port to the desired specs (instead of relying on its auto-negotiation capabilities).
Do you have only one W5500-based device under consideration?
And it does not fix the situation? Usually when PHY is reset, if it is the cause, it unlocks and network access to/from the chip is being restored.
Can you build into your W5500 driver the procedure to reset PHY (PHYCFGR bit 7) so that you can execute this code when chip locks up and see if it helps?
RE: Appear to be locking up under heavy traffic
by acpie360 ·
There is another product line being developed at the moment. However, the software on the cloud side isn’t as ready as the product I am currently testing.
I’ll see if I can do this. Good idea. Thanks.