Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
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

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 14 Sep. 2011
[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 Kommentar
Victor Haro
Victor Haro am 14 Sep. 2011
Thanks So much Roberson, Your answer is usefull to me
Grettins from Mexico
Gracias!!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by