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¶
|
Return a fiber segment of length km with a compensating amp |
ROADM network topo |
|
|
intall switch rules on roadms along a lightpath for some signal channels |
|
delete switch rules on roadms along a lightpath for some signal channels |
|
configure a lightpath |
|
remove a lightpath |
|
monitoring a signal along a lightpath |
|
|
|
intall switch rules on roadms along a lightpath for some signal channels |
|
delete switch rules on roadms along a lightpath for some signal channels |
|
configure a lightpath |
|
remove a lightpath |
|
|
|
Return specifier dict(node1, port1, node2, port2) for link |
|
|
|
Return an adjacency dict for links |
|
Route from src to destinations |
|
|
|
|
|
intall switch rules on roadms along a lightpath for some signal channels, update control database |
|
check if there are some provisioned lighpaths for CPRI traf |
|
if there is a traf, update lightpath teardown time |
|
assign a traffic to a lightpath, update control database |
|
source RRH node to destination BBU node |
|
delete switch rules on roadms along a lightpath for some signal channels |
|
|
|
Attributes¶
- 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.LINK_CAP = 200¶
- mnoptical.ofcdemo.Demo_Control_2.DOWN_LINK_CAP = 100¶
- mnoptical.ofcdemo.Demo_Control_2.CPRI_CAP = 25¶
- mnoptical.ofcdemo.Demo_Control_2.NETLINKS = []¶
- mnoptical.ofcdemo.Demo_Control_2.GRAPH¶
- mnoptical.ofcdemo.Demo_Control_2.NODES¶
- mnoptical.ofcdemo.Demo_Control_2.NETLINK_INFO¶
- 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.getLinks(links)¶
- 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)¶