How can Internet speed be 10 times slower without a router than when using the same connection with a router?

12,230

Solution 1

The first two are easy to explain - you live in an area with a fair amount of Wi-Fi noise or are far away from the router or have a crappy router, so a wired connection is faster - indeed that represents the typical maximum speed you will get.

Your Internet -> modem -> laptop is a lot harder to answer. In the naive case, yes, connecting to the laptop should be the fastest option, however it assumes a number of things which may not be true.

My speculation is that there is some kind of authentication going on on the router - possibly through PPPoE or using its MAC address. This authentication is failing and the router is being put in a very low bandwidth pool by the ISP. It's also possible that VLANS are involved that the router knows about but your PC doesn't. These kinds of thing are deliberately set up by telecommunications companies for a number of reasons on about which I can only speculate.

It is, of-course possible that there is a negotiation issue between the router and the modem.

Solution 2

It could possibly be a QoS issue. I recently attended a presentation at work that included some discussion about a problem where people who paid for a 100 Mbit/s Internet connection could only use 5 Mbit/s.

QoS refers to the way your bandwidth is limited. I'm simplifying this for a general audience, but in this case (that I was told about) the Internet connection was very strict about the 100 Mbit/s limit - you couldn't go over that amount, even for a few milliseconds. If you did, the ISP's equipment would simply drop (discard) the traffic. Your computer thinks the dropped traffic means that your Internet connection is at its maximum capacity, even though it's only sent a little bit of traffic, so it slows right down.

If this is the problem, it would be because your ISP has configured your router with the right QoS settings so this doesn't happen (your router would hold onto the extra traffic for a few milliseconds instead, to avoid going over 100 Mbit/s or whatever your speed is). But your laptop doesn't have the right settings so it runs into the problem.

Solution 3

I may be able to offer an explanation for #3, at least.

First, my assumptions going into this, since there's a good deal of detail missing from your question. Please do correct anything I got wrong (by adding the relevant details to your question).

  1. The router in your #1 and #2 was the same router, and nothing about its internet-side connectivity changed between those two scenarios. (Meaning, you simply changed how the laptop connected to the router, but didn't touch anything between the router, modem, and upstream connection.)

  2. You then unplugged the router from the modem, and plugged your laptop directly into the modem where the router used to be connected.

  3. You didn't reboot the modem between your #2 and #3.

Many consumer-grade "broadband" type modems, especially those provided/leased to customers by their providers, are programmed to support only a single downstream client device. I suppose it's intended as some sort of protection against wirejacking or who knows what. When they boot up, they register the MAC address of the first device they contact on their local network port, and that device becomes their sole reason for existence. Connecting any other devices directly to the modem will then either fail to communicate at all, or they'll experience vastly degraded performance, because the modem is holding out for its one true love.

TL;DR: Always, ALWAYS power-cycle your broadband modem when connecting a different device to its LAN port.

Solution 4

Adding to Davidgo's answer, point 3 could also be a negotiation Issue: When a device is connected, it starts to negotiate the 'terms' (speed, rates, ...) of the communication with other devices and selects the highest possible standard that both devices are able to understand.

So in your case the ISP's modem might use some protocol that your laptop is unable to understand. Your router however is ok with that protocol. It's really dependent on the hardware tho.

Solution 5

With the current information given, the difference between the wired connection through a router and without a router cannot be definitely answered. I want to mention one more possibility: MTU issues. I'll try a gentle description of the problem.

The connection between a router and a modem may be established via PPPoE. PPPoE adds an additional header to every transmitted packet, lowering the maximum possible payload (data) size. If some communication participant along the way does not know about this and sends IP packets with the usual maximum size of 1500 Bytes, the packet has to be fragmented before entering the PPPoE tunnel. Fragment reassembly at the receiver can cause latency jitter, which may be interpreted as a connection being close to its capacity limit, causing slowdowns.

Now, if you connect your laptop directly to the modem, your laptop should know about the correct MTU since it is the one that established the connection, making this explanation somewhat unlikely. However, the fact that there is a lower-than-normal MTU on the tunnelled connection may have been forgotten by whatever PPP implementation you are using.

Lastly, why would this issue not appear with the router? Most routers are aware of this kind of problem and "clamp the MSS", meaning they use a hack one layer above IP: to participants establishing a TCP connection, they indicate that the maximum acceptable TCP segment size is lower than usual (by modifying the connection establishment packets), effectively bringing down the size of IP packets being used for that connection.

Share:
12,230

Related videos on Youtube

Peter Mortensen
Author by

Peter Mortensen

Updated on September 18, 2022

Comments

  • Peter Mortensen
    Peter Mortensen over 1 year

    I am trying to figure out what is the realistic "speed of service" that my Internet company provides to my house. Here are the test that I am running:

    1. Internet ↔ modem ↔ wireless router ↔ laptop: Internet speed (using an internet speedometer test): about 19 Mbit/s download and 18 Mbit/s upload.
    2. Internet ↔ modem ↔ WIRED router (using cable; turned off wireless on laptop) ↔ laptop: about 40 Mbit/s down/ 38 Mbit/s up
    3. Internet ↔ modem ↔ laptop (no router at all; cable to modem): 4 (four) Mbit/s up and 2 (two) Mbit/s up?! WHAT?!

    How is this possible?

    • Admin
      Admin about 5 years
      Because the router works on the LAN, probably Ethernet, and the modem works on the WAN.
    • Admin
      Admin about 5 years
      @user207421 except that in most SOHO routers the destinction between a WAN and LAN port is quite arbitrary - especially as they arethe same inteface.type, same chipset and indeed I have turned WAN ports into LAN ports and vv (usong dd-wrt)
    • Admin
      Admin about 5 years
      When you plug direct to the modem does the ethernet adaptor negotiate full duplex?
    • Admin
      Admin about 5 years
      Also which router/modem are you using? I would imagine a router would have dedicated hardware for things that your computer would do in software. Additionally, what type of connection and modem? Is this an ADSL modem? VDSL modem? Is this a copper or a fibre optic line? How is the laptop connected to the modem? USB 2? USB 3? USB-C? Ethernet?
    • Admin
      Admin about 5 years
      @tomjnowell This is typically incorrect. The vast majority of SOHO routers do routing in software (ie using Linux and an embedded CPU). The router has to be an Ethernet / Ethernet.router based on the description.
    • Admin
      Admin about 5 years
      Are you connecting your laptop directly to the modem with USB instead of ethernet? (If so, is it using USB1.1 speed?) Is the router still connected and powered on when you're bypassing it? Maybe your ISP does something different with multiple MAC addresses connected to the cable modem.
    • Admin
      Admin about 5 years
      You should probably give a few more details, including: the brand and model of the modem, how you connect your laptop to that modem, how you connect either of the routers to the modem, what settings you have in your router for the WAN connection (including things like PPPoE). Many "modems" are actually routers, so the settings of the modem could be useful as well. What type of connection is it (fiber, cable, DSL...)? Are you sure your laptop is actually going through the modem and not via some mobile hotspot or a distant Wi-Fi network?
    • Admin
      Admin about 5 years
      what test exactly are you running to determine the speed? Answer to this will provide more info for troubleshooting.
    • Admin
      Admin about 5 years
      It would really help to know what kind of connection and hence modem you are using. If possible provide the modem and router brand and model as well. To exclude certain problems, (1) reboot both devices after connecting them; (2) try different cables (3) try different computers. Tell us what happened.
    • Admin
      Admin about 5 years
      What ISP? What make and model of modem? Did the ISP furnish the modem, or did you? These things matter. Please edit your question to tell us.
    • Admin
      Admin about 5 years
      We cannot answer objectively with more details on your side. You do not tell us whether there is a USB interface or a bridged interface. i.e. my 4th LAN port in my ISP modem is bridged and much faster than going over NAT+firewall+routing of the slow ISP modem and got knows whatever else. The question is basically asking people to guess the network setup. Is it out of the equation asking this to the ISP? They ought to know their equipment.
  • Barmar
    Barmar about 5 years
    If the cable type were wrong, you wouldn't connect at all.
  • I say Reinstate Monica
    I say Reinstate Monica about 5 years
    This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - From Review
  • trlkly
    trlkly about 5 years
    Also, most network cards do auto crossover, too. Or, at least, at least one in every network I've ever made at home has. It was fun finding out I wasted my money on a crossover cable.
  • Matija Nalis
    Matija Nalis about 5 years
    @TwistyImpersonator while somewhat terse, I think it does provide answer to the question. Examples (1) and (2) which are fast go via the router which fixes TCP MTU issues with MSS clamping and thus restores speed to normal levels, while (3) does not go via router, so MTU is broken, so it is slow.
  • Caesar
    Caesar about 5 years
    @TwistyImpersonator All the neceesary clarifications have been asked for by jcaron. I suppose I should have waited? Nevertheless, anyway, I tried to expand my answer a little cough.
  • I say Reinstate Monica
    I say Reinstate Monica about 5 years
    @Caesar Your edit was the needed improvement.
  • davidgo
    davidgo about 5 years
    The idea that an incorrect MTU can greatly slow things down is correct, and if the router is doing MTU clamping could be correct. The post goes a bit off the rails by talking about PPPoE and the desktop knowing the MTU size from the router.
  • Caesar
    Caesar about 5 years
    @davidgo If there is a router, indeed, the correct MTU likely won't be known to the desktop. But if the desktop is the one establishing the PPP connection? Also, if you're aware of any other common causes for reduced MTUs, please do tell.
  • davidgo
    davidgo about 5 years
    Any tunnel (includong openvpn and ppp) will likely reduce the MTU, as will things like MPLS (which is sort of like vlans used a lot by carriers). Of less likelyhood are other types of delivery like ATM.
  • FeRD
    FeRD about 5 years
    I mean, it's not impossible, but this is the IT-troubleshooting equivalent of hearing hoofbeats and expecting a unicorn.
  • krubo
    krubo about 5 years
    Reason for downvotes? This answer sounds plausible to me.
  • krubo
    krubo about 5 years
    APWG reported between 20%-47% of computers were infected by malware as of 2016, depending on the country. So this answer seems plausible to me.
  • davidgo
    davidgo about 5 years
    This makes no sense to me.for a typical ethernet network and modern os.
  • FeRD
    FeRD about 5 years
    @krubo There are a lot of issues with that report, but in this context the most salient is that their definition of malware is extremely broad. Even "PUPs" ("potentially unwanted programs", the non-malicious crapware that often tags along with application installers) count as malware by their definition. While malware in general is widespread, malware of the type that would act in the way Matija posits (the kind that would saturate a broadband connection if it could) is incredibly rare.
  • jjanes
    jjanes about 5 years
    His diagram includes the internet and a modem, so clearly he is not on ethernet from end to end. I don't know how modern his OS is, or what your criteria is for modernity.
  • davidgo
    davidgo about 5 years
    modern OS = anything which has reasonable defaults for window size, ie a stack which is not expecting a dialup modem on the other end. As the upload speed is 38 megabit up, it is hugely unlikely this is a high latency connection to the nearest speedtest server as home user satellite service does not typically have that kind of bandwidth. (We know its home user because he says to my house.) In short, no reason is given to believe this is a high latency connection rather then typical home broadband.
  • Matija Nalis
    Matija Nalis about 5 years
    @FeRD actually, while some malware will try to limit bandwidth in order to remain stealth, most malware which exfiltrate data from your computer to attacker (which is by no means all of them, I agree) will opt to get as much data as possible before it is detected, and as such will saturate your outbound link (and thus severely impact not only upload, but download speeds too).
  • FeRD
    FeRD about 5 years
    @MatijaNalis Yes, and most malware that does that would do it just fine through a consumer router as well, making it incredibly unlikely the user would remain blissfully unaware of this theoretical malware, only for it to be revealed once they bypassed the router. ...Look, I agree it's possible. In fact, that was the very first sentence in my very first comment. It's still a unicorn.
  • davidgo
    davidgo over 3 years
    I'm pretty sure this is wrong on multiple levels. First off, a 100 megabit connection is very strict about the limit and won't go over it even for a few ms, but does not require QoS. Secondly, TCP is DESIGNED to back off if there are lost packets and ramp up again to hone in on the maximum speed. It also does not address the discrepancy between WIFI and ethernet.
  • davidgo
    davidgo over 3 years
    Consumer grade "broadband" type modems only support a single client device because they are acting as a modem, not a NAT device. Also, they are sometimes hardwired to expect a MAC to assign the appropriate address to.
  • FeRD
    FeRD over 3 years
    @davidgo Mmm, that's a fair point, yeah... though, it does still seem a bit arbitrary because it's not like other devices CAN'T communicate over the link, they just have to do it at greatly reduced speeds. That seems harder to explain, to me — at least from a technical standpoint. (Administratively, sure.)
  • user253751
    user253751 over 3 years
    @davidgo This is an ISP. The way they work is they give everyone a fast fibre-optic connection (so they don't need to replace it when people upgrade) and then throttle it.
  • davidgo
    davidgo over 3 years
    I think you misunderstood what I was trying to communicate. Also, an ISP would not use QoS for limiting speed, they would use rate limiting. BTW, I might just know a thing or 2 about running an ISP :)
  • user253751
    user253751 over 3 years
    @davidgo Rate limiting falls under the category of QoS
  • user253751
    user253751 over 3 years
    @davidgo The company which operates the physical network was not allowed to introduce delay, so they had to drop packets instead of buffering them. And so the company that provided the Internet service over that network had to do buffering in their provided routers.
  • davidgo
    davidgo over 3 years
    the concepts of rate limiting and QoS are closely related but not synonymous. QoS classifies packets into streams and typically utilizes the QoS bits and prioritises streams to maximize link usage - and yes, sometimes this includes rate limits. Except for ISP VOIP traffic I would argue that an ISP shouldn't - and typically doesn't do QoS for typical customers. They may well do rate limiting. Even aggregated bandwidth pools is not QoS.