1 Washington WASHINGTON UNIVERSITY IN ST LOUIS Jyoti Parwatikar January 7,8 2002 MSR Tutorial Monitoring WUGS Switch Jyoti Parwatikar January 7, 2002
1WashingtonWASHINGTON UNIVERSITY IN ST LOUIS
Jyoti Parwatikar January 7,8 2002 MSR Tutorial
Monitoring WUGS Switch
Jyoti Parwatikar
January 7, 2002
2WashingtonWASHINGTON UNIVERSITY IN ST LOUIS
Jyoti Parwatikar January 7,8 2002 MSR Tutorial
Outline• newGBNSC• JAVA GUI JAVAGUI
newGBNSC
CP
WUGS
Network
3WashingtonWASHINGTON UNIVERSITY IN ST LOUIS
Jyoti Parwatikar January 7,8 2002 MSR Tutorial
newGBNSC
• Function– Sends (receives) commands cells to(from)
WUGS– Communicates w/ external processes (Jammer,
JAVA Gui)• provides interface to send command cells & receive
returned data
• provides periodic operations
4WashingtonWASHINGTON UNIVERSITY IN ST LOUIS
Jyoti Parwatikar January 7,8 2002 MSR Tutorial
Running newGBNSC
• Location:executable: wu_arl/wugs/bin
source: wu_arl/wugs/src/newGBNSC
README: wu_arl/wugs/src/newGBNSC/README
• 2 executables– newGBNSC.init: reads & writes registers and
vxtable– newGBNSC: read-only
5WashingtonWASHINGTON UNIVERSITY IN ST LOUIS
Jyoti Parwatikar January 7,8 2002 MSR Tutorial
JavaGUI
• Function: monitors live switch discard rates & bandwidths– graphs parameters in units of Mb/s– several switches may be monitored on one
graph– period of monitoring is set by user with rates up
to ~1/30000s– interfaces with newGBNSC
6WashingtonWASHINGTON UNIVERSITY IN ST LOUIS
Jyoti Parwatikar January 7,8 2002 MSR Tutorial
Running JavaGUI• Requirements
– Java 1.2.x runtime environment– newGBNSC or newGBNSC.init running on
switches to be monitored
• Locationwu_arl/msr/apps/javaGUI/pubgui.jar
README file in wu_arl/msr/apps/javaGUI/
• Starting– Windows : double click on pubgui.jar icon– Unix: java -jar pubgui.jar
7WashingtonWASHINGTON UNIVERSITY IN ST LOUIS
Jyoti Parwatikar January 7,8 2002 MSR Tutorial
Graphical Components
Main Window
Monitor Switch Menu
•list of switches
•option to add new switches
Options Menu - start new graph, save/load graphs to/from file
Popup Menus•Selecting item
•hold down mouse button •drag across menu until item selected, •release button over item
8WashingtonWASHINGTON UNIVERSITY IN ST LOUIS
Jyoti Parwatikar January 7,8 2002 MSR Tutorial
GraphOptions Menu - add/remove parameters, save graphs to file, show values
Zoom Menu - zoom in/out
Legend
• Parameter names - editable text fields
• Changing Names - select field, type & press enter
• Showing hidden plot lines - move cursor over parameter name
Scrollbar - scrolls along x-axis
Note:only keeps track of last 400 values
9WashingtonWASHINGTON UNIVERSITY IN ST LOUIS
Jyoti Parwatikar January 7,8 2002 MSR Tutorial
Switch Graphic
Switch Clock Rate in MHz
value calculated and returned when the first parameter from this switch is added to a graph
Port Buttons - press to see monitorable parameters
Port Parameter Menu
10WashingtonWASHINGTON UNIVERSITY IN ST LOUIS
Jyoti Parwatikar January 7,8 2002 MSR Tutorial
Bandwidth - IPP Maintenance Register FIELD NUMBER 4: Statistics-A
IPP Parameters
BW with Recycled • Receive Cell Counter + Recycling Cell Counter
BW with Recycled • Transmit Cell Counter
Cell Discards - IPP Maintenance Register FIELD NUMBER 5: Statistics-B VXTCS0 Discard
• VXT CS0 Overflow CounterNote: FIELD Number 4: Statistics-B
RCB CLP0 Discard • RCB CLP0 Overflow Counter
RCB CLP1 Discard • RCB CLP1 Overflow Counter
CYCB Discard • CYCB Discard Counter
Bad HEC Discard • Bad HEC Counter
Total Discard• Sum of the above parameters
11WashingtonWASHINGTON UNIVERSITY IN ST LOUIS
Jyoti Parwatikar January 7,8 2002 MSR Tutorial
OPP Parameters
BW with Recycled • Transmit Cell Counter + Recycling Cell Counter
BW with Recycled • Transmit Cell Counter
Bandwidth - OPP Maintenance Register FIELD NUMBER 15: Statistics-A
Cell Discards - OPP Maintenance Register FIELD NUMBER 16: Statistics-B XMBCS0 Discard
• XMB CS0 Overflow Counter
XMBCS1 Discard • XMB CS1 Overflow Counter
TOOLATE Discard • Too Late Discard Counter
RESEQUENCER Discard • Resequencer Overflow Counter
Total Discard• Sum of the above parameters
12WashingtonWASHINGTON UNIVERSITY IN ST LOUIS
Jyoti Parwatikar January 7,8 2002 MSR Tutorial
Converting Parameters
• Parameters are displayed in Mb/s
• Cell Counts are converted to Mb
• Count differences are computed for each polling period and divided by the period length
13WashingtonWASHINGTON UNIVERSITY IN ST LOUIS
Jyoti Parwatikar January 7,8 2002 MSR Tutorial
Starting A New Graph
•Select Start New Graph from Options Menu
•Type Graph Name in text box
•Press Enter
14WashingtonWASHINGTON UNIVERSITY IN ST LOUIS
Jyoti Parwatikar January 7,8 2002 MSR Tutorial
Adding Parameter to Graph
• Select Add Parameter from Graph’s Options Menu
• Select Switch from Monitor Switch Menu
• Select Parameter to monitor from Switch Graphic
• Type Period of updates in Polling Rate Window
Polling Rate Window
15WashingtonWASHINGTON UNIVERSITY IN ST LOUIS
Jyoti Parwatikar January 7,8 2002 MSR Tutorial
Removing Parameter From Graph
Showing Values
•Select Remove Parameter from Graph’s Options Menu
•Select parameter to remove from sub menu
•Select Show Values from Graph’s Options Menu
•Select a point by placing the cursor over the graph and double clicking the mouse button
•(x,y) value of point appears in lower left corner of graph
16WashingtonWASHINGTON UNIVERSITY IN ST LOUIS
Jyoti Parwatikar January 7,8 2002 MSR Tutorial
ZoomZoom In • Select Zoom In From Selection
from Graph’s Zoom Menu
• Draw rectangle around area to zoom while pressing mouse button
• Release mouse button
• Click inside rectangle to Zoom
• To cancel click outside of rectangle
Zoom Out • Select Zoom Out from Graph’s
Zoom Menu
17WashingtonWASHINGTON UNIVERSITY IN ST LOUIS
Jyoti Parwatikar January 7,8 2002 MSR Tutorial
Add New Switch
•Switch ID (arbitrary number for now)
•Name of host running newGBNSC for switch
•TCP port number of newGBNSC
•Select Add Switch from Monitor Switch Menu
•Fill in fields of text window & Press Enter
•Switch added to list stored in file userHomeDir/switches.txt
18WashingtonWASHINGTON UNIVERSITY IN ST LOUIS
Jyoti Parwatikar January 7,8 2002 MSR Tutorial
Saving/Loading Files
•A shortcut for saving a set of graphs frequently used
•Files contain parameter and graph specifications
•Loading a file automatically
•starts a set of saved graphs, •connects to the switches •and sends the commands to start monitoring the specified parameters
19WashingtonWASHINGTON UNIVERSITY IN ST LOUIS
Jyoti Parwatikar January 7,8 2002 MSR Tutorial
Saving/Loading Files Cont’dSaving to File
•All displayed graphs
• Select Save To File from main window’s Options menu
•Single Graph
• Select Save To File from graph’s Options menu
•Type name of file in File Window
Loading From File
•Select Load From File from main window’s Options menu
•Select file from File Window
File Window