フィルターのクリア

How Can I plot this Matrix with data network traffic using TCPdump?

1 回表示 (過去 30 日間)
Victor Haro
Victor Haro 2011 年 9 月 14 日
Hello from México
I´m capturing a data network traffic with TCPdump, I want to capture only the time and the MAC addresses of the packets. I can do that and, I can plot the Total MAC addresses (packets) per second with a "for cicle" , But I need to plot each MAC address in only graph.
I have this Matrix after read de data, I have two MAC addresses and I can plot the total MAC addresses per second, and I have this graph, but I want to plot the total mac addresses per second of this addresses 001495702619 and 1C659D0C29B9, bone have two graphics with each MAC address.
I include the Matrix and the graph.
How Could I do that?
'01.52' '1C659D0C29B9'
'01.52' '001495702619'
'01.52' '001495702619'
'01.52' '1C659D0C29B9'
'01.52' '001495702619'
'01.52' '001495702619'
'01.52' '001495702619'
'01.52' '1C659D0C29B9'
'01.52' '001495702619'
'01.52' '1C659D0C29B9'
'01.52' '001495702619'
'01.52' '1C659D0C29B9'
'01.52' '001495702619'
'01.53' '1C659D0C29B9'
'01.53' '1C659D0C29B9'
'01.53' '001495702619'
'01.54' '001495702619'
'01.54' '001495702619'
'01.54' '001495702619'
'01.54' '1C659D0C29B9'
'01.54' '001495702619'
'01.54' '001495702619'
'01.54' '1C659D0C29B9'
'01.55' '001495702619'
'01.55' '1C659D0C29B9'
Thanks.
Victor

採用された回答

Walter Roberson
Walter Roberson 2011 年 9 月 14 日
[u,a,b] = unique(YourData(:,2));
packets1 = YourData(b==1,1);
packets2 = Yourdata(b==2,1);
then you can apply your per-second counting code to packets1 and packets2; you could plot the results both on a single graph or each on their own graph according to your preferences.
  1 件のコメント
Victor Haro
Victor Haro 2011 年 9 月 14 日
Thanks So much Roberson, Your answer is usefull to me
Grettins from Mexico
Gracias!!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by