The wl0 and vlan0 interfaces seem to have their rx and tx reversed. Bug?

Discussion in 'Tomato Firmware' started by Sunspark, Dec 5, 2008.

  1. Sunspark

    Sunspark LI Guru Member

    For the devices on the bandwidth monitoring screen, it seems to me as if the wl0 and vlan0 interfaces are recording the data they are sending to the internet as RX (receiving) and the data they receive from the internet as TX (transmitting).

    But on the ppp0 (or vlan1) it is the other way around, it correctly shows what is being sent to the internet as TX.

    Why the inconsistency? Wouldn't it make logical sense to have them all the same? Because I think of an interface as an object, a behaviour it is doing.
  2. SgtPepperKSU

    SgtPepperKSU Network Guru Member

    But, these devices aren't sending data to the internet. They're forwarding it through the router to other devices. They are, however, receiving it from the LAN (and WLAN) clients. Have a look at a diagram of the internal connections (this is for OpenWRT, but at least mostly applies here). That's why it seems reversed.
  3. fyellin

    fyellin LI Guru Member

    Don't think of these values as internet-centric; think of them as Tomato-centric.

    In its own strange version of double-entry bookkeeping, every packet that's received by the router is then transmitted by the router, so that the sum of the RXs should roughly equal the sum of the TXs.

    (This isn't really true, since some packets are received by the router and handled by the router itself, and other packets and generated by the router. The router can also rewrite and split packets. But you get the idea.).
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice