Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
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

Respuesta aceptada

Walter Roberson
Walter Roberson el 14 de Sept. de 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 comentario
Victor Haro
Victor Haro el 14 de Sept. de 2011
Thanks So much Roberson, Your answer is usefull to me
Grettins from Mexico
Gracias!!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by