Parse a network topology from RocketFuel ISP map file.
The ASes provided by the RocketFuel dataset are the following:
ASN | Name | Span | Region | Nodes (r1) | Nodes (r0) |
---|---|---|---|---|---|
1221 1239 1755 2914 3257 3356 3967 4755 6461 7018 | Telstra (Australia) Sprintlink (US) EBONE (Europe) Verio (US) Tiscali (Europe) Level 3 (US) Exodus (US) VSNL (India) Abovenet (US) AT&T (US) | world world world world world world world world world world | AUS US Europe US Europe US US India US US |
10152 |
|
Parameters: | path : str
|
---|---|
Returns: | topology : DirectedTopology
|
Raises: | ValueError :
|
Notes
The returned topology is always directed. If an undirected topology is desired, convert it using the DirectedTopology.to_undirected() method.
If the topology contains self-loops (links starting and ending in the same node) they are stripped from the topology.
Examples
>>> import fnss
>>> topology = fnss.parse_rocketfuel_isp_map('1221.r0.cch')