robertdavidgraham / masscan

TCP port scanner, spews SYN packets asynchronously, scanning entire Internet in under 5 minutes.
GNU Affero General Public License v3.0
23k stars 3.02k forks source link

Question regarding packet per second rate #707

Closed RaJiska closed 8 months ago

RaJiska commented 1 year ago

According to documentation packets are split randomly across every hosts. Would there ever be a possibility where a host or subnet would end up receiving a high portion of the maximum rate.

For example if 10 subnets are to be scanned at a 100kpps rate: Could 9 subnets theoretically complete first leaving the last subnets with 100 kpps split over it?

robertdavidgraham commented 8 months ago

In theory yes but in practice no. The chances are astronomical. It's a cryptographic randomization function, so there should be no way for packets to bunch up.