4

I have 2 Windows 10 PCs (Home edition), and I'm trying to set up a home NAS server, as shown below. I use my 2 PCs for gaming and streaming (respectively).

I have a Gigabit router, 2 USB to Gigabit Ethernet Adapters, and an Un-managed Gigabit Network switch, which connects the 2 PCs, in 2 distinct paths. So, both PCs have 2 Ethernet adapters each, and I have set static IPs for all 4 adapters. The static IPs for the Internet-facing Router are of the form 192.168.0.xxx and the IPs for the LAN-facing Switch are of the form 192.168.2.xxx (No specific reason to do this, I just wanted to easily be able to identify which network I'm dealing with just by looking at the IPs).

My goal is to make sure that my gaming and streaming are not affected by the local NAS file transfers, and also to make sure that the NAS file transfers use the full Gigabit bandwidth (I know it won't hit the theoretical maximum, but that's fine). I want to make sure that all bytes related to gaming/streaming only use the Router (192.168.0.xxx adapters) and all bytes related to NAS file transfers only use the Switch (192.168.2.xxx adapters).

I was able to establish connectivity, but I do have a few questions about this setup, could someone please help me with these?

  1. Is this the correct way to set up the PCs, for what I want to do? Most websites talk about connecting multiple PCs to the switch, and then connect the switch to the router. But my goal was NOT to share the internet connection, I just wanted a dedicated network for NAS transfers, and a dedicated network for Internet access.

  2. I had to set both Private and Public profile in the File and Printer Sharing Inbound Rule in Windows Firewall, without it, I wasn't able to connect to the 2nd PC using the 192.168.2.xxx IP. Is it safe to use Public profile? I have read that it should ideally only be Private profile?

  3. I initially thought that I would get close to 1 Gbps bandwidth each on both networks, but when I ran 2 simultaneous iperf tests, I only got close to 1 Gbps in total. Based on the blinking LEDs, I'm confident that only the Router was used when I used 192.168.0.xxx in the iperf command, and that only the Switch was used when I used 192.168.2.xxx in the iperf command. Since they are technically 2 separate Gigabit networks, shouldn't I have got close to 1 Gbps speed on both networks, independently? Right now, speed is effectively being halved on both networks. There is no issue with either network, I'm able to hit Gigabit speeds when I run single iperf tests on either network, so the halving of speed is happening only when I run both iperf tests.

                   Internet
                      |
                      |
                 Gigabit Router
                      |
      (192.168.0.xxx) | (192.168.0.xxx)
    __________________|__________________
    |                                    |
    |                                    |
Windows PC 1                         Windows PC 2
    |                                    |
    | (192.168.2.xxx)                    | (192.168.2.xxx)
    |                                    |
USB to Gigabit                     USB to Gigabit
  Ethernet                            Ethernet
  Adapter                             Adapter
    |                                    |
    |____________________________________|
                      |
                      |
                  Un-managed
                   Gigabit
                   Network
                   Switch

Screenshot of the above

5
  • 1
    iPerf has some funky behavior I have run in to and really seems to blow it in certain scenarios. I suspect the problem is more with iPerf than anything else. Everything else looks correct. There’s other Speedtest tools. I’ve used a trial version of passmark performance test before as well. Give it a shot. passmark.com/products/performancetest/pt_advnet.php also, you can specify which “zone” each network is in, whether it is public or private. It is all arbitrary. opentechguides.com/how-to/article/windows-10/77/… Commented Dec 24, 2019 at 14:56
  • Your network type selection really only matters when you are truly on a public network. Like public WiFi or some other untrusted network. You technically have two “private” networks right now. You should not enable sensitive services, like file and printer sharing on public networks. So change that. Commented Dec 24, 2019 at 15:00
  • @Appleoddity Windows has an issue where it NEEDS a gateway to identify a network, and a network needs to be identified to set it to private. This is the root of his issue with having to allow file sharing on public networks, Windows cannot not identify his switch network (without a gateway) and so it cannot be set to private. superuser.com/questions/958298/…
    – Ivan McA
    Commented Dec 24, 2019 at 15:24
  • Are your USB-to-network adapters USB 3.0? USB 2.0 throughput of 480Mbit & latency issues superuser.com/questions/697032/… reddit.com/r/answers/comments/446es6/…
    – gregg
    Commented Dec 24, 2019 at 15:28
  • @gregg They are USB 3.0. And, they give me close to Gigabit speeds when used individually. The only issue is that I get low speeds when I do a bandwidth test with both networks.
    – ArM
    Commented Dec 26, 2019 at 12:09

1 Answer 1

0

May I ask why you don't connect the PC1, PC2, & NAS to gigabit router? If it doesn't have enough ports connect the unmanaged switch to gigabit router then connect whichever devices to that? I honestly believe you are needlessly complicating it, but I'm guessing you may be doing it because you're worried the NAS or services to NAS may somehow affect your internet speed? How I handle this at home is a $50 firewall (Ubiquiti EdgeRouter X, but many others could work) blocks outbound WAN access to NAS. Mine is mostly regarding security, don't want it phoning home; however it has the same result of it not affecting my internet speed since it literally cannot get to it


--EDIT

  1. If its working it clearly is A WAY to do it. You confirmed via a comment that while utilizing NAS it clogs your pipeline to the internet. Based on your comment wording I'm speculating the router is overloaded while using NAS & trying to pipe internet.

    a. Another option: Instead of unmanaged switch for NAS network, use an old router

    b. Another option: Don't use static IP, try using the PC's self-assigned IP (169.254.x.x called APIPA)

    c. Another option: Buy a better main router

  2. It is safe to use Public, Windows automatically sets new networks to Public unless you change (to Private). Public is the most restrictive/safe by default. Private allows the most. Each can be customized to open more ports so Public COULD be the most dangerous if you've tweaked it a bunch.

  3. This is the award winning question. Since you can hit 1Gbps on each network separately process of elimination SEEMS to deem the network & USB adapters not at fault. So now I'd start looking at the PC as the common denominator. Watch task manager to see if its using a ton of CPU or RAM. Use your more powerful PC to test. It could be something with the TCP/IP network stack too of which I don't have an answer myself.

5
  • I don't want to connect it to the Router because I will have NAS transfers, and gaming, and streaming running at the same time. When I initiate a NAS transfer, it will easily hit 900+ Mbps on my Router network (I have tested these speeds). If I'm gaming/streaming at the same time, all those processes will start fighting for bandwidth, and my game and stream will start lagging. (BTW, in case you're wondering, the downvote isn't from me).
    – ArM
    Commented Dec 26, 2019 at 12:14
  • So it seems like a router throughput/capacity (CPU/RAM likely at fault) issue that may be affecting the outbound internet so you're spot on in the direction you want to go I apologize, I'll try to edit my answer with some other ideas. You can then upvote if you find it useful, thanks for pointing out you weren't the one downvoting. Maybe the downvoter was trying to tell me I was shooting in the wrong direction without just commenting like you did ;)
    – gregg
    Commented Dec 26, 2019 at 16:57
  • When you initiate a NAS transfer (on your router network) was it on the PC that was also gaming? If it was the PC may not be powerful enough to handle both tasks. If it wasn't the router may not be powerful enough to handle both tasks.
    – gregg
    Commented Dec 26, 2019 at 17:31
  • @ArM it’s important to note that traffic between your NAS and PC or any other device on the local network does not go through your router. Unless you can demonstrate the issue you describe, it is fully expected that your NAS transfer will use all available bandwidth but should easily allow the relatively slow internet connection to continue to operate without issue. Commented Dec 27, 2019 at 4:49
  • @gregg Sure, I'll check if the CPU/RAM usage is very high on either PC. I doubt it though, since they are both CPUs are pretty powerful, overclocked to 4GHz, and both have RAMs overclocked to 3.2GHz. Anyway, won't hurt if I cross-check, just in case. Thanks!
    – ArM
    Commented Dec 28, 2019 at 16:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .