Azzera filtri
Azzera filtri

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

1 visualizzazione (ultimi 30 giorni)
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

Risposta accettata

Walter Roberson
Walter Roberson il 14 Set 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.

Più risposte (0)

Categorie

Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by