visualization of node interaction dynamics in network traces · 2020-06-28 · visualization of...

27
Visualization of Node Interaction Dynamics in Network Traces urgen Sch¨ onw¨ alder AIMS 2009, Enschede, 2009-07-01 Co-authors: Petar Dobrev, Sorin Stancu-Mara Support: EU IST-EMANICS Network of Excellence (#26854) 1 / 27

Upload: others

Post on 26-Jul-2020

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Visualization of Node Interaction Dynamics in Network Traces · 2020-06-28 · Visualization of Node Interaction Dynamics in Network Traces Ju¨rgen Sch¨onw¨alder AIMS 2009, Enschede,

Visualization of Node Interaction Dynamics

in Network Traces

Jurgen Schonwalder

AIMS 2009, Enschede, 2009-07-01

Co-authors: Petar Dobrev, Sorin Stancu-MaraSupport: EU IST-EMANICS Network of Excellence (#26854)

1 / 27

Page 2: Visualization of Node Interaction Dynamics in Network Traces · 2020-06-28 · Visualization of Node Interaction Dynamics in Network Traces Ju¨rgen Sch¨onw¨alder AIMS 2009, Enschede,

Outline of the Talk

1 Background and Motivation

2 Experiment #1: NAM (C, C++, Tcl/Tk)

3 Experiment #2: JUNG (Java)

4 Experiment #3: SNAM (OpenGL)

5 Conclusions

2 / 27

Page 3: Visualization of Node Interaction Dynamics in Network Traces · 2020-06-28 · Visualization of Node Interaction Dynamics in Network Traces Ju¨rgen Sch¨onw¨alder AIMS 2009, Enschede,

Background and Motivation

1 Background and Motivation

2 Experiment #1: NAM (C, C++, Tcl/Tk)

3 Experiment #2: JUNG (Java)

4 Experiment #3: SNAM (OpenGL)

5 Conclusions

3 / 27

Page 4: Visualization of Node Interaction Dynamics in Network Traces · 2020-06-28 · Visualization of Node Interaction Dynamics in Network Traces Ju¨rgen Sch¨onw¨alder AIMS 2009, Enschede,

Background: SNMP Trace Collection and Analysis

SNMP trace collection and analysis developed since 2006by the NMRG of the IRTF and the EMANICS project

Insights to be gained from the analysis of traces:

basic trace statisticsperiodic versus aperiodic trafficmessage size distributions and latency distributionsmanager and agent concurrency levelstable retrieval algorithmspopular MIB modules and MIB objectsusage of protocol specific features. . .

For more background information, consult [1, 2, 3].

4 / 27

Page 5: Visualization of Node Interaction Dynamics in Network Traces · 2020-06-28 · Visualization of Node Interaction Dynamics in Network Traces Ju¨rgen Sch¨onw¨alder AIMS 2009, Enschede,

Early Analysis Results (trace l06t01, IM 2007)

m0

m3

m2

m1

Analysis covering the whole trace capture period

Traffic broken down into flows ( 6= NetFlow/IPFIX flows)

Static visualizations using flow graph layouts (Graphviz)and flow traffic treemaps

5 / 27

Page 6: Visualization of Node Interaction Dynamics in Network Traces · 2020-06-28 · Visualization of Node Interaction Dynamics in Network Traces Ju¨rgen Sch¨onw¨alder AIMS 2009, Enschede,

Visualization of Node Interaction Dynamics

Some Research Questions

Does a data collection engine spreads the data retrievaltraffic over a polling cycle or does it send a burst ofpolling requests at the start of each cycle?

Are there any topology changes or even pattern oftopology changes?

Do notifications change the traffic pattern generated bymanagement applications?

Approach

Visualize node interaction dynamics in order to gaininsights into the short-term properties of SNMP traffic.

6 / 27

Page 7: Visualization of Node Interaction Dynamics in Network Traces · 2020-06-28 · Visualization of Node Interaction Dynamics in Network Traces Ju¨rgen Sch¨onw¨alder AIMS 2009, Enschede,

Experiment #1: NAM (C, C++, Tcl/Tk)

1 Background and Motivation

2 Experiment #1: NAM (C, C++, Tcl/Tk)

3 Experiment #2: JUNG (Java)

4 Experiment #3: SNAM (OpenGL)

5 Conclusions

7 / 27

Page 8: Visualization of Node Interaction Dynamics in Network Traces · 2020-06-28 · Visualization of Node Interaction Dynamics in Network Traces Ju¨rgen Sch¨onw¨alder AIMS 2009, Enschede,

Network Animator NAM

Animation tool for viewing network simulation traces andreal world packet traces

Created in 1990 at LBL and further developed at ISI

Includes an editor to create network diagrams

Supports the visualization of queues and packet drops

8 / 27

Page 9: Visualization of Node Interaction Dynamics in Network Traces · 2020-06-28 · Visualization of Node Interaction Dynamics in Network Traces Ju¨rgen Sch¨onw¨alder AIMS 2009, Enschede,

Visualizing SNMP Traces with NAM

Conversion Algorithm

Read an SNMP trace file in the CSV format

Generate a NAM trace file header defining nodes and links

Generate send/receive events for each SNMP message

Set the link delay to 60 seconds (parameter)

Set the link data rate to 1kbps (parameter)

9 / 27

Page 10: Visualization of Node Interaction Dynamics in Network Traces · 2020-06-28 · Visualization of Node Interaction Dynamics in Network Traces Ju¨rgen Sch¨onw¨alder AIMS 2009, Enschede,

NAM Results

The graph layoutsproduced by NAM areof relativly poor quality(overlapping nodes,overlapping links)

The builtin zoomingcapabilites of NAM areonly of little help

10 / 27

Page 11: Visualization of Node Interaction Dynamics in Network Traces · 2020-06-28 · Visualization of Node Interaction Dynamics in Network Traces Ju¨rgen Sch¨onw¨alder AIMS 2009, Enschede,

NAM Results (trace l06t01)

A manager polling devices in“waves”, causing bursts ofSNMP traffic

A manager distributing pollingrequests well over time plus anotification originating fromone agent

11 / 27

Page 12: Visualization of Node Interaction Dynamics in Network Traces · 2020-06-28 · Visualization of Node Interaction Dynamics in Network Traces Ju¨rgen Sch¨onw¨alder AIMS 2009, Enschede,

NAM Discussion

Positive NAM Experience

+ Availability (part of the popular ns-2 simulation toolkit)

+ Easy to get started (textual intermediate file format)

Negative NAM Experience

- Difficult to extend mixture of C, C++, and Tcl/Tk

- Weak deeply embedded graph layout algorithm

- Graphics quality poor according to today’s standards

- Performance problems when dealing with larger traces

- GUI controls optimized for short timescales

12 / 27

Page 13: Visualization of Node Interaction Dynamics in Network Traces · 2020-06-28 · Visualization of Node Interaction Dynamics in Network Traces Ju¨rgen Sch¨onw¨alder AIMS 2009, Enschede,

Experiment #2: JUNG (Java)

1 Background and Motivation

2 Experiment #1: NAM (C, C++, Tcl/Tk)

3 Experiment #2: JUNG (Java)

4 Experiment #3: SNAM (OpenGL)

5 Conclusions

13 / 27

Page 14: Visualization of Node Interaction Dynamics in Network Traces · 2020-06-28 · Visualization of Node Interaction Dynamics in Network Traces Ju¨rgen Sch¨onw¨alder AIMS 2009, Enschede,

JUNG Graphics Library

Java Universal Network /Graph Framework (JUNG)

Written in 2003 by PhDstudents (University ofCalifornia at Irvine)

Analysis of social networks

Our goal: visualize topology changes over time(nodes / links appearing / disappearing)

Generate an intermediate file with graph change events

Visualize the changing graph using JUNG

14 / 27

Page 15: Visualization of Node Interaction Dynamics in Network Traces · 2020-06-28 · Visualization of Node Interaction Dynamics in Network Traces Ju¨rgen Sch¨onw¨alder AIMS 2009, Enschede,

Visualizing SNMP Traces with JUNG

Conversion Algorithm

Read an SNMP trace file in the CSV format

Generate vertex add (Va) and edge add (Ea) events whena new node appears or a node starts communication withsome other node it has not communicated with recently

After tlink seconds of inactivity, an edge is removed bygenerating an edge remove (Er) event

A node without any links is removed after tnode secondsby generating a vertex remove (Vr) event

15 / 27

Page 16: Visualization of Node Interaction Dynamics in Network Traces · 2020-06-28 · Visualization of Node Interaction Dynamics in Network Traces Ju¨rgen Sch¨onw¨alder AIMS 2009, Enschede,

JUNG Results

The timeline shown at the bottom of the window indicateswhen changes happen in the topology

16 / 27

Page 17: Visualization of Node Interaction Dynamics in Network Traces · 2020-06-28 · Visualization of Node Interaction Dynamics in Network Traces Ju¨rgen Sch¨onw¨alder AIMS 2009, Enschede,

JUNG Discussion

Positive JUNG Experience

+ Much better graph layout algorithms (compared to NAM)

+ Very good documentation of the JUNG library

+ Many code examples make it easy to get started

Negative JUNG Experience

- Performance problems with the animation of larger graphs

- Topology change timeline is essential due to changeblindness of the human visual perception system

- Controlling graph “stability” is complicated

17 / 27

Page 18: Visualization of Node Interaction Dynamics in Network Traces · 2020-06-28 · Visualization of Node Interaction Dynamics in Network Traces Ju¨rgen Sch¨onw¨alder AIMS 2009, Enschede,

Experiment #3: SNAM (OpenGL)

1 Background and Motivation

2 Experiment #1: NAM (C, C++, Tcl/Tk)

3 Experiment #2: JUNG (Java)

4 Experiment #3: SNAM (OpenGL)

5 Conclusions

18 / 27

Page 19: Visualization of Node Interaction Dynamics in Network Traces · 2020-06-28 · Visualization of Node Interaction Dynamics in Network Traces Ju¨rgen Sch¨onw¨alder AIMS 2009, Enschede,

SNAM

Features

Written in C++ utilizing fast graphics hardware

Graph layout outsourced to Graphviz

Layout recalculations run as a separate thread

Links can be represented as splines

Supports fast forward/backward animations and jumps

Inspection of annotations of nodes, links, messages

Uses an “extended subset” of the NAM file format

19 / 27

Page 20: Visualization of Node Interaction Dynamics in Network Traces · 2020-06-28 · Visualization of Node Interaction Dynamics in Network Traces Ju¨rgen Sch¨onw¨alder AIMS 2009, Enschede,

SNAM Results #1

!"#$%&'()&*++(

(

,-&./#$0&.12034562#2

.7!6

Topology, color coded messages, activity timeline

Textual information displayed in the background

Controls to zoom, change speed, jump in the timeline, . . .

20 / 27

Page 21: Visualization of Node Interaction Dynamics in Network Traces · 2020-06-28 · Visualization of Node Interaction Dynamics in Network Traces Ju¨rgen Sch¨onw¨alder AIMS 2009, Enschede,

SNAM Results #2

!"#$%&'()&*++(

'+

,-&./#$0&.12034562#2

.7!6

A manager trying a get-bulk-request and then falling backto a series of get-next-requests

Obviously not caching learned SNMP agent capabilities

21 / 27

Page 22: Visualization of Node Interaction Dynamics in Network Traces · 2020-06-28 · Visualization of Node Interaction Dynamics in Network Traces Ju¨rgen Sch¨onw¨alder AIMS 2009, Enschede,

SNAM Results #3

!"#$%&'()&*++(

''

,-&./#$0&.12034562#2

.7!6

!"#$%&'()&*++(

',

-.&/0#$1&/23145673#3

/8!7

!"#$%&'()&*++(

'*

,-&./#$0&.12034562#2

.7!6

The graph topology changesdynamically (similar to theJUNG prototype)

New layouts are calculated inthe background

22 / 27

Page 23: Visualization of Node Interaction Dynamics in Network Traces · 2020-06-28 · Visualization of Node Interaction Dynamics in Network Traces Ju¨rgen Sch¨onw¨alder AIMS 2009, Enschede,

SNAM Results #4

!"#$%&'()&*++(

'(

,-&./#$0&.12034562#2

.7!6

Graph layout can use splines to avoid links crossing nodes

Messages travel along the splines

Zooming is cool — lenses might be even cooler. . .

23 / 27

Page 24: Visualization of Node Interaction Dynamics in Network Traces · 2020-06-28 · Visualization of Node Interaction Dynamics in Network Traces Ju¨rgen Sch¨onw¨alder AIMS 2009, Enschede,

SNAM Discussion

Positive SNAM Experience

+ OpenGL is crucial for scalable fast visualizations

+ Using Graphviz allows us to focus on the main problem

+ Simple installation and high fun factor

+ Intermediate file format decouples visualization from thedata source

Negative SNAM Experience

- Selecting suitable Graphviz options sometimes difficult

- Significant startup time (no streaming of trace data)

- Portable user controls take effort to implement

- Incomplete feature set (only subset of NAM supported)

24 / 27

Page 25: Visualization of Node Interaction Dynamics in Network Traces · 2020-06-28 · Visualization of Node Interaction Dynamics in Network Traces Ju¨rgen Sch¨onw¨alder AIMS 2009, Enschede,

Conclusions

1 Background and Motivation

2 Experiment #1: NAM (C, C++, Tcl/Tk)

3 Experiment #2: JUNG (Java)

4 Experiment #3: SNAM (OpenGL)

5 Conclusions

25 / 27

Page 26: Visualization of Node Interaction Dynamics in Network Traces · 2020-06-28 · Visualization of Node Interaction Dynamics in Network Traces Ju¨rgen Sch¨onw¨alder AIMS 2009, Enschede,

Conclusions

Contribution

Created three tools to visualize node interactions

Scalability is important for dealing with larger traces

Reuse graph drawing libraries, use multi-threading

OpenGL solution (SNAM) has the highest fun factor

Future Work

SNAM will be open sourced (its pretty small)

We like to encourage people to try and improve it

More visualizations (multiple alternate views)

More interactive controls (select, highlight, filter, . . . )

26 / 27

Page 27: Visualization of Node Interaction Dynamics in Network Traces · 2020-06-28 · Visualization of Node Interaction Dynamics in Network Traces Ju¨rgen Sch¨onw¨alder AIMS 2009, Enschede,

References

J. Schonwalder.

SNMP Traffic Measurements and Trace Exchange Formats.RFC 5345, Jacobs University Bremen, October 2008.

J.G. van den Broek, J. Schonwalder, A. Pras, and M. Harvan.

SNMP Trace Analysis Definitions.In Proc. of the 2nd International Conference on Autonomous Infrastructure, Management and Security(AIMS 2008), number 5127 in LNCS. Springer, July 2008.

J. Schonwalder, A. Pras, M. Harvan, J. Schippers, and R. van de Meent.

SNMP Traffic Analysis: Approaches, Tools, and First Results.In Proc. 10th IFIP/IEEE International Symposium on Integrated Network Management (IM 2007), pages323–332, May 2007.

P. Dobrev, S. Stancu-Mara, and J. Schonwalder.

Visualization of Node Interaction Dynamics in Network Traces.In Proc. of the 3rd International Conference on Autonomous Infrastructure, Management and Security(AIMS 2009), number 5637 in LNCS, pages 147–160. Springer, June 2009.

27 / 27