Network routing

  • Hi,

    I have a simple networking question involving routers and (un-managed) switches: Does network traffic always go via the router or can hosts, if they are connected via a switch, communicate directly without going through the router?


    In the example below all hosts are in the same sub-net:

    Can host1 send data to host3 without packets going through the router?


    router-----switch-----host1

    | |--------host3

    |

    host2

    OMV4 on ProLiant N54L + 5 x 3.5'' WD/Seagate HDs

    OMV5 on Raspberry Pi4

  • Traffic between hosts on the same network can communicate with each other directly without any participation of a router.


    Many routers have multiple LAN ports that function as a LAN switch. If the PCs are connected to these ports, then they communicate with each other across that switch. The router portion of the device doesn't see or touch the traffic.

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 5.x on Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 16GB ECC RAM.

  • I see.

    So the switch must have an IP table where it knows where packets must be routed to?

    Is that how it works?

    OMV4 on ProLiant N54L + 5 x 3.5'' WD/Seagate HDs

    OMV5 on Raspberry Pi4

  • Switches operate on Layer 3, the network layer. IP (TCP and UDP) are on Layer four and switches do not speak this.

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 5.x on Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 16GB ECC RAM.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!