根据它们携带的内容类型过滤数据包数据

时间:2015-06-09 11:34:13

标签: android tcpdump packet-capture tizen

我想基于它们携带的数据类型possible to recognize分组数据。我的意思是它real time;是否通过分析数据包标头或有效负载来携带文本/音频/视频/其他类型的信息?

此外,我希望能够在text/audio/video中执行此操作,以便我可以跟踪tizen/android等中已用尽的数据量。可以使用tcpdump完成这些操作?我想在{{1}}电话中运行..

1 个答案:

答案 0 :(得分:0)

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.