Networking Forums

Networking Forums > Computer Networking > Linux Networking > detailed traffic statistics

Reply
Thread Tools Display Modes

detailed traffic statistics

 
 
Wolfgang Draxinger
Guest
Posts: n/a

 
      01-26-2010, 09:54 PM
Hi,

I've running the router of my network for a few years now, all is fine and I
also have nice traffic statistics per interface. Now I'd like to have more
detail, like how much bandwidth is spent on streaming internet radio, videos
from YouTube, email, VoIP etc.

Most applications use a designated port, so with a bit of iptables-ulog it's
no problem to collect statistics on that. But it doesn't tell my, what kind
of content is in it. And then there's this huge bunch of applications, which
use HTTP.

So I need to do DPI in both cases. At first I thought about using tcpdump
and a few filter rules. But maybe there's a more elegant solution for that.

Let me state again, that I don't want to collect statistics on the content
itself, but only about the bandwidth spent on different classes of content.
I.e. everything video, not matter if rtsp, mms, http or something else is
used should be protocolled as "consumed bandwidth for video".

Any ideas?


Wolfgang

 
Reply With Quote
 
 
 
 
Greg Russell
Guest
Posts: n/a

 
      01-27-2010, 07:02 AM
In news:hjnrrj$6hd$(E-Mail Removed),
Wolfgang Draxinger <(E-Mail Removed)> typed:

....
> Let me state again, that I don't want to collect statistics on the
> content itself, but only about the bandwidth spent on different
> classes of content. I.e. everything video, not matter if rtsp, mms,
> http or something else is used should be protocolled as "consumed
> bandwidth for video".


How would a TCP/IP packet of video content be distinguishable from a TCP/IP
packet of streaming radio, or any other type of content, for that matter?


 
Reply With Quote
 
Wolfgang Draxinger
Guest
Posts: n/a

 
      01-27-2010, 09:22 AM
Greg Russell wrote:

> How would a TCP/IP packet of video content be distinguishable from a
> TCP/IP packet of streaming radio, or any other type of content, for that
> matter?


The same way, the application that finally proceses the stream does: By
looking at the stream descriptors/headers, telling the demuxer, what to find
in each track. Every stream container delivers this kind of data.


Wolfgang

 
Reply With Quote
 
Greg Russell
Guest
Posts: n/a

 
      01-27-2010, 03:00 PM
In news:(E-Mail Removed),
Wolfgang Draxinger <(E-Mail Removed)> typed:

>> How would a TCP/IP packet of video content be distinguishable from a
>> TCP/IP packet of streaming radio, or any other type of content, for
>> that matter?

>
> The same way, the application that finally proceses the stream does:
> By looking at the stream descriptors/headers, telling the demuxer,
> what to find in each track. Every stream container delivers this kind
> of data.


Your router is going to demux every stream that passes through it, tallying
the packet totals for each type of content? That *might* work if there's
only one client on the local network, but it would very quickly overwhelm a
router for a network with an average number of clients ... it would take
more cpu power than is currently available, I'm sure.

Maybe you mean examine every packet looking for headers that describe the
stream content, then sub-tally the totals for the entire ensuing stream and
combine the totals for the entire category such as video, etc?

If so it gets back to my original question -- how are you going to recognize
those packet headers that declare any given category of stream? Where in a
TCP/IP packet structure / stream does it say "this is video" or "this is
audio" or "this is RSS"?

Jusr curious ...


 
Reply With Quote
 
Wolfgang Draxinger
Guest
Posts: n/a

 
      01-28-2010, 06:58 AM
Greg Russell wrote:

> Your router is going to demux every stream that passes through it,
> tallying the packet totals for each type of content?


Why demux. The only important information is, what is contained in the
stream, i.e. the stream container headers. That information is avaliable
prior to demuxing.

> That *might* work if
> there's only one client on the local network, but it would very quickly
> overwhelm a router for a network with an average number of clients ... it
> would take more cpu power than is currently available, I'm sure.


Probably not a problem here. The router runs as hypervised virtual machine
on a dual core @2.2GHz system.

> Maybe you mean examine every packet looking for headers that describe the
> stream content, then sub-tally the totals for the entire ensuing stream
> and combine the totals for the entire category such as video, etc?


This way ^^^

> If so it gets back to my original question -- how are you going to
> recognize those packet headers that declare any given category of stream?


Not by static offsets if you're thinking into that direction.

Some applications, like VoIP, SSH, etc. run over dedicated ports. So it's
sufficient to test for a small subset of magic bytes on certain ports, to
see, if it's really VoIP, SSH, etc. going over there. In the case of SSL
encrypted content it's impossible anyway (this sort of DPI would be kinda a
man-in-the-middle attack).

On protocols which may carry all sorts of content one would test on what's
in there by looking at magic bytes. Just like the "file" utility does. This
has been implemented in Wireshark, naming an example.

I could of course use Wireshark's modules for this kind of application, but
I wonder, if there's software better suited for this kind of job.

> Where in a TCP/IP packet structure / stream does it say "this is video" or
> "this is audio" or "this is RSS"?


Um, in the payload? Of course it requires to parse the stream container's
headers.


Wolfgang


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
detailed billing fee George Wireless Internet 1 10-27-2007 06:56 PM
Detailed Questions About RPC Protocol Will Windows Networking 0 11-26-2005 07:14 PM
Any detailed router comparisons James Taylor Broadband 4 09-25-2005 05:28 PM
Netmon, Statistics, Traffic, Analisys, Performance Flavio Borup Windows Networking 0 08-23-2004 02:44 PM
Firewall workaround -detailed Benjamin Dickgießer Linux Networking 1 01-16-2004 05:16 PM



1 2 3 4 5 6 7 8 9 10 11