Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following table enumerates the events, providing a high-level description of the payload. For explicit details of the payloads, see the source-code (smile).

Note that the term "node" (in this context) is used to mean "device or host node" in the topology visualization.

. Invoked by user gesture (typically the ESC key)
SourceEvent TypeDescription of PayloadTriggerComments
UIrequestSummary(no payload)Summary pane shownClient requesting the server to send topology summary data. Invoked when the summary pane is brought into view.
ServershowSummaryHigh level summary properties: total number of devices, links, hosts, ...Periodic updates in response to requestSummaryThe summary data is displayed in a "fly-in" pane in the top right of the view. Note that the server will continue to send these events to keep the summary data up-to-date.
UIcancelSummary(no payload)Summary pane hiddenClient requesting the server to stop sending summary data. Invoked when the summary pane is hidden.
ServeraddInstanceInstance ID, IP address, online status, ...ONOS instance added to clusterAn ONOS instance to be added to the model.
ServeraddDeviceDevice ID, type, online status, mastership, labels, properties, ...ONOS discovers new deviceA device (switch, roadm, ...) to be added to the model.
ServeraddHostHost ID, type, connection point, labels, properties, ...ONOS discovers new hostA host (endstation, bgpSpeaker, router, ...) to be added to the model.
ServeraddLinkLink ID, type, source ID/port, destination ID/port, ...ONOS discovers new linkA link (direct, optical, tunnel, ...) to be added to the model.
ServerupdateInstance(same as addInstance)Instance changes stateAn ONOS instance with updated state.
ServerupdateDevice(same as addDevice)Device changes stateA device with updated state.
ServerupdateHost(same as addHost)Host changes stateA host with updated state.
ServerupdateLink(same as addLink)Link changes stateA link with updated state.
ServerremoveInstance(same as addInstance)**(1)ONOS instance leaves clusterAn ONOS instance to be removed from the model.
ServerremoveDevice(same as addDevice)**(1)Device removedA device to be removed from the model.
ServerremoveHost(same as addHost)**(1)Host removedA host to be removed from the model.
ServerremoveLink(same as addLink)**(1)Link removedA link to be removed from the model.
UIupdateMetaitem ID, item class (device, host, ...) memento dataUser drags node to new positionClient requesting the storage of data data (a memento) associated with a specific node (a to be stored server-side; That same data (memento) , to should be returned in the payload of future events pertaining to that node. This is a mechanism whereby the location of the node (as dragged and pinned by the user) is persisted server-sidemechanism facilitates server-side persistence of client-side meta data, such as the (user-placed) location of a node on the topology map.
UIrequestDetailsitem ID, item class (device, host, ...)User selects node on mapClient requesting details for the specified item. Sent in response to the user selecting a node on the map.
ServershowDetailsitem ID, item type (switch, roadm, endstation, ...) and list of propertiesResponse to requestDetailsServer response to requestDetails.
UIrequestTrafficaddHostIntentIDs of two selected hosts'Create Host-to-Host Flow' action button on multi-select pane.Client requesting server to install a host-to-host intent.
UIaddMultiSourceIntentIDs of selected nodes (multi source, single destination)'Create Multi-Source Flow' action button on multi-select pane.Client requesting server to install multiple intents.
UIrequestRelatedIntentsIDs of selected nodeslist of IDs for selected items, ID of hovered-over itemnode'V' keystrokeClient requesting traffic data to display on the topology. Invoked when the user requests traffic data, and starts exploring the data by hovering the mouse over nodes.intents relating to current selection of nodes be highlighted.
UIrequestPrevRelatedIntent(no payload)'L-arrow' keystrokeClient requesting previous related intent to be highlighted
UIrequestNextRelatedIntent(no payload)'R-arrow' keystrokeClient requesting next related intent to be highlighted
UIrequestSelectedIntentTraffic(no payload)'W' keystroke?? (Thomas)
UIrequestDeviceLinkFlowsIDs of selected nodes, ID of hovered-over node'F' keystroke?? (Thomas)
UIrequestAllTraffic(no payload)'A' keystroke?? (Thomas)
ServershowTrafficlist of paths (sets of link IDs) and labels to apply to those links, as well as the styling classes to apply to those pathsResponse to UI requests marked with Server response to requestTraffic. Note that the server will continue to send these events to keep updating the display.
UIcancelTraffic(no payload)'ESC' keystrokeUser cancels selection – Client requesting the server to stop sending traffic updates.
UIequalizeMasters(no payload)'E' keystrokeClient requesting server to rebalance mastership of devices across the cluster. Invoked by a keystroke: 'E'.
UIaddHostIntentIDs of two selected hostsClient requesting server to install a host-to-host intent. Invoked from action button on multi-select display pane.
UIaddMultiSourceIntentIDs of selected nodes (multi source, single destination)Client requesting server to install multiple intents. Invoked from action button on multi-select display pane.
UIrequestDeviceLinkFlowsIDs of selected nodes, ID of hovered-over nodeClient requesting traffic information for showing flow data of selected nodes.
UIrequestAllTraffic(no payload)Client requesting traffic information for whole network.

Notes:

(**(1) Technically, only the ID field is required, but this simplifies the code on the server sideserver-side code is simplified by using the payload as is.

The topology model on the server side represents links as unidirectional, with a source and destination. In the UI, each link model object abstracts away the directionality.

<<more details to follow>><<Simon to add details >>

Server-Side Architecture

 <details of web-socket handling, TopologyResource and related classes, etc.>

 

 

Websocket Servlet

<Thomas to add details>

Topology Resources

The following Java classes comprise the server-side code for the Topology View:

  • TopologyResource
  • TopologyViewIntentFilter
  • TopologyViewMessages
  • TopologyViewWebSocket

<Thomas to add details>