filter packet data based on the type of content they carry

100 views Asked by At

I want to filter the packet data based on the type of data they carry. I mean is it possible to recognize whether the packet carries text/audio/video/other type of information by analyzing the packet header or the payload?

Also, I want to be able to do this in real time; so that I can keep track of How much of data has been used up in text/audio/video etc.. Can these things be done using tcpdump? I want to run in a tizen/android phone..

1

There are 1 answers

1
Sanjeev BA On BEST ANSWER

A few things might be needed to achieve this.

In Tizen, you need su access to the device and install tcpdump and a host of other libraries like libpcap for example. For HTTP you could rely on MIME headers. You could use pre-defined standard ports in certain cases. For Audio and Video you could examine the payload and see if the header matches and then classify.

But to generalize it across all data formats is going to take some work beyond simply reusing existing tools like tcpdump.