4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai
4eaa471005973e11a6110b69fe990530b3b95a38Rishi SrivatsavaiThe Rapid Spanning Tree Library project contains a full implementation
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavaiof 802.1s as an library with API. There is two processes, using this
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavailibrary: 'bridge' & 'mngr'. First simulates RSTP bridge behavior, second
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavaiis dedicated to link/unlink 'bridges' into virtual RSTP domain (VRSTPD).
4eaa471005973e11a6110b69fe990530b3b95a38Rishi SrivatsavaiBoth 'bridge' & 'mngr' has its own simple CLI like language of commands;
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavaithese commands allow to manage the VRSTPD. There are tools to trace
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavaistate machine transitions and get traps about drastic changes.
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai
4eaa471005973e11a6110b69fe990530b3b95a38Rishi SrivatsavaiPurpose: studying, debugging, development.
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai
4eaa471005973e11a6110b69fe990530b3b95a38Rishi SrivatsavaiThe library may be used in real bridges/routers while bounding to a real
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavaisystem depending environment.
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai
4eaa471005973e11a6110b69fe990530b3b95a38Rishi SrivatsavaiTo run:
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai1. In one shell run 'mngr'
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai./mngr
4eaa471005973e11a6110b69fe990530b3b95a38Rishi SrivatsavaiYou will get prompt of 'mngr'; type '?' and get full help of
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai'mngr' commands.
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai2. In another shell run bridge instance.
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai./bridge
4eaa471005973e11a6110b69fe990530b3b95a38Rishi SrivatsavaiYou will get prompt of 'bridge'; type '?' and get full help
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavaiof bridge management commands.
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai3. You may (and should) run a number of bridge instances, each in its
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavaiseparate shell (this way you will be able manage them).
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai
4eaa471005973e11a6110b69fe990530b3b95a38Rishi SrivatsavaiFor example, if there were two bridge instances, you may see examples
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavaiof the dialog in files mngr.txt, B5055.txt and B5056.txt.
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai
4eaa471005973e11a6110b69fe990530b3b95a38Rishi SrivatsavaiNote: prompt both of 'mngr' and of 'bridge' instance contains time stamp,
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavaiwhile all these process run onto the same computer, these time stamps
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavaiare synchronized.
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai