SC_PREFIXSCAN(1)
π SC_PREFIXSCAN(1) π
okay so bestie, this is a page from the General Commands Manual β yes, the big fancy system manual, and today's main character is sc_prefixscan. pull up a chair, grab a boba, we're doing this π§β¨
β¨ NAME β¨
sc_prefixscan β a scamper driver that tests whether a set of IPv4 links are point-to-point. fr fr that's the whole vibe check.
π¦ SYNOPSIS π¦
sc_prefixscan [-D] [-i infile] [-o outfile] [-p port] [-l logfile]
[-U unix-socket] [-w wait] [-x prefixlen]
sc_prefixscan [-r data-file] [-x prefixlen]
two whole modes, she's versatile π
πΈ DESCRIPTION πΈ
so sc_prefixscan is that girl. she lets you connect to a running scamper(1) instance and use it to collect data so you can figure out if an IPv4 link is likely a point-to-point link, using something called the prefixscan method.
here's the tea β on how it thinks:
an address B is the in-bound interface of a router in a traceroute path if we find an alias A' of the address A returned for the previous hop, and A' is a /31 or /30 mate of B β like, the link between A and B is a point-to-point link, periodt.
and the prefixscan method decides A and A' are aliases if either of these iconic situations happens:
- the IPIDs in responses to five alternating probes sent one second apart monotonically increase and differ by no more than 1,000 β ngl that's the pairwise comparison, similar to Ally
- probes to A and A' elicit responses with a common source address β that's the Mercator technique
the supported options to sc_prefixscan are as follows, and bestie I did not skip a single one:
-Dβ causessc_prefixscanto detach and become a daemon. she's going independent π-iinfile β specifies a file containing a list of IPv4 address pairs adjacent in traceroute paths, to test if they are point-to-point links-ooutfile β specifies the name of the output file to be written during the data collection phase. heads up, the output file will use thewarts(5)format πΎ-pport β specifies the port on the local host wherescamper(1)is accepting control socket connections-llogfile β specifies the name of a file to log progress output fromsc_prefixscangenerated at run time-rdata-file β specifies the name of the data file to be parsed for point-to-point link inferences that were collected bysc_prefixscanin a previous data collection-Uunix-socket β specifies the name of a unix domain socket where a localscamper(1)instance is accepting control socket connections-wwait β specifies the length of time in seconds to wait between probing the same IPv4 address with different methods. by default,sc_prefixscanwaits five seconds between methods β³-xprefixlen β specifies the maximum size of prefix to consider. by default,sc_prefixscanconsiders up to an IPv4 /30 prefix
π EXAMPLES π
okay so imagine you have a traceroute with this path:
traceroute to 192.0.30.64
1 192.0.2.1
2 192.0.32.10
3 192.0.31.8
4 192.0.30.64
then to collect data to infer if the implied IPv4 links are point-to-point, put the links in a file named infile.txt formatted like this:
192.0.2.1 192.0.32.10
192.0.32.10 192.0.31.8
192.0.31.8 192.0.30.64
and use a scamper(1) daemon listening on port 31337 using:
sc_prefixscan -i infile.txt -o outfile.warts -p 31337
and to obtain the inferred point-to-point links from outfile.warts:
sc_prefixscan -r outfile.warts
ate. no crumbs. π₯
π SEE ALSO π
scamper(1),sc_ally(1),sc_ipiddump(1),sc_wartsdump(1),sc_warts2text(1),sc_warts2json(1),- M. Luckie and k. claffy, A Second Look at Detecting Third-party Addresses in Traceroute Traces with the IP Timestamp Option, Proc. Passive and Active Measurement Conference 2014.
- R. Govindan and H. Tangmunarunkit, Heuristics for Internet Map Discovery, Proc. IEEE INFOCOM 2000.
- N. Spring, R. Mahajan, and D. Wetherall, Measuring ISP topologies with Rocketfuel, Proc. ACM SIGCOMM 2002.
π AUTHORS π
sc_prefixscan was written by Matthew Luckie <mjl@luckie.org.nz>. king behaviour honestly π
and that's the whole page bestie, you're officially a sc_prefixscan girly now π«Ά
this lil manual page is brought to you by the Debian edition, dated December 2, 2016 β vintage, iconic, still slaying π β¨π¦
π¦ where this page comes from
- debian bookworm: scamper 20211212-1.1 Β· GPL-2.0-or-later
- debian trixie: scamper 20211212-1.2+b1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: scamper 20250227-bp160.1.10 Β· GPL-2.0-only
- opensuse-leap 16.0: scamper 20250227-bp160.1.10 Β· GPL-2.0-only
- opensuse-leap 16.0: scamper 20250227-bp160.1.10 Β· GPL-2.0-only
- opensuse-leap 16.0: scamper 20250227-bp160.1.10 Β· GPL-2.0-only
- ubuntu jammy: scamper 20191102-1 Β· GPL-2.0-or-later
- ubuntu noble: scamper 20211212-1.2build1 Β· GPL-2.0-or-later
- ubuntu questing: scamper 20211212-1.2build1
- ubuntu resolute: scamper 20211212-1.2build2 Β· GPL-2.0-or-later
- ubuntu stonking: scamper 20211212-1.2build2 Β· GPL-2.0-or-later
- Copyright (c) 2016 Matthew Luckie
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms