mnoptical.examples.singlelink
¶
single-link.py: single link between two terminals
This is a slightly more complicated single-link topology.
Some complexity is added by a span consisting of two 25km fiber segments with boost amplifiers and compensating amplifiers, as well as monitors for the terminals.
Also the hosts are now connected to an Ethernet switch rather than directly to the terminals/transceivers.
To configure the optical network using the REST API:
mn=localhost:8080; t1=$mn; t2=$mn curl “$t1/connect?node=t1ðPort=1&wdmPort=2&channel=1’ curl “$t2/connect?node=t2ðPort=1&wdmPort=2&channel=1’ curl “$t1/turn_on?node=t1’ curl “$t2/turn_on?node=t2’
Module Contents¶
Classes¶
Single link topology: |
Functions¶
|
Run config script and simple test |
Attributes¶
- class mnoptical.examples.singlelink.SingleLinkTopo¶
Bases:
mininet.topo.Topo
Single link topology: h1 - s1 - t1 - (boost->,amp2<-) –25km– amp1 –25km– (->amp2,<-boost) - t1 - s2 - h2
- build()¶
Build single link topology
- mnoptical.examples.singlelink.test(net)¶
Run config script and simple test
- mnoptical.examples.singlelink.topo¶