Odd Ethernet Behaviour

Hello all, I have a computer located in the University of Toronto network which shows some odd network behaviour. For one, I have run speedtest-cli on it numerous times at various times of the day, and it consistently returns around 93Mbit upload/download. For comparison, a laptop in the same LAN seems to get 700Mbit, while a computer in a different part of the UofT network gets 900Mb/570Mb. The NIC has a RealTek chip and uses the r8169 kernel module. Ethtool, which gives a live report, does list the card as running at 1Gb/s. But that sure isn't the speed I am getting. This same slow computer also has problems if I reboot it remotely: most of the time it doesn't come up, though dmesg has the card detected. If I start from a cold boot rather than restart, it comes up correctly most of the time. In either case just typing in #netctl start <ethernet> starts it up just fine. I was trying to solve this problem and saw that there are several complaints along just these lines having to do with the r8169 module. Some people suggested downgrading to r8101 but that module is even older. If the module isn't working well, that might account for the slower speeds. Is there any way to tell? Obviously I can buy another NIC with a different chipset but don't really want to go to the trouble if there is an easier way to diagnose the difficulties. All advice appreciated! Thanks. -- Peter King peter.king@utoronto.ca Department of Philosophy 170 St. George Street #521 The University of Toronto (416)-946-3170 ofc Toronto, ON M5R 2M8 CANADA http://individual.utoronto.ca/pking/ ========================================================================= GPG keyID 0x7587EC42 (2B14 A355 46BC 2A16 D0BC 36F5 1FE6 D32A 7587 EC42) gpg --keyserver pgp.mit.edu --recv-keys 7587EC42

I love problems like this. Puzzles. 1. You might try turning off auto negotiation and "forcing" the link to various speeds and see how it responds, and not just the fastest speed. ( https://phoenixnap.com/kb/ethtool-command-change-speed-duplex-ethernet-card-... ) 2. Try a different switch port. 3. Check the switch's tx/rx error rates & retransmissions. 4. Check the NIC's tx/rx error rates & retransmissions. 5. Compare speed with something "link local", like _on the same ethernet segment_ , versus something past the gateway. 6. Compare trace routes into the device from various places, to trace route from the device _to_ those various places. There may be some asymmetry going on. David p.s. for seeing network stuff I like iptraf , and iptraf-ng On Tue, Feb 6, 2024 at 8:08 PM Peter King via talk <talk@gtalug.org> wrote:
Hello all,
I have a computer located in the University of Toronto network which shows some odd network behaviour. For one, I have run speedtest-cli on it numerous times at various times of the day, and it consistently returns around 93Mbit upload/download. For comparison, a laptop in the same LAN seems to get 700Mbit, while a computer in a different part of the UofT network gets 900Mb/570Mb.
The NIC has a RealTek chip and uses the r8169 kernel module. Ethtool, which gives a live report, does list the card as running at 1Gb/s. But that sure isn't the speed I am getting.
This same slow computer also has problems if I reboot it remotely: most of the time it doesn't come up, though dmesg has the card detected. If I start from a cold boot rather than restart, it comes up correctly most of the time. In either case just typing in #netctl start <ethernet> starts it up just fine. I was trying to solve this problem and saw that there are several complaints along just these lines having to do with the r8169 module. Some people suggested downgrading to r8101 but that module is even older.
If the module isn't working well, that might account for the slower speeds.
Is there any way to tell? Obviously I can buy another NIC with a different chipset but don't really want to go to the trouble if there is an easier way to diagnose the difficulties.
All advice appreciated! Thanks.
-- Peter King peter.king@utoronto.ca Department of Philosophy 170 St. George Street #521 The University of Toronto (416)-946-3170 ofc Toronto, ON M5R 2M8 CANADA http://individual.utoronto.ca/pking/
========================================================================= GPG keyID 0x7587EC42 (2B14 A355 46BC 2A16 D0BC 36F5 1FE6 D32A 7587 EC42) gpg --keyserver pgp.mit.edu --recv-keys 7587EC42
--- Post to this mailing list talk@gtalug.org Unsubscribe from this mailing list https://gtalug.org/mailman/listinfo/talk
-- David Thornton https://wiki.quadratic.net https://github.com/drthornt/ https://twitter.com/northdot9/

Well, the first thing I did was take Lennart's advice, because it's always good. I got a NIC with an intel chipset and installed it. No difference. Tried a different switch port, no difference. Switched up to Cat 6 cable, no difference. Ethtool says the new card is running at 1000Mb/s. Speedtest-cli says I get just shy of 100Mb/s upload and download. A different computer behind the same switch (which claims to have gigabit ethernet: TP-Link AC1750) also gets those upload and download speeds. On another computer at the UofT, in another building, I get just about gigabit ethernet upload and download. So it isn't a general problem. When I get more time I will try fooling around with autonegotiation. It is, of course, possible that the UofT has throttled my bandwidth, or the bandwidth to the building I am located in. On 2/6/24 20:23, David Thornton via talk wrote:
I love problems like this. Puzzles.
1. You might try turning off auto negotiation and "forcing" the link to various speeds and see how it responds, and not just the fastest speed. ( https://phoenixnap.com/kb/ethtool-command-change-speed-duplex-ethernet-card-... <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fphoenixnap.com%2Fkb%2Fethtool-command-change-speed-duplex-ethernet-card-linux&data=05%7C02%7Cpeter.king%40utoronto.ca%7Cdffabb36dbfd45c2e5bd08dc277b78d9%7C78aac2262f034b4d9037b46d56c55210%7C0%7C0%7C638428658460845300%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=s1y20jf3yDDEdgNrnqFygekzMkqt1sT4041fJHSEAvk%3D&reserved=0>)
2. Try a different switch port.
3. Check the switch's tx/rx error rates & retransmissions.
4. Check the NIC's tx/rx error rates & retransmissions.
5. Compare speed with something "link local", like _on the same ethernet segment_ , versus something past the gateway.
6. Compare trace routes into the device from various places, to trace route from the device _to_ those various places. There may be some asymmetry going on.
David
p.s. for seeing network stuff I like iptraf , and iptraf-ng
On Tue, Feb 6, 2024 at 8:08 PM Peter King via talk <talk@gtalug.org> wrote:
Hello all,
I have a computer located in the University of Toronto network which shows some odd network behaviour. For one, I have run speedtest-cli on it numerous times at various times of the day, and it consistently returns around 93Mbit upload/download. For comparison, a laptop in the same LAN seems to get 700Mbit, while a computer in a different part of the UofT network gets 900Mb/570Mb.
The NIC has a RealTek chip and uses the r8169 kernel module. Ethtool, which gives a live report, does list the card as running at 1Gb/s. But that sure isn't the speed I am getting.
This same slow computer also has problems if I reboot it remotely: most of the time it doesn't come up, though dmesg has the card detected. If I start from a cold boot rather than restart, it comes up correctly most of the time. In either case just typing in #netctl start <ethernet> starts it up just fine. I was trying to solve this problem and saw that there are several complaints along just these lines having to do with the r8169 module. Some people suggested downgrading to r8101 but that module is even older.
If the module isn't working well, that might account for the slower speeds.
Is there any way to tell? Obviously I can buy another NIC with a different chipset but don't really want to go to the trouble if there is an easier way to diagnose the difficulties.
All advice appreciated! Thanks.
-- Peter King peter.king@utoronto.ca Department of Philosophy 170 St. George Street #521 The University of Toronto (416)-946-3170 ofc Toronto, ON M5R 2M8 CANADA
http://individual.utoronto.ca/pking/
========================================================================= GPG keyID 0x7587EC42 (2B14 A355 46BC 2A16 D0BC 36F5 1FE6 D32A 7587 EC42) gpg --keyserverpgp.mit.edu <https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpgp.mit.edu%2F&data=05%7C02%7Cpeter.king%40utoronto.ca%7Cdffabb36dbfd45c2e5bd08dc277b78d9%7C78aac2262f034b4d9037b46d56c55210%7C0%7C0%7C638428658460855072%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=kGmYFZ4QWA7IKXdZUj9iwc7RtHA7NcTRYRizmF4Hne4%3D&reserved=0> --recv-keys 7587EC42
--- Post to this mailing list talk@gtalug.org Unsubscribe from this mailing list https://gtalug.org/mailman/listinfo/talk <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgtalug.org%2Fmailman%2Flistinfo%2Ftalk&data=05%7C02%7Cpeter.king%40utoronto.ca%7Cdffabb36dbfd45c2e5bd08dc277b78d9%7C78aac2262f034b4d9037b46d56c55210%7C0%7C0%7C638428658460862000%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=agSjQdUyQR33CVJjShGFsMiJ0j7akvmgn5PJikBlvpI%3D&reserved=0>
-- David Thornton https://wiki.quadratic.net <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.quadratic.net%2F&data=05%7C02%7Cpeter.king%40utoronto.ca%7Cdffabb36dbfd45c2e5bd08dc277b78d9%7C78aac2262f034b4d9037b46d56c55210%7C0%7C0%7C638428658460867422%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=iFNSrkzVIJIrsaLUmLe9m3w2X72Vkx2WU5bbneEHVyE%3D&reserved=0> https://github.com/drthornt/ <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdrthornt%2F&data=05%7C02%7Cpeter.king%40utoronto.ca%7Cdffabb36dbfd45c2e5bd08dc277b78d9%7C78aac2262f034b4d9037b46d56c55210%7C0%7C0%7C638428658460874227%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=FrRdAJ47v8Lq%2BME5M0Gw477vFraG%2F5AQOHFUaN3pYKs%3D&reserved=0> https://twitter.com/northdot9/ <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2Fnorthdot9%2F&data=05%7C02%7Cpeter.king%40utoronto.ca%7Cdffabb36dbfd45c2e5bd08dc277b78d9%7C78aac2262f034b4d9037b46d56c55210%7C0%7C0%7C638428658460879842%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=TrlzgvCYFQ7JgFON8DgTLwdS9723qhhxIuHiWVlx1Ro%3D&reserved=0>
--- Post to this mailing listtalk@gtalug.org Unsubscribe from this mailing listhttps://gtalug.org/mailman/listinfo/talk
-- Peter King peter.king@utoronto.ca Department of Philosophy 170 St. George Street #521 The University of Toronto (416)-946-3170 ofc Toronto, ON M5R 2M8 CANADA http://individual.utoronto.ca/pking/ ========================================================================= GPG keyID 0x7587EC42 (2B14 A355 46BC 2A16 D0BC 36F5 1FE6 D32A 7587 EC42) gpg --keyserver pgp.mit.edu --recv-keys 7587EC42

Peter King via talk wrote on 2024-02-12 13:56:
Ethtool says the new card is running at 1000Mb/s.
That's the link speed, not necessarily reflective of the bandwidth provided by upstream.
A different computer behind the same switch (which claims to have gigabit ethernet: TP-Link AC1750) also gets those upload and download speeds.
It is, of course, possible that the UofT has throttled my bandwidth, or the bandwidth to the building I am located in.
That's where my suspicion immediately goes (or the switch itself if not the building). Maybe open a ticket with support as a next step? They ought to be able to clarify what speed you should be getting. rb

Honestly, I won’t do that. About three weeks ago I had gotten approval for a new static ip address, at which point I asked for them to allow me to ssh to that address. I was *refused* and told I had to use a VPN because they “have to protect shh from the internet.” (!!!) An IT department that thinks ssh needs to be protected is not a department you want to deal with, ever. If I ask them about bandwidth I fear they will take away ssh access from the address I already had. Yes, this is what your tax dollars pay for. Sent from my iPad
On Feb 12, 2024, at 6:43 PM, Ron / BCLUG via talk <talk@gtalug.org> wrote:
Peter King via talk wrote on 2024-02-12 13:56:
Ethtool says the new card is running at 1000Mb/s.
That's the link speed, not necessarily reflective of the bandwidth provided by upstream.
A different computer behind the same switch (which claims to have gigabit ethernet: TP-Link AC1750) also gets those upload and download speeds.
It is, of course, possible that the UofT has throttled my bandwidth, or the bandwidth to the building I am located in.
That's where my suspicion immediately goes (or the switch itself if not the building).
Maybe open a ticket with support as a next step? They ought to be able to clarify what speed you should be getting.
rb --- Post to this mailing list talk@gtalug.org Unsubscribe from this mailing list https://gtalug.org/mailman/listinfo/talk

On 2024-02-12 20:22, Peter King via talk wrote:
Honestly, I won’t do that. About three weeks ago I had gotten approval for a new static ip address, at which point I asked for them to allow me to ssh to that address. I was *refused* and told I had to use a VPN because they “have to protect shh from the internet.” (!!!) This is a risk unaware Microsoft centric answer. And this is not just a government issue its a big company based issue.
My personal belief is that companies believe that if they pay for the service then they have someone they can sue if things go wrong. Look at the recent set of remote access and data migration products that have had VERY large corporate and government customers and big security breaches. SSH is free..... How can you trust something that is free. But seriously if you can find a service that they will port forward to your computer you can then just put SSH on that port and have your access. You should take a look at iperf as a network testing tool. It does require a server you can connect to but it will give you better information than the usual web based speed test tools.
An IT department that thinks ssh needs to be protected is not a department you want to deal with, ever.
If I ask them about bandwidth I fear they will take away ssh access from the address I already had.
Yes, this is what your tax dollars pay for.
Sent from my iPad
On Feb 12, 2024, at 6:43 PM, Ron / BCLUG via talk <talk@gtalug.org> wrote:
Peter King via talk wrote on 2024-02-12 13:56:
Ethtool says the new card is running at 1000Mb/s. That's the link speed, not necessarily reflective of the bandwidth provided by upstream.
A different computer behind the same switch (which claims to have gigabit ethernet: TP-Link AC1750) also gets those upload and download speeds. It is, of course, possible that the UofT has throttled my bandwidth, or the bandwidth to the building I am located in. That's where my suspicion immediately goes (or the switch itself if not the building).
Maybe open a ticket with support as a next step? They ought to be able to clarify what speed you should be getting.
rb --- Post to this mailing list talk@gtalug.org Unsubscribe from this mailing list https://gtalug.org/mailman/listinfo/talk
Post to this mailing list talk@gtalug.org Unsubscribe from this mailing list https://gtalug.org/mailman/listinfo/talk
-- Alvin Starr || land: (647)478-6285 Netvel Inc. || Cell: (416)806-0133 alvin@netvel.net ||

Alvin Starr via talk wrote on 2024-02-12 20:38:
Honestly, I won’t do that. About three weeks ago I had gotten approval for a new static ip address, at which point I asked for them to allow me to ssh to that address. I was *refused* and told I had to use a VPN because they “have to protect shh from the internet.” (!!!)
So, why not set up a VPN?
This is a risk unaware Microsoft centric answer.
It's a "Why are there incoming connections to our network?!? And what is their purpose? And where do they end up? Who is controlling them?" issue. Imagine being in charge of a large network and seeing countless connections to end points inside the network and having no idea what they're doing - that *should* scare any IT / network admin.
And this is not just a government issue its a big company based issue.
Yup, agreed 100%.
My personal belief is that companies believe that if they pay for the service then they have someone they can sue if things go wrong. Look at the recent set of remote access and data migration products that have had VERY large corporate and government customers and big security breaches.
And suing after the fact accomplishes pretty much nothing. Data is "gone", reputation is ruined, time is wasted recovering, etc. It's more like, "here's a product we trust to manage incoming connections, and if everyone's using this then we can control our network much better". Whether the trust is misplaced or not in any specific product, the idea is valid.
But seriously if you can find a service that they will port forward to your computer you can then just put SSH on that port and have your access.
Doubtful that IT is going to assist with port forwarding or any method of allowing un-monitored and unfettered incoming connections. Better would be to: a) install a VPN like IT said b) use ssh to connect to an outside computer with reverse-tunnelling (I forget the term here) and go in through the outside computer My 2¢ rb

On 2024-02-12 23:55, Ron / BCLUG via talk wrote: [snip]
This is a risk unaware Microsoft centric answer.
It's a "Why are there incoming connections to our network?!? And what is their purpose? And where do they end up? Who is controlling them?" issue.
Imagine being in charge of a large network and seeing countless connections to end points inside the network and having no idea what they're doing - that *should* scare any IT / network admin. You are right. There is a lot to be said for a single point of control.
Complaints about using a VPN make me think of the times when I have had use VPNs that forced me to have a separate windows PC. Its less of a problem now because more and more places have VPNs that have Linux clients but that was not always the case, and I found the VPN support in organizations that were that windows centric, terrible. I did have one client a couple of years ago who could not get the linux client for their VPN to work and eventually I had to bounce through 2 web based console apps to get access. I was allowed to setup an SSH back link to my network where I could then sign into the systems.
And this is not just a government issue its a big company based issue.
Yup, agreed 100%.
My personal belief is that companies believe that if they pay for the service then they have someone they can sue if things go wrong. Look at the recent set of remote access and data migration products that have had VERY large corporate and government customers and big security breaches.
And suing after the fact accomplishes pretty much nothing. Data is "gone", reputation is ruined, time is wasted recovering, etc.
The desire to feel that you have someone you can hold accountable has just about 0 correlation with the actual ability to hold them accountable.
It's more like, "here's a product we trust to manage incoming connections, and if everyone's using this then we can control our network much better".
Whether the trust is misplaced or not in any specific product, the idea is valid.
There was once a saying. "Nobody ever got fired for buying IBM". I think that moved to Cisco some years ago and now I think it can be used with AWS. [snip] -- Alvin Starr || land: (647)478-6285 Netvel Inc. || Cell: (416)806-0133 alvin@netvel.net ||

Why not comply and install VPN? I face the same issue at my company, and that's how I work from home. Fortunately, they allow VM. On 2024-02-12 20:22, Peter King via talk wrote:
Honestly, I won’t do that. About three weeks ago I had gotten approval for a new static ip address, at which point I asked for them to allow me to ssh to that address. I was *refused* and told I had to use a VPN because they “have to protect shh from the internet.” (!!!)
An IT department that thinks ssh needs to be protected is not a department you want to deal with, ever.
If I ask them about bandwidth I fear they will take away ssh access from the address I already had.
Yes, this is what your tax dollars pay for.
Sent from my iPad

Have a look at tailscale, which I looked at a few years back when dealing with a similar IT operation. It looked like a resolution, but fortunately I was offered a new job elsewhere. --dave On 2024-02-13 02:06, William Park via talk wrote:
Why not comply and install VPN? I face the same issue at my company, and that's how I work from home. Fortunately, they allow VM.
On 2024-02-12 20:22, Peter King via talk wrote:
Honestly, I won’t do that. About three weeks ago I had gotten approval for a new static ip address, at which point I asked for them to allow me to ssh to that address. I was *refused* and told I had to use a VPN because they “have to protect shh from the internet.” (!!!)
An IT department that thinks ssh needs to be protected is not a department you want to deal with, ever.
If I ask them about bandwidth I fear they will take away ssh access from the address I already had.
Yes, this is what your tax dollars pay for.
Sent from my iPad
Post to this mailing list talk@gtalug.org Unsubscribe from this mailing list https://gtalug.org/mailman/listinfo/talk

On Tue, Feb 06, 2024 at 07:58:40PM -0500, Peter King via talk wrote:
Hello all,
I have a computer located in the University of Toronto network which shows some odd network behaviour. For one, I have run speedtest-cli on it numerous times at various times of the day, and it consistently returns around 93Mbit upload/download. For comparison, a laptop in the same LAN seems to get 700Mbit, while a computer in a different part of the UofT network gets 900Mb/570Mb.
The NIC has a RealTek chip and uses the r8169 kernel module. Ethtool, which gives a live report, does list the card as running at 1Gb/s. But that sure isn't the speed I am getting.
This same slow computer also has problems if I reboot it remotely: most of the time it doesn't come up, though dmesg has the card detected. If I start from a cold boot rather than restart, it comes up correctly most of the time. In either case just typing in #netctl start <ethernet> starts it up just fine. I was trying to solve this problem and saw that there are several complaints along just these lines having to do with the r8169 module. Some people suggested downgrading to r8101 but that module is even older.
If the module isn't working well, that might account for the slower speeds.
Is there any way to tell? Obviously I can buy another NIC with a different chipset but don't really want to go to the trouble if there is an easier way to diagnose the difficulties.
All advice appreciated! Thanks.
Well if you search for it you will find well over a decade of people complaining about bed throughput on that chip. Some people claim it is a problem with the power management in the driver. I even saw one claiming a recent 6.5 kernel has finally fixed the performance for them. I remember the dlink DGE530T used to be popular because it used a marvell yukon chip with great performance (codeveloped with 3com). Then rev C1 came out. Same model name, same packaging, revision only difference. Used a rebranded realtek 8169. Different driver, much worse performance. Many people stopped specing the 530T since it went from good to garbage because someone made a cost saving revision. I remember it well, and not in a good way. I suggest finding another network card. Cards with an intel chip usually behave well. commit 93a3aa25933461d76141179fc94aa32d5f9d954a Author: Lennart Sorensen <lsorense@csclub.uwaterloo.ca> Date: Thu Jul 28 13:18:11 2011 +0000 r8169: Add support for D-Link 530T rev C1 (Kernel Bug 38862) The D-Link DGE-530T rev C1 is a re-badged Realtek 8169 named DLG10028C, unlike the previous revisions which were skge based. It is probably the same as the discontinued DGE-528T (0x4300) other than the PCI ID. The PCI ID is 0x1186:0x4302. Adding it to r8169.c where 0x1186:0x4300 is already found makes the card be detected and work. This fixes https://bugzilla.kernel.org/show_bug.cgi?id=38862 Signed-off-by: Len Sorensen <lsorense@csclub.uwaterloo.ca> Signed-off-by: David S. Miller <davem@davemloft.net> -- Len Sorensen
participants (8)
-
Alvin Starr
-
David Collier-Brown
-
David Thornton
-
James Knott
-
Lennart Sorensen
-
Peter King
-
Ron / BCLUG
-
William Park