Course contentsShow
← Security
Lesson 345 of 3,0528. Network Security - ReconnaissanceFree lesson

Scan Timing and Performance

Nmap timing templates, parallelization, rate limiting, and balancing speed with accuracy and stealth.

Scan Timing and Performance

What you'll learn: How to control Nmap's speed, stealth, and resource usage using timing templates and options to balance detection accuracy with operational constraints.

When scanning networks with Nmap, you face a fundamental trade-off: faster scans complete quickly but may be inaccurate and noisy, while slower scans are stealthier and more accurate but take longer. Nmap's timing controls let you navigate this balance.

Nmap Timing Templates

Nmap provides six timing templates (-T0 through -T5) that adjust multiple parameters at once:

  • -T0 (Paranoid): Extremely slow, serialized scanning—one port at a time with long delays. Used for maximum stealth.
  • -T1 (Sneaky): Very slow but slightly faster than T0.
  • -T2 (Polite): Slows down to consume less bandwidth and reduce target load.
  • -T3 (Normal): The default—balances speed and accuracy for most situations.
  • -T4 (Aggressive): Faster scanning on reliable networks; assumes decent bandwidth.
  • -T5 (Insane): Maximum speed; may sacrifice accuracy and overwhelm targets.

Think of these like driving speeds: T0 is crawling in stealth mode, T3 is normal traffic flow, and T5 is racing recklessly.

Parallelization and Rate Limiting

Behind the templates, Nmap controls:

  • Parallelization: How many probes are sent simultaneously
  • Rate limiting: Maximum packets per second
  • Timeouts: How long to wait for responses before giving up

Faster templates send more parallel probes with shorter timeouts. Slower templates serialize operations and wait longer, reducing the chance of missing responses from slow targets or triggering intrusion detection systems.

Choosing the Right Balance

Use slower timings (-T0 to -T2) when stealth matters or scanning fragile systems. Use faster timings (-T4) on reliable internal networks where speed is critical. Default (-T3) works well for most reconnaissance scenarios.

Key Takeaway: Nmap timing templates balance speed, accuracy, and stealth—choose slower timings for careful reconnaissance and faster ones when operating on trusted networks where detection isn't a concern.