Chord Diagram and Query Results

This support forum board is for support questions relating to Nagios Network Analyzer, our network traffic and bandwidth analysis solution.
CFT6Server
Posts: 506
Joined: Wed Apr 15, 2015 4:21 pm

Chord Diagram and Query Results

Post by CFT6Server »

Looking at the chord diagram and the query results, just wondering how are the "top IPs" that shows up are determined. Attached is a sample. The diagram shows that 10.62.11.99 is one of the top talker, but look at the query, there are other top talkers where the IPs doesn't show up. So what does the chord diagram represent in comparison to the data?
You do not have the required permissions to view the files attached to this post.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Chord Diagram and Query Results

Post by jolson »

The chord diagram is not sorting by port, it is sorting by IP address - therefore it's only showing IP's that have the most bandwidth (to any port) - unless this is the chord diagram that was generated *in* the query. Where did you pull this chord diagram from?

It's possible that the chord diagram doesn't work very well when you're not aggregating by 2 items - in your case, it looks like you're aggregating by 3 items which could cause some problems with python chord generation. If you try 2 aggregations instead, does the diagram look any different?

Where did you pull this information/diagram from, and what was your query for? It would also be worth including which aggregations you used (looks to be srcip, dstip, and dstport).
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
CFT6Server
Posts: 506
Joined: Wed Apr 15, 2015 4:21 pm

Re: Chord Diagram and Query Results

Post by CFT6Server »

This chord diagram is generated from my query. That's why I was wonder why the top IP is doesn't correspond to the chart. The chart and diagram created is generated from a single query. The top of the chart definitely does not match the top IP of the chord diagram in terms of bandwidth.

I don't remeber exactly what was used, but it was aggregated by dstip, dstport, srcip. Query I believe was for dst port 80 or dst port 443.
In the chart, there are other IPs with much more Bytes usage showing.

I ran another test, this time using only 2 aggregates as you suggested, and recorded the settings.
Aggregate by: dstip,dstport
Time Frame: 1 hour
Query: dst port 80 or dst port 443

In this case, the top IP was 10.62.11.232 but it does not show in the chord diagram.
You do not have the required permissions to view the files attached to this post.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Chord Diagram and Query Results

Post by jolson »

Sorry for the confusion above - that answer is not correct, I have crossed it out.

The chord diagram represents the amount of connections being made, not the bandwidth of those connections.

Let's say I have 2 example servers - test.jolson.local, and test2.jolson.local.

If test.jolson.local reached out to 500 servers with 1KB of data, while test2.jolson.local reached out to 1 server with 1TB of data, test.jolson.local would take up 99% of the chord diagram. Ultimately this graphic can help you diagnose which computers on the network are making the most 'disparate' connections. The graph is not related directly to bandwidth used (though bandwidth and amount of connections often coincide).

Does that help answer your question?
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
CFT6Server
Posts: 506
Joined: Wed Apr 15, 2015 4:21 pm

Re: Chord Diagram and Query Results

Post by CFT6Server »

Thanks, that's a bit more clear. So can this "amount of connections" be queried? Ie if I add into the query something like (src ip xxx and dst ip xxx) then would I see all the connections and can compare the two. Or perhaps that's not something we can query?

For example, do two queries like:

aggregate by dstip,srcip,dstport,srcport
query: (dst ip 10.62.11.232 or src ip 10.62.11.232) and (dst port 80 or dst port 443)
and compare that to
aggregate by dstip,srcip,dstport,srcport
query: (dst ip 10.62.11.99 or src ip 10.62.11.99) and (dst port 80 or dst port 443)
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Chord Diagram and Query Results

Post by lmiltchev »

Yes, you can query by dstip, srcip, dstport and srcport and use "aggregate by" to increase the granularity. Please, review the query examples in our "Understanding And Using Custom Queries In Network Analyzer" document:

http://assets.nagios.com/downloads/nagi ... alyzer.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!
CFT6Server
Posts: 506
Joined: Wed Apr 15, 2015 4:21 pm

Re: Chord Diagram and Query Results

Post by CFT6Server »

I am still not getting a good query that can match the chord diagram. I think there is no way to validate the chord diagram in terms of "connections". Since sorting by flow, bytes, packets, etc doesn't really show the count that the chord diagram uses.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Chord Diagram and Query Results

Post by jolson »

I performed a test on my lab box that should produce the information you're after.

I performed a query based on a source/destination port of 80:
2015-05-13 14_33_46-Queries • Nagios Network Analyzer.png
The resulting chord diagram:
2015-05-13 14_32_14-Queries • Nagios Network Analyzer.png
For reference, jolson.nagios.local is in grey, test2.nagios.local is in blue.

I then performed another query using just jolson.nagios.local. Note that you need to use an IP address here as opposed to a hostname:
2015-05-13 14_36_48-Queries • Nagios Network Analyzer.png
Note: jolson.nagios.local has 15 pages of results. There are 20 results per page.

Now let's perform another query against the second largest 'host' in my chord diagram:
2015-05-13 14_38_26-Queries • Nagios Network Analyzer.png
You can see that there are 3 pages of results. This is expected based on the chord diagram displayed - the blue section is much smaller than the grey section, and therefore has fewer results.

Let's query a host that's smaller still - this one is the 'red' host located on the bottom-right of the chord diagram. The host is called support.nagios.com:
2015-05-13 14_43_11-Queries • Nagios Network Analyzer.png
Hopefully this all makes sense. The amount of results that appear correspond with the chord diagram.
You do not have the required permissions to view the files attached to this post.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.