Skip router for fast internal data transfer

Hi,

my room has its own gigabyte ethernet switch and gets the internet via a power bridge adapter from the other side of the house.

I want to use a nas as backup and media drive, now my question is:

If I go from the NAS to the switch will the access by my pc be like

PC->switch->NAS

or

PC->switch->power bridge->router->power bridge->switch->NAS?

whenever all wires are involved with the least amount of transformations that is your fastest route. PC to Switch to NAS is the fastest. This is why they came up with switches so devices could talk with one another without the router being involved. The only time you would want to send the packets to a router or a layered switch is for QOS...

When a frame arrives at a switchport on your switch, the switch adds the source MAC address in the MAC address table. It then looks up the destination MAC address in its table; if it can't find it, it will broadcast the frame out all switchports except the receiving port on the same VLAN, and then will learn the MAC address through the reply frame. If it can find it, it will forward it out the corresponding the switchport. So if the NAS is also plugged into the switch, it will go PC -> Switch -> NAS.

The only time the packet will go to the router is if the destination IP address is your default gateway, or an IP address that's not in your local subnet.

Thank you for the information. I always thought that the switch is just some kind of splitter. 

The Stuff in Bold is that what lets the PC and NAS communicat without the router?

  • Innovative energy-efficient technology saves power up to 65%
  • Supports IEEE 802.3x flow control for Full Duplex mode and backpressure for Half Duplex mode
  • Steel design, desktop or wall-mounting design
  • Supports QoS (IEEE 802.1p) and IGMP snooping function
  • Non-blocking switching architecture that forwards and filters packets at full wire-speed for maximum throughput
  • 9K Jumbo frame improves performance of large data transfers
  • Auto-MDI/MDIX eliminates the need for crossover cables
  • Supports MAC address auto-learning and auto-aging
  • Auto-negotiation ports provide smart integration between 10Mbps, 100Mbps and 1000Mbps hardware
  • Fanless design ensures quiet operation
  • Plug and Play design simplifies installation

 

Source: http://www.tp-link.us/products/details/?categoryid=1585&model=TL-SG105#fea

What you're thinking of is a hub, which is a layer 1 network device. When it receives bits, it just forwards them out on every port; this is way more prone to collisions, so half-duplex is only used. Switches are smarter since they work at layer 2, and use MAC addresses to make forwarding decisions.

Yes, the bit you've made bold is the reason why the PC and NAS can communicate without talking to the router. But this is only the case if your PC and NAS are in the same subnet. If this wasn't the case, your PC would use the default gateway's MAC address as the destination, and your switch would then know to forward it to the router. If you aren't already familiar, it might be worth reading up on ARP as well.

Thank you for the help.