SC_BDRMAP(1)
โจ NAME โจ
sc_bdrmap โ the scamper driver that maps first hop border routers of networks ๐บ๏ธ๐
๐ SYNOPSIS ๐
sc_bdrmap [-6ADi] [-a ip2as-file] [-c allyconf] [-C flowid]
[-f firsthop] [-l log-file] [-M ipmap-file] [-o output-file]
[-O option] [-p port] [-U unix] [-R unix] [-S srcaddr]
[-v vpases] [-x ixp-file]
sc_bdrmap [-6] [-a ip2as-file] [-d dump] [-g delegated-file]
[-M ipmap-file] [-n names-file] [-r relationships-file]
[-v vpases] [-x ixp-file] [file ...]
๐ DESCRIPTION ๐
okay so sc_bdrmap is the utility that lets you connect to a running scamper(1) instance and use it to map the first hop border routers of networks, using the "bdrmap" technique โจ. the way it does this is chef's kiss: it uses targeted traceroutes, alias resolution techniques, knowledge of traceroute idiosyncrasies, and codification of topologicial constraints in a structured set of constraints, all so it can correctly identify interdomain links at the granularity of individual border routers ๐ฏ. no cap.
and bestie, sc_bdrmap operates in two distinct modes: data collection, and data analysis. two moods, both iconic ๐
.
๐ง data collection mode ๐ง
in data collection mode, sc_bdrmap uses Paris traceroute with ICMP-echo probes to trace the paths towards every distinct address block, using a stop-set to avoid re-probing portions of paths that do not provide useful constraints for the first hop border routers, as well as alias resolution techniques (Mercator, Ally, Prefixscan, and the Too-Big-Trick) to collapse the interface graph into a router-level topology ๐ฅ. it will also use probes with the record-route and pre-specified timestamp IP-level options to collect additional information on the return path from a router, where the probes are usable. so thorough of it ๐ซถ.
๐ฎ data analysis mode ๐ฎ
in data analysis mode, sc_bdrmap uses the collected data to infer a router-level topology of the hosting network and the interconnecting routers belonging to the hosting network's neighbors ๐.
๐ OPTIONS ๐
the supported options to sc_bdrmap are as follows, and yes we're going through every single one, i don't make the rules:
-6โ sayssc_bdrmapshould infer IPv6 border routers, and that the input files are for the IPv6 topology. > heads up bestie: this feature is currently work in progress ๐ง don't come for me.-aip2as-file โ the IP prefix to Autonomous System (AS) mapping file thatsc_bdrmapshould use when collecting and analysing topology data ๐. peep the EXAMPLES section for how this file must be formatted, iykyk.-Aโ the AS numbers (ASNs) thatsc_bdrmapshould collect data towards ๐ฏ. useful for testing and debugging, lowkey.-callyconf โ how many timessc_bdrmapshould repeat pair-wise alias inferences that were made implying a central shared IP-ID counter. by default, each pair of aliases is tested five additional times at 5 minute intervals, because two IP addresses belonging to two different routers could happen to return IP-ID values that imply a central shared IP-ID counter ๐ญ sneaky!!-Cflowid โ the checksum thatscampershould use in ICMP probes, or the source port thatscampershould use in UDP probes, so that traceroutes to the same destination will also use the same flowid ๐. by default, the flowid is0x420.-ddump โ the dump ID to use to analyze the collected data ๐. currently, ID values1(routers) and2(traces) are valid, which dumps inferred routers and annotated traceroute paths, respectively.-Dโ causessc_bdrmapto detach and become a daemon ๐ป bye bestie, it lives on its own now.-ffirsthop โ the first hop in a traceroute path thatsc_bdrmapshould begin at when collecting traceroute paths ๐ฆ. ifsc_bdrmapis being run behind a NAT router, the private IP address of that router is uninteresting, and this option allows that hop to be skipped โ๏ธ.-gdelegated-file โ an IP address delegations file you can hand tosc_bdrmapto allow inferences in the analysis phase of who operates unrouted IP address space ๐ต๏ธโ๏ธ.-iโ the IP addresses thatsc_bdrmapshould collect data towards ๐ฏ. useful for testing and debugging, fr fr.-llog-file โ the name of a file to log progress output fromsc_bdrmapgenerated at run time ๐.-Mipmap-file โ the name of a file containing individual IP address to ASN mappings, which override heuristics inferring if the IP address is from a reserved address, or an IXP address ๐.-nnames-file โ the name of a file containing IP address to domain name system names ๐ค.-ooutput-file โ the name of the output file to be written during the data collection phase ๐ค. the output file will use thewarts(5)format.-Ooption โ lets the behavior ofsc_bdrmapbe further tailored ๐๏ธ. the current choices for this option are:dumpborders: only dump inferred border routers, not all VP routers.dumponedsts: further annotate routers that were only observed towards one AS.dumptracesets: dump the traceroutes observed towards networks where no topology was observed to be routed by a neighbor network.impatient: probe the destination ASes in order of number of address blocks, so that the probing will complete fastest ๐โ๏ธ๐จ.noalias: do not do alias resolution probes when collecting topology data.nogss: do not use a global stop set when collecting topology data.noipopts: do not probe with IP record route and IP prespecified timestamp options.nomerge: do not analytically merge IP interfaces to routers based on common adjacent neighbor routers.noself: do not report links to other routers operated by the network hosting the vantage point.randomdst: probe a random address in each address block, rather than the first ๐ฒ.udp: probe using UDP traceroute probes.
-pport โ the port on the local host wherescamper(1)is accepting control socket connections ๐.-rrelationships-file โ the AS relationships file which is used in the analysis phase to reason about who owns each router in the observed topology ๐ง.-Runix โ the name of a unix domain socket where a remotescamper(1)instance is accepting remote control socket connections ๐ก.-Ssrcaddr โ the source address thatscamper(1)should use in probes ๐ .-Uunix โ the name of a unix domain socket where a localscamper(1)instance is accepting control socket connections ๐ก.-vvpases โ the name of a file, or a list of ASes, that represent the network hosting the vantage point ๐.-xixp-file โ the name of a file that contains a list of prefixes used by an IXP to enable interconnection at their facilities ๐ค.
๐ธ EXAMPLES ๐ธ
okay so picture this: you've got a set of prefixes with origin AS in a file named ip2as.txt, a list of VP ases in vpases.txt, a list of IXP prefixes in ixp.txt, and a scamper(1) instance listening on port 31337 configured to probe at 100 packets per second, started like this:
scamper -P 31337 -p 100
then the following command will collect raw topology data to support inference of border routers for the network hosting the vantage point, storing raw data into bdrmap.warts, and logging run-time information into logfile1.txt โจ:
sc_bdrmap -p 31337 -o bdrmap.warts -l logfile1.txt -a ip2as.txt -v
vpases.txt -x ixp.txt
to infer border routers from the collected data, using the same input files as above, with a set of AS relationships contained in asrel.txt, and a set of prefix delegations assembled from the Regional Internet Registry (RIR) Statistics files in delegated.txt ๐ง:
sc_bdrmap -d routers -a ip2as.txt -g delegated.txt -r asrel.txt -v
vpases.txt -x ixp.txt bdrmap.warts >bdrmap.routers.txt
to view annotated traceroutes stored in bdrmap.warts with IP to DNS names information stored in names.txt ๐:
sc_bdrmap -d traces -a ip2as.txt -v vpases.txt -x ixp.txt -n
names.txt bdrmap.wart >bdrmap.traces.txt
๐ SEE ALSO ๐
scamper(1), sc_ally(1), sc_speedtrap(1), sc_wartsdump(1), sc_warts2text(1), sc_warts2json(1)
and the reading list, because we stan citing sources ๐๐:
- M. Luckie, A. Dhamdhere, B. Huffaker, D. Clark, and k. claffy, bdrmap: Inference of Borders Between IP Networks, Proc. ACM/SIGCOMM Internet Measurement Conference 2016.
- 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.
- B. Donnet, P. Raoult, T. Friedman, and M. Crovella, Efficient algorithms for large-scale topology discovery, Proc. ACM SIGMETRICS 2005.
- B. Augustin, X. Cuvellier, B. Orgogozo, F. Viger, T. Friedman, M. Latapy, C. Magnien, and R. Teixeira, Avoiding traceroute anomalies with Paris traceroute, Proc. ACM/SIGCOMM Internet Measurement Conference 2006.
- A. Bender, R. Sherwood, and N. Spring, Fixing Ally's growing pains with velocity modeling, Proc. ACM/SIGCOMM Internet Measurement Conference 2008.
- M. Luckie, Scamper: a Scalable and Extensible Packet Prober for Active Measurement of the Internet, Proc. ACM/SIGCOMM Internet Measurement Conference 2010.
- R. Beverly, W. Brinkmeyer, M. Luckie, and J.P. Rohrer, IPv6 Alias Resolution via Induced Fragmentation, Proc. Passive and Active Measurement Conference 2013.
- M. Luckie, R. Beverly, W. Brinkmeyer, and k claffy, Speedtrap: Internet-scale IPv6 Alias Resolution, Proc. ACM/SIGCOMM Internet Measurement Conference 2013.
- M. Luckie, B. Huffaker, A. Dhamdhere, V. Giotsas, and k claffy, AS Relationships, Customer Cones, and Validation, Proc. ACM/SIGCOMM Internet Measurement Conference 2013.
๐ซถ AUTHOR ๐ซถ
sc_bdrmap was written by Matthew Luckie <mjl@luckie.org.nz> ๐ absolute legend behavior, we love to see it.
๐ and that's the whole page bestie!! this one shipped on the Debian tip, dated September 24, 2019 โ so if you're reading this, know that this manual page and everything in it is a Debian joint from that date ๐ mwah, go map some border routers ๐ โจ
๐ฆ 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
- 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 The University of Waikato
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms