Warning
This is an unpolished draft of the second edition of this ebook. If you find any error or have suggestions to improve the text, please create an issue via https://github.com/obonaventure/cnp3/issues?milestone=2
Ethernet networks¶
- With the 802.1d protocol, Ethernet switches exchange BPDUs that contain four informations :
- the Root identifier
- the Cost to reach the root
- the Transmitter identifier
The third information contains two parts : the identifier of the switch that sent the BPDU and the identifier of the port where the BPDU has been sent. Each switch uses a unique identifier for each of its ports.
[R=123,C=11,T=16.9]
[R=122,C=21,T=19]
[R=123,C=17,T=15.1]
[R=123,C=17,T=12.19]
[R=126,C=11,T=6.9]
[R=123,C=21,T=19]
[R=123,C=17,T=25.1]
[R=123,C=17,T=22.19]
Consider a large Ethernet network that contains the switches shown in the figure below.
Switch 32 has received the following BPDUs from its neighbours :
- [R=9,C=21,T=19.2]
- [R=9,C=12,T=42.1]
- [R=25,C=5,T=25.2]
- [R=9,C=5,T=46.3]
[R=25,C=6,T=25]
[R=9,C=6,T=25]
[R=9,C=6,T=19.32]
[R=9,C=5,T=32]
- Consider the same network as above. Assume now that switch 32 has received the following BPDUs from its neighbours :
- [R=9,C=6,T=19.2]
- [R=9,C=12,T=42.1]
- [R=9,C=5,T=25.2]
- [R=9,C=5,T=46.3]
Consider the switched network shown in the figure below.
- Consider the same network as in the above question.
The port of S3 that leads to S6 is in the designated state.
The port of S3 that leads to S9 is in the designated state.
The port of S3 that leads to S7 is in the designated state.
The port of S6 that leads to S4 is in the blocked state.
The port of S7 that leads to S4 is in the blocked state.
The port of S7 that leads to S9 is in the blocked state.
The port of S4 that leads to S6 is in the designated state.
The port of S4 that leads to S7 is in the designated state.
The port of S9 that leads to S7 is in the designated state.
Ethernet switches can also be connected to a HUB. Consider the Ethernet network below.
The port of switch 12 attached to the Hub is a designated port.
The port of switch 9 attached to the Hub is a designated port.