Definitely your router. It is an old wireless g router, specs say you can get up to 54Mbps from "g" but in the real world no more than 20 Mbps. And that's under ideal conditions. If you connect wired over Ethernet directly to the modem, what speeds do you get. That router is in desperate need of an upgrade regardless of the wired speeds.