mnoptical.ofcdemo.Demo_Control_2

single_link_test.py: test monitoring on a single link Note this version uses and depends on explicit port assignment!

Module Contents

Functions

Span(km[, amp])

Return a fiber segment of length km with a compensating amp

RoadmPhyNetwork()

ROADM network topo

Mininet_installPath(lightpath_id, path, channel[, power])

intall switch rules on roadms along a lightpath for some signal channels

Mininet_uninstallPath(lightpath_id)

delete switch rules on roadms along a lightpath for some signal channels

Mininet_setupLightpath(lightpath_id, path, channel)

configure a lightpath

Mininet_teardownLightpath(lightpath_id)

remove a lightpath

Mininet_monitorLightpath(lightpath_id)

monitoring a signal along a lightpath

Mininet_monitorDifference([file])

Lumentum_installPath(lightpath_id, path, channel)

intall switch rules on roadms along a lightpath for some signal channels

Lumentum_uninstallPath(lightpath_id)

delete switch rules on roadms along a lightpath for some signal channels

Lumentum_setupLightpath(lightpath_id, path, channel)

configure a lightpath

Lumentum_teardownLightpath(lightpath_id)

remove a lightpath

Lumentum_MonitorLightpath(lightpath_id)

linkspec(link)

Return specifier dict(node1, port1, node2, port2) for link

getLinks(links)

netGraph(links)

Return an adjacency dict for links

FindRoute(src, graph, destinations[, k])

Route from src to destinations

waveAvailibility(path)

waveSelection(channels)

install_Lightpath(path, channel[, up_time, down_time, ...])

intall switch rules on roadms along a lightpath for some signal channels, update control database

check_lightpath_for_traf(src, dst)

check if there are some provisioned lighpaths for CPRI traf

update_lightpath_down_time(lightpath_id, down_time)

if there is a traf, update lightpath teardown time

traf_to_lightpah_Assignment(traf_id, lightpath_id[, ...])

assign a traffic to a lightpath, update control database

install_Traf(src, dst, routes, cur_time[, down_time, ...])

source RRH node to destination BBU node

uninstall_Lightpath(lightpath_id[, Mininet])

delete switch rules on roadms along a lightpath for some signal channels

traf_to_lightpath_Release(traf_id)

testMininet([Mininet_Enable])

Attributes

m

Controller_Lum

Controller_Mininet

NUM_WAV

LINK_CAP

DOWN_LINK_CAP

CPRI_CAP

NETLINKS

GRAPH

NODES

NETLINK_INFO

TRAFFIC_INFO

LIGHTPATH_INFO

SRC_DST_TO_LIGHTPATH

PATH_CH_TO_LIGHTPATH

TRAFFIC_ID

LIGHTPATH_ID

NUM_NODE

NAME_ROADM

UP_TRAF_TIME_LIST

UP_TRAF_ID_SET

UP_LIGHTPATH_TIME_LIST

UP_LIGHTPATH_ID_SET

ALL_CHANNELS

RU_ROADMS

DU_ROADMS

ROADM_TRAF

name_roadms

name_terminals

ROADM_TO_TERMINAL

TERMINAL_TO_ROADM

ROADM_TO_ID

TERMINAL_TO_ID

node

mnoptical.ofcdemo.Demo_Control_2.m = 0.001
mnoptical.ofcdemo.Demo_Control_2.Controller_Lum
mnoptical.ofcdemo.Demo_Control_2.Controller_Mininet
mnoptical.ofcdemo.Demo_Control_2.NUM_WAV = 90
mnoptical.ofcdemo.Demo_Control_2.CPRI_CAP = 25
mnoptical.ofcdemo.Demo_Control_2.GRAPH
mnoptical.ofcdemo.Demo_Control_2.NODES
mnoptical.ofcdemo.Demo_Control_2.TRAFFIC_INFO
mnoptical.ofcdemo.Demo_Control_2.LIGHTPATH_INFO
mnoptical.ofcdemo.Demo_Control_2.SRC_DST_TO_LIGHTPATH
mnoptical.ofcdemo.Demo_Control_2.PATH_CH_TO_LIGHTPATH
mnoptical.ofcdemo.Demo_Control_2.TRAFFIC_ID = 0
mnoptical.ofcdemo.Demo_Control_2.LIGHTPATH_ID = 0
mnoptical.ofcdemo.Demo_Control_2.NUM_NODE = 4
mnoptical.ofcdemo.Demo_Control_2.NAME_ROADM = []
mnoptical.ofcdemo.Demo_Control_2.UP_TRAF_TIME_LIST = []
mnoptical.ofcdemo.Demo_Control_2.UP_TRAF_ID_SET
mnoptical.ofcdemo.Demo_Control_2.UP_LIGHTPATH_TIME_LIST = []
mnoptical.ofcdemo.Demo_Control_2.UP_LIGHTPATH_ID_SET
mnoptical.ofcdemo.Demo_Control_2.ALL_CHANNELS
mnoptical.ofcdemo.Demo_Control_2.RU_ROADMS = []
mnoptical.ofcdemo.Demo_Control_2.DU_ROADMS
mnoptical.ofcdemo.Demo_Control_2.ROADM_TRAF
mnoptical.ofcdemo.Demo_Control_2.name_roadms = []
mnoptical.ofcdemo.Demo_Control_2.name_terminals = []
mnoptical.ofcdemo.Demo_Control_2.ROADM_TO_TERMINAL
mnoptical.ofcdemo.Demo_Control_2.TERMINAL_TO_ROADM
mnoptical.ofcdemo.Demo_Control_2.ROADM_TO_ID
mnoptical.ofcdemo.Demo_Control_2.TERMINAL_TO_ID
mnoptical.ofcdemo.Demo_Control_2.node
mnoptical.ofcdemo.Demo_Control_2.Span(km, amp=None)

Return a fiber segment of length km with a compensating amp

mnoptical.ofcdemo.Demo_Control_2.RoadmPhyNetwork()

ROADM network topo

mnoptical.ofcdemo.Demo_Control_2.Mininet_installPath(lightpath_id, path, channel, power=0)

intall switch rules on roadms along a lightpath for some signal channels

mnoptical.ofcdemo.Demo_Control_2.Mininet_uninstallPath(lightpath_id)

delete switch rules on roadms along a lightpath for some signal channels

mnoptical.ofcdemo.Demo_Control_2.Mininet_setupLightpath(lightpath_id, path, channel)

configure a lightpath

mnoptical.ofcdemo.Demo_Control_2.Mininet_teardownLightpath(lightpath_id)

remove a lightpath

mnoptical.ofcdemo.Demo_Control_2.Mininet_monitorLightpath(lightpath_id)

monitoring a signal along a lightpath

mnoptical.ofcdemo.Demo_Control_2.Mininet_monitorDifference(file=None)
mnoptical.ofcdemo.Demo_Control_2.Lumentum_installPath(lightpath_id, path, channel)

intall switch rules on roadms along a lightpath for some signal channels

mnoptical.ofcdemo.Demo_Control_2.Lumentum_uninstallPath(lightpath_id)

delete switch rules on roadms along a lightpath for some signal channels

mnoptical.ofcdemo.Demo_Control_2.Lumentum_setupLightpath(lightpath_id, path, channel)

configure a lightpath

mnoptical.ofcdemo.Demo_Control_2.Lumentum_teardownLightpath(lightpath_id)

remove a lightpath

mnoptical.ofcdemo.Demo_Control_2.Lumentum_MonitorLightpath(lightpath_id)
mnoptical.ofcdemo.Demo_Control_2.linkspec(link)

Return specifier dict(node1, port1, node2, port2) for link

mnoptical.ofcdemo.Demo_Control_2.netGraph(links)

Return an adjacency dict for links

mnoptical.ofcdemo.Demo_Control_2.FindRoute(src, graph, destinations, k=1)

Route from src to destinations neighbors: adjacency list returns: routes dict

mnoptical.ofcdemo.Demo_Control_2.waveAvailibility(path)
mnoptical.ofcdemo.Demo_Control_2.waveSelection(channels)
mnoptical.ofcdemo.Demo_Control_2.install_Lightpath(path, channel, up_time=0.0, down_time=float('inf'), Mininet=False)

intall switch rules on roadms along a lightpath for some signal channels, update control database

mnoptical.ofcdemo.Demo_Control_2.check_lightpath_for_traf(src, dst)

check if there are some provisioned lighpaths for CPRI traf

mnoptical.ofcdemo.Demo_Control_2.update_lightpath_down_time(lightpath_id, down_time)

if there is a traf, update lightpath teardown time

mnoptical.ofcdemo.Demo_Control_2.traf_to_lightpah_Assignment(traf_id, lightpath_id, down_time=float('inf'))

assign a traffic to a lightpath, update control database

mnoptical.ofcdemo.Demo_Control_2.install_Traf(src, dst, routes, cur_time, down_time=float('inf'), Mininet=False)

source RRH node to destination BBU node

mnoptical.ofcdemo.Demo_Control_2.uninstall_Lightpath(lightpath_id, Mininet=False)

delete switch rules on roadms along a lightpath for some signal channels

mnoptical.ofcdemo.Demo_Control_2.traf_to_lightpath_Release(traf_id)
mnoptical.ofcdemo.Demo_Control_2.testMininet(Mininet_Enable=False)