usb hub - USB Hub questions

11
2013-08
  • agz

    I have a couple questions about usb hubs:

    If I only have one device connected to it, is the speed as fast as if I plugged it in directly to computer?

    If I have 2 flash drives plugged into and copy data simultaniously to my computer does the data alternate or do they both get transfered at the same time? (my usb flash drives max out at a read of 5 mb/s and i know usb can go much faster (20 mb/s or so))

    If i copy data from 1 flash drive to another (both are plugged into the hub), does the data go to the computer or does the hub just redirect the data?

  • Answers
  • Keltari

    If you have one device plugged into a USB hub, assuming it and the USB device have the same USB version, then the device will run at the same speed. Each USB hub does add a little latency, but you would not notice it.

    When copying from 2 devices simultaneously, if they are on the same hub, the flow will alternate from device to device. But this happens so quickly, its as if they were simultaneous. You will always get better performance by spreading your USB devices across different hubs - like the connecting a device to the front USB ports and another to the back. USB has different versions, supporting different speeds. Your hub might be version 2, which is up to 35 MB/s, and your slower flash drive might be version 1, which transfers at 12 Mbit/s.

    As for copying data from one flash drive to another through the same hub, the data will always flow through the computer. USB hubs do not understand filesystems and/or devices connected to it, they just provide connectivity - and possibly power.

  • David Schwartz

    If I only have one device connected to it, is the speed as fast as if I plugged it in directly to computer?

    It depends on the hub. But assuming the hub has its own source of power and operates at the fastest transfer rate the device and port support, then yes. Otherwise, it could force the device into a lower power mode or a lower transfer speed.

    If I have 2 flash drives plugged into and copy data simultaniously to my computer does the data alternate or do they both get transfered at the same time? (my usb flash drives max out at a read of 5 mb/s and i know usb can go much faster (20 mb/s or so))

    The flash drives transfer data internally at the same time. The USB bus alternates. This is one of the reasons devices have buffers. While the total transfer rate from both devices can't exceed the port's speed, you will see both devices transferring at their full internal speed thanks to buffering.

    If i copy data from 1 flash drive to another (both are plugged into the hub), does the data go to the computer or does the hub just redirect the data?

    It goes to the computer. The data can't be redirected because it isn't the same on both devices. Filesystems don't just store data, they store metadata as well. They have journalling rules, buffer flushing rules, block sizes, and so on. There just isn't enough smarts on either device for it to talk directly to the other -- neither device understands its own filesystem let alone the other device's filesystem.


  • Related Question

    windows 7 - What makes a good and reliable USB Hub?
  • AngryHacker

    I've gone through 2 USB hubs for my laptop and they both seemed to be unreliable. Both of these USB hubs are not powered.

    If I plug both keyboard and mouse, one of the devices won't work. Or if I plugin an external drive, then something else is sure not to work.

    Is the issue that it's not powered?
    Or is it something with the OS configuration (win7 32bit)?

    If someone can recommend an inexpensive hub (preferably non-powered) for 4-5 devices, that would be awesome.


  • Related Answers
  • sblair

    You need to get a powered hub, especially if you're connecting 4 or 5 devices. External drives and such consume more power than a mouse or keyboard. As to the expense, shop around online for a better deal. Google "battery powered usb hub" for mobility. Find one that allows you to choose between battery power or AC.