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

    OMV6 i5-based PC

    OMV6 on Raspberry Pi4

    OMV5 on ProLiant N54L (AMD CPU)

  • 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 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

  • 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 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

  • MarcS,


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

    gderf Meant to say switches operate at Layer 2. :) Routers operate at Layer 3, IP, IPCMP, etc. This diagram does a pretty good job of explaining the separation.


    https://linuxhint.com/wp-conte…ads/2021/07/image1-39.png


    This one as well.


    http://www.blackmoreops.com/wp…ytime-blackMORE-Ops-1.png

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!