python - not getting all ICMP time-exceeded messages: why? -


i'm using scapy replay dumped packets in change ttl value. i've been getting odd results ttl=1.

when run test hours apart each other, can 40% 95% of packets replied icmp time-exceeded message. can recursively replay unanswered packets , each time more or less same percentage of answered packets before.

why that?

i've been sending packets interval of 0.1 seconds between each other. should ok, right? timeout value 10s, should conservative.

what's wrong here?

what you're saying can test many unreachable hosts in given span of time. 1 possible reason: many routers rate-limit icmp messages.

it better test ping success host before doing else; way have positive confirmation of reachability. downside ms windows blocks pings default.

if can't ping first, you'll need increase time between probes, or raise icmp unreachable rate on router returning icmp messages.

edit:

based on comments, looks you're hitting wall scapy's ability process traffic. have improved throughput in past sending scapy , spawning tcpdump in background receive traffic.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -