Conversation
|
Testing both BW pr's. cmd is send Also status is not working. |
|
Fixed the underlying PR and rebased to latest main. |
|
thanks, but it seems to break when Reproduce
Commands send:
[{"portNum":6,"iLimited":0,"iBW":"0fffff","iFC":1,"eLimited":0,"eBW":"0fffff"},{"portNum":1,"iLimited":1,"iBW":"00003e","iFC":1,"eLimited":0,"eBW":"0fffff"},{"portNum":2,"iLimited":0,"iBW":"0fffff","iFC":0,"eLimited":0,"eBW":"0fffff"},{"portNum":3,"iLimited":0,"iBW":"0fffff","iFC":1,"eLimited":0,"eBW":"0fffff"},{"portNum":4,"iLimited":0,"iBW":"0fffff","iFC":1,"eLimited":0,"eBW":"0fffff"},{"portNum":5,"iLimited":0,"iBW":"0fffff","iFC":0,"eLimited":0,"eBW":"0fffff"}] |
I think I know what is going on. The web-page is a bit more complex than some of the other controlling pages as it even takes changes done in the CLI into account while the web-page is open. It polls the bandwidth status constantly and updates the page until you start editing one of the ports. It seems it does not catch all the ways one can start editing, namely clicking into the bandwidth number field. At one point I thought about that, but then forgot to implement it, as it is a bit more complicated than when you start by checking the Limit checkbox. I'll fix this. |
|
I fixed the above and rebased. There was another bug which made the display of the Flow Control state incorrect. |
|
I see that after refresh using 'F5', changing the bandwidth issue is still there. |
I don't think there is much that can be done. We need state to be recorded somewhere, and it is in the browser while you edit the configuration. If you reload clearing the cache, it also clears the state. But I doubt CTRL-F5 is common when using a such a front-end. This is more part of stress-testing it. |
c406db2 to
86ccae9
Compare
|
I rebased to main and cleaned up the commits. |
|
SFP in limited to On RJ45 same limit On RJ45 same limit I had not expected that without FC the bandwidth limiting is so off. |
|
Set But after refresh it shows strange that |
There are really a lot of retries. In my experiments the number was much lower. Maybe 10-20 retries per 1 second interval on 2.5GBit Ethernet slowed down to 4 MBit. This will depend a lot on the driver of the NIC and also TCP settings, such as the amount of back-off when a packet is dropped. FC is incredibly important for good performance when the network path has not everywhere the same bandwidth. |
There is a bug in the parser for hex-numbers. It works only when the hexadecimal number has an even number of digits. 30d40 has 5 digits and does not work. I noticed this at the beginning when testing and wanted to fix this either in the web-interface or in the parser, but forgot. Setting 030d40 would work. Will look into it tomorrow. |
We fix a bug in atoi_hex when parsing an unneven number of digits by rotating the entire number 4 bits right as would have been done if the number had been preceded by a 0 to make the number of digits even.
|
I decided to fix the bug at the root and corrected |
|
Thanks for fixing my mistake in that code.... fixes 7e729c6 |
This PR is on top of PR #147 and provides the Web Interface for controlling the bandwidth