-
Notifications
You must be signed in to change notification settings - Fork 28
Visualizer
Dan Barrett edited this page Mar 21, 2017
·
9 revisions
The visualizer is a tool to help understand how traffic is routed in an XIA network. NOTE: Say some more here!
- Make sure the Twisted Python library is installed on each node in the network
sudo apt-get install python-twisted
- Select one of the nodes in the network to run the stats server
- Start the statsserver listening on TCP port 8888 on all interfaces. The statsserver is a simple http server that is used to aggregate the information from all the nodes in the network
- This also starts the xstats daemon which retrieves XID count information from click and reports it to the statsserver
xianet -Z -other-options start
- Tell the remaining nodes to run the xstats daemon and send statistics to the statsserver on port 8888 on the specified IP address or host name.
xianet -z <address of machine running stats server> -other-options start
- Install Flash for your web browser (sorry!)
- Load the visualizer
firefox file:///home/yourname/xia-core/tools/visualizations/distributed_click/Visualizer.html
- If necessary, tell flash it's OK to use local storage with this app. If nothing other than the key and controls appear after clicking start, you may need to tell Flash that it's OK to let the visualizer store its configuration information on disk. This only needs to be done once.
- Right click on the setup screen
- Select Global Settings...
- Click the
Advancedtab - Click the
Trusted Location Settingsbutton - Add the
~/xia-core/tools/visualizations/distributed_click/folder to the list
-
Stat Server: enter the address of the statsserver including port # 8888. (
http://localhost:8888). - Layout: This is intended to select how nodes are displayed in the output, but does not always work as expected. It's best to simply select Simple.
-
Traffic type: Selects how to display traffic
- Final Intent: display statics based on where the ultimate destination for packets is. An AD->HID->SID DAG would show counts under SID only.
- Next Hop: display statistics based on which part of the DAG is currently being evaluated. An AD->HID->SID DAG will be counted as different XID types depending on where in the network the processing occurs. See below for more information.
- Show ManagementTraffic: intended to filter out routing messages from being displayed, but does not currently have an effect.
- Show Map: has no effect.
- Share max traffic rate across: Sets the scale of all graphs the same rather than letting them vary per link. (The controls can be dragged to a different location if desired).
- Show Controls: displays a selector for Final Intent/Next Hop display on the output screen.
- Show Key: displays an XID color key at the bottom of the screen. (The key can be dragged to a different location if desired).
- Chart Type: selects the default chart type for showing traffic info. The image below shows the 'Compact Chart', 'Standard Chart', and 'Table' options. The displayed chart can be cycled through all of the options by clicking on it.
The examples below show the same traffic pattern, an echoserver running on host1 and an echoclient on router0. The DAG is AD->HID->SID. The width of the lines is relative to the amount of traffic being delivered. Larger lines indicate more data.
Because the final intent for all traffic in this example is a SID, it is the only thing displayed. The bulk of the traffic is between Router0 and Host1. There is some SID traffic shown on the link between Router0 and Host0: this is router daemon traffic.
In this case, packets are recorded based on their next hop, so we see mainly AD and HID counts.
- Packets leaving Router0 in AD0 are traveling to a SID on Host1 in AD1.
- The next hop in the link between Router0 and Router1 is an AD.
- The next hop between Router1 and Host1 is an HID.
- Because the nexthop to the SID is handled on Host1, we don't see any SID counts in the display.
- Packets leaving Host1 in AD1 travel to router0 in AD0.
- The AD counts between Host1 and Router1 are due to the fact that the packet is being routed to AD0 an we don't have a HID yet.
- This is also why there is no HID traffic between Router1 and Router0.
- The HID and SID are both routed internally on Router0 and are not shown in this display.
- The smaller counts for FID traffic are due to xrouted messages.
- The visualizer client is a Flash application that is unlikely to ever be updated again.
- Non-operative features:
- There is no ability to add addresses to the Saved Servers dropdown
- There is no way to save a Custom Layout for the Layout dropdown
- The display management traffic checkbox has no effect anymore because we have changed how routing messages are delivered
- The Show Map checkbox has no effect
- The delivery of statistics data to the stats server occasionally stutters, so the values displayed should be taken with a grain of salt.
