I would like to ask about the bandwidth of router, switch and hub? Suppose a 100 Mbps LAN cable connect to a router, switch and hub, what is their output bandwidth?
Let's assume that the ports on all of the devices (router, switch and hub) are all rated at 100 Mbps. Assuming that they perform to rated capacity, they should all support the full capacity that at Layer 3, should be around 97.5 Mbps.
But there are several things to consider: First, just because a port/device is rated at 100 Mbps, and maybe even modulates the link to spec, doesn't mean that you will actually see the promised performance. A poor driver or interface is not uncommon, limiting the actual performance to something much less.
Next, it should be noted that hubs are, by design, "half duplex". They will transfer at full capacity in one direction at a time. Routers and switches will operate in "full duplex" mode (assuming they are set correctly and auto-negotiation hasn't set them to half duplex), meaning they can send in both directions at full capacity.
Finally, it is important to consider how you are measuring the capacity. Every device in the path can affect the apparent throughput. And if you are using a TCP-based data transfer client as your measuring tool, you will very likely have a very poor measure. TCP is affected by many different things including the tuning and configuration of the workstation it is running on. You should use a hardware solution like SmartBits, or a software solution like iPerf on a properly configured host, to flood the path properly.