Network Components
This section is intended as a primer for how to setup a home or small office network.
The following explanation is intended as a basic intro into the components and their respective roles. As always in networking (as it was intended from the beginning) there multiple ways of setting up the topology, depending on the goals you are trying to achieve.
Ideal Topology: Star
Common Topology: Tree Network
Due to the difficulties implementing the Star topology, mainly cause by the need to run physical connections between every present and future client to a central location, the most common topology in practice is the Tree Network.
This has the advantage of running only one (or small number) of physical connections to the central switch
But has the disadvantage of having this connection as a potential bottleneck for bandwidth, as well as increasing the latency because every switch will necessarily have to receive and forward the network packages
Below are two examples of this topology where the function of the Router, Firewall, DHCP, Switch and Access point are been provided by a single device, plus one or more additional downstream switches.
Use of physical connections
Most importantly: All clients (and of course switches) that can be connected using physical connections (Ethernet, SFP+) should be connected. The reason is because when using roads as an analogy:
-
This means that a 1GbE connection can do 1GbE download and 1GbE upload
at the same time (for a total bidirectional speed of 2GbE) but will
not do 2GbE in any single direction. This speed will be constant up to the
maximum allowed length of the connection
-
Using the same analogy, a WiFi channel in the
2.4 GHz,
5GHz or
6GHz can only ever have a certain physical width (Channel widths are 20,40, 80, 160, 320
MHz). This channel width is the maximum number of lanes that can used for both upload and download.
Assuming that the physical speed of the WiFi connection (WiFi 6) is 1201 Mbps (80
MHz channel, 1024-QAM, 2×2 MIMO) close to the access point, this 1201 Mbps is the maximum shared between multiple devices and neighbors.
https://www.wiisfi.com/#PHY
As an example: 520 Mbps DL + 416 UL + 265 a neighbor the actual throughput (taking into account interference, losses and overhead) for the download will probably be about 365 Mbps for the device downloading, and upload of 290 Mbps for another device uploading at the same time, and approximately 185 Mbps used by the neighbor (total for upload and download)
In an ideal scenario where only one device is downloading using this channel and no other devices nearby the speed might actually be 840Mbps (again taking into account interference, losses and overhead).
Choosing components
The following section describes possibilities when choosing components, not as an exhaustive list. Ever since it's inception at ARPANET the networking layer is designed to work with a wide range of equipment and provide redundancy in case one path fails.
When installing a new network, or upgrading an existing network as described in the previous section the following items need to be considered:
Router resources (CPU, RAM, storage); This describes the most common situation when the router, firewall and
DHCP are on the same device and will be simply called router. Each of these functions can potentially be done by separate physical or virtual (VM) devices
Enough (CPU, RAM) for it's primary task: to route (
NAT) the requests.
Having hardware flow offloading (and if implemented by OpenWRT for that device) decreases the necessary processing power, as the packages are forwarded without analysis but that makes it incompatible with SQM
Increased (CPU, RAM) if running
SQM which inspects every package to decide the order in which they will be sent or dropped if the network is overloaded
Increased (CPU, RAM, storage) if running additional tasks (e.g. network related packages or containers like AdBlock, PiHole, Grafana)
Switch link type (Ethernet, SFP+) speed (100MbE, 1GbE, 2.5GbE, 5GbE, 10GbE, etc.)
100MbE should only be considered when attempting to deploy low bandwidth usage devices (TVs, security cameras, IoT devices), optionally with PoE
1GbE should be considered the minimum for all other devices as it is cheap enough and widely available.
2.5GbE is becoming more common in regular deployments
5GbE and 10GbE are yet to be commonly adopted, requiring a use case to justify a need for the added cost
-
Physical connection link speeds (over Ethernet or SFP+).
Using the rule of thumb: cables are cheap but hard to replace while networking equipment is expensive but easy to replace then the highest speed cables should be deployed with the selected networking equipment.
The lengths provided are as a reference only, and account for using patch cables at each end. The reasoning is that the main cable is hard to replace or terminate, whereas the ends are the most easily replace if they are no longer working due to repeated insertions or movement.
Cat 5e should be considered as the bare minimum. It can run up to speeds of 2.5GbE at a distance of 100m or 1GbE at 100m
Cat 6 or 6A should really be used when deploying new cable. CAT 6A can run up to speeds of 10GbE at a distance of 100m and CAT 6 can run 5GbE at 100m
Cat 7 exists, but has different connectors which are not compatible with existing network cards
For speeds of 10GbE and higher connections using SFP+ are commonly used currently, usually with
DAC for distances under 10m or
fiber optic for longer distances
-
Access Point physical placement
The biggest impact on coverage of a WiFi network is the distance to the Access Point (one of the components of an all in one router is the Access Point).
To improve the coverage:
Do not use WiFi extenders. These cut the bandwidth by more than half as every packet received in either direction needs to be resent over the same channel. Double the traffic on a channel resulting in half as much bandwidth
Do not use Mesh Network. While this works, it's using a separate frequency to bounce the packages from one Access Point to another adding latency and WiFi overhead.
Upgrading
ISP speed alone will
not have any impact on coverage.
Upgrading the all in one Router
might improve coverage, most likely not. If there is an improved coverage that would be due to improved radio of the router's internal
AP (e.g. higher MIMO, better antennas)
-