WUGS-20 Graphical Monitor Wei Deng Applied Research Laboratory Washington University, St. Louis wdeng@arl.wustl.edu Washington 1 WASHINGTON UNIVERSITY IN ST LOUIS Introduction • Course project of CS577 • Software project: Visualize information for WUGS-20 Gigabit switching system •Software Architecture •Design Issues •Implementation •Future Extension •Demo slides Washington 2 WASHINGTON UNIVERSITY IN ST LOUIS 1
Software Architecture Distributed structure Switch side Switch ATM socket Prober AAL0 Controller request data Switch TCP Socket User side retriever GUI memory parser Washington 3 WASHINGTON UNIVERSITY IN ST LOUIS Design Issues •ATM Socket (16 bytes data) •User Interactive Response Time •Data Structures • Keep the whole VXT and maintenance registers for each port in local memory • For multicast calcualtion, need additional VXI •Multipoint connection calculation algorithm • Get information RC, CYC 1,2 , EADR, VXI 1,2 from memory • Using a recursive function Washington 4 WASHINGTON UNIVERSITY IN ST LOUIS 2
Multicast connection calculation • Routing Control (000 010 001 011 111) • External Routing Address • Recycling flags • Virtual Path / Circuit Identifier • Input (a item of in_port) • Output (array of (out_port, vxi) tuples) Washington 5 WASHINGTON UNIVERSITY IN ST LOUIS Implementation • GUI Implementation ( J ava / Swing ) • Retriever ( thread, TCP socket) • Parser (passive module, initiated by user interaction) • Prober (ATM socket, TCP socket) Washington 6 WASHINGTON UNIVERSITY IN ST LOUIS 3
GUI Layout Virtual Path/ Circuit Table Switch Maintenance Registers Washington 7 WASHINGTON UNIVERSITY IN ST LOUIS User Interaction • Mouse actions (currently only supported mode) • Clickable area : port, table entries Information on GUI • Virtual Path / Circuit Table • Maintenance Registers • Link / Port Status • Statistical Information Washington 8 WASHINGTON UNIVERSITY IN ST LOUIS 4
Retriever Implementation • Using J ava Thread, works asynchronously with GUI • Retrieved data stored in memory, share data • 2 threads, with different interval time between two retrieve operations • Communicate with remote prober using TCP socket Washington 9 WASHINGTON UNIVERSITY IN ST LOUIS Parser Implementation • Working in passive mode, works like a filter • Transfer byte array data stored in meory to text information which will be presented in GUI Washington 10 WASHINGTON UNIVERSITY IN ST LOUIS 5
Prober Implementation • Working in daemon mode, always listen to TCP socket connections on designated TCP port • Can accept several connections simultaneously, but can only execute one probe a time, because of the restrictions in ATM socket • Acceptable commands • REG PORT FIELDNUM • TBL PORT � Return table entries whose Busy/ Idle bit = 1 every entry 18 bytes (16 + VXI) � First VPT, then VCT, ends with VPTEND / VCTEND Washington 11 WASHINGTON UNIVERSITY IN ST LOUIS Extension and Enhancement • User modifiable graphical component (Table, writable maintenance register fields) ⇒ Graphical controller • Better representation of link load information for each port Washington 12 WASHINGTON UNIVERSITY IN ST LOUIS 6
Snapshot 1 Washington 13 WASHINGTON UNIVERSITY IN ST LOUIS Snapshot 2 Washington 14 WASHINGTON UNIVERSITY IN ST LOUIS 7
Snapshot 3 Washington 15 WASHINGTON UNIVERSITY IN ST LOUIS Snapshot 4 Washington 16 WASHINGTON UNIVERSITY IN ST LOUIS 8
Snapshot 5 Washington 17 WASHINGTON UNIVERSITY IN ST LOUIS 9
Recommend
More recommend