Discovery Scan Level Breakdown: How Much Bandwidth Do Discover Scans Use?
In general, most network scanning tools work from a central location and scan out across the often-oversubscribed WAN to all destinations. A primary concern around this is how much extra traffic will this scan put on the network and how could it affect the other devices? One advantage of the distributed discovery methods, used by Tanium Discover, is that the scans happen on the LOCAL LAN where there is often MORE bandwidth than needed. This article will provide detailed information on the distributed scan method used by Tanium Discover and how it compares to other methods.
Tanium Discover DISTRIBUTED scan methods turn each managed endpoint into a mini scanner. This means each endpoint is responsible for scanning a small segment of the local LAN only adding to the efficiency in Discover.
But - how much capacity / bandwidth is being used per endpoint scanned on that local LAN?
This breaks down based depending on the scan method used. Discover Profiles allow you to select one of four methods. This includes Level 1 - or a passive scan looking at systems that have recently communicated with the endpoint recently. Level 2 - or ICMP based ping. Level 3 - which utilizes the third-party scanning tool NMAP for a very efficient discovery using forced ARP, and finally Level 4 - which also uses NMAP, but includes port scanning of the top 1000 most used ports (by default) and operating system identification.
To understand how much traffic is used on a network, first we need to understand how much traffic each interface scanned takes:
As you would expect, as the amount of data goes up as the scan provides more data. The DNS lookup is broken out as well as it is an option on some scans.
Consider a Level 1 scan with one client scanning an entire class-c network (approximately 252 addresses to scan). If DNS lookup is turned off this is nearly free only using the Tanium Protocol to pull the data back. If you use DNS, then then the max possible result is 252*** (possible IPs) * 512 (bytes) = 129024 bytes - or 0.1 MB***. Now this is not how Level 1 works, as it is passive and only looks in its existing ARP and netstat tables, so this is considerably less.
The Level 2 scan is an active scan, so it reaches out to the network. Let’s continue to assume one managed endpoint scanning an entire class-c network of 252 interfaces. This would be 586 * 252 = 147672 or 0.14 MB. This means about one tenth of a megabyte per scan to find every device on this network segment. If there are more managed endpoints this is broken down even more and scheduled over a longer time causing even less impact to a network.
Level 3 scan is also active. This scan is extremely fast and uses approximately the same bandwidth as a Level 2 scan. This scan uses NMAP to do a local discovery using one of the fastest network protocols - ARP. This does a forced ARP of every IP in the range to scan. In our example of a single managed host on a class-c the math is about the same as level2 586*** * 252 = 147672 or 0.14 MB***. The only caution on Level 3 scans, though very fast it also may show a very short spike as the ARP who-has requests are sent to the network.
Level 4 Scan
Level 4 scan is the final distributed scan to discuss. This is the most advanced scan and what we recommend to all customers. It will yield the best data and allow for the best business decisions to be made. NMAP is also used for this scan and a level 3 scan is the first part of the scan. Level 4 scans then do a port scan. Discover’s port scan is gentler than many other products do even when using NMAP. The settings used attempt a simple 3-way handshake to each port, then a 3-way close on each port that was open.
The math requires some estimates and is a bit complicated. For a full description of how this works consult the right chapters in the NMAP Book.
A high-level breakdown:Most systems have 2-5 ports available on the network and are reached by a scan.
This means 5 ports may have a connection made during port scan and 995 will not (some systems have zero or one ports, most do not have more than a handful and five is a high average).
Each IP gets an ARP request of 28 bytes, and those who respond add another 28 bytes.
A few things can happen at this point. The 1000 ports are scanned, of which we expect the majority of them to not have a listener.
-
CASE 1: If there is no listener, we either will get no response, which will cause up to three more attempts to connect (SYN packet). Each SYN packet is about 60 bytes so in this case we estimate about 995 ports would have four SYN packets and no response so 995 x (4 x 60) = or 238 kB traffic per scanning non-connecting ports.
-
CASE 2: if there is no listener the endpoint may also have a firewall that responds with a reset (RST packet). In this case there is no retransmit and the SYN is 60 bytes with an RST of 58 bytes. So, a scan of the system would be approximately 995 x (2 x 60) = or 119 kB
-
CASE 3: Hybrid - some ports may cause a reset; some may cause retransmits depending on the settings. Of which the ceiling is 238 kB per endpoint scanned on non-connecting ports.
There will be about 5 ports which get a full connection and tear down. This is a connection from NMAP (SYN) a response from the endpoint being scanned (SYN+ACK) and a rest packet (RST). This is 5 ports times about 180 bytes 5 x (3 x 60) = 1 kB (less than, rounding up).
Since we are using OS Detection this adds yet another dimension. The scans for OS detection require one open and one closed port. If there is more than one open port - only one will be chosen for special scanning which will still follow the above strategy - but will alter data and do multiple connections to try to understand what the Operating System platform and Operating System generation are. The port will vary depending on what is found but is often 135, 445, 22 or 3389. This can be up to (but often less than 64 attempts. This means the special scan on only one port is approx. 1 x (64 x (3 x 60) = 11 kB (again rounding up).
So, if we take one host we are scanning and break it down assuming worst case and a scan of 1001 ports (top 1000 + 1)
|
Closed Ports (995) |
995 x (4 x 60) |
238 kB |
|
Open Ports (5) |
5 x (3 x 60) |
1 kB |
|
Special Open Port (1) |
1 x (64 x (3 x 60)) |
11 kB |
|
=================== |
||
|
250 kB / host |
Extending the scenario, we were given before on a class-c network there are 252 addresses, and let's assume it is about 50% populated with 125 IPs which respond.
Full Class C network
|
Scan Phase |
Bytes |
Total MB |
|
(ARP who-has) |
252 * 28 = 7056 bytes |
0.007 MB |
|
(ARP response) |
125 * 28 = 3500 bytes |
0.004 MB |
|
(Port scan) |
125 * 250000 = 31250000 bytes |
31 MB |
|
(DNS Lookup) |
125 * 512 = 64 kB |
0.064 MB |
|
==================== |
||
|
~32 MB |
To find every available device, know what potentially vulnerable ports are available to any hacker on the network, and to identify the Mac Address, Hostname, and Operating System will cost less than 32 MB per scan. This is a small amount on today's multi-gigabit networks. If you take Tanium’s architecture and the efficiencies with multiple managed endpoints on a network, this becomes a small fraction of the cost on your local LAN in terms of network traffic, even on our most advanced method.
For more information about Tanium Discover, please visit our Discover Central