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&ethPort=1&wdmPort=2&channel=1’ curl “$t2/connect?node=t2&ethPort=1&wdmPort=2&channel=1’ curl “$t1/turn_on?node=t1’ curl “$t2/turn_on?node=t2’

Module Contents¶

Classes¶

SingleLinkTopo

Single link topology:

Functions¶

test(net)

Run config script and simple test

Attributes¶

topo

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¶

Mininet-Optical

Navigation

  • Welcome to Mininet-Optical
  • Installation and Walkthrough
  • Architecture Overview
  • API Overview
  • Tutorial
  • Visualization
  • API Reference
    • mnoptical

Related Topics

  • Documentation overview
    • API Reference
      • mnoptical
        • mnoptical.examples
          • Previous: mnoptical.examples.simplelink
          • Next: mnoptical.examples.singleroadm

Quick search

©2022, Mininet-Optical Project. | Powered by Sphinx 7.0.1 & Alabaster 0.7.13 | Page source