mnoptical.ofcdemo.demolib_2021
¶
demolib.py: OFC Demo Topology and CLI
Our demo topology is a cross-connected mesh of 6 POPs.
Module Contents¶
Classes¶
Topo with convenience methods for optical links |
|
A linear network with a single ROADM and three POPs |
|
OFC Demo Topology |
Functions¶
|
Return span specifier [length, (ampName, params)] |
|
Configure linear network locally |
Test Linear ROADM topology |
Attributes¶
- mnoptical.ofcdemo.demolib_2021.ListenPortBase = 6653¶
- mnoptical.ofcdemo.demolib_2021.CLI¶
- class mnoptical.ofcdemo.demolib_2021.OpticalTopo¶
Bases:
mininet.topo.Topo
Topo with convenience methods for optical links
- wdmLink(*args, **kwargs)¶
Convenience function to add an OpticalLink
- ethLink(*args, **kwargs)¶
Clarifying alias for addLink
- mnoptical.ofcdemo.demolib_2021.SpanSpec¶
- mnoptical.ofcdemo.demolib_2021.AmpSpec¶
- mnoptical.ofcdemo.demolib_2021.spanSpec(length, amp, **ampParams)¶
Return span specifier [length, (ampName, params)]
- class mnoptical.ofcdemo.demolib_2021.LinearRoadmTopo¶
Bases:
OpticalTopo
A linear network with a single ROADM and three POPs
- h1 - s1 - t1 = r1 — r2 — r3 = t3 - s3 - h3
|| t2 - s2 - h2
h1-h3: hosts s1-s3: routers (downlink: eth0, uplink: eth1, eth2) t1-t3: terminals (downlink: eth1, eth2, uplink: wdm3, wdm4) r1-r3: ROADMs (add/drop: wdm1, wdm2, line: wdm3, wdm4)
- static ip(pop, intfnum=0, template='10.%d.0.%d', subnet='/24')¶
Return a local IP address or subnet for the given POP
- buildPop(p, txCount=2)¶
Build a POP; returns: ROADM
- spans(spanLength=50 * km, spanCount=4)¶
Return a list of span specifiers (length, (amp, params)) the compensation amplifiers are named prefix-ampN
- build(n=3, txCount=2)¶
Add POPs and connect them in a line
- mnoptical.ofcdemo.demolib_2021.configureLinearNet(net, packetOnly=False)¶
Configure linear network locally Channel usage: r1<->r2: 1 r1<->r3: 2 r2<->r3: 1
- mnoptical.ofcdemo.demolib_2021.linearRoadmTest()¶
Test Linear ROADM topology
- class mnoptical.ofcdemo.demolib_2021.DemoTopo¶
Bases:
LinearRoadmTopo
OFC Demo Topology
————-Linear Topo—————- POP1 – POP2 – POP3 – POP4
All of the links are bidirectional.
Each POP consists of a host, router, optical terminal, and ROADM:
h1 - s1 - t1 - r1 h2 - s2 - t2 - r2 etc.
- addPopLink(src, dst)¶
Construct a link of four 50km fiber spans
- build(n=4, txCount=10)¶
Add POPs and connect them in a ring with some cross-connects
- mnoptical.ofcdemo.demolib_2021.net¶