5.4.1 Topology Discovery
Topology discovery is a method to measure the relative distance between two 10BASE‑T1S nodes on a physical network. It is defined in the OPEN Alliance 10BASE‑T1S Topology Discovery specification. This is a system test, meaning that before the measurement can begin, a reference or measuring node and a measured node must be arbitrated. It is recommended that a node located at the physical end of the mixing segment be designated as the reference node for all topology discovery measurements. During the topology discovery measurement, all other nodes must avoid all transmissions. Therefore, PLCA must be disabled during this time to avoid BEACON transmissions and no data packets may be transmitted.
At the start of topology discovery, the internal delay of each the reference and measured nodes must be determined. This is the internal delay between receiving the first edge of the received pulse and the first edge of the retransmitted pulse. The internal delay is composed of the delay within the transceiver itself as well as the delay within the digital PHY of the microcontroller. Measurement of a node’s internal delay involves the node transmitting an initial pulse. The node will immediately respond to the reception of its own pulse that it sends. Because the distance is zero and the measurement duration is known, the number of pulses counted in this measurement is proportional to the internal delay of the node. Each node must determine its own delay in turn; since they transmit onto the bus during the delay measurement, the nodes cannot perform their delay measurement simultaneously.
Measurement of the delay between the two nodes, and therefore the distance, is accomplished in a similar manner. The reference node will measure the distance between itself and the measured node. The reference node transmits a single pulse onto the Ethernet line. Once the measured node receives this pulse, it responds by sending a pulse of its own in return. This procedure is repeated for a set amount of time as configured in the reference node. The total delay between the nodes is then calculated using the internal delays of the devices, the total measurement time, and the total number of pulses received. If the propagation delay of the pulse through the physical medium is known, the distance between the two nodes may then be determined.
The polarity of the pulses is varied each cycle according to a scrambler followed by a 1B/2B encoding mechanism. The 1B/2B encoding is applied to the output to prevent a baseline wander on the line. This means that pulses are transmitted as pairs, either a positive pulse followed by a negative pulse or vice-versa. To ensure that the measurement is safe against noise, a scrambler is used to scramble the pulses being transmitted by both the reference node and measured node. When using a PMD transceiver, the scrambler, the 1B/2B encoder and the serializer portions of the transmit path are implemented in the transceiver. In the receive path, the transceiver contains only the physical receiver to relay the received signal through the RX and ED pins to the Digital PHY. The de-serializer, 2B/1B decoder and the descrambler are implemented in the Digital PHY.
To enter topology discovery mode, a ‘1’ must be written into the Topology Discovery Enable (TPEN) bit of the PMD Control (PMDCTL) Register. If this node is to be a reference node, then additionally a ‘1’ must be written into the Topology Discovery Reference Node Select (TPREFN) bit of the same register.
