Ethernet NIC architecture: Function of loopback circuit

ethernet

Ethernet NIC half-duplex
(source: flylib.com)

I want to make sure my understanding of the function/the needs of loopback to detect collision is correct.

  1. There is frame to transmit from Ethernet controller.
  2. TX transmits to wire, loopback and collision detector.
  3. RX receives from wire and loopback.
  4. RX transmits to collision detector and Ethernet controller.
  5. Collision detector compares whether the voltage it receives from TX and RX is same or not.

Is this correct?

Best Answer

  1. The SW 127.0.0.1 loopback tests the network stack but not the NIC.
  2. The NIC loopback tests the network stack and the NIC card.
  3. Cable loopback tests the network stack, the NIC and the connectors.

For the NIC card the loop back is a "mode" of operation, A properly designed NIC would deal with the collision detection appropriately, in full duplex, half duplex etc. situations.

I Think that your second item, "TX transmits to ..." is not right. I'd say that in loop back the TX transmits only to the RX channel and NOT to the connector/wire as that would defeat the intent of loopback testing. Likewise for your third item, the RX in loopback would only receive from the TX and not the wire also.