In this section, we show that one can adaptively set the parameters
,
in the listen algorithm to drastically reduce the probability
of false negatives due to spurious TCP connections. In
particular, we show that by adaptively tuning the minimum time period,
,
one can reduce false negatives due to port scanners and by tuning the
number of distinct destinations,
, one can deal with non-live
hosts.
Given the nature of incomplete connections in our testbed, we use outbound incomplete connections as a test sample for non-live hosts and inbound connections as the test sample for port scanners and worms. In both inbound and outbound, we restricted our samples to only those connections which are known to be false negatives.
Setting : One possibility is to choose an interval
large
enough such that the router will notice at least one genuine TCP flow
during the interval. Such a value of
will depend on the
popularity of a prefix. The popularity of a prefix,
, is
defined as the mean time between two complete TCP connections to
prefix
. We can model the arrival of TCP connections as a Poisson
process with a mean arrival rate as
[30]. Given
this, we can set the value of
to be
certain that one would experience at least one genuine connection
within the period
. To have a
certainty, one needs to set
. For prefixes that hardly observe any traffic,
the value of
will be very high implying that port scanners
generating incomplete connections to such prefixes will not generate
any false alarms.
From our testbed, we determine the mean separation time between the
arrival of two incoming connections to be
sec. By
merely setting
to achieve
certainty, we could reduce
the probability of false negatives in Listen from
to
. Throughout the entire period of measurement, only during
periods of
seconds each did we verify incorrectly that the
local prefix is not reachable.
Setting : The choice of an appropriate value of
trades
off between minimizing the false negative ratio due to non-live hosts
and the number of reachability problems detected. In our testbed, we
noticed that by merely setting
, we can significantly reduce the
false negative ratio in outbound connections from
to less than
. However, Listen reported only
out of
potential
prefixes to have routing problems. For several
prefixes, we
observed TCP connections to only a single host and by setting
,
we tend to omit these cases. In practice, the value of
is
dependent on the diversity of traffic to a destination prefix and the
traffic concentration at a router. For many
prefixes, we need to
set
. For
and
prefixes, one can choose larger values
of
or
provided the prefix observes diversity in the
traffic.