graphs-ipids



In [1]:
from scapy.all import *


WARNING: No route found for IPv6 destination :: (no default route?)
WARNING:scapy.runtime:No route found for IPv6 destination :: (no default route?)

In [5]:
ans, unans = srloop(IP(dst=["8.8.8.8", "8.8.4.4"])/ICMP(), inter=.1, timeout=.1, count=100, verbose=False)


send...

In [6]:
%matplotlib inline
ans.multiplot(lambda (p, q): (q[IP].src, (q.time, q[IP].id)), plot_xy=True)


Out[6]:
[[<matplotlib.lines.Line2D at 0x7f126c35ac90>],
 [<matplotlib.lines.Line2D at 0x7f126c35af10>]]

In [7]:
ans.multiplot(lambda (p, q): (q[IP].src, q[IP].id))


Out[7]:
[[<matplotlib.lines.Line2D at 0x7f126c3d8f10>],
 [<matplotlib.lines.Line2D at 0x7f126c3d8f90>]]