From f8f46d28bea92eda49b47ce728a0300dfb9bd37a Mon Sep 17 00:00:00 2001 From: ahrenholz Date: Thu, 29 Aug 2013 14:21:13 +0000 Subject: [PATCH] initial import (Boeing r1752, NRL r878) --- Changelog | 194 + LICENSE | 22 + Makefile.am | 71 + README | 61 + README-Xen | 87 + bootstrap.sh | 48 + configure.ac | 368 + daemon/CORE.e4p | 223 + daemon/MANIFEST.in | 4 + daemon/Makefile.am | 51 + daemon/core/__init__.py | 23 + daemon/core/addons/__init__.py | 6 + daemon/core/api/__init__.py | 0 daemon/core/api/coreapi.py | 630 ++ daemon/core/api/data.py | 327 + daemon/core/broker.py | 858 ++ daemon/core/bsd/__init__.py | 0 daemon/core/bsd/netgraph.py | 70 + daemon/core/bsd/nodes.py | 197 + daemon/core/bsd/vnet.py | 216 + daemon/core/bsd/vnode.py | 393 + daemon/core/conf.py | 373 + daemon/core/constants.py.in | 19 + daemon/core/coreobj.py | 445 + daemon/core/emane/__init__.py | 0 daemon/core/emane/bypass.py | 65 + daemon/core/emane/commeffect.py | 124 + daemon/core/emane/emane.py | 844 ++ daemon/core/emane/ieee80211abg.py | 119 + daemon/core/emane/nodes.py | 281 + daemon/core/emane/rfpipe.py | 106 + daemon/core/emane/universal.py | 113 + daemon/core/location.py | 246 + daemon/core/misc/LatLongUTMconversion.py | 216 + daemon/core/misc/__init__.py | 0 daemon/core/misc/event.py | 160 + daemon/core/misc/ipaddr.py | 230 + daemon/core/misc/quagga.py | 116 + daemon/core/misc/utils.py | 228 + daemon/core/misc/utm.py | 259 + daemon/core/misc/xmlutils.py | 776 ++ daemon/core/mobility.py | 929 +++ daemon/core/netns/__init__.py | 0 daemon/core/netns/nodes.py | 401 + daemon/core/netns/vif.py | 168 + daemon/core/netns/vnet.py | 496 ++ daemon/core/netns/vnode.py | 402 + daemon/core/netns/vnodeclient.py | 221 + daemon/core/phys/__init__.py | 0 daemon/core/phys/pnodes.py | 268 + daemon/core/pycore.py | 27 + daemon/core/sdt.py | 202 + daemon/core/service.py | 760 ++ daemon/core/services/__init__.py | 6 + daemon/core/services/bird.py | 249 + daemon/core/services/nrl.py | 191 + daemon/core/services/quagga.py | 589 ++ daemon/core/services/security.py | 129 + daemon/core/services/ucarp.py | 189 + daemon/core/services/utility.py | 676 ++ daemon/core/services/xorp.py | 472 ++ daemon/core/session.py | 1029 +++ daemon/core/xen/__init__.py | 0 daemon/core/xen/xen.py | 818 ++ daemon/core/xen/xenconfig.py | 265 + daemon/data/core.conf | 40 + daemon/data/xen.conf | 35 + daemon/doc/Makefile.am | 151 + daemon/doc/conf.py.in | 256 + daemon/examples/controlnet_updown | 53 + daemon/examples/emanemodel2core.py | 187 + daemon/examples/findcore.py | 78 + daemon/examples/myservices/README.txt | 26 + daemon/examples/myservices/__init__.py | 7 + daemon/examples/myservices/sample.py | 64 + daemon/examples/netns/basicrange.py | 74 + daemon/examples/netns/emane80211.py | 99 + daemon/examples/netns/howmanynodes.py | 209 + .../examples/netns/iperf-performance-chain.py | 109 + daemon/examples/netns/iperf-performance.sh | 284 + daemon/examples/netns/ospfmanetmdrtest.py | 572 ++ daemon/examples/netns/switch.py | 78 + daemon/examples/netns/switchtest.py | 97 + daemon/examples/netns/twonodes.sh | 33 + daemon/examples/netns/wlanemanetests.py | 772 ++ daemon/examples/netns/wlantest.py | 98 + daemon/examples/services/sampleFirewall | 30 + daemon/examples/services/sampleIPsec | 119 + daemon/examples/services/sampleVPNClient | 63 + daemon/examples/services/sampleVPNServer | 147 + daemon/examples/stopsession.py | 45 + daemon/ns3/LICENSE | 339 + daemon/ns3/Makefile.am | 40 + daemon/ns3/corens3/__init__.py | 22 + daemon/ns3/corens3/constants.py.in | 18 + daemon/ns3/corens3/obj.py | 503 ++ daemon/ns3/examples/ns3lte.py | 110 + daemon/ns3/examples/ns3wifi.py | 122 + daemon/ns3/examples/ns3wifirandomwalk.py | 131 + daemon/ns3/examples/ns3wimax.py | 95 + daemon/ns3/setup.py | 28 + daemon/sbin/core-cleanup | 58 + daemon/sbin/core-daemon | 1636 ++++ daemon/sbin/core-xen-cleanup | 73 + daemon/sbin/coresendmsg | 336 + daemon/setup.py | 46 + daemon/src/MANIFEST.in | 2 + daemon/src/Makefile.am | 71 + daemon/src/myerr.h | 80 + daemon/src/netns.c | 110 + daemon/src/netns.h | 20 + daemon/src/netns_main.c | 127 + daemon/src/netnsmodule.c | 146 + daemon/src/setup.py | 30 + daemon/src/vcmd_main.c | 439 + daemon/src/vcmdmodule.c | 875 ++ daemon/src/version.h.in | 16 + daemon/src/vnode_chnl.c | 114 + daemon/src/vnode_chnl.h | 18 + daemon/src/vnode_client.c | 509 ++ daemon/src/vnode_client.h | 77 + daemon/src/vnode_cmd.c | 483 ++ daemon/src/vnode_cmd.h | 71 + daemon/src/vnode_io.c | 173 + daemon/src/vnode_io.h | 61 + daemon/src/vnode_msg.c | 262 + daemon/src/vnode_msg.h | 148 + daemon/src/vnode_server.c | 388 + daemon/src/vnode_server.h | 45 + daemon/src/vnode_tlv.h | 41 + daemon/src/vnoded_main.c | 227 + doc/Makefile.am | 159 + doc/conf.py.in | 256 + doc/constants.txt | 25 + doc/credits.rst | 26 + doc/devguide.rst | 331 + doc/emane.rst | 293 + doc/figures/Makefile.am | 54 + doc/figures/core-architecture.dia | Bin 0 -> 1829 bytes doc/figures/core-architecture.jpg | Bin 0 -> 38352 bytes doc/figures/core-workflow.dia | Bin 0 -> 2294 bytes doc/figures/core-workflow.jpg | Bin 0 -> 21243 bytes doc/index.rst | 32 + doc/install.rst | 756 ++ doc/intro.rst | 256 + doc/machine.rst | 91 + doc/man/Makefile.am | 37 + doc/man/core-cleanup.1 | 30 + doc/man/core-daemon.1 | 52 + doc/man/core-gui.1 | 38 + doc/man/core-xen-cleanup.1 | 28 + doc/man/coresendmsg.1 | 85 + doc/man/netns.1 | 30 + doc/man/vcmd.1 | 42 + doc/man/vnoded.1 | 44 + doc/ns3.rst | 314 + doc/performance.rst | 60 + doc/scripting.rst | 137 + doc/usage.rst | 1729 ++++ gui/Makefile.am | 70 + gui/addons/ipsecservice.tcl | 334 + gui/annotations.tcl | 842 ++ gui/api.tcl | 3178 ++++++++ gui/canvas.tcl | 411 + gui/cfgparse.tcl | 1152 +++ gui/configs/sample1-bg.gif | Bin 0 -> 319126 bytes gui/configs/sample1.imn | 510 ++ gui/configs/sample1.scen | 28 + gui/configs/sample10-kitchen-sink.imn | 848 ++ gui/configs/sample2-ssh.imn | 248 + gui/configs/sample3-bgp.imn | 754 ++ gui/configs/sample4-bg.jpg | Bin 0 -> 201030 bytes gui/configs/sample4-nrlsmf.imn | 537 ++ gui/configs/sample4.scen | 2791 +++++++ gui/configs/sample5-mgen.imn | 131 + gui/configs/sample6-emane-rfpipe.imn | 271 + gui/configs/sample7-emane-ieee80211abg.imn | 274 + gui/configs/sample8-ipsec-service.imn | 967 +++ gui/configs/sample9-vpn.imn | 850 ++ gui/core-bsd-cleanup.sh | 60 + gui/core-gui.in | 164 + gui/core.tcl | 280 + gui/debug.tcl | 54 + gui/editor.tcl | 5149 ++++++++++++ gui/exceptions.tcl | 209 + gui/exec.tcl | 857 ++ gui/filemgmt.tcl | 621 ++ gui/gpgui.tcl | 524 ++ gui/graph_partitioning.tcl | 1651 ++++ gui/help.tcl | 122 + gui/icons/Makefile.am | 111 + gui/icons/core-gui.desktop | 12 + gui/icons/core-gui.xpm | 294 + gui/icons/normal/antenna.gif | Bin 0 -> 230 bytes gui/icons/normal/ap.gif | Bin 0 -> 419 bytes gui/icons/normal/core-icon.png | Bin 0 -> 2931 bytes gui/icons/normal/core-icon.xbm | 14 + gui/icons/normal/core-logo-275x75.gif | Bin 0 -> 6118 bytes gui/icons/normal/document-properties.gif | Bin 0 -> 1162 bytes gui/icons/normal/gps-diagram.xbm | 116 + gui/icons/normal/host.gif | Bin 0 -> 1727 bytes gui/icons/normal/hub.gif | Bin 0 -> 719 bytes gui/icons/normal/lanswitch.gif | Bin 0 -> 744 bytes gui/icons/normal/mdr.gif | Bin 0 -> 1598 bytes gui/icons/normal/oval.gif | Bin 0 -> 174 bytes gui/icons/normal/pc.gif | Bin 0 -> 1854 bytes gui/icons/normal/rj45.gif | Bin 0 -> 755 bytes gui/icons/normal/router.gif | Bin 0 -> 1443 bytes gui/icons/normal/router_black.gif | Bin 0 -> 1406 bytes gui/icons/normal/router_green.gif | Bin 0 -> 1433 bytes gui/icons/normal/router_purple.gif | Bin 0 -> 1443 bytes gui/icons/normal/router_red.gif | Bin 0 -> 1432 bytes gui/icons/normal/router_yellow.gif | Bin 0 -> 1443 bytes gui/icons/normal/simple.xbm | 228 + gui/icons/normal/text.gif | Bin 0 -> 127 bytes gui/icons/normal/thumb-unknown.gif | Bin 0 -> 9517 bytes gui/icons/normal/tunnel.gif | Bin 0 -> 799 bytes gui/icons/normal/wlan.gif | Bin 0 -> 259 bytes gui/icons/normal/xen.gif | Bin 0 -> 1684 bytes gui/icons/svg/ap.svg | 270 + gui/icons/svg/cel.svg | 109 + gui/icons/svg/hub.svg | 197 + gui/icons/svg/lanswitch.svg | 190 + gui/icons/svg/mdr.svg | 178 + gui/icons/svg/otr.svg | 181 + gui/icons/svg/rj45.svg | 172 + gui/icons/svg/router.svg | 158 + gui/icons/svg/router_black.svg | 158 + gui/icons/svg/router_green.svg | 158 + gui/icons/svg/router_purple.svg | 158 + gui/icons/svg/router_red.svg | 158 + gui/icons/svg/router_yellow.svg | 158 + gui/icons/svg/start.svg | 215 + gui/icons/svg/tunnel.svg | 192 + gui/icons/svg/vlan.svg | 180 + gui/icons/svg/xen.svg | 181 + gui/icons/tiny/ap.gif | Bin 0 -> 667 bytes gui/icons/tiny/arrow.down.gif | Bin 0 -> 337 bytes gui/icons/tiny/arrow.gif | Bin 0 -> 54 bytes gui/icons/tiny/arrow.up.gif | Bin 0 -> 334 bytes gui/icons/tiny/blank.gif | Bin 0 -> 55 bytes gui/icons/tiny/button.play.gif | Bin 0 -> 915 bytes gui/icons/tiny/button.stop.gif | Bin 0 -> 922 bytes gui/icons/tiny/cel.gif | Bin 0 -> 666 bytes gui/icons/tiny/delete.gif | Bin 0 -> 137 bytes gui/icons/tiny/document-new.gif | Bin 0 -> 1054 bytes gui/icons/tiny/document-properties.gif | Bin 0 -> 635 bytes gui/icons/tiny/document-save.gif | Bin 0 -> 1049 bytes gui/icons/tiny/edit-delete.gif | Bin 0 -> 1006 bytes gui/icons/tiny/eraser.gif | Bin 0 -> 428 bytes gui/icons/tiny/fileopen.gif | Bin 0 -> 1095 bytes gui/icons/tiny/folder.gif | Bin 0 -> 1095 bytes gui/icons/tiny/host.gif | Bin 0 -> 1189 bytes gui/icons/tiny/hub.gif | Bin 0 -> 719 bytes gui/icons/tiny/lanswitch.gif | Bin 0 -> 744 bytes gui/icons/tiny/link.gif | Bin 0 -> 86 bytes gui/icons/tiny/marker.gif | Bin 0 -> 375 bytes gui/icons/tiny/mdr.gif | Bin 0 -> 1276 bytes gui/icons/tiny/mobility.gif | Bin 0 -> 167 bytes gui/icons/tiny/moboff.gif | Bin 0 -> 109 bytes gui/icons/tiny/observe.gif | Bin 0 -> 1149 bytes gui/icons/tiny/oval.gif | Bin 0 -> 174 bytes gui/icons/tiny/pc.gif | Bin 0 -> 1300 bytes gui/icons/tiny/ping.gif | Bin 0 -> 112 bytes gui/icons/tiny/plot.gif | Bin 0 -> 265 bytes gui/icons/tiny/rectangle.gif | Bin 0 -> 160 bytes gui/icons/tiny/rj45.gif | Bin 0 -> 755 bytes gui/icons/tiny/router.gif | Bin 0 -> 1152 bytes gui/icons/tiny/router_black.gif | Bin 0 -> 741 bytes gui/icons/tiny/router_green.gif | Bin 0 -> 753 bytes gui/icons/tiny/router_purple.gif | Bin 0 -> 1171 bytes gui/icons/tiny/router_red.gif | Bin 0 -> 1161 bytes gui/icons/tiny/router_yellow.gif | Bin 0 -> 1171 bytes gui/icons/tiny/run.gif | Bin 0 -> 324 bytes gui/icons/tiny/script_pause.gif | Bin 0 -> 117 bytes gui/icons/tiny/script_play.gif | Bin 0 -> 111 bytes gui/icons/tiny/script_stop.gif | Bin 0 -> 113 bytes gui/icons/tiny/select.gif | Bin 0 -> 925 bytes gui/icons/tiny/start.gif | Bin 0 -> 1131 bytes gui/icons/tiny/stock_connect.gif | Bin 0 -> 331 bytes gui/icons/tiny/stock_disconnect.gif | Bin 0 -> 214 bytes gui/icons/tiny/stop.gif | Bin 0 -> 1204 bytes gui/icons/tiny/text.gif | Bin 0 -> 127 bytes gui/icons/tiny/trace.gif | Bin 0 -> 151 bytes gui/icons/tiny/tunnel.gif | Bin 0 -> 799 bytes gui/icons/tiny/twonode.gif | Bin 0 -> 220 bytes gui/icons/tiny/view-refresh.gif | Bin 0 -> 592 bytes gui/icons/tiny/wlan.gif | Bin 0 -> 146 bytes gui/icons/tiny/xen.gif | Bin 0 -> 905 bytes gui/initgui.tcl | 816 ++ gui/ipv4.tcl | 386 + gui/ipv6.tcl | 471 ++ gui/linkcfg.tcl | 911 +++ gui/mobility.tcl | 563 ++ gui/nodecfg.tcl | 2023 +++++ gui/nodes.tcl | 726 ++ gui/ns2imunes.tcl | 399 + gui/plugins.tcl | 1560 ++++ gui/services.tcl | 1161 +++ gui/tooltips.tcl | 390 + gui/topogen.tcl | 382 + gui/traffic.tcl | 617 ++ gui/util.tcl | 1285 +++ gui/version.tcl.in | 10 + gui/widget.tcl | 2165 +++++ gui/wlan.tcl | 669 ++ gui/wlanscript.tcl | 209 + kernel/core-kernel-2.6.38/Makefile | 62 + kernel/core-kernel-2.6.38/README.txt | 9 + kernel/core-kernel-2.6.38/config.core | 1 + .../patches/00-linux-2.6.38.flow-cache.patch | 31 + .../patches/00-linux-2.6.38.ifindex.patch | 52 + .../patches/00-linux-2.6.38.nfnetlink.patch | 1662 ++++ kernel/core-kernel-3.0/Makefile | 62 + kernel/core-kernel-3.0/README.txt | 9 + kernel/core-kernel-3.0/config.core | 1 + .../patches/00-linux-3.0.flow-cache.patch | 49 + .../patches/00-linux-3.0.ifindex.patch | 51 + .../00-linux-3.0.nfnetlink_queue.patch | 351 + .../01-linux-3.0.nfnetlink_queue.patch | 516 ++ kernel/core-kernel-3.2/Makefile | 62 + kernel/core-kernel-3.2/README.txt | 8 + kernel/core-kernel-3.2/config.core | 1 + .../patches/00-linux-3.2.ifindex.patch | 60 + .../00-linux-3.2.nfnetlink_queue.patch | 351 + .../01-linux-3.2.nfnetlink_queue.patch | 544 ++ kernel/core-kernel-3.5/Makefile | 70 + kernel/core-kernel-3.5/config.core | 1 + .../core-kernel-3.5/patches/00-ifindex.patch | 60 + .../patches/00-nfnetlink_queue.patch | 351 + .../patches/01-nfnetlink_queue.patch | 494 ++ kernel/core-kernel-3.8/Makefile | 70 + kernel/core-kernel-3.8/config.core | 1 + .../core-kernel-3.8/patches/00-ifindex.patch | 29 + .../patches/00-nfnetlink_queue.patch | 307 + .../patches/01-nfnetlink_queue.patch | 475 ++ kernel/freebsd/4.11-R-CORE.diff | 7150 +++++++++++++++++ kernel/freebsd/README.txt | 24 + kernel/freebsd/freebsd7-config-CORE | 20 + kernel/freebsd/freebsd7-config-COREDEBUG | 22 + kernel/freebsd/freebsd8-config-CORE | 11 + kernel/freebsd/imunes-8.0-RELEASE.diff | 372 + kernel/freebsd/ng_pipe/Makefile | 27 + kernel/freebsd/ng_pipe/README | 21 + kernel/freebsd/ng_pipe/ng_pipe.c | 1170 +++ kernel/freebsd/ng_pipe/ng_pipe.h | 171 + kernel/freebsd/ng_pipe/ng_pipe_freebsd4.c | 1277 +++ kernel/freebsd/ng_wlan/Makefile | 27 + kernel/freebsd/ng_wlan/README | 50 + kernel/freebsd/ng_wlan/ng_wlan.c | 1315 +++ kernel/freebsd/ng_wlan/ng_wlan.h | 109 + kernel/freebsd/ng_wlan/ng_wlan_tag.h | 60 + kernel/freebsd/symlinks-8.1-RELEASE.diff | 78 + kernel/freebsd/vimage/Makefile | 14 + kernel/freebsd/vimage/vimage.8 | 195 + kernel/freebsd/vimage/vimage.c | 390 + kernel/freebsd/vimage_7-CORE.diff | 3077 +++++++ packaging/bsd/core-kernel-deinstall-4.11.sh | 7 + packaging/bsd/core-kernel-deinstall-8.x.sh | 21 + packaging/bsd/core-kernel-pkgcreate.sh | 96 + packaging/bsd/core-kernel-preinstall-4.11.sh | 18 + packaging/bsd/core-kernel-preinstall-8.x.sh | 27 + packaging/bsd/core-kernel.pkgdesc | 1 + packaging/bsd/core-kernel.pkgdesclong | 1 + packaging/bsd/core-pkgcreate.sh | 68 + packaging/bsd/core.pkgdesc | 1 + packaging/bsd/core.pkgdesclong | 3 + packaging/deb/changelog | 47 + packaging/deb/compat | 1 + packaging/deb/control | 27 + packaging/deb/copyright | 35 + packaging/deb/core-daemon.install.in | 22 + packaging/deb/core-gui.install.in | 11 + packaging/deb/core.postrm | 12 + packaging/deb/rules | 18 + packaging/rpm/core.spec.in | 365 + packaging/rpm/specfiles.sh | 41 + scripts/Makefile.am | 61 + scripts/core-daemon-init.d | 142 + scripts/core-daemon-init.d-SUSE | 264 + scripts/core-daemon-rc.d | 50 + scripts/core-daemon.service | 11 + scripts/perf/Makefile.am | 22 + scripts/perf/configuration_hook.sh | 6 + scripts/perf/datacollect_hook.sh | 7 + scripts/perf/perflogserver.conf | 37 + scripts/perf/perflogserver.py | 588 ++ scripts/perf/perflogstart.sh | 10 + scripts/perf/perflogstop.sh | 11 + scripts/perf/sessiondatacollect.sh | 52 + scripts/perf/timesyncstart.sh | 26 + scripts/perf/timesyncstop.sh | 51 + scripts/xen/Makefile.am | 15 + scripts/xen/vif-core | 48 + 394 files changed, 99738 insertions(+) create mode 100644 Changelog create mode 100644 LICENSE create mode 100644 Makefile.am create mode 100644 README create mode 100644 README-Xen create mode 100755 bootstrap.sh create mode 100644 configure.ac create mode 100644 daemon/CORE.e4p create mode 100644 daemon/MANIFEST.in create mode 100755 daemon/Makefile.am create mode 100644 daemon/core/__init__.py create mode 100644 daemon/core/addons/__init__.py create mode 100644 daemon/core/api/__init__.py create mode 100644 daemon/core/api/coreapi.py create mode 100644 daemon/core/api/data.py create mode 100644 daemon/core/broker.py create mode 100644 daemon/core/bsd/__init__.py create mode 100644 daemon/core/bsd/netgraph.py create mode 100644 daemon/core/bsd/nodes.py create mode 100644 daemon/core/bsd/vnet.py create mode 100644 daemon/core/bsd/vnode.py create mode 100644 daemon/core/conf.py create mode 100644 daemon/core/constants.py.in create mode 100644 daemon/core/coreobj.py create mode 100644 daemon/core/emane/__init__.py create mode 100644 daemon/core/emane/bypass.py create mode 100755 daemon/core/emane/commeffect.py create mode 100644 daemon/core/emane/emane.py create mode 100644 daemon/core/emane/ieee80211abg.py create mode 100644 daemon/core/emane/nodes.py create mode 100644 daemon/core/emane/rfpipe.py create mode 100644 daemon/core/emane/universal.py create mode 100644 daemon/core/location.py create mode 100755 daemon/core/misc/LatLongUTMconversion.py create mode 100644 daemon/core/misc/__init__.py create mode 100644 daemon/core/misc/event.py create mode 100644 daemon/core/misc/ipaddr.py create mode 100644 daemon/core/misc/quagga.py create mode 100644 daemon/core/misc/utils.py create mode 100644 daemon/core/misc/utm.py create mode 100644 daemon/core/misc/xmlutils.py create mode 100644 daemon/core/mobility.py create mode 100644 daemon/core/netns/__init__.py create mode 100644 daemon/core/netns/nodes.py create mode 100644 daemon/core/netns/vif.py create mode 100644 daemon/core/netns/vnet.py create mode 100644 daemon/core/netns/vnode.py create mode 100644 daemon/core/netns/vnodeclient.py create mode 100644 daemon/core/phys/__init__.py create mode 100644 daemon/core/phys/pnodes.py create mode 100644 daemon/core/pycore.py create mode 100644 daemon/core/sdt.py create mode 100644 daemon/core/service.py create mode 100644 daemon/core/services/__init__.py create mode 100644 daemon/core/services/bird.py create mode 100644 daemon/core/services/nrl.py create mode 100644 daemon/core/services/quagga.py create mode 100644 daemon/core/services/security.py create mode 100755 daemon/core/services/ucarp.py create mode 100644 daemon/core/services/utility.py create mode 100644 daemon/core/services/xorp.py create mode 100644 daemon/core/session.py create mode 100644 daemon/core/xen/__init__.py create mode 100644 daemon/core/xen/xen.py create mode 100644 daemon/core/xen/xenconfig.py create mode 100644 daemon/data/core.conf create mode 100644 daemon/data/xen.conf create mode 100644 daemon/doc/Makefile.am create mode 100644 daemon/doc/conf.py.in create mode 100644 daemon/examples/controlnet_updown create mode 100755 daemon/examples/emanemodel2core.py create mode 100755 daemon/examples/findcore.py create mode 100644 daemon/examples/myservices/README.txt create mode 100644 daemon/examples/myservices/__init__.py create mode 100644 daemon/examples/myservices/sample.py create mode 100755 daemon/examples/netns/basicrange.py create mode 100755 daemon/examples/netns/emane80211.py create mode 100755 daemon/examples/netns/howmanynodes.py create mode 100755 daemon/examples/netns/iperf-performance-chain.py create mode 100755 daemon/examples/netns/iperf-performance.sh create mode 100755 daemon/examples/netns/ospfmanetmdrtest.py create mode 100755 daemon/examples/netns/switch.py create mode 100755 daemon/examples/netns/switchtest.py create mode 100755 daemon/examples/netns/twonodes.sh create mode 100755 daemon/examples/netns/wlanemanetests.py create mode 100755 daemon/examples/netns/wlantest.py create mode 100644 daemon/examples/services/sampleFirewall create mode 100644 daemon/examples/services/sampleIPsec create mode 100644 daemon/examples/services/sampleVPNClient create mode 100644 daemon/examples/services/sampleVPNServer create mode 100755 daemon/examples/stopsession.py create mode 100644 daemon/ns3/LICENSE create mode 100755 daemon/ns3/Makefile.am create mode 100644 daemon/ns3/corens3/__init__.py create mode 100644 daemon/ns3/corens3/constants.py.in create mode 100644 daemon/ns3/corens3/obj.py create mode 100755 daemon/ns3/examples/ns3lte.py create mode 100755 daemon/ns3/examples/ns3wifi.py create mode 100755 daemon/ns3/examples/ns3wifirandomwalk.py create mode 100755 daemon/ns3/examples/ns3wimax.py create mode 100644 daemon/ns3/setup.py create mode 100755 daemon/sbin/core-cleanup create mode 100755 daemon/sbin/core-daemon create mode 100755 daemon/sbin/core-xen-cleanup create mode 100755 daemon/sbin/coresendmsg create mode 100644 daemon/setup.py create mode 100644 daemon/src/MANIFEST.in create mode 100755 daemon/src/Makefile.am create mode 100644 daemon/src/myerr.h create mode 100644 daemon/src/netns.c create mode 100644 daemon/src/netns.h create mode 100644 daemon/src/netns_main.c create mode 100644 daemon/src/netnsmodule.c create mode 100644 daemon/src/setup.py create mode 100644 daemon/src/vcmd_main.c create mode 100644 daemon/src/vcmdmodule.c create mode 100644 daemon/src/version.h.in create mode 100644 daemon/src/vnode_chnl.c create mode 100644 daemon/src/vnode_chnl.h create mode 100644 daemon/src/vnode_client.c create mode 100644 daemon/src/vnode_client.h create mode 100644 daemon/src/vnode_cmd.c create mode 100644 daemon/src/vnode_cmd.h create mode 100644 daemon/src/vnode_io.c create mode 100644 daemon/src/vnode_io.h create mode 100644 daemon/src/vnode_msg.c create mode 100644 daemon/src/vnode_msg.h create mode 100644 daemon/src/vnode_server.c create mode 100644 daemon/src/vnode_server.h create mode 100644 daemon/src/vnode_tlv.h create mode 100644 daemon/src/vnoded_main.c create mode 100644 doc/Makefile.am create mode 100644 doc/conf.py.in create mode 100644 doc/constants.txt create mode 100644 doc/credits.rst create mode 100644 doc/devguide.rst create mode 100644 doc/emane.rst create mode 100644 doc/figures/Makefile.am create mode 100644 doc/figures/core-architecture.dia create mode 100644 doc/figures/core-architecture.jpg create mode 100644 doc/figures/core-workflow.dia create mode 100644 doc/figures/core-workflow.jpg create mode 100644 doc/index.rst create mode 100644 doc/install.rst create mode 100644 doc/intro.rst create mode 100644 doc/machine.rst create mode 100755 doc/man/Makefile.am create mode 100644 doc/man/core-cleanup.1 create mode 100644 doc/man/core-daemon.1 create mode 100644 doc/man/core-gui.1 create mode 100644 doc/man/core-xen-cleanup.1 create mode 100644 doc/man/coresendmsg.1 create mode 100644 doc/man/netns.1 create mode 100644 doc/man/vcmd.1 create mode 100644 doc/man/vnoded.1 create mode 100644 doc/ns3.rst create mode 100644 doc/performance.rst create mode 100644 doc/scripting.rst create mode 100644 doc/usage.rst create mode 100755 gui/Makefile.am create mode 100644 gui/addons/ipsecservice.tcl create mode 100644 gui/annotations.tcl create mode 100755 gui/api.tcl create mode 100755 gui/canvas.tcl create mode 100755 gui/cfgparse.tcl create mode 100644 gui/configs/sample1-bg.gif create mode 100644 gui/configs/sample1.imn create mode 100644 gui/configs/sample1.scen create mode 100644 gui/configs/sample10-kitchen-sink.imn create mode 100644 gui/configs/sample2-ssh.imn create mode 100644 gui/configs/sample3-bgp.imn create mode 100644 gui/configs/sample4-bg.jpg create mode 100644 gui/configs/sample4-nrlsmf.imn create mode 100644 gui/configs/sample4.scen create mode 100644 gui/configs/sample5-mgen.imn create mode 100644 gui/configs/sample6-emane-rfpipe.imn create mode 100644 gui/configs/sample7-emane-ieee80211abg.imn create mode 100644 gui/configs/sample8-ipsec-service.imn create mode 100644 gui/configs/sample9-vpn.imn create mode 100755 gui/core-bsd-cleanup.sh create mode 100755 gui/core-gui.in create mode 100755 gui/core.tcl create mode 100644 gui/debug.tcl create mode 100755 gui/editor.tcl create mode 100644 gui/exceptions.tcl create mode 100755 gui/exec.tcl create mode 100755 gui/filemgmt.tcl create mode 100644 gui/gpgui.tcl create mode 100644 gui/graph_partitioning.tcl create mode 100755 gui/help.tcl create mode 100755 gui/icons/Makefile.am create mode 100644 gui/icons/core-gui.desktop create mode 100644 gui/icons/core-gui.xpm create mode 100755 gui/icons/normal/antenna.gif create mode 100755 gui/icons/normal/ap.gif create mode 100644 gui/icons/normal/core-icon.png create mode 100644 gui/icons/normal/core-icon.xbm create mode 100644 gui/icons/normal/core-logo-275x75.gif create mode 100644 gui/icons/normal/document-properties.gif create mode 100755 gui/icons/normal/gps-diagram.xbm create mode 100644 gui/icons/normal/host.gif create mode 100644 gui/icons/normal/hub.gif create mode 100644 gui/icons/normal/lanswitch.gif create mode 100755 gui/icons/normal/mdr.gif create mode 100644 gui/icons/normal/oval.gif create mode 100644 gui/icons/normal/pc.gif create mode 100644 gui/icons/normal/rj45.gif create mode 100644 gui/icons/normal/router.gif create mode 100644 gui/icons/normal/router_black.gif create mode 100644 gui/icons/normal/router_green.gif create mode 100755 gui/icons/normal/router_purple.gif create mode 100644 gui/icons/normal/router_red.gif create mode 100755 gui/icons/normal/router_yellow.gif create mode 100644 gui/icons/normal/simple.xbm create mode 100644 gui/icons/normal/text.gif create mode 100644 gui/icons/normal/thumb-unknown.gif create mode 100644 gui/icons/normal/tunnel.gif create mode 100644 gui/icons/normal/wlan.gif create mode 100755 gui/icons/normal/xen.gif create mode 100644 gui/icons/svg/ap.svg create mode 100644 gui/icons/svg/cel.svg create mode 100644 gui/icons/svg/hub.svg create mode 100644 gui/icons/svg/lanswitch.svg create mode 100644 gui/icons/svg/mdr.svg create mode 100644 gui/icons/svg/otr.svg create mode 100644 gui/icons/svg/rj45.svg create mode 100644 gui/icons/svg/router.svg create mode 100644 gui/icons/svg/router_black.svg create mode 100644 gui/icons/svg/router_green.svg create mode 100644 gui/icons/svg/router_purple.svg create mode 100644 gui/icons/svg/router_red.svg create mode 100644 gui/icons/svg/router_yellow.svg create mode 100644 gui/icons/svg/start.svg create mode 100644 gui/icons/svg/tunnel.svg create mode 100644 gui/icons/svg/vlan.svg create mode 100644 gui/icons/svg/xen.svg create mode 100755 gui/icons/tiny/ap.gif create mode 100644 gui/icons/tiny/arrow.down.gif create mode 100644 gui/icons/tiny/arrow.gif create mode 100644 gui/icons/tiny/arrow.up.gif create mode 100644 gui/icons/tiny/blank.gif create mode 100644 gui/icons/tiny/button.play.gif create mode 100644 gui/icons/tiny/button.stop.gif create mode 100755 gui/icons/tiny/cel.gif create mode 100644 gui/icons/tiny/delete.gif create mode 100644 gui/icons/tiny/document-new.gif create mode 100644 gui/icons/tiny/document-properties.gif create mode 100644 gui/icons/tiny/document-save.gif create mode 100644 gui/icons/tiny/edit-delete.gif create mode 100755 gui/icons/tiny/eraser.gif create mode 100644 gui/icons/tiny/fileopen.gif create mode 100644 gui/icons/tiny/folder.gif create mode 100644 gui/icons/tiny/host.gif create mode 100644 gui/icons/tiny/hub.gif create mode 100644 gui/icons/tiny/lanswitch.gif create mode 100644 gui/icons/tiny/link.gif create mode 100644 gui/icons/tiny/marker.gif create mode 100755 gui/icons/tiny/mdr.gif create mode 100644 gui/icons/tiny/mobility.gif create mode 100644 gui/icons/tiny/moboff.gif create mode 100755 gui/icons/tiny/observe.gif create mode 100644 gui/icons/tiny/oval.gif create mode 100644 gui/icons/tiny/pc.gif create mode 100644 gui/icons/tiny/ping.gif create mode 100755 gui/icons/tiny/plot.gif create mode 100644 gui/icons/tiny/rectangle.gif create mode 100644 gui/icons/tiny/rj45.gif create mode 100644 gui/icons/tiny/router.gif create mode 100755 gui/icons/tiny/router_black.gif create mode 100755 gui/icons/tiny/router_green.gif create mode 100755 gui/icons/tiny/router_purple.gif create mode 100755 gui/icons/tiny/router_red.gif create mode 100755 gui/icons/tiny/router_yellow.gif create mode 100644 gui/icons/tiny/run.gif create mode 100755 gui/icons/tiny/script_pause.gif create mode 100755 gui/icons/tiny/script_play.gif create mode 100755 gui/icons/tiny/script_stop.gif create mode 100644 gui/icons/tiny/select.gif create mode 100644 gui/icons/tiny/start.gif create mode 100644 gui/icons/tiny/stock_connect.gif create mode 100644 gui/icons/tiny/stock_disconnect.gif create mode 100644 gui/icons/tiny/stop.gif create mode 100644 gui/icons/tiny/text.gif create mode 100644 gui/icons/tiny/trace.gif create mode 100644 gui/icons/tiny/tunnel.gif create mode 100644 gui/icons/tiny/twonode.gif create mode 100644 gui/icons/tiny/view-refresh.gif create mode 100644 gui/icons/tiny/wlan.gif create mode 100755 gui/icons/tiny/xen.gif create mode 100755 gui/initgui.tcl create mode 100755 gui/ipv4.tcl create mode 100755 gui/ipv6.tcl create mode 100755 gui/linkcfg.tcl create mode 100755 gui/mobility.tcl create mode 100755 gui/nodecfg.tcl create mode 100644 gui/nodes.tcl create mode 100755 gui/ns2imunes.tcl create mode 100644 gui/plugins.tcl create mode 100644 gui/services.tcl create mode 100755 gui/tooltips.tcl create mode 100644 gui/topogen.tcl create mode 100644 gui/traffic.tcl create mode 100644 gui/util.tcl create mode 100644 gui/version.tcl.in create mode 100755 gui/widget.tcl create mode 100755 gui/wlan.tcl create mode 100755 gui/wlanscript.tcl create mode 100644 kernel/core-kernel-2.6.38/Makefile create mode 100644 kernel/core-kernel-2.6.38/README.txt create mode 100644 kernel/core-kernel-2.6.38/config.core create mode 100644 kernel/core-kernel-2.6.38/patches/00-linux-2.6.38.flow-cache.patch create mode 100644 kernel/core-kernel-2.6.38/patches/00-linux-2.6.38.ifindex.patch create mode 100644 kernel/core-kernel-2.6.38/patches/00-linux-2.6.38.nfnetlink.patch create mode 100644 kernel/core-kernel-3.0/Makefile create mode 100644 kernel/core-kernel-3.0/README.txt create mode 100644 kernel/core-kernel-3.0/config.core create mode 100644 kernel/core-kernel-3.0/patches/00-linux-3.0.flow-cache.patch create mode 100644 kernel/core-kernel-3.0/patches/00-linux-3.0.ifindex.patch create mode 100644 kernel/core-kernel-3.0/patches/00-linux-3.0.nfnetlink_queue.patch create mode 100644 kernel/core-kernel-3.0/patches/01-linux-3.0.nfnetlink_queue.patch create mode 100644 kernel/core-kernel-3.2/Makefile create mode 100644 kernel/core-kernel-3.2/README.txt create mode 100644 kernel/core-kernel-3.2/config.core create mode 100644 kernel/core-kernel-3.2/patches/00-linux-3.2.ifindex.patch create mode 100644 kernel/core-kernel-3.2/patches/00-linux-3.2.nfnetlink_queue.patch create mode 100644 kernel/core-kernel-3.2/patches/01-linux-3.2.nfnetlink_queue.patch create mode 100644 kernel/core-kernel-3.5/Makefile create mode 100644 kernel/core-kernel-3.5/config.core create mode 100644 kernel/core-kernel-3.5/patches/00-ifindex.patch create mode 100644 kernel/core-kernel-3.5/patches/00-nfnetlink_queue.patch create mode 100644 kernel/core-kernel-3.5/patches/01-nfnetlink_queue.patch create mode 100644 kernel/core-kernel-3.8/Makefile create mode 100644 kernel/core-kernel-3.8/config.core create mode 100644 kernel/core-kernel-3.8/patches/00-ifindex.patch create mode 100644 kernel/core-kernel-3.8/patches/00-nfnetlink_queue.patch create mode 100644 kernel/core-kernel-3.8/patches/01-nfnetlink_queue.patch create mode 100644 kernel/freebsd/4.11-R-CORE.diff create mode 100644 kernel/freebsd/README.txt create mode 100644 kernel/freebsd/freebsd7-config-CORE create mode 100644 kernel/freebsd/freebsd7-config-COREDEBUG create mode 100644 kernel/freebsd/freebsd8-config-CORE create mode 100644 kernel/freebsd/imunes-8.0-RELEASE.diff create mode 100644 kernel/freebsd/ng_pipe/Makefile create mode 100644 kernel/freebsd/ng_pipe/README create mode 100644 kernel/freebsd/ng_pipe/ng_pipe.c create mode 100644 kernel/freebsd/ng_pipe/ng_pipe.h create mode 100644 kernel/freebsd/ng_pipe/ng_pipe_freebsd4.c create mode 100644 kernel/freebsd/ng_wlan/Makefile create mode 100644 kernel/freebsd/ng_wlan/README create mode 100644 kernel/freebsd/ng_wlan/ng_wlan.c create mode 100644 kernel/freebsd/ng_wlan/ng_wlan.h create mode 100644 kernel/freebsd/ng_wlan/ng_wlan_tag.h create mode 100644 kernel/freebsd/symlinks-8.1-RELEASE.diff create mode 100644 kernel/freebsd/vimage/Makefile create mode 100644 kernel/freebsd/vimage/vimage.8 create mode 100644 kernel/freebsd/vimage/vimage.c create mode 100644 kernel/freebsd/vimage_7-CORE.diff create mode 100755 packaging/bsd/core-kernel-deinstall-4.11.sh create mode 100755 packaging/bsd/core-kernel-deinstall-8.x.sh create mode 100755 packaging/bsd/core-kernel-pkgcreate.sh create mode 100755 packaging/bsd/core-kernel-preinstall-4.11.sh create mode 100755 packaging/bsd/core-kernel-preinstall-8.x.sh create mode 100644 packaging/bsd/core-kernel.pkgdesc create mode 100644 packaging/bsd/core-kernel.pkgdesclong create mode 100755 packaging/bsd/core-pkgcreate.sh create mode 100644 packaging/bsd/core.pkgdesc create mode 100644 packaging/bsd/core.pkgdesclong create mode 100644 packaging/deb/changelog create mode 100644 packaging/deb/compat create mode 100644 packaging/deb/control create mode 100644 packaging/deb/copyright create mode 100644 packaging/deb/core-daemon.install.in create mode 100644 packaging/deb/core-gui.install.in create mode 100644 packaging/deb/core.postrm create mode 100755 packaging/deb/rules create mode 100644 packaging/rpm/core.spec.in create mode 100755 packaging/rpm/specfiles.sh create mode 100755 scripts/Makefile.am create mode 100755 scripts/core-daemon-init.d create mode 100755 scripts/core-daemon-init.d-SUSE create mode 100755 scripts/core-daemon-rc.d create mode 100644 scripts/core-daemon.service create mode 100755 scripts/perf/Makefile.am create mode 100644 scripts/perf/configuration_hook.sh create mode 100644 scripts/perf/datacollect_hook.sh create mode 100644 scripts/perf/perflogserver.conf create mode 100755 scripts/perf/perflogserver.py create mode 100644 scripts/perf/perflogstart.sh create mode 100644 scripts/perf/perflogstop.sh create mode 100644 scripts/perf/sessiondatacollect.sh create mode 100644 scripts/perf/timesyncstart.sh create mode 100644 scripts/perf/timesyncstop.sh create mode 100755 scripts/xen/Makefile.am create mode 100755 scripts/xen/vif-core diff --git a/Changelog b/Changelog new file mode 100644 index 00000000..9d116ad7 --- /dev/null +++ b/Changelog @@ -0,0 +1,194 @@ +2013-08-12 CORE 4.6 + + * NOTE: cored is now core-daemon, and core is now core-gui (for Debian + acceptance) + * NOTE: /etc/init.d/core is now /etc/init.d/core-daemon (for insserv + compatibility) + * EMANE: + - don't start EMANE locally if no local NEMs + - EMANE poststartup() to re-transmit location events during initialization + - added debug port to EMANE options + - added a basic EMANE 802.11 CORE Python script example + - expose transport XML block generation to EmaneModels + - expose NEM entry to the EmaneModel so it can be overridden by a model + - add the control interface bridge prior to starting EMANE, as some models may + - depend on the controlnet functionality + - added EMANE model to CORE converter + - parse lat/long/alt from node messages, for moving nodes using command-line + - fix bug #196 incorrect distance when traversing UTM zones + + * GUI: + - added Cut, Copy, and Paste options to the Edit menu + - paste will copy selected services and take care of node and interface + - renumbering + - implement Edit > Find dialog for searching nodes and links + - when copying existing file for a service, perform string replacement of: + - "~", "%SESSION%", "%SESSION_DIR%", "%SESSION_USER%", "%NODE%", "%NODENAME%" + - use CORE_DATA_DIR insteadof LIBDIR + - fix Adjacency Widget to work with OSPFv2 only networks + + * BUILD: + - build/packaging improvements for inclusion on Debian + - fix error when running scenario with a mobility script in batch mode + - include Linux kernel patches for 3.8 + - renamed core-cleanup.sh to core-cleanup for Debian conformance + - don't always generate man pages from Makefile; new manpages for + coresendmsg and core-daemon + + * BUGFIXES: + - don't auto-assign IPv4/IPv6 addresses when none received in Link Messages (session reconnect) + - fixed lock view + - fix GUI spinbox errors for Tk 8.5.8 (RHEL/CentOS 6.2) + - fix broker node count for distributed session entering the RUNTIME state when + - (non-EMANE) WLANs or GreTapBridges are involved; + - fix "file exists" error message when distributed session number is re-used + - and servers file is written + - fix bug #194 configuration dialog too long, make dialog scrollable/resizable + - allow float values for loss and duplicates percent + - fix the following bugs: 166, 172, 177, 178, 192, 194, 196, 201, 206, 210, 212, 213, 214, 221 + +2013-04-13 CORE 4.5 + + * GUI: + - improved behavior when starting GUI without daemon, or using File New after connection with daemon is lost + - fix various GUI issues when reconnecting to a session + - support 3D GUI via output to SDT3D + - added "Execute Python script..." entry to the File Menu + - support user-defined terminal program instead of hard-coded xterm + - added session options for "enable RJ45s", "preserve session dir" + - added buttons to the IP Addresses dialog for removing all/selected IPv4/IPv6 + - allow sessions with multiple canvases to enter RUNTIME state + - added "--addons" startup mode to pass control to code included from addons dir + - added "Locked" entry to View menu to prevent moving items + - use currently selected node type when invoking a topology generator + - updated throughput plots with resizing, color picker, plot labels, locked scales, and save/load plot configuration with imn file + - improved session dialog + * EMANE: + - EMANE 0.8.1 support with backwards-compatibility for 0.7.4 + - extend CommEffect model to generate CommEffect events upon receipt of Link Messages having link effects + * Services: + - updated FTP service with root directory for anonymous users + - added HTTP, PCAP, BIRD, RADVD, and Babel services + - support copying existing files instead of always generating them + - added "Services..." entry to node right-click menu + - added "View" button for side-by-side comparison when copying customized config files + - updated Quagga daemons to wait for zebra.vty VTY file before starting + * General: + - XML import and export + - renamed "cored.py" to "cored", "coresendmsg.py" to "coresendmsg" + - code reorganization and clean-up + - updated XML export to write NetworkPlan, MotionPlan, and ServicePlan within a Scenario tag, added new "Save As XML..." File menu entry + - added script_start/pause/stop options to Ns2ScriptedMobility + - "python" source sub-directory renamed to "daemon" + - added "cored -e" option to execute a Python script, adding its session to the active sessions list, allowing for GUI connection + - support comma-separated list for custom_services_dir in core.conf file + - updated kernel patches for Linux kernel 3.5 + - support RFC 6164-style IPv6 /127 addressing + * ns-3: + - integrate ns-3 node location between CORE and ns-3 simulation + - added ns-3 random walk mobility example + - updated ns-3 Wifi example to allow GUI connection and moving of nodes + * fixed the following bugs: 54, 103, 111, 136, 145, 153, 157, 160, 161, 162, 164, 165, 168, 170, 171, 173, 174, 176, 184, 190, 193 + +2012-09-25 CORE 4.4 + + * GUI: + - real-time bandwidth plotting tool + - added Wireshark and tshark right-click menu items + - X,Y coordinates shown in the status bar + - updated GUI attribute option to link messages for changing color/width/dash + - added sample IPsec and VPN scenarios, how many nodes script + - added jitter parameter to WLANs + - renamed Experiment menu to Session menu, added session options + - use 'key=value' configuration for services, EMANE models, WLAN models, etc. + - save only service values that have been customized + - copy service parameters from one customized service to another + - right-click menu to start/stop/restart each service + * EMANE: + - EMANE 0.7.4 support + - added support for EMANE CommEffect model and Comm Effect controller GUI + - added support for EMANE Raw Transport when using RJ45 devices + * Services: + - improved service customization; allow a service to define custom Tcl tab + - added vtysh.conf for Quagga service to support 'write mem' + - support scheduled events and services that start N seconds after runtime + - added UCARP service + * Documentation: + - converted the CORE manual to reStructuredText using Sphinx; added Python docs + * General: + - Python code reorganization + - improved cored.py thread locking + - merged xen branch into trunk + - added an event queue to a session with notion of time zero + - added UDP support to cored.py + - use UDP by default in coresendmsg.py; added '-H' option to print examples + - enter a bash shell by default when running vcmd with no arguments + - fixes to distributed emulation entering runtime state + - write 'nodes' file upon session startup + - make session number and other attributes available in environment + - support /etc/core/environment and ~/.core/environment files + - added Ns2ScriptedMobility model to Python, removed from the GUI + - namespace nodes mount a private /sys + + - fixed the following bugs: 80, 81, 84, 99, 104, 109, 110, 122, 124, 131, 133, 134, 135, 137, 140, 143, 144, 146, 147, 151, 154, 155 + +2012-03-07 CORE 4.3 + + * EMANE 0.7.2 and 0.7.3 support + * hook scripts: customize actions at any of six different session states + * Check Emulation Light (CEL) exception feedback system + * added FTP and XORP services, and service validate commands + * services can flag when customization is required + * Python classes to support ns-3 simulation experiments + * write state, node X,Y position, and servers to pycore session dir + * removed over 9,000 lines of unused GUI code + * performance monitoring script + * batch mode improvements and --closebatch option + * export session to EmulationScript XML files + * basic range model moved from GUI to Python, supports 3D coordinates + * improved WLAN dialog with tabs + * added PhysicalNode class for joining real nodes with emulated networks + * fixed the following bugs: 50, 75, 76, 79, 82, 83, 85, 86, 89, 90, 92, 94, 96, 98, 100, 112, 113, 116, 119, 120 + +2011-08-19 CORE 4.2 + + * EMANE 0.7.1 support + - support for Bypass model, Universal PHY, logging, realtime + * configurable MAC addresses + * control interfaces (backchannel between node and host) + * service customization dialog improved (tabbed) + * new testing scripts for MDR and EMANE performance testing + * improved upgrading of old imn files + * new coresendmsg.py utility (deprecates libcoreapi and coreapisend) + * new security services, custom service becomes UserDefined + * new services and Python scripting chapters in manual + * fixes to distributed emulation, linking tunnels/RJ45s with WLANs/hubs/switches + * fixed the following bugs: 18, 32, 34, 38, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 52, 53, 55, 57, 58, 60, 62, 64, 65, 66, 68, 71, 72, 74 + +2011-01-05 CORE 4.1 + * new icons for toolbars and nodes + * node services introduced, node models deprecated + * customizable node types + * traffic flow editor with MGEN support + * user configs moved from /etc/core/`*` to ~/.core/ + * allocate addresses from custom IPv4/IPv6 prefixes + * distributed emulation using GRE tunnels + * FreeBSD 8.1 now uses cored.py + * EMANE 0.6.4 support + * numerous bugfixes + +2010-08-17 CORE 4.0 + * Python framework with Linux network namespace (netns) support (Linux netns is now the primary supported platform) + * ability to close the GUI and later reconnect to a running session (netns only) + * EMANE integration (netns only) + * new topology generators, host file generator + * user-editable Observer Widgets + * use of /etc/core instead of /usr/local/etc/core + * various bugfixes + +2009-09-15 CORE 3.5 + +2009-06-23 CORE 3.4 + +2009-03-11 CORE 3.3 + diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..3f375917 --- /dev/null +++ b/LICENSE @@ -0,0 +1,22 @@ +Copyright (c) 2005-2013, the Boeing Company. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF +THE POSSIBILITY OF SUCH DAMAGE. diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 00000000..96f498d9 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,71 @@ +# CORE +# (c)2010-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +# Top-level Makefile for CORE project. +# + +if WANT_DOCS + DOCS = doc +endif +if WANT_GUI + GUI = gui +endif +if WANT_DAEMON + DAEMON = scripts daemon +endif + +# keep docs last due to dependencies on binaries +SUBDIRS = ${GUI} ${DAEMON} ${DOCS} + +ACLOCAL_AMFLAGS = -I config + +# extra files to include with distribution tarball +EXTRA_DIST = bootstrap.sh LICENSE README-Xen Changelog kernel \ + packaging/bsd \ + packaging/deb/compat \ + packaging/deb/copyright \ + packaging/deb/changelog \ + packaging/deb/core.postrm \ + packaging/deb/rules \ + packaging/deb/control \ + packaging/deb/core-daemon.install.in \ + packaging/deb/core-gui.install.in \ + packaging/rpm/core.spec.in \ + packaging/rpm/specfiles.sh + +DISTCLEAN_TARGETS = aclocal.m4 config.h.in + +# extra cruft to remove +DISTCLEANFILES = aclocal.m4 config.h.in configure Makefile.in + +# don't include svn dirs in source tarball +dist-hook: + rm -rf `find $(distdir)/kernel -name .svn` + rm -rf $(distdir)/packaging/bsd/.svn + +# build a source RPM using Fedora ~/rpmbuild dirs +.PHONY: rpm +rpm: + rpmdev-setuptree + cp -afv core-*.tar.gz ~/rpmbuild/SOURCES + cp -afv packaging/rpm/core.spec ~/rpmbuild/SPECS + rpmbuild -bs ~/rpmbuild/SPECS/core.spec + +# build a Ubuntu deb package using CDBS +.PHONY: deb +deb: + rm -rf debian + mkdir -p debian + cp -vf packaging/deb/* debian/ + @echo "First create source archive with: dpkg-source -b core-4.5" + @echo "Then build with: pbuilder-dist precise i386 build core*.dsc" + +.PHONY: core-restart +core-restart: + /etc/init.d/core-daemon stop + daemon/sbin/core-cleanup + rm -f /var/log/core-daemon.log + /etc/init.d/core-daemon start diff --git a/README b/README new file mode 100644 index 00000000..5f08b620 --- /dev/null +++ b/README @@ -0,0 +1,61 @@ + +CORE: Common Open Research Emulator +Copyright (c)2005-2013 the Boeing Company. +See the LICENSE file included in this distribution. + +== ABOUT ======================================================================= +CORE is a tool for emulating networks using a GUI or Python scripts. The CORE +project site (1) is a good source of introductory information, with a manual, +screenshots, and demos about this software. Also a supplemental +Google Code page (2) hosts a wiki, blog, bug tracker, and quickstart guide. + + 1. http://cs.itd.nrl.navy.mil/work/core/ + 2. http://code.google.com/p/coreemu/ + + +== BUILDING CORE =============================================================== + +To build this software you should use: + + ./bootstrap.sh + ./configure + make + sudo make install + +Here is what is installed with 'make install': + + /usr/local/bin/core-gui + /usr/local/sbin/core-daemon + /usr/local/sbin/[vcmd, vnoded, coresendmsg, core-cleanup.sh] + /usr/local/lib/core/* + /usr/local/share/core/* + /usr/local/lib/python2.6/dist-packages/core/* + /usr/local/lib/python2.6/dist-packages/[netns,vcmd].so + /etc/core/* + /etc/init.d/core + +See the manual for the software required for building CORE. + + +== RUNNING CORE ================================================================ + +First start the CORE services: + + sudo /etc/init.d/core-daemon start + +This automatically runs the core-daemon program. +Assuming the GUI is in your PATH, run the CORE GUI by typing the following: + + core-gui + +This launches the CORE GUI. You do not need to run the GUI as root. + +== SUPPORT ===================================================================== + +If you have questions, comments, or trouble, please use the CORE mailing lists: +- core-users for general comments and questions + http://pf.itd.nrl.navy.mil/mailman/listinfo/core-users +- core-dev for bugs, compile errors, and other development issues + http://pf.itd.nrl.navy.mil/mailman/listinfo/core-dev + + diff --git a/README-Xen b/README-Xen new file mode 100644 index 00000000..80b742ba --- /dev/null +++ b/README-Xen @@ -0,0 +1,87 @@ +CORE Xen README + +This file describes the xen branch of the CORE development tree which enables +machines based on Xen domUs. When you edit node types, you are given the option +of changing the machine type (netns, physical, or xen) and the profile for +each node type. + +CORE will create each domU machine on the fly, having a bootable ISO image that +contains the root filesystem, and a special persitent area (/rtr/persistent) +using a LVM volume where configuration is stored. See the /etc/core/xen.conf +file for related settings here. + +INSTALLATION + +1. Tested under OpenSUSE 11.3 which allows installing a Xen dom0 during the + install process. + +2. Create an LVM volume group having enough free space available for CORE to + build logical volumes for domU nodes. The name of this group is set with the + 'vg_name=' option in /etc/core/xen.conf. (With 256M per persistent area, + 10GB would allow for 40 nodes.) + +3. To get libev-devel in OpenSUSE, use: + zypper ar http://download.opensuse.org/repositories/X11:/windowmanagers/openSUSE_11.3 WindowManagers + zypper install libev-devel + +4. In addition to the normal CORE dependencies + (see http://code.google.com/p/coreemu/wiki/Quickstart), pyparted-3.2 is used + when creating LVM partitions and decorator-3.3.0 is a dependency for + pyparted. The 'python setup.py install' and 'make install' need to be + performed on these source tarballs as no packages are available. + + tar xzf decorator-3.3.0.tar.gz + cd decorator-3.3.0 + python setup.py build + python setup.py install + + tar xzf pyparted-3.2.tar.gz + cd pyparted-3.2 + ./configure + make + make install + +5. These Xen parameters were used for dom0, by editing /boot/grub/menu.lst: + a) Add options to "kernel /xen.gz" line: + gnttab_max_nr_frames=128 dom0_mem=1G dom0_max_vcpus=2 dom0_vcpus_pin + b) Make Xen default boot by editing the "default" line with the + index for the Xen boot option. e.g. change "default 0" to "default 2" + Reboot to enable the Xen kernel. + +5. Run CORE's ./configure script as root to properly discover sbin binaries. + + tar xzf core-xen.tgz + cd core-xen + ./bootstrap.sh + ./configure + make + make install + +6. Put your ISO images in /opt/core-xen/iso-files and set the "iso_file=" + xen.conf option appropriately. + +7. Uncomment the controlnet entry in /etc/core/core.conf: + # establish a control backchannel for accessing nodes + controlnet = 172.16.0.0/24 + + This setting governs what IP addresses will be used for a control channel. + Given this default setting the host dom0 will have the address 172.16.0.254 + assigned to a bridge device; domU VMs will get interfaces joined to this + bridge, having addresses such as 172.16.0.1 for node n1, 172.16.0.2 for n2, + etc. + + When 'controlnet =' is unspecified in the core.conf file, double-clicking on + a node results in the 'xm console' method. A key mapping is set up so you + can press 'F1' then 'F2' to login as root. The key ctrl+']' detaches from the + console. Only one console is available per domU VM. + +8. When 'controlnet =' is specified, double-clicking on a node results in an + attempt to ssh to that node's control IP address. + Put a host RSA key for use on the domUs in /opt/core-xen/ssh: + + mkdir -p /opt/core-xen/ssh + ssh-keygen -t rsa -f /opt/core-xen/ssh/ssh_host_rsa_key + cp ~/.ssh/id_rsa.pub /opt/core-xen/ssh/authorized_keys + chmod 600 /opt/core-xen/ssh/authorized_keys + + diff --git a/bootstrap.sh b/bootstrap.sh new file mode 100755 index 00000000..d1c2f227 --- /dev/null +++ b/bootstrap.sh @@ -0,0 +1,48 @@ +#!/bin/sh +# +# (c)2010-2012 the Boeing Company +# +# author: Jeff Ahrenholz +# +# Bootstrap the autoconf system. +# + +if [ x$1 = x ]; then # PASS + echo "Bootstrapping the autoconf system..." +# echo " These autotools programs should be installed for this script to work:" +# echo " aclocal, libtoolize, autoheader, automake, autoconf" + echo "(Messages below about copying and installing files are normal.)" +elif [ x$1 = xclean ]; then # clean - take out the trash + echo "Cleaning up the autoconf mess..." + rm -rf autom4te.cache config BSDmakefile + exit 0; +else # help text + echo "usage: $0 [clean]" + echo -n " Use this script to bootstrap the autoconf build system prior to " + echo "running the " + echo " ./configure script." + exit 1; +fi + +# try to keep everything nice and tidy in ./config +if ! [ -d "config" ]; then + mkdir config +fi + +# on FreeBSD, discourage use of make +UNAME=`uname` +if [ x${UNAME} = xFreeBSD ]; then + echo "all:" > BSDmakefile + echo ' @echo "Please use GNU make instead by typing:"' >> BSDmakefile + echo ' @echo " gmake"' >> BSDmakefile + echo ' @echo ""' >> BSDmakefile +fi + +# bootstrapping +echo "(1/4) Running aclocal..." && aclocal -I config \ + && echo "(2/4) Running autoheader..." && autoheader \ + && echo "(3/4) Running automake..." \ + && automake --add-missing --copy --foreign \ + && echo "(4/4) Running autoconf..." && autoconf \ + && echo "" \ + && echo "You are now ready to run \"./configure\"." diff --git a/configure.ac b/configure.ac new file mode 100644 index 00000000..d3d9967a --- /dev/null +++ b/configure.ac @@ -0,0 +1,368 @@ +# +# Copyright (c) 2010-2013 the Boeing Company +# See the LICENSE file included in this distribution. +# +# CORE configure script +# +# author: Jeff Ahrenholz +# +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +# +# this defines the CORE version number, must be static for AC_INIT +# +AC_INIT(core, 4.5svn5, core-dev@pf.itd.nrl.navy.mil) +VERSION=$PACKAGE_VERSION +CORE_VERSION=$PACKAGE_VERSION +CORE_VERSION_DATE=20130816 +COREDPY_VERSION=$PACKAGE_VERSION + +# +# autoconf and automake initialization +# +AC_CONFIG_SRCDIR([daemon/src/version.h.in]) +AC_CONFIG_AUX_DIR(config) +AC_CONFIG_MACRO_DIR(config) +AC_CONFIG_HEADERS([config.h]) +AM_INIT_AUTOMAKE + +AC_SUBST(CORE_VERSION) +AC_SUBST(CORE_VERSION_DATE) +AC_SUBST(COREDPY_VERSION) + +# +# some of the following directory variables are not expanded at configure-time, +# so we have special checks to expand them +# + +# CORE GUI files in LIBDIR +# AC_PREFIX_DEFAULT is /usr/local, but not expanded yet +if test "x$prefix" = "xNONE" ; then + prefix="/usr/local" +fi +if test "$libdir" = "\${exec_prefix}/lib" ; then + libdir="${prefix}/lib" +fi +# this can be /usr/lib or /usr/lib64 +LIB_DIR="${libdir}" +# don't let the Tcl files install to /usr/lib64/core +CORE_LIB_DIR="${prefix}/lib/core" +AC_SUBST(LIB_DIR) +AC_SUBST(CORE_LIB_DIR) +SBINDIR="${prefix}/sbin" +AC_SUBST(SBINDIR) +BINDIR="${prefix}/bin" +AC_SUBST(BINDIR) + +# CORE daemon configuration file (core.conf) in CORE_CONF_DIR +if test "$sysconfdir" = "\${prefix}/etc" ; then + sysconfdir="/etc" + CORE_CONF_DIR="/etc/core" +else + CORE_CONF_DIR="$sysconfdir/core" +fi +AC_SUBST(CORE_CONF_DIR) +if test "$datarootdir" = "\${prefix}/share" ; then + datarootdir="${prefix}/share" +fi +CORE_DATA_DIR="$datarootdir/core" +AC_SUBST(CORE_DATA_DIR) + +# CORE GUI configuration files and preferences in CORE_GUI_CONF_DIR +# scenario files in ~/.core/configs/ +#AC_ARG_VAR(CORE_GUI_CONF_DIR, [GUI configuration directory.]) +AC_ARG_WITH([guiconfdir], + [AS_HELP_STRING([--with-guiconfdir=dir], + [specify GUI configuration directory])], + [CORE_GUI_CONF_DIR="$with_guiconfdir"], + [CORE_GUI_CONF_DIR="\${HOME}/.core"]) +AC_SUBST(CORE_GUI_CONF_DIR) +AC_ARG_ENABLE([gui], + [AS_HELP_STRING([--enable-gui[=ARG]], + [build and install the GUI (default is yes)])], + [], [enable_gui=yes]) +AC_SUBST(enable_gui) +AC_ARG_ENABLE([daemon], + [AS_HELP_STRING([--enable-daemon[=ARG]], + [build and install the daemon with Python modules + (default is yes)])], + [], [enable_daemon=yes]) +AC_SUBST(enable_daemon) +if test "x$enable_daemon" = "xno"; then + want_python=no + want_bsd=no + want_linux_netns=no +fi + +# CORE state files +if test "$localstatedir" = "\${prefix}/var" ; then + # use /var instead of /usr/local/var (/usr/local/var/log isn't standard) + CORE_STATE_DIR="/var" +else + CORE_STATE_DIR="$localstatedir" +fi +AC_SUBST(CORE_STATE_DIR) + +# default compiler flags +# _GNU_SOURCE is defined to get c99 defines for lrint() +CFLAGS="$CFLAGS -O3 -Werror -Wall -D_GNU_SOURCE" +# debug flags +#CFLAGS="$CFLAGS -g -Werror -Wall -D_GNU_SOURCE" + +# Checks for programs. +AC_PROG_AWK +AC_PROG_CC +AC_PROG_INSTALL +AC_PROG_MAKE_SET +AC_PROG_RANLIB + +AM_PATH_PYTHON(2.6, want_python=yes, want_python=no) +SEARCHPATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin" +# +# daemon dependencies +# +if test "x$enable_daemon" = "xyes" ; then + AC_CHECK_PROG(brctl_path, brctl, $as_dir, no, $SEARCHPATH) + AC_CHECK_PROG(sysctl_path, sysctl, $as_dir, no, $SEARCHPATH) + AC_CHECK_PROG(ebtables_path, ebtables, $as_dir, no, $SEARCHPATH) + AC_CHECK_PROG(ip_path, ip, $as_dir, no, $SEARCHPATH) + AC_CHECK_PROG(tc_path, tc, $as_dir, no, $SEARCHPATH) + AC_CHECK_PROG(ifconfig_path, ifconfig, $as_dir, no, $SEARCHPATH) + AC_CHECK_PROG(ngctl_path, ngctl, $as_dir, no, $SEARCHPATH) + AC_CHECK_PROG(vimage_path, vimage, $as_dir, no, $SEARCHPATH) + AC_CHECK_PROG(mount_path, mount, $as_dir, no, $SEARCHPATH) + AC_CHECK_PROG(umount_path, umount, $as_dir, no, $SEARCHPATH) + AC_CHECK_PROG(convert, convert, yes, no, $SEARCHPATH) +fi + +#AC_CHECK_PROG(dia, dia, yes, no) +AC_CHECK_PROG(help2man, help2man, yes, no, $SEARCHPATH) +if test "x$convert" = "xno" ; then + AC_MSG_WARN([Could not locate ImageMagick convert.]) + #want_docs_missing="convert" +fi +#if test "x$dia" = "xno" ; then +# AC_MSG_WARN([Could not locate dia.]) +# want_docs_missing="dia" +#fi +if test "x$help2man" = "xno" ; then + AC_MSG_WARN([Could not locate help2man.]) + want_docs_missing="$want_docs_missing help2man" +fi +if test "x$want_docs_missing" = "x" ; then + want_docs=yes +else + AC_MSG_WARN([Could not find required helper utilities (${want_docs_missing}) so the CORE documentation will not be built.]) + want_docs=no +fi + +#AC_PATH_PROGS(tcl_path, [tclsh tclsh8.5 tclsh8.4], no) +#if test "x$tcl_path" = "xno" ; then +# AC_MSG_ERROR([Could not locate tclsh. Please install Tcl/Tk.]) +#fi +#AC_PATH_PROGS(wish_path, [wish wish8.5 wish8.4], no) +#if test "x$wish_path" = "xno" ; then +# AC_MSG_ERROR([Could not locate wish. Please install Tcl/Tk.]) +#fi + +if test "x$enable_daemon" = "xyes" ; then + # Checks for libraries. + AC_CHECK_LIB([netgraph], [NgMkSockNode]) + + # Checks for header files. + AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h stdint.h stdlib.h string.h sys/ioctl.h sys/mount.h sys/socket.h sys/time.h termios.h unistd.h]) + + # Checks for typedefs, structures, and compiler characteristics. + AC_C_INLINE + AC_TYPE_INT32_T + AC_TYPE_PID_T + AC_TYPE_SIZE_T + AC_TYPE_SSIZE_T + AC_TYPE_UINT32_T + AC_TYPE_UINT8_T + + # Checks for library functions. + AC_FUNC_FORK + AC_FUNC_MALLOC + AC_FUNC_REALLOC + AC_CHECK_FUNCS([atexit dup2 gettimeofday memset socket strerror uname]) +fi + +# simple architecture detection +if test `uname -m` = "x86_64"; then + ARCH=amd64 +else + ARCH=i386 +fi +AC_MSG_RESULT([using architecture $ARCH]) +AC_SUBST(ARCH) + +# Host-specific detection +want_linux_netns=no +want_bsd=no +if test `uname -s` = "FreeBSD"; then + want_bsd=yes + AC_CHECK_PROGS(gmake) + # FreeBSD fix for linking libev port below + CFLAGS="$CFLAGS -L/usr/local/lib" +else + want_linux_netns=yes +fi +if test "x$want_python" = "xno"; then + want_bsd=no + want_linux_netns=no +fi + +if test "x$want_python" = "xyes"; then + CFLAGS_save=$CFLAGS + CPPFLAGS_save=$CPPFLAGS + if test "x$PYTHON_INCLUDE_DIR" = "x"; then + PYTHON_INCLUDE_DIR=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_python_inc()"` + fi + CFLAGS="-I$PYTHON_INCLUDE_DIR" + CPPFLAGS="-I$PYTHON_INCLUDE_DIR" + AC_CHECK_HEADERS([Python.h], [], + AC_MSG_ERROR([Python bindings require Python development headers (try installing your 'python-devel' or 'python-dev' package)])) + CFLAGS=$CFLAGS_save + CPPFLAGS=$CPPFLAGS_save + PKG_CHECK_MODULES(libev, libev, + AC_MSG_RESULT([found libev using pkgconfig OK]) + AC_SUBST(libev_CFLAGS) + AC_SUBST(libev_LIBS), + AC_MSG_RESULT([did not find libev using pkconfig...]) + AC_CHECK_LIB([ev], ev_set_allocator, + AC_MSG_RESULT([found libev OK]) + AC_SUBST(libev_CFLAGS) + AC_SUBST(libev_LIBS, [-lev]), + AC_MSG_ERROR([Python bindings require libev (try installing your 'libev-devel' or 'libev-dev' package)]))) +else + # Namespace support requires Python support + want_linux_netns=no +fi + +progs_missing="" +if test "x$want_linux_netns" = "xyes"; then + if test "x$brctl_path" = "xno" ; then + progs_missing="${progs_missing}brctl " + brctl_path="/usr/sbin" + AC_MSG_ERROR([Could not locate brctl (from bridge-utils package).]) + fi + if test "x$ebtables_path" = "xno" ; then + progs_missing="${progs_missing}ebtables " + ebtables_path="/sbin" + AC_MSG_ERROR([Could not locate ebtables (from ebtables package).]) + fi + if test "x$ip_path" = "xno" ; then + progs_missing="${progs_missing}ip " + ip_path="/sbin" + AC_MSG_ERROR([Could not locate ip (from iproute package).]) + fi + if test "x$tc_path" = "xno" ; then + progs_missing="${progs_missing}tc " + tc_path="/sbin" + AC_MSG_ERROR([Could not locate tc (from iproute package).]) + fi +fi +if test "x$want_bsd" = "xyes"; then + if test "x$ifconfig_path" = "xno" ; then + AC_MSG_ERROR([Could not locate the 'ifconfig' utility.]) + fi + if test "x$ngctl_path" = "xno" ; then + AC_MSG_ERROR([Could not locate the 'ngctl' utility.]) + fi + if test "x$vimage_path" = "xno" ; then + AC_MSG_ERROR([Could not locate the 'vimage' utility.]) + fi +fi + +AC_ARG_WITH([startup], + [AS_HELP_STRING([--with-startup=option], + [option=systemd,suse,none to install systemd/SUSE init scripts])], + [with_startup=$with_startup], + [with_startup=initd]) +AC_SUBST(with_startup) +AC_MSG_RESULT([using startup option $with_startup]) + +# Variable substitutions +AM_CONDITIONAL(WANT_GUI, test x$enable_gui = xyes) +AM_CONDITIONAL(WANT_DAEMON, test x$enable_daemon = xyes) +AM_CONDITIONAL(WANT_BSD, test x$want_bsd = xyes) +AM_CONDITIONAL(WANT_DOCS, test x$want_docs = xyes) +AM_CONDITIONAL(WANT_PYTHON, test x$want_python = xyes) +AM_CONDITIONAL(WANT_NETNS, test x$want_linux_netns = xyes) + +AM_CONDITIONAL(WANT_INITD, test x$with_startup = xinitd) +AM_CONDITIONAL(WANT_SYSTEMD, test x$with_startup = xsystemd) +AM_CONDITIONAL(WANT_SUSE, test x$with_startup = xsuse) + +if test $cross_compiling = no; then + AM_MISSING_PROG(HELP2MAN, help2man) +else + HELP2MAN=: +fi + + +# Output files +AC_CONFIG_FILES([Makefile + gui/core-gui + gui/version.tcl + gui/Makefile + gui/icons/Makefile + scripts/Makefile + scripts/perf/Makefile + scripts/xen/Makefile + doc/Makefile + doc/conf.py + doc/man/Makefile + doc/figures/Makefile + daemon/Makefile + daemon/src/Makefile + daemon/src/version.h + daemon/core/constants.py + daemon/ns3/Makefile + daemon/ns3/corens3/constants.py + daemon/doc/Makefile + daemon/doc/conf.py + packaging/deb/core-daemon.install + packaging/deb/core-gui.install + packaging/rpm/core.spec],) +AC_OUTPUT + +# Summary text +echo \ +"------------------------------------------------------------------------ +${PACKAGE_STRING} Configuration: + + Host System Type: ${host} + C Compiler and flags: ${CC} ${CFLAGS} + Install prefix: ${prefix} + Build GUI: ${enable_gui} + GUI path: ${CORE_LIB_DIR} + GUI config: ${CORE_GUI_CONF_DIR} + Daemon path: ${SBINDIR} + Daemon config: ${CORE_CONF_DIR} + Python modules: ${pythondir} + Logs: ${CORE_STATE_DIR}/log + +Features to build: + Python bindings: ${want_python} + Linux Namespaces emulation: ${want_linux_netns} + FreeBSD Jails emulation: ${want_bsd} + Documentation: ${want_docs} + +------------------------------------------------------------------------" +if test "x${want_bsd}" = "xyes" ; then + # TODO: more sophisticated checks of gmake vs make + echo ">>> NOTE: on FreeBSD you should use 'gmake' instead of 'make' +------------------------------------------------------------------------" +fi +if test "x${want_linux_netns}" = "xyes" ; then + echo "On this platform you should run core-gui as a normal user. +------------------------------------------------------------------------" +fi +if test "x${progs_missing}" != "x" ; then + echo ">>> NOTE: the following programs could not be found:" + echo " $progs_missing +------------------------------------------------------------------------" +fi diff --git a/daemon/CORE.e4p b/daemon/CORE.e4p new file mode 100644 index 00000000..abf05a3c --- /dev/null +++ b/daemon/CORE.e4p @@ -0,0 +1,223 @@ + + + + + + + en + Python + Console + + 4.0 + + + + setup.py + examples/netns/switchtest.py + examples/netns/ospfmanetmdrtest.py + examples/netns/switch.py + examples/netns/wlantest.py + examples/stopsession.py + src/setup.py + core/emane/__init__.py + core/emane/emane.py + core/emane/ieee80211abg.py + core/emane/rfpipe.py + core/emane/nodes.py + core/netns/vif.py + core/netns/vnet.py + core/netns/__init__.py + core/netns/vnode.py + core/netns/vnodeclient.py + core/netns/nodes.py + core/service.py + core/__init__.py + core/addons/__init__.py + core/broker.py + core/services/__init__.py + core/services/quagga.py + core/misc/LatLongUTMconversion.py + core/misc/__init__.py + core/misc/ipaddr.py + core/misc/quagga.py + core/misc/utils.py + core/pycore.py + core/coreobj.py + core/location.py + core/session.py + core/api/__init__.py + core/api/data.py + core/api/coreapi.py + core/services/nrl.py + core/services/utility.py + core/bsd/netgraph.py + core/bsd/__init__.py + core/bsd/nodes.py + core/bsd/vnet.py + core/bsd/vnode.py + core/xen/xen.py + core/xen/xenconfig.py + core/xen/__init__.py + examples/myservices/sample.py + examples/myservices/__init__.py + core/services/security.py + core/emane/universal.py + examples/netns/wlanemanetests.py + core/services/xorp.py + core/misc/xmlutils.py + core/mobility.py + core/phys/pnodes.py + core/phys/__init__.py + ns3/setup.py + ns3/corens3/__init__.py + ns3/corens3/constants.py + ns3/corens3/obj.py + ns3/examples/ns3wifi.py + ns3/examples/ns3lte.py + ns3/examples/ns3wimax.py + core/emane/commeffect.py + core/services/ucarp.py + core/emane/bypass.py + core/conf.py + core/misc/event.py + core/sdt.py + core/services/bird.py + examples/netns/basicrange.py + examples/netns/howmanynodes.py + sbin/core-daemon + sbin/coresendmsg + sbin/core-cleanup + sbin/core-xen-cleanup + ns3/examples/ns3wifirandomwalk.py + core/misc/utm.py + + + + + + + + + + + + + Subversion + + + + add + + + + + + + + checkout + + + + + + + + commit + + + + + + + + diff + + + + + + + + export + + + + + + + + global + + + + + + + + history + + + + + + + + log + + + + + + + + remove + + + + + + + + status + + + + + + + + tag + + + + + + + + update + + + + + + + + + + + + standardLayout + + + True + + + + + + + + + + + diff --git a/daemon/MANIFEST.in b/daemon/MANIFEST.in new file mode 100644 index 00000000..f5aa698b --- /dev/null +++ b/daemon/MANIFEST.in @@ -0,0 +1,4 @@ +recursive-include sbin *.sh *.py +include data/core.conf +recursive-include examples/netns *.py *.sh +recursive-exclude examples/netns *.pyc *.pyo diff --git a/daemon/Makefile.am b/daemon/Makefile.am new file mode 100755 index 00000000..34449264 --- /dev/null +++ b/daemon/Makefile.am @@ -0,0 +1,51 @@ +# CORE +# (c)2010-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +# Makefile for building netns components. +# + +if WANT_NETNS + SUBDIRS = src ns3 +endif + +# Python package build +noinst_SCRIPTS = build +build: + $(PYTHON) setup.py build + +# Python package install +install-exec-hook: + CORE_CONF_DIR=${DESTDIR}/${CORE_CONF_DIR} $(PYTHON) setup.py install --prefix=${DESTDIR}/${prefix} --install-purelib=${DESTDIR}/${pythondir} --install-platlib=${DESTDIR}/${pyexecdir} --no-compile + +# Python package uninstall +uninstall-hook: + rm -f ${SBINDIR}/core-daemon + rm -f ${SBINDIR}/coresendmsg + rm -f ${SBINDIR}/core-cleanup + rm -f ${SBINDIR}/core-xen-cleanup + rm -f ${pythondir}/core_python-${COREDPY_VERSION}-py${PYTHON_VERSION}.egg-info + rm -f ${pythondir}/core_python_netns-1.0-py${PYTHON_VERSION}.egg-info + rm -rf ${pythondir}/core + rm -rf ${prefix}/share/core + +# Python package cleanup +clean-local: + -rm -rf build + +# Python RPM package +rpm: + $(PYTHON) setup.py bdist_rpm + +# because we include entire directories with EXTRA_DIST, we need to clean up +# the source control files +dist-hook: + rm -rf `find $(distdir)/ -name .svn` `find $(distdir)/ -name '*.pyc'` + +DISTCLEANFILES = Makefile.in core/*.pyc MANIFEST doc/Makefile.in doc/Makefile \ + doc/conf.py core/addons/*.pyc + +# files to include with distribution tarball +EXTRA_DIST = setup.py MANIFEST.in CORE.e4p core data examples sbin doc diff --git a/daemon/core/__init__.py b/daemon/core/__init__.py new file mode 100644 index 00000000..58b68b5e --- /dev/null +++ b/daemon/core/__init__.py @@ -0,0 +1,23 @@ +# Copyright (c)2010-2012 the Boeing Company. +# See the LICENSE file included in this distribution. + +"""core + +Top-level Python package containing CORE components. + +See http://cs.itd.nrl.navy.mil/work/core/ and +http://code.google.com/p/coreemu/ for more information on CORE. + +Pieces can be imported individually, for example + + import core.netns.vnode + +or everything listed in __all__ can be imported using + + from core import * +""" + +__all__ = [] + +# Automatically import all add-ons listed in addons.__all__ +from addons import * diff --git a/daemon/core/addons/__init__.py b/daemon/core/addons/__init__.py new file mode 100644 index 00000000..1250143e --- /dev/null +++ b/daemon/core/addons/__init__.py @@ -0,0 +1,6 @@ +"""Optional add-ons + +Add on files can be put in this directory. Everything listed in +__all__ is automatically loaded by the main core module. +""" +__all__ = [] diff --git a/daemon/core/api/__init__.py b/daemon/core/api/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/daemon/core/api/coreapi.py b/daemon/core/api/coreapi.py new file mode 100644 index 00000000..d250451e --- /dev/null +++ b/daemon/core/api/coreapi.py @@ -0,0 +1,630 @@ +# +# CORE +# Copyright (c)2010-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# authors: Tom Goff +# Jeff Ahrenholz +# +''' +coreapi.py: uses coreapi_data for Message and TLV types, and defines TLV data +types and objects used for parsing and building CORE API messages. +''' + +import struct + +from core.api.data import * +from core.misc.ipaddr import * + + +class CoreTlvData(object): + datafmt = None + datatype = None + padlen = None + + @classmethod + def pack(cls, value): + "return: (tlvlen, tlvdata)" + tmp = struct.pack(cls.datafmt, value) + return len(tmp) - cls.padlen, tmp + + @classmethod + def unpack(cls, data): + return struct.unpack(cls.datafmt, data)[0] + + @classmethod + def packstring(cls, strvalue): + return cls.pack(cls.fromstring(strvalue)) + + @classmethod + def fromstring(cls, s): + return cls.datatype(s) + +class CoreTlvDataObj(CoreTlvData): + @classmethod + def pack(cls, obj): + "return: (tlvlen, tlvdata)" + tmp = struct.pack(cls.datafmt, cls.getvalue(obj)) + return len(tmp) - cls.padlen, tmp + + @classmethod + def unpack(cls, data): + return cls.newobj(struct.unpack(cls.datafmt, data)[0]) + + @staticmethod + def getvalue(obj): + raise NotImplementedError + + @staticmethod + def newobj(obj): + raise NotImplementedError + +class CoreTlvDataUint16(CoreTlvData): + datafmt = "!H" + datatype = int + padlen = 0 + +class CoreTlvDataUint32(CoreTlvData): + datafmt = "!2xI" + datatype = int + padlen = 2 + +class CoreTlvDataUint64(CoreTlvData): + datafmt = "!2xQ" + datatype = long + padlen = 2 + +class CoreTlvDataString(CoreTlvData): + datatype = str + + @staticmethod + def pack(value): + if not isinstance(value, str): + raise ValueError, "value not a string: %s" % value + if len(value) < 256: + hdrsiz = CoreTlv.hdrsiz + else: + hdrsiz = CoreTlv.longhdrsiz + padlen = -(hdrsiz + len(value)) % 4 + return len(value), value + '\0' * padlen + + @staticmethod + def unpack(data): + return data.rstrip('\0') + +class CoreTlvDataUint16List(CoreTlvData): + ''' List of unsigned 16-bit values. + ''' + datatype = tuple + + @staticmethod + def pack(values): + if not isinstance(values, tuple): + raise ValueError, "value not a tuple: %s" % values + data = "" + for v in values: + data += struct.pack("!H", v) + padlen = -(CoreTlv.hdrsiz + len(data)) % 4 + return len(data), data + '\0' * padlen + + @staticmethod + def unpack(data): + datafmt = "!%dH" % (len(data)/2) + return struct.unpack(datafmt, data) + + @classmethod + def fromstring(cls, s): + return tuple(map(lambda(x): int(x), s.split())) + +class CoreTlvDataIPv4Addr(CoreTlvDataObj): + datafmt = "!2x4s" + datatype = IPAddr.fromstring + padlen = 2 + + @staticmethod + def getvalue(obj): + return obj.addr + + @staticmethod + def newobj(value): + return IPAddr(af = AF_INET, addr = value) + +class CoreTlvDataIPv6Addr(CoreTlvDataObj): + datafmt = "!16s2x" + datatype = IPAddr.fromstring + padlen = 2 + + @staticmethod + def getvalue(obj): + return obj.addr + + @staticmethod + def newobj(value): + return IPAddr(af = AF_INET6, addr = value) + +class CoreTlvDataMacAddr(CoreTlvDataObj): + datafmt = "!2x8s" + datatype = MacAddr.fromstring + padlen = 2 + + @staticmethod + def getvalue(obj): + return obj.addr + + @staticmethod + def newobj(value): + return MacAddr(addr = value[2:]) # only use 48 bits + +class CoreTlv(object): + hdrfmt = "!BB" + hdrsiz = struct.calcsize(hdrfmt) + + longhdrfmt = "!BBH" + longhdrsiz = struct.calcsize(longhdrfmt) + + tlvtypemap = {} + tlvdataclsmap = {} + + def __init__(self, tlvtype, tlvdata): + self.tlvtype = tlvtype + if tlvdata: + try: + self.value = self.tlvdataclsmap[self.tlvtype].unpack(tlvdata) + except KeyError: + self.value = tlvdata + else: + self.value = None + + @classmethod + def unpack(cls, data): + "parse data and return (tlv, remainingdata)" + tlvtype, tlvlen = struct.unpack(cls.hdrfmt, data[:cls.hdrsiz]) + hdrsiz = cls.hdrsiz + if tlvlen == 0: + tlvtype, zero, tlvlen = struct.unpack(cls.longhdrfmt, + data[:cls.longhdrsiz]) + hdrsiz = cls.longhdrsiz + tlvsiz = hdrsiz + tlvlen + tlvsiz += -tlvsiz % 4 # for 32-bit alignment + return cls(tlvtype, data[hdrsiz:tlvsiz]), data[tlvsiz:] + + @classmethod + def pack(cls, tlvtype, value): + try: + tlvlen, tlvdata = cls.tlvdataclsmap[tlvtype].pack(value) + except Exception, e: + raise ValueError, "TLV packing error type=%s: %s" % (tlvtype, e) + if tlvlen < 256: + hdr = struct.pack(cls.hdrfmt, tlvtype, tlvlen) + else: + hdr = struct.pack(cls.longhdrfmt, tlvtype, 0, tlvlen) + return hdr + tlvdata + + @classmethod + def packstring(cls, tlvtype, value): + return cls.pack(tlvtype, cls.tlvdataclsmap[tlvtype].fromstring(value)) + + def typestr(self): + try: + return self.tlvtypemap[self.tlvtype] + except KeyError: + return "unknown tlv type: %s" % str(self.tlvtype) + + def __str__(self): + return "%s " % \ + (self.__class__.__name__, self.typestr(), self.value) + +class CoreNodeTlv(CoreTlv): + tlvtypemap = node_tlvs + tlvdataclsmap = { + CORE_TLV_NODE_NUMBER: CoreTlvDataUint32, + CORE_TLV_NODE_TYPE: CoreTlvDataUint32, + CORE_TLV_NODE_NAME: CoreTlvDataString, + CORE_TLV_NODE_IPADDR: CoreTlvDataIPv4Addr, + CORE_TLV_NODE_MACADDR: CoreTlvDataMacAddr, + CORE_TLV_NODE_IP6ADDR: CoreTlvDataIPv6Addr, + CORE_TLV_NODE_MODEL: CoreTlvDataString, + CORE_TLV_NODE_EMUSRV: CoreTlvDataString, + CORE_TLV_NODE_SESSION: CoreTlvDataString, + CORE_TLV_NODE_XPOS: CoreTlvDataUint16, + CORE_TLV_NODE_YPOS: CoreTlvDataUint16, + CORE_TLV_NODE_CANVAS: CoreTlvDataUint16, + CORE_TLV_NODE_EMUID: CoreTlvDataUint32, + CORE_TLV_NODE_NETID: CoreTlvDataUint32, + CORE_TLV_NODE_SERVICES: CoreTlvDataString, + CORE_TLV_NODE_LAT: CoreTlvDataString, + CORE_TLV_NODE_LONG: CoreTlvDataString, + CORE_TLV_NODE_ALT: CoreTlvDataString, + CORE_TLV_NODE_ICON: CoreTlvDataString, + CORE_TLV_NODE_OPAQUE: CoreTlvDataString, + } + +class CoreLinkTlv(CoreTlv): + tlvtypemap = link_tlvs + tlvdataclsmap = { + CORE_TLV_LINK_N1NUMBER: CoreTlvDataUint32, + CORE_TLV_LINK_N2NUMBER: CoreTlvDataUint32, + CORE_TLV_LINK_DELAY: CoreTlvDataUint64, + CORE_TLV_LINK_BW: CoreTlvDataUint64, + CORE_TLV_LINK_PER: CoreTlvDataString, + CORE_TLV_LINK_DUP: CoreTlvDataString, + CORE_TLV_LINK_JITTER: CoreTlvDataUint32, + CORE_TLV_LINK_MER: CoreTlvDataUint16, + CORE_TLV_LINK_BURST: CoreTlvDataUint16, + CORE_TLV_LINK_SESSION: CoreTlvDataString, + CORE_TLV_LINK_MBURST: CoreTlvDataUint16, + CORE_TLV_LINK_TYPE: CoreTlvDataUint32, + CORE_TLV_LINK_GUIATTR: CoreTlvDataString, + CORE_TLV_LINK_EMUID: CoreTlvDataUint32, + CORE_TLV_LINK_NETID: CoreTlvDataUint32, + CORE_TLV_LINK_KEY: CoreTlvDataUint32, + CORE_TLV_LINK_IF1NUM: CoreTlvDataUint16, + CORE_TLV_LINK_IF1IP4: CoreTlvDataIPv4Addr, + CORE_TLV_LINK_IF1IP4MASK: CoreTlvDataUint16, + CORE_TLV_LINK_IF1MAC: CoreTlvDataMacAddr, + CORE_TLV_LINK_IF1IP6: CoreTlvDataIPv6Addr, + CORE_TLV_LINK_IF1IP6MASK: CoreTlvDataUint16, + CORE_TLV_LINK_IF2NUM: CoreTlvDataUint16, + CORE_TLV_LINK_IF2IP4: CoreTlvDataIPv4Addr, + CORE_TLV_LINK_IF2IP4MASK: CoreTlvDataUint16, + CORE_TLV_LINK_IF2MAC: CoreTlvDataMacAddr, + CORE_TLV_LINK_IF2IP6: CoreTlvDataIPv6Addr, + CORE_TLV_LINK_IF2IP6MASK: CoreTlvDataUint16, + CORE_TLV_LINK_OPAQUE: CoreTlvDataString, + } + +class CoreExecTlv(CoreTlv): + tlvtypemap = exec_tlvs + tlvdataclsmap = { + CORE_TLV_EXEC_NODE: CoreTlvDataUint32, + CORE_TLV_EXEC_NUM: CoreTlvDataUint32, + CORE_TLV_EXEC_TIME: CoreTlvDataUint32, + CORE_TLV_EXEC_CMD: CoreTlvDataString, + CORE_TLV_EXEC_RESULT: CoreTlvDataString, + CORE_TLV_EXEC_STATUS: CoreTlvDataUint32, + CORE_TLV_EXEC_SESSION: CoreTlvDataString, + } + +class CoreRegTlv(CoreTlv): + tlvtypemap = reg_tlvs + tlvdataclsmap = { + CORE_TLV_REG_WIRELESS: CoreTlvDataString, + CORE_TLV_REG_MOBILITY: CoreTlvDataString, + CORE_TLV_REG_UTILITY: CoreTlvDataString, + CORE_TLV_REG_EXECSRV: CoreTlvDataString, + CORE_TLV_REG_GUI: CoreTlvDataString, + CORE_TLV_REG_EMULSRV: CoreTlvDataString, + CORE_TLV_REG_SESSION: CoreTlvDataString, + } + +class CoreConfTlv(CoreTlv): + tlvtypemap = conf_tlvs + tlvdataclsmap = { + CORE_TLV_CONF_NODE: CoreTlvDataUint32, + CORE_TLV_CONF_OBJ: CoreTlvDataString, + CORE_TLV_CONF_TYPE: CoreTlvDataUint16, + CORE_TLV_CONF_DATA_TYPES: CoreTlvDataUint16List, + CORE_TLV_CONF_VALUES: CoreTlvDataString, + CORE_TLV_CONF_CAPTIONS: CoreTlvDataString, + CORE_TLV_CONF_BITMAP: CoreTlvDataString, + CORE_TLV_CONF_POSSIBLE_VALUES: CoreTlvDataString, + CORE_TLV_CONF_GROUPS: CoreTlvDataString, + CORE_TLV_CONF_SESSION: CoreTlvDataString, + CORE_TLV_CONF_NETID: CoreTlvDataUint32, + CORE_TLV_CONF_OPAQUE: CoreTlvDataString, + } + +class CoreFileTlv(CoreTlv): + tlvtypemap = file_tlvs + tlvdataclsmap = { + CORE_TLV_FILE_NODE: CoreTlvDataUint32, + CORE_TLV_FILE_NAME: CoreTlvDataString, + CORE_TLV_FILE_MODE: CoreTlvDataString, + CORE_TLV_FILE_NUM: CoreTlvDataUint16, + CORE_TLV_FILE_TYPE: CoreTlvDataString, + CORE_TLV_FILE_SRCNAME: CoreTlvDataString, + CORE_TLV_FILE_SESSION: CoreTlvDataString, + CORE_TLV_FILE_DATA: CoreTlvDataString, + CORE_TLV_FILE_CMPDATA: CoreTlvDataString, + } + +class CoreIfaceTlv(CoreTlv): + tlvtypemap = iface_tlvs + tlvdataclsmap = { + CORE_TLV_IFACE_NODE: CoreTlvDataUint32, + CORE_TLV_IFACE_NUM: CoreTlvDataUint16, + CORE_TLV_IFACE_NAME: CoreTlvDataString, + CORE_TLV_IFACE_IPADDR: CoreTlvDataIPv4Addr, + CORE_TLV_IFACE_MASK: CoreTlvDataUint16, + CORE_TLV_IFACE_MACADDR: CoreTlvDataMacAddr, + CORE_TLV_IFACE_IP6ADDR: CoreTlvDataIPv6Addr, + CORE_TLV_IFACE_IP6MASK: CoreTlvDataUint16, + CORE_TLV_IFACE_TYPE: CoreTlvDataUint16, + CORE_TLV_IFACE_SESSION: CoreTlvDataString, + CORE_TLV_IFACE_STATE: CoreTlvDataUint16, + CORE_TLV_IFACE_EMUID: CoreTlvDataUint32, + CORE_TLV_IFACE_NETID: CoreTlvDataUint32, + } + +class CoreEventTlv(CoreTlv): + tlvtypemap = event_tlvs + tlvdataclsmap = { + CORE_TLV_EVENT_NODE: CoreTlvDataUint32, + CORE_TLV_EVENT_TYPE: CoreTlvDataUint32, + CORE_TLV_EVENT_NAME: CoreTlvDataString, + CORE_TLV_EVENT_DATA: CoreTlvDataString, + CORE_TLV_EVENT_TIME: CoreTlvDataString, + CORE_TLV_EVENT_SESSION: CoreTlvDataString, + } + +class CoreSessionTlv(CoreTlv): + tlvtypemap = session_tlvs + tlvdataclsmap = { + CORE_TLV_SESS_NUMBER: CoreTlvDataString, + CORE_TLV_SESS_NAME: CoreTlvDataString, + CORE_TLV_SESS_FILE: CoreTlvDataString, + CORE_TLV_SESS_NODECOUNT: CoreTlvDataString, + CORE_TLV_SESS_DATE: CoreTlvDataString, + CORE_TLV_SESS_THUMB: CoreTlvDataString, + CORE_TLV_SESS_USER: CoreTlvDataString, + CORE_TLV_SESS_OPAQUE: CoreTlvDataString, + } + +class CoreExceptionTlv(CoreTlv): + tlvtypemap = exception_tlvs + tlvdataclsmap = { + CORE_TLV_EXCP_NODE: CoreTlvDataUint32, + CORE_TLV_EXCP_SESSION: CoreTlvDataString, + CORE_TLV_EXCP_LEVEL: CoreTlvDataUint16, + CORE_TLV_EXCP_SOURCE: CoreTlvDataString, + CORE_TLV_EXCP_DATE: CoreTlvDataString, + CORE_TLV_EXCP_TEXT: CoreTlvDataString, + CORE_TLV_EXCP_OPAQUE: CoreTlvDataString, + } + + +class CoreMessage(object): + hdrfmt = "!BBH" + hdrsiz = struct.calcsize(hdrfmt) + + msgtype = None + + flagmap = {} + + tlvcls = CoreTlv + + def __init__(self, flags, hdr, data): + self.rawmsg = hdr + data + self.flags = flags + self.tlvdata = {} + self.parsedata(data) + + @classmethod + def unpackhdr(cls, data): + "parse data and return (msgtype, msgflags, msglen)" + msgtype, msgflags, msglen = struct.unpack(cls.hdrfmt, data[:cls.hdrsiz]) + return msgtype, msgflags, msglen + + @classmethod + def pack(cls, msgflags, tlvdata): + hdr = struct.pack(cls.hdrfmt, cls.msgtype, msgflags, len(tlvdata)) + return hdr + tlvdata + + def addtlvdata(self, k, v): + if k in self.tlvdata: + raise KeyError, "key already exists: %s (val=%s)" % (k, v) + self.tlvdata[k] = v + + def gettlv(self, tlvtype): + if tlvtype in self.tlvdata: + return self.tlvdata[tlvtype] + else: + return None + + def parsedata(self, data): + while data: + tlv, data = self.tlvcls.unpack(data) + self.addtlvdata(tlv.tlvtype, tlv.value) + + def packtlvdata(self): + ''' Opposite of parsedata(). Return packed TLV data using + self.tlvdata dict. Used by repack(). + ''' + tlvdata = "" + keys = sorted(self.tlvdata.keys()) + for k in keys: + v = self.tlvdata[k] + tlvdata += self.tlvcls.pack(k, v) + return tlvdata + + def repack(self): + ''' Invoke after updating self.tlvdata[] to rebuild self.rawmsg. + Useful for modifying a message that has been parsed, before + sending the raw data again. + ''' + tlvdata = self.packtlvdata() + self.rawmsg = self.pack(self.flags, tlvdata) + + def typestr(self): + try: + return message_types[self.msgtype] + except KeyError: + return "unknown message type: %s" % str(self.msgtype) + + def flagstr(self): + msgflags = [] + flag = 1L + while True: + if (self.flags & flag): + try: + msgflags.append(self.flagmap[flag]) + except KeyError: + msgflags.append("0x%x" % flag) + flag <<= 1 + if not (self.flags & ~(flag - 1)): + break + return "0x%x <%s>" % (self.flags, " | ".join(msgflags)) + + def __str__(self): + tmp = "%s " % \ + (self.__class__.__name__, self.typestr(), self.flagstr()) + for k, v in self.tlvdata.iteritems(): + if k in self.tlvcls.tlvtypemap: + tlvtype = self.tlvcls.tlvtypemap[k] + else: + tlvtype = "tlv type %s" % k + tmp += "\n %s: %s" % (tlvtype, v) + return tmp + + def nodenumbers(self): + ''' Return a list of node numbers included in this message. + ''' + n = None + n2 = None + # not all messages have node numbers + if self.msgtype == CORE_API_NODE_MSG: + n = self.gettlv(CORE_TLV_NODE_NUMBER) + elif self.msgtype == CORE_API_LINK_MSG: + n = self.gettlv(CORE_TLV_LINK_N1NUMBER) + n2 = self.gettlv(CORE_TLV_LINK_N2NUMBER) + elif self.msgtype == CORE_API_EXEC_MSG: + n = self.gettlv(CORE_TLV_EXEC_NODE) + elif self.msgtype == CORE_API_CONF_MSG: + n = self.gettlv(CORE_TLV_CONF_NODE) + elif self.msgtype == CORE_API_FILE_MSG: + n = self.gettlv(CORE_TLV_FILE_NODE) + elif self.msgtype == CORE_API_IFACE_MSG: + n = self.gettlv(CORE_TLV_IFACE_NODE) + elif self.msgtype == CORE_API_EVENT_MSG: + n = self.gettlv(CORE_TLV_EVENT_NODE) + r = [] + if n is not None: + r.append(n) + if n2 is not None: + r.append(n2) + return r + + def sessionnumbers(self): + ''' Return a list of session numbers included in this message. + ''' + r = [] + if self.msgtype == CORE_API_SESS_MSG: + s = self.gettlv(CORE_TLV_SESS_NUMBER) + elif self.msgtype == CORE_API_EXCP_MSG: + s = self.gettlv(CORE_TLV_EXCP_SESSION) + else: + # All other messages share TLV number 0xA for the session number(s). + s = self.gettlv(CORE_TLV_NODE_SESSION) + if s is not None: + for sid in s.split('|'): + r.append(int(sid)) + return r + + +class CoreNodeMessage(CoreMessage): + msgtype = CORE_API_NODE_MSG + flagmap = message_flags + tlvcls = CoreNodeTlv + +class CoreLinkMessage(CoreMessage): + msgtype = CORE_API_LINK_MSG + flagmap = message_flags + tlvcls = CoreLinkTlv + +class CoreExecMessage(CoreMessage): + msgtype = CORE_API_EXEC_MSG + flagmap = message_flags + tlvcls = CoreExecTlv + +class CoreRegMessage(CoreMessage): + msgtype = CORE_API_REG_MSG + flagmap = message_flags + tlvcls = CoreRegTlv + +class CoreConfMessage(CoreMessage): + msgtype = CORE_API_CONF_MSG + flagmap = message_flags + tlvcls = CoreConfTlv + +class CoreFileMessage(CoreMessage): + msgtype = CORE_API_FILE_MSG + flagmap = message_flags + tlvcls = CoreFileTlv + +class CoreIfaceMessage(CoreMessage): + msgtype = CORE_API_IFACE_MSG + flagmap = message_flags + tlvcls = CoreIfaceTlv + +class CoreEventMessage(CoreMessage): + msgtype = CORE_API_EVENT_MSG + flagmap = message_flags + tlvcls = CoreEventTlv + +class CoreSessionMessage(CoreMessage): + msgtype = CORE_API_SESS_MSG + flagmap = message_flags + tlvcls = CoreSessionTlv + +class CoreExceptionMessage(CoreMessage): + msgtype = CORE_API_EXCP_MSG + flagmap = message_flags + tlvcls = CoreExceptionTlv + +msgclsmap = { + CORE_API_NODE_MSG: CoreNodeMessage, + CORE_API_LINK_MSG: CoreLinkMessage, + CORE_API_EXEC_MSG: CoreExecMessage, + CORE_API_REG_MSG: CoreRegMessage, + CORE_API_CONF_MSG: CoreConfMessage, + CORE_API_FILE_MSG: CoreFileMessage, + CORE_API_IFACE_MSG: CoreIfaceMessage, + CORE_API_EVENT_MSG: CoreEventMessage, + CORE_API_SESS_MSG: CoreSessionMessage, + CORE_API_EXCP_MSG: CoreExceptionMessage, +} + +def msg_class(msgtypeid): + global msgclsmap + return msgclsmap[msgtypeid] + +nodeclsmap = {} + +def add_node_class(name, nodetypeid, nodecls, change = False): + global nodeclsmap + if nodetypeid in nodeclsmap: + if not change: + raise ValueError, \ + "node class already exists for nodetypeid %s" % nodetypeid + nodeclsmap[nodetypeid] = nodecls + if nodetypeid not in node_types: + node_types[nodetypeid] = name + exec "%s = %s" % (name, nodetypeid) in globals() + elif name != node_types[nodetypeid]: + raise ValueError, "node type already exists for '%s'" % name + else: + pass + +def change_node_class(name, nodetypeid, nodecls): + return add_node_class(name, nodetypeid, nodecls, change = True) + +def node_class(nodetypeid): + global nodeclsmap + return nodeclsmap[nodetypeid] + +def str_to_list(s): + ''' Helper to convert pipe-delimited string ("a|b|c") into a list (a, b, c) + ''' + if s is None: + return None + return s.split("|") + +def state_name(n): + ''' Helper to convert state number into state name using event types. + ''' + if n in event_types: + eventname = event_types[n] + name = eventname.split('_')[2] + else: + name = "unknown" + return name diff --git a/daemon/core/api/data.py b/daemon/core/api/data.py new file mode 100644 index 00000000..a098cdb5 --- /dev/null +++ b/daemon/core/api/data.py @@ -0,0 +1,327 @@ +# +# CORE +# Copyright (c)2010-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Tom Goff +# +''' +data.py: constant definitions for the CORE API, enumerating the +different message and TLV types (these constants are also found in coreapi.h) +''' + +def enumdict(d): + for k, v in d.iteritems(): + exec "%s = %s" % (v, k) in globals() + +# Constants + +CORE_API_VER = "1.21" +CORE_API_PORT = 4038 + +# Message types + +message_types = { + 0x01: "CORE_API_NODE_MSG", + 0x02: "CORE_API_LINK_MSG", + 0x03: "CORE_API_EXEC_MSG", + 0x04: "CORE_API_REG_MSG", + 0x05: "CORE_API_CONF_MSG", + 0x06: "CORE_API_FILE_MSG", + 0x07: "CORE_API_IFACE_MSG", + 0x08: "CORE_API_EVENT_MSG", + 0x09: "CORE_API_SESS_MSG", + 0x0A: "CORE_API_EXCP_MSG", + 0x0B: "CORE_API_MSG_MAX", +} + +enumdict(message_types) + +# Generic Message Flags + +message_flags = { + 0x01: "CORE_API_ADD_FLAG", + 0x02: "CORE_API_DEL_FLAG", + 0x04: "CORE_API_CRI_FLAG", + 0x08: "CORE_API_LOC_FLAG", + 0x10: "CORE_API_STR_FLAG", + 0x20: "CORE_API_TXT_FLAG", + 0x40: "CORE_API_TTY_FLAG", +} + +enumdict(message_flags) + +# Node Message TLV Types + +node_tlvs = { + 0x01: "CORE_TLV_NODE_NUMBER", + 0x02: "CORE_TLV_NODE_TYPE", + 0x03: "CORE_TLV_NODE_NAME", + 0x04: "CORE_TLV_NODE_IPADDR", + 0x05: "CORE_TLV_NODE_MACADDR", + 0x06: "CORE_TLV_NODE_IP6ADDR", + 0x07: "CORE_TLV_NODE_MODEL", + 0x08: "CORE_TLV_NODE_EMUSRV", + 0x0A: "CORE_TLV_NODE_SESSION", + 0x20: "CORE_TLV_NODE_XPOS", + 0x21: "CORE_TLV_NODE_YPOS", + 0x22: "CORE_TLV_NODE_CANVAS", + 0x23: "CORE_TLV_NODE_EMUID", + 0x24: "CORE_TLV_NODE_NETID", + 0x25: "CORE_TLV_NODE_SERVICES", + 0x30: "CORE_TLV_NODE_LAT", + 0x31: "CORE_TLV_NODE_LONG", + 0x32: "CORE_TLV_NODE_ALT", + 0x42: "CORE_TLV_NODE_ICON", + 0x50: "CORE_TLV_NODE_OPAQUE", +} + +enumdict(node_tlvs) + +node_types = dict(enumerate([ + "CORE_NODE_DEF", + "CORE_NODE_PHYS", + "CORE_NODE_XEN", + "CORE_NODE_TBD", + "CORE_NODE_SWITCH", + "CORE_NODE_HUB", + "CORE_NODE_WLAN", + "CORE_NODE_RJ45", + "CORE_NODE_TUNNEL", + "CORE_NODE_KTUNNEL", + "CORE_NODE_EMANE", +])) + +enumdict(node_types) + +rj45_models = dict(enumerate([ + "RJ45_MODEL_LINKED", + "RJ45_MODEL_WIRELESS", + "RJ45_MODEL_INSTALLED", +])) + +enumdict(rj45_models) + +# Link Message TLV Types + +link_tlvs = { + 0x01: "CORE_TLV_LINK_N1NUMBER", + 0x02: "CORE_TLV_LINK_N2NUMBER", + 0x03: "CORE_TLV_LINK_DELAY", + 0x04: "CORE_TLV_LINK_BW", + 0x05: "CORE_TLV_LINK_PER", + 0x06: "CORE_TLV_LINK_DUP", + 0x07: "CORE_TLV_LINK_JITTER", + 0x08: "CORE_TLV_LINK_MER", + 0x09: "CORE_TLV_LINK_BURST", + CORE_TLV_NODE_SESSION: "CORE_TLV_LINK_SESSION", + 0x10: "CORE_TLV_LINK_MBURST", + 0x20: "CORE_TLV_LINK_TYPE", + 0x21: "CORE_TLV_LINK_GUIATTR", + 0x23: "CORE_TLV_LINK_EMUID", + 0x24: "CORE_TLV_LINK_NETID", + 0x25: "CORE_TLV_LINK_KEY", + 0x30: "CORE_TLV_LINK_IF1NUM", + 0x31: "CORE_TLV_LINK_IF1IP4", + 0x32: "CORE_TLV_LINK_IF1IP4MASK", + 0x33: "CORE_TLV_LINK_IF1MAC", + 0x34: "CORE_TLV_LINK_IF1IP6", + 0x35: "CORE_TLV_LINK_IF1IP6MASK", + 0x36: "CORE_TLV_LINK_IF2NUM", + 0x37: "CORE_TLV_LINK_IF2IP4", + 0x38: "CORE_TLV_LINK_IF2IP4MASK", + 0x39: "CORE_TLV_LINK_IF2MAC", + 0x40: "CORE_TLV_LINK_IF2IP6", + 0x41: "CORE_TLV_LINK_IF2IP6MASK", + 0x50: "CORE_TLV_LINK_OPAQUE", +} + +enumdict(link_tlvs) + +link_types = dict(enumerate([ + "CORE_LINK_WIRELESS", + "CORE_LINK_WIRED", +])) + +enumdict(link_types) + +# Execute Message TLV Types + +exec_tlvs = { + 0x01: "CORE_TLV_EXEC_NODE", + 0x02: "CORE_TLV_EXEC_NUM", + 0x03: "CORE_TLV_EXEC_TIME", + 0x04: "CORE_TLV_EXEC_CMD", + 0x05: "CORE_TLV_EXEC_RESULT", + 0x06: "CORE_TLV_EXEC_STATUS", + CORE_TLV_NODE_SESSION: "CORE_TLV_EXEC_SESSION", +} + +enumdict(exec_tlvs) + +# Register Message TLV Types + +reg_tlvs = { + 0x01: "CORE_TLV_REG_WIRELESS", + 0x02: "CORE_TLV_REG_MOBILITY", + 0x03: "CORE_TLV_REG_UTILITY", + 0x04: "CORE_TLV_REG_EXECSRV", + 0x05: "CORE_TLV_REG_GUI", + 0x06: "CORE_TLV_REG_EMULSRV", + CORE_TLV_NODE_SESSION: "CORE_TLV_REG_SESSION", +} + +enumdict(reg_tlvs) + +# Configuration Message TLV Types + +conf_tlvs = { + 0x01: "CORE_TLV_CONF_NODE", + 0x02: "CORE_TLV_CONF_OBJ", + 0x03: "CORE_TLV_CONF_TYPE", + 0x04: "CORE_TLV_CONF_DATA_TYPES", + 0x05: "CORE_TLV_CONF_VALUES", + 0x06: "CORE_TLV_CONF_CAPTIONS", + 0x07: "CORE_TLV_CONF_BITMAP", + 0x08: "CORE_TLV_CONF_POSSIBLE_VALUES", + 0x09: "CORE_TLV_CONF_GROUPS", + CORE_TLV_NODE_SESSION: "CORE_TLV_CONF_SESSION", + CORE_TLV_NODE_NETID: "CORE_TLV_CONF_NETID", + 0x50: "CORE_TLV_CONF_OPAQUE", +} + +enumdict(conf_tlvs) + +conf_flags = { + 0x00: "CONF_TYPE_FLAGS_NONE", + 0x01: "CONF_TYPE_FLAGS_REQUEST", + 0x02: "CONF_TYPE_FLAGS_UPDATE", + 0x03: "CONF_TYPE_FLAGS_RESET", +} + +enumdict(conf_flags) + +conf_data_types = { + 0x01: "CONF_DATA_TYPE_UINT8", + 0x02: "CONF_DATA_TYPE_UINT16", + 0x03: "CONF_DATA_TYPE_UINT32", + 0x04: "CONF_DATA_TYPE_UINT64", + 0x05: "CONF_DATA_TYPE_INT8", + 0x06: "CONF_DATA_TYPE_INT16", + 0x07: "CONF_DATA_TYPE_INT32", + 0x08: "CONF_DATA_TYPE_INT64", + 0x09: "CONF_DATA_TYPE_FLOAT", + 0x0A: "CONF_DATA_TYPE_STRING", + 0x0B: "CONF_DATA_TYPE_BOOL", +} + +enumdict(conf_data_types) + +# File Message TLV Types + +file_tlvs = { + 0x01: "CORE_TLV_FILE_NODE", + 0x02: "CORE_TLV_FILE_NAME", + 0x03: "CORE_TLV_FILE_MODE", + 0x04: "CORE_TLV_FILE_NUM", + 0x05: "CORE_TLV_FILE_TYPE", + 0x06: "CORE_TLV_FILE_SRCNAME", + CORE_TLV_NODE_SESSION: "CORE_TLV_FILE_SESSION", + 0x10: "CORE_TLV_FILE_DATA", + 0x11: "CORE_TLV_FILE_CMPDATA", +} + +enumdict(file_tlvs) + +# Interface Message TLV Types + +iface_tlvs = { + 0x01: "CORE_TLV_IFACE_NODE", + 0x02: "CORE_TLV_IFACE_NUM", + 0x03: "CORE_TLV_IFACE_NAME", + 0x04: "CORE_TLV_IFACE_IPADDR", + 0x05: "CORE_TLV_IFACE_MASK", + 0x06: "CORE_TLV_IFACE_MACADDR", + 0x07: "CORE_TLV_IFACE_IP6ADDR", + 0x08: "CORE_TLV_IFACE_IP6MASK", + 0x09: "CORE_TLV_IFACE_TYPE", + CORE_TLV_NODE_SESSION: "CORE_TLV_IFACE_SESSION", + 0x0B: "CORE_TLV_IFACE_STATE", + CORE_TLV_NODE_EMUID: "CORE_TLV_IFACE_EMUID", + CORE_TLV_NODE_NETID: "CORE_TLV_IFACE_NETID", +} + +enumdict(iface_tlvs) + +# Event Message TLV Types + +event_tlvs = { + 0x01: "CORE_TLV_EVENT_NODE", + 0x02: "CORE_TLV_EVENT_TYPE", + 0x03: "CORE_TLV_EVENT_NAME", + 0x04: "CORE_TLV_EVENT_DATA", + 0x05: "CORE_TLV_EVENT_TIME", + CORE_TLV_NODE_SESSION: "CORE_TLV_EVENT_SESSION", +} + +enumdict(event_tlvs) + +event_types = dict(enumerate([ + "CORE_EVENT_NONE", + "CORE_EVENT_DEFINITION_STATE", + "CORE_EVENT_CONFIGURATION_STATE", + "CORE_EVENT_INSTANTIATION_STATE", + "CORE_EVENT_RUNTIME_STATE", + "CORE_EVENT_DATACOLLECT_STATE", + "CORE_EVENT_SHUTDOWN_STATE", + "CORE_EVENT_START", + "CORE_EVENT_STOP", + "CORE_EVENT_PAUSE", + "CORE_EVENT_RESTART", + "CORE_EVENT_FILE_OPEN", + "CORE_EVENT_FILE_SAVE", + "CORE_EVENT_SCHEDULED", +])) + +enumdict(event_types) + +# Session Message TLV Types + +session_tlvs = { + 0x01: "CORE_TLV_SESS_NUMBER", + 0x02: "CORE_TLV_SESS_NAME", + 0x03: "CORE_TLV_SESS_FILE", + 0x04: "CORE_TLV_SESS_NODECOUNT", + 0x05: "CORE_TLV_SESS_DATE", + 0x06: "CORE_TLV_SESS_THUMB", + 0x07: "CORE_TLV_SESS_USER", + 0x0A: "CORE_TLV_SESS_OPAQUE", +} + +enumdict(session_tlvs) + +# Exception Message TLV Types + +exception_tlvs = { + 0x01: "CORE_TLV_EXCP_NODE", + 0x02: "CORE_TLV_EXCP_SESSION", + 0x03: "CORE_TLV_EXCP_LEVEL", + 0x04: "CORE_TLV_EXCP_SOURCE", + 0x05: "CORE_TLV_EXCP_DATE", + 0x06: "CORE_TLV_EXCP_TEXT", + 0x0A: "CORE_TLV_EXCP_OPAQUE", +} + +enumdict(exception_tlvs) + +exception_levels = dict(enumerate([ + "CORE_EXCP_LEVEL_NONE", + "CORE_EXCP_LEVEL_FATAL", + "CORE_EXCP_LEVEL_ERROR", + "CORE_EXCP_LEVEL_WARNING", + "CORE_EXCP_LEVEL_NOTICE", +])) + +enumdict(exception_levels) + +del enumdict diff --git a/daemon/core/broker.py b/daemon/core/broker.py new file mode 100644 index 00000000..abd3da8a --- /dev/null +++ b/daemon/core/broker.py @@ -0,0 +1,858 @@ +# +# CORE +# Copyright (c)2010-2013 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +''' +broker.py: definition of CoreBroker class that is part of the +pycore session object. Handles distributing parts of the emulation out to +other emulation servers. The broker is consulted during the +CoreRequestHandler.handlemsg() loop to determine if messages should be handled +locally or forwarded on to another emulation server. +''' + +import os, socket, select, threading, sys +from core.api import coreapi +from core.coreobj import PyCoreNode, PyCoreNet +from core.emane.nodes import EmaneNet +from core.phys.pnodes import PhysicalNode +from core.misc.ipaddr import IPAddr +from core.conf import ConfigurableManager +if os.uname()[0] == "Linux": + from core.netns.vif import GreTap + from core.netns.vnet import GreTapBridge + + +class CoreBroker(ConfigurableManager): + ''' Member of pycore session class for handling global emulation server + data. + ''' + _name = "broker" + _type = coreapi.CORE_TLV_REG_UTILITY + + def __init__(self, session, verbose = False): + ConfigurableManager.__init__(self, session) + self.session_id_master = None + self.myip = None + self.verbose = verbose + # dict containing tuples of (host, port, sock) + self.servers = {} + self.servers_lock = threading.Lock() + self.addserver("localhost", None, None) + # dict containing node number to server name mapping + self.nodemap = {} + # this lock also protects self.nodecounts + self.nodemap_lock = threading.Lock() + # reference counts of nodes on servers + self.nodecounts = { } + self.bootcount = 0 + # list of node numbers that are link-layer nodes (networks) + self.nets = [] + # list of node numbers that are PhysicalNode nodes + self.phys = [] + # allows for other message handlers to process API messages (e.g. EMANE) + self.handlers = () + # dict with tunnel key to tunnel device mapping + self.tunnels = {} + self.dorecvloop = False + self.recvthread = None + + def startup(self): + ''' Build tunnels between network-layer nodes now that all node + and link information has been received; called when session + enters the instantation state. + ''' + self.addnettunnels() + self.writeservers() + + def shutdown(self): + ''' Close all active sockets; called when the session enters the + data collect state + ''' + with self.servers_lock: + while len(self.servers) > 0: + (server, v) = self.servers.popitem() + (host, port, sock) = v + if sock is None: + continue + if self.verbose: + self.session.info("closing connection with %s @ %s:%s" % \ + (server, host, port)) + sock.close() + self.reset() + self.dorecvloop = False + if self.recvthread is not None: + self.recvthread.join() + + def reset(self): + ''' Reset to initial state. + ''' + self.nodemap_lock.acquire() + self.nodemap.clear() + for server in self.nodecounts: + if self.nodecounts[server] < 1: + self.delserver(server) + self.nodecounts.clear() + self.bootcount = 0 + self.nodemap_lock.release() + del self.nets[:] + del self.phys[:] + while len(self.tunnels) > 0: + (key, gt) = self.tunnels.popitem() + gt.shutdown() + + def startrecvloop(self): + ''' Spawn the recvloop() thread if it hasn't been already started. + ''' + if self.recvthread is not None: + if self.recvthread.isAlive(): + return + else: + self.recvthread.join() + # start reading data from connected sockets + self.dorecvloop = True + self.recvthread = threading.Thread(target = self.recvloop) + self.recvthread.daemon = True + self.recvthread.start() + + def recvloop(self): + ''' Thread target that receives messages from server sockets. + ''' + self.dorecvloop = True + # note: this loop continues after emulation is stopped, + # even with 0 servers + while self.dorecvloop: + rlist = [] + with self.servers_lock: + # build a socket list for select call + for name in self.servers: + (h, p, sock) = self.servers[name] + if sock is not None: + rlist.append(sock.fileno()) + r, w, x = select.select(rlist, [], [], 1.0) + for sockfd in r: + try: + (h, p, sock, name) = self.getserverbysock(sockfd) + except KeyError: + # servers may have changed; loop again + break + rcvlen = self.recv(sock, h) + if rcvlen == 0: + if self.verbose: + self.session.info("connection with %s @ %s:%s" \ + " has closed" % (name, h, p)) + self.servers[name] = (h, p, None) + + + def recv(self, sock, host): + ''' Receive data on an emulation server socket and broadcast it to + all connected session handlers. Returns the length of data recevied + and forwarded. Return value of zero indicates the socket has closed + and should be removed from the self.servers dict. + ''' + msghdr = sock.recv(coreapi.CoreMessage.hdrsiz) + if len(msghdr) == 0: + # server disconnected + sock.close() + return 0 + if len(msghdr) != coreapi.CoreMessage.hdrsiz: + if self.verbose: + self.session.info("warning: broker received not enough data " \ + "len=%s" % len(msghdr)) + return len(msghdr) + + msgtype, msgflags, msglen = coreapi.CoreMessage.unpackhdr(msghdr) + msgdata = sock.recv(msglen) + data = msghdr + msgdata + count = None + # snoop exec response for remote interactive TTYs + if msgtype == coreapi.CORE_API_EXEC_MSG and \ + msgflags & coreapi.CORE_API_TTY_FLAG: + data = self.fixupremotetty(msghdr, msgdata, host) + elif msgtype == coreapi.CORE_API_NODE_MSG: + # snoop node delete response to decrement node counts + if msgflags & coreapi.CORE_API_DEL_FLAG: + msg = coreapi.CoreNodeMessage(msgflags, msghdr, msgdata) + nodenum = msg.gettlv(coreapi.CORE_TLV_NODE_NUMBER) + if nodenum is not None: + count = self.delnodemap(sock, nodenum) + # snoop node add response to increment booted node count + # (only CoreNodes send these response messages) + elif msgflags & \ + (coreapi.CORE_API_ADD_FLAG | coreapi.CORE_API_LOC_FLAG): + self.incrbootcount() + self.session.checkruntime() + + self.session.broadcastraw(None, data) + if count is not None and count < 1: + return 0 + else: + return len(data) + + def addserver(self, name, host, port): + ''' Add a new server, and try to connect to it. If we're already + connected to this (host, port), then leave it alone. When host,port + is None, do not try to connect. + ''' + self.servers_lock.acquire() + if name in self.servers: + (oldhost, oldport, sock) = self.servers[name] + if host == oldhost or port == oldport: + # leave this socket connected + if sock is not None: + self.servers_lock.release() + return + if self.verbose and host is not None and sock is not None: + self.session.info("closing connection with %s @ %s:%s" % \ + (name, host, port)) + if sock is not None: + sock.close() + self.servers_lock.release() + if self.verbose and host is not None: + self.session.info("adding server %s @ %s:%s" % (name, host, port)) + if host is None: + sock = None + else: + sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + #sock.setblocking(0) + #error = sock.connect_ex((host, port)) + try: + sock.connect((host, port)) + self.startrecvloop() + except Exception, e: + self.session.warn("error connecting to server %s:%s:\n\t%s" % \ + (host, port, e)) + sock.close() + sock = None + self.servers_lock.acquire() + self.servers[name] = (host, port, sock) + self.servers_lock.release() + + def delserver(self, name): + ''' Remove a server and hang up any connection. + ''' + self.servers_lock.acquire() + if name not in self.servers: + self.servers_lock.release() + return + (host, port, sock) = self.servers.pop(name) + if sock is not None: + if self.verbose: + self.session.info("closing connection with %s @ %s:%s" % \ + (name, host, port)) + sock.close() + self.servers_lock.release() + + def getserver(self, name): + ''' Return the (host, port, sock) tuple, or raise a KeyError exception. + ''' + if name not in self.servers: + raise KeyError, "emulation server %s not found" % name + return self.servers[name] + + def getserverbysock(self, sockfd): + ''' Return a (host, port, sock, name) tuple based on socket file + descriptor, or raise a KeyError exception. + ''' + with self.servers_lock: + for name in self.servers: + (host, port, sock) = self.servers[name] + if sock is None: + continue + if sock.fileno() == sockfd: + return (host, port, sock, name) + raise KeyError, "socket fd %s not found" % sockfd + + def getserverlist(self): + ''' Return the list of server names (keys from self.servers). + ''' + with self.servers_lock: + serverlist = sorted(self.servers.keys()) + return serverlist + + def tunnelkey(self, n1num, n2num): + ''' Compute a 32-bit key used to uniquely identify a GRE tunnel. + The hash(n1num), hash(n2num) values are used, so node numbers may be + None or string values (used for e.g. "ctrlnet"). + ''' + sid = self.session_id_master + if sid is None: + # this is the master session + sid = self.session.sessionid + + key = (sid << 16) | hash(n1num) | (hash(n2num) << 8) + return key & 0xFFFFFFFF + + def addtunnel(self, remoteip, n1num, n2num, localnum): + ''' Add a new GreTapBridge between nodes on two different machines. + ''' + key = self.tunnelkey(n1num, n2num) + if localnum == n2num: + remotenum = n1num + else: + remotenum = n2num + if key in self.tunnels.keys(): + self.session.warn("tunnel with key %s (%s-%s) already exists!" % \ + (key, n1num, n2num)) + else: + objid = key & ((1<<16)-1) + self.session.info("Adding tunnel for %s-%s to %s with key %s" % \ + (n1num, n2num, remoteip, key)) + if localnum in self.phys: + # no bridge is needed on physical nodes; use the GreTap directly + gt = GreTap(node=None, name=None, session=self.session, + remoteip=remoteip, key=key) + else: + gt = self.session.addobj(cls = GreTapBridge, objid = objid, + policy="ACCEPT", remoteip=remoteip, key = key) + gt.localnum = localnum + gt.remotenum = remotenum + self.tunnels[key] = gt + + def addnettunnels(self): + ''' Add GreTaps between network devices on different machines. + The GreTapBridge is not used since that would add an extra bridge. + ''' + for n in self.nets: + self.addnettunnel(n) + + def addnettunnel(self, n): + try: + net = self.session.obj(n) + except KeyError: + raise KeyError, "network node %s not found" % n + # add other nets here that do not require tunnels + if isinstance(net, EmaneNet): + return None + + servers = self.getserversbynode(n) + if len(servers) < 2: + return None + hosts = [] + for server in servers: + (host, port, sock) = self.getserver(server) + if host is None: + continue + hosts.append(host) + if len(hosts) == 0: + # get IP address from API message sender (master) + self.session._handlerslock.acquire() + for h in self.session._handlers: + if h.client_address != "": + hosts.append(h.client_address[0]) + self.session._handlerslock.release() + + r = [] + for host in hosts: + if self.myip: + # we are the remote emulation server + myip = self.myip + else: + # we are the session master + myip = host + key = self.tunnelkey(n, IPAddr.toint(myip)) + if key in self.tunnels.keys(): + continue + self.session.info("Adding tunnel for net %s to %s with key %s" % \ + (n, host, key)) + gt = GreTap(node=None, name=None, session=self.session, + remoteip=host, key=key) + self.tunnels[key] = gt + r.append(gt) + # attaching to net will later allow gt to be destroyed + # during net.shutdown() + net.attach(gt) + return r + + def deltunnel(self, n1num, n2num): + ''' Cleanup of the GreTapBridge. + ''' + key = self.tunnelkey(n1num, n2num) + try: + gt = self.tunnels.pop(key) + except KeyError: + gt = None + if gt: + self.session.delobj(gt.objid) + del gt + + def gettunnel(self, n1num, n2num): + ''' Return the GreTap between two nodes if it exists. + ''' + key = self.tunnelkey(n1num, n2num) + if key in self.tunnels.keys(): + return self.tunnels[key] + else: + return None + + def addnodemap(self, server, nodenum): + ''' Record a node number to emulation server mapping. + ''' + self.nodemap_lock.acquire() + if nodenum in self.nodemap: + if server in self.nodemap[nodenum]: + self.nodemap_lock.release() + return + self.nodemap[nodenum].append(server) + else: + self.nodemap[nodenum] = [server,] + if server in self.nodecounts: + self.nodecounts[server] += 1 + else: + self.nodecounts[server] = 1 + self.nodemap_lock.release() + + def delnodemap(self, sock, nodenum): + ''' Remove a node number to emulation server mapping. + Return the number of nodes left on this server. + ''' + self.nodemap_lock.acquire() + count = None + if nodenum not in self.nodemap: + self.nodemap_lock.release() + return count + found = False + for server in self.nodemap[nodenum]: + (host, port, srvsock) = self.getserver(server) + if srvsock == sock: + found = True + break + if server in self.nodecounts: + count = self.nodecounts[server] + if found: + self.nodemap[nodenum].remove(server) + if server in self.nodecounts: + count -= 1 + self.nodecounts[server] = count + self.nodemap_lock.release() + return count + + def incrbootcount(self): + ''' Count a node that has booted. + ''' + self.bootcount += 1 + return self.bootcount + + def getbootcount(self): + ''' Return the number of booted nodes. + ''' + return self.bootcount + + def getserversbynode(self, nodenum): + ''' Retrieve a list of emulation servers given a node number. + ''' + self.nodemap_lock.acquire() + if nodenum not in self.nodemap: + self.nodemap_lock.release() + return [] + r = self.nodemap[nodenum] + self.nodemap_lock.release() + return r + + def addnet(self, nodenum): + ''' Add a node number to the list of link-layer nodes. + ''' + if nodenum not in self.nets: + self.nets.append(nodenum) + + def addphys(self, nodenum): + ''' Add a node number to the list of physical nodes. + ''' + if nodenum not in self.phys: + self.phys.append(nodenum) + + def configure_reset(self, msg): + ''' Ignore reset messages, because node delete responses may still + arrive and require the use of nodecounts. + ''' + return None + + def configure_values(self, msg, values): + ''' Receive configuration message with a list of server:host:port + combinations that we'll need to connect with. + ''' + objname = msg.gettlv(coreapi.CORE_TLV_CONF_OBJ) + conftype = msg.gettlv(coreapi.CORE_TLV_CONF_TYPE) + + if values is None: + self.session.info("emulation server data missing") + return None + values = values.split('|') + # string of "server:ip:port,server:ip:port,..." + serverstrings = values[0] + server_list = serverstrings.split(',') + for server in server_list: + server_items = server.split(':') + (name, host, port) = server_items[:3] + if host == '': + host = None + if port == '': + port = None + else: + port = int(port) + sid = msg.gettlv(coreapi.CORE_TLV_CONF_SESSION) + if sid is not None: + # receive session ID and my IP from master + self.session_id_master = int(sid.split('|')[0]) + self.myip = host + host = None + port = None + # this connects to the server immediately; maybe we should wait + # or spin off a new "client" thread here + self.addserver(name, host, port) + self.setupserver(name) + return None + + def handlemsg(self, msg): + ''' Handle an API message. Determine whether this needs to be handled + by the local server or forwarded on to another one. + Returns True when message does not need to be handled locally, + and performs forwarding if required. + Returning False indicates this message should be handled locally. + ''' + serverlist = [] + handle_locally = False + # Do not forward messages when in definition state + # (for e.g. configuring services) + if self.session.getstate() == coreapi.CORE_EVENT_DEFINITION_STATE: + handle_locally = True + return not handle_locally + # Decide whether message should be handled locally or forwarded, or both + if msg.msgtype == coreapi.CORE_API_NODE_MSG: + (handle_locally, serverlist) = self.handlenodemsg(msg) + elif msg.msgtype == coreapi.CORE_API_EVENT_MSG: + # broadcast events everywhere + serverlist = self.getserverlist() + elif msg.msgtype == coreapi.CORE_API_CONF_MSG: + # broadcast location and services configuration everywhere + confobj = msg.gettlv(coreapi.CORE_TLV_CONF_OBJ) + if confobj == "location" or confobj == "services" or \ + confobj == "session": + serverlist = self.getserverlist() + elif msg.msgtype == coreapi.CORE_API_FILE_MSG: + # broadcast hook scripts and custom service files everywhere + filetype = msg.gettlv(coreapi.CORE_TLV_FILE_TYPE) + if filetype is not None and \ + (filetype[:5] == "hook:" or filetype[:8] == "service:"): + serverlist = self.getserverlist() + + if msg.msgtype == coreapi.CORE_API_LINK_MSG: + # prepare a serverlist from two node numbers in link message + (handle_locally, serverlist, msg) = self.handlelinkmsg(msg) + elif len(serverlist) == 0: + # check for servers based on node numbers in all messages but link + nn = msg.nodenumbers() + if len(nn) == 0: + return False + serverlist = self.getserversbynode(nn[0]) + + if len(serverlist) == 0: + handle_locally = True + + # allow other handlers to process this message + # (this is used by e.g. EMANE to use the link add message to keep counts + # of interfaces on other servers) + for handler in self.handlers: + handler(msg) + + # Perform any message forwarding + handle_locally = self.forwardmsg(msg, serverlist, handle_locally) + return not handle_locally + + def setupserver(self, server): + ''' Send the appropriate API messages for configuring the specified + emulation server. + ''' + (host, port, sock) = self.getserver(server) + if host is None or sock is None: + return + # communicate this session's current state to the server + tlvdata = coreapi.CoreEventTlv.pack(coreapi.CORE_TLV_EVENT_TYPE, + self.session.getstate()) + msg = coreapi.CoreEventMessage.pack(0, tlvdata) + sock.send(msg) + # send a Configuration message for the broker object and inform the + # server of its local name + tlvdata = "" + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_OBJ, "broker") + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_TYPE, + coreapi.CONF_TYPE_FLAGS_UPDATE) + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_DATA_TYPES, + (coreapi.CONF_DATA_TYPE_STRING,)) + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_VALUES, + "%s:%s:%s" % (server, host, port)) + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_SESSION, + "%s" % self.session.sessionid) + msg = coreapi.CoreConfMessage.pack(0, tlvdata) + sock.send(msg) + + @staticmethod + def fixupremotetty(msghdr, msgdata, host): + ''' When an interactive TTY request comes from the GUI, snoop the reply + and add an SSH command to the appropriate remote server. + ''' + msgtype, msgflags, msglen = coreapi.CoreMessage.unpackhdr(msghdr) + msgcls = coreapi.msg_class(msgtype) + msg = msgcls(msgflags, msghdr, msgdata) + + nodenum = msg.gettlv(coreapi.CORE_TLV_EXEC_NODE) + execnum = msg.gettlv(coreapi.CORE_TLV_EXEC_NUM) + cmd = msg.gettlv(coreapi.CORE_TLV_EXEC_CMD) + res = msg.gettlv(coreapi.CORE_TLV_EXEC_RESULT) + + tlvdata = "" + tlvdata += coreapi.CoreExecTlv.pack(coreapi.CORE_TLV_EXEC_NODE, nodenum) + tlvdata += coreapi.CoreExecTlv.pack(coreapi.CORE_TLV_EXEC_NUM, execnum) + tlvdata += coreapi.CoreExecTlv.pack(coreapi.CORE_TLV_EXEC_CMD, cmd) + title = "\\\"CORE: n%s @ %s\\\"" % (nodenum, host) + res = "ssh -X -f " + host + " xterm -e " + res + tlvdata += coreapi.CoreExecTlv.pack(coreapi.CORE_TLV_EXEC_RESULT, res) + + return coreapi.CoreExecMessage.pack(msgflags, tlvdata) + + def handlenodemsg(self, msg): + ''' Determine and return the servers to which this node message should + be forwarded. Also keep track of link-layer nodes and the mapping of + nodes to servers. + ''' + serverlist = [] + handle_locally = False + serverfiletxt = None + # snoop Node Message for emulation server TLV and record mapping + n = msg.tlvdata[coreapi.CORE_TLV_NODE_NUMBER] + # replicate link-layer nodes on all servers + nodetype = msg.gettlv(coreapi.CORE_TLV_NODE_TYPE) + if nodetype is not None: + try: + nodecls = coreapi.node_class(nodetype) + except KeyError: + self.session.warn("broker invalid node type %s" % nodetype) + return (False, serverlist) + if nodecls is None: + self.session.warn("broker unimplemented node type %s" % nodetype) + return (False, serverlist) + if issubclass(nodecls, PyCoreNet) and \ + nodetype != coreapi.CORE_NODE_WLAN: + # network node replicated on all servers; could be optimized + # don't replicate WLANs, because ebtables rules won't work + serverlist = self.getserverlist() + handle_locally = True + self.addnet(n) + for server in serverlist: + self.addnodemap(server, n) + # do not record server name for networks since network + # nodes are replicated across all server + return (handle_locally, serverlist) + if issubclass(nodecls, PyCoreNet) and \ + nodetype == coreapi.CORE_NODE_WLAN: + # special case where remote WLANs not in session._objs, and no + # node response message received, so they are counted here + if msg.gettlv(coreapi.CORE_TLV_NODE_EMUSRV) is not None: + self.incrbootcount() + elif issubclass(nodecls, PyCoreNode): + name = msg.gettlv(coreapi.CORE_TLV_NODE_NAME) + if name: + serverfiletxt = "%s %s %s" % (n, name, nodecls) + if issubclass(nodecls, PhysicalNode): + # remember physical nodes + self.addphys(n) + + # emulation server TLV specifies server + server = msg.gettlv(coreapi.CORE_TLV_NODE_EMUSRV) + if server is not None: + self.addnodemap(server, n) + if server not in serverlist: + serverlist.append(server) + if serverfiletxt and self.session.master: + self.writenodeserver(serverfiletxt, server) + # hook to update coordinates of physical nodes + if n in self.phys: + self.session.mobility.physnodeupdateposition(msg) + return (handle_locally, serverlist) + + def handlelinkmsg(self, msg): + ''' Determine and return the servers to which this link message should + be forwarded. Also build tunnels between different servers or add + opaque data to the link message before forwarding. + ''' + serverlist = [] + handle_locally = False + + # determine link message destination using non-network nodes + nn = msg.nodenumbers() + if nn[0] in self.nets: + if nn[1] in self.nets: + # two network nodes linked together - prevent loops caused by + # the automatic tunnelling + handle_locally = True + else: + serverlist = self.getserversbynode(nn[1]) + elif nn[1] in self.nets: + serverlist = self.getserversbynode(nn[0]) + else: + serverset1 = set(self.getserversbynode(nn[0])) + serverset2 = set(self.getserversbynode(nn[1])) + # nodes are on two different servers, build tunnels as needed + if serverset1 != serverset2: + localn = None + if len(serverset1) == 0 or len(serverset2) == 0: + handle_locally = True + serverlist = list(serverset1 | serverset2) + host = None + # get the IP of remote server and decide which node number + # is for a local node + for server in serverlist: + (host, port, sock) = self.getserver(server) + if host is None: + # named server is local + handle_locally = True + if server in serverset1: + localn = nn[0] + else: + localn = nn[1] + if handle_locally and localn is None: + # having no local node at this point indicates local node is + # the one with the empty serverset + if len(serverset1) == 0: + localn = nn[0] + elif len(serverset2) == 0: + localn = nn[1] + if host is None: + host = self.getlinkendpoint(msg, localn == nn[0]) + if localn is None: + msg = self.addlinkendpoints(msg, serverset1, serverset2) + elif msg.flags & coreapi.CORE_API_ADD_FLAG: + self.addtunnel(host, nn[0], nn[1], localn) + elif msg.flags & coreapi.CORE_API_DEL_FLAG: + self.deltunnel(nn[0], nn[1]) + handle_locally = False + else: + serverlist = list(serverset1 | serverset2) + + return (handle_locally, serverlist, msg) + + def addlinkendpoints(self, msg, serverset1, serverset2): + ''' For a link message that is not handled locally, inform the remote + servers of the IP addresses used as tunnel endpoints by adding + opaque data to the link message. + ''' + ip1 = "" + for server in serverset1: + (host, port, sock) = self.getserver(server) + if host is not None: + ip1 = host + ip2 = "" + for server in serverset2: + (host, port, sock) = self.getserver(server) + if host is not None: + ip2 = host + tlvdata = msg.rawmsg[coreapi.CoreMessage.hdrsiz:] + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_OPAQUE, + "%s:%s" % (ip1, ip2)) + newraw = coreapi.CoreLinkMessage.pack(msg.flags, tlvdata) + msghdr = newraw[:coreapi.CoreMessage.hdrsiz] + return coreapi.CoreLinkMessage(msg.flags, msghdr, tlvdata) + + def getlinkendpoint(self, msg, first_is_local): + ''' A link message between two different servers has been received, + and we need to determine the tunnel endpoint. First look for + opaque data in the link message, otherwise use the IP of the message + sender (the master server). + ''' + host = None + opaque = msg.gettlv(coreapi.CORE_TLV_LINK_OPAQUE) + if opaque is not None: + if first_is_local: + host = opaque.split(':')[1] + else: + host = opaque.split(':')[0] + if host == "": + host = None + if host is None: + # get IP address from API message sender (master) + self.session._handlerslock.acquire() + for h in self.session._handlers: + if h.client_address != "": + host = h.client_address[0] + self.session._handlerslock.release() + return host + + def forwardmsg(self, msg, serverlist, handle_locally): + ''' Forward API message to all servers in serverlist; if an empty + host/port is encountered, set the handle_locally flag. Returns the + value of the handle_locally flag, which may be unchanged. + ''' + for server in serverlist: + try: + (host, port, sock) = self.getserver(server) + except KeyError: + # server not found, don't handle this message locally + self.session.info("broker could not find server %s, message " \ + "with type %s dropped" % \ + (server, msg.msgtype)) + continue + if host is None and port is None: + # local emulation server, handle this locally + handle_locally = True + else: + if sock is None: + self.session.info("server %s @ %s:%s is disconnected" % \ + (server, host, port)) + else: + sock.send(msg.rawmsg) + return handle_locally + + def writeservers(self): + ''' Write the server list to a text file in the session directory upon + startup: /tmp/pycore.nnnnn/servers + ''' + filename = os.path.join(self.session.sessiondir, "servers") + try: + f = open(filename, "w") + master = self.session_id_master + if master is None: + master = self.session.sessionid + f.write("master=%s\n" % master) + self.servers_lock.acquire() + for name in sorted(self.servers.keys()): + if name == "localhost": + continue + (host, port, sock) = self.servers[name] + f.write("%s %s %s\n" % (name, host, port)) + f.close() + except Exception, e: + self.session.warn("Error writing server list to the file: %s\n%s" \ + % (filename, e)) + finally: + self.servers_lock.release() + + def writenodeserver(self, nodestr, server): + ''' Creates a /tmp/pycore.nnnnn/nX.conf/server file having the node + and server info. This may be used by scripts for accessing nodes on + other machines, much like local nodes may be accessed via the + VnodeClient class. + ''' + (host, port, sock) = self.getserver(server) + serverstr = "%s %s %s" % (server, host, port) + name = nodestr.split()[1] + dirname = os.path.join(self.session.sessiondir, name + ".conf") + filename = os.path.join(dirname, "server") + try: + os.makedirs(dirname) + except OSError: + # directory may already exist from previous distributed run + pass + try: + f = open(filename, "w") + f.write("%s\n%s\n" % (serverstr, nodestr)) + f.close() + return True + except Exception, e: + msg = "Error writing server file '%s'" % filename + msg += "for node %s:\n%s" % (name, e) + self.session.warn(msg) + return False + + diff --git a/daemon/core/bsd/__init__.py b/daemon/core/bsd/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/daemon/core/bsd/netgraph.py b/daemon/core/bsd/netgraph.py new file mode 100644 index 00000000..c6bc7795 --- /dev/null +++ b/daemon/core/bsd/netgraph.py @@ -0,0 +1,70 @@ +# +# CORE +# Copyright (c)2010-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# authors: core-dev@pf.itd.nrl.navy.mil +# +''' +netgraph.py: Netgraph helper functions; for now these are wrappers around +ngctl commands. +''' + +import subprocess +from core.misc.utils import * +from core.constants import * + +checkexec([NGCTL_BIN]) + +def createngnode(type, hookstr, name=None): + ''' Create a new Netgraph node of type and optionally assign name. The + hook string hookstr should contain two names. This is a string so + other commands may be inserted after the two names. + Return the name and netgraph ID of the new node. + ''' + hook1 = hookstr.split()[0] + ngcmd = "mkpeer %s %s \n show .%s" % (type, hookstr, hook1) + cmd = [NGCTL_BIN, "-f", "-"] + cmdid = subprocess.Popen(cmd, stdin = subprocess.PIPE, + stdout = subprocess.PIPE, + stderr = subprocess.PIPE) + cmdid.stdin.write(ngcmd) + cmdid.stdin.close() + result = cmdid.stdout.read() + result += cmdid.stderr.read() + cmdid.stdout.close() + cmdid.stderr.close() + status = cmdid.wait() + if status > 0: + raise Exception, "error creating Netgraph node %s (%s): %s" % \ + (type, ngcmd, result) + results = result.split() + ngname = results[1] + ngid = results[5] + if name: + check_call([NGCTL_BIN, "name", "[0x%s]:" % ngid, name]) + return (ngname, ngid) + +def destroyngnode(name): + ''' Shutdown a Netgraph node having the given name. + ''' + check_call([NGCTL_BIN, "shutdown", "%s:" % name]) + +def connectngnodes(name1, name2, hook1, hook2): + ''' Connect two hooks of two Netgraph nodes given by their names. + ''' + node1 = "%s:" % name1 + node2 = "%s:" % name2 + check_call([NGCTL_BIN, "connect", node1, node2, hook1, hook2]) + +def ngmessage(name, msg): + ''' Send a Netgraph message to the node named name. + ''' + cmd = [NGCTL_BIN, "msg", "%s:" % name] + msg + check_call(cmd) + +def ngloadkernelmodule(name): + ''' Load a kernel module by invoking kldstat. This is needed for the + ng_ether module which automatically creates Netgraph nodes when loaded. + ''' + mutecall(["kldload", name]) diff --git a/daemon/core/bsd/nodes.py b/daemon/core/bsd/nodes.py new file mode 100644 index 00000000..7ffecd36 --- /dev/null +++ b/daemon/core/bsd/nodes.py @@ -0,0 +1,197 @@ +# +# CORE +# Copyright (c)2010-2013 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: core-dev@pf.itd.nrl.navy.mil +# + +''' +nodes.py: definition of CoreNode classes and other node classes that inherit +from the CoreNode, implementing specific node types. +''' + +from vnode import * +from vnet import * +from core.constants import * +from core.misc.ipaddr import * +from core.api import coreapi +from core.bsd.netgraph import ngloadkernelmodule + +checkexec([IFCONFIG_BIN]) + +class CoreNode(JailNode): + apitype = coreapi.CORE_NODE_DEF + +class PtpNet(NetgraphPipeNet): + def tonodemsg(self, flags): + ''' Do not generate a Node Message for point-to-point links. They are + built using a link message instead. + ''' + pass + + def tolinkmsgs(self, flags): + ''' Build CORE API TLVs for a point-to-point link. One Link message + describes this network. + ''' + tlvdata = "" + if len(self._netif) != 2: + return tlvdata + (if1, if2) = self._netif.items() + if1 = if1[1] + if2 = if2[1] + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_N1NUMBER, + if1.node.objid) + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_N2NUMBER, + if2.node.objid) + delay = if1.getparam('delay') + bw = if1.getparam('bw') + loss = if1.getparam('loss') + duplicate = if1.getparam('duplicate') + jitter = if1.getparam('jitter') + if delay is not None: + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_DELAY, + delay) + if bw is not None: + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_BW, bw) + if loss is not None: + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_PER, + str(loss)) + if duplicate is not None: + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_DUP, + str(duplicate)) + if jitter is not None: + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_JITTER, + jitter) + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_TYPE, + self.linktype) + + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_IF1NUM, \ + if1.node.getifindex(if1)) + for addr in if1.addrlist: + (ip, sep, mask) = addr.partition('/') + mask = int(mask) + if isIPv4Address(ip): + family = AF_INET + tlvtypeip = coreapi.CORE_TLV_LINK_IF1IP4 + tlvtypemask = coreapi.CORE_TLV_LINK_IF1IP4MASK + else: + family = AF_INET6 + tlvtypeip = coreapi.CORE_TLV_LINK_IF1IP6 + tlvtypemask = coreapi.CORE_TLV_LINK_IF1IP6MASK + ipl = socket.inet_pton(family, ip) + tlvdata += coreapi.CoreLinkTlv.pack(tlvtypeip, + IPAddr(af=family, addr=ipl)) + tlvdata += coreapi.CoreLinkTlv.pack(tlvtypemask, mask) + + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_IF2NUM, \ + if2.node.getifindex(if2)) + for addr in if2.addrlist: + (ip, sep, mask) = addr.partition('/') + mask = int(mask) + if isIPv4Address(ip): + family = AF_INET + tlvtypeip = coreapi.CORE_TLV_LINK_IF2IP4 + tlvtypemask = coreapi.CORE_TLV_LINK_IF2IP4MASK + else: + family = AF_INET6 + tlvtypeip = coreapi.CORE_TLV_LINK_IF2IP6 + tlvtypemask = coreapi.CORE_TLV_LINK_IF2IP6MASK + ipl = socket.inet_pton(family, ip) + tlvdata += coreapi.CoreLinkTlv.pack(tlvtypeip, + IPAddr(af=family, addr=ipl)) + tlvdata += coreapi.CoreLinkTlv.pack(tlvtypemask, mask) + + msg = coreapi.CoreLinkMessage.pack(flags, tlvdata) + return [msg,] + +class SwitchNode(NetgraphNet): + ngtype = "bridge" + nghooks = "link0 link0\nmsg .link0 setpersistent" + apitype = coreapi.CORE_NODE_SWITCH + policy = "ACCEPT" + +class HubNode(NetgraphNet): + ngtype = "hub" + nghooks = "link0 link0\nmsg .link0 setpersistent" + apitype = coreapi.CORE_NODE_HUB + policy = "ACCEPT" + +class WlanNode(NetgraphNet): + ngtype = "wlan" + nghooks = "anchor anchor" + apitype = coreapi.CORE_NODE_WLAN + linktype = coreapi.CORE_LINK_WIRELESS + policy = "DROP" + + def __init__(self, session, objid = None, name = None, verbose = False, + start = True, policy = None): + NetgraphNet.__init__(self, session, objid, name, verbose, start, policy) + # wireless model such as basic range + self.model = None + # mobility model such as scripted + self.mobility = None + + def attach(self, netif): + NetgraphNet.attach(self, netif) + if self.model: + netif.poshook = self.model._positioncallback + if netif.node is None: + return + (x,y,z) = netif.node.position.get() + netif.poshook(netif, x, y, z) + + def setmodel(self, model, config): + ''' Mobility and wireless model. + ''' + if (self.verbose): + self.info("adding model %s" % model._name) + if model._type == coreapi.CORE_TLV_REG_WIRELESS: + self.model = model(session=self.session, objid=self.objid, + verbose=self.verbose, values=config) + if self.model._positioncallback: + for netif in self.netifs(): + netif.poshook = self.model._positioncallback + if netif.node is not None: + (x,y,z) = netif.node.position.get() + netif.poshook(netif, x, y, z) + self.model.setlinkparams() + elif model._type == coreapi.CORE_TLV_REG_MOBILITY: + self.mobility = model(session=self.session, objid=self.objid, + verbose=self.verbose, values=config) + + +class RJ45Node(NetgraphPipeNet): + apitype = coreapi.CORE_NODE_RJ45 + policy = "ACCEPT" + + def __init__(self, session, objid, name, verbose, start = True): + if start: + ngloadkernelmodule("ng_ether") + NetgraphPipeNet.__init__(self, session, objid, name, verbose, start) + if start: + self.setpromisc(True) + + def shutdown(self): + self.setpromisc(False) + NetgraphPipeNet.shutdown(self) + + def setpromisc(self, promisc): + p = "promisc" + if not promisc: + p = "-" + p + check_call([IFCONFIG_BIN, self.name, "up", p]) + + def attach(self, netif): + if len(self._netif) > 0: + raise ValueError, \ + "RJ45 networks support at most 1 network interface" + NetgraphPipeNet.attach(self, netif) + connectngnodes(self.ngname, self.name, self.gethook(), "lower") + +class TunnelNode(NetgraphNet): + ngtype = "pipe" + nghooks = "upper lower" + apitype = coreapi.CORE_NODE_TUNNEL + policy = "ACCEPT" + diff --git a/daemon/core/bsd/vnet.py b/daemon/core/bsd/vnet.py new file mode 100644 index 00000000..a92eb849 --- /dev/null +++ b/daemon/core/bsd/vnet.py @@ -0,0 +1,216 @@ +# +# CORE +# Copyright (c)2010-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# authors: core-dev@pf.itd.nrl.navy.mil +# +''' +vnet.py: NetgraphNet and NetgraphPipeNet classes that implement virtual networks +using the FreeBSD Netgraph subsystem. +''' + +import sys, threading + +from core.misc.utils import * +from core.constants import * +from core.coreobj import PyCoreNet, PyCoreObj +from core.bsd.netgraph import * +from core.bsd.vnode import VEth + +class NetgraphNet(PyCoreNet): + ngtype = None + nghooks = () + + def __init__(self, session, objid = None, name = None, verbose = False, + start = True, policy = None): + PyCoreNet.__init__(self, session, objid, name) + if name is None: + name = str(self.objid) + if policy is not None: + self.policy = policy + self.name = name + self.ngname = "n_%s_%s" % (str(self.objid), self.session.sessionid) + self.ngid = None + self.verbose = verbose + self._netif = {} + self._linked = {} + self.up = False + if start: + self.startup() + + def startup(self): + tmp, self.ngid = createngnode(type=self.ngtype, hookstr=self.nghooks, + name=self.ngname) + self.up = True + + def shutdown(self): + if not self.up: + return + self.up = False + while self._netif: + k, netif = self._netif.popitem() + if netif.pipe: + pipe = netif.pipe + netif.pipe = None + pipe.shutdown() + else: + netif.shutdown() + self._netif.clear() + self._linked.clear() + del self.session + destroyngnode(self.ngname) + + def attach(self, netif): + ''' Attach an interface to this netgraph node. Create a pipe between + the interface and the hub/switch/wlan node. + (Note that the PtpNet subclass overrides this method.) + ''' + if self.up: + pipe = self.session.addobj(cls = NetgraphPipeNet, + verbose = self.verbose, start = True) + pipe.attach(netif) + hook = "link%d" % len(self._netif) + pipe.attachnet(self, hook) + PyCoreNet.attach(self, netif) + + def detach(self, netif): + if self.up: + pass + PyCoreNet.detach(self, netif) + + def linked(self, netif1, netif2): + # check if the network interfaces are attached to this network + if self._netif[netif1] != netif1: + raise ValueError, "inconsistency for netif %s" % netif1.name + if self._netif[netif2] != netif2: + raise ValueError, "inconsistency for netif %s" % netif2.name + try: + linked = self._linked[netif1][netif2] + except KeyError: + linked = False + self._linked[netif1][netif2] = linked + return linked + + def unlink(self, netif1, netif2): + if not self.linked(netif1, netif2): + return + msg = ["unlink", "{", "node1=0x%s" % netif1.pipe.ngid] + msg += ["node2=0x%s" % netif2.pipe.ngid, "}"] + ngmessage(self.ngname, msg) + self._linked[netif1][netif2] = False + + def link(self, netif1, netif2): + if self.linked(netif1, netif2): + return + msg = ["link", "{", "node1=0x%s" % netif1.pipe.ngid] + msg += ["node2=0x%s" % netif2.pipe.ngid, "}"] + ngmessage(self.ngname, msg) + self._linked[netif1][netif2] = True + + def linknet(self, net): + ''' Link this bridge with another by creating a veth pair and installing + each device into each bridge. + ''' + raise NotImplementedError + + def linkconfig(self, netif, bw = None, delay = None, + loss = None, duplicate = None, jitter = None, netif2=None): + ''' Set link effects by modifying the pipe connected to an interface. + ''' + if not netif.pipe: + self.warn("linkconfig for %s but interface %s has no pipe" % \ + (self.name, netif.name)) + return + return netif.pipe.linkconfig(netif, bw, delay, loss, duplicate, jitter, + netif2) + +class NetgraphPipeNet(NetgraphNet): + ngtype = "pipe" + nghooks = "upper lower" + + def __init__(self, session, objid = None, name = None, verbose = False, + start = True, policy = None): + NetgraphNet.__init__(self, session, objid, name, verbose, start, policy) + if start: + # account for Ethernet header + ngmessage(self.ngname, ["setcfg", "{", "header_offset=14", "}"]) + + def attach(self, netif): + ''' Attach an interface to this pipe node. + The first interface is connected to the "upper" hook, the second + connected to the "lower" hook. + ''' + if len(self._netif) > 1: + raise ValueError, \ + "Netgraph pipes support at most 2 network interfaces" + if self.up: + hook = self.gethook() + connectngnodes(self.ngname, netif.localname, hook, netif.hook) + if netif.pipe: + raise ValueError, \ + "Interface %s already attached to pipe %s" % \ + (netif.name, netif.pipe.name) + netif.pipe = self + self._netif[netif] = netif + self._linked[netif] = {} + + def attachnet(self, net, hook): + ''' Attach another NetgraphNet to this pipe node. + ''' + localhook = self.gethook() + connectngnodes(self.ngname, net.ngname, localhook, hook) + + def gethook(self): + ''' Returns the first hook (e.g. "upper") then the second hook + (e.g. "lower") based on the number of connections. + ''' + hooks = self.nghooks.split() + if len(self._netif) == 0: + return hooks[0] + else: + return hooks[1] + + def linkconfig(self, netif, bw = None, delay = None, + loss = None, duplicate = None, jitter = None, netif2 = None): + ''' Set link effects by sending a Netgraph setcfg message to the pipe. + ''' + netif.setparam('bw', bw) + netif.setparam('delay', delay) + netif.setparam('loss', loss) + netif.setparam('duplicate', duplicate) + netif.setparam('jitter', jitter) + if not self.up: + return + params = [] + upstream = [] + downstream = [] + if bw is not None: + if str(bw)=="0": + bw="-1" + params += ["bandwidth=%s" % bw,] + if delay is not None: + if str(delay)=="0": + delay="-1" + params += ["delay=%s" % delay,] + if loss is not None: + if str(loss)=="0": + loss="-1" + upstream += ["BER=%s" % loss,] + downstream += ["BER=%s" % loss,] + if duplicate is not None: + if str(duplicate)=="0": + duplicate="-1" + upstream += ["duplicate=%s" % duplicate,] + downstream += ["duplicate=%s" % duplicate,] + if jitter: + self.warn("jitter parameter ignored for link %s" % self.name) + if len(params) > 0 or len(upstream) > 0 or len(downstream) > 0: + setcfg = ["setcfg", "{",] + params + if len(upstream) > 0: + setcfg += ["upstream={",] + upstream + ["}",] + if len(downstream) > 0: + setcfg += ["downstream={",] + downstream + ["}",] + setcfg += ["}",] + ngmessage(self.ngname, setcfg) + diff --git a/daemon/core/bsd/vnode.py b/daemon/core/bsd/vnode.py new file mode 100644 index 00000000..6da4e755 --- /dev/null +++ b/daemon/core/bsd/vnode.py @@ -0,0 +1,393 @@ +# +# CORE +# Copyright (c)2010-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# authors: core-dev@pf.itd.nrl.navy.mil +# +''' +vnode.py: SimpleJailNode and JailNode classes that implement the FreeBSD +jail-based virtual node. +''' + +import os, signal, sys, subprocess, threading, string +import random, time +from core.misc.utils import * +from core.constants import * +from core.coreobj import PyCoreObj, PyCoreNode, PyCoreNetIf, Position +from core.emane.nodes import EmaneNode +from core.bsd.netgraph import * + +checkexec([IFCONFIG_BIN, VIMAGE_BIN]) + +class VEth(PyCoreNetIf): + def __init__(self, node, name, localname, mtu = 1500, net = None, + start = True): + PyCoreNetIf.__init__(self, node = node, name = name, mtu = mtu) + # name is the device name (e.g. ngeth0, ngeth1, etc.) before it is + # installed in a node; the Netgraph name is renamed to localname + # e.g. before install: name = ngeth0 localname = n0_0_123 + # after install: name = eth0 localname = n0_0_123 + self.localname = localname + self.ngid = None + self.net = None + self.pipe = None + self.addrlist = [] + self.hwaddr = None + self.up = False + self.hook = "ether" + if start: + self.startup() + + def startup(self): + hookstr = "%s %s" % (self.hook, self.hook) + ngname, ngid = createngnode(type="eiface", hookstr=hookstr, + name=self.localname) + self.name = ngname + self.ngid = ngid + check_call([IFCONFIG_BIN, ngname, "up"]) + self.up = True + + def shutdown(self): + if not self.up: + return + destroyngnode(self.localname) + self.up = False + + def attachnet(self, net): + if self.net: + self.detachnet() + self.net = None + net.attach(self) + self.net = net + + def detachnet(self): + if self.net is not None: + self.net.detach(self) + + def addaddr(self, addr): + self.addrlist.append(addr) + + def deladdr(self, addr): + self.addrlist.remove(addr) + + def sethwaddr(self, addr): + self.hwaddr = addr + +class TunTap(PyCoreNetIf): + '''TUN/TAP virtual device in TAP mode''' + def __init__(self, node, name, localname, mtu = None, net = None, + start = True): + raise NotImplementedError + +class SimpleJailNode(PyCoreNode): + def __init__(self, session, objid = None, name = None, nodedir = None, + verbose = False): + PyCoreNode.__init__(self, session, objid, name) + self.nodedir = nodedir + self.verbose = verbose + self.pid = None + self.up = False + self.lock = threading.RLock() + self._mounts = [] + + def startup(self): + if self.up: + raise Exception, "already up" + vimg = [VIMAGE_BIN, "-c", self.name] + try: + os.spawnlp(os.P_WAIT, VIMAGE_BIN, *vimg) + except OSError: + raise Exception, ("vimage command not found while running: %s" % \ + vimg) + self.info("bringing up loopback interface") + self.cmd([IFCONFIG_BIN, "lo0", "127.0.0.1"]) + self.info("setting hostname: %s" % self.name) + self.cmd(["hostname", self.name]) + self.cmd([SYSCTL_BIN, "vfs.morphing_symlinks=1"]) + self.up = True + + def shutdown(self): + if not self.up: + return + for netif in self.netifs(): + netif.shutdown() + self._netif.clear() + del self.session + vimg = [VIMAGE_BIN, "-d", self.name] + try: + os.spawnlp(os.P_WAIT, VIMAGE_BIN, *vimg) + except OSError: + raise Exception, ("vimage command not found while running: %s" % \ + vimg) + self.up = False + + def cmd(self, args, wait = True): + if wait: + mode = os.P_WAIT + else: + mode = os.P_NOWAIT + tmp = call([VIMAGE_BIN, self.name] + args, cwd=self.nodedir) + if not wait: + tmp = None + if tmp: + self.warn("cmd exited with status %s: %s" % (tmp, str(args))) + return tmp + + def cmdresult(self, args, wait = True): + cmdid, cmdin, cmdout, cmderr = self.popen(args) + result = cmdout.read() + result += cmderr.read() + cmdin.close() + cmdout.close() + cmderr.close() + if wait: + status = cmdid.wait() + else: + status = 0 + return (status, result) + + def popen(self, args): + cmd = [VIMAGE_BIN, self.name] + cmd.extend(args) + tmp = subprocess.Popen(cmd, stdin = subprocess.PIPE, + stdout = subprocess.PIPE, + stderr = subprocess.PIPE, cwd=self.nodedir) + return tmp, tmp.stdin, tmp.stdout, tmp.stderr + + def icmd(self, args): + return os.spawnlp(os.P_WAIT, VIMAGE_BIN, VIMAGE_BIN, self.name, *args) + + def term(self, sh = "/bin/sh"): + return os.spawnlp(os.P_WAIT, "xterm", "xterm", "-ut", + "-title", self.name, "-e", VIMAGE_BIN, self.name, sh) + + def termcmdstring(self, sh = "/bin/sh"): + ''' We add 'sudo' to the command string because the GUI runs as a + normal user. + ''' + return "cd %s && sudo %s %s %s" % (self.nodedir, VIMAGE_BIN, self.name, sh) + + def shcmd(self, cmdstr, sh = "/bin/sh"): + return self.cmd([sh, "-c", cmdstr]) + + def boot(self): + pass + + def mount(self, source, target): + source = os.path.abspath(source) + self.info("mounting %s at %s" % (source, target)) + self.addsymlink(path=target, file=None) + + def umount(self, target): + self.info("unmounting '%s'" % target) + + def newveth(self, ifindex = None, ifname = None, net = None): + self.lock.acquire() + try: + if ifindex is None: + ifindex = self.newifindex() + if ifname is None: + ifname = "eth%d" % ifindex + sessionid = self.session.shortsessionid() + name = "n%s_%s_%s" % (self.objid, ifindex, sessionid) + localname = name + ifclass = VEth + veth = ifclass(node = self, name = name, localname = localname, + mtu = 1500, net = net, start = self.up) + if self.up: + # install into jail + check_call([IFCONFIG_BIN, veth.name, "vnet", self.name]) + # rename from "ngeth0" to "eth0" + self.cmd([IFCONFIG_BIN, veth.name, "name", ifname]) + veth.name = ifname + try: + self.addnetif(veth, ifindex) + except: + veth.shutdown() + del veth + raise + return ifindex + finally: + self.lock.release() + + def sethwaddr(self, ifindex, addr): + self._netif[ifindex].sethwaddr(addr) + if self.up: + self.cmd([IFCONFIG_BIN, self.ifname(ifindex), "link", + str(addr)]) + + def addaddr(self, ifindex, addr): + if self.up: + if ':' in addr: + family = "inet6" + else: + family = "inet" + self.cmd([IFCONFIG_BIN, self.ifname(ifindex), family, "alias", + str(addr)]) + self._netif[ifindex].addaddr(addr) + + def deladdr(self, ifindex, addr): + try: + self._netif[ifindex].deladdr(addr) + except ValueError: + self.warn("trying to delete unknown address: %s" % addr) + if self.up: + if ':' in addr: + family = "inet6" + else: + family = "inet" + self.cmd([IFCONFIG_BIN, self.ifname(ifindex), family, "-alias", + str(addr)]) + + valid_deladdrtype = ("inet", "inet6", "inet6link") + def delalladdr(self, ifindex, addrtypes = valid_deladdrtype): + addr = self.getaddr(self.ifname(ifindex), rescan = True) + for t in addrtypes: + if t not in self.valid_deladdrtype: + raise ValueError, "addr type must be in: " + \ + " ".join(self.valid_deladdrtype) + for a in addr[t]: + self.deladdr(ifindex, a) + # update cached information + self.getaddr(self.ifname(ifindex), rescan = True) + + def ifup(self, ifindex): + if self.up: + self.cmd([IFCONFIG_BIN, self.ifname(ifindex), "up"]) + + def newnetif(self, net = None, addrlist = [], hwaddr = None, + ifindex = None, ifname = None): + self.lock.acquire() + try: + ifindex = self.newveth(ifindex = ifindex, ifname = ifname, + net = net) + if net is not None: + self.attachnet(ifindex, net) + if hwaddr: + self.sethwaddr(ifindex, hwaddr) + for addr in maketuple(addrlist): + self.addaddr(ifindex, addr) + self.ifup(ifindex) + return ifindex + finally: + self.lock.release() + + def attachnet(self, ifindex, net): + self._netif[ifindex].attachnet(net) + + def detachnet(self, ifindex): + self._netif[ifindex].detachnet() + + def addfile(self, srcname, filename): + shcmd = "mkdir -p $(dirname '%s') && mv '%s' '%s' && sync" % \ + (filename, srcname, filename) + self.shcmd(shcmd) + + def getaddr(self, ifname, rescan = False): + return None + #return self.vnodeclient.getaddr(ifname = ifname, rescan = rescan) + + def addsymlink(self, path, file): + ''' Create a symbolic link from /path/name/file -> + /tmp/pycore.nnnnn/@.conf/path.name/file + ''' + dirname = path + if dirname and dirname[0] == "/": + dirname = dirname[1:] + dirname = dirname.replace("/", ".") + if file: + pathname = os.path.join(path, file) + sym = os.path.join(self.session.sessiondir, "@.conf", dirname, file) + else: + pathname = path + sym = os.path.join(self.session.sessiondir, "@.conf", dirname) + + if os.path.islink(pathname): + if os.readlink(pathname) == sym: + # this link already exists - silently return + return + os.unlink(pathname) + else: + if os.path.exists(pathname): + self.warn("did not create symlink for %s since path " \ + "exists on host" % pathname) + return + self.info("creating symlink %s -> %s" % (pathname, sym)) + os.symlink(sym, pathname) + +class JailNode(SimpleJailNode): + + def __init__(self, session, objid = None, name = None, + nodedir = None, bootsh = "boot.sh", verbose = False, + start = True): + super(JailNode, self).__init__(session = session, objid = objid, + name = name, nodedir = nodedir, + verbose = verbose) + self.bootsh = bootsh + if not start: + return + # below here is considered node startup/instantiation code + self.makenodedir() + self.startup() + + def boot(self): + self.session.services.bootnodeservices(self) + + def validate(self): + self.session.services.validatenodeservices(self) + + def startup(self): + self.lock.acquire() + try: + super(JailNode, self).startup() + #self.privatedir("/var/run") + #self.privatedir("/var/log") + finally: + self.lock.release() + + def shutdown(self): + if not self.up: + return + self.lock.acquire() + # services are instead stopped when session enters datacollect state + #self.session.services.stopnodeservices(self) + try: + super(JailNode, self).shutdown() + finally: + self.rmnodedir() + self.lock.release() + + def privatedir(self, path): + if path[0] != "/": + raise ValueError, "path not fully qualified: " + path + hostpath = os.path.join(self.nodedir, path[1:].replace("/", ".")) + try: + os.mkdir(hostpath) + except OSError: + pass + except Exception, e: + raise Exception, e + self.mount(hostpath, path) + + def opennodefile(self, filename, mode = "w"): + dirname, basename = os.path.split(filename) + #self.addsymlink(path=dirname, file=basename) + if not basename: + raise ValueError, "no basename for filename: " + filename + if dirname and dirname[0] == "/": + dirname = dirname[1:] + dirname = dirname.replace("/", ".") + dirname = os.path.join(self.nodedir, dirname) + if not os.path.isdir(dirname): + os.makedirs(dirname, mode = 0755) + hostfilename = os.path.join(dirname, basename) + return open(hostfilename, mode) + + def nodefile(self, filename, contents, mode = 0644): + f = self.opennodefile(filename, "w") + f.write(contents) + os.chmod(f.name, mode) + f.close() + self.info("created nodefile: '%s'; mode: 0%o" % (f.name, mode)) + diff --git a/daemon/core/conf.py b/daemon/core/conf.py new file mode 100644 index 00000000..6b9bdf0a --- /dev/null +++ b/daemon/core/conf.py @@ -0,0 +1,373 @@ +# +# CORE +# Copyright (c)2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# authors: Jeff Ahrenholz +# +''' +conf.py: common support for configurable objects +''' +import string +from core.api import coreapi + +class ConfigurableManager(object): + ''' A generic class for managing Configurables. This class can register + with a session to receive Config Messages for setting some parameters + for itself or for the Configurables that it manages. + ''' + # name corresponds to configuration object field + _name = "" + # type corresponds with register message types + _type = None + + def __init__(self, session=None): + self.session = session + self.session.addconfobj(self._name, self._type, self.configure) + # Configurable key=values, indexed by node number + self.configs = {} + + + def configure(self, session, msg): + ''' Handle configure messages. The configuration message sent to a + ConfigurableManager usually is used to: + 1. Request a list of Configurables (request flag) + 2. Reset manager and clear configs (reset flag) + 3. Send values that configure the manager or one of its + Configurables + + Returns any reply messages. + ''' + objname = msg.gettlv(coreapi.CORE_TLV_CONF_OBJ) + conftype = msg.gettlv(coreapi.CORE_TLV_CONF_TYPE) + if conftype == coreapi.CONF_TYPE_FLAGS_REQUEST: + return self.configure_request(msg) + elif conftype == coreapi.CONF_TYPE_FLAGS_RESET: + if objname == "all" or objname == self._name: + return self.configure_reset(msg) + else: + return self.configure_values(msg, + msg.gettlv(coreapi.CORE_TLV_CONF_VALUES)) + + def configure_request(self, msg): + ''' Request configuration data. + ''' + return None + + def configure_reset(self, msg): + ''' By default, resets this manager to clear configs. + ''' + return self.reset() + + def configure_values(self, msg, values): + ''' Values have been sent to this manager. + ''' + return None + + def configure_values_keyvalues(self, msg, values, target, keys): + ''' Helper that can be used for configure_values for parsing in + 'key=value' strings from a values field. The key name must be + in the keys list, and target.key=value is set. + ''' + if values is None: + return None + kvs = values.split('|') + for kv in kvs: + try: + # key=value + (key, value) = kv.split('=', 1) + except ValueError: + # value only + key = keys[kvs.index(kv)] + value = kv + if key not in keys: + raise ValueError, "invalid key: %s" % key + setattr(target, key, value) + return None + + def reset(self): + return None + + def setconfig(self, nodenum, conftype, values): + ''' add configuration values for a node to a dictionary; values are + usually received from a Configuration Message, and may refer to a + node for which no object exists yet + ''' + conflist = [] + if nodenum in self.configs: + oldlist = self.configs[nodenum] + found = False + for (t, v) in oldlist: + if (t == conftype): + # replace existing config + found = True + conflist.append((conftype, values)) + else: + conflist.append((t, v)) + if not found: + conflist.append((conftype, values)) + else: + conflist.append((conftype, values)) + self.configs[nodenum] = conflist + + def getconfig(self, nodenum, conftype, defaultvalues): + ''' get configuration values for a node; if the values don't exist in + our dictionary then return the default values supplied + ''' + if nodenum in self.configs: + # return configured values + conflist = self.configs[nodenum] + for (t, v) in conflist: + if (conftype is None) or (t == conftype): + return (t, v) + # return default values provided (may be None) + return (conftype, defaultvalues) + + def getallconfigs(self, use_clsmap=True): + ''' Return (nodenum, conftype, values) tuples for all stored configs. + Used when reconnecting to a session. + ''' + r = [] + for nodenum in self.configs: + for (t, v) in self.configs[nodenum]: + if use_clsmap: + t = self._modelclsmap[t] + r.append( (nodenum, t, v) ) + return r + + def clearconfig(self, nodenum): + ''' remove configuration values for the specified node; + when nodenum is None, remove all configuration values + ''' + if nodenum is None: + self.configs = {} + return + if nodenum in self.configs: + self.configs.pop(nodenum) + + def setconfig_keyvalues(self, nodenum, conftype, keyvalues): + ''' keyvalues list of tuples + ''' + if conftype not in self._modelclsmap: + self.warn("Unknown model type '%s'" % (conftype)) + return + model = self._modelclsmap[conftype] + keys = model.getnames() + # defaults are merged with supplied values here + values = list(model.getdefaultvalues()) + for key, value in keyvalues: + if key not in keys: + self.warn("Skipping unknown configuration key for %s: '%s'" % \ + (conftype, key)) + continue + i = keys.index(key) + values[i] = value + self.setconfig(nodenum, conftype, values) + + def getmodels(self, n): + ''' Return a list of model classes and values for a net if one has been + configured. This is invoked when exporting a session to XML. + This assumes self.configs contains an iterable of (model-names, values) + and a self._modelclsmapdict exists. + ''' + r = [] + if n.objid in self.configs: + v = self.configs[n.objid] + for model in v: + cls = self._modelclsmap[model[0]] + vals = model[1] + r.append((cls, vals)) + return r + + + def info(self, msg): + self.session.info(msg) + + def warn(self, msg): + self.session.warn(msg) + + +class Configurable(object): + ''' A generic class for managing configuration parameters. + Parameters are sent via Configuration Messages, which allow the GUI + to build dynamic dialogs depending on what is being configured. + ''' + _name = "" + # Configuration items: + # ('name', 'type', 'default', 'possible-value-list', 'caption') + _confmatrix = [] + _confgroups = None + _bitmap = None + + def __init__(self, session=None, objid=None): + self.session = session + self.objid = objid + + def reset(self): + pass + + def register(self): + pass + + @classmethod + def getdefaultvalues(cls): + return tuple( map(lambda x: x[2], cls._confmatrix) ) + + @classmethod + def getnames(cls): + return tuple( map( lambda x: x[0], cls._confmatrix) ) + + @classmethod + def configure(cls, mgr, msg): + ''' Handle configuration messages for this object. + ''' + reply = None + nodenum = msg.gettlv(coreapi.CORE_TLV_CONF_NODE) + objname = msg.gettlv(coreapi.CORE_TLV_CONF_OBJ) + conftype = msg.gettlv(coreapi.CORE_TLV_CONF_TYPE) + + if mgr.verbose: + mgr.info("received configure message for %s" % cls._name) + if conftype == coreapi.CONF_TYPE_FLAGS_REQUEST: + if mgr.verbose: + mgr.info("replying to configure request for %s model" % + cls._name) + # when object name is "all", the reply to this request may be None + # if this node has not been configured for this model; otherwise we + # reply with the defaults for this model + if objname == "all": + defaults = None + typeflags = coreapi.CONF_TYPE_FLAGS_UPDATE + else: + defaults = cls.getdefaultvalues() + typeflags = coreapi.CONF_TYPE_FLAGS_NONE + values = mgr.getconfig(nodenum, cls._name, defaults)[1] + if values is None: + # node has no active config for this model (don't send defaults) + return None + # reply with config options + reply = cls.toconfmsg(0, nodenum, typeflags, values) + elif conftype == coreapi.CONF_TYPE_FLAGS_RESET: + if objname == "all": + mgr.clearconfig(nodenum) + #elif conftype == coreapi.CONF_TYPE_FLAGS_UPDATE: + else: + # store the configuration values for later use, when the node + # object has been created + if objname is None: + mgr.info("no configuration object for node %s" % nodenum) + return None + values_str = msg.gettlv(coreapi.CORE_TLV_CONF_VALUES) + defaults = cls.getdefaultvalues() + if values_str is None: + # use default or preconfigured values + values = mgr.getconfig(nodenum, cls._name, defaults)[1] + else: + # use new values supplied from the conf message + values = values_str.split('|') + # determine new or old style config + new = cls.haskeyvalues(values) + if new: + new_values = list(defaults) + keys = cls.getnames() + for v in values: + key, value = v.split('=', 1) + try: + new_values[keys.index(key)] = value + except ValueError: + mgr.info("warning: ignoring invalid key '%s'" % key) + values = new_values + mgr.setconfig(nodenum, objname, values) + return reply + + @classmethod + def toconfmsg(cls, flags, nodenum, typeflags, values): + ''' Convert this class to a Config API message. Some TLVs are defined + by the class, but node number, conf type flags, and values must + be passed in. + ''' + keys = cls.getnames() + keyvalues = map(lambda a,b: "%s=%s" % (a,b), keys, values) + values_str = string.join(keyvalues, '|') + tlvdata = "" + if nodenum is not None: + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_NODE, + nodenum) + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_OBJ, + cls._name) + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_TYPE, + typeflags) + datatypes = tuple( map(lambda x: x[1], cls._confmatrix) ) + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_DATA_TYPES, + datatypes) + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_VALUES, + values_str) + captions = reduce( lambda a,b: a + '|' + b, \ + map(lambda x: x[4], cls._confmatrix)) + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_CAPTIONS, + captions) + possiblevals = reduce( lambda a,b: a + '|' + b, \ + map(lambda x: x[3], cls._confmatrix)) + tlvdata += coreapi.CoreConfTlv.pack( + coreapi.CORE_TLV_CONF_POSSIBLE_VALUES, possiblevals) + if cls._bitmap is not None: + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_BITMAP, + cls._bitmap) + if cls._confgroups is not None: + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_GROUPS, + cls._confgroups) + msg = coreapi.CoreConfMessage.pack(flags, tlvdata) + return msg + + @staticmethod + def booltooffon(value): + ''' Convenience helper turns bool into on (True) or off (False) string. + ''' + if value == "1" or value == "true" or value == "on": + return "on" + else: + return "off" + + @staticmethod + def offontobool(value): + if type(value) == str: + if value.lower() == "on": + return 1 + elif value.lower() == "off": + return 0 + return value + + + def valueof(self, name, values): + ''' Helper to return a value by the name defined in confmatrix. + Checks if it is boolean''' + i = self.getnames().index(name) + if self._confmatrix[i][1] == coreapi.CONF_DATA_TYPE_BOOL and \ + values[i] != "": + return self.booltooffon( values[i] ) + else: + return values[i] + + @staticmethod + def haskeyvalues(values): + ''' Helper to check for list of key=value pairs versus a plain old + list of values. Returns True if all elements are "key=value". + ''' + if len(values) == 0: + return False + for v in values: + if "=" not in v: + return False + return True + + def getkeyvaluelist(self): + ''' Helper to return a list of (key, value) tuples. Keys come from + self._confmatrix and values are instance attributes. + ''' + r = [] + for k in self.getnames(): + if hasattr(self, k): + r.append((k, getattr(self, k))) + return r + + diff --git a/daemon/core/constants.py.in b/daemon/core/constants.py.in new file mode 100644 index 00000000..0aa8ea5f --- /dev/null +++ b/daemon/core/constants.py.in @@ -0,0 +1,19 @@ +# Constants created by autoconf ./configure script +COREDPY_VERSION = "@COREDPY_VERSION@" +CORE_STATE_DIR = "@CORE_STATE_DIR@" +CORE_CONF_DIR = "@CORE_CONF_DIR@" +CORE_DATA_DIR = "@CORE_DATA_DIR@" +CORE_LIB_DIR = "@CORE_LIB_DIR@" +CORE_SBIN_DIR = "@SBINDIR@" + +BRCTL_BIN = "@brctl_path@/brctl" +SYSCTL_BIN = "@sysctl_path@/sysctl" +IP_BIN = "@ip_path@/ip" +TC_BIN = "@tc_path@/tc" +EBTABLES_BIN = "@ebtables_path@/ebtables" +IFCONFIG_BIN = "@ifconfig_path@/ifconfig" +NGCTL_BIN = "@ngctl_path@/ngctl" +VIMAGE_BIN = "@vimage_path@/vimage" +QUAGGA_STATE_DIR = "@CORE_STATE_DIR@/run/quagga" +MOUNT_BIN = "@mount_path@/mount" +UMOUNT_BIN = "@umount_path@/umount" diff --git a/daemon/core/coreobj.py b/daemon/core/coreobj.py new file mode 100644 index 00000000..5669b639 --- /dev/null +++ b/daemon/core/coreobj.py @@ -0,0 +1,445 @@ +# +# CORE +# Copyright (c)2010-2013 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# authors: Tom Goff +# Jeff Ahrenholz +# +''' +coreobj.py: defines the basic objects for emulation: the PyCoreObj base class, +along with PyCoreNode, PyCoreNet, and PyCoreNetIf +''' +import sys, threading, os, shutil + +from core.api import coreapi +from core.misc.ipaddr import * + +class Position(object): + ''' Helper class for Cartesian coordinate position + ''' + def __init__(self, x = None, y = None, z = None): + self.x = None + self.y = None + self.z = None + self.set(x, y, z) + + def set(self, x = None, y = None, z = None): + ''' Returns True if the position has actually changed. + ''' + if self.x == x and self.y == y and self.z == z: + return False + self.x = x + self.y = y + self.z = z + return True + + def get(self): + ''' Fetch the (x,y,z) position tuple. + ''' + return (self.x, self.y, self.z) + +class PyCoreObj(object): + ''' Base class for pycore objects (nodes and nets) + ''' + apitype = None + + def __init__(self, session, objid = None, name = None, verbose = False, + start = True): + self.session = session + if objid is None: + objid = session.getobjid() + self.objid = objid + if name is None: + name = "o%s" % self.objid + self.name = name + # ifindex is key, PyCoreNetIf instance is value + self._netif = {} + self.ifindex = 0 + self.canvas = None + self.icon = None + self.opaque = None + self.verbose = verbose + self.position = Position() + + def startup(self): + ''' Each object implements its own startup method. + ''' + raise NotImplementedError + + def shutdown(self): + ''' Each object implements its own shutdown method. + ''' + raise NotImplementedError + + def setposition(self, x = None, y = None, z = None): + ''' Set the (x,y,z) position of the object. + ''' + return self.position.set(x = x, y = y, z = z) + + def getposition(self): + ''' Return an (x,y,z) tuple representing this object's position. + ''' + return self.position.get() + + def ifname(self, ifindex): + return self.netif(ifindex).name + + def netifs(self, sort=False): + ''' Iterate over attached network interfaces. + ''' + if sort: + return map(lambda k: self._netif[k], sorted(self._netif.keys())) + else: + return self._netif.itervalues() + + def numnetif(self): + ''' Return the attached interface count. + ''' + return len(self._netif) + + def getifindex(self, netif): + for ifindex in self._netif: + if self._netif[ifindex] is netif: + return ifindex + return -1 + + def newifindex(self): + while self.ifindex in self._netif: + self.ifindex += 1 + ifindex = self.ifindex + self.ifindex += 1 + return ifindex + + def tonodemsg(self, flags): + ''' Build a CORE API Node Message for this object. Both nodes and + networks can be represented by a Node Message. + ''' + if self.apitype is None: + return None + tlvdata = "" + (x, y, z) = self.getposition() + tlvdata += coreapi.CoreNodeTlv.pack(coreapi.CORE_TLV_NODE_NUMBER, + self.objid) + tlvdata += coreapi.CoreNodeTlv.pack(coreapi.CORE_TLV_NODE_TYPE, + self.apitype) + tlvdata += coreapi.CoreNodeTlv.pack(coreapi.CORE_TLV_NODE_NAME, + self.name) + if hasattr(self, "type") and self.type is not None: + tlvdata += coreapi.CoreNodeTlv.pack(coreapi.CORE_TLV_NODE_MODEL, + self.type) + + if x is not None: + tlvdata += coreapi.CoreNodeTlv.pack(coreapi.CORE_TLV_NODE_XPOS, x) + if y is not None: + tlvdata += coreapi.CoreNodeTlv.pack(coreapi.CORE_TLV_NODE_YPOS, y) + if self.canvas is not None: + tlvdata += coreapi.CoreNodeTlv.pack(coreapi.CORE_TLV_NODE_CANVAS, + self.canvas) + tlvdata += coreapi.CoreNodeTlv.pack(coreapi.CORE_TLV_NODE_EMUID, + self.objid) + if self.icon is not None: + tlvdata += coreapi.CoreNodeTlv.pack(coreapi.CORE_TLV_NODE_ICON, + self.icon) + if self.opaque is not None: + tlvdata += coreapi.CoreNodeTlv.pack(coreapi.CORE_TLV_NODE_OPAQUE, + self.opaque) + msg = coreapi.CoreNodeMessage.pack(flags, tlvdata) + return msg + + def tolinkmsgs(self, flags): + ''' Build CORE API Link Messages for this object. There is no default + method for PyCoreObjs as PyCoreNodes do not implement this but + PyCoreNets do. + ''' + return [] + + def info(self, msg): + ''' Utility method for printing informational messages when verbose + is turned on. + ''' + if self.verbose: + print "%s: %s" % (self.name, msg) + sys.stdout.flush() + + def warn(self, msg): + ''' Utility method for printing warning/error messages + ''' + print >> sys.stderr, "%s: %s" % (self.name, msg) + sys.stderr.flush() + + def exception(self, level, source, text): + ''' Generate an Exception Message for this session, providing this + object number. + ''' + if self.session: + id = None + if isinstance(self.objid, int): + id = self.objid + elif isinstance(self.objid, str) and self.objid.isdigit(): + id = int(self.objid) + self.session.exception(level, source, id, text) + + +class PyCoreNode(PyCoreObj): + ''' Base class for nodes + ''' + def __init__(self, session, objid = None, name = None, verbose = False, + start = True): + ''' Initialization for node objects. + ''' + PyCoreObj.__init__(self, session, objid, name, verbose=verbose, + start=start) + self.services = [] + self.type = None + self.nodedir = None + + def nodeid(self): + return self.objid + + def addservice(self, service): + if service is not None: + self.services.append(service) + + def makenodedir(self): + if self.nodedir is None: + self.nodedir = \ + os.path.join(self.session.sessiondir, self.name + ".conf") + os.makedirs(self.nodedir) + self.tmpnodedir = True + else: + self.tmpnodedir = False + + def rmnodedir(self): + if hasattr(self.session.options, 'preservedir'): + if self.session.options.preservedir == '1': + return + if self.tmpnodedir: + shutil.rmtree(self.nodedir, ignore_errors = True) + + def addnetif(self, netif, ifindex): + if ifindex in self._netif: + raise ValueError, "ifindex %s already exists" % ifindex + self._netif[ifindex] = netif + + def delnetif(self, ifindex): + if ifindex not in self._netif: + raise ValueError, "ifindex %s does not exist" % ifindex + netif = self._netif.pop(ifindex) + netif.shutdown() + del netif + + def netif(self, ifindex, net = None): + if ifindex in self._netif: + return self._netif[ifindex] + else: + return None + + def attachnet(self, ifindex, net): + if ifindex not in self._netif: + raise ValueError, "ifindex %s does not exist" % ifindex + self._netif[ifindex].attachnet(net) + + def detachnet(self, ifindex): + if ifindex not in self._netif: + raise ValueError, "ifindex %s does not exist" % ifindex + self._netif[ifindex].detachnet() + + def setposition(self, x = None, y = None, z = None): + changed = PyCoreObj.setposition(self, x = x, y = y, z = z) + if not changed: + # save extra interface range calculations + return + for netif in self.netifs(sort=True): + netif.setposition(x, y, z) + + def commonnets(self, obj, want_ctrl=False): + ''' Given another node or net object, return common networks between + this node and that object. A list of tuples is returned, with each tuple + consisting of (network, interface1, interface2). + ''' + r = [] + for netif1 in self.netifs(): + if not want_ctrl and hasattr(netif1, 'control'): + continue + for netif2 in obj.netifs(): + if netif1.net == netif2.net: + r += (netif1.net, netif1, netif2), + return r + + + +class PyCoreNet(PyCoreObj): + ''' Base class for networks + ''' + linktype = coreapi.CORE_LINK_WIRED + + def __init__(self, session, objid, name, verbose = False, start = True): + ''' Initialization for network objects. + ''' + PyCoreObj.__init__(self, session, objid, name, verbose=verbose, + start=start) + self._linked = {} + self._linked_lock = threading.Lock() + + def attach(self, netif): + i = self.newifindex() + self._netif[i] = netif + netif.netifi = i + with self._linked_lock: + self._linked[netif] = {} + + def detach(self, netif): + del self._netif[netif.netifi] + netif.netifi = None + with self._linked_lock: + del self._linked[netif] + + def tolinkmsgs(self, flags): + ''' Build CORE API Link Messages for this network. Each link message + describes a link between this network and a node. + ''' + msgs = [] + # build a link message from this network node to each node having a + # connected interface + for netif in self.netifs(sort=True): + if not hasattr(netif, "node"): + continue + otherobj = netif.node + if otherobj is None: + # two layer-2 switches/hubs linked together via linknet() + if not hasattr(netif, "othernet"): + continue + otherobj = netif.othernet + if otherobj.objid == self.objid: + continue + + tlvdata = "" + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_N1NUMBER, + self.objid) + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_N2NUMBER, + otherobj.objid) + delay = netif.getparam('delay') + bw = netif.getparam('bw') + loss = netif.getparam('loss') + duplicate = netif.getparam('duplicate') + jitter = netif.getparam('jitter') + if delay is not None: + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_DELAY, + delay) + if bw is not None: + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_BW, + bw) + if loss is not None: + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_PER, + str(loss)) + if duplicate is not None: + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_DUP, + str(duplicate)) + if jitter is not None: + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_JITTER, + jitter) + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_TYPE, + self.linktype) + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_IF2NUM, + otherobj.getifindex(netif)) + for addr in netif.addrlist: + (ip, sep, mask) = addr.partition('/') + mask = int(mask) + if isIPv4Address(ip): + family = AF_INET + tlvtypeip = coreapi.CORE_TLV_LINK_IF2IP4 + tlvtypemask = coreapi.CORE_TLV_LINK_IF2IP4MASK + else: + family = AF_INET6 + tlvtypeip = coreapi.CORE_TLV_LINK_IF2IP6 + tlvtypemask = coreapi.CORE_TLV_LINK_IF2IP6MASK + ipl = socket.inet_pton(family, ip) + tlvdata += coreapi.CoreLinkTlv.pack(tlvtypeip, \ + IPAddr(af=family, addr=ipl)) + tlvdata += coreapi.CoreLinkTlv.pack(tlvtypemask, mask) + + msg = coreapi.CoreLinkMessage.pack(flags, tlvdata) + msgs.append(msg) + return msgs + +class PyCoreNetIf(object): + ''' Base class for interfaces. + ''' + def __init__(self, node, name, mtu): + self.node = node + self.name = name + if not isinstance(mtu, (int, long)): + raise ValueError + self.mtu = mtu + self.net = None + self._params = {} + self.addrlist = [] + self.hwaddr = None + self.poshook = None + # used with EMANE + self.transport_type = None + # interface index on the network + self.netindex = None + + def startup(self): + pass + + def shutdown(self): + pass + + def attachnet(self, net): + if self.net: + self.detachnet() + self.net = None + net.attach(self) + self.net = net + + def detachnet(self): + if self.net is not None: + self.net.detach(self) + + def addaddr(self, addr): + self.addrlist.append(addr) + + def deladdr(self, addr): + self.addrlist.remove(addr) + + def sethwaddr(self, addr): + self.hwaddr = addr + + def getparam(self, key): + ''' Retrieve a parameter from the _params dict, + or None if the parameter does not exist. + ''' + if key not in self._params: + return None + return self._params[key] + + def getparams(self): + ''' Return (key, value) pairs from the _params dict. + ''' + r = [] + for k in sorted(self._params.keys()): + r.append((k, self._params[k])) + return r + + def setparam(self, key, value): + ''' Set a parameter in the _params dict. + Returns True if the parameter has changed. + ''' + if key in self._params: + if self._params[key] == value: + return False + elif self._params[key] <= 0 and value <= 0: + # treat None and 0 as unchanged values + return False + self._params[key] = value + return True + + def setposition(self, x, y, z): + ''' Dispatch to any position hook (self.poshook) handler. + ''' + if self.poshook is not None: + self.poshook(self, x, y, z) + diff --git a/daemon/core/emane/__init__.py b/daemon/core/emane/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/daemon/core/emane/bypass.py b/daemon/core/emane/bypass.py new file mode 100644 index 00000000..0725c4ef --- /dev/null +++ b/daemon/core/emane/bypass.py @@ -0,0 +1,65 @@ +# +# CORE +# Copyright (c)2011-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +''' +bypass.py: EMANE Bypass model for CORE +''' + +import sys +import string +from core.api import coreapi + +from core.constants import * +from emane import EmaneModel + +class EmaneBypassModel(EmaneModel): + def __init__(self, session, objid = None, verbose = False): + EmaneModel.__init__(self, session, objid, verbose) + + _name = "emane_bypass" + _confmatrix = [ + ("none",coreapi.CONF_DATA_TYPE_BOOL, '0', + 'True,False','There are no parameters for the bypass model.'), + ] + + # value groupings + _confgroups = "Bypass Parameters:1-1" + + def buildnemxmlfiles(self, e, ifc): + ''' Build the necessary nem, mac, and phy XMLs in the given path. + If an individual NEM has a nonstandard config, we need to build + that file also. Otherwise the WLAN-wide nXXemane_bypassnem.xml, + nXXemane_bypassmac.xml, nXXemane_bypassphy.xml are used. + ''' + values = e.getifcconfig(self.objid, self._name, + self.getdefaultvalues(), ifc) + if values is None: + return + nemdoc = e.xmldoc("nem") + nem = nemdoc.getElementsByTagName("nem").pop() + nem.setAttribute("name", "BYPASS NEM") + mactag = nemdoc.createElement("mac") + mactag.setAttribute("definition", self.macxmlname(ifc)) + nem.appendChild(mactag) + phytag = nemdoc.createElement("phy") + phytag.setAttribute("definition", self.phyxmlname(ifc)) + nem.appendChild(phytag) + e.xmlwrite(nemdoc, self.nemxmlname(ifc)) + + macdoc = e.xmldoc("mac") + mac = macdoc.getElementsByTagName("mac").pop() + mac.setAttribute("name", "BYPASS MAC") + mac.setAttribute("library", "bypassmaclayer") + e.xmlwrite(macdoc, self.macxmlname(ifc)) + + phydoc = e.xmldoc("phy") + phy = phydoc.getElementsByTagName("phy").pop() + phy.setAttribute("name", "BYPASS PHY") + phy.setAttribute("library", "bypassphylayer") + e.xmlwrite(phydoc, self.phyxmlname(ifc)) + + diff --git a/daemon/core/emane/commeffect.py b/daemon/core/emane/commeffect.py new file mode 100755 index 00000000..3b1bc140 --- /dev/null +++ b/daemon/core/emane/commeffect.py @@ -0,0 +1,124 @@ +# +# CORE +# Copyright (c)2010-2013 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# authors: Jeff Ahrenholz +# Randy Charland +# +''' +commeffect.py: EMANE CommEffect model for CORE +''' + +import sys +import string +from core.api import coreapi + +from core.constants import * +from emane import EmaneModel + +try: + import emaneeventservice + import emaneeventcommeffect +except Exception, e: + pass + +def z(x): + ''' Helper to use 0 for None values. ''' + if x is None: + return 0 + else: + return x + +class EmaneCommEffectModel(EmaneModel): + def __init__(self, session, objid = None, verbose = False): + EmaneModel.__init__(self, session, objid, verbose) + + # model name + _name = "emane_commeffect" + # CommEffect parameters + _confmatrix_shim = [ + ("defaultconnectivity", coreapi.CONF_DATA_TYPE_BOOL, '0', + 'On,Off', 'defaultconnectivity'), + ("filterfile", coreapi.CONF_DATA_TYPE_STRING, '', + '', 'filter file'), + ("groupid", coreapi.CONF_DATA_TYPE_UINT32, '0', + '', 'NEM Group ID'), + ("enablepromiscuousmode", coreapi.CONF_DATA_TYPE_BOOL, '0', + 'On,Off', 'enable promiscuous mode'), + ("enabletighttimingmode", coreapi.CONF_DATA_TYPE_BOOL, '0', + 'On,Off', 'enable tight timing mode'), + ("receivebufferperiod", coreapi.CONF_DATA_TYPE_FLOAT, '1.0', + '', 'receivebufferperiod'), + ] + + _confmatrix = _confmatrix_shim + # value groupings + _confgroups = "CommEffect SHIM Parameters:1-%d" \ + % len(_confmatrix_shim) + + def buildnemxmlfiles(self, e, ifc): + ''' Build the necessary nem and commeffect XMLs in the given path. + If an individual NEM has a nonstandard config, we need to build + that file also. Otherwise the WLAN-wide + nXXemane_commeffectnem.xml, nXXemane_commeffectshim.xml are used. + ''' + values = e.getifcconfig(self.objid, self._name, + self.getdefaultvalues(), ifc) + if values is None: + return + shimdoc = e.xmldoc("shim") + shim = shimdoc.getElementsByTagName("shim").pop() + shim.setAttribute("name", "commeffect SHIM") + shim.setAttribute("library", "commeffectshim") + + names = self.getnames() + shimnames = list(names[:len(self._confmatrix_shim)]) + shimnames.remove("filterfile") + + # append all shim options (except filterfile) to shimdoc + map( lambda n: shim.appendChild(e.xmlparam(shimdoc, n, \ + self.valueof(n, values))), shimnames) + # empty filterfile is not allowed + ff = self.valueof("filterfile", values) + if ff.strip() != '': + shim.appendChild(e.xmlparam(shimdoc, "filterfile", ff)) + e.xmlwrite(shimdoc, self.shimxmlname(ifc)) + + nemdoc = e.xmldoc("nem") + nem = nemdoc.getElementsByTagName("nem").pop() + nem.setAttribute("name", "commeffect NEM") + nem.setAttribute("type", "unstructured") + nem.appendChild(e.xmlshimdefinition(nemdoc, self.shimxmlname(ifc))) + e.xmlwrite(nemdoc, self.nemxmlname(ifc)) + + def linkconfig(self, netif, bw = None, delay = None, + loss = None, duplicate = None, jitter = None, netif2 = None): + ''' Generate CommEffect events when a Link Message is received having + link parameters. + ''' + service = self.session.emane.service + if service is None: + self.session.warn("%s: EMANE event service unavailable" % \ + self._name) + return + if netif is None or netif2 is None: + self.session.warn("%s: missing NEM information" % self._name) + return + # TODO: batch these into multiple events per transmission + event = emaneeventcommeffect.EventCommEffect(1) + index = 0 + e = self.session.obj(self.objid) + nemid = e.getnemid(netif) + nemid2 = e.getnemid(netif2) + mbw = bw + + event.set(index, nemid, 0, z(delay), 0, z(jitter), z(loss), + z(duplicate), long(z(bw)), long(z(mbw))) + service.publish(emaneeventcommeffect.EVENT_ID, + emaneeventservice.PLATFORMID_ANY, + nemid2, emaneeventservice.COMPONENTID_ANY, + event.export()) + + + diff --git a/daemon/core/emane/emane.py b/daemon/core/emane/emane.py new file mode 100644 index 00000000..8e65dd03 --- /dev/null +++ b/daemon/core/emane/emane.py @@ -0,0 +1,844 @@ +# +# CORE +# Copyright (c)2010-2013 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +''' +emane.py: definition of an Emane class for implementing configuration + control of an EMANE emulation. +''' + +import sys, os, threading, subprocess, time, string +from xml.dom.minidom import parseString, Document +from core.constants import * +from core.api import coreapi +from core.misc.ipaddr import MacAddr +from core.conf import ConfigurableManager, Configurable +from core.mobility import WirelessModel +from core.emane.nodes import EmaneNode +try: + import emaneeventservice + import emaneeventlocation +except Exception, e: + pass + +class Emane(ConfigurableManager): + ''' EMANE controller object. Lives in a Session instance and is used for + building EMANE config files from all of the EmaneNode objects in this + emulation, and for controlling the EMANE daemons. + ''' + _name = "emane" + _type = coreapi.CORE_TLV_REG_EMULSRV + _hwaddr_prefix = "02:02" + + def __init__(self, session): + ConfigurableManager.__init__(self, session) + self.verbose = self.session.getcfgitembool('verbose', False) + self._objs = {} + self._objslock = threading.Lock() + self._ifccounts = {} + self._ifccountslock = threading.Lock() + self._modelclsmap = {} + # Port numbers are allocated from these counters + self.platformport = self.session.getcfgitemint('emane_platform_port', + 8100) + self.transformport = self.session.getcfgitemint('emane_transform_port', + 8200) + # model for global EMANE configuration options + self.emane_config = EmaneGlobalModel(session, None, self.verbose) + session.broker.handlers += (self.handledistributed, ) + self.loadmodels() + # this allows the event service Python bindings to be absent + try: + self.service = emaneeventservice.EventService() + except: + self.service = None + self.doeventloop = False + self.eventmonthread = None + # EMANE 0.7.4 support -- to be removed when 0.7.4 support is deprecated + self.emane074 = False + try: + tmp = emaneeventlocation.EventLocation(1) + # check if yaw parameter is supported by Location Events + # if so, we have EMANE 0.8.1+; if not, we have EMANE 0.7.4/earlier + tmp.set(0, 1, 2, 2, 2, 3) + except TypeError: + self.emane074 = True + except Exception: + pass + + + def loadmodels(self): + ''' dynamically load EMANE models that were specified in the config file + ''' + self._modelclsmap.clear() + self._modelclsmap[self.emane_config._name] = self.emane_config + emane_models = self.session.getcfgitem('emane_models') + if emane_models is None: + return + emane_models = emane_models.split(',') + for model in emane_models: + model = model.strip() + try: + modelfile = "%s" % model.lower() + clsname = "Emane%sModel" % model + importcmd = "from %s import %s" % (modelfile, clsname) + exec(importcmd) + except Exception, e: + warntxt = "unable to load the EMANE model '%s'" % modelfile + warntxt += " specified in the config file (%s)" % e + self.session.exception(coreapi.CORE_EXCP_LEVEL_WARNING, "emane", + None, warntxt) + self.warn(warntxt) + continue + # record the model name to class name mapping + # this should match clsname._name + confname = "emane_%s" % model.lower() + self._modelclsmap[confname] = eval(clsname) + # each EmaneModel must have ModelName.configure() defined + confmethod = eval("%s.configure_emane" % clsname) + self.session.addconfobj(confname, coreapi.CORE_TLV_REG_WIRELESS, + confmethod) + + def addobj(self, obj): + ''' add a new EmaneNode object to this Emane controller object + ''' + self._objslock.acquire() + if obj.objid in self._objs: + self._objslock.release() + raise KeyError, "non-unique EMANE object id %s for %s" % \ + (obj.objid, obj) + self._objs[obj.objid] = obj + self._objslock.release() + + def getmodels(self, n): + ''' Used with XML export; see ConfigurableManager.getmodels() + ''' + r = ConfigurableManager.getmodels(self, n) + # EMANE global params are stored with first EMANE node (if non-default + # values are configured) + sorted_ids = sorted(self.configs.keys()) + if None in self.configs and len(sorted_ids) > 1 and \ + n.objid == sorted_ids[1]: + v = self.configs[None] + for model in v: + cls = self._modelclsmap[model[0]] + vals = model[1] + r.append((cls, vals)) + return r + + def getifcconfig(self, nodenum, conftype, defaultvalues, ifc): + # use the network-wide config values or interface(NEM)-specific values? + if ifc is None: + return self.getconfig(nodenum, conftype, defaultvalues)[1] + else: + # don't use default values when interface config is the same as net + # note here that using ifc.node.objid as key allows for only one type + # of each model per node; TODO: use both node and interface as key + return self.getconfig(ifc.node.objid, conftype, None)[1] + + def setup(self): + ''' Populate self._objs with EmaneNodes; perform distributed setup; + associate models with EmaneNodes from self.config. + ''' + with self.session._objslock: + for obj in self.session.objs(): + if isinstance(obj, EmaneNode): + self.addobj(obj) + if len(self._objs) == 0: + return False + if self.checkdistributed(): + # we are slave, but haven't received a platformid yet + cfgval = self.getconfig(None, self.emane_config._name, + self.emane_config.getdefaultvalues())[1] + i = self.emane_config.getnames().index('platform_id_start') + if cfgval[i] == self.emane_config.getdefaultvalues()[i]: + return False + self.setnodemodels() + return True + + def startup(self): + ''' after all the EmaneNode objects have been added, build XML files + and start the daemons + ''' + self.reset() + if not self.setup(): + return + with self._objslock: + self.buildxml() + self.starteventmonitor() + if self.numnems() > 0: + self.startdaemons() + self.installnetifs() + + def poststartup(self): + ''' Retransmit location events now that all NEMs are active. + ''' + if self.doeventmonitor(): + return + with self._objslock: + for n in sorted(self._objs.keys()): + e = self._objs[n] + for netif in e.netifs(): + (x, y, z) = netif.node.position.get() + e.setnemposition(netif, x, y, z) + + def reset(self): + ''' remove all EmaneNode objects from the dictionary, + reset port numbers and nem id counters + ''' + with self._objslock: + self._objs.clear() + # don't clear self._ifccounts here; NEM counts are needed for buildxml + self.platformport = self.session.getcfgitemint('emane_platform_port', + 8100) + self.transformport = self.session.getcfgitemint('emane_transform_port', + 8200) + + def shutdown(self): + ''' stop all EMANE daemons + ''' + self._ifccountslock.acquire() + self._ifccounts.clear() + self._ifccountslock.release() + self._objslock.acquire() + if len(self._objs) == 0: + self._objslock.release() + return + self.info("Stopping EMANE daemons.") + self.deinstallnetifs() + self.stopdaemons() + self.stopeventmonitor() + self._objslock.release() + + def handledistributed(self, msg): + ''' Broker handler for processing CORE API messages as they are + received. This is used to snoop the Link add messages to get NEM + counts of NEMs that exist on other servers. + ''' + if msg.msgtype == coreapi.CORE_API_LINK_MSG and \ + msg.flags & coreapi.CORE_API_ADD_FLAG: + nn = msg.nodenumbers() + # first node is always link layer node in Link add message + if nn[0] in self.session.broker.nets: + serverlist = self.session.broker.getserversbynode(nn[1]) + for server in serverlist: + self._ifccountslock.acquire() + if server not in self._ifccounts: + self._ifccounts[server] = 1 + else: + self._ifccounts[server] += 1 + self._ifccountslock.release() + + def checkdistributed(self): + ''' Check for EMANE nodes that exist on multiple emulation servers and + coordinate the NEM id and port number space. + If we are the master EMANE node, return False so initialization will + proceed as normal; otherwise slaves return True here and + initialization is deferred. + ''' + # check with the session if we are the "master" Emane object? + master = False + self._objslock.acquire() + if len(self._objs) > 0: + master = self.session.master + self.info("Setup EMANE with master=%s." % master) + self._objslock.release() + + # we are not the master Emane object, wait for nem id and ports + if not master: + return True + + cfgval = self.getconfig(None, self.emane_config._name, + self.emane_config.getdefaultvalues())[1] + values = list(cfgval) + + nemcount = 0 + self._objslock.acquire() + for n in self._objs: + emanenode = self._objs[n] + nemcount += emanenode.numnetif() + nemid = int(self.emane_config.valueof("nem_id_start", values)) + nemid += nemcount + platformid = int(self.emane_config.valueof("platform_id_start", values)) + names = list(self.emane_config.getnames()) + + # build an ordered list of servers so platform ID is deterministic + servers = [] + for n in sorted(self._objs): + for s in self.session.broker.getserversbynode(n): + if s not in servers: + servers.append(s) + self._objslock.release() + + for server in servers: + if server == "localhost": + continue + (host, port, sock) = self.session.broker.getserver(server) + if sock is None: + continue + platformid += 1 + typeflags = coreapi.CONF_TYPE_FLAGS_UPDATE + values[names.index("platform_id_start")] = str(platformid) + values[names.index("nem_id_start")] = str(nemid) + msg = EmaneGlobalModel.toconfmsg(flags=0, nodenum=None, + typeflags=typeflags, values=values) + sock.send(msg) + # increment nemid for next server by number of interfaces + self._ifccountslock.acquire() + if server in self._ifccounts: + nemid += self._ifccounts[server] + self._ifccountslock.release() + + return False + + def buildxml(self): + ''' Build all of the XML files required to run EMANE. + ''' + # assume self._objslock is already held here + if self.verbose: + self.info("Emane.buildxml()") + self.buildplatformxml() + self.buildnemxml() + self.buildtransportxml() + + def xmldoc(self, doctype): + ''' Returns an XML xml.minidom.Document with a DOCTYPE tag set to the + provided doctype string, and an initial element having the same + name. + ''' + # we hack in the DOCTYPE using the parser + docstr = """ + + <%s/>""" % (doctype, doctype, doctype) + # normally this would be: doc = Document() + return parseString(docstr) + + def xmlparam(self, doc, name, value): + ''' Convenience function for building a parameter tag of the format: + + ''' + p = doc.createElement("param") + p.setAttribute("name", name) + p.setAttribute("value", value) + return p + + def xmlshimdefinition(self, doc, name): + ''' Convenience function for building a definition tag of the format: + + ''' + p = doc.createElement("shim") + p.setAttribute("definition", name) + return p + + def xmlwrite(self, doc, filename): + ''' Write the given XML document to the specified filename. + ''' + #self.info("%s" % doc.toprettyxml(indent=" ")) + pathname = os.path.join(self.session.sessiondir, filename) + f = open(pathname, "w") + doc.writexml(writer=f, indent="", addindent=" ", newl="\n", \ + encoding="UTF-8") + f.close() + + def setnodemodels(self): + ''' Associate EmaneModel classes with EmaneNode nodes. The model + configurations are stored in self.configs. + ''' + for n in self._objs: + self.setnodemodel(n) + + def setnodemodel(self, n): + emanenode = self._objs[n] + for (t, v) in self.configs[n]: + if t is None: + continue + if t == self.emane_config._name: + continue + # only use the first valid EmaneModel + # convert model name to class (e.g. emane_rfpipe -> EmaneRfPipe) + cls = self._modelclsmap[t] + emanenode.setmodel(cls, v) + return True + # no model has been configured for this EmaneNode + return False + + def nemlookup(self, nemid): + ''' Look for the given numerical NEM ID and return the first matching + EmaneNode and NEM interface. + ''' + emanenode = None + netif = None + + for n in self._objs: + emanenode = self._objs[n] + netif = emanenode.getnemnetif(nemid) + if netif is not None: + break + else: + emanenode = None + return (emanenode, netif) + + def numnems(self): + ''' Return the number of NEMs emulated locally. + ''' + count = 0 + for o in self._objs.values(): + count += len(o.netifs()) + return count + + def buildplatformxml(self): + ''' Build a platform.xml file now that all nodes are configured. + ''' + values = self.getconfig(None, "emane", + self.emane_config.getdefaultvalues())[1] + doc = self.xmldoc("platform") + plat = doc.getElementsByTagName("platform").pop() + platformid = self.emane_config.valueof("platform_id_start", values) + plat.setAttribute("name", "Platform %s" % platformid) + plat.setAttribute("id", platformid) + + names = list(self.emane_config.getnames()) + platform_names = names[:len(self.emane_config._confmatrix_platform)] + platform_names.remove('platform_id_start') + + # append all platform options (except starting id) to doc + map( lambda n: plat.appendChild(self.xmlparam(doc, n, \ + self.emane_config.valueof(n, values))), platform_names) + + nemid = int(self.emane_config.valueof("nem_id_start", values)) + # assume self._objslock is already held here + for n in sorted(self._objs.keys()): + emanenode = self._objs[n] + nems = emanenode.buildplatformxmlentry(doc) + for netif in sorted(nems, key=lambda n: n.node.objid): + # set ID, endpoints here + nementry = nems[netif] + nementry.setAttribute("id", "%d" % nemid) + # insert nem options (except nem id) to doc + trans_addr = self.emane_config.valueof("transportendpoint", \ + values) + nementry.insertBefore(self.xmlparam(doc, "transportendpoint", \ + "%s:%d" % (trans_addr, self.transformport)), + nementry.firstChild) + platform_addr = self.emane_config.valueof("platformendpoint", \ + values) + nementry.insertBefore(self.xmlparam(doc, "platformendpoint", \ + "%s:%d" % (platform_addr, self.platformport)), + nementry.firstChild) + plat.appendChild(nementry) + emanenode.setnemid(netif, nemid) + # NOTE: MAC address set before here is incorrect, including the one + # sent from the GUI via link message + # MAC address determined by NEM ID: 02:02:00:00:nn:nn" + macstr = self._hwaddr_prefix + ":00:00:" + macstr += "%02X:%02X" % ((nemid >> 8) & 0xFF, nemid & 0xFF) + netif.sethwaddr(MacAddr.fromstring(macstr)) + # increment counters used to manage IDs, endpoint port numbers + nemid += 1 + self.platformport += 1 + self.transformport += 1 + self.xmlwrite(doc, "platform.xml") + + def buildnemxml(self): + ''' Builds the xxxnem.xml, xxxmac.xml, and xxxphy.xml files which + are defined on a per-EmaneNode basis. + ''' + for n in sorted(self._objs.keys()): + emanenode = self._objs[n] + nems = emanenode.buildnemxmlfiles(self) + + def buildtransportxml(self): + ''' Calls emanegentransportxml using a platform.xml file to build + the transportdaemon*.xml. + ''' + try: + subprocess.check_call(["emanegentransportxml", "platform.xml"], \ + cwd=self.session.sessiondir) + except Exception, e: + self.info("error running emanegentransportxml: %s" % e) + + def startdaemons(self): + ''' Start the appropriate EMANE daemons. The transport daemon will + bind to the TAP interfaces. + ''' + if self.verbose: + self.info("Emane.startdaemons()") + path = self.session.sessiondir + loglevel = "2" + cfgloglevel = self.session.getcfgitemint("emane_log_level") + realtime = self.session.getcfgitembool("emane_realtime", True) + if cfgloglevel: + self.info("setting user-defined EMANE log level: %d" % cfgloglevel) + loglevel = str(cfgloglevel) + emanecmd = ["emane", "-d", "--logl", loglevel, "-f", \ + os.path.join(path, "emane.log")] + if realtime: + emanecmd += "-r", + try: + cmd = emanecmd + [os.path.join(path, "platform.xml")] + if self.verbose: + self.info("Emane.startdaemons() running %s" % str(cmd)) + subprocess.check_call(cmd, cwd=path) + except Exception, e: + errmsg = "error starting emane: %s" % e + self.session.exception(coreapi.CORE_EXCP_LEVEL_FATAL, "emane", + None, errmsg) + self.info(errmsg) + + # start one transport daemon per transportdaemon*.xml file + transcmd = ["emanetransportd", "-d", "--logl", loglevel, "-f", \ + os.path.join(path, "emanetransportd.log")] + if realtime: + transcmd += "-r", + files = os.listdir(path) + for file in files: + if file[-3:] == "xml" and file[:15] == "transportdaemon": + cmd = transcmd + [os.path.join(path, file)] + try: + if self.verbose: + self.info("Emane.startdaemons() running %s" % str(cmd)) + subprocess.check_call(cmd, cwd=path) + except Exception, e: + errmsg = "error starting emanetransportd: %s" % e + self.session.exception(coreapi.CORE_EXCP_LEVEL_FATAL, "emane", + None, errmsg) + self.info(errmsg) + + def stopdaemons(self): + ''' Kill the appropriate EMANE daemons. + ''' + # TODO: we may want to improve this if we had the PIDs from the + # specific EMANE daemons that we've started + subprocess.call(["killall", "-q", "emane"]) + subprocess.call(["killall", "-q", "emanetransportd"]) + + def installnetifs(self): + ''' Install TUN/TAP virtual interfaces into their proper namespaces + now that the EMANE daemons are running. + ''' + for n in sorted(self._objs.keys()): + emanenode = self._objs[n] + if self.verbose: + self.info("Emane.installnetifs() for node %d" % n) + emanenode.installnetifs() + + def deinstallnetifs(self): + ''' Uninstall TUN/TAP virtual interfaces. + ''' + for n in sorted(self._objs.keys()): + emanenode = self._objs[n] + emanenode.deinstallnetifs() + + def configure(self, session, msg): + ''' Handle configuration messages for global EMANE config. + ''' + r = self.emane_config.configure_emane(session, msg) + + # extra logic to start slave Emane object after nemid has been + # configured from the master + conftype = msg.gettlv(coreapi.CORE_TLV_CONF_TYPE) + if conftype == coreapi.CONF_TYPE_FLAGS_UPDATE and \ + self.session.master == False: + self.startup() + + return r + + def doeventmonitor(self): + ''' Returns boolean whether or not EMANE events will be monitored. + ''' + # this support must be explicitly turned on; by default, CORE will + # generate the EMANE events when nodes are moved + return self.session.getcfgitembool('emane_event_monitor', False) + + def starteventmonitor(self): + ''' Start monitoring EMANE location events if configured to do so. + ''' + if self.verbose: + self.info("Emane.starteventmonitor()") + if not self.doeventmonitor(): + return + if self.service is None: + errmsg = "Warning: EMANE events will not be generated " \ + "because the emaneeventservice\n binding was " \ + "unable to load " \ + "(install the python-emaneeventservice bindings)" + self.session.exception(coreapi.CORE_EXCP_LEVEL_WARNING, "emane", + None, errmsg) + self.warn(errmsg) + + return + self.doeventloop = True + self.eventmonthread = threading.Thread(target = self.eventmonitorloop) + self.eventmonthread.daemon = True + self.eventmonthread.start() + + + def stopeventmonitor(self): + ''' Stop monitoring EMANE location events. + ''' + self.doeventloop = False + if self.service is not None: + self.service.breakloop() + # reset the service, otherwise nextEvent won't work + del self.service + self.service = emaneeventservice.EventService() + if self.eventmonthread is not None: + self.eventmonthread.join() + self.eventmonthread = None + + def eventmonitorloop(self): + ''' Thread target that monitors EMANE location events. + ''' + if self.service is None: + return + self.info("subscribing to EMANE location events") + #self.service.subscribe(emaneeventlocation.EVENT_ID, + # self.handlelocationevent) + #self.service.loop() + #self.service.subscribe(emaneeventlocation.EVENT_ID, None) + while self.doeventloop is True: + (event, platform, nem, component, data) = self.service.nextEvent() + if event == emaneeventlocation.EVENT_ID: + self.handlelocationevent(event, platform, nem, component, data) + + self.info("unsubscribing from EMANE location events") + #self.service.unsubscribe(emaneeventlocation.EVENT_ID) + + def handlelocationevent(self, event, platform, nem, component, data): + ''' Handle an EMANE location event. + ''' + event = emaneeventlocation.EventLocation(data) + entries = event.entries() + for e in entries.values(): + # yaw,pitch,roll,azimuth,elevation,velocity are unhandled + (nemid, lat, long, alt) = e[:4] + # convert nemid to node number + (emanenode, netif) = self.nemlookup(nemid) + if netif is None: + if self.verbose: + self.info("location event for unknown NEM %s" % nemid) + continue + n = netif.node.objid + # convert from lat/long/alt to x,y,z coordinates + (x, y, z) = self.session.location.getxyz(lat, long, alt) + x = int(x) + y = int(y) + z = int(z) + if self.verbose: + self.info("location event NEM %s (%s, %s, %s) -> (%s, %s, %s)" \ + % (nemid, lat, long, alt, x, y, z)) + try: + if (x.bit_length() > 16) or (y.bit_length() > 16) or \ + (z.bit_length() > 16) or (x < 0) or (y < 0) or (z < 0): + warntxt = "Unable to build node location message since " \ + "received lat/long/alt exceeds coordinate " \ + "space: NEM %s (%d, %d, %d)" % (nemid, x, y, z) + self.info(warntxt) + self.session.exception(coreapi.CORE_EXCP_LEVEL_ERROR, + "emane", None, warntxt) + continue + except AttributeError: + # int.bit_length() not present on Python 2.6 + pass + + # generate a node message for this location update + try: + node = self.session.obj(n) + except KeyError: + self.warn("location event NEM %s has no corresponding node %s" \ + % (nemid, n)) + continue + # don't use node.setposition(x,y,z) which generates an event + node.position.set(x,y,z) + msg = node.tonodemsg(flags=0) + self.session.broadcastraw(None, msg) + self.session.sdt.updatenodegeo(node, lat, long, alt) + + +class EmaneModel(WirelessModel): + ''' EMANE models inherit from this parent class, which takes care of + handling configuration messages based on the _confmatrix list of + configurable parameters. Helper functions also live here. + ''' + _prefix = {'y': 1e-24, # yocto + 'z': 1e-21, # zepto + 'a': 1e-18, # atto + 'f': 1e-15, # femto + 'p': 1e-12, # pico + 'n': 1e-9, # nano + 'u': 1e-6, # micro + 'm': 1e-3, # mili + 'c': 1e-2, # centi + 'd': 1e-1, # deci + 'k': 1e3, # kilo + 'M': 1e6, # mega + 'G': 1e9, # giga + 'T': 1e12, # tera + 'P': 1e15, # peta + 'E': 1e18, # exa + 'Z': 1e21, # zetta + 'Y': 1e24, # yotta + } + + @classmethod + def configure_emane(cls, session, msg): + ''' Handle configuration messages for setting up a model. + Pass the Emane object as the manager object. + ''' + return cls.configure(session.emane, msg) + + @classmethod + def emane074_fixup(cls, value, div=1.0): + ''' Helper for converting 0.8.1 and newer values to EMANE 0.7.4 + compatible values. + NOTE: This should be removed when support for 0.7.4 has been + deprecated. + ''' + if div == 0: + return "0" + if type(value) is not str: + return str(value / div) + if value.endswith(tuple(cls._prefix.keys())): + suffix = value[-1] + value = float(value[:-1]) * cls._prefix[suffix] + return str(int(value / div)) + + def buildnemxmlfiles(self, e, ifc): + ''' Build the necessary nem, mac, and phy XMLs in the given path. + ''' + raise NotImplementedError + + def buildplatformxmlnementry(self, doc, n, ifc): + ''' Build the NEM definition that goes into the platform.xml file. + This returns an XML element that will be added to the element. + This default method supports per-interface config + (e.g. or per-EmaneNode + config (e.g. . + This can be overriden by a model for NEM flexibility; n is the EmaneNode. + ''' + nem = doc.createElement("nem") + nem.setAttribute("name", ifc.localname) + # if this netif contains a non-standard (per-interface) config, + # then we need to use a more specific xml file here + nem.setAttribute("definition", self.nemxmlname(ifc)) + return nem + + def buildplatformxmltransportentry(self, doc, n, ifc): + ''' Build the transport definition that goes into the platform.xml file. + This returns an XML element that will added to the nem definition. + This default method supports raw and virtual transport types, but may be + overriden by a model to support the e.g. pluggable virtual transport. + n is the EmaneNode. + ''' + type = ifc.transport_type + if not type: + e.info("warning: %s interface type unsupported!" % ifc.name) + type = "raw" + trans = doc.createElement("transport") + trans.setAttribute("definition", n.transportxmlname(type)) + trans.setAttribute("group", "1") + param = doc.createElement("param") + param.setAttribute("name", "device") + if type == "raw": + # raw RJ45 name e.g. 'eth0' + param.setAttribute("value", ifc.name) + else: + # virtual TAP name e.g. 'n3.0.17' + param.setAttribute("value", ifc.localname) + trans.appendChild(param) + return trans + + def basename(self, ifc = None): + ''' Return the string that other names are based on. + If a specific config is stored for a node's interface, a unique + filename is needed; otherwise the name of the EmaneNode is used. + ''' + emane = self.session.emane + name = "n%s" % self.objid + if ifc is not None: + nodenum = ifc.node.objid + if emane.getconfig(nodenum, self._name, None)[1] is not None: + name = ifc.localname.replace('.','_') + return "%s%s" % (name, self._name) + + def nemxmlname(self, ifc = None): + ''' Return the string name for the NEM XML file, e.g. 'n3rfpipenem.xml' + ''' + return "%snem.xml" % self.basename(ifc) + + def shimxmlname(self, ifc = None): + ''' Return the string name for the SHIM XML file, e.g. 'commeffectshim.xml' + ''' + return "%sshim.xml" % self.basename(ifc) + + def macxmlname(self, ifc = None): + ''' Return the string name for the MAC XML file, e.g. 'n3rfpipemac.xml' + ''' + return "%smac.xml" % self.basename(ifc) + + def phyxmlname(self, ifc = None): + ''' Return the string name for the PHY XML file, e.g. 'n3rfpipephy.xml' + ''' + return "%sphy.xml" % self.basename(ifc) + + def update(self, moved, moved_netifs): + ''' invoked from MobilityModel when nodes are moved; this causes + EMANE location events to be generated for the nodes in the moved + list, making EmaneModels compatible with Ns2ScriptedMobility + ''' + try: + wlan = self.session.obj(self.objid) + except KeyError: + return + wlan.setnempositions(moved_netifs) + + def linkconfig(self, netif, bw = None, delay = None, + loss = None, duplicate = None, jitter = None, netif2 = None): + ''' Invoked when a Link Message is received. Default is unimplemented. + ''' + warntxt = "EMANE model %s does not support link " % self._name + warntxt += "configuration, dropping Link Message" + self.session.warn(warntxt) + + +class EmaneGlobalModel(EmaneModel): + ''' Global EMANE configuration options. + ''' + def __init__(self, session, objid = None, verbose = False): + EmaneModel.__init__(self, session, objid, verbose) + + _name = "emane" + _confmatrix_platform = [ + ("otamanagerchannelenable", coreapi.CONF_DATA_TYPE_BOOL, '0', + 'on,off', 'enable OTA Manager channel'), + ("otamanagergroup", coreapi.CONF_DATA_TYPE_STRING, '224.1.2.8:45702', + '', 'OTA Manager group'), + ("otamanagerdevice", coreapi.CONF_DATA_TYPE_STRING, 'lo', + '', 'OTA Manager device'), + ("eventservicegroup", coreapi.CONF_DATA_TYPE_STRING, '224.1.2.8:45703', + '', 'Event Service group'), + ("eventservicedevice", coreapi.CONF_DATA_TYPE_STRING, 'lo', + '', 'Event Service device'), + ("platform_id_start", coreapi.CONF_DATA_TYPE_INT32, '1', + '', 'starting Platform ID'), + ("debugportenable", coreapi.CONF_DATA_TYPE_BOOL, '0', + 'on,off', 'enable debug port'), + ("debugport", coreapi.CONF_DATA_TYPE_UINT16, '47000', + '', 'debug port number'), + ] + _confmatrix_nem = [ + ("transportendpoint", coreapi.CONF_DATA_TYPE_STRING, 'localhost', + '', 'Transport endpoint address (port is automatic)'), + ("platformendpoint", coreapi.CONF_DATA_TYPE_STRING, 'localhost', + '', 'Platform endpoint address (port is automatic)'), + ("nem_id_start", coreapi.CONF_DATA_TYPE_INT32, '1', + '', 'starting NEM ID'), + ] + _confmatrix = _confmatrix_platform + _confmatrix_nem + _confgroups = "Platform Attributes:1-%d|NEM Parameters:%d-%d" % \ + (len(_confmatrix_platform), len(_confmatrix_platform) + 1, + len(_confmatrix)) + diff --git a/daemon/core/emane/ieee80211abg.py b/daemon/core/emane/ieee80211abg.py new file mode 100644 index 00000000..378817eb --- /dev/null +++ b/daemon/core/emane/ieee80211abg.py @@ -0,0 +1,119 @@ +# +# CORE +# Copyright (c)2010-2013 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +''' +ieee80211abg.py: EMANE IEEE 802.11abg model for CORE +''' + +import sys +import string +from core.api import coreapi + +from core.constants import * +from emane import EmaneModel +from universal import EmaneUniversalModel + +class EmaneIeee80211abgModel(EmaneModel): + def __init__(self, session, objid = None, verbose = False): + EmaneModel.__init__(self, session, objid, verbose) + + # model name + _name = "emane_ieee80211abg" + _80211rates = '1 1 Mbps,2 2 Mbps,3 5.5 Mbps,4 11 Mbps,5 6 Mbps,' + \ + '6 9 Mbps,7 12 Mbps,8 18 Mbps,9 24 Mbps,10 36 Mbps,11 48 Mbps,' + \ + '12 54 Mbps' + # MAC parameters + _confmatrix_mac = [ + ("mode", coreapi.CONF_DATA_TYPE_UINT8, '0', + '0 802.11b (DSSS only),1 802.11b (DSSS only),' + \ + '2 802.11a or g (OFDM),3 802.11b/g (DSSS and OFDM)', 'mode'), + ("enablepromiscuousmode", coreapi.CONF_DATA_TYPE_BOOL, '0', + 'On,Off', 'enable promiscuous mode'), + ("distance", coreapi.CONF_DATA_TYPE_UINT32, '1000', + '', 'max distance (m)'), + ("unicastrate", coreapi.CONF_DATA_TYPE_UINT8, '4', _80211rates, + 'unicast rate (Mbps)'), + ("multicastrate", coreapi.CONF_DATA_TYPE_UINT8, '1', _80211rates, + 'multicast rate (Mbps)'), + ("rtsthreshold", coreapi.CONF_DATA_TYPE_UINT16, '0', + '', 'RTS threshold (bytes)'), + ("wmmenable", coreapi.CONF_DATA_TYPE_BOOL, '0', + 'On,Off', 'WiFi Multimedia (WMM)'), + ("pcrcurveuri", coreapi.CONF_DATA_TYPE_STRING, + '/usr/share/emane/models/ieee80211abg/xml/ieee80211pcr.xml', + '', 'SINR/PCR curve file'), + ("flowcontrolenable", coreapi.CONF_DATA_TYPE_BOOL, '0', + 'On,Off', 'enable traffic flow control'), + ("flowcontroltokens", coreapi.CONF_DATA_TYPE_UINT16, '10', + '', 'number of flow control tokens'), + ("queuesize", coreapi.CONF_DATA_TYPE_STRING, '0:255 1:255 2:255 3:255', + '', 'queue size (0-4:size)'), + ("cwmin", coreapi.CONF_DATA_TYPE_STRING, '0:32 1:32 2:16 3:8', + '', 'min contention window (0-4:minw)'), + ("cwmax", coreapi.CONF_DATA_TYPE_STRING, '0:1024 1:1024 2:64 3:16', + '', 'max contention window (0-4:maxw)'), + ("aifs", coreapi.CONF_DATA_TYPE_STRING, '0:2 1:2 2:2 3:1', + '', 'arbitration inter frame space (0-4:aifs)'), + ("txop", coreapi.CONF_DATA_TYPE_STRING, '0:0 1:0 2:0 3:0', + '', 'txop (0-4:usec)'), + ("retrylimit", coreapi.CONF_DATA_TYPE_STRING, '0:3 1:3 2:3 3:3', + '', 'retry limit (0-4:numretries)'), + ] + # PHY parameters from Universal PHY + _confmatrix_phy = EmaneUniversalModel._confmatrix + + _confmatrix = _confmatrix_mac + _confmatrix_phy + # value groupings + _confgroups = "802.11 MAC Parameters:1-%d|Universal PHY Parameters:%d-%d" \ + % (len(_confmatrix_mac), len(_confmatrix_mac) + 1, len(_confmatrix)) + + def buildnemxmlfiles(self, e, ifc): + ''' Build the necessary nem, mac, and phy XMLs in the given path. + If an individual NEM has a nonstandard config, we need to build + that file also. Otherwise the WLAN-wide + nXXemane_ieee80211abgnem.xml, nXXemane_ieee80211abgemac.xml, + nXXemane_ieee80211abgphy.xml are used. + ''' + # use the network-wide config values or interface(NEM)-specific values? + if ifc is None: + values = e.getconfig(self.objid, self._name, + self.getdefaultvalues())[1] + else: + nodenum = ifc.node.objid + values = e.getconfig(nodenum, self._name, None)[1] + if values is None: + # do not build specific files for this NEM when config is same + # as the network + return + nemdoc = e.xmldoc("nem") + nem = nemdoc.getElementsByTagName("nem").pop() + nem.setAttribute("name", "ieee80211abg NEM") + mactag = nemdoc.createElement("mac") + mactag.setAttribute("definition", self.macxmlname(ifc)) + nem.appendChild(mactag) + phytag = nemdoc.createElement("phy") + phytag.setAttribute("definition", self.phyxmlname(ifc)) + nem.appendChild(phytag) + e.xmlwrite(nemdoc, self.nemxmlname(ifc)) + + macdoc = e.xmldoc("mac") + mac = macdoc.getElementsByTagName("mac").pop() + mac.setAttribute("name", "ieee80211abg MAC") + mac.setAttribute("library", "ieee80211abgmaclayer") + + names = self.getnames() + macnames = names[:len(self._confmatrix_mac)] + phynames = names[len(self._confmatrix_mac):] + + # append all MAC options to macdoc + map( lambda n: mac.appendChild(e.xmlparam(macdoc, n, \ + self.valueof(n, values))), macnames) + e.xmlwrite(macdoc, self.macxmlname(ifc)) + + phydoc = EmaneUniversalModel.getphydoc(e, self, values, phynames) + e.xmlwrite(phydoc, self.phyxmlname(ifc)) + diff --git a/daemon/core/emane/nodes.py b/daemon/core/emane/nodes.py new file mode 100644 index 00000000..3caf23cd --- /dev/null +++ b/daemon/core/emane/nodes.py @@ -0,0 +1,281 @@ +# +# CORE +# Copyright (c)2010-2013 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +''' +nodes.py: definition of an EmaneNode class for implementing configuration +control of an EMANE emulation. An EmaneNode has several attached NEMs that +share the same MAC+PHY model. +''' + +import sys + +from core.api import coreapi +from core.coreobj import PyCoreNet +try: + import emaneeventservice + import emaneeventlocation +except Exception, e: + ''' Don't require all CORE users to have EMANE libeventservice and its + Python bindings installed. + ''' + pass + +class EmaneNet(PyCoreNet): + ''' EMANE network base class. + ''' + apitype = coreapi.CORE_NODE_EMANE + linktype = coreapi.CORE_LINK_WIRELESS + type = "wlan" # icon used + +class EmaneNode(EmaneNet): + ''' EMANE node contains NEM configuration and causes connected nodes + to have TAP interfaces (instead of VEth). These are managed by the + Emane controller object that exists in a session. + ''' + def __init__(self, session, objid = None, name = None, verbose = False, + start = True): + PyCoreNet.__init__(self, session, objid, name, verbose, start) + self.verbose = verbose + self.conf = "" + self.up = False + self.nemidmap = {} + self.model = None + self.mobility = None + + def linkconfig(self, netif, bw = None, delay = None, + loss = None, duplicate = None, jitter = None, netif2 = None): + ''' The CommEffect model supports link configuration. + ''' + if not self.model: + return + return self.model.linkconfig(netif=netif, bw=bw, delay=delay, loss=loss, + duplicate=duplicate, jitter=jitter, netif2=netif2) + + def config(self, conf): + #print "emane", self.name, "got config:", conf + self.conf = conf + + def shutdown(self): + pass + + def link(self, netif1, netif2): + pass + + def unlink(self, netif1, netif2): + pass + + def setmodel(self, model, config): + ''' set the EmaneModel associated with this node + ''' + if (self.verbose): + self.info("adding model %s" % model._name) + if model._type == coreapi.CORE_TLV_REG_WIRELESS: + # EmaneModel really uses values from ConfigurableManager + # when buildnemxml() is called, not during init() + self.model = model(session=self.session, objid=self.objid, + verbose=self.verbose) + elif model._type == coreapi.CORE_TLV_REG_MOBILITY: + self.mobility = model(session=self.session, objid=self.objid, + verbose=self.verbose, values=config) + + def setnemid(self, netif, nemid): + ''' Record an interface to numerical ID mapping. The Emane controller + object manages and assigns these IDs for all NEMs. + ''' + self.nemidmap[netif] = nemid + + def getnemid(self, netif): + ''' Given an interface, return its numerical ID. + ''' + if netif not in self.nemidmap: + return None + else: + return self.nemidmap[netif] + + def getnemnetif(self, nemid): + ''' Given a numerical NEM ID, return its interface. This returns the + first interface that matches the given NEM ID. + ''' + for netif in self.nemidmap: + if self.nemidmap[netif] == nemid: + return netif + return None + + def netifs(self, sort=True): + ''' Retrieve list of linked interfaces sorted by node number. + ''' + return sorted(self._netif.values(), key=lambda ifc: ifc.node.objid) + + def buildplatformxmlentry(self, doc): + ''' Return a dictionary of XML elements describing the NEMs + connected to this EmaneNode for inclusion in the platform.xml file. + ''' + ret = {} + if self.model is None: + self.info("warning: EmaneNode %s has no associated model" % \ + self.name) + return ret + for netif in self.netifs(): + # + nementry = self.model.buildplatformxmlnementry(doc, self, netif) + # + # + # + trans = self.model.buildplatformxmltransportentry(doc, self, netif) + nementry.appendChild(trans) + ret[netif] = nementry + + return ret + + def buildnemxmlfiles(self, emane): + ''' Let the configured model build the necessary nem, mac, and phy + XMLs. + ''' + if self.model is None: + return + # build XML for overall network (EmaneNode) configs + self.model.buildnemxmlfiles(emane, ifc=None) + # build XML for specific interface (NEM) configs + need_virtual = False + need_raw = False + vtype = "virtual" + rtype = "raw" + for netif in self.netifs(): + self.model.buildnemxmlfiles(emane, netif) + if "virtual" in netif.transport_type: + need_virtual = True + vtype = netif.transport_type + else: + need_raw = True + rtype = netif.transport_type + # build transport XML files depending on type of interfaces involved + if need_virtual: + self.buildtransportxml(emane, vtype) + if need_raw: + self.buildtransportxml(emane, rtype) + + def buildtransportxml(self, emane, type): + ''' Write a transport XML file for the Virtual or Raw Transport. + ''' + transdoc = emane.xmldoc("transport") + trans = transdoc.getElementsByTagName("transport").pop() + trans.setAttribute("name", "%s Transport" % type.capitalize()) + trans.setAttribute("library", "trans%s" % type.lower()) + trans.appendChild(emane.xmlparam(transdoc, "bitrate", "0")) + if "virtual" in type.lower(): + trans.appendChild(emane.xmlparam(transdoc, "devicepath", + "/dev/net/tun")) + emane.xmlwrite(transdoc, self.transportxmlname(type.lower())) + + def transportxmlname(self, type): + ''' Return the string name for the Transport XML file, + e.g. 'n3transvirtual.xml' + ''' + return "n%strans%s.xml" % (self.objid, type) + + + def installnetifs(self): + ''' Install TAP devices into their namespaces. This is done after + EMANE daemons have been started, because that is their only chance + to bind to the TAPs. + ''' + if not self.session.emane.doeventmonitor() and \ + self.session.emane.service is None: + warntxt = "unable to publish EMANE events because the eventservice " + warntxt += "Python bindings failed to load" + self.session.exception(coreapi.CORE_EXCP_LEVEL_ERROR, self.name, + self.objid, warntxt) + + for netif in self.netifs(): + if "virtual" in netif.transport_type.lower(): + netif.install() + # if we are listening for EMANE events, don't generate them + if self.session.emane.doeventmonitor(): + netif.poshook = None + continue + # at this point we register location handlers for generating + # EMANE location events + netif.poshook = self.setnemposition + (x,y,z) = netif.node.position.get() + self.setnemposition(netif, x, y, z) + + def deinstallnetifs(self): + ''' Uninstall TAP devices. This invokes their shutdown method for + any required cleanup; the device may be actually removed when + emanetransportd terminates. + ''' + for netif in self.netifs(): + if "virtual" in netif.transport_type.lower(): + netif.shutdown() + netif.poshook = None + + def setnemposition(self, netif, x, y, z): + ''' Publish a NEM location change event using the EMANE event service. + ''' + if self.session.emane.service is None: + if self.verbose: + self.info("position service not available") + return + nemid = self.getnemid(netif) + ifname = netif.localname + if nemid is None: + self.info("nemid for %s is unknown" % ifname) + return + (lat, long, alt) = self.session.location.getgeo(x, y, z) + if self.verbose: + self.info("setnemposition %s (%s) x,y,z=(%d,%d,%s)" + "(%.6f,%.6f,%.6f)" % \ + (ifname, nemid, x, y, z, lat, long, alt)) + event = emaneeventlocation.EventLocation(1) + # altitude must be an integer or warning is printed + # unused: yaw, pitch, roll, azimuth, elevation, velocity + alt = int(round(alt)) + event.set(0, nemid, lat, long, alt) + self.session.emane.service.publish(emaneeventlocation.EVENT_ID, + emaneeventservice.PLATFORMID_ANY, + emaneeventservice.NEMID_ANY, + emaneeventservice.COMPONENTID_ANY, + event.export()) + + def setnempositions(self, moved_netifs): + ''' Several NEMs have moved, from e.g. a WaypointMobilityModel + calculation. Generate an EMANE Location Event having several + entries for each netif that has moved. + ''' + if len(moved_netifs) == 0: + return + if self.session.emane.service is None: + if self.verbose: + self.info("position service not available") + return + + event = emaneeventlocation.EventLocation(len(moved_netifs)) + i = 0 + for netif in moved_netifs: + nemid = self.getnemid(netif) + ifname = netif.localname + if nemid is None: + self.info("nemid for %s is unknown" % ifname) + continue + (x, y, z) = netif.node.getposition() + (lat, long, alt) = self.session.location.getgeo(x, y, z) + if self.verbose: + self.info("setnempositions %d %s (%s) x,y,z=(%d,%d,%s)" + "(%.6f,%.6f,%.6f)" % \ + (i, ifname, nemid, x, y, z, lat, long, alt)) + # altitude must be an integer or warning is printed + alt = int(round(alt)) + event.set(i, nemid, lat, long, alt) + i += 1 + + self.session.emane.service.publish(emaneeventlocation.EVENT_ID, + emaneeventservice.PLATFORMID_ANY, + emaneeventservice.NEMID_ANY, + emaneeventservice.COMPONENTID_ANY, + event.export()) + + diff --git a/daemon/core/emane/rfpipe.py b/daemon/core/emane/rfpipe.py new file mode 100644 index 00000000..8e065af3 --- /dev/null +++ b/daemon/core/emane/rfpipe.py @@ -0,0 +1,106 @@ +# +# CORE +# Copyright (c)2010-2013 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# author: Harry Bullen +# +''' +rfpipe.py: EMANE RF-PIPE model for CORE +''' + +import sys +import string +from core.api import coreapi + +from core.constants import * +from emane import EmaneModel +from universal import EmaneUniversalModel + +class EmaneRfPipeModel(EmaneModel): + def __init__(self, session, objid = None, verbose = False): + EmaneModel.__init__(self, session, objid, verbose) + + # model name + _name = "emane_rfpipe" + + # configuration parameters are + # ( 'name', 'type', 'default', 'possible-value-list', 'caption') + # MAC parameters + _confmatrix_mac = [ + ("enablepromiscuousmode", coreapi.CONF_DATA_TYPE_BOOL, '0', + 'True,False', 'enable promiscuous mode'), + ("datarate", coreapi.CONF_DATA_TYPE_UINT32, '1M', + '', 'data rate (bps)'), + ("jitter", coreapi.CONF_DATA_TYPE_FLOAT, '0.0', + '', 'transmission jitter (usec)'), + ("delay", coreapi.CONF_DATA_TYPE_FLOAT, '0.0', + '', 'transmission delay (usec)'), + ("flowcontrolenable", coreapi.CONF_DATA_TYPE_BOOL, '0', + 'On,Off', 'enable traffic flow control'), + ("flowcontroltokens", coreapi.CONF_DATA_TYPE_UINT16, '10', + '', 'number of flow control tokens'), + ("enabletighttiming", coreapi.CONF_DATA_TYPE_BOOL, '0', + 'On,Off', 'enable tight timing for pkt delay'), + ("pcrcurveuri", coreapi.CONF_DATA_TYPE_STRING, + '/usr/share/emane/models/rfpipe/xml/rfpipepcr.xml', + '', 'SINR/PCR curve file'), + ("transmissioncontrolmap", coreapi.CONF_DATA_TYPE_STRING, '', + '', 'tx control map (nem:rate:freq:tx_dBm)'), + ] + + # PHY parameters from Universal PHY + _confmatrix_phy = EmaneUniversalModel._confmatrix + + _confmatrix = _confmatrix_mac + _confmatrix_phy + + # value groupings + _confgroups = "RF-PIPE MAC Parameters:1-%d|Universal PHY Parameters:%d-%d" \ + % ( len(_confmatrix_mac), len(_confmatrix_mac) + 1, len(_confmatrix)) + + def buildnemxmlfiles(self, e, ifc): + ''' Build the necessary nem, mac, and phy XMLs in the given path. + If an individual NEM has a nonstandard config, we need to build + that file also. Otherwise the WLAN-wide nXXemane_rfpipenem.xml, + nXXemane_rfpipemac.xml, nXXemane_rfpipephy.xml are used. + ''' + values = e.getifcconfig(self.objid, self._name, + self.getdefaultvalues(), ifc) + if values is None: + return + nemdoc = e.xmldoc("nem") + nem = nemdoc.getElementsByTagName("nem").pop() + nem.setAttribute("name", "RF-PIPE NEM") + mactag = nemdoc.createElement("mac") + mactag.setAttribute("definition", self.macxmlname(ifc)) + nem.appendChild(mactag) + phytag = nemdoc.createElement("phy") + phytag.setAttribute("definition", self.phyxmlname(ifc)) + nem.appendChild(phytag) + e.xmlwrite(nemdoc, self.nemxmlname(ifc)) + + names = list(self.getnames()) + macnames = names[:len(self._confmatrix_mac)] + phynames = names[len(self._confmatrix_mac):] + + macdoc = e.xmldoc("mac") + mac = macdoc.getElementsByTagName("mac").pop() + mac.setAttribute("name", "RF-PIPE MAC") + mac.setAttribute("library", "rfpipemaclayer") + if self.valueof("transmissioncontrolmap", values) is "": + macnames.remove("transmissioncontrolmap") + # EMANE 0.7.4 support + if e.emane074: + # convert datarate from bps to kbps + i = names.index('datarate') + values = list(values) + values[i] = self.emane074_fixup(values[i], 1000) + # append MAC options to macdoc + map( lambda n: mac.appendChild(e.xmlparam(macdoc, n, \ + self.valueof(n, values))), macnames) + e.xmlwrite(macdoc, self.macxmlname(ifc)) + + phydoc = EmaneUniversalModel.getphydoc(e, self, values, phynames) + e.xmlwrite(phydoc, self.phyxmlname(ifc)) + diff --git a/daemon/core/emane/universal.py b/daemon/core/emane/universal.py new file mode 100644 index 00000000..a163bbc4 --- /dev/null +++ b/daemon/core/emane/universal.py @@ -0,0 +1,113 @@ +# +# CORE +# Copyright (c)2010-2013 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +''' +universal.py: EMANE Universal PHY model for CORE. Enumerates configuration items +used for the Universal PHY. +''' + +import sys +import string +from core.api import coreapi + +from core.constants import * +from emane import EmaneModel + +class EmaneUniversalModel(EmaneModel): + ''' This Univeral PHY model is meant to be imported by other models, + not instantiated. + ''' + def __init__(self, session, objid = None, verbose = False): + raise SyntaxError + + _name = "emane_universal" + _xmlname = "universalphy" + _xmllibrary = "universalphylayer" + + # universal PHY parameters + _confmatrix = [ + ("antennagain", coreapi.CONF_DATA_TYPE_FLOAT, '0.0', + '','antenna gain (dBi)'), + ("antennaazimuth", coreapi.CONF_DATA_TYPE_FLOAT, '0.0', + '','antenna azimuth (deg)'), + ("antennaelevation", coreapi.CONF_DATA_TYPE_FLOAT, '0.0', + '','antenna elevation (deg)'), + ("antennaprofileid", coreapi.CONF_DATA_TYPE_STRING, '1', + '','antenna profile ID'), + ("antennaprofilemanifesturi", coreapi.CONF_DATA_TYPE_STRING, '', + '','antenna profile manifest URI'), + ("antennaprofileenable", coreapi.CONF_DATA_TYPE_BOOL, '0', + 'On,Off','antenna profile mode'), + ("bandwidth", coreapi.CONF_DATA_TYPE_UINT64, '1M', + '', 'rf bandwidth (hz)'), + ("defaultconnectivitymode", coreapi.CONF_DATA_TYPE_BOOL, '1', + 'On,Off','default connectivity'), + ("frequency", coreapi.CONF_DATA_TYPE_UINT64, '2.347G', + '','frequency (Hz)'), + ("frequencyofinterest", coreapi.CONF_DATA_TYPE_UINT64, '2.347G', + '','frequency of interest (Hz)'), + ("frequencyofinterestfilterenable", coreapi.CONF_DATA_TYPE_BOOL, '1', + 'On,Off','frequency of interest filter enable'), + ("noiseprocessingmode", coreapi.CONF_DATA_TYPE_BOOL, '0', + 'On,Off','enable noise processing'), + ("pathlossmode", coreapi.CONF_DATA_TYPE_STRING, '2ray', + 'pathloss,2ray,freespace','path loss mode'), + ("subid", coreapi.CONF_DATA_TYPE_UINT16, '1', + '','subid'), + ("systemnoisefigure", coreapi.CONF_DATA_TYPE_FLOAT, '4.0', + '','system noise figure (dB)'), + ("txpower", coreapi.CONF_DATA_TYPE_FLOAT, '0.0', + '','transmit power (dBm)'), + ] + + # old parameters + _confmatrix_ver074 = [ + ("antennaazimuthbeamwidth", coreapi.CONF_DATA_TYPE_FLOAT, '360.0', + '','azimith beam width (deg)'), + ("antennaelevationbeamwidth", coreapi.CONF_DATA_TYPE_FLOAT, '180.0', + '','elevation beam width (deg)'), + ("antennatype", coreapi.CONF_DATA_TYPE_STRING, 'omnidirectional', + 'omnidirectional,unidirectional','antenna type'), + ] + + # parameters that require unit conversion for 0.7.4 + _update_ver074 = ("bandwidth", "frequency", "frequencyofinterest") + # parameters that should be removed for 0.7.4 + _remove_ver074 = ("antennaprofileenable", "antennaprofileid", + "antennaprofilemanifesturi", + "frequencyofinterestfilterenable") + + + @classmethod + def getphydoc(cls, e, mac, values, phynames): + phydoc = e.xmldoc("phy") + phy = phydoc.getElementsByTagName("phy").pop() + phy.setAttribute("name", cls._xmlname) + phy.setAttribute("library", cls._xmllibrary) + # EMANE 0.7.4 suppport - to be removed when 0.7.4 support is deprecated + if e.emane074: + names = mac.getnames() + values = list(values) + phynames = list(phynames) + # update units for some parameters + for p in cls._update_ver074: + i = names.index(p) + # these all happen to be KHz, so 1000 is used + values[i] = cls.emane074_fixup(values[i], 1000) + # remove new incompatible options + for p in cls._remove_ver074: + phynames.remove(p) + # insert old options with their default values + for old in cls._confmatrix_ver074: + phy.appendChild(e.xmlparam(phydoc, old[0], old[2])) + + # append all PHY options to phydoc + map( lambda n: phy.appendChild(e.xmlparam(phydoc, n, \ + mac.valueof(n, values))), phynames) + return phydoc + + diff --git a/daemon/core/location.py b/daemon/core/location.py new file mode 100644 index 00000000..824a54df --- /dev/null +++ b/daemon/core/location.py @@ -0,0 +1,246 @@ +# +# CORE +# Copyright (c)2010-2013 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +''' +location.py: definition of CoreLocation class that is a member of the +Session object. Provides conversions between Cartesian and geographic coordinate +systems. Depends on utm contributed module, from +https://pypi.python.org/pypi/utm (version 0.3.0). +''' + +from core.conf import ConfigurableManager +from core.api import coreapi +from core.misc import utm + +class CoreLocation(ConfigurableManager): + ''' Member of session class for handling global location data. This keeps + track of a latitude/longitude/altitude reference point and scale in + order to convert between X,Y and geo coordinates. + + TODO: this could be updated to use more generic + Configurable/ConfigurableManager code like other Session objects + ''' + _name = "location" + _type = coreapi.CORE_TLV_REG_UTILITY + + def __init__(self, session): + ConfigurableManager.__init__(self, session) + self.reset() + self.zonemap = {} + for n, l in utm.ZONE_LETTERS: + self.zonemap[l] = n + + def reset(self): + ''' Reset to initial state. + ''' + # (x, y, z) coordinates of the point given by self.refgeo + self.refxyz = (0.0, 0.0, 0.0) + # decimal latitude, longitude, and altitude at the point (x, y, z) + self.setrefgeo(0.0, 0.0, 0.0) + # 100 pixels equals this many meters + self.refscale = 1.0 + # cached distance to refpt in other zones + self.zoneshifts = {} + + def configure_values(self, msg, values): + ''' Receive configuration message for setting the reference point + and scale. + ''' + if values is None: + self.session.info("location data missing") + return None + values = values.split('|') + # Cartesian coordinate reference point + refx,refy = map(lambda x: float(x), values[0:2]) + refz = 0.0 + self.refxyz = (refx, refy, refz) + # Geographic reference point + lat,long,alt = map(lambda x: float(x), values[2:5]) + self.setrefgeo(lat, long, alt) + self.refscale = float(values[5]) + self.session.info("location configured: (%.2f,%.2f,%.2f) = " + "(%.5f,%.5f,%.5f) scale=%.2f" % + (self.refxyz[0], self.refxyz[1], self.refxyz[2], self.refgeo[0], + self.refgeo[1], self.refgeo[2], self.refscale)) + self.session.info("location configured: UTM(%.5f,%.5f,%.5f)" % + (self.refutm[1], self.refutm[2], self.refutm[3])) + + def px2m(self, val): + ''' Convert the specified value in pixels to meters using the + configured scale. The scale is given as s, where + 100 pixels = s meters. + ''' + return (val / 100.0) * self.refscale + + def m2px(self, val): + ''' Convert the specified value in meters to pixels using the + configured scale. The scale is given as s, where + 100 pixels = s meters. + ''' + if self.refscale == 0.0: + return 0.0 + return 100.0 * (val / self.refscale) + + def setrefgeo(self, lat, lon, alt): + ''' Record the geographical reference point decimal (lat, lon, alt) + and convert and store its UTM equivalent for later use. + ''' + self.refgeo = (lat, lon, alt) + # easting, northing, zone + (e, n, zonen, zonel) = utm.from_latlon(lat, lon) + self.refutm = ( (zonen, zonel), e, n, alt) + + def getgeo(self, x, y, z): + ''' Given (x, y, z) Cartesian coordinates, convert them to latitude, + longitude, and altitude based on the configured reference point + and scale. + ''' + # shift (x,y,z) over to reference point (x,y,z) + x = x - self.refxyz[0] + y = -(y - self.refxyz[1]) + if z is None: + z = self.refxyz[2] + else: + z = z - self.refxyz[2] + # use UTM coordinates since unit is meters + zone = self.refutm[0] + if zone == "": + raise ValueError, "reference point not configured" + e = self.refutm[1] + self.px2m(x) + n = self.refutm[2] + self.px2m(y) + alt = self.refutm[3] + self.px2m(z) + (e, n, zone) = self.getutmzoneshift(e, n) + try: + lat, lon = utm.to_latlon(e, n, zone[0], zone[1]) + except utm.OutOfRangeError: + self.info("UTM out of range error for e=%s n=%s zone=%s" \ + "xyz=(%s,%s,%s)" % (e, n, zone, x, y, z)) + (lat, lon) = self.refgeo[:2] + #self.info("getgeo(%s,%s,%s) e=%s n=%s zone=%s lat,lon,alt=" \ + # "%.3f,%.3f,%.3f" % (x, y, z, e, n, zone, lat, lon, alt)) + return (lat, lon, alt) + + def getxyz(self, lat, lon, alt): + ''' Given latitude, longitude, and altitude location data, convert them + to (x, y, z) Cartesian coordinates based on the configured + reference point and scale. Lat/lon is converted to UTM meter + coordinates, UTM zones are accounted for, and the scale turns + meters to pixels. + ''' + # convert lat/lon to UTM coordinates in meters + (e, n, zonen, zonel) = utm.from_latlon(lat, lon) + (rlat, rlon, ralt) = self.refgeo + xshift = self.geteastingshift(zonen, zonel) + if xshift is None: + xm = e - self.refutm[1] + else: + xm = e + xshift + yshift = self.getnorthingshift(zonen, zonel) + if yshift is None: + ym = n - self.refutm[2] + else: + ym = n + yshift + zm = alt - ralt + + # shift (x,y,z) over to reference point (x,y,z) + x = self.m2px(xm) + self.refxyz[0] + y = -(self.m2px(ym) + self.refxyz[1]) + z = self.m2px(zm) + self.refxyz[2] + return (x, y, z) + + def geteastingshift(self, zonen, zonel): + ''' If the lat, lon coordinates being converted are located in a + different UTM zone than the canvas reference point, the UTM meters + may need to be shifted. + This picks a reference point in the same longitudinal band + (UTM zone number) as the provided zone, to calculate the shift in + meters for the x coordinate. + ''' + rzonen = int(self.refutm[0][0]) + if zonen == rzonen: + return None # same zone number, no x shift required + z = (zonen, zonel) + if z in self.zoneshifts and self.zoneshifts[z][0] is not None: + return self.zoneshifts[z][0] # x shift already calculated, cached + + (rlat, rlon, ralt) = self.refgeo + lon2 = rlon + 6*(zonen - rzonen) # ea. zone is 6deg band + (e2, n2, zonen2, zonel2) = utm.from_latlon(rlat, lon2) # ignore northing + # NOTE: great circle distance used here, not reference ellipsoid! + xshift = utm.haversine(rlon, rlat, lon2, rlat) - e2 + # cache the return value + yshift = None + if z in self.zoneshifts: + yshift = self.zoneshifts[z][1] + self.zoneshifts[z] = (xshift, yshift) + return xshift + + def getnorthingshift(self, zonen, zonel): + ''' If the lat, lon coordinates being converted are located in a + different UTM zone than the canvas reference point, the UTM meters + may need to be shifted. + This picks a reference point in the same latitude band (UTM zone letter) + as the provided zone, to calculate the shift in meters for the + y coordinate. + ''' + rzonel = self.refutm[0][1] + if zonel == rzonel: + return None # same zone letter, no y shift required + z = (zonen, zonel) + if z in self.zoneshifts and self.zoneshifts[z][1] is not None: + return self.zoneshifts[z][1] # y shift already calculated, cached + + (rlat, rlon, ralt) = self.refgeo + # zonemap is used to calculate degrees difference between zone letters + latshift = self.zonemap[zonel] - self.zonemap[rzonel] + lat2 = rlat + latshift # ea. latitude band is 8deg high + (e2, n2, zonen2, zonel2) = utm.from_latlon(lat2, rlon) + # NOTE: great circle distance used here, not reference ellipsoid + yshift = -(utm.haversine(rlon, rlat, rlon, lat2) + n2) + # cache the return value + xshift = None + if z in self.zoneshifts: + xshift = self.zoneshifts[z][0] + self.zoneshifts[z] = (xshift, yshift) + return yshift + + def getutmzoneshift(self, e, n): + ''' Given UTM easting and northing values, check if they fall outside + the reference point's zone boundary. Return the UTM coordinates in a + different zone and the new zone if they do. Zone lettering is only + changed when the reference point is in the opposite hemisphere. + ''' + zone = self.refutm[0] + (rlat, rlon, ralt) = self.refgeo + if e > 834000 or e < 166000: + num_zones = (int(e) - 166000) / (utm.R/10) + # estimate number of zones to shift, E (positive) or W (negative) + rlon2 = self.refgeo[1] + (num_zones * 6) + (e2, n2, zonen2, zonel2) = utm.from_latlon(rlat, rlon2) + xshift = utm.haversine(rlon, rlat, rlon2, rlat) + # after >3 zones away from refpt, the above estimate won't work + # (the above estimate could be improved) + if not 100000 <= (e - xshift) < 1000000: + # move one more zone away + num_zones = (abs(num_zones)+1) * (abs(num_zones)/num_zones) + rlon2 = self.refgeo[1] + (num_zones * 6) + (e2, n2, zonen2, zonel2) = utm.from_latlon(rlat, rlon2) + xshift = utm.haversine(rlon, rlat, rlon2, rlat) + e = e - xshift + zone = (zonen2, zonel2) + if n < 0: + # refpt in northern hemisphere and we crossed south of equator + n += 10000000 + zone = (zone[0], 'M') + elif n > 10000000: + # refpt in southern hemisphere and we crossed north of equator + n -= 10000000 + zone = (zone[0], 'N') + return (e, n, zone) + + + diff --git a/daemon/core/misc/LatLongUTMconversion.py b/daemon/core/misc/LatLongUTMconversion.py new file mode 100755 index 00000000..2c3bf238 --- /dev/null +++ b/daemon/core/misc/LatLongUTMconversion.py @@ -0,0 +1,216 @@ +#!/usr/bin/env python +# this file is from http://pygps.org/ + +# Lat Long - UTM, UTM - Lat Long conversions + +from math import pi, sin, cos, tan, sqrt + +#LatLong- UTM conversion..h +#definitions for lat/long to UTM and UTM to lat/lng conversions +#include + +_deg2rad = pi / 180.0 +_rad2deg = 180.0 / pi + +_EquatorialRadius = 2 +_eccentricitySquared = 3 + +_ellipsoid = [ +# id, Ellipsoid name, Equatorial Radius, square of eccentricity +# first once is a placeholder only, To allow array indices to match id numbers + [ -1, "Placeholder", 0, 0], + [ 1, "Airy", 6377563, 0.00667054], + [ 2, "Australian National", 6378160, 0.006694542], + [ 3, "Bessel 1841", 6377397, 0.006674372], + [ 4, "Bessel 1841 (Nambia] ", 6377484, 0.006674372], + [ 5, "Clarke 1866", 6378206, 0.006768658], + [ 6, "Clarke 1880", 6378249, 0.006803511], + [ 7, "Everest", 6377276, 0.006637847], + [ 8, "Fischer 1960 (Mercury] ", 6378166, 0.006693422], + [ 9, "Fischer 1968", 6378150, 0.006693422], + [ 10, "GRS 1967", 6378160, 0.006694605], + [ 11, "GRS 1980", 6378137, 0.00669438], + [ 12, "Helmert 1906", 6378200, 0.006693422], + [ 13, "Hough", 6378270, 0.00672267], + [ 14, "International", 6378388, 0.00672267], + [ 15, "Krassovsky", 6378245, 0.006693422], + [ 16, "Modified Airy", 6377340, 0.00667054], + [ 17, "Modified Everest", 6377304, 0.006637847], + [ 18, "Modified Fischer 1960", 6378155, 0.006693422], + [ 19, "South American 1969", 6378160, 0.006694542], + [ 20, "WGS 60", 6378165, 0.006693422], + [ 21, "WGS 66", 6378145, 0.006694542], + [ 22, "WGS-72", 6378135, 0.006694318], + [ 23, "WGS-84", 6378137, 0.00669438] +] + +#Reference ellipsoids derived from Peter H. Dana's website- +#http://www.utexas.edu/depts/grg/gcraft/notes/datum/elist.html +#Department of Geography, University of Texas at Austin +#Internet: pdana@mail.utexas.edu +#3/22/95 + +#Source +#Defense Mapping Agency. 1987b. DMA Technical Report: Supplement to Department of Defense World Geodetic System +#1984 Technical Report. Part I and II. Washington, DC: Defense Mapping Agency + +#def LLtoUTM(int ReferenceEllipsoid, const double Lat, const double Long, +# double &UTMNorthing, double &UTMEasting, char* UTMZone) + +def LLtoUTM(ReferenceEllipsoid, Lat, Long, zone = None): + """converts lat/long to UTM coords. Equations from USGS Bulletin 1532 + East Longitudes are positive, West longitudes are negative. + North latitudes are positive, South latitudes are negative + Lat and Long are in decimal degrees + Written by Chuck Gantz- chuck.gantz@globalstar.com""" + + a = _ellipsoid[ReferenceEllipsoid][_EquatorialRadius] + eccSquared = _ellipsoid[ReferenceEllipsoid][_eccentricitySquared] + k0 = 0.9996 + + #Make sure the longitude is between -180.00 .. 179.9 + LongTemp = (Long+180)-int((Long+180)/360)*360-180 # -180.00 .. 179.9 + + LatRad = Lat*_deg2rad + LongRad = LongTemp*_deg2rad + + if zone is None: + ZoneNumber = int((LongTemp + 180)/6) + 1 + else: + ZoneNumber = zone + + if Lat >= 56.0 and Lat < 64.0 and LongTemp >= 3.0 and LongTemp < 12.0: + ZoneNumber = 32 + + # Special zones for Svalbard + if Lat >= 72.0 and Lat < 84.0: + if LongTemp >= 0.0 and LongTemp < 9.0:ZoneNumber = 31 + elif LongTemp >= 9.0 and LongTemp < 21.0: ZoneNumber = 33 + elif LongTemp >= 21.0 and LongTemp < 33.0: ZoneNumber = 35 + elif LongTemp >= 33.0 and LongTemp < 42.0: ZoneNumber = 37 + + LongOrigin = (ZoneNumber - 1)*6 - 180 + 3 #+3 puts origin in middle of zone + LongOriginRad = LongOrigin * _deg2rad + + #compute the UTM Zone from the latitude and longitude + UTMZone = "%d%c" % (ZoneNumber, _UTMLetterDesignator(Lat)) + + eccPrimeSquared = (eccSquared)/(1-eccSquared) + N = a/sqrt(1-eccSquared*sin(LatRad)*sin(LatRad)) + T = tan(LatRad)*tan(LatRad) + C = eccPrimeSquared*cos(LatRad)*cos(LatRad) + A = cos(LatRad)*(LongRad-LongOriginRad) + + M = a*((1 + - eccSquared/4 + - 3*eccSquared*eccSquared/64 + - 5*eccSquared*eccSquared*eccSquared/256)*LatRad + - (3*eccSquared/8 + + 3*eccSquared*eccSquared/32 + + 45*eccSquared*eccSquared*eccSquared/1024)*sin(2*LatRad) + + (15*eccSquared*eccSquared/256 + 45*eccSquared*eccSquared*eccSquared/1024)*sin(4*LatRad) + - (35*eccSquared*eccSquared*eccSquared/3072)*sin(6*LatRad)) + + UTMEasting = (k0*N*(A+(1-T+C)*A*A*A/6 + + (5-18*T+T*T+72*C-58*eccPrimeSquared)*A*A*A*A*A/120) + + 500000.0) + + UTMNorthing = (k0*(M+N*tan(LatRad)*(A*A/2+(5-T+9*C+4*C*C)*A*A*A*A/24 + + (61 + -58*T + +T*T + +600*C + -330*eccPrimeSquared)*A*A*A*A*A*A/720))) + + if Lat < 0: + UTMNorthing = UTMNorthing + 10000000.0; #10000000 meter offset for southern hemisphere + return (UTMZone, UTMEasting, UTMNorthing) + + +def _UTMLetterDesignator(Lat): + """This routine determines the correct UTM letter designator for the given + latitude returns 'Z' if latitude is outside the UTM limits of 84N to 80S + Written by Chuck Gantz- chuck.gantz@globalstar.com""" + + if 84 >= Lat >= 72: return 'X' + elif 72 > Lat >= 64: return 'W' + elif 64 > Lat >= 56: return 'V' + elif 56 > Lat >= 48: return 'U' + elif 48 > Lat >= 40: return 'T' + elif 40 > Lat >= 32: return 'S' + elif 32 > Lat >= 24: return 'R' + elif 24 > Lat >= 16: return 'Q' + elif 16 > Lat >= 8: return 'P' + elif 8 > Lat >= 0: return 'N' + elif 0 > Lat >= -8: return 'M' + elif -8> Lat >= -16: return 'L' + elif -16 > Lat >= -24: return 'K' + elif -24 > Lat >= -32: return 'J' + elif -32 > Lat >= -40: return 'H' + elif -40 > Lat >= -48: return 'G' + elif -48 > Lat >= -56: return 'F' + elif -56 > Lat >= -64: return 'E' + elif -64 > Lat >= -72: return 'D' + elif -72 > Lat >= -80: return 'C' + else: return 'Z' # if the Latitude is outside the UTM limits + +#void UTMtoLL(int ReferenceEllipsoid, const double UTMNorthing, const double UTMEasting, const char* UTMZone, +# double& Lat, double& Long ) + +def UTMtoLL(ReferenceEllipsoid, northing, easting, zone): + """converts UTM coords to lat/long. Equations from USGS Bulletin 1532 +East Longitudes are positive, West longitudes are negative. +North latitudes are positive, South latitudes are negative +Lat and Long are in decimal degrees. +Written by Chuck Gantz- chuck.gantz@globalstar.com +Converted to Python by Russ Nelson """ + + k0 = 0.9996 + a = _ellipsoid[ReferenceEllipsoid][_EquatorialRadius] + eccSquared = _ellipsoid[ReferenceEllipsoid][_eccentricitySquared] + e1 = (1-sqrt(1-eccSquared))/(1+sqrt(1-eccSquared)) + #NorthernHemisphere; //1 for northern hemispher, 0 for southern + + x = easting - 500000.0 #remove 500,000 meter offset for longitude + y = northing + + ZoneLetter = zone[-1] + ZoneNumber = int(zone[:-1]) + if ZoneLetter >= 'N': + NorthernHemisphere = 1 # point is in northern hemisphere + else: + NorthernHemisphere = 0 # point is in southern hemisphere + y -= 10000000.0 # remove 10,000,000 meter offset used for southern hemisphere + + LongOrigin = (ZoneNumber - 1)*6 - 180 + 3 # +3 puts origin in middle of zone + + eccPrimeSquared = (eccSquared)/(1-eccSquared) + + M = y / k0 + mu = M/(a*(1-eccSquared/4-3*eccSquared*eccSquared/64-5*eccSquared*eccSquared*eccSquared/256)) + + phi1Rad = (mu + (3*e1/2-27*e1*e1*e1/32)*sin(2*mu) + + (21*e1*e1/16-55*e1*e1*e1*e1/32)*sin(4*mu) + +(151*e1*e1*e1/96)*sin(6*mu)) + phi1 = phi1Rad*_rad2deg; + + N1 = a/sqrt(1-eccSquared*sin(phi1Rad)*sin(phi1Rad)) + T1 = tan(phi1Rad)*tan(phi1Rad) + C1 = eccPrimeSquared*cos(phi1Rad)*cos(phi1Rad) + R1 = a*(1-eccSquared)/pow(1-eccSquared*sin(phi1Rad)*sin(phi1Rad), 1.5) + D = x/(N1*k0) + + Lat = phi1Rad - (N1*tan(phi1Rad)/R1)*(D*D/2-(5+3*T1+10*C1-4*C1*C1-9*eccPrimeSquared)*D*D*D*D/24 + +(61+90*T1+298*C1+45*T1*T1-252*eccPrimeSquared-3*C1*C1)*D*D*D*D*D*D/720) + Lat = Lat * _rad2deg + + Long = (D-(1+2*T1+C1)*D*D*D/6+(5-2*C1+28*T1-3*C1*C1+8*eccPrimeSquared+24*T1*T1) + *D*D*D*D*D/120)/cos(phi1Rad) + Long = LongOrigin + Long * _rad2deg + return (Lat, Long) + +if __name__ == '__main__': + (z, e, n) = LLtoUTM(23, 45.00, -75.00) + print z, e, n + print UTMtoLL(23, n, e, z) + diff --git a/daemon/core/misc/__init__.py b/daemon/core/misc/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/daemon/core/misc/event.py b/daemon/core/misc/event.py new file mode 100644 index 00000000..08ed5701 --- /dev/null +++ b/daemon/core/misc/event.py @@ -0,0 +1,160 @@ +# +# CORE +# Copyright (c)2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# authors: Tom Goff +# +''' +event.py: event loop implementation using a heap queue and threads. +''' +import time +import threading +import heapq + +class EventLoop(object): + + class Event(object): + def __init__(self, eventnum, time, func, *args, **kwds): + self.eventnum = eventnum + self.time = time + self.func = func + self.args = args + self.kwds = kwds + self.canceled = False + + def __cmp__(self, other): + tmp = cmp(self.time, other.time) + if tmp == 0: + tmp = cmp(self.eventnum, other.eventnum) + return tmp + + def run(self): + if self.canceled: + return + self.func(*self.args, **self.kwds) + + def cancel(self): + self.canceled = True # XXX not thread-safe + + def __init__(self): + self.lock = threading.RLock() + self.queue = [] + self.eventnum = 0 + self.timer = None + self.running = False + self.start = None + + def __del__(self): + self.stop() + + def __run_events(self): + schedule = False + while True: + with self.lock: + if not self.running or not self.queue: + break + now = time.time() + if self.queue[0].time > now: + schedule = True + break + event = heapq.heappop(self.queue) + assert event.time <= now + event.run() + with self.lock: + self.timer = None + if schedule: + self.__schedule_event() + + def __schedule_event(self): + with self.lock: + assert self.running + if not self.queue: + return + delay = self.queue[0].time - time.time() + assert self.timer is None + self.timer = threading.Timer(delay, self.__run_events) + self.timer.daemon = True + self.timer.start() + + def run(self): + with self.lock: + if self.running: + return + self.running = True + self.start = time.time() + for event in self.queue: + event.time += self.start + self.__schedule_event() + + def stop(self): + with self.lock: + if not self.running: + return + self.queue = [] + self.eventnum = 0 + if self.timer is not None: + self.timer.cancel() + self.timer = None + self.running = False + self.start = None + + def add_event(self, delaysec, func, *args, **kwds): + with self.lock: + eventnum = self.eventnum + self.eventnum += 1 + evtime = float(delaysec) + if self.running: + evtime += time.time() + event = self.Event(eventnum, evtime, func, *args, **kwds) + + if self.queue: + prevhead = self.queue[0] + else: + prevhead = None + + heapq.heappush(self.queue, event) + head = self.queue[0] + if prevhead is not None and prevhead != head: + if self.timer is not None and not self.timer.is_alive(): + self.timer.cancel() + self.timer = None + + if self.running and self.timer is None: + self.__schedule_event() + return event + +def example(): + loop = EventLoop() + + def msg(arg): + delta = time.time() - loop.start + print delta, 'arg:', arg + + def repeat(interval, count): + count -= 1 + msg('repeat: interval: %s; remaining: %s' % (interval, count)) + if count > 0: + loop.add_event(interval, repeat, interval, count) + + def sleep(delay): + msg('sleep %s' % delay) + time.sleep(delay) + msg('sleep done') + + def stop(arg): + msg(arg) + loop.stop() + + loop.add_event(0, msg, 'start') + loop.add_event(0, msg, 'time zero') + + for delay in 5, 4, 10, -1, 0, 9, 3, 7, 3.14: + loop.add_event(delay, msg, 'time %s' % delay) + + loop.run() + + loop.add_event(0, repeat, 1, 5) + loop.add_event(12, sleep, 10) + + loop.add_event(15.75, stop, 'stop time: 15.75') diff --git a/daemon/core/misc/ipaddr.py b/daemon/core/misc/ipaddr.py new file mode 100644 index 00000000..d6600f7d --- /dev/null +++ b/daemon/core/misc/ipaddr.py @@ -0,0 +1,230 @@ +# +# CORE +# Copyright (c)2010-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Tom Goff +# +''' +ipaddr.py: helper objects for dealing with IPv4/v6 addresses. +''' + +import socket +import struct +import random + +AF_INET = socket.AF_INET +AF_INET6 = socket.AF_INET6 + +class MacAddr(object): + def __init__(self, addr): + self.addr = addr + + def __str__(self): + return ":".join(map(lambda x: ("%02x" % ord(x)), self.addr)) + + def tolinklocal(self): + ''' Convert the MAC address to a IPv6 link-local address, using EUI 48 + to EUI 64 conversion process per RFC 5342. + ''' + if not self.addr: + return IPAddr.fromstring("::") + tmp = struct.unpack("!Q", '\x00\x00' + self.addr)[0] + nic = long(tmp) & 0x000000FFFFFFL + oui = long(tmp) & 0xFFFFFF000000L + # toggle U/L bit + oui ^= 0x020000000000L + # append EUI-48 octets + oui = (oui << 16) | 0xFFFE000000L + return IPAddr(AF_INET6, struct.pack("!QQ", 0xfe80 << 48, oui | nic)) + + @classmethod + def fromstring(cls, s): + addr = "".join(map(lambda x: chr(int(x, 16)), s.split(":"))) + return cls(addr) + + @classmethod + def random(cls): + tmp = random.randint(0, 0xFFFFFF) + tmp |= 0x00163E << 24 # use the Xen OID 00:16:3E + tmpbytes = struct.pack("!Q", tmp) + return cls(tmpbytes[2:]) + +class IPAddr(object): + def __init__(self, af, addr): + # check if (af, addr) is valid + if not socket.inet_ntop(af, addr): + raise ValueError, "invalid af/addr" + self.af = af + self.addr = addr + + def isIPv4(self): + return self.af == AF_INET + + def isIPv6(self): + return self.af == AF_INET6 + + def __str__(self): + return socket.inet_ntop(self.af, self.addr) + + def __eq__(self, other): + try: + return other.af == self.af and other.addr == self.addr + except: + return False + + def __add__(self, other): + try: + carry = int(other) + except: + return NotImplemented + tmp = map(lambda x: ord(x), self.addr) + for i in xrange(len(tmp) - 1, -1, -1): + x = tmp[i] + carry + tmp[i] = x & 0xff + carry = x >> 8 + if carry == 0: + break + addr = "".join(map(lambda x: chr(x), tmp)) + return self.__class__(self.af, addr) + + def __sub__(self, other): + try: + tmp = -int(other) + except: + return NotImplemented + return self.__add__(tmp) + + @classmethod + def fromstring(cls, s): + for af in AF_INET, AF_INET6: + try: + return cls(af, socket.inet_pton(af, s)) + except Exception, e: + pass + raise e + + @staticmethod + def toint(s): + ''' convert IPv4 string to 32-bit integer + ''' + bin = socket.inet_pton(AF_INET, s) + return(struct.unpack('!I', bin)[0]) + +class IPPrefix(object): + def __init__(self, af, prefixstr): + "prefixstr format: address/prefixlen" + tmp = prefixstr.split("/") + if len(tmp) > 2: + raise ValueError, "invalid prefix: '%s'" % prefixstr + self.af = af + if self.af == AF_INET: + self.addrlen = 32 + elif self.af == AF_INET6: + self.addrlen = 128 + else: + raise ValueError, "invalid address family: '%s'" % self.af + if len(tmp) == 2: + self.prefixlen = int(tmp[1]) + else: + self.prefixlen = self.addrlen + self.prefix = socket.inet_pton(self.af, tmp[0]) + if self.addrlen > self.prefixlen: + addrbits = self.addrlen - self.prefixlen + netmask = ((1L << self.prefixlen) - 1) << addrbits + prefix = "" + for i in xrange(-1, -(addrbits >> 3) - 2, -1): + prefix = chr(ord(self.prefix[i]) & (netmask & 0xff)) + prefix + netmask >>= 8 + self.prefix = self.prefix[:i] + prefix + + def __str__(self): + return "%s/%s" % (socket.inet_ntop(self.af, self.prefix), + self.prefixlen) + + def __eq__(self, other): + try: + return other.af == self.af and \ + other.prefixlen == self.prefixlen and \ + other.prefix == self.prefix + except: + return False + + def __add__(self, other): + try: + tmp = int(other) + except: + return NotImplemented + a = IPAddr(self.af, self.prefix) + \ + (tmp << (self.addrlen - self.prefixlen)) + prefixstr = "%s/%s" % (a, self.prefixlen) + if self.__class__ == IPPrefix: + return self.__class__(self.af, prefixstr) + else: + return self.__class__(prefixstr) + + def __sub__(self, other): + try: + tmp = -int(other) + except: + return NotImplemented + return self.__add__(tmp) + + def addr(self, hostid): + tmp = int(hostid) + if (tmp == 1 or tmp == 0 or tmp == -1) and self.addrlen == self.prefixlen: + return IPAddr(self.af, self.prefix) + if tmp == 0 or \ + tmp > (1 << (self.addrlen - self.prefixlen)) - 1 or \ + (self.af == AF_INET and tmp == (1 << (self.addrlen - self.prefixlen)) - 1): + raise ValueError, "invalid hostid for prefix %s: %s" % (self, hostid) + addr = "" + for i in xrange(-1, -(self.addrlen >> 3) - 1, -1): + addr = chr(ord(self.prefix[i]) | (tmp & 0xff)) + addr + tmp >>= 8 + if not tmp: + break + addr = self.prefix[:i] + addr + return IPAddr(self.af, addr) + + def minaddr(self): + return self.addr(1) + + def maxaddr(self): + if self.af == AF_INET: + return self.addr((1 << (self.addrlen - self.prefixlen)) - 2) + else: + return self.addr((1 << (self.addrlen - self.prefixlen)) - 1) + + def numaddr(self): + return max(0, (1 << (self.addrlen - self.prefixlen)) - 2) + + def prefixstr(self): + return "%s" % socket.inet_ntop(self.af, self.prefix) + + def netmaskstr(self): + addrbits = self.addrlen - self.prefixlen + netmask = ((1L << self.prefixlen) - 1) << addrbits + netmaskbytes = struct.pack("!L", netmask) + return IPAddr(af=AF_INET, addr=netmaskbytes).__str__() + +class IPv4Prefix(IPPrefix): + def __init__(self, prefixstr): + IPPrefix.__init__(self, AF_INET, prefixstr) + +class IPv6Prefix(IPPrefix): + def __init__(self, prefixstr): + IPPrefix.__init__(self, AF_INET6, prefixstr) + +def isIPAddress(af, addrstr): + try: + tmp = socket.inet_pton(af, addrstr) + return True + except: + return False + +def isIPv4Address(addrstr): + return isIPAddress(AF_INET, addrstr) + +def isIPv6Address(addrstr): + return isIPAddress(AF_INET6, addrstr) diff --git a/daemon/core/misc/quagga.py b/daemon/core/misc/quagga.py new file mode 100644 index 00000000..4e8511ba --- /dev/null +++ b/daemon/core/misc/quagga.py @@ -0,0 +1,116 @@ +# +# CORE +# Copyright (c)2010-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Tom Goff +# +''' +quagga.py: helper class for generating Quagga configuration. +''' + +import os.path +from string import Template + +def maketuple(obj): + if hasattr(obj, "__iter__"): + return tuple(obj) + else: + return (obj,) + +class NetIf(object): + def __init__(self, name, addrlist = []): + self.name = name + self.addrlist = addrlist + +class Conf(object): + def __init__(self, **kwds): + self.kwds = kwds + + def __str__(self): + tmp = self.template.substitute(**self.kwds) + if tmp[-1] == '\n': + tmp = tmp[:-1] + return tmp + +class QuaggaOSPF6Interface(Conf): + AF_IPV6_ID = 0 + AF_IPV4_ID = 65 + + template = Template("""\ +interface $interface + $addr + ipv6 ospf6 instance-id $instanceid + ipv6 ospf6 hello-interval 2 + ipv6 ospf6 dead-interval 11 + ipv6 ospf6 retransmit-interval 5 + ipv6 ospf6 network $network + ipv6 ospf6 diffhellos + ipv6 ospf6 adjacencyconnectivity uniconnected + ipv6 ospf6 lsafullness mincostlsa +""") + +# ip address $ipaddr/32 +# ipv6 ospf6 simhelloLLtoULRecv :$simhelloport +# !$ipaddr:$simhelloport + + def __init__(self, netif, instanceid = AF_IPV4_ID, + network = "manet-designated-router", **kwds): + self.netif = netif + def addrstr(x): + if x.find(".") >= 0: + return "ip address %s" % x + elif x.find(":") >= 0: + return "ipv6 address %s" % x + else: + raise Value, "invalid address: %s", x + addr = "\n ".join(map(addrstr, netif.addrlist)) + + self.instanceid = instanceid + self.network = network + Conf.__init__(self, interface = netif.name, addr = addr, + instanceid = instanceid, network = network, **kwds) + + def name(self): + return self.netif.name + +class QuaggaOSPF6(Conf): + + template = Template("""\ +$interfaces +! +router ospf6 + router-id $routerid + $ospfifs + $redistribute +""") + + def __init__(self, ospf6ifs, area, routerid, + redistribute = "! no redistribute"): + ospf6ifs = maketuple(ospf6ifs) + interfaces = "\n!\n".join(map(str, ospf6ifs)) + ospfifs = "\n ".join(map(lambda x: "interface %s area %s" % \ + (x.name(), area), ospf6ifs)) + Conf.__init__(self, interfaces = interfaces, routerid = routerid, + ospfifs = ospfifs, redistribute = redistribute) + + +class QuaggaConf(Conf): + template = Template("""\ +log file $logfile +$debugs +! +$routers +! +$forwarding +""") + + def __init__(self, routers, logfile, debugs = ()): + routers = "\n!\n".join(map(str, maketuple(routers))) + if debugs: + debugs = "\n".join(maketuple(debugs)) + else: + debugs = "! no debugs" + forwarding = "ip forwarding\nipv6 forwarding" + Conf.__init__(self, logfile = logfile, debugs = debugs, + routers = routers, forwarding = forwarding) diff --git a/daemon/core/misc/utils.py b/daemon/core/misc/utils.py new file mode 100644 index 00000000..634a0425 --- /dev/null +++ b/daemon/core/misc/utils.py @@ -0,0 +1,228 @@ +# +# CORE +# Copyright (c)2010-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# authors: Tom Goff +# Jeff Ahrenholz +# +''' +utils.py: miscellaneous utility functions, wrappers around some subprocess +procedures. +''' + +import subprocess, os, ast + +def checkexec(execlist): + for bin in execlist: + # note that os.access() uses real uid/gid; that should be okay + # here + if not os.access(bin, os.X_OK): + raise EnvironmentError, "executable not found: %s" % bin + +def ensurepath(pathlist): + searchpath = os.environ["PATH"].split(":") + for p in set(pathlist): + if p not in searchpath: + os.environ["PATH"] += ":" + p + +def maketuple(obj): + if hasattr(obj, "__iter__"): + return tuple(obj) + else: + return (obj,) + +def maketuplefromstr(s, type): + s.replace('\\', '\\\\') + return ast.literal_eval(s) + #return tuple(type(i) for i in s[1:-1].split(',')) + #r = () + #for i in s.strip("()").split(','): + # r += (i.strip("' "), ) + # chop empty last element from "('a',)" strings + #if r[-1] == '': + # r = r[:-1] + #return r + +def call(*args, **kwds): + return subprocess.call(*args, **kwds) + +def mutecall(*args, **kwds): + kwds["stdout"] = open(os.devnull, "w") + kwds["stderr"] = subprocess.STDOUT + return call(*args, **kwds) + +def check_call(*args, **kwds): + return subprocess.check_call(*args, **kwds) + +def mutecheck_call(*args, **kwds): + kwds["stdout"] = open(os.devnull, "w") + kwds["stderr"] = subprocess.STDOUT + return subprocess.check_call(*args, **kwds) + +def spawn(*args, **kwds): + return subprocess.Popen(*args, **kwds).pid + +def mutespawn(*args, **kwds): + kwds["stdout"] = open(os.devnull, "w") + kwds["stderr"] = subprocess.STDOUT + return subprocess.Popen(*args, **kwds).pid + +def detachinit(): + if os.fork(): + os._exit(0) # parent exits + os.setsid() + +def detach(*args, **kwds): + kwds["preexec_fn"] = detachinit + return subprocess.Popen(*args, **kwds).pid + +def mutedetach(*args, **kwds): + kwds["preexec_fn"] = detachinit + kwds["stdout"] = open(os.devnull, "w") + kwds["stderr"] = subprocess.STDOUT + return subprocess.Popen(*args, **kwds).pid + +def hexdump(s, bytes_per_word = 2, words_per_line = 8): + dump = "" + count = 0 + bytes = bytes_per_word * words_per_line + while s: + line = s[:bytes] + s = s[bytes:] + tmp = map(lambda x: ("%02x" * bytes_per_word) % x, + zip(*[iter(map(ord, line))] * bytes_per_word)) + if len(line) % 2: + tmp.append("%x" % ord(line[-1])) + dump += "0x%08x: %s\n" % (count, " ".join(tmp)) + count += len(line) + return dump[:-1] + +def filemunge(pathname, header, text): + ''' Insert text at the end of a file, surrounded by header comments. + ''' + filedemunge(pathname, header) # prevent duplicates + f = open(pathname, 'a') + f.write("# BEGIN %s\n" % header) + f.write(text) + f.write("# END %s\n" % header) + f.close() + +def filedemunge(pathname, header): + ''' Remove text that was inserted in a file surrounded by header comments. + ''' + f = open(pathname, 'r') + lines = f.readlines() + f.close() + start = None + end = None + for i in range(len(lines)): + if lines[i] == "# BEGIN %s\n" % header: + start = i + elif lines[i] == "# END %s\n" % header: + end = i + 1 + if start is None or end is None: + return + f = open(pathname, 'w') + lines = lines[:start] + lines[end:] + f.write("".join(lines)) + f.close() + +def expandcorepath(pathname, session=None, node=None): + ''' Expand a file path given session information. + ''' + if session is not None: + pathname = pathname.replace('~', "/home/%s" % session.user) + pathname = pathname.replace('%SESSION%', str(session.sessionid)) + pathname = pathname.replace('%SESSION_DIR%', session.sessiondir) + pathname = pathname.replace('%SESSION_USER%', session.user) + if node is not None: + pathname = pathname.replace('%NODE%', str(node.objid)) + pathname = pathname.replace('%NODENAME%', node.name) + return pathname + +def sysctldevname(devname): + ''' Translate a device name to the name used with sysctl. + ''' + if devname is None: + return None + return devname.replace(".", "/") + +def daemonize(rootdir = "/", umask = 0, close_fds = False, dontclose = (), + stdin = os.devnull, stdout = os.devnull, stderr = os.devnull, + stdoutmode = 0644, stderrmode = 0644, pidfilename = None, + defaultmaxfd = 1024): + ''' Run the background process as a daemon. + ''' + if not hasattr(dontclose, "__contains__"): + if not isinstance(dontclose, int): + raise TypeError, "dontclose must be an integer" + dontclose = (int(dontclose),) + else: + for fd in dontclose: + if not isinstance(fd, int): + raise TypeError, "dontclose must contain only integers" + # redirect stdin + if stdin: + fd = os.open(stdin, os.O_RDONLY) + os.dup2(fd, 0) + os.close(fd) + # redirect stdout + if stdout: + fd = os.open(stdout, os.O_WRONLY | os.O_CREAT | os.O_APPEND, + stdoutmode) + os.dup2(fd, 1) + if (stdout == stderr): + os.dup2(1, 2) + os.close(fd) + # redirect stderr + if stderr and (stderr != stdout): + fd = os.open(stderr, os.O_WRONLY | os.O_CREAT | os.O_APPEND, + stderrmode) + os.dup2(fd, 2) + os.close(fd) + if os.fork(): + os._exit(0) # parent exits + os.setsid() + pid = os.fork() + if pid: + if pidfilename: + try: + f = open(pidfilename, "w") + f.write("%s\n" % pid) + f.close() + except: + pass + os._exit(0) # parent exits + if rootdir: + os.chdir(rootdir) + os.umask(umask) + if close_fds: + try: + maxfd = resource.getrlimit(resource.RLIMIT_NOFILE)[1] + if maxfd == resource.RLIM_INFINITY: + raise ValueError + except: + maxfd = defaultmaxfd + for fd in xrange(3, maxfd): + if fd in dontclose: + continue + try: + os.close(fd) + except: + pass + +def readfileintodict(filename, d): + ''' Read key=value pairs from a file, into a dict. + Skip comments; strip newline characters and spacing. + ''' + with open(filename, 'r') as f: + lines = f.readlines() + for l in lines: + if l[:1] == '#': + continue + try: + key, value = l.split('=', 1) + d[key] = value.strip() + except ValueError: + pass diff --git a/daemon/core/misc/utm.py b/daemon/core/misc/utm.py new file mode 100644 index 00000000..8e54f3ab --- /dev/null +++ b/daemon/core/misc/utm.py @@ -0,0 +1,259 @@ +""" +utm +=== + +.. image:: https://travis-ci.org/Turbo87/utm.png + +Bidirectional UTM-WGS84 converter for python + +Usage +----- + +:: + + import utm + +Convert a (latitude, longitude) tuple into an UTM coordinate:: + + utm.from_latlon(51.2, 7.5) + >>> (395201.3103811303, 5673135.241182375, 32, 'U') + +Convert an UTM coordinate into a (latitude, longitude) tuple:: + + utm.to_latlon(340000, 5710000, 32, 'U') + >>> (51.51852098408468, 6.693872395145327) + +Speed +----- + +The library has been compared to the more generic pyproj library by running the +unit test suite through pyproj instead of utm. These are the results: + +* with pyproj (without projection cache): 4.0 - 4.5 sec +* with pyproj (with projection cache): 0.9 - 1.0 sec +* with utm: 0.4 - 0.5 sec + +Authors +------- + +* Tobias Bieniek + +License +------- + +Copyright (C) 2012 Tobias Bieniek + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +""" + +import math + +__all__ = ['to_latlon', 'from_latlon'] + +class OutOfRangeError(ValueError): + pass + + +K0 = 0.9996 + +E = 0.00669438 +E2 = E * E +E3 = E2 * E +E_P2 = E / (1.0 - E) + +SQRT_E = math.sqrt(1 - E) +_E = (1 - SQRT_E) / (1 + SQRT_E) +_E3 = _E * _E * _E +_E4 = _E3 * _E + +M1 = (1 - E / 4 - 3 * E2 / 64 - 5 * E3 / 256) +M2 = (3 * E / 8 + 3 * E2 / 32 + 45 * E3 / 1024) +M3 = (15 * E2 / 256 + 45 * E3 / 1024) +M4 = (35 * E3 / 3072) + +P2 = (3 * _E / 2 - 27 * _E3 / 32) +P3 = (21 * _E3 / 16 - 55 * _E4 / 32) +P4 = (151 * _E3 / 96) + +R = 6378137 + +ZONE_LETTERS = [ + (84, None), (72, 'X'), (64, 'W'), (56, 'V'), (48, 'U'), (40, 'T'), + (32, 'S'), (24, 'R'), (16, 'Q'), (8, 'P'), (0, 'N'), (-8, 'M'), (-16, 'L'), + (-24, 'K'), (-32, 'J'), (-40, 'H'), (-48, 'G'), (-56, 'F'), (-64, 'E'), + (-72, 'D'), (-80, 'C') +] + + +def to_latlon(easting, northing, zone_number, zone_letter): + zone_letter = zone_letter.upper() + + if not 100000 <= easting < 1000000: + raise OutOfRangeError('easting out of range (must be between 100.000 m and 999.999 m)') + if not 0 <= northing <= 10000000: + raise OutOfRangeError('northing out of range (must be between 0 m and 10.000.000 m)') + if not 1 <= zone_number <= 60: + raise OutOfRangeError('zone number out of range (must be between 1 and 60)') + if not 'C' <= zone_letter <= 'X' or zone_letter in ['I', 'O']: + raise OutOfRangeError('zone letter out of range (must be between C and X)') + + x = easting - 500000 + y = northing + + if zone_letter < 'N': + y -= 10000000 + + m = y / K0 + mu = m / (R * M1) + + p_rad = (mu + P2 * math.sin(2 * mu) + P3 * math.sin(4 * mu) + P4 * math.sin(6 * mu)) + + p_sin = math.sin(p_rad) + p_sin2 = p_sin * p_sin + + p_cos = math.cos(p_rad) + + p_tan = p_sin / p_cos + p_tan2 = p_tan * p_tan + p_tan4 = p_tan2 * p_tan2 + + ep_sin = 1 - E * p_sin2 + ep_sin_sqrt = math.sqrt(1 - E * p_sin2) + + n = R / ep_sin_sqrt + r = (1 - E) / ep_sin + + c = _E * p_cos**2 + c2 = c * c + + d = x / (n * K0) + d2 = d * d + d3 = d2 * d + d4 = d3 * d + d5 = d4 * d + d6 = d5 * d + + latitude = (p_rad - (p_tan / r) * + (d2 / 2 - + d4 / 24 * (5 + 3 * p_tan2 + 10 * c - 4 * c2 - 9 * E_P2)) + + d6 / 720 * (61 + 90 * p_tan2 + 298 * c + 45 * p_tan4 - 252 * E_P2 - 3 * c2)) + + longitude = (d - + d3 / 6 * (1 + 2 * p_tan2 + c) + + d5 / 120 * (5 - 2 * c + 28 * p_tan2 - 3 * c2 + 8 * E_P2 + 24 * p_tan4)) / p_cos + + return (math.degrees(latitude), + math.degrees(longitude) + zone_number_to_central_longitude(zone_number)) + + +def from_latlon(latitude, longitude): + if not -80.0 <= latitude <= 84.0: + raise OutOfRangeError('latitude out of range (must be between 80 deg S and 84 deg N)') + if not -180.0 <= longitude <= 180.0: + raise OutOfRangeError('northing out of range (must be between 180 deg W and 180 deg E)') + + lat_rad = math.radians(latitude) + lat_sin = math.sin(lat_rad) + lat_cos = math.cos(lat_rad) + + lat_tan = lat_sin / lat_cos + lat_tan2 = lat_tan * lat_tan + lat_tan4 = lat_tan2 * lat_tan2 + + lon_rad = math.radians(longitude) + + zone_number = latlon_to_zone_number(latitude, longitude) + central_lon = zone_number_to_central_longitude(zone_number) + central_lon_rad = math.radians(central_lon) + + zone_letter = latitude_to_zone_letter(latitude) + + n = R / math.sqrt(1 - E * lat_sin**2) + c = E_P2 * lat_cos**2 + + a = lat_cos * (lon_rad - central_lon_rad) + a2 = a * a + a3 = a2 * a + a4 = a3 * a + a5 = a4 * a + a6 = a5 * a + + m = R * (M1 * lat_rad - + M2 * math.sin(2 * lat_rad) + + M3 * math.sin(4 * lat_rad) - + M4 * math.sin(6 * lat_rad)) + + easting = K0 * n * (a + + a3 / 6 * (1 - lat_tan2 + c) + + a5 / 120 * (5 - 18 * lat_tan2 + lat_tan4 + 72 * c - 58 * E_P2)) + 500000 + + northing = K0 * (m + n * lat_tan * (a2 / 2 + + a4 / 24 * (5 - lat_tan2 + 9 * c + 4 * c**2) + + a6 / 720 * (61 - 58 * lat_tan2 + lat_tan4 + 600 * c - 330 * E_P2))) + + if latitude < 0: + northing += 10000000 + + return easting, northing, zone_number, zone_letter + + +def latitude_to_zone_letter(latitude): + for lat_min, zone_letter in ZONE_LETTERS: + if latitude >= lat_min: + return zone_letter + + return None + + +def latlon_to_zone_number(latitude, longitude): + if 56 <= latitude <= 64 and 3 <= longitude <= 12: + return 32 + + if 72 <= latitude <= 84 and longitude >= 0: + if longitude <= 9: + return 31 + elif longitude <= 21: + return 33 + elif longitude <= 33: + return 35 + elif longitude <= 42: + return 37 + + return int((longitude + 180) / 6) + 1 + + +def zone_number_to_central_longitude(zone_number): + return (zone_number - 1) * 6 - 180 + 3 + + +def haversine(lon1, lat1, lon2, lat2): + """ + Calculate the great circle distance between two points + on the earth (specified in decimal degrees) + """ + # convert decimal degrees to radians + lon1, lat1, lon2, lat2 = map(math.radians, [lon1, lat1, lon2, lat2]) + # haversine formula + dlon = lon2 - lon1 + dlat = lat2 - lat1 + a = math.sin(dlat/2)**2 + math.cos(lat1) * math.cos(lat2) * math.sin(dlon/2)**2 + c = 2 * math.asin(math.sqrt(a)) + m = 6367000 * c + return m + diff --git a/daemon/core/misc/xmlutils.py b/daemon/core/misc/xmlutils.py new file mode 100644 index 00000000..69d7d1c8 --- /dev/null +++ b/daemon/core/misc/xmlutils.py @@ -0,0 +1,776 @@ +# +# CORE +# Copyright (c)2011-2013 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +''' +Helpers for loading and saving XML files. savesessionxml(session, filename) is +the main public interface here. +''' +import os, pwd +from xml.dom.minidom import parse, Document, Node +from core import pycore +from core.api import coreapi + +def addelementsfromlist(dom, parent, iterable, name, attr_name): + ''' XML helper to iterate through a list and add items to parent using tags + of the given name and the item value as an attribute named attr_name. + Example: addelementsfromlist(dom, parent, ('a','b','c'), "letter", "value") + + + + + + ''' + for item in iterable: + element = dom.createElement(name) + element.setAttribute(attr_name, item) + parent.appendChild(element) + +def addtextelementsfromlist(dom, parent, iterable, name, attrs): + ''' XML helper to iterate through a list and add items to parent using tags + of the given name, attributes specified in the attrs tuple, and having the + text of the item within the tags. + ''' + for item in iterable: + element = dom.createElement(name) + for k,v in attrs: + element.setAttribute(k, v) + parent.appendChild(element) + txt = dom.createTextNode(item) + element.appendChild(txt) + +def gettextelementstolist(parent): + ''' XML helper to parse child text nodes from the given parent and return + a list of (key, value) tuples. + ''' + r = [] + for n in parent.childNodes: + if n.nodeType != Node.ELEMENT_NODE: + continue + k = str(n.nodeName) + v = '' # sometimes want None here? + for c in n.childNodes: + if c.nodeType != Node.TEXT_NODE: + continue + v = str(c.nodeValue) + break + r.append((k,v)) + return r + +def addparamtoparent(dom, parent, name, value): + ''' XML helper to add a tag to the parent + element, when value is not None. + ''' + if value is None: + return None + p = dom.createElement("param") + parent.appendChild(p) + p.setAttribute("name", name) + p.setAttribute("value", "%s" % value) + return p + +def addtextparamtoparent(dom, parent, name, value): + ''' XML helper to add a value tag to the parent + element, when value is not None. + ''' + if value is None: + return None + p = dom.createElement("param") + parent.appendChild(p) + p.setAttribute("name", name) + txt = dom.createTextNode(value) + p.appendChild(txt) + return p + +def getoneelement(dom, name): + e = dom.getElementsByTagName(name) + if len(e) == 0: + return None + return e[0] + +def gettextchild(dom): + # this could be improved to skip XML comments + child = dom.firstChild + if child is not None and child.nodeType == Node.TEXT_NODE: + return str(child.nodeValue) + return None + +def getparamssetattrs(dom, param_names, target): + ''' XML helper to get tags and set + the attribute in the target object. String type is used. Target object + attribute is unchanged if the XML attribute is not present. + ''' + params = dom.getElementsByTagName("param") + for param in params: + param_name = param.getAttribute("name") + value = param.getAttribute("value") + if value is None: + continue # never reached? + if param_name in param_names: + setattr(target, param_name, str(value)) + +def xmltypetonodeclass(session, type): + ''' Helper to convert from a type string to a class name in pycore.nodes.*. + ''' + if hasattr(pycore.nodes, type): + return eval("pycore.nodes.%s" % type) + else: + return None + +class CoreDocumentParser(object): + def __init__(self, session, filename): + self.session = session + self.verbose = self.session.getcfgitembool('verbose', False) + self.filename = filename + self.dom = parse(filename) + + #self.scenario = getoneelement(self.dom, "Scenario") + self.np = getoneelement(self.dom, "NetworkPlan") + if self.np is None: + raise ValueError, "missing NetworkPlan!" + self.mp = getoneelement(self.dom, "MotionPlan") + self.sp = getoneelement(self.dom, "ServicePlan") + self.meta = getoneelement(self.dom, "CoreMetaData") + + self.coords = self.getmotiondict(self.mp) + # link parameters parsed in parsenets(), applied in parsenodes() + self.linkparams = {} + + self.parsenets() + self.parsenodes() + self.parseservices() + self.parsemeta() + + + def warn(self, msg): + if self.session: + warnstr = "XML parsing '%s':" % (self.filename) + self.session.warn("%s %s" % (warnstr, msg)) + + def getmotiondict(self, mp): + ''' Parse a MotionPlan into a dict with node names for keys and coordinates + for values. + ''' + if mp is None: + return {} + coords = {} + for node in mp.getElementsByTagName("Node"): + nodename = str(node.getAttribute("name")) + if nodename == '': + continue + for m in node.getElementsByTagName("motion"): + if m.getAttribute("type") != "stationary": + continue + point = m.getElementsByTagName("point") + if len(point) == 0: + continue + txt = point[0].firstChild + if txt is None: + continue + xyz = map(int, txt.nodeValue.split(',')) + z = None + x, y = xyz[0:2] + if (len(xyz) == 3): + z = xyz[2] + coords[nodename] = (x, y, z) + return coords + + @staticmethod + def getcommonattributes(obj): + ''' Helper to return tuple of attributes common to nodes and nets. + ''' + id = int(obj.getAttribute("id")) + name = str(obj.getAttribute("name")) + type = str(obj.getAttribute("type")) + return(id, name, type) + + def parsenets(self): + linkednets = [] + for net in self.np.getElementsByTagName("NetworkDefinition"): + id, name, type = self.getcommonattributes(net) + nodecls = xmltypetonodeclass(self.session, type) + if not nodecls: + self.warn("skipping unknown network node '%s' type '%s'" % \ + (name, type)) + continue + n = self.session.addobj(cls = nodecls, objid = id, name = name, + start = False) + if name in self.coords: + x, y, z = self.coords[name] + n.setposition(x, y, z) + getparamssetattrs(net, ("icon", "canvas", "opaque"), n) + if hasattr(n, "canvas") and n.canvas is not None: + n.canvas = int(n.canvas) + # links between two nets (e.g. switch-switch) + for ifc in net.getElementsByTagName("interface"): + netid = str(ifc.getAttribute("net")) + linkednets.append((n, netid)) + self.parsemodels(net, n) + # link networks together now that they all have been parsed + for (n, netid) in linkednets: + try: + n2 = n.session.objbyname(netid) + except KeyError: + n.warn("skipping net %s interface: unknown net %s" % \ + (n.name, netid)) + continue + n.linknet(n2) + + def parsenodes(self): + for node in self.np.getElementsByTagName("Node"): + id, name, type = self.getcommonattributes(node) + if type == "rj45": + nodecls = pycore.nodes.RJ45Node + else: + nodecls = pycore.nodes.CoreNode + n = self.session.addobj(cls = nodecls, objid = id, name = name, + start = False) + if name in self.coords: + x, y, z = self.coords[name] + n.setposition(x, y, z) + n.type = type + getparamssetattrs(node, ("icon", "canvas", "opaque"), n) + if hasattr(n, "canvas") and n.canvas is not None: + n.canvas = int(n.canvas) + for ifc in node.getElementsByTagName("interface"): + self.parseinterface(n, ifc) + + def parseinterface(self, n, ifc): + ''' Parse a interface block such as: + +
00:00:00:aa:00:01
+
10.0.0.2/24
+
2001::2/64
+
+ ''' + name = str(ifc.getAttribute("name")) + netid = str(ifc.getAttribute("net")) + hwaddr = None + addrlist = [] + try: + net = n.session.objbyname(netid) + except KeyError: + n.warn("skipping node %s interface %s: unknown net %s" % \ + (n.name, name, netid)) + return + for addr in ifc.getElementsByTagName("address"): + addrstr = gettextchild(addr) + if addrstr is None: + continue + if addr.getAttribute("type") == "mac": + hwaddr = addrstr + else: + addrlist.append(addrstr) + i = n.newnetif(net, addrlist = addrlist, hwaddr = hwaddr, + ifindex = None, ifname = name) + for model in ifc.getElementsByTagName("model"): + self.parsemodel(model, n, n.objid) + key = (n.name, name) + if key in self.linkparams: + netif = n.netif(i) + for (k, v) in self.linkparams[key]: + netif.setparam(k, v) + + def parsemodels(self, dom, obj): + ''' Mobility/wireless model config is stored in a ConfigurableManager's + config dict. + ''' + nodenum = int(dom.getAttribute("id")) + for model in dom.getElementsByTagName("model"): + self.parsemodel(model, obj, nodenum) + + def parsemodel(self, model, obj, nodenum): + ''' Mobility/wireless model config is stored in a ConfigurableManager's + config dict. + ''' + name = model.getAttribute("name") + if name == '': + return + type = model.getAttribute("type") + # convert child text nodes into key=value pairs + kvs = gettextelementstolist(model) + + mgr = self.session.mobility + # TODO: the session.confobj() mechanism could be more generic; + # it only allows registering Conf Message callbacks, but here + # we want access to the ConfigurableManager, not the callback + if name[:5] == "emane": + mgr = self.session.emane + elif name[:5] == "netem": + mgr = None + self.parsenetem(model, obj, kvs) + + elif name[:3] == "xen": + mgr = self.session.xen + # TODO: assign other config managers here + if mgr: + mgr.setconfig_keyvalues(nodenum, name, kvs) + + def parsenetem(self, model, obj, kvs): + ''' Determine interface and invoke setparam() using the parsed + (key, value) pairs. + ''' + ifname = model.getAttribute("netif") + peer = model.getAttribute("peer") + key = (peer, ifname) + # nodes and interfaces do not exist yet, at this point of the parsing, + # save (key, value) pairs for later + try: + #kvs = map(lambda(k, v): (int(v)), kvs) + kvs = map(self.numericvalue, kvs) + except ValueError: + self.warn("error parsing link parameters for '%s' on '%s'" % \ + (ifname, peer)) + self.linkparams[key] = kvs + + @staticmethod + def numericvalue(keyvalue): + (key, value) = keyvalue + if '.' in str(value): + value = float(value) + else: + value = int(value) + return (key, value) + + def parseservices(self): + ''' After node objects exist, parse service customizations and add them + to the nodes. + ''' + svclists = {} + # parse services and store configs into session.services.configs + for node in self.sp.getElementsByTagName("Node"): + name = node.getAttribute("name") + n = self.session.objbyname(name) + if n is None: + self.warn("skipping service config for unknown node '%s'" % \ + name) + continue + for service in node.getElementsByTagName("Service"): + svcname = service.getAttribute("name") + if self.parseservice(service, n): + if n.objid in svclists: + svclists[n.objid] += "|" + svcname + else: + svclists[n.objid] = svcname + # associate nodes with services + for objid in sorted(svclists.keys()): + n = self.session.obj(objid) + self.session.services.addservicestonode(node=n, nodetype=n.type, + services_str=svclists[objid], + verbose=self.verbose) + + def parseservice(self, service, n): + ''' Use session.services manager to store service customizations before + they are added to a node. + ''' + name = service.getAttribute("name") + svc = self.session.services.getservicebyname(name) + if svc is None: + return False + values = [] + startup_idx = service.getAttribute("startup_idx") + if startup_idx is not None: + values.append("startidx=%s" % startup_idx) + startup_time = service.getAttribute("start_time") + if startup_time is not None: + values.append("starttime=%s" % startup_time) + dirs = [] + for dir in service.getElementsByTagName("Directory"): + dirname = dir.getAttribute("name") + dirs.append(dirname) + if len(dirs): + values.append("dirs=%s" % dirs) + + startup = [] + shutdown = [] + validate = [] + for cmd in service.getElementsByTagName("Command"): + type = cmd.getAttribute("type") + cmdstr = gettextchild(cmd) + if cmdstr is None: + continue + if type == "start": + startup.append(cmdstr) + elif type == "stop": + shutdown.append(cmdstr) + elif type == "validate": + validate.append(cmdstr) + if len(startup): + values.append("cmdup=%s" % startup) + if len(shutdown): + values.append("cmddown=%s" % shutdown) + if len(validate): + values.append("cmdval=%s" % validate) + + files = [] + for file in service.getElementsByTagName("File"): + filename = file.getAttribute("name") + files.append(filename) + data = gettextchild(file) + typestr = "service:%s:%s" % (name, filename) + self.session.services.setservicefile(nodenum=n.objid, type=typestr, + filename=filename, + srcname=None, data=data) + if len(files): + values.append("files=%s" % files) + if not bool(service.getAttribute("custom")): + return True + self.session.services.setcustomservice(n.objid, svc, values) + return True + + def parsehooks(self, hooks): + ''' Parse hook scripts from XML into session._hooks. + ''' + for hook in hooks.getElementsByTagName("Hook"): + filename = hook.getAttribute("name") + state = hook.getAttribute("state") + data = gettextchild(hook) + if data is None: + data = "" # allow for empty file + type = "hook:%s" % state + self.session.sethook(type, filename=filename, + srcname=None, data=data) + + def parsemeta(self): + opt = getoneelement(self.meta, "SessionOptions") + if opt: + for param in opt.getElementsByTagName("param"): + k = str(param.getAttribute("name")) + v = str(param.getAttribute("value")) + if v == '': + v = gettextchild(param) # allow attribute/text for newlines + setattr(self.session.options, k, v) + hooks = getoneelement(self.meta, "Hooks") + if hooks: + self.parsehooks(hooks) + meta = getoneelement(self.meta, "MetaData") + if meta: + for param in meta.getElementsByTagName("param"): + k = str(param.getAttribute("name")) + v = str(param.getAttribute("value")) + if v == '': + v = gettextchild(param) + self.session.metadata.additem(k, v) + + +class CoreDocumentWriter(Document): + ''' Utility class for writing a CoreSession to XML. The init method builds + an xml.dom.minidom.Document, and the writexml() method saves the XML file. + ''' + def __init__(self, session): + ''' Create an empty Scenario XML Document, then populate it with + objects from the given session. + ''' + Document.__init__(self) + self.session = session + self.scenario = self.createElement("Scenario") + self.np = self.createElement("NetworkPlan") + self.mp = self.createElement("MotionPlan") + self.sp = self.createElement("ServicePlan") + self.meta = self.createElement("CoreMetaData") + + self.appendChild(self.scenario) + self.scenario.appendChild(self.np) + self.scenario.appendChild(self.mp) + self.scenario.appendChild(self.sp) + self.scenario.appendChild(self.meta) + + self.populatefromsession() + + def populatefromsession(self): + self.session.emane.setup() # not during runtime? + self.addnets() + self.addnodes() + self.addmetadata() + + def writexml(self, filename): + self.session.info("saving session XML file %s" % filename) + f = open(filename, "w") + Document.writexml(self, writer=f, indent="", addindent=" ", newl="\n", \ + encoding="UTF-8") + f.close() + if self.session.user is not None: + uid = pwd.getpwnam(self.session.user).pw_uid + gid = os.stat(self.session.sessiondir).st_gid + os.chown(filename, uid, gid) + + def addnets(self): + ''' Add PyCoreNet objects as NetworkDefinition XML elements. + ''' + with self.session._objslock: + for net in self.session.objs(): + if not isinstance(net, pycore.nodes.PyCoreNet): + continue + self.addnet(net) + + def addnet(self, net): + ''' Add one PyCoreNet object as a NetworkDefinition XML element. + ''' + n = self.createElement("NetworkDefinition") + self.np.appendChild(n) + n.setAttribute("name", net.name) + # could use net.brname + n.setAttribute("id", "%s" % net.objid) + n.setAttribute("type", "%s" % net.__class__.__name__) + self.addnetinterfaces(n, net) + # key used with tunnel node + if hasattr(net, 'grekey') and net.grekey is not None: + n.setAttribute("key", "%s" % net.grekey) + # link parameters + for netif in net.netifs(sort=True): + self.addnetem(n, netif) + # wireless/mobility models + modelconfigs = net.session.mobility.getmodels(net) + modelconfigs += net.session.emane.getmodels(net) + self.addmodels(n, modelconfigs) + self.addposition(net) + + def addnetem(self, n, netif): + ''' Similar to addmodels(); used for writing netem link effects + parameters. TODO: Interface parameters should be moved to the model + construct, then this separate method shouldn't be required. + ''' + if not hasattr(netif, "node") or netif.node is None: + return + params = netif.getparams() + if len(params) == 0: + return + model = self.createElement("model") + model.setAttribute("name", "netem") + model.setAttribute("netif", netif.name) + model.setAttribute("peer", netif.node.name) + has_params = False + for k, v in params: + # default netem parameters are 0 or None + if v is None or v == 0: + continue + if k == "has_netem" or k == "has_tbf": + continue + key = self.createElement(k) + key.appendChild(self.createTextNode("%s" % v)) + model.appendChild(key) + has_params = True + if has_params: + n.appendChild(model) + + def addmodels(self, n, configs): + ''' Add models from a list of model-class, config values tuples. + ''' + for (m, conf) in configs: + model = self.createElement("model") + n.appendChild(model) + model.setAttribute("name", m._name) + type = "wireless" + if m._type == coreapi.CORE_TLV_REG_MOBILITY: + type = "mobility" + model.setAttribute("type", type) + for i, k in enumerate(m.getnames()): + key = self.createElement(k) + value = conf[i] + if value is None: + value = "" + key.appendChild(self.createTextNode("%s" % value)) + model.appendChild(key) + + def addnodes(self): + ''' Add PyCoreNode objects as node XML elements. + ''' + with self.session._objslock: + for node in self.session.objs(): + if not isinstance(node, pycore.nodes.PyCoreNode): + continue + self.addnode(node) + + def addnode(self, node): + ''' Add a PyCoreNode object as node XML elements. + ''' + n = self.createElement("Node") + self.np.appendChild(n) + n.setAttribute("name", node.name) + n.setAttribute("id", "%s" % node.nodeid()) + if node.type: + n.setAttribute("type", node.type) + self.addinterfaces(n, node) + self.addposition(node) + addparamtoparent(self, n, "icon", node.icon) + addparamtoparent(self, n, "canvas", node.canvas) + self.addservices(node) + + def addinterfaces(self, n, node): + ''' Add PyCoreNetIfs to node XML elements. + ''' + for ifc in node.netifs(sort=True): + i = self.createElement("interface") + n.appendChild(i) + i.setAttribute("name", ifc.name) + netmodel = None + if ifc.net: + i.setAttribute("net", ifc.net.name) + if hasattr(ifc.net, "model"): + netmodel = ifc.net.model + if ifc.mtu and ifc.mtu != 1500: + i.setAttribute("mtu", "%s" % ifc.mtu) + # could use ifc.params, transport_type + self.addaddresses(i, ifc) + # per-interface models + if netmodel and netmodel._name[:6] == "emane_": + cfg = self.session.emane.getifcconfig(node.objid, netmodel._name, + None, ifc) + if cfg: + self.addmodels(i, ((netmodel, cfg),) ) + + + def addnetinterfaces(self, n, net): + ''' Similar to addinterfaces(), but only adds interface elements to the + supplied XML node that would not otherwise appear in the Node elements. + These are any interfaces that link two switches/hubs together. + ''' + for ifc in net.netifs(sort=True): + if not hasattr(ifc, "othernet") or not ifc.othernet: + continue + if net.objid == ifc.net.objid: + continue + i = self.createElement("interface") + n.appendChild(i) + i.setAttribute("name", ifc.name) + if ifc.net: + i.setAttribute("net", ifc.net.name) + + def addposition(self, node): + ''' Add object coordinates as location XML element. + ''' + (x,y,z) = node.position.get() + if x is None or y is None: + return + # + mpn = self.createElement("Node") + mpn.setAttribute("name", node.name) + self.mp.appendChild(mpn) + + # + motion = self.createElement("motion") + motion.setAttribute("type", "stationary") + mpn.appendChild(motion) + + # $X$,$Y$,$Z$ + pt = self.createElement("point") + motion.appendChild(pt) + coordstxt = "%s,%s" % (x,y) + if z: + coordstxt += ",%s" % z + coords = self.createTextNode(coordstxt) + pt.appendChild(coords) + + def addservices(self, node): + ''' Add services and their customizations to the ServicePlan. + ''' + if len(node.services) == 0: + return + defaults = self.session.services.getdefaultservices(node.type) + if node.services == defaults: + return + spn = self.createElement("Node") + spn.setAttribute("name", node.name) + self.sp.appendChild(spn) + + for svc in node.services: + s = self.createElement("Service") + spn.appendChild(s) + s.setAttribute("name", str(svc._name)) + s.setAttribute("startup_idx", str(svc._startindex)) + if svc._starttime != "": + s.setAttribute("start_time", str(svc._starttime)) + # only record service names if not a customized service + if not svc._custom: + continue + s.setAttribute("custom", str(svc._custom)) + addelementsfromlist(self, s, svc._dirs, "Directory", "name") + + for fn in svc._configs: + if len(fn) == 0: + continue + f = self.createElement("File") + f.setAttribute("name", fn) + # all file names are added to determine when a file has been deleted + s.appendChild(f) + data = self.session.services.getservicefiledata(svc, fn) + if data is None: + # this includes only customized file contents and skips + # the auto-generated files + continue + txt = self.createTextNode(data) + f.appendChild(txt) + + addtextelementsfromlist(self, s, svc._startup, "Command", + (("type","start"),)) + addtextelementsfromlist(self, s, svc._shutdown, "Command", + (("type","stop"),)) + addtextelementsfromlist(self, s, svc._validate, "Command", + (("type","validate"),)) + + def addaddresses(self, i, netif): + ''' Add MAC and IP addresses to interface XML elements. + ''' + if netif.hwaddr: + h = self.createElement("address") + i.appendChild(h) + h.setAttribute("type", "mac") + htxt = self.createTextNode("%s" % netif.hwaddr) + h.appendChild(htxt) + for addr in netif.addrlist: + a = self.createElement("address") + i.appendChild(a) + # a.setAttribute("type", ) + atxt = self.createTextNode("%s" % addr) + a.appendChild(atxt) + + def addhooks(self): + ''' Add hook script XML elements to the metadata tag. + ''' + hooks = self.createElement("Hooks") + for state in sorted(self.session._hooks.keys()): + for (filename, data) in self.session._hooks[state]: + hook = self.createElement("Hook") + hook.setAttribute("name", filename) + hook.setAttribute("state", str(state)) + txt = self.createTextNode(data) + hook.appendChild(txt) + hooks.appendChild(hook) + if hooks.hasChildNodes(): + self.meta.appendChild(hooks) + + def addmetadata(self): + ''' Add CORE-specific session meta-data XML elements. + ''' + # options + options = self.createElement("SessionOptions") + defaults = self.session.options.getdefaultvalues() + for i, (k, v) in enumerate(self.session.options.getkeyvaluelist()): + if str(v) != str(defaults[i]): + addtextparamtoparent(self, options, k, v) + #addparamtoparent(self, options, k, v) + if options.hasChildNodes(): + self.meta.appendChild(options) + # hook scripts + self.addhooks() + # meta + meta = self.createElement("MetaData") + self.meta.appendChild(meta) + for (k, v) in self.session.metadata.items(): + addtextparamtoparent(self, meta, k, v) + #addparamtoparent(self, meta, k, v) + +def opensessionxml(session, filename): + ''' Import a session from the EmulationScript XML format. + ''' + doc = CoreDocumentParser(session, filename) + +def savesessionxml(session, filename): + ''' Export a session to the EmulationScript XML format. + ''' + doc = CoreDocumentWriter(session) + doc.writexml(filename) + diff --git a/daemon/core/mobility.py b/daemon/core/mobility.py new file mode 100644 index 00000000..708e53cd --- /dev/null +++ b/daemon/core/mobility.py @@ -0,0 +1,929 @@ +# +# CORE +# Copyright (c)2011-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +''' +mobility.py: mobility helpers for moving nodes and calculating wireless range. +''' +import sys, os, time, string, math, threading +import heapq +from core.api import coreapi +from core.conf import ConfigurableManager, Configurable +from core.coreobj import PyCoreNode +from core.misc.utils import check_call +from core.misc.ipaddr import IPAddr + +class MobilityManager(ConfigurableManager): + ''' Member of session class for handling configuration data for mobility and + range models. + ''' + _name = "MobilityManager" + _type = coreapi.CORE_TLV_REG_WIRELESS + + def __init__(self, session): + ConfigurableManager.__init__(self, session) + self.verbose = self.session.getcfgitembool('verbose', False) + # configurations for basic range, indexed by WLAN node number, are + # stored in self.configs + # mapping from model names to their classes + self._modelclsmap = {} + # dummy node objects for tracking position of nodes on other servers + self.phys = {} + self.physnets = {} + self.session.broker.handlers += (self.physnodehandlelink, ) + self.register() + + def startup(self): + ''' Session is transitioning from instantiation to runtime state. + Instantiate any mobility models that have been configured for a WLAN. + ''' + for nodenum in self.configs: + v = self.configs[nodenum] + try: + n = self.session.obj(nodenum) + except KeyError: + self.session.warn("Skipping mobility configuration for unknown" + "node %d." % nodenum) + continue + for model in v: + try: + cls = self._modelclsmap[model[0]] + except KeyError: + self.session.warn("Skipping mobility configuration for " + "unknown model '%s'" % model[0]) + continue + n.setmodel(cls, model[1]) + if self.session.master: + self.installphysnodes(n) + if n.mobility: + self.session.evq.add_event(0.0, n.mobility.startup) + + + def reset(self): + ''' Reset all configs. + ''' + self.clearconfig(nodenum=None) + + def register(self): + ''' Register models as configurable object(s) with the Session object. + ''' + models = [BasicRangeModel, Ns2ScriptedMobility] + for m in models: + self.session.addconfobj(m._name, m._type, m.configure_mob) + self._modelclsmap[m._name] = m + + def handleevent(self, msg): + ''' Handle an Event Message used to start, stop, or pause + mobility scripts for a given WlanNode. + ''' + eventtype = msg.gettlv(coreapi.CORE_TLV_EVENT_TYPE) + nodenum = msg.gettlv(coreapi.CORE_TLV_EVENT_NODE) + name = msg.gettlv(coreapi.CORE_TLV_EVENT_NAME) + try: + node = self.session.obj(nodenum) + except KeyError: + self.session.warn("Ignoring event for model '%s', unknown node " \ + "'%s'" % (name, nodenum)) + return + + # name is e.g. "mobility:ns2script" + models = name[9:].split(',') + for m in models: + try: + cls = self._modelclsmap[m] + except KeyError: + self.session.warn("Ignoring event for unknown model '%s'" % m) + continue + _name = "waypoint" + if cls._type == coreapi.CORE_TLV_REG_WIRELESS: + model = node.mobility + elif cls._type == coreapi.CORE_TLV_REG_MOBILITY: + model = node.mobility + else: + continue + if model is None: + self.session.warn("Ignoring event, %s has no model" % node.name) + continue + if cls._name != model._name: + self.session.warn("Ignoring event for %s wrong model %s,%s" % \ + (node.name, cls._name, model._name)) + continue + + if eventtype == coreapi.CORE_EVENT_STOP or \ + eventtype == coreapi.CORE_EVENT_RESTART: + model.stop(move_initial=True) + if eventtype == coreapi.CORE_EVENT_START or \ + eventtype == coreapi.CORE_EVENT_RESTART: + model.start() + if eventtype == coreapi.CORE_EVENT_PAUSE: + model.pause() + + def sendevent(self, model): + ''' Send an event message on behalf of a mobility model. + This communicates the current and end (max) times to the GUI. + ''' + if model.state == model.STATE_STOPPED: + eventtype = coreapi.CORE_EVENT_STOP + elif model.state == model.STATE_RUNNING: + eventtype = coreapi.CORE_EVENT_START + elif model.state == model.STATE_PAUSED: + eventtype = coreapi.CORE_EVENT_PAUSE + data = "start=%d" % int(model.lasttime - model.timezero) + data += " end=%d" % int(model.endtime) + tlvdata = "" + tlvdata += coreapi.CoreEventTlv.pack(coreapi.CORE_TLV_EVENT_NODE, + model.objid) + tlvdata += coreapi.CoreEventTlv.pack(coreapi.CORE_TLV_EVENT_TYPE, + eventtype) + tlvdata += coreapi.CoreEventTlv.pack(coreapi.CORE_TLV_EVENT_NAME, + "mobility:%s" % model._name) + tlvdata += coreapi.CoreEventTlv.pack(coreapi.CORE_TLV_EVENT_DATA, + data) + tlvdata += coreapi.CoreEventTlv.pack(coreapi.CORE_TLV_EVENT_TIME, + "%s" % time.time()) + msg = coreapi.CoreEventMessage.pack(0, tlvdata) + try: + self.session.broadcastraw(None, msg) + except Exception, e: + self.warn("Error sending Event Message: %s" % e) + + def updatewlans(self, moved, moved_netifs): + ''' A mobility script has caused nodes in the 'moved' list to move. + Update every WlanNode. This saves range calculations if the model + were to recalculate for each individual node movement. + ''' + for nodenum in self.configs: + try: + n = self.session.obj(nodenum) + except KeyError: + continue + if n.model: + n.model.update(moved, moved_netifs) + + def addphys(self, netnum, node): + ''' Keep track of PhysicalNodes and which network they belong to. + ''' + nodenum = node.objid + self.phys[nodenum] = node + if netnum not in self.physnets: + self.physnets[netnum] = [nodenum,] + else: + self.physnets[netnum].append(nodenum) + + def physnodehandlelink(self, msg): + ''' Broker handler. Snoop Link add messages to get + node numbers of PhyiscalNodes and their nets. + Physical nodes exist only on other servers, but a shadow object is + created here for tracking node position. + ''' + if msg.msgtype == coreapi.CORE_API_LINK_MSG and \ + msg.flags & coreapi.CORE_API_ADD_FLAG: + nn = msg.nodenumbers() + # first node is always link layer node in Link add message + if nn[0] not in self.session.broker.nets: + return + if nn[1] in self.session.broker.phys: + # record the fact that this PhysicalNode is linked to a net + dummy = PyCoreNode(session=self.session, objid=nn[1], + name="n%d" % nn[1], start=False) + self.addphys(nn[0], dummy) + + def physnodeupdateposition(self, msg): + ''' Snoop node messages belonging to physical nodes. The dummy object + in self.phys[] records the node position. + ''' + nodenum = msg.nodenumbers()[0] + try: + dummy = self.phys[nodenum] + nodexpos = msg.gettlv(coreapi.CORE_TLV_NODE_XPOS) + nodeypos = msg.gettlv(coreapi.CORE_TLV_NODE_YPOS) + dummy.setposition(nodexpos, nodeypos, None) + except KeyError: + pass + + def installphysnodes(self, net): + ''' After installing a mobility model on a net, include any physical + nodes that we have recorded. Use the GreTap tunnel to the physical node + as the node's interface. + ''' + try: + nodenums = self.physnets[net.objid] + except KeyError: + return + for nodenum in nodenums: + node = self.phys[nodenum] + servers = self.session.broker.getserversbynode(nodenum) + (host, port, sock) = self.session.broker.getserver(servers[0]) + netif = self.session.broker.gettunnel(net.objid, IPAddr.toint(host)) + node.addnetif(netif, 0) + netif.node = node + (x,y,z) = netif.node.position.get() + netif.poshook(netif, x, y, z) + + +class WirelessModel(Configurable): + ''' Base class used by EMANE models and the basic range model. + Used for managing arbitrary configuration parameters. + ''' + _type = coreapi.CORE_TLV_REG_WIRELESS + _bitmap = None + _positioncallback = None + + def __init__(self, session, objid, verbose = False, values = None): + Configurable.__init__(self, session, objid) + self.verbose = verbose + # 'values' can be retrieved from a ConfigurableManager, or used here + # during initialization, depending on the model. + + def tolinkmsgs(self, flags): + ''' May be used if the model can populate the GUI with wireless (green) + link lines. + ''' + return [] + + def update(self, moved, moved_netifs): + raise NotImplementedError + + +class BasicRangeModel(WirelessModel): + ''' Basic Range wireless model, calculates range between nodes and links + and unlinks nodes based on this distance. This was formerly done from + the GUI. + ''' + _name = "basic_range" + + # configuration parameters are + # ( 'name', 'type', 'default', 'possible-value-list', 'caption') + _confmatrix = [ + ("range", coreapi.CONF_DATA_TYPE_UINT32, '275', + '', 'wireless range (pixels)'), + ("bandwidth", coreapi.CONF_DATA_TYPE_UINT32, '54000', + '', 'bandwidth (bps)'), + ("jitter", coreapi.CONF_DATA_TYPE_FLOAT, '0.0', + '', 'transmission jitter (usec)'), + ("delay", coreapi.CONF_DATA_TYPE_FLOAT, '5000.0', + '', 'transmission delay (usec)'), + ("error", coreapi.CONF_DATA_TYPE_FLOAT, '0.0', + '', 'error rate (%)'), + ] + + # value groupings + _confgroups = "Basic Range Parameters:1-%d" % len(_confmatrix) + + def __init__(self, session, objid, verbose = False, values=None): + ''' Range model is only instantiated during runtime. + ''' + super(BasicRangeModel, self).__init__(session = session, objid = objid, + verbose = verbose) + self.wlan = session.obj(objid) + self._netifs = {} + self._netifslock = threading.Lock() + if values is None: + values = session.mobility.getconfig(objid, self._name, + self.getdefaultvalues())[1] + self.range = float(self.valueof("range", values)) + if self.verbose: + self.session.info("Basic range model configured for WLAN %d using" \ + " range %d" % (objid, self.range)) + self.bw = int(self.valueof("bandwidth", values)) + if self.bw == 0.0: + self.bw = None + self.delay = float(self.valueof("delay", values)) + if self.delay == 0.0: + self.delay = None + self.loss = float(self.valueof("error", values)) + if self.loss == 0.0: + self.loss = None + self.jitter = float(self.valueof("jitter", values)) + if self.jitter == 0.0: + self.jitter = None + + @classmethod + def configure_mob(cls, session, msg): + ''' Handle configuration messages for setting up a model. + Pass the MobilityManager object as the manager object. + ''' + return cls.configure(session.mobility, msg) + + def setlinkparams(self): + ''' Apply link parameters to all interfaces. This is invoked from + WlanNode.setmodel() after the position callback has been set. + ''' + with self._netifslock: + for netif in self._netifs: + self.wlan.linkconfig(netif, bw=self.bw, delay=self.delay, + loss=self.loss, duplicate=None, + jitter=self.jitter) + + def get_position(self, netif): + with self._netifslock: + return self._netifs[netif] + + def set_position(self, netif, x = None, y = None, z = None): + ''' A node has moved; given an interface, a new (x,y,z) position has + been set; calculate the new distance between other nodes and link or + unlink node pairs based on the configured range. + ''' + #print "set_position(%s, x=%s, y=%s, z=%s)" % (netif.localname, x, y, z) + self._netifslock.acquire() + self._netifs[netif] = (x, y, z) + if x is None or y is None: + self._netifslock.release() + return + for netif2 in self._netifs: + self.calclink(netif, netif2) + self._netifslock.release() + + _positioncallback = set_position + + def update(self, moved, moved_netifs): + ''' Node positions have changed without recalc. Update positions from + node.position, then re-calculate links for those that have moved. + Assumes bidirectional links, with one calculation per node pair, where + one of the nodes has moved. + ''' + with self._netifslock: + while len(moved_netifs): + netif = moved_netifs.pop() + (nx, ny, nz) = netif.node.getposition() + if netif in self._netifs: + self._netifs[netif] = (nx, ny, nz) + for netif2 in self._netifs: + if netif2 in moved_netifs: + continue + self.calclink(netif, netif2) + + def calclink(self, netif, netif2): + ''' Helper used by set_position() and update() to + calculate distance between two interfaces and perform + linking/unlinking. Sends link/unlink messages and updates the + WlanNode's linked dict. + ''' + if netif == netif2: + return + (x, y, z) = self._netifs[netif] + (x2, y2, z2) = self._netifs[netif2] + if x2 is None or y2 is None: + return + + d = self.calcdistance( (x,y,z), (x2,y2,z2) ) + # ordering is important, to keep the wlan._linked dict organized + a = min(netif, netif2) + b = max(netif, netif2) + try: + self.wlan._linked_lock.acquire() + linked = self.wlan.linked(a, b) + except KeyError: + return + finally: + self.wlan._linked_lock.release() + if d > self.range: + if linked: + self.wlan.unlink(a, b) + self.sendlinkmsg(a, b, unlink=True) + else: + if not linked: + self.wlan.link(a, b) + self.sendlinkmsg(a, b) + + + def calcdistance(self, p1, p2): + ''' Calculate the distance between two three-dimensional points. + ''' + a = p1[0] - p2[0] + b = p1[1] - p2[1] + c = 0 + if p1[2] is not None and p2[2] is not None: + c = p1[2] - p2[2] + return math.hypot(math.hypot(a, b), c) + + def linkmsg(self, netif, netif2, flags): + ''' Create a wireless link/unlink API message. + ''' + n1 = netif.localname.split('.')[0] + n2 = netif2.localname.split('.')[0] + tlvdata = coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_N1NUMBER, + netif.node.objid) + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_N2NUMBER, + netif2.node.objid) + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_NETID, + self.wlan.objid) + #tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_IF1NUM, + # netif.index) + #tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_IF2NUM, + # netif2.index) + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_TYPE, + coreapi.CORE_LINK_WIRELESS) + return coreapi.CoreLinkMessage.pack(flags, tlvdata) + + def sendlinkmsg(self, netif, netif2, unlink=False): + ''' Send a wireless link/unlink API message to the GUI. + ''' + if unlink: + flags = coreapi.CORE_API_DEL_FLAG + else: + flags = coreapi.CORE_API_ADD_FLAG + msg = self.linkmsg(netif, netif2, flags) + self.session.broadcastraw(src=None, data=msg) + self.session.sdt.updatelink(netif.node.objid, netif2.node.objid, flags, + wireless=True) + + def tolinkmsgs(self, flags): + ''' Return a list of wireless link messages for when the GUI reconnects. + ''' + r = [] + with self.wlan._linked_lock: + for a in self.wlan._linked: + for b in self.wlan._linked[a]: + if self.wlan._linked[a][b]: + r.append(self.linkmsg(a, b, flags)) + return r + +class WayPointMobility(WirelessModel): + ''' Abstract class for mobility models that set node waypoints. + ''' + _name = "waypoint" + _type = coreapi.CORE_TLV_REG_MOBILITY + + STATE_STOPPED = 0 + STATE_RUNNING = 1 + STATE_PAUSED = 2 + + class WayPoint(object): + def __init__(self, time, nodenum, coords, speed): + self.time = time + self.nodenum = nodenum + self.coords = coords + self.speed = speed + + def __cmp__(self, other): + tmp = cmp(self.time, other.time) + if tmp == 0: + tmp = cmp(self.nodenum, other.nodenum) + return tmp + + def __init__(self, session, objid, verbose = False, values = None): + super(WayPointMobility, self).__init__(session = session, objid = objid, + verbose = verbose, values = values) + self.state = self.STATE_STOPPED + self.queue = [] + self.queue_copy = [] + self.points = {} + self.initial = {} + self.lasttime = None + self.endtime = None + self.wlan = session.obj(objid) + # these are really set in child class via confmatrix + self.loop = False + self.refresh_ms = 50 + # flag whether to stop scheduling when queue is empty + # (ns-3 sets this to False as new waypoints may be added from trace) + self.empty_queue_stop = True + + def runround(self): + ''' Advance script time and move nodes. + ''' + if self.state != self.STATE_RUNNING: + return + t = self.lasttime + self.lasttime = time.time() + now = self.lasttime - self.timezero + dt = self.lasttime - t + #print "runround(now=%.2f, dt=%.2f)" % (now, dt) + + # keep current waypoints up-to-date + self.updatepoints(now) + + if not len(self.points): + if len(self.queue): + # more future waypoints, allow time for self.lasttime update + nexttime = self.queue[0].time - now + if nexttime > (0.001 * self.refresh_ms): + nexttime -= (0.001 * self.refresh_ms) + self.session.evq.add_event(nexttime, self.runround) + return + else: + # no more waypoints or queued items, loop? + if not self.empty_queue_stop: + # keep running every refresh_ms, even with empty queue + self.session.evq.add_event(0.001 * self.refresh_ms, self.runround) + return + if not self.loopwaypoints(): + return self.stop(move_initial=False) + if not len(self.queue): + # prevent busy loop + return + return self.run() + + # only move netifs attached to self.wlan, or all nodenum in script? + moved = [] + moved_netifs = [] + for netif in self.wlan.netifs(): + node = netif.node + if self.movenode(node, dt): + moved.append(node) + moved_netifs.append(netif) + + # calculate all ranges after moving nodes; this saves calculations + #self.wlan.model.update(moved) + self.session.mobility.updatewlans(moved, moved_netifs) + + # TODO: check session state + self.session.evq.add_event(0.001 * self.refresh_ms, self.runround) + + def run(self): + self.timezero = time.time() + self.lasttime = self.timezero - (0.001 * self.refresh_ms) + self.movenodesinitial() + self.runround() + self.session.mobility.sendevent(self) + + def movenode(self, node, dt): + ''' Calculate next node location and update its coordinates. + Returns True if the node's position has changed. + ''' + if node.objid not in self.points: + return False + x1, y1, z1 = node.getposition() + x2, y2, z2 = self.points[node.objid].coords + speed = self.points[node.objid].speed + # instantaneous move (prevents dx/dy == 0.0 below) + if speed == 0: + self.setnodeposition(node, x2, y2, z2) + del self.points[node.objid] + return True + # speed can be a velocity vector (ns3 mobility) or speed value + if isinstance(speed, (float, int)): + # linear speed value + alpha = math.atan2(y2 - y1, x2 - x1) + sx = speed * math.cos(alpha) + sy = speed * math.sin(alpha) + else: + # velocity vector + sx = speed[0] + sy = speed[1] + + # calculate dt * speed = distance moved + dx = sx * dt + dy = sy * dt + # prevent overshoot + if abs(dx) > abs(x2 - x1): + dx = x2 - x1 + if abs(dy) > abs(y2 - y1): + dy = y2 - y1 + if dx == 0.0 and dy == 0.0: + if self.endtime < (self.lasttime - self.timezero): + # the last node to reach the last waypoint determines this + # script's endtime + self.endtime = self.lasttime - self.timezero + del self.points[node.objid] + return False + #print "node %s dx,dy= <%s, %d>" % (node.name, dx, dy) + if (x1 + dx) < 0.0: + dx = 0.0 - x1 + if (y1 + dy) < 0.0: + dy = 0.0 - y1 + self.setnodeposition(node, x1 + dx, y1 + dy, z1) + return True + + def movenodesinitial(self): + ''' Move nodes to their initial positions. Then calculate the ranges. + ''' + moved = [] + moved_netifs = [] + for netif in self.wlan.netifs(): + node = netif.node + if node.objid not in self.initial: + continue + (x, y, z) = self.initial[node.objid].coords + self.setnodeposition(node, x, y, z) + moved.append(node) + moved_netifs.append(netif) + #self.wlan.model.update(moved) + self.session.mobility.updatewlans(moved, moved_netifs) + + def addwaypoint(self, time, nodenum, x, y, z, speed): + ''' Waypoints are pushed to a heapq, sorted by time. + ''' + #print "addwaypoint: %s %s %s,%s,%s %s" % (time, nodenum, x, y, z, speed) + wp = self.WayPoint(time, nodenum, coords=(x,y,z), speed=speed) + heapq.heappush(self.queue, wp) + + def addinitial(self, nodenum, x, y, z): + ''' Record initial position in a dict. + ''' + wp = self.WayPoint(0, nodenum, coords=(x,y,z), speed=0) + self.initial[nodenum] = wp + + def updatepoints(self, now): + ''' Move items from self.queue to self.points when their time has come. + ''' + while len(self.queue): + if self.queue[0].time > now: + break + wp = heapq.heappop(self.queue) + self.points[wp.nodenum] = wp + + def copywaypoints(self): + ''' Store backup copy of waypoints for looping and stopping. + ''' + self.queue_copy = list(self.queue) + + def loopwaypoints(self): + ''' Restore backup copy of waypoints when looping. + ''' + self.queue = list(self.queue_copy) + return self.loop + + def setnodeposition(self, node, x, y, z): + ''' Helper to move a node, notify any GUI (connected session handlers), + without invoking the interface poshook callback that may perform + range calculation. + ''' + # this would cause PyCoreNetIf.poshook() callback (range calculation) + #node.setposition(x, y, z) + node.position.set(x, y, z) + msg = node.tonodemsg(flags=0) + self.session.broadcastraw(None, msg) + self.session.sdt.updatenode(node, flags=0, x=x, y=y, z=z) + + def setendtime(self): + ''' Set self.endtime to the time of the last waypoint in the queue of + waypoints. This is just an estimate. The endtime will later be + adjusted, after one round of the script has run, to be the time + that the last moving node has reached its final waypoint. + ''' + try: + self.endtime = self.queue[-1].time + except IndexError: + self.endtime = 0 + + def start(self): + ''' Run the script from the beginning or unpause from where it + was before. + ''' + laststate = self.state + self.state = self.STATE_RUNNING + if laststate == self.STATE_STOPPED or laststate == self.STATE_RUNNING: + self.loopwaypoints() + self.timezero = 0 + self.lasttime = 0 + self.run() + elif laststate == self.STATE_PAUSED: + now = time.time() + self.timezero += now - self.lasttime + self.lasttime = now - (0.001 * self.refresh_ms) + self.runround() + + def stop(self, move_initial=True): + ''' Stop the script and move nodes to initial positions. + ''' + self.state = self.STATE_STOPPED + self.loopwaypoints() + self.timezero = 0 + self.lasttime = 0 + if move_initial: + self.movenodesinitial() + self.session.mobility.sendevent(self) + + def pause(self): + ''' Pause the script; pause time is stored to self.lasttime. + ''' + self.state = self.STATE_PAUSED + self.lasttime = time.time() + + +class Ns2ScriptedMobility(WayPointMobility): + ''' Handles the ns-2 script format, generated by scengen/setdest or + BonnMotion. + ''' + _name = "ns2script" + + _confmatrix = [ + ("file", coreapi.CONF_DATA_TYPE_STRING, '', + '', 'mobility script file'), + ("refresh_ms", coreapi.CONF_DATA_TYPE_UINT32, '50', + '', 'refresh time (ms)'), + ("loop", coreapi.CONF_DATA_TYPE_BOOL, '1', + 'On,Off', 'loop'), + ("autostart", coreapi.CONF_DATA_TYPE_STRING, '', + '', 'auto-start seconds (0.0 for runtime)'), + ("map", coreapi.CONF_DATA_TYPE_STRING, '', + '', 'node mapping (optional, e.g. 0:1,1:2,2:3)'), + ("script_start", coreapi.CONF_DATA_TYPE_STRING, '', + '', 'script file to run upon start'), + ("script_pause", coreapi.CONF_DATA_TYPE_STRING, '', + '', 'script file to run upon pause'), + ("script_stop", coreapi.CONF_DATA_TYPE_STRING, '', + '', 'script file to run upon stop'), + ] + _confgroups = "ns-2 Mobility Script Parameters:1-%d" % len(_confmatrix) + + def __init__(self, session, objid, verbose = False, values = None): + ''' + ''' + super(Ns2ScriptedMobility, self).__init__(session = session, objid = objid, + verbose = verbose, values = values) + self._netifs = {} + self._netifslock = threading.Lock() + if values is None: + values = session.mobility.getconfig(objid, self._name, + self.getdefaultvalues())[1] + self.file = self.valueof("file", values) + self.refresh_ms = int(self.valueof("refresh_ms", values)) + self.loop = (self.valueof("loop", values).lower() == "on") + self.autostart = self.valueof("autostart", values) + self.parsemap(self.valueof("map", values)) + self.script_start = self.valueof("script_start", values) + self.script_pause = self.valueof("script_pause", values) + self.script_stop = self.valueof("script_stop", values) + if self.verbose: + self.session.info("ns-2 scripted mobility configured for WLAN %d" \ + " using file: %s" % (objid, self.file)) + self.readscriptfile() + self.copywaypoints() + self.setendtime() + + @classmethod + def configure_mob(cls, session, msg): + ''' Handle configuration messages for setting up a model. + Pass the MobilityManager object as the manager object. + ''' + return cls.configure(session.mobility, msg) + + def readscriptfile(self): + ''' Read in mobility script from a file. This adds waypoints to a + priority queue, sorted by waypoint time. Initial waypoints are + stored in a separate dict. + ''' + filename = self.findfile(self.file) + try: + f = open(filename, 'r') + except IOError, e: + self.session.warn("ns-2 scripted mobility failed to load file " \ + " '%s' (%s)" % (self.file, e)) + return + if self.verbose: + self.session.info("reading ns-2 script file: %s" % filename) + ln = 0 + ix = iy = iz = None + inodenum = None + for line in f: + ln += 1 + if line[:2] != '$n': + continue + try: + if line[:8] == "$ns_ at ": + if ix is not None and iy is not None: + self.addinitial(self.map(inodenum), ix, iy, iz) + ix = iy = iz = None + # waypoints: + # $ns_ at 1.00 "$node_(6) setdest 500.0 178.0 25.0" + parts = line.split() + time = float(parts[2]) + nodenum = parts[3][1+parts[3].index('('):parts[3].index(')')] + x = float(parts[5]) + y = float(parts[6]) + z = None + speed = float(parts[7].strip('"')) + self.addwaypoint(time, self.map(nodenum), x, y, z, speed) + elif line[:7] == "$node_(": + # initial position (time=0, speed=0): + # $node_(6) set X_ 780.0 + parts = line.split() + time = 0.0 + nodenum = parts[0][1+parts[0].index('('):parts[0].index(')')] + if parts[2] == 'X_': + if ix is not None and iy is not None: + self.addinitial(self.map(inodenum), ix, iy, iz) + ix = iy = iz = None + ix = float(parts[3]) + elif parts[2] == 'Y_': + iy = float(parts[3]) + elif parts[2] == 'Z_': + iz = float(parts[3]) + self.addinitial(self.map(nodenum), ix, iy, iz) + ix = iy = iz = None + inodenum = nodenum + else: + raise ValueError + except ValueError, e: + self.session.warn("skipping line %d of file %s '%s' (%s)" % \ + (ln, self.file, line, e)) + continue + if ix is not None and iy is not None: + self.addinitial(self.map(inodenum), ix, iy, iz) + + def findfile(self, fn): + ''' Locate a script file. If the specified file doesn't exist, look in the + same directory as the scenario file (session.filename), or in the default + configs directory (~/.core/configs). This allows for sample files without + absolute pathnames. + ''' + if os.path.exists(fn): + return fn + if self.session.filename is not None: + d = os.path.dirname(self.session.filename) + sessfn = os.path.join(d, fn) + if (os.path.exists(sessfn)): + return sessfn + if self.session.user is not None: + userfn = os.path.join('/home', self.session.user, '.core', 'configs', fn) + if (os.path.exists(userfn)): + return userfn + return fn + + def parsemap(self, mapstr): + ''' Parse a node mapping string, given as a configuration parameter. + ''' + self.nodemap = {} + if mapstr.strip() == '': + return + for pair in mapstr.split(','): + parts = pair.split(':') + try: + if len(parts) != 2: + raise ValueError + self.nodemap[int(parts[0])] = int(parts[1]) + except ValueError: + self.session.warn("ns-2 mobility node map error") + return + + def map(self, nodenum): + ''' Map one node number (from a script file) to another. + ''' + nodenum = int(nodenum) + try: + return self.nodemap[nodenum] + except KeyError: + return nodenum + + def startup(self): + ''' Start running the script if autostart is enabled. + Move node to initial positions when any autostart time is specified. + Ignore the script if autostart is an empty string (can still be + started via GUI controls). + ''' + if self.autostart == '': + if self.verbose: + self.session.info("not auto-starting ns-2 script for %s" % \ + self.wlan.name) + return + try: + t = float(self.autostart) + except ValueError: + self.session.warn("Invalid auto-start seconds specified '%s' for " \ + "%s" % (self.autostart, self.wlan.name)) + return + self.movenodesinitial() + if self.verbose: + self.session.info("scheduling ns-2 script for %s autostart at %s" \ + % (self.wlan.name, t)) + self.state = self.STATE_RUNNING + self.session.evq.add_event(t, self.run) + + def start(self): + ''' Handle the case when un-paused. + ''' + laststate = self.state + super(Ns2ScriptedMobility, self).start() + if laststate == self.STATE_PAUSED: + self.statescript("unpause") + + def run(self): + ''' Start is pressed or autostart is triggered. + ''' + super(Ns2ScriptedMobility, self).run() + self.statescript("run") + + def pause(self): + super(Ns2ScriptedMobility, self).pause() + self.statescript("pause") + + def stop(self, move_initial=True): + super(Ns2ScriptedMobility, self).stop(move_initial=move_initial) + self.statescript("stop") + + def statescript(self, typestr): + filename = None + if typestr == "run" or typestr == "unpause": + filename = self.script_start + elif typestr == "pause": + filename = self.script_pause + elif typestr == "stop": + filename = self.script_stop + if filename is None or filename == '': + return + filename = self.findfile(filename) + try: + check_call(["/bin/sh", filename, typestr], + cwd=self.session.sessiondir, + env=self.session.getenviron()) + except Exception, e: + self.session.warn("Error running script '%s' for WLAN state %s: " \ + "%s" % (filename, typestr, e)) + + diff --git a/daemon/core/netns/__init__.py b/daemon/core/netns/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/daemon/core/netns/nodes.py b/daemon/core/netns/nodes.py new file mode 100644 index 00000000..2780a506 --- /dev/null +++ b/daemon/core/netns/nodes.py @@ -0,0 +1,401 @@ +# +# CORE +# Copyright (c)2010-2013 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# authors: Tom Goff +# Jeff Ahrenholz +# +''' +nodes.py: definition of an LxcNode and CoreNode classes, and other node classes +that inherit from the CoreNode, implementing specific node types. +''' + +from vnode import * +from vnet import * +from core.misc.ipaddr import * +from core.api import coreapi +from core.coreobj import PyCoreNode + +class CtrlNet(LxBrNet): + policy = "ACCEPT" + CTRLIF_IDX_BASE = 99 # base control interface index + + def __init__(self, session, objid = "ctrlnet", name = None, + verbose = False, netid = 1, prefix = None, + hostid = None, start = True, assign_address = True, + updown_script = None): + if not prefix: + prefix = "172.16.%d.0/24" % netid + self.prefix = IPv4Prefix(prefix) + self.hostid = hostid + self.assign_address = assign_address + self.updown_script = updown_script + LxBrNet.__init__(self, session, objid = objid, name = name, + verbose = verbose, start = start) + + def startup(self): + LxBrNet.startup(self) + if self.hostid: + addr = self.prefix.addr(self.hostid) + else: + addr = self.prefix.maxaddr() + addrlist = ["%s/%s" % (addr, self.prefix.prefixlen)] + if self.assign_address: + self.addrconfig(addrlist = addrlist) + if self.updown_script is not None: + self.info("interface %s updown script '%s startup' called" % \ + (self.brname, self.updown_script)) + check_call([self.updown_script, self.brname, "startup"]) + + def shutdown(self): + if self.updown_script is not None: + self.info("interface %s updown script '%s shutdown' called" % \ + (self.brname, self.updown_script)) + check_call([self.updown_script, self.brname, "shutdown"]) + LxBrNet.shutdown(self) + + def tolinkmsgs(self, flags): + ''' Do not include CtrlNet in link messages describing this session. + ''' + return [] + +class CoreNode(LxcNode): + apitype = coreapi.CORE_NODE_DEF + +class PtpNet(LxBrNet): + policy = "ACCEPT" + + def attach(self, netif): + if len(self._netif) > 1: + raise ValueError, \ + "Point-to-point links support at most 2 network interfaces" + LxBrNet.attach(self, netif) + + def tonodemsg(self, flags): + ''' Do not generate a Node Message for point-to-point links. They are + built using a link message instead. + ''' + pass + + def tolinkmsgs(self, flags): + ''' Build CORE API TLVs for a point-to-point link. One Link message + describes this network. + ''' + tlvdata = "" + if len(self._netif) != 2: + return tlvdata + (if1, if2) = self._netif.items() + if1 = if1[1] + if2 = if2[1] + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_N1NUMBER, + if1.node.objid) + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_N2NUMBER, + if2.node.objid) + delay = if1.getparam('delay') + bw = if1.getparam('bw') + loss = if1.getparam('loss') + duplicate = if1.getparam('duplicate') + jitter = if1.getparam('jitter') + if delay is not None: + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_DELAY, + delay) + if bw is not None: + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_BW, bw) + if loss is not None: + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_PER, + str(loss)) + if duplicate is not None: + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_DUP, + str(duplicate)) + if jitter is not None: + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_JITTER, + jitter) + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_TYPE, + self.linktype) + + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_IF1NUM, \ + if1.node.getifindex(if1)) + for addr in if1.addrlist: + (ip, sep, mask) = addr.partition('/') + mask = int(mask) + if isIPv4Address(ip): + family = AF_INET + tlvtypeip = coreapi.CORE_TLV_LINK_IF1IP4 + tlvtypemask = coreapi.CORE_TLV_LINK_IF1IP4MASK + else: + family = AF_INET6 + tlvtypeip = coreapi.CORE_TLV_LINK_IF1IP6 + tlvtypemask = coreapi.CORE_TLV_LINK_IF1IP6MASK + ipl = socket.inet_pton(family, ip) + tlvdata += coreapi.CoreLinkTlv.pack(tlvtypeip, + IPAddr(af=family, addr=ipl)) + tlvdata += coreapi.CoreLinkTlv.pack(tlvtypemask, mask) + + tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_IF2NUM, \ + if2.node.getifindex(if2)) + for addr in if2.addrlist: + (ip, sep, mask) = addr.partition('/') + mask = int(mask) + if isIPv4Address(ip): + family = AF_INET + tlvtypeip = coreapi.CORE_TLV_LINK_IF2IP4 + tlvtypemask = coreapi.CORE_TLV_LINK_IF2IP4MASK + else: + family = AF_INET6 + tlvtypeip = coreapi.CORE_TLV_LINK_IF2IP6 + tlvtypemask = coreapi.CORE_TLV_LINK_IF2IP6MASK + ipl = socket.inet_pton(family, ip) + tlvdata += coreapi.CoreLinkTlv.pack(tlvtypeip, + IPAddr(af=family, addr=ipl)) + tlvdata += coreapi.CoreLinkTlv.pack(tlvtypemask, mask) + msg = coreapi.CoreLinkMessage.pack(flags, tlvdata) + return [msg,] + +class SwitchNode(LxBrNet): + apitype = coreapi.CORE_NODE_SWITCH + policy = "ACCEPT" + type = "lanswitch" + +class HubNode(LxBrNet): + apitype = coreapi.CORE_NODE_HUB + policy = "ACCEPT" + type = "hub" + + def __init__(self, session, objid = None, name = None, verbose = False, + start = True): + ''' the Hub node forwards packets to all bridge ports by turning off + the MAC address learning + ''' + LxBrNet.__init__(self, session, objid, name, verbose, start) + if start: + check_call([BRCTL_BIN, "setageing", self.brname, "0"]) + + +class WlanNode(LxBrNet): + apitype = coreapi.CORE_NODE_WLAN + linktype = coreapi.CORE_LINK_WIRELESS + policy = "DROP" + type = "wlan" + + def __init__(self, session, objid = None, name = None, verbose = False, + start = True, policy = None): + LxBrNet.__init__(self, session, objid, name, verbose, start, policy) + # wireless model such as basic range + self.model = None + # mobility model such as scripted + self.mobility = None + + def attach(self, netif): + LxBrNet.attach(self, netif) + if self.model: + netif.poshook = self.model._positioncallback + if netif.node is None: + return + (x,y,z) = netif.node.position.get() + # invokes any netif.poshook + netif.setposition(x, y, z) + #self.model.setlinkparams() + + def setmodel(self, model, config): + ''' Mobility and wireless model. + ''' + if (self.verbose): + self.info("adding model %s" % model._name) + if model._type == coreapi.CORE_TLV_REG_WIRELESS: + self.model = model(session=self.session, objid=self.objid, + verbose=self.verbose, values=config) + if self.model._positioncallback: + for netif in self.netifs(): + netif.poshook = self.model._positioncallback + if netif.node is not None: + (x,y,z) = netif.node.position.get() + netif.poshook(netif, x, y, z) + self.model.setlinkparams() + elif model._type == coreapi.CORE_TLV_REG_MOBILITY: + self.mobility = model(session=self.session, objid=self.objid, + verbose=self.verbose, values=config) + + def tolinkmsgs(self, flags): + msgs = LxBrNet.tolinkmsgs(self, flags) + if self.model: + msgs += self.model.tolinkmsgs(flags) + return msgs + + +class RJ45Node(PyCoreNode, PyCoreNetIf): + ''' RJ45Node is a physical interface on the host linked to the emulated + network. + ''' + apitype = coreapi.CORE_NODE_RJ45 + + def __init__(self, session, objid = None, name = None, mtu = 1500, + verbose = False, start = True): + PyCoreNode.__init__(self, session, objid, name, verbose=verbose, + start=start) + # this initializes net, params, poshook + PyCoreNetIf.__init__(self, node=self, name=name, mtu = mtu) + self.up = False + self.lock = threading.RLock() + self.ifindex = None + # the following are PyCoreNetIf attributes + self.transport_type = "raw" + self.localname = name + self.type = "rj45" + if start: + self.startup() + + def startup(self): + ''' Set the interface in the up state. + ''' + # interface will also be marked up during net.attach() + self.savestate() + try: + check_call([IP_BIN, "link", "set", self.localname, "up"]) + except: + self.warn("Failed to run command: %s link set %s up" % \ + (IP_BIN, self.localname)) + return + self.up = True + + def shutdown(self): + ''' Bring the interface down. Remove any addresses and queuing + disciplines. + ''' + if not self.up: + return + check_call([IP_BIN, "link", "set", self.localname, "down"]) + check_call([IP_BIN, "addr", "flush", "dev", self.localname]) + mutecall([TC_BIN, "qdisc", "del", "dev", self.localname, "root"]) + self.up = False + self.restorestate() + + def attachnet(self, net): + PyCoreNetIf.attachnet(self, net) + + def detachnet(self): + PyCoreNetIf.detachnet(self) + + def newnetif(self, net = None, addrlist = [], hwaddr = None, + ifindex = None, ifname = None): + ''' This is called when linking with another node. Since this node + represents an interface, we do not create another object here, + but attach ourselves to the given network. + ''' + self.lock.acquire() + try: + if ifindex is None: + ifindex = 0 + if self.net is not None: + raise ValueError, \ + "RJ45 nodes support at most 1 network interface" + self._netif[ifindex] = self + self.node = self # PyCoreNetIf.node is self + self.ifindex = ifindex + if net is not None: + self.attachnet(net) + for addr in maketuple(addrlist): + self.addaddr(addr) + return ifindex + finally: + self.lock.release() + + def delnetif(self, ifindex): + if ifindex is None: + ifindex = 0 + if ifindex not in self._netif: + raise ValueError, "ifindex %s does not exist" % ifindex + self._netif.pop(ifindex) + if ifindex == self.ifindex: + self.shutdown() + else: + raise ValueError, "ifindex %s does not exist" % ifindex + + def netif(self, ifindex, net=None): + ''' This object is considered the network interface, so we only + return self here. This keeps the RJ45Node compatible with + real nodes. + ''' + if net is not None and net == self.net: + return self + if ifindex is None: + ifindex = 0 + if ifindex == self.ifindex: + return self + return None + + def getifindex(self, netif): + if netif != self: + return None + return self.ifindex + + def addaddr(self, addr): + if self.up: + check_call([IP_BIN, "addr", "add", str(addr), "dev", self.name]) + PyCoreNetIf.addaddr(self, addr) + + def deladdr(self, addr): + if self.up: + check_call([IP_BIN, "addr", "del", str(addr), "dev", self.name]) + PyCoreNetIf.deladdr(self, addr) + + def savestate(self): + ''' Save the addresses and other interface state before using the + interface for emulation purposes. TODO: save/restore the PROMISC flag + ''' + self.old_up = False + self.old_addrs = [] + cmd = [IP_BIN, "addr", "show", "dev", self.localname] + try: + tmp = subprocess.Popen(cmd, stdout = subprocess.PIPE) + except OSError: + self.warn("Failed to run %s command: %s" % (IP_BIN, cmd)) + if tmp.wait(): + self.warn("Command failed: %s" % cmd) + return + lines = tmp.stdout.read() + tmp.stdout.close() + for l in lines.split('\n'): + items = l.split() + if len(items) < 2: + continue + if items[1] == "%s:" % self.localname: + flags = items[2][1:-1].split(',') + if "UP" in flags: + self.old_up = True + elif items[0] == "inet": + self.old_addrs.append((items[1], items[3])) + elif items[0] == "inet6": + if items[1][:4] == "fe80": + continue + self.old_addrs.append((items[1], None)) + + def restorestate(self): + ''' Restore the addresses and other interface state after using it. + ''' + for addr in self.old_addrs: + if addr[1] is None: + check_call([IP_BIN, "addr", "add", addr[0], "dev", + self.localname]) + else: + check_call([IP_BIN, "addr", "add", addr[0], "brd", addr[1], + "dev", self.localname]) + if self.old_up: + check_call([IP_BIN, "link", "set", self.localname, "up"]) + + def setposition(self, x=None, y=None, z=None): + ''' Use setposition() from both parent classes. + ''' + PyCoreObj.setposition(self, x, y, z) + # invoke any poshook + PyCoreNetIf.setposition(self, x, y, z) + + + + + +class TunnelNode(GreTapBridge): + apitype = coreapi.CORE_NODE_TUNNEL + policy = "ACCEPT" + type = "tunnel" + diff --git a/daemon/core/netns/vif.py b/daemon/core/netns/vif.py new file mode 100644 index 00000000..87e6a4da --- /dev/null +++ b/daemon/core/netns/vif.py @@ -0,0 +1,168 @@ +# +# CORE +# Copyright (c)2011-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# authors: Tom Goff +# Jeff Ahrenholz +# +''' +vif.py: PyCoreNetIf classes that implement the interfaces available +under Linux. +''' + +import os, signal, shutil, sys, subprocess, vnodeclient, threading, string +import random, time +from core.api import coreapi +from core.misc.utils import * +from core.constants import * +from core.coreobj import PyCoreObj, PyCoreNode, PyCoreNetIf, Position +from core.emane.nodes import EmaneNode + +checkexec([IP_BIN]) + +class VEth(PyCoreNetIf): + def __init__(self, node, name, localname, mtu = 1500, net = None, + start = True): + # note that net arg is ignored + PyCoreNetIf.__init__(self, node = node, name = name, mtu = mtu) + self.localname = localname + self.up = False + if start: + self.startup() + + def startup(self): + check_call([IP_BIN, "link", "add", "name", self.localname, + "type", "veth", "peer", "name", self.name]) + check_call([IP_BIN, "link", "set", self.localname, "up"]) + self.up = True + + def shutdown(self): + if not self.up: + return + if self.node: + self.node.cmd([IP_BIN, "-6", "addr", "flush", "dev", self.name]) + if self.localname: + mutedetach([IP_BIN, "link", "delete", self.localname]) + self.up = False + + +class TunTap(PyCoreNetIf): + ''' TUN/TAP virtual device in TAP mode + ''' + def __init__(self, node, name, localname, mtu = 1500, net = None, + start = True): + PyCoreNetIf.__init__(self, node = node, name = name, mtu = mtu) + self.localname = localname + self.up = False + self.transport_type = "virtual" + if start: + self.startup() + + def startup(self): + # TODO: more sophisticated TAP creation here + # Debian does not support -p (tap) option, RedHat does. + # For now, this is disabled to allow the TAP to be created by another + # system (e.g. EMANE's emanetransportd) + #check_call(["tunctl", "-t", self.name]) + # self.install() + self.up = True + + def shutdown(self): + if not self.up: + return + self.node.cmd([IP_BIN, "-6", "addr", "flush", "dev", self.name]) + #if self.name: + # mutedetach(["tunctl", "-d", self.localname]) + self.up = False + + def install(self): + ''' Install this TAP into its namespace. This is not done from the + startup() method but called at a later time when a userspace + program (running on the host) has had a chance to open the socket + end of the TAP. + ''' + netns = str(self.node.pid) + # check for presence of device - tap device may not appear right away + # waits ~= stime * ( 2 ** attempts) seconds + attempts = 9 + stime = 0.01 + while attempts > 0: + try: + mutecheck_call([IP_BIN, "link", "show", self.localname]) + break + except Exception, e: + msg = "ip link show %s error (%d): %s" % \ + (self.localname, attempts, e) + if attempts > 1: + msg += ", retrying..." + self.node.info(msg) + time.sleep(stime) + stime *= 2 + attempts -= 1 + # install tap device into namespace + try: + check_call([IP_BIN, "link", "set", self.localname, "netns", netns]) + except Exception, e: + msg = "error installing TAP interface %s, command:" % self.localname + msg += "ip link set %s netns %s" % (self.localname, netns) + self.node.exception(coreapi.CORE_EXCP_LEVEL_ERROR, self.localname, msg) + self.node.warn(msg) + return + self.node.cmd([IP_BIN, "link", "set", self.localname, + "name", self.name]) + for addr in self.addrlist: + self.node.cmd([IP_BIN, "addr", "add", str(addr), + "dev", self.name]) + self.node.cmd([IP_BIN, "link", "set", self.name, "up"]) + +class GreTap(PyCoreNetIf): + ''' GRE TAP device for tunneling between emulation servers. + Uses the "gretap" tunnel device type from Linux which is a GRE device + having a MAC address. The MAC address is required for bridging. + ''' + def __init__(self, node = None, name = None, session = None, mtu = 1458, + remoteip = None, objid = None, localip = None, ttl = 255, + key = None, start = True): + PyCoreNetIf.__init__(self, node = node, name = name, mtu = mtu) + self.session = session + if objid is None: + # from PyCoreObj + objid = (((id(self) >> 16) ^ (id(self) & 0xffff)) & 0xffff) + self.objid = objid + sessionid = self.session.shortsessionid() + # interface name on the local host machine + self.localname = "gt.%s.%s" % (self.objid, sessionid) + self.transport_type = "raw" + if not start: + self.up = False + return + + if remoteip is None: + raise ValueError, "missing remote IP required for GRE TAP device" + cmd = ("ip", "link", "add", self.localname, "type", "gretap", + "remote", str(remoteip)) + if localip: + cmd += ("local", str(localip)) + if ttl: + cmd += ("ttl", str(ttl)) + if key: + cmd += ("key", str(key)) + check_call(cmd) + cmd = ("ip", "link", "set", self.localname, "up") + check_call(cmd) + self.up = True + + def shutdown(self): + if self.localname: + cmd = ("ip", "link", "set", self.localname, "down") + check_call(cmd) + cmd = ("ip", "link", "del", self.localname) + check_call(cmd) + self.localname = None + + def tonodemsg(self, flags): + return None + + def tolinkmsgs(self, flags): + return [] diff --git a/daemon/core/netns/vnet.py b/daemon/core/netns/vnet.py new file mode 100644 index 00000000..ca6560b1 --- /dev/null +++ b/daemon/core/netns/vnet.py @@ -0,0 +1,496 @@ +# +# CORE +# Copyright (c)2010-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# authors: Tom Goff +# Jeff Ahrenholz +# +''' +vnet.py: PyCoreNet and LxBrNet classes that implement virtual networks using +Linux Ethernet bridging and ebtables rules. +''' + +import os, sys, threading, time, subprocess + +from core.api import coreapi +from core.misc.utils import * +from core.constants import * +from core.coreobj import PyCoreNet, PyCoreObj +from core.netns.vif import VEth, GreTap + +checkexec([BRCTL_BIN, IP_BIN, EBTABLES_BIN, TC_BIN]) + +ebtables_lock = threading.Lock() + +class EbtablesQueue(object): + ''' Helper class for queuing up ebtables commands into rate-limited + atomic commits. This improves performance and reliability when there are + many WLAN link updates. + ''' + # update rate is every 300ms + rate = 0.3 + # ebtables + atomic_file = "/tmp/pycore.ebtables.atomic" + + def __init__(self): + ''' Initialize the helper class, but don't start the update thread + until a WLAN is instantiated. + ''' + self.doupdateloop = False + self.updatethread = None + # this lock protects cmds and updates lists + self.updatelock = threading.Lock() + # list of pending ebtables commands + self.cmds = [] + # list of WLANs requiring update + self.updates = [] + # timestamps of last WLAN update; this keeps track of WLANs that are + # using this queue + self.last_update_time = {} + + def startupdateloop(self, wlan): + ''' Kick off the update loop; only needs to be invoked once. + ''' + self.updatelock.acquire() + self.last_update_time[wlan] = time.time() + self.updatelock.release() + if self.doupdateloop: + return + self.doupdateloop = True + self.updatethread = threading.Thread(target = self.updateloop) + self.updatethread.daemon = True + self.updatethread.start() + + def stopupdateloop(self, wlan): + ''' Kill the update loop thread if there are no more WLANs using it. + ''' + self.updatelock.acquire() + try: + del self.last_update_time[wlan] + except KeyError: + pass + self.updatelock.release() + if len(self.last_update_time) > 0: + return + self.doupdateloop = False + if self.updatethread: + self.updatethread.join() + self.updatethread = None + + def ebatomiccmd(self, cmd): + ''' Helper for building ebtables atomic file command list. + ''' + r = [EBTABLES_BIN, "--atomic-file", self.atomic_file] + if cmd: + r.extend(cmd) + return r + + def lastupdate(self, wlan): + ''' Return the time elapsed since this WLAN was last updated. + ''' + try: + elapsed = time.time() - self.last_update_time[wlan] + except KeyError: + self.last_update_time[wlan] = time.time() + elapsed = 0.0 + return elapsed + + def updated(self, wlan): + ''' Keep track of when this WLAN was last updated. + ''' + self.last_update_time[wlan] = time.time() + self.updates.remove(wlan) + + def updateloop(self): + ''' Thread target that looks for WLANs needing update, and + rate limits the amount of ebtables activity. Only one userspace program + should use ebtables at any given time, or results can be unpredictable. + ''' + while self.doupdateloop: + self.updatelock.acquire() + for wlan in self.updates: + if self.lastupdate(wlan) > self.rate: + self.buildcmds(wlan) + #print "ebtables commit %d rules" % len(self.cmds) + self.ebcommit(wlan) + self.updated(wlan) + self.updatelock.release() + time.sleep(self.rate) + + def ebcommit(self, wlan): + ''' Perform ebtables atomic commit using commands built in the + self.cmds list. + ''' + # save kernel ebtables snapshot to a file + cmd = self.ebatomiccmd(["--atomic-save",]) + try: + check_call(cmd) + except Exception, e: + self.eberror(wlan, "atomic-save (%s)" % cmd, e) + # no atomic file, exit + return + # modify the table file using queued ebtables commands + for c in self.cmds: + cmd = self.ebatomiccmd(c) + try: + check_call(cmd) + except Exception, e: + self.eberror(wlan, "cmd=%s" % cmd, e) + pass + self.cmds = [] + # commit the table file to the kernel + cmd = self.ebatomiccmd(["--atomic-commit",]) + try: + check_call(cmd) + os.unlink(self.atomic_file) + except Exception, e: + self.eberror(wlan, "atomic-commit (%s)" % cmd, e) + + def ebchange(self, wlan): + ''' Flag a change to the given WLAN's _linked dict, so the ebtables + chain will be rebuilt at the next interval. + ''' + self.updatelock.acquire() + if wlan not in self.updates: + self.updates.append(wlan) + self.updatelock.release() + + def buildcmds(self, wlan): + ''' Inspect a _linked dict from a wlan, and rebuild the ebtables chain + for that WLAN. + ''' + wlan._linked_lock.acquire() + # flush the chain + self.cmds.extend([["-F", wlan.brname],]) + # rebuild the chain + for (netif1, v) in wlan._linked.items(): + for (netif2, linked) in v.items(): + if wlan.policy == "DROP" and linked: + self.cmds.extend([["-A", wlan.brname, "-i", netif1.localname, + "-o", netif2.localname, "-j", "ACCEPT"], + ["-A", wlan.brname, "-o", netif1.localname, + "-i", netif2.localname, "-j", "ACCEPT"]]) + elif wlan.policy == "ACCEPT" and not linked: + self.cmds.extend([["-A", wlan.brname, "-i", netif1.localname, + "-o", netif2.localname, "-j", "DROP"], + ["-A", wlan.brname, "-o", netif1.localname, + "-i", netif2.localname, "-j", "DROP"]]) + wlan._linked_lock.release() + + def eberror(self, wlan, source, error): + ''' Log an ebtables command error and send an exception. + ''' + if not wlan: + return + wlan.exception(coreapi.CORE_EXCP_LEVEL_ERROR, wlan.brname, + "ebtables command error: %s\n%s\n" % (source, error)) + + +# a global object because all WLANs share the same queue +# cannot have multiple threads invoking the ebtables commnd +ebq = EbtablesQueue() + +def ebtablescmds(call, cmds): + ebtables_lock.acquire() + try: + for cmd in cmds: + call(cmd) + finally: + ebtables_lock.release() + +class LxBrNet(PyCoreNet): + + policy = "DROP" + + def __init__(self, session, objid = None, name = None, verbose = False, + start = True, policy = None): + PyCoreNet.__init__(self, session, objid, name, verbose, start) + if name is None: + name = str(self.objid) + if policy is not None: + self.policy = policy + self.name = name + self.brname = "b.%s.%s" % (str(self.objid), self.session.sessionid) + self.up = False + if start: + self.startup() + ebq.startupdateloop(self) + + def startup(self): + try: + check_call([BRCTL_BIN, "addbr", self.brname]) + except Exception, e: + self.exception(coreapi.CORE_EXCP_LEVEL_FATAL, self.brname, + "Error adding bridge: %s" % e) + try: + # turn off spanning tree protocol and forwarding delay + check_call([BRCTL_BIN, "stp", self.brname, "off"]) + check_call([BRCTL_BIN, "setfd", self.brname, "0"]) + check_call([IP_BIN, "link", "set", self.brname, "up"]) + # create a new ebtables chain for this bridge + ebtablescmds(check_call, [ + [EBTABLES_BIN, "-N", self.brname, "-P", self.policy], + [EBTABLES_BIN, "-A", "FORWARD", + "--logical-in", self.brname, "-j", self.brname]]) + # turn off multicast snooping so mcast forwarding occurs w/o IGMP joins + snoop = "/sys/devices/virtual/net/%s/bridge/multicast_snooping" % \ + self.brname + if os.path.exists(snoop): + open(snoop, "w").write('0') + except Exception, e: + self.exception(coreapi.CORE_EXCP_LEVEL_WARNING, self.brname, + "Error setting bridge parameters: %s" % e) + + self.up = True + + def shutdown(self): + if not self.up: + return + ebq.stopupdateloop(self) + mutecall([IP_BIN, "link", "set", self.brname, "down"]) + mutecall([BRCTL_BIN, "delbr", self.brname]) + ebtablescmds(mutecall, [ + [EBTABLES_BIN, "-D", "FORWARD", + "--logical-in", self.brname, "-j", self.brname], + [EBTABLES_BIN, "-X", self.brname]]) + for netif in self.netifs(): + # removes veth pairs used for bridge-to-bridge connections + netif.shutdown() + self._netif.clear() + self._linked.clear() + del self.session + self.up = False + + def attach(self, netif): + if self.up: + try: + check_call([BRCTL_BIN, "addif", self.brname, netif.localname]) + check_call([IP_BIN, "link", "set", netif.localname, "up"]) + except Exception, e: + self.exception(coreapi.CORE_EXCP_LEVEL_ERROR, self.brname, + "Error joining interface %s to bridge %s: %s" % \ + (netif.localname, self.brname, e)) + return + PyCoreNet.attach(self, netif) + + def detach(self, netif): + if self.up: + try: + check_call([BRCTL_BIN, "delif", self.brname, netif.localname]) + except Exception, e: + self.exception(coreapi.CORE_EXCP_LEVEL_ERROR, self.brname, + "Error removing interface %s from bridge %s: %s" % \ + (netif.localname, self.brname, e)) + return + PyCoreNet.detach(self, netif) + + def linked(self, netif1, netif2): + # check if the network interfaces are attached to this network + if self._netif[netif1.netifi] != netif1: + raise ValueError, "inconsistency for netif %s" % netif1.name + if self._netif[netif2.netifi] != netif2: + raise ValueError, "inconsistency for netif %s" % netif2.name + try: + linked = self._linked[netif1][netif2] + except KeyError: + if self.policy == "ACCEPT": + linked = True + elif self.policy == "DROP": + linked = False + else: + raise Exception, "unknown policy: %s" % self.policy + self._linked[netif1][netif2] = linked + return linked + + def unlink(self, netif1, netif2): + ''' Unlink two PyCoreNetIfs, resulting in adding or removing ebtables + filtering rules. + ''' + self._linked_lock.acquire() + if not self.linked(netif1, netif2): + self._linked_lock.release() + return + self._linked[netif1][netif2] = False + self._linked_lock.release() + ebq.ebchange(self) + + def link(self, netif1, netif2): + ''' Link two PyCoreNetIfs together, resulting in adding or removing + ebtables filtering rules. + ''' + self._linked_lock.acquire() + if self.linked(netif1, netif2): + self._linked_lock.release() + return + self._linked[netif1][netif2] = True + self._linked_lock.release() + ebq.ebchange(self) + + def linkconfig(self, netif, bw = None, delay = None, + loss = None, duplicate = None, jitter = None, netif2 = None): + ''' Configure link parameters by applying tc queuing disciplines on the + interface. + ''' + tc = [TC_BIN, "qdisc", "replace", "dev", netif.localname] + parent = ["root"] + changed = False + if netif.setparam('bw', bw): + # from tc-tbf(8): minimum value for burst is rate / kernel_hz + if bw is not None: + burst = max(2 * netif.mtu, bw / 1000) + limit = 0xffff # max IP payload + tbf = ["tbf", "rate", str(bw), + "burst", str(burst), "limit", str(limit)] + if bw > 0: + if self.up: + check_call(tc + parent + ["handle", "1:"] + tbf) + netif.setparam('has_tbf', True) + changed = True + elif netif.getparam('has_tbf') and bw <= 0: + tcd = [] + tc + tcd[2] = "delete" + if self.up: + check_call(tcd + parent) + netif.setparam('has_tbf', False) + # removing the parent removes the child + netif.setparam('has_netem', False) + changed = True + if netif.getparam('has_tbf'): + parent = ["parent", "1:1"] + netem = ["netem"] + changed = max(changed, netif.setparam('delay', delay)) + if loss is not None: + loss = float(loss) + changed = max(changed, netif.setparam('loss', loss)) + if duplicate is not None: + duplicate = float(duplicate) + changed = max(changed, netif.setparam('duplicate', duplicate)) + changed = max(changed, netif.setparam('jitter', jitter)) + if not changed: + return + # jitter and delay use the same delay statement + if delay is not None: + netem += ["delay", "%sus" % delay] + if jitter is not None: + if delay is None: + netem += ["delay", "0us", "%sus" % jitter, "25%"] + else: + netem += ["%sus" % jitter, "25%"] + + if loss is not None: + netem += ["loss", "%s%%" % min(loss, 100)] + if duplicate is not None: + netem += ["duplicate", "%s%%" % min(duplicate, 100)] + if delay <= 0 and loss <= 0 and duplicate <= 0: + # possibly remove netem if it exists and parent queue wasn't removed + if not netif.getparam('has_netem'): + return + tc[2] = "delete" + if self.up: + check_call(tc + parent + ["handle", "10:"]) + netif.setparam('has_netem', False) + elif len(netem) > 1: + if self.up: + check_call(tc + parent + ["handle", "10:"] + netem) + netif.setparam('has_netem', True) + + def linknet(self, net): + ''' Link this bridge with another by creating a veth pair and installing + each device into each bridge. + ''' + sessionid = self.session.sessionid + localname = "n%s.%s.%s" % (self.objid, net.objid, sessionid) + name = "n%s.%s.%s" % (net.objid, self.objid, sessionid) + netif = VEth(node = None, name = name, localname = localname, + mtu = 1500, net = self, start = self.up) + self.attach(netif) + if net.up: + # this is similar to net.attach() but uses netif.name instead + # of localname + check_call([BRCTL_BIN, "addif", net.brname, netif.name]) + check_call([IP_BIN, "link", "set", netif.name, "up"]) + i = net.newifindex() + net._netif[i] = netif + with net._linked_lock: + net._linked[netif] = {} + netif.net = self + netif.othernet = net + + def addrconfig(self, addrlist): + ''' Set addresses on the bridge. + ''' + if not self.up: + return + for addr in addrlist: + try: + check_call([IP_BIN, "addr", "add", str(addr), "dev", self.brname]) + except Exception, e: + self.exception(coreapi.CORE_EXCP_LEVEL_ERROR, self.brname, + "Error adding IP address: %s" % e) + +class GreTapBridge(LxBrNet): + ''' A network consisting of a bridge with a gretap device for tunneling to + another system. + ''' + def __init__(self, session, remoteip = None, objid = None, name = None, + policy = "ACCEPT", localip = None, ttl = 255, key = None, + verbose = False, start = True): + LxBrNet.__init__(self, session = session, objid = objid, + name = name, verbose = verbose, policy = policy, + start = False) + self.grekey = key + if self.grekey is None: + self.grekey = self.session.sessionid ^ self.objid + self.localnum = None + self.remotenum = None + self.remoteip = remoteip + self.localip = localip + self.ttl = ttl + if remoteip is None: + self.gretap = None + else: + self.gretap = GreTap(node = self, name = None, session = session, + remoteip = remoteip, objid = None, localip = localip, ttl = ttl, + key = self.grekey) + if start: + self.startup() + + def startup(self): + ''' Creates a bridge and adds the gretap device to it. + ''' + LxBrNet.startup(self) + if self.gretap: + self.attach(self.gretap) + + def shutdown(self): + ''' Detach the gretap device and remove the bridge. + ''' + if self.gretap: + self.detach(self.gretap) + self.gretap.shutdown() + self.gretap = None + LxBrNet.shutdown(self) + + def addrconfig(self, addrlist): + ''' Set the remote tunnel endpoint. This is a one-time method for + creating the GreTap device, which requires the remoteip at startup. + The 1st address in the provided list is remoteip, 2nd optionally + specifies localip. + ''' + if self.gretap: + raise ValueError, "gretap already exists for %s" % self.name + remoteip = addrlist[0].split('/')[0] + localip = None + if len(addrlist) > 1: + localip = addrlist[1].split('/')[0] + self.gretap = GreTap(session = self.session, remoteip = remoteip, + objid = None, name = None, + localip = localip, ttl = self.ttl, key = self.grekey) + self.attach(self.gretap) + + def setkey(self, key): + ''' Set the GRE key used for the GreTap device. This needs to be set + prior to instantiating the GreTap device (before addrconfig). + ''' + self.grekey = key diff --git a/daemon/core/netns/vnode.py b/daemon/core/netns/vnode.py new file mode 100644 index 00000000..3c106a7b --- /dev/null +++ b/daemon/core/netns/vnode.py @@ -0,0 +1,402 @@ +# +# CORE +# Copyright (c)2010-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# authors: Tom Goff +# Jeff Ahrenholz +# +''' +vnode.py: PyCoreNode and LxcNode classes that implement the network namespace +virtual node. +''' + +import os, signal, sys, subprocess, vnodeclient, threading, string, shutil +import random, time +from core.api import coreapi +from core.misc.utils import * +from core.constants import * +from core.coreobj import PyCoreObj, PyCoreNode, PyCoreNetIf, Position +from core.netns.vif import VEth, TunTap +from core.emane.nodes import EmaneNode + +checkexec([IP_BIN]) + +class SimpleLxcNode(PyCoreNode): + def __init__(self, session, objid = None, name = None, nodedir = None, + verbose = False, start = True): + PyCoreNode.__init__(self, session, objid, name, verbose=verbose, + start=start) + self.nodedir = nodedir + self.ctrlchnlname = \ + os.path.abspath(os.path.join(self.session.sessiondir, self.name)) + self.vnodeclient = None + self.pid = None + self.up = False + self.lock = threading.RLock() + self._mounts = [] + + def alive(self): + try: + os.kill(self.pid, 0) + except OSError: + return False + return True + + def startup(self): + ''' Start a new namespace node by invoking the vnoded process that + allocates a new namespace. Bring up the loopback device and set + the hostname. + ''' + if self.up: + raise Exception, "already up" + vnoded = ["%s/vnoded" % CORE_SBIN_DIR, "-v", "-c", self.ctrlchnlname, + "-l", self.ctrlchnlname + ".log", + "-p", self.ctrlchnlname + ".pid"] + if self.nodedir: + vnoded += ["-C", self.nodedir] + try: + tmp = subprocess.Popen(vnoded, stdout = subprocess.PIPE, + env = self.session.getenviron(state=False)) + except OSError, e: + msg = "error running vnoded command: %s (%s)" % (vnoded, e) + self.exception(coreapi.CORE_EXCP_LEVEL_FATAL, + "SimpleLxcNode.startup()", msg) + raise Exception, msg + try: + self.pid = int(tmp.stdout.read()) + tmp.stdout.close() + except Exception: + msg = "vnoded failed to create a namespace; " + msg += "check kernel support and user priveleges" + self.exception(coreapi.CORE_EXCP_LEVEL_FATAL, + "SimpleLxcNode.startup()", msg) + if tmp.wait(): + raise Exception, ("command failed: %s" % vnoded) + self.vnodeclient = vnodeclient.VnodeClient(self.name, + self.ctrlchnlname) + self.info("bringing up loopback interface") + self.cmd([IP_BIN, "link", "set", "lo", "up"]) + self.info("setting hostname: %s" % self.name) + self.cmd(["hostname", self.name]) + self.up = True + + def shutdown(self): + if not self.up: + return + while self._mounts: + source, target = self._mounts.pop(-1) + self.umount(target) + #print "XXX del vnodeclient:", self.vnodeclient + # XXX XXX XXX this causes a serious crash + #del self.vnodeclient + for netif in self.netifs(): + netif.shutdown() + try: + os.kill(self.pid, signal.SIGTERM) + os.waitpid(self.pid, 0) + except OSError: + pass + try: + os.unlink(self.ctrlchnlname) + except OSError: + pass + self._netif.clear() + #del self.session + # print "XXX del vnodeclient:", self.vnodeclient + del self.vnodeclient + self.up = False + + def cmd(self, args, wait = True): + return self.vnodeclient.cmd(args, wait) + + def cmdresult(self, args): + return self.vnodeclient.cmdresult(args) + + def popen(self, args): + return self.vnodeclient.popen(args) + + def icmd(self, args): + return self.vnodeclient.icmd(args) + + def redircmd(self, infd, outfd, errfd, args, wait = True): + return self.vnodeclient.redircmd(infd, outfd, errfd, args, wait) + + def term(self, sh = "/bin/sh"): + return self.vnodeclient.term(sh = sh) + + def termcmdstring(self, sh = "/bin/sh"): + return self.vnodeclient.termcmdstring(sh = sh) + + def shcmd(self, cmdstr, sh = "/bin/sh"): + return self.vnodeclient.shcmd(cmdstr, sh = sh) + + def boot(self): + pass + + def mount(self, source, target): + source = os.path.abspath(source) + self.info("mounting %s at %s" % (source, target)) + try: + shcmd = "mkdir -p '%s' && %s -n --bind '%s' '%s'" % \ + (target, MOUNT_BIN, source, target) + self.shcmd(shcmd) + self._mounts.append((source, target)) + except: + self.warn("mounting failed for %s at %s" % (source, target)) + + def umount(self, target): + self.info("unmounting '%s'" % target) + try: + self.cmd([UMOUNT_BIN, "-n", "-l", target]) + except: + self.warn("unmounting failed for %s" % target) + + def newifindex(self): + with self.lock: + return PyCoreNode.newifindex(self) + + def newveth(self, ifindex = None, ifname = None, net = None): + self.lock.acquire() + try: + if ifindex is None: + ifindex = self.newifindex() + if ifname is None: + ifname = "eth%d" % ifindex + sessionid = self.session.shortsessionid() + name = "n%s.%s.%s" % (self.objid, ifindex, sessionid) + localname = "n%s.%s.%s" % (self.objid, ifname, sessionid) + ifclass = VEth + veth = ifclass(node = self, name = name, localname = localname, + mtu = 1500, net = net, start = self.up) + if self.up: + check_call([IP_BIN, "link", "set", veth.name, + "netns", str(self.pid)]) + self.cmd([IP_BIN, "link", "set", veth.name, "name", ifname]) + veth.name = ifname + try: + self.addnetif(veth, ifindex) + except: + veth.shutdown() + del veth + raise + return ifindex + finally: + self.lock.release() + + def newtuntap(self, ifindex = None, ifname = None, net = None): + self.lock.acquire() + try: + if ifindex is None: + ifindex = self.newifindex() + if ifname is None: + ifname = "eth%d" % ifindex + sessionid = self.session.shortsessionid() + localname = "n%s.%s.%s" % (self.objid, ifindex, sessionid) + name = ifname + ifclass = TunTap + tuntap = ifclass(node = self, name = name, localname = localname, + mtu = 1500, net = net, start = self.up) + try: + self.addnetif(tuntap, ifindex) + except: + tuntap.shutdown() + del tuntap + raise + return ifindex + finally: + self.lock.release() + + def sethwaddr(self, ifindex, addr): + self._netif[ifindex].sethwaddr(addr) + if self.up: + (status, result) = self.cmdresult([IP_BIN, "link", "set", "dev", + self.ifname(ifindex), "address", str(addr)]) + if status: + self.exception(coreapi.CORE_EXCP_LEVEL_ERROR, + "SimpleLxcNode.sethwaddr()", + "error setting MAC address %s" % str(addr)) + def addaddr(self, ifindex, addr): + if self.up: + self.cmd([IP_BIN, "addr", "add", str(addr), + "dev", self.ifname(ifindex)]) + self._netif[ifindex].addaddr(addr) + + def deladdr(self, ifindex, addr): + try: + self._netif[ifindex].deladdr(addr) + except ValueError: + self.warn("trying to delete unknown address: %s" % addr) + if self.up: + self.cmd([IP_BIN, "addr", "del", str(addr), + "dev", self.ifname(ifindex)]) + + valid_deladdrtype = ("inet", "inet6", "inet6link") + def delalladdr(self, ifindex, addrtypes = valid_deladdrtype): + addr = self.getaddr(self.ifname(ifindex), rescan = True) + for t in addrtypes: + if t not in self.valid_deladdrtype: + raise ValueError, "addr type must be in: " + \ + " ".join(self.valid_deladdrtype) + for a in addr[t]: + self.deladdr(ifindex, a) + # update cached information + self.getaddr(self.ifname(ifindex), rescan = True) + + def ifup(self, ifindex): + if self.up: + self.cmd([IP_BIN, "link", "set", self.ifname(ifindex), "up"]) + + def newnetif(self, net = None, addrlist = [], hwaddr = None, + ifindex = None, ifname = None): + self.lock.acquire() + try: + if isinstance(net, EmaneNode): + ifindex = self.newtuntap(ifindex = ifindex, ifname = ifname, + net = net) + # TUN/TAP is not ready for addressing yet; the device may + # take some time to appear, and installing it into a + # namespace after it has been bound removes addressing; + # save addresses with the interface now + self.attachnet(ifindex, net) + netif = self.netif(ifindex) + netif.sethwaddr(hwaddr) + for addr in maketuple(addrlist): + netif.addaddr(addr) + return ifindex + else: + ifindex = self.newveth(ifindex = ifindex, ifname = ifname, + net = net) + if net is not None: + self.attachnet(ifindex, net) + if hwaddr: + self.sethwaddr(ifindex, hwaddr) + for addr in maketuple(addrlist): + self.addaddr(ifindex, addr) + self.ifup(ifindex) + return ifindex + finally: + self.lock.release() + + def connectnode(self, ifname, othernode, otherifname): + tmplen = 8 + tmp1 = "tmp." + "".join([random.choice(string.ascii_lowercase) + for x in xrange(tmplen)]) + tmp2 = "tmp." + "".join([random.choice(string.ascii_lowercase) + for x in xrange(tmplen)]) + check_call([IP_BIN, "link", "add", "name", tmp1, + "type", "veth", "peer", "name", tmp2]) + + check_call([IP_BIN, "link", "set", tmp1, "netns", str(self.pid)]) + self.cmd([IP_BIN, "link", "set", tmp1, "name", ifname]) + self.addnetif(PyCoreNetIf(self, ifname), self.newifindex()) + + check_call([IP_BIN, "link", "set", tmp2, "netns", str(othernode.pid)]) + othernode.cmd([IP_BIN, "link", "set", tmp2, "name", otherifname]) + othernode.addnetif(PyCoreNetIf(othernode, otherifname), + othernode.newifindex()) + + def addfile(self, srcname, filename): + shcmd = "mkdir -p $(dirname '%s') && mv '%s' '%s' && sync" % \ + (filename, srcname, filename) + self.shcmd(shcmd) + + def getaddr(self, ifname, rescan = False): + return self.vnodeclient.getaddr(ifname = ifname, rescan = rescan) + + def netifstats(self, ifname = None): + return self.vnodeclient.netifstats(ifname = ifname) + + +class LxcNode(SimpleLxcNode): + def __init__(self, session, objid = None, name = None, + nodedir = None, bootsh = "boot.sh", verbose = False, + start = True): + super(LxcNode, self).__init__(session = session, objid = objid, + name = name, nodedir = nodedir, + verbose = verbose, start = start) + self.bootsh = bootsh + if start: + self.startup() + + def boot(self): + self.session.services.bootnodeservices(self) + + def validate(self): + self.session.services.validatenodeservices(self) + + def startup(self): + self.lock.acquire() + try: + self.makenodedir() + super(LxcNode, self).startup() + self.privatedir("/var/run") + self.privatedir("/var/log") + except OSError, e: + self.warn("Error with LxcNode.startup(): %s" % e) + self.exception(coreapi.CORE_EXCP_LEVEL_ERROR, + "LxcNode.startup()", "%s" % e) + finally: + self.lock.release() + + def shutdown(self): + if not self.up: + return + self.lock.acquire() + # services are instead stopped when session enters datacollect state + #self.session.services.stopnodeservices(self) + try: + super(LxcNode, self).shutdown() + finally: + self.rmnodedir() + self.lock.release() + + def privatedir(self, path): + if path[0] != "/": + raise ValueError, "path not fully qualified: " + path + hostpath = os.path.join(self.nodedir, path[1:].replace("/", ".")) + try: + os.mkdir(hostpath) + except OSError: + pass + except Exception, e: + raise Exception, e + self.mount(hostpath, path) + + def hostfilename(self, filename): + ''' Return the name of a node's file on the host filesystem. + ''' + dirname, basename = os.path.split(filename) + if not basename: + raise ValueError, "no basename for filename: " + filename + if dirname and dirname[0] == "/": + dirname = dirname[1:] + dirname = dirname.replace("/", ".") + dirname = os.path.join(self.nodedir, dirname) + return os.path.join(dirname, basename) + + def opennodefile(self, filename, mode = "w"): + hostfilename = self.hostfilename(filename) + dirname, basename = os.path.split(hostfilename) + if not os.path.isdir(dirname): + os.makedirs(dirname, mode = 0755) + return open(hostfilename, mode) + + def nodefile(self, filename, contents, mode = 0644): + f = self.opennodefile(filename, "w") + f.write(contents) + os.chmod(f.name, mode) + f.close() + self.info("created nodefile: '%s'; mode: 0%o" % (f.name, mode)) + + def nodefilecopy(self, filename, srcfilename, mode = None): + ''' Copy a file to a node, following symlinks and preserving metadata. + Change file mode if specified. + ''' + hostfilename = self.hostfilename(filename) + shutil.copy2(srcfilename, hostfilename) + if mode is not None: + os.chmod(hostfilename, mode) + self.info("copied nodefile: '%s'; mode: %s" % (hostfilename, mode)) + + diff --git a/daemon/core/netns/vnodeclient.py b/daemon/core/netns/vnodeclient.py new file mode 100644 index 00000000..4fe2a3dd --- /dev/null +++ b/daemon/core/netns/vnodeclient.py @@ -0,0 +1,221 @@ +# +# CORE +# Copyright (c)2010-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Tom Goff +# +''' +vnodeclient.py: implementation of the VnodeClient class for issuing commands +over a control channel to the vnoded process running in a network namespace. +The control channel can be accessed via calls to the vcmd Python module or +by invoking the vcmd shell command. +''' + +import os, stat, sys +from core.constants import * + +USE_VCMD_MODULE = True + +if USE_VCMD_MODULE: + import vcmd +else: + import subprocess + +VCMD = os.path.join(CORE_SBIN_DIR, "vcmd") + +class VnodeClient(object): + def __init__(self, name, ctrlchnlname): + self.name = name + self.ctrlchnlname = ctrlchnlname + if USE_VCMD_MODULE: + self.cmdchnl = vcmd.VCmd(self.ctrlchnlname) + else: + self.cmdchnl = None + self._addr = {} + + def warn(self, msg): + print >> sys.stderr, "%s: %s" % (self.name, msg) + + def connected(self): + if USE_VCMD_MODULE: + return self.cmdchnl.connected() + else: + return True + + def cmd(self, args, wait = True): + ''' Execute a command on a node and return the status (return code). + ''' + if USE_VCMD_MODULE: + if not self.cmdchnl.connected(): + raise ValueError, "self.cmdchnl not connected" + tmp = self.cmdchnl.qcmd(args) + if not wait: + return tmp + tmp = tmp.wait() + else: + if wait: + mode = os.P_WAIT + else: + mode = os.P_NOWAIT + tmp = os.spawnlp(mode, VCMD, VCMD, "-c", + self.ctrlchnlname, "-q", "--", *args) + if not wait: + return tmp + if tmp: + self.warn("cmd exited with status %s: %s" % (tmp, str(args))) + return tmp + + def cmdresult(self, args): + ''' Execute a command on a node and return a tuple containing the + exit status and result string. stderr output + is folded into the stdout result string. + ''' + cmdid, cmdin, cmdout, cmderr = self.popen(args) + result = cmdout.read() + result += cmderr.read() + cmdin.close() + cmdout.close() + cmderr.close() + status = cmdid.wait() + return (status, result) + + def popen(self, args): + if USE_VCMD_MODULE: + if not self.cmdchnl.connected(): + raise ValueError, "self.cmdchnl not connected" + return self.cmdchnl.popen(args) + else: + cmd = [VCMD, "-c", self.ctrlchnlname, "--"] + cmd.extend(args) + tmp = subprocess.Popen(cmd, stdin = subprocess.PIPE, + stdout = subprocess.PIPE, + stderr = subprocess.PIPE) + return tmp, tmp.stdin, tmp.stdout, tmp.stderr + + def icmd(self, args): + return os.spawnlp(os.P_WAIT, VCMD, VCMD, "-c", self.ctrlchnlname, + "--", *args) + + def redircmd(self, infd, outfd, errfd, args, wait = True): + ''' + Execute a command on a node with standard input, output, and + error redirected according to the given file descriptors. + ''' + if not USE_VCMD_MODULE: + raise NotImplementedError + if not self.cmdchnl.connected(): + raise ValueError, "self.cmdchnl not connected" + tmp = self.cmdchnl.redircmd(infd, outfd, errfd, args) + if not wait: + return tmp + tmp = tmp.wait() + if tmp: + self.warn("cmd exited with status %s: %s" % (tmp, str(args))) + return tmp + + def term(self, sh = "/bin/sh"): + return os.spawnlp(os.P_NOWAIT, "xterm", "xterm", "-ut", + "-title", self.name, "-e", + VCMD, "-c", self.ctrlchnlname, "--", sh) + + def termcmdstring(self, sh = "/bin/sh"): + return "%s -c %s -- %s" % (VCMD, self.ctrlchnlname, sh) + + def shcmd(self, cmdstr, sh = "/bin/sh"): + return self.cmd([sh, "-c", cmdstr]) + + def getaddr(self, ifname, rescan = False): + if ifname in self._addr and not rescan: + return self._addr[ifname] + tmp = {"ether": [], "inet": [], "inet6": [], "inet6link": []} + cmd = [IP_BIN, "addr", "show", "dev", ifname] + cmdid, cmdin, cmdout, cmderr = self.popen(cmd) + cmdin.close() + for line in cmdout: + line = line.strip().split() + if line[0] == "link/ether": + tmp["ether"].append(line[1]) + elif line[0] == "inet": + tmp["inet"].append(line[1]) + elif line[0] == "inet6": + if line[3] == "global": + tmp["inet6"].append(line[1]) + elif line[3] == "link": + tmp["inet6link"].append(line[1]) + else: + self.warn("unknown scope: %s" % line[3]) + else: + pass + err = cmderr.read() + cmdout.close() + cmderr.close() + status = cmdid.wait() + if status: + self.warn("nonzero exist status (%s) for cmd: %s" % (status, cmd)) + if err: + self.warn("error output: %s" % err) + self._addr[ifname] = tmp + return tmp + + def netifstats(self, ifname = None): + stats = {} + cmd = ["cat", "/proc/net/dev"] + cmdid, cmdin, cmdout, cmderr = self.popen(cmd) + cmdin.close() + # ignore first line + cmdout.readline() + # second line has count names + tmp = cmdout.readline().strip().split("|") + rxkeys = tmp[1].split() + txkeys = tmp[2].split() + for line in cmdout: + line = line.strip().split() + devname, tmp = line[0].split(":") + if tmp: + line.insert(1, tmp) + stats[devname] = {"rx": {}, "tx": {}} + field = 1 + for count in rxkeys: + stats[devname]["rx"][count] = int(line[field]) + field += 1 + for count in txkeys: + stats[devname]["tx"][count] = int(line[field]) + field += 1 + err = cmderr.read() + cmdout.close() + cmderr.close() + status = cmdid.wait() + if status: + self.warn("nonzero exist status (%s) for cmd: %s" % (status, cmd)) + if err: + self.warn("error output: %s" % err) + if ifname is not None: + return stats[ifname] + else: + return stats + +def createclients(sessiondir, clientcls = VnodeClient, + cmdchnlfilterfunc = None): + direntries = map(lambda x: os.path.join(sessiondir, x), + os.listdir(sessiondir)) + cmdchnls = filter(lambda x: stat.S_ISSOCK(os.stat(x).st_mode), direntries) + if cmdchnlfilterfunc: + cmdchnls = filter(cmdchnlfilterfunc, cmdchnls) + cmdchnls.sort() + return map(lambda x: clientcls(os.path.basename(x), x), cmdchnls) + +def createremoteclients(sessiondir, clientcls = VnodeClient, + filterfunc = None): + ''' Creates remote VnodeClients, for nodes emulated on other machines. The + session.Broker writes a n1.conf/server file having the server's info. + ''' + direntries = map(lambda x: os.path.join(sessiondir, x), + os.listdir(sessiondir)) + nodedirs = filter(lambda x: stat.S_ISDIR(os.stat(x).st_mode), direntries) + nodedirs = filter(lambda x: os.path.exists(os.path.join(x, "server")), + nodedirs) + if filterfunc: + nodedirs = filter(filterfunc, nodedirs) + nodedirs.sort() + return map(lambda x: clientcls(x), nodedirs) diff --git a/daemon/core/phys/__init__.py b/daemon/core/phys/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/daemon/core/phys/pnodes.py b/daemon/core/phys/pnodes.py new file mode 100644 index 00000000..49b15982 --- /dev/null +++ b/daemon/core/phys/pnodes.py @@ -0,0 +1,268 @@ +# +# CORE +# Copyright (c)2011-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +''' PhysicalNode class for including real systems in the emulated network. +''' +import os, threading, subprocess + +from core.misc.ipaddr import * +from core.misc.utils import * +from core.constants import * +from core.api import coreapi +from core.coreobj import PyCoreNode, PyCoreNetIf +from core.emane.nodes import EmaneNode +if os.uname()[0] == "Linux": + from core.netns.vnet import LxBrNet + from core.netns.vif import GreTap +elif os.uname()[0] == "FreeBSD": + from core.bsd.vnet import NetgraphNet + + +class PhysicalNode(PyCoreNode): + def __init__(self, session, objid = None, name = None, + nodedir = None, verbose = False, start = True): + PyCoreNode.__init__(self, session, objid, name, verbose=verbose, + start=start) + self.nodedir = nodedir + self.up = start + self.lock = threading.RLock() + self._mounts = [] + if start: + self.startup() + + def boot(self): + self.session.services.bootnodeservices(self) + + def validate(self): + self.session.services.validatenodeservices(self) + + def startup(self): + self.lock.acquire() + try: + self.makenodedir() + #self.privatedir("/var/run") + #self.privatedir("/var/log") + except OSError, e: + self.exception(coreapi.CORE_EXCP_LEVEL_ERROR, + "PhysicalNode.startup()", e) + finally: + self.lock.release() + + def shutdown(self): + if not self.up: + return + self.lock.acquire() + while self._mounts: + source, target = self._mounts.pop(-1) + self.umount(target) + for netif in self.netifs(): + netif.shutdown() + self.rmnodedir() + self.lock.release() + + + def termcmdstring(self, sh = "/bin/sh"): + ''' The broker will add the appropriate SSH command to open a terminal + on this physical node. + ''' + return sh + + def cmd(self, args, wait = True): + ''' run a command on the physical node + ''' + os.chdir(self.nodedir) + try: + if wait: + # os.spawnlp(os.P_WAIT, args) + subprocess.call(args) + else: + # os.spawnlp(os.P_NOWAIT, args) + subprocess.Popen(args) + except CalledProcessError, e: + self.warn("cmd exited with status %s: %s" % (e, str(args))) + + def cmdresult(self, args): + ''' run a command on the physical node and get the result + ''' + os.chdir(self.nodedir) + # in Python 2.7 we can use subprocess.check_output() here + tmp = subprocess.Popen(args, stdin = subprocess.PIPE, + stdout = subprocess.PIPE, + stderr = subprocess.PIPE) + result = tmp.stdout.read() + result += tmp.stderr.read() + tmp.stdin.close() + tmp.stdout.close() + tmp.stderr.close() + status = tmp.wait() + return (status, result) + + def shcmd(self, cmdstr, sh = "/bin/sh"): + return self.cmd([sh, "-c", cmdstr]) + + def sethwaddr(self, ifindex, addr): + ''' same as SimpleLxcNode.sethwaddr() + ''' + self._netif[ifindex].sethwaddr(addr) + ifname = self.ifname(ifindex) + if self.up: + (status, result) = self.cmdresult([IP_BIN, "link", "set", "dev", + ifname, "address", str(addr)]) + if status: + self.exception(coreapi.CORE_EXCP_LEVEL_ERROR, + "PhysicalNode.sethwaddr()", + "error setting MAC address %s" % str(addr)) + + def addaddr(self, ifindex, addr): + ''' same as SimpleLxcNode.addaddr() + ''' + if self.up: + self.cmd([IP_BIN, "addr", "add", str(addr), + "dev", self.ifname(ifindex)]) + self._netif[ifindex].addaddr(addr) + + def deladdr(self, ifindex, addr): + ''' same as SimpleLxcNode.deladdr() + ''' + try: + self._netif[ifindex].deladdr(addr) + except ValueError: + self.warn("trying to delete unknown address: %s" % addr) + if self.up: + self.cmd([IP_BIN, "addr", "del", str(addr), + "dev", self.ifname(ifindex)]) + + def adoptnetif(self, netif, ifindex, hwaddr, addrlist): + ''' The broker builds a GreTap tunnel device to this physical node. + When a link message is received linking this node to another part of + the emulation, no new interface is created; instead, adopt the + GreTap netif as the node interface. + ''' + netif.name = "gt%d" % ifindex + netif.node = self + self.addnetif(netif, ifindex) + # use a more reasonable name, e.g. "gt0" instead of "gt.56286.150" + if self.up: + self.cmd([IP_BIN, "link", "set", "dev", netif.localname, "down"]) + self.cmd([IP_BIN, "link", "set", netif.localname, "name", netif.name]) + netif.localname = netif.name + if hwaddr: + self.sethwaddr(ifindex, hwaddr) + for addr in maketuple(addrlist): + self.addaddr(ifindex, addr) + if self.up: + self.cmd([IP_BIN, "link", "set", "dev", netif.localname, "up"]) + + def linkconfig(self, netif, bw = None, delay = None, + loss = None, duplicate = None, jitter = None, netif2 = None): + ''' Apply tc queing disciplines using LxBrNet.linkconfig() + ''' + if os.uname()[0] == "Linux": + netcls = LxBrNet + elif os.uname()[0] == "FreeBSD": + netcls = NetgraphNet + else: + raise NotImplementedError, "unsupported platform" + # borrow the tc qdisc commands from LxBrNet.linkconfig() + tmp = netcls(session=self.session, start=False) + tmp.up = True + tmp.linkconfig(netif, bw=bw, delay=delay, loss=loss, + duplicate=duplicate, jitter=jitter, netif2=netif2) + del tmp + + def newifindex(self): + self.lock.acquire() + try: + while self.ifindex in self._netif: + self.ifindex += 1 + ifindex = self.ifindex + self.ifindex += 1 + return ifindex + finally: + self.lock.release() + + def newnetif(self, net = None, addrlist = [], hwaddr = None, + ifindex = None, ifname = None): + if self.up and net is None: + raise NotImplementedError + if ifindex is None: + ifindex = self.newifindex() + + if self.up: + # this is reached when this node is linked to a network node + # tunnel to net not built yet, so build it now and adopt it + gt = self.session.broker.addnettunnel(net.objid) + if gt is None or len(gt) != 1: + self.session.warn("Error building tunnel from PhysicalNode." + "newnetif()") + gt = gt[0] + net.detach(gt) + self.adoptnetif(gt, ifindex, hwaddr, addrlist) + return ifindex + + # this is reached when configuring services (self.up=False) + if ifname is None: + ifname = "gt%d" % ifindex + netif = GreTap(node = self, name = ifname, session = self.session, + start = False) + self.adoptnetif(netif, ifindex, hwaddr, addrlist) + return ifindex + + + def privatedir(self, path): + if path[0] != "/": + raise ValueError, "path not fully qualified: " + path + hostpath = os.path.join(self.nodedir, path[1:].replace("/", ".")) + try: + os.mkdir(hostpath) + except OSError: + pass + except Exception, e: + raise Exception, e + self.mount(hostpath, path) + + def mount(self, source, target): + source = os.path.abspath(source) + self.info("mounting %s at %s" % (source, target)) + try: + os.makedirs(target) + except OSError: + pass + try: + self.cmd([MOUNT_BIN, "--bind", source, target]) + self._mounts.append((source, target)) + except: + self.warn("mounting failed for %s at %s" % (source, target)) + + def umount(self, target): + self.info("unmounting '%s'" % target) + try: + self.cmd([UMOUNT_BIN, "-l", target]) + except: + self.warn("unmounting failed for %s" % target) + + def opennodefile(self, filename, mode = "w"): + dirname, basename = os.path.split(filename) + if not basename: + raise ValueError, "no basename for filename: " + filename + if dirname and dirname[0] == "/": + dirname = dirname[1:] + dirname = dirname.replace("/", ".") + dirname = os.path.join(self.nodedir, dirname) + if not os.path.isdir(dirname): + os.makedirs(dirname, mode = 0755) + hostfilename = os.path.join(dirname, basename) + return open(hostfilename, mode) + + def nodefile(self, filename, contents, mode = 0644): + f = self.opennodefile(filename, "w") + f.write(contents) + os.chmod(f.name, mode) + f.close() + self.info("created nodefile: '%s'; mode: 0%o" % (f.name, mode)) + + diff --git a/daemon/core/pycore.py b/daemon/core/pycore.py new file mode 100644 index 00000000..5743c4b9 --- /dev/null +++ b/daemon/core/pycore.py @@ -0,0 +1,27 @@ +# Copyright (c)2010-2012 the Boeing Company. +# See the LICENSE file included in this distribution. + +""" +This is a convenience module that imports a set of platform-dependent +defaults. +""" + +from misc.utils import ensurepath +ensurepath(["/sbin", "/bin", "/usr/sbin", "/usr/bin"]) +del ensurepath + +from session import Session + +import os + +if os.uname()[0] == "Linux": + from netns import nodes + try: + from xen import xen + except ImportError: + #print "Xen support disabled." + pass +elif os.uname()[0] == "FreeBSD": + from bsd import nodes +from phys import pnodes +del os diff --git a/daemon/core/sdt.py b/daemon/core/sdt.py new file mode 100644 index 00000000..71fc8411 --- /dev/null +++ b/daemon/core/sdt.py @@ -0,0 +1,202 @@ +# +# CORE +# Copyright (c)2012-2013 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +''' +sdt.py: Scripted Display Tool (SDT3D) helper +''' + +from core.constants import * +from core.api import coreapi +from coreobj import PyCoreNet, PyCoreObj +from core.netns import nodes +import socket + +class Sdt(object): + ''' Helper class for exporting session objects to NRL's SDT3D. + The connect() method initializes the display, and can be invoked + when a node position or link has changed. + ''' + DEFAULT_SDT_PORT = 5000 + # default altitude (in meters) for flyto view + DEFAULT_ALT = 2500 + # TODO: read in user's nodes.conf here; below are default node types + # from the GUI + DEFAULT_SPRITES = [('router', 'router.gif'), ('host', 'host.gif'), + ('PC', 'pc.gif'), ('mdr', 'mdr.gif'), + ('prouter', 'router_green.gif'), ('xen', 'xen.gif'), + ('hub', 'hub.gif'), ('lanswitch','lanswitch.gif'), + ('wlan', 'wlan.gif'), ('rj45','rj45.gif'), + ('tunnel','tunnel.gif'), + ] + + def __init__(self, session): + self.session = session + self.sock = None + self.connected = False + self.showerror = True + self.verbose = self.session.getcfgitembool('verbose', False) + self.address = ("127.0.0.1", self.DEFAULT_SDT_PORT) + + def is_enabled(self): + if not hasattr(self.session.options, 'enablesdt'): + return False + if self.session.options.enablesdt == '1': + return True + return False + + def connect(self, flags=0): + if not self.is_enabled(): + return False + if self.connected: + return True + if self.showerror: + self.session.info("connecting to SDT at %s:%s" % self.address) + if self.sock is None: + self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) + try: + self.sock.connect(self.address) + except Exception, e: + self.session.warn("SDT socket connect error: %s" % e) + return False + if not self.initialize(): + return False + self.connected = True + # refresh all objects in SDT3D when connecting after session start + if not flags & coreapi.CORE_API_ADD_FLAG: + if not self.sendobjs(): + return False + return True + + def initialize(self): + ''' Load icon sprites, and fly to the reference point location on + the virtual globe. + ''' + if not self.cmd('path "%s/icons/normal"' % CORE_DATA_DIR): + return False + # send node type to icon mappings + for (type, icon) in self.DEFAULT_SPRITES: + if not self.cmd('sprite %s image %s' % (type, icon)): + return False + (lat, long) = self.session.location.refgeo[:2] + return self.cmd('flyto %.6f,%.6f,%d' % (long, lat, self.DEFAULT_ALT)) + + def disconnect(self): + try: + self.sock.close() + except: + pass + self.sock = None + self.connected = False + + def shutdown(self): + ''' Invoked from Session.shutdown() and Session.checkshutdown(). + ''' + # TODO: clear SDT display here? + self.disconnect() + self.showerror = True + + def cmd(self, cmdstr): + ''' Send an SDT command over a UDP socket. socket.sendall() is used + as opposed to socket.sendto() because an exception is raised when there + is no socket listener. + ''' + if self.sock is None: + return False + try: + if self.verbose: + self.session.info("sdt: %s" % cmdstr) + self.sock.sendall("%s\n" % cmdstr) + return True + except Exception, e: + if self.showerror: + self.session.warn("SDT connection error: %s" % e) + self.showerror = False + self.connected = False + return False + + def updatenode(self, node, flags, x, y, z): + ''' Node is updated from a Node Message or mobility script. + ''' + if node is None: + return + if not self.connect(): + return + if flags & coreapi.CORE_API_DEL_FLAG: + self.cmd('delete node,%d' % node.objid) + return + (lat, long, alt) = self.session.location.getgeo(x, y, z) + pos = "pos %.6f,%.6f,%.6f" % (long, lat, alt) + if flags & coreapi.CORE_API_ADD_FLAG: + type = node.type + if node.icon is not None: + type = node.name + self.cmd('sprite %s image %s' % (type, node.icon)) + self.cmd('node %d type %s label on,"%s" %s' % \ + (node.objid, type, node.name, pos)) + else: + self.cmd('node %d %s' % (node.objid, pos)) + + def updatenodegeo(self, node, lat, long, alt): + ''' Node is updated upon receiving an EMANE Location Event. + ''' + if node is None: + return + if not self.connect(): + return + pos = "pos %.6f,%.6f,%.6f" % (long, lat, alt) + self.cmd('node %d %s' % (node.objid, pos)) + + def updatelink(self, node1num, node2num, flags, wireless=False): + ''' Link is updated from a Link Message or by a wireless model. + ''' + if node1num is None or node2num is None: + return + if not self.connect(): + return + if flags & coreapi.CORE_API_DEL_FLAG: + self.cmd('delete link,%s,%s' % (node1num, node2num)) + elif flags & coreapi.CORE_API_ADD_FLAG: + attr = "" + if wireless: + attr = " line green" + self.cmd('link %s,%s%s' % (node1num, node2num, attr)) + + def sendobjs(self): + ''' Session has already started, and the SDT3D GUI later connects. + Send all node and link objects for display. Otherwise, nodes and links + will only be drawn when they have been updated. + ''' + nets = [] + with self.session._objslock: + for obj in self.session.objs(): + if isinstance(obj, PyCoreNet): + nets.append(obj) + if not isinstance(obj, PyCoreObj): + continue + (x, y, z) = obj.getposition() + if x is None or y is None: + continue + self.updatenode(obj, coreapi.CORE_API_ADD_FLAG, x, y, z) + for net in nets: + # use tolinkmsgs() to handle various types of links + msgs = net.tolinkmsgs(flags = coreapi.CORE_API_ADD_FLAG) + for msg in msgs: + msghdr = msg[:coreapi.CoreMessage.hdrsiz] + flags = coreapi.CoreMessage.unpackhdr(msghdr)[1] + m = coreapi.CoreLinkMessage(flags, msghdr, + msg[coreapi.CoreMessage.hdrsiz:]) + n1num = m.gettlv(coreapi.CORE_TLV_LINK_N1NUMBER) + n2num = m.gettlv(coreapi.CORE_TLV_LINK_N2NUMBER) + link_msg_type = m.gettlv(coreapi.CORE_TLV_LINK_TYPE) + if isinstance(net, nodes.WlanNode) or \ + isinstance(net, nodes.EmaneNode): + if (n1num == net.objid): + continue + wl = (link_msg_type == coreapi.CORE_LINK_WIRELESS) + self.updatelink(n1num, n2num, coreapi.CORE_API_ADD_FLAG, wl) + + diff --git a/daemon/core/service.py b/daemon/core/service.py new file mode 100644 index 00000000..d01352a0 --- /dev/null +++ b/daemon/core/service.py @@ -0,0 +1,760 @@ +# +# CORE +# Copyright (c)2010-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +''' +service.py: definition of CoreService class that is subclassed to define +startup services and routing for nodes. A service is typically a daemon +program launched when a node starts that provides some sort of +service. The CoreServices class handles configuration messages for sending +a list of available services to the GUI and for configuring individual +services. +''' + +import sys, os, shlex + +from itertools import repeat +from core.api import coreapi +from core.conf import ConfigurableManager, Configurable +from core.misc.utils import maketuplefromstr, expandcorepath + +servicelist = [] + +def addservice(service): + global servicelist + i = 0 + found = -1 + for s in servicelist: + if s._group == service._group: + found = i + elif (found >= 0): + # insert service into list next to existing group + i = found + 1 + break + i += 1 + servicelist.insert(i, service) + +class CoreServices(ConfigurableManager): + ''' Class for interacting with a list of available startup services for + nodes. Mostly used to convert a CoreService into a Config API + message. This class lives in the Session object and remembers + the default services configured for each node type, and any + custom service configuration. A CoreService is not a Configurable. + ''' + _name = "services" + _type = coreapi.CORE_TLV_REG_UTILITY + + def __init__(self, session): + ConfigurableManager.__init__(self, session) + # dict of default services tuples, key is node type + self.defaultservices = {} + # dict of tuple of service objects, key is node number + self.customservices = {} + importcmd = "from core.services import *" + exec(importcmd) + paths = self.session.getcfgitem('custom_services_dir') + if paths: + for path in paths.split(','): + path = path.strip() + self.importcustom(path) + + def importcustom(self, path): + ''' Import services from a myservices directory. + ''' + if not path or len(path) == 0: + return + if not os.path.isdir(path): + self.session.warn("invalid custom service directory specified" \ + ": %s" % path) + return + try: + parentdir, childdir = os.path.split(path) + if childdir == "services": + raise ValueError, "use a unique custom services dir name, " \ + "not 'services'" + sys.path.append(parentdir) + exec("from %s import *" % childdir) + except Exception, e: + self.session.warn("error importing custom services from " \ + "%s:\n%s" % (path, e)) + + def reset(self): + ''' Called when config message with reset flag is received + ''' + self.defaultservices.clear() + self.customservices.clear() + + def get(self): + ''' Get the list of available services. + ''' + global servicelist + return servicelist + + def getservicebyname(self, name): + ''' Get a service class from the global servicelist given its name. + Returns None when the name is not found. + ''' + global servicelist + for s in servicelist: + if s._name == name: + return s + return None + + def getdefaultservices(self, type): + ''' Get the list of default services that should be enabled for a + node for the given node type. + ''' + r = [] + if type in self.defaultservices: + defaults = self.defaultservices[type] + for name in defaults: + s = self.getservicebyname(name) + if s is None: + self.session.warn("default service %s is unknown" % name) + else: + r.append(s) + return r + + def getcustomservice(self, objid, service): + ''' Get any custom service configured for the given node that + matches the specified service name. If no custom service + is found, return the specified service. + ''' + if objid in self.customservices: + for s in self.customservices[objid]: + if s._name == service._name: + return s + return service + + def setcustomservice(self, objid, service, values): + ''' Store service customizations in an instantiated service object + using a list of values that came from a config message. + ''' + if service._custom: + s = service + else: + # instantiate the class, for storing config customization + s = service() + # values are new key=value format; not all keys need to be present + # a missing key means go with the default + if Configurable.haskeyvalues(values): + for v in values: + key, value = v.split('=', 1) + s.setvalue(key, value) + # old-style config, list of values + else: + s.fromvaluelist(values) + + # assume custom service already in dict + if service._custom: + return + # add the custom service to dict + if objid in self.customservices: + self.customservices[objid] += (s, ) + else: + self.customservices[objid] = (s, ) + + def addservicestonode(self, node, nodetype, services_str, verbose): + ''' Populate the node.service list using (1) the list of services + requested from the services TLV, (2) using any custom service + configuration, or (3) using the default services for this node type. + ''' + if services_str is not None: + services = services_str.split('|') + for name in services: + s = self.getservicebyname(name) + if s is None: + self.session.warn("configured service %s for node %s is " \ + "unknown" % (name, node.name)) + continue + if verbose: + self.session.info("adding configured service %s to " \ + "node %s" % (s._name, node.name)) + s = self.getcustomservice(node.objid, s) + node.addservice(s) + else: + services = self.getdefaultservices(nodetype) + for s in services: + if verbose: + self.session.info("adding default service %s to node %s" % \ + (s._name, node.name)) + s = self.getcustomservice(node.objid, s) + node.addservice(s) + + def getallconfigs(self): + ''' Return (nodenum, service) tuples for all stored configs. + Used when reconnecting to a session or opening XML. + ''' + r = [] + for nodenum in self.customservices: + for s in self.customservices[nodenum]: + r.append( (nodenum, s) ) + return r + + def getallfiles(self, service): + ''' Return all customized files stored with a service. + Used when reconnecting to a session or opening XML. + ''' + r = [] + if not service._custom: + return r + for filename in service._configs: + data = self.getservicefiledata(service, filename) + if data is None: + continue + r.append( (filename, data) ) + return r + + def bootnodeservices(self, node): + ''' Start all services on a node. + ''' + services = sorted(node.services, + key=lambda service: service._startindex) + for s in services: + try: + t = float(s._starttime) + if t > 0.0: + fn = self.bootnodeservice + self.session.evq.add_event(t, fn, node, s, services) + continue + except ValueError: + pass + self.bootnodeservice(node, s, services) + + def bootnodeservice(self, node, s, services): + ''' Start a service on a node. Create private dirs, generate config + files, and execute startup commands. + ''' + if s._custom: + self.bootnodecustomservice(node, s, services) + return + if node.verbose: + node.info("starting service %s (%s)" % (s._name, s._startindex)) + for d in s._dirs: + try: + node.privatedir(d) + except Exception, e: + node.warn("Error making node %s dir %s: %s" % \ + (node.name, d, e)) + for filename in s.getconfigfilenames(node.objid, services): + cfg = s.generateconfig(node, filename, services) + node.nodefile(filename, cfg) + for cmd in s.getstartup(node, services): + try: + # NOTE: this wait=False can be problematic! + node.cmd(shlex.split(cmd), wait = False) + except: + node.warn("error starting command %s" % cmd) + + def bootnodecustomservice(self, node, s, services): + ''' Start a custom service on a node. Create private dirs, use supplied + config files, and execute supplied startup commands. + ''' + if node.verbose: + node.info("starting service %s (%s)(custom)" % (s._name, s._startindex)) + for d in s._dirs: + try: + node.privatedir(d) + except Exception, e: + node.warn("Error making node %s dir %s: %s" % \ + (node.name, d, e)) + for i, filename in enumerate(s._configs): + if len(filename) == 0: + continue + cfg = self.getservicefiledata(s, filename) + if cfg is None: + cfg = s.generateconfig(node, filename, services) + # cfg may have a file:/// url for copying from a file + try: + if self.copyservicefile(node, filename, cfg): + continue + except IOError, e: + node.warn("Error copying service file %s" % filename) + node.exception(coreapi.CORE_EXCP_LEVEL_ERROR, + "service:%s" % s._name, + "error copying service file '%s': %s" % (filename, e)) + continue + node.nodefile(filename, cfg) + + for cmd in s._startup: + try: + # NOTE: this wait=False can be problematic! + node.cmd(shlex.split(cmd), wait = False) + except: + node.warn("error starting command %s" % cmd) + + def copyservicefile(self, node, filename, cfg): + ''' Given a configured service filename and config, determine if the + config references an existing file that should be copied. + Returns True for local files, False for generated. + ''' + if cfg[:7] == 'file://': + src = cfg[7:] + src = src.split('\n')[0] + src = expandcorepath(src, node.session, node) + # TODO: glob here + node.nodefilecopy(filename, src, mode = 0644) + return True + return False + + + def validatenodeservices(self, node): + ''' Run validation commands for all services on a node. + ''' + services = sorted(node.services, + key=lambda service: service._startindex) + for s in services: + self.validatenodeservice(node, s, services) + + def validatenodeservice(self, node, s, services): + ''' Run the validation command(s) for a service. + ''' + if node.verbose: + node.info("validating service %s (%s)" % (s._name, s._startindex)) + if s._custom: + validate_cmds = s._validate + else: + validate_cmds = s.getvalidate(node, services) + for cmd in validate_cmds: + if node.verbose: + node.info("validating service %s using: %s" % (s._name, cmd)) + try: + (status, result) = node.cmdresult(shlex.split(cmd)) + if status != 0: + raise ValueError, "non-zero exit status" + except: + node.warn("validation command '%s' failed" % cmd) + node.exception(coreapi.CORE_EXCP_LEVEL_ERROR, + "service:%s" % s._name, + "validate command failed: %s" % cmd) + + def stopnodeservices(self, node): + ''' Stop all services on a node. + ''' + services = sorted(node.services, + key=lambda service: service._startindex) + for s in services: + self.stopnodeservice(node, s) + + def stopnodeservice(self, node, s): + ''' Stop a service on a node. + ''' + for cmd in s._shutdown: + try: + # NOTE: this wait=False can be problematic! + node.cmd(shlex.split(cmd), wait = False) + except: + node.warn("error running stop command %s" % cmd) + + + def configure_request(self, msg): + ''' Receive configuration message for configuring services. + With a request flag set, a list of services has been requested. + When the opaque field is present, a specific service is being + configured or requested. + ''' + objname = msg.gettlv(coreapi.CORE_TLV_CONF_OBJ) + conftype = msg.gettlv(coreapi.CORE_TLV_CONF_TYPE) + nodenum = msg.gettlv(coreapi.CORE_TLV_CONF_NODE) + sessionnum = msg.gettlv(coreapi.CORE_TLV_CONF_SESSION) + opaque = msg.gettlv(coreapi.CORE_TLV_CONF_OPAQUE) + + # send back a list of available services + if opaque is None: + global servicelist + tf = coreapi.CONF_TYPE_FLAGS_NONE + datatypes = tuple(repeat(coreapi.CONF_DATA_TYPE_BOOL, + len(servicelist))) + vals = "|".join(repeat('0', len(servicelist))) + names = map(lambda x: x._name, servicelist) + captions = "|".join(names) + possiblevals = "" + for s in servicelist: + if s._custom_needed: + possiblevals += '1' + possiblevals += '|' + groups = self.buildgroups(servicelist) + # send back the properties for this service + else: + if nodenum is None: + return None + n = self.session.obj(nodenum) + if n is None: + self.session.warn("Request to configure service %s for " \ + "unknown node %s" % (svc._name, nodenum)) + return None + servicesstring = opaque.split(':') + services = self.servicesfromopaque(opaque, n.objid) + if len(services) < 1: + return None + if len(servicesstring) == 3: + # a file request: e.g. "service:zebra:quagga.conf" + return self.getservicefile(services, n, servicesstring[2]) + + # the first service in the list is the one being configured + svc = services[0] + # send back: + # dirs, configs, startindex, startup, shutdown, metadata, config + tf = coreapi.CONF_TYPE_FLAGS_UPDATE + datatypes = tuple(repeat(coreapi.CONF_DATA_TYPE_STRING, + len(svc.keys))) + vals = svc.tovaluelist(n, services) + captions = None + possiblevals = None + groups = None + + tlvdata = "" + if nodenum is not None: + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_NODE, + nodenum) + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_OBJ, + self._name) + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_TYPE, tf) + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_DATA_TYPES, + datatypes) + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_VALUES, + vals) + if captions: + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_CAPTIONS, + captions) + if possiblevals: + tlvdata += coreapi.CoreConfTlv.pack( + coreapi.CORE_TLV_CONF_POSSIBLE_VALUES, possiblevals) + if groups: + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_GROUPS, + groups) + if sessionnum is not None: + tlvdata += coreapi.CoreConfTlv.pack( + coreapi.CORE_TLV_CONF_SESSION, sessionnum) + if opaque: + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_OPAQUE, + opaque) + return coreapi.CoreConfMessage.pack(0, tlvdata) + + + def configure_values(self, msg, values): + ''' Receive configuration message for configuring services. + With a request flag set, a list of services has been requested. + When the opaque field is present, a specific service is being + configured or requested. + ''' + nodenum = msg.gettlv(coreapi.CORE_TLV_CONF_NODE) + opaque = msg.gettlv(coreapi.CORE_TLV_CONF_OPAQUE) + + errmsg = "services config message that I don't know how to handle" + if values is None: + self.session.info(errmsg) + return None + else: + values = values.split('|') + + if opaque is None: + # store default services for a node type in self.defaultservices[] + data_types = msg.gettlv(coreapi.CORE_TLV_CONF_DATA_TYPES) + if values is None or data_types is None or \ + data_types[0] != coreapi.CONF_DATA_TYPE_STRING: + self.session.info(errmsg) + return None + key = values.pop(0) + self.defaultservices[key] = values + self.session.info("default services for type %s set to %s" % \ + (key, values)) + else: + # store service customized config in self.customservices[] + if nodenum is None: + return None + services = self.servicesfromopaque(opaque, nodenum) + if len(services) < 1: + return None + svc = services[0] + self.setcustomservice(nodenum, svc, values) + return None + + def servicesfromopaque(self, opaque, objid): + ''' Build a list of services from an opaque data string. + ''' + services = [] + servicesstring = opaque.split(':') + if servicesstring[0] != "service": + return [] + servicenames = servicesstring[1].split(',') + for name in servicenames: + s = self.getservicebyname(name) + s = self.getcustomservice(objid, s) + if s is None: + self.session.warn("Request for unknown service '%s'" % name) + return [] + services.append(s) + return services + + def buildgroups(self, servicelist): + ''' Build a string of groups for use in a configuration message given + a list of services. The group list string has the format + "title1:1-5|title2:6-9|10-12", where title is an optional group title + and i-j is a numeric range of value indices; groups are + separated by commas. + ''' + i = 0 + r = "" + lastgroup = "" + for service in servicelist: + i += 1 + group = service._group + if group != lastgroup: + lastgroup = group + # finish previous group + if i > 1: + r += "-%d|" % (i -1) + # optionally include group title + if group == "": + r += "%d" % i + else: + r += "%s:%d" % (group, i) + # finish the last group list + if i > 0: + r += "-%d" % i + return r + + def getservicefile(self, services, node, filename): + ''' Send a File Message when the GUI has requested a service file. + The file data is either auto-generated or comes from an existing config. + ''' + svc = services[0] + # get the filename and determine the config file index + if svc._custom: + cfgfiles = svc._configs + else: + cfgfiles = svc.getconfigfilenames(node.objid, services) + if filename not in cfgfiles: + self.session.warn("Request for unknown file '%s' for service '%s'" \ + % (filename, services[0])) + return None + + # get the file data + data = self.getservicefiledata(svc, filename) + if data is None: + data = "%s" % (svc.generateconfig(node, filename, services)) + else: + data = "%s" % data + filetypestr = "service:%s" % svc._name + + # send a file message + flags = coreapi.CORE_API_ADD_FLAG + tlvdata = coreapi.CoreFileTlv.pack(coreapi.CORE_TLV_FILE_NODE, node.objid) + tlvdata += coreapi.CoreFileTlv.pack(coreapi.CORE_TLV_FILE_NAME, filename) + tlvdata += coreapi.CoreFileTlv.pack(coreapi.CORE_TLV_FILE_TYPE, filetypestr) + tlvdata += coreapi.CoreFileTlv.pack(coreapi.CORE_TLV_FILE_DATA, data) + reply = coreapi.CoreFileMessage.pack(flags, tlvdata) + return reply + + def getservicefiledata(self, service, filename): + ''' Get the customized file data associated with a service. Return None + for invalid filenames or missing file data. + ''' + try: + i = service._configs.index(filename) + except ValueError: + return None + if i >= len(service._configtxt) or service._configtxt[i] is None: + return None + return service._configtxt[i] + + def setservicefile(self, nodenum, type, filename, srcname, data): + ''' Receive a File Message from the GUI and store the customized file + in the service config. The filename must match one from the list of + config files in the service. + ''' + if len(type.split(':')) < 2: + self.session.warn("Received file type did not contain service info.") + return + if srcname is not None: + raise NotImplementedError + (svcid, svcname) = type.split(':')[:2] + svc = self.getservicebyname(svcname) + svc = self.getcustomservice(nodenum, svc) + if svc is None: + self.session.warn("Received filename for unknown service '%s'" % \ + svcname) + return + cfgfiles = svc._configs + if filename not in cfgfiles: + self.session.warn("Received unknown file '%s' for service '%s'" \ + % (filename, svcname)) + return + i = cfgfiles.index(filename) + configtxtlist = list(svc._configtxt) + numitems = len(configtxtlist) + if numitems < i+1: + # add empty elements to list to support index assignment + for j in range(1, (i + 2) - numitems): + configtxtlist += None, + configtxtlist[i] = data + svc._configtxt = configtxtlist + + def handleevent(self, msg): + ''' Handle an Event Message used to start, stop, restart, or validate + a service on a given node. + ''' + eventtype = msg.gettlv(coreapi.CORE_TLV_EVENT_TYPE) + nodenum = msg.gettlv(coreapi.CORE_TLV_EVENT_NODE) + name = msg.gettlv(coreapi.CORE_TLV_EVENT_NAME) + try: + node = self.session.obj(nodenum) + except KeyError: + self.session.warn("Ignoring event for service '%s', unknown node " \ + "'%s'" % (name, nodenum)) + return + + services = self.servicesfromopaque(name, nodenum) + for s in services: + if eventtype == coreapi.CORE_EVENT_STOP or \ + eventtype == coreapi.CORE_EVENT_RESTART: + self.stopnodeservice(node, s) + if eventtype == coreapi.CORE_EVENT_START or \ + eventtype == coreapi.CORE_EVENT_RESTART: + if s._custom: + cmds = s._startup + else: + cmds = s.getstartup(node, services) + for cmd in cmds: + try: + node.cmd(shlex.split(cmd), wait = False) + except: + node.warn("error starting command %s" % cmd) + if eventtype == coreapi.CORE_EVENT_PAUSE: + self.validatenodeservice(node, s, services) + + +class CoreService(object): + ''' Parent class used for defining services. + ''' + # service name should not include spaces + _name = "" + # group string allows grouping services together + _group = "" + # list name(s) of services that this service depends upon + _depends = () + keys = ["dirs","files","startidx","cmdup","cmddown","cmdval","meta","starttime"] + # private, per-node directories required by this service + _dirs = () + # config files written by this service + _configs = () + # index used to determine start order with other services + _startindex = 0 + # time in seconds after runtime to run startup commands + _starttime = "" + # list of startup commands + _startup = () + # list of shutdown commands + _shutdown = () + # list of validate commands + _validate = () + # metadata associated with this service + _meta = "" + # custom configuration text + _configtxt = () + _custom = False + _custom_needed = False + + def __init__(self): + ''' Services are not necessarily instantiated. Classmethods may be used + against their config. Services are instantiated when a custom + configuration is used to override their default parameters. + ''' + self._custom = True + + @classmethod + def getconfigfilenames(cls, nodenum, services): + ''' Return the tuple of configuration file filenames. This default method + returns the cls._configs tuple, but this method may be overriden to + provide node-specific filenames that may be based on other services. + ''' + return cls._configs + + @classmethod + def generateconfig(cls, node, filename, services): + ''' Generate configuration file given a node object. The filename is + provided to allow for multiple config files. The other services are + provided to allow interdependencies (e.g. zebra and OSPF). + Return the configuration string to be written to a file or sent + to the GUI for customization. + ''' + raise NotImplementedError + + @classmethod + def getstartup(cls, node, services): + ''' Return the tuple of startup commands. This default method + returns the cls._startup tuple, but this method may be + overriden to provide node-specific commands that may be + based on other services. + ''' + return cls._startup + + @classmethod + def getvalidate(cls, node, services): + ''' Return the tuple of validate commands. This default method + returns the cls._validate tuple, but this method may be + overriden to provide node-specific commands that may be + based on other services. + ''' + return cls._validate + + @classmethod + def tovaluelist(cls, node, services): + ''' Convert service properties into a string list of key=value pairs, + separated by "|". + ''' + valmap = [cls._dirs, cls._configs, cls._startindex, cls._startup, + cls._shutdown, cls._validate, cls._meta, cls._starttime] + if not cls._custom: + # this is always reached due to classmethod + valmap[valmap.index(cls._configs)] = \ + cls.getconfigfilenames(node.objid, services) + valmap[valmap.index(cls._startup)] = \ + cls.getstartup(node, services) + vals = map( lambda a,b: "%s=%s" % (a, str(b)), cls.keys, valmap) + return "|".join(vals) + + def fromvaluelist(self, values): + ''' Convert list of values into properties for this instantiated + (customized) service. + ''' + # TODO: support empty value? e.g. override default meta with '' + for key in self.keys: + try: + self.setvalue(key, values[self.keys.index(key)]) + except IndexError: + # old config does not need to have new keys + pass + + def setvalue(self, key, value): + if key not in self.keys: + raise ValueError + # this handles data conversion to int, string, and tuples + if value: + if key == "startidx": + value = int(value) + elif key == "meta": + value = str(value) + else: + value = maketuplefromstr(value, str) + + if key == "dirs": + self._dirs = value + elif key == "files": + self._configs = value + elif key == "startidx": + self._startindex = value + elif key == "cmdup": + self._startup = value + elif key == "cmddown": + self._shutdown = value + elif key == "cmdval": + self._validate = value + elif key == "meta": + self._meta = value + elif key == "starttime": + self._starttime = value diff --git a/daemon/core/services/__init__.py b/daemon/core/services/__init__.py new file mode 100644 index 00000000..95d4294e --- /dev/null +++ b/daemon/core/services/__init__.py @@ -0,0 +1,6 @@ +"""Services + +Services available to nodes can be put in this directory. Everything listed in +__all__ is automatically loaded by the main core module. +""" +__all__ = ["quagga", "nrl", "xorp", "bird", "utility", "security", "ucarp"] diff --git a/daemon/core/services/bird.py b/daemon/core/services/bird.py new file mode 100644 index 00000000..3c1a41f5 --- /dev/null +++ b/daemon/core/services/bird.py @@ -0,0 +1,249 @@ +# +# CORE +# Copyright (c)2012 Jean-Tiare Le Bigot. +# See the LICENSE file included in this distribution. +# +# authors: Jean-Tiare Le Bigot +# Jeff Ahrenholz +# +''' +bird.py: defines routing services provided by the BIRD Internet Routing Daemon. +''' + +import os + +from core.service import CoreService, addservice +from core.misc.ipaddr import IPv4Prefix +from core.constants import * + +class Bird(CoreService): + ''' Bird router support + ''' + _name = "bird" + _group = "BIRD" + _depends = () + _dirs = ("/etc/bird",) + _configs = ("/etc/bird/bird.conf",) + _startindex = 35 + _startup = ("bird -c %s" % (_configs[0]),) + _shutdown = ("killall bird", ) + _validate = ("pidof bird", ) + + @classmethod + def generateconfig(cls, node, filename, services): + ''' Return the bird.conf file contents. + ''' + if filename == cls._configs[0]: + return cls.generateBirdConf(node, services) + else: + raise ValueError + + @staticmethod + def routerid(node): + ''' Helper to return the first IPv4 address of a node as its router ID. + ''' + for ifc in node.netifs(): + if hasattr(ifc, 'control') and ifc.control == True: + continue + for a in ifc.addrlist: + if a.find(".") >= 0: + return a .split('/') [0] + #raise ValueError, "no IPv4 address found for router ID" + return "0.0.0.0" + + @classmethod + def generateBirdConf(cls, node, services): + ''' Returns configuration file text. Other services that depend on bird + will have generatebirdifcconfig() and generatebirdconfig() + hooks that are invoked here. + ''' + cfg = """\ +/* Main configuration file for BIRD. This is ony a template, + * you will *need* to customize it according to your needs + * Beware that only double quotes \'"\' are valid. No singles. */ + + +log "/var/log/%s.log" all; +#debug protocols all; +#debug commands 2; + +router id %s; # Mandatory for IPv6, may be automatic for IPv4 + +protocol kernel { + persist; # Don\'t remove routes on BIRD shutdown + scan time 200; # Scan kernel routing table every 200 seconds + export all; + import all; +} + +protocol device { + scan time 10; # Scan interfaces every 10 seconds +} + +""" % (cls._name, cls.routerid(node)) + + # Generate protocol specific configurations + for s in services: + if cls._name not in s._depends: + continue + cfg += s.generatebirdconfig(node) + + return cfg + +class BirdService(CoreService): + ''' Parent class for Bird services. Defines properties and methods + common to Bird's routing daemons. + ''' + + _name = "BirdDaemon" + _group = "BIRD" + _depends = ("bird", ) + _dirs = () + _configs = () + _startindex = 40 + _startup = () + _shutdown = () + _meta = "The config file for this service can be found in the bird service." + + @classmethod + def generatebirdconfig(cls, node): + return "" + + @classmethod + def generatebirdifcconfig(cls, node): + ''' Use only bare interfaces descriptions in generated protocol + configurations. This has the slight advantage of being the same + everywhere. + ''' + cfg = "" + + for ifc in node.netifs(): + if hasattr(ifc, 'control') and ifc.control == True: continue + cfg += ' interface "%s";\n'% ifc.name + + return cfg + + +class BirdBgp(BirdService): + '''BGP BIRD Service (configuration generation)''' + + _name = "BIRD_BGP" + _custom_needed = True + + @classmethod + def generatebirdconfig(cls, node): + return """ +/* This is a sample config that should be customized with appropriate AS numbers + * and peers; add one section like this for each neighbor */ + +protocol bgp { + local as 65000; # Customize your AS number + neighbor 198.51.100.130 as 64496; # Customize neighbor AS number && IP + export filter { # We use non-trivial export rules + # This is an example. You should advertise only *your routes* + if (source = RTS_DEVICE) || (source = RTS_OSPF) then { +# bgp_community.add((65000,64501)); # Assign our community + accept; + } + reject; + }; + import all; +} + +""" + +class BirdOspf(BirdService): + '''OSPF BIRD Service (configuration generation)''' + + _name = "BIRD_OSPFv2" + + @classmethod + def generatebirdconfig(cls, node): + cfg = 'protocol ospf {\n' + cfg += ' export filter {\n' + cfg += ' if source = RTS_BGP then {\n' + cfg += ' ospf_metric1 = 100;\n' + cfg += ' accept;\n' + cfg += ' }\n' + cfg += ' accept;\n' + cfg += ' };\n' + cfg += ' area 0.0.0.0 {\n' + cfg += cls.generatebirdifcconfig(node) + cfg += ' };\n' + cfg += '}\n\n' + + return cfg + + +class BirdRadv(BirdService): + '''RADV BIRD Service (configuration generation)''' + + _name = "BIRD_RADV" + + @classmethod + def generatebirdconfig(cls, node): + cfg = '/* This is a sample config that must be customized */\n' + + cfg += 'protocol radv {\n' + cfg += ' # auto configuration on all interfaces\n' + cfg += cls.generatebirdifcconfig(node) + cfg += ' # Advertise DNS\n' + cfg += ' rdnss {\n' + cfg += '# lifetime mult 10;\n' + cfg += '# lifetime mult 10;\n' + cfg += '# ns 2001:0DB8:1234::11;\n' + cfg += '# ns 2001:0DB8:1234::11;\n' + cfg += '# ns 2001:0DB8:1234::12;\n' + cfg += '# ns 2001:0DB8:1234::12;\n' + cfg += ' };\n' + cfg += '}\n\n' + + return cfg + + +class BirdRip(BirdService): + '''RIP BIRD Service (configuration generation)''' + + _name = "BIRD_RIP" + + @classmethod + def generatebirdconfig(cls, node): + cfg = 'protocol rip {\n' + cfg += ' period 10;\n' + cfg += ' garbage time 60;\n' + cfg += cls.generatebirdifcconfig(node) + cfg += ' honor neighbor;\n' + cfg += ' authentication none;\n' + cfg += ' import all;\n' + cfg += ' export all;\n' + cfg += '}\n\n' + + return cfg + + +class BirdStatic(BirdService): + '''Static Bird Service (configuration generation)''' + + _name = "BIRD_static" + _custom_needed = True + + @classmethod + def generatebirdconfig(cls, node): + cfg = '/* This is a sample config that must be customized */\n' + + cfg += 'protocol static {\n' + cfg += '# route 0.0.0.0/0 via 198.51.100.130; # Default route. Do NOT advertise on BGP !\n' + cfg += '# route 203.0.113.0/24 reject; # Sink route\n' + cfg += '# route 10.2.0.0/24 via "arc0"; # Secondary network\n' + cfg += '}\n\n' + + return cfg + + +# Register all protocols +addservice(Bird) +addservice(BirdOspf) +addservice(BirdBgp) +#addservice(BirdRadv) # untested +addservice(BirdRip) +addservice(BirdStatic) diff --git a/daemon/core/services/nrl.py b/daemon/core/services/nrl.py new file mode 100644 index 00000000..d0412c33 --- /dev/null +++ b/daemon/core/services/nrl.py @@ -0,0 +1,191 @@ +# +# CORE +# Copyright (c)2010-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +''' +nrl.py: defines services provided by NRL protolib tools hosted here: +http://cs.itd.nrl.navy.mil/products/ +''' + +from core.service import CoreService, addservice +from core.misc.ipaddr import IPv4Prefix + +class NrlService(CoreService): + ''' Parent class for NRL services. Defines properties and methods + common to NRL's routing daemons. + ''' + _name = "NRLDaemon" + _group = "Routing" + _depends = () + _dirs = () + _configs = () + _startindex = 45 + _startup = () + _shutdown = () + + @classmethod + def generateconfig(cls, node, filename, services): + return "" + + @staticmethod + def firstipv4prefix(node, prefixlen=24): + ''' Similar to QuaggaService.routerid(). Helper to return the first IPv4 + prefix of a node, using the supplied prefix length. This ignores the + interface's prefix length, so e.g. '/32' can turn into '/24'. + ''' + for ifc in node.netifs(): + if hasattr(ifc, 'control') and ifc.control == True: + continue + for a in ifc.addrlist: + if a.find(".") >= 0: + addr = a.split('/')[0] + pre = IPv4Prefix("%s/%s" % (addr, prefixlen)) + return str(pre) + #raise ValueError, "no IPv4 address found" + return "0.0.0.0/%s" % prefixlen + +class NrlNhdp(NrlService): + ''' NeighborHood Discovery Protocol for MANET networks. + ''' + _name = "NHDP" + _startup = ("nrlnhdp", ) + _shutdown = ("killall nrlnhdp", ) + _validate = ("pidof nrlnhdp", ) + + @classmethod + def getstartup(cls, node, services): + ''' Generate the appropriate command-line based on node interfaces. + ''' + cmd = cls._startup[0] + cmd += " -l /var/log/nrlnhdp.log" + cmd += " -rpipe %s_nhdp" % node.name + + servicenames = map(lambda x: x._name, services) + if "SMF" in servicenames: + cmd += " -flooding ecds" + cmd += " -smfClient %s_smf" % node.name + + netifs = filter(lambda x: not getattr(x, 'control', False), \ + node.netifs()) + if len(netifs) > 0: + interfacenames = map(lambda x: x.name, netifs) + cmd += " -i " + cmd += " -i ".join(interfacenames) + + return (cmd, ) + +addservice(NrlNhdp) + +class NrlSmf(NrlService): + ''' Simplified Multicast Forwarding for MANET networks. + ''' + _name = "SMF" + _startup = ("nrlsmf", ) + _shutdown = ("killall nrlsmf", ) + _validate = ("pidof nrlsmf", ) + + @classmethod + def getstartup(cls, node, services): + ''' Generate the appropriate command-line based on node interfaces. + ''' + cmd = cls._startup[0] + cmd += " instance %s_smf" % node.name + + servicenames = map(lambda x: x._name, services) + netifs = filter(lambda x: not getattr(x, 'control', False), \ + node.netifs()) + if len(netifs) == 0: + return () + + if "arouted" in servicenames: + cmd += " tap %s_tap" % (node.name,) + cmd += " unicast %s" % cls.firstipv4prefix(node, 24) + cmd += " push lo,%s resequence on" % netifs[0].name + if len(netifs) > 0: + if "NHDP" in servicenames: + cmd += " ecds " + elif "OLSR" in servicenames: + cmd += " smpr " + else: + cmd += " cf " + interfacenames = map(lambda x: x.name, netifs) + cmd += ",".join(interfacenames) + + cmd += " hash MD5" + cmd += " log /var/log/nrlsmf.log" + return (cmd, ) + +addservice(NrlSmf) + +class NrlOlsr(NrlService): + ''' Optimized Link State Routing protocol for MANET networks. + ''' + _name = "OLSR" + _startup = ("nrlolsrd", ) + _shutdown = ("killall nrlolsrd", ) + _validate = ("pidof nrlolsrd", ) + + @classmethod + def getstartup(cls, node, services): + ''' Generate the appropriate command-line based on node interfaces. + ''' + cmd = cls._startup[0] + # are multiple interfaces supported? No. + netifs = list(node.netifs()) + if len(netifs) > 0: + ifc = netifs[0] + cmd += " -i %s" % ifc.name + cmd += " -l /var/log/nrlolsrd.log" + cmd += " -rpipe %s_olsr" % node.name + + servicenames = map(lambda x: x._name, services) + if "SMF" in servicenames and not "NHDP" in servicenames: + cmd += " -flooding s-mpr" + cmd += " -smfClient %s_smf" % node.name + if "zebra" in servicenames: + cmd += " -z" + + return (cmd, ) + +addservice(NrlOlsr) + +class Arouted(NrlService): + ''' Adaptive Routing + ''' + _name = "arouted" + _configs = ("startarouted.sh", ) + _startindex = NrlService._startindex + 10 + _startup = ("sh startarouted.sh", ) + _shutdown = ("pkill arouted", ) + _validate = ("pidof arouted", ) + + @classmethod + def generateconfig(cls, node, filename, services): + ''' Return the Quagga.conf or quaggaboot.sh file contents. + ''' + cfg = """ +#!/bin/sh +for f in "/tmp/%s_smf"; do + count=1 + until [ -e "$f" ]; do + if [ $count -eq 10 ]; then + echo "ERROR: nrlmsf pipe not found: $f" >&2 + exit 1 + fi + sleep 0.1 + count=$(($count + 1)) + done +done + +""" % (node.name) + cfg += "ip route add %s dev lo\n" % cls.firstipv4prefix(node, 24) + cfg += "arouted instance %s_smf tap %s_tap" % (node.name, node.name) + cfg += " stability 10" # seconds to consider a new route valid + cfg += " 2>&1 > /var/log/arouted.log &\n\n" + return cfg + +# experimental +#addservice(Arouted) diff --git a/daemon/core/services/quagga.py b/daemon/core/services/quagga.py new file mode 100644 index 00000000..226d0f44 --- /dev/null +++ b/daemon/core/services/quagga.py @@ -0,0 +1,589 @@ +# +# CORE +# Copyright (c)2010-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +''' +quagga.py: defines routing services provided by Quagga. +''' + +import os + +if os.uname()[0] == "Linux": + from core.netns import nodes +elif os.uname()[0] == "FreeBSD": + from core.bsd import nodes +from core.service import CoreService, addservice +from core.misc.ipaddr import IPv4Prefix, isIPv4Address, isIPv6Address +from core.api import coreapi +from core.constants import * + +QUAGGA_USER="root" +QUAGGA_GROUP="root" +if os.uname()[0] == "FreeBSD": + QUAGGA_GROUP="wheel" + +class Zebra(CoreService): + ''' + ''' + _name = "zebra" + _group = "Quagga" + _depends = ("vtysh", ) + _dirs = ("/usr/local/etc/quagga", "/var/run/quagga") + _configs = ("/usr/local/etc/quagga/Quagga.conf", + "quaggaboot.sh","/usr/local/etc/quagga/vtysh.conf") + _startindex = 35 + _startup = ("sh quaggaboot.sh zebra",) + _shutdown = ("killall zebra", ) + _validate = ("pidof zebra", ) + + @classmethod + def generateconfig(cls, node, filename, services): + ''' Return the Quagga.conf or quaggaboot.sh file contents. + ''' + if filename == cls._configs[0]: + return cls.generateQuaggaConf(node, services) + elif filename == cls._configs[1]: + return cls.generateQuaggaBoot(node, services) + elif filename == cls._configs[2]: + return cls.generateVtyshConf(node, services) + else: + raise ValueError + + @classmethod + def generateVtyshConf(cls, node, services): + ''' Returns configuration file text. + ''' + return "service integrated-vtysh-config" + + @classmethod + def generateQuaggaConf(cls, node, services): + ''' Returns configuration file text. Other services that depend on zebra + will have generatequaggaifcconfig() and generatequaggaconfig() + hooks that are invoked here. + ''' + # we could verify here that filename == Quagga.conf + cfg = "" + for ifc in node.netifs(): + cfg += "interface %s\n" % ifc.name + # include control interfaces in addressing but not routing daemons + if hasattr(ifc, 'control') and ifc.control == True: + cfg += " " + cfg += "\n ".join(map(cls.addrstr, ifc.addrlist)) + cfg += "\n" + continue + cfgv4 = "" + cfgv6 = "" + want_ipv4 = False + want_ipv6 = False + for s in services: + if cls._name not in s._depends: + continue + ifccfg = s.generatequaggaifcconfig(node, ifc) + if s._ipv4_routing: + want_ipv4 = True + if s._ipv6_routing: + want_ipv6 = True + cfgv6 += ifccfg + else: + cfgv4 += ifccfg + + if want_ipv4: + ipv4list = filter(lambda x: isIPv4Address(x.split('/')[0]), + ifc.addrlist) + cfg += " " + cfg += "\n ".join(map(cls.addrstr, ipv4list)) + cfg += "\n" + cfg += cfgv4 + if want_ipv6: + ipv6list = filter(lambda x: isIPv6Address(x.split('/')[0]), + ifc.addrlist) + cfg += " " + cfg += "\n ".join(map(cls.addrstr, ipv6list)) + cfg += "\n" + cfg += cfgv6 + cfg += "!\n" + + for s in services: + if cls._name not in s._depends: + continue + cfg += s.generatequaggaconfig(node) + return cfg + + @staticmethod + def addrstr(x): + ''' helper for mapping IP addresses to zebra config statements + ''' + if x.find(".") >= 0: + return "ip address %s" % x + elif x.find(":") >= 0: + return "ipv6 address %s" % x + else: + raise Value, "invalid address: %s", x + + @classmethod + def generateQuaggaBoot(cls, node, services): + ''' Generate a shell script used to boot the Quagga daemons. + ''' + try: + quagga_bin_search = node.session.cfg['quagga_bin_search'] + quagga_sbin_search = node.session.cfg['quagga_sbin_search'] + except KeyError: + quagga_bin_search = '"/usr/local/bin /usr/bin /usr/lib/quagga"' + quagga_sbin_search = '"/usr/local/sbin /usr/sbin /usr/lib/quagga"' + return """\ +#!/bin/sh +# auto-generated by zebra service (quagga.py) +QUAGGA_CONF=%s +QUAGGA_SBIN_SEARCH=%s +QUAGGA_BIN_SEARCH=%s +QUAGGA_STATE_DIR=%s +QUAGGA_USER=%s +QUAGGA_GROUP=%s + +searchforprog() +{ + prog=$1 + searchpath=$@ + ret= + for p in $searchpath; do + if [ -x $p/$prog ]; then + ret=$p + break + fi + done + echo $ret +} + +confcheck() +{ + CONF_DIR=`dirname $QUAGGA_CONF` + # if /etc/quagga exists, point /etc/quagga/Quagga.conf -> CONF_DIR + if [ "$CONF_DIR" != "/etc/quagga" ] && [ -d /etc/quagga ] && [ ! -e /etc/quagga/Quagga.conf ]; then + ln -s $CONF_DIR/Quagga.conf /etc/quagga/Quagga.conf + fi + # if /etc/quagga exists, point /etc/quagga/vtysh.conf -> CONF_DIR + if [ "$CONF_DIR" != "/etc/quagga" ] && [ -d /etc/quagga ] && [ ! -e /etc/quagga/vtysh.conf ]; then + ln -s $CONF_DIR/vtysh.conf /etc/quagga/vtysh.conf + fi +} + +waitforvtyfiles() +{ + for f in "$@"; do + count=1 + until [ -e $QUAGGA_STATE_DIR/$f ]; do + if [ $count -eq 10 ]; then + echo "ERROR: vty file not found: $QUAGGA_STATE_DIR/$f" >&2 + return 1 + fi + sleep 0.1 + count=$(($count + 1)) + done + done +} + +bootdaemon() +{ + QUAGGA_SBIN_DIR=$(searchforprog $1 $QUAGGA_SBIN_SEARCH) + if [ "z$QUAGGA_SBIN_DIR" = "z" ]; then + echo "ERROR: Quagga's '$1' daemon not found in search path:" + echo " $QUAGGA_SBIN_SEARCH" + return 1 + fi + + if [ "$1" != "zebra" ]; then + waitforvtyfiles zebra.vty + fi + + $QUAGGA_SBIN_DIR/$1 -u $QUAGGA_USER -g $QUAGGA_GROUP -d +} + +bootvtysh() +{ + QUAGGA_BIN_DIR=$(searchforprog $1 $QUAGGA_BIN_SEARCH) + if [ "z$QUAGGA_BIN_DIR" = "z" ]; then + echo "ERROR: Quagga's '$1' daemon not found in search path:" + echo " $QUAGGA_SBIN_SEARCH" + return 1 + fi + + vtyfiles="zebra.vty" + for r in rip ripng ospf6 ospf bgp babel; do + if grep -q "^router \<${r}\>" $QUAGGA_CONF; then + vtyfiles="$vtyfiles ${r}d.vty" + fi + done + + # wait for Quagga daemon vty files to appear before invoking vtysh + waitforvtyfiles $vtyfiles + + $QUAGGA_BIN_DIR/vtysh -b +} + +confcheck +if [ "x$1" = "x" ]; then + echo "ERROR: missing the name of the Quagga daemon to boot" + exit 1 +elif [ "$1" = "vtysh" ]; then + bootvtysh $1 +else + bootdaemon $1 +fi +""" % (cls._configs[0], quagga_sbin_search, quagga_bin_search, \ + QUAGGA_STATE_DIR, QUAGGA_USER, QUAGGA_GROUP) + +addservice(Zebra) + +class QuaggaService(CoreService): + ''' Parent class for Quagga services. Defines properties and methods + common to Quagga's routing daemons. + ''' + _name = "QuaggaDaemon" + _group = "Quagga" + _depends = ("zebra", ) + _dirs = () + _configs = () + _startindex = 40 + _startup = () + _shutdown = () + _meta = "The config file for this service can be found in the Zebra service." + + _ipv4_routing = False + _ipv6_routing = False + + @staticmethod + def routerid(node): + ''' Helper to return the first IPv4 address of a node as its router ID. + ''' + for ifc in node.netifs(): + if hasattr(ifc, 'control') and ifc.control == True: + continue + for a in ifc.addrlist: + if a.find(".") >= 0: + return a .split('/') [0] + #raise ValueError, "no IPv4 address found for router ID" + return "0.0.0.0" + + @staticmethod + def rj45check(ifc): + ''' Helper to detect whether interface is connected an external RJ45 + link. + ''' + if ifc.net: + for peerifc in ifc.net.netifs(): + if peerifc == ifc: + continue + if isinstance(peerifc, nodes.RJ45Node): + return True + return False + + @classmethod + def generateconfig(cls, node, filename, services): + return "" + + @classmethod + def generatequaggaifcconfig(cls, node, ifc): + return "" + + @classmethod + def generatequaggaconfig(cls, node): + return "" + + + +class Ospfv2(QuaggaService): + ''' The OSPFv2 service provides IPv4 routing for wired networks. It does + not build its own configuration file but has hooks for adding to the + unified Quagga.conf file. + ''' + _name = "OSPFv2" + _startup = ("sh quaggaboot.sh ospfd",) + _shutdown = ("killall ospfd", ) + _validate = ("pidof ospfd", ) + _ipv4_routing = True + + @staticmethod + def mtucheck(ifc): + ''' Helper to detect MTU mismatch and add the appropriate OSPF + mtu-ignore command. This is needed when e.g. a node is linked via a + GreTap device. + ''' + if ifc.mtu != 1500: + # a workaround for PhysicalNode GreTap, which has no knowledge of + # the other nodes/nets + return " ip ospf mtu-ignore\n" + if not ifc.net: + return "" + for i in ifc.net.netifs(): + if i.mtu != ifc.mtu: + return " ip ospf mtu-ignore\n" + return "" + + @staticmethod + def ptpcheck(ifc): + ''' Helper to detect whether interface is connected to a notional + point-to-point link. + ''' + if isinstance(ifc.net, nodes.PtpNet): + return " ip ospf network point-to-point\n" + return "" + + @classmethod + def generatequaggaconfig(cls, node): + cfg = "router ospf\n" + rtrid = cls.routerid(node) + cfg += " router-id %s\n" % rtrid + # network 10.0.0.0/24 area 0 + for ifc in node.netifs(): + if hasattr(ifc, 'control') and ifc.control == True: + continue + for a in ifc.addrlist: + if a.find(".") < 0: + continue + net = IPv4Prefix(a) + cfg += " network %s area 0\n" % net + cfg += "!\n" + return cfg + + @classmethod + def generatequaggaifcconfig(cls, node, ifc): + return cls.mtucheck(ifc) + #cfg = cls.mtucheck(ifc) + # external RJ45 connections will use default OSPF timers + #if cls.rj45check(ifc): + # return cfg + #cfg += cls.ptpcheck(ifc) + + #return cfg + """\ +# ip ospf hello-interval 2 +# ip ospf dead-interval 6 +# ip ospf retransmit-interval 5 +#""" + +addservice(Ospfv2) + +class Ospfv3(QuaggaService): + ''' The OSPFv3 service provides IPv6 routing for wired networks. It does + not build its own configuration file but has hooks for adding to the + unified Quagga.conf file. + ''' + _name = "OSPFv3" + _startup = ("sh quaggaboot.sh ospf6d",) + _shutdown = ("killall ospf6d", ) + _validate = ("pidof ospf6d", ) + _ipv4_routing = True + _ipv6_routing = True + + @staticmethod + def minmtu(ifc): + ''' Helper to discover the minimum MTU of interfaces linked with the + given interface. + ''' + mtu = ifc.mtu + if not ifc.net: + return mtu + for i in ifc.net.netifs(): + if i.mtu < mtu: + mtu = i.mtu + return mtu + + @classmethod + def mtucheck(cls, ifc): + ''' Helper to detect MTU mismatch and add the appropriate OSPFv3 + ifmtu command. This is needed when e.g. a node is linked via a + GreTap device. + ''' + minmtu = cls.minmtu(ifc) + if minmtu < ifc.mtu: + return " ipv6 ospf6 ifmtu %d\n" % minmtu + else: + return "" + + @staticmethod + def ptpcheck(ifc): + ''' Helper to detect whether interface is connected to a notional + point-to-point link. + ''' + if isinstance(ifc.net, nodes.PtpNet): + return " ipv6 ospf6 network point-to-point\n" + return "" + + @classmethod + def generatequaggaconfig(cls, node): + cfg = "router ospf6\n" + rtrid = cls.routerid(node) + cfg += " router-id %s\n" % rtrid + for ifc in node.netifs(): + if hasattr(ifc, 'control') and ifc.control == True: + continue + cfg += " interface %s area 0.0.0.0\n" % ifc.name + cfg += "!\n" + return cfg + + @classmethod + def generatequaggaifcconfig(cls, node, ifc): + return cls.mtucheck(ifc) + #cfg = cls.mtucheck(ifc) + # external RJ45 connections will use default OSPF timers + #if cls.rj45check(ifc): + # return cfg + #cfg += cls.ptpcheck(ifc) + + #return cfg + """\ +# ipv6 ospf6 hello-interval 2 +# ipv6 ospf6 dead-interval 6 +# ipv6 ospf6 retransmit-interval 5 +#""" + +addservice(Ospfv3) + +class Ospfv3mdr(Ospfv3): + ''' The OSPFv3 MANET Designated Router (MDR) service provides IPv6 + routing for wireless networks. It does not build its own + configuration file but has hooks for adding to the + unified Quagga.conf file. + ''' + _name = "OSPFv3MDR" + _ipv4_routing = True + + @classmethod + def generatequaggaifcconfig(cls, node, ifc): + cfg = cls.mtucheck(ifc) + + return cfg + """\ + ipv6 ospf6 instance-id 65 + ipv6 ospf6 hello-interval 2 + ipv6 ospf6 dead-interval 6 + ipv6 ospf6 retransmit-interval 5 + ipv6 ospf6 network manet-designated-router + ipv6 ospf6 diffhellos + ipv6 ospf6 adjacencyconnectivity uniconnected + ipv6 ospf6 lsafullness mincostlsa +""" + +addservice(Ospfv3mdr) + +class Bgp(QuaggaService): + '''' The BGP service provides interdomain routing. + Peers must be manually configured, with a full mesh for those + having the same AS number. + ''' + _name = "BGP" + _startup = ("sh quaggaboot.sh bgpd",) + _shutdown = ("killall bgpd", ) + _validate = ("pidof bgpd", ) + _custom_needed = True + _ipv4_routing = True + _ipv6_routing = True + + @classmethod + def generatequaggaconfig(cls, node): + cfg = "!\n! BGP configuration\n!\n" + cfg += "! You should configure the AS number below,\n" + cfg += "! along with this router's peers.\n!\n" + cfg += "router bgp %s\n" % node.objid + rtrid = cls.routerid(node) + cfg += " bgp router-id %s\n" % rtrid + cfg += " redistribute connected\n" + cfg += "! neighbor 1.2.3.4 remote-as 555\n!\n" + return cfg + +addservice(Bgp) + +class Rip(QuaggaService): + ''' The RIP service provides IPv4 routing for wired networks. + ''' + _name = "RIP" + _startup = ("sh quaggaboot.sh ripd",) + _shutdown = ("killall ripd", ) + _validate = ("pidof ripd", ) + _ipv4_routing = True + + @classmethod + def generatequaggaconfig(cls, node): + cfg = """\ +router rip + redistribute static + redistribute connected + redistribute ospf + network 0.0.0.0/0 +! +""" + return cfg + +addservice(Rip) + +class Ripng(QuaggaService): + ''' The RIP NG service provides IPv6 routing for wired networks. + ''' + _name = "RIPNG" + _startup = ("sh quaggaboot.sh ripngd",) + _shutdown = ("killall ripngd", ) + _validate = ("pidof ripngd", ) + _ipv6_routing = True + + @classmethod + def generatequaggaconfig(cls, node): + cfg = """\ +router ripng + redistribute static + redistribute connected + redistribute ospf6 + network ::/0 +! +""" + return cfg + +addservice(Ripng) + +class Babel(QuaggaService): + ''' The Babel service provides a loop-avoiding distance-vector routing + protocol for IPv6 and IPv4 with fast convergence properties. + ''' + _name = "Babel" + _startup = ("sh quaggaboot.sh babeld",) + _shutdown = ("killall babeld", ) + _validate = ("pidof babeld", ) + _ipv6_routing = True + + @classmethod + def generatequaggaconfig(cls, node): + cfg = "router babel\n" + for ifc in node.netifs(): + if hasattr(ifc, 'control') and ifc.control == True: + continue + cfg += " network %s\n" % ifc.name + cfg += " redistribute static\n redistribute connected\n" + return cfg + + @classmethod + def generatequaggaifcconfig(cls, node, ifc): + type = "wired" + if ifc.net and ifc.net.linktype == coreapi.CORE_LINK_WIRELESS: + return " babel wireless\n no babel split-horizon\n" + else: + return " babel wired\n babel split-horizon\n" + +addservice(Babel) + + +class Vtysh(CoreService): + ''' Simple service to run vtysh -b (boot) after all Quagga daemons have + started. + ''' + _name = "vtysh" + _group = "Quagga" + _startindex = 45 + _startup = ("sh quaggaboot.sh vtysh",) + _shutdown = () + + @classmethod + def generateconfig(cls, node, filename, services): + return "" + +addservice(Vtysh) + + diff --git a/daemon/core/services/security.py b/daemon/core/services/security.py new file mode 100644 index 00000000..29f8ab3b --- /dev/null +++ b/daemon/core/services/security.py @@ -0,0 +1,129 @@ +# +# CORE - define security services : vpnclient, vpnserver, ipsec and firewall +# +# Copyright (c)2011-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +''' +security.py: defines security services (vpnclient, vpnserver, ipsec and +firewall) +''' + +import os + +from core.service import CoreService, addservice +from core.constants import * + +class VPNClient(CoreService): + ''' + ''' + _name = "VPNClient" + _group = "Security" + _configs = ('vpnclient.sh', ) + _startindex = 60 + _startup = ('sh vpnclient.sh',) + _shutdown = ("killall openvpn",) + _validate = ("pidof openvpn", ) + _custom_needed = True + + @classmethod + def generateconfig(cls, node, filename, services): + ''' Return the client.conf and vpnclient.sh file contents to + ''' + cfg = "#!/bin/sh\n" + cfg += "# custom VPN Client configuration for service (security.py)\n" + fname = "%s/examples/services/sampleVPNClient" % CORE_DATA_DIR + try: + cfg += open(fname, "rb").read() + except e: + print "Error opening VPN client configuration template (%s): %s" % \ + (fname, e) + return cfg + +# this line is required to add the above class to the list of available services +addservice(VPNClient) + +class VPNServer(CoreService): + ''' + ''' + _name = "VPNServer" + _group = "Security" + _configs = ('vpnserver.sh', ) + _startindex = 50 + _startup = ('sh vpnserver.sh',) + _shutdown = ("killall openvpn",) + _validate = ("pidof openvpn", ) + _custom_needed = True + + @classmethod + def generateconfig(cls, node, filename, services): + ''' Return the sample server.conf and vpnserver.sh file contents to + GUI for user customization. + ''' + cfg = "#!/bin/sh\n" + cfg += "# custom VPN Server Configuration for service (security.py)\n" + fname = "%s/examples/services/sampleVPNServer" % CORE_DATA_DIR + try: + cfg += open(fname, "rb").read() + except e: + print "Error opening VPN server configuration template (%s): %s" % \ + (fname, e) + return cfg + +addservice(VPNServer) + +class IPsec(CoreService): + ''' + ''' + _name = "IPsec" + _group = "Security" + _configs = ('ipsec.sh', ) + _startindex = 60 + _startup = ('sh ipsec.sh',) + _shutdown = ("killall racoon",) + _custom_needed = True + + @classmethod + def generateconfig(cls, node, filename, services): + ''' Return the ipsec.conf and racoon.conf file contents to + GUI for user customization. + ''' + cfg = "#!/bin/sh\n" + cfg += "# set up static tunnel mode security assocation for service " + cfg += "(security.py)\n" + fname = "%s/examples/services/sampleIPsec" % CORE_DATA_DIR + try: + cfg += open(fname, "rb").read() + except e: + print "Error opening IPsec configuration template (%s): %s" % \ + (fname, e) + return cfg + +addservice(IPsec) + +class Firewall(CoreService): + ''' + ''' + _name = "Firewall" + _group = "Security" + _configs = ('firewall.sh', ) + _startindex = 20 + _startup = ('sh firewall.sh',) + _custom_needed = True + + @classmethod + def generateconfig(cls, node, filename, services): + ''' Return the firewall rule examples to GUI for user customization. + ''' + cfg = "#!/bin/sh\n" + cfg += "# custom node firewall rules for service (security.py)\n" + fname = "%s/examples/services/sampleFirewall" % CORE_DATA_DIR + try: + cfg += open(fname, "rb").read() + except e: + print "Error opening Firewall configuration template (%s): %s" % \ + (fname, e) + return cfg + +addservice(Firewall) + diff --git a/daemon/core/services/ucarp.py b/daemon/core/services/ucarp.py new file mode 100755 index 00000000..b3c5c411 --- /dev/null +++ b/daemon/core/services/ucarp.py @@ -0,0 +1,189 @@ +# +# CORE configuration for UCARP +# Copyright (c) 2012 Jonathan deBoer +# See the LICENSE file included in this distribution. +# +# +# author: Jonathan deBoer +# +''' +ucarp.py: defines high-availability IP address controlled by ucarp +''' + +import os + +from core.service import CoreService, addservice +from core.misc.ipaddr import IPv4Prefix +from core.constants import * + + +UCARP_ETC="/usr/local/etc/ucarp" + +class Ucarp(CoreService): + ''' + ''' + _name = "ucarp" + _group = "Utility" + _depends = ( ) + _dirs = (UCARP_ETC, ) + _configs = (UCARP_ETC + "/default.sh", UCARP_ETC + "/default-up.sh", UCARP_ETC + "/default-down.sh", "ucarpboot.sh",) + _startindex = 65 + _startup = ("sh ucarpboot.sh",) + _shutdown = ("killall ucarp", ) + _validate = ("pidof ucarp", ) + + @classmethod + def generateconfig(cls, node, filename, services): + ''' Return the default file contents + ''' + if filename == cls._configs[0]: + return cls.generateUcarpConf(node, services) + elif filename == cls._configs[1]: + return cls.generateVipUp(node, services) + elif filename == cls._configs[2]: + return cls.generateVipDown(node, services) + elif filename == cls._configs[3]: + return cls.generateUcarpBoot(node, services) + else: + raise ValueError + + @classmethod + def generateUcarpConf(cls, node, services): + ''' Returns configuration file text. + ''' + try: + ucarp_bin = node.session.cfg['ucarp_bin'] + except KeyError: + ucarp_bin = "/usr/sbin/ucarp" + return """\ +#!/bin/sh +# Location of UCARP executable +UCARP_EXEC=%s + +# Location of the UCARP config directory +UCARP_CFGDIR=%s + +# Logging Facility +FACILITY=daemon + +# Instance ID +# Any number from 1 to 255 +INSTANCE_ID=1 + +# Password +# Master and Backup(s) need to be the same +PASSWORD="changeme" + +# The failover application address +VIRTUAL_ADDRESS=127.0.0.254 +VIRTUAL_NET=8 + +# Interface for IP Address +INTERFACE=lo + +# Maintanence address of the local machine +SOURCE_ADDRESS=127.0.0.1 + +# The ratio number to be considered before marking the node as dead +DEAD_RATIO=3 + +# UCARP base, lower number will be preferred master +# set to same to have master stay as long as possible +UCARP_BASE=1 +SKEW=0 + +# UCARP options +# -z run shutdown script on exit +# -P force preferred master +# -n don't run down script at start up when we are backup +# -M use broadcast instead of multicast +# -S ignore interface state +OPTIONS="-z -n -M" + +# Send extra parameter to down and up scripts +#XPARAM="-x " +XPARAM="-x ${VIRTUAL_NET}" + +# The start and stop scripts +START_SCRIPT=${UCARP_CFGDIR}/default-up.sh +STOP_SCRIPT=${UCARP_CFGDIR}/default-down.sh + +# These line should not need to be touched +UCARP_OPTS="$OPTIONS -b $UCARP_BASE -k $SKEW -i $INTERFACE -v $INSTANCE_ID -p $PASSWORD -u $START_SCRIPT -d $STOP_SCRIPT -a $VIRTUAL_ADDRESS -s $SOURCE_ADDRESS -f $FACILITY $XPARAM" + +${UCARP_EXEC} -B ${UCARP_OPTS} +""" % (ucarp_bin, UCARP_ETC) + + @classmethod + def generateUcarpBoot(cls, node, services): + ''' Generate a shell script used to boot the Ucarp daemons. + ''' + try: + ucarp_bin = node.session.cfg['ucarp_bin'] + except KeyError: + ucarp_bin = "/usr/sbin/ucarp" + return """\ +#!/bin/sh +# Location of the UCARP config directory +UCARP_CFGDIR=%s + +chmod a+x ${UCARP_CFGDIR}/*.sh + +# Start the default ucarp daemon configuration +${UCARP_CFGDIR}/default.sh + +""" % (UCARP_ETC) + + @classmethod + def generateVipUp(cls, node, services): + ''' Generate a shell script used to start the virtual ip + ''' + try: + ucarp_bin = node.session.cfg['ucarp_bin'] + except KeyError: + ucarp_bin = "/usr/sbin/ucarp" + return """\ +#!/bin/bash + +# Should be invoked as "default-up.sh " +exec 2> /dev/null + +IP="${2}" +NET="${3}" +if [ -z "$NET" ]; then + NET="24" +fi + +/sbin/ip addr add ${IP}/${NET} dev "$1" + + +""" + + @classmethod + def generateVipDown(cls, node, services): + ''' Generate a shell script used to stop the virtual ip + ''' + try: + ucarp_bin = node.session.cfg['ucarp_bin'] + except KeyError: + ucarp_bin = "/usr/sbin/ucarp" + return """\ +#!/bin/bash + +# Should be invoked as "default-down.sh " +exec 2> /dev/null + +IP="${2}" +NET="${3}" +if [ -z "$NET" ]; then + NET="24" +fi + +/sbin/ip addr del ${IP}/${NET} dev "$1" + + +""" + + +addservice(Ucarp) + diff --git a/daemon/core/services/utility.py b/daemon/core/services/utility.py new file mode 100644 index 00000000..11ec3453 --- /dev/null +++ b/daemon/core/services/utility.py @@ -0,0 +1,676 @@ +# +# CORE +# Copyright (c)2010-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +''' +utility.py: defines miscellaneous utility services. +''' + +import os + +from core.service import CoreService, addservice +from core.misc.ipaddr import IPv4Prefix, IPv6Prefix +from core.misc.utils import * +from core.constants import * + +class UtilService(CoreService): + ''' Parent class for utility services. + ''' + _name = "UtilityProcess" + _group = "Utility" + _depends = () + _dirs = () + _configs = () + _startindex = 80 + _startup = () + _shutdown = () + + @classmethod + def generateconfig(cls, node, filename, services): + return "" + +class IPForwardService(UtilService): + _name = "IPForward" + _configs = ("ipforward.sh", ) + _startindex = 5 + _startup = ("sh ipforward.sh", ) + + @classmethod + def generateconfig(cls, node, filename, services): + if os.uname()[0] == "Linux": + return cls.generateconfiglinux(node, filename, services) + elif os.uname()[0] == "FreeBSD": + return cls.generateconfigbsd(node, filename, services) + else: + raise Exception, "unknown platform" + + @classmethod + def generateconfiglinux(cls, node, filename, services): + cfg = """\ +#!/bin/sh +# auto-generated by IPForward service (utility.py) +%s -w net.ipv4.conf.all.forwarding=1 +%s -w net.ipv6.conf.all.forwarding=1 +%s -w net.ipv4.conf.all.send_redirects=0 +%s -w net.ipv4.conf.all.rp_filter=0 +%s -w net.ipv4.conf.default.rp_filter=0 +""" % (SYSCTL_BIN, SYSCTL_BIN, SYSCTL_BIN, SYSCTL_BIN, SYSCTL_BIN) + for ifc in node.netifs(): + name = sysctldevname(ifc.name) + cfg += "%s -w net.ipv4.conf.%s.forwarding=1\n" % (SYSCTL_BIN, name) + cfg += "%s -w net.ipv4.conf.%s.send_redirects=0\n" % \ + (SYSCTL_BIN, name) + cfg += "%s -w net.ipv4.conf.%s.rp_filter=0\n" % (SYSCTL_BIN, name) + return cfg + + @classmethod + def generateconfigbsd(cls, node, filename, services): + return """\ +#!/bin/sh +# auto-generated by IPForward service (utility.py) +%s -w net.inet.ip.forwarding=1 +%s -w net.inet6.ip6.forwarding=1 +%s -w net.inet.icmp.bmcastecho=1 +%s -w net.inet.icmp.icmplim=0 +""" % (SYSCTL_BIN, SYSCTL_BIN, SYSCTL_BIN, SYSCTL_BIN) + +addservice(IPForwardService) + +class DefaultRouteService(UtilService): + _name = "DefaultRoute" + _configs = ("defaultroute.sh",) + _startup = ("sh defaultroute.sh",) + + @classmethod + def generateconfig(cls, node, filename, services): + cfg = "#!/bin/sh\n" + cfg += "# auto-generated by DefaultRoute service (utility.py)\n" + for ifc in node.netifs(): + if hasattr(ifc, 'control') and ifc.control == True: + continue + cfg += "\n".join(map(cls.addrstr, ifc.addrlist)) + cfg += "\n" + return cfg + + @staticmethod + def addrstr(x): + if x.find(":") >= 0: + net = IPv6Prefix(x) + fam = "inet6 ::" + else: + net = IPv4Prefix(x) + fam = "inet 0.0.0.0" + if net.maxaddr() == net.minaddr(): + return "" + else: + if os.uname()[0] == "Linux": + rtcmd = "ip route add default via" + elif os.uname()[0] == "FreeBSD": + rtcmd = "route add -%s" % fam + else: + raise Exception, "unknown platform" + return "%s %s" % (rtcmd, net.minaddr()) + +addservice(DefaultRouteService) + +class DefaultMulticastRouteService(UtilService): + _name = "DefaultMulticastRoute" + _configs = ("defaultmroute.sh",) + _startup = ("sh defaultmroute.sh",) + + @classmethod + def generateconfig(cls, node, filename, services): + cfg = "#!/bin/sh\n" + cfg += "# auto-generated by DefaultMulticastRoute service (utility.py)\n" + cfg += "# the first interface is chosen below; please change it " + cfg += "as needed\n" + + for ifc in node.netifs(): + if hasattr(ifc, 'control') and ifc.control == True: + continue + if os.uname()[0] == "Linux": + rtcmd = "ip route add 224.0.0.0/4 dev" + elif os.uname()[0] == "FreeBSD": + rtcmd = "route add 224.0.0.0/4 -iface" + else: + raise Exception, "unknown platform" + cfg += "%s %s\n" % (rtcmd, ifc.name) + cfg += "\n" + break + return cfg + +addservice(DefaultMulticastRouteService) + +class StaticRouteService(UtilService): + _name = "StaticRoute" + _configs = ("staticroute.sh",) + _startup = ("sh staticroute.sh",) + _custom_needed = True + + @classmethod + def generateconfig(cls, node, filename, services): + cfg = "#!/bin/sh\n" + cfg += "# auto-generated by StaticRoute service (utility.py)\n#\n" + cfg += "# NOTE: this service must be customized to be of any use\n" + cfg += "# Below are samples that you can uncomment and edit.\n#\n" + for ifc in node.netifs(): + if hasattr(ifc, 'control') and ifc.control == True: + continue + cfg += "\n".join(map(cls.routestr, ifc.addrlist)) + cfg += "\n" + return cfg + + @staticmethod + def routestr(x): + if x.find(":") >= 0: + net = IPv6Prefix(x) + fam = "inet6" + dst = "3ffe:4::/64" + else: + net = IPv4Prefix(x) + fam = "inet" + dst = "10.9.8.0/24" + if net.maxaddr() == net.minaddr(): + return "" + else: + if os.uname()[0] == "Linux": + rtcmd = "#/sbin/ip route add %s via" % dst + elif os.uname()[0] == "FreeBSD": + rtcmd = "#/sbin/route add -%s %s" % (fam, dst) + else: + raise Exception, "unknown platform" + return "%s %s" % (rtcmd, net.minaddr()) + +addservice(StaticRouteService) + +class SshService(UtilService): + _name = "SSH" + if os.uname()[0] == "FreeBSD": + _configs = ("startsshd.sh", "sshd_config",) + _dirs = () + else: + _configs = ("startsshd.sh", "/etc/ssh/sshd_config",) + _dirs = ("/etc/ssh", "/var/run/sshd",) + _startup = ("sh startsshd.sh",) + _shutdown = ("killall sshd",) + _validate = () + + @classmethod + def generateconfig(cls, node, filename, services): + ''' Use a startup script for launching sshd in order to wait for host + key generation. + ''' + if os.uname()[0] == "FreeBSD": + sshcfgdir = node.nodedir + sshstatedir = node.nodedir + sshlibdir = "/usr/libexec" + else: + sshcfgdir = cls._dirs[0] + sshstatedir = cls._dirs[1] + sshlibdir = "/usr/lib/openssh" + if filename == "startsshd.sh": + return """\ +#!/bin/sh +# auto-generated by SSH service (utility.py) +ssh-keygen -q -t rsa -N "" -f %s/ssh_host_rsa_key +chmod 655 %s +# wait until RSA host key has been generated to launch sshd +/usr/sbin/sshd -f %s/sshd_config +""" % (sshcfgdir, sshstatedir, sshcfgdir) + else: + return """\ +# auto-generated by SSH service (utility.py) +Port 22 +Protocol 2 +HostKey %s/ssh_host_rsa_key +UsePrivilegeSeparation yes +PidFile %s/sshd.pid + +KeyRegenerationInterval 3600 +ServerKeyBits 768 + +SyslogFacility AUTH +LogLevel INFO + +LoginGraceTime 120 +PermitRootLogin yes +StrictModes yes + +RSAAuthentication yes +PubkeyAuthentication yes + +IgnoreRhosts yes +RhostsRSAAuthentication no +HostbasedAuthentication no + +PermitEmptyPasswords no +ChallengeResponseAuthentication no + +X11Forwarding yes +X11DisplayOffset 10 +PrintMotd no +PrintLastLog yes +TCPKeepAlive yes + +AcceptEnv LANG LC_* +Subsystem sftp %s/sftp-server +UsePAM yes +UseDNS no +""" % (sshcfgdir, sshstatedir, sshlibdir) + +addservice(SshService) + +class DhcpService(UtilService): + _name = "DHCP" + _configs = ("/etc/dhcp/dhcpd.conf",) + _dirs = ("/etc/dhcp",) + _startup = ("dhcpd",) + _shutdown = ("killall dhcpd",) + _validate = ("pidof dhcpd",) + + @classmethod + def generateconfig(cls, node, filename, services): + ''' Generate a dhcpd config file using the network address of + each interface. + ''' + cfg = """\ +# auto-generated by DHCP service (utility.py) +# NOTE: move these option lines into the desired pool { } block(s) below +#option domain-name "test.com"; +#option domain-name-servers 10.0.0.1; +#option routers 10.0.0.1; + +log-facility local6; + +default-lease-time 600; +max-lease-time 7200; + +ddns-update-style none; +""" + for ifc in node.netifs(): + if hasattr(ifc, 'control') and ifc.control == True: + continue + cfg += "\n".join(map(cls.subnetentry, ifc.addrlist)) + cfg += "\n" + return cfg + + @staticmethod + def subnetentry(x): + ''' Generate a subnet declaration block given an IPv4 prefix string + for inclusion in the dhcpd3 config file. + ''' + if x.find(":") >= 0: + return "" + else: + addr = x.split("/")[0] + net = IPv4Prefix(x) + # divide the address space in half + rangelow = net.addr(net.numaddr() / 2) + rangehigh = net.maxaddr() + return """ +subnet %s netmask %s { + pool { + range %s %s; + default-lease-time 600; + option routers %s; + } +} +""" % (net.prefixstr(), net.netmaskstr(), rangelow, rangehigh, addr) + +addservice(DhcpService) + +class DhcpClientService(UtilService): + ''' Use a DHCP client for all interfaces for addressing. + ''' + _name = "DHCPClient" + _configs = ("startdhcpclient.sh",) + _startup = ("sh startdhcpclient.sh",) + _shutdown = ("killall dhclient",) + _validate = ("pidof dhclient",) + + @classmethod + def generateconfig(cls, node, filename, services): + ''' Generate a script to invoke dhclient on all interfaces. + ''' + cfg = "#!/bin/sh\n" + cfg += "# auto-generated by DHCPClient service (utility.py)\n" + cfg += "# uncomment this mkdir line and symlink line to enable client-" + cfg += "side DNS\n# resolution based on the DHCP server response.\n" + cfg += "#mkdir -p /var/run/resolvconf/interface\n" + + for ifc in node.netifs(): + if hasattr(ifc, 'control') and ifc.control == True: + continue + cfg += "#ln -s /var/run/resolvconf/interface/%s.dhclient" % ifc.name + cfg += " /var/run/resolvconf/resolv.conf\n" + cfg += "/sbin/dhclient -nw -pf /var/run/dhclient-%s.pid" % ifc.name + cfg += " -lf /var/run/dhclient-%s.lease %s\n" % (ifc.name, ifc.name) + return cfg + +addservice(DhcpClientService) + +class FtpService(UtilService): + ''' Start a vsftpd server. + ''' + _name = "FTP" + _configs = ("vsftpd.conf",) + _dirs = ("/var/run/vsftpd/empty", "/var/ftp",) + _startup = ("vsftpd ./vsftpd.conf",) + _shutdown = ("killall vsftpd",) + _validate = ("pidof vsftpd",) + + @classmethod + def generateconfig(cls, node, filename, services): + ''' Generate a vsftpd.conf configuration file. + ''' + return """\ +# vsftpd.conf auto-generated by FTP service (utility.py) +listen=YES +anonymous_enable=YES +local_enable=YES +dirmessage_enable=YES +use_localtime=YES +xferlog_enable=YES +connect_from_port_20=YES +xferlog_file=/var/log/vsftpd.log +ftpd_banner=Welcome to the CORE FTP service +secure_chroot_dir=/var/run/vsftpd/empty +anon_root=/var/ftp +""" + +addservice(FtpService) + +class HttpService(UtilService): + ''' Start an apache server. + ''' + _name = "HTTP" + _configs = ("/etc/apache2/apache2.conf", "/etc/apache2/envvars", + "/var/www/index.html",) + _dirs = ("/etc/apache2", "/var/run/apache2", "/var/log/apache2", + "/var/lock/apache2", "/var/www", ) + _startup = ("apache2ctl start",) + _shutdown = ("apache2ctl stop",) + _validate = ("pidof apache2",) + + @classmethod + def generateconfig(cls, node, filename, services): + ''' Generate an apache2.conf configuration file. + ''' + if filename == cls._configs[0]: + return cls.generateapache2conf(node, filename, services) + elif filename == cls._configs[1]: + return cls.generateenvvars(node, filename, services) + elif filename == cls._configs[2]: + return cls.generatehtml(node, filename, services) + else: + return "" + + @classmethod + def generateapache2conf(cls, node, filename, services): + return """\ +# apache2.conf generated by utility.py:HttpService +LockFile ${APACHE_LOCK_DIR}/accept.lock +PidFile ${APACHE_PID_FILE} +Timeout 300 +KeepAlive On +MaxKeepAliveRequests 100 +KeepAliveTimeout 5 + + + StartServers 5 + MinSpareServers 5 + MaxSpareServers 10 + MaxClients 150 + MaxRequestsPerChild 0 + + + + StartServers 2 + MinSpareThreads 25 + MaxSpareThreads 75 + ThreadLimit 64 + ThreadsPerChild 25 + MaxClients 150 + MaxRequestsPerChild 0 + + + + StartServers 2 + MinSpareThreads 25 + MaxSpareThreads 75 + ThreadLimit 64 + ThreadsPerChild 25 + MaxClients 150 + MaxRequestsPerChild 0 + + +User ${APACHE_RUN_USER} +Group ${APACHE_RUN_GROUP} + +AccessFileName .htaccess + + + Order allow,deny + Deny from all + Satisfy all + + +DefaultType None + +HostnameLookups Off + +ErrorLog ${APACHE_LOG_DIR}/error.log +LogLevel warn + +#Include mods-enabled/*.load +#Include mods-enabled/*.conf +LoadModule alias_module /usr/lib/apache2/modules/mod_alias.so +LoadModule auth_basic_module /usr/lib/apache2/modules/mod_auth_basic.so +LoadModule authz_default_module /usr/lib/apache2/modules/mod_authz_default.so +LoadModule authz_host_module /usr/lib/apache2/modules/mod_authz_host.so +LoadModule authz_user_module /usr/lib/apache2/modules/mod_authz_user.so +LoadModule autoindex_module /usr/lib/apache2/modules/mod_autoindex.so +LoadModule dir_module /usr/lib/apache2/modules/mod_dir.so +LoadModule env_module /usr/lib/apache2/modules/mod_env.so + +NameVirtualHost *:80 +Listen 80 + + + Listen 443 + + + Listen 443 + + +LogFormat "%v:%p %h %l %u %t \\"%r\\" %>s %O \\"%{Referer}i\\" \\"%{User-Agent}i\\"" vhost_combined +LogFormat "%h %l %u %t \\"%r\\" %>s %O \\"%{Referer}i\\" \\"%{User-Agent}i\\"" combined +LogFormat "%h %l %u %t \\"%r\\" %>s %O" common +LogFormat "%{Referer}i -> %U" referer +LogFormat "%{User-agent}i" agent + +ServerTokens OS +ServerSignature On +TraceEnable Off + + + ServerAdmin webmaster@localhost + DocumentRoot /var/www + + Options FollowSymLinks + AllowOverride None + + + Options Indexes FollowSymLinks MultiViews + AllowOverride None + Order allow,deny + allow from all + + ErrorLog ${APACHE_LOG_DIR}/error.log + LogLevel warn + CustomLog ${APACHE_LOG_DIR}/access.log combined + + +""" + + @classmethod + def generateenvvars(cls, node, filename, services): + return """\ +# this file is used by apache2ctl - generated by utility.py:HttpService +# these settings come from a default Ubuntu apache2 installation +export APACHE_RUN_USER=www-data +export APACHE_RUN_GROUP=www-data +export APACHE_PID_FILE=/var/run/apache2.pid +export APACHE_RUN_DIR=/var/run/apache2 +export APACHE_LOCK_DIR=/var/lock/apache2 +export APACHE_LOG_DIR=/var/log/apache2 +export LANG=C +export LANG +""" + + @classmethod + def generatehtml(cls, node, filename, services): + body = """\ + +

%s web server

+

This is the default web page for this server.

+

The web server software is running but no content has been added, yet.

+""" % node.name + for ifc in node.netifs(): + if hasattr(ifc, 'control') and ifc.control == True: + continue + body += "
  • %s - %s
  • \n" % (ifc.name, ifc.addrlist) + return "%s" % body + +addservice(HttpService) + +class PcapService(UtilService): + ''' Pcap service for logging packets. + ''' + _name = "pcap" + _configs = ("pcap.sh", ) + _dirs = () + _startindex = 1 + _startup = ("sh pcap.sh start",) + _shutdown = ("sh pcap.sh stop",) + _validate = ("pidof tcpdump",) + _meta = "logs network traffic to pcap packet capture files" + + @classmethod + def generateconfig(cls, node, filename, services): + ''' Generate a startpcap.sh traffic logging script. + ''' + cfg = """ +#!/bin/sh +# set tcpdump options here (see 'man tcpdump' for help) +# (-s snap length, -C limit pcap file length, -n disable name resolution) +DUMPOPTS="-s 12288 -C 10 -n" + +if [ "x$1" = "xstart" ]; then + +""" + for ifc in node.netifs(): + if hasattr(ifc, 'control') and ifc.control == True: + cfg += '# ' + redir = "< /dev/null" + cfg += "tcpdump ${DUMPOPTS} -w %s.%s.pcap -i %s %s &\n" % \ + (node.name, ifc.name, ifc.name, redir) + cfg += """ + +elif [ "x$1" = "xstop" ]; then + mkdir -p ${SESSION_DIR}/pcap + mv *.pcap ${SESSION_DIR}/pcap +fi; +""" + return cfg + +addservice(PcapService) + +class RadvdService(UtilService): + _name = "radvd" + _configs = ("/etc/radvd/radvd.conf",) + _dirs = ("/etc/radvd",) + _startup = ("radvd -C /etc/radvd/radvd.conf -m logfile -l /var/log/radvd.log",) + _shutdown = ("pkill radvd",) + _validate = ("pidof radvd",) + + @classmethod + def generateconfig(cls, node, filename, services): + ''' Generate a RADVD router advertisement daemon config file + using the network address of each interface. + ''' + cfg = "# auto-generated by RADVD service (utility.py)\n" + for ifc in node.netifs(): + if hasattr(ifc, 'control') and ifc.control == True: + continue + prefixes = map(cls.subnetentry, ifc.addrlist) + if len(prefixes) < 1: + continue + cfg += """\ +interface %s +{ + AdvSendAdvert on; + MinRtrAdvInterval 3; + MaxRtrAdvInterval 10; + AdvDefaultPreference low; + AdvHomeAgentFlag off; +""" % ifc.name + for prefix in prefixes: + if prefix == "": + continue + cfg += """\ + prefix %s + { + AdvOnLink on; + AdvAutonomous on; + AdvRouterAddr on; + }; +""" % prefix + cfg += "};\n" + return cfg + + @staticmethod + def subnetentry(x): + ''' Generate a subnet declaration block given an IPv6 prefix string + for inclusion in the RADVD config file. + ''' + if x.find(":") >= 0: + net = IPv6Prefix(x) + return str(net) + else: + return "" + +addservice(RadvdService) + +class AtdService(UtilService): + ''' Atd service for scheduling at jobs + ''' + _name = "atd" + _configs = ("startatd.sh",) + _dirs = ("/var/spool/cron/atjobs", "/var/spool/cron/atspool") + _startup = ("sh startatd.sh", ) + _shutdown = ("pkill atd", ) + + @classmethod + def generateconfig(cls, node, filename, services): + return """ +#!/bin/sh +echo 00001 > /var/spool/cron/atjobs/.SEQ +chown -R daemon /var/spool/cron/* +chmod -R 700 /var/spool/cron/* +atd +""" + +addservice(AtdService) + +class UserDefinedService(UtilService): + ''' Dummy service allowing customization of anything. + ''' + _name = "UserDefined" + _startindex = 50 + _meta = "Customize this service to do anything upon startup." + +addservice(UserDefinedService) diff --git a/daemon/core/services/xorp.py b/daemon/core/services/xorp.py new file mode 100644 index 00000000..062f4901 --- /dev/null +++ b/daemon/core/services/xorp.py @@ -0,0 +1,472 @@ +# +# CORE +# Copyright (c)2011-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +''' +xorp.py: defines routing services provided by the XORP routing suite. +''' + +import os + +from core.service import CoreService, addservice +from core.misc.ipaddr import IPv4Prefix +from core.constants import * + +class XorpRtrmgr(CoreService): + ''' XORP router manager service builds a config.boot file based on other + enabled XORP services, and launches necessary daemons upon startup. + ''' + _name = "xorp_rtrmgr" + _group = "XORP" + _depends = () + _dirs = ("/etc/xorp",) + _configs = ("/etc/xorp/config.boot",) + _startindex = 35 + _startup = ("xorp_rtrmgr -d -b %s -l /var/log/%s.log -P /var/run/%s.pid" % (_configs[0], _name, _name),) + _shutdown = ("killall xorp_rtrmgr", ) + _validate = ("pidof xorp_rtrmgr", ) + + @classmethod + def generateconfig(cls, node, filename, services): + ''' Returns config.boot configuration file text. Other services that + depend on this will have generatexorpconfig() hooks that are + invoked here. Filename currently ignored. + ''' + cfg = "interfaces {\n" + for ifc in node.netifs(): + cfg += " interface %s {\n" % ifc.name + cfg += "\tvif %s {\n" % ifc.name + cfg += "".join(map(cls.addrstr, ifc.addrlist)) + cfg += cls.lladdrstr(ifc) + cfg += "\t}\n" + cfg += " }\n" + cfg += "}\n\n" + + for s in services: + try: + s._depends.index(cls._name) + cfg += s.generatexorpconfig(node) + except ValueError: + pass + return cfg + + @staticmethod + def addrstr(x): + ''' helper for mapping IP addresses to XORP config statements + ''' + try: + (addr, plen) = x.split("/") + except Exception: + raise ValueError, "invalid address" + cfg = "\t address %s {\n" % addr + cfg += "\t\tprefix-length: %s\n" % plen + cfg +="\t }\n" + return cfg + + @staticmethod + def lladdrstr(ifc): + ''' helper for adding link-local address entries (required by OSPFv3) + ''' + cfg = "\t address %s {\n" % ifc.hwaddr.tolinklocal() + cfg += "\t\tprefix-length: 64\n" + cfg += "\t }\n" + return cfg + +addservice(XorpRtrmgr) + +class XorpService(CoreService): + ''' Parent class for XORP services. Defines properties and methods + common to XORP's routing daemons. + ''' + _name = "XorpDaemon" + _group = "XORP" + _depends = ("xorp_rtrmgr", ) + _dirs = () + _configs = () + _startindex = 40 + _startup = () + _shutdown = () + _meta = "The config file for this service can be found in the xorp_rtrmgr service." + + @staticmethod + def fea(forwarding): + ''' Helper to add a forwarding engine entry to the config file. + ''' + cfg = "fea {\n" + cfg += " %s {\n" % forwarding + cfg += "\tdisable:false\n" + cfg += " }\n" + cfg += "}\n" + return cfg + + @staticmethod + def mfea(forwarding, ifcs): + ''' Helper to add a multicast forwarding engine entry to the config file. + ''' + names = [] + for ifc in ifcs: + if hasattr(ifc, 'control') and ifc.control == True: + continue + names.append(ifc.name) + names.append("register_vif") + + cfg = "plumbing {\n" + cfg += " %s {\n" % forwarding + for name in names: + cfg += "\tinterface %s {\n" % name + cfg += "\t vif %s {\n" % name + cfg += "\t\tdisable: false\n" + cfg += "\t }\n" + cfg += "\t}\n" + cfg += " }\n" + cfg += "}\n" + return cfg + + + @staticmethod + def policyexportconnected(): + ''' Helper to add a policy statement for exporting connected routes. + ''' + cfg = "policy {\n" + cfg += " policy-statement export-connected {\n" + cfg += "\tterm 100 {\n" + cfg += "\t from {\n" + cfg += "\t\tprotocol: \"connected\"\n" + cfg += "\t }\n" + cfg += "\t}\n" + cfg += " }\n" + cfg += "}\n" + return cfg + + @staticmethod + def routerid(node): + ''' Helper to return the first IPv4 address of a node as its router ID. + ''' + for ifc in node.netifs(): + if hasattr(ifc, 'control') and ifc.control == True: + continue + for a in ifc.addrlist: + if a.find(".") >= 0: + return a.split('/')[0] + #raise ValueError, "no IPv4 address found for router ID" + return "0.0.0.0" + + @classmethod + def generateconfig(cls, node, filename, services): + return "" + + @classmethod + def generatexorpconfig(cls, node): + return "" + +class XorpOspfv2(XorpService): + ''' The OSPFv2 service provides IPv4 routing for wired networks. It does + not build its own configuration file but has hooks for adding to the + unified XORP configuration file. + ''' + _name = "XORP_OSPFv2" + + @classmethod + def generatexorpconfig(cls, node): + cfg = cls.fea("unicast-forwarding4") + rtrid = cls.routerid(node) + cfg += "\nprotocols {\n" + cfg += " ospf4 {\n" + cfg += "\trouter-id: %s\n" % rtrid + cfg += "\tarea 0.0.0.0 {\n" + for ifc in node.netifs(): + if hasattr(ifc, 'control') and ifc.control == True: + continue + cfg += "\t interface %s {\n" % ifc.name + cfg += "\t\tvif %s {\n" % ifc.name + for a in ifc.addrlist: + if a.find(".") < 0: + continue + addr = a.split("/")[0] + cfg += "\t\t address %s {\n" % addr + cfg += "\t\t }\n" + cfg += "\t\t}\n" + cfg += "\t }\n" + cfg += "\t}\n" + cfg += " }\n" + cfg += "}\n" + return cfg + +addservice(XorpOspfv2) + +class XorpOspfv3(XorpService): + ''' The OSPFv3 service provides IPv6 routing. It does + not build its own configuration file but has hooks for adding to the + unified XORP configuration file. + ''' + _name = "XORP_OSPFv3" + + @classmethod + def generatexorpconfig(cls, node): + cfg = cls.fea("unicast-forwarding6") + rtrid = cls.routerid(node) + cfg += "\nprotocols {\n" + cfg += " ospf6 0 { /* Instance ID 0 */\n" + cfg += "\trouter-id: %s\n" % rtrid + cfg += "\tarea 0.0.0.0 {\n" + for ifc in node.netifs(): + if hasattr(ifc, 'control') and ifc.control == True: + continue + cfg += "\t interface %s {\n" % ifc.name + cfg += "\t\tvif %s {\n" % ifc.name + cfg += "\t\t}\n" + cfg += "\t }\n" + cfg += "\t}\n" + cfg += " }\n" + cfg += "}\n" + return cfg + +addservice(XorpOspfv3) + +class XorpBgp(XorpService): + ''' IPv4 inter-domain routing. AS numbers and peers must be customized. + ''' + _name = "XORP_BGP" + _custom_needed = True + + @classmethod + def generatexorpconfig(cls, node): + cfg = "/* This is a sample config that should be customized with\n" + cfg += " appropriate AS numbers and peers */\n" + cfg += cls.fea("unicast-forwarding4") + cfg += cls.policyexportconnected() + rtrid = cls.routerid(node) + cfg += "\nprotocols {\n" + cfg += " bgp {\n" + cfg += "\tbgp-id: %s\n" % rtrid + cfg += "\tlocal-as: 65001 /* change this */\n" + cfg += "\texport: \"export-connected\"\n" + cfg += "\tpeer 10.0.1.1 { /* change this */\n" + cfg += "\t local-ip: 10.0.1.1\n" + cfg += "\t as: 65002\n" + cfg += "\t next-hop: 10.0.0.2\n" + cfg += "\t}\n" + cfg += " }\n" + cfg += "}\n" + return cfg + +addservice(XorpBgp) + +class XorpRip(XorpService): + ''' RIP IPv4 unicast routing. + ''' + _name = "XORP_RIP" + + @classmethod + def generatexorpconfig(cls, node): + cfg = cls.fea("unicast-forwarding4") + cfg += cls.policyexportconnected() + cfg += "\nprotocols {\n" + cfg += " rip {\n" + cfg += "\texport: \"export-connected\"\n" + for ifc in node.netifs(): + if hasattr(ifc, 'control') and ifc.control == True: + continue + cfg += "\tinterface %s {\n" % ifc.name + cfg += "\t vif %s {\n" % ifc.name + for a in ifc.addrlist: + if a.find(".") < 0: + continue + addr = a.split("/")[0] + cfg += "\t\taddress %s {\n" % addr + cfg += "\t\t disable: false\n" + cfg += "\t\t}\n" + cfg += "\t }\n" + cfg += "\t}\n" + cfg += " }\n" + cfg += "}\n" + return cfg + +addservice(XorpRip) + +class XorpRipng(XorpService): + ''' RIP NG IPv6 unicast routing. + ''' + _name = "XORP_RIPNG" + + @classmethod + def generatexorpconfig(cls, node): + cfg = cls.fea("unicast-forwarding6") + cfg += cls.policyexportconnected() + cfg += "\nprotocols {\n" + cfg += " ripng {\n" + cfg += "\texport: \"export-connected\"\n" + for ifc in node.netifs(): + if hasattr(ifc, 'control') and ifc.control == True: + continue + cfg += "\tinterface %s {\n" % ifc.name + cfg += "\t vif %s {\n" % ifc.name +# for a in ifc.addrlist: +# if a.find(":") < 0: +# continue +# addr = a.split("/")[0] +# cfg += "\t\taddress %s {\n" % addr +# cfg += "\t\t disable: false\n" +# cfg += "\t\t}\n" + cfg += "\t\taddress %s {\n" % ifc.hwaddr.tolinklocal() + cfg += "\t\t disable: false\n" + cfg += "\t\t}\n" + cfg += "\t }\n" + cfg += "\t}\n" + cfg += " }\n" + cfg += "}\n" + return cfg + +addservice(XorpRipng) + +class XorpPimSm4(XorpService): + ''' PIM Sparse Mode IPv4 multicast routing. + ''' + _name = "XORP_PIMSM4" + + @classmethod + def generatexorpconfig(cls, node): + cfg = cls.mfea("mfea4", node.netifs()) + + cfg += "\nprotocols {\n" + cfg += " igmp {\n" + names = [] + for ifc in node.netifs(): + if hasattr(ifc, 'control') and ifc.control == True: + continue + names.append(ifc.name) + cfg += "\tinterface %s {\n" % ifc.name + cfg += "\t vif %s {\n" % ifc.name + cfg += "\t\tdisable: false\n" + cfg += "\t }\n" + cfg += "\t}\n" + cfg += " }\n" + cfg += "}\n" + + cfg += "\nprotocols {\n" + cfg += " pimsm4 {\n" + + names.append("register_vif") + for name in names: + cfg += "\tinterface %s {\n" % name + cfg += "\t vif %s {\n" % name + cfg += "\t\tdr-priority: 1\n" + cfg += "\t }\n" + cfg += "\t}\n" + cfg += "\tbootstrap {\n" + cfg += "\t cand-bsr {\n" + cfg += "\t\tscope-zone 224.0.0.0/4 {\n" + cfg += "\t\t cand-bsr-by-vif-name: \"%s\"\n" % names[0] + cfg += "\t\t}\n" + cfg += "\t }\n" + cfg += "\t cand-rp {\n" + cfg += "\t\tgroup-prefix 224.0.0.0/4 {\n" + cfg += "\t\t cand-rp-by-vif-name: \"%s\"\n" % names[0] + cfg += "\t\t}\n" + cfg += "\t }\n" + cfg += "\t}\n" + + cfg += " }\n" + cfg += "}\n" + + cfg += "\nprotocols {\n" + cfg += " fib2mrib {\n" + cfg += "\tdisable: false\n" + cfg += " }\n" + cfg += "}\n" + return cfg + +addservice(XorpPimSm4) + +class XorpPimSm6(XorpService): + ''' PIM Sparse Mode IPv6 multicast routing. + ''' + _name = "XORP_PIMSM6" + + @classmethod + def generatexorpconfig(cls, node): + cfg = cls.mfea("mfea6", node.netifs()) + + cfg += "\nprotocols {\n" + cfg += " mld {\n" + names = [] + for ifc in node.netifs(): + if hasattr(ifc, 'control') and ifc.control == True: + continue + names.append(ifc.name) + cfg += "\tinterface %s {\n" % ifc.name + cfg += "\t vif %s {\n" % ifc.name + cfg += "\t\tdisable: false\n" + cfg += "\t }\n" + cfg += "\t}\n" + cfg += " }\n" + cfg += "}\n" + + cfg += "\nprotocols {\n" + cfg += " pimsm6 {\n" + + names.append("register_vif") + for name in names: + cfg += "\tinterface %s {\n" % name + cfg += "\t vif %s {\n" % name + cfg += "\t\tdr-priority: 1\n" + cfg += "\t }\n" + cfg += "\t}\n" + cfg += "\tbootstrap {\n" + cfg += "\t cand-bsr {\n" + cfg += "\t\tscope-zone ff00::/8 {\n" + cfg += "\t\t cand-bsr-by-vif-name: \"%s\"\n" % names[0] + cfg += "\t\t}\n" + cfg += "\t }\n" + cfg += "\t cand-rp {\n" + cfg += "\t\tgroup-prefix ff00::/8 {\n" + cfg += "\t\t cand-rp-by-vif-name: \"%s\"\n" % names[0] + cfg += "\t\t}\n" + cfg += "\t }\n" + cfg += "\t}\n" + + cfg += " }\n" + cfg += "}\n" + + cfg += "\nprotocols {\n" + cfg += " fib2mrib {\n" + cfg += "\tdisable: false\n" + cfg += " }\n" + cfg += "}\n" + return cfg + +addservice(XorpPimSm6) + +class XorpOlsr(XorpService): + ''' OLSR IPv4 unicast MANET routing. + ''' + _name = "XORP_OLSR" + + @classmethod + def generatexorpconfig(cls, node): + cfg = cls.fea("unicast-forwarding4") + rtrid = cls.routerid(node) + cfg += "\nprotocols {\n" + cfg += " olsr4 {\n" + cfg += "\tmain-address: %s\n" % rtrid + for ifc in node.netifs(): + if hasattr(ifc, 'control') and ifc.control == True: + continue + cfg += "\tinterface %s {\n" % ifc.name + cfg += "\t vif %s {\n" % ifc.name + for a in ifc.addrlist: + if a.find(".") < 0: + continue + addr = a.split("/")[0] + cfg += "\t\taddress %s {\n" % addr + cfg += "\t\t}\n" + cfg += "\t }\n" + cfg += "\t}\n" + cfg += " }\n" + cfg += "}\n" + return cfg + +addservice(XorpOlsr) diff --git a/daemon/core/session.py b/daemon/core/session.py new file mode 100644 index 00000000..ba9cf0d9 --- /dev/null +++ b/daemon/core/session.py @@ -0,0 +1,1029 @@ +# +# CORE +# Copyright (c)2010-2013 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# authors: Tom Goff +# Jeff Ahrenholz +# +''' +session.py: defines the Session class used by the core-daemon daemon program +that manages a CORE session. +''' + +import os, sys, tempfile, shutil, shlex, atexit, gc, pwd +import threading, time, random + +from core.api import coreapi +if os.uname()[0] == "Linux": + from core.netns import nodes + from core.netns.vnet import GreTapBridge +elif os.uname()[0] == "FreeBSD": + from core.bsd import nodes +from core.emane import emane +from core.misc.utils import check_call, mutedetach, readfileintodict, \ + filemunge, filedemunge + +from core.conf import ConfigurableManager, Configurable +from core.location import CoreLocation +from core.service import CoreServices +from core.broker import CoreBroker +from core.mobility import MobilityManager +from core.sdt import Sdt +from core.misc.ipaddr import MacAddr +from core.misc.event import EventLoop +from core.constants import * + +from core.xen import xenconfig + +class Session(object): + + # sessions that get automatically shutdown when the process + # terminates normally + __sessions = set() + + ''' CORE session manager. + ''' + def __init__(self, sessionid = None, cfg = {}, server = None, + persistent = False): + if sessionid is None: + # try to keep this short since it's used to construct + # network interface names + pid = os.getpid() + sessionid = ((pid >> 16) ^ + (pid & ((1 << 16) - 1))) + sessionid ^= ((id(self) >> 16) ^ (id(self) & ((1 << 16) - 1))) + sessionid &= 0xffff + self.sessionid = sessionid + self.sessiondir = os.path.join(tempfile.gettempdir(), + "pycore.%s" % self.sessionid) + os.mkdir(self.sessiondir) + self.name = None + self.filename = None + self.thumbnail = None + self.user = None + self.node_count = None + self._time = time.time() + self.evq = EventLoop() + # dict of objects: all nodes and nets + self._objs = {} + self._objslock = threading.Lock() + # dict of configurable objects + self._confobjs = {} + self._confobjslock = threading.Lock() + self._handlers = set() + self._handlerslock = threading.Lock() + self._hooks = {} + self.setstate(state=coreapi.CORE_EVENT_DEFINITION_STATE, + info=False, sendevent=False) + # dict of configuration items from /etc/core/core.conf config file + self.cfg = cfg + self.server = server + if not persistent: + self.addsession(self) + self.master = False + self.broker = CoreBroker(session=self, verbose=True) + self.location = CoreLocation(self) + self.mobility = MobilityManager(self) + self.services = CoreServices(self) + self.emane = emane.Emane(self) + self.xen = xenconfig.XenConfigManager(self) + self.sdt = Sdt(self) + # future parameters set by the GUI may go here + self.options = SessionConfig(self) + self.metadata = SessionMetaData(self) + + @classmethod + def addsession(cls, session): + cls.__sessions.add(session) + + @classmethod + def delsession(cls, session): + try: + cls.__sessions.remove(session) + except KeyError: + pass + + @classmethod + def atexit(cls): + while cls.__sessions: + s = cls.__sessions.pop() + print >> sys.stderr, "WARNING: automatically shutting down " \ + "non-persistent session %s" % s.sessionid + s.shutdown() + + def __del__(self): + # note: there is no guarantee this will ever run + self.shutdown() + + def shutdown(self): + ''' Shut down all emulation objects and remove the session directory. + ''' + self.emane.shutdown() + self.broker.shutdown() + self.sdt.shutdown() + self.delobjs() + preserve = False + if hasattr(self.options, 'preservedir'): + if self.options.preservedir == '1': + preserve = True + if not preserve: + shutil.rmtree(self.sessiondir, ignore_errors = True) + if self.server: + self.server.delsession(self) + self.delsession(self) + + def isconnected(self): + ''' Returns true if this session has a request handler. + ''' + with self._handlerslock: + if len(self._handlers) == 0: + return False + else: + return True + + def connect(self, handler): + ''' Set the request handler for this session, making it connected. + ''' + # the master flag will only be set after a GUI has connected with the + # handler, e.g. not during normal startup + if handler.master is True: + self.master = True + with self._handlerslock: + self._handlers.add(handler) + + def disconnect(self, handler): + ''' Disconnect a request handler from this session. Shutdown this + session if there is no running emulation. + ''' + with self._handlerslock: + try: + self._handlers.remove(handler) + except KeyError: + raise ValueError, \ + "Handler %s not associated with this session" % handler + num_handlers = len(self._handlers) + if num_handlers == 0: + # shut down this session unless we are instantiating, running, + # or collecting final data + if self.getstate() < coreapi.CORE_EVENT_INSTANTIATION_STATE or \ + self.getstate() > coreapi.CORE_EVENT_DATACOLLECT_STATE: + self.shutdown() + + def broadcast(self, src, msg): + ''' Send Node and Link CORE API messages to all handlers connected to this session. + ''' + self._handlerslock.acquire() + for handler in self._handlers: + if handler == src: + continue + if isinstance(msg, coreapi.CoreNodeMessage) or \ + isinstance(msg, coreapi.CoreLinkMessage): + try: + handler.sendall(msg.rawmsg) + except Exception, e: + self.warn("sendall() error: %s" % e) + self._handlerslock.release() + + def broadcastraw(self, src, data): + ''' Broadcast raw data to all handlers except src. + ''' + self._handlerslock.acquire() + for handler in self._handlers: + if handler == src: + continue + try: + handler.sendall(data) + except Exception, e: + self.warn("sendall() error: %s" % e) + self._handlerslock.release() + + def gethandler(self): + ''' Get one of the connected handlers, preferrably the master. + ''' + with self._handlerslock: + if len(self._handlers) == 0: + return None + for handler in self._handlers: + if handler.master: + return handler + for handler in self._handlers: + return handler + + def setstate(self, state, info = False, sendevent = False, + returnevent = False): + ''' Set the session state. When info is true, log the state change + event using the session handler's info method. When sendevent is + true, generate a CORE API Event Message and send to the connected + entity. + ''' + self._time = time.time() + self._state = state + replies = [] + + if not self.isconnected(): + return replies + if info: + statename = coreapi.state_name(state) + self._handlerslock.acquire() + for handler in self._handlers: + handler.info("SESSION %s STATE %d: %s at %s" % \ + (self.sessionid, state, statename, time.ctime())) + self._handlerslock.release() + self.writestate(state) + self.runhook(state) + if sendevent: + tlvdata = "" + tlvdata += coreapi.CoreEventTlv.pack(coreapi.CORE_TLV_EVENT_TYPE, + state) + msg = coreapi.CoreEventMessage.pack(0, tlvdata) + # send Event Message to connected handlers (e.g. GUI) + try: + if returnevent: + replies.append(msg) + else: + self.broadcastraw(None, msg) + except Exception, e: + self.warn("Error sending Event Message: %s" % e) + # also inform slave servers + coremsg = coreapi.CoreEventMessage(0, + msg[:coreapi.CoreMessage.hdrsiz], + msg[coreapi.CoreMessage.hdrsiz:]) + tmp = self.broker.handlemsg(coremsg) + return replies + + + def getstate(self): + ''' Retrieve the current state of the session. + ''' + return self._state + + def writestate(self, state): + ''' Write the current state to a state file in the session dir. + ''' + try: + f = open(os.path.join(self.sessiondir, "state"), "w") + f.write("%d %s\n" % (state, coreapi.state_name(state))) + f.close() + except Exception, e: + self.warn("Error writing state file: %s" % e) + + def runhook(self, state, hooks=None): + ''' Run hook scripts upon changing states. + If hooks is not specified, run all hooks in the given state. + ''' + if state not in self._hooks: + return + if hooks is None: + hooks = self._hooks[state] + for (filename, data) in hooks: + try: + f = open(os.path.join(self.sessiondir, filename), "w") + f.write(data) + f.close() + except Exception, e: + self.warn("Error writing hook '%s': %s" % (filename, e)) + self.info("Running hook %s for state %s" % (filename, state)) + try: + check_call(["/bin/sh", filename], cwd=self.sessiondir, + env=self.getenviron()) + except Exception, e: + self.warn("Error running hook '%s' for state %s: %s" % + (filename, state, e)) + + def sethook(self, type, filename, srcname, data): + ''' Store a hook from a received File Message. + ''' + if srcname is not None: + raise NotImplementedError + (hookid, state) = type.split(':')[:2] + if not state.isdigit(): + self.warn("Error setting hook having state '%s'" % state) + return + state = int(state) + hook = (filename, data) + if state not in self._hooks: + self._hooks[state] = [hook,] + else: + self._hooks[state] += hook + # immediately run a hook if it is in the current state + # (this allows hooks in the definition and configuration states) + if self.getstate() == state: + self.runhook(state, hooks = [hook,]) + + def delhooks(self): + ''' Clear the hook scripts dict. + ''' + self._hooks = {} + + def getenviron(self, state=True): + ''' Get an environment suitable for a subprocess.Popen call. + This is the current process environment with some session-specific + variables. + ''' + env = os.environ.copy() + env['SESSION'] = "%s" % self.sessionid + env['SESSION_DIR'] = "%s" % self.sessiondir + env['SESSION_NAME'] = "%s" % self.name + env['SESSION_FILENAME'] = "%s" % self.filename + env['SESSION_USER'] = "%s" % self.user + env['SESSION_NODE_COUNT'] = "%s" % self.node_count + if state: + env['SESSION_STATE'] = "%s" % self.getstate() + try: + readfileintodict(os.path.join(CORE_CONF_DIR, "environment"), env) + except IOError: + pass + if self.user: + try: + readfileintodict(os.path.join('/home', self.user, ".core", + "environment"), env) + except IOError: + pass + return env + + def setthumbnail(self, thumbfile): + ''' Set the thumbnail filename. Move files from /tmp to session dir. + ''' + if not os.path.exists(thumbfile): + self.thumbnail = None + return + dstfile = os.path.join(self.sessiondir, os.path.basename(thumbfile)) + shutil.move(thumbfile, dstfile) + #print "thumbnail: %s -> %s" % (thumbfile, dstfile) + self.thumbnail = dstfile + + def setuser(self, user): + ''' Set the username for this session. Update the permissions of the + session dir to allow the user write access. + ''' + if user is not None: + try: + uid = pwd.getpwnam(user).pw_uid + gid = os.stat(self.sessiondir).st_gid + os.chown(self.sessiondir, uid, gid) + except Exception, e: + self.warn("Failed to set permission on %s: %s" % (self.sessiondir, e)) + self.user = user + + def objs(self): + ''' Return iterator over the emulation object dictionary. + ''' + return self._objs.itervalues() + + def getobjid(self): + ''' Return a unique, random object id. + ''' + self._objslock.acquire() + while True: + id = random.randint(1, 0xFFFF) + if id not in self._objs: + break + self._objslock.release() + return id + + def addobj(self, cls, *clsargs, **clskwds): + ''' Add an emulation object. + ''' + obj = cls(self, *clsargs, **clskwds) + self._objslock.acquire() + if obj.objid in self._objs: + self._objslock.release() + obj.shutdown() + raise KeyError, "non-unique object id %s for %s" % (obj.objid, obj) + self._objs[obj.objid] = obj + self._objslock.release() + return obj + + def obj(self, objid): + ''' Get an emulation object. + ''' + if objid not in self._objs: + raise KeyError, "unknown object id %s" % (objid) + return self._objs[objid] + + def objbyname(self, name): + ''' Get an emulation object using its name attribute. + ''' + with self._objslock: + for obj in self.objs(): + if hasattr(obj, "name") and obj.name == name: + return obj + raise KeyError, "unknown object with name %s" % (name) + + def delobj(self, objid): + ''' Remove an emulation object. + ''' + self._objslock.acquire() + try: + o = self._objs.pop(objid) + except KeyError: + o = None + self._objslock.release() + if o: + o.shutdown() + del o + gc.collect() +# print "gc count:", gc.get_count() +# for o in gc.get_objects(): +# if isinstance(o, PyCoreObj): +# print "XXX XXX XXX PyCoreObj:", o +# for r in gc.get_referrers(o): +# print "XXX XXX XXX referrer:", gc.get_referrers(o) + + def delobjs(self): + ''' Clear the _objs dictionary, and call each obj.shutdown() routine. + ''' + self._objslock.acquire() + while self._objs: + k, o = self._objs.popitem() + o.shutdown() + self._objslock.release() + + def writeobjs(self): + ''' Write objects to a 'nodes' file in the session dir. + The 'nodes' file lists: + number, name, api-type, class-type + ''' + try: + f = open(os.path.join(self.sessiondir, "nodes"), "w") + with self._objslock: + for objid in sorted(self._objs.keys()): + o = self._objs[objid] + f.write("%s %s %s %s\n" % (objid, o.name, o.apitype, type(o))) + f.close() + except Exception, e: + self.warn("Error writing nodes file: %s" % e) + + def addconfobj(self, objname, type, callback): + ''' Objects can register configuration objects that are included in + the Register Message and may be configured via the Configure + Message. The callback is invoked when receiving a Configure Message. + ''' + if type not in coreapi.reg_tlvs: + raise Exception, "invalid configuration object type" + self._confobjslock.acquire() + self._confobjs[objname] = (type, callback) + self._confobjslock.release() + + def confobj(self, objname, session, msg): + ''' Invoke the callback for an object upon receipt of a Configure + Message for that object. A no-op if the object doesn't exist. + ''' + replies = [] + self._confobjslock.acquire() + if objname == "all": + for objname in self._confobjs: + (type, callback) = self._confobjs[objname] + reply = callback(session, msg) + if reply is not None: + replies.append(reply) + self._confobjslock.release() + return replies + if objname in self._confobjs: + (type, callback) = self._confobjs[objname] + self._confobjslock.release() + reply = callback(session, msg) + if reply is not None: + replies.append(reply) + return replies + else: + self.info("session object doesn't own model '%s', ignoring" % \ + objname) + self._confobjslock.release() + return replies + + def confobjs_to_tlvs(self): + ''' Turn the configuration objects into a list of Register Message TLVs. + ''' + tlvdata = "" + self._confobjslock.acquire() + for objname in self._confobjs: + (type, callback) = self._confobjs[objname] + # type must be in coreapi.reg_tlvs + tlvdata += coreapi.CoreRegTlv.pack(type, objname) + self._confobjslock.release() + return tlvdata + + def info(self, msg): + ''' Utility method for writing output to stdout. + ''' + print msg + sys.stdout.flush() + + def warn(self, msg): + ''' Utility method for writing output to stderr. + ''' + print >> sys.stderr, msg + sys.stderr.flush() + + def dumpsession(self): + ''' Debug print this session. + ''' + self.info("session id=%s name=%s state=%s connected=%s" % \ + (self.sessionid, self.name, self._state, self.isconnected())) + num = len(self._objs) + self.info(" file=%s thumb=%s nc=%s/%s" % \ + (self.filename, self.thumbnail, self.node_count, num)) + + def exception(self, level, source, objid, text): + ''' Generate an Exception Message + ''' + vals = (objid, str(self.sessionid), level, source, time.ctime(), text) + types = ("NODE", "SESSION", "LEVEL", "SOURCE", "DATE", "TEXT") + tlvdata = "" + for (t,v) in zip(types, vals): + if v is not None: + tlvdata += coreapi.CoreExceptionTlv.pack( + eval("coreapi.CORE_TLV_EXCP_%s" % t), v) + msg = coreapi.CoreExceptionMessage.pack(0, tlvdata) + # send Exception Message to connected handlers (e.g. GUI) + self.broadcastraw(None, msg) + + def getcfgitem(self, cfgname): + ''' Return an entry from the configuration dictionary that comes from + command-line arguments and/or the core.conf config file. + ''' + if cfgname not in self.cfg: + return None + else: + return self.cfg[cfgname] + + def getcfgitembool(self, cfgname, defaultifnone = None): + ''' Return a boolean entry from the configuration dictionary, may + return None if undefined. + ''' + item = self.getcfgitem(cfgname) + if item is None: + return defaultifnone + return bool(item.lower() == "true") + + def getcfgitemint(self, cfgname, defaultifnone = None): + ''' Return an integer entry from the configuration dictionary, may + return None if undefined. + ''' + item = self.getcfgitem(cfgname) + if item is None: + return defaultifnone + return int(item) + + def instantiate(self, handler=None): + ''' We have entered the instantiation state, invoke startup methods + of various managers and boot the nodes. Validate nodes and check + for transition to the runtime state. + ''' + self.writeobjs() + self.addremovectrlif(node=None, remove=False) + self.emane.startup() + self.broker.startup() + self.mobility.startup() + # boot the services on each node + self.bootnodes(handler) + # allow time for processes to start + time.sleep(0.125) + self.validatenodes() + self.emane.poststartup() + # assume either all nodes have booted already, or there are some + # nodes on slave servers that will be booted and those servers will + # send a node status response message + self.checkruntime() + + def checkruntime(self): + ''' Check if we have entered the runtime state, that all nodes have been + started and the emulation is running. Start the event loop once we + have entered runtime (time=0). + ''' + # this is called from instantiate() after receiving an event message + # for the instantiation state, and from the broker when distributed + # nodes have been started + if self.node_count is None: + return + if self.getstate() == coreapi.CORE_EVENT_RUNTIME_STATE: + return + session_node_count = int(self.node_count) + nc = 0 + with self._objslock: + for obj in self.objs(): + # these networks may be added by the daemon and are not + # considered in the GUI's node count + if isinstance(obj, (nodes.PtpNet, nodes.CtrlNet)): + continue + # on Linux, GreTapBridges are auto-created, not part of GUI's + # node count + if 'GreTapBridge' in globals(): + if isinstance(obj, GreTapBridge): + continue + nc += 1 + # count booted nodes not emulated on this server + # TODO: let slave server determine RUNTIME and wait for Event Message + # broker.getbootocunt() counts all CoreNodes from status reponse + # messages, plus any remote WLANs; remote EMANE, hub, switch, etc. + # are already counted in self._objs + nc += self.broker.getbootcount() + self.info("Checking for runtime with %d of %d session nodes" % \ + (nc, session_node_count)) + if nc < session_node_count: + return # do not have information on all nodes yet + # information on all nodes has been received and they have been started + # enter the runtime state + # TODO: more sophisticated checks to verify that all nodes and networks + # are running + state = coreapi.CORE_EVENT_RUNTIME_STATE + self.evq.run() + self.setstate(state, info=True, sendevent=True) + + def datacollect(self): + ''' Tear down a running session. Stop the event loop and any running + nodes, and perform clean-up. + ''' + self.evq.stop() + with self._objslock: + for obj in self.objs(): + if isinstance(obj, nodes.PyCoreNode): + self.services.stopnodeservices(obj) + self.emane.shutdown() + self.updatectrlifhosts(remove=True) + self.addremovectrlif(node=None, remove=True) + # self.checkshutdown() is currently invoked from node delete handler + + def checkshutdown(self): + ''' Check if we have entered the shutdown state, when no running nodes + and links remain. + ''' + with self._objslock: + nc = len(self._objs) + # TODO: this doesn't consider slave server node counts + # wait for slave servers to enter SHUTDOWN state, then master session + # can enter SHUTDOWN + replies = () + if nc == 0: + replies = self.setstate(state=coreapi.CORE_EVENT_SHUTDOWN_STATE, + info=True, sendevent=True, returnevent=True) + self.sdt.shutdown() + return replies + + def setmaster(self, handler): + ''' Look for the specified handler and set our master flag + appropriately. Returns True if we are connected to the given + handler. + ''' + with self._handlerslock: + for h in self._handlers: + if h != handler: + continue + self.master = h.master + return True + return False + + def shortsessionid(self): + ''' Return a shorter version of the session ID, appropriate for + interface names, where length may be limited. + ''' + return (self.sessionid >> 8) ^ (self.sessionid & ((1 << 8) - 1)) + + def bootnodes(self, handler): + ''' Invoke the boot() procedure for all nodes and send back node + messages to the GUI for node messages that had the status + request flag. + ''' + #self.addremovectrlif(node=None, remove=False) + with self._objslock: + for n in self.objs(): + if not isinstance(n, nodes.PyCoreNode): + continue + if isinstance(n, nodes.RJ45Node): + continue + # add a control interface if configured + self.addremovectrlif(node=n, remove=False) + n.boot() + nodenum = n.objid + if handler is None: + continue + if nodenum in handler.nodestatusreq: + tlvdata = "" + tlvdata += coreapi.CoreNodeTlv.pack(coreapi.CORE_TLV_NODE_NUMBER, + nodenum) + tlvdata += coreapi.CoreNodeTlv.pack(coreapi.CORE_TLV_NODE_EMUID, + n.objid) + reply = coreapi.CoreNodeMessage.pack(coreapi.CORE_API_ADD_FLAG \ + | coreapi.CORE_API_LOC_FLAG, + tlvdata) + try: + handler.request.sendall(reply) + except Exception, e: + self.warn("sendall() error: %s" % e) + del handler.nodestatusreq[nodenum] + self.updatectrlifhosts() + + + def validatenodes(self): + with self._objslock: + for n in self.objs(): + # TODO: this can be extended to validate everything + # such as vnoded process, bridges, etc. + if not isinstance(n, nodes.PyCoreNode): + continue + if isinstance(n, nodes.RJ45Node): + continue + n.validate() + + def addremovectrlif(self, node, remove=False): + ''' Add a control interface to a node when a 'controlnet' prefix is + listed in the config file. Create a control interface bridge as + necessary. When the remove flag is True, remove the bridge that + connects control interfaces. + ''' + prefix = None + try: + if self.cfg['controlnet']: + prefix = self.cfg['controlnet'] + except KeyError: + pass + if hasattr(self.options, 'controlnet'): + prefix = self.options.controlnet + if not prefix: + return + + updown_script = None + try: + if self.cfg['controlnet_updown_script']: + updown_script = self.cfg['controlnet_updown_script'] + except KeyError: + pass + + id = "ctrlnet" + try: + ctrlnet = self.obj(id) + if remove: + self.delobj(ctrlnet.objid) + return + except KeyError: + if remove: + return + ctrlnet = self.addobj(cls = nodes.CtrlNet, objid=id, + prefix=prefix, + assign_address = self.master, + updown_script=updown_script) + self.broker.addnet(id) # to build tunnels during addnettunnels() + for server in self.broker.getserverlist(): + self.broker.addnodemap(server, id) + if node is None: + return + ctrlip = node.objid + try: + addrlist = ["%s/%s" % (ctrlnet.prefix.addr(ctrlip), + ctrlnet.prefix.prefixlen)] + except ValueError: + msg = "Control interface not added to node %s. " % node.objid + msg += "Invalid control network prefix (%s). " % ctrlnet.prefix + msg += "A longer prefix length may be required for this many nodes." + node.exception(coreapi.CORE_EXCP_LEVEL_ERROR, + "Session.addremovectrlif()", msg) + return + ifi = node.newnetif(net = ctrlnet, ifindex = ctrlnet.CTRLIF_IDX_BASE, + ifname = "ctrl0", hwaddr = MacAddr.random(), + addrlist = addrlist) + node.netif(ifi).control = True + + def updatectrlifhosts(self, remove=False): + ''' Add the IP addresses of control interfaces to the /etc/hosts file. + ''' + if not self.getcfgitembool('update_etc_hosts', False): + return + id = "ctrlnet" + try: + ctrlnet = self.obj(id) + except KeyError: + return + header = "CORE session %s host entries" % self.sessionid + if remove: + if self.getcfgitembool('verbose', False): + self.info("Removing /etc/hosts file entries.") + filedemunge('/etc/hosts', header) + return + entries = [] + for ifc in ctrlnet.netifs(): + name = ifc.node.name + for addr in ifc.addrlist: + entries.append("%s %s" % (addr.split('/')[0], ifc.node.name)) + if self.getcfgitembool('verbose', False): + self.info("Adding %d /etc/hosts file entries." % len(entries)) + filemunge('/etc/hosts', header, '\n'.join(entries) + '\n') + + def runtime(self): + ''' Return the current time we have been in the runtime state, or zero + if not in runtime. + ''' + if self.getstate() == coreapi.CORE_EVENT_RUNTIME_STATE: + return time.time() - self._time + else: + return 0.0 + + def addevent(self, etime, node=None, name=None, data=None): + ''' Add an event to the event queue, with a start time relative to the + start of the runtime state. + ''' + etime = float(etime) + runtime = self.runtime() + if runtime > 0.0: + if time <= runtime: + self.warn("Could not schedule past event for time %s " \ + "(run time is now %s)" % (time, runtime)) + return + etime = etime - runtime + func = self.runevent + self.evq.add_event(etime, func, node=node, name=name, data=data) + if name is None: + name = "" + self.info("scheduled event %s at time %s data=%s" % \ + (name, etime + runtime, data)) + + def runevent(self, node=None, name=None, data=None): + ''' Run a scheduled event, executing commands in the data string. + ''' + now = self.runtime() + if name is None: + name = "" + self.info("running event %s at time %s cmd=%s" % (name, now, data)) + if node is None: + mutedetach(shlex.split(data)) + else: + n = self.obj(node) + n.cmd(shlex.split(data), wait=False) + + def sendobjs(self): + ''' Return API messages that describe the current session. + ''' + replies = [] + nn = 0 + # send node messages for node and network objects + with self._objslock: + for obj in self.objs(): + msg = obj.tonodemsg(flags = coreapi.CORE_API_ADD_FLAG) + if msg is not None: + replies.append(msg) + nn += 1 + + nl = 0 + # send link messages from net objects + with self._objslock: + for obj in self.objs(): + linkmsgs = obj.tolinkmsgs(flags = coreapi.CORE_API_ADD_FLAG) + for msg in linkmsgs: + replies.append(msg) + nl += 1 + # send model info + configs = self.mobility.getallconfigs() + configs += self.emane.getallconfigs() + for (nodenum, cls, values) in configs: + #cls = self.mobility._modelclsmap[conftype] + msg = cls.toconfmsg(flags=0, nodenum=nodenum, + typeflags=coreapi.CONF_TYPE_FLAGS_UPDATE, + values=values) + replies.append(msg) + # service customizations + svc_configs = self.services.getallconfigs() + for (nodenum, svc) in svc_configs: + opaque = "service:%s" % svc._name + tlvdata = "" + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_NODE, + nodenum) + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_OPAQUE, + opaque) + tmp = coreapi.CoreConfMessage(flags=0, hdr="", data=tlvdata) + replies.append(self.services.configure_request(tmp)) + for (filename, data) in self.services.getallfiles(svc): + flags = coreapi.CORE_API_ADD_FLAG + tlvdata = coreapi.CoreFileTlv.pack(coreapi.CORE_TLV_FILE_NODE, + nodenum) + tlvdata += coreapi.CoreFileTlv.pack(coreapi.CORE_TLV_FILE_NAME, + str(filename)) + tlvdata += coreapi.CoreFileTlv.pack(coreapi.CORE_TLV_FILE_TYPE, + opaque) + tlvdata += coreapi.CoreFileTlv.pack(coreapi.CORE_TLV_FILE_DATA, + str(data)) + replies.append(coreapi.CoreFileMessage.pack(flags, tlvdata)) + + # TODO: send location info + # replies.append(self.location.toconfmsg()) + # send hook scripts + for state in sorted(self._hooks.keys()): + for (filename, data) in self._hooks[state]: + flags = coreapi.CORE_API_ADD_FLAG + tlvdata = coreapi.CoreFileTlv.pack(coreapi.CORE_TLV_FILE_NAME, + str(filename)) + tlvdata += coreapi.CoreFileTlv.pack(coreapi.CORE_TLV_FILE_TYPE, + "hook:%s" % state) + tlvdata += coreapi.CoreFileTlv.pack(coreapi.CORE_TLV_FILE_DATA, + str(data)) + replies.append(coreapi.CoreFileMessage.pack(flags, tlvdata)) + + # send meta data + tmp = coreapi.CoreConfMessage(flags=0, hdr="", data="") + opts = self.options.configure_request(tmp, + typeflags = coreapi.CONF_TYPE_FLAGS_UPDATE) + if opts: + replies.append(opts) + meta = self.metadata.configure_request(tmp, + typeflags = coreapi.CONF_TYPE_FLAGS_UPDATE) + if meta: + replies.append(meta) + + self.info("informing GUI about %d nodes and %d links" % (nn, nl)) + return replies + + + +class SessionConfig(ConfigurableManager, Configurable): + _name = 'session' + _type = coreapi.CORE_TLV_REG_UTILITY + _confmatrix = [ + ("controlnet", coreapi.CONF_DATA_TYPE_STRING, '', '', + 'Control network'), + ("enablerj45", coreapi.CONF_DATA_TYPE_BOOL, '1', 'On,Off', + 'Enable RJ45s'), + ("preservedir", coreapi.CONF_DATA_TYPE_BOOL, '0', 'On,Off', + 'Preserve session dir'), + ("enablesdt", coreapi.CONF_DATA_TYPE_BOOL, '0', 'On,Off', + 'Enable SDT3D output'), + ] + _confgroups = "Options:1-%d" % len(_confmatrix) + + def __init__(self, session): + ConfigurableManager.__init__(self, session) + self.reset() + + def reset(self): + defaults = self.getdefaultvalues() + for k in self.getnames(): + # value may come from config file + v = self.session.getcfgitem(k) + if v is None: + v = self.valueof(k, defaults) + v = self.offontobool(v) + setattr(self, k, v) + + def configure_values(self, msg, values): + return self.configure_values_keyvalues(msg, values, self, + self.getnames()) + + def configure_request(self, msg, typeflags = coreapi.CONF_TYPE_FLAGS_NONE): + nodenum = msg.gettlv(coreapi.CORE_TLV_CONF_NODE) + values = [] + for k in self.getnames(): + v = getattr(self, k) + if v is None: + v = "" + values.append("%s" % v) + return self.toconfmsg(0, nodenum, typeflags, values) + +class SessionMetaData(ConfigurableManager): + ''' Metadata is simply stored in a configs[] dict. Key=value pairs are + passed in from configure messages destined to the "metadata" object. + The data is not otherwise interpreted or processed. + ''' + _name = "metadata" + _type = coreapi.CORE_TLV_REG_UTILITY + + def configure_values(self, msg, values): + if values is None: + return None + kvs = values.split('|') + for kv in kvs: + try: + (key, value) = kv.split('=', 1) + except ValueError: + raise ValueError, "invalid key in metdata: %s" % kv + self.additem(key, value) + return None + + def configure_request(self, msg, typeflags = coreapi.CONF_TYPE_FLAGS_NONE): + nodenum = msg.gettlv(coreapi.CORE_TLV_CONF_NODE) + values_str = "|".join(map(lambda(k,v): "%s=%s" % (k,v), self.items())) + return self.toconfmsg(0, nodenum, typeflags, values_str) + + def toconfmsg(self, flags, nodenum, typeflags, values_str): + tlvdata = "" + if nodenum is not None: + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_NODE, + nodenum) + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_OBJ, + self._name) + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_TYPE, + typeflags) + datatypes = tuple( map(lambda(k,v): coreapi.CONF_DATA_TYPE_STRING, + self.items()) ) + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_DATA_TYPES, + datatypes) + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_VALUES, + values_str) + msg = coreapi.CoreConfMessage.pack(flags, tlvdata) + return msg + + def additem(self, key, value): + self.configs[key] = value + + def items(self): + return self.configs.iteritems() + +atexit.register(Session.atexit) diff --git a/daemon/core/xen/__init__.py b/daemon/core/xen/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/daemon/core/xen/xen.py b/daemon/core/xen/xen.py new file mode 100644 index 00000000..68b5a64f --- /dev/null +++ b/daemon/core/xen/xen.py @@ -0,0 +1,818 @@ +# +# CORE +# Copyright (c)2011-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +''' +xen.py: implementation of the XenNode and XenVEth classes that support +generating Xen domUs based on an ISO image and persistent configuration area +''' + +from core.netns.vnet import * +from core.netns.vnode import LxcNode +from core.coreobj import PyCoreObj, PyCoreNode, PyCoreNetIf +from core.misc.ipaddr import * +from core.misc.utils import * +from core.constants import * +from core.api import coreapi +from core.netns.vif import TunTap +from core.emane.nodes import EmaneNode + +try: + import parted +except ImportError, e: + #print "Failed to load parted Python module required by Xen support." + #print "Error was:", e + raise ImportError + +import base64 +import crypt +import subprocess +try: + import fsimage +except ImportError, e: + # fix for fsimage under Ubuntu + sys.path.append("/usr/lib/xen-default/lib/python") + try: + import fsimage + except ImportError, e: + #print "Failed to load fsimage Python module required by Xen support." + #print "Error was:", e + raise ImportError + + + +import os +import time +import shutil +import string + +# XXX move these out to config file +AWK_PATH = "/bin/awk" +KPARTX_PATH = "/sbin/kpartx" +LVCREATE_PATH = "/sbin/lvcreate" +LVREMOVE_PATH = "/sbin/lvremove" +LVCHANGE_PATH = "/sbin/lvchange" +MKFSEXT4_PATH = "/sbin/mkfs.ext4" +MKSWAP_PATH = "/sbin/mkswap" +TAR_PATH = "/bin/tar" +SED_PATH = "/bin/sed" +XM_PATH = "/usr/sbin/xm" +UDEVADM_PATH = "/sbin/udevadm" + +class XenVEth(PyCoreNetIf): + def __init__(self, node, name, localname, mtu = 1500, net = None, + start = True, hwaddr = None): + # note that net arg is ignored + PyCoreNetIf.__init__(self, node = node, name = name, mtu = mtu) + self.localname = localname + self.up = False + self.hwaddr = hwaddr + if start: + self.startup() + + def startup(self): + cmd = [XM_PATH, 'network-attach', self.node.vmname, + 'vifname=%s' % self.localname, 'script=vif-core'] + if self.hwaddr is not None: + cmd.append('mac=%s' % self.hwaddr) + check_call(cmd) + check_call([IP_BIN, "link", "set", self.localname, "up"]) + self.up = True + + def shutdown(self): + if not self.up: + return + if self.localname: + if self.hwaddr is not None: + pass + # this should be doable, but some argument isn't a string + #check_call([XM_PATH, 'network-detach', self.node.vmname, + # self.hwaddr]) + self.up = False + + +class XenNode(PyCoreNode): + apitype = coreapi.CORE_NODE_XEN + + FilesToIgnore = frozenset([ + #'ipforward.sh', + 'quaggaboot.sh', + ]) + + FilesRedirection = { + 'ipforward.sh' : '/core-tmp/ipforward.sh', + } + + CmdsToIgnore = frozenset([ + #'sh ipforward.sh', + #'sh quaggaboot.sh zebra', + #'sh quaggaboot.sh ospfd', + #'sh quaggaboot.sh ospf6d', + 'sh quaggaboot.sh vtysh', + 'killall zebra', + 'killall ospfd', + 'killall ospf6d', + 'pidof zebra', 'pidof ospfd', 'pidof ospf6d', + ]) + + def RedirCmd_ipforward(self): + sysctlFile = open(os.path.join(self.mountdir, self.etcdir, + 'sysctl.conf'), 'a') + p1 = subprocess.Popen([AWK_PATH, + '/^\/sbin\/sysctl -w/ {print $NF}', + os.path.join(self.nodedir, + 'core-tmp/ipforward.sh') ], + stdout=sysctlFile) + p1.wait() + sysctlFile.close() + + def RedirCmd_zebra(self): + check_call([SED_PATH, '-i', '-e', 's/^zebra=no/zebra=yes/', + os.path.join(self.mountdir, self.etcdir, 'quagga/daemons')]) + def RedirCmd_ospfd(self): + check_call([SED_PATH, '-i', '-e', 's/^ospfd=no/ospfd=yes/', + os.path.join(self.mountdir, self.etcdir, 'quagga/daemons')]) + def RedirCmd_ospf6d(self): + check_call([SED_PATH, '-i', '-e', + 's/^ospf6d=no/ospf6d=yes/', + os.path.join(self.mountdir, self.etcdir, 'quagga/daemons')]) + + CmdsRedirection = { + 'sh ipforward.sh' : RedirCmd_ipforward, + 'sh quaggaboot.sh zebra' : RedirCmd_zebra, + 'sh quaggaboot.sh ospfd' : RedirCmd_ospfd, + 'sh quaggaboot.sh ospf6d' : RedirCmd_ospf6d, + } + + # CoreNode: no __init__, take from LxcNode & SimpleLxcNode + def __init__(self, session, objid = None, name = None, + nodedir = None, bootsh = "boot.sh", verbose = False, + start = True, model = None, + vgname = None, ramsize = None, disksize = None, + isofile = None): + # SimpleLxcNode initialization + PyCoreNode.__init__(self, session = session, objid = objid, name = name, + verbose = verbose) + self.nodedir = nodedir + self.model = model + # indicates startup() has been invoked and disk has been initialized + self.up = False + # indicates boot() has been invoked and domU is running + self.booted = False + self.ifindex = 0 + self.lock = threading.RLock() + self._netif = {} + # domU name + self.vmname = "c" + str(session.sessionid) + "-" + name + # LVM volume group name + self.vgname = self.getconfigitem('vg_name', vgname) + # LVM logical volume name + self.lvname = self.vmname + '-' + # LVM logical volume device path name + self.lvpath = os.path.join('/dev', self.vgname, self.lvname) + self.disksize = self.getconfigitem('disk_size', disksize) + self.ramsize = int(self.getconfigitem('ram_size', ramsize)) + self.isofile = self.getconfigitem('iso_file', isofile) + # temporary mount point for paused VM persistent filesystem + self.mountdir = None + self.etcdir = self.getconfigitem('etc_path') + + # TODO: remove this temporary hack + self.FilesRedirection['/usr/local/etc/quagga/Quagga.conf'] = \ + os.path.join(self.getconfigitem('mount_path'), self.etcdir, + 'quagga/Quagga.conf') + + # LxcNode initialization + # self.makenodedir() + if self.nodedir is None: + self.nodedir = \ + os.path.join(session.sessiondir, self.name + ".conf") + self.mountdir = self.nodedir + self.getconfigitem('mount_path') + if not os.path.isdir(self.mountdir): + os.makedirs(self.mountdir) + self.tmpnodedir = True + else: + raise Exception, "Xen PVM node requires a temporary nodedir" + self.tmpnodedir = False + self.bootsh = bootsh + if start: + self.startup() + + def getconfigitem(self, name, default=None): + ''' Configuration items come from the xen.conf file and/or input from + the GUI, and are stored in the session using the XenConfigManager + object. self.model is used to identify particular profiles + associated with a node type in the GUI. + ''' + return self.session.xen.getconfigitem(name=name, model=self.model, + node=self, value=default) + + # from class LxcNode (also SimpleLxcNode) + def startup(self): + self.warn("XEN PVM startup() called: preparing disk for %s" % self.name) + self.lock.acquire() + try: + if self.up: + raise Exception, "already up" + self.createlogicalvolume() + self.createpartitions() + persistdev = self.createfilesystems() + check_call([MOUNT_BIN, '-t', 'ext4', persistdev, self.mountdir]) + self.untarpersistent(tarname=self.getconfigitem('persist_tar_iso'), + iso=True) + self.setrootpassword(pw = self.getconfigitem('root_password')) + self.sethostname(old='UBASE', new=self.name) + self.setupssh(keypath=self.getconfigitem('ssh_key_path')) + self.createvm() + self.up = True + finally: + self.lock.release() + + # from class LxcNode (also SimpleLxcNode) + def boot(self): + self.warn("XEN PVM boot() called") + + self.lock.acquire() + if not self.up: + raise Exception, "Can't boot VM without initialized disk" + + if self.booted: + self.lock.release() + return + + self.session.services.bootnodeservices(self) + tarname = self.getconfigitem('persist_tar') + if tarname: + self.untarpersistent(tarname=tarname, iso=False) + + try: + check_call([UMOUNT_BIN, self.mountdir]) + self.unmount_all(self.mountdir) + check_call([UDEVADM_PATH, 'settle']) + check_call([KPARTX_PATH, '-d', self.lvpath]) + + #time.sleep(5) + #time.sleep(1) + + # unpause VM + if self.verbose: + self.warn("XEN PVM boot() unpause domU %s" % self.vmname) + mutecheck_call([XM_PATH, 'unpause', self.vmname]) + + self.booted = True + finally: + self.lock.release() + + def validate(self): + self.session.services.validatenodeservices(self) + + # from class LxcNode (also SimpleLxcNode) + def shutdown(self): + self.warn("XEN PVM shutdown() called") + if not self.up: + return + self.lock.acquire() + try: + if self.up: + # sketch from SimpleLxcNode + for netif in self.netifs(): + netif.shutdown() + + try: + # RJE XXX what to do here + if self.booted: + mutecheck_call([XM_PATH, 'destroy', self.vmname]) + self.booted = False + except OSError: + pass + except subprocess.CalledProcessError: + # ignore this error too, the VM may have exited already + pass + + # discard LVM volume + lvmRemoveCount = 0 + while os.path.exists(self.lvpath): + try: + check_call([UDEVADM_PATH, 'settle']) + mutecall([LVCHANGE_PATH, '-an', self.lvpath]) + lvmRemoveCount += 1 + mutecall([LVREMOVE_PATH, '-f', self.lvpath]) + except OSError: + pass + if (lvmRemoveCount > 1): + self.warn("XEN PVM shutdown() required %d lvremove " \ + "executions." % lvmRemoveCount) + + self._netif.clear() + del self.session + + self.up = False + + finally: + self.rmnodedir() + self.lock.release() + + def createlogicalvolume(self): + ''' Create a logical volume for this Xen domU. Called from startup(). + ''' + if os.path.exists(self.lvpath): + raise Exception, "LVM volume already exists" + mutecheck_call([LVCREATE_PATH, '--size', self.disksize, + '--name', self.lvname, self.vgname]) + + def createpartitions(self): + ''' Partition the LVM volume into persistent and swap partitions + using the parted module. + ''' + dev = parted.Device(path=self.lvpath) + dev.removeFromCache() + disk = parted.freshDisk(dev, 'msdos') + constraint = parted.Constraint(device=dev) + persist_size = int(0.75 * constraint.maxSize); + self.createpartition(device=dev, disk=disk, start=1, + end=(persist_size - 1) , type="ext4") + self.createpartition(device=dev, disk=disk, start=persist_size, + end=(constraint.maxSize - 1) , type="linux-swap(v1)") + disk.commit() + + def createpartition(self, device, disk, start, end, type): + ''' Create a single partition of the specified type and size and add + it to the disk object, using the parted module. + ''' + geo = parted.Geometry(device=device, start=start, end=end) + fs = parted.FileSystem(type=type, geometry=geo) + part = parted.Partition(disk=disk, fs=fs, type=parted.PARTITION_NORMAL, + geometry=geo) + constraint = parted.Constraint(exactGeom=geo) + disk.addPartition(partition=part, constraint=constraint) + + def createfilesystems(self): + ''' Make an ext4 filesystem and swap space. Return the device name for + the persistent partition so we can mount it. + ''' + output = subprocess.Popen([KPARTX_PATH, '-l', self.lvpath], + stdout=subprocess.PIPE).communicate()[0] + lines = output.splitlines() + persistdev = '/dev/mapper/' + lines[0].strip().split(' ')[0].strip() + swapdev = '/dev/mapper/' + lines[1].strip().split(' ')[0].strip() + check_call([KPARTX_PATH, '-a', self.lvpath]) + mutecheck_call([MKFSEXT4_PATH, '-L', 'persist', persistdev]) + mutecheck_call([MKSWAP_PATH, '-f', '-L', 'swap', swapdev]) + return persistdev + + def untarpersistent(self, tarname, iso): + ''' Unpack a persistent template tar file to the mounted mount dir. + Uses fsimage library to read from an ISO file. + ''' + tarname = tarname.replace('%h', self.name) # filename may use hostname + if iso: + try: + fs = fsimage.open(self.isofile, 0) + except IOError, e: + self.warn("Failed to open ISO file: %s (%s)" % (self.isofile,e)) + return + try: + tardata = fs.open_file(tarname).read(); + except IOError, e: + self.warn("Failed to open tar file: %s (%s)" % (tarname, e)) + return + finally: + del fs; + else: + try: + f = open(tarname) + tardata = f.read() + f.close() + except IOError, e: + self.warn("Failed to open tar file: %s (%s)" % (tarname, e)) + return + p = subprocess.Popen([TAR_PATH, '-C', self.mountdir, '--numeric-owner', + '-xf', '-'], stdin=subprocess.PIPE) + p.communicate(input=tardata) + p.wait() + + def setrootpassword(self, pw): + ''' Set the root password by updating the shadow password file that + is on the filesystem mounted in the temporary area. + ''' + saltedpw = crypt.crypt(pw, '$6$'+base64.b64encode(os.urandom(12))) + check_call([SED_PATH, '-i', '-e', + '/^root:/s_^root:\([^:]*\):_root:' + saltedpw + ':_', + os.path.join(self.mountdir, self.etcdir, 'shadow')]) + + def sethostname(self, old, new): + ''' Set the hostname by updating the hostname and hosts files that + reside on the filesystem mounted in the temporary area. + ''' + check_call([SED_PATH, '-i', '-e', 's/%s/%s/' % (old, new), + os.path.join(self.mountdir, self.etcdir, 'hostname')]) + check_call([SED_PATH, '-i', '-e', 's/%s/%s/' % (old, new), + os.path.join(self.mountdir, self.etcdir, 'hosts')]) + + def setupssh(self, keypath): + ''' Configure SSH access by installing host keys and a system-wide + authorized_keys file. + ''' + sshdcfg = os.path.join(self.mountdir, self.etcdir, 'ssh/sshd_config') + check_call([SED_PATH, '-i', '-e', + 's/PermitRootLogin no/PermitRootLogin yes/', sshdcfg]) + sshdir = os.path.join(self.getconfigitem('mount_path'), self.etcdir, + 'ssh') + sshdir = sshdir.replace('/','\\/') # backslash slashes for use in sed + check_call([SED_PATH, '-i', '-e', + 's/#AuthorizedKeysFile %h\/.ssh\/authorized_keys/' + \ + 'AuthorizedKeysFile ' + sshdir + '\/authorized_keys/', + sshdcfg]) + for f in ('ssh_host_rsa_key','ssh_host_rsa_key.pub','authorized_keys'): + src = os.path.join(keypath, f) + dst = os.path.join(self.mountdir, self.etcdir, 'ssh', f) + shutil.copy(src, dst) + if f[-3:] != "pub": + os.chmod(dst, 0600) + + def createvm(self): + ''' Instantiate a *paused* domU VM + Instantiate it now, so we can add network interfaces, + pause it so we can have the filesystem open for configuration. + ''' + args = [XM_PATH, 'create', os.devnull, '--paused'] + args.extend(['name=' + self.vmname, 'memory=' + str(self.ramsize)]) + args.append('disk=tap:aio:' + self.isofile + ',hda,r') + args.append('disk=phy:' + self.lvpath + ',hdb,w') + args.append('bootloader=pygrub') + bootargs = '--kernel=/isolinux/vmlinuz --ramdisk=/isolinux/initrd' + args.append('bootargs=' + bootargs) + for action in ('poweroff', 'reboot', 'suspend', 'crash', 'halt'): + args.append('on_%s=destroy' % action) + args.append('extra=' + self.getconfigitem('xm_create_extra')) + mutecheck_call(args) + + # from class LxcNode + def privatedir(self, path): + #self.warn("XEN PVM privatedir() called") + # Do nothing, Xen PVM nodes are fully private + pass + + # from class LxcNode + def opennodefile(self, filename, mode = "w"): + self.warn("XEN PVM opennodefile() called") + raise Exception, "Can't open VM file with opennodefile()" + + # from class LxcNode + # open a file on a paused Xen node + def openpausednodefile(self, filename, mode = "w"): + dirname, basename = os.path.split(filename) + if not basename: + raise ValueError, "no basename for filename: " + filename + if dirname and dirname[0] == "/": + dirname = dirname[1:] + #dirname = dirname.replace("/", ".") + dirname = os.path.join(self.nodedir, dirname) + if not os.path.isdir(dirname): + os.makedirs(dirname, mode = 0755) + hostfilename = os.path.join(dirname, basename) + return open(hostfilename, mode) + + # from class LxcNode + def nodefile(self, filename, contents, mode = 0644): + if filename in self.FilesToIgnore: + #self.warn("XEN PVM nodefile(filename=%s) ignored" % [filename]) + return + + if filename in self.FilesRedirection: + redirFilename = self.FilesRedirection[filename] + self.warn("XEN PVM nodefile(filename=%s) redirected to %s" % (filename, redirFilename)) + filename = redirFilename + + self.warn("XEN PVM nodefile(filename=%s) called" % [filename]) + self.lock.acquire() + if not self.up: + self.lock.release() + raise Exception, "Can't access VM file as VM disk isn't ready" + return + + if self.booted: + self.lock.release() + raise Exception, "Can't access VM file as VM is already running" + return + + try: + f = self.openpausednodefile(filename, "w") + f.write(contents) + os.chmod(f.name, mode) + f.close() + self.info("created nodefile: '%s'; mode: 0%o" % (f.name, mode)) + finally: + self.lock.release() + + # from class SimpleLxcNode + def alive(self): + # is VM running? + return False # XXX + + def cmd(self, args, wait = True): + cmdAsString = string.join(args, ' ') + if cmdAsString in self.CmdsToIgnore: + #self.warn("XEN PVM cmd(args=[%s]) called and ignored" % cmdAsString) + return 0 + if cmdAsString in self.CmdsRedirection: + self.CmdsRedirection[cmdAsString](self) + return 0 + + self.warn("XEN PVM cmd(args=[%s]) called, but not yet implemented" % cmdAsString) + return 0 + + def cmdresult(self, args): + cmdAsString = string.join(args, ' ') + if cmdAsString in self.CmdsToIgnore: + #self.warn("XEN PVM cmd(args=[%s]) called and ignored" % cmdAsString) + return (0, "") + self.warn("XEN PVM cmdresult(args=[%s]) called, but not yet implemented" % cmdAsString) + return (0, "") + + def popen(self, args): + cmdAsString = string.join(args, ' ') + self.warn("XEN PVM popen(args=[%s]) called, but not yet implemented" % cmdAsString) + return + + def icmd(self, args): + cmdAsString = string.join(args, ' ') + self.warn("XEN PVM icmd(args=[%s]) called, but not yet implemented" % cmdAsString) + return + + def term(self, sh = "/bin/sh"): + self.warn("XEN PVM term() called, but not yet implemented") + return + + def termcmdstring(self, sh = "/bin/sh"): + ''' We may add 'sudo' to the command string because the GUI runs as a + normal user. Use SSH if control interface is available, otherwise + use Xen console with a keymapping for easy login. + ''' + controlifc = None + for ifc in self.netifs(): + if hasattr(ifc, 'control') and ifc.control == True: + controlifc = ifc + break + cmd = "xterm " + # use SSH if control interface is available + if controlifc: + controlip = controlifc.addrlist[0].split('/')[0] + cmd += "-e ssh root@%s" % controlip + return cmd + # otherwise use 'xm console' + #pw = self.getconfigitem('root_password') + #cmd += "-xrm 'XTerm*VT100.translations: #override F1: " + #cmd += "string(\"root\\n\") \\n F2: string(\"%s\\n\")' " % pw + cmd += "-e sudo %s console %s" % (XM_PATH, self.vmname) + return cmd + + def shcmd(self, cmdstr, sh = "/bin/sh"): + self.warn("XEN PVM shcmd(args=[%s]) called, but not yet implemented" % cmdstr) + return + + # from class SimpleLxcNode + def info(self, msg): + if self.verbose: + print "%s: %s" % (self.name, msg) + sys.stdout.flush() + + # from class SimpleLxcNode + def warn(self, msg): + print >> sys.stderr, "%s: %s" % (self.name, msg) + sys.stderr.flush() + + def mount(self, source, target): + self.warn("XEN PVM Nodes can't bind-mount filesystems") + + def umount(self, target): + self.warn("XEN PVM Nodes can't bind-mount filesystems") + + def newifindex(self): + self.lock.acquire() + try: + while self.ifindex in self._netif: + self.ifindex += 1 + ifindex = self.ifindex + self.ifindex += 1 + return ifindex + finally: + self.lock.release() + + def getifindex(self, netif): + for ifindex in self._netif: + if self._netif[ifindex] is netif: + return ifindex + return -1 + + def addnetif(self, netif, ifindex): + self.warn("XEN PVM addnetif() called") + PyCoreNode.addnetif(self, netif, ifindex) + + def delnetif(self, ifindex): + self.warn("XEN PVM delnetif() called") + PyCoreNode.delnetif(self, ifindex) + + def newveth(self, ifindex = None, ifname = None, net = None, hwaddr = None): + self.warn("XEN PVM newveth(ifindex=%s, ifname=%s) called" % + (ifindex, ifname)) + + self.lock.acquire() + try: + if ifindex is None: + ifindex = self.newifindex() + if ifname is None: + ifname = "eth%d" % ifindex + sessionid = self.session.shortsessionid() + name = "n%s.%s.%s" % (self.objid, ifindex, sessionid) + localname = "n%s.%s.%s" % (self.objid, ifname, sessionid) + ifclass = XenVEth + veth = ifclass(node = self, name = name, localname = localname, + mtu = 1500, net = net, hwaddr = hwaddr) + + veth.name = ifname + try: + self.addnetif(veth, ifindex) + except: + veth.shutdown() + del veth + raise + return ifindex + finally: + self.lock.release() + + def newtuntap(self, ifindex = None, ifname = None, net = None): + self.warn("XEN PVM newtuntap() called but not implemented") + + def sethwaddr(self, ifindex, addr): + self._netif[ifindex].sethwaddr(addr) + if self.up: + pass + #self.cmd([IP_BIN, "link", "set", "dev", self.ifname(ifindex), + # "address", str(addr)]) + + def addaddr(self, ifindex, addr): + if self.up: + pass + # self.cmd([IP_BIN, "addr", "add", str(addr), + # "dev", self.ifname(ifindex)]) + self._netif[ifindex].addaddr(addr) + + def deladdr(self, ifindex, addr): + try: + self._netif[ifindex].deladdr(addr) + except ValueError: + self.warn("trying to delete unknown address: %s" % addr) + if self.up: + pass + # self.cmd([IP_BIN, "addr", "del", str(addr), + # "dev", self.ifname(ifindex)]) + + valid_deladdrtype = ("inet", "inet6", "inet6link") + def delalladdr(self, ifindex, addrtypes = valid_deladdrtype): + addr = self.getaddr(self.ifname(ifindex), rescan = True) + for t in addrtypes: + if t not in self.valid_deladdrtype: + raise ValueError, "addr type must be in: " + \ + " ".join(self.valid_deladdrtype) + for a in addr[t]: + self.deladdr(ifindex, a) + # update cached information + self.getaddr(self.ifname(ifindex), rescan = True) + + # Xen PVM relies on boot process to bring up links + #def ifup(self, ifindex): + # if self.up: + # self.cmd([IP_BIN, "link", "set", self.ifname(ifindex), "up"]) + + def newnetif(self, net = None, addrlist = [], hwaddr = None, + ifindex = None, ifname = None): + self.warn("XEN PVM newnetif(ifindex=%s, ifname=%s) called" % + (ifindex, ifname)) + + self.lock.acquire() + + if not self.up: + self.lock.release() + raise Exception, "Can't access add veth as VM disk isn't ready" + return + + if self.booted: + self.lock.release() + raise Exception, "Can't access add veth as VM is already running" + return + + try: + if isinstance(net, EmaneNode): + raise Exception, "Xen PVM doesn't yet support Emane nets" + + # ifindex = self.newtuntap(ifindex = ifindex, ifname = ifname, + # net = net) + # # TUN/TAP is not ready for addressing yet; the device may + # # take some time to appear, and installing it into a + # # namespace after it has been bound removes addressing; + # # save addresses with the interface now + # self.attachnet(ifindex, net) + # netif = self.netif(ifindex) + # netif.sethwaddr(hwaddr) + # for addr in maketuple(addrlist): + # netif.addaddr(addr) + # return ifindex + else: + ifindex = self.newveth(ifindex = ifindex, ifname = ifname, + net = net, hwaddr = hwaddr) + if net is not None: + self.attachnet(ifindex, net) + + rulefile = os.path.join(self.getconfigitem('mount_path'), + self.etcdir, + 'udev/rules.d/70-persistent-net.rules') + f = self.openpausednodefile(rulefile, "a") + f.write('\n# Xen PVM virtual interface #%s %s with MAC address %s\n' % (ifindex, self.ifname(ifindex), hwaddr)) + # Using MAC address as we're now loading PVM net driver "early" + # OLD: Would like to use MAC address, but udev isn't working with paravirtualized NICs. Perhaps the "set hw address" isn't triggering a rescan. + f.write('SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="%s", KERNEL=="eth*", NAME="%s"\n' % (hwaddr, self.ifname(ifindex))) + #f.write('SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", DEVPATH=="/devices/vif-%s/?*", KERNEL=="eth*", NAME="%s"\n' % (ifindex, self.ifname(ifindex))) + f.close() + + if hwaddr: + self.sethwaddr(ifindex, hwaddr) + for addr in maketuple(addrlist): + self.addaddr(ifindex, addr) + #self.ifup(ifindex) + return ifindex + finally: + self.lock.release() + + def connectnode(self, ifname, othernode, otherifname): + self.warn("XEN PVM connectnode() called") + + # tmplen = 8 + # tmp1 = "tmp." + "".join([random.choice(string.ascii_lowercase) + # for x in xrange(tmplen)]) + # tmp2 = "tmp." + "".join([random.choice(string.ascii_lowercase) + # for x in xrange(tmplen)]) + # check_call([IP_BIN, "link", "add", "name", tmp1, + # "type", "veth", "peer", "name", tmp2]) + # + # check_call([IP_BIN, "link", "set", tmp1, "netns", str(self.pid)]) + # self.cmd([IP_BIN, "link", "set", tmp1, "name", ifname]) + # self.addnetif(PyCoreNetIf(self, ifname), self.newifindex()) + # + # check_call([IP_BIN, "link", "set", tmp2, "netns", str(othernode.pid)]) + # othernode.cmd([IP_BIN, "link", "set", tmp2, "name", otherifname]) + # othernode.addnetif(PyCoreNetIf(othernode, otherifname), + # othernode.newifindex()) + + def addfile(self, srcname, filename): + self.lock.acquire() + if not self.up: + self.lock.release() + raise Exception, "Can't access VM file as VM disk isn't ready" + return + + if self.booted: + self.lock.release() + raise Exception, "Can't access VM file as VM is already running" + return + + if filename in self.FilesToIgnore: + #self.warn("XEN PVM addfile(filename=%s) ignored" % [filename]) + return + + if filename in self.FilesRedirection: + redirFilename = self.FilesRedirection[filename] + self.warn("XEN PVM addfile(filename=%s) redirected to %s" % (filename, redirFilename)) + filename = redirFilename + + try: + fin = open(srcname, "r") + contents = fin.read() + fin.close() + + fout = self.openpausednodefile(filename, "w") + fout.write(contents) + os.chmod(fout.name, mode) + fout.close() + self.info("created nodefile: '%s'; mode: 0%o" % (fout.name, mode)) + finally: + self.lock.release() + + self.warn("XEN PVM addfile(filename=%s) called" % [filename]) + + #shcmd = "mkdir -p $(dirname '%s') && mv '%s' '%s' && sync" % \ + # (filename, srcname, filename) + #self.shcmd(shcmd) + + def unmount_all(self, path): + ''' Namespaces inherit the host mounts, so we need to ensure that all + namespaces have unmounted our temporary mount area so that the + kpartx command will succeed. + ''' + # Session.bootnodes() already has self.session._objslock + for o in self.session.objs(): + if not isinstance(o, LxcNode): + continue + o.umount(path) + diff --git a/daemon/core/xen/xenconfig.py b/daemon/core/xen/xenconfig.py new file mode 100644 index 00000000..7e9ad829 --- /dev/null +++ b/daemon/core/xen/xenconfig.py @@ -0,0 +1,265 @@ +# +# CORE +# Copyright (c)2011-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +''' +xenconfig.py: Implementation of the XenConfigManager class for managing +configurable items for XenNodes. + +Configuration for a XenNode is available at these three levels: +Global config: XenConfigManager.configs[0] = (type='xen', values) + Nodes of this machine type have this config. These are the default values. + XenConfigManager.default_config comes from defaults + xen.conf +Node type config: XenConfigManager.configs[0] = (type='mytype', values) + All nodes of this type have this config. +Node-specific config: XenConfigManager.configs[nodenumber] = (type, values) + The node having this specific number has this config. +''' + +import sys, os, threading, subprocess, time, string +import ConfigParser +from xml.dom.minidom import parseString, Document +from core.constants import * +from core.api import coreapi +from core.conf import ConfigurableManager, Configurable + + +class XenConfigManager(ConfigurableManager): + ''' Xen controller object. Lives in a Session instance and is used for + building Xen profiles. + ''' + _name = "xen" + _type = coreapi.CORE_TLV_REG_EMULSRV + + def __init__(self, session): + ConfigurableManager.__init__(self, session) + self.verbose = self.session.getcfgitembool('verbose', False) + self.default_config = XenDefaultConfig(session, objid=None) + self.loadconfigfile() + + def setconfig(self, nodenum, conftype, values): + ''' add configuration values for a node to a dictionary; values are + usually received from a Configuration Message, and may refer to a + node for which no object exists yet + ''' + if nodenum is None: + nodenum = 0 # used for storing the global default config + return ConfigurableManager.setconfig(self, nodenum, conftype, values) + + def getconfig(self, nodenum, conftype, defaultvalues): + ''' get configuration values for a node; if the values don't exist in + our dictionary then return the default values supplied; if conftype + is None then we return a match on any conftype. + ''' + if nodenum is None: + nodenum = 0 # used for storing the global default config + return ConfigurableManager.getconfig(self, nodenum, conftype, + defaultvalues) + + def clearconfig(self, nodenum): + ''' remove configuration values for a node + ''' + ConfigurableManager.clearconfig(self, nodenum) + if 0 in self.configs: + self.configs.pop(0) + + def configure(self, session, msg): + ''' Handle configuration messages for global Xen config. + ''' + return self.default_config.configure(self, msg) + + def loadconfigfile(self, filename=None): + ''' Load defaults from the /etc/core/xen.conf file into dict object. + ''' + if filename is None: + filename = os.path.join(CORE_CONF_DIR, 'xen.conf') + cfg = ConfigParser.SafeConfigParser() + if filename not in cfg.read(filename): + self.session.warn("unable to read Xen config file: %s" % filename) + return + section = "xen" + if not cfg.has_section(section): + self.session.warn("%s is missing a xen section!" % filename) + return + self.configfile = dict(cfg.items(section)) + # populate default config items from config file entries + vals = list(self.default_config.getdefaultvalues()) + names = self.default_config.getnames() + for i in range(len(names)): + if names[i] in self.configfile: + vals[i] = self.configfile[names[i]] + # this sets XenConfigManager.configs[0] = (type='xen', vals) + self.setconfig(None, self.default_config._name, vals) + + def getconfigitem(self, name, model=None, node=None, value=None): + ''' Get a config item of the given name, first looking for node-specific + configuration, then model specific, and finally global defaults. + If a value is supplied, it will override any stored config. + ''' + if value is not None: + return value + n = None + if node: + n = node.objid + (t, v) = self.getconfig(nodenum=n, conftype=model, defaultvalues=None) + if n is not None and v is None: + # get item from default config for the node type + (t, v) = self.getconfig(nodenum=None, conftype=model, + defaultvalues=None) + if v is None: + # get item from default config for the machine type + (t, v) = self.getconfig(nodenum=None, + conftype=self.default_config._name, + defaultvalues=None) + + confignames = self.default_config.getnames() + if v and name in confignames: + i = confignames.index(name) + return v[i] + else: + # name may only exist in config file + if name in self.configfile: + return self.configfile[name] + else: + #self.warn("missing config item '%s'" % name) + return None + + +class XenConfig(Configurable): + ''' Manage Xen configuration profiles. + ''' + + @classmethod + def configure(cls, xen, msg): + ''' Handle configuration messages for setting up a model. + Similar to Configurable.configure(), but considers opaque data + for indicating node types. + ''' + reply = None + nodenum = msg.gettlv(coreapi.CORE_TLV_CONF_NODE) + objname = msg.gettlv(coreapi.CORE_TLV_CONF_OBJ) + conftype = msg.gettlv(coreapi.CORE_TLV_CONF_TYPE) + opaque = msg.gettlv(coreapi.CORE_TLV_CONF_OPAQUE) + + nodetype = objname + if opaque is not None: + opaque_items = opaque.split(':') + if len(opaque_items) != 2: + xen.warn("xen config: invalid opaque data in conf message") + return None + nodetype = opaque_items[1] + + if xen.verbose: + xen.info("received configure message for %s" % nodetype) + if conftype == coreapi.CONF_TYPE_FLAGS_REQUEST: + if xen.verbose: + xen.info("replying to configure request for %s " % nodetype) + # when object name is "all", the reply to this request may be None + # if this node has not been configured for this model; otherwise we + # reply with the defaults for this model + if objname == "all": + typeflags = coreapi.CONF_TYPE_FLAGS_UPDATE + else: + typeflags = coreapi.CONF_TYPE_FLAGS_NONE + values = xen.getconfig(nodenum, nodetype, defaultvalues=None)[1] + if values is None: + # get defaults from default "xen" config which includes + # settings from both cls._confdefaultvalues and xen.conf + defaults = cls.getdefaultvalues() + values = xen.getconfig(nodenum, cls._name, defaults)[1] + if values is None: + return None + # reply with config options + if nodenum is None: + nodenum = 0 + reply = cls.toconfmsg(0, nodenum, typeflags, nodetype, values) + elif conftype == coreapi.CONF_TYPE_FLAGS_RESET: + if objname == "all": + xen.clearconfig(nodenum) + #elif conftype == coreapi.CONF_TYPE_FLAGS_UPDATE: + else: + # store the configuration values for later use, when the XenNode + # object has been created + if objname is None: + xen.info("no configuration object for node %s" % nodenum) + return None + values_str = msg.gettlv(coreapi.CORE_TLV_CONF_VALUES) + if values_str is None: + # use default or preconfigured values + defaults = cls.getdefaultvalues() + values = xen.getconfig(nodenum, cls._name, defaults)[1] + else: + # use new values supplied from the conf message + values = values_str.split('|') + xen.setconfig(nodenum, nodetype, values) + return reply + + @classmethod + def toconfmsg(cls, flags, nodenum, typeflags, nodetype, values): + ''' Convert this class to a Config API message. Some TLVs are defined + by the class, but node number, conf type flags, and values must + be passed in. + ''' + values_str = string.join(values, '|') + tlvdata = "" + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_NODE, nodenum) + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_OBJ, + cls._name) + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_TYPE, + typeflags) + datatypes = tuple( map(lambda x: x[1], cls._confmatrix) ) + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_DATA_TYPES, + datatypes) + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_VALUES, + values_str) + captions = reduce( lambda a,b: a + '|' + b, \ + map(lambda x: x[4], cls._confmatrix)) + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_CAPTIONS, + captions) + possiblevals = reduce( lambda a,b: a + '|' + b, \ + map(lambda x: x[3], cls._confmatrix)) + tlvdata += coreapi.CoreConfTlv.pack( + coreapi.CORE_TLV_CONF_POSSIBLE_VALUES, possiblevals) + if cls._bitmap is not None: + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_BITMAP, + cls._bitmap) + if cls._confgroups is not None: + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_GROUPS, + cls._confgroups) + opaque = "%s:%s" % (cls._name, nodetype) + tlvdata += coreapi.CoreConfTlv.pack(coreapi.CORE_TLV_CONF_OPAQUE, + opaque) + msg = coreapi.CoreConfMessage.pack(flags, tlvdata) + return msg + + +class XenDefaultConfig(XenConfig): + ''' Global default Xen configuration options. + ''' + _name = "xen" + # Configuration items: + # ('name', 'type', 'default', 'possible-value-list', 'caption') + _confmatrix = [ + ('ram_size', coreapi.CONF_DATA_TYPE_STRING, '256', '', + 'ram size (MB)'), + ('disk_size', coreapi.CONF_DATA_TYPE_STRING, '256M', '', + 'disk size (use K/M/G suffix)'), + ('iso_file', coreapi.CONF_DATA_TYPE_STRING, '', '', + 'iso file'), + ('mount_path', coreapi.CONF_DATA_TYPE_STRING, '', '', + 'mount path'), + ('etc_path', coreapi.CONF_DATA_TYPE_STRING, '', '', + 'etc path'), + ('persist_tar_iso', coreapi.CONF_DATA_TYPE_STRING, '', '', + 'iso persist tar file'), + ('persist_tar', coreapi.CONF_DATA_TYPE_STRING, '', '', + 'persist tar file'), + ('root_password', coreapi.CONF_DATA_TYPE_STRING, 'password', '', + 'root password'), + ] + + _confgroups = "domU properties:1-%d" % len(_confmatrix) + diff --git a/daemon/data/core.conf b/daemon/data/core.conf new file mode 100644 index 00000000..3f7b125b --- /dev/null +++ b/daemon/data/core.conf @@ -0,0 +1,40 @@ +# Configuration file for CORE (core-gui, core-daemon) +# + + +### GUI configuration options ### +[core-gui] +# no options are presently defined; see the ~/.core preferences file + +### core-daemon configuration options ### +[core-daemon] +pidfile = /var/run/core-daemon.pid +logfile = /var/log/core-daemon.log +# you may want to change the listenaddr below to 0.0.0.0 +listenaddr = localhost +port = 4038 +numthreads = 1 +verbose = False +quagga_bin_search = "/usr/local/bin /usr/bin /usr/lib/quagga" +quagga_sbin_search = "/usr/local/sbin /usr/sbin /usr/lib/quagga" +# uncomment the following line to load custom services from the specified dir +# this may be a comma-separated list, and directory names should be unique +# and not named 'services' +#custom_services_dir = /home/username/.core/myservices +# establish a control backchannel for accessing nodes (overriden by the session +# option of the same name) +#controlnet = 172.16.0.0/24 +# optional controlnet configuration script, uncomment to activate, and likely edit the script +# controlnet_updown_script = /usr/local/share/core/examples/controlnet_updown +# publish nodes' control IP addresses to /etc/hosts +#update_etc_hosts = True + +# EMANE configuration +emane_platform_port = 8101 +emane_transform_port = 8201 +emane_event_monitor = False +emane_models = RfPipe, Ieee80211abg, CommEffect, Bypass +# EMANE log level range [0,4] default: 2 +#emane_log_level = 2 +emane_realtime = True + diff --git a/daemon/data/xen.conf b/daemon/data/xen.conf new file mode 100644 index 00000000..5077ccc9 --- /dev/null +++ b/daemon/data/xen.conf @@ -0,0 +1,35 @@ +# Configuration file for CORE Xen support +### Xen configuration options ### +[xen] + +### The following three configuration options *must* be specified in this +### system-wide configuration file. +# LVM volume group name for creating new volumes +vg_name = domU +# directory containing an RSA SSH host key and authorized_keys file to use +# within the VM +ssh_key_path = /opt/core-xen/ssh +# extra arguments to pass via 'extra=' option to 'xm create' +xm_create_extra = console=hvc0 rtr_boot=/dev/xvda rtr_boot_fstype=iso9660 rtr_root=/boot/root.img rtr_persist=LABEL=persist rtr_swap=LABEL=swap rtr_overlay_limit=500 + +### The remaining configuration options *may* be specified here. +### If not specified here, they *must* be specified in the user (or scenario's) +### nodes.conf file as profile-specific configuration options. +# domU RAM memory size in MB +ram_size = 256 +# domU disk size in MB +disk_size = 256M +# ISO filesystem to mount as read-only +iso_file = /opt/core-xen/iso-files/rtr.iso +# directory used temporarily as moint point for persistent area, under +# /tmp/pycore.nnnnn/nX.conf/ +mount_path = /rtr/persist +# mount_path + this directory where configuration files are located on the VM +etc_path = config/etc +# name of tar file within the iso_file to unpack to mount_path +persist_tar_iso = persist-template.tar +# name of tar file in dom0 that will be unpacked to mount_path prior to boot +# the string '%h' will be replaced with the hostname (e.g. 'n3' for node 3) +persist_tar = /opt/core-xen/rtr-configs/custom-%%h.tar +# root password to set +root_password = password diff --git a/daemon/doc/Makefile.am b/daemon/doc/Makefile.am new file mode 100644 index 00000000..a02a7790 --- /dev/null +++ b/daemon/doc/Makefile.am @@ -0,0 +1,151 @@ +# CORE +# (c)2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +# Builds html and pdf documentation using Sphinx. +# + +# extra cruft to remove +DISTCLEANFILES = conf.py Makefile.in stamp-vti *.rst + +all: index.rst + +# auto-generated Python documentation using Sphinx +index.rst: + sphinx-apidoc -o . ../core + mv modules.rst index.rst + +###### below this line was generated using sphinx-quickstart ###### + +# Makefile for Sphinx documentation +# + +# You can set these variables from the command line. +SPHINXOPTS = +SPHINXBUILD = sphinx-build +PAPER = +BUILDDIR = _build + +# Internal variables. +PAPEROPT_a4 = -D latex_paper_size=a4 +PAPEROPT_letter = -D latex_paper_size=letter +ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . + +.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest + +help: + @echo "Please use \`make ' where is one of" + @echo " html to make standalone HTML files" + @echo " dirhtml to make HTML files named index.html in directories" + @echo " singlehtml to make a single large HTML file" + @echo " pickle to make pickle files" + @echo " json to make JSON files" + @echo " htmlhelp to make HTML files and a HTML help project" + @echo " qthelp to make HTML files and a qthelp project" + @echo " devhelp to make HTML files and a Devhelp project" + @echo " epub to make an epub" + @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" + @echo " latexpdf to make LaTeX files and run them through pdflatex" + @echo " text to make text files" + @echo " man to make manual pages" + @echo " changes to make an overview of all changed/added/deprecated items" + @echo " linkcheck to check all external links for integrity" + @echo " doctest to run all doctests embedded in the documentation (if enabled)" + +clean: + -rm -rf $(BUILDDIR)/* + +html: + $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html + @echo + @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." + +dirhtml: + $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml + @echo + @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." + +singlehtml: + $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml + @echo + @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml." + +pickle: + $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle + @echo + @echo "Build finished; now you can process the pickle files." + +json: + $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json + @echo + @echo "Build finished; now you can process the JSON files." + +htmlhelp: + $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp + @echo + @echo "Build finished; now you can run HTML Help Workshop with the" \ + ".hhp project file in $(BUILDDIR)/htmlhelp." + +qthelp: + $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp + @echo + @echo "Build finished; now you can run "qcollectiongenerator" with the" \ + ".qhcp project file in $(BUILDDIR)/qthelp, like this:" + @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/CORE.qhcp" + @echo "To view the help file:" + @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/CORE.qhc" + +devhelp: + $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp + @echo + @echo "Build finished." + @echo "To view the help file:" + @echo "# mkdir -p $$HOME/.local/share/devhelp/CORE" + @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/CORE" + @echo "# devhelp" + +epub: + $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub + @echo + @echo "Build finished. The epub file is in $(BUILDDIR)/epub." + +latex: + $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex + @echo + @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex." + @echo "Run \`make' in that directory to run these through (pdf)latex" \ + "(use \`make latexpdf' here to do that automatically)." + +latexpdf: + $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex + @echo "Running LaTeX files through pdflatex..." + make -C $(BUILDDIR)/latex all-pdf + @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." + +text: + $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text + @echo + @echo "Build finished. The text files are in $(BUILDDIR)/text." + +man: + $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man + @echo + @echo "Build finished. The manual pages are in $(BUILDDIR)/man." + +changes: + $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes + @echo + @echo "The overview file is in $(BUILDDIR)/changes." + +linkcheck: + $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck + @echo + @echo "Link check complete; look for any errors in the above output " \ + "or in $(BUILDDIR)/linkcheck/output.txt." + +doctest: + $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest + @echo "Testing of doctests in the sources finished, look at the " \ + "results in $(BUILDDIR)/doctest/output.txt." diff --git a/daemon/doc/conf.py.in b/daemon/doc/conf.py.in new file mode 100644 index 00000000..849cedeb --- /dev/null +++ b/daemon/doc/conf.py.in @@ -0,0 +1,256 @@ +# -*- coding: utf-8 -*- +# +# CORE Python documentation build configuration file, created by +# sphinx-quickstart on Wed Jun 13 10:44:22 2012. +# +# This file is execfile()d with the current directory set to its containing dir. +# +# Note that not all possible configuration values are present in this +# autogenerated file. +# +# All configuration values have a default; values that are commented out +# serve to show the default. + +import sys, os + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +#sys.path.insert(0, os.path.abspath('.')) + +# -- General configuration ----------------------------------------------------- + +# If your documentation needs a minimal Sphinx version, state it here. +#needs_sphinx = '1.0' + +# Add any Sphinx extension module names here, as strings. They can be extensions +# coming with Sphinx (named 'sphinx.ext.*') or your custom ones. +extensions = ['sphinx.ext.autodoc', 'sphinx.ext.todo', 'sphinx.ext.pngmath', 'sphinx.ext.ifconfig'] + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# The suffix of source filenames. +source_suffix = '.rst' + +# The encoding of source files. +#source_encoding = 'utf-8-sig' + +# The master toctree document. +master_doc = 'index' + +# General information about the project. +project = u'CORE Python modules' +copyright = u'2012, core-dev' + +# The version info for the project you're documenting, acts as replacement for +# |version| and |release|, also used in various other places throughout the +# built documents. +# +# The short X.Y version. +version = '@CORE_VERSION@' +# The full version, including alpha/beta/rc tags. +release = '@CORE_VERSION@' + +# The language for content autogenerated by Sphinx. Refer to documentation +# for a list of supported languages. +#language = None + +# There are two options for replacing |today|: either, you set today to some +# non-false value, then it is used: +#today = '' +# Else, today_fmt is used as the format for a strftime call. +#today_fmt = '%B %d, %Y' + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +exclude_patterns = ['_build'] + +# The reST default role (used for this markup: `text`) to use for all documents. +#default_role = None + +# If true, '()' will be appended to :func: etc. cross-reference text. +#add_function_parentheses = True + +# If true, the current module name will be prepended to all description +# unit titles (such as .. function::). +#add_module_names = True + +# If true, sectionauthor and moduleauthor directives will be shown in the +# output. They are ignored by default. +#show_authors = False + +# The name of the Pygments (syntax highlighting) style to use. +pygments_style = 'sphinx' + +# A list of ignored prefixes for module index sorting. +#modindex_common_prefix = [] + + +# -- Options for HTML output --------------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +html_theme = 'default' + +# Theme options are theme-specific and customize the look and feel of a theme +# further. For a list of options available for each theme, see the +# documentation. +#html_theme_options = {} + +# Add any paths that contain custom themes here, relative to this directory. +#html_theme_path = [] + +# The name for this set of Sphinx documents. If None, it defaults to +# " v documentation". +#html_title = None + +# A shorter title for the navigation bar. Default is the same as html_title. +#html_short_title = None + +# The name of an image file (relative to this directory) to place at the top +# of the sidebar. +#html_logo = None + +# The name of an image file (within the static path) to use as favicon of the +# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 +# pixels large. +#html_favicon = None + +# Add any paths that contain custom static files (such as style sheets) here, +# relative to this directory. They are copied after the builtin static files, +# so a file named "default.css" will overwrite the builtin "default.css". +html_static_path = ['_static'] + +# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, +# using the given strftime format. +#html_last_updated_fmt = '%b %d, %Y' + +# If true, SmartyPants will be used to convert quotes and dashes to +# typographically correct entities. +#html_use_smartypants = True + +# Custom sidebar templates, maps document names to template names. +#html_sidebars = {} + +# Additional templates that should be rendered to pages, maps page names to +# template names. +#html_additional_pages = {} + +# If false, no module index is generated. +#html_domain_indices = True + +# If false, no index is generated. +#html_use_index = True + +# If true, the index is split into individual pages for each letter. +#html_split_index = False + +# If true, links to the reST sources are added to the pages. +#html_show_sourcelink = True + +# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. +#html_show_sphinx = True + +# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. +#html_show_copyright = True + +# If true, an OpenSearch description file will be output, and all pages will +# contain a tag referring to it. The value of this option must be the +# base URL from which the finished HTML is served. +#html_use_opensearch = '' + +# This is the file name suffix for HTML files (e.g. ".xhtml"). +#html_file_suffix = None + +# Output file base name for HTML help builder. +htmlhelp_basename = 'COREpythondoc' + + +# -- Options for LaTeX output -------------------------------------------------- + +# The paper size ('letter' or 'a4'). +#latex_paper_size = 'letter' + +# The font size ('10pt', '11pt' or '12pt'). +#latex_font_size = '10pt' + +# Grouping the document tree into LaTeX files. List of tuples +# (source start file, target name, title, author, documentclass [howto/manual]). +latex_documents = [ + ('index', 'index.tex', u'CORE Python Documentation', + u'core-dev', 'manual'), +] + +# The name of an image file (relative to this directory) to place at the top of +# the title page. +#latex_logo = None + +# For "manual" documents, if this is true, then toplevel headings are parts, +# not chapters. +#latex_use_parts = False + +# If true, show page references after internal links. +#latex_show_pagerefs = False + +# If true, show URL addresses after external links. +#latex_show_urls = False + +# Additional stuff for the LaTeX preamble. +#latex_preamble = '' + +# Documents to append as an appendix to all manuals. +#latex_appendices = [] + +# If false, no module index is generated. +#latex_domain_indices = True + + +# -- Options for manual page output -------------------------------------------- + +# One entry per manual page. List of tuples +# (source start file, name, description, authors, manual section). +man_pages = [ + ('index', 'core-python', u'CORE Python Documentation', + [u'core-dev'], 1) +] + + +# -- Options for Epub output --------------------------------------------------- + +# Bibliographic Dublin Core info. +epub_title = u'CORE Python' +epub_author = u'core-dev' +epub_publisher = u'core-dev' +epub_copyright = u'2012, core-dev' + +# The language of the text. It defaults to the language option +# or en if the language is not set. +#epub_language = '' + +# The scheme of the identifier. Typical schemes are ISBN or URL. +#epub_scheme = '' + +# The unique identifier of the text. This can be a ISBN number +# or the project homepage. +#epub_identifier = '' + +# A unique identification for the text. +#epub_uid = '' + +# HTML files that should be inserted before the pages created by sphinx. +# The format is a list of tuples containing the path and title. +#epub_pre_files = [] + +# HTML files shat should be inserted after the pages created by sphinx. +# The format is a list of tuples containing the path and title. +#epub_post_files = [] + +# A list of files that should not be packed into the epub file. +#epub_exclude_files = [] + +# The depth of the table of contents in toc.ncx. +#epub_tocdepth = 3 + +# Allow duplicate toc entries. +#epub_tocdup = True diff --git a/daemon/examples/controlnet_updown b/daemon/examples/controlnet_updown new file mode 100644 index 00000000..796b48c2 --- /dev/null +++ b/daemon/examples/controlnet_updown @@ -0,0 +1,53 @@ +#!/bin/bash +# Sample controlnet up/down script that will be executed when the control +# network is brought up or down. This script either adds an interface to the +# controlnet bridge or adds a permissive iptables firewall rule. + +controlnet_intf=$1 +action=$2 + +config_type=iptables # iptables or brctl + +iptables_address=10.205.15.132 +brctl_intf=eth2 + +BRCTL=/sbin/brctl +IPTABLES=/usr/sbin/iptables + +case "$action" in + startup) + case "$config_type" in + iptables) + $IPTABLES -I FORWARD -i $controlnet_intf -d $iptables_address -j ACCEPT + $IPTABLES -I FORWARD -o $controlnet_intf -s $iptables_address -j ACCEPT + ;; + brctl) + $BRCTL addif $controlnet_intf $brctl_intf + ;; + *) + echo "Invalid config_type $config_type" + ;; + esac + ;; + + shutdown) + case "$config_type" in + iptables) + $IPTABLES -D FORWARD -i $controlnet_intf -d $iptables_address -j ACCEPT + $IPTABLES -D FORWARD -o $controlnet_intf -s $iptables_address -j ACCEPT + ;; + brctl) + $BRCTL delif $controlnet_intf $brctl_intf + ;; + *) + echo "Invalid config_type $config_type" + ;; + esac + ;; + + *) + echo "Invalid action $action" + exit 1 + ;; +esac +exit 0 diff --git a/daemon/examples/emanemodel2core.py b/daemon/examples/emanemodel2core.py new file mode 100755 index 00000000..dd0ffbea --- /dev/null +++ b/daemon/examples/emanemodel2core.py @@ -0,0 +1,187 @@ +#!/usr/bin/env python +# +# CORE +# Copyright (c) 2013 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +''' +emanemodel2core.py: scans an EMANE model source file + (e.g. emane/models/rfpipe/maclayer/rfpipemaclayer.cc) and outputs Python + bindings that allow the model to be used in CORE. + + When using this conversion utility, you should replace XYZ, Xyz, and xyz with + the actual model name. Note the capitalization convention. +''' + +import os, sys, optparse + +MODEL_TEMPLATE_PART1 = """ +# +# CORE +# Copyright (c)2013 Company. +# See the LICENSE file included in this distribution. +# +# author: Name +# +''' +xyz.py: EMANE XYZ model bindings for CORE +''' + +from core.api import coreapi +from emane import EmaneModel +from universal import EmaneUniversalModel + +class EmaneXyzModel(EmaneModel): + def __init__(self, session, objid = None, verbose = False): + EmaneModel.__init__(self, session, objid, verbose) + + # model name + _name = "emane_xyz" + # MAC parameters + _confmatrix_mac = [ +""" + +MODEL_TEMPLATE_PART2 = """ + ] + + # PHY parameters from Universal PHY + _confmatrix_phy = EmaneUniversalModel._confmatrix + + _confmatrix = _confmatrix_mac + _confmatrix_phy + + # value groupings + _confgroups = "XYZ MAC Parameters:1-%d|Universal PHY Parameters:%d-%d" \ + % ( len(_confmatrix_mac), len(_confmatrix_mac) + 1, len(_confmatrix)) + + def buildnemxmlfiles(self, e, ifc): + ''' Build the necessary nem, mac, and phy XMLs in the given path. + If an individual NEM has a nonstandard config, we need to build + that file also. Otherwise the WLAN-wide nXXemane_xyznem.xml, + nXXemane_xyzmac.xml, nXXemane_xyzphy.xml are used. + ''' + values = e.getifcconfig(self.objid, self._name, + self.getdefaultvalues(), ifc) + if values is None: + return + nemdoc = e.xmldoc("nem") + nem = nemdoc.getElementsByTagName("nem").pop() + nem.setAttribute("name", "XYZ NEM") + mactag = nemdoc.createElement("mac") + mactag.setAttribute("definition", self.macxmlname(ifc)) + nem.appendChild(mactag) + phytag = nemdoc.createElement("phy") + phytag.setAttribute("definition", self.phyxmlname(ifc)) + nem.appendChild(phytag) + e.xmlwrite(nemdoc, self.nemxmlname(ifc)) + + names = list(self.getnames()) + macnames = names[:len(self._confmatrix_mac)] + phynames = names[len(self._confmatrix_mac):] + # make any changes to the mac/phy names here to e.g. exclude them from + # the XML output + + macdoc = e.xmldoc("mac") + mac = macdoc.getElementsByTagName("mac").pop() + mac.setAttribute("name", "XYZ MAC") + mac.setAttribute("library", "xyzmaclayer") + # append MAC options to macdoc + map( lambda n: mac.appendChild(e.xmlparam(macdoc, n, \ + self.valueof(n, values))), macnames) + e.xmlwrite(macdoc, self.macxmlname(ifc)) + + phydoc = EmaneUniversalModel.getphydoc(e, self, values, phynames) + e.xmlwrite(phydoc, self.phyxmlname(ifc)) + +""" + +def emane_model_source_to_core(infile, outfile): + do_parse_line = False + output = MODEL_TEMPLATE_PART1 + + with open(infile, 'r') as f: + for line in f: + # begin marker + if "EMANE::ConfigurationDefinition" in line: + do_parse_line = True + # end marker -- all done + if "{0, 0, 0, 0, 0, 0" in line: + break + if do_parse_line: + outstr = convert_line(line) + if outstr is not None: + output += outstr + continue + output += MODEL_TEMPLATE_PART2 + + if outfile == sys.stdout: + sys.stdout.write(output) + else: + with open(outfile, 'w') as f: + f.write(output) + +def convert_line(line): + line = line.strip() + # skip comments + if line.startswith(('/*', '//')): + return None + items = line.strip('{},').split(',') + if len(items) != 7: + #print "continuning on line=", len(items), items + return None + return convert_items_to_line(items) + +def convert_items_to_line(items): + fields = ('required', 'default', 'count', 'name', 'value', 'type', + 'description') + getfield = lambda(x): items[fields.index(x)].strip() + + output = " (" + output += "%s, " % getfield('name') + value = getfield('value') + if value == '"off"': + type = "coreapi.CONF_DATA_TYPE_BOOL" + value = "0" + defaults = '"On,Off"' + elif value == '"on"': + type = "coreapi.CONF_DATA_TYPE_BOOL" + value = '"1"' + defaults = '"On,Off"' + else: + type = "coreapi.CONF_DATA_TYPE_STRING" + defaults = '""' + output += "%s, %s, %s, " % (type, value, defaults) + output += getfield('description') + output += "),\n" + return output + + +def main(): + usagestr = "usage: %prog [-h] [options] -- ..." + parser = optparse.OptionParser(usage = usagestr) + parser.set_defaults(infile = None, outfile = sys.stdout) + + parser.add_option("-i", "--infile", dest = "infile", + help = "file to read (usually '*mac.cc')") + parser.add_option("-o", "--outfile", dest = "outfile", + help = "file to write (stdout is default)") + + def usage(msg = None, err = 0): + sys.stdout.write("\n") + if msg: + sys.stdout.write(msg + "\n\n") + parser.print_help() + sys.exit(err) + + # parse command line options + (options, args) = parser.parse_args() + + if options.infile is None: + usage("please specify input file with the '-i' option", err=1) + + emane_model_source_to_core(options.infile, options.outfile) + + +if __name__ == "__main__": + main() diff --git a/daemon/examples/findcore.py b/daemon/examples/findcore.py new file mode 100755 index 00000000..5c45d52e --- /dev/null +++ b/daemon/examples/findcore.py @@ -0,0 +1,78 @@ +#!/usr/bin/env python +# +# Search for installed CORE library files and Python bindings. +# + +import os, glob + +pythondirs = [ + "/usr/lib/python2.7/site-packages", + "/usr/lib/python2.7/dist-packages", + "/usr/lib64/python2.7/site-packages", + "/usr/lib64/python2.7/dist-packages", + "/usr/local/lib/python2.7/site-packages", + "/usr/local/lib/python2.7/dist-packages", + "/usr/local/lib64/python2.7/site-packages", + "/usr/local/lib64/python2.7/dist-packages", + "/usr/lib/python2.6/site-packages", + "/usr/lib/python2.6/dist-packages", + "/usr/lib64/python2.6/site-packages", + "/usr/lib64/python2.6/dist-packages", + "/usr/local/lib/python2.6/site-packages", + "/usr/local/lib/python2.6/dist-packages", + "/usr/local/lib64/python2.6/site-packages", + "/usr/local/lib64/python2.6/dist-packages", + ] + +tcldirs = [ + "/usr/lib/core", + "/usr/local/lib/core", + ] + +def find_in_file(fn, search, column=None): + ''' Find a line starting with 'search' in the file given by the filename + 'fn'. Return True if found, False if not found, or the column text if + column is specified. + ''' + r = False + if not os.path.exists(fn): + return r + f = open(fn, "r") + for line in f: + if line[:len(search)] != search: + continue + r = True + if column is not None: + r = line.split()[column] + break + f.close() + return r + +def main(): + versions = [] + for d in pythondirs: + fn = "%s/core/constants.py" % d + ver = find_in_file(fn, 'COREDPY_VERSION', 2) + if ver: + ver = ver.strip('"') + versions.append((d, ver)) + for e in glob.iglob("%s/core_python*egg-info" % d): + ver = find_in_file(e, 'Version:', 1) + if ver: + versions.append((e, ver)) + for e in glob.iglob("%s/netns*egg-info" % d): + ver = find_in_file(e, 'Version:', 1) + if ver: + versions.append((e, ver)) + for d in tcldirs: + fn = "%s/version.tcl" % d + ver = find_in_file(fn, 'set CORE_VERSION', 2) + if ver: + versions.append((d, ver)) + + for (d, ver) in versions: + print "%8s %s" % (ver, d) + +if __name__ == "__main__": + main() + diff --git a/daemon/examples/myservices/README.txt b/daemon/examples/myservices/README.txt new file mode 100644 index 00000000..0f92f698 --- /dev/null +++ b/daemon/examples/myservices/README.txt @@ -0,0 +1,26 @@ +This directory contains a sample custom service that you can use as a template +for creating your own services. + +Follow these steps to add your own services: + +1. Modify the sample service MyService to do what you want. It could generate + config/script files, mount per-node directories, start processes/scripts, + etc. sample.py is a Python file that defines one or more classes to be + imported. You can create multiple Python files that will be imported. + Add any new filenames to the __init__.py file. + +2. Put these files in a directory such as /home/username/.core/myservices + Note that the last component of this directory name 'myservices' should not + be named something like 'services' which conflicts with an existing Python + name (the syntax 'from myservices import *' is used). + +3. Add a 'custom_services_dir = /home/username/.core/myservices' entry to the + /etc/core/core.conf file. + +4. Restart the CORE daemon (core-daemon). Any import errors (Python syntax) + should be displayed in the /var/log/core-daemon.log log file (or on screen). + +5. Start using your custom service on your nodes. You can create a new node + type that uses your service, or change the default services for an existing + node type, or change individual nodes. + diff --git a/daemon/examples/myservices/__init__.py b/daemon/examples/myservices/__init__.py new file mode 100644 index 00000000..bfe4afbe --- /dev/null +++ b/daemon/examples/myservices/__init__.py @@ -0,0 +1,7 @@ +"""myservices + +Custom services that you define can be put in this directory. Everything +listed in __all__ is automatically loaded when you add this directory to the +custom_services_dir = '/full/path/to/here' core.conf file option. +""" +__all__ = ["sample"] diff --git a/daemon/examples/myservices/sample.py b/daemon/examples/myservices/sample.py new file mode 100644 index 00000000..6a2c4b9c --- /dev/null +++ b/daemon/examples/myservices/sample.py @@ -0,0 +1,64 @@ +# +# CORE +# Copyright (c)2010-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +''' Sample user-defined service. +''' + +import os + +from core.service import CoreService, addservice +from core.misc.ipaddr import IPv4Prefix, IPv6Prefix + +class MyService(CoreService): + ''' This is a sample user-defined service. + ''' + # a unique name is required, without spaces + _name = "MyService" + # you can create your own group here + _group = "Utility" + # list of other services this service depends on + _depends = () + # per-node directories + _dirs = () + # generated files (without a full path this file goes in the node's dir, + # e.g. /tmp/pycore.12345/n1.conf/) + _configs = ('myservice.sh', ) + # this controls the starting order vs other enabled services + _startindex = 50 + # list of startup commands, also may be generated during startup + _startup = ('sh myservice.sh',) + # list of shutdown commands + _shutdown = () + + @classmethod + def generateconfig(cls, node, filename, services): + ''' Return a string that will be written to filename, or sent to the + GUI for user customization. + ''' + cfg = "#!/bin/sh\n" + cfg += "# auto-generated by MyService (sample.py)\n" + + for ifc in node.netifs(): + cfg += 'echo "Node %s has interface %s"\n' % (node.name, ifc.name) + # here we do something interesting + cfg += "\n".join(map(cls.subnetentry, ifc.addrlist)) + break + return cfg + + @staticmethod + def subnetentry(x): + ''' Generate a subnet declaration block given an IPv4 prefix string + for inclusion in the config file. + ''' + if x.find(":") >= 0: + # this is an IPv6 address + return "" + else: + net = IPv4Prefix(x) + return 'echo " network %s"' % (net) + +# this line is required to add the above class to the list of available services +addservice(MyService) + diff --git a/daemon/examples/netns/basicrange.py b/daemon/examples/netns/basicrange.py new file mode 100755 index 00000000..22a817df --- /dev/null +++ b/daemon/examples/netns/basicrange.py @@ -0,0 +1,74 @@ +#!/usr/bin/python +# +# Copyright (c)2011-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# Test 3D range calculation of the BasicRangeModel by adding n nodes to a WLAN +# stacked 100 units above each other (using z-axis). +# + + +import optparse, sys, os, datetime, time + +from core import pycore +from core.misc import ipaddr +from core.misc.utils import mutecall +from core.mobility import BasicRangeModel +from core.netns.vnet import EbtablesQueue + +def test(numnodes): + # node list + n = [] + prefix = ipaddr.IPv4Prefix("10.83.0.0/16") + session = pycore.Session(persistent = True) + wlanid = numnodes + 1 + net = session.addobj(cls = pycore.nodes.WlanNode, name = "wlan%d" % wlanid, + objid = wlanid, verbose = True) + net.setmodel(BasicRangeModel, BasicRangeModel.getdefaultvalues()) + for i in xrange(1, numnodes + 1): + tmp = session.addobj(cls = pycore.nodes.LxcNode, name = "n%d" % i, + objid = i) + tmp.newnetif(net, ["%s/%s" % (prefix.addr(i), prefix.prefixlen)]) + # set increasing Z coordinates + tmp.setposition(10, 10, 100*i) + n.append(tmp) + + n[0].term("bash") + # wait for rate seconds to allow ebtables commands to commit + time.sleep(EbtablesQueue.rate) + #session.shutdown() + +def main(): + usagestr = "usage: %prog [-h] [options] [args]" + parser = optparse.OptionParser(usage = usagestr) + + parser.set_defaults(numnodes = 2) + parser.add_option("-n", "--numnodes", dest = "numnodes", type = int, + help = "number of nodes to test; default = %s" % + parser.defaults["numnodes"]) + + def usage(msg = None, err = 0): + sys.stdout.write("\n") + if msg: + sys.stdout.write(msg + "\n\n") + parser.print_help() + sys.exit(err) + + # parse command line options + (options, args) = parser.parse_args() + + if options.numnodes < 2: + usage("invalid number of nodes: %s" % options.numnodes) + + for a in args: + sys.stderr.write("ignoring command line argument: '%s'\n" % a) + + start = datetime.datetime.now() + + test(options.numnodes) + + print >> sys.stderr, \ + "elapsed time: %s" % (datetime.datetime.now() - start) + +if __name__ == "__main__": + main() diff --git a/daemon/examples/netns/emane80211.py b/daemon/examples/netns/emane80211.py new file mode 100755 index 00000000..84994196 --- /dev/null +++ b/daemon/examples/netns/emane80211.py @@ -0,0 +1,99 @@ +#!/usr/bin/python -i + +# Copyright (c)2010-2013 the Boeing Company. +# See the LICENSE file included in this distribution. + +# Example CORE Python script that attaches N nodes to an EMANE 802.11abg +# network. One of the parameters is changed, the pathloss mode. + +import sys, datetime, optparse + +from core import pycore +from core.misc import ipaddr +from core.constants import * +from core.emane.ieee80211abg import EmaneIeee80211abgModel + +# node list (count from 1) +n = [None] + +def add_to_server(session): + ''' Add this session to the server's list if this script is executed from + the core-daemon server. + ''' + global server + try: + server.addsession(session) + return True + except NameError: + return False + +def main(): + usagestr = "usage: %prog [-h] [options] [args]" + parser = optparse.OptionParser(usage = usagestr) + parser.set_defaults(numnodes = 5) + + parser.add_option("-n", "--numnodes", dest = "numnodes", type = int, + help = "number of nodes") + + def usage(msg = None, err = 0): + sys.stdout.write("\n") + if msg: + sys.stdout.write(msg + "\n\n") + parser.print_help() + sys.exit(err) + + # parse command line options + (options, args) = parser.parse_args() + + if options.numnodes < 1: + usage("invalid number of nodes: %s" % options.numnodes) + + for a in args: + sys.stderr.write("ignoring command line argument: '%s'\n" % a) + + start = datetime.datetime.now() + + # IP subnet + prefix = ipaddr.IPv4Prefix("10.83.0.0/16") + # session with some EMANE initialization + session = pycore.Session(persistent=True) + session.master = True + session.location.setrefgeo(47.57917,-122.13232,2.00000) + session.location.refscale = 150.0 + session.cfg['emane_models'] = "RfPipe, Ieee80211abg, Bypass, AtdlOmni" + session.emane.loadmodels() + add_to_server(session) + + # EMANE WLAN + print "creating EMANE WLAN wlan1" + wlan = session.addobj(cls = pycore.nodes.EmaneNode, name = "wlan1") + wlan.setposition(x=80,y=50) + names = EmaneIeee80211abgModel.getnames() + values = list(EmaneIeee80211abgModel.getdefaultvalues()) + # TODO: change any of the EMANE 802.11 parameter values here + values[ names.index('pathlossmode') ] = 'pathloss' + session.emane.setconfig(wlan.objid, EmaneIeee80211abgModel._name, values) + services_str = "zebra|OSPFv3MDR|vtysh|IPForward" + + print "creating %d nodes with addresses from %s" % \ + (options.numnodes, prefix) + for i in xrange(1, options.numnodes + 1): + tmp = session.addobj(cls = pycore.nodes.CoreNode, name = "n%d" % i, + objid=i) + tmp.newnetif(wlan, ["%s/%s" % (prefix.addr(i), prefix.prefixlen)]) + tmp.cmd([SYSCTL_BIN, "net.ipv4.icmp_echo_ignore_broadcasts=0"]) + tmp.setposition(x=150*i,y=150) + session.services.addservicestonode(tmp, "", services_str, verbose=False) + n.append(tmp) + + # this starts EMANE, etc. + session.instantiate() + + # start a shell on node 1 + n[1].term("bash") + + print "elapsed time: %s" % (datetime.datetime.now() - start) + +if __name__ == "__main__" or __name__ == "__builtin__": + main() + diff --git a/daemon/examples/netns/howmanynodes.py b/daemon/examples/netns/howmanynodes.py new file mode 100755 index 00000000..efafb107 --- /dev/null +++ b/daemon/examples/netns/howmanynodes.py @@ -0,0 +1,209 @@ +#!/usr/bin/python + +# Copyright (c)2010-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +''' +howmanynodes.py - This is a CORE script that creates network namespace nodes +having one virtual Ethernet interface connected to a bridge. It continues to +add nodes until an exception occurs. The number of nodes per bridge can be +specified. +''' + +import optparse, sys, os, datetime, time, shutil +try: + from core import pycore +except ImportError: + # hack for Fedora autoconf that uses the following pythondir: + if "/usr/lib/python2.6/site-packages" in sys.path: + sys.path.append("/usr/local/lib/python2.6/site-packages") + if "/usr/lib64/python2.6/site-packages" in sys.path: + sys.path.append("/usr/local/lib64/python2.6/site-packages") + if "/usr/lib/python2.7/site-packages" in sys.path: + sys.path.append("/usr/local/lib/python2.7/site-packages") + if "/usr/lib64/python2.7/site-packages" in sys.path: + sys.path.append("/usr/local/lib64/python2.7/site-packages") + from core import pycore +from core.misc import ipaddr +from core.constants import * + +GBD = 1024.0 * 1024.0 + +def linuxversion(): + ''' Return a string having the Linux kernel version. + ''' + f = open('/proc/version', 'r') + v = f.readline().split() + version_str = ' '.join(v[:3]) + f.close() + return version_str + +MEMKEYS = ('total', 'free', 'buff', 'cached', 'stotal', 'sfree') +def memfree(): + ''' Returns kilobytes memory [total, free, buff, cached, stotal, sfree]. + useful stats are: + free memory = free + buff + cached + swap used = stotal - sfree + ''' + f = open('/proc/meminfo', 'r') + lines = f.readlines() + f.close() + kbs = {} + for k in MEMKEYS: + kbs[k] = 0 + for l in lines: + if l[:9] == "MemTotal:": + kbs['total'] = int(l.split()[1]) + elif l[:8] == "MemFree:": + kbs['free'] = int(l.split()[1]) + elif l[:8] == "Buffers:": + kbs['buff'] = int(l.split()[1]) + elif l[:8] == "Cached:": + kbs['cache'] = int(l.split()[1]) + elif l[:10] == "SwapTotal:": + kbs['stotal'] = int(l.split()[1]) + elif l[:9] == "SwapFree:": + kbs['sfree'] = int(l.split()[1]) + break + return kbs + +# node list (count from 1) +nodelist = [None] +switchlist = [] + + +def main(): + usagestr = "usage: %prog [-h] [options] [args]" + parser = optparse.OptionParser(usage = usagestr) + parser.set_defaults(waittime = 0.2, numnodes = 0, bridges = 0, retries = 0, + logfile = None, services = None) + + parser.add_option("-w", "--waittime", dest = "waittime", type = float, + help = "number of seconds to wait between node creation" \ + " (default = %s)" % parser.defaults["waittime"]) + parser.add_option("-n", "--numnodes", dest = "numnodes", type = int, + help = "number of nodes (default = unlimited)") + parser.add_option("-b", "--bridges", dest = "bridges", type = int, + help = "number of nodes per bridge; 0 = one bridge " \ + "(def. = %s)" % parser.defaults["bridges"]) + parser.add_option("-r", "--retry", dest = "retries", type = int, + help = "number of retries on error (default = %s)" % \ + parser.defaults["retries"]) + parser.add_option("-l", "--log", dest = "logfile", type = str, + help = "log memory usage to this file (default = %s)" % \ + parser.defaults["logfile"]) + parser.add_option("-s", "--services", dest = "services", type = str, + help = "pipe-delimited list of services added to each " \ + "node (default = %s)\n(Example: 'zebra|OSPFv2|OSPFv3|" \ + "vtysh|IPForward')" % parser.defaults["services"]) + + def usage(msg = None, err = 0): + sys.stdout.write("\n") + if msg: + sys.stdout.write(msg + "\n\n") + parser.print_help() + sys.exit(err) + + (options, args) = parser.parse_args() + + for a in args: + sys.stderr.write("ignoring command line argument: '%s'\n" % a) + + start = datetime.datetime.now() + prefix = ipaddr.IPv4Prefix("10.83.0.0/16") + + print "Testing how many network namespace nodes this machine can create." + print " - %s" % linuxversion() + mem = memfree() + print " - %.02f GB total memory (%.02f GB swap)" % \ + (mem['total']/GBD, mem['stotal']/GBD) + print " - using IPv4 network prefix %s" % prefix + print " - using wait time of %s" % options.waittime + print " - using %d nodes per bridge" % options.bridges + print " - will retry %d times on failure" % options.retries + print " - adding these services to each node: %s" % options.services + print " " + + lfp = None + if options.logfile is not None: + # initialize a csv log file header + lfp = open(options.logfile, "a") + lfp.write("# log from howmanynodes.py %s\n" % time.ctime()) + lfp.write("# options = %s\n#\n" % options) + lfp.write("# numnodes,%s\n" % ','.join(MEMKEYS)) + lfp.flush() + + session = pycore.Session(persistent=True) + switch = session.addobj(cls = pycore.nodes.SwitchNode) + switchlist.append(switch) + print "Added bridge %s (%d)." % (switch.brname, len(switchlist)) + + i = 0 + retry_count = options.retries + while True: + i += 1 + # optionally add a bridge (options.bridges nodes per bridge) + try: + if options.bridges > 0 and switch.numnetif() >= options.bridges: + switch = session.addobj(cls = pycore.nodes.SwitchNode) + switchlist.append(switch) + print "\nAdded bridge %s (%d) for node %d." % \ + (switch.brname, len(switchlist), i) + except Exception, e: + print "At %d bridges (%d nodes) caught exception:\n%s\n" % \ + (len(switchlist), i-1, e) + break + # create a node + try: + n = session.addobj(cls = pycore.nodes.LxcNode, name = "n%d" % i) + n.newnetif(switch, ["%s/%s" % (prefix.addr(i), prefix.prefixlen)]) + n.cmd([SYSCTL_BIN, "net.ipv4.icmp_echo_ignore_broadcasts=0"]) + if options.services is not None: + session.services.addservicestonode(n, "", options.services, + verbose=False) + n.boot() + nodelist.append(n) + if i % 25 == 0: + print "\n%s nodes created " % i, + mem = memfree() + free = mem['free'] + mem['buff'] + mem['cached'] + swap = mem['stotal'] - mem['sfree'] + print "(%.02f/%.02f GB free/swap)" % (free/GBD , swap/GBD), + if lfp: + lfp.write("%d," % i) + lfp.write("%s\n" % ','.join(str(mem[x]) for x in MEMKEYS)) + lfp.flush() + else: + sys.stdout.write(".") + sys.stdout.flush() + time.sleep(options.waittime) + except Exception, e: + print "At %d nodes caught exception:\n" % i, e + if retry_count > 0: + print "\nWill retry creating node %d." % i + shutil.rmtree(n.nodedir, ignore_errors = True) + retry_count -= 1 + i -= 1 + time.sleep(options.waittime) + continue + else: + print "Stopping at %d nodes!" % i + break + + if i == options.numnodes: + print "Stopping at %d nodes due to numnodes option." % i + break + # node creation was successful at this point + retry_count = options.retries + + if lfp: + lfp.flush() + lfp.close() + + print "elapsed time: %s" % (datetime.datetime.now() - start) + print "Use the core-cleanup script to remove nodes and bridges." + +if __name__ == "__main__": + main() diff --git a/daemon/examples/netns/iperf-performance-chain.py b/daemon/examples/netns/iperf-performance-chain.py new file mode 100755 index 00000000..56b5b537 --- /dev/null +++ b/daemon/examples/netns/iperf-performance-chain.py @@ -0,0 +1,109 @@ +#!/usr/bin/python + +# Copyright (c)2013 the Boeing Company. +# See the LICENSE file included in this distribution. + +# This script creates a CORE session, that will connect n nodes together +# in a chain, with static routes between nodes +# number of nodes / number of hops +# 2 0 +# 3 1 +# 4 2 +# n n - 2 +# +# Use core-cleanup to clean up after this script as the session is left running. +# + +import sys, datetime, optparse + +from core import pycore +from core.misc import ipaddr +from core.constants import * + +# node list (count from 1) +n = [None] + +def add_to_server(session): + ''' Add this session to the server's list if this script is executed from + the core-daemon server. + ''' + global server + try: + server.addsession(session) + return True + except NameError: + return False + +def main(): + usagestr = "usage: %prog [-h] [options] [args]" + parser = optparse.OptionParser(usage = usagestr) + parser.set_defaults(numnodes = 5) + + parser.add_option("-n", "--numnodes", dest = "numnodes", type = int, + help = "number of nodes") + + def usage(msg = None, err = 0): + sys.stdout.write("\n") + if msg: + sys.stdout.write(msg + "\n\n") + parser.print_help() + sys.exit(err) + + # parse command line options + (options, args) = parser.parse_args() + + if options.numnodes < 1: + usage("invalid number of nodes: %s" % options.numnodes) + + if options.numnodes >= 255: + usage("invalid number of nodes: %s" % options.numnodes) + + for a in args: + sys.stderr.write("ignoring command line argument: '%s'\n" % a) + + start = datetime.datetime.now() + + session = pycore.Session(persistent=True) + add_to_server(session) + print "creating %d nodes" % options.numnodes + left = None + prefix = None + for i in xrange(1, options.numnodes + 1): + tmp = session.addobj(cls = pycore.nodes.CoreNode, name = "n%d" % i, + objid=i) + if left: + tmp.newnetif(left, ["%s/%s" % (prefix.addr(2), prefix.prefixlen)]) + + prefix = ipaddr.IPv4Prefix("10.83.%d.0/24" % i) # limit: i < 255 + right = session.addobj(cls = pycore.nodes.PtpNet) + tmp.newnetif(right, ["%s/%s" % (prefix.addr(1), prefix.prefixlen)]) + tmp.cmd([SYSCTL_BIN, "net.ipv4.icmp_echo_ignore_broadcasts=0"]) + tmp.cmd([SYSCTL_BIN, "net.ipv4.conf.all.forwarding=1"]) + tmp.cmd([SYSCTL_BIN, "net.ipv4.conf.default.rp_filter=0"]) + tmp.setposition(x=100*i,y=150) + n.append(tmp) + left = right + + prefixes = map(lambda(x): ipaddr.IPv4Prefix("10.83.%d.0/24" % x), + xrange(1, options.numnodes + 1)) + + # set up static routing in the chain + for i in xrange(1, options.numnodes + 1): + for j in xrange(1, options.numnodes + 1): + if j < i - 1: + gw = prefixes[i-2].addr(1) + elif j > i: + if i > len(prefixes) - 1: + continue + gw = prefixes[i-1].addr(2) + else: + continue + net = prefixes[j-1] + n[i].cmd([IP_BIN, "route", "add", str(net), "via", str(gw)]) + + + print "elapsed time: %s" % (datetime.datetime.now() - start) + +if __name__ == "__main__" or __name__ == "__builtin__": + main() + diff --git a/daemon/examples/netns/iperf-performance.sh b/daemon/examples/netns/iperf-performance.sh new file mode 100755 index 00000000..cd0f5c16 --- /dev/null +++ b/daemon/examples/netns/iperf-performance.sh @@ -0,0 +1,284 @@ +#!/bin/sh +# +# iperf-performance.sh +# +# (c)2013 the Boeing Company +# authors: Jeff Ahrenholz +# +# Utility script to automate several iperf runs. +# + +# number of iperf runs per test +NUMRUNS=10 +# number of seconds per run (10s is iperf default) +RUNTIME=10 +# logging +LOG=/tmp/${0}.log +STAMP=`date +%Y%m%d%H%M%S` + +# +# client---(loopback)---server +# +loopbacktest () { + killall iperf 2> /dev/null + + echo ">> loopback iperf test" + echo "loopback" > ${LOG} + + # start an iperf server in the background + # -s = server + # -y c = CSV output + echo "starting local iperf server" + iperf -s -y c >> ${LOG} & + + # run an iperf client NUMRUNS times + i=1 + while [ $i -le $NUMRUNS ]; do + echo "run $i/$NUMRUNS:" + iperf -t ${RUNTIME} -c localhost + sleep 0.3 + i=$((i+1)) + done + + sleep 1 + echo "stopping local iperf server" + killall -v iperf + +} + +# +# lxc1( client )---veth-pair---lxc2( server ) +# +lxcvethtest () { + SERVERIP=10.0.0.1 + CLIENTIP=10.0.0.2 + SERVER=/tmp/${0}-server + CLIENT=/tmp/${0}-client + + echo ">> lxc veth iperf test" + echo "lxcveth" >> ${LOG} + + echo "starting lxc iperf server" + vnoded -l $SERVER.log -p $SERVER.pid -c $SERVER + ip link add name veth0.1 type veth peer name veth0 + ip link set veth0 netns `cat $SERVER.pid` + vcmd -c $SERVER -- ifconfig veth0 $SERVERIP/24 + vcmd -c $SERVER -- iperf -s -y c >> ${LOG} & + + echo "starting lxc iperf client" + vnoded -l $CLIENT.log -p $CLIENT.pid -c $CLIENT + ip link set veth0.1 netns `cat $CLIENT.pid` + vcmd -c $CLIENT -- ifconfig veth0.1 $CLIENTIP/24 + + i=1 + while [ $i -le $NUMRUNS ]; do + echo "run $i/$NUMRUNS:" + vcmd -c $CLIENT -- iperf -t ${RUNTIME} -c ${SERVERIP} + sleep 0.3 + i=$((i+1)) + done + + sleep 1 + echo "stopping lxc iperf server" + vcmd -c $SERVER -- killall -v iperf + echo "stopping containers" + kill -9 `cat $SERVER.pid` + kill -9 `cat $CLIENT.pid` + + echo "cleaning up" + rm -f ${SERVER}* + rm -f ${CLIENT}* +} + +# +# lxc1( client veth:):veth---bridge---veth:(:veth server )lxc2 +# +lxcbrtest () { + SERVERIP=10.0.0.1 + CLIENTIP=10.0.0.2 + SERVER=/tmp/${0}-server + CLIENT=/tmp/${0}-client + BRIDGE="lxcbrtest" + + echo ">> lxc bridge iperf test" + echo "lxcbr" >> ${LOG} + + echo "building bridge" + brctl addbr $BRIDGE + brctl stp $BRIDGE off # disable spanning tree protocol + brctl setfd $BRIDGE 0 # disable forwarding delay + ip link set $BRIDGE up + + echo "starting lxc iperf server" + vnoded -l $SERVER.log -p $SERVER.pid -c $SERVER + ip link add name veth0.1 type veth peer name veth0 + ip link set veth0 netns `cat $SERVER.pid` + vcmd -c $SERVER -- ifconfig veth0 $SERVERIP/24 + brctl addif $BRIDGE veth0.1 + ip link set veth0.1 up + vcmd -c $SERVER -- iperf -s -y c >> ${LOG} & + + echo "starting lxc iperf client" + vnoded -l $CLIENT.log -p $CLIENT.pid -c $CLIENT + ip link add name veth1.1 type veth peer name veth1 + ip link set veth1 netns `cat $CLIENT.pid` + vcmd -c $CLIENT -- ifconfig veth1 $CLIENTIP/24 + brctl addif $BRIDGE veth1.1 + ip link set veth1.1 up + + i=1 + while [ $i -le $NUMRUNS ]; do + echo "run $i/$NUMRUNS:" + vcmd -c $CLIENT -- iperf -t ${RUNTIME} -c ${SERVERIP} + sleep 0.3 + i=$((i+1)) + done + + sleep 1 + echo "stopping lxc iperf server" + vcmd -c $SERVER -- killall -v iperf + echo "stopping containers" + kill -9 `cat $SERVER.pid` + kill -9 `cat $CLIENT.pid` + + echo "cleaning up" + ip link set $BRIDGE down + brctl delbr $BRIDGE + rm -f ${SERVER}* + rm -f ${CLIENT}* +} + +# +# n1---n2---n3--- ... ---nN +# N nodes (N-2 hops) in chain with static routing +# +chaintest () { + NUMNODES=$1 + SERVERIP=10.83.$NUMNODES.1 + + if [ -d /tmp/pycore.* ]; then + echo "/tmp/pycore.* already exists, skipping chaintest $NUMNODES" + return + fi + + echo ">> n=$NUMNODES node chain iperf test" + echo "chain$NUMNODES" >> ${LOG} + + echo "running external chain CORE script with '-n $NUMNODES'" + python iperf-performance-chain.py -n $NUMNODES + + echo "starting lxc iperf server on node $NUMNODES" + vcmd -c /tmp/pycore.*/n$NUMNODES -- iperf -s -y c >> ${LOG} & + + echo "starting lxc iperf client" + i=1 + while [ $i -le $NUMRUNS ]; do + echo "run $i/$NUMRUNS:" + vcmd -c /tmp/pycore.*/n1 -- iperf -t ${RUNTIME} -c ${SERVERIP} + sleep 0.3 + i=$((i+1)) + done + + sleep 1 + echo "stopping lxc iperf server" + vcmd -c /tmp/pycore.*/n$NUMNODES -- killall -v iperf + echo "cleaning up" + core-cleanup +} +if [ "z$1" != "z" ]; then + echo "This script takes no parameters and must be run as root." + exit 1 +fi +if [ `id -u` != 0 ]; then + echo "This script must be run as root." + exit 1 +fi + + +# +# N lxc clients >---bridge---veth:(:veth server ) +# +clientstest () { + NUMCLIENTS=$1 + SERVERIP=10.0.0.1 + SERVER=/tmp/${0}-server + BRIDGE="lxcbrtest" + + echo ">> n=$NUMCLIENTS clients iperf test" + echo "clients$NUMCLIENTS" >> ${LOG} + + echo "building bridge" + brctl addbr $BRIDGE + brctl stp $BRIDGE off # disable spanning tree protocol + brctl setfd $BRIDGE 0 # disable forwarding delay + ip link set $BRIDGE up + + echo "starting lxc iperf server" + vnoded -l $SERVER.log -p $SERVER.pid -c $SERVER + ip link add name veth0.1 type veth peer name veth0 + ip link set veth0 netns `cat $SERVER.pid` + vcmd -c $SERVER -- ifconfig veth0 $SERVERIP/24 + brctl addif $BRIDGE veth0.1 + ip link set veth0.1 up + vcmd -c $SERVER -- iperf -s -y c >> ${LOG} & + + i=1 + CLIENTS="" + while [ $i -le $NUMCLIENTS ]; do + echo "starting lxc iperf client $i/$NUMCLIENTS" + CLIENT=/tmp/${0}-client$i + CLIENTIP=10.0.0.1$i + vnoded -l $CLIENT.log -p $CLIENT.pid -c $CLIENT + ip link add name veth1.$i type veth peer name veth1 + ip link set veth1 netns `cat $CLIENT.pid` + vcmd -c $CLIENT -- ifconfig veth1 $CLIENTIP/24 + brctl addif $BRIDGE veth1.$i + ip link set veth1.$i up + i=$((i+1)) + CLIENTS="$CLIENTS $CLIENT" + done + + j=1 + while [ $j -le $NUMRUNS ]; do + echo "run $j/$NUMRUNS iperf:" + for CLIENT in $CLIENTS; do + vcmd -c $CLIENT -- iperf -t ${RUNTIME} -c ${SERVERIP} & + done + sleep ${RUNTIME} 1 + j=$((j+1)) + done + + sleep 1 + echo "stopping lxc iperf server" + vcmd -c $SERVER -- killall -v iperf + echo "stopping containers" + kill -9 `cat $SERVER.pid` + for CLIENT in $CLIENTS; do + kill -9 `cat $CLIENT.pid` + done + # time needed for processes/containers to shut down + sleep 2 + + echo "cleaning up" + ip link set $BRIDGE down + brctl delbr $BRIDGE + rm -f ${SERVER}* + rm -f /tmp/${0}-client* + # time needed for bridge clean-up + sleep 1 +} + +# +# run all tests +# +loopbacktest +lxcvethtest +lxcbrtest +chaintest 5 +chaintest 10 +clientstest 5 +clientstest 10 +clientstest 15 + +mv ${LOG} ${PWD}/${0}-${STAMP}.log +echo "===> results in ${PWD}/${0}-${STAMP}.log" diff --git a/daemon/examples/netns/ospfmanetmdrtest.py b/daemon/examples/netns/ospfmanetmdrtest.py new file mode 100755 index 00000000..3badcf2a --- /dev/null +++ b/daemon/examples/netns/ospfmanetmdrtest.py @@ -0,0 +1,572 @@ +#!/usr/bin/python + +# Copyright (c)2011-2012 the Boeing Company. +# See the LICENSE file included in this distribution. + +# create a random topology running OSPFv3 MDR, wait and then check +# that all neighbor states are either full or two-way, and check the routes +# in zebra vs those installed in the kernel. + +import os, sys, random, time, optparse, datetime +from string import Template +try: + from core import pycore +except ImportError: + # hack for Fedora autoconf that uses the following pythondir: + if "/usr/lib/python2.6/site-packages" in sys.path: + sys.path.append("/usr/local/lib/python2.6/site-packages") + if "/usr/lib64/python2.6/site-packages" in sys.path: + sys.path.append("/usr/local/lib64/python2.6/site-packages") + if "/usr/lib/python2.7/site-packages" in sys.path: + sys.path.append("/usr/local/lib/python2.7/site-packages") + if "/usr/lib64/python2.7/site-packages" in sys.path: + sys.path.append("/usr/local/lib64/python2.7/site-packages") + from core import pycore +from core.misc import ipaddr +from core.misc.utils import mutecall +from core.constants import QUAGGA_STATE_DIR + +# sanity check that zebra is installed +try: + mutecall(["zebra", "-u", "root", "-g", "root", "-v"]) +except OSError: + sys.stderr.write("ERROR: running zebra failed\n") + sys.exit(1) + +class ManetNode(pycore.nodes.LxcNode): + """ An Lxc namespace node configured for Quagga OSPFv3 MANET MDR + """ + conftemp = Template("""\ +interface eth0 + ip address $ipaddr + ipv6 ospf6 instance-id 65 + ipv6 ospf6 hello-interval 2 + ipv6 ospf6 dead-interval 6 + ipv6 ospf6 retransmit-interval 5 + ipv6 ospf6 network manet-designated-router + ipv6 ospf6 diffhellos + ipv6 ospf6 adjacencyconnectivity biconnected + ipv6 ospf6 lsafullness mincostlsa +! +router ospf6 + router-id $routerid + interface eth0 area 0.0.0.0 +! +ip forwarding +""") + + def __init__(self, core, ipaddr, routerid = None, + objid = None, name = None, nodedir = None): + if routerid is None: + routerid = ipaddr.split("/")[0] + self.ipaddr = ipaddr + self.routerid = routerid + pycore.nodes.LxcNode.__init__(self, core, objid, name, nodedir) + self.privatedir(self.confdir) + self.privatedir(QUAGGA_STATE_DIR) + + def qconf(self): + return self.conftemp.substitute(ipaddr = self.ipaddr, + routerid = self.routerid) + + def config(self): + filename = os.path.join(self.confdir, "Quagga.conf") + f = self.opennodefile(filename, "w") + f.write(self.qconf()) + f.close() + pycore.nodes.LxcNode.config(self) + + def bootscript(self): + return """\ +#!/bin/sh -e + +STATEDIR=%s + +waitfile() +{ + fname=$1 + + i=0 + until [ -e $fname ]; do + i=$(($i + 1)) + if [ $i -eq 10 ]; then + echo "file not found: $fname" >&2 + exit 1 + fi + sleep 0.1 + done +} + +mkdir -p $STATEDIR + +zebra -d -u root -g root +waitfile $STATEDIR/zebra.vty + +ospf6d -d -u root -g root +waitfile $STATEDIR/ospf6d.vty + +vtysh -b +""" % QUAGGA_STATE_DIR + +class Route(object): + """ Helper class for organzing routing table entries. """ + def __init__(self, prefix = None, gw = None, metric = None): + try: + self.prefix = ipaddr.IPv4Prefix(prefix) + except Exception, e: + raise ValueError, "Invalid prefix given to Route object: %s\n%s" % \ + (prefix, e) + self.gw = gw + self.metric = metric + + def __eq__(self, other): + try: + return self.prefix == other.prefix and self.gw == other.gw and \ + self.metric == other.metric + except: + return False + + def __str__(self): + return "(%s,%s,%s)" % (self.prefix, self.gw, self.metric) + + @staticmethod + def key(r): + if not r.prefix: + return 0 + return r.prefix.prefix + + +class ManetExperiment(object): + """ A class for building an MDR network and checking and logging its state. + """ + def __init__(self, options, start): + """ Initialize with options and start time. """ + self.session = None + # node list + self.nodes = [] + # WLAN network + self.net = None + self.verbose = options.verbose + # dict from OptionParser + self.options = options + self.start = start + self.logbegin() + + def info(self, msg): + ''' Utility method for writing output to stdout. ''' + print msg + sys.stdout.flush() + self.log(msg) + + def warn(self, msg): + ''' Utility method for writing output to stderr. ''' + print >> sys.stderr, msg + sys.stderr.flush() + self.log(msg) + + def logbegin(self): + """ Start logging. """ + self.logfp = None + if not self.options.logfile: + return + self.logfp = open(self.options.logfile, "w") + self.log("ospfmanetmdrtest begin: %s\n" % self.start.ctime()) + + def logend(self): + """ End logging. """ + if not self.logfp: + return + end = datetime.datetime.now() + self.log("ospfmanetmdrtest end: %s (%s)\n" % \ + (end.ctime(), end - self.start)) + self.logfp.flush() + self.logfp.close() + self.logfp = None + + def log(self, msg): + """ Write to the log file, if any. """ + if not self.logfp: + return + print >> self.logfp, msg + + def logdata(self, nbrs, mdrs, lsdbs, krs, zrs): + """ Dump experiment parameters and data to the log file. """ + self.log("ospfmantetmdrtest data:") + self.log("----- parameters -----") + self.log("%s" % self.options) + self.log("----- neighbors -----") + for rtrid in sorted(nbrs.keys()): + self.log("%s: %s" % (rtrid, nbrs[rtrid])) + self.log("----- mdr levels -----") + self.log(mdrs) + self.log("----- link state databases -----") + for rtrid in sorted(lsdbs.keys()): + self.log("%s lsdb:" % rtrid) + for line in lsdbs[rtrid].split("\n"): + self.log(line) + self.log("----- kernel routes -----") + for rtrid in sorted(krs.keys()): + msg = rtrid + ": " + for rt in krs[rtrid]: + msg += "%s" % rt + self.log(msg) + self.log("----- zebra routes -----") + for rtrid in sorted(zrs.keys()): + msg = rtrid + ": " + for rt in zrs[rtrid]: + msg += "%s" % rt + self.log(msg) + + def topology(self, numnodes, linkprob, verbose = False): + """ Build a topology consisting of the given number of ManetNodes + connected to a WLAN and probabilty of links and set + the session, WLAN, and node list objects. + """ + # IP subnet + prefix = ipaddr.IPv4Prefix("10.14.0.0/16") + self.session = pycore.Session() + # emulated network + self.net = self.session.addobj(cls = pycore.nodes.WlanNode) + for i in xrange(1, numnodes + 1): + addr = "%s/%s" % (prefix.addr(i), 32) + tmp = self.session.addobj(cls = ManetNode, ipaddr = addr, name = "n%d" % i) + tmp.newnetif(self.net, [addr]) + self.nodes.append(tmp) + # connect nodes with probability linkprob + for i in xrange(numnodes): + for j in xrange(i + 1, numnodes): + r = random.random() + if r < linkprob: + if self.verbose: + self.info("linking (%d,%d)" % (i, j)) + self.net.link(self.nodes[i].netif(0), self.nodes[j].netif(0)) + # force one link to avoid partitions (should check if this is needed) + j = i + while j == i: + j = random.randint(0, numnodes - 1) + if self.verbose: + self.info("linking (%d,%d)" % (i, j)) + self.net.link(self.nodes[i].netif(0), self.nodes[j].netif(0)) + self.nodes[i].boot() + # run the boot.sh script on all nodes to start Quagga + for i in xrange(numnodes): + self.nodes[i].cmd(["./%s" % self.nodes[i].bootsh]) + + def compareroutes(self, node, kr, zr): + """ Compare two lists of Route objects. + """ + kr.sort(key=Route.key) + zr.sort(key=Route.key) + if kr != zr: + self.warn("kernel and zebra routes differ") + if self.verbose: + msg = "kernel: " + for r in kr: + msg += "%s " % r + msg += "\nzebra: " + for r in zr: + msg += "%s " % r + self.warn(msg) + else: + self.info(" kernel and zebra routes match") + + def comparemdrlevels(self, nbrs, mdrs): + """ Check that all routers form a connected dominating set, i.e. all + routers are either MDR, BMDR, or adjacent to one. + """ + msg = "All routers form a CDS" + for n in self.nodes: + if mdrs[n.routerid] != "OTHER": + continue + connected = False + for nbr in nbrs[n.routerid]: + if mdrs[nbr] == "MDR" or mdrs[nbr] == "BMDR": + connected = True + break + if not connected: + msg = "All routers do not form a CDS" + self.warn("XXX %s: not in CDS; neighbors: %s" % \ + (n.routerid, nbrs[n.routerid])) + if self.verbose: + self.info(msg) + + def comparelsdbs(self, lsdbs): + """ Check LSDBs for consistency. + """ + msg = "LSDBs of all routers are consistent" + prev = self.nodes[0] + for n in self.nodes: + db = lsdbs[n.routerid] + if lsdbs[prev.routerid] != db: + msg = "LSDBs of all routers are not consistent" + self.warn("XXX LSDBs inconsistent for %s and %s" % \ + (n.routerid, prev.routerid)) + i = 0 + for entry in lsdbs[n.routerid].split("\n"): + preventries = lsdbs[prev.routerid].split("\n") + try: + preventry = preventries[i] + except IndexError: + preventry = None + if entry != preventry: + self.warn("%s: %s" % (n.routerid, entry)) + self.warn("%s: %s" % (prev.routerid, preventry)) + i += 1 + prev = n + if self.verbose: + self.info(msg) + + def checknodes(self): + """ Check the neighbor state and routing tables of all nodes. """ + nbrs = {} + mdrs = {} + lsdbs = {} + krs = {} + zrs = {} + v = self.verbose + for n in self.nodes: + self.info("checking %s" % n.name) + nbrs[n.routerid] = Ospf6NeighState(n, verbose=v).run() + krs[n.routerid] = KernelRoutes(n, verbose=v).run() + zrs[n.routerid] = ZebraRoutes(n, verbose=v).run() + self.compareroutes(n, krs[n.routerid], zrs[n.routerid]) + mdrs[n.routerid] = Ospf6MdrLevel(n, verbose=v).run() + lsdbs[n.routerid] = Ospf6Database(n, verbose=v).run() + self.comparemdrlevels(nbrs, mdrs) + self.comparelsdbs(lsdbs) + self.logdata(nbrs, mdrs, lsdbs, krs, zrs) + +class Cmd: + """ Helper class for running a command on a node and parsing the result. """ + args = "" + def __init__(self, node, verbose=False): + """ Initialize with a CoreNode (LxcNode) """ + self.id = None + self.stdin = None + self.out = None + self.node = node + self.verbose = verbose + + def info(self, msg): + ''' Utility method for writing output to stdout.''' + print msg + sys.stdout.flush() + + def warn(self, msg): + ''' Utility method for writing output to stderr. ''' + print >> sys.stderr, "XXX %s:" % self.node.routerid, msg + sys.stderr.flush() + + def run(self): + """ This is the primary method used for running this command. """ + self.open() + r = self.parse() + self.cleanup() + return r + + def open(self): + """ Exceute call to node.popen(). """ + self.id, self.stdin, self.out, self.err = \ + self.node.popen((self.args)) + + def parse(self): + """ This method is overloaded by child classes and should return some + result. + """ + return None + + def cleanup(self): + """ Close the Popen channels.""" + self.stdin.close() + self.out.close() + self.err.close() + tmp = self.id.wait() + if tmp: + self.warn("nonzero exit status:", tmp) + +class VtyshCmd(Cmd): + """ Runs a vtysh command. """ + def open(self): + args = ("vtysh", "-c", self.args) + self.id, self.stdin, self.out, self.err = self.node.popen((args)) + +class Ospf6NeighState(VtyshCmd): + """ Check a node for OSPFv3 neighbors in the full/two-way states. """ + args = "show ipv6 ospf6 neighbor" + + def parse(self): + self.out.readline() # skip first line + nbrlist = [] + for line in self.out: + field = line.split() + nbr = field[0] + state = field[3].split("/")[0] + if not state.lower() in ("full", "twoway"): + self.warn("neighbor %s state: %s" % (nbr, state)) + nbrlist.append(nbr) + + if len(nbrlist) == 0: + self.warn("no neighbors") + if self.verbose: + self.info(" %s has %d neighbors" % (self.node.routerid, len(nbrlist))) + return nbrlist + +class Ospf6MdrLevel(VtyshCmd): + """ Retrieve the OSPFv3 MDR level for a node. """ + args = "show ipv6 ospf6 mdrlevel" + + def parse(self): + line = self.out.readline() + # TODO: handle multiple interfaces + field = line.split() + mdrlevel = field[4] + if not mdrlevel in ("MDR", "BMDR", "OTHER"): + self.warn("mdrlevel: %s" % mdrlevel) + if self.verbose: + self.info(" %s is %s" % (self.node.routerid, mdrlevel)) + return mdrlevel + +class Ospf6Database(VtyshCmd): + """ Retrieve the OSPFv3 LSDB summary for a node. """ + args = "show ipv6 ospf6 database" + + def parse(self): + db = "" + for line in self.out: + field = line.split() + if len(field) < 8: + continue + # filter out Age and Duration columns + filtered = field[:3] + field[4:7] + db += " ".join(filtered) + "\n" + return db + +class ZebraRoutes(VtyshCmd): + """ Return a list of Route objects for a node based on its zebra + routing table. + """ + args = "show ip route" + + def parse(self): + for i in xrange(0,3): + self.out.readline() # skip first three lines + r = [] + prefix = None + for line in self.out: + field = line.split() + # only use OSPFv3 selected FIB routes + if field[0][:2] == "o>": + prefix = field[1] + metric = field[2].split("/")[1][:-1] + if field[0][2:] != "*": + continue + if field[3] == "via": + gw = field[4][:-1] + else: + gw = field[6][:-1] + r.append(Route(prefix, gw, metric)) + prefix = None + elif prefix and field[0] == "*": + # already have prefix and metric from previous line + gw = field[2][:-1] + r.append(Route(prefix, gw, metric)) + prefix = None + + if len(r) == 0: + self.warn("no zebra routes") + if self.verbose: + self.info(" %s has %d zebra routes" % (self.node.routerid, len(r))) + return r + +class KernelRoutes(Cmd): + """ Return a list of Route objects for a node based on its kernel + routing table. + """ + args = ("/sbin/ip", "route", "show") + + def parse(self): + r = [] + prefix = None + for line in self.out: + field = line.split() + if field[0] == "nexthop": + if not prefix: + # this saves only the first nexthop entry if multiple exist + continue + else: + prefix = field[0] + metric = field[-1] + tmp = prefix.split("/") + if len(tmp) < 2: + prefix += "/32" + if field[1] == "proto": + # nexthop entry is on the next line + continue + gw = field[2] # nexthop IP or interface + r.append(Route(prefix, gw, metric)) + prefix = None + + if len(r) == 0: + self.warn("no kernel routes") + if self.verbose: + self.info(" %s has %d kernel routes" % (self.node.routerid, len(r))) + return r + +def main(): + usagestr = "usage: %prog [-h] [options] [args]" + parser = optparse.OptionParser(usage = usagestr) + parser.set_defaults(numnodes = 10, linkprob = 0.35, delay = 20, seed = None) + + parser.add_option("-n", "--numnodes", dest = "numnodes", type = int, + help = "number of nodes") + parser.add_option("-p", "--linkprob", dest = "linkprob", type = float, + help = "link probabilty") + parser.add_option("-d", "--delay", dest = "delay", type = float, + help = "wait time before checking") + parser.add_option("-s", "--seed", dest = "seed", type = int, + help = "specify integer to use for random seed") + parser.add_option("-v", "--verbose", dest = "verbose", + action = "store_true", help = "be more verbose") + parser.add_option("-l", "--logfile", dest = "logfile", type = str, + help = "log detailed output to the specified file") + + def usage(msg = None, err = 0): + sys.stdout.write("\n") + if msg: + sys.stdout.write(msg + "\n\n") + parser.print_help() + sys.exit(err) + + # parse command line options + (options, args) = parser.parse_args() + + if options.numnodes < 2: + usage("invalid numnodes: %s" % options.numnodes) + if options.linkprob <= 0.0 or options.linkprob > 1.0: + usage("invalid linkprob: %s" % options.linkprob) + if options.delay < 0.0: + usage("invalid delay: %s" % options.delay) + + for a in args: + sys.stderr.write("ignoring command line argument: '%s'\n" % a) + + if options.seed: + random.seed(options.seed) + + me = ManetExperiment(options = options, start=datetime.datetime.now()) + me.info("creating topology: numnodes = %s; linkprob = %s" % \ + (options.numnodes, options.linkprob)) + me.topology(options.numnodes, options.linkprob) + + me.info("waiting %s sec" % options.delay) + time.sleep(options.delay) + me.info("checking neighbor state and routes") + me.checknodes() + me.info("done") + me.info("elapsed time: %s" % (datetime.datetime.now() - me.start)) + me.logend() + + return me + +if __name__ == "__main__": + me = main() diff --git a/daemon/examples/netns/switch.py b/daemon/examples/netns/switch.py new file mode 100755 index 00000000..3ff1111d --- /dev/null +++ b/daemon/examples/netns/switch.py @@ -0,0 +1,78 @@ +#!/usr/bin/python -i + +# Copyright (c)2010-2013 the Boeing Company. +# See the LICENSE file included in this distribution. + +# connect n nodes to a virtual switch/hub + +import sys, datetime, optparse + +from core import pycore +from core.misc import ipaddr +from core.constants import * + +# node list (count from 1) +n = [None] + +def add_to_server(session): + ''' Add this session to the server's list if this script is executed from + the core-daemon server. + ''' + global server + try: + server.addsession(session) + return True + except NameError: + return False + +def main(): + usagestr = "usage: %prog [-h] [options] [args]" + parser = optparse.OptionParser(usage = usagestr) + parser.set_defaults(numnodes = 5) + + parser.add_option("-n", "--numnodes", dest = "numnodes", type = int, + help = "number of nodes") + + def usage(msg = None, err = 0): + sys.stdout.write("\n") + if msg: + sys.stdout.write(msg + "\n\n") + parser.print_help() + sys.exit(err) + + # parse command line options + (options, args) = parser.parse_args() + + if options.numnodes < 1: + usage("invalid number of nodes: %s" % options.numnodes) + + for a in args: + sys.stderr.write("ignoring command line argument: '%s'\n" % a) + + start = datetime.datetime.now() + + # IP subnet + prefix = ipaddr.IPv4Prefix("10.83.0.0/16") + session = pycore.Session(persistent=True) + add_to_server(session) + # emulated Ethernet switch + switch = session.addobj(cls = pycore.nodes.SwitchNode, name = "switch") + switch.setposition(x=80,y=50) + print "creating %d nodes with addresses from %s" % \ + (options.numnodes, prefix) + for i in xrange(1, options.numnodes + 1): + tmp = session.addobj(cls = pycore.nodes.CoreNode, name = "n%d" % i, + objid=i) + tmp.newnetif(switch, ["%s/%s" % (prefix.addr(i), prefix.prefixlen)]) + tmp.cmd([SYSCTL_BIN, "net.ipv4.icmp_echo_ignore_broadcasts=0"]) + tmp.setposition(x=150*i,y=150) + n.append(tmp) + + # start a shell on node 1 + n[1].term("bash") + + print "elapsed time: %s" % (datetime.datetime.now() - start) + +if __name__ == "__main__" or __name__ == "__builtin__": + main() + diff --git a/daemon/examples/netns/switchtest.py b/daemon/examples/netns/switchtest.py new file mode 100755 index 00000000..defc5400 --- /dev/null +++ b/daemon/examples/netns/switchtest.py @@ -0,0 +1,97 @@ +#!/usr/bin/python + +# Copyright (c)2010-2012 the Boeing Company. +# See the LICENSE file included in this distribution. + +# run iperf to measure the effective throughput between two nodes when +# n nodes are connected to a virtual hub/switch; run test for testsec +# and repeat for minnodes <= n <= maxnodes with a step size of +# nodestep + +import optparse, sys, os, datetime + +from core import pycore +from core.misc import ipaddr +from core.misc.utils import mutecall + +try: + mutecall(["iperf", "-v"]) +except OSError: + sys.stderr.write("ERROR: running iperf failed\n") + sys.exit(1) + +def test(numnodes, testsec): + # node list + n = [] + # IP subnet + prefix = ipaddr.IPv4Prefix("10.83.0.0/16") + session = pycore.Session() + # emulated network + net = session.addobj(cls = pycore.nodes.SwitchNode) + for i in xrange(1, numnodes + 1): + tmp = session.addobj(cls = pycore.nodes.LxcNode, name = "n%d" % i) + tmp.newnetif(net, ["%s/%s" % (prefix.addr(i), prefix.prefixlen)]) + n.append(tmp) + n[0].cmd(["iperf", "-s", "-D"]) + n[-1].icmd(["iperf", "-t", str(int(testsec)), "-c", str(prefix.addr(1))]) + n[0].cmd(["killall", "-9", "iperf"]) + session.shutdown() + +def main(): + usagestr = "usage: %prog [-h] [options] [args]" + parser = optparse.OptionParser(usage = usagestr) + + parser.set_defaults(minnodes = 2) + parser.add_option("-m", "--minnodes", dest = "minnodes", type = int, + help = "min number of nodes to test; default = %s" % + parser.defaults["minnodes"]) + + parser.set_defaults(maxnodes = 2) + parser.add_option("-n", "--maxnodes", dest = "maxnodes", type = int, + help = "max number of nodes to test; default = %s" % + parser.defaults["maxnodes"]) + + parser.set_defaults(testsec = 10) + parser.add_option("-t", "--testsec", dest = "testsec", type = int, + help = "test time in seconds; default = %s" % + parser.defaults["testsec"]) + + parser.set_defaults(nodestep = 1) + parser.add_option("-s", "--nodestep", dest = "nodestep", type = int, + help = "number of nodes step size; default = %s" % + parser.defaults["nodestep"]) + + def usage(msg = None, err = 0): + sys.stdout.write("\n") + if msg: + sys.stdout.write(msg + "\n\n") + parser.print_help() + sys.exit(err) + + # parse command line options + (options, args) = parser.parse_args() + + if options.minnodes < 2: + usage("invalid min number of nodes: %s" % options.minnodes) + if options.maxnodes < options.minnodes: + usage("invalid max number of nodes: %s" % options.maxnodes) + if options.testsec < 1: + usage("invalid test time: %s" % options.testsec) + if options.nodestep < 1: + usage("invalid node step: %s" % options.nodestep) + + for a in args: + sys.stderr.write("ignoring command line argument: '%s'\n" % a) + + start = datetime.datetime.now() + + for i in xrange(options.minnodes, options.maxnodes + 1, options.nodestep): + print >> sys.stderr, "%s node test:" % i + test(i, options.testsec) + print >> sys.stderr, "" + + print >> sys.stderr, \ + "elapsed time: %s" % (datetime.datetime.now() - start) + +if __name__ == "__main__": + main() diff --git a/daemon/examples/netns/twonodes.sh b/daemon/examples/netns/twonodes.sh new file mode 100755 index 00000000..88034051 --- /dev/null +++ b/daemon/examples/netns/twonodes.sh @@ -0,0 +1,33 @@ +#!/bin/sh +# Below is a transcript of creating two emulated nodes and connecting them +# together with a wired link. You can run the core-cleanup script to clean +# up after this script. + +# create node 1 namespace container +vnoded -c /tmp/n1.ctl -l /tmp/n1.log -p /tmp/n1.pid +# create a virtual Ethernet (veth) pair, installing one end into node 1 +ip link add name n1.0.1 type veth peer name n1.0 +ip link set n1.0 netns `cat /tmp/n1.pid` +vcmd -c /tmp/n1.ctl -- ip link set n1.0 name eth0 +vcmd -c /tmp/n1.ctl -- ifconfig eth0 10.0.0.1/24 + +# create node 2 namespace container +vnoded -c /tmp/n2.ctl -l /tmp/n2.log -p /tmp/n2.pid +# create a virtual Ethernet (veth) pair, installing one end into node 2 +ip link add name n2.0.1 type veth peer name n2.0 +ip link set n2.0 netns `cat /tmp/n2.pid` +vcmd -c /tmp/n2.ctl -- ip link set n2.0 name eth0 +vcmd -c /tmp/n2.ctl -- ifconfig eth0 10.0.0.2/24 + +# bridge together nodes 1 and 2 using the other end of each veth pair +brctl addbr b.1.1 +brctl setfd b.1.1 0 +brctl addif b.1.1 n1.0.1 +brctl addif b.1.1 n2.0.1 +ip link set n1.0.1 up +ip link set n2.0.1 up +ip link set b.1.1 up + +# display connectivity and ping from node 1 to node 2 +brctl show +vcmd -c /tmp/n1.ctl -- ping 10.0.0.2 diff --git a/daemon/examples/netns/wlanemanetests.py b/daemon/examples/netns/wlanemanetests.py new file mode 100755 index 00000000..ad8dffbf --- /dev/null +++ b/daemon/examples/netns/wlanemanetests.py @@ -0,0 +1,772 @@ +#!/usr/bin/python + +# Copyright (c)2011-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +''' +wlanemanetests.py - This script tests the performance of the WLAN device in +CORE by measuring various metrics: + - delay experienced when pinging end-to-end + - maximum TCP throughput achieved using iperf end-to-end + - the CPU used and loss experienced when running an MGEN flow of UDP traffic + +All MANET nodes are arranged in a row, so that any given node can only +communicate with the node to its right or to its left. Performance is measured +using traffic that travels across each hop in the network. Static /32 routing +is used instead of any dynamic routing protocol. + +Various underlying network types are tested: + - bridged (the CORE default, uses ebtables) + - bridged with netem (add link effects to the bridge using tc queues) + - EMANE bypass - the bypass model just forwards traffic + - EMANE RF-PIPE - the bandwidth (bitrate) is set very high / no restrictions + - EMANE RF-PIPE - bandwidth is set similar to netem case + - EMANE RF-PIPE - default connectivity is off and pathloss events are + generated to connect the nodes in a line + +Results are printed/logged in CSV format. + +''' + +import os, sys, time, optparse, datetime, math +from string import Template +try: + from core import pycore +except ImportError: + # hack for Fedora autoconf that uses the following pythondir: + if "/usr/lib/python2.6/site-packages" in sys.path: + sys.path.append("/usr/local/lib/python2.6/site-packages") + if "/usr/lib64/python2.6/site-packages" in sys.path: + sys.path.append("/usr/local/lib64/python2.6/site-packages") + if "/usr/lib/python2.7/site-packages" in sys.path: + sys.path.append("/usr/local/lib/python2.7/site-packages") + if "/usr/lib64/python2.7/site-packages" in sys.path: + sys.path.append("/usr/local/lib64/python2.7/site-packages") + from core import pycore +from core.misc import ipaddr +from core.misc.utils import mutecall +from core.constants import QUAGGA_STATE_DIR +from core.emane.bypass import EmaneBypassModel +from core.emane.rfpipe import EmaneRfPipeModel +import emaneeventservice +import emaneeventpathloss + + +# move these to core.misc.utils +def readstat(): + f = open("/proc/stat", "r") + lines = f.readlines() + f.close() + return lines + +def numcpus(): + lines = readstat() + n = 0 + for l in lines[1:]: + if l[:3] != "cpu": + break + n += 1 + return n + +def getcputimes(line): + # return (user, nice, sys, idle) from a /proc/stat cpu line + # assume columns are: + # cpu# user nice sys idle iowait irq softirq steal guest (man 5 proc) + items = line.split() + (user, nice, sys, idle) = map(lambda(x): int(x), items[1:5]) + return [user, nice, sys, idle] + +def calculatecpu(timesa, timesb): + for i in range(len(timesa)): + timesb[i] -= timesa[i] + total = sum(timesb) + if total == 0: + return 0.0 + else: + # subtract % time spent in idle time + return 100 - ((100.0 * timesb[-1]) / total) + +# end move these to core.misc.utils + +class Cmd(object): + ''' Helper class for running a command on a node and parsing the result. ''' + args = "" + def __init__(self, node, verbose=False): + ''' Initialize with a CoreNode (LxcNode) ''' + self.id = None + self.stdin = None + self.out = None + self.node = node + self.verbose = verbose + + def info(self, msg): + ''' Utility method for writing output to stdout.''' + print msg + sys.stdout.flush() + + def warn(self, msg): + ''' Utility method for writing output to stderr. ''' + print >> sys.stderr, "XXX %s:" % self.node.name, msg + sys.stderr.flush() + + def run(self): + ''' This is the primary method used for running this command. ''' + self.open() + status = self.id.wait() + r = self.parse() + self.cleanup() + return r + + def open(self): + ''' Exceute call to node.popen(). ''' + self.id, self.stdin, self.out, self.err = \ + self.node.popen((self.args)) + + def parse(self): + ''' This method is overloaded by child classes and should return some + result. + ''' + return None + + def cleanup(self): + ''' Close the Popen channels.''' + self.stdin.close() + self.out.close() + self.err.close() + tmp = self.id.wait() + if tmp: + self.warn("nonzero exit status:", tmp) + + +class ClientServerCmd(Cmd): + ''' Helper class for running a command on a node and parsing the result. ''' + args = "" + client_args = "" + def __init__(self, node, client_node, verbose=False): + ''' Initialize with two CoreNodes, node is the server ''' + Cmd.__init__(self, node, verbose) + self.client_node = client_node + + def run(self): + ''' Run the server command, then the client command, then + kill the server ''' + self.open() # server + self.client_open() # client + status = self.client_id.wait() + self.node.cmdresult(['killall', self.args[0]]) # stop the server + r = self.parse() + self.cleanup() + return r + + def client_open(self): + ''' Exceute call to client_node.popen(). ''' + self.client_id, self.client_stdin, self.client_out, self.client_err = \ + self.client_node.popen((self.client_args)) + + def parse(self): + ''' This method is overloaded by child classes and should return some + result. + ''' + return None + + def cleanup(self): + ''' Close the Popen channels.''' + self.stdin.close() + self.out.close() + self.err.close() + tmp = self.id.wait() + if tmp: + self.warn("nonzero exit status: %s" % tmp) + self.warn("command was: %s" % ((self.args, ))) + + +class PingCmd(Cmd): + ''' Test latency using ping. + ''' + def __init__(self, node, verbose=False, addr=None, count=50, interval=0.1, ): + Cmd.__init__(self, node, verbose) + self.addr = addr + self.count = count + self.interval = interval + self.args = ['ping', '-q', '-c', '%s' % count, '-i', '%s' % interval, + addr] + + def run(self): + if self.verbose: + self.info("%s initial test ping (max 1 second)..." % self.node.name) + (status, result) = self.node.cmdresult(["ping", "-q", "-c", "1", "-w", + "1", self.addr]) + if status != 0: + self.warn("initial ping from %s to %s failed! result:\n%s" % \ + (self.node.name, self.addr, result)) + return (0.0, 0.0) + if self.verbose: + self.info("%s pinging %s (%d seconds)..." % \ + (self.node.name, self.addr, self.count * self.interval)) + return Cmd.run(self) + + def parse(self): + lines = self.out.readlines() + avg_latency = 0 + mdev = 0 + try: + stats_str = lines[-1].split('=')[1] + stats = stats_str.split('/') + avg_latency = float(stats[1]) + mdev = float(stats[3].split(' ')[0]) + except Exception, e: + self.warn("ping parsing exception: %s" % e) + return (avg_latency, mdev) + +class IperfCmd(ClientServerCmd): + ''' Test throughput using iperf. + ''' + def __init__(self, node, client_node, verbose=False, addr=None, time=10): + # node is the server + ClientServerCmd.__init__(self, node, client_node, verbose) + self.addr = addr + self.time = time + # -s server, -y c CSV report output + self.args = ["iperf", "-s", "-y", "c"] + self.client_args = ["iperf", "-c", self.addr, "-t", "%s" % self.time] + + def run(self): + if self.verbose: + self.info("Launching the iperf server on %s..." % self.node.name) + self.info("Running the iperf client on %s (%s seconds)..." % \ + (self.client_node.name, self.time)) + return ClientServerCmd.run(self) + + def parse(self): + lines = self.out.readlines() + try: + bps = int(lines[-1].split(',')[-1].strip('\n')) + except Exception, e: + self.warn("iperf parsing exception: %s" % e) + bps = 0 + return bps + +class MgenCmd(ClientServerCmd): + ''' Run a test traffic flow using an MGEN sender and receiver. + ''' + def __init__(self, node, client_node, verbose=False, addr=None, time=10, + rate=512): + ClientServerCmd.__init__(self, node, client_node, verbose) + self.addr = addr + self.time = time + self.args = ['mgen', 'event', 'listen udp 5000', 'output', + '/var/log/mgen.log'] + self.rate = rate + sendevent = "ON 1 UDP DST %s/5000 PERIODIC [%s]" % \ + (addr, self.mgenrate(self.rate)) + stopevent = "%s OFF 1" % time + self.client_args = ['mgen', 'event', sendevent, 'event', stopevent, + 'output', '/var/log/mgen.log'] + + @staticmethod + def mgenrate(kbps): + ''' Return a MGEN periodic rate string for the given kilobits-per-sec. + Assume 1500 byte MTU, 20-byte IP + 8-byte UDP headers, leaving + 1472 bytes for data. + ''' + bps = (kbps / 8) * 1000.0 + maxdata = 1472 + pps = math.ceil(bps / maxdata) + return "%s %s" % (pps, maxdata) + + def run(self): + if self.verbose: + self.info("Launching the MGEN receiver on %s..." % self.node.name) + self.info("Running the MGEN sender on %s (%s seconds)..." % \ + (self.client_node.name, self.time)) + return ClientServerCmd.run(self) + + def cleanup(self): + ''' Close the Popen channels.''' + self.stdin.close() + self.out.close() + self.err.close() + tmp = self.id.wait() # non-zero mgen exit status OK + + def parse(self): + ''' Check MGEN receiver's log file for packet sequence numbers, and + return the percentage of lost packets. + ''' + logfile = os.path.join(self.node.nodedir, 'var.log/mgen.log') + f = open(logfile, 'r') + numlost = 0 + lastseq = 0 + for line in f.readlines(): + fields = line.split() + if fields[1] != 'RECV': + continue + try: + seq = int(fields[4].split('>')[1]) + except: + self.info("Unexpected MGEN line:\n%s" % fields) + if seq > (lastseq + 1): + numlost += seq - (lastseq + 1) + lastseq = seq + f.close() + if lastseq > 0: + loss = 100.0 * numlost / lastseq + else: + loss = 0 + if self.verbose: + self.info("Receiver log shows %d of %d packets lost" % \ + (numlost, lastseq)) + return loss + + +class Experiment(object): + ''' Experiment object to organize tests. + ''' + def __init__(self, opt, start): + ''' Initialize with opt and start time. ''' + self.session = None + # node list + self.nodes = [] + # WLAN network + self.net = None + self.verbose = opt.verbose + # dict from OptionParser + self.opt = opt + self.start = start + self.numping = opt.numping + self.numiperf = opt.numiperf + self.nummgen = opt.nummgen + self.logbegin() + + def info(self, msg): + ''' Utility method for writing output to stdout. ''' + print msg + sys.stdout.flush() + self.log(msg) + + def warn(self, msg): + ''' Utility method for writing output to stderr. ''' + print >> sys.stderr, msg + sys.stderr.flush() + self.log(msg) + + def logbegin(self): + ''' Start logging. ''' + self.logfp = None + if not self.opt.logfile: + return + self.logfp = open(self.opt.logfile, "w") + self.log("%s begin: %s\n" % (sys.argv[0], self.start.ctime())) + self.log("%s args: %s\n" % (sys.argv[0], sys.argv[1:])) + (sysname, rel, ver, machine, nodename) = os.uname() + self.log("%s %s %s %s on %s" % (sysname, rel, ver, machine, nodename)) + + def logend(self): + ''' End logging. ''' + if not self.logfp: + return + end = datetime.datetime.now() + self.log("%s end: %s (%s)\n" % \ + (sys.argv[0], end.ctime(), end - self.start)) + self.logfp.flush() + self.logfp.close() + self.logfp = None + + def log(self, msg): + ''' Write to the log file, if any. ''' + if not self.logfp: + return + print >> self.logfp, msg + + def reset(self): + ''' Prepare for another experiment run. + ''' + if self.session: + self.session.shutdown() + del self.session + self.session = None + self.nodes = [] + self.net = None + + def createbridgedsession(self, numnodes, verbose = False): + ''' Build a topology consisting of the given number of LxcNodes + connected to a WLAN. + ''' + # IP subnet + prefix = ipaddr.IPv4Prefix("10.0.0.0/16") + self.session = pycore.Session() + # emulated network + self.net = self.session.addobj(cls = pycore.nodes.WlanNode, + name = "wlan1") + prev = None + for i in xrange(1, numnodes + 1): + addr = "%s/%s" % (prefix.addr(i), 32) + tmp = self.session.addobj(cls = pycore.nodes.CoreNode, objid = i, + name = "n%d" % i) + tmp.newnetif(self.net, [addr]) + self.nodes.append(tmp) + self.session.services.addservicestonode(tmp, "router", + "IPForward", self.verbose) + self.session.services.bootnodeservices(tmp) + self.staticroutes(i, prefix, numnodes) + + # link each node in a chain, with the previous node + if prev: + self.net.link(prev.netif(0), tmp.netif(0)) + prev = tmp + + def createemanesession(self, numnodes, verbose = False, cls = None, + values = None): + ''' Build a topology consisting of the given number of LxcNodes + connected to an EMANE WLAN. + ''' + prefix = ipaddr.IPv4Prefix("10.0.0.0/16") + self.session = pycore.Session() + self.session.master = True + self.session.location.setrefgeo(47.57917,-122.13232,2.00000) + self.session.location.refscale = 150.0 + self.session.cfg['emane_models'] = "RfPipe, Ieee80211abg, Bypass" + self.session.emane.loadmodels() + self.net = self.session.addobj(cls = pycore.nodes.EmaneNode, + objid = numnodes + 1, name = "wlan1") + self.net.verbose = verbose + #self.session.emane.addobj(self.net) + for i in xrange(1, numnodes + 1): + addr = "%s/%s" % (prefix.addr(i), 32) + tmp = self.session.addobj(cls = pycore.nodes.CoreNode, objid = i, + name = "n%d" % i) + #tmp.setposition(i * 20, 50, None) + tmp.setposition(50, 50, None) + tmp.newnetif(self.net, [addr]) + self.nodes.append(tmp) + self.session.services.addservicestonode(tmp, "router", + "IPForward", self.verbose) + + if values is None: + values = cls.getdefaultvalues() + self.session.emane.setconfig(self.net.objid, cls._name, values) + self.session.emane.startup() + + self.info("waiting %s sec (TAP bring-up)" % 2) + time.sleep(2) + + for i in xrange(1, numnodes + 1): + tmp = self.nodes[i-1] + self.session.services.bootnodeservices(tmp) + self.staticroutes(i, prefix, numnodes) + + + def setnodes(self): + ''' Set the sender and receiver nodes for use in this experiment, + along with the address of the receiver to be used. + ''' + self.firstnode = self.nodes[0] + self.lastnode = self.nodes[-1] + self.lastaddr = self.lastnode.netif(0).addrlist[0].split('/')[0] + + + def staticroutes(self, i, prefix, numnodes): + ''' Add static routes on node number i to the other nodes in the chain. + ''' + routecmd = ["/sbin/ip", "route", "add"] + node = self.nodes[i-1] + neigh_left = "" + neigh_right = "" + # add direct interface routes first + if i > 1: + neigh_left = "%s" % prefix.addr(i - 1) + cmd = routecmd + [neigh_left, "dev", node.netif(0).name] + (status, result) = node.cmdresult(cmd) + if status != 0: + self.warn("failed to add interface route: %s" % cmd) + if i < numnodes: + neigh_right = "%s" % prefix.addr(i + 1) + cmd = routecmd + [neigh_right, "dev", node.netif(0).name] + (status, result) = node.cmdresult(cmd) + if status != 0: + self.warn("failed to add interface route: %s" % cmd) + + # add static routes to all other nodes via left/right neighbors + for j in xrange(1, numnodes + 1): + if abs(j - i) < 2: + continue + addr = "%s" % prefix.addr(j) + if j < i: + gw = neigh_left + else: + gw = neigh_right + cmd = routecmd + [addr, "via", gw] + (status, result) = node.cmdresult(cmd) + if status != 0: + self.warn("failed to add route: %s" % cmd) + + def setpathloss(self, numnodes): + ''' Send EMANE pathloss events to connect all NEMs in a chain. + ''' + service = emaneeventservice.EventService() + e = emaneeventpathloss.EventPathloss(1) + for i in xrange(1, numnodes + 1): + rxnem = i + # inform rxnem that it can hear node to the left with 10dB noise + txnem = rxnem - 1 + e.set(0, txnem, 10.0, 10.0) + if txnem > 0: + service.publish(emaneeventpathloss.EVENT_ID, + emaneeventservice.PLATFORMID_ANY, rxnem, + emaneeventservice.COMPONENTID_ANY, e.export()) + # inform rxnem that it can hear node to the right with 10dB noise + txnem = rxnem + 1 + e.set(0, txnem, 10.0, 10.0) + if txnem <= numnodes: + service.publish(emaneeventpathloss.EVENT_ID, + emaneeventservice.PLATFORMID_ANY, rxnem, + emaneeventservice.COMPONENTID_ANY, e.export()) + + def setneteffects(self, bw = None, delay = None): + ''' Set link effects for all interfaces attached to the network node. + ''' + if not self.net: + self.warn("failed to set effects: no network node") + return + for netif in self.net.netifs(): + self.net.linkconfig(netif, bw = bw, delay = delay) + + def runalltests(self, title=""): + ''' Convenience helper to run all defined experiment tests. + If tests are run multiple times, this returns the average of + those runs. + ''' + duration = self.opt.duration + rate = self.opt.rate + if len(title) > 0: + self.info("----- running %s tests (duration=%s, rate=%s) -----" % \ + (title, duration, rate)) + (latency, mdev, throughput, cpu, loss) = (0,0,0,0,0) + + self.info("number of runs: ping=%d, iperf=%d, mgen=%d" % \ + (self.numping, self.numiperf, self.nummgen)) + + if self.numping > 0: + (latency, mdev) = self.pingtest(count=self.numping) + + if self.numiperf > 0: + throughputs = [] + for i in range(1, self.numiperf + 1): + throughput = self.iperftest(time=duration) + if self.numiperf > 1: + throughputs += throughput + time.sleep(1) # iperf is very CPU intensive + if self.numiperf > 1: + throughput = sum(throughputs) / len(throughputs) + self.info("throughputs=%s" % ["%.2f" % v for v in throughputs]) + + if self.nummgen > 0: + cpus = [] + losses = [] + for i in range(1, self.nummgen + 1): + (cpu, loss) = self.cputest(time=duration, rate=rate) + if self.nummgen > 1: + cpus += cpu, + losses += loss, + if self.nummgen > 1: + cpu = sum(cpus) / len(cpus) + loss = sum(losses) / len(losses) + self.info("cpus=%s" % ["%.2f" % v for v in cpus]) + self.info("losses=%s" % ["%.2f" % v for v in losses]) + + return (latency, mdev, throughput, cpu, loss) + + def pingtest(self, count=50): + ''' Ping through a chain of nodes and report the average latency. + ''' + p = PingCmd(node=self.firstnode, verbose=self.verbose, + addr = self.lastaddr, count=count, interval=0.1).run() + (latency, mdev) = p + self.info("latency (ms): %.03f, %.03f" % (latency, mdev)) + return p + + def iperftest(self, time=10): + ''' Run iperf through a chain of nodes and report the maximum + throughput. + ''' + bps = IperfCmd(node=self.lastnode, client_node=self.firstnode, + verbose=False, addr=self.lastaddr, time=time).run() + self.info("throughput (bps): %s" % bps) + return bps + + def cputest(self, time=10, rate=512): + ''' Run MGEN through a chain of nodes and report the CPU usage and + percent of lost packets. Rate is in kbps. + ''' + if self.verbose: + self.info("%s initial test ping (max 1 second)..." % \ + self.firstnode.name) + (status, result) = self.firstnode.cmdresult(["ping", "-q", "-c", "1", + "-w", "1", self.lastaddr]) + if status != 0: + self.warn("initial ping from %s to %s failed! result:\n%s" % \ + (self.firstnode.name, self.lastaddr, result)) + return (0.0, 0.0) + lines = readstat() + cpustart = getcputimes(lines[0]) + loss = MgenCmd(node=self.lastnode, client_node=self.firstnode, + verbose=False, addr=self.lastaddr, + time=time, rate=rate).run() + lines = readstat() + cpuend = getcputimes(lines[0]) + percent = calculatecpu(cpustart, cpuend) + self.info("CPU usage (%%): %.02f, %.02f loss" % (percent, loss)) + return percent, loss + +def main(): + ''' Main routine when running from command-line. + ''' + usagestr = "usage: %prog [-h] [options] [args]" + parser = optparse.OptionParser(usage = usagestr) + parser.set_defaults(numnodes = 10, delay = 3, duration = 10, rate = 512, + verbose = False, + numping = 50, numiperf = 1, nummgen = 1) + + parser.add_option("-d", "--delay", dest = "delay", type = float, + help = "wait time before testing") + parser.add_option("-l", "--logfile", dest = "logfile", type = str, + help = "log detailed output to the specified file") + parser.add_option("-n", "--numnodes", dest = "numnodes", type = int, + help = "number of nodes") + parser.add_option("-r", "--rate", dest = "rate", type = float, + help = "kbps rate to use for MGEN CPU tests") + parser.add_option("--numping", dest = "numping", type = int, + help = "number of ping latency test runs") + parser.add_option("--numiperf", dest = "numiperf", type = int, + help = "number of iperf throughput test runs") + parser.add_option("--nummgen", dest = "nummgen", type = int, + help = "number of MGEN CPU tests runs") + parser.add_option("-t", "--time", dest = "duration", type = int, + help = "duration in seconds of throughput and CPU tests") + parser.add_option("-v", "--verbose", dest = "verbose", + action = "store_true", help = "be more verbose") + + def usage(msg = None, err = 0): + sys.stdout.write("\n") + if msg: + sys.stdout.write(msg + "\n\n") + parser.print_help() + sys.exit(err) + + # parse command line opt + (opt, args) = parser.parse_args() + + if opt.numnodes < 2: + usage("invalid numnodes: %s" % opt.numnodes) + if opt.delay < 0.0: + usage("invalid delay: %s" % opt.delay) + if opt.rate < 0.0: + usage("invalid rate: %s" % opt.rate) + + for a in args: + sys.stderr.write("ignoring command line argument: '%s'\n" % a) + + results = {} + exp = Experiment(opt = opt, start=datetime.datetime.now()) + + # bridged + exp.info("setting up bridged tests 1/2 no link effects") + exp.info("creating topology: numnodes = %s" % \ + (opt.numnodes, )) + exp.createbridgedsession(numnodes=opt.numnodes, verbose=opt.verbose) + exp.setnodes() + exp.info("waiting %s sec (node/route bring-up)" % opt.delay) + time.sleep(opt.delay) + results['0 bridged'] = exp.runalltests("bridged") + exp.info("done; elapsed time: %s" % (datetime.datetime.now() - exp.start)) + + # bridged with netem + exp.info("setting up bridged tests 2/2 with netem") + exp.setneteffects(bw=54000000, delay=0) + exp.info("waiting %s sec (queue bring-up)" % opt.delay) + results['1 netem'] = exp.runalltests("netem") + exp.info("shutting down bridged session") + exp.reset() + + # EMANE bypass model + exp.info("setting up EMANE tests 1/2 with bypass model") + exp.createemanesession(numnodes=opt.numnodes, verbose=opt.verbose, + cls=EmaneBypassModel, values=None) + exp.setnodes() + exp.info("waiting %s sec (node/route bring-up)" % opt.delay) + time.sleep(opt.delay) + results['2 bypass'] = exp.runalltests("bypass") + exp.info("shutting down bypass session") + exp.reset() + + exp.info("waiting %s sec (between EMANE tests)" % opt.delay) + time.sleep(opt.delay) + + # EMANE RF-PIPE model: no restrictions (max datarate) + exp.info("setting up EMANE tests 2/4 with RF-PIPE model") + rfpipevals = list(EmaneRfPipeModel.getdefaultvalues()) + rfpnames = EmaneRfPipeModel.getnames() + rfpipevals[ rfpnames.index('datarate') ] = '4294967295' # max value + rfpipevals[ rfpnames.index('pathlossmode') ] = '2ray' + rfpipevals[ rfpnames.index('defaultconnectivitymode') ] = '1' + exp.createemanesession(numnodes=opt.numnodes, verbose=opt.verbose, + cls=EmaneRfPipeModel, values=rfpipevals) + exp.setnodes() + exp.info("waiting %s sec (node/route bring-up)" % opt.delay) + time.sleep(opt.delay) + results['3 rfpipe'] = exp.runalltests("rfpipe") + exp.info("shutting down RF-PIPE session") + exp.reset() + + # EMANE RF-PIPE model: 54M datarate + exp.info("setting up EMANE tests 3/4 with RF-PIPE model 54M") + rfpipevals = list(EmaneRfPipeModel.getdefaultvalues()) + rfpnames = EmaneRfPipeModel.getnames() + rfpipevals[ rfpnames.index('datarate') ] = '54000' + # TX delay != propagation delay + #rfpipevals[ rfpnames.index('delay') ] = '5000' + rfpipevals[ rfpnames.index('pathlossmode') ] = '2ray' + rfpipevals[ rfpnames.index('defaultconnectivitymode') ] = '1' + exp.createemanesession(numnodes=opt.numnodes, verbose=opt.verbose, + cls=EmaneRfPipeModel, values=rfpipevals) + exp.setnodes() + exp.info("waiting %s sec (node/route bring-up)" % opt.delay) + time.sleep(opt.delay) + results['4 rfpipe54m'] = exp.runalltests("rfpipe54m") + exp.info("shutting down RF-PIPE session") + exp.reset() + + # EMANE RF-PIPE model + exp.info("setting up EMANE tests 4/4 with RF-PIPE model pathloss") + rfpipevals = list(EmaneRfPipeModel.getdefaultvalues()) + rfpnames = EmaneRfPipeModel.getnames() + rfpipevals[ rfpnames.index('datarate') ] = '54000' + rfpipevals[ rfpnames.index('pathlossmode') ] = 'pathloss' + rfpipevals[ rfpnames.index('defaultconnectivitymode') ] = '0' + exp.createemanesession(numnodes=opt.numnodes, verbose=opt.verbose, + cls=EmaneRfPipeModel, values=rfpipevals) + exp.setnodes() + exp.info("waiting %s sec (node/route bring-up)" % opt.delay) + time.sleep(opt.delay) + exp.info("sending pathloss events to govern connectivity") + exp.setpathloss(opt.numnodes) + results['5 pathloss'] = exp.runalltests("pathloss") + exp.info("shutting down RF-PIPE session") + exp.reset() + + # summary of results in CSV format + exp.info("----- summary of results (%s nodes, rate=%s, duration=%s) -----" \ + % (opt.numnodes, opt.rate, opt.duration)) + exp.info("netname:latency,mdev,throughput,cpu,loss") + + for test in sorted(results.keys()): + (latency, mdev, throughput, cpu, loss) = results[test] + exp.info("%s:%.03f,%.03f,%d,%.02f,%.02f" % \ + (test, latency, mdev, throughput, cpu,loss)) + + exp.logend() + return exp + +if __name__ == "__main__": + exp = main() diff --git a/daemon/examples/netns/wlantest.py b/daemon/examples/netns/wlantest.py new file mode 100755 index 00000000..85fe79a8 --- /dev/null +++ b/daemon/examples/netns/wlantest.py @@ -0,0 +1,98 @@ +#!/usr/bin/python + +# Copyright (c)2010-2012 the Boeing Company. +# See the LICENSE file included in this distribution. + +# run iperf to measure the effective throughput between two nodes when +# n nodes are connected to a virtual wlan; run test for testsec +# and repeat for minnodes <= n <= maxnodes with a step size of +# nodestep + +import optparse, sys, os, datetime + +from core import pycore +from core.misc import ipaddr +from core.misc.utils import mutecall + +try: + mutecall(["iperf", "-v"]) +except OSError: + sys.stderr.write("ERROR: running iperf failed\n") + sys.exit(1) + +def test(numnodes, testsec): + # node list + n = [] + # IP subnet + prefix = ipaddr.IPv4Prefix("10.83.0.0/16") + session = pycore.Session() + # emulated network + net = session.addobj(cls = pycore.nodes.WlanNode) + for i in xrange(1, numnodes + 1): + tmp = session.addobj(cls = pycore.nodes.LxcNode, name = "n%d" % i) + tmp.newnetif(net, ["%s/%s" % (prefix.addr(i), prefix.prefixlen)]) + n.append(tmp) + net.link(n[0].netif(0), n[-1].netif(0)) + n[0].cmd(["iperf", "-s", "-D"]) + n[-1].icmd(["iperf", "-t", str(int(testsec)), "-c", str(prefix.addr(1))]) + n[0].cmd(["killall", "-9", "iperf"]) + session.shutdown() + +def main(): + usagestr = "usage: %prog [-h] [options] [args]" + parser = optparse.OptionParser(usage = usagestr) + + parser.set_defaults(minnodes = 2) + parser.add_option("-m", "--minnodes", dest = "minnodes", type = int, + help = "min number of nodes to test; default = %s" % + parser.defaults["minnodes"]) + + parser.set_defaults(maxnodes = 2) + parser.add_option("-n", "--maxnodes", dest = "maxnodes", type = int, + help = "max number of nodes to test; default = %s" % + parser.defaults["maxnodes"]) + + parser.set_defaults(testsec = 10) + parser.add_option("-t", "--testsec", dest = "testsec", type = int, + help = "test time in seconds; default = %s" % + parser.defaults["testsec"]) + + parser.set_defaults(nodestep = 1) + parser.add_option("-s", "--nodestep", dest = "nodestep", type = int, + help = "number of nodes step size; default = %s" % + parser.defaults["nodestep"]) + + def usage(msg = None, err = 0): + sys.stdout.write("\n") + if msg: + sys.stdout.write(msg + "\n\n") + parser.print_help() + sys.exit(err) + + # parse command line options + (options, args) = parser.parse_args() + + if options.minnodes < 2: + usage("invalid min number of nodes: %s" % options.minnodes) + if options.maxnodes < options.minnodes: + usage("invalid max number of nodes: %s" % options.maxnodes) + if options.testsec < 1: + usage("invalid test time: %s" % options.testsec) + if options.nodestep < 1: + usage("invalid node step: %s" % options.nodestep) + + for a in args: + sys.stderr.write("ignoring command line argument: '%s'\n" % a) + + start = datetime.datetime.now() + + for i in xrange(options.minnodes, options.maxnodes + 1, options.nodestep): + print >> sys.stderr, "%s node test:" % i + test(i, options.testsec) + print >> sys.stderr, "" + + print >> sys.stderr, \ + "elapsed time: %s" % (datetime.datetime.now() - start) + +if __name__ == "__main__": + main() diff --git a/daemon/examples/services/sampleFirewall b/daemon/examples/services/sampleFirewall new file mode 100644 index 00000000..a445d133 --- /dev/null +++ b/daemon/examples/services/sampleFirewall @@ -0,0 +1,30 @@ +# -------- CUSTOMIZATION REQUIRED -------- +# +# Below are sample iptables firewall rules that you can uncomment and edit. +# You can also use ip6tables rules for IPv6. +# + +# start by flushing all firewall rules (so this script may be re-run) +#iptables -F + +# allow traffic related to established connections +#iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT + +# allow TCP packets from any source destined for 192.168.1.1 +#iptables -A INPUT -s 0/0 -i eth0 -d 192.168.1.1 -p TCP -j ACCEPT + +# allow OpenVPN server traffic from eth0 +#iptables -A INPUT -p udp --dport 1194 -j ACCEPT +#iptables -A INPUT -i eth0 -j DROP +#iptables -A OUTPUT -p udp --sport 1194 -j ACCEPT +#iptables -A OUTPUT -o eth0 -j DROP + +# allow ICMP ping traffic +#iptables -A OUTPUT -p icmp --icmp-type echo-request -j ACCEPT +#iptables -A INPUT -p icmp --icmp-type echo-reply -j ACCEPT + +# allow SSH traffic +#iptables -A -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT + +# drop all other traffic coming in eth0 +#iptables -A INPUT -i eth0 -j DROP diff --git a/daemon/examples/services/sampleIPsec b/daemon/examples/services/sampleIPsec new file mode 100644 index 00000000..59e40fc9 --- /dev/null +++ b/daemon/examples/services/sampleIPsec @@ -0,0 +1,119 @@ +# -------- CUSTOMIZATION REQUIRED -------- +# +# The IPsec service builds ESP tunnels between the specified peers using the +# racoon IKEv2 keying daemon. You need to provide keys and the addresses of +# peers, along with subnets to tunnel. + +# directory containing the certificate and key described below +keydir=/etc/core/keys + +# the name used for the "$certname.pem" x509 certificate and +# "$certname.key" RSA private key, which can be generated using openssl +certname=ipsec1 + +# list the public-facing IP addresses, starting with the localhost and followed +# by each tunnel peer, separated with a single space +tunnelhosts="172.16.0.1AND172.16.0.2 172.16.0.1AND172.16.2.1" + +# Define T where i is the index for each tunnel peer host from +# the tunnel_hosts list above (0 is localhost). +# T is a list of IPsec tunnels with peer i, with a local subnet address +# followed by the remote subnet address: +# T="AND AND" +# For example, 172.16.0.0/24 is a local network (behind this node) to be +# tunneled and 172.16.2.0/24 is a remote network (behind peer 1) +T1="172.16.3.0/24AND172.16.5.0/24" +T2="172.16.4.0/24AND172.16.5.0/24 172.16.4.0/24AND172.16.6.0/24" + +# -------- END CUSTOMIZATION -------- + +echo "building config $PWD/ipsec.conf..." +echo "building config $PWD/ipsec.conf..." > $PWD/ipsec.log + +checkip=0 +if [ "$(dpkg -l | grep " sipcalc ")" = "" ]; then + echo "WARNING: ip validation disabled because package sipcalc not installed + " >> $PWD/ipsec.log + checkip=1 +fi + +echo "#!/usr/sbin/setkey -f + # Flush the SAD and SPD + flush; + spdflush; + + # Security policies \ + " > $PWD/ipsec.conf +i=0 +for hostpair in $tunnelhosts; do + i=`expr $i + 1` + # parse tunnel host IP + thishost=${hostpair%%AND*} + peerhost=${hostpair##*AND} + if [ $checkip = "0" ] && + [ "$(sipcalc "$thishost" "$peerhost" | grep ERR)" != "" ]; then + echo "ERROR: invalid host address $thishost or $peerhost \ + " >> $PWD/ipsec.log + fi + # parse each tunnel addresses + tunnel_list_var_name=T$i + eval tunnels="$"$tunnel_list_var_name"" + for ttunnel in $tunnels; do + lclnet=${ttunnel%%AND*} + rmtnet=${ttunnel##*AND} + if [ $checkip = "0" ] && + [ "$(sipcalc "$lclnet" "$rmtnet"| grep ERR)" != "" ]; then + echo "ERROR: invalid tunnel address $lclnet and $rmtnet \ + " >> $PWD/ipsec.log + fi + # add tunnel policies + echo " + spdadd $lclnet $rmtnet any -P out ipsec + esp/tunnel/$thishost-$peerhost/require; + spdadd $rmtnet $lclnet any -P in ipsec + esp/tunnel/$peerhost-$thishost/require; \ + " >> $PWD/ipsec.conf + done +done + +echo "building config $PWD/racoon.conf..." +if [ ! -e $keydir\/$certname.key ] || [ ! -e $keydir\/$certname.pem ]; then + echo "ERROR: missing certification files under $keydir \ +$certname.key or $certname.pem " >> $PWD/ipsec.log +fi +echo " + path certificate \"$keydir\"; + listen { + adminsock disabled; + } + remote anonymous + { + exchange_mode main; + certificate_type x509 \"$certname.pem\" \"$certname.key\"; + ca_type x509 \"ca-cert.pem\"; + my_identifier asn1dn; + peers_identifier asn1dn; + + proposal { + encryption_algorithm 3des ; + hash_algorithm sha1; + authentication_method rsasig ; + dh_group modp768; + } + } + sainfo anonymous + { + pfs_group modp768; + lifetime time 1 hour ; + encryption_algorithm 3des, blowfish 448, rijndael ; + authentication_algorithm hmac_sha1, hmac_md5 ; + compression_algorithm deflate ; + } + " > $PWD/racoon.conf + +# the setkey program is required from the ipsec-tools package +echo "running setkey -f $PWD/ipsec.conf..." +setkey -f $PWD/ipsec.conf + +echo "running racoon -d -f $PWD/racoon.conf..." +racoon -d -f $PWD/racoon.conf -l racoon.log diff --git a/daemon/examples/services/sampleVPNClient b/daemon/examples/services/sampleVPNClient new file mode 100644 index 00000000..af17ef41 --- /dev/null +++ b/daemon/examples/services/sampleVPNClient @@ -0,0 +1,63 @@ +# -------- CUSTOMIZATION REQUIRED -------- +# +# The VPNClient service builds a VPN tunnel to the specified VPN server using +# OpenVPN software and a virtual TUN/TAP device. + +# directory containing the certificate and key described below +keydir=/etc/core/keys + +# the name used for a "$keyname.crt" certificate and "$keyname.key" private key. +keyname=client1 + +# the public IP address of the VPN server this client should connect with +vpnserver="10.0.2.10" + +# optional next hop for adding a static route to reach the VPN server +nexthop="10.0.1.1" + +# --------- END CUSTOMIZATION -------- + +# validate addresses +if [ "$(dpkg -l | grep " sipcalc ")" = "" ]; then + echo "WARNING: ip validation disabled because package sipcalc not installed + " > $PWD/vpnclient.log +else + if [ "$(sipcalc "$vpnserver" "$nexthop" | grep ERR)" != "" ]; then + echo "ERROR: invalide address $vpnserver or $nexthop \ + " > $PWD/vpnclient.log + fi +fi + +# validate key and certification files +if [ ! -e $keydir\/$keyname.key ] || [ ! -e $keydir\/$keyname.crt ] \ + || [ ! -e $keydir\/ca.crt ] || [ ! -e $keydir\/dh1024.pem ]; then + echo "ERROR: missing certification or key files under $keydir \ +$keyname.key or $keyname.crt or ca.crt or dh1024.pem" >> $PWD/vpnclient.log +fi + +# if necessary, add a static route for reaching the VPN server IP via the IF +vpnservernet=${vpnserver%.*}.0/24 +if [ "$nexthop" != "" ]; then + /sbin/ip route add $vpnservernet via $nexthop +fi + +# create openvpn client.conf +( +cat << EOF +client +dev tun +proto udp +remote $vpnserver 1194 +nobind +ca $keydir/ca.crt +cert $keydir/$keyname.crt +key $keydir/$keyname.key +dh $keydir/dh1024.pem +cipher AES-256-CBC +log $PWD/openvpn-client.log +verb 4 +daemon +EOF +) > client.conf + +openvpn --config client.conf diff --git a/daemon/examples/services/sampleVPNServer b/daemon/examples/services/sampleVPNServer new file mode 100644 index 00000000..f94c4d7b --- /dev/null +++ b/daemon/examples/services/sampleVPNServer @@ -0,0 +1,147 @@ +# -------- CUSTOMIZATION REQUIRED -------- +# +# The VPNServer service sets up the OpenVPN server for building VPN tunnels +# that allow access via TUN/TAP device to private networks. +# +# note that the IPForward and DefaultRoute services should be enabled + +# directory containing the certificate and key described below, in addition to +# a CA certificate and DH key +keydir=/etc/core/keys + +# the name used for a "$keyname.crt" certificate and "$keyname.key" private key. +keyname=server2 + +# the VPN subnet address from which the client VPN IP (for the TUN/TAP) +# will be allocated +vpnsubnet=10.0.200.0 + +# public IP address of this vpn server (same as VPNClient vpnserver= setting) +vpnserver=10.0.2.10 + +# optional list of private subnets reachable behind this VPN server +# each subnet and next hop is separated by a space +# ", , ..." +privatenets="10.0.11.0,10.0.10.1 10.0.12.0,10.0.10.1" + +# optional list of VPN clients, for statically assigning IP addresses to +# clients; also, an optional client subnet can be specified for adding static +# routes via the client +# Note: VPN addresses x.x.x.0-3 are reserved +# ",, ,, ..." +vpnclients="client1KeyFilename,10.0.200.5,10.0.0.0 client2KeyFilename,," + +# NOTE: you may need to enable the StaticRoutes service on nodes within the +# private subnet, in order to have routes back to the client. +# /sbin/ip ro add /24 via +# /sbin/ip ro add /24 via + +# -------- END CUSTOMIZATION -------- + +echo > $PWD/vpnserver.log +rm -f -r $PWD/ccd + +# validate key and certification files +if [ ! -e $keydir\/$keyname.key ] || [ ! -e $keydir\/$keyname.crt ] \ + || [ ! -e $keydir\/ca.crt ] || [ ! -e $keydir\/dh1024.pem ]; then + echo "ERROR: missing certification or key files under $keydir \ +$keyname.key or $keyname.crt or ca.crt or dh1024.pem" >> $PWD/vpnserver.log +fi + +# validate configuration IP addresses +checkip=0 +if [ "$(dpkg -l | grep " sipcalc ")" = "" ]; then + echo "WARNING: ip validation disabled because package sipcalc not installed\ + " >> $PWD/vpnserver.log + checkip=1 +else + if [ "$(sipcalc "$vpnsubnet" "$vpnserver" | grep ERR)" != "" ]; then + echo "ERROR: invalid vpn subnet or server address \ +$vpnsubnet or $vpnserver " >> $PWD/vpnserver.log + fi +fi + +# create client vpn ip pool file +( +cat << EOF +EOF +)> $PWD/ippool.txt + +# create server.conf file +( +cat << EOF +# openvpn server config +local $vpnserver +server $vpnsubnet 255.255.255.0 +push redirect-gateway def1 +EOF +)> $PWD/server.conf + +# add routes to VPN server private subnets, and push these routes to clients +for privatenet in $privatenets; do + if [ $privatenet != "" ]; then + net=${privatenet%%,*} + nexthop=${privatenet##*,} + if [ $checkip = "0" ] && + [ "$(sipcalc "$net" "$nexthop" | grep ERR)" != "" ]; then + echo "ERROR: invalid vpn server private net address \ +$net or $nexthop " >> $PWD/vpnserver.log + fi + echo push route $net 255.255.255.0 >> $PWD/server.conf + /sbin/ip ro add $net/24 via $nexthop + /sbin/ip ro add $vpnsubnet/24 via $nexthop + fi +done + +# allow subnet through this VPN, one route for each client subnet +for client in $vpnclients; do + if [ $client != "" ]; then + cSubnetIP=${client##*,} + cVpnIP=${client#*,} + cVpnIP=${cVpnIP%%,*} + cKeyFilename=${client%%,*} + if [ "$cSubnetIP" != "" ]; then + if [ $checkip = "0" ] && + [ "$(sipcalc "$cSubnetIP" "$cVpnIP" | grep ERR)" != "" ]; then + echo "ERROR: invalid vpn client and subnet address \ +$cSubnetIP or $cVpnIP " >> $PWD/vpnserver.log + fi + echo route $cSubnetIP 255.255.255.0 >> $PWD/server.conf + if ! test -d $PWD/ccd; then + mkdir -p $PWD/ccd + echo client-config-dir $PWD/ccd >> $PWD/server.conf + fi + if test -e $PWD/ccd/$cKeyFilename; then + echo iroute $cSubnetIP 255.255.255.0 >> $PWD/ccd/$cKeyFilename + else + echo iroute $cSubnetIP 255.255.255.0 > $PWD/ccd/$cKeyFilename + fi + fi + if [ "$cVpnIP" != "" ]; then + echo $cKeyFilename,$cVpnIP >> $PWD/ippool.txt + fi + fi +done + +( +cat << EOF +keepalive 10 120 +ca $keydir/ca.crt +cert $keydir/$keyname.crt +key $keydir/$keyname.key +dh $keydir/dh1024.pem +cipher AES-256-CBC +status /var/log/openvpn-status.log +log /var/log/openvpn-server.log +ifconfig-pool-linear +ifconfig-pool-persist $PWD/ippool.txt +port 1194 +proto udp +dev tun +verb 4 +daemon +EOF +)>> $PWD/server.conf + +# start vpn server +openvpn --config server.conf diff --git a/daemon/examples/stopsession.py b/daemon/examples/stopsession.py new file mode 100755 index 00000000..3b890e2f --- /dev/null +++ b/daemon/examples/stopsession.py @@ -0,0 +1,45 @@ +#!/usr/bin/env python +# (c)2010-2012 the Boeing Company +# author: Jeff Ahrenholz +# +# List and stop CORE sessions from the command line. +# + +import socket, optparse +from core.constants import * +from core.api import coreapi + +def main(): + parser = optparse.OptionParser(usage = "usage: %prog [-l] ") + parser.add_option("-l", "--list", dest = "list", action = "store_true", + help = "list running sessions") + (options, args) = parser.parse_args() + + if options.list is True: + num = '0' + flags = coreapi.CORE_API_STR_FLAG + else: + num = args[0] + flags = coreapi.CORE_API_DEL_FLAG + tlvdata = coreapi.CoreSessionTlv.pack(coreapi.CORE_TLV_SESS_NUMBER, num) + msg = coreapi.CoreSessionMessage.pack(flags, tlvdata) + + sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + sock.connect(('localhost', coreapi.CORE_API_PORT)) + sock.send(msg) + + # receive and print a session list + if options.list is True: + hdr = sock.recv(coreapi.CoreMessage.hdrsiz) + msgtype, msgflags, msglen = coreapi.CoreMessage.unpackhdr(hdr) + data = "" + if msglen: + data = sock.recv(msglen) + msg = coreapi.CoreMessage(msgflags, hdr, data) + sessions = msg.gettlv(coreapi.CORE_TLV_SESS_NUMBER) + print "sessions:", sessions + + sock.close() + +if __name__ == "__main__": + main() diff --git a/daemon/ns3/LICENSE b/daemon/ns3/LICENSE new file mode 100644 index 00000000..d511905c --- /dev/null +++ b/daemon/ns3/LICENSE @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. diff --git a/daemon/ns3/Makefile.am b/daemon/ns3/Makefile.am new file mode 100755 index 00000000..fdf56cba --- /dev/null +++ b/daemon/ns3/Makefile.am @@ -0,0 +1,40 @@ +# CORE +# (c)2012 the Boeing Company. +# See the LICENSE file included in this directory. +# +# author: Jeff Ahrenholz +# +# Makefile for building corens3 components. +# + +# Python package build +noinst_SCRIPTS = build +build: + $(PYTHON) setup.py build + +# Python package install +install-exec-hook: + CORE_CONF_DIR=${DESTDIR}/${CORE_CONF_DIR} $(PYTHON) setup.py install --prefix=${DESTDIR}/${prefix} --install-purelib=${DESTDIR}/${pythondir} --install-platlib=${DESTDIR}/${pyexecdir} --no-compile + +# Python package uninstall +uninstall-hook: + rm -f ${pythondir}/corens3_python-${COREDPY_VERSION}-py${PYTHON_VERSION}.egg-info + rm -rf ${pythondir}/corens3 + +# Python package cleanup +clean-local: + -rm -rf build + +# Python RPM package +rpm: + $(PYTHON) setup.py bdist_rpm + +# because we include entire directories with EXTRA_DIST, we need to clean up +# the source control files +dist-hook: + rm -rf `find $(distdir)/ -name .svn` `find $(distdir)/ -name '*.pyc'` + +DISTCLEANFILES = Makefile.in *.pyc corens3/*.pyc MANIFEST + +# files to include with distribution tarball +EXTRA_DIST = LICENSE setup.py corens3 examples diff --git a/daemon/ns3/corens3/__init__.py b/daemon/ns3/corens3/__init__.py new file mode 100644 index 00000000..dd1c1fd0 --- /dev/null +++ b/daemon/ns3/corens3/__init__.py @@ -0,0 +1,22 @@ +# Copyright (c)2011-2012 the Boeing Company. +# See the LICENSE file included in this directory. + +"""corens3 + +Python package containing CORE components for use +with the ns-3 simulator. + +See http://cs.itd.nrl.navy.mil/work/core/ and +http://code.google.com/p/coreemu/ for more information on CORE. + +Pieces can be imported individually, for example + + import corens3 + +or everything listed in __all__ can be imported using + + from corens3 import * +""" + +__all__ = [] + diff --git a/daemon/ns3/corens3/constants.py.in b/daemon/ns3/corens3/constants.py.in new file mode 100644 index 00000000..05784d6c --- /dev/null +++ b/daemon/ns3/corens3/constants.py.in @@ -0,0 +1,18 @@ +# Constants created by autoconf ./configure script +COREDPY_VERSION = "@COREDPY_VERSION@" +CORE_STATE_DIR = "@CORE_STATE_DIR@" +CORE_CONF_DIR = "@CORE_CONF_DIR@" +CORE_DATA_DIR = "@CORE_DATA_DIR@" +CORE_LIB_DIR = "@CORE_LIB_DIR@" +CORE_SBIN_DIR = "@SBINDIR@" + +BRCTL_BIN = "@brctl_path@/brctl" +IP_BIN = "@ip_path@/ip" +TC_BIN = "@tc_path@/tc" +EBTABLES_BIN = "@ebtables_path@/ebtables" +IFCONFIG_BIN = "@ifconfig_path@/ifconfig" +NGCTL_BIN = "@ngctl_path@/ngctl" +VIMAGE_BIN = "@vimage_path@/vimage" +QUAGGA_STATE_DIR = "@CORE_STATE_DIR@/run/quagga" +MOUNT_BIN = "@mount_path@/mount" +UMOUNT_BIN = "@umount_path@/umount" diff --git a/daemon/ns3/corens3/obj.py b/daemon/ns3/corens3/obj.py new file mode 100644 index 00000000..8bde3668 --- /dev/null +++ b/daemon/ns3/corens3/obj.py @@ -0,0 +1,503 @@ +# +# CORE +# Copyright (c)2011-2013 the Boeing Company. +# See the LICENSE file included in this directory. +# +# author: Jeff Ahrenholz +# +''' +ns3.py: defines classes for running emulations with ns-3 simulated networks. +''' + +import sys, os, threading, time + +from core.netns.nodes import CoreNode +from core.coreobj import PyCoreNet +from core.session import Session +from core.misc import ipaddr +from core.constants import * +from core.misc.utils import maketuple, check_call +from core.api import coreapi +from core.mobility import WayPointMobility + +try: + import ns.core +except Exception, e: + print "Could not locate the ns-3 Python bindings!" + print "Try running again from within the ns-3 './waf shell'\n" + raise Exception, e +import ns.lte +import ns.mobility +import ns.network +import ns.internet +import ns.tap_bridge +import ns.wifi +import ns.wimax + + +ns.core.GlobalValue.Bind("SimulatorImplementationType", + ns.core.StringValue("ns3::RealtimeSimulatorImpl")) +ns.core.GlobalValue.Bind("ChecksumEnabled", ns.core.BooleanValue("true")) + +class CoreNs3Node(CoreNode, ns.network.Node): + ''' The CoreNs3Node is both a CoreNode backed by a network namespace and + an ns-3 Node simulator object. When linked to simulated networks, the TunTap + device will be used. + ''' + def __init__(self, *args, **kwds): + ns.network.Node.__init__(self) + objid = self.GetId() + 1 # ns-3 ID starts at 0, CORE uses 1 + if 'objid' not in kwds: + kwds['objid'] = objid + CoreNode.__init__(self, *args, **kwds) + + def newnetif(self, net = None, addrlist = [], hwaddr = None, + ifindex = None, ifname = None): + ''' Add a network interface. If we are attaching to a CoreNs3Net, this + will be a TunTap. Otherwise dispatch to CoreNode.newnetif(). + ''' + if not isinstance(net, CoreNs3Net): + return CoreNode.newnetif(self, net, addrlist, hwaddr, ifindex, + ifname) + ifindex = self.newtuntap(ifindex = ifindex, ifname = ifname, net = net) + self.attachnet(ifindex, net) + netif = self.netif(ifindex) + netif.sethwaddr(hwaddr) + for addr in maketuple(addrlist): + netif.addaddr(addr) + + addrstr = netif.addrlist[0] + (addr, mask) = addrstr.split('/') + tap = net._tapdevs[netif] + tap.SetAttribute("IpAddress", + ns.network.Ipv4AddressValue(ns.network.Ipv4Address(addr))) + tap.SetAttribute("Netmask", + ns.network.Ipv4MaskValue(ns.network.Ipv4Mask("/" + mask))) + ns.core.Simulator.Schedule(ns.core.Time('0'), netif.install) + return ifindex + + def getns3position(self): + ''' Return the ns-3 (x, y, z) position of a node. + ''' + try: + mm = self.GetObject(ns.mobility.MobilityModel.GetTypeId()) + pos = mm.GetPosition() + return (pos.x, pos.y, pos.z) + except AttributeError: + self.warn("ns-3 mobility model not found") + return (0,0,0) + + def setns3position(self, x, y, z): + ''' Set the ns-3 (x, y, z) position of a node. + ''' + try: + mm = self.GetObject(ns.mobility.MobilityModel.GetTypeId()) + if z is None: + z = 0.0 + pos = mm.SetPosition(ns.core.Vector(x, y, z)) + except AttributeError: + self.warn("ns-3 mobility model not found, not setting position") + +class CoreNs3Net(PyCoreNet): + ''' The CoreNs3Net is a helper PyCoreNet object. Networks are represented + entirely in simulation with the TunTap device bridging the emulated and + simulated worlds. + ''' + apitype = coreapi.CORE_NODE_WLAN + linktype = coreapi.CORE_LINK_WIRELESS + type = "wlan" # icon used + + def __init__(self, session, objid = None, name = None, verbose = False, + start = True, policy = None): + PyCoreNet.__init__(self, session, objid, name) + self.tapbridge = ns.tap_bridge.TapBridgeHelper() + self._ns3devs = {} + self._tapdevs = {} + + def attach(self, netif): + ''' Invoked from netif.attach(). Create a TAP device using the TapBridge + object. Call getns3dev() to get model-specific device. + ''' + self._netif[netif] = netif + self._linked[netif] = {} + ns3dev = self.getns3dev(netif.node) + tap = self.tapbridge.Install(netif.node, ns3dev) + tap.SetMode(ns.tap_bridge.TapBridge.CONFIGURE_LOCAL) + tap.SetAttribute("DeviceName", ns.core.StringValue(netif.localname)) + self._ns3devs[netif] = ns3dev + self._tapdevs[netif] = tap + + def getns3dev(self, node): + ''' Implement depending on network helper. Install this network onto + the given node and return the device. Register the ns3 device into + self._ns3devs + ''' + raise NotImplementedError + + def findns3dev(self, node): + ''' Given a node, return the interface and ns3 device associated with + this network. + ''' + for netif in node.netifs(): + if netif in self._ns3devs: + return netif, self._ns3devs[netif] + return None, None + + def shutdown(self): + ''' Session.shutdown() will invoke this. + ''' + pass + + def usecorepositions(self): + ''' Set position callbacks for interfaces on this net so the CORE GUI + can update the ns-3 node position when moved with the mouse. + ''' + for netif in self.netifs(): + netif.poshook = self.setns3position + + def setns3position(self, netif, x, y, z): + #print "setns3position: %s (%s, %s, %s)" % (netif.node.name, x, y, z) + netif.node.setns3position(x, y, z) + + +class Ns3LteNet(CoreNs3Net): + def __init__(self, *args, **kwds): + ''' Uses a LteHelper to create an ns-3 based LTE network. + ''' + CoreNs3Net.__init__(self, *args, **kwds) + self.lte = ns.lte.LteHelper() + # enhanced NodeB node list + self.enbnodes = [] + self.dlsubchannels = None + self.ulsubchannels = None + + def setsubchannels(self, downlink, uplink): + ''' Set the downlink/uplink subchannels, which are a list of ints. + These should be set prior to using CoreNs3Node.newnetif(). + ''' + self.dlsubchannels = downlink + self.ulsubchannels = uplink + + def setnodeb(self, node): + ''' Mark the given node as a nodeb (base transceiver station) + ''' + self.enbnodes.append(node) + + def linknodeb(self, node, nodeb, mob, mobb): + ''' Register user equipment with a nodeb. + Optionally install mobility model while we have the ns-3 devs handy. + ''' + (tmp, nodebdev) = self.findns3dev(nodeb) + (tmp, dev) = self.findns3dev(node) + if nodebdev is None or dev is None: + raise KeyError, "ns-3 device for node not found" + self.lte.RegisterUeToTheEnb(dev, nodebdev) + if mob: + self.lte.AddMobility(dev.GetPhy(), mob) + if mobb: + self.lte.AddDownlinkChannelRealization(mobb, mob, dev.GetPhy()) + + def getns3dev(self, node): + ''' Get the ns3 NetDevice using the LteHelper. + ''' + if node in self.enbnodes: + devtype = ns.lte.LteHelper.DEVICE_TYPE_ENODEB + else: + devtype = ns.lte.LteHelper.DEVICE_TYPE_USER_EQUIPMENT + nodes = ns.network.NodeContainer(node) + devs = self.lte.Install(nodes, devtype) + devs.Get(0).GetPhy().SetDownlinkSubChannels(self.dlsubchannels) + devs.Get(0).GetPhy().SetUplinkSubChannels(self.ulsubchannels) + return devs.Get(0) + + def attach(self, netif): + ''' Invoked from netif.attach(). Create a TAP device using the TapBridge + object. Call getns3dev() to get model-specific device. + ''' + self._netif[netif] = netif + self._linked[netif] = {} + ns3dev = self.getns3dev(netif.node) + self.tapbridge.SetAttribute("Mode", ns.core.StringValue("UseLocal")) + #self.tapbridge.SetAttribute("Mode", + # ns.core.IntegerValue(ns.tap_bridge.TapBridge.USE_LOCAL)) + tap = self.tapbridge.Install(netif.node, ns3dev) + #tap.SetMode(ns.tap_bridge.TapBridge.USE_LOCAL) + print "using TAP device %s for %s/%s" % \ + (netif.localname, netif.node.name, netif.name) + check_call(['tunctl', '-t', netif.localname, '-n']) + #check_call([IP_BIN, 'link', 'set', 'dev', netif.localname, \ + # 'address', '%s' % netif.hwaddr]) + check_call([IP_BIN, 'link', 'set', netif.localname, 'up']) + tap.SetAttribute("DeviceName", ns.core.StringValue(netif.localname)) + self._ns3devs[netif] = ns3dev + self._tapdevs[netif] = tap + +class Ns3WifiNet(CoreNs3Net): + def __init__(self, *args, **kwds): + ''' Uses a WifiHelper to create an ns-3 based Wifi network. + ''' + rate = kwds.pop('rate', 'OfdmRate54Mbps') + CoreNs3Net.__init__(self, *args, **kwds) + self.wifi = ns.wifi.WifiHelper().Default() + self.wifi.SetStandard(ns.wifi.WIFI_PHY_STANDARD_80211a) + self.wifi.SetRemoteStationManager("ns3::ConstantRateWifiManager", + "DataMode", + ns.core.StringValue(rate), + "NonUnicastMode", + ns.core.StringValue(rate)) + self.mac = ns.wifi.NqosWifiMacHelper.Default() + self.mac.SetType("ns3::AdhocWifiMac") + + channel = ns.wifi.YansWifiChannelHelper.Default() + self.phy = ns.wifi.YansWifiPhyHelper.Default() + self.phy.SetChannel(channel.Create()) + + def getns3dev(self, node): + ''' Get the ns3 NetDevice using the WifiHelper. + ''' + devs = self.wifi.Install(self.phy, self.mac, node) + return devs.Get(0) + + +class Ns3WimaxNet(CoreNs3Net): + def __init__(self, *args, **kwds): + CoreNs3Net.__init__(self, *args, **kwds) + self.wimax = ns.wimax.WimaxHelper() + self.scheduler = ns.wimax.WimaxHelper.SCHED_TYPE_SIMPLE + self.phy = ns.wimax.WimaxHelper.SIMPLE_PHY_TYPE_OFDM + # base station node list + self.bsnodes = [] + + def setbasestation(self, node): + self.bsnodes.append(node) + + def getns3dev(self, node): + if node in self.bsnodes: + devtype = ns.wimax.WimaxHelper.DEVICE_TYPE_BASE_STATION + else: + devtype = ns.wimax.WimaxHelper.DEVICE_TYPE_SUBSCRIBER_STATION + nodes = ns.network.NodeContainer(node) + devs = self.wimax.Install(nodes, devtype, self.phy, self.scheduler) + if node not in self.bsnodes: + devs.Get(0).SetModulationType(ns.wimax.WimaxPhy.MODULATION_TYPE_QAM16_12) + # debug + self.wimax.EnableAscii("wimax-device-%s" % node.name, devs) + return devs.Get(0) + + @staticmethod + def ipv4netifaddr(netif): + for addr in netif.addrlist: + if ':' in addr: + continue # skip ipv6 + ip = ns.network.Ipv4Address(addr.split('/')[0]) + mask = ns.network.Ipv4Mask('/' + addr.split('/')[1]) + return (ip, mask) + return (None, None) + + + def addflow(self, node1, node2, upclass, downclass): + ''' Add a Wimax service flow between two nodes. + ''' + (netif1, ns3dev1) = self.findns3dev(node1) + (netif2, ns3dev2) = self.findns3dev(node2) + if not netif1 or not netif2: + raise ValueError, "interface not found" + (addr1, mask1) = self.ipv4netifaddr(netif1) + (addr2, mask2) = self.ipv4netifaddr(netif2) + clargs1 = (addr1, mask1, addr2, mask2) + downclass + clargs2 = (addr2, mask2, addr1, mask1) + upclass + clrec1 = ns.wimax.IpcsClassifierRecord(*clargs1) + clrec2 = ns.wimax.IpcsClassifierRecord(*clargs2) + ns3dev1.AddServiceFlow( \ + self.wimax.CreateServiceFlow(ns.wimax.ServiceFlow.SF_DIRECTION_DOWN, + ns.wimax.ServiceFlow.SF_TYPE_RTPS, clrec1)) + ns3dev1.AddServiceFlow( \ + self.wimax.CreateServiceFlow(ns.wimax.ServiceFlow.SF_DIRECTION_UP, + ns.wimax.ServiceFlow.SF_TYPE_RTPS, clrec2)) + ns3dev2.AddServiceFlow( \ + self.wimax.CreateServiceFlow(ns.wimax.ServiceFlow.SF_DIRECTION_DOWN, + ns.wimax.ServiceFlow.SF_TYPE_RTPS, clrec2)) + ns3dev2.AddServiceFlow( \ + self.wimax.CreateServiceFlow(ns.wimax.ServiceFlow.SF_DIRECTION_UP, + ns.wimax.ServiceFlow.SF_TYPE_RTPS, clrec1)) + + +class Ns3Session(Session): + ''' A Session that starts an ns-3 simulation thread. + ''' + def __init__(self, persistent = False, duration=600): + self.duration = duration + self.nodes = ns.network.NodeContainer() + self.mobhelper = ns.mobility.MobilityHelper() + Session.__init__(self, persistent = persistent) + + def run(self, vis=False): + ''' Run the ns-3 simulation and return the simulator thread. + ''' + def runthread(): + ns.core.Simulator.Stop(ns.core.Seconds(self.duration)) + print "running ns-3 simulation for %d seconds" % self.duration + if vis: + try: + import visualizer + except ImportError: + print "visualizer is not available" + ns.core.Simulator.Run() + else: + visualizer.start() + else: + ns.core.Simulator.Run() + #self.evq.run() # event queue may have WayPointMobility events + self.setstate(coreapi.CORE_EVENT_RUNTIME_STATE, info=True, + sendevent=True) + t = threading.Thread(target = runthread) + t.daemon = True + t.start() + return t + + def shutdown(self): + # TODO: the following line tends to segfault ns-3 (and therefore + # core-daemon) + ns.core.Simulator.Destroy() + Session.shutdown(self) + + def addnode(self, name): + ''' A convenience helper for Session.addobj(), for adding CoreNs3Nodes + to this session. Keeps a NodeContainer for later use. + ''' + n = self.addobj(cls = CoreNs3Node, name=name) + self.nodes.Add(n) + return n + + def setupconstantmobility(self): + ''' Install a ConstantPositionMobilityModel. + ''' + palloc = ns.mobility.ListPositionAllocator() + for i in xrange(self.nodes.GetN()): + (x, y, z) = ((100.0 * i) + 50, 200.0, 0.0) + palloc.Add(ns.core.Vector(x, y, z)) + node = self.nodes.Get(i) + node.position.set(x, y, z) + self.mobhelper.SetPositionAllocator(palloc) + self.mobhelper.SetMobilityModel("ns3::ConstantPositionMobilityModel") + self.mobhelper.Install(self.nodes) + + def setuprandomwalkmobility(self, bounds, time=10, speed=25.0): + ''' Set up the random walk mobility model within a bounding box. + - bounds is the max (x, y, z) boundary + - time is the number of seconds to maintain the current speed + and direction + - speed is the maximum speed, with node speed randomly chosen + from [0, speed] + ''' + (x, y, z) = map(float, bounds) + self.mobhelper.SetPositionAllocator("ns3::RandomBoxPositionAllocator", + "X", + ns.core.StringValue("ns3::UniformRandomVariable[Min=0|Max=%s]" % x), + "Y", + ns.core.StringValue("ns3::UniformRandomVariable[Min=0|Max=%s]" % y), + "Z", + ns.core.StringValue("ns3::UniformRandomVariable[Min=0|Max=%s]" % z)) + self.mobhelper.SetMobilityModel("ns3::RandomWalk2dMobilityModel", + "Mode", ns.core.StringValue("Time"), + "Time", ns.core.StringValue("%ss" % time), + "Speed", + ns.core.StringValue("ns3::UniformRandomVariable[Min=0|Max=%s]" \ + % speed), + "Bounds", ns.core.StringValue("0|%s|0|%s" % (x, y))) + self.mobhelper.Install(self.nodes) + + def startns3mobility(self, refresh_ms=300): + ''' Start a thread that updates CORE nodes based on their ns-3 + positions. + ''' + self.setstate(coreapi.CORE_EVENT_INSTANTIATION_STATE) + self.mobilitythread = threading.Thread( + target=self.ns3mobilitythread, + args=(refresh_ms,)) + self.mobilitythread.daemon = True + self.mobilitythread.start() + + def ns3mobilitythread(self, refresh_ms): + ''' Thread target that updates CORE nodes every refresh_ms based on + their ns-3 positions. + ''' + valid_states = (coreapi.CORE_EVENT_RUNTIME_STATE, + coreapi.CORE_EVENT_INSTANTIATION_STATE) + while self.getstate() in valid_states: + for i in xrange(self.nodes.GetN()): + node = self.nodes.Get(i) + (x, y, z) = node.getns3position() + if (x, y, z) == node.position.get(): + continue + # from WayPointMobility.setnodeposition(node, x, y, z) + node.position.set(x, y, z) + msg = node.tonodemsg(flags=0) + self.broadcastraw(None, msg) + self.sdt.updatenode(node, flags=0, x=x, y=y, z=z) + time.sleep(0.001 * refresh_ms) + + def setupmobilitytracing(self, net, filename, nodes, verbose=False): + ''' Start a tracing thread using the ASCII output from the ns3 + mobility helper. + ''' + net.mobility = WayPointMobility(session=self, objid=net.objid, + verbose=verbose, values=None) + net.mobility.setendtime() + net.mobility.refresh_ms = 300 + net.mobility.empty_queue_stop = False + of = ns.network.OutputStreamWrapper(filename, filemode=777) + self.mobhelper.EnableAsciiAll(of) + self.mobilitytracethread = threading.Thread(target=self.mobilitytrace, + args=(net, filename, nodes, verbose)) + self.mobilitytracethread.daemon = True + self.mobilitytracethread.start() + + def mobilitytrace(self, net, filename, nodes, verbose): + nodemap = {} + # move nodes to initial positions + for node in nodes: + (x,y,z) = node.getns3position() + net.mobility.setnodeposition(node, x, y, z) + nodemap[node.GetId()] = node + + if verbose: + self.info("mobilitytrace opening '%s'" % filename) + try: + f = open(filename) + f.seek(0,2) + except Exception, e: + self.warn("mobilitytrace error opening '%s': %s" % (filename, e)) + sleep = 0.001 + kickstart = True + while True: + if self.getstate() != coreapi.CORE_EVENT_RUNTIME_STATE: + break + line = f.readline() + if not line: + time.sleep(sleep) + if sleep < 1.0: + sleep += 0.001 + continue + sleep = 0.001 + items = dict(map(lambda x: x.split('='), line.split())) + if verbose: + self.info("trace: %s %s %s" % \ + (items['node'], items['pos'], items['vel'])) + (x, y, z) = map(float, items['pos'].split(':')) + vel = map(float, items['vel'].split(':')) + node = nodemap[int(items['node'])] + net.mobility.addwaypoint(time=0, nodenum=node.objid, + x=x, y=y, z=z, speed=vel) + if kickstart: + kickstart = False + self.evq.add_event(0, net.mobility.start) + self.evq.run() + else: + if net.mobility.state != net.mobility.STATE_RUNNING: + net.mobility.state = net.mobility.STATE_RUNNING + self.evq.add_event(0, net.mobility.runround) + + f.close() + + diff --git a/daemon/ns3/examples/ns3lte.py b/daemon/ns3/examples/ns3lte.py new file mode 100755 index 00000000..fdccd331 --- /dev/null +++ b/daemon/ns3/examples/ns3lte.py @@ -0,0 +1,110 @@ +#!/usr/bin/python + +# Copyright (c)2011-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +''' +ns3lte.py - This script demonstrates using CORE with the ns-3 LTE model. +*** Note that this script is not currently functional, see notes below. *** +- issues connecting TapBridge with LteNetDevice + +''' + +import os, sys, time, optparse, datetime, math +try: + from core import pycore +except ImportError: + # hack for Fedora autoconf that uses the following pythondir: + if "/usr/lib/python2.6/site-packages" in sys.path: + sys.path.append("/usr/local/lib/python2.6/site-packages") + if "/usr/lib64/python2.6/site-packages" in sys.path: + sys.path.append("/usr/local/lib64/python2.6/site-packages") + if "/usr/lib/python2.7/site-packages" in sys.path: + sys.path.append("/usr/local/lib/python2.7/site-packages") + if "/usr/lib64/python2.7/site-packages" in sys.path: + sys.path.append("/usr/local/lib64/python2.7/site-packages") + from core import pycore + +from core.misc import ipaddr +from corens3.obj import Ns3Session, Ns3LteNet +import ns.core +import ns.mobility + +def ltesession(opt): + ''' Run a test LTE session. + ''' + session = Ns3Session(persistent=True, duration=opt.duration) + lte = session.addobj(cls=Ns3LteNet, name="wlan1") + lte.setsubchannels(range(25), range(50, 100)) + if opt.verbose: + ascii = ns.network.AsciiTraceHelper() + stream = ascii.CreateFileStream('/tmp/ns3lte.tr') + lte.lte.EnableAsciiAll(stream) + #ns.core.LogComponentEnable("EnbNetDevice", ns.core.LOG_LEVEL_INFO) + #ns.core.LogComponentEnable("UeNetDevice", ns.core.LOG_LEVEL_INFO) + #lte.lte.EnableLogComponents() + + prefix = ipaddr.IPv4Prefix("10.0.0.0/16") + mobb = None + nodes = [] + for i in xrange(1, opt.numnodes + 1): + node = session.addnode(name = "n%d" % i) + mob = ns.mobility.ConstantPositionMobilityModel() + mob.SetPosition( ns.core.Vector3D(10.0 * i, 0.0, 0.0) ) + if i == 1: + lte.setnodeb(node) # first node is nodeb + mobb = mob + node.newnetif(lte, ["%s/%s" % (prefix.addr(i), prefix.prefixlen)]) + nodes.append(node) + if i == 1: + (tmp, ns3dev) = lte.findns3dev(node) + lte.lte.AddMobility(ns3dev.GetPhy(), mob) + if i > 1: + lte.linknodeb(node, nodes[0], mob, mobb) + + session.thread = session.run(vis=opt.visualize) + return session + +def main(): + ''' Main routine when running from command-line. + ''' + usagestr = "usage: %prog [-h] [options] [args]" + parser = optparse.OptionParser(usage = usagestr) + parser.set_defaults(numnodes = 4, duration = 600, verbose = False, visualize=False) + + parser.add_option("-d", "--duration", dest = "duration", type = int, + help = "number of seconds to run the simulation") + parser.add_option("-n", "--numnodes", dest = "numnodes", type = int, + help = "number of nodes") + parser.add_option("-z", "--visualize", dest = "visualize", + action = "store_true", help = "enable visualizer") + parser.add_option("-v", "--verbose", dest = "verbose", + action = "store_true", help = "be more verbose") + + def usage(msg = None, err = 0): + sys.stdout.write("\n") + if msg: + sys.stdout.write(msg + "\n\n") + parser.print_help() + sys.exit(err) + + (opt, args) = parser.parse_args() + + if opt.numnodes < 2: + usage("invalid numnodes: %s" % opt.numnodes) + + for a in args: + sys.stderr.write("ignoring command line argument: '%s'\n" % a) + + return ltesession(opt) + +def cleanup(): + print "shutting down session" + session.shutdown() + print "joining simulator thread (please kill it)" + session.thread.join() + +if __name__ == "__main__": + session = main() diff --git a/daemon/ns3/examples/ns3wifi.py b/daemon/ns3/examples/ns3wifi.py new file mode 100755 index 00000000..4dbd5069 --- /dev/null +++ b/daemon/ns3/examples/ns3wifi.py @@ -0,0 +1,122 @@ +#!/usr/bin/python -i + +# Copyright (c)2011-2013 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +''' +ns3wifi.py - This script demonstrates using CORE with the ns-3 Wifi model. + +How to run this: + + pushd ~/ns-allinone-3.16/ns-3.16 + sudo ./waf shell + popd + python -i ns3wifi.py + +To run with the CORE GUI: + + pushd ~/ns-allinone-3.16/ns-3.16 + sudo ./waf shell + core-daemon + + # in another terminal + core-daemon -e ./ns3wifi.py + # in a third terminal + core + # now select the running session + +''' + +import os, sys, time, optparse, datetime, math +try: + from core import pycore +except ImportError: + # hack for Fedora autoconf that uses the following pythondir: + if "/usr/lib/python2.6/site-packages" in sys.path: + sys.path.append("/usr/local/lib/python2.6/site-packages") + if "/usr/lib64/python2.6/site-packages" in sys.path: + sys.path.append("/usr/local/lib64/python2.6/site-packages") + if "/usr/lib/python2.7/site-packages" in sys.path: + sys.path.append("/usr/local/lib/python2.7/site-packages") + if "/usr/lib64/python2.7/site-packages" in sys.path: + sys.path.append("/usr/local/lib64/python2.7/site-packages") + from core import pycore + +import ns.core +from core.misc import ipaddr +from corens3.obj import Ns3Session, Ns3WifiNet + +def add_to_server(session): + ''' Add this session to the server's list if this script is executed from + the core-daemon server. + ''' + global server + try: + server.addsession(session) + return True + except NameError: + return False + +def wifisession(opt): + ''' Run a test wifi session. + ''' + session = Ns3Session(persistent=True, duration=opt.duration) + session.name = "ns3wifi" + session.filename = session.name + ".py" + session.node_count = str(opt.numnodes + 1) + add_to_server(session) + + wifi = session.addobj(cls=Ns3WifiNet, name="wlan1") + wifi.setposition(30, 30, 0) + wifi.phy.Set("RxGain", ns.core.DoubleValue(18.0)) + + prefix = ipaddr.IPv4Prefix("10.0.0.0/16") + nodes = [] + for i in xrange(1, opt.numnodes + 1): + node = session.addnode(name = "n%d" % i) + node.newnetif(wifi, ["%s/%s" % (prefix.addr(i), prefix.prefixlen)]) + nodes.append(node) + session.setupconstantmobility() + wifi.usecorepositions() + # PHY tracing + #wifi.phy.EnableAsciiAll("ns3wifi") + session.thread = session.run(vis=False) + return session + +def main(): + ''' Main routine when running from command-line. + ''' + usagestr = "usage: %prog [-h] [options] [args]" + parser = optparse.OptionParser(usage = usagestr) + parser.set_defaults(numnodes = 10, duration = 600, verbose = False) + + parser.add_option("-d", "--duration", dest = "duration", type = int, + help = "number of seconds to run the simulation") + parser.add_option("-n", "--numnodes", dest = "numnodes", type = int, + help = "number of nodes") + parser.add_option("-v", "--verbose", dest = "verbose", + action = "store_true", help = "be more verbose") + + def usage(msg = None, err = 0): + sys.stdout.write("\n") + if msg: + sys.stdout.write(msg + "\n\n") + parser.print_help() + sys.exit(err) + + (opt, args) = parser.parse_args() + + if opt.numnodes < 2: + usage("invalid numnodes: %s" % opt.numnodes) + + for a in args: + sys.stderr.write("ignoring command line argument: '%s'\n" % a) + + return wifisession(opt) + + +if __name__ == "__main__" or __name__ == "__builtin__": + session = main() + print "\nsession =", session diff --git a/daemon/ns3/examples/ns3wifirandomwalk.py b/daemon/ns3/examples/ns3wifirandomwalk.py new file mode 100755 index 00000000..a02eb69a --- /dev/null +++ b/daemon/ns3/examples/ns3wifirandomwalk.py @@ -0,0 +1,131 @@ +#!/usr/bin/python -i + +# Copyright (c)2011-2013 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +''' +ns3wifirandomwalk.py - This script demonstrates using CORE with the ns-3 Wifi +model and random walk mobility. +Patterned after the ns-3 example 'main-random-walk.cc'. + +How to run this: + + pushd ~/ns-allinone-3.16/ns-3.16 + sudo ./waf shell + popd + python -i ns3wifirandomwalk.py + +''' + +import os, sys, time, optparse, datetime, math, threading +try: + from core import pycore +except ImportError: + # hack for Fedora autoconf that uses the following pythondir: + if "/usr/lib/python2.6/site-packages" in sys.path: + sys.path.append("/usr/local/lib/python2.6/site-packages") + if "/usr/lib64/python2.6/site-packages" in sys.path: + sys.path.append("/usr/local/lib64/python2.6/site-packages") + if "/usr/lib/python2.7/site-packages" in sys.path: + sys.path.append("/usr/local/lib/python2.7/site-packages") + if "/usr/lib64/python2.7/site-packages" in sys.path: + sys.path.append("/usr/local/lib64/python2.7/site-packages") + from core import pycore + +import ns.core +import ns.network +from core.api import coreapi +from core.misc import ipaddr +from corens3.obj import Ns3Session, Ns3WifiNet + + +def add_to_server(session): + ''' Add this session to the server's list if this script is executed from + the core-daemon server. + ''' + global server + try: + server.addsession(session) + return True + except NameError: + return False + +def wifisession(opt): + ''' Run a random walk wifi session. + ''' + session = Ns3Session(persistent=True, duration=opt.duration) + session.name = "ns3wifirandomwalk" + session.filename = session.name + ".py" + session.node_count = str(opt.numnodes + 1) + add_to_server(session) + wifi = session.addobj(cls=Ns3WifiNet, name="wlan1", rate="OfdmRate12Mbps") + wifi.setposition(30, 30, 0) + # for improved connectivity + wifi.phy.Set("RxGain", ns.core.DoubleValue(18.0)) + + prefix = ipaddr.IPv4Prefix("10.0.0.0/16") + services_str = "zebra|OSPFv3MDR|vtysh|IPForward" + nodes = [] + for i in xrange(1, opt.numnodes + 1): + node = session.addnode(name = "n%d" % i) + node.newnetif(wifi, ["%s/%s" % (prefix.addr(i), prefix.prefixlen)]) + nodes.append(node) + session.services.addservicestonode(node, "router", services_str, + opt.verbose) + session.services.bootnodeservices(node) + session.setuprandomwalkmobility(bounds=(1000.0, 750.0, 0)) + + # PHY tracing + #wifi.phy.EnableAsciiAll("ns3wifirandomwalk") + + # mobility tracing + #session.setupmobilitytracing(wifi, "ns3wifirandomwalk.mob.tr", + # nodes, verbose=True) + session.startns3mobility(refresh_ms=150) + + # start simulation + # session.instantiate() ? + session.thread = session.run(vis=opt.viz) + return session + +def main(): + ''' Main routine when running from command-line. + ''' + usagestr = "usage: %prog [-h] [options] [args]" + parser = optparse.OptionParser(usage = usagestr) + parser.set_defaults(numnodes = 5, duration = 600, verbose = False, viz = False) + opt = { 'numnodes' : 5, 'duration': 600, 'verbose' :False, 'viz': False } + + + parser.add_option("-d", "--duration", dest = "duration", type = int, + help = "number of seconds to run the simulation") + parser.add_option("-n", "--numnodes", dest = "numnodes", type = int, + help = "number of nodes") + parser.add_option("-v", "--verbose", dest = "verbose", + action = "store_true", help = "be more verbose") + parser.add_option("-V", "--visualize", dest = "viz", + action = "store_true", help = "enable PyViz ns-3 visualizer") + + def usage(msg = None, err = 0): + sys.stdout.write("\n") + if msg: + sys.stdout.write(msg + "\n\n") + parser.print_help() + sys.exit(err) + + (opt, args) = parser.parse_args() + + if opt.numnodes < 2: + usage("invalid numnodes: %s" % opt.numnodes) + + for a in args: + sys.stderr.write("ignoring command line argument: '%s'\n" % a) + + return wifisession(opt) + + +if __name__ == "__main__" or __name__ == "__builtin__": + session = main() + print "\nsession =", session diff --git a/daemon/ns3/examples/ns3wimax.py b/daemon/ns3/examples/ns3wimax.py new file mode 100755 index 00000000..a6d69c49 --- /dev/null +++ b/daemon/ns3/examples/ns3wimax.py @@ -0,0 +1,95 @@ +#!/usr/bin/python -i + +# Copyright (c)2011-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +''' +ns3wimax.py - This script demonstrates using CORE with the ns-3 Wimax model. +*** Note that this script is not currently functional, see notes below. *** +Current issues: +- large amount of base station chatter; huge trace files, 70% CPU usage +- PCAP files unreadable +- base station causes segfault if it sends packet; due to missing service flows + (but AddFlow() is not available for bs devices) +- no packets are sent between nodes - no connection? +''' + +import os, sys, time, optparse, datetime, math +try: + from core import pycore +except ImportError: + # hack for Fedora autoconf that uses the following pythondir: + if "/usr/lib/python2.6/site-packages" in sys.path: + sys.path.append("/usr/local/lib/python2.6/site-packages") + if "/usr/lib64/python2.6/site-packages" in sys.path: + sys.path.append("/usr/local/lib64/python2.6/site-packages") + if "/usr/lib/python2.7/site-packages" in sys.path: + sys.path.append("/usr/local/lib/python2.7/site-packages") + if "/usr/lib64/python2.7/site-packages" in sys.path: + sys.path.append("/usr/local/lib64/python2.7/site-packages") + from core import pycore + +from core.misc import ipaddr +from corens3.obj import Ns3Session, Ns3WimaxNet + +def wimaxsession(opt): + ''' Run a test wimax session. + ''' + session = Ns3Session(persistent=True, duration=opt.duration) + wimax = session.addobj(cls=Ns3WimaxNet, name="wlan1") + #wimax.wimax.EnableLogComponents() + + prefix = ipaddr.IPv4Prefix("10.0.0.0/16") + # create one classifier for ICMP (protocol 1) traffic + # src port low/high, dst port low/high, protocol, priority + #classifier = (0, 65000, 0, 65000, 1, 1) + classifier = (0, 65000, 0, 65000, 17, 1) + nodes = [] + for i in xrange(1, opt.numnodes + 1): + node = session.addnode(name = "n%d" % i) + if i == 1: + wimax.setbasestation(node) + node.newnetif(wimax, ["%s/%s" % (prefix.addr(i), prefix.prefixlen)]) + if i > 2: + wimax.addflow(nodes[-1], node, classifier, classifier) + nodes.append(node) + session.setupconstantmobility() + session.thread = session.run(vis=False) + return session + +def main(): + ''' Main routine when running from command-line. + ''' + usagestr = "usage: %prog [-h] [options] [args]" + parser = optparse.OptionParser(usage = usagestr) + parser.set_defaults(numnodes = 3, duration = 600, verbose = False) + + parser.add_option("-d", "--duration", dest = "duration", type = int, + help = "number of seconds to run the simulation") + parser.add_option("-n", "--numnodes", dest = "numnodes", type = int, + help = "number of nodes") + parser.add_option("-v", "--verbose", dest = "verbose", + action = "store_true", help = "be more verbose") + + def usage(msg = None, err = 0): + sys.stdout.write("\n") + if msg: + sys.stdout.write(msg + "\n\n") + parser.print_help() + sys.exit(err) + + (opt, args) = parser.parse_args() + + if opt.numnodes < 2: + usage("invalid numnodes: %s" % opt.numnodes) + + for a in args: + sys.stderr.write("ignoring command line argument: '%s'\n" % a) + + return wimaxsession(opt) + + +if __name__ == "__main__": + session = main() diff --git a/daemon/ns3/setup.py b/daemon/ns3/setup.py new file mode 100644 index 00000000..44582d13 --- /dev/null +++ b/daemon/ns3/setup.py @@ -0,0 +1,28 @@ +# Copyright (c)2012 the Boeing Company. +# See the LICENSE file included in this directory. + +import os, glob +from distutils.core import setup +from corens3.constants import COREDPY_VERSION + +# optionally pass CORE_CONF_DIR using environment variable +confdir = os.environ.get('CORE_CONF_DIR') +if confdir is None: + confdir="/etc/core" + +setup(name = "corens3-python", + version = COREDPY_VERSION, + packages = [ + "corens3", + ], + data_files = [ + ("share/core/examples/corens3", + glob.glob("examples/*.py")), + ], + description = "Python ns-3 components of CORE", + url = "http://cs.itd.nrl.navy.mil/work/core/", + author = "Boeing Research & Technology", + author_email = "core-dev@pf.itd.nrl.navy.mil", + license = "GPLv2", + long_description="Python scripts and modules for building virtual " \ + "simulated networks.") diff --git a/daemon/sbin/core-cleanup b/daemon/sbin/core-cleanup new file mode 100755 index 00000000..e95ee667 --- /dev/null +++ b/daemon/sbin/core-cleanup @@ -0,0 +1,58 @@ +#!/bin/sh + +if [ "z$1" = "z-h" -o "z$1" = "z--help" ]; then + echo "usage: $0 [-d [-l]]" + echo -n " Clean up all CORE namespaces processes, bridges, interfaces, " + echo "and session\n directories. Options:" + echo " -h show this help message and exit" + echo " -d also kill the Python daemon" + echo " -l remove the core-daemon.log file" + exit 0 +fi + +if [ `id -u` != 0 ]; then + echo "Permission denied. Re-run this script as root." + exit 1 +fi + +PATH="/sbin:/bin:/usr/sbin:/usr/bin" +export PATH + +if [ "z$1" = "z-d" ]; then + pypids=`pidof python python2` + for p in $pypids; do + grep -q core-daemon /proc/$p/cmdline + if [ $? = 0 ]; then + echo "cleaning up core-daemon process: $p" + kill -9 $p + fi + done +fi + +if [ "z$2" = "z-l" ]; then + rm -f /var/log/core-daemon.log +fi + +vnodedpids=`pidof vnoded` +if [ "z$vnodedpids" != "z" ]; then + echo "cleaning up old vnoded processes: $vnodedpids" + killall -v -KILL vnoded + # pause for 1 second for interfaces to disappear + sleep 1 +fi +killall -q emane +killall -q emanetransportd +killall -q emaneeventservice + +ifconfig -a | awk ' + /^n[0-9]+/ {print "removing interface " $1; system("ip link del " $1);} + /tmp\./ {print "removing interface " $1; system("ip link del " $1);} + /gt\./ {print "removing interface " $1; system("ip link del " $1);} + /b\./ {print "removing bridge " $1; system("ip link set " $1 " down; brctl delbr " $1);} +' + +ebtables -L FORWARD | awk ' + /^-.*b\./ {print "removing ebtables " $0; system("ebtables -D FORWARD " $0); print "removing ebtables chain " $4; system("ebtables -X " $4);} +' + +rm -rf /tmp/pycore* diff --git a/daemon/sbin/core-daemon b/daemon/sbin/core-daemon new file mode 100755 index 00000000..e53fe3fd --- /dev/null +++ b/daemon/sbin/core-daemon @@ -0,0 +1,1636 @@ +#!/usr/bin/env python +# +# CORE +# Copyright (c)2010-2013 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# authors: Tom Goff +# Jeff Ahrenholz +# +''' +core-daemon: the CORE daemon is a server process that receives CORE API +messages and instantiates emulated nodes and networks within the kernel. Various +message handlers are defined and some support for sending messages. +''' + +import SocketServer, fcntl, struct, sys, threading, time, traceback +import os, optparse, ConfigParser, gc, shlex, socket, shutil +import atexit +import signal + +try: + from core import pycore +except ImportError: + # hack for Fedora autoconf that uses the following pythondir: + if "/usr/lib/python2.6/site-packages" in sys.path: + sys.path.append("/usr/local/lib/python2.6/site-packages") + if "/usr/lib64/python2.6/site-packages" in sys.path: + sys.path.append("/usr/local/lib64/python2.6/site-packages") + if "/usr/lib/python2.7/site-packages" in sys.path: + sys.path.append("/usr/local/lib/python2.7/site-packages") + if "/usr/lib64/python2.7/site-packages" in sys.path: + sys.path.append("/usr/local/lib64/python2.7/site-packages") + from core import pycore +from core.constants import * +from core.api import coreapi +from core.coreobj import PyCoreNet +from core.misc.utils import hexdump, daemonize +from core.misc.xmlutils import opensessionxml, savesessionxml + +DEFAULT_MAXFD = 1024 + +# garbage collection debugging +# gc.set_debug(gc.DEBUG_STATS | gc.DEBUG_LEAK) + + +coreapi.add_node_class("CORE_NODE_DEF", + coreapi.CORE_NODE_DEF, pycore.nodes.CoreNode) +coreapi.add_node_class("CORE_NODE_PHYS", + coreapi.CORE_NODE_PHYS, pycore.pnodes.PhysicalNode) +try: + coreapi.add_node_class("CORE_NODE_XEN", + coreapi.CORE_NODE_XEN, pycore.xen.XenNode) +except Exception: + #print "XenNode class unavailable." + pass +coreapi.add_node_class("CORE_NODE_TBD", + coreapi.CORE_NODE_TBD, None) +coreapi.add_node_class("CORE_NODE_SWITCH", + coreapi.CORE_NODE_SWITCH, pycore.nodes.SwitchNode) +coreapi.add_node_class("CORE_NODE_HUB", + coreapi.CORE_NODE_HUB, pycore.nodes.HubNode) +coreapi.add_node_class("CORE_NODE_WLAN", + coreapi.CORE_NODE_WLAN, pycore.nodes.WlanNode) +coreapi.add_node_class("CORE_NODE_RJ45", + coreapi.CORE_NODE_RJ45, pycore.nodes.RJ45Node) +coreapi.add_node_class("CORE_NODE_TUNNEL", + coreapi.CORE_NODE_TUNNEL, pycore.nodes.TunnelNode) +coreapi.add_node_class("CORE_NODE_EMANE", + coreapi.CORE_NODE_EMANE, pycore.nodes.EmaneNode) + +def closeonexec(fd): + fdflags = fcntl.fcntl(fd, fcntl.F_GETFD) + fcntl.fcntl(fd, fcntl.F_SETFD, fdflags | fcntl.FD_CLOEXEC) + +class CoreRequestHandler(SocketServer.BaseRequestHandler): + ''' The SocketServer class uses the RequestHandler class for servicing + requests, mainly through the handle() method. The CoreRequestHandler + has the following basic flow: + 1. Client connects and request comes in via handle(). + 2. handle() calls recvmsg() in a loop. + 3. recvmsg() does a recv() call on the socket performs basic + checks that this we received a CoreMessage, returning it. + 4. The message data is queued using queuemsg(). + 5. The handlerthread() thread pops messages from the queue and uses + handlemsg() to invoke the appropriate handler for that message type. + + ''' + + maxmsgqueuedtimes = 8 + + def __init__(self, request, client_address, server): + self.done = False + self.msghandler = { + coreapi.CORE_API_NODE_MSG: self.handlenodemsg, + coreapi.CORE_API_LINK_MSG: self.handlelinkmsg, + coreapi.CORE_API_EXEC_MSG: self.handleexecmsg, + coreapi.CORE_API_REG_MSG: self.handleregmsg, + coreapi.CORE_API_CONF_MSG: self.handleconfmsg, + coreapi.CORE_API_FILE_MSG: self.handlefilemsg, + coreapi.CORE_API_IFACE_MSG: self.handleifacemsg, + coreapi.CORE_API_EVENT_MSG: self.handleeventmsg, + coreapi.CORE_API_SESS_MSG: self.handlesessionmsg, + } + self.msgq = [] + self.msgcv = threading.Condition() + self.nodestatusreq = {} + numthreads = int(server.cfg['numthreads']) + if numthreads < 1: + raise ValueError, \ + "invalid number of threads: %s" % numthreads + self.handlerthreads = [] + while numthreads: + t = threading.Thread(target = self.handlerthread) + self.handlerthreads.append(t) + t.start() + numthreads -= 1 + self.master = False + self.verbose = bool(server.cfg['verbose'].lower() == "true") + self.debug = bool(server.cfg['debug'].lower() == "true") + self.session = None + #self.numwlan = 0 + closeonexec(request.fileno()) + SocketServer.BaseRequestHandler.__init__(self, request, + client_address, server) + + def setup(self): + ''' Client has connected, set up a new connection. + ''' + self.info("new TCP connection: %s:%s" % self.client_address) + #self.register() + + + def finish(self): + ''' Client has disconnected, end this request handler and disconnect + from the session. Shutdown sessions that are not running. + ''' + if self.verbose: + self.info("client disconnected: notifying threads") + max_attempts = 5 + timeout = 0.0625 # wait for 1.9375s max + while len(self.msgq) > 0 and max_attempts > 0: + if self.verbose: + self.info("%d messages remain in queue (%d)" % \ + (len(self.msgq), max_attempts)) + max_attempts -= 1 + self.msgcv.acquire() + self.msgcv.notifyAll() # drain msgq before dying + self.msgcv.release() + time.sleep(timeout) # allow time for msg processing + timeout *= 2 # backoff timer + self.msgcv.acquire() + self.done = True + self.msgcv.notifyAll() + self.msgcv.release() + for t in self.handlerthreads: + if self.verbose: + self.info("waiting for thread: %s" % t.getName()) + timeout = 2.0 # seconds + t.join(timeout) + if t.isAlive(): + self.warn("joining %s failed: still alive after %s sec" % + (t.getName(), timeout)) + self.info("connection closed: %s:%s" % self.client_address) + if self.session: + self.session.disconnect(self) + return SocketServer.BaseRequestHandler.finish(self) + + + def info(self, msg): + ''' Utility method for writing output to stdout. + ''' + print msg + sys.stdout.flush() + + + def warn(self, msg): + ''' Utility method for writing output to stderr. + ''' + print >> sys.stderr, msg + sys.stderr.flush() + + def register(self): + ''' Return a Register Message + ''' + self.info("GUI has connected to session %d at %s" % \ + (self.session.sessionid, time.ctime())) + tlvdata = "" + tlvdata += coreapi.CoreRegTlv.pack(coreapi.CORE_TLV_REG_EXECSRV, + "core-daemon") + tlvdata += coreapi.CoreRegTlv.pack(coreapi.CORE_TLV_REG_EMULSRV, + "core-daemon") + tlvdata += self.session.confobjs_to_tlvs() + return coreapi.CoreRegMessage.pack(coreapi.CORE_API_ADD_FLAG, tlvdata) + + def sendall(self, data): + ''' Send raw data to the other end of this TCP connection + using socket's sendall(). + ''' + return self.request.sendall(data) + + def recvmsg(self): + ''' Receive data and return a CORE API message object. + ''' + try: + msghdr = self.request.recv(coreapi.CoreMessage.hdrsiz) + if self.debug: + self.info("received message header:\n%s" % hexdump(msghdr)) + except Exception, e: + raise IOError, "error receiving header (%s)" % e + if len(msghdr) != coreapi.CoreMessage.hdrsiz: + if len(msghdr) == 0: + raise EOFError, "client disconnected" + else: + raise IOError, "invalid message header size" + msgtype, msgflags, msglen = coreapi.CoreMessage.unpackhdr(msghdr) + if msglen == 0: + self.warn("received message with no data") + data = "" + while len(data) < msglen: + data += self.request.recv(msglen - len(data)) + if self.debug: + self.info("received message data:\n%s" % hexdump(data)) + if len(data) > msglen: + self.warn("received message length does not match received data " \ + "(%s != %s)" % (len(data), msglen)) + raise IOError + try: + msgcls = coreapi.msg_class(msgtype) + msg = msgcls(msgflags, msghdr, data) + except KeyError: + msg = coreapi.CoreMessage(msgflags, msghdr, data) + msg.msgtype = msgtype + self.warn("unimplemented core message type: %s" % msg.typestr()) + return msg + + + def queuemsg(self, msg): + ''' Queue an API message for later processing. + ''' + if msg.queuedtimes >= self.maxmsgqueuedtimes: + self.warn("dropping message queued %d times: %s" % + (msg.queuedtimes, msg)) + return + if self.debug: + self.info("queueing msg (queuedtimes = %s): type %s" % + (msg.queuedtimes, msg.msgtype)) + msg.queuedtimes += 1 + self.msgcv.acquire() + self.msgq.append(msg) + self.msgcv.notify() + self.msgcv.release() + + def handlerthread(self): + ''' CORE API message handling loop that is spawned for each server + thread; get CORE API messages from the incoming message queue, + and call handlemsg() for processing. + ''' + while not self.done: + # get a coreapi.CoreMessage() from the incoming queue + self.msgcv.acquire() + while not self.msgq: + self.msgcv.wait() + if self.done: + self.msgcv.release() + return + msg = self.msgq.pop(0) + self.msgcv.release() + self.handlemsg(msg) + + + def handlemsg(self, msg): + ''' Handle an incoming message; dispatch based on message type, + optionally sending replies. + ''' + if self.session and self.session.broker.handlemsg(msg): + if self.debug: + self.info("%s forwarding message:\n%s" % + (threading.currentThread().getName(), msg)) + return + + if self.debug: + self.info("%s handling message:\n%s" % + (threading.currentThread().getName(), msg)) + + if msg.msgtype not in self.msghandler: + self.warn("no handler for message type: %s" % + msg.typestr()) + return + msghandler = self.msghandler[msg.msgtype] + + try: + replies = msghandler(msg) + for reply in replies: + if self.debug: + msgtype, msgflags, msglen = \ + coreapi.CoreMessage.unpackhdr(reply) + try: + rmsg = coreapi.msg_class(msgtype)(msgflags, + reply[:coreapi.CoreMessage.hdrsiz], + reply[coreapi.CoreMessage.hdrsiz:]) + except KeyError: + # multiple TLVs of same type cause KeyError exception + rmsg = "CoreMessage (type %d flags %d length %d)" % \ + (msgtype, msgflags, msglen) + self.info("%s: reply msg:\n%s" % + (threading.currentThread().getName(), rmsg)) + try: + self.sendall(reply) + except Exception, e: + self.warn("Error sending reply data: %s" % e) + except Exception, e: + self.warn("%s: exception while handling msg:\n%s\n%s" % + (threading.currentThread().getName(), msg, + traceback.format_exc())) + + def handle(self): + ''' Handle a new connection request from a client. Dispatch to the + recvmsg() method for receiving data into CORE API messages, and + add them to an incoming message queue. + ''' + # use port as session id + port = self.request.getpeername()[1] + self.session = self.server.getsession(sessionid = port, + useexisting = False) + self.session.connect(self) + while True: + try: + msg = self.recvmsg() + except EOFError: + break + except IOError, e: + self.warn("IOError: %s" % e) + break + msg.queuedtimes = 0 + self.queuemsg(msg) + if (msg.msgtype == coreapi.CORE_API_SESS_MSG): + # delay is required for brief connections, allow session joining + time.sleep(0.125) + self.session.broadcast(self, msg) + #self.session.shutdown() + #del self.session + gc.collect() +# print "gc count:", gc.get_count() +# for o in gc.get_objects(): +# if isinstance(o, pycore.PyCoreObj): +# print "XXX XXX XXX PyCoreObj:", o +# for r in gc.get_referrers(o): +# print "XXX XXX XXX referrer:", gc.get_referrers(o) + + + def handlenodemsg(self, msg): + ''' Node Message handler + ''' + replies = [] + if msg.flags & coreapi.CORE_API_ADD_FLAG and \ + msg.flags & coreapi.CORE_API_DEL_FLAG: + self.warn("ignoring invalid message: " + "add and delete flag both set") + return () + nodenum = msg.tlvdata[coreapi.CORE_TLV_NODE_NUMBER] + nodexpos = msg.gettlv(coreapi.CORE_TLV_NODE_XPOS) + nodeypos = msg.gettlv(coreapi.CORE_TLV_NODE_YPOS) + canvas = msg.gettlv(coreapi.CORE_TLV_NODE_CANVAS) + icon = msg.gettlv(coreapi.CORE_TLV_NODE_ICON) + lat = msg.gettlv(coreapi.CORE_TLV_NODE_LAT) + lng = msg.gettlv(coreapi.CORE_TLV_NODE_LONG) + alt = msg.gettlv(coreapi.CORE_TLV_NODE_ALT) + if nodexpos is None and nodeypos is None and \ + lat is not None and lng is not None and alt is not None: + (x, y, z) = self.session.location.getxyz(float(lat), float(lng), + float(alt)) + nodexpos = int(x) + nodeypos = int(y) + # GUI can't handle lat/long, so generate another X/Y position message + tlvdata = "" + tlvdata += coreapi.CoreNodeTlv.pack(coreapi.CORE_TLV_NODE_NUMBER, + nodenum) + tlvdata += coreapi.CoreNodeTlv.pack(coreapi.CORE_TLV_NODE_XPOS, + nodexpos) + tlvdata += coreapi.CoreNodeTlv.pack(coreapi.CORE_TLV_NODE_YPOS, + nodeypos) + self.session.broadcastraw(self, coreapi.CoreNodeMessage.pack(0, tlvdata)) + + if msg.flags & coreapi.CORE_API_ADD_FLAG: + nodetype = msg.tlvdata[coreapi.CORE_TLV_NODE_TYPE] + try: + nodecls = coreapi.node_class(nodetype) + except KeyError: + try: + nodetypestr = " (%s)" % coreapi.node_types[nodetype] + except KeyError: + nodetypestr = "" + self.warn("warning: unimplemented node type: %s%s" % \ + (nodetype, nodetypestr)) + return () + start = False + if self.session.getstate() > coreapi.CORE_EVENT_DEFINITION_STATE: + start = True + + nodename = msg.tlvdata[coreapi.CORE_TLV_NODE_NAME] + model = msg.gettlv(coreapi.CORE_TLV_NODE_MODEL) + clsargs = { 'verbose': self.verbose, 'start': start } + if nodetype == coreapi.CORE_NODE_XEN: + clsargs['model'] = model + if nodetype == coreapi.CORE_NODE_RJ45: + if hasattr(self.session.options, 'enablerj45'): + if self.session.options.enablerj45 == '0': + clsargs['start'] = False + # this instantiates an object of class nodecls, + # creating the node or network + n = self.session.addobj(cls = nodecls, objid = nodenum, + name = nodename, **clsargs) + if nodexpos is not None and nodeypos is not None: + n.setposition(nodexpos, nodeypos, None) + if canvas is not None: + n.canvas = canvas + if icon is not None: + n.icon = icon + opaque = msg.gettlv(coreapi.CORE_TLV_NODE_OPAQUE) + if opaque is not None: + n.opaque = opaque + + # add services to a node, either from its services TLV or + # through the configured defaults for this node type + if nodetype == coreapi.CORE_NODE_DEF or \ + nodetype == coreapi.CORE_NODE_PHYS or \ + nodetype == coreapi.CORE_NODE_XEN: + if model is None: + # TODO: default model from conf file? + model = "router" + n.type = model + services_str = msg.gettlv(coreapi.CORE_TLV_NODE_SERVICES) + self.session.services.addservicestonode(n, model, services_str, + self.verbose) + self.session.sdt.updatenode(n, msg.flags, nodexpos, nodeypos, None) + # boot nodes if they are added after runtime (like session.bootnodes()) + if self.session.getstate() == coreapi.CORE_EVENT_RUNTIME_STATE: + if isinstance(n, pycore.nodes.PyCoreNode) and \ + not isinstance(n, pycore.nodes.RJ45Node): + self.session.writeobjs() + self.session.addremovectrlif(node=n, remove=False) + n.boot() + # self.session.updatectrlifhosts() + # n.validate() + + if msg.flags & coreapi.CORE_API_STR_FLAG: + self.nodestatusreq[nodenum] = True + + elif msg.flags & coreapi.CORE_API_DEL_FLAG: + n = None + try: + n = self.session.obj(nodenum) + except KeyError: + pass + self.session.sdt.updatenode(n, msg.flags, None, None, None) + self.session.delobj(nodenum) + + if msg.flags & coreapi.CORE_API_STR_FLAG: + tlvdata = "" + tlvdata += coreapi.CoreNodeTlv.pack(coreapi.CORE_TLV_NODE_NUMBER, + nodenum) + flags = coreapi.CORE_API_DEL_FLAG | coreapi.CORE_API_LOC_FLAG + replies.append(coreapi.CoreNodeMessage.pack(flags, tlvdata)) + for reply in self.session.checkshutdown(): + replies.append(reply) + # Node modify message (no add/del flag) + else: + n = None + try: + n = self.session.obj(nodenum) + except KeyError: + if self.verbose: + self.warn("ignoring node message: unknown node number %s" \ + % nodenum) + #nodeemuid = msg.gettlv(coreapi.CORE_TLV_NODE_EMUID) + if nodexpos is None or nodeypos is None: + if self.verbose: + self.info("ignoring node message: nothing to do") + else: + if n: + n.setposition(nodexpos, nodeypos, None) + self.session.sdt.updatenode(n, msg.flags, nodexpos, nodeypos, None) + if n: + if canvas is not None: + n.canvas = canvas + if icon is not None: + n.icon = icon + + return replies + + + def handlelinkmsg(self, msg): + ''' Link Message handler + ''' + + nodenum1 = msg.gettlv(coreapi.CORE_TLV_LINK_N1NUMBER) + ifindex1 = msg.gettlv(coreapi.CORE_TLV_LINK_IF1NUM) + ipv41 = msg.gettlv(coreapi.CORE_TLV_LINK_IF1IP4) + ipv4mask1 = msg.gettlv(coreapi.CORE_TLV_LINK_IF1IP4MASK) + mac1 = msg.gettlv(coreapi.CORE_TLV_LINK_IF1MAC) + ipv61 = msg.gettlv(coreapi.CORE_TLV_LINK_IF1IP6) + ipv6mask1 = msg.gettlv(coreapi.CORE_TLV_LINK_IF1IP6MASK) + + nodenum2 = msg.gettlv(coreapi.CORE_TLV_LINK_N2NUMBER) + ifindex2 = msg.gettlv(coreapi.CORE_TLV_LINK_IF2NUM) + ipv42 = msg.gettlv(coreapi.CORE_TLV_LINK_IF2IP4) + ipv4mask2 = msg.gettlv(coreapi.CORE_TLV_LINK_IF2IP4MASK) + mac2 = msg.gettlv(coreapi.CORE_TLV_LINK_IF2MAC) + ipv62 = msg.gettlv(coreapi.CORE_TLV_LINK_IF2IP6) + ipv6mask2 = msg.gettlv(coreapi.CORE_TLV_LINK_IF2IP6MASK) + + node1 = None + node2 = None + net = None + net2 = None + + # one of the nodes may exist on a remote server + if nodenum1 is not None and nodenum2 is not None: + t = self.session.broker.gettunnel(nodenum1, nodenum2) + if isinstance(t, pycore.nodes.PyCoreNet): + net = t + if t.remotenum == nodenum1: + nodenum1 = None + else: + nodenum2 = None + # PhysicalNode connected via GreTap tunnel; uses adoptnetif() below + elif t is not None: + if t.remotenum == nodenum1: + nodenum1 = None + else: + nodenum2 = None + + + if nodenum1 is not None: + try: + n = self.session.obj(nodenum1) + except KeyError: + # XXX wait and queue this message to try again later + # XXX maybe this should be done differently + time.sleep(0.125) + self.queuemsg(msg) + return () + if isinstance(n, pycore.nodes.PyCoreNode): + node1 = n + elif isinstance(n, pycore.nodes.PyCoreNet): + if net is None: + net = n + else: + net2 = n + else: + raise ValueError, "unexpected object class: %s" % n + + if nodenum2 is not None: + try: + n = self.session.obj(nodenum2) + except KeyError: + # XXX wait and queue this message to try again later + # XXX maybe this should be done differently + time.sleep(0.125) + self.queuemsg(msg) + return () + if isinstance(n, pycore.nodes.PyCoreNode): + node2 = n + elif isinstance(n, pycore.nodes.PyCoreNet): + if net is None: + net = n + else: + net2 = n + else: + raise ValueError, "unexpected object class: %s" % n + + link_msg_type = msg.gettlv(coreapi.CORE_TLV_LINK_TYPE) + + if node1: + node1.lock.acquire() + if node2: + node2.lock.acquire() + + try: + if link_msg_type == coreapi.CORE_LINK_WIRELESS: + ''' Wireless link/unlink event + ''' + numwlan = 0 + objs = [node1, node2, net, net2] + objs = filter( lambda(x): x is not None, objs ) + if len(objs) < 2: + raise ValueError, "wireless link/unlink message between unknown objects" + + nets = objs[0].commonnets(objs[1]) + for (netcommon, netif1, netif2) in nets: + if not isinstance(netcommon, pycore.nodes.WlanNode) and \ + not isinstance(netcommon, pycore.nodes.EmaneNode): + continue + if msg.flags & coreapi.CORE_API_ADD_FLAG: + netcommon.link(netif1, netif2) + elif msg.flags & coreapi.CORE_API_DEL_FLAG: + netcommon.unlink(netif1, netif2) + else: + raise ValueError, "invalid flags for wireless link/unlink message" + numwlan += 1 + if numwlan == 0: + raise ValueError, \ + "no common network found for wireless link/unlink" + + elif msg.flags & coreapi.CORE_API_ADD_FLAG: + ''' Add a new link. + ''' + start = False + if self.session.getstate() > coreapi.CORE_EVENT_DEFINITION_STATE: + start = True + + if node1 and node2 and not net: + # a new wired link + net = self.session.addobj(cls = pycore.nodes.PtpNet, + verbose = self.verbose, + start = start) + + bw = msg.gettlv(coreapi.CORE_TLV_LINK_BW) + delay = msg.gettlv(coreapi.CORE_TLV_LINK_DELAY) + loss = msg.gettlv(coreapi.CORE_TLV_LINK_PER) + duplicate = msg.gettlv(coreapi.CORE_TLV_LINK_DUP) + jitter = msg.gettlv(coreapi.CORE_TLV_LINK_JITTER) + key = msg.gettlv(coreapi.CORE_TLV_LINK_KEY) + + netaddrlist = [] + #print " n1=%s n2=%s net=%s net2=%s" % (node1, node2, net, net2) + if node1 and net: + addrlist = [] + if ipv41 is not None and ipv4mask1 is not None: + addrlist.append("%s/%s" % (ipv41, ipv4mask1)) + if ipv61 is not None and ipv6mask1 is not None: + addrlist.append("%s/%s" % (ipv61, ipv6mask1)) + if ipv42 is not None and ipv4mask2 is not None: + netaddrlist.append("%s/%s" % (ipv42, ipv4mask2)) + if ipv62 is not None and ipv6mask2 is not None: + netaddrlist.append("%s/%s" % (ipv62, ipv6mask2)) + ifindex1 = node1.newnetif(net, addrlist = addrlist, + hwaddr = mac1, ifindex = ifindex1) + net.linkconfig(node1.netif(ifindex1, net), bw = bw, + delay = delay, loss = loss, + duplicate = duplicate, jitter = jitter) + if node1 is None and net: + if ipv41 is not None and ipv4mask1 is not None: + netaddrlist.append("%s/%s" % (ipv41, ipv4mask1)) + # don't add this address again if node2 and net + ipv41 = None + if ipv61 is not None and ipv6mask1 is not None: + netaddrlist.append("%s/%s" % (ipv61, ipv6mask1)) + # don't add this address again if node2 and net + ipv61 = None + if node2 and net: + addrlist = [] + if ipv42 is not None and ipv4mask2 is not None: + addrlist.append("%s/%s" % (ipv42, ipv4mask2)) + if ipv62 is not None and ipv6mask2 is not None: + addrlist.append("%s/%s" % (ipv62, ipv6mask2)) + if ipv41 is not None and ipv4mask1 is not None: + netaddrlist.append("%s/%s" % (ipv41, ipv4mask1)) + if ipv61 is not None and ipv6mask1 is not None: + netaddrlist.append("%s/%s" % (ipv61, ipv6mask1)) + ifindex2 = node2.newnetif(net, addrlist = addrlist, + hwaddr = mac2, ifindex = ifindex2) + net.linkconfig(node2.netif(ifindex2, net), bw = bw, + delay = delay, loss = loss, + duplicate = duplicate, jitter = jitter) + if node2 is None and net2: + if ipv42 is not None and ipv4mask2 is not None: + netaddrlist.append("%s/%s" % (ipv42, ipv4mask2)) + if ipv62 is not None and ipv6mask2 is not None: + netaddrlist.append("%s/%s" % (ipv62, ipv6mask2)) + + # tunnel node finalized with this link message + if key and isinstance(net, pycore.nodes.TunnelNode): + net.setkey(key) + if len(netaddrlist) > 0: + net.addrconfig(netaddrlist) + if key and isinstance(net2, pycore.nodes.TunnelNode): + net2.setkey(key) + if len(netaddrlist) > 0: + net2.addrconfig(netaddrlist) + + if net and net2: + # two layer-2 networks linked together + if isinstance(net2, pycore.nodes.RJ45Node): + net2.linknet(net) # RJ45 nodes have different linknet() + else: + net.linknet(net2) + elif net is None and net2 is None and \ + (node1 is None or node2 is None): + # apply address/parameters to PhysicalNodes + fx = (bw, delay, loss, duplicate, jitter) + addrlist = [] + if node1 and isinstance(node1, pycore.pnodes.PhysicalNode): + if ipv41 is not None and ipv4mask1 is not None: + addrlist.append("%s/%s" % (ipv41, ipv4mask1)) + if ipv61 is not None and ipv6mask1 is not None: + addrlist.append("%s/%s" % (ipv61, ipv6mask1)) + node1.adoptnetif(t, ifindex1, mac1, addrlist) + node1.linkconfig(t, bw, delay, loss, duplicate, jitter) + elif node2 and isinstance(node2, pycore.pnodes.PhysicalNode): + if ipv42 is not None and ipv4mask2 is not None: + addrlist.append("%s/%s" % (ipv42, ipv4mask2)) + if ipv62 is not None and ipv6mask2 is not None: + addrlist.append("%s/%s" % (ipv62, ipv6mask2)) + node2.adoptnetif(t, ifindex2, mac2, addrlist) + node2.linkconfig(t, bw, delay, loss, duplicate, jitter) + # delete a link + elif msg.flags & coreapi.CORE_API_DEL_FLAG: + ''' Remove a link. + ''' + if node1 and node2: + # TODO: fix this for the case where ifindex[1,2] are + # not specified + # a wired unlink event, delete the connecting bridge + netif1 = node1.netif(ifindex1) + netif2 = node2.netif(ifindex2) + if netif1 is None and netif2 is None: + nets = node1.commonnets(node2) + for (netcommon, tmp1, tmp2) in nets: + if (net and netcommon == net) or net is None: + netif1 = tmp1 + netif2 = tmp2 + break + if netif1 is None or netif2 is None: + pass + elif netif1.net or netif2.net: + if netif1.net != netif2.net: + if not netif1.up or not netif2.up: + pass + else: + raise ValueError, "no common network found" + net = netif1.net + netif1.detachnet() + netif2.detachnet() + if net.numnetif() == 0: + self.session.delobj(net.objid) + node1.delnetif(ifindex1) + node2.delnetif(ifindex2) + else: + ''' Modify a link. + ''' + bw = msg.gettlv(coreapi.CORE_TLV_LINK_BW) + delay = msg.gettlv(coreapi.CORE_TLV_LINK_DELAY) + loss = msg.gettlv(coreapi.CORE_TLV_LINK_PER) + duplicate = msg.gettlv(coreapi.CORE_TLV_LINK_DUP) + jitter = msg.gettlv(coreapi.CORE_TLV_LINK_JITTER) + numnet = 0 + if node1 is None and node2 is None: + raise ValueError, "modify link for unknown nodes" + elif node1 is None: + # node1 = layer 2node, node2 = layer3 node + net.linkconfig(node2.netif(ifindex2, net), bw = bw, + delay = delay, loss = loss, + duplicate = duplicate, jitter = jitter) + elif node2 is None: + # node2 = layer 2node, node1 = layer3 node + net.linkconfig(node1.netif(ifindex1, net), bw = bw, + delay = delay, loss = loss, + duplicate = duplicate, jitter = jitter) + else: + nets = node1.commonnets(node2) + for (net, netif1, netif2) in nets: + if ifindex1 is not None and \ + ifindex1 != node1.getifindex(netif1): + continue + net.linkconfig(netif1, bw = bw, delay = delay, + loss = loss, duplicate = duplicate, + jitter = jitter, netif2 = netif2) + net.linkconfig(netif2, bw = bw, delay = delay, + loss = loss, duplicate = duplicate, + jitter = jitter, netif2 = netif1) + numnet += 1 + if numnet == 0: + raise ValueError, "no common network found" + + + finally: + if node1: + node1.lock.release() + if node2: + node2.lock.release() + if not isinstance(net, pycore.nodes.WlanNode) and \ + not isinstance(net, pycore.nodes.EmaneNode): + # show links in SDT display except for links to WLAN clouds + wl = (link_msg_type == coreapi.CORE_LINK_WIRELESS) + self.session.sdt.updatelink(nodenum1, nodenum2, msg.flags, + wireless=wl) + return () + + def handleexecmsg(self, msg): + ''' Execute Message handler + ''' + nodenum = msg.gettlv(coreapi.CORE_TLV_EXEC_NODE) + execnum = msg.gettlv(coreapi.CORE_TLV_EXEC_NUM) + exectime = msg.gettlv(coreapi.CORE_TLV_EXEC_TIME) + cmd = msg.gettlv(coreapi.CORE_TLV_EXEC_CMD) + + if nodenum is None: + raise ValueError, "Execute Message is missing node number." + if execnum is None: + raise ValueError, "Execute Message is missing execution number." + if exectime is not None: + self.session.addevent(exectime, node=nodenum, name=None, data=cmd) + return () + + try: + n = self.session.obj(nodenum) + except KeyError: + # XXX wait and queue this message to try again later + # XXX maybe this should be done differently + time.sleep(0.125) + self.queuemsg(msg) + return () + # build common TLV items for reply + tlvdata = "" + tlvdata += coreapi.CoreExecTlv.pack(coreapi.CORE_TLV_EXEC_NODE, nodenum) + tlvdata += coreapi.CoreExecTlv.pack(coreapi.CORE_TLV_EXEC_NUM, execnum) + tlvdata += coreapi.CoreExecTlv.pack(coreapi.CORE_TLV_EXEC_CMD, cmd) + + if msg.flags & coreapi.CORE_API_TTY_FLAG: + # echo back exec message with cmd for spawning interactive terminal + if cmd == "bash": + cmd = "/bin/bash" + res = n.termcmdstring(cmd) + tlvdata += coreapi.CoreExecTlv.pack(coreapi.CORE_TLV_EXEC_RESULT, + res) + reply = coreapi.CoreExecMessage.pack(coreapi.CORE_API_TTY_FLAG, + tlvdata) + return (reply, ) + else: + if self.verbose: + self.info("execute message with cmd = '%s'" % cmd) + # execute command and send a response + if msg.flags & coreapi.CORE_API_STR_FLAG or \ + msg.flags & coreapi.CORE_API_TXT_FLAG: + # shlex.split() handles quotes within the string + status, res = n.cmdresult(shlex.split(cmd)) + if self.verbose: + self.info("done exec cmd='%s' with status=%d res=(%d bytes)" + % (cmd, status, len(res))) + if msg.flags & coreapi.CORE_API_TXT_FLAG: + tlvdata += coreapi.CoreExecTlv.pack( \ + coreapi.CORE_TLV_EXEC_RESULT, res) + if msg.flags & coreapi.CORE_API_STR_FLAG: + tlvdata += coreapi.CoreExecTlv.pack( \ + coreapi.CORE_TLV_EXEC_STATUS, status) + reply = coreapi.CoreExecMessage.pack(0, tlvdata) + return (reply, ) + # execute the command with no response + else: + n.cmd(shlex.split(cmd), wait=False) + return () + + + def handleregmsg(self, msg): + ''' Register Message Handler + ''' + replies = [] + + # execute a Python script + ex = msg.gettlv(coreapi.CORE_TLV_REG_EXECSRV) + if ex: + # TODO: load and execute XML files here + try: + self.info("executing '%s'" % ex) + if isinstance(self.server, CoreUdpServer): + server = self.server.tcpserver + else: + server = self.server + if msg.flags & coreapi.CORE_API_STR_FLAG: + old_session_ids = set(server.getsessionids()) + sys.argv = shlex.split(ex) + scriptname = sys.argv[0] + execfile(scriptname, {'server': server}) + if msg.flags & coreapi.CORE_API_STR_FLAG: + new_session_ids = set(server.getsessionids()) + new_sid = new_session_ids.difference(old_session_ids) + try: + sid = new_sid.pop() + self.info("executed '%s' as session %d" % (ex, sid)) + except KeyError: + self.info("executed '%s' with unknown session ID" % ex) + return replies + tlvdata = coreapi.CoreRegTlv.pack( \ + coreapi.CORE_TLV_REG_EXECSRV, ex) + tlvdata += coreapi.CoreRegTlv.pack( \ + coreapi.CORE_TLV_REG_SESSION, "%s" % sid) + msg = coreapi.CoreRegMessage.pack(0, tlvdata) + replies.append(msg) + except Exception, e: + self.warn("error executing '%s': %s" % (ex, e)) + return replies + + gui = msg.gettlv(coreapi.CORE_TLV_REG_GUI) + if gui is None: + self.info("ignoring Register message") + else: + # register capabilities with the GUI + self.master = True + found = self.server.setsessionmaster(self) + replies.append(self.register()) + replies.append(self.server.tosessionmsg()) + return replies + + def handleconfmsg(self, msg): + ''' Configuration Message handler + ''' + nodenum = msg.gettlv(coreapi.CORE_TLV_CONF_NODE) + objname = msg.gettlv(coreapi.CORE_TLV_CONF_OBJ) + if self.verbose: + self.info("Configuration message for %s node %s" % \ + (objname, nodenum)) + # dispatch to any registered callback for this object type + replies = self.session.confobj(objname, self.session, msg) + # config requests usually have a reply with default data + return replies + + def handlefilemsg(self, msg): + ''' File Message handler + ''' + if msg.flags & coreapi.CORE_API_ADD_FLAG: + nodenum = msg.gettlv(coreapi.CORE_TLV_NODE_NUMBER) + filename = msg.gettlv(coreapi.CORE_TLV_FILE_NAME) + type = msg.gettlv(coreapi.CORE_TLV_FILE_TYPE) + srcname = msg.gettlv(coreapi.CORE_TLV_FILE_SRCNAME) + data = msg.gettlv(coreapi.CORE_TLV_FILE_DATA) + cmpdata = msg.gettlv(coreapi.CORE_TLV_FILE_CMPDATA) + + if cmpdata is not None: + self.warn("Compressed file data not implemented for File " \ + "message.") + return () + if srcname is not None and data is not None: + self.warn("ignoring invalid File message: source and data " \ + "TLVs are both present") + return () + + # some File Messages store custom files in services, + # prior to node creation + if type is not None: + if type[:8] == "service:": + self.session.services.setservicefile(nodenum, type, + filename, srcname, data) + return () + elif type[:5] == "hook:": + self.session.sethook(type, filename, srcname, data) + return () + # writing a file to the host + if nodenum is None: + if srcname is not None: + shutil.copy2(srcname, filename) + else: + with open(filename, "w") as f: + f.write(data) + return () + try: + n = self.session.obj(nodenum) + except KeyError: + # XXX wait and queue this message to try again later + # XXX maybe this should be done differently + self.warn("File message for %s for node number %s queued." % \ + (filename, nodenum)) + time.sleep(0.125) + self.queuemsg(msg) + return () + if srcname is not None: + n.addfile(srcname, filename) + elif data is not None: + n.nodefile(filename, data) + else: + raise NotImplementedError + return () + + def handleifacemsg(self, msg): + ''' Interface Message handler + ''' + self.info("ignoring Interface message") + return () + + def handleeventmsg(self, msg): + ''' Event Message handler + ''' + eventtype = msg.tlvdata[coreapi.CORE_TLV_EVENT_TYPE] + if self.verbose: + self.info("EVENT %d: %s at %s" % \ + (eventtype, coreapi.event_types[eventtype], time.ctime())) + if eventtype <= coreapi.CORE_EVENT_SHUTDOWN_STATE: + self.session.setstate(state=eventtype, info=True, sendevent=False) + + if eventtype == coreapi.CORE_EVENT_DEFINITION_STATE: + # clear all session objects in order to receive new definitions + self.session.delobjs() + self.session.delhooks() + self.session.broker.reset() + elif eventtype == coreapi.CORE_EVENT_CONFIGURATION_STATE: + pass + elif eventtype == coreapi.CORE_EVENT_INSTANTIATION_STATE: + if len(self.handlerthreads) > 1: + # TODO: sync handler threads here before continuing + time.sleep(2.0) # XXX + # done receiving node/link configuration, ready to instantiate + self.session.instantiate(handler=self) + elif eventtype == coreapi.CORE_EVENT_RUNTIME_STATE: + if self.session.master: + self.warn("Unexpected event message: RUNTIME state received " \ + "at session master") + elif eventtype == coreapi.CORE_EVENT_DATACOLLECT_STATE: + self.session.datacollect() + elif eventtype == coreapi.CORE_EVENT_SHUTDOWN_STATE: + if self.session.master: + self.warn("Unexpected event message: SHUTDOWN state received " \ + "at session master") + elif eventtype >= coreapi.CORE_EVENT_START and \ + eventtype <= coreapi.CORE_EVENT_RESTART: + name = msg.gettlv(coreapi.CORE_TLV_EVENT_NAME) + # TODO: register system for event message handlers, like confobjs + if name[:8] == "service:": + self.session.services.handleevent(msg) + elif name[:9] == "mobility:": + self.session.mobility.handleevent(msg) + else: + self.warn("Unhandled event message: event type %d" % eventtype) + elif eventtype == coreapi.CORE_EVENT_FILE_OPEN: + self.session.delobjs() + self.session.delhooks() + self.session.broker.reset() + filename = msg.tlvdata[coreapi.CORE_TLV_EVENT_NAME] + opensessionxml(self.session, filename) + return self.session.sendobjs() + elif eventtype == coreapi.CORE_EVENT_FILE_SAVE: + filename = msg.tlvdata[coreapi.CORE_TLV_EVENT_NAME] + savesessionxml(self.session, filename) + elif eventtype == coreapi.CORE_EVENT_SCHEDULED: + etime = msg.gettlv(coreapi.CORE_TLV_EVENT_TIME) + node = msg.gettlv(coreapi.CORE_TLV_EVENT_NODE) + name = msg.gettlv(coreapi.CORE_TLV_EVENT_NAME) + data = msg.gettlv(coreapi.CORE_TLV_EVENT_DATA) + if etime is None: + self.warn("Event message scheduled event missing start time") + return () + if msg.flags & coreapi.CORE_API_ADD_FLAG: + self.session.addevent(float(etime), node=node, name=name, + data=data) + else: + raise NotImplementedError + else: + self.warn("Unhandled event message: event type %d" % eventtype) + return () + + def handlesessionmsg(self, msg): + ''' Session Message handler + ''' + replies = [] + sid_str = msg.gettlv(coreapi.CORE_TLV_SESS_NUMBER) + name_str = msg.gettlv(coreapi.CORE_TLV_SESS_NAME) + file_str = msg.gettlv(coreapi.CORE_TLV_SESS_FILE) + nc_str = msg.gettlv(coreapi.CORE_TLV_SESS_NODECOUNT) + thumb = msg.gettlv(coreapi.CORE_TLV_SESS_THUMB) + user = msg.gettlv(coreapi.CORE_TLV_SESS_USER) + sids = coreapi.str_to_list(sid_str) + names = coreapi.str_to_list(name_str) + files = coreapi.str_to_list(file_str) + ncs = coreapi.str_to_list(nc_str) + self.info("SESSION message flags=0x%x sessions=%s" % (msg.flags, sid_str)) + + if msg.flags == 0: + # modify a session + i = 0 + for sid in sids: + sid = int(sid) + if sid == 0: + session = self.session + else: + session = self.server.getsession(sessionid = sid, + useexisting = True) + if session is None: + self.info("session %s not found" % sid) + i += 1 + continue + self.info("request to modify to session %s" % session.sessionid) + if names is not None: + session.name = names[i] + if files is not None: + session.filename = files[i] + if ncs is not None: + session.node_count = ncs[i] + if thumb is not None: + session.setthumbnail(thumb) + if user is not None: + session.setuser(user) + i += 1 + else: + if msg.flags & coreapi.CORE_API_STR_FLAG and not \ + msg.flags & coreapi.CORE_API_ADD_FLAG: + # status request flag: send list of sessions + return (self.server.tosessionmsg(), ) + # handle ADD or DEL flags + for sid in sids: + sid = int(sid) + session = self.server.getsession(sessionid = sid, + useexisting = True) + if session is None: + self.info("session %s not found (flags=0x%x)" % \ + (sid, msg.flags)) + continue + if session.server is None: + # this needs to be set when executing a Python script + session.server = self.server + if msg.flags & coreapi.CORE_API_ADD_FLAG: + # connect to the first session that exists + self.info("request to connect to session %s" % sid) + # this may shutdown the session if no handlers exist + self.session.disconnect(self) + self.session = session + self.session.connect(self) + if user is not None: + self.session.setuser(user) + if msg.flags & coreapi.CORE_API_STR_FLAG: + replies.extend(self.session.sendobjs()) + elif msg.flags & coreapi.CORE_API_DEL_FLAG: + # shut down the specified session(s) + self.info("request to terminate session %s" % sid) + session.setstate(state=coreapi.CORE_EVENT_DATACOLLECT_STATE, + info=True, sendevent=True) + session.shutdown() + else: + self.warn("unhandled session flags for session %s" % sid) + return replies + +class CoreDatagramRequestHandler(CoreRequestHandler): + ''' A child of the CoreRequestHandler class for handling connectionless + UDP messages. No new session is created; messages are handled immediately or + sometimes queued on existing session handlers. + ''' + + def __init__(self, request, client_address, server): + # TODO: decide which messages cannot be handled with connectionless UDP + self.msghandler = { + coreapi.CORE_API_NODE_MSG: self.handlenodemsg, + coreapi.CORE_API_LINK_MSG: self.handlelinkmsg, + coreapi.CORE_API_EXEC_MSG: self.handleexecmsg, + coreapi.CORE_API_REG_MSG: self.handleregmsg, + coreapi.CORE_API_CONF_MSG: self.handleconfmsg, + coreapi.CORE_API_FILE_MSG: self.handlefilemsg, + coreapi.CORE_API_IFACE_MSG: self.handleifacemsg, + coreapi.CORE_API_EVENT_MSG: self.handleeventmsg, + coreapi.CORE_API_SESS_MSG: self.handlesessionmsg, + } + self.nodestatusreq = {} + self.master = False + self.session = None + self.verbose = bool(server.tcpserver.cfg['verbose'].lower() == "true") + self.debug = bool(server.tcpserver.cfg['debug'].lower() == "true") + SocketServer.BaseRequestHandler.__init__(self, request, + client_address, server) + + def setup(self): + ''' Client has connected, set up a new connection. + ''' + if self.verbose: + self.info("new UDP connection: %s:%s" % self.client_address) + + def handle(self): + msg = self.recvmsg() + + def finish(self): + return SocketServer.BaseRequestHandler.finish(self) + + def recvmsg(self): + ''' Receive data, parse a CoreMessage and queue it onto an existing + session handler's queue, if available. + ''' + data = self.request[0] + socket = self.request[1] + msghdr = data[:coreapi.CoreMessage.hdrsiz] + if len(msghdr) < coreapi.CoreMessage.hdrsiz: + raise IOError, "error receiving header (received %d bytes)" % \ + len(msghdr) + msgtype, msgflags, msglen = coreapi.CoreMessage.unpackhdr(msghdr) + if msglen == 0: + self.warn("received message with no data") + return + if len(data) != coreapi.CoreMessage.hdrsiz + msglen: + self.warn("received message length does not match received data " \ + "(%s != %s)" % \ + (len(data), coreapi.CoreMessage.hdrsiz + msglen)) + raise IOError + elif self.verbose: + self.info("UDP socket received message type=%d len=%d" % \ + (msgtype, msglen)) + try: + msgcls = coreapi.msg_class(msgtype) + msg = msgcls(msgflags, msghdr, data[coreapi.CoreMessage.hdrsiz:]) + except KeyError: + msg = coreapi.CoreMessage(msgflags, msghdr, + data[coreapi.CoreMessage.hdrsiz:]) + msg.msgtype = msgtype + self.warn("unimplemented core message type: %s" % msg.typestr()) + return + sids = msg.sessionnumbers() + msg.queuedtimes = 0 + #self.info("UDP message has session numbers: %s" % sids) + if len(sids) > 0: + for sid in sids: + sess = self.server.tcpserver.getsession(sessionid=sid, + useexisting=True) + if sess: + self.session = sess + sess.broadcast(self, msg) + self.handlemsg(msg) + else: + self.warn("Session %d in %s message not found." % \ + (sid, msg.typestr())) + else: + # no session specified, find an existing one + sess = self.server.tcpserver.getsession(sessionid=0, + useexisting=True) + if sess or msg.msgtype == coreapi.CORE_API_REG_MSG: + self.session = sess + if sess: + sess.broadcast(self, msg) + self.handlemsg(msg) + else: + self.warn("No active session, dropping %s message." % \ + msg.typestr()) + + def queuemsg(self, msg): + ''' UDP handlers are short-lived and do not have message queues. + ''' + raise Exception, "Unable to queue %s message for later processing " \ + "using UDP!" % msg.typestr() + + def sendall(self, data): + ''' Use sendto() on the connectionless UDP socket. + ''' + self.request[1].sendto(data, self.client_address) + + + +class CoreServer(SocketServer.ThreadingMixIn, SocketServer.TCPServer): + ''' TCP server class, manages sessions and spawns request handlers for + incoming connections. + ''' + daemon_threads = True + allow_reuse_address = True + servers = set() + + def __init__(self, server_address, RequestHandlerClass, cfg = None): + ''' Server class initialization takes configuration data and calls + the SocketServer constructor + ''' + self.cfg = cfg + self._sessions = {} + self._sessionslock = threading.Lock() + self.newserver(self) + SocketServer.TCPServer.__init__(self, server_address, + RequestHandlerClass) + + @classmethod + def newserver(cls, server): + cls.servers.add(server) + + @classmethod + def delserver(cls, server): + try: + cls.servers.remove(server) + except KeyError: + pass + + def shutdown(self): + for session in self._sessions.values(): + session.shutdown() + if self.cfg['daemonize']: + pidfilename = self.cfg['pidfile'] + try: + os.unlink(pidfilename) + except OSError: + pass + self.delserver(self) + + def addsession(self, session): + ''' Add a session to our dictionary of sessions, ensuring a unique + session number + ''' + self._sessionslock.acquire() + try: + if session.sessionid in self._sessions: + raise KeyError, "non-unique session id %s for %s" % \ + (session.sessionid, session) + self._sessions[session.sessionid] = session + finally: + self._sessionslock.release() + return session + + def delsession(self, session): + ''' Remove a session from our dictionary of sessions. + ''' + with self._sessionslock: + if session.sessionid not in self._sessions: + print "session id %s not found (sessions=%s)" % \ + (session.sessionid, self._sessions.keys()) + else: + del(self._sessions[session.sessionid]) + return session + + def getsessionids(self): + ''' Return a list of active session numbers. + ''' + with self._sessionslock: + sids = self._sessions.keys() + return sids + + def getsession(self, sessionid = None, useexisting = True): + ''' Create a new session or retrieve an existing one from our + dictionary of sessions. When the sessionid=0 and the useexisting + flag is set, return on of the existing sessions. + ''' + if not useexisting: + session = pycore.Session(sessionid, cfg = self.cfg, server = self) + self.addsession(session) + return session + + with self._sessionslock: + # look for the specified session id + if sessionid in self._sessions: + session = self._sessions[sessionid] + else: + session = None + # pick an existing session + if sessionid == 0: + for s in self._sessions.itervalues(): + if s.getstate() == coreapi.CORE_EVENT_RUNTIME_STATE: + if session is None: + session = s + elif s.node_count > session.node_count: + session = s + if session is None: + for s in self._sessions.itervalues(): + session = s + break + return session + + def tosessionmsg(self, flags = 0): + ''' Build CORE API Sessions message based on current session info. + ''' + idlist = [] + namelist = [] + filelist = [] + nclist = [] + datelist = [] + thumblist = [] + num_sessions = 0 + + with self._sessionslock: + for sessionid in self._sessions: + session = self._sessions[sessionid] + # debug: session.dumpsession() + num_sessions += 1 + idlist.append(str(sessionid)) + name = session.name + if name is None: + name = "" + namelist.append(name) + file = session.filename + if file is None: + file = "" + filelist.append(file) + nc = session.node_count + if nc is None: + nc = "" + nclist.append(nc) + datelist.append(time.ctime(session._time)) + thumb = session.thumbnail + if thumb is None: + thumb = "" + thumblist.append(thumb) + sids = "|".join(idlist) + names = "|".join(namelist) + files = "|".join(filelist) + ncs = "|".join(nclist) + dates = "|".join(datelist) + thumbs = "|".join(thumblist) + + if num_sessions > 0: + tlvdata = "" + if len(sids) > 0: + tlvdata += coreapi.CoreSessionTlv.pack( \ + coreapi.CORE_TLV_SESS_NUMBER, sids) + if len(names) > 0: + tlvdata += coreapi.CoreSessionTlv.pack( \ + coreapi.CORE_TLV_SESS_NAME, names) + if len(files) > 0: + tlvdata += coreapi.CoreSessionTlv.pack( \ + coreapi.CORE_TLV_SESS_FILE, files) + if len(ncs) > 0: + tlvdata += coreapi.CoreSessionTlv.pack( \ + coreapi.CORE_TLV_SESS_NODECOUNT, ncs) + if len(dates) > 0: + tlvdata += coreapi.CoreSessionTlv.pack( \ + coreapi.CORE_TLV_SESS_DATE, dates) + if len(thumbs) > 0: + tlvdata += coreapi.CoreSessionTlv.pack( \ + coreapi.CORE_TLV_SESS_THUMB, thumbs) + msg = coreapi.CoreSessionMessage.pack(flags, tlvdata) + else: + msg = None + return(msg) + + def dumpsessions(self): + ''' Debug print all session info. + ''' + print "sessions:" + self._sessionslock.acquire() + try: + for sessionid in self._sessions: + print sessionid, + finally: + self._sessionslock.release() + print "" + sys.stdout.flush() + + def setsessionmaster(self, handler): + ''' Call the setmaster() method for every session. Returns True when + a session having the given handler was updated. + ''' + found = False + self._sessionslock.acquire() + try: + for sessionid in self._sessions: + found = self._sessions[sessionid].setmaster(handler) + if found is True: + break + finally: + self._sessionslock.release() + return found + + def startudp(self, server_address): + ''' Start a thread running a UDP server on the same host,port for + connectionless requests. + ''' + self.udpserver = CoreUdpServer(server_address, + CoreDatagramRequestHandler, self) + self.udpthread = threading.Thread(target = self.udpserver.start) + self.udpthread.daemon = True + self.udpthread.start() + +class CoreUdpServer(SocketServer.ThreadingMixIn, SocketServer.UDPServer): + ''' UDP server class, manages sessions and spawns request handlers for + incoming connections. + ''' + daemon_threads = True + allow_reuse_address = True + + def __init__(self, server_address, RequestHandlerClass, tcpserver): + ''' Server class initialization takes configuration data and calls + the SocketServer constructor + ''' + self.tcpserver = tcpserver + SocketServer.UDPServer.__init__(self, server_address, + RequestHandlerClass) + + def start(self): + ''' Thread target to run concurrently with the TCP server. + ''' + self.serve_forever() + + + +def banner(): + ''' Output the program banner printed to the terminal or log file. + ''' + sys.stdout.write("CORE daemon v.%s started %s\n" % \ + (COREDPY_VERSION, time.ctime())) + sys.stdout.flush() + + +def cored(cfg = None): + ''' Start the CoreServer object and enter the server loop. + ''' + host = cfg['listenaddr'] + port = int(cfg['port']) + if host == '' or host is None: + host = "localhost" + try: + server = CoreServer((host, port), CoreRequestHandler, cfg) + except Exception, e: + sys.stderr.write("error starting server on: %s:%s\n\t%s\n" % \ + (host, port, e)) + sys.stderr.flush() + sys.exit(1) + closeonexec(server.fileno()) + sys.stdout.write("server started, listening on: %s:%s\n" % (host, port)) + sys.stdout.flush() + server.startudp((host,port)) + server.serve_forever() + +def cleanup(): + while CoreServer.servers: + server = CoreServer.servers.pop() + server.shutdown() + +atexit.register(cleanup) + +def sighandler(signum, stackframe): + print >> sys.stderr, "terminated by signal:", signum + sys.exit(signum) + +signal.signal(signal.SIGTERM, sighandler) + +def getMergedConfig(filename): + ''' Return a configuration after merging config file and command-line + arguments. + ''' + # these are the defaults used in the config file + defaults = { 'port' : '%d' % coreapi.CORE_API_PORT, + 'listenaddr' : 'localhost', + 'pidfile' : '%s/run/core-daemon.pid' % CORE_STATE_DIR, + 'logfile' : '%s/log/core-daemon.log' % CORE_STATE_DIR, + 'numthreads' : '1', + 'verbose' : 'False', + 'daemonize' : 'False', + 'debug' : 'False', + 'execfile' : None, + } + + usagestr = "usage: %prog [-h] [options] [args]\n\n" + \ + "CORE daemon v.%s instantiates Linux network namespace " \ + "nodes." % COREDPY_VERSION + parser = optparse.OptionParser(usage = usagestr) + parser.add_option("-f", "--configfile", dest = "configfile", + type = "string", + help = "read config from specified file; default = %s" % + filename) + parser.add_option("-d", "--daemonize", dest = "daemonize", + action="store_true", + help = "run in background as daemon; default=%s" % \ + defaults["daemonize"]) + parser.add_option("-e", "--execute", dest = "execfile", type = "string", + help = "execute a Python/XML-based session") + parser.add_option("-l", "--logfile", dest = "logfile", type = "string", + help = "log output to specified file; default = %s" % + defaults["logfile"]) + parser.add_option("-p", "--port", dest = "port", type = int, + help = "port number to listen on; default = %s" % \ + defaults["port"]) + parser.add_option("-i", "--pidfile", dest = "pidfile", + help = "filename to write pid to; default = %s" % \ + defaults["pidfile"]) + parser.add_option("-t", "--numthreads", dest = "numthreads", type = int, + help = "number of server threads; default = %s" % \ + defaults["numthreads"]) + parser.add_option("-v", "--verbose", dest = "verbose", action="store_true", + help = "enable verbose logging; default = %s" % \ + defaults["verbose"]) + parser.add_option("-g", "--debug", dest = "debug", action="store_true", + help = "enable debug logging; default = %s" % \ + defaults["debug"]) + + # parse command line options + (options, args) = parser.parse_args() + + # read the config file + if options.configfile is not None: + filename = options.configfile + del options.configfile + cfg = ConfigParser.SafeConfigParser(defaults) + cfg.read(filename) + + section = "core-daemon" + if not cfg.has_section(section): + cfg.add_section(section) + # gracefully support legacy configs (cored.py/cored now core-daemon) + if cfg.has_section("cored.py"): + for name, val in cfg.items("cored.py"): + if name == 'pidfile' or name == 'logfile': + bn = os.path.basename(val).replace('coredpy', 'core-daemon') + val = os.path.join(os.path.dirname(val), bn) + cfg.set(section, name, val) + if cfg.has_section("cored"): + for name, val in cfg.items("cored"): + if name == 'pidfile' or name == 'logfile': + bn = os.path.basename(val).replace('cored', 'core-daemon') + val = os.path.join(os.path.dirname(val), bn) + cfg.set(section, name, val) + + # merge command line with config file + for opt in options.__dict__: + val = options.__dict__[opt] + if val is not None: + cfg.set(section, opt, val.__str__()) + + return dict(cfg.items(section)), args + +def exec_file(cfg): + ''' Send a Register Message to execute a new session based on XML or Python + script file. + ''' + filename = cfg['execfile'] + sys.stdout.write("Telling daemon to execute file: '%s'...\n" % filename) + sys.stdout.flush() + tlvdata = coreapi.CoreRegTlv.pack(coreapi.CORE_TLV_REG_EXECSRV, filename) + msg = coreapi.CoreRegMessage.pack(coreapi.CORE_API_ADD_FLAG, tlvdata) + sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) + sock.connect(("localhost", int(cfg['port']))) # TODO: connect address option + sock.sendall(msg) + return 0 + +def main(): + ''' Main program startup. + ''' + # get a configuration merged from config file and command-line arguments + cfg, args = getMergedConfig("%s/core.conf" % CORE_CONF_DIR) + for a in args: + sys.stderr.write("ignoring command line argument: '%s'\n" % a) + + if cfg['daemonize'] == 'True': + daemonize(rootdir = None, umask = 0, close_fds = False, + stdin = os.devnull, + stdout = cfg['logfile'], stderr = cfg['logfile'], + pidfilename = cfg['pidfile'], + defaultmaxfd = DEFAULT_MAXFD) + + banner() + if cfg['execfile']: + cfg['execfile'] = os.path.abspath(cfg['execfile']) + sys.exit(exec_file(cfg)) + try: + cored(cfg) + except KeyboardInterrupt: + pass + + sys.exit(0) + + +if __name__ == "__main__": + main() diff --git a/daemon/sbin/core-xen-cleanup b/daemon/sbin/core-xen-cleanup new file mode 100755 index 00000000..871de8a8 --- /dev/null +++ b/daemon/sbin/core-xen-cleanup @@ -0,0 +1,73 @@ +#!/bin/sh + +if [ "z$1" = "z-h" -o "z$1" = "z--help" ]; then + echo "usage: $0 [-d]" + echo -n " Clean up all CORE Xen domUs, bridges, interfaces, " + echo "and session\n directories. Options:" + echo " -h show this help message and exit" + echo " -d also kill the Python daemon" + exit 0 +fi + +if [ `id -u` != 0 ]; then + echo "Permission denied. Re-run this script as root." + exit 1 +fi + +PATH="/sbin:/bin:/usr/sbin:/usr/bin" +export PATH + +if [ "z$1" = "z-d" ]; then + pypids=`pidof python python2` + for p in $pypids; do + grep -q core-daemon /proc/$p/cmdline + if [ $? = 0 ]; then + echo "cleaning up core-daemon process: $p" + kill -9 $p + fi + done +fi + +mount | awk ' + /\/tmp\/pycore\./ { print "umount " $3; system("umount " $3); } +' + +domus=`xm list | awk ' + /^c.*-n.*/ { print $1; }'` +for domu in $domus +do + echo "destroy $domu" + xm destroy $domu +done + +vgs=`vgs | awk '{ print $1; }'` +for vg in $vgs +do + if [ ! -x /dev/$vg ]; then + continue + fi + echo "searching volume group: $vg" + lvs=`ls /dev/$vg/c*-n*- 2> /dev/null` + for lv in $lvs + do + echo "removing volume $lv" + kpartx -d $lv + lvchange -an $lv + lvremove $lv + done +done + +/sbin/ip link show | awk ' + /b\.ctrlnet\.[0-9]+/ {print "removing interface " $2; system("ip link set " $2 " down; brctl delbr " $2); } +' + +ls /sys/class/net | awk ' + /^b\.[0-9]+\.[0-9]+$/ {print "removing interface " $1; system("ip link set " $1 " down; brctl delbr " $1); } +' + + +ebtables -L FORWARD | awk ' + /^-.*b\./ {print "removing ebtables " $0; system("ebtables -D FORWARD " $0); print "removing ebtables chain " $4; system("ebtables -X " $4);} +' + +rm -rf /tmp/pycore* diff --git a/daemon/sbin/coresendmsg b/daemon/sbin/coresendmsg new file mode 100755 index 00000000..ebf56486 --- /dev/null +++ b/daemon/sbin/coresendmsg @@ -0,0 +1,336 @@ +#!/usr/bin/env python +# +# CORE +# Copyright (c)2011-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# authors: Jeff Ahrenholz +# +''' +coresendmsg: utility for generating CORE messages +''' + +import sys +import socket +import optparse +import os + +try: + from core.constants import * +except ImportError: + # hack for Fedora autoconf that uses the following pythondir: + if "/usr/lib/python2.6/site-packages" in sys.path: + sys.path.append("/usr/local/lib/python2.6/site-packages") + if "/usr/lib64/python2.6/site-packages" in sys.path: + sys.path.append("/usr/local/lib64/python2.6/site-packages") + if "/usr/lib/python2.7/site-packages" in sys.path: + sys.path.append("/usr/local/lib/python2.7/site-packages") + if "/usr/lib64/python2.7/site-packages" in sys.path: + sys.path.append("/usr/local/lib64/python2.7/site-packages") + from core.constants import * +from core.api import coreapi + + +def msgtypenum_to_str(num): + ''' Convert the message type number into a string, such as + 1 = 'CORE_API_NODE_MSG' = 'node' + ''' + fulltypestr = coreapi.message_types[num] + r = fulltypestr.split('_')[2] + return r.lower() + +def str_to_msgtypenum(s): + ''' Convert a shorthand string into a message type number. + ''' + fulltypestr = str_to_msgtypename(s) + for k, v in coreapi.message_types.iteritems(): + if v == fulltypestr: + return k + return None + +def str_to_msgtypename(s): + ''' Convert a shorthand string into a message type name. + ''' + return "CORE_API_%s_MSG" % s.upper() + +def msgflagnum_to_str(num): + ''' Convert the message flag number into a string, such as + 1 = 'CORE_API_ADD_FLAG' = add + ''' + fullflagstr = coreapi.message_flags[num] + r = fullflagstr.split('_')[2] + return r.lower() + +def str_to_msgflagname(s): + ''' Convert a shorthand string into a message flag name. + ''' + return "CORE_API_%s_FLAG" % s.upper() + +def str_to_msgflagnum(s): + flagname = str_to_msgflagname(s) + for (k, v) in coreapi.message_flags.iteritems(): + if v == flagname: + return k + return None + +def tlvname_to_str(name): + ''' Convert a TLV name such as CORE_TLV_CONF_NODE to a short sring 'node'. + ''' + items = name.split('_')[3:] + return '_'.join(items).lower() + +def tlvname_to_num(tlv_cls, name): + ''' Convert the given TLV Type class and TLV name to the TLV number. + ''' + for (k, v) in tlv_cls.tlvtypemap.iteritems(): + if v == name: + return k + return None + +def str_to_tlvname(t, s): + ''' Convert the given TLV type t and string s to a TLV name. + ''' + return "CORE_TLV_%s_%s" % (t.upper(), s.upper()) + + +def print_available_tlvs(t, tlv_cls): + ''' Print a TLV list. + ''' + print "TLVs available for %s message:" % t + for k in sorted(tlv_cls.tlvtypemap.keys()): + print "%d:%s" % (k, tlvname_to_str(tlv_cls.tlvtypemap[k])), + +def print_examples(name): + ''' Print example usage of this script. + ''' + examples = [ + ('link n1number=2 n2number=3 delay=15000', + 'set a 15ms delay on the link between n2 and n3'), + ('link n1number=2 n2number=3 guiattr=\'color=blue\'', + 'change the color of the link between n2 and n3'), + ('node number=3 xpos=125 ypos=525', + 'move node number 3 to x,y=(125,525)'), + ('node number=4 icon=/usr/local/share/core/icons/normal/router_red.gif', + 'change node number 4\'s icon to red'), + ('node flags=add number=5 type=0 name=\'n5\' xpos=500 ypos=500', + 'add a new router node n5'), + ('link flags=add n1number=4 n2number=5 if1ip4=\'10.0.3.2\' ' \ + 'if1ip4mask=24 if2ip4=\'10.0.3.1\' if2ip4mask=24', + 'link node n5 with n4 using the given interface addresses'), + ('exec flags=str,txt node=1 num=1000 cmd=\'uname -a\' -l', + 'run a command on node 1 and wait for the result'), + ('exec node=2 num=1001 cmd=\'killall ospfd\'', + 'run a command on node 2 and ignore the result'), + ('file flags=add node=1 name=\'/var/log/test.log\' data=\'Hello World.\'', + 'write a test.log file on node 1 with the given contents'), + ('file flags=add node=2 name=\'test.log\' ' \ + 'srcname=\'./test.log\'', + 'move a test.log file from host to node 2'), + ] + print "Example %s invocations:" % name + for cmd, descr in examples: + print " %s %s\n\t\t%s" % (name, cmd, descr) + +def receive_message(sock): + ''' Retrieve a message from a socket and return the CoreMessage object or + None upon disconnect. Socket data beyond the first message is dropped. + ''' + try: + # large receive buffer used for UDP sockets, instead of just receiving + # the 4-byte header + data = sock.recv(4096) + msghdr = data[:coreapi.CoreMessage.hdrsiz] + except KeyboardInterrupt: + print "CTRL+C pressed" + sys.exit(1) + if len(msghdr) == 0: + return None + msgdata = None + msgtype, msgflags, msglen = coreapi.CoreMessage.unpackhdr(msghdr) + if msglen: + msgdata = data[coreapi.CoreMessage.hdrsiz:] + try: + msgcls = coreapi.msg_class(msgtype) + except KeyError: + msg = coreapi.CoreMessage(msgflags, msghdr, msgdata) + msg.msgtype = msgtype + print "unimplemented CORE message type: %s" % msg.typestr() + return msg + if len(data) > msglen + coreapi.CoreMessage.hdrsiz: + print "received a message of type %d, dropping %d bytes of extra data" \ + % (msgtype, len(data) - (msglen + coreapi.CoreMessage.hdrsiz)) + return msgcls(msgflags, msghdr, msgdata) + + +def connect_to_session(sock, requested): + ''' Use Session Messages to retrieve the current list of sessions and + connect to the first one. + ''' + # request the session list + tlvdata = coreapi.CoreSessionTlv.pack(coreapi.CORE_TLV_SESS_NUMBER, "0") + flags = coreapi.CORE_API_STR_FLAG + smsg = coreapi.CoreSessionMessage.pack(flags, tlvdata) + sock.sendall(smsg) + print "waiting for session list..." + smsgreply = receive_message(sock) + if smsgreply is None: + print "disconnected" + return False + sessstr = smsgreply.gettlv(coreapi.CORE_TLV_SESS_NUMBER) + if sessstr is None: + print "missing session numbers" + return False + # join the first session (that is not our own connection) + (tmp, localport) = sock.getsockname() + sessions = sessstr.split('|') + sessions.remove(str(localport)) + if len(sessions) == 0: + print "no sessions to join" + return False + if not requested: + session = sessions[0] + elif requested in sessions: + session = requested + else: + print "requested session not found!" + return False + print "joining session %s..." % session + tlvdata = coreapi.CoreSessionTlv.pack(coreapi.CORE_TLV_SESS_NUMBER, session) + flags = coreapi.CORE_API_ADD_FLAG + smsg = coreapi.CoreSessionMessage.pack(flags, tlvdata) + sock.sendall(smsg) + return True + + +def receive_response(sock, opt): + ''' Receive and print a CORE message from the given socket. + ''' + print "waiting for response..." + msg = receive_message(sock) + if msg is None: + print "disconnected from %s:%s" % (opt.address, opt.port) + sys.exit(0) + print "received message:", msg + + +def main(): + ''' Parse command-line arguments to build and send a CORE message. + ''' + types = map(msgtypenum_to_str, coreapi.message_types.keys()[:-1]) + flags = map(msgflagnum_to_str, sorted(coreapi.message_flags.keys())) + usagestr = "usage: %prog [-h|-H] [options] [message-type] [flags=flags] " + usagestr += "[message-TLVs]\n\n" + usagestr += "Supported message types:\n %s\n" % types + usagestr += "Supported message flags (flags=f1,f2,...):\n %s" % flags + parser = optparse.OptionParser(usage = usagestr) + parser.set_defaults(port = coreapi.CORE_API_PORT, + address = "localhost", + session = None, + listen = False, + examples = False, + tlvs = False, + tcp = False) + + parser.add_option("-H", dest = "examples", action = "store_true", + help = "show example usage help message and exit") + parser.add_option("-p", "--port", dest = "port", type = int, + help = "TCP port to connect to, default: %d" % \ + parser.defaults['port']) + parser.add_option("-a", "--address", dest = "address", type = str, + help = "Address to connect to, default: %s" % \ + parser.defaults['address']) + parser.add_option("-s", "--session", dest = "session", type = str, + help = "Session to join, default: %s" % \ + parser.defaults['session']) + parser.add_option("-l", "--listen", dest = "listen", action = "store_true", + help = "Listen for a response message and print it.") + parser.add_option("-t", "--list-tlvs", dest = "tlvs", action = "store_true", + help = "List TLVs for the specified message type.") + parser.add_option("-T", "--tcp", dest = "tcp", action = "store_true", + help = "Use TCP instead of UDP and connect to a session" \ + ", default: %s" % parser.defaults['tcp']) + + + def usage(msg = None, err = 0): + sys.stdout.write("\n") + if msg: + sys.stdout.write(msg + "\n\n") + parser.print_help() + sys.exit(err) + + # parse command line opt + (opt, args) = parser.parse_args() + if (opt.examples): + print_examples(os.path.basename(sys.argv[0])) + sys.exit(0) + if len(args) == 0: + usage("Please specify a message type to send.") + + # given a message type t, determine the message and TLV classes + t = args.pop(0) + if t not in types: + usage("Unknown message type requested: %s" % t) + msg_cls = coreapi.msgclsmap[str_to_msgtypenum(t)] + tlv_cls = msg_cls.tlvcls + + # list TLV types for this message type + if opt.tlvs: + print_available_tlvs(t, tlv_cls) + sys.exit(0) + + # build a message consisting of TLVs from 'type=value' arguments + flagstr = "" + tlvdata = "" + for a in args: + typevalue = a.split('=') + if len(typevalue) < 2: + usage("Use 'type=value' syntax instead of '%s'." % a) + tlv_typestr = typevalue[0] + tlv_valstr = '='.join(typevalue[1:]) + if tlv_typestr == "flags": + flagstr = tlv_valstr + continue + tlv_name = str_to_tlvname(t, tlv_typestr) + tlv_type = tlvname_to_num(tlv_cls, tlv_name) + if tlv_name not in tlv_cls.tlvtypemap.values(): + usage("Unknown TLV: '%s' / %s" % (tlv_typestr, tlv_name)) + tlvdata += tlv_cls.packstring(tlv_type, tlv_valstr) + + flags = 0 + for f in flagstr.split(","): + if f == '': + continue + n = str_to_msgflagnum(f) + if n is None: + usage("Invalid flag '%s'." % f) + flags |= n + + msg = msg_cls.pack(flags, tlvdata) + + # send the message + if opt.tcp: + protocol = socket.SOCK_STREAM + else: + protocol = socket.SOCK_DGRAM + sock = socket.socket(socket.AF_INET, protocol) + sock.setblocking(True) + try: + sock.connect((opt.address, opt.port)) + except Exception, e: + print "Error connecting to %s:%s:\n\t%s" % (opt.address, opt.port, e) + sys.exit(1) + + if opt.tcp and not connect_to_session(sock, opt.session): + print "warning: continuing without joining a session!" + + sock.sendall(msg) + if opt.listen: + receive_response(sock, opt) + if opt.tcp: + sock.shutdown(socket.SHUT_RDWR) + sock.close() + sys.exit(0) + + +if __name__ == "__main__": + main() diff --git a/daemon/setup.py b/daemon/setup.py new file mode 100644 index 00000000..71ddc341 --- /dev/null +++ b/daemon/setup.py @@ -0,0 +1,46 @@ +# Copyright (c)2010-2012 the Boeing Company. +# See the LICENSE file included in this distribution. + +import os, glob +from distutils.core import setup +from core.constants import COREDPY_VERSION + +# optionally pass CORE_CONF_DIR using environment variable +confdir = os.environ.get('CORE_CONF_DIR') +if confdir is None: + confdir="/etc/core" + +setup(name = "core-python", + version = COREDPY_VERSION, + packages = [ + "core", + "core.addons", + "core.api", + "core.emane", + "core.misc", + "core.bsd", + "core.netns", + "core.phys", + "core.xen", + "core.services", + ], + data_files = [("sbin", glob.glob("sbin/core*")), + (confdir, ["data/core.conf"]), + (confdir, ["data/xen.conf"]), + ("share/core/examples", ["examples/controlnet_updown"]), + ("share/core/examples", + glob.glob("examples/*.py")), + ("share/core/examples/netns", + glob.glob("examples/netns/*[py,sh]")), + ("share/core/examples/services", + glob.glob("examples/services/*")), + ("share/core/examples/myservices", + glob.glob("examples/myservices/*")), + ], + description = "Python components of CORE", + url = "http://cs.itd.nrl.navy.mil/work/core/", + author = "Boeing Research & Technology", + author_email = "core-dev@pf.itd.nrl.navy.mil", + license = "BSD", + long_description="Python scripts and modules for building virtual " \ + "emulated networks.") diff --git a/daemon/src/MANIFEST.in b/daemon/src/MANIFEST.in new file mode 100644 index 00000000..c26545b7 --- /dev/null +++ b/daemon/src/MANIFEST.in @@ -0,0 +1,2 @@ +include *.h +include sbin/* diff --git a/daemon/src/Makefile.am b/daemon/src/Makefile.am new file mode 100755 index 00000000..30ada1be --- /dev/null +++ b/daemon/src/Makefile.am @@ -0,0 +1,71 @@ +# CORE +# (c)2010-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +# Makefile for building netns. +# + +AM_CFLAGS = -Wall -fno-strict-aliasing -O3 -g @libev_CFLAGS@ +# -DDEBUG + +SRC_COMMON = vnode_msg.c vnode_cmd.c vnode_chnl.c vnode_io.c \ + vnode_msg.h vnode_cmd.h vnode_chnl.h vnode_io.h \ + vnode_tlv.h myerr.h netns.h +SRC_VNODED = vnoded_main.c vnode_server.c netns.c \ + vnode_server.h +SRC_VCMD = vcmd_main.c vnode_client.c \ + vnode_client.h +SRC_NETNS = netns_main.c netns.c netns.h + +sbin_PROGRAMS = vnoded vcmd netns +vnoded_LDADD = @libev_LIBS@ +vnoded_SOURCES = ${SRC_COMMON} ${SRC_VNODED} +vcmd_LDADD = @libev_LIBS@ +vcmd_SOURCES = ${SRC_COMMON} ${SRC_VCMD} +netns_SOURCES = ${SRC_NETNS} + +# this triggers automake to run setup.py for building the Python libraries +# actual library names are netns.so and vcmd.so +# SOURCES line prevents 'make dist' from looking for a 'libnetns.c' file +noinst_LIBRARIES = libnetns.a +libnetns_a_SOURCES = netnsmodule.c vcmdmodule.c +libnetns.a: + SBINDIR=@SBINDIR@ LDFLAGS="@libev_LIBS@" CFLAGS=@libev_CFLAGS@ $(PYTHON) setup.py build + +install: install-exec-hook + +# Python libraries install +install-exec-hook: + SBINDIR=${DESTDIR}/@SBINDIR@ $(PYTHON) setup.py install --prefix=${DESTDIR}/${prefix} --install-purelib=${DESTDIR}/${pythondir} --install-platlib=${DESTDIR}/${pyexecdir} --no-compile +#python setup.py install --prefix=${DESTDIR}${PYTHON_PREFIX} + +# Python libraries uninstall +uninstall-hook: + rm -f ${sbindir}/vnoded + rm -f ${sbindir}/vcmd + rm -f ${sbindir}/netns + rm -f ${pythondir}/netns-*.egg-info + rm -f ${pythondir}/netns.so + rm -f ${pythondir}/vcmd.so + +# Python libraries cleanup +clean-local: clean-local-check +.PHONY: clean-local-check +clean-local-check: + -rm -rf build + +rpmbuild.sh: + echo SBINDIR=@SBINDIR@ CFLAGS=@libev_CFLAGS@ $(PYTHON) setup.py build > rpmbuild.sh + chmod a+x rpmbuild.sh + +rpm: rpmbuild.sh + $(PYTHON) setup.py bdist_rpm --build-script=rpmbuild.sh --requires="libev" --build-requires="libev-devel" + +# extra cruft to remove +DISTCLEANFILES = Makefile.in rpmbuild.sh MANIFEST + +# include source files for Python libraries with distribution tarball +EXTRA_DIST = setup.py MANIFEST.in + diff --git a/daemon/src/myerr.h b/daemon/src/myerr.h new file mode 100644 index 00000000..a8e2aed7 --- /dev/null +++ b/daemon/src/myerr.h @@ -0,0 +1,80 @@ +/* + * CORE + * Copyright (c)2010-2012 the Boeing Company. + * See the LICENSE file included in this distribution. + * + * author: Tom Goff + * + * myerr.h + * + * Custom error printing macros. + */ + +#ifndef _MYERR_H_ +#define _MYERR_H_ + +#include +#include +#include +#include +#include +#include + +#include + +static void __myerrprintf(const char *func, const char *file, const int line, + FILE *stream, const char *fmt, ...) +{ + extern const char *__progname; + va_list ap; + pid_t pid; + struct timeval tv; + + va_start(ap, fmt); + + pid = getpid(); + if (gettimeofday(&tv, NULL)) + { + fprintf(stream, "%s[%u]: %s[%s:%d]: ", __progname, pid, func, file, line); + } + else + { + char timestr[9]; + strftime(timestr, sizeof(timestr), "%H:%M:%S", localtime(&tv.tv_sec)); + fprintf(stream, "%s[%u]: %s.%06ld %s[%s:%d]: ", + __progname, pid, timestr, tv.tv_usec, func, file, line); + } + + vfprintf(stream, fmt, ap); + fputs("\n", stream); + + va_end(ap); + + return; +} + +#define INFO(fmt, args...) \ + __myerrprintf(__func__, __FILE__, __LINE__, \ + stdout, fmt, ##args) + +#define WARNX(fmt, args...) \ + __myerrprintf(__func__, __FILE__, __LINE__, \ + stderr, fmt, ##args) + +#define WARN(fmt, args...) \ + __myerrprintf(__func__, __FILE__, __LINE__, \ + stderr, fmt ": %s", ##args, strerror(errno)) + +#define ERRX(eval, fmt, args...) \ + do { \ + WARNX(fmt, ##args); \ + exit(eval); \ + } while (0) + +#define ERR(eval, fmt, args...) \ + do { \ + WARN(fmt, ##args); \ + exit(eval); \ + } while (0) + +#endif /* _MYERR_H_ */ diff --git a/daemon/src/netns.c b/daemon/src/netns.c new file mode 100644 index 00000000..37add97c --- /dev/null +++ b/daemon/src/netns.c @@ -0,0 +1,110 @@ +/* + * CORE + * Copyright (c)2010-2012 the Boeing Company. + * See the LICENSE file included in this distribution. + * + * author: Tom Goff + * + * netns.c + * + * Implements nsfork() and nsexecvp() for forking and executing processes + * within a network namespace. + * + */ + +#include +#include + +#include +#include +#include + +#include "myerr.h" +#include "netns.h" + +#define NSCLONEFLGS \ + ( \ + SIGCHLD | \ + CLONE_NEWNS | \ + CLONE_NEWUTS | \ + CLONE_NEWIPC | \ + CLONE_NEWPID | \ + CLONE_NEWNET \ + ) + +#define MOUNT_SYS_MIN_VERSION "2.6.35" + +static void nssetup(void) +{ + int r; + struct utsname uts; + + /* Taken from systemd-nspawn. Not sure why needed, but without this, + * the host system goes a bit crazy under systemd. */ + r = mount(NULL, "/", NULL, MS_SLAVE|MS_REC, NULL); + if (r) + WARN("mounting / failed"); + + /* mount per-namespace /proc */ + r = mount(NULL, "/proc", "proc", 0, NULL); + if (r) + WARN("mounting /proc failed"); + + r = uname(&uts); + if (r) + { + WARN("uname() failed"); + return; + } + + r = strncmp(uts.release, MOUNT_SYS_MIN_VERSION, + sizeof(MOUNT_SYS_MIN_VERSION) - 1); + if (r >= 0) + { + /* mount per-namespace /sys */ + r = mount(NULL, "/sys", "sysfs", 0, NULL); + if (r) + WARN("mounting /sys failed"); + } +} + +pid_t nsfork(int flags) +{ + int pid; + + pid = syscall(SYS_clone, flags | NSCLONEFLGS, NULL, NULL, NULL, NULL); + if (pid == 0) /* child */ + { + nssetup(); + } + + return pid; +} + +pid_t nsexecvp(char *argv[]) +{ + pid_t pid; + + pid = nsfork(CLONE_VFORK); + switch (pid) + { + case -1: + WARN("nsfork() failed"); + break; + + case 0: + /* child */ + execvp(argv[0], argv); + WARN("execvp() failed for '%s'", argv[0]); + _exit(1); + break; + + default: + /* parent */ + if (kill(pid, 0)) + pid = -1; + break; + } + + return pid; +} diff --git a/daemon/src/netns.h b/daemon/src/netns.h new file mode 100644 index 00000000..defec6df --- /dev/null +++ b/daemon/src/netns.h @@ -0,0 +1,20 @@ +/* + * CORE + * Copyright (c)2010-2012 the Boeing Company. + * See the LICENSE file included in this distribution. + * + * author: Tom Goff + * + * netns.h + * + */ + +#ifndef _FORKNS_H_ +#define _FORKNS_H_ + +#include + +pid_t nsfork(int flags); +pid_t nsexecvp(char *argv[]); + +#endif /* _FORKNS_H_ */ diff --git a/daemon/src/netns_main.c b/daemon/src/netns_main.c new file mode 100644 index 00000000..ae323f65 --- /dev/null +++ b/daemon/src/netns_main.c @@ -0,0 +1,127 @@ +/* + * CORE + * Copyright (c)2010-2012 the Boeing Company. + * See the LICENSE file included in this distribution. + * + * author: Tom Goff + * + * netns_main.c + * + * netns utility program runs the specified program with arguments in a new + * namespace. + * + */ + +#include +#include +#include +#include +#include +#include + +#include + +#include "version.h" +#include "netns.h" +#include "myerr.h" + +struct option longopts[] = +{ + {"version", no_argument, NULL, 'V'}, + {"help", no_argument, NULL, 'h'}, + { 0 } +}; + +static void usage(int status, char *fmt, ...) +{ + extern const char *__progname; + va_list ap; + FILE *output; + + va_start(ap, fmt); + + output = status ? stderr : stdout; + fprintf(output, "\n"); + if (fmt != NULL) + { + vfprintf(output, fmt, ap); + fprintf(output, "\n\n"); + } + fprintf(output, + "Usage: %s [-h|-V] [-w] -- command [args...]\n\n" + "Run the specified command in a new network namespace.\n\n" + "Options:\n" + " -h, --help show this help message and exit\n" + " -V, --version show version number and exit\n" + " -w wait for command to complete " + "(useful for interactive commands)\n", + __progname); + + va_end(ap); + + exit(status); +} + +int main(int argc, char *argv[]) +{ + pid_t pid; + int waitcmd = 0; + int status = 0; + extern const char *__progname; + + for (;;) + { + int opt; + + if ((opt = getopt_long(argc, argv, "hwV", longopts, NULL)) == -1) + break; + + switch (opt) + { + case 'w': + waitcmd++; + break; + + case 'V': + printf("%s version %s\n", __progname, CORE_VERSION); + exit(0); + + case 'h': + default: + usage(0, NULL); + } + } + + argc -= optind; + argv += optind; + + if (!argc) + usage(1, "no command given"); + + if (geteuid() != 0) + usage(1, "must be suid or run as root"); + if (setuid(0)) + ERR(1, "setuid() failed"); + + pid = nsexecvp(argv); + if (pid < 0) + ERR(1, "nsexecvp() failed"); + + printf("%d\n", pid); + + if (waitcmd) + { + if (waitpid(pid, &status, 0) == -1) + ERR(1, "waitpid() failed"); + + if (WIFEXITED(status)) + status = WEXITSTATUS(status); + else if (WIFSIGNALED(status)) + { + fprintf(stderr, "process terminated by signal %d\n", WTERMSIG(status)); + status = -1; + } + } + + exit(status); +} diff --git a/daemon/src/netnsmodule.c b/daemon/src/netnsmodule.c new file mode 100644 index 00000000..93222322 --- /dev/null +++ b/daemon/src/netnsmodule.c @@ -0,0 +1,146 @@ +/* + * CORE + * Copyright (c)2010-2012 the Boeing Company. + * See the LICENSE file included in this distribution. + * + * author: Tom Goff + * + * netnsmodule.c + * + * Python module C bindings providing nsfork and nsexecvp methods for + * forking a child process into a new namespace, with nsexecvp executing a + * new program using the default search path. + * + */ + +#include + +#include +#include + +#include "netns.h" + +/* parts taken from python/trunk/Modules/posixmodule.c */ + +static void free_string_array(char **array, Py_ssize_t count) +{ + Py_ssize_t i; + + for (i = 0; i < count; i++) + PyMem_Free(array[i]); + + PyMem_DEL(array); +} + +static PyObject *netns_nsexecvp(PyObject *self, PyObject *args) +{ + pid_t pid; + char **argv; + Py_ssize_t i, argc; + PyObject *(*getitem)(PyObject *, Py_ssize_t); + + /* args should be a list or tuple of strings */ + + if (PyList_Check(args)) + { + argc = PyList_Size(args); + getitem = PyList_GetItem; + } + else if (PyTuple_Check(args)) + { + argc = PyTuple_Size(args); + getitem = PyTuple_GetItem; + } + else + { + PyErr_SetString(PyExc_TypeError, + "netns_nsexecvp() args must be a tuple or list"); + return NULL; + } + + argv = PyMem_NEW(char *, argc + 1); + if (argv == NULL) + return PyErr_NoMemory(); + + for (i = 0; i < argc; i++) + { + if (!PyArg_Parse((*getitem)(args, i), "et", + Py_FileSystemDefaultEncoding, &argv[i])) + { + free_string_array(argv, i); + PyErr_SetString(PyExc_TypeError, + "netns_nsexecvp() args must contain only strings"); + return NULL; + } + } + argv[argc] = NULL; + + pid = nsexecvp(argv); + + free_string_array(argv, argc); + + if (pid < 0) + return PyErr_SetFromErrno(PyExc_OSError); + else + return PyInt_FromLong(pid); +} + +static PyObject *netns_nsfork(PyObject *self, PyObject *args) +{ + int flags; + pid_t pid; + + if (!PyArg_ParseTuple(args, "i", &flags)) + return NULL; + + pid = nsfork(flags); + if (pid < 0) + return PyErr_SetFromErrno(PyExc_OSError); + + if (pid == 0) /* child */ + PyOS_AfterFork(); + + return PyInt_FromLong(pid); +} + +static PyMethodDef netns_methods[] = { + {"nsfork", netns_nsfork, METH_VARARGS, + "nsfork(cloneflags) -> int\n\n" + "Fork a child process into a new namespace using the Linux clone()\n" + "system call.\n\n" + "cloneflags: additional flags passed to clone()"}, + + {"nsexecvp", netns_nsexecvp, METH_VARARGS, + "nsexecvp(args...) -> int\n\n" + "Fork a child process into a new namespace using the Linux clone()\n" + "system call and have the child execute a new program using the\n" + "default search path.\n\n" + "args: the executable file name followed by command arguments"}, + + {NULL, NULL, 0, NULL}, +}; + +PyMODINIT_FUNC initnetns(void) +{ + PyObject *m; + + m = Py_InitModule("netns", netns_methods); + if (m == NULL) + return; + +#define MODADDINT(x) \ + do { \ + PyObject *tmp = Py_BuildValue("i", x); \ + if (tmp) \ + { \ + Py_INCREF(tmp); \ + PyModule_AddObject(m, #x, tmp); \ + } \ + } while (0) + + MODADDINT(CLONE_VFORK); + +#undef MODADDINT + + return; +} diff --git a/daemon/src/setup.py b/daemon/src/setup.py new file mode 100644 index 00000000..7a2bfe15 --- /dev/null +++ b/daemon/src/setup.py @@ -0,0 +1,30 @@ +# Copyright (c)2010-2012 the Boeing Company. +# See the LICENSE file included in this distribution. + +import os, glob +from distutils.core import setup, Extension + +netns = Extension("netns", sources = ["netnsmodule.c", "netns.c"]) +vcmd = Extension("vcmd", + sources = ["vcmdmodule.c", + "vnode_client.c", + "vnode_chnl.c", + "vnode_io.c", + "vnode_msg.c", + "vnode_cmd.c", + ], + library_dirs = ["build/lib"], + libraries = ["ev"]) + +setup(name = "core-python-netns", + version = "1.0", + description = "Extension modules to support virtual nodes using " \ + "Linux network namespaces", + data_files = [("sbin", ('vcmd', 'vnoded', 'netns')), ], + ext_modules = [netns, vcmd], + url = "http://cs.itd.nrl.navy.mil/work/core/", + author = "Boeing Research & Technology", + author_email = "core-dev@pf.itd.nrl.navy.mil", + license = "BSD", + long_description="Extension modules and utilities to support virtual " \ + "nodes using Linux network namespaces") diff --git a/daemon/src/vcmd_main.c b/daemon/src/vcmd_main.c new file mode 100644 index 00000000..8fe9c6eb --- /dev/null +++ b/daemon/src/vcmd_main.c @@ -0,0 +1,439 @@ +/* + * CORE + * Copyright (c)2010-2012 the Boeing Company. + * See the LICENSE file included in this distribution. + * + * author: Tom Goff + * + * vcmd_main.c + * + * vcmd utility program for executing programs in an existing namespace + * specified by the given channel. + * + */ + +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include + +#include "version.h" +#include "vnode_chnl.h" +#include "vnode_cmd.h" +#include "vnode_client.h" + +#include "myerr.h" + +#define FORWARD_SIGNALS +#define VCMD_DEFAULT_CMD "/bin/bash" + +int verbose; + +typedef struct { + vnode_client_t *client; + vnode_client_cmdio_t *cmdio; + int argc; + char **argv; + int cmdid; + int cmdstatus; + ev_io stdin_watcher; + int stdin_fwdfd; + ev_io ptymaster_watcher; + int ptymaster_fwdfd; +} vcmd_t; + +static vcmd_t vcmd; + +static struct termios saveattr; +static int saveattr_set; + +struct option longopts[] = +{ + {"version", no_argument, NULL, 'V'}, + {"help", no_argument, NULL, 'h'}, + { 0 } +}; + +void usage(int status, char *fmt, ...) +{ + extern const char *__progname; + va_list ap; + FILE *output; + + va_start(ap, fmt); + + output = status ? stderr : stdout; + fprintf(output, "\n"); + if (fmt != NULL) + { + vfprintf(output, fmt, ap); + fprintf(output, "\n\n"); + } + fprintf(output, + "Usage: %s [-h|-V] [-v] [-q|-i|-I] -c -- command args" + "...\n\n" + "Run the specified command in the Linux namespace container " + "specified by the \ncontrol , with the specified " + "arguments.\n\nOptions:\n" + " -h, --help show this help message and exit\n" + " -V, --version show version number and exit\n" + " -v enable verbose logging\n" + " -q run the command quietly, without local input or output\n" + " -i run the command interactively (use PTY)\n" + " -I run the command non-interactively (without PTY)\n" + " -c control channel name (e.g. '/tmp/pycore.45647/n3')\n", + __progname); + + va_end(ap); + + exit(status); +} + +static void vcmd_rwcb(struct ev_loop *loop, ev_io *w, int revents) +{ + int outfd = *(int *)w->data; + char buf[BUFSIZ]; + ssize_t rcount, wcount; + + rcount = read(w->fd, buf, sizeof(buf)); + if (rcount <= 0) + { + ev_io_stop(loop, w); + } + else + { + wcount = write(outfd, buf, rcount); + if (wcount != rcount) + WARN("write() error: wrote %d of %d bytes", wcount, rcount); + } + + return; +} + +static void vcmd_cmddonecb(int32_t cmdid, pid_t pid, int status, void *data) +{ + vcmd_t *vcmd = data; + + if (vcmd->cmdio->iotype == VCMD_IO_PTY) + { + ev_io_stop(vcmd->client->loop, &vcmd->stdin_watcher); + ev_io_stop(vcmd->client->loop, &vcmd->ptymaster_watcher); + + /* drain command output */ + for (;;) + { + char buf[BUFSIZ]; + ssize_t rcount, wcount; + + rcount = read(vcmd->ptymaster_watcher.fd, buf, sizeof(buf)); + if (rcount <= 0) + break; + + wcount = write(STDOUT_FILENO, buf, rcount); + if (wcount != rcount) + WARN("write() error: %d of %d bytes", wcount, rcount); + } + } + + vnode_close_clientcmdio(vcmd->cmdio); + +#ifdef DEBUG + WARNX("cmdid %u; pid %d; status: 0x%x", cmdid, pid, status); +#endif + + if (WIFEXITED(status)) + /* normal terminataion */ + vcmd->cmdstatus = WEXITSTATUS(status); + else if (WIFSIGNALED(status)) + { + if (verbose) + INFO("command %u terminated by signal: %d", cmdid, WTERMSIG(status)); + vcmd->cmdstatus = 255; + } + else + { + INFO("unexpected termination status for command %u: 0x%x", cmdid, status); + vcmd->cmdstatus = 255; + } + + vcmd->cmdid = -1; + + ev_unloop(vcmd->client->loop, EVUNLOOP_ALL); + + return; +} + +static void vcmd_cmdreqcb(struct ev_loop *loop, ev_timer *w, int revents) +{ + vcmd_t *vcmd = w->data; + +#ifdef DEBUG + WARNX("sending command request: serverfd %d; vcmd %p", + vcmd->client->serverfd, vcmd); +#endif + + if (vcmd->cmdio->iotype == VCMD_IO_PTY) + { + /* setup forwarding i/o */ + + vcmd->stdin_fwdfd = vcmd->cmdio->stdiopty.masterfd; + vcmd->stdin_watcher.data = &vcmd->stdin_fwdfd; + ev_io_init(&vcmd->stdin_watcher, vcmd_rwcb, STDIN_FILENO, EV_READ); + ev_io_start(loop, &vcmd->stdin_watcher); + + vcmd->ptymaster_fwdfd = STDOUT_FILENO; + vcmd->ptymaster_watcher.data = &vcmd->ptymaster_fwdfd; + ev_io_init(&vcmd->ptymaster_watcher, vcmd_rwcb, + vcmd->cmdio->stdiopty.masterfd, EV_READ); + ev_io_start(loop, &vcmd->ptymaster_watcher); + } + + vcmd->cmdid = vnode_client_cmdreq(vcmd->client, vcmd->cmdio, + vcmd_cmddonecb, vcmd, + vcmd->argc, vcmd->argv); + if (vcmd->cmdid < 0) + { + WARNX("vnode_client_cmdreq() failed"); + vnode_delclient(vcmd->client); + vcmd->client = NULL; + exit(255); + } + + return; +} + +static void vcmd_ioerrorcb(vnode_client_t *client) +{ + vcmd_t *vcmd = client->data; + + WARNX("i/o error"); + + vnode_delclient(client); + vcmd->client = NULL; + + exit(1); + + return; +} + +#ifdef FORWARD_SIGNALS +static void sighandler(int signum) +{ + if (!vcmd.client || vcmd.cmdid < 0) + return; + +#ifdef DEBUG + WARNX("sending command signal: serverfd %d; cmdid %u; signum: %d", + vcmd.client->serverfd, vcmd.cmdid, signum); +#endif + + if (vnode_send_cmdsignal(vcmd.client->serverfd, vcmd.cmdid, signum)) + WARN("vnode_send_cmdsignal() failed"); + + return; +} +#endif /* FORWARD_SIGNALS */ + +static void sigwinch_handler(int signum) +{ + struct winsize wsiz; + + if (signum != SIGWINCH) + { + WARNX("unexpected signal number: %d", signum); + return; + } + + if (!vcmd.cmdio || vcmd.cmdio->iotype != VCMD_IO_PTY) + return; + + if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &wsiz)) + { + WARN("ioctl() failed"); + return; + } + + if (ioctl(vcmd.cmdio->stdiopty.masterfd, TIOCSWINSZ, &wsiz)) + WARN("ioctl() failed"); + + return; +} + +static int termioraw(int fd, struct termios *saveattr) +{ + int err; + struct termios raw = {}; + + err = tcgetattr(fd, saveattr); + if (err) + { + WARN("tcgetattr() failed"); + return err; + } + + cfmakeraw(&raw); + err = tcsetattr(fd, TCSADRAIN, &raw); + if (err) + { + WARN("tcsetattr() failed"); + return err; + } + + return 0; +} + +static void cleanup(void) +{ + if (saveattr_set) + if (tcsetattr(STDOUT_FILENO, TCSADRAIN, &saveattr)) + WARN("tcsetattr() failed"); + + return; +} + +int main(int argc, char *argv[]) +{ + char *ctrlchnlname = NULL; + vnode_client_cmdiotype_t iotype = VCMD_IO_FD; + ev_timer cmdreq; + extern const char *__progname; +#ifdef FORWARD_SIGNALS + int i; + struct sigaction sig_action = { + .sa_handler = sighandler, + }; +#endif /* FORWARD_SIGNALS */ + char *def_argv[2] = { VCMD_DEFAULT_CMD, 0 }; + + if (isatty(STDIN_FILENO) && isatty(STDOUT_FILENO) && + isatty(STDERR_FILENO) && getpgrp() == tcgetpgrp(STDOUT_FILENO)) + iotype = VCMD_IO_PTY; + + /* Parse command line argument list */ + for (;;) + { + int opt; + + if ((opt = getopt_long(argc, argv, "c:hiIqvV", longopts, NULL)) == -1) + break; + + switch (opt) + { + case 'c': + ctrlchnlname = optarg; + break; + + case 'i': + iotype = VCMD_IO_PTY; + break; + + case 'I': + iotype = VCMD_IO_FD; + break; + + case 'q': + iotype = VCMD_IO_NONE; + break; + + case 'v': + verbose++; + break; + + case 'V': + printf("%s version %s\n", __progname, CORE_VERSION); + exit(0); + + case 'h': + /* pass through */ + default: + usage(0, NULL); + } + } + + argc -= optind; + argv += optind; + + if (ctrlchnlname == NULL) + usage(1, "no control channel name given"); + + if (!argc) + { + argc = 1; + argv = def_argv; + } + + if (argc >= VNODE_ARGMAX) + usage(1, "too many command arguments"); + + if (atexit(cleanup)) + ERR(1, "atexit() failed"); + +#ifdef FORWARD_SIGNALS + for (i = 1; i < _NSIG; i++) + if (sigaction(i, &sig_action, NULL)) + if (verbose && i != SIGKILL && i != SIGSTOP) + WARN("sigaction() failed for %d", i); +#endif /* FORWARD_SIGNALS */ + + vcmd.cmdio = vnode_open_clientcmdio(iotype); + if (!vcmd.cmdio) + ERR(1, "vnode_open_clientcmdio() failed"); + + vcmd.argc = argc; + vcmd.argv = argv; + vcmd.cmdstatus = 255; + + switch (vcmd.cmdio->iotype) + { + case VCMD_IO_NONE: + break; + + case VCMD_IO_FD: + SET_STDIOFD(vcmd.cmdio, STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO); + break; + + case VCMD_IO_PTY: + { + struct sigaction sigwinch_action = { + .sa_handler = sigwinch_handler, + }; + + if (sigaction(SIGWINCH, &sigwinch_action, NULL)) + WARN("sigaction() failed for SIGWINCH"); + + sigwinch_handler(SIGWINCH); + + if (termioraw(STDOUT_FILENO, &saveattr)) + WARNX("termioraw() failed"); + else + saveattr_set = 1; + } + break; + + default: + ERR(1, "unsupported i/o type: %u", vcmd.cmdio->iotype); + break; + } + + vcmd.client = vnode_client(ev_default_loop(0), ctrlchnlname, + vcmd_ioerrorcb, &vcmd); + if (!vcmd.client) + ERR(1, "vnode_client() failed"); + + cmdreq.data = &vcmd; + ev_timer_init(&cmdreq, vcmd_cmdreqcb, 0, 0); + ev_timer_start(vcmd.client->loop, &cmdreq); + + ev_loop(vcmd.client->loop, 0); + + vnode_delclient(vcmd.client); + + exit(vcmd.cmdstatus); +} diff --git a/daemon/src/vcmdmodule.c b/daemon/src/vcmdmodule.c new file mode 100644 index 00000000..dd976f91 --- /dev/null +++ b/daemon/src/vcmdmodule.c @@ -0,0 +1,875 @@ +/* + * CORE + * Copyright (c)2010-2012 the Boeing Company. + * See the LICENSE file included in this distribution. + * + * author: Tom Goff + * + * vcmdmodule.c + * + * C bindings for the vcmd Python module that allows a Python script to + * execute a program within a running namespace given by the specified channel. + * + */ + +#include +#include +#include +#include +#undef NDEBUG /* XXX force enabling asserts for now */ +#include + +#include "vnode_client.h" + +/* #define DEBUG */ + +int verbose; + +/* ev_default_loop(0) is not used because it interferes with SIGCHLD */ +static struct ev_loop *loop; +static pthread_t evloopthread; + +static TAILQ_HEAD(asyncreqhead, asyncreq) asyncreqlisthead; +static pthread_mutex_t asyncreqlist_mutex = PTHREAD_MUTEX_INITIALIZER; + +static int asyncpipe[2]; +static pthread_mutex_t asyncpipe_writemutex = PTHREAD_MUTEX_INITIALIZER; +static ev_io asyncwatcher; + +typedef void (*asyncfunc_t)(struct ev_loop *loop, void *data); + +typedef struct asyncreq { + TAILQ_ENTRY(asyncreq) entries; + + pthread_mutex_t mutex; + pthread_cond_t cv; + int done; + + asyncfunc_t asyncfunc; + void *data; +} vcmd_asyncreq_t; + +static void vcmd_asyncreq_cb(struct ev_loop *loop, ev_io *w, int revents) +{ + vcmd_asyncreq_t *asyncreq; + + /* drain the event pipe */ + for (;;) + { + ssize_t len; + char buf[BUFSIZ]; + + len = read(asyncpipe[0], buf, sizeof(buf)); + if (len <= 0) + { + if (len == 0) + ERR(1, "asynchronous event pipe closed"); + break; + } + } + + for (;;) + { + pthread_mutex_lock(&asyncreqlist_mutex); + asyncreq = TAILQ_FIRST(&asyncreqlisthead); + if (asyncreq) + TAILQ_REMOVE(&asyncreqlisthead, asyncreq, entries); + pthread_mutex_unlock(&asyncreqlist_mutex); + + if (!asyncreq) + break; + + assert(asyncreq->asyncfunc); + asyncreq->asyncfunc(loop, asyncreq->data); + + pthread_mutex_lock(&asyncreq->mutex); + asyncreq->done = 1; + pthread_cond_broadcast(&asyncreq->cv); + pthread_mutex_unlock(&asyncreq->mutex); + } + + return; +} + +static void call_asyncfunc(asyncfunc_t asyncfunc, void *data) +{ + vcmd_asyncreq_t asyncreq = { + .asyncfunc = asyncfunc, + .data = data, + }; + char zero = 0; + ssize_t len; + + pthread_mutex_init(&asyncreq.mutex, NULL); + pthread_cond_init(&asyncreq.cv, NULL); + + pthread_mutex_lock(&asyncreqlist_mutex); + TAILQ_INSERT_TAIL(&asyncreqlisthead, &asyncreq, entries); + pthread_mutex_unlock(&asyncreqlist_mutex); + + pthread_mutex_lock(&asyncpipe_writemutex); + len = write(asyncpipe[1], &zero, sizeof(zero)); + pthread_mutex_unlock(&asyncpipe_writemutex); + if (len == -1) + ERR(1, "write() failed"); + if (len != sizeof(zero)) + WARN("incomplete write: %d of %d", len, sizeof(zero)); + + pthread_mutex_lock(&asyncreq.mutex); +Py_BEGIN_ALLOW_THREADS + while (!asyncreq.done) + pthread_cond_wait(&asyncreq.cv, &asyncreq.mutex); +Py_END_ALLOW_THREADS + pthread_mutex_unlock(&asyncreq.mutex); + + pthread_mutex_destroy(&asyncreq.mutex); + pthread_cond_destroy(&asyncreq.cv); + + return; +} + +static void *start_evloop(void *data) +{ + struct ev_loop *loop = data; + +#ifdef DEBUG + WARNX("starting event loop: %p", loop); +#endif + + ev_loop(loop, 0); + +#ifdef DEBUG + WARNX("event loop done: %p", loop); +#endif + + return NULL; +} + +static int init_evloop(void) +{ + int err; + + loop = ev_loop_new(0); + if (!loop) + { + WARN("ev_loop_new() failed"); + return -1; + } + + TAILQ_INIT(&asyncreqlisthead); + + err = pipe(asyncpipe); + if (err) + { + WARN("pipe() failed"); + return -1; + } + set_nonblock(asyncpipe[0]); + ev_io_init(&asyncwatcher, vcmd_asyncreq_cb, asyncpipe[0], EV_READ); + ev_io_start(loop, &asyncwatcher); + + err = pthread_create(&evloopthread, NULL, start_evloop, loop); + if (err) + { + errno = err; + WARN("pthread_create() failed"); + return -1; + } + + return 0; +} + +typedef struct { + PyObject_HEAD + + int32_t _cmdid; + int _complete; + int _status; + pthread_mutex_t _mutex; + pthread_cond_t _cv; +} VCmdWait; + +static PyObject *VCmdWait_new(PyTypeObject *type, + PyObject *args, PyObject *kwds) +{ + VCmdWait *self; + +#ifdef DEBUG + WARNX("enter"); +#endif + + self = (VCmdWait *)type->tp_alloc(type, 0); + if (!self) + return NULL; + + self->_cmdid = -1; + self->_complete = 0; + self->_status = -1; + pthread_mutex_init(&self->_mutex, NULL); + pthread_cond_init(&self->_cv, NULL); + +#ifdef DEBUG + WARNX("%p: exit", self); +#endif + + return (PyObject *)self; +} + +static void VCmdWait_dealloc(VCmdWait *self) +{ +#ifdef DEBUG + WARNX("%p: enter", self); +#endif + + pthread_mutex_destroy(&self->_mutex); + pthread_cond_destroy(&self->_cv); + + self->ob_type->tp_free((PyObject *)self); + + return; +} + +static PyObject *VCmdWait_wait(VCmdWait *self) +{ + int status; + + pthread_mutex_lock(&self->_mutex); + +#ifdef DEBUG + WARNX("%p: waiting for cmd %d: complete: %d; status: %d", + self, self->_cmdid, self->_complete, self->_status); +#endif + +Py_BEGIN_ALLOW_THREADS + while (!self->_complete) + pthread_cond_wait(&self->_cv, &self->_mutex); +Py_END_ALLOW_THREADS + + status = self->_status; + + pthread_mutex_unlock(&self->_mutex); + +#ifdef DEBUG + WARNX("%p: done waiting for cmd %d: status: %d", + self, self->_cmdid, self->_status); +#endif + + return Py_BuildValue("i", status); +} + +static PyObject *VCmdWait_complete(VCmdWait *self, + PyObject *args, PyObject *kwds) +{ + if (self->_complete) + Py_RETURN_TRUE; + else + Py_RETURN_FALSE; +} + +static PyObject *VCmdWait_status(VCmdWait *self, + PyObject *args, PyObject *kwds) +{ + if (self->_complete) + return Py_BuildValue("i", self->_status); + else + Py_RETURN_NONE; +} + +static PyMemberDef VCmdWait_members[] = { + {NULL, 0, 0, 0, NULL}, +}; + +static PyMethodDef VCmdWait_methods[] = { + {"wait", (PyCFunction)VCmdWait_wait, METH_NOARGS, + "wait() -> int\n\n" + "Wait for command to complete and return exit status"}, + + {"complete", (PyCFunction)VCmdWait_complete, METH_NOARGS, + "complete() -> boolean\n\n" + "Return True if command has completed; return False otherwise."}, + + {"status", (PyCFunction)VCmdWait_status, METH_NOARGS, + "status() -> int\n\n" + "Return exit status if command has completed; return None otherwise."}, + + {NULL, NULL, 0, NULL}, +}; + +static PyTypeObject vcmd_VCmdWaitType = { + PyObject_HEAD_INIT(NULL) + .tp_name = "vcmd.VCmdWait", + .tp_basicsize = sizeof(VCmdWait), + .tp_dealloc = (destructor)VCmdWait_dealloc, + .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, + .tp_doc = "VCmdWait objects", + .tp_methods = VCmdWait_methods, + .tp_members = VCmdWait_members, + .tp_new = VCmdWait_new, +}; + + +typedef struct vcmdentry { + PyObject_HEAD + + vnode_client_t *_client; + int _client_connected; +} VCmd; + +static PyObject *VCmd_new(PyTypeObject *type, PyObject *args, PyObject *kwds) +{ + VCmd *self; + + self = (VCmd *)type->tp_alloc(type, 0); + if (!self) + return NULL; + + self->_client = NULL; + self->_client_connected = 0; + + return (PyObject *)self; +} + +static void vcmd_ioerrorcb(vnode_client_t *client) +{ + VCmd *self; + PyGILState_STATE gstate = 0; + int pythreads; + + pythreads = PyEval_ThreadsInitialized(); + if (pythreads) + gstate = PyGILState_Ensure(); + + if (verbose) + WARNX("i/o error for client %p", client); + + self = client->data; + + assert(self); + assert(self->_client == client); + + self->_client_connected = 0; + + if (pythreads) + PyGILState_Release(gstate); + + return; +} + +typedef struct { + vnode_client_t *client; + const char *ctrlchnlname; + void *data; +} vcmd_newclientreq_t; + +static void async_newclientreq(struct ev_loop *loop, void *data) +{ + vcmd_newclientreq_t *newclreq = data; + + newclreq->client = vnode_client(loop, newclreq->ctrlchnlname, + vcmd_ioerrorcb, newclreq->data); + + return; +} + +typedef struct { + vnode_client_t *client; +} vcmd_delclientreq_t; + +static void async_delclientreq(struct ev_loop *loop, void *data) +{ + vcmd_delclientreq_t *delclreq = data; + + vnode_delclient(delclreq->client); + + return; +} + +static int VCmd_init(VCmd *self, PyObject *args, PyObject *kwds) +{ + vcmd_newclientreq_t newclreq = {.data = self}; + +#ifdef DEBUG + WARNX("%p: enter", self); +#endif + + if (!loop) + if (init_evloop()) + return -1; + + if (!PyArg_ParseTuple(args, "s", &newclreq.ctrlchnlname)) + return -1; + + call_asyncfunc(async_newclientreq, &newclreq); + self->_client = newclreq.client; + if (!self->_client) + { + WARN("vnode_client() failed"); + PyErr_SetFromErrno(PyExc_OSError); + return -1; + } + + self->_client_connected = 1; + + return 0; +} + +static void VCmd_dealloc(VCmd *self) +{ +#ifdef DEBUG + WARNX("%p: enter", self); +#endif + + self->_client_connected = 0; + if (self->_client) + { + vcmd_delclientreq_t delclreq = {.client = self->_client}; + + call_asyncfunc(async_delclientreq, &delclreq); + self->_client = NULL; + } + + self->ob_type->tp_free((PyObject *)self); + + return; +} + +static PyObject *VCmd_connected(VCmd *self, PyObject *args, PyObject *kwds) +{ + if (self->_client_connected) + Py_RETURN_TRUE; + else + Py_RETURN_FALSE; +} + +static void vcmd_cmddonecb(int32_t cmdid, pid_t pid, int status, void *data) +{ + VCmdWait *cmdwait = data; + PyGILState_STATE gstate = 0; + int pythreads; + +#ifdef DEBUG + WARNX("cmdid %d; pid %d; status: 0x%x", cmdid, pid, status); + + if (WIFEXITED(status)) + WARNX("command %d terminated normally with status: %d", + cmdid, WEXITSTATUS(status)); + else if (WIFSIGNALED(status)) + WARNX("command %d terminated by signal: %d", cmdid, WTERMSIG(status)); + else + WARNX("unexpected termination status for command %d: 0x%x", cmdid, status); +#endif + +#ifdef DEBUG + WARNX("%p: waiting for lock", cmdwait); +#endif + + pthread_mutex_lock(&cmdwait->_mutex); + + cmdwait->_status = status; + cmdwait->_complete = 1; + +#ifdef DEBUG + WARNX("%p: command callback done", cmdwait); +#endif + + pthread_cond_broadcast(&cmdwait->_cv); + pthread_mutex_unlock(&cmdwait->_mutex); + + pythreads = PyEval_ThreadsInitialized(); + if (pythreads) + gstate = PyGILState_Ensure(); + + Py_DECREF(cmdwait); + + if (pythreads) + PyGILState_Release(gstate); + + return; +} + +typedef struct { + int cmdid; + vnode_client_t *client; + vnode_client_cmdio_t *clientcmdio; + void *data; + int argc; + char **argv; +} vcmd_cmdreq_t; + +static void async_cmdreq(struct ev_loop *loop, void *data) +{ + vcmd_cmdreq_t *cmdreq = data; + + cmdreq->cmdid = vnode_client_cmdreq(cmdreq->client, cmdreq->clientcmdio, + vcmd_cmddonecb, cmdreq->data, + cmdreq->argc, cmdreq->argv); + + return; +} + +static void free_string_array(char **array, Py_ssize_t count) +{ + Py_ssize_t i; + + for (i = 0; i < count; i++) + PyMem_Free(array[i]); + + PyMem_Del(array); +} + +static PyObject *_VCmd_cmd(VCmd *self, PyObject *args, PyObject *kwds, + vnode_client_cmdiotype_t iotype) +{ + int status, infd, outfd, errfd; + PyObject *cmdargs; + char **argv = NULL; + Py_ssize_t i, argc; + PyObject *(*getitem)(PyObject *, Py_ssize_t); + VCmdWait *cmdwait; + vnode_client_cmdio_t *cmdio; + PyObject *pyinfile = NULL, *pyoutfile = NULL, *pyerrfile = NULL; + PyObject *pyptyfile = NULL; + PyObject *ret; + + if (!self->_client_connected) + { + PyErr_SetString(PyExc_ValueError, "not connected"); + return NULL; + } + + if (iotype == VCMD_IO_FD) + { + char *kwlist[] = {"infd", "outfd", "errfd", "args", NULL}; + + status = PyArg_ParseTupleAndKeywords(args, kwds, "iiiO", kwlist, + &infd, &outfd, &errfd, &cmdargs); + } + else + { + char *kwlist[] = {"args", NULL}; + + status = PyArg_ParseTupleAndKeywords(args, kwds, "O", kwlist, &cmdargs); + } + + if (!status) + return NULL; + + /* cmdargs must be a list or tuple of strings */ + if (PyList_Check(cmdargs)) + { + argc = PyList_Size(cmdargs); + getitem = PyList_GetItem; + } + else if (PyTuple_Check(cmdargs)) + { + argc = PyTuple_Size(cmdargs); + getitem = PyTuple_GetItem; + } + else + { + argc = -1; + } + + if (argc <= 0) + { + PyErr_SetString(PyExc_TypeError, + "cmd arg must be a nonempty tuple or list"); + return NULL; + } + + argv = PyMem_New(char *, argc + 1); + if (argv == NULL) + return PyErr_NoMemory(); + + for (i = 0; i < argc; i++) + { + if (!PyArg_Parse((*getitem)(cmdargs, i), "et", + Py_FileSystemDefaultEncoding, &argv[i])) + { + free_string_array(argv, i); + PyErr_SetString(PyExc_TypeError, "cmd arg must contain only strings"); + return NULL; + } + } + argv[argc] = NULL; + + cmdwait = (VCmdWait *)VCmdWait_new(&vcmd_VCmdWaitType, NULL, NULL); + if (cmdwait == NULL) + { + free_string_array(argv, i); + return PyErr_NoMemory(); + } + + pthread_mutex_lock(&cmdwait->_mutex); + cmdwait->_cmdid = -1; + + cmdio = vnode_open_clientcmdio(iotype); + if (cmdio) + { + int err = 0; + vcmd_cmdreq_t cmdreq = { + .client = self->_client, + .clientcmdio = cmdio, + .data = cmdwait, + .argc = argc, + .argv = argv, + }; + +#define PYFILE(obj, fd, name, mode) \ + do { \ + FILE *tmp; \ + obj = NULL; \ + tmp = fdopen(fd, mode); \ + if (!tmp) \ + { \ + WARN("fdopen() failed for fd %d", fd); \ + break; \ + } \ + obj = PyFile_FromFile(tmp, name, mode, fclose); \ + if (!obj) \ + fclose(tmp); \ + } while(0) + + switch (iotype) + { + case VCMD_IO_NONE: + break; + + case VCMD_IO_FD: + SET_STDIOFD(cmdio, infd, outfd, errfd); + break; + + case VCMD_IO_PIPE: + PYFILE(pyinfile, cmdio->stdiopipe.infd[1], "", "wb"); + if (!pyinfile) + { + err = 1; + break; + } + PYFILE(pyoutfile, cmdio->stdiopipe.outfd[0], "", "rb"); + if (!pyoutfile) + { + PyObject_Del(pyinfile); + err = 1; + break; + } + PYFILE(pyerrfile, cmdio->stdiopipe.errfd[0], "", "rb"); + if (!pyerrfile) + { + PyObject_Del(pyoutfile); + PyObject_Del(pyinfile); + err = 1; + break; + } + break; + + case VCMD_IO_PTY: + PYFILE(pyptyfile, cmdio->stdiopty.masterfd, "/dev/ptmx", "r+b"); + if (!pyptyfile) + err = 1; + break; + + default: + if (verbose) + WARNX("invalid iotype: 0x%x", iotype); + errno = EINVAL; + err = 1; + break; + } + +#undef PYFILE + + if (!err) + { + call_asyncfunc(async_cmdreq, &cmdreq); + cmdwait->_cmdid = cmdreq.cmdid; + } + } + + free_string_array(argv, argc); + free(cmdio); + + if (cmdwait->_cmdid < 0) + { + if (pyinfile) + PyObject_Del(pyinfile); + if (pyoutfile) + PyObject_Del(pyoutfile); + if (pyerrfile) + PyObject_Del(pyerrfile); + if (pyptyfile) + PyObject_Del(pyptyfile); + + PyErr_SetFromErrno(PyExc_OSError); + pthread_mutex_unlock(&cmdwait->_mutex); + Py_DECREF(cmdwait); + return NULL; + } + + /* don't do Py_DECREF(cmdwait) or VCmdWait_dealloc(cmdwait) if + * there's an error below since cmddonecb should still get called + */ + + switch (iotype) + { + case VCMD_IO_NONE: + case VCMD_IO_FD: + ret = Py_BuildValue("O", (PyObject *)cmdwait); + break; + + case VCMD_IO_PIPE: + ret = Py_BuildValue("(OOOO)", (PyObject *)cmdwait, + pyinfile, pyoutfile, pyerrfile); + break; + + case VCMD_IO_PTY: + ret = Py_BuildValue("(OO)", (PyObject *)cmdwait, pyptyfile); + break; + + default: + ret = NULL; + break; + } + + pthread_mutex_unlock(&cmdwait->_mutex); + + return ret; +} + +static PyObject *VCmd_qcmd(VCmd *self, PyObject *args, PyObject *kwds) +{ + return _VCmd_cmd(self, args, kwds, VCMD_IO_NONE); +} + +static PyObject *VCmd_redircmd(VCmd *self, PyObject *args, PyObject *kwds) +{ + return _VCmd_cmd(self, args, kwds, VCMD_IO_FD); +} + +static PyObject *VCmd_popen(VCmd *self, PyObject *args, PyObject *kwds) +{ + return _VCmd_cmd(self, args, kwds, VCMD_IO_PIPE); +} + +static PyObject *VCmd_ptyopen(VCmd *self, PyObject *args, PyObject *kwds) +{ + return _VCmd_cmd(self, args, kwds, VCMD_IO_PTY); +} + +static PyObject *VCmd_kill(VCmd *self, PyObject *args, PyObject *kwds) +{ + VCmdWait *cmdwait; + int sig; + + if (!PyArg_ParseTuple(args, "O!i", &vcmd_VCmdWaitType, &cmdwait, &sig)) + return NULL; + + if (cmdwait->_complete) + { + PyErr_SetString(PyExc_ValueError, "command already complete"); + return NULL; + } + + if (vnode_send_cmdsignal(self->_client->serverfd, cmdwait->_cmdid, sig)) + { + PyErr_SetFromErrno(PyExc_OSError); + return NULL; + } + + Py_RETURN_NONE; +} + +static PyMemberDef VCmd_members[] = { + {NULL, 0, 0, 0, NULL}, +}; + +static PyMethodDef VCmd_methods[] = { + {"connected", (PyCFunction)VCmd_connected, METH_NOARGS, + "connected() -> boolean\n\n" + "returns True if connected; False otherwise"}, + + {"popen", (PyCFunction)VCmd_popen, METH_VARARGS | METH_KEYWORDS, + "popen(args...) -> (VCmdWait, cmdin, cmdout, cmderr)\n\n" + "Send command request and use pipe I/O.\n\n" + "args: executable file name followed by command arguments"}, + + {"ptyopen", (PyCFunction)VCmd_ptyopen, METH_VARARGS| METH_KEYWORDS, + "ptyopen(args...) -> (VCmdWait, cmdpty)\n\n" + "Send command request and use pty I/O.\n\n" + "args: executable file name followed by command arguments"}, + + {"qcmd", (PyCFunction)VCmd_qcmd, METH_VARARGS | METH_KEYWORDS, + "qcmd(args...) -> VCmdWait\n\n" + "Send command request without I/O.\n\n" + "args: executable file name followed by command arguments"}, + + {"redircmd", (PyCFunction)VCmd_redircmd, METH_VARARGS | METH_KEYWORDS, + "redircmd(infd, outfd, errfd, args...) -> VCmdWait\n\n" + "Send command request with I/O redirected from/to the given fds.\n\n" + "infd: file descriptor for command standard input\n" + "outfd: file descriptor for command standard output\n" + "errfd: file descriptor for command standard error\n" + "args: executable file name followed by command arguments"}, + + {"kill", (PyCFunction)VCmd_kill, METH_VARARGS, + "kill(cmdwait, signum) -> None\n\n" + "Send signal to a command.\n\n" + "cmdwait: the VCmdWait object from an earlier command request\n" + "signum: the signal to send"}, + + {NULL, NULL, 0, NULL}, +}; + +static PyTypeObject vcmd_VCmdType = { + PyObject_HEAD_INIT(NULL) + .tp_name = "vcmd.VCmd", + .tp_basicsize = sizeof(VCmd), + .tp_dealloc = (destructor)VCmd_dealloc, + .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, + .tp_doc = "VCmd objects", + .tp_methods = VCmd_methods, + .tp_members = VCmd_members, + .tp_init = (initproc)VCmd_init, + .tp_new = VCmd_new, +}; + +static PyObject *vcmd_verbose(PyObject *self, PyObject *args) +{ + int oldval = verbose; + + if (!PyArg_ParseTuple(args, "|i", &verbose)) + return NULL; + + return Py_BuildValue("i", oldval); +} + +static PyMethodDef vcmd_methods[] = { + {"verbose", (PyCFunction)vcmd_verbose, METH_VARARGS, + "verbose([newval]) -> int\n\n" + "Get the current verbose level and optionally set it to newval."}, + + {NULL, NULL, 0, NULL}, +}; + +PyMODINIT_FUNC initvcmd(void) +{ + PyObject *m; + + if (PyType_Ready(&vcmd_VCmdType) < 0) + return; + + if (PyType_Ready(&vcmd_VCmdWaitType) < 0) + return; + + m = Py_InitModule3("vcmd", vcmd_methods, "vcmd module that does stuff..."); + if (!m) + return; + + Py_INCREF(&vcmd_VCmdType); + PyModule_AddObject(m, "VCmd", (PyObject *)&vcmd_VCmdType); + + Py_INCREF(&vcmd_VCmdWaitType); + PyModule_AddObject(m, "VCmdWait", (PyObject *)&vcmd_VCmdWaitType); + + return; +} diff --git a/daemon/src/version.h.in b/daemon/src/version.h.in new file mode 100644 index 00000000..557b691d --- /dev/null +++ b/daemon/src/version.h.in @@ -0,0 +1,16 @@ +/* + * CORE + * Copyright (c)2012 the Boeing Company. + * See the LICENSE file included in this distribution. + * + * author: Jeff Ahrenholz + * + * version.h + * + */ +#ifndef _VERSION_H_ +#define _VERSION_H_ + +#define CORE_VERSION "@CORE_VERSION@" + +#endif /* _VERSION_H_ */ diff --git a/daemon/src/vnode_chnl.c b/daemon/src/vnode_chnl.c new file mode 100644 index 00000000..122f73b6 --- /dev/null +++ b/daemon/src/vnode_chnl.c @@ -0,0 +1,114 @@ +/* + * CORE + * Copyright (c)2010-2012 the Boeing Company. + * See the LICENSE file included in this distribution. + * + * author: Tom Goff + * + * vnode_chnl.c + * + * Functions for setting up a local UNIX socket to use as a control channel + * for interacting with a network namespace. + * + */ + +#include +#include +#include +#include + +#include +#include + +#include "vnode_msg.h" +#include "vnode_tlv.h" +#include "vnode_chnl.h" +#include "vnode_io.h" + +extern int verbose; + + +int vnode_connect(const char *name) +{ + int fd; + struct sockaddr_un addr; + +#ifdef DEBUG + WARNX("opening '%s'", name); +#endif + + if (strlen(name) > sizeof(addr.sun_path) - 1) + { + WARNX("name too long: '%s'", name); + return -1; + } + + if ((fd = socket(AF_UNIX, SOCK_SEQPACKET, 0)) < 0) + { + WARN("socket() failed"); + return -1; + } + + addr.sun_family = AF_UNIX; + strcpy(addr.sun_path, name); + if (connect(fd, (struct sockaddr *)&addr, sizeof(addr)) < 0) + { + WARN("connect() failed for '%s'", name); + close(fd); + return -1; + } + + if (set_nonblock(fd)) + WARN("set_nonblock() failed for fd %d", fd); + + return fd; +} + +int vnode_listen(const char *name) +{ + int fd; + struct sockaddr_un addr; + +#ifdef DEBUG + WARNX("opening '%s'", name); +#endif + + if (strlen(name) > sizeof(addr.sun_path) - 1) + { + WARNX("name too long: '%s'", name); + return -1; + } + + if ((fd = socket(AF_UNIX, SOCK_SEQPACKET, 0)) < 0) + { + WARN("socket() failed"); + return -1; + } + + unlink(name); + addr.sun_family = AF_UNIX; + strcpy(addr.sun_path, name); + + if (bind(fd, (struct sockaddr *)&addr, sizeof(addr)) < 0) + { + WARN("bind() failed for '%s'", name); + close(fd); + return -1; + } + + /* to override umask */ + if (chmod(name, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)) + WARN("fchmod() failed for '%s'", name); + + if (listen(fd, 5) < 0) + { + WARN("listen() failed"); + close(fd); + return -1; + } + + if (set_nonblock(fd)) + WARN("set_nonblock() failed for fd %d", fd); + + return fd; +} diff --git a/daemon/src/vnode_chnl.h b/daemon/src/vnode_chnl.h new file mode 100644 index 00000000..fb51973e --- /dev/null +++ b/daemon/src/vnode_chnl.h @@ -0,0 +1,18 @@ +/* + * CORE + * Copyright (c)2010-2012 the Boeing Company. + * See the LICENSE file included in this distribution. + * + * author: Tom Goff + * + * vnode_chnl.h + * + */ + +#ifndef _VNODE_CHNL_H_ +#define _VNODE_CHNL_H_ + +int vnode_connect(const char *name); +int vnode_listen(const char *name); + +#endif /* _VNODE_CHNL_H_ */ diff --git a/daemon/src/vnode_client.c b/daemon/src/vnode_client.c new file mode 100644 index 00000000..b21c990f --- /dev/null +++ b/daemon/src/vnode_client.c @@ -0,0 +1,509 @@ +/* + * CORE + * Copyright (c)2010-2012 the Boeing Company. + * See the LICENSE file included in this distribution. + * + * author: Tom Goff + * + * vnode_client.c + * + * + * + */ + +#include +#include +#include +#include +#include + +#include "vnode_chnl.h" +#include "vnode_client.h" +#include "vnode_tlv.h" +#include "vnode_io.h" + + +extern int verbose; + +typedef struct { + vnode_client_cmddonecb_t cmddonecb; + void *data; +} vnode_clientcmd_t; + +vnode_client_cmdio_t *vnode_open_clientcmdio(vnode_client_cmdiotype_t iotype) +{ + int err; + vnode_client_cmdio_t *clientcmdio; + + clientcmdio = malloc(sizeof(*clientcmdio)); + if (!clientcmdio) + { + WARN("malloc() failed"); + return NULL; + } + + clientcmdio->iotype = iotype; + + switch (clientcmdio->iotype) + { + case VCMD_IO_NONE: + case VCMD_IO_FD: + err = 0; + break; + + case VCMD_IO_PIPE: + err = open_stdio_pipe(&clientcmdio->stdiopipe); + break; + + case VCMD_IO_PTY: + err = open_stdio_pty(&clientcmdio->stdiopty); + break; + + default: + WARNX("unknown i/o type: %u", clientcmdio->iotype); + err = -1; + break; + } + + if (err) + { + free(clientcmdio); + clientcmdio = NULL; + } + + return clientcmdio; +} + +void vnode_close_clientcmdio(vnode_client_cmdio_t *clientcmdio) +{ + switch (clientcmdio->iotype) + { + case VCMD_IO_NONE: + case VCMD_IO_FD: + break; + + case VCMD_IO_PIPE: + close_stdio_pipe(&clientcmdio->stdiopipe); + break; + + case VCMD_IO_PTY: + close_stdio_pty(&clientcmdio->stdiopty); + break; + + default: + WARNX("unknown i/o type: %u", clientcmdio->iotype); + break; + } + + memset(clientcmdio, 0, sizeof(*clientcmdio)); + free(clientcmdio); + + return; +} + +static void vnode_client_cmddone(vnode_cmdentry_t *cmd) +{ + vnode_clientcmd_t *clientcmd = cmd->data;; + + if (clientcmd->cmddonecb) + clientcmd->cmddonecb(cmd->cmdid, cmd->pid, cmd->status, clientcmd->data); + + memset(clientcmd, 0, sizeof(*clientcmd)); + free(clientcmd); + + memset(cmd, 0, sizeof(*cmd)); + free(cmd); + + return; +} + +static int tlv_cmdreqack_cmdid(vnode_tlv_t *tlv, void *data) +{ + vnode_cmdreqack_t *cmdreqack = data; + int tmp; + + assert(tlv->type == VNODE_TLV_CMDID); + + tmp = tlv_int32(&cmdreqack->cmdid, tlv); + + if (tmp == 0 && verbose) + INFO("VNODE_TLV_CMDID: %d", cmdreqack->cmdid); + + return tmp; +} + +static int tlv_cmdreqack_cmdpid(vnode_tlv_t *tlv, void *data) +{ + vnode_cmdreqack_t *cmdreqack = data; + int tmp; + + assert(tlv->type == VNODE_TLV_CMDPID); + + tmp = tlv_int32(&cmdreqack->pid, tlv); + + if (tmp == 0 && verbose) + INFO("VNODE_TLV_CMDPID: %d", cmdreqack->pid); + + return tmp; +} + +static void vnode_clientrecv_cmdreqack(vnode_msgio_t *msgio) +{ + vnode_cmdentry_t *cmd; + vnode_client_t *client = msgio->data; + vnode_cmdreqack_t cmdreqack = CMDREQACK_INIT; + static const vnode_tlvhandler_t tlvhandler[VNODE_TLV_MAX] = { + [VNODE_TLV_CMDID] = tlv_cmdreqack_cmdid, + [VNODE_TLV_CMDPID] = tlv_cmdreqack_cmdpid, + }; + +#ifdef DEBUG + WARNX("command request ack"); +#endif + + assert(msgio->msgbuf.msg->hdr.type == VNODE_MSG_CMDREQACK); + + if (vnode_parsemsg(msgio->msgbuf.msg, &cmdreqack, tlvhandler)) + return; + + TAILQ_FOREACH(cmd, &client->cmdlisthead, entries) + if (cmd->cmdid == cmdreqack.cmdid) + break; + + if (cmd == NULL) + { + WARNX("cmdid %d not found in command list", cmdreqack.cmdid); + return; + } + +#ifdef DEBUG + WARNX("cmdid %d found in cmd list", cmdreqack.cmdid); +#endif + + cmd->pid = cmdreqack.pid; + + if (cmdreqack.pid == -1) + { +#ifdef DEBUG + WARNX("XXX pid == -1 removing cmd from list"); +#endif + TAILQ_REMOVE(&client->cmdlisthead, cmd, entries); + + cmd->status = -1; + vnode_client_cmddone(cmd); + + return; + } + + return; +} + +static int tlv_cmdstatus_cmdid(vnode_tlv_t *tlv, void *data) +{ + vnode_cmdstatus_t *cmdstatus = data; + int tmp; + + assert(tlv->type == VNODE_TLV_CMDID); + + tmp = tlv_int32(&cmdstatus->cmdid, tlv); + + if (tmp == 0 && verbose) + INFO("VNODE_TLV_CMDID: %d", cmdstatus->cmdid); + + return tmp; +} + +static int tlv_cmdstatus_status(vnode_tlv_t *tlv, void *data) +{ + vnode_cmdstatus_t *cmdstatus = data; + int tmp; + + assert(tlv->type == VNODE_TLV_CMDSTATUS); + + tmp = tlv_int32(&cmdstatus->status, tlv); + + if (tmp == 0 && verbose) + INFO("VNODE_TLV_CMDSTATUS: %d", cmdstatus->status); + + return tmp; +} + +static void vnode_clientrecv_cmdstatus(vnode_msgio_t *msgio) +{ + vnode_cmdentry_t *cmd; + vnode_client_t *client = msgio->data; + vnode_cmdstatus_t cmdstatus = CMDSTATUS_INIT; + static const vnode_tlvhandler_t tlvhandler[VNODE_TLV_MAX] = { + [VNODE_TLV_CMDID] = tlv_cmdstatus_cmdid, + [VNODE_TLV_CMDSTATUS] = tlv_cmdstatus_status, + }; + +#ifdef DEBUG + WARNX("command status"); +#endif + + assert(msgio->msgbuf.msg->hdr.type == VNODE_MSG_CMDSTATUS); + + if (vnode_parsemsg(msgio->msgbuf.msg, &cmdstatus, tlvhandler)) + return; + + TAILQ_FOREACH(cmd, &client->cmdlisthead, entries) + if (cmd->cmdid == cmdstatus.cmdid) + break; + + if (cmd == NULL) + { + WARNX("cmdid %d not found in command list", cmdstatus.cmdid); + return; + } + +#ifdef DEBUG + WARNX("cmdid %d found in cmd list; removing", cmdstatus.cmdid); +#endif + TAILQ_REMOVE(&client->cmdlisthead, cmd, entries); + + cmd->status = cmdstatus.status; + vnode_client_cmddone(cmd); + + return; +} + +static void server_ioerror(vnode_msgio_t *msgio) +{ + vnode_client_t *client = msgio->data; + +#ifdef DEBUG + WARNX("i/o error on fd %d; client: %p", msgio->fd, client); +#endif + + if (client) + { + assert(msgio == &client->msgio); + if (client->ioerrorcb) + client->ioerrorcb(client); + } + + return; +} + +vnode_client_t *vnode_client(struct ev_loop *loop, const char *ctrlchnlname, + vnode_clientcb_t ioerrorcb, void *data) +{ + int fd = -1; + vnode_client_t *client; + static const vnode_msghandler_t msghandler[VNODE_MSG_MAX] = { + [VNODE_MSG_CMDREQACK] = vnode_clientrecv_cmdreqack, + [VNODE_MSG_CMDSTATUS] = vnode_clientrecv_cmdstatus, + }; + + if (!ioerrorcb) + { + WARNX("no i/o error callback given"); + return NULL; + } + + fd = vnode_connect(ctrlchnlname); + if (fd < 0) + { + WARN("vnode_connect() failed for '%s'", ctrlchnlname); + return NULL; + } + + if ((client = calloc(1, sizeof(*client))) == NULL) + { + WARN("calloc() failed"); + close(fd); + return NULL; + } + + TAILQ_INIT(&client->cmdlisthead); + client->loop = loop; + client->serverfd = fd; + client->ioerrorcb = ioerrorcb; + client->data = data; + + if (vnode_msgiostart(&client->msgio, client->loop, + client->serverfd, client, server_ioerror, msghandler)) + { + WARNX("vnode_msgiostart() failed"); + close(fd); + return NULL; + } + +#ifdef DEBUG + WARNX("new client connected to %s: %p", ctrlchnlname, client); +#endif + + return client; +} + +void vnode_delclient(vnode_client_t *client) +{ +#ifdef DEBUG + WARNX("deleting client: %p", client); +#endif + + vnode_msgiostop(&client->msgio); + if (client->serverfd >= 0) + { + close(client->serverfd); + client->serverfd = -1; + } + + while (!TAILQ_EMPTY(&client->cmdlisthead)) + { + vnode_cmdentry_t *cmd; + + cmd = TAILQ_FIRST(&client->cmdlisthead); + TAILQ_REMOVE(&client->cmdlisthead, cmd, entries); + + cmd->status = -1; + vnode_client_cmddone(cmd); + } + + /* XXX more stuff ?? */ + + memset(client, 0, sizeof(*client)); + free(client); + + return; +} + +static int vnode_setcmdio(int *cmdin, int *cmdout, int *cmderr, + vnode_client_cmdio_t *clientcmdio) +{ + switch (clientcmdio->iotype) + { + case VCMD_IO_NONE: + *cmdin = -1; + *cmdout = -1; + *cmderr = -1; + break; + + case VCMD_IO_FD: + *cmdin = clientcmdio->stdiofd.infd; + *cmdout = clientcmdio->stdiofd.outfd; + *cmderr = clientcmdio->stdiofd.errfd; + break; + + case VCMD_IO_PIPE: + *cmdin = clientcmdio->stdiopipe.infd[0]; + *cmdout = clientcmdio->stdiopipe.outfd[1]; + *cmderr = clientcmdio->stdiopipe.errfd[1]; + break; + + case VCMD_IO_PTY: + *cmdin = clientcmdio->stdiopty.slavefd; + *cmdout = clientcmdio->stdiopty.slavefd; + *cmderr = clientcmdio->stdiopty.slavefd; + break; + + default: + WARNX("unknown i/o type: %u", clientcmdio->iotype); + return -1; + } + + return 0; +} + +static void vnode_cleanupcmdio(vnode_client_cmdio_t *clientcmdio) +{ +#define CLOSE(var) \ + do { \ + if (var >= 0) \ + close(var); \ + var = -1; \ + } while (0) + + switch (clientcmdio->iotype) + { + case VCMD_IO_NONE: + case VCMD_IO_FD: + break; + + case VCMD_IO_PIPE: + CLOSE(clientcmdio->stdiopipe.infd[0]); + CLOSE(clientcmdio->stdiopipe.outfd[1]); + CLOSE(clientcmdio->stdiopipe.errfd[1]); + break; + + case VCMD_IO_PTY: + CLOSE(clientcmdio->stdiopty.slavefd); + break; + + default: + WARNX("unknown i/o type: %u", clientcmdio->iotype); + break; + } + +#undef CLOSE + + return; +} + +int vnode_client_cmdreq(vnode_client_t *client, + vnode_client_cmdio_t *clientcmdio, + vnode_client_cmddonecb_t cmddonecb, void *data, + int argc, char *argv[]) +{ + int cmdin, cmdout, cmderr; + vnode_clientcmd_t *clientcmd; + vnode_cmdentry_t *cmd; + + if (argc >= VNODE_ARGMAX) + { + WARNX("too many command arguments"); + return -1; + } + + if (argv[argc] != NULL) + { + WARNX("command arguments not null-terminated"); + return -1; + } + + if (vnode_setcmdio(&cmdin, &cmdout, &cmderr, clientcmdio)) + { + WARNX("vnode_setcmdio() failed"); + return -1; + } + + if ((clientcmd = malloc(sizeof(*clientcmd))) == NULL) + { + WARN("malloc() failed"); + return -1; + } + + clientcmd->cmddonecb = cmddonecb; + clientcmd->data = data; + + if ((cmd = malloc(sizeof(*cmd))) == NULL) + { + WARN("malloc() failed"); + free(clientcmd); + return -1; + } + + if (client->cmdid < 0) + client->cmdid = 0; + cmd->cmdid = client->cmdid++; + cmd->pid = -1; + cmd->status = -1; + cmd->data = clientcmd; + + TAILQ_INSERT_TAIL(&client->cmdlisthead, cmd, entries); + + if (vnode_send_cmdreq(client->serverfd, cmd->cmdid, + argv, cmdin, cmdout, cmderr)) + { + WARN("vnode_send_cmdreq() failed"); + TAILQ_REMOVE(&client->cmdlisthead, cmd, entries); + free(clientcmd); + free(cmd); + return -1; + } + + vnode_cleanupcmdio(clientcmdio); + + return cmd->cmdid; +} diff --git a/daemon/src/vnode_client.h b/daemon/src/vnode_client.h new file mode 100644 index 00000000..607f1199 --- /dev/null +++ b/daemon/src/vnode_client.h @@ -0,0 +1,77 @@ +/* + * CORE + * Copyright (c)2010-2012 the Boeing Company. + * See the LICENSE file included in this distribution. + * + * author: Tom Goff + * + * vnode_client.h + * + */ + +#ifndef _VNODE_CLIENT_H_ +#define _VNODE_CLIENT_H_ + +#include +#include + +#include "vnode_msg.h" +#include "vnode_cmd.h" +#include "vnode_io.h" + +struct vnode_client; +typedef void (*vnode_clientcb_t)(struct vnode_client *client); + +typedef struct vnode_client { + TAILQ_HEAD(cmdlist, cmdentry) cmdlisthead; + + struct ev_loop *loop; + int serverfd; + struct vnode_msgio msgio; + void *data; + + vnode_clientcb_t ioerrorcb; + + int32_t cmdid; +} vnode_client_t; + +typedef void (*vnode_client_cmddonecb_t)(int32_t cmdid, pid_t pid, + int status, void *data); + +typedef enum { + VCMD_IO_NONE = 0, + VCMD_IO_FD, + VCMD_IO_PIPE, + VCMD_IO_PTY, +} vnode_client_cmdiotype_t; + +typedef struct { + vnode_client_cmdiotype_t iotype; + union { + stdio_fd_t stdiofd; + stdio_pipe_t stdiopipe; + stdio_pty_t stdiopty; + }; +} vnode_client_cmdio_t; + +#define SET_STDIOFD(clcmdio, ifd, ofd, efd) \ + do { \ + (clcmdio)->iotype = VCMD_IO_FD; \ + (clcmdio)->stdiofd.infd = (ifd); \ + (clcmdio)->stdiofd.outfd = (ofd); \ + (clcmdio)->stdiofd.errfd = (efd); \ + } while (0) + +vnode_client_t *vnode_client(struct ev_loop *loop, const char *ctrlchnlname, + vnode_clientcb_t ioerrorcb, void *data); +void vnode_delclient(vnode_client_t *client); + +vnode_client_cmdio_t *vnode_open_clientcmdio(vnode_client_cmdiotype_t iotype); +void vnode_close_clientcmdio(vnode_client_cmdio_t *clientcmdio); + +int vnode_client_cmdreq(vnode_client_t *client, + vnode_client_cmdio_t *clientcmdio, + vnode_client_cmddonecb_t cmddonecb, void *data, + int argc, char *argv[]); + +#endif /* _VNODE_CLIENT_H_ */ diff --git a/daemon/src/vnode_cmd.c b/daemon/src/vnode_cmd.c new file mode 100644 index 00000000..088dfc03 --- /dev/null +++ b/daemon/src/vnode_cmd.c @@ -0,0 +1,483 @@ +/* + * CORE + * Copyright (c)2010-2012 the Boeing Company. + * See the LICENSE file included in this distribution. + * + * author: Tom Goff + * + * vnode_cmd.c + * + */ + +#include +#include +#include + +#include +#include + +#include "myerr.h" +#include "vnode_msg.h" +#include "vnode_server.h" +#include "vnode_tlv.h" +#include "vnode_io.h" + +#include "vnode_cmd.h" + +extern int verbose; + +static void vnode_process_cmdreq(vnode_cliententry_t *client, + vnode_cmdreq_t *cmdreq); + +static int tlv_cmdreq_cmdid(vnode_tlv_t *tlv, void *data) +{ + vnode_cmdreq_t *cmdreq = data; + int tmp; + + assert(tlv->type == VNODE_TLV_CMDID); + + tmp = tlv_int32(&cmdreq->cmdid, tlv); + + if (tmp == 0 && verbose) + INFO("VNODE_TLV_CMDID: %u", cmdreq->cmdid); + + return tmp; +} + +static int tlv_cmdreq_cmdarg(vnode_tlv_t *tlv, void *data) +{ + vnode_cmdreq_t *cmdreq = data; + int i, tmp; + + assert(tlv->type == VNODE_TLV_CMDARG); + +#define CMDARGMAX (sizeof(cmdreq->cmdarg) / sizeof(cmdreq->cmdarg[0])) + + for (i = 0; i < CMDARGMAX; i++) + if (cmdreq->cmdarg[i] == NULL) + break; + + if (i == CMDARGMAX) + { + WARNX("too many command arguments"); + return -1; + } + +#undef CMDARGMAX + + tmp = tlv_string(&cmdreq->cmdarg[i], tlv); + + if (tmp == 0 && verbose) + INFO("VNODE_TLV_CMDARG: '%s'", cmdreq->cmdarg[i]); + + return tmp; +} + +void vnode_recv_cmdreq(vnode_msgio_t *msgio) +{ + vnode_cliententry_t *client = msgio->data; + vnode_cmdreq_t cmdreq = CMDREQ_INIT; + static vnode_tlvhandler_t cmdreq_tlvhandler[VNODE_TLV_MAX] = { + [VNODE_TLV_CMDID] = tlv_cmdreq_cmdid, + [VNODE_TLV_CMDARG] = tlv_cmdreq_cmdarg, + }; + +#ifdef DEBUG + WARNX("command request"); +#endif + + assert(msgio->msgbuf.msg->hdr.type == VNODE_MSG_CMDREQ); + + if (vnode_parsemsg(msgio->msgbuf.msg, &cmdreq, cmdreq_tlvhandler)) + return; + + cmdreq.cmdio.infd = msgio->msgbuf.infd; + cmdreq.cmdio.outfd = msgio->msgbuf.outfd; + cmdreq.cmdio.errfd = msgio->msgbuf.errfd; + + vnode_process_cmdreq(client, &cmdreq); + + return; +} + +int vnode_send_cmdreq(int fd, int32_t cmdid, char *argv[], + int infd, int outfd, int errfd) +{ + size_t offset = 0; + vnode_msgbuf_t msgbuf; + char **cmdarg; + int tmp; + + if (vnode_initmsgbuf(&msgbuf)) + return -1; + +#define ADDTLV(t, l, vp) \ + do { \ + ssize_t tlvlen; \ + tlvlen = vnode_addtlv(&msgbuf, offset, t, l, vp); \ + if (tlvlen < 0) \ + { \ + WARNX("vnode_addtlv() failed"); \ + FREE_MSGBUF(&msgbuf); \ + return -1; \ + } \ + offset += tlvlen; \ + } while (0) + + ADDTLV(VNODE_TLV_CMDID, sizeof(cmdid), &cmdid); + + for (cmdarg = argv; *cmdarg; cmdarg++) + ADDTLV(VNODE_TLV_CMDARG, strlen(*cmdarg) + 1, *cmdarg); + +#undef ADDTLV + + msgbuf.infd = infd; + msgbuf.outfd = outfd; + msgbuf.errfd = errfd; + +#ifdef DEBUG + WARNX("sending cmd req on fd %d: cmd '%s'", fd, argv[0]); +#endif + + msgbuf.msg->hdr.type = VNODE_MSG_CMDREQ; + msgbuf.msg->hdr.datalen = offset; + if (vnode_sendmsg(fd, &msgbuf) == vnode_msglen(&msgbuf)) + tmp = 0; + else + tmp = -1; + + FREE_MSGBUF(&msgbuf); + + return tmp; +} + +int vnode_send_cmdreqack(int fd, int32_t cmdid, int32_t pid) +{ + ssize_t tmp = -1; + size_t offset = 0; + vnode_msgbuf_t msgbuf; + + if (vnode_initmsgbuf(&msgbuf)) + return -1; + +#define ADDTLV(t, l, vp) \ + do { \ + ssize_t tlvlen; \ + tlvlen = vnode_addtlv(&msgbuf, offset, t, l, vp); \ + if (tlvlen < 0) \ + { \ + WARNX("vnode_addtlv() failed"); \ + FREE_MSGBUF(&msgbuf); \ + return -1; \ + } \ + offset += tlvlen; \ + } while (0) + + ADDTLV(VNODE_TLV_CMDID, sizeof(cmdid), &cmdid); + ADDTLV(VNODE_TLV_CMDPID, sizeof(pid), &pid); + +#undef ADDTLV + +#ifdef DEBUG + WARNX("sending cmd req ack on fd %d: cmdid %d; pid %d", fd, cmdid, pid); +#endif + + msgbuf.msg->hdr.type = VNODE_MSG_CMDREQACK; + msgbuf.msg->hdr.datalen = offset; + if (vnode_sendmsg(fd, &msgbuf) == vnode_msglen(&msgbuf)) + tmp = 0; + + FREE_MSGBUF(&msgbuf); + + return tmp; +} + +int vnode_send_cmdstatus(int fd, int32_t cmdid, int32_t status) +{ + int tmp; + size_t offset = 0; + vnode_msgbuf_t msgbuf; + + if (vnode_initmsgbuf(&msgbuf)) + return -1; + +#define ADDTLV(t, l, vp) \ + do { \ + ssize_t tlvlen; \ + tlvlen = vnode_addtlv(&msgbuf, offset, t, l, vp); \ + if (tlvlen < 0) \ + { \ + WARNX("vnode_addtlv() failed"); \ + FREE_MSGBUF(&msgbuf); \ + return -1; \ + } \ + offset += tlvlen; \ + } while (0) + + ADDTLV(VNODE_TLV_CMDID, sizeof(cmdid), &cmdid); + ADDTLV(VNODE_TLV_CMDSTATUS, sizeof(status), &status); + +#undef ADDTLV + +#ifdef DEBUG + WARNX("sending cmd status on fd %d: cmdid %d; status %d", + fd, cmdid, status); +#endif + + msgbuf.msg->hdr.type = VNODE_MSG_CMDSTATUS; + msgbuf.msg->hdr.datalen = offset; + if (vnode_sendmsg(fd, &msgbuf) == vnode_msglen(&msgbuf)) + tmp = 0; + else + tmp = -1; + + FREE_MSGBUF(&msgbuf); + + return tmp; +} + +int vnode_send_cmdsignal(int fd, int32_t cmdid, int32_t signum) +{ + ssize_t tmp; + size_t offset = 0; + vnode_msgbuf_t msgbuf; + + if (vnode_initmsgbuf(&msgbuf)) + return -1; + +#define ADDTLV(t, l, vp) \ + do { \ + ssize_t tlvlen; \ + tlvlen = vnode_addtlv(&msgbuf, offset, t, l, vp); \ + if (tlvlen < 0) \ + { \ + WARNX("vnode_addtlv() failed"); \ + FREE_MSGBUF(&msgbuf); \ + return -1; \ + } \ + offset += tlvlen; \ + } while (0) + + ADDTLV(VNODE_TLV_CMDID, sizeof(cmdid), &cmdid); + ADDTLV(VNODE_TLV_SIGNUM, sizeof(signum), &signum); + +#undef ADDTLV + +#ifdef DEBUG + WARNX("sending cmd signal on fd %d: cmdid %d; signum %d", + fd, cmdid, signum); +#endif + + msgbuf.msg->hdr.type = VNODE_MSG_CMDSIGNAL; + msgbuf.msg->hdr.datalen = offset; + if (vnode_sendmsg(fd, &msgbuf) == vnode_msglen(&msgbuf)) + tmp = 0; + else + tmp = -1; + + FREE_MSGBUF(&msgbuf); + + return tmp; +} + +static int tlv_cmdsignal_cmdid(vnode_tlv_t *tlv, void *data) +{ + vnode_cmdsignal_t *cmdsignal = data; + int tmp; + + assert(tlv->type == VNODE_TLV_CMDID); + + tmp = tlv_int32(&cmdsignal->cmdid, tlv); + + if (tmp == 0 && verbose) + INFO("VNODE_TLV_CMDID: %d", cmdsignal->cmdid); + + return tmp; +} + +static int tlv_cmdsignal_signum(vnode_tlv_t *tlv, void *data) +{ + vnode_cmdsignal_t *cmdsignal = data; + int tmp; + + assert(tlv->type == VNODE_TLV_SIGNUM); + + tmp = tlv_int32(&cmdsignal->signum, tlv); + + if (tmp == 0 && verbose) + INFO("VNODE_TLV_SIGNUM: %d", cmdsignal->signum); + + return tmp; +} + +void vnode_recv_cmdsignal(vnode_msgio_t *msgio) +{ + vnode_cliententry_t *client = msgio->data; + vnode_cmdsignal_t cmdsignal = CMDSIGNAL_INIT; + static vnode_tlvhandler_t cmdsignal_tlvhandler[VNODE_TLV_MAX] = { + [VNODE_TLV_CMDID] = tlv_cmdsignal_cmdid, + [VNODE_TLV_SIGNUM] = tlv_cmdsignal_signum, + }; + vnode_cmdentry_t *cmd; + +#ifdef DEBUG + WARNX("command signal"); +#endif + + assert(msgio->msgbuf.msg->hdr.type == VNODE_MSG_CMDSIGNAL); + + if (vnode_parsemsg(msgio->msgbuf.msg, &cmdsignal, cmdsignal_tlvhandler)) + return; + + + TAILQ_FOREACH(cmd, &client->server->cmdlisthead, entries) + { + if (cmd->cmdid == cmdsignal.cmdid && cmd->data == client) + { + if (verbose) + INFO("sending pid %u signal %u", cmd->pid, cmdsignal.signum); + + if (kill(cmd->pid, cmdsignal.signum)) + WARN("kill() failed"); + + break; + } + } + + if (cmd == NULL) + WARNX("cmdid %d not found for client %p", cmdsignal.cmdid, client); + + return; +} + +static pid_t forkexec(vnode_cmdreq_t *cmdreq) +{ + pid_t pid; + + if (verbose) + INFO("spawning '%s'", cmdreq->cmdarg[0]); + + pid = fork(); + switch (pid) + { + case -1: + WARN("fork() failed"); + break; + + case 0: + /* child */ + if (setsid() == -1) + WARN("setsid() failed"); + +#define DUP2(oldfd, newfd) \ + do { \ + if (oldfd >= 0) \ + if (dup2(oldfd, newfd) < 0) \ + { \ + WARN("dup2() failed for " #newfd \ + ": oldfd: %d; newfd: %d", \ + oldfd, newfd); \ + _exit(1); \ + } \ + } while (0) + + DUP2(cmdreq->cmdio.infd, STDIN_FILENO); + DUP2(cmdreq->cmdio.outfd, STDOUT_FILENO); + DUP2(cmdreq->cmdio.errfd, STDERR_FILENO); + +#undef DUP2 + +#define CLOSE_IF_NOT(fd, notfd) \ + do { \ + if (fd >= 0 && fd != notfd) \ + close(fd); \ + } while (0) + + CLOSE_IF_NOT(cmdreq->cmdio.infd, STDIN_FILENO); + CLOSE_IF_NOT(cmdreq->cmdio.outfd, STDOUT_FILENO); + CLOSE_IF_NOT(cmdreq->cmdio.errfd, STDERR_FILENO); + +#undef CLOSE_IF_NOT + + if (clear_nonblock(STDIN_FILENO)) + WARN("clear_nonblock() failed"); + if (clear_nonblock(STDOUT_FILENO)) + WARN("clear_nonblock() failed"); + if (clear_nonblock(STDERR_FILENO)) + WARN("clear_nonblock() failed"); + + /* try to get a controlling terminal (don't steal a terminal and + ignore errors) */ + if (isatty(STDIN_FILENO)) + ioctl(STDIN_FILENO, TIOCSCTTY, 0); + else if (isatty(STDOUT_FILENO)) + ioctl(STDOUT_FILENO, TIOCSCTTY, 0); + + execvp(cmdreq->cmdarg[0], cmdreq->cmdarg); + WARN("execvp() failed for '%s'", cmdreq->cmdarg[0]); + _exit(1); + break; + + default: + /* parent */ + break; + } + +#define CLOSE(fd) \ + do { \ + if (fd >= 0) \ + close(fd); \ + } while (0) + + CLOSE(cmdreq->cmdio.infd); + CLOSE(cmdreq->cmdio.outfd); + CLOSE(cmdreq->cmdio.errfd); + +#undef CLOSE + + return pid; +} + +static void vnode_process_cmdreq(vnode_cliententry_t *client, + vnode_cmdreq_t *cmdreq) +{ + vnode_cmdentry_t *cmd = NULL; + + if ((cmd = malloc(sizeof(*cmd))) == NULL) + { + WARN("malloc() failed"); + return; + } + + cmd->cmdid = cmdreq->cmdid; + cmd->pid = -1; + cmd->status = -1; + cmd->data = client; + cmd->pid = forkexec(cmdreq); + + if (verbose) + INFO("cmd: '%s'; pid: %d; cmdid: %d; " + "infd: %d; outfd: %d; errfd: %d", + cmdreq->cmdarg[0], cmd->pid, cmd->cmdid, + cmdreq->cmdio.infd, cmdreq->cmdio.outfd, cmdreq->cmdio.errfd); + + if (vnode_send_cmdreqack(client->clientfd, cmd->cmdid, cmd->pid)) + { + WARNX("vnode_send_cmdreqack() failed"); + // XXX if (cmd->pid != -1) kill(cmd->pid, SIGKILL); ? + free(cmd); + return; + } + + if (cmd->pid == -1) + free(cmd); + else + { +#ifdef DEBUG + WARNX("adding pid %d to cmd list", cmd->pid); +#endif + TAILQ_INSERT_TAIL(&client->server->cmdlisthead, cmd, entries); + } + + return; +} diff --git a/daemon/src/vnode_cmd.h b/daemon/src/vnode_cmd.h new file mode 100644 index 00000000..1c947e00 --- /dev/null +++ b/daemon/src/vnode_cmd.h @@ -0,0 +1,71 @@ +/* + * CORE + * Copyright (c)2010-2012 the Boeing Company. + * See the LICENSE file included in this distribution. + * + * author: Tom Goff + * + * vnode_cmd.h + * + */ + +#ifndef _VNODE_CMD_H_ +#define _VNODE_CMD_H_ + +#include +#include + +#include "vnode_msg.h" + +typedef struct { + int infd; + int outfd; + int errfd; +} vnode_cmdio_t; + +typedef struct { + int32_t cmdid; + vnode_cmdio_t cmdio; + char *cmdarg[VNODE_ARGMAX]; +} vnode_cmdreq_t; + +#define CMDREQ_INIT {} + +typedef struct { + int32_t cmdid; + int32_t pid; +} vnode_cmdreqack_t; + +#define CMDREQACK_INIT {.cmdid = 0, .pid = -1} + +typedef struct { + int32_t cmdid; + int32_t status; +} vnode_cmdstatus_t; + +#define CMDSTATUS_INIT {.cmdid = 0, .status = -1} + +typedef struct { + int32_t cmdid; + int32_t signum; +} vnode_cmdsignal_t; + +#define CMDSIGNAL_INIT {.cmdid = 0, .signum = 0} + +typedef struct cmdentry { + TAILQ_ENTRY(cmdentry) entries; + + int32_t cmdid; + pid_t pid; + int status; + void *data; +} vnode_cmdentry_t; + +void vnode_recv_cmdreq(vnode_msgio_t *msgio); +int vnode_send_cmdreq(int fd, int32_t cmdid, char *argv[], + int infd, int outfd, int errfd); +int vnode_send_cmdstatus(int fd, int32_t cmdid, int32_t status); +int vnode_send_cmdsignal(int fd, int32_t cmdid, int32_t signum); +void vnode_recv_cmdsignal(vnode_msgio_t *msgio); + +#endif /* _VNODE_CMD_H_ */ diff --git a/daemon/src/vnode_io.c b/daemon/src/vnode_io.c new file mode 100644 index 00000000..d14ca5eb --- /dev/null +++ b/daemon/src/vnode_io.c @@ -0,0 +1,173 @@ +/* + * CORE + * Copyright (c)2010-2012 the Boeing Company. + * See the LICENSE file included in this distribution. + * + * author: Tom Goff + * + * vnode_io.c + * + */ + +#include +#include +#include +/* #define _XOPEN_SOURCE */ +#ifndef __USE_XOPEN +#define __USE_XOPEN +#endif +#include +#include +#include + +#include + +#include "myerr.h" +#include "vnode_chnl.h" +#include "vnode_io.h" + + +int set_nonblock(int fd) +{ + int fl, r = 0; + + if ((fl = fcntl(fd, F_GETFL)) == -1) + { + fl = 0; + r = -1; + } + if (fcntl(fd, F_SETFL, fl | O_NONBLOCK)) + r = -1; + + return r; +} + +int clear_nonblock(int fd) +{ + int fl, r = 0; + + if ((fl = fcntl(fd, F_GETFL)) == -1) + { + fl = 0; + r = -1; + } + if (fcntl(fd, F_SETFL, fl & ~O_NONBLOCK)) + r = -1; + + return r; +} + +int open_stdio_pty(stdio_pty_t *stdiopty) +{ + int masterfd, slavefd; + + INIT_STDIO_PTY(stdiopty); + + if ((masterfd = posix_openpt(O_RDWR | O_NOCTTY)) < 0) + { + WARN("posix_openpt() failed"); + return -1; + } + + if (grantpt(masterfd)) + { + WARN("grantpt() failed"); + close(masterfd); + return -1; + } + + if (unlockpt(masterfd)) + { + WARN("unlockpt() failed"); + close(masterfd); + return -1; + } + + if ((slavefd = open(ptsname(masterfd), O_RDWR | O_NOCTTY)) < 0) + { + WARN("open() failed"); + close(masterfd); + return -1; + } + + stdiopty->masterfd = masterfd; + stdiopty->slavefd = slavefd; + + return 0; +} + +void close_stdio_pty(stdio_pty_t *stdiopty) +{ + if (stdiopty->masterfd >= 0) + close(stdiopty->masterfd); + if (stdiopty->slavefd >= 0) + close(stdiopty->slavefd); + + INIT_STDIO_PTY(stdiopty); + + return; +} + +int open_stdio_pipe(stdio_pipe_t *stdiopipe) +{ + int infd[2], outfd[2], errfd[2]; + + INIT_STDIO_PIPE(stdiopipe); + + if (pipe(infd) < 0) + { + WARN("pipe() failed"); + return -1; + } + + if (pipe(outfd) < 0) + { + WARN("pipe() failed"); + close(infd[0]); + close(infd[1]); + return -1; + } + + if (pipe(errfd) < 0) + { + WARN("pipe() failed"); + close(infd[0]); + close(infd[1]); + close(outfd[0]); + close(outfd[1]); + return -1; + } + + stdiopipe->infd[0] = infd[0]; + stdiopipe->infd[1] = infd[1]; + + stdiopipe->outfd[0] = outfd[0]; + stdiopipe->outfd[1] = outfd[1]; + + stdiopipe->errfd[0] = errfd[0]; + stdiopipe->errfd[1] = errfd[1]; + + return 0; +} + +void close_stdio_pipe(stdio_pipe_t *stdiopipe) +{ + if (stdiopipe->infd[0] >= 0) + close(stdiopipe->infd[0]); + if (stdiopipe->infd[1] >= 0) + close(stdiopipe->infd[1]); + + if (stdiopipe->outfd[0] >= 0) + close(stdiopipe->outfd[0]); + if (stdiopipe->outfd[1] >= 0) + close(stdiopipe->outfd[1]); + + if (stdiopipe->errfd[0] >= 0) + close(stdiopipe->errfd[0]); + if (stdiopipe->errfd[1] >= 0) + close(stdiopipe->errfd[1]); + + INIT_STDIO_PIPE(stdiopipe); + + return; +} diff --git a/daemon/src/vnode_io.h b/daemon/src/vnode_io.h new file mode 100644 index 00000000..cc205697 --- /dev/null +++ b/daemon/src/vnode_io.h @@ -0,0 +1,61 @@ +/* + * CORE + * Copyright (c)2010-2012 the Boeing Company. + * See the LICENSE file included in this distribution. + * + * author: Tom Goff + * + * vnode_io.h + * + */ + +#ifndef _VNODE_IO_H_ +#define _VNODE_IO_H_ + +typedef struct { + int infd; + int outfd; + int errfd; +} stdio_fd_t; + +#define INIT_STDIO_FD(s) \ + do { \ + (s)->infd = -1; \ + (s)->outfd = -1; \ + (s)->errfd = -1; \ + } while (0) + +typedef struct { + int masterfd; + int slavefd; +} stdio_pty_t; + +#define INIT_STDIO_PTY(s) \ + do { \ + (s)->masterfd = -1; \ + (s)->slavefd = -1; \ + } while (0) + +typedef struct { + int infd[2]; + int outfd[2]; + int errfd[2]; +} stdio_pipe_t; + +#define INIT_STDIO_PIPE(s) \ + do { \ + (s)->infd[0] = (s)->infd[1] = -1; \ + (s)->outfd[0] = (s)->outfd[1] = -1; \ + (s)->errfd[0] = (s)->errfd[1] = -1; \ + } while (0) + +int set_nonblock(int fd); +int clear_nonblock(int fd); + +int open_stdio_pty(stdio_pty_t *stdiopty); +void close_stdio_pty(stdio_pty_t *stdiopty); + +int open_stdio_pipe(stdio_pipe_t *stdiopipe); +void close_stdio_pipe(stdio_pipe_t *stdiopipe); + +#endif /* _VNODE_IO_H_ */ diff --git a/daemon/src/vnode_msg.c b/daemon/src/vnode_msg.c new file mode 100644 index 00000000..91d8f3f0 --- /dev/null +++ b/daemon/src/vnode_msg.c @@ -0,0 +1,262 @@ +/* + * CORE + * Copyright (c)2010-2012 the Boeing Company. + * See the LICENSE file included in this distribution. + * + * author: Tom Goff + * + * vnode_msg.c + * + */ + +#include +#include +#include +#include + +#include + +#include "myerr.h" + +#include "vnode_msg.h" + + +static void vnode_msg_cb(struct ev_loop *loop, ev_io *w, int revents) +{ + vnode_msgio_t *msgio = w->data; + ssize_t tmp; + vnode_msghandler_t msghandlefn; + +#ifdef DEBUG + WARNX("new message on fd %d", msgio->fd); +#endif + + assert(msgio); + + tmp = vnode_recvmsg(msgio); + if (tmp == 0) + return; + else if (tmp < 0) + { + ev_io_stop(loop, w); + if (msgio->ioerror) + msgio->ioerror(msgio); + return; + } + + msghandlefn = msgio->msghandler[msgio->msgbuf.msg->hdr.type]; + if (!msghandlefn) + { + WARNX("no handler found for msg type %u from fd %d", + msgio->msgbuf.msg->hdr.type, msgio->fd); + return; + } + + msghandlefn(msgio); + + return; +} + +ssize_t vnode_sendmsg(int fd, vnode_msgbuf_t *msgbuf) +{ + struct msghdr msg = {}; + struct iovec iov[1]; + char buf[CMSG_SPACE(3 * sizeof(int))]; + + iov[0].iov_base = msgbuf->msg; + iov[0].iov_len = vnode_msglen(msgbuf); + msg.msg_iov = iov; + msg.msg_iovlen = 1; + + if (msgbuf->infd >= 0) + { + struct cmsghdr *cmsg; + int *fdptr; + + assert(msgbuf->outfd >= 0); + assert(msgbuf->errfd >= 0); + + msg.msg_control = buf; + msg.msg_controllen = sizeof(buf); + + cmsg = CMSG_FIRSTHDR(&msg); + cmsg->cmsg_level = SOL_SOCKET; + cmsg->cmsg_type = SCM_RIGHTS; + cmsg->cmsg_len = CMSG_LEN(3 * sizeof(int)); + + fdptr = (int *)CMSG_DATA(cmsg); + fdptr[0] = msgbuf->infd; + fdptr[1] = msgbuf->outfd; + fdptr[2] = msgbuf->errfd; + + msg.msg_controllen = cmsg->cmsg_len; + } + + return sendmsg(fd, &msg, 0); +} + +/* + * return the number of bytes received + * return 0 if the message should be ignored + * return a negative value if i/o should stop + */ +ssize_t vnode_recvmsg(vnode_msgio_t *msgio) +{ + ssize_t recvlen; + struct msghdr msg = {}; + struct iovec iov[1]; + char buf[CMSG_SPACE(3 * sizeof(int))]; + struct cmsghdr *cmsg; + + if (msgio->msgbuf.msgbufsize < VNODE_MSGSIZMAX) + { + if (vnode_resizemsgbuf(&msgio->msgbuf, VNODE_MSGSIZMAX)) + return -1; + } + + msgio->msgbuf.infd = msgio->msgbuf.outfd = msgio->msgbuf.errfd = -1; + + iov[0].iov_base = msgio->msgbuf.msg; + iov[0].iov_len = msgio->msgbuf.msgbufsize; + msg.msg_iov = iov; + msg.msg_iovlen = 1; + msg.msg_control = buf; + msg.msg_controllen = sizeof(buf); + + recvlen = recvmsg(msgio->fd, &msg, 0); + if (recvlen == 0) + return -1; + else if (recvlen < 0) + { + if (errno == EAGAIN) + return 0; + WARN("recvmsg() failed"); + return -1; + } + + cmsg = CMSG_FIRSTHDR(&msg); + if (cmsg != NULL && cmsg->cmsg_type == SCM_RIGHTS) + { + int *fdptr; + + fdptr = (int *)CMSG_DATA(cmsg); + msgio->msgbuf.infd = fdptr[0]; + msgio->msgbuf.outfd = fdptr[1]; + msgio->msgbuf.errfd = fdptr[2]; + } + + if (recvlen < sizeof(msgio->msgbuf.msg->hdr)) + { + WARNX("message header truncated: received %d of %d bytes", + recvlen, sizeof(msgio->msgbuf.msg->hdr)); + return 0; + } + + if (msgio->msgbuf.msg->hdr.type == VNODE_MSG_NONE || + msgio->msgbuf.msg->hdr.type >= VNODE_MSG_MAX) + { + WARNX("invalid message type: %u", msgio->msgbuf.msg->hdr.type); + return 0; + } + + if (recvlen - sizeof(msgio->msgbuf.msg->hdr) != + msgio->msgbuf.msg->hdr.datalen) + { + WARNX("message length mismatch: received %d bytes; expected %d bytes", + recvlen - sizeof(msgio->msgbuf.msg->hdr), + msgio->msgbuf.msg->hdr.datalen); + return 0; + } + + return recvlen; +} + +int vnode_msgiostart(vnode_msgio_t *msgio, struct ev_loop *loop, + int fd, void *data, vnode_msghandler_t ioerror, + const vnode_msghandler_t msghandler[VNODE_MSG_MAX]) +{ +#ifdef DEBUG + WARNX("starting message i/o for fd %d", fd); +#endif + + if (vnode_initmsgbuf(&msgio->msgbuf)) + return -1; + + msgio->loop = loop; + msgio->fd = fd; + msgio->fdwatcher.data = msgio; + ev_io_init(&msgio->fdwatcher, vnode_msg_cb, fd, EV_READ); + msgio->data = data; + msgio->ioerror = ioerror; + memcpy(msgio->msghandler, msghandler, sizeof(msgio->msghandler)); + + ev_io_start(msgio->loop, &msgio->fdwatcher); + + return 0; +} + +void vnode_msgiostop(vnode_msgio_t *msgio) +{ + ev_io_stop(msgio->loop, &msgio->fdwatcher); + FREE_MSGBUF(&msgio->msgbuf); + + return; +} + +int vnode_parsemsg(vnode_msg_t *msg, void *data, + const vnode_tlvhandler_t tlvhandler[VNODE_TLV_MAX]) +{ + size_t offset = 0; + vnode_tlv_t *tlv; + vnode_tlvhandler_t tlvhandlefn; + int tmp = -1; + + while (offset < msg->hdr.datalen) + { + tlv = (void *)msg->data + offset; + + offset += sizeof(*tlv) + tlv->vallen; + + if (tlv->vallen == 0 || offset > msg->hdr.datalen) + { + WARNX("invalid value length: %u", tlv->vallen); + continue; + } + + if ((tlvhandlefn = tlvhandler[tlv->type]) == NULL) + { + WARNX("unknown tlv type: %u", tlv->type); + continue; + } + + if ((tmp = tlvhandlefn(tlv, data))) + break; + } + + return tmp; +} + +ssize_t vnode_addtlv(vnode_msgbuf_t *msgbuf, size_t offset, + uint32_t type, uint32_t vallen, const void *valp) +{ + vnode_tlv_t *tlv; + size_t msglen, tlvlen; + + tlv = (void *)msgbuf->msg->data + offset; + msglen = (void *)tlv - (void *)msgbuf->msg; + tlvlen = sizeof(*tlv) + vallen; + + if (msglen + tlvlen > msgbuf->msgbufsize) + { + if (vnode_resizemsgbuf(msgbuf, msgbuf->msgbufsize + tlvlen)) + return -1; + else + tlv = (void *)msgbuf->msg->data + offset; + } + + tlv->type = type; + tlv->vallen = vallen; + memcpy(tlv->val, valp, vallen); + + return tlvlen; +} diff --git a/daemon/src/vnode_msg.h b/daemon/src/vnode_msg.h new file mode 100644 index 00000000..2142566c --- /dev/null +++ b/daemon/src/vnode_msg.h @@ -0,0 +1,148 @@ +/* + * CORE + * Copyright (c)2010-2012 the Boeing Company. + * See the LICENSE file included in this distribution. + * + * author: Tom Goff + * + * vnode_msg.h + * + */ + +#ifndef _VNODE_MSG_H_ +#define _VNODE_MSG_H_ + +#include +#include +#include +#include + +#include "myerr.h" + +typedef struct __attribute__ ((__packed__)) { + uint32_t type; + uint32_t vallen; + uint8_t val[]; +} vnode_tlv_t; + +typedef struct __attribute__ ((__packed__)) { + uint32_t type; + uint32_t datalen; +} vnode_msghdr_t; + +typedef struct __attribute__ ((__packed__)) { + vnode_msghdr_t hdr; + uint8_t data[]; +} vnode_msg_t; + +typedef enum { + VNODE_MSG_NONE = 0, + VNODE_MSG_CMDREQ, + VNODE_MSG_CMDREQACK, + VNODE_MSG_CMDSTATUS, + VNODE_MSG_CMDSIGNAL, + VNODE_MSG_MAX, +} vnode_msgtype_t; + +typedef enum { + VNODE_TLV_NONE = 0, + VNODE_TLV_CMDID, + VNODE_TLV_STDIN, + VNODE_TLV_STDOUT, + VNODE_TLV_STDERR, + VNODE_TLV_CMDARG, + VNODE_TLV_CMDPID, + VNODE_TLV_CMDSTATUS, + VNODE_TLV_SIGNUM, + VNODE_TLV_MAX, +} vnode_tlvtype_t; + +enum { + VNODE_ARGMAX = 1024, + VNODE_MSGSIZMAX = 65535, +}; + +typedef struct { + vnode_msg_t *msg; + size_t msgbufsize; + int infd; + int outfd; + int errfd; +} vnode_msgbuf_t; + +#define INIT_MSGBUF(msgbuf) \ + do { \ + (msgbuf)->msg = NULL; \ + (msgbuf)->msgbufsize = 0; \ + (msgbuf)->infd = -1; \ + (msgbuf)->outfd = -1; \ + (msgbuf)->errfd = -1; \ + } while (0) + +#define FREE_MSGBUF(msgbuf) \ + do { \ + if ((msgbuf)->msg) \ + free((msgbuf)->msg); \ + INIT_MSGBUF(msgbuf); \ + } while (0) + +struct vnode_msgio; +typedef void (*vnode_msghandler_t)(struct vnode_msgio *msgio); + +typedef struct vnode_msgio { + struct ev_loop *loop; + int fd; + ev_io fdwatcher; + vnode_msgbuf_t msgbuf; + void *data; + vnode_msghandler_t ioerror; + vnode_msghandler_t msghandler[VNODE_MSG_MAX]; +} vnode_msgio_t; + +typedef int (*vnode_tlvhandler_t)(vnode_tlv_t *tlv, void *data); + + +static inline void vnode_msgiohandler(vnode_msgio_t *msgio, + vnode_msgtype_t msgtype, + vnode_msghandler_t msghandlefn) +{ + msgio->msghandler[msgtype] = msghandlefn; + return; +} + +static inline int vnode_resizemsgbuf(vnode_msgbuf_t *msgbuf, size_t size) +{ + void *newbuf; + if ((newbuf = realloc(msgbuf->msg, size)) == NULL) + { + WARN("realloc() failed for size %u", size); + return -1; + } + msgbuf->msg = newbuf; + msgbuf->msgbufsize = size; + return 0; +} + +static inline int vnode_initmsgbuf(vnode_msgbuf_t *msgbuf) +{ + INIT_MSGBUF(msgbuf); + return vnode_resizemsgbuf(msgbuf, VNODE_MSGSIZMAX); +} + +#define vnode_msglen(msgbuf) \ + (sizeof(*(msgbuf)->msg) + (msgbuf)->msg->hdr.datalen) + +ssize_t vnode_sendmsg(int fd, vnode_msgbuf_t *msgbuf); +ssize_t vnode_recvmsg(vnode_msgio_t *msgio); + +int vnode_msgiostart(vnode_msgio_t *msgio, struct ev_loop *loop, + int fd, void *data, vnode_msghandler_t ioerror, + const vnode_msghandler_t msghandler[VNODE_MSG_MAX]); +void vnode_msgiostop(vnode_msgio_t *msgio); + +int vnode_parsemsg(vnode_msg_t *msg, void *data, + const vnode_tlvhandler_t tlvhandler[VNODE_TLV_MAX]); +ssize_t vnode_addtlv(vnode_msgbuf_t *msgbuf, size_t offset, + uint32_t type, uint32_t vallen, const void *valp); + +#endif /* _VNODE_MSG_H_ */ diff --git a/daemon/src/vnode_server.c b/daemon/src/vnode_server.c new file mode 100644 index 00000000..1e16e2d7 --- /dev/null +++ b/daemon/src/vnode_server.c @@ -0,0 +1,388 @@ +/* + * CORE + * Copyright (c)2010-2012 the Boeing Company. + * See the LICENSE file included in this distribution. + * + * author: Tom Goff + * + * vnode_server.c + * + */ + +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +#include "netns.h" +#include "myerr.h" +#include "vnode_msg.h" +#include "vnode_chnl.h" +#include "vnode_cmd.h" + +#include "vnode_server.h" + +extern int verbose; + +static vnode_cliententry_t *vnode_server_newclient(vnode_server_t *server, + int fd); +static void vnode_server_delclient(vnode_cliententry_t *client); + +static int cloexec(int fd) +{ + int fdflags; + + if ((fdflags = fcntl(fd, F_GETFD)) == -1) + fdflags = 0; + if (fcntl(fd, F_SETFD, fdflags | FD_CLOEXEC) == -1) + return -1; + + return 0; +} + +static void client_ioerror(vnode_msgio_t *msgio) +{ + vnode_cliententry_t *client = msgio->data; + + if (verbose) + INFO("i/o error for client fd %d; deleting client", client->msgio.fd); + + vnode_server_delclient(client); + + return; +} + +static vnode_cliententry_t *vnode_server_newclient(vnode_server_t *server, + int fd) +{ + vnode_cliententry_t *client; + vnode_msghandler_t msghandler[VNODE_MSG_MAX] = { + [VNODE_MSG_CMDREQ] = vnode_recv_cmdreq, + [VNODE_MSG_CMDSIGNAL] = vnode_recv_cmdsignal, + }; + +#ifdef DEBUG + WARNX("new client on fd %d", fd); +#endif + + cloexec(fd); + + if ((client = malloc(sizeof(*client))) == NULL) + { + WARN("malloc() failed"); + return NULL; + } + + client->server = server; + client->clientfd = fd; + + TAILQ_INSERT_TAIL(&server->clientlisthead, client, entries); + + if (vnode_msgiostart(&client->msgio, server->loop, + client->clientfd, client, client_ioerror, msghandler)) + { + WARNX("vnode_msgiostart() failed"); + free(client); + return NULL; + } + + return client; +} + +static void vnode_server_delclient(vnode_cliententry_t *client) +{ +#ifdef DEBUG + WARNX("deleting client for fds %d %d", client->clientfd, client->msgio.fd); +#endif + + TAILQ_REMOVE(&client->server->clientlisthead, client, entries); + vnode_msgiostop(&client->msgio); + close(client->clientfd); + memset(client, 0, sizeof(*client)); + free(client); + + return; +} + +/* XXX put this in vnode_cmd.c ?? */ +static void vnode_child_cb(struct ev_loop *loop, ev_child *w, int revents) +{ + vnode_server_t *server = w->data; + vnode_cmdentry_t *cmd; + char *how; + int status; + +#ifdef DEBUG + WARNX("child process %d exited with status 0x%x", w->rpid, w->rstatus); + if (WIFEXITED(w->rstatus)) + WARNX("normal terminataion status: %d", WEXITSTATUS(w->rstatus)); + else if (WIFSIGNALED(w->rstatus)) + WARNX("terminated by signal: %d", WTERMSIG(w->rstatus)); + else + WARNX("unexpected status: %d", w->rstatus); +#endif + + if (WIFEXITED(w->rstatus)) + { + how = "normally"; + status = WEXITSTATUS(w->rstatus); + } + else if (WIFSIGNALED(w->rstatus)) + { + how = "due to signal"; + status = WTERMSIG(w->rstatus); + } + else + { + how = "for unknown reason"; + status = w->rstatus; + } + + TAILQ_FOREACH(cmd, &server->cmdlisthead, entries) + { + if (cmd->pid == w->rpid) + { + vnode_cliententry_t *client = cmd->data; + +#ifdef DEBUG + WARNX("pid %d found in cmd list; removing", w->rpid); +#endif + + TAILQ_REMOVE(&server->cmdlisthead, cmd, entries); + + if (verbose) + INFO("cmd completed %s: pid: %d; cmdid: %d; status %d", + how, w->rpid, cmd->cmdid, status); + + if (vnode_send_cmdstatus(client->clientfd, cmd->cmdid, w->rstatus)) + WARNX("vnode_send_cmdstatus() failed"); + + free(cmd); + + return; + } + } + + WARNX("pid %d not found in client command list: " + "completed %s with status %d", w->rpid, how, status); + + return; +} + +static void vnode_server_cb(struct ev_loop *loop, ev_io *w, int revents) +{ + vnode_server_t *server = w->data; + int fd; + + for (;;) + { + fd = accept(server->serverfd, NULL, NULL); + if (fd < 0) + { + if (errno != EAGAIN) + WARN("accept() failed"); + break; + } + + if (vnode_server_newclient(server, fd) == NULL) + { + WARN("vnode_server_newclient() failed"); + close(fd); + } + } + + return; +} + +static vnode_server_t *vnode_newserver(struct ev_loop *loop, + int ctrlfd, const char *ctrlchnlname) +{ + vnode_server_t *server; + + if ((server = malloc(sizeof(*server))) == NULL) + { + WARN("malloc() failed"); + return NULL; + } + + TAILQ_INIT(&server->clientlisthead); + TAILQ_INIT(&server->cmdlisthead); + server->loop = loop; + + strncpy(server->ctrlchnlname, ctrlchnlname, sizeof(server->ctrlchnlname)); + server->ctrlchnlname[sizeof(server->ctrlchnlname) -1] = '\0'; + memset(server->pidfilename, 0, sizeof(server->pidfilename)); + server->serverfd = ctrlfd; + +#ifdef DEBUG + WARNX("adding vnode_child_cb for pid 0"); +#endif + + server->childwatcher.data = server; + ev_child_init(&server->childwatcher, vnode_child_cb, 0, 0); + ev_child_start(server->loop, &server->childwatcher); + +#ifdef DEBUG + WARNX("adding vnode_server_cb for fd %d", server->serverfd); +#endif + + server->fdwatcher.data = server; + ev_io_init(&server->fdwatcher, vnode_server_cb, server->serverfd, EV_READ); + ev_io_start(server->loop, &server->fdwatcher); + + return server; +} + +void vnode_delserver(vnode_server_t *server) +{ + unlink(server->ctrlchnlname); + if (server->pidfilename[0] != '\0') + { + unlink(server->pidfilename); + } + ev_io_stop(server->loop, &server->fdwatcher); + close(server->serverfd); + + ev_child_stop(server->loop, &server->childwatcher); + + while (!TAILQ_EMPTY(&server->clientlisthead)) + { + vnode_cliententry_t *client; + + client = TAILQ_FIRST(&server->clientlisthead); + TAILQ_REMOVE(&server->clientlisthead, client, entries); + vnode_server_delclient(client); + } + + while (!TAILQ_EMPTY(&server->cmdlisthead)) + { + vnode_cmdentry_t *cmd; + + cmd = TAILQ_FIRST(&server->cmdlisthead); + TAILQ_REMOVE(&server->cmdlisthead, cmd, entries); + free(cmd); + } + + memset(server, 0, sizeof(*server)); + free(server); + + return; +} + +vnode_server_t *vnoded(int newnetns, const char *ctrlchnlname, + const char *logfilename, const char *pidfilename, + const char *chdirname) +{ + int ctrlfd; + unsigned int i, openmax; + vnode_server_t *server; + pid_t pid; + + setsid(); + + if ((ctrlfd = vnode_listen(ctrlchnlname)) < 0) + { + WARNX("vnode_listen() failed for '%s'", ctrlchnlname); + return NULL; + } + cloexec(ctrlfd); + + if (newnetns) + { + pid = nsfork(0); + if (pid == -1) + { + WARN("nsfork() failed"); + close(ctrlfd); + unlink(ctrlchnlname); + return NULL; + } + } + else + { + pid = getpid(); + } + + if (pid) + { + printf("%u\n", pid); + fflush(stdout); + + if (pidfilename) + { + FILE *pidfile; + + pidfile = fopen(pidfilename, "w"); + if (pidfile != NULL) + { + fprintf(pidfile, "%u\n", pid); + fclose(pidfile); + } + else + { + WARN("fopen() failed for '%s'", pidfilename); + } + } + + if (newnetns) + _exit(0); /* nothing else for the parent to do */ + } + + /* try to close any open files */ + if ((openmax = sysconf(_SC_OPEN_MAX)) < 0) + openmax = 1024; + assert(openmax >= _POSIX_OPEN_MAX); + for (i = 3; i < openmax; i++) + if (i != ctrlfd) + close(i); + + if (!logfilename) + logfilename = "/dev/null"; + +#define DUPFILE(filename, mode, fileno) \ + do { \ + int fd; \ + if ((fd = open(filename, mode, 0644)) == -1) \ + WARN("open() failed for '%s'", filename); \ + else \ + { \ + if (dup2(fd, fileno) == -1) \ + WARN("dup2() failed for " #fileno); \ + close(fd); \ + } \ + } while (0); + + DUPFILE("/dev/null", O_RDONLY, STDIN_FILENO); + DUPFILE(logfilename, + O_WRONLY | O_CREAT | O_TRUNC | O_APPEND, STDOUT_FILENO); + DUPFILE(logfilename, + O_WRONLY | O_CREAT | O_TRUNC | O_APPEND, STDERR_FILENO); + +#undef DUPFILE + + setvbuf(stdout, NULL, _IOLBF, 0); + setvbuf(stderr, NULL, _IOLBF, 0); + + if (chdirname && chdir(chdirname)) + WARN("chdir() failed"); + + server = vnode_newserver(ev_default_loop(0), ctrlfd, ctrlchnlname); + if (!server) + { + close(ctrlfd); + unlink(ctrlchnlname); + } + if (pidfilename) + { + strncpy(server->pidfilename, pidfilename, sizeof(server->pidfilename)); + server->pidfilename[sizeof(server->pidfilename) -1] = '\0'; + } + + return server; +} diff --git a/daemon/src/vnode_server.h b/daemon/src/vnode_server.h new file mode 100644 index 00000000..50a277e9 --- /dev/null +++ b/daemon/src/vnode_server.h @@ -0,0 +1,45 @@ +/* + * CORE + * Copyright (c)2010-2012 the Boeing Company. + * See the LICENSE file included in this distribution. + * + * author: Tom Goff + * + * vnode_server.h + * + */ + +#ifndef _VNODE_SERVER_H_ +#define _VNODE_SERVER_H_ + +#include +#include + +#include + +#include "vnode_msg.h" + +typedef struct { + TAILQ_HEAD(clientlist, cliententry) clientlisthead; + TAILQ_HEAD(cmdlist, cmdentry) cmdlisthead; + struct ev_loop *loop; + char ctrlchnlname[PATH_MAX]; + char pidfilename[PATH_MAX]; + int serverfd; + ev_io fdwatcher; + ev_child childwatcher; +} vnode_server_t; + +typedef struct cliententry { + TAILQ_ENTRY(cliententry) entries; + + vnode_server_t *server; + int clientfd; + vnode_msgio_t msgio; +} vnode_cliententry_t; + +vnode_server_t *vnoded(int newnetns, const char *ctrlchnlname, + const char *logfilename, const char *pidfilename, + const char *chdirname); +void vnode_delserver(vnode_server_t *server); +#endif /* _VNODE_SERVER_H_ */ diff --git a/daemon/src/vnode_tlv.h b/daemon/src/vnode_tlv.h new file mode 100644 index 00000000..16b79081 --- /dev/null +++ b/daemon/src/vnode_tlv.h @@ -0,0 +1,41 @@ +/* + * CORE + * Copyright (c)2010-2012 the Boeing Company. + * See the LICENSE file included in this distribution. + * + * author: Tom Goff + * + * vnode_tlv.h + * + */ + +#ifndef _VNODE_TLV_H_ +#define _VNODE_TLV_H_ + +static inline int tlv_string(char **var, vnode_tlv_t *tlv) +{ + if (tlv->val[tlv->vallen - 1] != '\0') + { + WARNX("string not null-terminated"); + return -1; + } + + *var = (char *)tlv->val; + + return 0; +} + +static inline int tlv_int32(int32_t *var, vnode_tlv_t *tlv) +{ + if (tlv->vallen != sizeof(int32_t)) + { + WARNX("invalid value length for int32: %u", tlv->vallen); + return -1; + } + + *var = *(int32_t *)tlv->val; + + return 0; +} + +#endif /* _VNODE_TLV_H_ */ diff --git a/daemon/src/vnoded_main.c b/daemon/src/vnoded_main.c new file mode 100644 index 00000000..436fef6d --- /dev/null +++ b/daemon/src/vnoded_main.c @@ -0,0 +1,227 @@ +/* + * CORE + * Copyright (c)2010-2012 the Boeing Company. + * See the LICENSE file included in this distribution. + * + * author: Tom Goff + * + * vnoded_main.c + * + * vnoded daemon runs as PID 1 in the Linux namespace container and receives + * and executes commands via a control channel. + * + */ + +#include +#include +#include +#include +#include + +#include + +#include "version.h" +#include "vnode_server.h" +#include "myerr.h" + +int verbose; + +static vnode_server_t *vnodeserver; + +struct option longopts[] = +{ + {"version", no_argument, NULL, 'V'}, + {"help", no_argument, NULL, 'h'}, + { 0 } +}; + +static void usage(int status, char *fmt, ...) +{ + extern const char *__progname; + va_list ap; + FILE *output; + + va_start(ap, fmt); + + output = status ? stderr : stdout; + fprintf(output, "\n"); + if (fmt != NULL) + { + vfprintf(output, fmt, ap); + fprintf(output, "\n\n"); + } + fprintf(output, + "Usage: %s [-h|-V] [-v] [-n] [-C ] [-l ] " + "[-p ] -c \n\n" + "Linux namespace container server daemon runs as PID 1 in the " + "container. \nNormally this process is launched automatically by the " + "CORE daemon.\n\nOptions:\n" + " -h, --help show this help message and exit\n" + " -V, --version show version number and exit\n" + " -v enable verbose logging\n" + " -n do not create and run daemon within a new network namespace " + "(for debug)\n" + " -C change to the specified directory\n" + " -l log output to the specified file\n" + " -p write process id to the specified file\n" + " -c establish the specified for receiving " + "control commands\n", + __progname); + + va_end(ap); + + exit(0); +} + +static void sigexit(int signum) +{ + WARNX("exiting due to signal: %d", signum); + exit(0); + return; +} + +static void cleanup_sigchld(int signum) +{ + /* nothing */ +} + +static void cleanup() +{ + static int incleanup = 0; + + if (incleanup) + return; + incleanup = 1; + + if (vnodeserver) + { + struct ev_loop *loop = vnodeserver->loop; + vnode_delserver(vnodeserver); + if (loop) + ev_unloop(loop, EVUNLOOP_ALL); + } + + /* don't use SIG_IGN here because receiving SIGCHLD is needed to + * interrupt the sleep below in order to avoid long delays + */ + if (signal(SIGCHLD, cleanup_sigchld) == SIG_ERR) + WARN("signal() failed"); + + if (getpid() == 1) + { + struct timespec delay = { + .tv_sec = 2, + .tv_nsec = 0, + }; + + /* try to gracefully terminate all processes in this namespace + * first + */ + kill(-1, SIGTERM); + /* wait for child processes to terminate */ + for (;;) + { + pid_t pid; + int err; + struct timespec rem; + + pid = waitpid(-1, NULL, WNOHANG); + if (pid == -1) + break; /* an error occurred */ + if (pid != 0) + continue; /* a child was reaped */ + + err = nanosleep(&delay, &rem); + if (err == -1 && errno == EINTR) + { + delay = rem; + continue; + } + + /* force termination after delay */ + kill(-1, SIGKILL); + break; + } + } + + return; +} + +int main(int argc, char *argv[]) +{ + int newnetns = 1; + char *ctrlchnlname = NULL, *logfilename = NULL, *chdirname = NULL; + char *pidfilename = NULL; + extern const char *__progname; + + for (;;) + { + int opt; + + if ((opt = getopt_long(argc, argv, "c:C:l:nvVhp:", longopts, NULL)) == -1) + break; + + switch (opt) + { + case 'c': + ctrlchnlname = optarg; + break; + + case 'C': + chdirname = optarg; + break; + + case 'l': + logfilename = optarg; + break; + + case 'n': + newnetns = 0; + break; + + case 'p': + pidfilename = optarg; + break; + + case 'v': + verbose++; + break; + + case 'V': + printf("%s version %s\n", __progname, CORE_VERSION); + exit(0); + + case 'h': + /* pass through */ + default: + usage(0, NULL); + } + } + + argc -= optind; + argv += optind; + + if (ctrlchnlname == NULL) + usage(1, "no control channel given"); + + for (; argc; argc--, argv++) + WARNX("ignoring command line argument: '%s'", *argv); + + if (atexit(cleanup)) + ERR(1, "atexit() failed"); + + if (signal(SIGTERM, sigexit) == SIG_ERR) + ERR(1, "signal() failed"); + if (signal(SIGINT, sigexit) == SIG_ERR) + ERR(1, "signal() failed"); + /* XXX others? */ + + vnodeserver = vnoded(newnetns, ctrlchnlname, logfilename, pidfilename, + chdirname); + if (vnodeserver == NULL) + ERRX(1, "vnoded() failed"); + + ev_loop(vnodeserver->loop, 0); + + exit(0); +} diff --git a/doc/Makefile.am b/doc/Makefile.am new file mode 100644 index 00000000..76038877 --- /dev/null +++ b/doc/Makefile.am @@ -0,0 +1,159 @@ +# CORE +# (c)2009-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +# Builds html and pdf documentation using Sphinx. +# + +SUBDIRS = man figures + + +# extra cruft to remove +DISTCLEANFILES = Makefile.in stamp-vti + +rst_files = conf.py constants.txt credits.rst devguide.rst emane.rst \ + index.rst install.rst intro.rst machine.rst ns3.rst \ + performance.rst scripting.rst usage.rst + +EXTRA_DIST = $(rst_files) _build _static _templates + +# clean up dirs included by EXTRA_DIST +dist-hook: + rm -rf $(distdir)/_build/.svn $(distdir)/_static/.svn \ + $(distdir)/_templates/.svn + + +###### below this line was generated using sphinx-quickstart ###### + +# Makefile for Sphinx documentation +# + +# You can set these variables from the command line. +SPHINXOPTS = +SPHINXBUILD = sphinx-build +PAPER = +BUILDDIR = _build + +# Internal variables. +PAPEROPT_a4 = -D latex_paper_size=a4 +PAPEROPT_letter = -D latex_paper_size=letter +ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . + +.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest + +help: + @echo "Please use \`make ' where is one of" + @echo " html to make standalone HTML files" + @echo " dirhtml to make HTML files named index.html in directories" + @echo " singlehtml to make a single large HTML file" + @echo " pickle to make pickle files" + @echo " json to make JSON files" + @echo " htmlhelp to make HTML files and a HTML help project" + @echo " qthelp to make HTML files and a qthelp project" + @echo " devhelp to make HTML files and a Devhelp project" + @echo " epub to make an epub" + @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" + @echo " latexpdf to make LaTeX files and run them through pdflatex" + @echo " text to make text files" + @echo " man to make manual pages" + @echo " changes to make an overview of all changed/added/deprecated items" + @echo " linkcheck to check all external links for integrity" + @echo " doctest to run all doctests embedded in the documentation (if enabled)" + +clean: + -rm -rf $(BUILDDIR)/* + +html: + $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html + @echo + @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." + +dirhtml: + $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml + @echo + @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." + +singlehtml: + $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml + @echo + @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml." + +pickle: + $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle + @echo + @echo "Build finished; now you can process the pickle files." + +json: + $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json + @echo + @echo "Build finished; now you can process the JSON files." + +htmlhelp: + $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp + @echo + @echo "Build finished; now you can run HTML Help Workshop with the" \ + ".hhp project file in $(BUILDDIR)/htmlhelp." + +qthelp: + $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp + @echo + @echo "Build finished; now you can run "qcollectiongenerator" with the" \ + ".qhcp project file in $(BUILDDIR)/qthelp, like this:" + @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/CORE.qhcp" + @echo "To view the help file:" + @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/CORE.qhc" + +devhelp: + $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp + @echo + @echo "Build finished." + @echo "To view the help file:" + @echo "# mkdir -p $$HOME/.local/share/devhelp/CORE" + @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/CORE" + @echo "# devhelp" + +epub: + $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub + @echo + @echo "Build finished. The epub file is in $(BUILDDIR)/epub." + +latex: + $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex + @echo + @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex." + @echo "Run \`make' in that directory to run these through (pdf)latex" \ + "(use \`make latexpdf' here to do that automatically)." + +latexpdf: + $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex + @echo "Running LaTeX files through pdflatex..." + make -C $(BUILDDIR)/latex all-pdf + @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." + +text: + $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text + @echo + @echo "Build finished. The text files are in $(BUILDDIR)/text." + +man: + $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man + @echo + @echo "Build finished. The manual pages are in $(BUILDDIR)/man." + +changes: + $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes + @echo + @echo "The overview file is in $(BUILDDIR)/changes." + +linkcheck: + $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck + @echo + @echo "Link check complete; look for any errors in the above output " \ + "or in $(BUILDDIR)/linkcheck/output.txt." + +doctest: + $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest + @echo "Testing of doctests in the sources finished, look at the " \ + "results in $(BUILDDIR)/doctest/output.txt." diff --git a/doc/conf.py.in b/doc/conf.py.in new file mode 100644 index 00000000..a76eab0e --- /dev/null +++ b/doc/conf.py.in @@ -0,0 +1,256 @@ +# -*- coding: utf-8 -*- +# +# CORE documentation build configuration file, created by +# sphinx-quickstart on Wed Jun 13 10:44:22 2012. +# +# This file is execfile()d with the current directory set to its containing dir. +# +# Note that not all possible configuration values are present in this +# autogenerated file. +# +# All configuration values have a default; values that are commented out +# serve to show the default. + +import sys, os + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +#sys.path.insert(0, os.path.abspath('.')) + +# -- General configuration ----------------------------------------------------- + +# If your documentation needs a minimal Sphinx version, state it here. +#needs_sphinx = '1.0' + +# Add any Sphinx extension module names here, as strings. They can be extensions +# coming with Sphinx (named 'sphinx.ext.*') or your custom ones. +extensions = ['sphinx.ext.autodoc', 'sphinx.ext.todo', 'sphinx.ext.pngmath', 'sphinx.ext.ifconfig'] + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# The suffix of source filenames. +source_suffix = '.rst' + +# The encoding of source files. +#source_encoding = 'utf-8-sig' + +# The master toctree document. +master_doc = 'index' + +# General information about the project. +project = u'CORE' +copyright = u'2012, core-dev' + +# The version info for the project you're documenting, acts as replacement for +# |version| and |release|, also used in various other places throughout the +# built documents. +# +# The short X.Y version. +version = '@CORE_VERSION@' +# The full version, including alpha/beta/rc tags. +release = '@CORE_VERSION@' + +# The language for content autogenerated by Sphinx. Refer to documentation +# for a list of supported languages. +#language = None + +# There are two options for replacing |today|: either, you set today to some +# non-false value, then it is used: +#today = '' +# Else, today_fmt is used as the format for a strftime call. +#today_fmt = '%B %d, %Y' + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +exclude_patterns = ['_build'] + +# The reST default role (used for this markup: `text`) to use for all documents. +#default_role = None + +# If true, '()' will be appended to :func: etc. cross-reference text. +#add_function_parentheses = True + +# If true, the current module name will be prepended to all description +# unit titles (such as .. function::). +#add_module_names = True + +# If true, sectionauthor and moduleauthor directives will be shown in the +# output. They are ignored by default. +#show_authors = False + +# The name of the Pygments (syntax highlighting) style to use. +pygments_style = 'sphinx' + +# A list of ignored prefixes for module index sorting. +#modindex_common_prefix = [] + + +# -- Options for HTML output --------------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +html_theme = 'default' + +# Theme options are theme-specific and customize the look and feel of a theme +# further. For a list of options available for each theme, see the +# documentation. +#html_theme_options = {} + +# Add any paths that contain custom themes here, relative to this directory. +#html_theme_path = [] + +# The name for this set of Sphinx documents. If None, it defaults to +# " v documentation". +#html_title = None + +# A shorter title for the navigation bar. Default is the same as html_title. +#html_short_title = None + +# The name of an image file (relative to this directory) to place at the top +# of the sidebar. +#html_logo = None + +# The name of an image file (within the static path) to use as favicon of the +# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 +# pixels large. +#html_favicon = None + +# Add any paths that contain custom static files (such as style sheets) here, +# relative to this directory. They are copied after the builtin static files, +# so a file named "default.css" will overwrite the builtin "default.css". +html_static_path = ['_static'] + +# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, +# using the given strftime format. +#html_last_updated_fmt = '%b %d, %Y' + +# If true, SmartyPants will be used to convert quotes and dashes to +# typographically correct entities. +#html_use_smartypants = True + +# Custom sidebar templates, maps document names to template names. +#html_sidebars = {} + +# Additional templates that should be rendered to pages, maps page names to +# template names. +#html_additional_pages = {} + +# If false, no module index is generated. +#html_domain_indices = True + +# If false, no index is generated. +#html_use_index = True + +# If true, the index is split into individual pages for each letter. +#html_split_index = False + +# If true, links to the reST sources are added to the pages. +#html_show_sourcelink = True + +# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. +#html_show_sphinx = True + +# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. +#html_show_copyright = True + +# If true, an OpenSearch description file will be output, and all pages will +# contain a tag referring to it. The value of this option must be the +# base URL from which the finished HTML is served. +#html_use_opensearch = '' + +# This is the file name suffix for HTML files (e.g. ".xhtml"). +#html_file_suffix = None + +# Output file base name for HTML help builder. +htmlhelp_basename = 'COREdoc' + + +# -- Options for LaTeX output -------------------------------------------------- + +# The paper size ('letter' or 'a4'). +#latex_paper_size = 'letter' + +# The font size ('10pt', '11pt' or '12pt'). +#latex_font_size = '10pt' + +# Grouping the document tree into LaTeX files. List of tuples +# (source start file, target name, title, author, documentclass [howto/manual]). +latex_documents = [ + ('index', 'CORE.tex', u'CORE Documentation', + u'core-dev', 'manual'), +] + +# The name of an image file (relative to this directory) to place at the top of +# the title page. +#latex_logo = None + +# For "manual" documents, if this is true, then toplevel headings are parts, +# not chapters. +#latex_use_parts = False + +# If true, show page references after internal links. +#latex_show_pagerefs = False + +# If true, show URL addresses after external links. +#latex_show_urls = False + +# Additional stuff for the LaTeX preamble. +#latex_preamble = '' + +# Documents to append as an appendix to all manuals. +#latex_appendices = [] + +# If false, no module index is generated. +#latex_domain_indices = True + + +# -- Options for manual page output -------------------------------------------- + +# One entry per manual page. List of tuples +# (source start file, name, description, authors, manual section). +man_pages = [ + ('index', 'core', u'CORE Documentation', + [u'core-dev'], 1) +] + + +# -- Options for Epub output --------------------------------------------------- + +# Bibliographic Dublin Core info. +epub_title = u'CORE' +epub_author = u'core-dev' +epub_publisher = u'core-dev' +epub_copyright = u'2012, core-dev' + +# The language of the text. It defaults to the language option +# or en if the language is not set. +#epub_language = '' + +# The scheme of the identifier. Typical schemes are ISBN or URL. +#epub_scheme = '' + +# The unique identifier of the text. This can be a ISBN number +# or the project homepage. +#epub_identifier = '' + +# A unique identification for the text. +#epub_uid = '' + +# HTML files that should be inserted before the pages created by sphinx. +# The format is a list of tuples containing the path and title. +#epub_pre_files = [] + +# HTML files shat should be inserted after the pages created by sphinx. +# The format is a list of tuples containing the path and title. +#epub_post_files = [] + +# A list of files that should not be packed into the epub file. +#epub_exclude_files = [] + +# The depth of the table of contents in toc.ncx. +#epub_tocdepth = 3 + +# Allow duplicate toc entries. +#epub_tocdup = True diff --git a/doc/constants.txt b/doc/constants.txt new file mode 100644 index 00000000..aa3df9db --- /dev/null +++ b/doc/constants.txt @@ -0,0 +1,25 @@ +.. |UBUNTUVERSION| replace:: 12.04, 12.10, or 13.04 + +.. |FEDORAVERSION| replace:: 17, 18, or 19 + +.. |CENTOSVERSION| replace:: 6.x + +.. |BSDVERSION| replace:: 9.0 + +.. |CORERPM| replace:: 1.fc19.x86_64.rpm +.. |CORERPM2| replace:: 1.fc19.noarch.rpm +.. |COREDEB| replace:: 0ubuntu1_precise_amd64.deb +.. |COREDEB2| replace:: 0ubuntu1_precise_all.deb + +.. |QVER| replace:: quagga-0.99.21mr2.2 +.. |QVERDEB| replace:: quagga-mr_0.99.21mr2.2_amd64.deb +.. |QVERRPM| replace:: quagga-0.99.21mr2.2-1.fc16.x86_64.rpm + +.. |APTDEPS| replace:: bash bridge-utils ebtables iproute libev-dev python +.. |APTDEPS2| replace:: tcl8.5 tk8.5 libtk-img +.. |APTDEPS3| replace:: autoconf automake gcc libev-dev make python-dev libreadline-dev pkg-config imagemagick help2man + +.. |YUMDEPS| replace:: bash bridge-utils ebtables iproute libev python +.. |YUMDEPS2| replace:: tcl tk tkimg +.. |YUMDEPS3| replace:: autoconf automake make libev-devel python-devel ImageMagick help2man + diff --git a/doc/credits.rst b/doc/credits.rst new file mode 100644 index 00000000..ad10f8f9 --- /dev/null +++ b/doc/credits.rst @@ -0,0 +1,26 @@ +.. This file is part of the CORE Manual + (c)2012 the Boeing Company + +.. _Acknowledgements: + +*************** +Acknowledgments +*************** + +The CORE project was derived from the open source IMUNES project from the +University of Zagreb in 2004. In 2006, changes for CORE were released back to +that project, some items of which were adopted. Marko Zec is the +primary developer from the University of Zagreb responsible for the IMUNES +(GUI) and VirtNet (kernel) projects. Ana Kukec and Miljenko Mikuc are known +contributors. + +Jeff Ahrenholz has been the primary Boeing +developer of CORE, and has written this manual. Tom Goff + designed the Python framework and has made significant +contributions. Claudiu Danilov , Gary Pei +, Phil Spagnolo, and Ian Chakeres have contributed code +to CORE. Dan Mackley helped develop the CORE API, +originally to interface with a simulator. Jae Kim and +Tom Henderson have supervised the project and +provided direction. + diff --git a/doc/devguide.rst b/doc/devguide.rst new file mode 100644 index 00000000..2da93e01 --- /dev/null +++ b/doc/devguide.rst @@ -0,0 +1,331 @@ +.. This file is part of the CORE Manual + (c)2012-2013 the Boeing Company + +.. _Developer's_Guide: + +***************** +Developer's Guide +***************** + +This section contains advanced usage information, intended for developers and +others who are comfortable with the command line. + +.. _Coding_Standard: + +Coding Standard +=============== + +The coding standard and style guide for the CORE project are maintained online. +Please refer to the `coding standard +`_ posted on the CORE Wiki. + +.. _Source_Code_Guide: + +Source Code Guide +================= + +The CORE source consists of several different programming languages for +historical reasons. Current development focuses on the Python modules and +daemon. Here is a brief description of the source directories. + +These are being actively developed as of CORE |version|: + +* *gui* - Tcl/Tk GUI. This uses Tcl/Tk because of its roots with the IMUNES + project. +* *daemon* - Python modules are found in the :file:`daemon/core` directory, the + daemon under :file:`daemon/sbin/core-daemon`, and Python extension modules for + Linux Network Namespace support are in :file:`daemon/src`. +* *doc* - Documentation for the manual lives here in reStructuredText format. +* *packaging* - Control files and script for building CORE packages are here. + +These directories are not so actively developed: + +* *kernel* - patches and modules mostly related to FreeBSD. + +.. _The_CORE_API: + +The CORE API +============ + +.. index:: CORE; API + +.. index:: API + +.. index:: remote API + +The CORE API is used between different components of CORE for communication. +The GUI communicates with the CORE daemon using the API. One emulation server +communicates with another using the API. The API also allows other systems to +interact with the CORE emulation. The API allows another system to add, remove, +or modify nodes and links, and enables executing commands on the emulated +systems. On FreeBSD, the API is used for enhancing the wireless LAN +calculations. Wireless link parameters are updated on-the-fly based on node +positions. + +CORE listens on a local TCP port for API messages. The other system could be +software running locally or another machine accessible across the network. + +The CORE API is currently specified in a separate document, available from the +CORE website. + +.. _Linux_network_namespace_Commands: + +Linux network namespace Commands +================================ + +.. index:: lxctools + +Linux network namespace containers are often managed using the *Linux Container +Tools* or *lxc-tools* package. The lxc-tools website is available here +``_ for more information. CORE does not use these +management utilities, but includes its own set of tools for instantiating and +configuring network namespace containers. This section describes these tools. + +.. index:: vnoded + +The *vnoded* daemon is the program used to create a new namespace, and +listen on a control channel for commands that may instantiate other processes. +This daemon runs as PID 1 in the container. It is launched automatically by +the CORE daemon. The control channel is a UNIX domain socket usually named +:file:`/tmp/pycore.23098/n3`, for node 3 running on CORE +session 23098, for example. Root privileges are required for creating a new +namespace. + +.. index:: vcmd + +The *vcmd* program is used to connect to the *vnoded* daemon in a Linux network +namespace, for running commands in the namespace. The CORE daemon +uses the same channel for setting up a node and running processes within it. +This program has two +required arguments, the control channel name, and the command line to be run +within the namespace. This command does not need to run with root privileges. + +When you double-click +on a node in a running emulation, CORE will open a shell window for that node +using a command such as: +:: + + gnome-terminal -e vcmd -c /tmp/pycore.50160/n1 -- bash + + +Similarly, the IPv4 routes Observer Widget will run a command to display the routing table using a command such as: +:: + + vcmd -c /tmp/pycore.50160/n1 -- /sbin/ip -4 ro + + +.. index:: core-cleanup + +A script named *core-cleanup* is provided to clean up any running CORE +emulations. It will attempt to kill any remaining vnoded processes, kill any +EMANE processes, remove the :file:`/tmp/pycore.*` session directories, and +remove any bridges or *ebtables* rules. With a *-d* option, it will also kill +any running CORE daemon. + +.. index:: netns + +The *netns* command is not used by CORE directly. This utility can be used to +run a command in a new network namespace for testing purposes. It does not open +a control channel for receiving further commands. + +Here are some other Linux commands that are useful for managing the Linux +network namespace emulation. +:: + + # view the Linux bridging setup + brctl show + # view the netem rules used for applying link effects + tc qdisc show + # view the rules that make the wireless LAN work + ebtables -L + + +Below is a transcript of creating two emulated nodes and connecting them together with a wired link: + +.. index:: create nodes from command-line + +.. index:: command-line + +:: + + # create node 1 namespace container + vnoded -c /tmp/n1.ctl -l /tmp/n1.log -p /tmp/n1.pid + # create a virtual Ethernet (veth) pair, installing one end into node 1 + ip link add name n1.0.1 type veth peer name n1.0 + ip link set n1.0 netns `cat /tmp/n1.pid` + vcmd -c /tmp/n1.ctl -- ip link set n1.0 name eth0 + vcmd -c /tmp/n1.ctl -- ifconfig eth0 10.0.0.1/24 + + # create node 2 namespace container + vnoded -c /tmp/n2.ctl -l /tmp/n2.log -p /tmp/n2.pid + # create a virtual Ethernet (veth) pair, installing one end into node 2 + ip link add name n2.0.1 type veth peer name n2.0 + ip link set n2.0 netns `cat /tmp/n2.pid` + vcmd -c /tmp/n2.ctl -- ip link set n2.0 name eth0 + vcmd -c /tmp/n2.ctl -- ifconfig eth0 10.0.0.2/24 + + # bridge together nodes 1 and 2 using the other end of each veth pair + brctl addbr b.1.1 + brctl setfd b.1.1 0 + brctl addif b.1.1 n1.0.1 + brctl addif b.1.1 n2.0.1 + ip link set n1.0.1 up + ip link set n2.0.1 up + ip link set b.1.1 up + + # display connectivity and ping from node 1 to node 2 + brctl show + vcmd -c /tmp/n1.ctl -- ping 10.0.0.2 + + +The above example script can be found as :file:`twonodes.sh` in the +:file:`examples/netns` directory. Use *core-cleanup* to clean up after the +script. + +.. _FreeBSD_Commands: + +FreeBSD Commands +================ + + +.. index:: vimage +.. index:: ngctl +.. index:: Netgraph +.. _FreeBSD_Kernel_Commands: + +FreeBSD Kernel Commands +----------------------- + +The FreeBSD kernel emulation controlled by CORE is realized through several +userspace commands. The CORE GUI itself could be thought of as a glorified +script that dispatches these commands to build and manage the kernel emulation. + + +* **vimage** - the vimage command, short for "virtual image", is used to + create lightweight virtual machines and execute commands within the virtual + image context. On a FreeBSD CORE machine, see the *vimage(8)* man page for + complete details. The vimage command comes from the VirtNet project which + virtualizes the FreeBSD network stack. + + +* **ngctl** - the ngctl command, short for "netgraph control", creates + Netgraph nodes and hooks, connects them together, and allows for various + interactions with the Netgraph nodes. See the *ngctl(8)* man page for + complete details. The ngctl command is built-in to FreeBSD because the + Netgraph system is part of the kernel. + +Both commands must be run as root. +Some example usage of the *vimage* command follows below. +:: + + vimage # displays the current virtual image + vimage -l # lists running virtual images + vimage e0_n0 ps aux # list the processes running on node 0 + for i in 1 2 3 4 5 + do # execute a command on all nodes + vimage e0_n$i sysctl -w net.inet.ip.redirect=0 + done + + +The *ngctl* command is more complex, due to the variety of Netgraph nodes +available and each of their options. +:: + + ngctl l # list active Netgraph nodes + ngctl show e0_n8: # display node hook information + ngctl msg e0_n0-n1: getstats # get pkt count statistics from a pipe node + ngctl shutdown \\[0x0da3\\]: # shut down unnamed node using hex node ID + + +There are many other combinations of commands not shown here. See the online +manual (man) pages for complete details. + +Below is a transcript of creating two emulated nodes, `router0` and `router1`, +and connecting them together with a link: + +.. index:: create nodes from command-line + +.. index:: command-line + +:: + + # create node 0 + vimage -c e0_n0 + vimage e0_n0 hostname router0 + ngctl mkpeer eiface ether ether + vimage -i e0_n0 ngeth0 eth0 + vimage e0_n0 ifconfig eth0 link 40:00:aa:aa:00:00 + vimage e0_n0 ifconfig lo0 inet localhost + vimage e0_n0 sysctl net.inet.ip.forwarding=1 + vimage e0_n0 sysctl net.inet6.ip6.forwarding=1 + vimage e0_n0 ifconfig eth0 mtu 1500 + + # create node 1 + vimage -c e0_n1 + vimage e0_n1 hostname router1 + ngctl mkpeer eiface ether ether + vimage -i e0_n1 ngeth1 eth0 + vimage e0_n1 ifconfig eth0 link 40:00:aa:aa:0:1 + vimage e0_n1 ifconfig lo0 inet localhost + vimage e0_n1 sysctl net.inet.ip.forwarding=1 + vimage e0_n1 sysctl net.inet6.ip6.forwarding=1 + vimage e0_n1 ifconfig eth0 mtu 1500 + + # create a link between n0 and n1 + ngctl mkpeer eth0@e0_n0: pipe ether upper + ngctl name eth0@e0_n0:ether e0_n0-n1 + ngctl connect e0_n0-n1: eth0@e0_n1: lower ether + ngctl msg e0_n0-n1: setcfg \\ + {{ bandwidth=100000000 delay=0 upstream={ BER=0 dupl + icate=0 } downstream={ BER=0 duplicate=0 } }} + ngctl msg e0_n0-n1: setcfg {{ downstream={ fifo=1 } }} + ngctl msg e0_n0-n1: setcfg {{ downstream={ droptail=1 } }} + ngctl msg e0_n0-n1: setcfg {{ downstream={ queuelen=50 } }} + ngctl msg e0_n0-n1: setcfg {{ upstream={ fifo=1 } }} + ngctl msg e0_n0-n1: setcfg {{ upstream={ droptail=1 } }} + ngctl msg e0_n0-n1: setcfg {{ upstream={ queuelen=50 } }} + + +Other FreeBSD commands that may be of interest: +.. index:: FreeBSD commands + +* **kldstat**, **kldload**, **kldunload** - list, load, and unload + FreeBSD kernel modules +* **sysctl** - display and modify various pieces of kernel state +* **pkg_info**, **pkg_add**, **pkg_delete** - list, add, or remove + FreeBSD software packages. +* **vtysh** - start a Quagga CLI for router configuration + +Netgraph Nodes +-------------- + +.. index:: Netgraph + +.. index:: Netgraph nodes + +Each Netgraph node implements a protocol or processes data in some well-defined +manner (see the `netgraph(4)` man page). The netgraph source code is located +in `/usr/src/sys/netgraph`. There you might discover additional nodes that +implement some desired functionality, that have not yet been included in CORE. +Using certain kernel commands, you can likely include these types of nodes into +your CORE emulation. + +The following Netgraph nodes are used by CORE: + +* **ng_bridge** - switch node performs Ethernet bridging + +* **ng_cisco** - Cisco HDLC serial links + +* **ng_eiface** - virtual Ethernet interface that is assigned to each virtual machine + +* **ng_ether** - physical Ethernet devices, used by the RJ45 tool + +* **ng_hub** - hub node + +* **ng_pipe** - used for wired Ethernet links, imposes packet delay, bandwidth restrictions, and other link characteristics + +* **ng_socket** - socket used by *ngctl* utility + +* **ng_wlan** - wireless LAN node + + diff --git a/doc/emane.rst b/doc/emane.rst new file mode 100644 index 00000000..f503e070 --- /dev/null +++ b/doc/emane.rst @@ -0,0 +1,293 @@ +.. This file is part of the CORE Manual + (c)2012 the Boeing Company + +.. _EMANE: + +***** +EMANE +***** + +.. index:: EMANE + +This chapter describes running CORE with the EMANE emulator. + +.. _What_is_EMANE?: + +What is EMANE? +============== + +.. index:: EMANE; introduction to + +The Extendable Mobile Ad-hoc Network Emulator (EMANE) allows heterogeneous +network emulation using a pluggable MAC and PHY layer architecture. The EMANE +framework provides an implementation architecture for modeling different radio +interface types in the form of *Network Emulation Modules* (NEMs) and +incorporating these modules into a real-time emulation running in a distributed +environment. + +EMANE is developed by U.S. Naval Research Labs (NRL) Code 5522 and Adjacent +Link LLC, +who maintain these websites: + +* ``_ +* ``_ +* ``_ (former EMANE project home) + +Instead of building Linux Ethernet bridging networks with CORE, higher-fidelity +wireless networks can be emulated using EMANE bound to virtual devices. CORE +emulates layers 3 and above (network, session, application) with its virtual +network stacks and process space for protocols and applications, while EMANE +emulates layers 1 and 2 (physical and data link) using its pluggable PHY and +MAC models. + +The interface between CORE and EMANE is a TAP device. CORE builds the virtual +node using Linux network namespaces, and installs the TAP device into the +namespace. EMANE binds a userspace socket to the device, on the host before it +is pushed into the namespace, for sending and receiving data. The *Virtual +Transport* is the EMANE component responsible for connecting with the TAP +device. + +EMANE models are configured through CORE's WLAN configuration dialog. A +corresponding EmaneModel Python class is sub-classed for each supported EMANE +model, to provide configuration items and their mapping to XML files. This way +new models can be easily supported. When CORE starts the emulation, it +generates the appropriate XML files that specify the EMANE NEM configuration, +and launches the EMANE daemons. + +Some EMANE models support location information to determine when packets should +be dropped. EMANE has an event system where location events are broadcast to +all NEMs. CORE can generate these location events when nodes are moved on the +canvas. The canvas size and scale dialog has controls for mapping the X,Y +coordinate system to a latitude, longitude geographic system that EMANE uses. +When specified in the :file:`core.conf` configuration file, CORE can also +subscribe to EMANE location events and move the nodes on the canvas as they are +moved in the EMANE emulation. This would occur when an Emulation Script +Generator, for example, is running a mobility script. + +.. index:: EMANE; Configuration + +.. index:: EMANE; Installation + +.. _EMANE_Configuration: + +EMANE Configuration +=================== + + +CORE and EMANE currently work together only on the Linux network namespaces +platform. The normal CORE installation instructions should be followed from +:ref:`Installation`. + +The CORE configuration file :file:`/etc/core/core.conf` has options specific to +EMANE. Namely, the `emane_models` line contains a comma-separated list of EMANE +models that will be available. Each model has a corresponding Python file +containing the *EmaneModel* subclass. A portion of the default +:file:`core.conf` file is shown below: + +:: + + # EMANE configuration + emane_platform_port = 8101 + emane_transform_port = 8201 + emane_event_monitor = False + emane_models = RfPipe, Ieee80211abg + + +EMANE can be installed from deb or RPM packages or from source. See the +`EMANE website `_ for +full details. + +Here are quick instructions for installing all EMANE packages: + +:: + + # install dependencies + sudo apt-get install libssl-dev libxml-lixbml-perl libxml-simple-perl + # download and install EMANE 0.8.1 + export URL=http://labs.cengen.com/emane/download/deb/ubuntu-12_04 + wget $URL/0.8.1/amd64/emane-bundle-0.8.1.amd64.tgz + mkdir emane-0.8.1 + cd emane-0.8.1 + tar xzf ../emane-bundle-0.8.1.amd64.tgz + sudo dpkg -i *.deb + + +If you have an EMANE event generator (e.g. mobility or pathloss scripts) and +want to have CORE subscribe to EMANE location events, set the following line in +the :file:`/etc/core/core.conf` configuration file: +:: + + emane_event_monitor = True + +Do not set the above option to True if you want to manually drag nodes around +on the canvas to update their location in EMANE. + +Another common issue is if installing EMANE from source, the default configure +prefix will place the DTD files in :file:`/usr/local/share/emane/dtd` while +CORE expects them in :file:`/usr/share/emane/dtd`. A symbolic link will fix +this: +:: + + sudo ln -s /usr/local/share/emane /usr/share/emane + + +.. _Single_PC_with_EMANE: + +Single PC with EMANE +==================== + +This section describes running CORE and EMANE on a single machine. This is the +default mode of operation when building an EMANE network with CORE. The OTA +manager interface is off and the virtual nodes use the loopback device for +communicating with one another. This prevents your emulation session from +sending data on your local network and interfering with other EMANE users. + +EMANE is configured through a WLAN node, because it is all about emulating +wireless radio networks. Once a node is linked to a WLAN cloud configured with +an EMANE model, the radio interface on that node may also be configured +separately (apart from the cloud.) + +Double-click on a WLAN node to invoke the WLAN configuration dialog. Click the +*EMANE* tab; when EMANE has +been properly installed, EMANE wireless modules should be listed in the +*EMANE Models* list. (You may need to restart the CORE daemon if +it was running prior to installing the EMANE Python bindings.) +Click on a model name to enable it. + +When an EMANE model is selected in the *EMANE Models* list, clicking on +the *model options* button causes the GUI to query the CORE daemon for +configuration items. Each model will have different parameters, refer to the +EMANE documentation for an explanation of each item. The defaults values are +presented in the dialog. Clicking *Apply* and *Apply* again will store +the EMANE model selections. + +The *EMANE options* button +allows specifying some global parameters for EMANE, some of +which are necessary for distributed operation, see :ref:`Distributed_EMANE`. + +.. index:: RF-PIPE model + +.. index:: 802.11 model + +.. index:: ieee80211abg model + +.. index:: geographic location + +.. index:: Universal PHY + +The RF-PIPE and IEEE 802.11abg models use a Universal PHY that supports +geographic location information for determining pathloss between nodes. A +default latitude and longitude location is provided by CORE and this +location-based pathloss is enabled by default; this is the *pathloss mode* +setting for the Universal PHY. Moving a node on the canvas while the emulation +is running generates location events for EMANE. To view or change the +geographic location or scale of the canvas use the *Canvas Size and Scale* +dialog available from the *Canvas* menu. + +Clicking the green *Start* button launches the emulation and causes TAP +devices to be created in the virtual nodes that are linked to the EMANE WLAN. +These devices appear with interface names such as eth0, eth1, etc. The EMANE +daemons should now be running on the host: +:: + + > ps -aef | grep emane + root 10472 1 1 12:57 ? 00:00:00 emane --logl 0 platform.xml + root 10526 1 1 12:57 ? 00:00:00 emanetransportd --logl 0 tr + +The above example shows the *emane* and *emanetransportd* daemons started by +CORE. To view the configuration generated by CORE, look in the +:file:`/tmp/pycore.nnnnn/` session directory for a :file:`platform.xml` file +and other XML files. One easy way to view this information is by +double-clicking one of the virtual nodes, and typing *cd ..* in the shell to go +up to the session directory. + +When EMANE is used to network together CORE nodes, no Ethernet bridging device +is used. The Virtual Transport creates a TAP device that is installed into the +network namespace container, so no corresponding device is visible on the host. + +.. index:: Distributed_EMANE +.. _Distributed_EMANE: + +Distributed EMANE +================= + + +Running CORE and EMANE distributed among two or more emulation servers is +similar to running on a single machine. There are a few key configuration items +that need to be set in order to be successful, and those are outlined here. + +Because EMANE uses a multicast channel to disseminate data to all NEMs, it is +a good idea to maintain separate networks for data and control. The control +network may be a shared laboratory network, for example, but you do not want +multicast traffic on the data network to interfere with other EMANE users. +The examples described here will use *eth0* as a control interface +and *eth1* as a data interface, although using separate interfaces +is not strictly required. Note that these interface names refer to interfaces +present on the host machine, not virtual interfaces within a node. + +Each machine that will act as an emulation server needs to have CORE and EMANE +installed. Refer to the :ref:`Distributed_Emulation` section for configuring +CORE. + +The IP addresses of the available servers are configured from the +CORE emulation servers dialog box (choose *Session* then +*Emulation servers...*) described in :ref:`Distributed_Emulation`. +This list of servers is stored in a :file:`~/.core/servers.conf` file. +The dialog shows available servers, some or all of which may be +assigned to nodes on the canvas. + +Nodes need to be assigned to emulation servers as described in +:ref:`Distributed_Emulation`. Select several nodes, right-click them, and +choose *Assign to* and the name of the desired server. When a node is not +assigned to any emulation server, it will be emulated locally. The local +machine that the GUI connects with is considered the "master" machine, which in +turn connects to the other emulation server "slaves". Public key SSH should +be configured from the master to the slaves as mentioned in the +:ref:`Distributed_Emulation` section. + +The EMANE models can be configured as described in :ref:`Single_PC_with_EMANE`. +Under the *EMANE* tab of the EMANE WLAN, click on the *EMANE options* button. +This brings +up the emane configuration dialog. The *enable OTA Manager channel* should +be set to *on*. The *OTA Manager device* and *Event Service device* should +be set to something other than the loopback *lo* device. For example, if eth0 +is your control device and eth1 is for data, set the OTA Manager device to eth1 +and the Event Service device to eth0. Click *Apply* to +save these settings. + +.. HINT:: + Here is a quick checklist for distributed emulation with EMANE. + + 1. Follow the steps outlined for normal CORE :ref:`Distributed_Emulation`. + 2. Under the *EMANE* tab of the EMANE WLAN, click on *EMANE options*. + 3. Turn on the *OTA Manager channel* and set the *OTA Manager device*. + Also set the *Event Service device*. + 4. Select groups of nodes, right-click them, and assign them to servers + using the *Assign to* menu. + 5. Synchronize your machine's clocks prior to starting the emulation, + using ``ntp`` or ``ptp``. Some EMANE models are sensitive to timing. + 6. Press the *Start* button to launch the distributed emulation. + + +Now when the Start button is used to instantiate the emulation, +the local CORE Python +daemon will connect to other emulation servers that have been assigned to nodes. +Each server will have its own session directory where the :file:`platform.xml` +file and other EMANE XML files are generated. The NEM IDs are automatically +coordinated across servers so there is no overlap. Each server also gets its +own Platform ID. + +Instead of using the loopback device for disseminating multicast +EMANE events, an Ethernet device is used as specified in the +*configure emane* dialog. +EMANE's Event Service can be run with mobility or pathloss scripts +as described in +:ref:`Single_PC_with_EMANE`. If CORE is not subscribed to location events, it +will generate them as nodes are moved on the canvas. + +Double-clicking on a node during runtime will cause the GUI to attempt to SSH +to the emulation server for that node and run an interactive shell. The public +key SSH configuration should be tested with all emulation servers prior to +starting the emulation. + + diff --git a/doc/figures/Makefile.am b/doc/figures/Makefile.am new file mode 100644 index 00000000..db0b6a1a --- /dev/null +++ b/doc/figures/Makefile.am @@ -0,0 +1,54 @@ +# CORE +# (c)2009-2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +# + +# define new file extensions for handling figures and html +SUFFIXES = .jpg .gif +GIFTOJPG = convert -background white -flatten + +# dia figures can be manually converted to jpg +# On Ubuntu 11.10, this is failing for some reason. +DIATOJPG = dia -t jpg -e + + +# these are file extension handlers for automatically converting between image +# file types; the .jpg files are built from .gif files from the GUI + +# file extension handler to convert .gif to .jpg +%.jpg: %.gif + $(GIFTOJPG) $(top_srcdir)/gui/icons/tiny/$< $@ + +# file extension handler so we can list .gif as dependency for .gif.jpg +%.gif: + @echo "Using GUI file $(top_srcdir)/gui/icons/tiny/$@" + + +# list of base names for figures +figures = core-architecture core-workflow +# list of figures + dia suffix +figures_dia = $(figures:%=%.dia) +# list of figure + jpg suffix +figures_jpg = $(figures:%=%.jpg) + +# icons from the GUI source +icons = select start router host pc mdr router_green \ + lanswitch hub wlan \ + link rj45 tunnel marker oval rectangle text \ + stop observe plot twonode run document-properties +# list of icons + .gif.jpg suffix +icons_jpg = $(icons:%=%.jpg) + +BUILT_SOURCES = $(figures_dia) $(figures_jpg) $(icons_jpg) + +clean-local: + rm -f $(icons_jpg) + +EXTRA_DIST = $(figures_dia) $(figures_jpg) + +# extra cruft to remove +DISTCLEANFILES = Makefile.in $(icons_jpg) + diff --git a/doc/figures/core-architecture.dia b/doc/figures/core-architecture.dia new file mode 100644 index 0000000000000000000000000000000000000000..f810711d5ea92ffafc523ec9f385596fe7d4aee0 GIT binary patch literal 1829 zcmV+=2io`_iwFP!000021MOUGZ`(Ey{_bBPsKC$xiY!tRB{fZowOF?T#ae9XXM?sF zTZ>*iijL!b*l!;xJFzWGaV&{y6Hq{mSU%m6C-Qmjbfn(CyGvs2me4%P(hD7!madU> zl7&$^z0kj1eLVB^cb9{=VT9lCzbVCu#;-_o@$EvNF*biQ94?njGhXGGWz>wLg_)D# ze>jfukP8j<%YmltDhM&d;@sveW{gJT1tVID6LO)C@#JPovqc)}YpIRgB#Seu-QxH{ ze|23P`f#IWxToh4-E%x8V@mK%y=sdeLC{3?oY1n`WS->_7h$XUfk=%W@wp?jk;=JH zI=y`LnJ`A^t97$BC%5{l8e40KC74d5^w1XfPrP;pG+jFo2LirpThO!b{c^gwalhu` ze$CN-%|-cWo>4||#12i4vn(b!U0Y>zL7LmiCphLq?6Gcv=Gw0##KI2xX?==T2Gj!&}j-(<0#2X=db(=||AMBva?< zB0S!cD@D`4efuD(m9Bc8!xLUhziaG}pD9 ztps#()LUQrJBe=zizav%;ZJYD!KAF3^(KJ6I2_k;Y!AAqoy~nXt^zS+I3@)AXlJNA zOKY<^%W7wchrrV`A=NjNq>H2?dU-51cGOce$_q^gd}Rlh%p1{NWKrAYL- zljsfMUWx~|5oHUGnEztNF-S3~{0tSM;;FA9(|*X*X-lS1GMU01GPV05Q>e&Pk*Oln z?#OgZqj1Xq(|*Fq{CqIycZD!5!D%!%6{kw(RH!($Q%?Phvr~v^$SL)6l#&Wgbz3K> zmLc=0Z(t(dhXyiz581&vuuK~O-vDB4+NdcIrs;^JVbP1H_pS2x-I01q8~D(e%*&>$ zmJObwRFtNU^CH~vA`E;B+OTQ(kTV{ujWDIzvTSWT@a@*RM=?pKM>-Ugj`l{6JFy#^ zd=yG@;e+P>9Jn>vx%;{SJJcHNY}0SEmgA|9Ma ztdIhx=X%iKcpO+3QW&T(P+{P+z(B7x26_g^2&n+bAqcuqm;pTaI|rT##224OezMW8 z+_?%7$Fv;ZZ{dXJk9%s$o@7xBKR(3yJj@TCV%-0t&G^jSWcn-OU9 zi^2WH_Ws2H9d4K@wW%9;@w6@2ZGi$6;91aW=+L1ePp|Q+L(SI7AXMnVBa+$r(w$ilILrwcNGFW0YZ+b`S8}g z{5XyUDtiz-gBr#kSxEBlSgi05 ziWO&H#&Pt|{=WSevk>55EWU)2g(ab6QMaYLXi{^!?+BDy?wIw);S6rf~tW(=MW zCK0yG=#7G<-fF2x!O}~BrPlj$Y$K4lEywT$82O?`VFb?ui#~k$^H=Scub;F}Uq2{3 z>IskbhM|I@9}bG1u<73JV2dD-zD3a5ZV?1X^76~(9a5_=yIg%qg6nG%sMVLxef6c- zaUW_SCP|jwZwl1Jy-}~R>1T7GtyW+5xcU;b-qK)00|MEvgM-%2jt0<}QlI?Pz0|47 zm&W~Y>n;nVs1MPcUdlPZZNEpx^d(nxpo#V>I#8@3>#d?w?q8*dr)oN3B{GDE%pl3aMND#)8AvZCK$RLaO%2xHiWhP literal 0 HcmV?d00001 diff --git a/doc/figures/core-architecture.jpg b/doc/figures/core-architecture.jpg new file mode 100644 index 0000000000000000000000000000000000000000..fba2bf306c6bd1ee49ca239dc8003690e0dac289 GIT binary patch literal 38352 zcmd?R1z23omM+``f`kBp;2vlK!QG)l2p&ARyEg8UMuIy82p%lBySoP`xVu{jPWSDc zGc)IWx&O@hX6DX3^FPx()y=Nnd+n;#wQ8;P)>|7k3tI&|lNOf}2OuB-00{6u0Bivu z3P43hMnQgzih_cIhKBm&DK5rSbo8f0IM1iO$7P5q5%q(JubU%OeQMzn~DxRrSVfBhoOTX+7o;NLLy?Cm$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4ntzK#vp1m&})15%p~crlyfdv0|_osUld><_TfYhA0|@mOE$>b2e+ z{}L{B?a)*9QdfJatG(3KCgZ)`WIUJZ^`|{mX)ksC9GAN8V^EzBdU*qEG%w=H)5Hnu ztcak>FTCWN@jG&+amRgy0Xfy^%byCS5;4^q9X1P=4(hZzt?)#0? zTa;WnslH>FmrXYhfyet;+N`?sWz}ih_FYg*Eo_^LwDkk_7kKO+d)+TxH=VUefzwsgjzm$2Zjk5FI&l%>i#Qfh-~7k{ z9+*^%`SU5pl<^sOltE83HfPQxhy)sEx!XB^b;ft&I0|i|#6=Rf&b+ODU;R|?U2pBT QeD8Yy2Uj&j#`Avw02mi>T>t<8 literal 0 HcmV?d00001 diff --git a/doc/figures/core-workflow.jpg b/doc/figures/core-workflow.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b60eff7dd43bd451c4510912043d5cfcc0622904 GIT binary patch literal 21243 zcmdqJ1yo$!wl27Fhd|I!c;W6=SP}??1P$))?gWAb4X(in?(XjH9^478!9t)b=iGDq zPu{t=|M$kYJ$iI87RA~nd#|;pe)F3=&OfdJPhLw%NdPb~000C10Uj5D7XUIMA`&73 zG7=IJ3JNkRIxYq}8X7tg&QmO0l4oS3B+oz~axe=mIVBSn2t>zA&&0;g#l=NN%P+*o z0b$|f;`sF?FeoS}=xFGK7#M^c6d($Y|LwM!B7IQ*f4O|Fpu2;8T2|4 zVE*v{{^J1y3kQ#Yh=h!SiUxf{%@Y6?1`ZAu9u5Hk9v=E`Pw49aJT?Lj1-lsHQ+Yik zN;_N*pQta$RL?6q@DwIa!JPW`z9^{p1cXG-sA*{F=oz@Ud3gEw1zx-qmv|*9^;+?r zlCp}bn!16Zk+F%XnYn|ble3Gfo4emf|A4@t;E?E;*tqzF&xuKyS=l+cdHDr}l~vU> zwRQCkjh$WHJ-vPX1A~)O(=)Sk^IsR%H#WDncXq$+?Vp`rTzjE8c*zgDx?1(sG@<@7iPboQkka3?!eW~a`q2g3H z#nZQ+K*a}hty7=9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index.rst @@ -0,0 +1,32 @@ +.. This file is part of the CORE Manual + (c)2012 the Boeing Company + +.. only:: html or latex + +CORE Manual +=========== + + +.. toctree:: + :maxdepth: 2 + :numbered: + + intro + install + usage + scripting + machine + emane + ns3 + performance + devguide + credits + +Indices and tables +================== + +.. only:: html + + * :ref:`genindex` + * :ref:`search` + diff --git a/doc/install.rst b/doc/install.rst new file mode 100644 index 00000000..46b8bdf8 --- /dev/null +++ b/doc/install.rst @@ -0,0 +1,756 @@ +.. This file is part of the CORE Manual + (c)2012-2013 the Boeing Company + +.. include:: constants.txt + +.. _Installation: + +************ +Installation +************ + +This chapter describes how to set up a CORE machine. Note that the easiest +way to install CORE is using a binary +package on Ubuntu or Fedora (deb or rpm) using the distribution's package +manager +to automatically install dependencies, see :ref:`Installing_from_Packages`. + +Ubuntu and Fedora Linux are the recommended distributions for running CORE. Ubuntu |UBUNTUVERSION| and Fedora |FEDORAVERSION| ship with kernels with support for namespaces built-in. They support the latest hardware. However, +these distributions are not strictly required. CORE will likely work on other +flavors of Linux, see :ref:`Installing_from_Source`. + +The primary dependencies are Tcl/Tk (8.5 or newer) for the GUI, and Python 2.6 or 2.7 for the CORE daemon. + +.. index:: install locations +.. index:: paths +.. index:: install paths + +CORE files are installed to the following directories. When installing from +source, the :file:`/usr/local` prefix is used in place of :file:`/usr` by +default. + +============================================= ================================= +Install Path Description +============================================= ================================= +:file:`/usr/bin/core-gui` GUI startup command +:file:`/usr/sbin/core-daemon` Daemon startup command +:file:`/usr/sbin/` Misc. helper commands/scripts +:file:`/usr/lib/core` GUI files +:file:`/usr/lib/python2.7/dist-packages/core` Python modules for daemon/scripts +:file:`/etc/core/` Daemon configuration files +:file:`~/.core/` User-specific GUI preferences and scenario files +:file:`/usr/share/core/` Example scripts and scenarios +:file:`/usr/share/man/man1/` Command man pages +:file:`/etc/init.d/core-daemon` System startup script for daemon +============================================= ================================= + + +Under Fedora, :file:`/site-packages/` is used instead of :file:`/dist-packages/` +for the Python modules, and :file:`/etc/systemd/system/core-daemon.service` +instead of :file:`/etc/init.d/core-daemon` for the system startup script. + + +.. _Prerequisites: + +Prerequisites +============= + +.. index:: Prerequisites + +The Linux or FreeBSD operating system is required. The GUI uses the Tcl/Tk scripting toolkit, and the CORE daemon require Python. Details of the individual software packages required can be found in the installation steps. + +.. _Required_Hardware: + +Required Hardware +----------------- + +.. index:: Hardware requirements + +.. index:: System requirements + +Any computer capable of running Linux or FreeBSD should be able to run CORE. Since the physical machine will be hosting numerous virtual machines, as a general rule you should select a machine having as much RAM and CPU resources as possible. + +A *general recommendation* would be: + +* 2.0GHz or better x86 processor, the more processor cores the better +* 2 GB or more of RAM +* about 3 MB of free disk space (plus more for dependency packages such as Tcl/Tk) +* X11 for the GUI, or remote X11 over SSH + +The computer can be a laptop, desktop, or rack-mount server. A keyboard, mouse, +and monitor are not required if a network connection is available +for remotely accessing the machine. A 3D accelerated graphics card +is not required. + +.. _Required_Software: + +Required Software +----------------- + +CORE requires the Linux or FreeBSD operating systems because it uses virtualization provided by the kernel. It does not run on the Windows or Mac OS X operating systems (unless it is running within a virtual machine guest.) There are two +different virtualization technologies that CORE can currently use: +Linux network namespaces and FreeBSD jails, +see :ref:`How_Does_it_Work?` for virtualization details. + +**Linux network namespaces is the recommended platform.** Development is focused here and it supports the latest features. It is the easiest to install because there is no need to patch, install, and run a special Linux kernel. + +FreeBSD |BSDVERSION|-RELEASE may offer the best scalability. If your +applications run under FreeBSD and you are comfortable with that platform, +this may be a good choice. Device and application support by BSD +may not be as extensive as Linux. + +The CORE GUI requires the X.Org X Window system (X11), or can run over a +remote X11 session. For specific Tcl/Tk, Python, and other libraries required +to run CORE, refer to the :ref:`Installation` section. + +.. NOTE:: + CORE :ref:`Services` determine what runs on each node. You may require + other software packages depending on the services you wish to use. + For example, the `HTTP` service will require the `apache2` package. + + +.. _Installing_from_Packages: + +Installing from Packages +======================== + +.. index:: installer + +.. index:: binary packages + +The easiest way to install CORE is using the pre-built packages. The package +managers on Ubuntu or Fedora will +automatically install dependencies for you. +You can obtain the CORE packages from the `CORE downloads `_ page. + +.. _Installing_from_Packages_on_Ubuntu: + +Installing from Packages on Ubuntu +---------------------------------- + +First install the Ubuntu |UBUNTUVERSION| operating system. + +.. NOTE:: + Linux package managers (e.g. `software-center`, `yum`) will take care + of installing the dependencies for you when you use the CORE packages. + You do not need to manually use these installation lines. You do need + to select which Quagga package to use. + + +* **Optional:** install the prerequisite packages (otherwise skip this + step and have the package manager install them for you.) + + .. parsed-literal:: + + # make sure the system is up to date; you can also use synaptic or + # update-manager instead of apt-get update/dist-upgrade + sudo apt-get update + sudo apt-get dist-upgrade + sudo apt-get install |APTDEPS| |APTDEPS2| + +* Install Quagga for routing. If you plan on working with wireless + networks, we recommend + installing + `OSPF MDR `__ + (replace `amd64` below with `i386` if needed + to match your architecture): + + .. parsed-literal:: + + export URL=http://downloads.pf.itd.nrl.navy.mil/ospf-manet + wget $URL/|QVER|/|QVERDEB| + sudo dpkg -i |QVERDEB| + + + or, for the regular Ubuntu version of Quagga: + :: + + sudo apt-get install quagga + +* Install the CORE deb packages for Ubuntu, using a GUI that automatically + resolves dependencies (note that the absolute path to the deb file + must be used with ``software-center``): + + .. parsed-literal:: + + software-center /home/user/Downloads/core-daemon\_\ |version|-|COREDEB| + software-center /home/user/Downloads/core-gui\_\ |version|-|COREDEB2| + + or install from command-line: + + .. parsed-literal:: + + sudo dpkg -i core-daemon\_\ |version|-|COREDEB| + sudo dpkg -i core-gui\_\ |version|-|COREDEB2| + +* Start the CORE daemon as root. + :: + + sudo /etc/init.d/core-daemon start + +* Run the CORE GUI as a normal user: + :: + + core-gui + + +After running the ``core-gui`` command, a GUI should appear with a canvas +for drawing topologies. Messages will print out on the console about +connecting to the CORE daemon. + +.. _Installing_from_Packages_on_Fedora: + +Installing from Packages on Fedora/CentOS +----------------------------------------- + +The commands shown here should be run as root. First Install the Fedora +|FEDORAVERSION| or CentOS |CENTOSVERSION| operating system. +The `x86_64` architecture is shown in the +examples below, replace with `i686` is using a 32-bit architecture. Also, +`fc15` is shown below for Fedora 15 packages, replace with the appropriate +Fedora release number. + +* **CentOS only:** in order to install the `libev` prerequisite package, you + first need to install the `EPEL `_ repo + (Extra Packages for Enterprise Linux): + + :: + + wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm + yum localinstall epel-release-6-8.noarch.rpm + +* **Optional:** install the prerequisite packages (otherwise skip this + step and have the package manager install them for you.) + + .. parsed-literal:: + + # make sure the system is up to date; you can also use the + # update applet instead of yum update + yum update + yum install |YUMDEPS| |YUMDEPS2| + + +* **Optional (Fedora 17+):** Fedora 17 and newer have an additional + prerequisite providing the required netem kernel modules (otherwise + skip this step and have the package manager install it for you.) + + :: + + yum install kernel-modules-extra + + +* Install Quagga for routing. If you plan on working with wireless networks, + we recommend installing + `OSPF MDR `_: + + .. parsed-literal:: + + export URL=http://downloads.pf.itd.nrl.navy.mil/ospf-manet + wget $URL/|QVER|/|QVERRPM| + yum localinstall |QVERRPM| + + or, for the regular Fedora version of Quagga: + :: + + yum install quagga + + +* Install the CORE RPM packages for Fedora and automatically resolve + dependencies: + + .. parsed-literal:: + + yum localinstall core-daemon-|version|-|CORERPM| --nogpgcheck + yum localinstall core-gui-|version|-|CORERPM2| --nogpgcheck + + or install from the command-line: + + .. parsed-literal:: + + rpm -ivh core-daemon-|version|-|CORERPM| + rpm -ivh core-gui-|version|-|CORERPM2| + + +* Turn off SELINUX by setting ``SELINUX=disabled`` in the :file:`/etc/sysconfig/selinux` file, and adding ``selinux=0`` to the kernel line in + your :file:`/etc/grub.conf` file; on Fedora 15 and newer, disable sandboxd using ``chkconfig sandbox off``; + you need to reboot in order for this change to take effect +* Turn off firewalls with ``systemctl disable firewalld``, ``systemctl disable iptables.service``, ``systemctl disable ip6tables.service`` (``chkconfig iptables off``, ``chkconfig ip6tables off``) or configure them with permissive rules for CORE virtual networks; you need to reboot after making this change, or flush the firewall using ``iptables -F``, ``ip6tables -F``. + +* Start the CORE daemon as root. Fedora uses the ``systemd`` start-up daemon + instead of traditional init scripts. CentOS uses the init script. + :: + + # for Fedora using systemd: + systemctl daemon-reload + systemctl start core-daemon.service + # or for CentOS: + /etc/init.d/core-daemon start + +* Run the CORE GUI as a normal user: + :: + + core-gui + + +After running the ``core-gui`` command, a GUI should appear with a canvas +for drawing topologies. Messages will print out on the console about +connecting to the CORE daemon. + +.. _Installing_from_Source: + +Installing from Source +====================== + +This option is listed here for developers and advanced users who are comfortable patching and building source code. Please consider using the binary packages instead for a simplified install experience. + +.. _Installing_from_Source_on_Ubuntu: + +Installing from Source on Ubuntu +-------------------------------- + +To build CORE from source on Ubuntu, first install these development packages. +These packages are not required for normal binary package installs. + +.. parsed-literal:: + + sudo apt-get install |APTDEPS| \\ + |APTDEPS2| \\ + |APTDEPS3| + + +You can obtain the CORE source from the `CORE source `_ page. Choose either a stable release version or +the development snapshot available in the `nightly_snapshots` directory. +The ``-j8`` argument to ``make`` will run eight simultaneous jobs, to speed up +builds on multi-core systems. + +.. parsed-literal:: + + tar xzf core-|version|.tar.gz + cd core-|version| + ./bootstrap.sh + ./configure + make -j8 + sudo make install + + +The CORE Manual documentation is built separately from the :file:`doc/` +sub-directory in the source. It requires Sphinx: + +.. parsed-literal:: + + sudo apt-get install python-sphinx + cd core-|version|/doc + make html + make latexpdf + + +.. _Installing_from_Source_on_Fedora: + +Installing from Source on Fedora +-------------------------------- + +To build CORE from source on Fedora, install these development packages. +These packages are not required for normal binary package installs. + +.. parsed-literal:: + + yum install |YUMDEPS| \\ + |YUMDEPS2| \\ + |YUMDEPS3| + + +.. NOTE:: + For a minimal X11 installation, also try these packages:: + + yum install xauth xterm urw-fonts + +You can obtain the CORE source from the `CORE source `_ page. Choose either a stable release version or +the development snapshot available in the :file:`nightly_snapshots` directory. +The ``-j8`` argument to ``make`` will run eight simultaneous jobs, to speed up +builds on multi-core systems. Notice the ``configure`` flag to tell the build +system that a systemd service file should be installed under Fedora. + +.. parsed-literal:: + + tar xzf core-|version|.tar.gz + cd core-|version| + ./bootstrap.sh + ./configure --with-startup=systemd + make -j8 + sudo make install + + +Note that the Linux RPM and Debian packages do not use the ``/usr/local`` +prefix, and files are instead installed to ``/usr/sbin``, and +``/usr/lib``. This difference is a result of aligning with the directory +structure of Linux packaging systems and FreeBSD ports packaging. + +Another note is that the Python distutils in Fedora Linux will install the CORE +Python modules to :file:`/usr/lib/python2.7/site-packages/core`, instead of +using the :file:`dist-packages` directory. + +The CORE Manual documentation is built separately from the :file:`doc/` +sub-directory in the source. It requires Sphinx: + +.. parsed-literal:: + + sudo yum install python-sphinx + cd core-|version|/doc + make html + make latexpdf + + +.. _Installing_from_Source_on_CentOS: + +Installing from Source on CentOS/EL6 +------------------------------------ + +To build CORE from source on CentOS/EL6, first install the `EPEL `_ repo (Extra Packages for Enterprise Linux) in order +to provide the `libev` package. + +:: + + wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm + yum localinstall epel-release-6-8.noarch.rpm + + +Now use the same instructions shown in :ref:`Installing_from_Source_on_Fedora`. +CentOS/EL6 does not use the systemd service file, so the `configure` option +`--with-startup=systemd` should be omitted: + +:: + + ./configure + + + +.. _Installing_from_Source_on_SUSE: + +Installing from Source on SUSE +------------------------------ + +To build CORE from source on SUSE or OpenSUSE, +use the similar instructions shown in :ref:`Installing_from_Source_on_Fedora`, +except that the following `configure` option should be used: + +:: + + ./configure --with-startup=suse + +This causes a separate init script to be installed that is tailored towards SUSE systems. + +The `zypper` command is used instead of `yum`. + +For OpenSUSE/Xen based installations, refer to the `README-Xen` file included +in the CORE source. + + +.. _Installing_from_Source_on_FreeBSD: + +Installing from Source on FreeBSD +--------------------------------- + +.. index:: kernel patch + +**Rebuilding the FreeBSD Kernel** + + +The FreeBSD kernel requires a small patch to allow per-node directories in the +filesystem. Also, the `VIMAGE` build option needs to be turned on to enable +jail-based network stack virtualization. The source code for the FreeBSD +kernel is located in :file:`/usr/src/sys`. + +Instructions below will use the :file:`/usr/src/sys/amd64` architecture +directory, but the directory :file:`/usr/src/sys/i386` should be substituted +if you are using a 32-bit architecture. + +The kernel patch is available from the CORE source tarball under core-|version|/kernel/symlinks-8.1-RELEASE.diff. This patch applies to the +FreeBSD 8.x or 9.x kernels. + +.. parsed-literal:: + + cd /usr/src/sys + # first you can check if the patch applies cleanly using the '-C' option + patch -p1 -C < ~/core-|version|/kernel/symlinks-8.1-RELEASE.diff + # without '-C' applies the patch + patch -p1 < ~/core-|version|/kernel/symlinks-8.1-RELEASE.diff + + +A kernel configuration file named :file:`CORE` can be found within the source tarball: core-|version|/kernel/freebsd8-config-CORE. The config is valid for +FreeBSD 8.x or 9.x kernels. + +The contents of this configuration file are shown below; you can edit it to suit your needs. + +:: + + # this is the FreeBSD 9.x kernel configuration file for CORE + include GENERIC + ident CORE + + options VIMAGE + nooptions SCTP + options IPSEC + device crypto + + options IPFIREWALL + options IPFIREWALL_DEFAULT_TO_ACCEPT + + +The kernel configuration file can be linked or copied to the kernel source directory. Use it to configure and build the kernel: + +.. parsed-literal:: + + cd /usr/src/sys/amd64/conf + cp ~/core-|version|/kernel/freebsd8-config-CORE CORE + config CORE + cd ../compile/CORE + make cleandepend && make depend + make -j8 && make install + + +Change the number 8 above to match the number of CPU cores you have times two. +Note that the ``make install`` step will move your existing kernel to +``/boot/kernel.old`` and removes that directory if it already exists. Reboot to +enable this new patched kernel. + +**Building CORE from Source on FreeBSD** + +Here are the prerequisite packages from the FreeBSD ports system: + +:: + + pkg_add -r tk85 + pkg_add -r libimg + pkg_add -r bash + pkg_add -r libev + pkg_add -r sudo + pkg_add -r python + pkg_add -r autotools + pkg_add -r gmake + + +Note that if you are installing to a bare FreeBSD system and want to SSH with X11 forwarding to that system, these packages will help: + +:: + + pkg_add -r xauth + pkg_add -r xorg-fonts + + +The ``sudo`` package needs to be configured so a normal user can run the CORE +GUI using the command ``core-gui`` (opening a shell window on a node uses a +command such as ``sudo vimage n1``.) + +On FreeBSD, the CORE source is built using autotools and gmake: + +.. parsed-literal:: + + tar xzf core-|version|.tar.gz + cd core-|version| + ./bootstrap.sh + ./configure + gmake -j8 + sudo gmake install + + +Build and install the ``vimage`` utility for controlling virtual images. The source can be obtained from `FreeBSD SVN `_, or it is included with the CORE source for convenience: + +.. parsed-literal:: + + cd core-|version|/kernel/vimage + make + make install + + +.. index:: FreeBSD; kernel modules + +.. index:: kernel modules + +.. index:: ng_wlan and ng_pipe + +On FreeBSD you should also install the CORE kernel modules for wireless emulation. Perform this step after you have recompiled and installed FreeBSD kernel. + +.. parsed-literal:: + + cd core-|version|/kernel/ng_pipe + make + sudo make install + cd ../ng_wlan + make + sudo make install + + +The :file:`ng_wlan` kernel module allows for the creation of WLAN nodes. This +is a modified :file:`ng_hub` Netgraph module. Instead of packets being copied +to every connected node, the WLAN maintains a hash table of connected node +pairs. Furthermore, link parameters can be specified for node pairs, in +addition to the on/off connectivity. The parameters are tagged to each packet +and sent to the connected :file:`ng_pipe` module. The :file:`ng_pipe` has been +modified to read any tagged parameters and apply them instead of its default +link effects. + +The :file:`ng_wlan` also supports linking together multiple WLANs across different machines using the :file:`ng_ksocket` Netgraph node, for distributed emulation. + +The Quagga routing suite is recommended for routing, +:ref:`Quagga_Routing_Software` for installation. + +.. _Quagga_Routing_Software: + +Quagga Routing Software +======================= + +.. index:: Quagga + +Virtual networks generally require some form of routing in order to work (e.g. +to automatically populate routing tables for routing packets from one subnet +to another.) CORE builds OSPF routing protocol +configurations by default when the blue router +node type is used. The OSPF protocol is available +from the `Quagga open source routing suite `_. +Other routing protocols are available using different +node services, :ref:`Default_Services_and_Node_Types`. + +Quagga is not specified as a dependency for the CORE packages because +there are two different Quagga packages that you may use: + +* `Quagga `_ - the standard version of Quagga, suitable for static wired networks, and usually available via your distribution's package manager. + .. index:: OSPFv3 MANET + + .. index:: OSPFv3 MDR + + .. index:: MANET Designated Routers (MDR) + +* + `OSPF MANET Designated Routers `_ (MDR) - the Quagga routing suite with a modified version of OSPFv3, + optimized for use with mobile wireless networks. The *mdr* node type (and the MDR service) requires this variant of Quagga. + +If you plan on working with wireless networks, we recommend installing OSPF MDR; +otherwise install the standard version of Quagga using your package manager or from source. + +.. _Installing_Quagga_from_Packages: + +Installing Quagga from Packages +------------------------------- + +To install the standard version of Quagga from packages, use your package +manager (Linux) or the ports system (FreeBSD). + +Ubuntu users: +:: + + sudo apt-get install quagga + +Fedora users: +:: + + yum install quagga + +FreeBSD users: +:: + + pkg_add -r quagga + + +To install the Quagga variant having OSPFv3 MDR, first download the +appropriate package, and install using the package manager. + +Ubuntu users: + +.. parsed-literal:: + + export URL=http://downloads.pf.itd.nrl.navy.mil/ospf-manet + wget $URL/|QVER|/|QVERDEB| + sudo dpkg -i |QVERDEB| + +Replace `amd64` with `i686` if using a 32-bit architecture. + +Fedora users: + +.. parsed-literal:: + + export URL=http://downloads.pf.itd.nrl.navy.mil/ospf-manet + wget $URL/|QVER|/|QVERRPM| + yum localinstall |QVERRPM| + +Replace `x86_64` with `i686` if using a 32-bit architecture. + +.. _Compiling_Quagga_for_CORE: + +Compiling Quagga for CORE +------------------------- + +To compile Quagga to work with CORE on Linux: + +.. parsed-literal:: + + tar xzf |QVER|.tar.gz + cd |QVER| + ./configure --enable-user=root --enable-group=root --with-cflags=-ggdb \\ + --sysconfdir=/usr/local/etc/quagga --enable-vtysh \\ + --localstatedir=/var/run/quagga + make + sudo make install + + +Note that the configuration directory :file:`/usr/local/etc/quagga` shown for +Quagga above could be :file:`/etc/quagga`, if you create a symbolic link from +:file:`/etc/quagga/Quagga.conf -> /usr/local/etc/quagga/Quagga.conf` on the +host. The :file:`quaggaboot.sh` script in a Linux network namespace will try and +do this for you if needed. + +If you try to run quagga after installing from source and get an error such as: + +.. parsed-literal:: + + error while loading shared libraries libzebra.so.0 + +this is usually a sign that you have to run `sudo ldconfig` to refresh the +cache file. + +To compile Quagga to work with CORE on FreeBSD: + +.. parsed-literal:: + + tar xzf |QVER|.tar.gz + cd |QVER| + ./configure --enable-user=root --enable-group=wheel \\ + --sysconfdir=/usr/local/etc/quagga --enable-vtysh \\ + --localstatedir=/var/run/quagga + gmake + gmake install + + +On FreeBSD |BSDVERSION| you can use ``make`` or ``gmake``. +You probably want to compile Quagga from the ports system in +:file:`/usr/ports/net/quagga`. + +VCORE +===== + +.. index:: virtual machines + +.. index:: VirtualBox + +.. index:: VMware + +CORE is capable of running inside of a virtual machine, using +software such as VirtualBox, +VMware Server or QEMU. However, CORE itself is performing machine +virtualization in order to realize multiple emulated nodes, and running CORE +virtually adds additional contention for the physical resources. **For performance reasons, this is not recommended.** Timing inside of a VM often has +problems. If you do run CORE from within a VM, it is recommended that you view +the GUI with remote X11 over SSH, so the virtual machine does not need to +emulate the video card with the X11 application. + +.. index:: VCORE + +A CORE virtual machine is provided for download, named VCORE. +This is the perhaps the easiest way to get CORE up and running as the machine +is already set up for you. This may be adequate for initially evaluating the +tool but keep in mind the performance limitations of running within VirtualBox +or VMware. To install the virtual machine, you first need to obtain VirtualBox +from http://www.virtualbox.org, or VMware Server or Player from +http://www.vmware.com (this commercial software is distributed for free.) +Once virtualization software has been installed, you can import the virtual +machine appliance using the ``vbox`` file for VirtualBox or the ``vmx`` file for VMware. See the documentation that comes with VCORE for login information. + diff --git a/doc/intro.rst b/doc/intro.rst new file mode 100644 index 00000000..aaa587ce --- /dev/null +++ b/doc/intro.rst @@ -0,0 +1,256 @@ +.. This file is part of the CORE Manual + (c)2012-2013 the Boeing Company + +.. _Introduction: + +************ +Introduction +************ + +The Common Open Research Emulator (CORE) is a tool for building virtual +networks. As an emulator, CORE builds a representation of a real computer +network that runs in real time, as opposed to simulation, where abstract models +are used. The live-running emulation can be connected to physical networks and +routers. It provides an environment for running real applications and +protocols, taking advantage of virtualization provided by the Linux or FreeBSD +operating systems. + +Some of its key features are: + +.. index:: + single: key features + +* efficient and scalable +* runs applications and protocols without modification +* easy-to-use GUI +* highly customizable + +CORE is typically used for network and protocol research, +demonstrations, application and platform testing, evaluating networking +scenarios, security studies, and increasing the size of physical test networks. + +.. index:: + single: CORE; components of + single: CORE; API + single: API + single: CORE; GUI + +.. _Architecture: + +Architecture +============ +The main components of CORE are shown in :ref:`core-architecture`. A +*CORE daemon* (backend) manages emulation sessions. It builds emulated networks +using kernel virtualization for virtual nodes and some form of bridging and +packet manipulation for virtual networks. The nodes and networks come together +via interfaces installed on nodes. The daemon is controlled via the +graphical user interface, the *CORE GUI* (frontend). +The daemon uses Python modules +that can be imported directly by Python scripts. +The GUI and the daemon communicate using a custom, +asynchronous, sockets-based API, known as the *CORE API*. The dashed line +in the figure notionally depicts the user-space and kernel-space separation. +The components the user interacts with are colored blue: GUI, scripts, or +command-line tools. + +The system is modular to allow mixing different components. The virtual +networks component, for example, can be realized with other network +simulators and emulators, such as ns-3 and EMANE. +Different types of kernel virtualization are supported. +Another example is how a session can be designed and started using +the GUI, and continue to run in "headless" operation with the GUI closed. +The CORE API is sockets based, +to allow the possibility of running different components on different physical +machines. + +.. _core-architecture: + +.. figure:: figures/core-architecture.* + :alt: CORE architecture diagram + :align: center + + CORE Architecture + +The CORE GUI is a Tcl/Tk program; it is started using the command +``core-gui``. The CORE daemon, named ``core-daemon``, +is usually started via the init script +(``/etc/init.d/core-daemon`` or ``core-daemon.service``, +depending on platform.) +The CORE daemon manages sessions of virtual +nodes and networks, of which other scripts and utilities may be used for +further control. + + +.. _How_Does_It_Work?: + +How Does it Work? +================= + +A CORE node is a lightweight virtual machine. The CORE framework runs on Linux +and FreeBSD systems. The primary platform used for development is Linux. + +.. index:: + single: Linux; virtualization + single: Linux; containers + single: LXC + single: network namespaces + +* :ref:`Linux` CORE uses Linux network namespace virtualization to build virtual nodes, and ties them together with virtual networks using Linux Ethernet bridging. +* :ref:`FreeBSD` CORE uses jails with a network stack virtualization kernel option to build virtual nodes, and ties them together with virtual networks using BSD's Netgraph system. + + +.. _Linux: + +Linux +----- +Linux network namespaces (also known as netns, LXC, or `Linux containers +`_) is the primary virtualization +technique used by CORE. LXC has been part of the mainline Linux kernel since +2.6.24. Recent Linux distributions such as Fedora and Ubuntu have +namespaces-enabled kernels out of the box, so the kernel does not need to be +patched or recompiled. +A namespace is created using the ``clone()`` system call. Similar +to the BSD jails, each namespace has its own process environment and private +network stack. Network namespaces share the same filesystem in CORE. + +.. index:: + single: Linux; bridging + single: Linux; networking + single: ebtables + +CORE combines these namespaces with Linux Ethernet bridging +to form networks. Link characteristics are applied using Linux Netem queuing +disciplines. Ebtables is Ethernet frame filtering on Linux bridges. Wireless +networks are emulated by controlling which interfaces can send and receive with +ebtables rules. + + +.. _FreeBSD: + +FreeBSD +------- + +.. index:: + single: FreeBSD; Network stack virtualization + single: FreeBSD; jails + single: FreeBSD; vimages + +FreeBSD jails provide an isolated process space, a virtual environment for +running programs. Starting with FreeBSD 8.0, a new `vimage` kernel option +extends BSD jails so that each jail can have its own virtual network stack -- +its own networking variables such as addresses, interfaces, routes, counters, +protocol state, socket information, etc. The existing networking algorithms and +code paths are intact but operate on this virtualized state. + +Each jail plus network stack forms a lightweight virtual machine. These are +named jails or *virtual images* (or *vimages*) and are created using a the +``jail`` or ``vimage`` command. Unlike traditional virtual +machines, vimages do not feature entire operating systems running on emulated +hardware. All of the vimages will share the same processor, memory, clock, and +other system resources. Because the actual hardware is not emulated and network +packets can be passed by reference through the in-kernel Netgraph system, +vimages are quite lightweight and a single system can accommodate numerous +instances. + +Virtual network stacks in FreeBSD were historically available as a patch to the +FreeBSD 4.11 and 7.0 kernels, and the VirtNet project [#f1]_ [#f2]_ +added this functionality to the +mainline 8.0-RELEASE and newer kernels. + +.. index:: + single: FreeBSD; Netgraph + +The FreeBSD Operating System kernel features a graph-based +networking subsystem named Netgraph. The netgraph(4) manual page quoted below +best defines this system: + + The netgraph system provides a uniform and modular system for the + implementation of kernel objects which perform various networking functions. + The objects, known as nodes, can be arranged into arbitrarily complicated + graphs. Nodes have hooks which are used to connect two nodes together, + forming the edges in the graph. Nodes communicate along the edges to + process data, implement protocols, etc. + + The aim of netgraph is to supplement rather than replace the existing + kernel networking infrastructure. + +.. index:: + single: IMUNES + single: VirtNet + single: prior work + +.. rubric:: Footnotes +.. [#f1] http://www.nlnet.nl/project/virtnet/ +.. [#f2] http://www.imunes.net/virtnet/ + +.. _Prior_Work: + +Prior Work +========== + +The Tcl/Tk CORE GUI was originally derived from the open source +`IMUNES `_ +project from the University of Zagreb +as a custom project within Boeing Research and Technology's Network +Technology research group in 2004. Since then they have developed the CORE +framework to use not only FreeBSD but Linux virtualization, have developed a +Python framework, and made numerous user- and kernel-space developments, such +as support for wireless networks, IPsec, the ability to distribute emulations, +simulation integration, and more. The IMUNES project also consists of userspace +and kernel components. Originally, one had to download and apply a patch for +the FreeBSD 4.11 kernel, but the more recent +`VirtNet `_ +effort has brought network stack +virtualization to the more modern FreeBSD 8.x kernel. + +.. _Open_Source_Project_and_Resources: + +Open Source Project and Resources +================================= +.. index:: + single: open source project + single: license + single: website + single: supplemental website + single: contributing + +CORE has been released by Boeing to the open source community under the BSD +license. If you find CORE useful for your work, please contribute back to the +project. Contributions can be as simple as reporting a bug, dropping a line of +encouragement or technical suggestions to the mailing lists, or can also +include submitting patches or maintaining aspects of the tool. For details on +contributing to CORE, please visit the +`wiki `_. + +Besides this manual, there are other additional resources available online: + +* `CORE website `_ - main project page containing demos, downloads, and mailing list information. +* `CORE supplemental website `_ - supplemental Google Code page with a quickstart guide, wiki, bug tracker, and screenshots. + +.. index:: + single: wiki + single: CORE; wiki + +The `CORE wiki `_ is a good place to check for the latest documentation and tips. + +Goals +----- +These are the Goals of the CORE project; they are similar to what we consider to be the :ref:`key features `. + +#. Ease of use - In a few clicks the user should have a running network. +#. Efficiency and scalability - A node is more lightweight than a full virtual machine. Tens of nodes should be possible on a standard laptop computer. +#. Real software - Run real implementation code, protocols, networking stacks. +#. Networking - CORE is focused on emulating networks and offers various ways to connect the running emulation with real or simulated networks. +#. Hackable - The source code is available and easy to understand and modify. + +Non-Goals +--------- +This is a list of Non-Goals, specific things that people may be interested in but are not areas that we will pursue. + + +#. Reinventing the wheel - Where possible, CORE reuses existing open source components such as virtualization, Netgraph, netem, bridging, Quagga, etc. +#. 1,000,000 nodes - While the goal of CORE is to provide efficient, scalable network emulation, there is no set goal of N number of nodes. There are realistic limits on what a machine can handle as its resources are divided amongst virtual nodes. We will continue to make things more efficient and let the user determine the right number of nodes based on available hardware and the activities each node is performing. +#. Solves every problem - CORE is about emulating networking layers 3-7 using virtual network stacks in the Linux or FreeBSD operating systems. +#. Hardware-specific - CORE itself is not an instantiation of hardware, a testbed, or a specific laboratory setup; it should run on commodity laptop and desktop PCs, in addition to high-end server hardware. + + diff --git a/doc/machine.rst b/doc/machine.rst new file mode 100644 index 00000000..588a383b --- /dev/null +++ b/doc/machine.rst @@ -0,0 +1,91 @@ +.. This file is part of the CORE Manual + (c)2012-2013 the Boeing Company + +.. _Machine_Types: + +************* +Machine Types +************* + +.. index:: machine types + +Different node types can be configured in CORE, and each node type has a +*machine type* that indicates how the node will be represented at run time. +Different machine types allow for different virtualization options. + +.. _netns: + +netns +===== + +.. index:: netns machine type + +The *netns* machine type is the default. This is for nodes that will be +backed by Linux network namespaces. See :ref:`Linux` for a brief explanation of +netns. This default machine type is very lightweight, providing a minimum +amount of +virtualization in order to emulate a network. +Another reason this is designated as the default machine type +is because this virtualization technology +typically requires no changes to the kernel; it is available out-of-the-box +from the latest mainstream Linux distributions. + +.. index:: physical machine type + +.. index:: emulation testbed machines + +.. index:: real node + +.. index:: physical node + +.. _physical: + +physical +======== + +The *physical* machine type is used for nodes that represent a real +Linux-based machine that will participate in the emulated network scenario. +This is typically used, for example, to incorporate racks of server machines +from an emulation testbed. A physical node is one that is running the CORE +daemon (:file:`core-daemon`), but will not be further partitioned into virtual +machines. Services that are run on the physical node do not run in an +isolated or virtualized environment, but directly on the operating system. + +Physical nodes must be assigned to servers, the same way nodes +are assigned to emulation servers with :ref:`Distributed_Emulation`. +The list of available physical nodes currently shares the same dialog box +and list as the emulation servers, accessed using the *Emulation Servers...* +entry from the *Session* menu. + +.. index:: GRE tunnels with physical nodes + +Support for physical nodes is under development and may be improved in future +releases. Currently, when any node is linked to a physical node, a dashed line +is drawn to indicate network tunneling. A GRE tunneling interface will be +created on the physical node and used to tunnel traffic to and from the +emulated world. + +Double-clicking on a physical node during runtime +opens a terminal with an SSH shell to that +node. Users should configure public-key SSH login as done with emulation +servers. + +.. _xen: + +xen +=== + +.. index:: xen machine type + +The *xen* machine type is an experimental new type in CORE for managing +Xen domUs from within CORE. After further development, +it may be documented here. + +Current limitations include only supporting ISO-based filesystems, and lack +of integration with node services, EMANE, and possibly other features of CORE. + +There is a :file:`README-Xen` file available in the CORE source that contains +further instructions for setting up Xen-based nodes. + + + diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am new file mode 100755 index 00000000..30405928 --- /dev/null +++ b/doc/man/Makefile.am @@ -0,0 +1,37 @@ +# CORE +# (c)2012-2013 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +# Makefile for building man pages. +# + +if WANT_GUI + GUI_MANS = core-gui.1 +endif +if WANT_DAEMON + DAEMON_MANS = vnoded.1 vcmd.1 netns.1 core-daemon.1 coresendmsg.1 \ + core-cleanup.1 core-xen-cleanup.1 +endif +man_MANS = $(GUI_MANS) $(DAEMON_MANS) + +.PHONY: generate-mans +generate-mans: + $(HELP2MAN) --source CORE 'sh $(top_srcdir)/gui/core-gui' -o core-gui.1.new + $(HELP2MAN) --no-info --source CORE $(top_srcdir)/daemon/src/vnoded -o vnoded.1.new + $(HELP2MAN) --no-info --source CORE $(top_srcdir)/daemon/src/vcmd -o vcmd.1.new + $(HELP2MAN) --no-info --source CORE $(top_srcdir)/daemon/src/netns -o netns.1.new + $(HELP2MAN) --version-string=$(CORE_VERSION) --no-info --source CORE $(top_srcdir)/daemon/sbin/core-daemon -o core-daemon.1.new + $(HELP2MAN) --version-string=$(CORE_VERSION) --no-info --source CORE $(top_srcdir)/daemon/sbin/coresendmsg -o coresendmsg.1.new + $(HELP2MAN) --version-string=$(CORE_VERSION) --no-info --source CORE $(top_srcdir)/daemon/sbin/core-cleanup -o core-cleanup.1.new + $(HELP2MAN) --version-string=$(CORE_VERSION) --no-info --source CORE $(top_srcdir)/daemon/sbin/core-xen-cleanup -o core-xen-cleanup.1.new + +.PHONY: diff +diff: + for m in ${man_MANS}; do \ + colordiff -u $$m $$m.new | less -R; \ + done; + +DISTCLEANFILES = Makefile.in +EXTRA_DIST = $(man_MANS) diff --git a/doc/man/core-cleanup.1 b/doc/man/core-cleanup.1 new file mode 100644 index 00000000..2ffb1f52 --- /dev/null +++ b/doc/man/core-cleanup.1 @@ -0,0 +1,30 @@ +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.40.4. +.TH CORE-CLEANUP "1" "August 2013" "CORE" "User Commands" +.SH NAME +core-cleanup \- clean-up script for CORE +.SH DESCRIPTION +usage: core\-cleanup [\-d [\-l]] +.IP +Clean up all CORE namespaces processes, bridges, interfaces, and session +directories. Options: +.TP +\fB\-h\fR +show this help message and exit +.TP +\fB\-d\fR +also kill the Python daemon +.TP +\fB\-l\fR +remove the core-daemon.log file +.SH "SEE ALSO" +.BR core-gui(1), +.BR core-daemon(1), +.BR coresendmsg(1), +.BR core-xen-cleanup(1), +.BR vcmd(1), +.BR vnoded(1) +.SH BUGS +Report bugs to +.BI core-dev@pf.itd.nrl.navy.mil. + + diff --git a/doc/man/core-daemon.1 b/doc/man/core-daemon.1 new file mode 100644 index 00000000..784391ba --- /dev/null +++ b/doc/man/core-daemon.1 @@ -0,0 +1,52 @@ +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.40.4. +.TH CORE "1" "August 2013" "CORE" "User Commands" +.SH NAME +core-daemon \- CORE daemon manages emulation sessions started from GUI or scripts +.SH SYNOPSIS +.B core-daemon +[\fI-h\fR] [\fIoptions\fR] [\fIargs\fR] +.SH DESCRIPTION +CORE daemon instantiates Linux network namespace nodes. +.SH OPTIONS +.TP +\fB\-h\fR, \fB\-\-help\fR +show this help message and exit +.TP +\fB\-f\fR CONFIGFILE, \fB\-\-configfile\fR=\fICONFIGFILE\fR +read config from specified file; default = +/etc/core/core.conf +.TP +\fB\-d\fR, \fB\-\-daemonize\fR +run in background as daemon; default=False +.TP +\fB\-e\fR EXECFILE, \fB\-\-execute\fR=\fIEXECFILE\fR +execute a Python/XML\-based session +.TP +\fB\-l\fR LOGFILE, \fB\-\-logfile\fR=\fILOGFILE\fR +log output to specified file; default = +/var/log/core-daemon.log +.TP +\fB\-p\fR PORT, \fB\-\-port\fR=\fIPORT\fR +port number to listen on; default = 4038 +.TP +\fB\-i\fR PIDFILE, \fB\-\-pidfile\fR=\fIPIDFILE\fR +filename to write pid to; default = /var/run/core-daemon.pid +.TP +\fB\-t\fR NUMTHREADS, \fB\-\-numthreads\fR=\fINUMTHREADS\fR +number of server threads; default = 1 +.TP +\fB\-v\fR, \fB\-\-verbose\fR +enable verbose logging; default = False +.TP +\fB\-g\fR, \fB\-\-debug\fR +enable debug logging; default = False +.SH "SEE ALSO" +.BR core-gui(1), +.BR coresendmsg(1), +.BR netns(1), +.BR vcmd(1), +.BR vnoded(1) +.SH BUGS +Report bugs to +.BI core-dev@pf.itd.nrl.navy.mil. + diff --git a/doc/man/core-gui.1 b/doc/man/core-gui.1 new file mode 100644 index 00000000..cac6c95f --- /dev/null +++ b/doc/man/core-gui.1 @@ -0,0 +1,38 @@ +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.40.4. +.TH CORE "1" "August 2013" "CORE" "User Commands" +.SH NAME +core-gui \- Common Open Research Emulator (CORE) graphical user interface +.SH SYNOPSIS +.B core-gui +[\fI-h|-v\fR] [\fI-b|-c \fR] [\fI-s\fR] [\fI\fR] +.SH DESCRIPTION +Launches the CORE Tcl/Tk X11 GUI or starts an imn\-based emulation. +.TP +\-(\fB\-h\fR)elp +show help message and exit +.TP +\-(\fB\-v\fR)ersion +show version number and exit +.TP +\-(\fB\-b\fR)atch +batch mode (no X11 GUI) +.TP +\-(\fB\-c\fR)losebatch +stop and clean up a batch mode session +.TP +\-(\fB\-s\fR)tart +start in execute mode, not edit mode +.TP + +(optional) load the specified imn scenario file +.PP +With no parameters, starts the GUI in edit mode with a blank canvas. +.SH "SEE ALSO" +.BR core-daemon(1), +.BR coresendmsg(1), +.BR vcmd(1), +.BR vnoded(1) +.SH BUGS +Report bugs to +.BI core-dev@pf.itd.nrl.navy.mil. + diff --git a/doc/man/core-xen-cleanup.1 b/doc/man/core-xen-cleanup.1 new file mode 100644 index 00000000..d4b39a2a --- /dev/null +++ b/doc/man/core-xen-cleanup.1 @@ -0,0 +1,28 @@ +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.40.4. +.TH CORE-XEN-CLEANUP "1" "August 2013" "CORE" "User Commands" +.SH NAME +core-xen-cleanup \- clean-up script for CORE Xen domUs +.SH DESCRIPTION +usage: core\-xen\-cleanup [\-d] +.IP +Clean up all CORE Xen domUs, bridges, interfaces, and session +directories. Options: +.TP +\fB\-h\fR +show this help message and exit +.TP +\fB\-d\fR +also kill the Python daemon +.SH "SEE ALSO" +.BR core-gui(1), +.BR core-daemon(1), +.BR coresendmsg(1), +.BR core-cleanup(1), +.BR vcmd(1), +.BR vnoded(1) +.SH BUGS +Warning! This script will remove logical volumes that match the name "/dev/vg*/c*-n*-" on all volume groups. Use with care. +Report bugs to +.BI core-dev@pf.itd.nrl.navy.mil. + + diff --git a/doc/man/coresendmsg.1 b/doc/man/coresendmsg.1 new file mode 100644 index 00000000..ab31d194 --- /dev/null +++ b/doc/man/coresendmsg.1 @@ -0,0 +1,85 @@ +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.40.4. +.TH CORESENDMSG "1" "August 2013" "CORE" "User Commands" +.SH NAME +coresendmsg \- send a CORE API message to the core-daemon daemon +.SH SYNOPSIS +.B coresendmsg +[\fI-h|-H\fR] [\fIoptions\fR] [\fImessage-type\fR] [\fIflags=flags\fR] [\fImessage-TLVs\fR] +.SH DESCRIPTION +.SS "Supported message types:" +.IP +['node', 'link', 'exec', 'reg', 'conf', 'file', 'iface', 'event', 'sess', 'excp'] +.SS "Supported message flags (flags=f1,f2,...):" +.IP +['add', 'del', 'cri', 'loc', 'str', 'txt', 'tty'] +.SH OPTIONS +.TP +\fB\-h\fR, \fB\-\-help\fR +show this help message and exit +.TP +\fB\-H\fR +show example usage help message and exit +.TP +\fB\-p\fR PORT, \fB\-\-port\fR=\fIPORT\fR +TCP port to connect to, default: 4038 +.TP +\fB\-a\fR ADDRESS, \fB\-\-address\fR=\fIADDRESS\fR +Address to connect to, default: localhost +.TP +\fB\-s\fR SESSION, \fB\-\-session\fR=\fISESSION\fR +Session to join, default: None +.TP +\fB\-l\fR, \fB\-\-listen\fR +Listen for a response message and print it. +.TP +\fB\-t\fR, \fB\-\-list\-tlvs\fR +List TLVs for the specified message type. +.TP +\fB\-T\fR, \fB\-\-tcp\fR +Use TCP instead of UDP and connect to a session, +default: False +.PP +Usage: coresendmsg [\-h|\-H] [options] [message\-type] [flags=flags] [message\-TLVs] +.SS "Supported message types:" +.IP +['node', 'link', 'exec', 'reg', 'conf', 'file', 'iface', 'event', 'sess', 'excp'] +.SS "Supported message flags (flags=f1,f2,...):" +.IP +['add', 'del', 'cri', 'loc', 'str', 'txt', 'tty'] +.TP +\fB\-h\fR, \fB\-\-help\fR +show this help message and exit +.TP +\fB\-H\fR +show example usage help message and exit +.TP +\fB\-p\fR PORT, \fB\-\-port\fR=\fIPORT\fR +TCP port to connect to, default: 4038 +.TP +\fB\-a\fR ADDRESS, \fB\-\-address\fR=\fIADDRESS\fR +Address to connect to, default: localhost +.TP +\fB\-s\fR SESSION, \fB\-\-session\fR=\fISESSION\fR +Session to join, default: None +.TP +\fB\-l\fR, \fB\-\-listen\fR +Listen for a response message and print it. +.TP +\fB\-t\fR, \fB\-\-list\-tlvs\fR +List TLVs for the specified message type. +.TP +\fB\-T\fR, \fB\-\-tcp\fR +Use TCP instead of UDP and connect to a session, +default: False +.SH "EXAMPLES" +.TP +A list of examples is available using the following command: +coresendmsg \-H +.SH "SEE ALSO" +.BR core-gui(1), +.BR core-daemon(1), +.BR vcmd(1), +.BR vnoded(1) +.SH BUGS +Report bugs to +.BI core-dev@pf.itd.nrl.navy.mil. diff --git a/doc/man/netns.1 b/doc/man/netns.1 new file mode 100644 index 00000000..860fa73f --- /dev/null +++ b/doc/man/netns.1 @@ -0,0 +1,30 @@ +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.40.4. +.TH NETNS "1" "August 2013" "CORE" "User Commands" +.SH NAME +netns \- run commands within a network namespace +.SH SYNOPSIS +.B netns +[\fI-h|-V\fR] [\fI-w\fR] \fI-- command \fR[\fIargs\fR...] +.SH DESCRIPTION +Run the specified command in a new network namespace. +.SH OPTIONS +.TP +\fB\-h\fR, \fB\-\-help\fR +show this help message and exit +.TP +\fB\-V\fR, \fB\-\-version\fR +show version number and exit +.TP +\fB\-w\fR +wait for command to complete (useful for interactive commands) +.SH "SEE ALSO" +.BR core-gui(1), +.BR core-daemon(1), +.BR coresendmsg(1), +.BR unshare(1), +.BR vcmd(1), +.BR vnoded(1) +.SH BUGS +Report bugs to +.BI core-dev@pf.itd.nrl.navy.mil. + diff --git a/doc/man/vcmd.1 b/doc/man/vcmd.1 new file mode 100644 index 00000000..57548511 --- /dev/null +++ b/doc/man/vcmd.1 @@ -0,0 +1,42 @@ +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.40.4. +.TH VCMD "1" "August 2013" "CORE" "User Commands" +.SH NAME +vcmd \- run a command in a network namespace created by vnoded +.SH SYNOPSIS +.B vcmd +[\fI-h|-V\fR] [\fI-v\fR] [\fI-q|-i|-I\fR] \fI-c -- command args\fR... +.SH DESCRIPTION +Run the specified command in the Linux namespace container specified by the +control , with the specified arguments. +.SH OPTIONS +.TP +\fB\-h\fR, \fB\-\-help\fR +show this help message and exit +.TP +\fB\-V\fR, \fB\-\-version\fR +show version number and exit +.TP +\fB\-v\fR +enable verbose logging +.TP +\fB\-q\fR +run the command quietly, without local input or output +.TP +\fB\-i\fR +run the command interactively (use PTY) +.TP +\fB\-I\fR +run the command non\-interactively (without PTY) +.TP +\fB\-c\fR +control channel name (e.g. '/tmp/pycore.45647/n3') +.SH "SEE ALSO" +.BR core-gui(1), +.BR core-daemon(1), +.BR coresendmsg(1), +.BR netns(1), +.BR vnoded(1), +.SH BUGS +Report bugs to +.BI core-dev@pf.itd.nrl.navy.mil. + diff --git a/doc/man/vnoded.1 b/doc/man/vnoded.1 new file mode 100644 index 00000000..1ab7846f --- /dev/null +++ b/doc/man/vnoded.1 @@ -0,0 +1,44 @@ +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.40.4. +.TH VNODED "1" "August 2013" "CORE" "User Commands" +.SH NAME +vnoded \- network namespace daemon used by CORE to create a lightweight container +.SH SYNOPSIS +.B vnoded +[\fI-h|-V\fR] [\fI-v\fR] [\fI-n\fR] [\fI-C \fR] [\fI-l \fR] [\fI-p \fR] \fI-c \fR +.SH DESCRIPTION +Linux namespace container server daemon runs as PID 1 in the container. +Normally this process is launched automatically by the CORE daemon. +.SH OPTIONS +.TP +\fB\-h\fR, \fB\-\-help\fR +show this help message and exit +.TP +\fB\-V\fR, \fB\-\-version\fR +show version number and exit +.TP +\fB\-v\fR +enable verbose logging +.TP +\fB\-n\fR +do not create and run daemon within a new network namespace (for debug) +.TP +\fB\-C\fR +change to the specified directory +.TP +\fB\-l\fR +log output to the specified file +.TP +\fB\-p\fR +write process id to the specified file +.TP +\fB\-c\fR +establish the specified for receiving control commands +.SH "SEE ALSO" +.BR core-gui(1), +.BR core-daemon(1), +.BR coresendmsg(1), +.BR vcmd(1), +.SH BUGS +Report bugs to +.BI core-dev@pf.itd.nrl.navy.mil. + diff --git a/doc/ns3.rst b/doc/ns3.rst new file mode 100644 index 00000000..1f3c06c6 --- /dev/null +++ b/doc/ns3.rst @@ -0,0 +1,314 @@ +.. This file is part of the CORE Manual + (c)2012-2013 the Boeing Company + +.. _ns-3: + +**** +ns-3 +**** + +.. index:: ns-3 + +This chapter describes running CORE with the +`ns-3 network simulator `_. + +.. _What_is_ns-3?: + +What is ns-3? +============= + +.. index:: ns-3 Introduction + +ns-3 is a discrete-event network simulator for Internet systems, targeted primarily for research and educational use. [#f1]_ By default, ns-3 simulates entire networks, from applications down to channels, and it does so in simulated time, instead of real (wall-clock) time. + +CORE can run in conjunction with ns-3 to simulate some types of networks. CORE +network namespace virtual nodes can have virtual TAP interfaces installed using +the simulator for communication. The simulator needs to run at wall clock time +with the real-time scheduler. In this type of configuration, the CORE +namespaces are used to provide packets to the ns-3 devices and channels. +This allows, for example, wireless models developed for ns-3 to be used +in an emulation context. + +Users simulate networks with ns-3 by writing C++ programs or Python scripts that +import the ns-3 library. Simulation models are objects instantiated in these +scripts. Combining the CORE Python modules with ns-3 Python bindings allow +a script to easily set up and manage an emulation + simulation environment. + +.. rubric:: Footnotes +.. [#f1] http://www.nsnam.org + +.. _ns-3_Scripting: + +ns-3 Scripting +============== + +.. index:: ns-3 scripting + +Currently, ns-3 is supported by writing +:ref:`Python scripts `, but not through +drag-and-drop actions within the GUI. +If you have a copy of the CORE source, look under :file:`core/daemon/ns3/examples/` for example scripts; a CORE installation package puts these under +:file:`/usr/share/core/examples/corens3`. + +To run these scripts, install CORE so the CORE Python libraries are accessible, +and download and build ns-3. This has been tested using ns-3 releases starting +with 3.11 (and through 3.16 as of this writing). + +The first step is to open an ns-3 waf shell. `waf `_ is the build system for ns-3. Opening a waf shell as root will merely +set some environment variables useful for finding python modules and ns-3 +executables. The following environment variables are extended or set by +issuing `waf shell`: + +:: + + PATH + PYTHONPATH + LD_LIBRARY_PATH + NS3_MODULE_PATH + NS3_EXECUTABLE_PATH + +Open a waf shell as root, so that network namespaces may be instantiated +by the script with root permissions. For an example, run the +:file:`ns3wifi.py` +program, which simply instantiates 10 nodes (by default) and places them on +an ns-3 WiFi channel. That is, the script will instantiate 10 namespace nodes, +and create a special tap device that sends packets between the namespace +node and a special ns-3 simulation node, where the tap device is bridged +to an ns-3 WiFi network device, and attached to an ns-3 WiFi channel. + +:: + + > cd ns-allinone-3.16/ns-3.16 + > sudo ./waf shell + # # use '/usr/local' below if installed from source + # cd /usr/share/core/examples/corens3/ + # python -i ns3wifi.py + running ns-3 simulation for 600 seconds + + >>> print session + + >>> + + +The interactive Python shell allows some interaction with the Python objects +for the emulation. + +In another terminal, nodes can be accessed using *vcmd*: +:: + + vcmd -c /tmp/pycore.10781/n1 -- bash + root@n1:/tmp/pycore.10781/n1.conf# + root@n1:/tmp/pycore.10781/n1.conf# ping 10.0.0.3 + PING 10.0.0.3 (10.0.0.3) 56(84) bytes of data. + 64 bytes from 10.0.0.3: icmp_req=1 ttl=64 time=7.99 ms + 64 bytes from 10.0.0.3: icmp_req=2 ttl=64 time=3.73 ms + 64 bytes from 10.0.0.3: icmp_req=3 ttl=64 time=3.60 ms + ^C + --- 10.0.0.3 ping statistics --- + 3 packets transmitted, 3 received, 0% packet loss, time 2002ms + rtt min/avg/max/mdev = 3.603/5.111/7.993/2.038 ms + root@n1:/tmp/pycore.10781/n1.conf# + + +The ping packets shown above are traversing an ns-3 ad-hoc Wifi simulated +network. + +To clean up the session, use the Session.shutdown() method from the Python +terminal. + +:: + + >>> print session + + >>> + >>> session.shutdown() + >>> + + +A CORE/ns-3 Python script will instantiate an Ns3Session, which is a +CORE Session +having CoreNs3Nodes, an ns-3 MobilityHelper, and a fixed duration. +The CoreNs3Node inherits from both the CoreNode and the ns-3 Node classes -- it +is a network namespace having an associated simulator object. The CORE TunTap +interface is used, represented by a ns-3 TapBridge in `CONFIGURE_LOCAL` +mode, where ns-3 creates and configures the tap device. An event is scheduled +to install the taps at time 0. + +.. NOTE:: + The GUI can be used to run the :file:`ns3wifi.py` + and :file:`ns3wifirandomwalk.py` scripts directly. First, ``core-daemon`` + must be + stopped and run within the waf root shell. Then the GUI may be run as + a normal user, and the *Execute Python Script...* option may be used from + the *File* menu. Dragging nodes around in the :file:`ns3wifi.py` example + will cause their ns-3 positions to be updated. + + +Users may find the files :file:`ns3wimax.py` and :file:`ns3lte.py` +in that example +directory; those files were similarly configured, but the underlying +ns-3 support is not present as of ns-3.16, so they will not work. Specifically, +the ns-3 has to be extended to support bridging the Tap device to +an LTE and a WiMax device. + +.. _ns-3_Integration_details: + +Integration details +=================== + +.. index:: ns-3 integration details + +The previous example :file:`ns3wifi.py` used Python API from the special Python +objects *Ns3Session* and *Ns3WifiNet*. The example program does not import +anything directly from the ns-3 python modules; rather, only the above +two objects are used, and the API available to configure the underlying +ns-3 objects is constrained. For example, *Ns3WifiNet* instantiates +a constant-rate 802.11a-based ad hoc network, using a lot of ns-3 defaults. + +However, programs may be written with a blend of ns-3 API and CORE Python +API calls. This section examines some of the fundamental objects in +the CORE ns-3 support. Source code can be found in +:file:`daemon/ns3/corens3/obj.py` and example +code in :file:`daemon/ns3/corens3/examples/`. + +Ns3Session +---------- + +The *Ns3Session* class is a CORE Session that starts an ns-3 simulation +thread. ns-3 actually runs as a separate process on the same host as +the CORE daemon, and the control of starting and stopping this process +is performed by the *Ns3Session* class. + +Example: + +:: + + session = Ns3Session(persistent=True, duration=opt.duration) + +Note the use of the duration attribute to control how long the ns-3 simulation +should run. By default, the duration is 600 seconds. + +Typically, the session keeps track of the ns-3 nodes (holding a node +container for references to the nodes). This is accomplished via the +`addnode()` method, e.g.: + +:: + + for i in xrange(1, opt.numnodes + 1): + node = session.addnode(name = "n%d" % i) + +`addnode()` creates instances of a *CoreNs3Node*, which we'll cover next. + +CoreNs3Node +----------- + +A *CoreNs3Node* is both a CoreNode and an ns-3 node: + +:: + + class CoreNs3Node(CoreNode, ns.network.Node): + ''' The CoreNs3Node is both a CoreNode backed by a network namespace and + an ns-3 Node simulator object. When linked to simulated networks, the TunTap + device will be used. + + +CoreNs3Net +----------- + +A *CoreNs3Net* derives from *PyCoreNet*. This network exists entirely +in simulation, using the TunTap device to interact between the emulated +and the simulated realm. *Ns3WifiNet* is a specialization of this. + +As an example, this type of code would be typically used to add a WiFi +network to a session: + +:: + + wifi = session.addobj(cls=Ns3WifiNet, name="wlan1", rate="OfdmRate12Mbps") + wifi.setposition(30, 30, 0) + +The above two lines will create a wlan1 object and set its initial canvas +position. Later in the code, the newnetif method of the CoreNs3Node can +be used to add interfaces on particular nodes to this network; e.g.: + +:: + + for i in xrange(1, opt.numnodes + 1): + node = session.addnode(name = "n%d" % i) + node.newnetif(wifi, ["%s/%s" % (prefix.addr(i), prefix.prefixlen)]) + + +.. _ns-3_Mobility: + +Mobility +======== + +.. index:: ns-3 mobility + +Mobility in ns-3 is handled by an object (a MobilityModel) aggregated to +an ns-3 node. The MobilityModel is able to report the position of the +object in the ns-3 space. This is a slightly different model from, for +instance, EMANE, where location is associated with an interface, and the +CORE GUI, where mobility is configured by right-clicking on a WiFi +cloud. + +The CORE GUI supports the ability to render the underlying ns-3 mobility +model, if one is configured, on the CORE canvas. For example, the +example program :file:`ns3wifirandomwalk.py` uses five nodes (by default) in +a random walk mobility model. This can be executed by starting the +core daemon from an ns-3 waf shell: + +:: + + # sudo bash + # cd /path/to/ns-3 + # ./waf shell + # core-daemon + +and in a separate window, starting the CORE GUI (not from a waf shell) +and selecting the +*Execute Python script...* option from the File menu, selecting the +:file:`ns3wifirandomwalk.py` script. + +The program invokes ns-3 mobility through the following statement: + +:: + + session.setuprandomwalkmobility(bounds=(1000.0, 750.0, 0)) + +This can be replaced by a different mode of mobility, in which nodes +are placed according to a constant mobility model, and a special +API call to the CoreNs3Net object is made to use the CORE canvas +positions. + +:: + + - session.setuprandomwalkmobility(bounds=(1000.0, 750.0, 0)) + + session.setupconstantmobility() + + wifi.usecorepositions() + + +In this mode, the user dragging around the nodes on the canvas will +cause CORE to update the position of the underlying ns-3 nodes. + + +.. _ns-3_Under_Development: + +Under Development +================= + +.. index:: limitations with ns-3 + +Support for ns-3 is fairly new and still under active development. +Improved support may be found in the development snapshots available on the web. + +The following limitations will be addressed in future releases: + +* GUI configuration and control - currently ns-3 networks can only be + instantiated from a Python script or from the GUI hooks facility. + +* Model support - currently the WiFi model is supported. The WiMAX and 3GPP LTE + models have been experimented with, but are not currently working with the + TapBridge device. + + diff --git a/doc/performance.rst b/doc/performance.rst new file mode 100644 index 00000000..fe51c685 --- /dev/null +++ b/doc/performance.rst @@ -0,0 +1,60 @@ +.. This file is part of the CORE Manual + (c)2012 the Boeing Company + +.. _Performance: + +.. include:: constants.txt + +*********** +Performance +*********** + +.. index:: performance + +.. index:: number of nodes + +The top question about the performance of CORE is often +*how many nodes can it handle?* The answer depends on several factors: + +* Hardware - the number and speed of processors in the computer, the available + processor cache, RAM memory, and front-side bus speed may greatly affect + overall performance. +* Operating system version - Linux or FreeBSD, and the specific kernel versions + used will affect overall performance. +* Active processes - all nodes share the same CPU resources, so if one or more + nodes is performing a CPU-intensive task, overall performance will suffer. +* Network traffic - the more packets that are sent around the virtual network + increases the amount of CPU usage. +* GUI usage - widgets that run periodically, mobility scenarios, and other GUI + interactions generally consume CPU cycles that may be needed for emulation. + +On a typical single-CPU Xeon 3.0GHz server machine with 2GB RAM running FreeBSD +|BSDVERSION|, we have found it reasonable to run 30-75 nodes running +OSPFv2 and OSPFv3 routing. On this hardware CORE can instantiate 100 or more +nodes, but at that point it becomes critical as to what each of the nodes is +doing. + +.. index:: network performance + +Because this software is primarily a network emulator, the more appropriate +question is *how much network traffic can it handle?* On the same 3.0GHz server +described above, running FreeBSD 4.11, about 300,000 packets-per-second can be +pushed through the system. The number of hops and the size of the packets is +less important. The limiting factor is the number of times that the operating +system needs to handle a packet. The 300,000 pps figure represents the number +of times the system as a whole needed to deal with a packet. As more network +hops are added, this increases the number of context switches and decreases the +throughput seen on the full length of the network path. + +.. NOTE:: + The right question to be asking is *"how much traffic?"*, + not *"how many nodes?"*. + +For a more detailed study of performance in CORE, refer to the following publications: + +* J\. Ahrenholz, T. Goff, and B. Adamson, Integration of the CORE and EMANE Network Emulators, Proceedings of the IEEE Military Communications Conference 2011, November 2011. + +* Ahrenholz, J., Comparison of CORE Network Emulation Platforms, Proceedings of the IEEE Military Communications Conference 2010, pp. 864-869, November 2010. + +* J\. Ahrenholz, C. Danilov, T. Henderson, and J.H. Kim, CORE: A real-time network emulator, Proceedings of IEEE MILCOM Conference, 2008. + diff --git a/doc/scripting.rst b/doc/scripting.rst new file mode 100644 index 00000000..5693702d --- /dev/null +++ b/doc/scripting.rst @@ -0,0 +1,137 @@ +.. This file is part of the CORE Manual + (c)2012 the Boeing Company + +.. _Python_Scripting: + +**************** +Python Scripting +**************** + +.. index:: Python scripting + +CORE can be used via the :ref:`GUI ` or Python scripting. +Writing your own Python scripts offers a rich programming +environment with complete control over all aspects of the emulation. +This chapter provides a brief introduction to scripting. Most of the +documentation is available from sample scripts, +or online via interactive Python. + +.. index:: sample Python scripts + +The best starting point is the sample scripts that are +included with CORE. If you have a CORE source tree, the example script files +can be found under :file:`core/daemon/examples/netns/`. When CORE is installed +from packages, the example script files will be in +:file:`/usr/share/core/examples/netns/` (or the :file:`/usr/local/...` prefix +when installed from source.) For the most part, the example scripts +are self-documenting; see the comments contained within the Python code. + +The scripts should be run with root privileges because they create new +network namespaces. In general, a CORE Python script does not connect to the +CORE daemon, :file:`core-daemon`; in fact, :file:`core-daemon` +is just another Python script +that uses the CORE Python modules and exchanges messages with the GUI. +To connect the GUI to your scripts, see the included sample scripts that +allow for GUI connections. + +Here are the basic elements of a CORE Python script: +:: + + #!/usr/bin/python + + from core import pycore + + session = pycore.Session(persistent=True) + node1 = session.addobj(cls=pycore.nodes.CoreNode, name="n1") + node2 = session.addobj(cls=pycore.nodes.CoreNode, name="n2") + hub1 = session.addobj(cls=pycore.nodes.HubNode, name="hub1") + node1.newnetif(hub1, ["10.0.0.1/24"]) + node2.newnetif(hub1, ["10.0.0.2/24"]) + + node1.icmd(["ping", "-c", "5", "10.0.0.2"]) + session.shutdown() + + +The above script creates a CORE session having two nodes connected with a hub. +The first node pings the second node with 5 ping packets; the result is +displayed on screen. + +A good way to learn about the CORE Python modules is via interactive Python. +Scripts can be run using *python -i*. Cut and paste the simple script +above and you will have two nodes connected by a hub, with one node running +a test ping to the other. + +The CORE Python modules are documented with comments in the code. From an +interactive Python shell, you can retrieve online help about the various +classes and methods; for example *help(pycore.nodes.CoreNode)* or +*help(pycore.Session)*. + +An interactive development environment (IDE) is available for browsing +the CORE source, the +`Eric Python IDE `_. +CORE has a project file that can be opened by Eric, in the source under +:file:`core/daemon/CORE.e4p`. +This IDE +has a class browser for viewing a tree of classes and methods. It features +syntax highlighting, auto-completion, indenting, and more. One feature that +is helpful with learning the CORE Python modules is the ability to generate +class diagrams; right-click on a class, choose *Diagrams*, and +*Class Diagram*. + +.. index:: daemon versus script +.. index:: script versus daemon +.. index:: script with GUI support +.. index:: connecting GUI to script + +.. NOTE:: + The CORE daemon :file:`core-daemon` manages a list of sessions and allows + the GUI to connect and control sessions. Your Python script uses the + same CORE modules but runs independently of the daemon. The daemon + does not need to be running for your script to work. + +The session created by a Python script may be viewed in the GUI if certain +steps are followed. The GUI has a :ref:`File_Menu`, *Execute Python script...* +option for running a script and automatically connecting to it. Once connected, +normal GUI interaction is possible, such as moving and double-clicking nodes, +activating Widgets, etc. + +The script should have a line such as the following for running it from +the GUI. +:: + + if __name__ == "__main__" or __name__ == "__builtin__": + main() + +Also, the script should add its session to the session list after creating it. +A global ``server`` variable is exposed to the script pointing to the +``CoreServer`` object in the :file:`core-daemon`. +:: + + def add_to_server(session): + ''' Add this session to the server's list if this script is executed from + the core-daemon server. + ''' + global server + try: + server.addsession(session) + return True + except NameError: + return False + +:: + + session = pycore.Session(persistent=True) + add_to_server(session) + + +Finally, nodes and networks need to have their coordinates set to something, +otherwise they will be grouped at the coordinates ``<0, 0>``. First sketching +the topology in the GUI and then using the *Export Python script* option may +help here. +:: + + switch.setposition(x=80,y=50) + + +A fully-worked example script that you can launch from the GUI is available +in the file :file:`switch.py` in the examples directory. diff --git a/doc/usage.rst b/doc/usage.rst new file mode 100644 index 00000000..0f55a5d8 --- /dev/null +++ b/doc/usage.rst @@ -0,0 +1,1729 @@ +.. This file is part of the CORE Manual + (c)2012 the Boeing Company + +.. _Using_the_CORE_GUI: + +****************** +Using the CORE GUI +****************** + +.. index:: workflow + +.. index:: how to use CORE + +CORE can be used via the GUI or :ref:`Python_Scripting`. +A typical emulation workflow is outlined in :ref:`emulation-workflow`. +Often the GUI is used to draw nodes and network devices on the canvas. +A Python script could also be written, that imports the CORE Python module, to configure and instantiate nodes and networks. This chapter primarily covers usage of the CORE GUI. + +.. _emulation-workflow: + +.. figure:: figures/core-workflow.* + :alt: Emulation Workflow + :align: center + + Emulation Workflow + +CORE can be customized to perform any action at each phase depicted in :ref:`emulation-workflow`. See the *Hooks...* entry on the +:ref:`Session_Menu` +for details about when these session states are reached. + +.. _Modes_of_Operation: + +Modes of Operation +================== + +.. index:: Execute mode + +.. index:: Edit mode + +The CORE GUI has two primary modes of operation, **Edit** and **Execute** +modes. Running the GUI, by typing ``core-gui`` with no options, starts in Edit +mode. Nodes are drawn on a blank canvas using the toolbar on the left and +configured from right-click menus or by double-clicking them. The GUI does not +need to be run as root. + +Once editing is complete, pressing the green `Start` button (or choosing `Execute` from the `Session` menu) instantiates the topology within the FreeBSD kernel and enters Execute mode. In execute mode, the user can interact with the running emulated machines by double-clicking or right-clicking on them. The editing toolbar disappears and is replaced by an execute toolbar, which provides tools while running the emulation. Pressing the red `Stop` button (or choosing `Terminate` from the `Session` menu) will destroy the running emulation and return CORE to Edit mode. + +CORE can be started directly in Execute mode by specifying ``--start`` and a topology file on the command line: +:: + + core-gui --start ~/.core/configs/myfile.imn + + +Once the emulation is running, the GUI can be closed, and a prompt will appear asking if the emulation should be terminated. The emulation may be left running and the GUI can reconnect to an existing session at a later time. + +.. index:: Batch mode + +.. index:: batch + +There is also a **Batch** mode where CORE runs without the GUI and will instantiate a topology from a given file. This is similar to the ``--start`` option, except that the GUI is not used: +:: + + core-gui --batch ~/.core/configs/myfile.imn + +A session running in batch mode can be accessed using the ``vcmd`` command (or ``vimage`` on FreeBSD), or the GUI can connect to the session. + +.. index:: closebatch + +The session number is printed in the terminal when batch mode is started. This session number can later be used to stop the batch mode session: +:: + + core-gui --closebatch 12345 + + +.. NOTE:: + If you like to use batch mode, consider writing a + CORE :ref:`Python script ` directly. + This enables access to the full power of the Python API. + The :ref:`File_Menu` has a basic `Export Python Script` option for getting + started with a GUI-designed topology. + There is also an `Execute Python script` option for later connecting the + GUI to such scripts. + + + +.. index:: root privileges + +The GUI can be run as a normal user on Linux. For FreeBSD, the GUI should be run +as root in order to start an emulation. + +.. _Toolbar: + +Toolbar +======= + +The toolbar is a row of buttons that runs vertically along the left side of the CORE GUI window. The toolbar changes depending on the mode of operation. + +.. _Editing_Toolbar: + +Editing Toolbar +--------------- + +When CORE is in Edit mode (the default), the vertical Editing Toolbar exists on +the left side of the CORE window. Below are brief descriptions for each toolbar +item, starting from the top. Most of the tools are grouped into related +sub-menus, which appear when you click on their group icon. + +.. |select| image:: figures/select.* +.. |start| image:: figures/start.* +.. |link| image:: figures/link.* +.. |router| image:: figures/router.* +.. |host| image:: figures/host.* +.. |pc| image:: figures/pc.* +.. |mdr| image:: figures/mdr.* +.. |router_green| image:: figures/router_green.* +.. |document_properties| image:: figures/document-properties.* +.. |hub| image:: figures/hub.* +.. |lanswitch| image:: figures/lanswitch.* +.. |wlan| image:: figures/wlan.* +.. |rj45| image:: figures/rj45.* +.. |tunnel| image:: figures/tunnel.* +.. |marker| image:: figures/marker.* +.. |oval| image:: figures/oval.* +.. |rectangle| image:: figures/rectangle.* +.. |text| image:: figures/text.* + +.. index:: Selection Tool + +* |select| *Selection Tool* - default tool for selecting, moving, configuring + nodes + +.. index:: Start button + +* |start| *Start button* - starts Execute mode, instantiates the emulation + +.. index:: Link Tool + +* |link| *Link* - the Link Tool allows network links to be drawn between two + nodes by clicking and dragging the mouse + +.. index:: network-layer virtual nodes +.. index:: Router Tool +.. index:: Host Tool +.. index:: PC Tool +.. index:: MDR Tool +.. index:: PRouter Tool +.. index:: Edit Node Types + +* |router| *Network-layer virtual nodes* + + * |router| *Router* - runs Quagga OSPFv2 and OSPFv3 routing to forward packets + + * |host| *Host* - emulated server machine having a default route, runs SSH + server + + * |pc| *PC* - basic emulated machine having a default route, runs no + processes by default + + * |mdr| *MDR* - runs Quagga OSPFv3 MDR routing for MANET-optimized routing + + * |router_green| *PRouter* - physical router represents a real testbed + machine, :ref:`physical`. + + * |document_properties| *Edit* - edit node types button invokes the CORE Node + Types dialog. New types of nodes may be created having different icons and + names. The default services that are started with each node type can be + changed here. + +.. index:: link-layer virtual nodes +.. index:: Hub Tool +.. index:: Switch Tool +.. index:: Wireless Tool +.. index:: RJ45 Tool +.. index:: Tunnel Tool +.. index:: GRE tunnels + +* |hub| *Link-layer nodes* + + * |hub| *Hub* - the Ethernet hub forwards incoming packets to every + connected node + + * |lanswitch| *Switch* - the Ethernet switch intelligently forwards incoming + packets to attached hosts using an Ethernet address hash table + + * |wlan| *Wireless LAN* - when routers are connected to this WLAN node, they + join a wireless network and an antenna is drawn instead of a connecting + line; the WLAN node typically controls connectivity between attached + wireless nodes based on the distance between them + + * |rj45| *RJ45* - with the RJ45 Physical Interface Tool, emulated nodes can + be linked to real physical interfaces on the Linux or FreeBSD machine; + using this tool, real networks and devices can be physically connected to + the live-running emulation (:ref:`RJ45_Tool`) + + * |tunnel| *Tunnel* - the Tunnel Tool allows connecting together more than + one CORE emulation using GRE tunnels (:ref:`Tunnel_Tool`) + +.. index:: annotation tools +.. index:: Marker Tool +.. index:: background annotations +.. index:: Oval Tool +.. index:: Oval Tool +.. index:: Rectangle Tool +.. index:: Text Tool + +* *Annotation Tools* + + * |marker| *Marker* - for drawing marks on the canvas + + * |oval| *Oval* - for drawing circles on the canvas that appear in the + background + + * |rectangle| *Rectangle* - for drawing rectangles on the canvas that appear + in the background + + * |text| *Text* - for placing text captions on the canvas + +.. _Execution_Toolbar: + +Execution Toolbar +----------------- + +When the Start button is pressed, CORE switches to Execute mode, and the Edit +toolbar on the left of the CORE window is replaced with the Execution toolbar. +Below are the items on this toolbar, starting from the top. + +.. |stop| image:: figures/stop.* +.. |observe| image:: figures/observe.* +.. |plot| image:: figures/plot.* +.. |twonode| image:: figures/twonode.* +.. |run| image:: figures/run.* + +.. index:: Selection Tool + +* |select| *Selection Tool* - in Execute mode, the Selection Tool can be used + for moving nodes around the canvas, and double-clicking on a node will open a + shell window for that node; right-clicking on a node invokes a pop-up menu of + run-time options for that node + +.. index:: Stop button + +* |stop| *Stop button* - stops Execute mode, terminates the emulation, returns + CORE to edit mode. + +* |observe| *Observer Widgets Tool* - clicking on this magnifying glass icon + invokes a menu for easily selecting an Observer Widget. The icon has a darker + gray background when an Observer Widget is active, during which time moving + the mouse over a node will pop up an information display for that node + (:ref:`Observer_Widgets`). + +.. index:: Throughput tool + +* |plot| *Plot Tool* - with this tool enabled, clicking on any link will + activate the Throughput Widget and draw a small, scrolling throughput plot + on the canvas. The plot shows the real-time kbps traffic for that link. + The plots may be dragged around the canvas; right-click on a + plot to remove it. + +.. index:: Marker Tool + +* |marker| *Marker* - for drawing freehand lines on the canvas, useful during + demonstrations; markings are not saved + +.. index:: Two-node Tool +.. index:: traceroute +.. index:: ping +.. index:: route +.. index:: network path +.. index:: path + +* |twonode| *Two-node Tool* - click to choose a starting and ending node, and + run a one-time *traceroute* between those nodes or a continuous *ping -R* + between nodes. The output is displayed in real time in a results box, while + the IP addresses are parsed and the complete network path is highlighted on + the CORE display. + +.. index:: Run Tool +.. index:: run command + +* |run| *Run Tool* - this tool allows easily running a command on all or a + subset of all nodes. A list box allows selecting any of the nodes. A text + entry box allows entering any command. The command should return immediately, + otherwise the display will block awaiting response. The *ping* command, for + example, with no parameters, is not a good idea. The result of each command + is displayed in a results box. The first occurrence of the special text + "NODE" will be replaced with the node name. The command will not be attempted + to run on nodes that are not routers, PCs, or hosts, even if they are + selected. + + +.. _Menubar: + +Menubar +======= + +.. index:: menubar + +.. index:: menus + +.. index:: menu + +The menubar runs along the top of the CORE GUI window and provides access to a +variety of features. Some of the menus are detachable, such as the *Widgets* +menu, by clicking the dashed line at the top. + +.. _File_Menu: + +File Menu +--------- + +.. index:: file menu + +.. index:: detachable menus + +The File menu contains options for manipulating the :file:`.imn` +:ref:`Configuration_Files`. Generally, these menu items should not be used in +Execute mode (:ref:`Modes_of_Operation`.) + +.. index:: New + +* *New* - this starts a new file with an empty canvas. + +.. index:: Open + +* *Open* - invokes the File Open dialog box for selecting a new :file:`.imn` + topology file to open. You can change the default path used for this dialog + in the :ref:`Preferences` Dialog. + +.. index:: Save + +* *Save* - saves the current topology. If you have not yet specified a file + name, the Save As dialog box is invoked. + +.. index:: Save As XML + +* *Save As XML* - invokes the Save As dialog box for selecting a new + :file:`.xml` scenario file for saving the current configuration. + This format includes a Network Plan, Motion Plan, Services Plan, and more + within a `Scenario` XML tag, described in :ref:`Configuration_Files`. + +.. index:: Save As imn + +* *Save As imn* - invokes the Save As dialog box for selecting a new + :file:`.imn` + topology file for saving the current configuration. Files are saved in the + *IMUNES network configuration* file format described in + :ref:`Configuration_Files`. + +.. index:: Export Python script + +* *Export Python script* - prints Python snippets to the console, for inclusion + in a CORE Python script. + +.. index:: Execute Python script + +* *Execute Python script* - invokes a File Open dialog fox for selecting a + Python script to run and automatically connect to. The script must create + a new CORE Session and add this session to the daemon's list of sessions + in order for this to work; see :ref:`Python_Scripting`. + +.. index:: Open current file in editor + +* *Open current file in editor* - this opens the current topology file in the + ``vim`` text editor. First you need to save the file. Once the file has been + edited with a text editor, you will need to reload the file to see your + changes. The text editor can be changed from the :ref:`Preferences` Dialog. + +.. index:: Print +.. index:: printing + +* *Print* - this uses the Tcl/Tk postscript command to print the current canvas + to a printer. A dialog is invoked where you can specify a printing command, + the default being ``lpr``. The postscript output is piped to the print + command. + +.. index:: Save screenshot + +* *Save screenshot* - saves the current canvas as a postscript graphic file. + +.. index:: Recently used files + +* Recently used files - above the Quit menu command is a list of recently use + files, if any have been opened. You can clear this list in the + :ref:`Preferences` dialog box. You can specify the number of files to keep in + this list from the :ref:`Preferences` dialog. Click on one of the file names + listed to open that configuration file. + +.. index:: Quit + +* *Quit* - the Quit command should be used to exit the CORE GUI. CORE may + prompt for termination if you are currently in Execute mode. Preferences and + the recently-used files list are saved. + +.. _Edit_Menu: + +Edit Menu +--------- + +.. index:: undo + +* *Undo* - attempts to undo the last edit in edit mode. + +.. index:: redo + +* *Redo* - attempts to redo an edit that has been undone. + +.. index:: cut +.. index:: copy +.. index:: paste + +* *Cut*, *Copy*, *Paste* - used to cut, copy, and paste a selection. When nodes + are pasted, their node numbers are automatically incremented, and existing + links are preserved with new IP addresses assigned. Services and their + customizations are copied to the new node, but care should be taken as + node IP addresses have changed with possibly old addresses remaining in any + custom service configurations. Annotations may also be copied and pasted. + +.. index:: select all + +* *Select All* - selects all items on the canvas. Selected items can be moved + as a group. + +.. index:: select adjacent + +* *Select Adjacent* - select all nodes that are linked to the already selected + node(s). For wireless nodes this simply selects the WLAN node(s) that the + wireless node belongs to. You can use this by clicking on a node and pressing + CTRL+N to select the adjacent nodes. + +.. index:: find + +* *Find...* - invokes the *Find* dialog box. The Find dialog can be used to + search for nodes by name or number. Results are listed in a table that + includes the node or link location and details such as IP addresses or + link parameters. Clicking on a result will focus the canvas on that node + or link, switching canvases if necessary. + +.. index:: clear marker +.. index:: marker, erasing + +* *Clear marker* - clears any annotations drawn with the marker tool. Also + clears any markings used to indicate a node's status. + +* *Preferences...* - invokes the :ref:`Preferences` dialog box. + +.. _Canvas_Menu: + +Canvas Menu +----------- + +.. index:: canvas + +The canvas menu provides commands for adding, removing, changing, and switching to different editing canvases, :ref:`Multiple_Canvases`. + +.. index:: canvas, new + +* *New* - creates a new empty canvas at the right of all existing canvases. + +.. index:: manage canvases + +* *Manage...* - invokes the *Manage Canvases* dialog box, where canvases may be + renamed and reordered, and you can easily switch to one of the canvases by + selecting it. + +.. index:: canvas, deleting + +* *Delete* - deletes the current canvas and all items that it contains. + +.. index:: canvas, resizing +.. index:: resizing canvas +.. index:: canvas size and scale +.. index:: coordinate systems +.. index:: latitude and longitude + +* *Size/scale...* - invokes a Canvas Size and Scale dialog that allows + configuring the canvas size, scale, and geographic reference point. The size + controls allow changing the width and height of the current canvas, in pixels + or meters. The scale allows specifying how many meters are equivalent to 100 + pixels. The reference point controls specify the latitude, longitude, and + altitude reference point used to convert between geographic and Cartesian + coordinate systems. By clicking the *Save as default* option, all new + canvases will be created with these properties. The default canvas size can + also be changed in the :ref:`Preferences` dialog box. + +* *Wallpaper...* - used for setting the canvas background image, + :ref:`Customizing_your_Topology's_Look`. + +.. index:: canvas, switching + +* *Previous*, *Next*, *First*, *Last* - used for switching the active canvas to + the first, last, or adjacent canvas. + +.. _View_Menu: + +View Menu +--------- + +.. index:: view menu + +The View menu features items for controlling what is displayed on the drawing +canvas. + +.. index:: show menu +.. index:: hide items +.. index:: show items +.. index:: decluttering the display + +* *Show* - opens a submenu of items that can be displayed or hidden, such as + interface names, addresses, and labels. Use these options to help declutter + the display. These options are generally saved in the topology + files, so scenarios have a more consistent look when copied from one computer + to another. + +.. index:: show hidden nodes +.. index:: hide nodes + +* *Show hidden nodes* - reveal nodes that have been hidden. Nodes are hidden by + selecting one or more nodes, right-clicking one and choosing *hide*. + +.. index:: locked view + +* *Locked* - toggles locked view; when the view is locked, nodes cannot be + moved around on the canvas with the mouse. This could be useful when + sharing the topology with someone and you do not expect them to change + things. + +.. index:: 3D GUI +.. index:: SDT3D + +* *3D GUI...* - launches a 3D GUI by running the command defined under + :ref:`Preferences`, *3D GUI command*. This is typically a script that runs + the SDT3D display. SDT is the Scripted Display Tool from NRL that is based on + NASA's Java-based WorldWind virtual globe software. + +.. index:: zoom in + +* *Zoom In* - magnifies the display. You can also zoom in by clicking *zoom + 100%* label in the status bar, or by pressing the **+** (plus) key. + +* *Zoom Out* - reduces the size of the display. You can also zoom out by + right-clicking *zoom 100%* label in the status bar or by pressing the **-** + (minus) key. + +.. _Tools_Menu: + +Tools Menu +---------- + +.. index:: tools menu + +The tools menu lists different utility functions. + +.. index:: autorearrange all +.. index:: autorearrange mode + +* *Autorearrange all* - automatically arranges all nodes on the canvas. Nodes + having a greater number of links are moved to the center. This mode can + continue to run while placing nodes. To turn off this autorearrange mode, + click on a blank area of the canvas with the select tool, or choose this menu + option again. + +.. index:: autorearrange selected + +* *Autorearrange selected* - automatically arranges the selected nodes on the + canvas. + +.. index:: align to grid + +* *Align to grid* - moves nodes into a grid formation, starting with the + smallest-numbered node in the upper-left corner of the canvas, arranging + nodes in vertical columns. + +.. index:: Traffic Flows +.. index:: traffic + +* *Traffic...* - invokes the CORE Traffic Flows dialog box, which allows + configuring, starting, and stopping MGEN traffic flows for the emulation. + +.. index:: IP Addresses dialog + +* *IP addresses...* - invokes the IP Addresses dialog box for configuring which + IPv4/IPv6 prefixes are used when automatically addressing new interfaces. + +.. index:: MAC Addresses dialog + +* *MAC addresses...* - invokes the MAC Addresses dialog box for configuring the + starting number used as the lowest byte when generating each interface MAC + address. This value should be changed when tunneling between CORE emulations + to prevent MAC address conflicts. + +.. index:: hosts file +.. index:: Build hosts File dialog + +* *Build hosts file...* - invokes the Build hosts File dialog box for + generating :file:`/etc/hosts` file entries based on IP addresses used in the + emulation. + +.. index:: renumber nodes + +* *Renumber nodes...* - invokes the Renumber Nodes dialog box, which allows + swapping one node number with another in a few clicks. + +.. index:: ns2imunes converter +.. index:: topology partitioning + +* *Experimental...* - menu of experimental options, such as a tool to convert + ns-2 scripts to IMUNES imn topologies, supporting only basic ns-2 + functionality, and a tool for automatically dividing up a topology into + partitions. + +.. index:: topology generator +.. index:: topogen +.. index:: random +.. index:: grid topology +.. index:: connected grid topology +.. index:: chain +.. index:: star +.. index:: cycle +.. index:: wheel +.. index:: cube +.. index:: clique +.. index:: bipartite + +* *Topology generator* - opens a submenu of topologies to generate. You can + first select the type of node that the topology should consist of, or routers + will be chosen by default. Nodes may be randomly placed, aligned in grids, or + various other topology patterns. + + * *Random* - nodes are randomly placed about the canvas, but are not linked + together. This can be used in conjunction with a WLAN node + (:ref:`Editing_Toolbar`) to quickly create a wireless + network. + * *Grid* - nodes are placed in horizontal rows starting in the upper-left + corner, evenly spaced to the right; nodes are not linked to each other. + * *Connected Grid* - nodes are placed in an N x M (width and height) + rectangular grid, and each node is linked to the node above, below, left + and right of itself. + * *Chain* - nodes are linked together one after the other in a chain. + * *Star* - one node is placed in the center with N nodes surrounding it in a + circular pattern, with each node linked to the center node + * *Cycle* - nodes are arranged in a circular pattern with every node + connected to its neighbor to form a closed circular path. + * *Wheel* - the wheel pattern links nodes in a combination of both Star and + Cycle patterns. + * *Cube* - generate a cube graph of nodes + * *Clique* - creates a clique graph of nodes, where every node is connected + to every other node + * *Bipartite* - creates a bipartite graph of nodes, having two disjoint sets + of vertices. + +* *Debugger...* - opens the CORE Debugger window for executing arbitrary Tcl/Tk + commands. + +.. _Widgets_Menu: + +Widgets Menu +------------ + +.. index:: widget + +.. index:: widgets + +*Widgets* are GUI elements that allow interaction with a running emulation. +Widgets typically automate the running of commands on emulated nodes to report +status information of some type and display this on screen. + +.. _Periodic_Widgets: + +Periodic Widgets +^^^^^^^^^^^^^^^^ + +These Widgets are those available from the main *Widgets* menu. More than one +of these Widgets may be run concurrently. An event loop fires once every second +that the emulation is running. If one of these Widgets is enabled, its periodic +routine will be invoked at this time. Each Widget may have a configuration +dialog box which is also accessible from the *Widgets* menu. + +Here are some standard widgets: + +.. index:: Adjacency Widget + +.. index:: router adjacency + +.. index:: OSPF neighbors + +* *Adjacency* - displays router adjacency states for Quagga's OSPFv2 and OSPFv3 + routing protocols. A line is drawn from each router halfway to the router ID + of an adjacent router. The color of the line is based on the OSPF adjacency + state such as Two-way or Full. To learn about the different colors, see the + *Configure Adjacency...* menu item. The :file:`vtysh` command is used to + dump OSPF neighbor information. + Only half of the line is drawn because each + router may be in a different adjacency state with respect to the other. + +.. index:: Throughput Widget + +.. index:: throughput + +* *Throughput* - displays the kilobits-per-second throughput above each link, + using statistics gathered from the ng_pipe Netgraph node that implements each + link. If the throughput exceeds a certain threshold, the link will become + highlighted. For wireless nodes which broadcast data to all nodes in range, + the throughput rate is displayed next to the node and the node will become + circled if the threshold is exceeded. *Note: under FreeBSD, the + Throughput Widget will + display "0.0 kbps" on all links that have no configured link effects, because + of the way link statistics are counted; to fix this, add a small delay or a + bandwidth limit to each link.* + +.. _Observer_Widgets: + +Observer Widgets +^^^^^^^^^^^^^^^^ + +These Widgets are available from the *Observer Widgets* submenu of the +*Widgets* menu, and from the Widgets Tool on the toolbar +(:ref:`Execution_Toolbar`). Only one Observer Widget may +be used at a time. Mouse over a node while the session is running to pop up +an informational display about that node. + +Available Observer Widgets include IPv4 and IPv6 routing tables, socket +information, list of running processes, and OSPFv2/v3 neighbor information. + +.. index:: editing Observer Widgets + +Observer Widgets may be edited by the user and rearranged. Choosing *Edit...* +from the Observer Widget menu will invoke the Observer Widgets dialog. A list +of Observer Widgets is displayed along with up and down arrows for rearranging +the list. Controls are available for renaming each widget, for changing the +command that is run during mouse over, and for adding and deleting items from +the list. Note that specified commands should return immediately to avoid +delays in the GUI display. Changes are saved to a :file:`widgets.conf` file in +the CORE configuration directory. + +.. _Session_Menu: + +Session Menu +--------------- + +The Session Menu has entries for starting, stopping, and managing sessions, +in addition to global options such as node types, comments, hooks, servers, +and options. + +.. index:: start + +.. index:: stop + +* *Start* or *Stop* - this starts or stops the emulation, performing the same + function as the green Start or red Stop button. + +.. index:: Change sessions + +.. index:: CORE Sessions Dialog + +* *Change sessions...* - invokes the CORE Sessions dialog box containing a list + of active CORE sessions in the daemon. Basic session information such as + name, node count, start time, and a thumbnail are displayed. This dialog + allows connecting to different sessions, shutting them down, or starting + a new session. + +.. index:: Edit Node Types + +* *Node types...* - invokes the CORE Node Types dialog, performing the same + function as the Edit button on the Network-Layer Nodes toolbar. + +.. index:: comments + +.. index:: CORE Session Comments window + +* *Comments...* - invokes the CORE Session Comments window where optional + text comments may be specified. These comments are saved at the top of the + configuration file, and can be useful for describing the topology or how + to use the network. + +.. index:: script +.. index:: hooks +.. index:: hook scripts +.. index:: CORE Session Hooks window +.. index:: session state +.. index:: states +.. index:: hook states + +* *Hooks...* - invokes the CORE Session Hooks window where scripts may be + configured for a particular session state. The top of the window has a list + of configured hooks, and buttons on the bottom left allow adding, editing, + and removing hook scripts. The new or edit button will open a hook script + editing window. A hook script is a shell script invoked on the host (not + within a virtual node). + + The script is started at the session state specified in the drop down: + + * *definition* - used by the GUI to tell the backend to clear any state. + + * *configuration* - when the user presses the *Start* button, node, link, and + other configuration data is sent to the backend. This state is also + reached when the user customizes a service. + + * *instantiation* - after + configuration data has been sent, just before the nodes are created. + + * *runtime* - all nodes and networks have been + built and are running. (This is the same state at which + the previously-named *global experiment script* was run.) + + * *datacollect* - the user has pressed the + *Stop* button, but before services have been stopped and nodes have been + shut down. This is a good time to collect log files and other data from the + nodes. + + * *shutdown* - all nodes and networks have been shut down and destroyed. + +* *Reset node positions* - if you have moved nodes around + using the mouse or by using a mobility module, choosing this item will reset + all nodes to their original position on the canvas. The node locations are + remembered when you first press the Start button. + +* *Emulation servers...* - invokes the CORE emulation + servers dialog for configuring :ref:`Distributed_Emulation`. + +* *Change Sessions...* - invokes the Sessions dialog for switching between + different + running sessions. This dialog is presented during startup when one or + more sessions are already running. + +* *Options...* - presents per-session options, such as the IPv4 prefix to be + used, if any, for a control network + (see :ref:`Communicating_with_the_Host_Machine`); the ability to preserve + the session directory; and an on/off switch for SDT3D support. + +.. _Help_Menu: + +Help Menu +--------- + + +* *Online manual (www)*, *CORE website (www)*, *Mailing list (www)* - these + options attempt to open a web browser with the link to the specified web + resource. + +* *About* - invokes the About dialog box for viewing version information + +.. _Connecting_with_Physical_Networks: + +Connecting with Physical Networks +================================= + +CORE's emulated networks run in real time, so they can be connected to live +physical networks. The RJ45 tool and the Tunnel tool help with connecting to +the real world. These tools are available from the *Link-layer nodes* menu. + +When connecting two or more CORE emulations together, MAC address collisions +should be avoided. CORE automatically assigns MAC addresses to interfaces when +the emulation is started, starting with ``00:00:00:aa:00:00`` and incrementing +the bottom byte. The starting byte should be changed on the second CORE machine +using the *MAC addresses...* option from the *Tools* menu. + +.. _RJ45_Tool: + +RJ45 Tool +--------- + +.. index:: RJ45 Tool + +The RJ45 node in CORE represents a physical interface on the real CORE machine. +Any real-world network device can be connected to the interface and communicate +with the CORE nodes in real time. + +The main drawback is that one physical interface is required for each +connection. When the physical interface is assigned to CORE, it may not be used +for anything else. Another consideration is that the computer or network that +you are connecting to must be co-located with the CORE machine. + +To place an RJ45 connection, click on the *Link-layer nodes* toolbar and select +the *RJ45 Tool* from the submenu. Click on the canvas near the node you want to +connect to. This could be a router, hub, switch, or WLAN, for example. Now +click on the *Link Tool* and draw a link between the RJ45 and the other node. +The RJ45 node will display "UNASSIGNED". Double-click the RJ45 node to assign a +physical interface. A list of available interfaces will be shown, and one may +be selected by double-clicking its name in the list, or an interface name may +be entered into the text box. + +.. NOTE:: + When you press the Start button to instantiate your topology, the + interface assigned to the RJ45 will be connected to the CORE topology. The + interface can no longer be used by the system. For example, if there was an + IP address assigned to the physical interface before execution, the address + will be removed and control given over to CORE. No IP address is needed; the + interface is put into promiscuous mode so it will receive all packets and + send them into the emulated world. + +.. index:: VLAN + +.. index:: VLANning + +.. index:: VLAN devices + +Multiple RJ45 nodes can be used within CORE and assigned to the same physical +interface if 802.1x VLANs are used. This allows for more RJ45 nodes than +physical ports are available, but the (e.g. switching) hardware connected to +the physical port must support the VLAN tagging, and the available bandwidth +will be shared. + +You need to create separate VLAN virtual devices on the Linux or FreeBSD host, +and then assign these devices to RJ45 nodes inside of CORE. The VLANning is +actually performed outside of CORE, so when the CORE emulated node receives a +packet, the VLAN tag will already be removed. + +Here are example commands for creating VLAN devices under Linux: + :: + + ip link add link eth0 name eth0.1 type vlan id 1 + ip link add link eth0 name eth0.2 type vlan id 2 + ip link add link eth0 name eth0.3 type vlan id 3 + + + +.. _Tunnel_Tool: + +Tunnel Tool +----------- + +.. index:: Tunnel Tool + +.. index:: GRE tunnels + +The tunnel tool builds GRE tunnels between CORE emulations or other hosts. +Tunneling can be helpful when the number of physical interfaces is limited or +when the peer is located on a different network. Also a physical interface does +not need to be dedicated to CORE as with the RJ45 tool. + +The peer GRE tunnel endpoint may be another CORE machine or a (Linux, FreeBSD, +etc.) host that supports GRE tunneling. When placing a Tunnel node, initially +the node will display "UNASSIGNED". This text should be replaced with the IP +address of the tunnel peer. This is the IP address of the other CORE machine or +physical machine, not an IP address of another virtual node. + +.. NOTE:: + Be aware of possible MTU issues with GRE devices. The *gretap* device + has an interface MTU of 1,458 bytes; when joined to a Linux bridge, the + bridge's MTU + becomes 1,458 bytes. The Linux bridge will not perform fragmentation for + large packets if other bridge ports have a higher MTU such as 1,500 bytes. + +The GRE key is used to identify flows with GRE tunneling. This allows multiple +GRE tunnels to exist between that same pair of tunnel peers. A unique number +should be used when multiple tunnels are used with the same peer. When +configuring the peer side of the tunnel, ensure that the matching keys are +used. + +.. index:: gretap +.. index:: ip link command + +Here are example commands for building the other end of a tunnel on a Linux +machine. In this example, a router in CORE has the virtual address +``10.0.0.1/24`` and the CORE host machine has the (real) address +``198.51.100.34/24``. The Linux box +that will connect with the CORE machine is reachable over the (real) network +at ``198.51.100.76/24``. +The emulated router is linked with the Tunnel Node. In the +Tunnel Node configuration dialog, the address ``198.51.100.76`` is entered, with +the key set to ``1``. The gretap interface on the Linux box will be assigned +an address from the subnet of the virtual router node, +``10.0.0.2/24``. + + :: + + # these commands are run on the tunnel peer + sudo ip link add gt0 type gretap remote 198.51.100.34 local 198.51.100.76 key 1 + sudo ip addr add 10.0.0.2/24 dev gt0 + sudo ip link set dev gt0 up + + +Now the virtual router should be able to ping the Linux machine: + + :: + + # from the CORE router node + ping 10.0.0.2 + + +And the Linux machine should be able to ping inside the CORE emulation: + + :: + + # from the tunnel peer + ping 10.0.0.1 + + +To debug this configuration, ``tcpdump`` can be run on the gretap devices, or +on the physical interfaces on the CORE or Linux machines. Make sure that a +firewall is not blocking the GRE traffic. + + +.. _Communicating_with_the_Host_Machine: + +Communicating with the Host Machine +----------------------------------- + +.. index:: controlnet +.. index:: control network +.. index:: X11 applications +.. index:: node access to the host +.. index:: host access to a node + +The host machine that runs the CORE GUI and/or daemon is not necessarily +accessible from a node. Running an X11 application on a node, for example, +requires some channel of communication for the application to connect with +the X server for graphical display. There are several different ways to +connect from the node to the host and vice versa. + +Under the :ref:`Session_Menu`, the *Options...* dialog has an option to set +a control network prefix. A default value for the control network may also +be specified by setting the ``controlnet =`` line in the +:file:`/etc/core/core.conf` configuration file which new +sessions will use by default. This can be set to a network prefix such as +``172.16.0.0/24``. A bridge will be created on the host machine having the last +address in the prefix range (e.g. ``172.16.0.254``), and each node will have +an extra ``ctrl0`` control interface configured with an address corresponding +to its node number (e.g. ``172.16.0.3`` for ``n3``.) + +.. NOTE:: + If you have a large scenario with more than 253 nodes, use a control + network prefix that allows more than the suggested ``/24``, such as ``/23`` + or greater. + + +.. index:: X11 forwarding +.. index:: SSH X11 forwarding + +To run an X11 application on the node, the ``SSH`` service can be enabled on +the node, and SSH with X11 forwarding can be used from the host to the node: + +:: + + # SSH from host to node n5 to run an X11 app + ssh -X 172.16.0.5 xclock + +.. index:: dummy interface +.. index:: dummy0 + +There are still other ways to connect a host with a node. The :ref:`RJ45_Tool` +can be used in conjunction with a dummy interface to access a node: + +:: + + sudo modprobe dummy numdummies=1 + +A ``dummy0`` interface should appear on the host. Use the RJ45 tool assigned +to ``dummy0``, and link this to a node in your scenario. After starting the +session, configure an address on the host. + +:: + + sudo brctl show + # determine bridge name from the above command + # assign an IP address on the same network as the linked node + sudo ifconfig b.48304.34658 10.0.1.2/24 + +In the example shown above, the host will have the address ``10.0.1.2`` and +the node linked to the RJ45 may have the address ``10.0.1.1``. + +Note that the :file:`coresendmsg` utility can be used for the node to send +messages to the CORE daemon running on the host (if the ``listenaddr = 0.0.0.0`` is set in the :file:`/etc/core/core.conf` file) to interact with the running +emulation. For example, a node may move itself or other nodes, or change +its icon based on some node state. + + +.. _Building_Sample_Networks: + +Building Sample Networks +======================== + + +.. _Wired_Networks: + +Wired Networks +-------------- + +.. index:: links + +.. index:: wired links + +.. index:: Ethernet + +Wired networks are created using the *Link Tool* to draw a link between two +nodes. This automatically draws a red line representing an Ethernet link and +creates new interfaces on network-layer nodes. + +.. index:: link configuration + +Double-click on the link to invoke the *link configuration* dialog box. Here +you can change the Bandwidth, Delay, PER (Packet Error Rate), and Duplicate +rate parameters for that link. You can also modify the color and width of the +link, affecting its display. + +.. index:: hub + +.. index:: switch + +.. index:: lanswitch + +Link-layer nodes are provided for modeling wired networks. These do not create +a separate network stack when instantiated, but are implemented using bridging +(Linux) or Netgraph nodes (FreeBSD). These are the hub, switch, and wireless +LAN nodes. The hub copies each packet from the incoming link to every connected +link, while the switch behaves more like an Ethernet switch and keeps track of +the Ethernet address of the connected peer, forwarding unicast traffic only to +the appropriate ports. + +The wireless LAN (WLAN) is covered in the next section. + +.. _Wireless_Networks: + +Wireless Networks +----------------- + +.. index:: WLAN + +.. index:: wireless + +.. index:: wireless LAN + +The wireless LAN node allows you to build wireless networks where moving nodes +around affects the connectivity between them. The wireless LAN, or WLAN, node +appears as a small cloud. The WLAN offers several levels of wireless emulation +fidelity, depending on your modeling needs. + +The WLAN tool can be extended with plug-ins for different levels of wireless +fidelity. The basic on/off range is the default setting available on all +platforms. Other plug-ins offer higher fidelity at the expense of greater +complexity and CPU usage. The availability of certain plug-ins varies depending +on platform. See the table below for a brief overview of wireless model types. + +============= ===================== ======== ================================================================== +Model Type Supported Platform(s) Fidelity Description +============= ===================== ======== ================================================================== +Basic on/off Linux, FreeBSD Low Linux Ethernet bridging with ebtables (Linux) or ng_wlan (FreeBSD) +EMANE Plug-in Linux High TAP device connected to EMANE emulator with pluggable MAC and PHY radio types +============= ===================== ======== ================================================================== + + +To quickly build a wireless network, you can first place several router nodes +onto the canvas. If you have the +:ref:`Quagga MDR software ` installed, it is +recommended that you use the *mdr* node type for reduced routing overhead. Next +choose the *wireless LAN* from the *Link-layer nodes* submenu. First set the +desired WLAN parameters by double-clicking the cloud icon. Then you can link +all of the routers by right-clicking on the WLAN and choosing *Link to all +routers*. + +Linking a router to the WLAN causes a small antenna to appear, but no red link +line is drawn. Routers can have multiple wireless links and both wireless and +wired links (however, you will need to manually configure route +redistribution.) The mdr node type will generate a routing configuration that +enables OSPFv3 with MANET extensions. This is a Boeing-developed extension to +Quagga's OSPFv3 that reduces flooding overhead and optimizes the flooding +procedure for mobile ad-hoc (MANET) networks. + +.. index:: basic on/off range + +The default configuration of the WLAN is set to use the basic range model, +using the *Basic* tab in the WLAN configuration dialog. Having this model +selected causes :file:`core-daemon` to calculate the distance between +nodes based +on screen pixels. A numeric range in screen pixels is set for the wireless +network using the *Range* slider. When two wireless nodes are within range of +each other, a green line is drawn between them and they are linked. Two +wireless nodes that are farther than the range pixels apart are not linked. +During Execute mode, users may move wireless nodes around by clicking and +dragging them, and wireless links will be dynamically made or broken. + +.. index:: EMANE tab + +The *EMANE* tab lists available EMANE models to use for wireless networking. +See the :ref:`EMANE` chapter for details on using EMANE. + +On FreeBSD, the WLAN node is realized using the *ng_wlan* Netgraph node. + +.. _Mobility_Scripting: + +Mobility Scripting +------------------ + +.. index:: scripting + +.. index:: script + +.. index:: mobility script + +.. index:: mobility scripting + +CORE has a few ways to script mobility. + +* ns-2 script - the script specifies either absolute positions + or waypoints with a velocity. Locations are given with Cartesian coordinates. +* CORE API - an external entity can move nodes by sending CORE API Node + messages with updated X,Y coordinates; the :file:`coresendmsg` utility + allows a shell script to generate these messages. +* EMANE events - see :ref:`EMANE` for details on using EMANE scripts to move + nodes around. Location information is typically given as latitude, longitude, + and altitude. + +For the first method, you can create a mobility script using a text +editor, or using a tool such as `BonnMotion `_, and associate the script with one of the wireless +using the WLAN configuration dialog box. Click the *ns-2 mobility script...* +button, and set the *mobility script file* field in the resulting *ns2script* +configuration dialog. + +Here is an example for creating a BonnMotion script for 10 nodes: + +:: + + bm -f sample RandomWaypoint -n 10 -d 60 -x 1000 -y 750 + bm NSFile -f sample + # use the resulting 'sample.ns_movements' file in CORE + + +When the Execute mode is started and one of the WLAN nodes has a mobility +script, a mobility script window will appear. This window contains controls for +starting, stopping, and resetting the running time for the mobility script. The +*loop* checkbox causes the script to play continuously. The *resolution* text +box contains the number of milliseconds between each timer event; lower values +cause the mobility to appear smoother but consumes greater CPU time. + +The format of an ns-2 mobility script looks like: +:: + + # nodes: 3, max time: 35.000000, max x: 600.00, max y: 600.00 + $node_(2) set X_ 144.0 + $node_(2) set Y_ 240.0 + $node_(2) set Z_ 0.00 + $ns_ at 1.00 "$node_(2) setdest 130.0 280.0 15.0" + + +The first three lines set an initial position for node 2. The last line in the +above example causes node 2 to move towards the destination `(130, 280)` at +speed `15`. All units are screen coordinates, with speed in units per second. +The +total script time is learned after all nodes have reached their waypoints. +Initially, the time slider in the mobility script dialog will not be +accurate. + +Examples mobility scripts (and their associated topology files) can be found in the :file:`configs/` directory (see :ref:`Configuration_Files`). + +.. _Multiple_Canvases: + +Multiple Canvases +----------------- + +.. index:: canvas + +CORE supports multiple canvases for organizing emulated nodes. Nodes running on +different canvases may be linked together. + +To create a new canvas, choose *New* from the *Canvas* menu. A new canvas tab +appears in the bottom left corner. Clicking on a canvas tab switches to that +canvas. Double-click on one of the tabs to invoke the *Manage Canvases* dialog +box. Here, canvases may be renamed and reordered, and you can easily switch to +one of the canvases by selecting it. + +Each canvas maintains its own set of nodes and annotations. To link between +canvases, select a node and right-click on it, choose *Create link to*, choose +the target canvas from the list, and from that submenu the desired node. A +pseudo-link will be drawn, representing the link between the two nodes on +different canvases. Double-clicking on the label at the end of the arrow will +jump to the canvas that it links. + +.. _Distributed_Emulation: + +Distributed Emulation +--------------------- + +.. index:: distributed emulation + +.. index:: headless mode + +.. index:: server + +.. index:: emulation server + +A large emulation scenario can be deployed on multiple emulation servers and +controlled by a single GUI. The GUI, representing the entire topology, can be +run on one of the emulation servers or on a separate machine. Emulations can be +distributed on Linux, while tunneling support has not been added yet for +FreeBSD. + +Each machine that will act as an emulation server needs to have CORE installed. +It is not important to have the GUI component but the CORE Python daemon +:file:`core-daemon` needs to be installed. Set the ``listenaddr`` line in the +:file:`/etc/core/core.conf` configuration file so that the CORE Python +daemon will respond to commands from other servers: +:: + + ### core-daemon configuration options ### + [core-daemon] + pidfile = /var/run/core-daemon.pid + logfile = /var/log/core-daemon.log + listenaddr = 0.0.0.0 + + +The ``listenaddr`` should be set to the address of the interface that should +receive CORE API control commands from the other servers; setting ``listenaddr += 0.0.0.0`` causes the Python daemon to listen on all interfaces. CORE uses TCP +port 4038 by default to communicate from the controlling machine (with GUI) to +the emulation servers. Make sure that firewall rules are configured as +necessary to allow this traffic. + +In order to easily open shells on the emulation servers, the servers should be +running an SSH server, and public key login should be enabled. This is +accomplished by generating an SSH key for your user if you do not already have +one (use ``ssh-keygen -t rsa``), and then copying your public key to the +authorized_keys file on the server (for example, ``ssh-copy-id user@server`` or +``scp ~/.ssh/id_rsa.pub server:.ssh/authorized_keys``.) When double-clicking on +a node during runtime, instead of opening a local shell, the GUI will attempt +to SSH to the emulation server to run an interactive shell. The user name used +for these remote shells is the same user that is running the CORE GUI. + +.. HINT:: + Here is a quick distributed emulation checklist. + + 1. Install the CORE daemon on all servers. + 2. Configure public-key SSH access to all servers (if you want to use + double-click shells or Widgets.) + 3. Set ``listenaddr=0.0.0.0`` in all of the server's core.conf files, + then start (or restart) the daemon. + 4. Select nodes, right-click them, and choose *Assign to* to assign + the servers (add servers through *Session*, *Emulation Servers...*) + 5. Press the *Start* button to launch the distributed emulation. + + +Servers are configured by choosing *Emulation servers...* from the *Session* +menu. Servers parameters are configured in the list below and stored in a +*servers.conf* file for use in different scenarios. The IP address and port of +the server must be specified. The name of each server will be saved in the +topology file as each node's location. + +The user needs to assign nodes to emulation servers in the scenario. Making no +assignment means the node will be emulated locally, on the same machine that +the GUI is running. In the configuration window of every node, a drop-down box +located between the *Node name* and the *Image* button will select the name of +the emulation server. By default, this menu shows *(none)*, indicating that the +node will be emulated locally. When entering Execute mode, the CORE GUI will +deploy the node on its assigned emulation server. + +Another way to assign emulation servers is to select one or more nodes using +the select tool (shift-click to select multiple), and right-click one of the +nodes and choose *Assign to...*. + +The *CORE emulation servers* dialog box may also be used to assign nodes to +servers. The assigned server name appears in parenthesis next to the node name. +To assign all nodes to one of the servers, click on the server name and then +the *all nodes* button. Servers that have assigned nodes are shown in blue in +the server list. Another option is to first select a subset of nodes, then open +the *CORE emulation servers* box and use the *selected nodes* button. + +The emulation server machines should be reachable on the specified port and via +SSH. SSH is used when double-clicking a node to open a shell, the GUI will open +an SSH prompt to that node's emulation server. Public-key authentication should +be configured so that SSH passwords are not needed. + +If there is a link between two nodes residing on different servers, the GUI +will draw the link with a dashed line, and automatically create necessary +tunnels between the nodes when executed. Care should be taken to arrange the +topology such that the number of tunnels is minimized. The tunnels carry data +between servers to connect nodes as specified in the topology. +These tunnels are created using GRE tunneling, similar to the +:ref:`Tunnel_Tool`. + +.. index:: distributed wireless + +Wireless nodes, i.e. those connected to a WLAN node, can be assigned to +different emulation servers and participate in the same wireless network +only if an +EMANE model is used for the WLAN. See :ref:`Distributed_EMANE` for more +details. The basic range model does not work across multiple servers due +to the Linux bridging and ebtables rules that are used. + +.. NOTE:: + The basic range wireless model does not support distributed emulation, + but EMANE does. + + + +.. index:: node services +.. index:: services +.. _Services: + +Services +======== + +CORE uses the concept of services to specify what processes or scripts run on a +node when it is started. Layer-3 nodes such as routers and PCs are defined by +the services that they run. The :ref:`Quagga_Routing_Software`, for example, +transforms a node into a router. + +Services may be customized for each node, or new custom services can be +created. New node types can be created each having a different name, icon, and +set of default services. Each service defines the per-node directories, +configuration files, startup index, starting commands, validation commands, +shutdown commands, and meta-data associated with a node. + +.. NOTE:: + Network namespace nodes do not undergo the normal Linux boot process + using the ``init``, ``upstart``, or ``systemd`` frameworks. These + lightweight nodes use configured CORE *services*. + + +.. _Default_Services_and_Node_Types: + +Default Services and Node Types +------------------------------- + +Here are the default node types and their services: + +.. index:: Xen +.. index:: physical nodes + +* *router* - zebra, OSFPv2, OSPFv3, vtysh, and IPForward services for IGP + link-state routing. +* *host* - DefaultRoute and SSH services, representing an SSH server having a + default route when connected directly to a router. +* *PC* - DefaultRoute service for having a default route when connected + directly to a router. +* *mdr* - zebra, OSPFv3MDR, vtysh, and IPForward services for + wireless-optimized MANET Designated Router routing. +* *prouter* - a physical router, having the same default services as the + *router* node type; for incorporating Linux testbed machines into an + emulation, the :ref:`Machine_Types` is set to :ref:`physical`. +* *xen* - a Xen-based router, having the same default services as the + *router* node type; for incorporating Xen domUs into an emulation, the + :ref:`Machine_Types` is set to :ref:`xen`, and different *profiles* are + available. + +Configuration files can be automatically generated by each service. For +example, CORE automatically generates routing protocol configuration for the +router nodes in order to simplify the creation of virtual networks. + +To change the services associated with a node, double-click on the node to +invoke its configuration dialog and click on the *Services...* button, +or right-click a node a choose *Services...* from the menu. +Services are enabled or disabled by clicking on their names. The button next to +each service name allows you to customize all aspects of this service for this +node. For example, special route redistribution commands could be inserted in +to the Quagga routing configuration associated with the zebra service. + +.. index:: default services + +To change the default services associated with a node type, use the Node Types +dialog available from the *Edit* button at the end of the Layer-3 nodes +toolbar, or choose *Node types...* from the *Session* menu. Note that +any new services selected are not applied to existing nodes if the nodes have +been customized. + +.. index:: nodes.conf + +The node types are saved in a :file:`~/.core/nodes.conf` file, not with the +`.imn` file. Keep this in mind when changing the default services for +existing node types; it may be better to simply create a new node type. It is +recommended that you do not change the default built-in node types. The +:file:`nodes.conf` file can be copied between CORE machines to save your custom +types. + +.. _Customizing_a_Service: + +Customizing a Service +--------------------- + +.. index:: customizing services + +.. index:: service customization dialog + +A service can be fully customized for a particular node. From the node's +configuration dialog, click on the button next to the service name to invoke +the service customization dialog for that service. +The dialog has three tabs for configuring the different aspects of the service: +files, directories, and startup/shutdown. + +.. NOTE:: + A **yellow** customize icon next to a service indicates that service + requires customization (e.g. the *Firewall* service). + A **green** customize icon indicates that a custom configuration exists. + Click the *Defaults* button when customizing a service to remove any + customizations. + +.. index:: files tab + +The Files tab is used to display or edit the configuration files or scripts that +are used for this service. Files can be selected from a drop-down list, and +their contents are displayed in a text entry below. The file contents are +generated by the CORE daemon based on the network topology that exists at +the time the customization dialog is invoked. + +.. index:: directories tab + +.. index:: per-node directories + +The Directories tab shows the per-node directories for this service. For the +default types, CORE nodes share the same filesystem tree, except for these +per-node directories that are defined by the services. For example, the +`/var/run/quagga` directory needs to be unique for each node running +the Zebra service, because Quagga running on each node needs to write separate +PID files to that directory. + +.. NOTE:: + The :file:`/var/log` and :file:`/var/run` directories are + mounted uniquely per-node by default. + Per-node mount targets can be found in :file:`/tmp/pycore.nnnnn/nN.conf/` + (where *nnnnn* is the session number and *N* is the node number.) + +.. index:: startup/shutdown tab + +.. index:: startup index + +.. index:: startup commands + +.. index:: shutdown commands + +The Startup/shutdown tab lists commands that are used to start and stop this +service. The startup index allows configuring when this service starts relative +to the other services enabled for this node; a service with a lower startup +index value is started before those with higher values. Because shell scripts +generated by the Files tab will not have execute permissions set, the startup +commands should include the shell name, with +something like "`sh script.sh`". + +Shutdown commands optionally terminate the process(es) associated with this +service. Generally they send a kill signal to the running process using the +*kill* or *killall* commands. If the service does not terminate +the running processes using a shutdown command, the processes will be killed +when the *vnoded* daemon is terminated (with *kill -9*) and +the namespace destroyed. It is a good practice to +specify shutdown commands, which will allow for proper process termination, and +for run-time control of stopping and restarting services. + +.. index:: validate commands + +Validate commands are executed following the startup commands. A validate +command can execute a process or script that should return zero if the service +has started successfully, and have a non-zero return value for services that +have had a problem starting. For example, the *pidof* command will check +if a process is running and return zero when found. When a validate command +produces a non-zero return value, an exception is generated, which will cause +an error to be displayed in the :ref:`Check_Emulation_Light`. + +.. tip:: + To start, stop, and restart services during run-time, right-click a + node and use the *Services...* menu. + +.. _Creating_new_Services: + +Creating new Services +--------------------- + +.. index:: creating services + +Services can save time required to configure nodes, especially if a number +of nodes require similar configuration procedures. New services can be +introduced to automate tasks. + +.. index:: UserDefined service + +The easiest way to capture the configuration of a new process into a service +is by using the **UserDefined** service. This is a blank service where any +aspect may be customized. The UserDefined service is convenient for testing +ideas for a service before adding a new service type. + +To introduce new service types, a :file:`myservices/` directory exists in the +user's CORE configuration directory, at :file:`~/.core/myservices/`. A detailed +:file:`README.txt` file exists in that directory to outline the steps necessary +for adding a new service. First, you need to create a small Python file that +defines the service; then the `custom_services_dir` entry must be set +in the :file:`/etc/core/core.conf` configuration file. A sample is provided in +the :file:`myservices/` directory. + +If you have created a new service type that may be useful to others, please +consider contributing it to the CORE project. + +.. _Check_Emulation_Light: + +Check Emulation Light +===================== + +.. index:: check emulation light + +.. index:: CEL + +The Check Emulation Light, or CEL, is located in the bottom right-hand corner +of the status bar in the CORE GUI. This is a yellow icon that indicates one or +more problems with the running emulation. Clicking on the CEL will invoke the +CEL dialog. + +.. index:: exceptions + +The Check Emulation Light dialog contains a list of exceptions received from +the CORE daemon. An exception has a time, severity level, optional node number, +and source. When the CEL is blinking, this indicates one or more fatal +exceptions. An exception with a fatal severity level indicates that one or more +of the basic pieces of emulation could not be created, such as failure to +create a bridge or namespace, or the failure to launch EMANE processes for an +EMANE-based network. + +Clicking on an exception displays details for that +exception. If a node number is specified, that node is highlighted on the +canvas when the exception is selected. The exception source is a text string +to help trace where the exception occurred; "service:UserDefined" for example, +would appear for a failed validation command with the UserDefined service. + +Buttons are available at the bottom of the dialog for clearing the exception +list and for viewing the CORE daemon and node log files. + +.. _Configuration_Files: + +Configuration Files +=================== + +.. index:: configuration file + +.. index:: imn file + +Configurations are saved to :file:`xml` or :file:`.imn` topology files using +the *File* menu. You +can easily edit these files with a text editor. +Any time you edit the topology +file, you will need to stop the emulation if it were running and reload the +file. + +The :file:`.xml` file schema +is `specified by NRL `_. +Planning documents are specified in NRL's Network Modeling Framework (NMF). +Here the individual planning documents are several tags +encased in one `` tag: + +* `` - describes nodes, hosts, interfaces, and the networks to + which they belong. +* `` - describes position and motion patterns for nodes in an + emulation. +* `` - describes services (protocols, applications) and traffic + flows that are associated with certain nodes. +* `` - meta-data that is not part of the NRL XML schema but + used only by CORE. For example, GUI options, canvas and annotation info, etc. + are contained here. + + +.. index:: indentation + +The :file:`.imn` file format comes from :ref:`IMUNES `, and is +basically Tcl lists of nodes, links, etc. +Tabs and spacing in the topology files are important. The file starts by +listing every node, then links, annotations, canvases, and options. Each entity +has a block contained in braces. The first block is indented by four spaces. +Within the `network-config` block (and any *custom-*-config* block), the +indentation is one tab character. + +.. tip:: + There are several topology examples included with CORE in + the :file:`configs/` directory. + This directory can be found in :file:`~/.core/configs`, or + installed to the filesystem + under :file:`/usr[/local]/share/examples/configs`. + +.. tip:: + When using the :file:`.imn` file format, file paths for things like custom + icons may contain the special variables `$CORE_DATA_DIR` or `$CONFDIR` which + will be substituted with :file:`/usr/share/core` or :file:`~/.core/configs`. + +.. tip:: + Feel free to edit the files directly using your favorite text editor. + + +.. _Customizing_your_Topology's_Look: + +Customizing your Topology's Look +================================ + +.. index:: annotation tools + +.. index:: captions + +.. index:: text tool + +.. index:: ovals + +.. index:: rectangles + +Several annotation tools are provided for changing the way your topology is +presented. Captions may be added with the Text tool. Ovals and rectangles may +be drawn in the background, helpful for visually grouping nodes together. + +.. index:: marker tool + +During live demonstrations the marker tool may be helpful for drawing temporary +annotations on the canvas that may be quickly erased. A size and color palette +appears at the bottom of the toolbar when the marker tool is selected. Markings +are only temporary and are not saved in the topology file. + +.. index:: images + +.. index:: icons + +.. index:: custom icons + +The basic node icons can be replaced with a custom image of your choice. Icons +appear best when they use the GIF or PNG format with a transparent background. +To change a node's icon, double-click the node to invoke its configuration +dialog and click on the button to the right of the node name that shows the +node's current icon. + +.. index:: wallpaper + +.. index:: canvas wallpaper + +A background image for the canvas may be set using the *Wallpaper...* option +from the *Canvas* menu. The image may be centered, tiled, or scaled to fit the +canvas size. An existing terrain, map, or network diagram could be used as a +background, for example, with CORE nodes drawn on top. + +.. _Preferences: + +Preferences +=========== + +.. index:: preferences + +.. index:: Preferences Dialog + +The *Preferences* Dialog can be accessed from the :ref:`Edit_Menu`. There are +numerous defaults that can be set with this dialog, which are stored in the +:file:`~/.core/prefs.conf` preferences file. + diff --git a/gui/Makefile.am b/gui/Makefile.am new file mode 100755 index 00000000..7b4f05bb --- /dev/null +++ b/gui/Makefile.am @@ -0,0 +1,70 @@ +# CORE +# (c)2010-2013 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +# Makefile for installing the CORE GUI. Since it is a Tcl/Tk script, we do not +# build anything here. +# + +SUBDIRS = icons + +TCL_FILES = annotations.tcl api.tcl canvas.tcl cfgparse.tcl \ + core.tcl debug.tcl editor.tcl exec.tcl \ + filemgmt.tcl gpgui.tcl \ + graph_partitioning.tcl help.tcl \ + initgui.tcl ipv4.tcl ipv6.tcl \ + linkcfg.tcl mobility.tcl nodecfg.tcl \ + nodes.tcl services.tcl ns2imunes.tcl plugins.tcl \ + tooltips.tcl topogen.tcl traffic.tcl util.tcl \ + version.tcl widget.tcl wlan.tcl wlanscript.tcl \ + exceptions.tcl + +ADDONS_FILES = addons/ipsecservice.tcl + +CONFIG_FILES = configs/sample1.imn configs/sample1.scen \ + configs/sample1-bg.gif configs/sample2-ssh.imn \ + configs/sample3-bgp.imn configs/sample4-nrlsmf.imn \ + configs/sample4.scen configs/sample4-bg.jpg \ + configs/sample5-mgen.imn configs/sample6-emane-rfpipe.imn \ + configs/sample7-emane-ieee80211abg.imn \ + configs/sample8-ipsec-service.imn \ + configs/sample9-vpn.imn \ + configs/sample10-kitchen-sink.imn + +OTHER_FILES = core-bsd-cleanup.sh + +# +# CORE GUI script (/usr/local/bin/core-gui) +# +dist_bin_SCRIPTS = core-gui + +# +# Tcl/Tk scripts (/usr/local/lib/core) +# +coredir = $(CORE_LIB_DIR) +dist_core_DATA = $(TCL_FILES) +dist_core_SCRIPTS = $(OTHER_FILES) + +# +# Addon files +# +coreaddonsdir = $(coredir)/addons +dist_coreaddons_DATA = $(ADDONS_FILES) + +# +# Sample configs (/usr/local/share/core/examples/configs) +# +coreconfigsdir = $(datadir)/core/examples/configs +dist_coreconfigs_DATA = $(CONFIG_FILES) + + +dist-hook: + rm -rf $(distdir)/addons/.svn + +# extra cruft to remove +DISTCLEANFILES = Makefile.in + +# files to include in source tarball not included elsewhere +EXTRA_DIST = addons diff --git a/gui/addons/ipsecservice.tcl b/gui/addons/ipsecservice.tcl new file mode 100644 index 00000000..aea78b3e --- /dev/null +++ b/gui/addons/ipsecservice.tcl @@ -0,0 +1,334 @@ +# +# Copyright 2012 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# +# This is a separate "addons" file because it is closely tied to Python +# service definition for the IPsec service. +# + +# +# Helper dialog for configuring the IPsec service +# +proc popupServiceConfig_IPsec { parent w node service btn } { + global plugin_img_add plugin_img_del plugin_img_edit + + set f $w.note.ipsec + ttk::frame $f + set h "This IPsec service helper will assist with building an ipsec.sh file" + set h "$h (located on the Files tab).\nThe IPsec service builds ESP" + set h "$h tunnels between the specified peers using the racoon IKEv2" + set h "$h\nkeying daemon. You need to provide keys and the addresses of" + set h "$h peers, along with the\nsubnets to tunnel." + ttk::label $f.help -text $h + pack $f.help -side top -anchor w -padx 4 -pady 4 + $w.note add $f -text "IPsec" -underline 0 + + global g_ipsec_key_dir g_ipsec_key_name + set g_ipsec_key_dir "/etc/core/keys" + set g_ipsec_key_name "ipsec1" + ttk::labelframe $f.keys -text "Keys" + + ttk::frame $f.keys.dir + ttk::label $f.keys.dir.lab -text "Key directory:" + ttk::entry $f.keys.dir.ent -width 40 -textvariable g_ipsec_key_dir + ttk::button $f.keys.dir.btn -width 5 -text "..." -command { + set f .popupServicesCustomize.note.ipsec + set d [$f.keys.dir.ent get] + set d [tk_chooseDirectory -initialdir $d -title "Key directory"] + if { $d != "" } { + $f.keys.dir.ent delete 0 end + $f.keys.dir.ent insert 0 $d + } + } + pack $f.keys.dir.lab $f.keys.dir.ent $f.keys.dir.btn \ + -side left -padx 4 -pady 4 + pack $f.keys.dir -side top -anchor w + + ttk::frame $f.keys.name + ttk::label $f.keys.name.lab -text "Key base name:" + ttk::entry $f.keys.name.ent -width 10 -textvariable g_ipsec_key_name + pack $f.keys.name.lab $f.keys.name.ent -side left -padx 4 -pady 4 + pack $f.keys.name -side top -anchor w + + set h "The (name).pem x509 certificate and (name).key RSA private key need" + set h "$h to exist in the\nspecified directory. These can be generated" + set h "$h using the openssl tool. Also, a ca-cert.pem\nfile should exist" + set h "$h in the key directory for the CA that issued the certs." + ttk::label $f.keys.help -text $h + pack $f.keys.help -side top -anchor w -padx 4 -pady 4 + + pack $f.keys -side top -pady 4 -pady 4 -expand true -fill x + + ttk::labelframe $f.t -text "IPsec Tunnel Endpoints" + set h "(1) Define tunnel endpoints (select peer node using the button" + set h "$h, then select address from the list)" + ttk::label $f.t.lab1 -text $h + pack $f.t.lab1 -side top -anchor w -padx 4 -pady 4 + ttk::frame $f.t.ep + ttk::label $f.t.ep.lab1 -text "Local:" + ttk::combobox $f.t.ep.combo1 -width 12 + pack $f.t.ep.lab1 $f.t.ep.combo1 -side left -padx 4 -pady 4 + populateComboWithIPs $f.t.ep.combo1 $node + + global g_twoNodeSelect g_twoNodeSelectCallback + set g_twoNodeSelect "" + set g_twoNodeSelectCallback selectTwoNodeIPsecCallback + + set h "Choose a node by clicking it on the canvas" + set h "$h or\nby selecting it from the list below." + ttk::label $f.t.ep.lab2 -text "Peer node:" + ttk::checkbutton $f.t.ep.node -text " (none) " -variable g_twoNodeSelect \ + -onvalue "$f.t.ep.node" -style Toolbutton \ + -command "popupSelectNodes {$h} {} selectNodesIPsecCallback" + + ttk::label $f.t.ep.lab3 -text "Peer:" + ttk::combobox $f.t.ep.combo2 -width 12 + ttk::button $f.t.ep.add -text "Add Endpoint" -image $plugin_img_add \ + -compound left -command "ipsecTreeHelper $f ep" + pack $f.t.ep.lab2 $f.t.ep.node $f.t.ep.lab3 $f.t.ep.combo2 \ + $f.t.ep.add -side left -padx 4 -pady 4 + pack $f.t.ep -side top -anchor w + + set h "(2) Select endpoints below and add the subnets to be encrypted" + ttk::label $f.t.lab2 -text $h + pack $f.t.lab2 -side top -anchor w -padx 4 -pady 4 + + ttk::frame $f.t.sub + ttk::label $f.t.sub.lab1 -text "Local subnet:" + ttk::combobox $f.t.sub.combo1 -width 12 + ttk::label $f.t.sub.lab2 -text "Remote subnet:" + ttk::combobox $f.t.sub.combo2 -width 12 + ttk::button $f.t.sub.add -text "Add Subnet" -image $plugin_img_add \ + -compound left -command "ipsecTreeHelper $f sub" + pack $f.t.sub.lab1 $f.t.sub.combo1 $f.t.sub.lab2 $f.t.sub.combo2 \ + $f.t.sub.add -side left -padx 5 -pady 4 + pack $f.t.sub -side top -anchor w + + global node_list + set net_list [ipv4SubnetList $node_list] + $f.t.sub.combo1 configure -values $net_list + $f.t.sub.combo2 configure -values $net_list + + ttk::treeview $f.t.tree -height 5 -selectmode browse -show tree + + pack $f.t.tree -side top -padx 4 -pady 4 -fill both + pack $f.t -side top -expand true -fill both + + ttk::frame $f.bottom + ttk::button $f.bottom.del -image $plugin_img_del \ + -command "ipsecTreeHelper $f del" + ttk::button $f.bottom.gen -text "Generate ipsec.sh" \ + -image $plugin_img_edit -compound left -command "generateIPsecScript $w" + pack $f.bottom.del $f.bottom.gen -side left -padx 4 -pady 4 + pack $f.bottom -side top +} + +# +# Callback invoked when receiving configuration values +# from a Configuration Message; this service helper depends on the ipsec.sh +# file, not the other configuration values. +# +#proc popupServiceConfig_IPsec_vals { node values services w } { +#} + +# +# Callback invoked when receiving service file data from a File Message +proc popupServiceConfig_IPsec_file { node name data w } { + if { $name == "ipsec.sh" } { + readIPsecScript $w + } +} + +# helper to insert all of a node's IP addresses into a combo +proc populateComboWithIPs { combo node } { + set ip_list [ipv4List $node 0] + $combo configure -values $ip_list + $combo delete 0 end + $combo insert 0 [lindex $ip_list 0] +} + +# called from editor.tcl:button1 when user clicks on a node +# search for IP address and populate +proc selectTwoNodeIPsecCallback {} { + set w .popupServicesCustomize + set f $w.note.ipsec + + if { ![winfo exists $w] } { return }; # user has closed window + catch {destroy .nodeselect} + + set node [string trim [$f.t.ep.node cget -text]] + if { [set node] == "(none)" } { set node "" } + + # populate peer interface combo with list of IPs + populateComboWithIPs $f.t.ep.combo2 $node +} + +# called from popupSelectNodes dialog when a node selection has been made +proc selectNodesIPsecCallback { nodes } { + global g_twoNodeSelect + set w .popupServicesCustomize + set f $w.note.ipsec + + set g_twoNodeSelect "" + set node [lindex $nodes 0] + if { $node == "" } { + $f.t.ep.node configure -text "(none)" + return + } + $f.t.ep.node configure -text " $node " + + # populate peer interface combo with list of IPs + populateComboWithIPs $f.t.ep.combo2 $node +} + +# helper to manipulate tree; cmd is "del", "ep" or "sub" +proc ipsecTreeHelper { f cmd } { + + if { $cmd == "del" } { + set sel [$f.t.tree selection] + $f.t.tree delete $sel + return + } + + # add endpoint (ep) or subnet (sub) + set l [string trim [$f.t.$cmd.combo1 get]] + set p [string trim [$f.t.$cmd.combo2 get]] + if { $l == "" || $p == "" } { + if { $cmd == "ep" } { + set h "tunnel interface addresses" + } else { + set h "subnet addresses" + } + tk_messageBox -type ok -icon warning -message \ + "You need to select local and peer $h." + return + } + + if { $cmd == "ep" } { + set item [$f.t.tree insert {} end -text "$l <--> $p" -open true] + $f.t.tree selection set $item + } elseif { $cmd == "sub" } { + set parent [$f.t.tree selection] + if { $parent == "" } { + tk_messageBox -type ok -icon warning -message \ + "You need to first select endpoints, then configure their subnets." + return + } + if { [$f.t.tree parent $parent] != {} } { + set parent [$f.t.tree parent $parent] + } + $f.t.tree insert $parent end -text "$l <===> $p" + } +} + +# update an ipsec.sh file that was generated by the IPsec service +proc generateIPsecScript { w } { + #puts "generateIPsecScript $w..." + set cfg [$w.note.files.txt get 0.0 end-1c] + set newcfg "" + + # + # Gather data for a new config + # + set f $w.note.ipsec + set keydir [$f.keys.dir.ent get] + set keyname [$f.keys.name.ent get] + + set tunnelhosts "" + set subnet_list "" + set ti 0 + set th_items [$f.t.tree children {}] + foreach th $th_items { + set ep [$f.t.tree item $th -text] + set i [string first " " $ep] + # replace " <--> " with "AND" + set ep [string replace $ep $i $i+5 "AND"] + # build a list e.g.: + # tunnelhosts="172.16.0.1AND172.16.0.2 172.16.0.1AND172.16.2.1" + lappend tunnelhosts $ep + + set subnets "" + foreach subnet_item [$f.t.tree children $th] { + set sn [$f.t.tree item $subnet_item -text] + set i [string first " " $sn] + # replace " <===> " with "AND" + set sn [string replace $sn $i $i+6 "AND"] + lappend subnets $sn + } + incr ti + set subnetstxt [join $subnets " "] + # build a list e.g.: + # T2="172.16.4.0/24AND172.16.5.0/24 172.16.4.0/24AND172.16.6.0/24" + set subnets "T$ti=\"$subnetstxt\"" + lappend subnet_list $subnets + } + + # + # Perform replacements in existing ipsec.sh file. + # + set have_subnets 0 + foreach line [split $cfg "\n"] { + if { [string range $line 0 6] == "keydir=" } { + set line "keydir=$keydir" + } elseif { [string range $line 0 8] == "certname=" } { + set line "certname=$keyname" + } elseif { [string range $line 0 11] == "tunnelhosts=" } { + set tunnelhosts [join $tunnelhosts " "] + set line "tunnelhosts=\"$tunnelhosts\"" + } elseif { [string range $line 0 0] == "T" && \ + [string is digit [string range $line 1 1]] } { + if { $have_subnets } { + continue ;# skip this line + } else { + set line [join $subnet_list "\n"] + set have_subnets 1 + } + } + lappend newcfg $line + } + $w.note.files.txt delete 0.0 end + $w.note.files.txt insert 0.0 [join $newcfg "\n"] + $w.note select $w.note.files + $w.btn.apply configure -state normal +} + +proc readIPsecScript { w } { + set cfg [$w.note.files.txt get 0.0 end-1c] + + set f $w.note.ipsec + $f.keys.dir.ent delete 0 end + $f.keys.name.ent delete 0 end + $f.t.tree delete [$f.t.tree children {}] + + set ti 1 + foreach line [split $cfg "\n"] { + if { [string range $line 0 6] == "keydir=" } { + $f.keys.dir.ent insert 0 [string range $line 7 end] + } elseif { [string range $line 0 8] == "certname=" } { + $f.keys.name.ent insert 0 [string range $line 9 end] + } elseif { [string range $line 0 11] == "tunnelhosts=" } { + set tunnelhosts [string range $line 13 end-1] + set ti 0 + foreach ep [split $tunnelhosts " "] { + incr ti + set i [string first "AND" $ep] + set ep [string replace $ep $i $i+2 " <--> "] + $f.t.tree insert {} end -id "T$ti" -text "$ep" -open true + } + } elseif { [string range $line 0 0] == "T" && \ + [string is digit [string range $line 1 1]] } { + set i [string first "=" $line] + set ti [string range $line 0 $i-1] + set subnets [split [string range $line $i+2 end-1] " "] + foreach sn $subnets { + set i [string first "AND" $sn] + set sn [string replace $sn $i $i+2 " <===> "] + if { [catch {$f.t.tree insert $ti end -text "$sn"} e] } { + puts "IPsec service ignoring line '$ti='" + } + } + } + } +} diff --git a/gui/annotations.tcl b/gui/annotations.tcl new file mode 100644 index 00000000..8352a92d --- /dev/null +++ b/gui/annotations.tcl @@ -0,0 +1,842 @@ +# +# Copyright 2007-2013 the Boeing Company. +# See the LICENSE file included in this distribution. +# + +# +# Copyright 2007-2008 University of Zagreb, Croatia. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# +# THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. +# + +#****h* imunes/annotations.tcl +# NAME +# annotations.tcl -- oval, rectangle, text, background, ... +# FUNCTION +# This module is used for configuration/image annotations, such as oval, +# rectangle, text, background or some other. +#**** + +#****f* annotations.tcl/annotationConfig +# NAME +# annotationConfig -- +# SYNOPSIS +# annotationConfig $canvas $target +# FUNCTION +# . . . +# INPUTS +# * canvas -- +# * target -- oval or rectangle object +#**** + +proc annotationConfig { c target } { + switch -exact -- [nodeType $target] { + oval { + popupAnnotationDialog $c $target "true" + } + rectangle { + popupAnnotationDialog $c $target "true" + } + text { + popupAnnotationDialog $c $target "true" + } + default { + puts "Unknown type [nodeType $target] for target $target" + } + } + redrawAll +} + + +#****f* annotations.tcl/popupOvalDialog +# NAME +# popupOvalDialog -- creates a new oval or modifies existing oval +# SYNOPSIS +# popupOvalDialog $canvas $modify $color $label $lcolor +# FUNCTION +# Called from: +# - editor.tcl/button1-release when new oval is drawn +# - annotationConfig which is called from popupConfigDialog bound to +# Double-1 on various objects +# - configureOval called from button3annotation procedure which creates +# a menu for configuration and deletion (bound to 3 on oval, +# rectangle and text) +# INPUTS +# * canvas -- +# * modify -- create new oval "newoval" if modify=false or +# modify an existing oval "newoval" if modify=true +# * color -- oval color +# * label -- label text +# * lcolor -- label (text) color +#**** + + +#****f* annotations.tcl/destroyNewoval +# NAME +# destroyNewoval -- helper for popupOvalDialog and popupOvalApply +# SYNOPSIS +# destroyNewoval $canvas +# FUNCTION +# . . . +# INPUTS +# * canvas -- +#**** + +proc destroyNewoval { c } { + global newoval + $c delete -withtags newoval + set newoval "" +} + + +# oval/rectangle/text right-click menu + +proc button3annotation { type c x y } { + + if { $type == "oval" } { + set procname "Oval" + set item [lindex [$c gettags {oval && current}] 1] + } elseif { $type == "rectangle" } { + set procname "Rectangle" + set item [lindex [$c gettags {rectangle && current}] 1] + } elseif { $type == "label" } { + set procname "Label" + set item [lindex [$c gettags {label && current}] 1] + } elseif { $type == "text" } { + set procname "Text" + set item [lindex [$c gettags {text && current}] 1] + } elseif { $type == "marker" } { + # erase markings + $c delete -withtags {marker && current} + return + } else { + # ??? + return + } + if { $item == "" } { + return + } + set menutext "$type $item" + + .button3menu delete 0 end + + .button3menu add command -label "Configure $menutext" \ + -command "annotationConfig $c $item" + .button3menu add command -label "Delete $menutext" \ + -command "deleteAnnotation $c $type $item" + + set x [winfo pointerx .] + set y [winfo pointery .] + tk_popup .button3menu $x $y +} + + +proc deleteAnnotation { c type target } { + global changed annotation_list + + $c delete -withtags "$type && $target" + $c delete -withtags "new$type" + set i [lsearch -exact $annotation_list $target] + set annotation_list [lreplace $annotation_list $i $i] + set changed 1 + updateUndoLog +} + + +proc drawOval {oval} { + global $oval defOvalColor zoom curcanvas + global defTextFontFamily defTextFontSize + + set coords [getNodeCoords $oval] + if { [llength $coords] < 4 } { + puts "Bad coordinates for oval $oval" + return + } + set x1 [expr {[lindex $coords 0] * $zoom}] + set y1 [expr {[lindex $coords 1] * $zoom}] + set x2 [expr {[lindex $coords 2] * $zoom}] + set y2 [expr {[lindex $coords 3] * $zoom}] + set color [lindex [lsearch -inline [set $oval] "color *"] 1] + set label [lindex [lsearch -inline [set $oval] "label *"] 1] + set lcolor [lindex [lsearch -inline [set $oval] "labelcolor *"] 1] + set bordercolor [lindex [lsearch -inline [set $oval] "border *"] 1] + set width [lindex [lsearch -inline [set $oval] "width *"] 1] + set lx [expr $x1 + (($x2 - $x1) / 2)] + set ly [expr ($y1 + 20)] + + if { $color == "" } { set color $defOvalColor } + if { $lcolor == "" } { set lcolor black } + if { $width == "" } { set width 0 } + if { $bordercolor == "" } { set bordercolor black } + + # -outline red -stipple gray50 + set newoval [.c create oval $x1 $y1 $x2 $y2 \ + -fill $color -width $width -outline $bordercolor \ + -tags "oval $oval annotation"] + .c raise $newoval background + + set fontfamily [lindex [lsearch -inline [set $oval] "fontfamily *"] 1] + set fontsize [lindex [lsearch -inline [set $oval] "fontsize *"] 1] + if { $fontfamily == "" } { + set fontfamily $defTextFontFamily + } + if { $fontsize == "" } { + set fontsize $defTextFontSize + } + set newfontsize $fontsize + set font [list "$fontfamily" $fontsize] + set effects [lindex [lsearch -inline [set $oval] "effects *"] 1] + + .c create text $lx $ly -tags "oval $oval annotation" -text $label \ + -justify center -font "$font $effects" -fill $lcolor + + setNodeCanvas $oval $curcanvas + setType $oval "oval" +} + + +# Color helper for popupOvalDialog and popupLabelDialog +proc popupColor { type l settext } { + # popup color selection dialog with current color + if { $type == "fg" } { + set initcolor [$l cget -fg] + } else { + set initcolor [$l cget -bg] + } + set newcolor [tk_chooseColor -initialcolor $initcolor] + + # set fg or bg of the "l" label control + if { $newcolor == "" } { + return + } + if { $settext == "true" } { + $l configure -text $newcolor -$type $newcolor + } else { + $l configure -$type $newcolor + } +} + + +#****f* annotations.tcl/roundRect +# NAME +# roundRect -- Draw a rounded rectangle in the canvas. +# Called from drawRect procedure +# SYNOPSIS +# roundRect $w $x0 $y0 $x3 $y3 $radius $args +# FUNCTION +# Creates a rounded rectangle as a smooth polygon in the canvas +# and returns the canvas item number of the rounded rectangle. +# INPUTS +# * w -- Path name of the canvas +# * x0, y0 -- Coordinates of the upper left corner, in pixels +# * x3, y3 -- Coordinates of the lower right corner, in pixels +# * radius -- Radius of the bend at the corners, in any form +# acceptable to Tk_GetPixels +# * args -- Other args suitable to a 'polygon' item on the canvas +# Example: +# roundRect .c 100 50 500 250 $rad -fill white -outline black -tags rectangle +#**** + +proc roundRect { w x0 y0 x3 y3 radius args } { + + set r [winfo pixels $w $radius] + set d [expr { 2 * $r }] + + # Make sure that the radius of the curve is less than 3/8 size of the box + + set maxr 0.75 + + if { $d > $maxr * ( $x3 - $x0 ) } { + set d [expr { $maxr * ( $x3 - $x0 ) }] + } + if { $d > $maxr * ( $y3 - $y0 ) } { + set d [expr { $maxr * ( $y3 - $y0 ) }] + } + + set x1 [expr { $x0 + $d }] + set x2 [expr { $x3 - $d }] + set y1 [expr { $y0 + $d }] + set y2 [expr { $y3 - $d }] + + set cmd [list $w create polygon] + lappend cmd $x0 $y0 $x1 $y0 $x2 $y0 $x3 $y0 $x3 $y1 $x3 $y2 + lappend cmd $x3 $y3 $x2 $y3 $x1 $y3 $x0 $y3 $x0 $y2 $x0 $y1 + lappend cmd -smooth 1 + return [eval $cmd $args] + } + +proc drawRect {rectangle} { + global $rectangle defRectColor zoom curcanvas + global defTextFontFamily defTextFontSize + + set coords [getNodeCoords $rectangle] + if {$coords == "" || [llength $coords] != 4 } { + puts "Bad coordinates for rectangle $rectangle" + return + } + + set x1 [expr {[lindex $coords 0] * $zoom}] + set y1 [expr {[lindex $coords 1] * $zoom}] + set x2 [expr {[lindex $coords 2] * $zoom}] + set y2 [expr {[lindex $coords 3] * $zoom}] + set color [lindex [lsearch -inline [set $rectangle] "color *"] 1] + set label [lindex [lsearch -inline [set $rectangle] "label *"] 1] + set lcolor [lindex [lsearch -inline [set $rectangle] "labelcolor *"] 1] + set bordercolor [lindex [lsearch -inline [set $rectangle] "border *"] 1] + set width [lindex [lsearch -inline [set $rectangle] "width *"] 1] + set rad [lindex [lsearch -inline [set $rectangle] "rad *"] 1] + set lx [expr $x1 + (($x2 - $x1) / 2)] + set ly [expr ($y1 + 20)] + + if { $color == "" } { set color $defRectColor } + if { $lcolor == "" } { set lcolor black } + if { $bordercolor == "" } { set bordercolor black } + if { $width == "" } { set width 0 } + # rounded-rectangle radius + if { $rad == "" } { set rad 25 } + + # Boeing: allow borderless rectangles + if { $width == 0 } { + set newrect [roundRect .c $x1 $y1 $x2 $y2 $rad \ + -fill $color -tags "rectangle $rectangle annotation"] + } else { + # end Boeing + set newrect [roundRect .c $x1 $y1 $x2 $y2 $rad \ + -fill $color -outline $bordercolor -width $width \ + -tags "rectangle $rectangle annotation"] + .c raise $newrect background + # Boeing + } + # end Boeing + + set fontfamily [lindex [lsearch -inline [set $rectangle] "fontfamily *"] 1] + set fontsize [lindex [lsearch -inline [set $rectangle] "fontsize *"] 1] + if { $fontfamily == "" } { + set fontfamily $defTextFontFamily + } + if { $fontsize == "" } { + set fontsize $defTextFontSize + } + set newfontsize $fontsize + set font [list "$fontfamily" $fontsize] + set effects [lindex [lsearch -inline [set $rectangle] "effects *"] 1] + + .c create text $lx $ly -tags "rectangle $rectangle annotation" \ + -text $label -justify center -font "$font $effects" -fill $lcolor + + setNodeCanvas $rectangle $curcanvas + setType $rectangle "rectangle" +} + + +proc popupAnnotationDialog { c target modify } { + global $target newrect newoval + global width rad fontfamily fontsize + global defFillColor defTextColor defTextFontFamily defTextFontSize + + # do nothing, return, if coords are empty + if { $target == 0 \ + && [$c coords "$newrect"] == "" \ + && [$c coords "$newoval"] == "" } { + return + } + if { $target == 0 } { + set width 0 + set rad 25 + set coords [$c bbox "$newrect"] + if { [$c coords "$newrect"] == "" } { + set coords [$c bbox "$newoval"] + set annotationType "oval" + } else { + set annotationType "rectangle" + } + set fontfamily "" + set fontsize "" + set effects "" + set color "" + set label "" + set lcolor "" + set bordercolor "" + } else { + set width [lindex [lsearch -inline [set $target] "width *"] 1] + set rad [lindex [lsearch -inline [set $target] "rad *"] 1] + set coords [$c bbox "$target"] + set color [lindex [lsearch -inline [set $target] "color *"] 1] + set fontfamily [lindex [lsearch -inline [set $target] "fontfamily *"] 1] + set fontsize [lindex [lsearch -inline [set $target] "fontsize *"] 1] + set effects [lindex [lsearch -inline [set $target] "effects *"] 1] + + set label [lindex [lsearch -inline [set $target] "label *"] 1] + set lcolor [lindex [lsearch -inline [set $target] "labelcolor *"] 1] + set bordercolor [lindex [lsearch -inline [set $target] "border *"] 1] + set annotationType [nodeType $target] + } + + if { $color == "" } { + # Boeing: use default shape colors + if { $annotationType == "oval" } { + global defOvalColor + set color $defOvalColor + } elseif { $annotationType == "rectangle" } { + global defRectColor + set color $defRectColor + } else { + set color $defFillColor + } + } + if { $lcolor == "" } { set lcolor black } + if { $bordercolor == "" } { set bordercolor black } + if { $width == "" } { set width 0 } + if { $rad == "" } { set rad 25 } + if { $fontfamily == "" } { set fontfamily $defTextFontFamily } + if { $fontsize == "" } { set fontsize $defTextFontSize } + + set textBold 0 + set textItalic 0 + set textUnderline 0 + if { [lsearch $effects bold ] != -1} {set textBold 1} + if { [lsearch $effects italic ] != -1} {set textItalic 1} + if { [lsearch $effects underline ] != -1} {set textUnderline 1} + + set x1 [lindex $coords 0] + set y1 [lindex $coords 1] + set x2 [lindex $coords 2] + set y2 [lindex $coords 3] + set xx [expr {abs($x2 - $x1)}] + set yy [expr {abs($y2 - $y1)}] + if { $xx > $yy } { + set maxrad [expr $yy * 3.0 / 8.0] + } else { + set maxrad [expr $xx * 3.0 / 8.0] + } + + set wi .popup + catch {destroy $wi} + toplevel $wi + + wm transient $wi . + wm resizable $wi 0 0 + + if { $modify == "true" } { + set windowtitle "Configure $annotationType $target" + } else { + set windowtitle "Add a new $annotationType" + } + wm title $wi $windowtitle + + frame $wi.text -relief groove -bd 2 + frame $wi.text.lab + label $wi.text.lab.name_label -text "Text for top of $annotationType:" + entry $wi.text.lab.name -bg white -fg $lcolor -width 32 \ + -validate focus -invcmd "focusAndFlash %W" + $wi.text.lab.name insert 0 $label + pack $wi.text.lab.name_label $wi.text.lab.name -side left -anchor w \ + -padx 2 -pady 2 -fill x + pack $wi.text.lab -side top -fill x + + frame $wi.text.format + + set fontmenu [tk_optionMenu $wi.text.format.fontmenu fontfamily "$fontfamily"] + set sizemenu [tk_optionMenu $wi.text.format.fontsize fontsize "$fontsize"] + + + # color selection + if { $color == "" } { + set color $defTextColor + } + button $wi.text.format.fg -text "Text color" -command \ + "popupColor fg $wi.text.lab.name false" + checkbutton $wi.text.format.bold -text "Bold" -variable textBold \ + -command [list fontupdate $wi.text.lab.name bold] + checkbutton $wi.text.format.italic -text "Italic" -variable textItalic \ + -command [list fontupdate $wi.text.lab.name italic] + checkbutton $wi.text.format.underline -text "Underline" \ + -variable textUnderline \ + -command [list fontupdate $wi.text.lab.name underline] + + if {$textBold == 1} { $wi.text.format.bold select + } else { $wi.text.format.bold deselect } + if {$textItalic == 1} { $wi.text.format.italic select + } else { $wi.text.format.italic deselect } + if {$textUnderline == 1} { $wi.text.format.underline select + } else { $wi.text.format.underline deselect } + + pack $wi.text.format.fontmenu \ + $wi.text.format.fontsize \ + $wi.text.format.fg \ + $wi.text.format.bold \ + $wi.text.format.italic \ + $wi.text.format.underline \ + -side left -pady 2 + + pack $wi.text.format -side top -fill x + + pack $wi.text -side top -fill x + + fontupdate $wi.text.lab.name fontfamily $fontfamily + fontupdate $wi.text.lab.name fontsize $fontsize + + $fontmenu delete 0 + foreach f [lsort -dictionary [font families]] { + $fontmenu add radiobutton -value "$f" -label $f \ + -variable fontfamily \ + -command [list fontupdate $wi.text.lab.name fontfamily $f] + } + + $sizemenu delete 0 + foreach f {8 9 10 11 12 14 16 18 20 22 24 26 28 36 48 72} { + $sizemenu add radiobutton -value "$f" -label $f \ + -variable fontsize \ + -command [list fontupdate $wi.text.lab.name fontsize $f] + } + +if { "$annotationType" == "rectangle" || "$annotationType" == "oval" } { + + # fill color, border color + frame $wi.colors -relief groove -bd 2 + # color selection controls + label $wi.colors.label -text "Fill color:" + + label $wi.colors.color -text $color -width 8 \ + -bg $color -fg $lcolor + button $wi.colors.bg -text "Color" -command \ + "popupColor bg $wi.colors.color true" + pack $wi.colors.label $wi.colors.color $wi.colors.bg \ + -side left -padx 2 -pady 2 -anchor w -fill x + pack $wi.colors -side top -fill x + + # border selection controls + frame $wi.border -relief groove -bd 2 + label $wi.border.label -text "Border color:" + label $wi.border.color -text $bordercolor -width 8 \ + -bg $color -fg $bordercolor + label $wi.border.width_label -text "Border width:" + set widthMenu [tk_optionMenu $wi.border.width width "$width"] + $widthMenu delete 0 + foreach f {0 1 2 3 4 5 6 7 8 9 10} { + $widthMenu add radiobutton -value $f -label $f \ + -variable width + } + button $wi.border.fg -text "Color" -command \ + "popupColor fg $wi.border.color true" + pack $wi.border.label $wi.border.color $wi.border.fg \ + $wi.border.width_label $wi.border.width \ + $wi.border.fg $wi.border.color $wi.border.label \ + -side left -padx 2 -pady 2 -anchor w -fill x + pack $wi.border -side top -fill x + +} + +if { $annotationType == "rectangle" } { + frame $wi.radius -relief groove -bd 2 + scale $wi.radius.rad -from 0 -to [expr int($maxrad)] \ + -length 400 -variable rad \ + -orient horizontal -label "Radius of the bend at the corners: " \ + -tickinterval [expr int($maxrad / 15) + 1] -showvalue true + pack $wi.radius.rad -side left -padx 2 -pady 2 -anchor w -fill x + pack $wi.radius -side top -fill x +} + + # Add new oval or modify old one? + if { $modify == "true" } { + set cancelcmd "destroy $wi" + set applytext "Modify $annotationType" + } else { + set cancelcmd "destroy $wi; destroyNewRect $c" + set applytext "Add $annotationType" + } + + frame $wi.butt -borderwidth 6 + button $wi.butt.apply -text $applytext -command "popupAnnotationApply $c $wi $target $annotationType" + + button $wi.butt.cancel -text "Cancel" -command $cancelcmd + bind $wi "$cancelcmd" + bind $wi "popupAnnotationApply $c $wi $target $annotationType" + pack $wi.butt.cancel $wi.butt.apply -side right + pack $wi.butt -side bottom + + after 100 { + grab .popup + } + return +} + +# helper for popupOvalDialog and popupOvalApply +proc destroyNewRect { c } { + global newrect + $c delete -withtags newrect + set newrect "" +} + + +proc popupAnnotationApply { c wi target type } { + global newrect newoval annotation_list + global $target + global changed + global width rad + global fontfamily fontsize textBold textItalic textUnderline + + # attributes + set caption [string trim [$wi.text.lab.name get]] + set labelcolor [$wi.text.lab.name cget -fg] + set coords [$c coords "$target"] + set iconcoords "iconcoords" + + if {"$type" == "rectangle" || "$type" == "oval" } { + set color [$wi.colors.color cget -text] + set bordercolor [$wi.border.color cget -text] + } + + if { $target == 0 } { + # Create a new annotation object + set target [newObjectId annotation] + global $target + lappend annotation_list $target + if {"$type" == "rectangle" } { + set coords [$c coords $newrect] + } elseif { "$type" == "oval" } { + set coords [$c coords $newoval] + } + } else { + set coords [getNodeCoords $target] + } + set $target {} + lappend $iconcoords $coords + lappend $target $iconcoords "label {$caption}" "labelcolor $labelcolor" \ + "fontfamily {$fontfamily}" "fontsize $fontsize" + if {"$type" == "rectangle" || "$type" == "oval" } { + lappend $target "color $color" "width $width" "border $bordercolor" + } + if {"$type" == "rectangle" } { + lappend $target "rad $rad" + } + + set ef {} + if {"$textBold" == 1} { lappend ef bold} + if {"$textItalic" == 1} { lappend ef italic} + if {"$textUnderline" == 1} { lappend ef underline} + if {"$ef" != ""} { lappend $target "effects {$ef}"} + + # draw it + if { $type == "rectangle" } { + drawRect $target + destroyNewRect $c + } elseif { $type == "oval" } { + drawOval $target + destroyNewoval $c + } elseif { $type == "text" } { + drawText $target + } + + set changed 1 + updateUndoLog + redrawAll + destroy $wi +} + +proc selectmarkEnter {c x y} { + set isThruplot false + + if {$c == ".c"} { + set obj [lindex [$c gettags current] 1] + set type [nodeType $obj] + if {$type != "oval" && $type != "rectangle"} { return } + } else { + set obj $c + set c .c + set isThruplot true + } + set bbox [$c bbox $obj] + + set x1 [lindex $bbox 0] + set y1 [lindex $bbox 1] + set x2 [lindex $bbox 2] + set y2 [lindex $bbox 3] + + if {$isThruplot == true} { + set x [expr $x+$x1] + set y [expr $y+$y1] + + } + set l 0 ;# left + set r 0 ;# right + set u 0 ;# up + set d 0 ;# down + + set x [$c canvasx $x] + set y [$c canvasy $y] + + if { $x < [expr $x1+($x2-$x1)/8.0]} { set l 1 } + if { $x > [expr $x2-($x2-$x1)/8.0]} { set r 1 } + if { $y < [expr $y1+($y2-$y1)/8.0]} { set u 1 } + if { $y > [expr $y2-($y2-$y1)/8.0]} { set d 1 } + + if {$l==1} { + if {$u==1} { + $c config -cursor top_left_corner + } elseif {$d==1} { + $c config -cursor bottom_left_corner + } else { + $c config -cursor left_side + } + } elseif {$r==1} { + if {$u==1} { + $c config -cursor top_right_corner + } elseif {$d==1} { + $c config -cursor bottom_right_corner + } else { + $c config -cursor right_side + } + } elseif {$u==1} { + $c config -cursor top_side + } elseif {$d==1} { + $c config -cursor bottom_side + } else { + $c config -cursor left_ptr + } +} + +proc selectmarkLeave {c x y} { + global thruplotResize + .bottom.textbox config -text {} + + # cursor options for thruplot resize + if {$thruplotResize == true} { + + } else { + # no resize update cursor + $c config -cursor left_ptr + } +} + + +proc textEnter { c x y } { + global annotation_list + global curcanvas + + set object [newObjectId annotation] + set newtext [$c create text $x $y -text "" \ + -anchor w -justify left -tags "text $object annotation"] + + set coords [$c coords "text && $object"] + set iconcoords "iconcoords" + + global $object + set $object {} + setType $object "text" + lappend $iconcoords $coords + lappend $object $iconcoords + lappend $object "label {}" + setNodeCanvas $object $curcanvas + + lappend annotation_list $object + popupAnnotationDialog $c $object "false" +} + + +proc drawText {text} { + global $text defTextColor defTextFont defTextFontFamily defTextFontSize + global zoom curcanvas newfontsize + + set coords [getNodeCoords $text] + if { [llength $coords] < 2 } { + puts "Bad coordinates for text $text" + return + } + set x [expr {[lindex $coords 0] * $zoom}] + set y [expr {[lindex $coords 1] * $zoom}] + set color [lindex [lsearch -inline [set $text] "labelcolor *"] 1] + if { $color == "" } { + set color $defTextColor + } + set label [lindex [lsearch -inline [set $text] "label *"] 1] + set fontfamily [lindex [lsearch -inline [set $text] "fontfamily *"] 1] + set fontsize [lindex [lsearch -inline [set $text] "fontsize *"] 1] + if { $fontfamily == "" } { + set fontfamily $defTextFontFamily + } + if { $fontsize == "" } { + set fontsize $defTextFontSize + } + set newfontsize $fontsize + set font [list "$fontfamily" $fontsize] + set effects [lindex [lsearch -inline [set $text] "effects *"] 1] + set newtext [.c create text $x $y -text $label -anchor w \ + -font "$font $effects" -justify left -fill $color \ + -tags "text $text annotation"] + + .c addtag text withtag $newtext + .c raise $text background + setNodeCanvas $text $curcanvas + setType $text "text" +} + + +proc fontupdate { label type args} { + global fontfamily fontsize + global textBold textItalic textUnderline + + if {"$textBold" == 1} {set bold "bold"} else {set bold {} } + if {"$textItalic"} {set italic "italic"} else {set italic {} } + if {"$textUnderline"} {set underline "underline"} else {set underline {} } + switch $type { + fontsize { + set fontsize $args + } + fontfamily { + set fontfamily "$args" + } + } + set f [list "$fontfamily" $fontsize] + lappend f "$bold $italic $underline" + $label configure -font "$f" +} + + +proc drawAnnotation { obj } { + switch -exact -- [nodeType $obj] { + oval { + drawOval $obj + } + rectangle { + drawRect $obj + } + text { + drawText $obj + } + } +} + +# shift annotation coordinates by dx, dy; does not redraw the annotation +proc moveAnnotation { obj dx dy } { + set coords [getNodeCoords $obj] + lassign $coords x1 y1 x2 y2 + set pt1 "[expr {$x1 + $dx}] [expr {$y1 + $dy}]" + if { [nodeType $obj] == "text" } { + # shift one point + setNodeCoords $obj $pt1 + } else { ;# oval/rectangle + # shift two points + set pt2 "[expr {$x2 + $dx}] [expr {$y2 + $dy}]" + setNodeCoords $obj "$pt1 $pt2" + } +} diff --git a/gui/api.tcl b/gui/api.tcl new file mode 100755 index 00000000..0d761826 --- /dev/null +++ b/gui/api.tcl @@ -0,0 +1,3178 @@ +# +# CORE API +# Copyright 2005-2013 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# + +# version of the API document that is used +set CORE_API_VERSION 1.21 + +set DEFAULT_API_PORT 4038 +set g_api_exec_num 100; # starting execution number + +# set scale for X/Y coordinate translation +set XSCALE 1.0 +set YSCALE 1.0 +set XOFFSET 0 +set YOFFSET 0 + +# current session; 0 is a new session +set g_current_session 0 +set g_session_dialog_hint 1 + +# this is an array of lists, with one array entry for each widget or callback, +# and the entry is a list of execution numbers (for matching replies with +# requests) +array set g_execRequests { shell "" observer "" } + +# for a simulator, uncomment this line or cut/paste into debugger: +# set XSCALE 4.0; set YSCALE 4.0; set XOFFSET 1800; set YOFFSET 300 + +array set nodetypes { 0 def 1 phys 2 xen 3 tbd 4 lanswitch 5 hub \ + 6 wlan 7 rj45 8 tunnel 9 ktunnel 10 emane } + +array set regtypes { wl 1 mob 2 util 3 exec 4 gui 5 emul 6 } +array set regntypes { 1 wl 2 mob 3 util 4 exec 5 gui 6 emul 7 relay 10 session } +array set regtxttypes { wl "Wireless Module" mob "Mobility Module" \ + util "Utility Module" exec "Execution Server" \ + gui "Graphical User Interface" emul "Emulation Server" \ + relay "Relay" } +set DEFAULT_GUI_REG "gui core_2d_gui" +array set eventtypes { definition_state 1 configuration_state 2 \ + instantiation_state 3 runtime_state 4 \ + datacollect_state 5 shutdown_state 6 \ + event_start 7 event_stop 8 event_pause 9 \ + event_restart 10 file_open 11 file_save 12 \ + event_scheduled 31 } + +set CORE_STATES \ + "NONE DEFINITION CONFIGURATION INSTANTIATION RUNTIME DATACOLLECT SHUTDOWN" + +set EXCEPTION_LEVELS \ + "NONE FATAL ERROR WARNING NOTICE" + +# Event handler invoked for each message received by peer +proc receiveMessage { channel } { + global curcanvas showAPI + set prmsg $showAPI + set type 0 + set flags 0 + set len 0 + set seq 0 + + #puts "API receive data." + # disable the fileevent here, then reinstall the handler at the end + fileevent $channel readable "" + # channel closed + if { [eof $channel] } { + resetChannel channel 1 + return + } + + # + # read first four bytes of message header + set more_data 1 + while { $more_data == 1 } { + set bytes [read $channel 4] + if { [fblocked $channel] == 1} { + # 4 bytes not available yet + break; + } elseif { [eof $channel] } { + resetChannel channel 1 + break; + } elseif { [string bytelength $bytes] == 0 } { + # zero bytes read - parseMessageHeader would fail + break; + } + # parse type/flags/length + if { [parseMessageHeader $bytes type flags len] < 0 } { + # Message header error + break; + } + # read message data of specified length + set bytes [read $channel $len] + #if { $prmsg== 1} { + # puts "read $len bytes (type=$type, flags=$flags, len=$len)..." + #} + # handle each message type + switch -exact -- "$type" { + 1 { parseNodeMessage $bytes $len $flags } + 2 { parseLinkMessage $bytes $len $flags } + 3 { parseExecMessage $bytes $len $flags $channel } + 4 { parseRegMessage $bytes $len $flags $channel } + 5 { parseConfMessage $bytes $len $flags $channel } + 6 { parseFileMessage $bytes $len $flags $channel } + 8 { parseEventMessage $bytes $len $flags $channel } + 9 { parseSessionMessage $bytes $len $flags $channel } + 10 { parseExceptionMessage $bytes $len $flags $channel; + #7 { parseIfaceMessage $bytes $len $flags $channel } + # + } + default { puts "Unknown Message = $type" } + } + # end switch + } + # end while + + # update the canvas + catch { + # this messes up widgets + #raiseAll .c + .c config -cursor left_ptr ;# otherwise we have hourglass/pirate + update + } + + if {$channel != -1 } { + resetChannel channel 0 + } +} + +# +# Open an API socket to the specified server:port, prompt user for retry +# if specified; set the readable file event and parameters; +# returns the channel name or -1 on error. +# +proc openAPIChannel { server port retry } { + # use default values (localhost:4038) when none specified + if { $server == "" || $server == 0 } { + set server "localhost" + } + if { $port == 0 } { + global DEFAULT_API_PORT + set port $DEFAULT_API_PORT + } + + # loop when retry is true + set s -1 + while { $s < 0 } { + # TODO: fix this to remove lengthy timeout periods... + # (need to convert all channel I/O to use async channel) + # vwait doesn't work here, blocks on socket call + #puts "Connecting to $server:$port..."; # verbose + set svcstart [getServiceStartString] + set e "This feature requires a connection to the CORE daemon.\n" + set e "$e\nFailed to connect to $server:$port!\n" + set e "$e\nHave you started the CORE daemon with" + set e "$e '$svcstart'?" + if { [catch {set s [socket $server $port]} ex] } { + puts "\n$e\n (Error: $ex)" + set s -1 + if { ! $retry } { return $s; }; # error, don't retry + } + if { $s > 0 } { puts "connected." }; # verbose + if { $retry } {; # prompt user with retry dialog + if { $s < 0 } { + set choice [tk_dialog .connect "Error" $e \ + error 0 Retry "Start daemon..." Cancel] + if { $choice == 2 } { return $s } ;# cancel + if { $choice == 1 } { + set sudocmd "gksudo" + set cmd "core-daemon -d" + if { [catch {exec $sudocmd $cmd & } e] } { + puts "Error running '$sudocmd $cmd'!" + } + after 300 ;# allow time for daemon to start + } + # fall through for retry... + } + } + }; # end while + + # now we have a valid socket, set up encoding and receive event + fconfigure $s -blocking 0 -encoding binary -translation { binary binary } \ + -buffering full -buffersize 4096 + fileevent $s readable [list receiveMessage $s] + return $s +} + +# +# Reinstall the receiveMessage event handler +# +proc resetChannel { channel_ptr close } { + upvar 1 $channel_ptr channel + if {$close == 1} { + close $channel + pluginChannelClosed $channel + set $channel -1 + } + if { [catch { fileevent $channel readable \ + [list receiveMessage $channel] } ] } { + # may print error here + } +} + +# +# Catch errors when flushing sockets +# +proc flushChannel { channel_ptr msg } { + upvar 1 $channel_ptr channel + if { [catch { flush $channel } err] } { + puts "*** $msg: $err" + set channel -1 + return -1 + } + return 0 +} + + +# +# CORE message header +# +proc parseMessageHeader { bytes type flags len } { + # variables are passed by reference + upvar 1 $type mytype + upvar 1 $flags myflags + upvar 1 $len mylen + + # + # read the four-byte message header + # + if { [binary scan $bytes ccS mytype myflags mylen] != 3 } { + puts "*** warning: message header error" + return -1 + } else { + set mytype [expr {$mytype & 0xFF}]; # convert signed to unsigned + set myflags [expr {$myflags & 0xFF}] + if { $mylen == 0 } { + puts "*** warning: zero length message header!" + # empty the channel + #set bytes [read $channel] + return -1 + } + } + return 0 +} + + +# +# CORE API Node message TLVs +# +proc parseNodeMessage { data len flags } { + global node_list curcanvas c router eid showAPI nodetypes CORE_DATA_DIR + global XSCALE YSCALE XOFFSET YOFFSET deployCfgAPI_lock + #puts "Parsing node message of length=$len, flags=$flags" + set prmsg $showAPI + set current 0 + + array set typenames { 1 num 2 type 3 name 4 ipv4_addr 5 mac_addr \ + 6 ipv6_addr 7 model 8 emulsrv 10 session \ + 32 xpos 33 ypos 34 canv \ + 35 emuid 36 netid 48 lat 49 long 50 alt \ + 66 icon 80 opaque } + array set typesizes { num 4 type 4 name -1 ipv4_addr 4 ipv6_addr 16 \ + mac_addr 8 model -1 emulsrv -1 session -1 \ + xpos 2 ypos 2 canv 2 emuid 4 \ + netid 4 lat 4 long 4 alt 4 \ + icon -1 opaque -1 } + array set vals { num 0 type 0 name "" ipv4_addr -1 ipv6_addr -1 \ + mac_addr -1 model "" emulsrv "" session "" \ + xpos 0 ypos 0 canv "" \ + emuid -1 netid -1 \ + lat 0 long 0 alt 0 \ + icon "" opaque "" } + + if { $prmsg==1 } { puts -nonewline "NODE(flags=$flags," } + + # + # TLV parsing + # + while { $current < $len } { + # TLV header + if { [binary scan $data @${current}cc type length] != 2 } { + puts "TLV header error" + break + } + set length [expr {$length & 0xFF}]; # convert signed to unsigned + if { $length == 0 } {; # prevent endless looping + if { $type == 0 } { puts -nonewline "(extra padding)"; break + } else { puts "Found zero-length TLV for type=$type, dropping."; + break } + } + set pad [pad_32bit $length] + # verbose debugging + #puts "tlv type=$type length=$length pad=$pad current=$current" + incr current 2 + + if {![info exists typenames($type)] } { ;# unknown TLV type + if { $prmsg } { puts -nonewline "unknown=$type," } + incr current $length + continue + } + set typename $typenames($type) + set size $typesizes($typename) + # 32-bit and 64-bit vals pre-padded + if { $size == 4 || $size == 8 } { incr current $pad } + # read TLV data depending on size + switch -exact -- "$size" { + 2 { binary scan $data @${current}S vals($typename) } + 4 { binary scan $data @${current}I vals($typename) } + 8 { binary scan $data @${current}W vals($typename) } + 16 { binary scan $data @${current}c16 vals($typename) } + -1 { binary scan $data @${current}a${length} vals($typename) } + } + if { $size == -1 } { incr current $pad } ;# string vals post-padded + if { $type == 6 } { incr current $pad } ;# 128-bit vals post-padded + incr current $length + # special handling of data here + switch -exact -- "$typename" { + ipv4_addr { array set vals [list $typename \ + [ipv4ToString $vals($typename)] ] } + mac_addr { array set vals [list $typename \ + [macToString $vals($typename)] ] } + ipv6_addr { array set vals [list $typename \ + [ipv6ToString $vals($typename)] ] } + xpos { array set vals [list $typename \ + [expr { ($vals($typename) * $XSCALE) - $XOFFSET }] ] } + ypos { array set vals [list $typename \ + [expr { ($vals($typename) * $YSCALE) - $YOFFSET }] ] } + } + if { $prmsg } { puts -nonewline "$typename=$vals($typename)," } + } + + if { $prmsg } { puts ") "} + + # + # Execution + # + # TODO: enforce message parameters here + if { ![info exists nodetypes($vals(type))] } { + puts "NODE: invalid node type ($vals(type)), dropping"; return + } + set node "n$vals(num)" + set node_id "$eid\_$node" + if { [lsearch $node_list $node] == -1 } {; # check for node existance + set exists false + } else { + set exists true + } + + if { $vals(name) == "" } {; # make sure there is a node name + set name $node + if { $exists } { set name [getNodeName $node] } + array set vals [list name $name] + } + if { $exists } { + if { $flags == 1 } { + puts "Node add msg but node ($node) already exists, dropping." + return + } + } elseif { $flags != 1 } { + puts -nonewline "Node modify/delete message but node ($node) does " + puts "not exist dropping." + return + } + if { $vals(icon) != "" } { + set icon $vals(icon) + if { [file pathtype $icon] == "relative" } { + set icon "$CORE_DATA_DIR/icons/normal/$icon" + } + if { ![file exists $icon ] } { + puts "Node icon '$vals(icon)' does not exist." + array set vals [list icon ""] + } else { + array set vals [list icon $icon] + } + } + global $node + + set wlans_needing_update { } + if { $vals(emuid) != -1 } { + # For Linux (FreeBSD populates ngnodeidmap in l3node.instantiate/ + # buildInterface when the netgraph ID is known) + # populate ngnodeidmap for later use with wireless; it is treated as + # a hex value string (without the leading "0x") + global ngnodeidmap + foreach wlan [findWlanNodes $node] { + if { ![info exists ngnodeidmap($eid\_$wlan)] } { + set netid [string range $wlan 1 end] + set emulation_type [lindex [getEmulPlugin $node] 1] + # TODO: verify that this incr 1000 is for OpenVZ + if { $emulation_type == "openvz" } { incr netid 1000 } + set ngnodeidmap($eid\_$wlan) [format "%x" $netid] + } + if { ![info exists ngnodeidmap($eid\_$wlan-$node)] } { + set ngnodeidmap($eid\_$wlan-$node) [format "%x" $vals(emuid)] + lappend wlans_needing_update $wlan + } + } ;# end foreach wlan + } + + # local flags: informational message that node was added or deleted + if {[expr {$flags & 0x8}]} { + if { ![info exists c] } { return } + if {[expr {$flags & 0x1}] } { ;# add flag + nodeHighlights $c $node on green + after 3000 "nodeHighlights .c $node off green" + } elseif {[expr {$flags & 0x2}] } { ;# delete flag + nodeHighlights $c $node on black + after 3000 "nodeHighlights .c $node off black" + } + # note: we may want to save other data passed in this message here + # rather than just returning... + return + } + # now we have all the information about this node + switch -exact -- "$flags" { + 0 { apiNodeModify $node vals } + 1 { apiNodeCreate $node vals } + 2 { apiNodeDelete $node } + default { puts "NODE: unsupported flags ($flags)"; return } + } +} + +# +# modify a node +# +proc apiNodeModify { node vals_ref } { + global c eid zoom + upvar $vals_ref vals + if { ![info exists c] } { return } ;# batch mode + if { $vals(icon) != "" } { + setCustomImage $node $vals(icon) + .c delete withtag "node && $node" + .c delete withtag "nodelabel && $node" + drawNode .c $node + } + # move the node and its links + if {$vals(xpos) != 0 && $vals(ypos) != 0} { + moveNodeAbs $c $node [expr {$zoom * $vals(xpos)}] \ + [expr {$zoom * $vals(ypos)}] + } + if { $vals(name) != "" } { + setNodeName $node $vals(name) + } + # TODO: handle other optional on-screen data + # lat, long, alt, heading, platform type, platform id +} + +# +# add a node +# +proc apiNodeCreate { node vals_ref } { + global $node nodetypes node_list canvas_list curcanvas eid + upvar $vals_ref vals + + # create GUI object + set nodetype $nodetypes($vals(type)) + set nodename $vals(name) + if { $nodetype == "emane" } { set nodetype "wlan" } ;# special case - EMANE + if { $nodetype == "def" || $nodetype == "xen" } { set nodetype "router" } + newNode [list $nodetype $node] ;# use node number supplied from API message + setNodeName $node $nodename + if { $vals(canv) == "" } { + setNodeCanvas $node $curcanvas + } else { + set canv $vals(canv) + if { ![string is integer $canv] || $canv < 0 || $canv > 100} { + puts "warning: invalid canvas '$canv' in Node message!" + return + } + set canv "c$canv" + if { [lsearch $canvas_list $canv] < 0 && $canv == "c0" } { + # special case -- support old imn files with Canvas0 + global $canv + lappend canvas_list $canv + set $canv {} + setCanvasName $canv "Canvas0" + set curcanvas $canv + switchCanvas none + } else { + while { [lsearch $canvas_list $canv] < 0 } { + set canvnew [newCanvas ""] + switchCanvas none ;# redraw canvas tabs + } + } + setNodeCanvas $node $canv + } + setNodeCoords $node "$vals(xpos) $vals(ypos)" + lassign [getDefaultLabelOffsets [nodeType $node]] dx dy + setNodeLabelCoords $node "[expr $vals(xpos) + $dx] [expr $vals(ypos) + $dy]" + setNodeLocation $node $vals(emulsrv) + if { $vals(icon) != "" } { + setCustomImage $node $vals(icon) + } + drawNode .c $node + + set model $vals(model) + if { $model != "" && $vals(type) < 4} { + # set model only for (0 def 1 phys 2 xen 3 tbd) 4 lanswitch + setNodeModel $node $model + if { [lsearch -exact [getNodeTypeNames] $model] == -1 } { + puts "warning: unknown node type '$model' in Node message!" + } + } + + if { $vals(type) == 7 } { ;# RJ45 node - used later to control linking + netconfInsertSection $node [list model $vals(model)] + } elseif { $vals(type) == 10 } { ;# EMANE node + set section [list mobmodel coreapi ""] + netconfInsertSection $node $section + #set sock [lindex [getEmulPlugin $node] 2] + #sendConfRequestMessage $sock $node "all" 0x1 -1 "" + } elseif { $vals(type) == 6 } { ;# WLAN node + if { $vals(opaque) != "" } { + # treat opaque as a list to accomodate other data + set i [lsearch $vals(opaque) "range=*"] + if { $i != -1 } { + set range [lindex $vals(opaque) $i] + setNodeRange $node [lindex [split $range =] 1] + } + } + } +} + +# +# delete a node +# +proc apiNodeDelete { node } { + removeGUINode $node +} + +# +# CORE API Link message TLVs +# +proc parseLinkMessage { data len flags } { + global router def_router_model eid + global link_list node_list ngnodeidmap ngnodeidrmap showAPI execMode + set prmsg $showAPI + set current 0 + set c .c + #puts "Parsing link message of length=$len, flags=$flags" + + array set typenames { 1 node1num 2 node2num 3 delay 4 bw 5 per \ + 6 dup 7 jitter 8 mer 9 burst 10 session \ + 16 mburst 32 ltype 33 guiattr \ + 35 emuid1 36 netid 37 key \ + 48 if1num 49 if1ipv4 50 if1ipv4mask 51 if1mac \ + 52 if1ipv6 53 if1ipv6mask \ + 54 if2num 55 if2ipv4 56 if2ipv4mask 57 if2mac \ + 64 if2ipv6 65 if2ipv6mask } + array set typesizes { node1num 4 node2num 4 delay 8 bw 8 per -1 \ + dup -1 jitter 2 mer 2 burst 2 session -1 \ + mburst 2 ltype 4 guiattr -1 \ + emuid1 4 netid 4 key 4 \ + if1num 2 if1ipv4 4 if1ipv4mask 2 if1mac 8 \ + if1ipv6 16 if1ipv6mask 2 \ + if2num 2 if2ipv4 4 if2ipv4mask 2 if2mac 8 \ + if2ipv6 16 if2ipv6mask 2 } + array set vals { node1num -1 node2num -1 delay 0 bw 0 per "" \ + dup "" jitter 0 mer 0 burst 0 session "" \ + mburst 0 ltype 0 guiattr "" \ + emuid1 -1 netid -1 key -1 \ + if1num -1 if1ipv4 -1 if1ipv4mask 24 if1mac -1 \ + if1ipv6 -1 if1ipv6mask 64 \ + if2num -1 if2ipv4 -1 if2ipv4mask 24 if2mac -1 \ + if2ipv6 -1 if2ipv6mask 64 } + set emuid1 -1 + + if { $prmsg==1 } { puts -nonewline "LINK(flags=$flags," } + + # + # TLV parsing + # + while { $current < $len } { + # TLV header + if { [binary scan $data @${current}cc type length] != 2 } { + puts "TLV header error" + break + } + set length [expr {$length & 0xFF}]; # convert signed to unsigned + if { $length == 0 } {; # prevent endless looping + if { $type == 0 } { puts -nonewline "(extra padding)"; break + } else { puts "Found zero-length TLV for type=$type, dropping."; + break } + } + set pad [pad_32bit $length] + # verbose debugging + #puts "tlv type=$type length=$length pad=$pad current=$current" + incr current 2 + + if {![info exists typenames($type)] } { ;# unknown TLV type + if { $prmsg } { puts -nonewline "unknown=$type," } + incr current $length + continue + } + set typename $typenames($type) + set size $typesizes($typename) + # 32-bit and 64-bit vals pre-padded + if { $size == 4 || $size == 8} { incr current $pad } + # read TLV data depending on size + switch -exact -- "$size" { + 2 { binary scan $data @${current}S vals($typename) } + 4 { binary scan $data @${current}I vals($typename) } + 8 { binary scan $data @${current}W vals($typename) } + 16 { binary scan $data @${current}c16 vals($typename) } + -1 { binary scan $data @${current}a${length} vals($typename) } + } + incr current $length + # special handling of data here + switch -exact -- "$typename" { + delay - + jitter { if { $vals($typename) > 2000000 } { + array set vals [list $typename 2000000] } } + bw { if { $vals($typename) > 1000000000 } { + array set vals [list $typename 0] } } + per { if { $vals($typename) > 100 } { + array set vals [list $typename 100] } } + dup { if { $vals($typename) > 50 } { + array set vals [list $typename 50] } } + emuid1 { if { $emuid1 == -1 } { + set emuid $vals($typename) + } else { ;# this sets emuid2 if we already have emuid1 + array set vals [list emuid2 $vals($typename) ] + array set vals [list emuid1 $emuid1 ] + } + } + if1ipv4 - + if2ipv4 { array set vals [list $typename \ + [ipv4ToString $vals($typename)] ] } + if1mac - + if2mac { array set vals [list $typename \ + [macToString $vals($typename)] ] } + if1ipv6 - + if2ipv6 { array set vals [list $typename \ + [ipv6ToString $vals($typename)] ] } + } + if { $prmsg } { puts -nonewline "$typename=$vals($typename)," } + if { $size == 16 } { incr current $pad } ;# 128-bit vals post-padded + if { $size == -1 } { incr current $pad } ;# string vals post-padded + } + + if { $prmsg == 1 } { puts ") " } + + # perform some sanity checking of the link message + if { $vals(node1num) == $vals(node2num) || \ + $vals(node1num) < 0 || $vals(node2num) < 0 } { + puts -nonewline "link message error - node1=$vals(node1num), " + puts "node2=$vals(node2num)" + return + } + + # convert node number to node and check for node existance + set node1 "n$vals(node1num)" + set node2 "n$vals(node2num)" + if { [lsearch $node_list $node1] == -1 || \ + [lsearch $node_list $node2] == -1 } { + puts "Node ($node1/$node2) in link message not found, dropping" + return + } + + # set IPv4 and IPv6 address if specified, otherwise may be automatic + set prefix1 [chooseIfName $node1 $node2] + set prefix2 [chooseIfName $node2 $node1] + foreach i "1 2" { + # set interface name/number + if { $vals(if${i}num) == -1 } { + set ifname [newIfc [set prefix${i}] [set node${i}]] + set prefixlen [string length [set prefix${i}]] + set if${i}num [string range $ifname $prefixlen end] + array set vals [list if${i}num [set if${i}num]] + } + set ifname [set prefix${i}]$vals(if${i}num) + array set vals [list if${i}name $ifname] + # record IPv4/IPv6 addresses for newGUILink + foreach j "4 6" { + if { $vals(if${i}ipv${j}) != -1 } { + setIfcIPv${j}addr [set node${i}] $ifname \ + $vals(if${i}ipv${j})/$vals(if${i}ipv${j}mask) + } + } + } + # adopt network address for WLAN (WLAN must be node 1) + if { [nodeType $node1] == "wlan" } { + set v4addr $vals(if2ipv4) + if { $v4addr != -1 } { + set v4net [ipv4ToNet $v4addr $vals(if2ipv4mask)] + setIfcIPv4addr $node1 wireless "$v4net/$vals(if2ipv4mask)" + } + set v6addr $vals(if2ipv6) + if { $v6addr != -1 } { + set v6net [ipv6ToNet $v6addr $vals(if2ipv6mask)] + setIfcIPv6addr $node1 wireless "${v6net}::0/$vals(if2ipv6mask)" + } + } + + if { $execMode == "batch" } { + return ;# no GUI to update in batch mode + } + # treat 100% loss as link delete + if { $flags == 0 && $vals(per) == 100 } { + apiLinkDelete $node1 $node2 vals + return + } + + # now we have all the information about this node + switch -exact -- "$flags" { + 0 { apiLinkAddModify $node1 $node2 vals 0 } + 1 { apiLinkAddModify $node1 $node2 vals 1 } + 2 { apiLinkDelete $node1 $node2 vals } + default { puts "LINK: unsupported flags ($flags)"; return } + } +} + +# +# add or modify a link +# if add flag is set, check if two nodes are part of same wlan, and do wlan +# linkage, or add a wired link; otherwise modify wired/wireless link with +# supplied parameters +proc apiLinkAddModify { node1 node2 vals_ref add } { + global eid defLinkWidth + set c .c + upvar $vals_ref vals + + set labelstr ""; # build a label string + if {$vals(bw) > 0} { set labelstr "$labelstr$vals(bw) " } + if {$vals(delay) > 0} { set labelstr \ + "$labelstr[expr $vals(delay)/1000] ms " } + if {$vals(per) > 0} { set labelstr "${labelstr}E=$vals(per)% " } + if {$vals(dup) > 0} { set labelstr "${labelstr}D=$vals(dup)% " } + if {$vals(jitter) > 0} { + set labelstr "${labelstr}J=[expr $vals(jitter)/1000] ms " } + + set params ""; # parameters to send to ng_wlan netgraph node + if { $labelstr != "" } { + set params "delay=$vals(delay) bandwidth=$vals(bw) per=$vals(per)" + set params "$params duplicate=$vals(dup) jitter=$vals(jitter)" + } + if {$vals(key) > -1} { + if { [nodeType $node1] == "tunnel" } { + netconfInsertSection $node1 [list "tunnel-key" $vals(key)] + } + if { [nodeType $node2] == "tunnel" } { + netconfInsertSection $node2 [list "tunnel-key" $vals(key)] + } + } + + # look for a wired link in the link list + set wired_link [linkByPeers $node1 $node2] + if { $wired_link != "" && $add == 0 } { ;# wired link exists, modify it + #puts "modify wired link" + setLinkBandwidth $wired_link $vals(bw) + setLinkDelay $wired_link $vals(delay) + setLinkBER $wired_link $vals(per) + setLinkDup $wired_link $vals(dup) + setLinkJitter $wired_link $vals(jitter) + updateLinkLabel $wired_link + updateLinkGuiAttr $wired_link $vals(guiattr) + return + # if add flag is set and a wired link already exists, assume wlan linkage + # special case: rj45 model=1 means link via wireless + } elseif {[nodeType $node1] == "rj45" || [nodeType $node2] == "rj45"} { + if { [nodeType $node1] == "rj45" } { + set rj45node $node1; set othernode $node2; + } else { set rj45node $node2; set othernode $node1; } + if { [netconfFetchSection $rj45node model] == 1 } { + set wlan [findWlanNodes $othernode] + if {$wlan != ""} {newGUILink $wlan $rj45node};# link rj4node to wlan + } + } + + # no wired link; determine if both nodes belong to the same wlan, and + # link them; otherwise add a wired link if add flag is set + set wlan $vals(netid) + if { $wlan < 0 } { + # WLAN not specified with netid, search for common WLAN + set wlans1 [findWlanNodes $node1] + set wlans2 [findWlanNodes $node2] + foreach w $wlans1 { + if { [lsearch -exact $wlans2 $w] < 0 } { continue } + set wlan $w + break + } + } + + if { $wlan < 0 } { ;# no common wlan + if {$add == 1} { ;# add flag was set - add a wired link + global g_newLink_ifhints + set g_newLink_ifhints [list $vals(if1name) $vals(if2name)] + newGUILink $node1 $node2 + if { [getNodeCanvas $node1] != [getNodeCanvas $node2] } { + set wired_link [linkByPeersMirror $node1 $node2] + } else { + set wired_link [linkByPeers $node1 $node2] + } + setLinkBandwidth $wired_link $vals(bw) + setLinkDelay $wired_link $vals(delay) + setLinkBER $wired_link $vals(per) + setLinkDup $wired_link $vals(dup) + setLinkJitter $wired_link $vals(jitter) + updateLinkLabel $wired_link + updateLinkGuiAttr $wired_link $vals(guiattr) + # adopt link effects for WLAN (WLAN must be node 1) + if { [nodeType $node1] == "wlan" } { + setLinkBandwidth $node1 $vals(bw) + setLinkDelay $node1 $vals(delay) + setLinkBER $node1 $vals(per) + } + return + } else { ;# modify link, but no wired link or common wlan! + puts -nonewline "link modify message received, but no wired link" + puts " or wlan for nodes $node1-$node2, dropping" + return + } + } + + set wlan "n$wlan" + drawWlanLink $node1 $node2 $wlan +} + +# +# delete a link +# +proc apiLinkDelete { node1 node2 vals_ref } { + global eid + upvar $vals_ref vals + set c .c + + # look for a wired link in the link list + set wired_link [linkByPeers $node1 $node2] + if { $wired_link != "" } { + removeGUILink $wired_link non-atomic + return + } + + set wlan $vals(netid) + if { $wlan < 0 } { + # WLAN not specified with netid, search for common WLAN + set wlans1 [findWlanNodes $node1] + set wlans2 [findWlanNodes $node2] + foreach w $wlans1 { + if { [lsearch -exact $wlans2 $w] < 0 } { continue } + set wlan $w + break + } + } + if { $wlan < 0 } { + puts "apiLinkDelete: no common WLAN!" + return + } + set wlan "n$wlan" + + # look for wireless link on the canvas, remove GUI object + $c delete -withtags "wlanlink && $node2 && $node1 && $wlan" + $c delete -withtags "linklabel && $node2 && $node1 && $wlan" +} + +# +# CORE API Execute message TLVs +# +proc parseExecMessage { data len flags channel } { + global node_list curcanvas c router eid showAPI + global XSCALE YSCALE XOFFSET YOFFSET + set prmsg $showAPI + set current 0 + + # set default values + set nodenum 0 + set execnum 0 + set exectime 0 + set execcmd "" + set execres "" + set execstatus 0 + set session "" + + if { $prmsg==1 } { puts -nonewline "EXEC(flags=$flags," } + + # parse each TLV + while { $current < $len } { + # TLV header + set typelength [parseTLVHeader $data current] + set type [lindex $typelength 0] + set length [lindex $typelength 1] + if { $length == 0 || $length == "" } { break } + set pad [pad_32bit $length] + # verbose debugging + #puts "exec tlv type=$type length=$length pad=$pad current=$current" + if { [expr {$current + $length + $pad}] > $len } { + puts "error with EXEC message length (len=$len, TLV length=$length)" + break + } + # TLV data + switch -exact -- "$type" { + 1 { + incr current $pad + binary scan $data @${current}I nodenum + if { $prmsg==1 } { puts -nonewline "node=$nodenum/" } + } + 2 { + incr current $pad + binary scan $data @${current}I execnum + if { $prmsg == 1} { puts -nonewline "exec=$execnum," } + } + 3 { + incr current $pad + binary scan $data @${current}I exectime + if { $prmsg == 1} { puts -nonewline "time=$exectime," } + } + 4 { + binary scan $data @${current}a${length} execcmd + if { $prmsg == 1} { puts -nonewline "cmd=$execcmd," } + incr current $pad + } + 5 { + binary scan $data @${current}a${length} execres + if { $prmsg == 1} { puts -nonewline "res=($length bytes)," } + incr current $pad + } + 6 { + incr current $pad + binary scan $data @${current}I execstatus + if { $prmsg == 1} { puts -nonewline "status=$execstatus," } + } + 10 { + binary scan $data @${current}a${length} session + if { $prmsg == 1} { puts -nonewline "session=$session," } + incr current $pad + } + default { + if { $prmsg == 1} { puts -nonewline "unknown=" } + if { $prmsg == 1} { puts -nonewline "$type," } + } + } + # end switch + + # advance current pointer + incr current $length + } + if { $prmsg == 1 } { puts ") "} + + set node "n$nodenum" + set node_id "$eid\_$node" + # check for node existance + if { [lsearch $node_list $node] == -1 } { + puts "Execute message but node ($node) does not exist, dropping." + return + } + global $node + + # Callback support - match execnum from response with original request, and + # invoke type-specific callback + global g_execRequests + foreach type [array names g_execRequests] { + set idx [lsearch $g_execRequests($type) $execnum] + if { $idx > -1 } { + set g_execRequests($type) \ + [lreplace $g_execRequests($type) $idx $idx] + exec_${type}_callback $node $execnum $execcmd $execres $execstatus + return + } + } +} + +# spawn interactive terminal +proc exec_shell_callback { node execnum execcmd execres execstatus } { + #puts "opening terminal for $node by running '$execres'" + set title "CORE: [getNodeName $node] (console)" + set term [get_term_prog false] + set xi [string first "xterm -e" $execres] + + # shell callback already has xterm command, launch it using user-defined + # term program (e.g. remote nodes 'ssh -X -f a.b.c.d xterm -e ...' + if { $xi > -1 } { + set execres [string replace $execres $xi [expr $xi+7] $term] + if { [catch {exec sh -c "$execres" & } ] } { + puts "Warning: failed to open terminal for $node" + } + return + # no xterm command; execute shell callback in a terminal (e.g. local nodes) + } elseif { \ + [catch {eval exec $term "$execres" & } ] } { + puts "Warning: failed to open terminal for $node: ($term $execres)" + } +} + + +# +# CORE API Register message TLVs +# parse register message into plugin capabilities +# +proc parseRegMessage { data len flags channel } { + global regntypes showAPI + set prmsg $showAPI + set current 0 + set str 0 + set session "" + + set plugin_cap_list {} ;# plugin capabilities list + + if { $prmsg==1 } { puts -nonewline "REG(flags=$flags," } + + # parse each TLV + while { $current < $len } { + # TLV header + if { [binary scan $data @${current}cc type length] != 2 } { + puts "TLV header error" + break + } + set length [expr {$length & 0xFF}]; # convert signed to unsigned + if { $length == 0 } { + # prevent endless looping + if { $type == 0 } { + puts -nonewline "(extra padding)" + break + } else { + puts "Found zero-length TLV for type=$type, dropping." + break + } + } + set pad [pad_32bit $length] + # verbose debugging + #puts "tlv type=$type length=$length pad=$pad current=$current" + incr current 2 + # TLV data + if { [info exists regntypes($type)] } { + set plugin_type $regntypes($type) + binary scan $data @${current}a${length} str + if { $prmsg == 1} { puts -nonewline "$plugin_type=$str," } + if { $type == 10 } { ;# session number + set session $str + } else { + lappend plugin_cap_list "$plugin_type=$str" + } + } else { + if { $prmsg == 1} { puts -nonewline "unknown($type)," } + } + incr current $pad + # end switch + + # advance current pointer + incr current $length + } + if { $prmsg == 1 } { puts ") "} + + # reg message with session number indicates the sid of a session that + # was just started from a Python script (via reg exec=scriptfile.py) + if { $session != "" } { + # assume session string only contains one session number + connectShutdownSession connect $channel $session + return + } + + set plugin [pluginByChannel $channel] + if { [setPluginCapList $plugin $plugin_cap_list] < 0 } { + return + } + + # callback to refresh any open dialogs this message may refresh + pluginsConfigRefreshCallback +} + +proc parseConfMessage { data len flags channel } { + global showAPI node_list MACHINE_TYPES + set prmsg $showAPI + set current 0 + set str 0 + set nodenum -1 + set obj "" + set tflags 0 + set types {} + set values {} + set captions {} + set bitmap {} + set possible_values {} + set groups {} + set opaque {} + set session "" + set netid -1 + + if { $prmsg==1 } { puts -nonewline "CONF(flags=$flags," } + + # parse each TLV + while { $current < $len } { + set typelength [parseTLVHeader $data current] + set type [lindex $typelength 0] + set length [lindex $typelength 1] + set pad [pad_32bit $length] + if { $length == 0 || $length == "" } { + # allow some zero-length string TLVs + if { $type < 5 || $type > 9 } { break } + } + # verbose debugging + #puts "tlv type=$type length=$length pad=$pad current=$current" + # TLV data + switch -exact -- "$type" { + 1 { + incr current $pad + binary scan $data @${current}I nodenum + if { $prmsg == 1} { puts -nonewline "node=$nodenum/" } + } + 2 { + binary scan $data @${current}a${length} obj + if { $prmsg == 1} { puts -nonewline "obj=$obj," } + incr current $pad + } + 3 { + binary scan $data @${current}S tflags + if { $prmsg == 1} { puts -nonewline "cflags=$tflags," } + } + 4 { + set type 0 + set types {} + if { $prmsg == 1} { puts -nonewline "types=" } + # number of 16-bit values + set types_len $length + # get each 16-bit type value, add to list + while {$types_len > 0} { + binary scan $data @${current}S type + if {$type > 0 && $type < 12} { + lappend types $type + if { $prmsg == 1} { puts -nonewline "$type/" } + } + incr current 2 + incr types_len -2 + } + if { $prmsg == 1} { puts -nonewline "," } + incr current -$length; # length incremented below + incr current $pad + } + 5 { + set values {} + binary scan $data @${current}a${length} vals + if { $prmsg == 1} { puts -nonewline "vals=$vals," } + set values [split $vals |] + incr current $pad + } + 6 { + set captions {} + binary scan $data @${current}a${length} capt + if { $prmsg == 1} { puts -nonewline "capt=$capt," } + set captions [split $capt |] + incr current $pad + } + 7 { + set bitmap {} + binary scan $data @${current}a${length} bitmap + if { $prmsg == 1} { puts -nonewline "bitmap," } + incr current $pad + } + 8 { + set possible_values {} + binary scan $data @${current}a${length} pvals + if { $prmsg == 1} { puts -nonewline "pvals=$pvals," } + set possible_values [split $pvals |] + incr current $pad + } + 9 { + set groups {} + binary scan $data @${current}a${length} groupsstr + if { $prmsg == 1} { puts -nonewline "groups=$groupsstr," } + set groups [split $groupsstr |] + incr current $pad + } + 10 { + binary scan $data @${current}a${length} session + if { $prmsg == 1} { puts -nonewline "session=$session," } + incr current $pad + } + 35 { + incr current $pad + binary scan $data @${current}I netid + if { $prmsg == 1} { puts -nonewline "netid=$netid/" } + } + 80 { + set opaque {} + binary scan $data @${current}a${length} opaquestr + if { $prmsg == 1} { puts -nonewline "opaque=$opaquestr," } + set opaque [split $opaquestr |] + incr current $pad + } + default { + if { $prmsg == 1} { puts -nonewline "unknown=" } + if { $prmsg == 1} { puts -nonewline "$type," } + } + } + # end switch + + # advance current pointer + incr current $length + } + + if { $prmsg == 1 } { puts ") "} + + set objs_ok [concat "services session metadata emane" $MACHINE_TYPES] + if { $nodenum > -1 } { + set node "n$nodenum" + } else { + set node "" + } + # check for node existance + if { [lsearch $node_list $node] == -1 } { + if { [lsearch $objs_ok $obj] < 0 } { + set msg "Configure message for $obj but node ($node) does" + set msg "$msg not exist, dropping." + puts $msg + return + } + } else { + global $node + } + + # for handling node services + # this could be improved, instead of checking for the hard-coded object + # "services" and opaque data for service customization + if { $obj == "services" } { + if { $tflags & 0x2 } { ;# update flag + if { $opaque != "" } { + set services [lindex [split $opaque ":"] 1] + set services [split $services ","] + customizeServiceValues n$nodenum $values $services + } + # TODO: save services config with the node + } elseif { $tflags & 0x1 } { ;# request flag + # TODO: something else + } else { + popupServicesConfig $channel n$nodenum $types $values $captions \ + $possible_values $groups $session + } + return + # metadata received upon XML file load + } elseif { $obj == "metadata" } { + parseMetaData $values + return + # session options received upon XML file load + } elseif { $obj == "session" && $tflags & 0x2 } { + setSessionOptions $types $values + return + } + # handle node machine-type profile + if { [lsearch $MACHINE_TYPES $obj] != -1 } { + if { $tflags == 0 } { + popupNodeProfileConfig $channel n$nodenum $obj $types $values \ + $captions $bitmap $possible_values $groups $session \ + $opaque + } else { + puts -nonewline "warning: received Configure message for profile " + puts "with unexpected flags!" + } + return + } + + # update the configuration for a node without displaying dialog box + if { $tflags & 0x2 } { + # this is similar to popupCapabilityConfigApply + setCustomConfig $node $obj $types $values 0 + if { $obj != "emane" && [nodeType $node] == "wlan"} { + set section [list mobmodel coreapi $obj] + netconfInsertSection $node $section + } + # configuration request - unhandled + } elseif { $tflags & 0x1 } { + # configuration response data from our request (from GUI plugin configure) + } else { + popupCapabilityConfig $channel n$nodenum $obj $types $values \ + $captions $bitmap $possible_values $groups + } +} + +# process metadata received from Conf Message when loading XML +proc parseMetaData { values } { + global canvas_list annotation_list execMode g_comments + + foreach value $values { + # data looks like this: "annotation a1={iconcoords {514.0 132.0...}}" + lassign [splitKeyValue $value] key object_config + lassign $key class object + # metadata with no object name e.g. comments="Comment text" + if { "$class" == "comments" } { + set g_comments $object_config + continue + } elseif { "$class" == "global_options" } { + foreach opt $object_config { + lassign [split $opt =] key value + setGlobalOption $key $value + } + continue + } + # metadata having class and object name + if {"$class" == "" || $object == ""} { + puts "warning: invalid metadata value '$value'" + } + if { "$class" == "canvas" } { + if { [lsearch $canvas_list $object] < 0 } { + lappend canvas_list $object + } + } elseif { "$class" == "annotation" } { + if { [lsearch $annotation_list $object] < 0 } { + lappend annotation_list $object + } + } else { + puts "metadata parsing error: unknown object class $class" + } + global $object + set $object $object_config + } + + if { $execMode == "batch" } { return } + switchCanvas none + redrawAll +} + +proc parseFileMessage { data len flags channel } { + global showAPI node_list + set prmsg $showAPI + + array set tlvnames { 1 num 2 name 3 mode 4 fno 5 type 6 sname \ + 10 session 16 data 17 cdata } + array set tlvsizes { num 4 name -1 mode -3 fno 2 type -1 sname -1 \ + session -1 data -1 cdata -1 } + array set defvals { num -1 name "" mode -1 fno -1 type "" sname "" \ + session "" data "" cdata "" } + + if { $prmsg==1 } { puts -nonewline "FILE(flags=$flags," } + array set vals [parseMessage $data $len $flags [array get tlvnames] \ + [array get tlvsizes] [array get defvals]] + if { $prmsg } { puts ") "} + + # hook scripts received in File Message + if { [string range $vals(type) 0 4] == "hook:" } { + global g_hook_scripts + set state [string range $vals(type) 5 end] + lappend g_hook_scripts [list $vals(name) $state $vals(data)] + return + } + + # required fields + foreach t "num name data" { + if { $vals($t) == $defvals($t) } { + puts "Received File Message without $t, dropping."; return; + } + } + + # check for node existance + set node "n$vals(num)" + if { [lsearch $node_list $node] == -1 } { + puts "File message but node ($node) does not exist, dropping." + return + } else { + global $node + } + + # service customization received in File Message + if { [string range $vals(type) 0 7] == "service:" } { + customizeServiceFile $node $vals(name) $vals(type) $vals(data) true + } +} + +proc parseEventMessage { data len flags channel } { + global showAPI eventtypes g_traffic_start_opt execMode node_list + set prmsg $showAPI + set current 0 + set nodenum -1 + set eventtype -1 + set eventname "" + set eventdata "" + set eventtime "" + set session "" + + if { $prmsg==1 } { puts -nonewline "EVENT(flags=$flags," } + + # parse each TLV + while { $current < $len } { + set typelength [parseTLVHeader $data current] + set type [lindex $typelength 0] + set length [lindex $typelength 1] + if { $length == 0 || $length == "" } { break } + set pad [pad_32bit $length] + # verbose debugging + #puts "tlv type=$type length=$length pad=$pad current=$current" + # TLV data + switch -exact -- "$type" { + 1 { + incr current $pad + binary scan $data @${current}I nodenum + if { $prmsg == 1} { puts -nonewline "node=$nodenum," } + } + 2 { + incr current $pad + binary scan $data @${current}I eventtype + if { $prmsg == 1} { + set typestr "" + foreach t [array names eventtypes] { + if { $eventtypes($t) == $eventtype } { + set typestr "-$t" + break + } + } + puts -nonewline "type=$eventtype$typestr," + } + } + 3 { + binary scan $data @${current}a${length} eventname + if { $prmsg == 1} { puts -nonewline "name=$eventname," } + incr current $pad + } + 4 { + binary scan $data @${current}a${length} eventdata + if { $prmsg == 1} { puts -nonewline "data=$eventdata," } + incr current $pad + } + 5 { + binary scan $data @${current}a${length} eventtime + if { $prmsg == 1} { puts -nonewline "time=$eventtime," } + incr current $pad + } + 10 { + binary scan $data @${current}a${length} session + if { $prmsg == 1} { puts -nonewline "session=$session," } + incr current $pad + } + default { + if { $prmsg == 1} { puts -nonewline "unknown=" } + if { $prmsg == 1} { puts -nonewline "$type," } + } + } + # end switch + + # advance current pointer + incr current $length + } + + if { $prmsg == 1 } { puts ") "} + + # TODO: take other actions here based on Event Message + if { $eventtype == 4 } { ;# entered the runtime state + if { $g_traffic_start_opt == 1 } { startTrafficScripts } + if { $execMode == "batch" } { + global g_current_session + puts "disconnecting. Session id is $g_current_session" + exit.real + } + } elseif { $eventtype == 6 } { ;# shutdown state + set name [lindex [getEmulPlugin "*"] 0] + if { [getAssignedRemoteServers] == "" } { + # start a new session if not distributed + # otherwise we need to allow time for node delete messages + # from other servers + pluginConnect $name disconnect 1 + pluginConnect $name connect 1 + } + } elseif { $eventtype >= 7 || $eventtype <= 10 } { + if { [string range $eventname 0 8] == "mobility:" } { + set node "n$nodenum" + if {[lsearch $node_list $node] == -1} { + puts "Event message with unknown node %nodenum." + return + } + handleMobilityScriptEvent $node $eventtype $eventdata $eventtime + } + } +} + +proc parseSessionMessage { data len flags channel } { + global showAPI g_current_session g_session_dialog_hint execMode + set prmsg $showAPI + set current 0 + set sessionids {} + set sessionnames {} + set sessionfiles {} + set nodecounts {} + set sessiondates {} + set thumbs {} + set sessionopaque {} + + if { $prmsg==1 } { puts -nonewline "SESSION(flags=$flags," } + + # parse each TLV + while { $current < $len } { + set typelength [parseTLVHeader $data current] + set type [lindex $typelength 0] + set length [lindex $typelength 1] + if { $length == 0 || $length == "" } { + puts "warning: zero-length TLV, discarding remainder of message!" + break + } + set pad [pad_32bit $length] + # verbose debugging + #puts "tlv type=$type length=$length pad=$pad current=$current" + # TLV data + switch -exact -- "$type" { + 1 { + set sessionids {} + binary scan $data @${current}a${length} sids + if { $prmsg == 1} { puts -nonewline "sids=$sids," } + set sessionids [split $sids |] + incr current $pad + } + 2 { + set sessionnames {} + binary scan $data @${current}a${length} snames + if { $prmsg == 1} { puts -nonewline "names=$snames," } + set sessionnames [split $snames |] + incr current $pad + } + 3 { + set sessionfiles {} + binary scan $data @${current}a${length} sfiles + if { $prmsg == 1} { puts -nonewline "files=$sfiles," } + set sessionfiles [split $sfiles |] + incr current $pad + } + 4 { + set nodecounts {} + binary scan $data @${current}a${length} ncs + if { $prmsg == 1} { puts -nonewline "ncs=$ncs," } + set nodecounts [split $ncs |] + incr current $pad + } + 5 { + set sessiondates {} + binary scan $data @${current}a${length} sdates + if { $prmsg == 1} { puts -nonewline "dates=$sdates," } + set sessiondates [split $sdates |] + incr current $pad + } + 6 { + set thumbs {} + binary scan $data @${current}a${length} th + if { $prmsg == 1} { puts -nonewline "thumbs=$th," } + set thumbs [split $th |] + incr current $pad + } + 10 { + set sessionopaque {} + binary scan $data @${current}a${length} sessionopaque + if { $prmsg == 1} { puts -nonewline "$sessionopaque," } + incr current $pad + } + default { + if { $prmsg == 1} { puts -nonewline "unknown=" } + if { $prmsg == 1} { puts -nonewline "$type," } + } + } + # end switch + + # advance current pointer + incr current $length + } + + if { $prmsg == 1 } { puts ") "} + + if {$g_current_session == 0} { + # set the current session to the channel port number + set current_session [lindex [fconfigure $channel -sockname] 2] + } else { + set current_session $g_current_session + } + + if {[lsearch $sessionids $current_session] == -1} { + puts -nonewline "*** warning: current session ($g_current_session) " + puts "not found in session list: $sessionids" + } + + set orig_session_choice $g_current_session + set g_current_session $current_session + setGuiTitle "" + + if {$execMode == "closebatch"} { + # we're going to close some session, so this is expected + global g_session_choice + + if {[lsearch $sessionids $g_session_choice] == -1} { + puts -nonewline "*** warning: current session ($g_session_choice) " + puts "not found in session list: $sessionids" + } else { + set flags 0x2 ;# delete flag + set sid $g_session_choice + set name "" + set f "" + set nodecount "" + set thumb "" + set user "" + sendSessionMessage $channel $flags $sid $name $f $nodecount $thumb $user + + puts "Session shutdown message sent." + } + exit.real + } + + if {$orig_session_choice == 0 && [llength $sessionids] == 1} { + # we just started up and only the current session exists + set g_session_dialog_hint 0 + return + } + + if {$execMode == "batch"} { + puts "Another session is active." + exit.real + } + + if { $g_session_dialog_hint } { + popupSessionConfig $channel $sessionids $sessionnames $sessionfiles \ + $nodecounts $sessiondates $thumbs $sessionopaque + } + set g_session_dialog_hint 0 +} + +# parse message TLVs given the possible TLV names and sizes +# default values are supplied in defaultvals, parsed values are returned +proc parseMessage { data len flags tlvnamesl tlvsizesl defaultvalsl } { + global showAPI + set prmsg $showAPI + + array set tlvnames $tlvnamesl + array set tlvsizes $tlvsizesl + array set vals $defaultvalsl ;# this array is returned + + set current 0 + + while { $current < $len } { + set typelength [parseTLVHeader $data current] + set type [lindex $typelength 0] + set length [lindex $typelength 1] + if { $length == 0 || $length == "" } { break } + set pad [pad_32bit $length] + + if {![info exists tlvnames($type)] } { ;# unknown TLV type + if { $prmsg } { puts -nonewline "unknown=$type," } + incr current $length + continue + } + set tlvname $tlvnames($type) + set size $tlvsizes($tlvname) + # 32-bit and 64-bit vals pre-padded + if { $size == 4 || $size == 8 } { incr current $pad } + # read TLV data depending on size + switch -exact -- "$size" { + 2 { binary scan $data @${current}S vals($tlvname) } + 4 { binary scan $data @${current}I vals($tlvname) } + 8 { binary scan $data @${current}W vals($tlvname) } + 16 { binary scan $data @${current}c16 vals($tlvname) } + -1 { binary scan $data @${current}a${length} vals($tlvname) } + } + if { $size == -1 } { incr current $pad } ;# string vals post-padded + if { $type == 6 } { incr current $pad } ;# 128-bit vals post-padded + incr current $length + + if { $prmsg } { puts -nonewline "$tlvname=$vals($tlvname)," } + } + return [array get vals] +} + +proc parseExceptionMessage { data len flags channel } { + global showAPI + set prmsg $showAPI + + array set typenames { 1 num 2 sess 3 level 4 src 5 date 6 txt 10 opaque } + array set typesizes { num 4 sess -1 level 2 src -1 date -1 txt -1 \ + opaque -1 } + array set defvals { num -1 sess "" level -1 src "" date "" txt "" opaque ""} + + if { $prmsg==1 } { puts -nonewline "EXCEPTION(flags=$flags," } + array set vals [parseMessage $data $len $flags [array get typenames] \ + [array get typesizes] [array get defvals]] + if { $prmsg == 1 } { puts ") "} + + if { $vals(level) == $defvals(level) } { + puts "Exception Message received without an exception level."; return; + } + + receiveException [array get vals] +} + +proc sendNodePosMessage { channel node nodeid x y wlanid force } { + global showAPI + set prmsg $showAPI + + if { $channel == -1 } { + set channel [lindex [getEmulPlugin $node] 2] + if { $channel == -1 } { return } + } + set node_num [string range $node 1 end] + set x [format "%u" [expr int($x)]] + set y [format "%u" [expr int($y)]] + set len [expr 8+4+4] ;# node number, x, y + if {$nodeid > -1} { incr len 8 } + if {$wlanid > -1} { incr len 8 } + if {$force == 1 } { set crit 0x4 } else { set crit 0x0 } + #puts "sending [expr $len+4] bytes: $nodeid $x $y $wlanid" + if { $prmsg == 1 } { + puts -nonewline ">NODE(flags=$crit,$node,x=$x,y=$y" } + set msg [binary format ccSc2sIc2Sc2S \ + 1 $crit $len \ + {1 4} 0 $node_num \ + {0x20 2} $x \ + {0x21 2} $y + ] + + set msg2 "" + set msg3 "" + if { $nodeid > -1 } { + if { $prmsg == 1 } { puts -nonewline ",emuid=$nodeid" } + set msg2 [binary format c2sI {0x23 4} 0 $nodeid] + } + if { $wlanid > -1 } { + if { $prmsg == 1 } { puts -nonewline ",netid=$wlanid" } + set msg3 [binary format c2sI {0x24 4} 0 $wlanid] + } + + if { $prmsg == 1 } { puts ")" } + puts -nonewline $channel $msg$msg2$msg3 + flushChannel channel "Error sending node position" +} + +# build a new node +proc sendNodeAddMessage { channel node } { + global showAPI CORE_DATA_DIR + set prmsg $showAPI + set len [expr {8+8+4+4}]; # node number, type, x, y + set ipv4 0 + set ipv6 0 + set macstr "" + set wireless 0 + + # type, name + set type [getNodeTypeAPI $node] + set model [getNodeModel $node] + set model_len [string length $model] + set model_pad_len [pad_32bit $model_len] + set model_pad [binary format x$model_pad_len] + set name [getNodeName $node] + set name_len [string length $name] + set name_pad_len [pad_32bit $name_len] + set name_pad [binary format x$name_pad_len] + incr len [expr { 2+$name_len+$name_pad_len}] + if {$model_len > 0} { incr len [expr {2+$model_len+$model_pad_len }] } + set node_num [string range $node 1 end] + + # fixup node type for EMANE-enabled WLAN nodes + set opaque "" + if { [isEmane $node] } { set type 0xA } + + # emulation server (node location) + set emusrv [getNodeLocation $node] + set emusrv_len [string length $emusrv] + set emusrv_pad_len [pad_32bit $emusrv_len] + set emusrv_pad [binary format x$emusrv_pad_len] + if { $emusrv_len > 0 } { incr len [expr {2+$emusrv_len+$emusrv_pad_len } ] } + + # canvas + set canv [getNodeCanvas $node] + if { $canv != "c1" } { + set canv [string range $canv 1 end] ;# convert "c2" to "2" + incr len 4 + } else { + set canv "" + } + + # services + set svc [getNodeServices $node false] + set svc [join $svc "|"] + set svc_len [string length $svc] + set svc_pad_len [pad_32bit $svc_len] + set svc_pad [binary format x$svc_pad_len] + if { $svc_len > 0 } { incr len [expr {2+$svc_len+$svc_pad_len } ] } + + # icon + set icon [getCustomImage $node] + if { [file dirname $icon] == "$CORE_DATA_DIR/icons/normal" } { + set icon [file tail $icon] ;# don't include standard icon path + } + set icon_len [string length $icon] + set icon_pad_len [pad_32bit $icon_len] + set icon_pad [binary format x$icon_pad_len] + if { $icon_len > 0 } { incr len [expr {2+$icon_len+$icon_pad_len} ] } + + # opaque data + set opaque_len [string length $opaque] + set opaque_pad_len [pad_32bit $opaque_len] + set opaque_pad [binary format x$opaque_pad_len] + if { $opaque_len > 0 } { incr len [expr {2+$opaque_len+$opaque_pad_len} ] } + + # length must be calculated before this + if { $prmsg == 1 } { + puts -nonewline ">NODE(flags=add/str,$node,type=$type,$name," + } + set msg [binary format c2Sc2sIc2sIcc \ + {0x1 0x11} $len \ + {0x1 4} 0 $node_num \ + {0x2 4} 0 $type \ + 0x3 $name_len ] + puts -nonewline $channel $msg$name$name_pad + + # IPv4 address + if { $ipv4 > 0 } { + if { $prmsg == 1 } { puts -nonewline "$ipv4str," } + set msg [binary format c2sI {0x4 4} 0 $ipv4] + puts -nonewline $channel $msg + } + + # MAC address + if { $macstr != "" } { + if { $prmsg == 1 } { puts -nonewline "$macstr," } + set mac [join [split $macstr ":"] ""] + puts -nonewline $channel [binary format c2x2W {0x5 8} 0x$mac] + } + + # IPv6 address + if { $ipv6 != 0 } { + if { $prmsg == 1 } { puts -nonewline "$ipv6str," } + set msg [binary format c2 {0x6 16} ] + puts -nonewline $channel $msg + foreach ipv6w [split $ipv6 ":"] { + set msg [binary format S 0x$ipv6w] + puts -nonewline $channel $msg + } + puts -nonewline $channel [binary format x2]; # 2 bytes padding + } + + # model type + if { $model_len > 0 } { + set mh [binary format cc 0x7 $model_len] + puts -nonewline $channel $mh$model$model_pad + if { $prmsg == 1 } { puts -nonewline "m=$model," } + } + + # emulation server + if { $emusrv_len > 0 } { + puts -nonewline $channel [binary format cc 0x8 $emusrv_len] + puts -nonewline $channel $emusrv$emusrv_pad + if { $prmsg == 1 } { puts -nonewline "srv=$emusrv," } + } + + # X,Y coordinates + set coords [getNodeCoords $node] + set x [format "%u" [expr int([lindex $coords 0])]] + set y [format "%u" [expr int([lindex $coords 1])]] + set msg [binary format c2Sc2S {0x20 2} $x {0x21 2} $y] + puts -nonewline $channel $msg + + # canvas + if { $canv != "" } { + if { $prmsg == 1 } { puts -nonewline "canvas=$canv," } + set msg [binary format c2S {0x22 2} $canv] + puts -nonewline $channel $msg + } + + if { $prmsg == 1 } { puts -nonewline "x=$x,y=$y" } + + # services + if { $svc_len > 0 } { + puts -nonewline $channel [binary format cc 0x25 $svc_len] + puts -nonewline $channel $svc$svc_pad + if { $prmsg == 1 } { puts -nonewline ",svc=$svc" } + } + + # icon + if { $icon_len > 0 } { + puts -nonewline $channel [binary format cc 0x42 $icon_len] + puts -nonewline $channel $icon$icon_pad + if { $prmsg == 1 } { puts -nonewline ",icon=$icon" } + } + + # opaque data + if { $opaque_len > 0 } { + puts -nonewline $channel [binary format cc 0x50 $opaque_len] + puts -nonewline $channel $opaque$opaque_pad + if { $prmsg == 1 } { puts -nonewline ",opaque=$opaque" } + } + + if { $prmsg == 1 } { puts ")" } + + flushChannel channel "Error sending node add" +} + +# delete a node +proc sendNodeDelMessage { channel node } { + global showAPI + set prmsg $showAPI + set len 8; # node number + set node_num [string range $node 1 end] + + if { $prmsg == 1 } { puts ">NODE(flags=del/str,$node_num)" } + set msg [binary format c2Sc2sI \ + {0x1 0x12} $len \ + {0x1 4} 0 $node_num ] + puts -nonewline $channel $msg + flushChannel channel "Error sending node delete" +} + +# send a message to build, modify, or delete a link +# type should indicate add/delete/link/unlink +proc sendLinkMessage { channel link type } { + global showAPI + set prmsg $showAPI + + set node1 [lindex [linkPeers $link] 0] + set node2 [lindex [linkPeers $link] 1] + set if1 [ifcByPeer $node1 $node2]; set if2 [ifcByPeer $node2 $node1] + if { [nodeType $node1] == "pseudo" } { return } ;# never seems to occur + if { [nodeType $node2] == "pseudo" } { + set mirror2 [getLinkMirror $node2] + set node2 [getNodeName $node2] + if { [string range $node1 1 end] > [string range $node2 1 end] } { + return ;# only send one link message (for two pseudo-links) + } + set if2 [ifcByPeer $node2 $mirror2] + } + set node1_num [string range $node1 1 end] + set node2_num [string range $node2 1 end] + + # set flags and link message type from supplied type parameter + set flags 0 + set ltype 1 ;# add/delete a link (not wireless link/unlink) + set netid -1 + if { $type == "add" || $type == "link" } { + set flags 1 + } elseif { $type == "delete" || $type == "unlink" } { + set flags 2 + } + if { $type == "link" || $type == "unlink" } { + set ltype 0 ;# a wireless link/unlink event + set tmp [getLinkOpaque $link net] + if { $tmp != "" } { set netid [string range $tmp 1 end] } + } + + set key "" + if { [nodeType $node1] == "tunnel" } { + set key [netconfFetchSection $node1 "tunnel-key"] + if { $key == "" } { set key 1 } + } + if {[nodeType $node2] == "tunnel" } { + set key [netconfFetchSection $node2 "tunnel-key"] + if { $key == "" } { set key 1 } + } + + if { $prmsg == 1 } { + puts -nonewline ">LINK(flags=$flags,$node1_num-$node2_num," + } + + # len = node1num, node2num, type + set len [expr {8+8+8}] + set delay [getLinkDelay $link] + if { $delay == "" } { set delay 0 } + set bw [getLinkBandwidth $link] + if { $bw == "" } { set bw 0 } + set per [getLinkBER $link]; # PER and BER + if { $per == "" } { set per 0 } + set per_len 0 + set per_msg [buildStringTLV 0x5 $per per_len] + set dup [getLinkDup $link] + if { $dup == "" } { set dup 0 } + set dup_len 0 + set dup_msg [buildStringTLV 0x6 $dup dup_len] + if { $type != "delete" } { + incr len [expr {12+12+$per_len+$dup_len}] ;# delay,bw,per,dup + if {$prmsg==1 } { + puts -nonewline "$delay,$bw,$per,$dup," + } + } + # TODO: jitter, mer, burst, mburst + if { $prmsg == 1 } { puts -nonewline "type=$ltype," } + if { $netid > -1 } { + incr len 8 + if { $prmsg == 1 } { puts -nonewline ",netid=$netid" } + } + if { $key != "" } { + incr len 8 + if { $prmsg == 1 } { puts -nonewline "key=$key," } + } + + set if1num [ifcNameToNum $if1]; set if2num [ifcNameToNum $if2] + set if1ipv4 0; set if2ipv4 0; set if1ipv6 ""; set if2ipv6 ""; + set if1ipv4mask 0; set if2ipv4mask 0; + set if1ipv6mask ""; set if2ipv6mask ""; set if1mac ""; set if2mac ""; + + if { $if1num >= 0 && ([[typemodel $node1].layer] == "NETWORK" || \ + [nodeType $node1] == "tunnel") } { + incr len 4 + if { $prmsg == 1 } { puts -nonewline "if1n=$if1num," } + if { $type != "delete" } { + getIfcAddrs $node1 $if1 if1ipv4 if1ipv6 if1mac if1ipv4mask \ + if1ipv6mask len + } + } + if { $if2num >= 0 && ([[typemodel $node2].layer] == "NETWORK" || \ + [nodeType $node2] == "tunnel") } { + incr len 4 + if { $prmsg == 1 } { puts -nonewline "if2n=$if2num," } + if { $type != "delete" } { + getIfcAddrs $node2 $if2 if2ipv4 if2ipv6 if2mac if2ipv4mask \ + if2ipv6mask len + } + } + + # start building the binary message on channel + # length must be calculated before this + set msg [binary format ccSc2sIc2sI \ + {0x2} $flags $len \ + {0x1 4} 0 $node1_num \ + {0x2 4} 0 $node2_num ] + puts -nonewline $channel $msg + + if { $type != "delete" } { + puts -nonewline $channel [binary format c2sW {0x3 8} 0 $delay] + puts -nonewline $channel [binary format c2sW {0x4 8} 0 $bw] + puts -nonewline $channel $per_msg + puts -nonewline $channel $dup_msg + } + # TODO: jitter, mer, burst, mburst + + # link type + puts -nonewline $channel [binary format c2sI {0x20 4} 0 $ltype] + + # network ID + if { $netid > -1 } { + puts -nonewline $channel [binary format c2sI {0x24 4} 0 $netid] + } + + if { $key != "" } { + puts -nonewline $channel [binary format c2sI {0x25 4} 0 $key] + } + + # interface 1 info + if { $if1num >= 0 && ([[typemodel $node1].layer] == "NETWORK" || \ + [nodeType $node1] == "tunnel") } { + puts -nonewline $channel [ binary format c2S {0x30 2} $if1num ] + } + if { $if1ipv4 > 0 } { puts -nonewline $channel [binary format c2sIc2S \ + {0x31 4} 0 $if1ipv4 {0x32 2} $if1ipv4mask ] } + if { $if1mac != "" } { + set if1mac [join [split $if1mac ":"] ""] + puts -nonewline $channel [binary format c2x2W {0x33 8} 0x$if1mac] + } + if {$if1ipv6 != ""} { puts -nonewline $channel [binary format c2 {0x34 16}] + foreach ipv6w [split $if1ipv6 ":"] { puts -nonewline $channel \ + [binary format S 0x$ipv6w] } + puts -nonewline $channel [binary format x2c2S {0x35 2} $if1ipv6mask] } + + # interface 2 info + if { $if2num >= 0 && ([[typemodel $node2].layer] == "NETWORK" || \ + [nodeType $node2] == "tunnel") } { + puts -nonewline $channel [ binary format c2S {0x36 2} $if2num ] + } + if { $if2ipv4 > 0 } { puts -nonewline $channel [binary format c2sIc2S \ + {0x37 4} 0 $if2ipv4 {0x38 2} $if2ipv4mask ] } + if { $if2mac != "" } { + set if2mac [join [split $if2mac ":"] ""] + puts -nonewline $channel [binary format c2x2W {0x39 8} 0x$if2mac] + } + if {$if2ipv6 != ""} { puts -nonewline $channel [binary format c2 {0x40 16}] + foreach ipv6w [split $if2ipv6 ":"] { puts -nonewline $channel \ + [binary format S 0x$ipv6w] } + puts -nonewline $channel [binary format x2c2S {0x41 2} $if2ipv6mask] } + + if { $prmsg==1 } { puts ")" } + flushChannel channel "Error sending link message" +} + +# helper to get IPv4, IPv6, MAC address and increment length +# also prints TLV-style addresses if showAPI is true +proc getIfcAddrs { node ifc ipv4p ipv6p macp ipv4maskp ipv6maskp lenp } { + global showAPI + upvar $ipv4p ipv4 + upvar $ipv6p ipv6 + upvar $macp mac + upvar $ipv4maskp ipv4mask + upvar $ipv6maskp ipv6mask + upvar $lenp len + + if { $ifc == "" || $node == "" } { return } + + # IPv4 address + set ipv4str [getIfcIPv4addr $node $ifc] + if {$ipv4str != ""} { + set ipv4 [lindex [split $ipv4str /] 0] + if { [info exists ipv4mask ] } { + set ipv4mask [lindex [split $ipv4str / ] 1] + incr len 12; # 8 addr + 4 mask + if { $showAPI == 1 } { puts -nonewline "$ipv4str," } + } else { + incr len 8; # 8 addr + if { $showAPI == 1 } { puts -nonewline "$ipv4," } + } + set ipv4 [stringToIPv4 $ipv4]; # convert to integer + } + + # IPv6 address + set ipv6str [getIfcIPv6addr $node $ifc] + if {$ipv6str != ""} { + set ipv6 [lindex [split $ipv6str /] 0] + if { [info exists ipv6mask ] } { + set ipv6mask [lindex [split $ipv6str / ] 1] + incr len 24; # 20 addr + 4 mask + if { $showAPI == 1 } { puts -nonewline "$ipv6str," } + } else { + incr len 20; # 20 addr + if { $showAPI == 1 } { puts -nonewline "$ipv6," } + } + set ipv6 [expandIPv6 $ipv6]; # convert to long string + } + + # MAC address (from conf if there, otherwise generated) + if { [info exists mac] } { + set mac [lindex [getIfcMacaddr $node $ifc] 0] + if {$mac == ""} { + set mac [getNextMac] + } + if { $showAPI == 1 } { puts -nonewline "$mac," } + incr len 12; + } +} + +# +# Register Message: (registration types) +# This is a simple Register Message, types is an array of +# tuples. +proc sendRegMessage { channel flags types_list } { + global showAPI regtypes + set prmsg $showAPI + + if { $channel == -1 || $channel == "" } { + set plugin [lindex [getEmulPlugin "*"] 0] + set channel [pluginConnect $plugin connect true] + if { $channel == -1 } { return } + } + set len 0 + array set types $types_list + + # array names output is unreliable, sort it + set type_list [lsort -dict [array names types]] + foreach type $type_list { + if { ![info exists regtypes($type)] } { + puts "sendRegMessage: unknown registration type '$type'" + return -1 + } + set str_$type $types($type) + set str_${type}_len [string length [set str_$type]] + set str_${type}_pad_len [pad_32bit [set str_${type}_len]] + set str_${type}_pad [binary format x[set str_${type}_pad_len]] + incr len [expr { 2 + [set str_${type}_len] + [set str_${type}_pad_len]}] + } + + if { $prmsg == 1 } { puts ">REG($type_list)" } + # message header + set msg1 [binary format ccS 4 $flags $len] + puts -nonewline $channel $msg1 + + foreach type $type_list { + set type_num $regtypes($type) + set tlvh [binary format cc $type_num [set str_${type}_len]] + puts -nonewline $channel $tlvh[set str_${type}][set str_${type}_pad] + } + + flushChannel channel "Error: API channel was closed" +} + +# +# Configuration Message: (object, type flags, node) +# This is a simple Configuration Message containing flags +proc sendConfRequestMessage { channel node model flags netid opaque } { + global showAPI + set prmsg $showAPI + + if { $channel == -1 || $channel == "" } { + set pname [lindex [getEmulPlugin $node] 0] + set channel [pluginConnect $pname connect true] + if { $channel == -1 } { return } + } + + set model_len [string length $model] + set model_pad_len [pad_32bit $model_len] + set model_pad [binary format x$model_pad_len ] + set len [expr {4+2+$model_len+$model_pad_len}] + # optional network ID to provide Netgraph mapping + if { $netid != -1 } { incr len 8 } + # convert from node name to number + if { [string is alpha [string range $node 0 0]] } { + set node [string range $node 1 end] + } + + if { $node > 0 } { incr len 8 } + # add a session number when configuring services + set session "" + set session_len 0 + set session_pad_len 0 + set session_pad "" + if { $node <= 0 && $model == "services" } { + global g_current_session + set session [format "0x%x" $g_current_session] + set session_len [string length $session] + set session_pad_len [pad_32bit $session_len] + set session_pad [binary format x$session_pad_len] + incr len [expr {2 + $session_len + $session_pad_len}] + } + # opaque data - used when custom configuring services + set opaque_len 0 + set msgop [buildStringTLV 0x50 $opaque opaque_len] + if { $opaque_len > 0 } { incr len $opaque_len } + + if { $prmsg == 1 } { + puts -nonewline ">CONF(flags=0," + if { $node > 0 } { puts -nonewline "node=$node," } + puts -nonewline "obj=$model,cflags=$flags" + if { $session != "" } { puts -nonewline ",session=$session" } + if { $netid > -1 } { puts -nonewline ",netid=$netid" } + if { $opaque_len > 0 } { puts -nonewline ",opaque=$opaque" } + puts ") request" + } + # header, node node number, node model header + set msg1 [binary format c2S {5 0} $len ] + set msg1b "" + if { $node > 0 } { set msg1b [binary format c2sI {1 4} 0 $node] } + set msg1c [binary format cc 2 $model_len] + # request flag + set msg2 [binary format c2S {3 2} $flags ] + # session number + set msg3 "" + if { $session != "" } { + set msg3 [binary format cc 0x0A $session_len] + set msg3 $msg3$session$session_pad + } + # network ID + set msg4 "" + if { $netid != -1 } { + set msg4 [binary format c2sI {0x23 4} 0 0x$netid ] + } + + #catch {puts -nonewline $channel $msg1$model$model_pad$msg2$msg3$msg4$msg5} + puts -nonewline $channel $msg1$msg1b$msg1c$model$model_pad$msg2$msg3$msg4 + if { $opaque_len > 0 } { puts -nonewline $channel $msgop } + + flushChannel channel "Error: API channel was closed" +} + +# +# Configuration Message: (object, type flags, node, types, values) +# This message is more complicated to build because of the list of +# data types and values. +proc sendConfReplyMessage { channel node model types values opaque } { + global showAPI + set prmsg $showAPI + # convert from node name to number + if { [string is alpha [string range $node 0 0]] } { + set node [string range $node 1 end] + } + # add a session number when configuring services + set session "" + set session_len 0 + set session_pad_len 0 + set session_pad "" + if { $node <= 0 && $model == "services" && $opaque == "" } { + global g_current_session + set session [format "0x%x" $g_current_session] + set session_len [string length $session] + set session_pad_len [pad_32bit $session_len] + set session_pad [binary format x$session_pad_len] + incr len [expr {$session_len + $session_pad_len}] + } + + if { $prmsg == 1 } { + puts -nonewline ">CONF(flags=0x0,mod=$model," + if {$node > -1 } { puts -nonewline "node=$node," } + if {$session != "" } { puts -nonewline "session=$session," } + if {$opaque != "" } { puts -nonewline "opaque=$opaque," } + puts "types=<$types>,values=<$values>) reply" + } + + # types (16-bit values) and values + set n 0 + set type_len [expr {[llength $types] * 2} ] + set type_data [binary format cc 4 $type_len] + set value_data "" + foreach type $types { + set t [binary format S $type] + set type_data $type_data$t + set val [lindex $values $n] + if { $val == "" } { + #puts "warning: empty value $n (type=$type)" + if { $type != 10 } { set val 0 } + } + incr n + lappend value_data $val + }; # end foreach + set value_len 0 + set value_data [join $value_data |] + set msgval [buildStringTLV 0x5 $value_data value_len] + set type_pad_len [pad_32bit $type_len] + set type_pad [binary format x$type_pad_len ] + set model_len [string length $model] + set model_pad_len [pad_32bit $model_len] + set model_pad [binary format x$model_pad_len ] + # opaque data - used when custom configuring services + set opaque_len 0 + set msgop [buildStringTLV 0x50 $opaque opaque_len] + + # 4 bytes header, model TLV + set len [expr 4+2+$model_len+$model_pad_len] + if { $node > -1 } { incr len 8 } + # session number + set msg3 "" + if { $session != "" } { + incr len [expr {2 + $session_len + $session_pad_len }] + set msg3 [binary format cc 0x0A $session_len] + set msg3 $msg3$session$session_pad + } + if { $opaque_len > 0 } { incr len $opaque_len } + # types TLV, values TLV + incr len [expr {2 + $type_len + $type_pad_len + $value_len}] + + # header, node node number, node model header + set msgh [binary format c2S {5 0} $len ] + set msgwl "" + if { $node > -1 } { set msgwl [binary format c2sI {1 4} 0 $node] } + set model_hdr [binary format cc 2 $model_len] + # no flags + set type_hdr [binary format c2S {3 2} 0 ] + set msg $msgh$msgwl$model_hdr$model$model_pad$type_hdr$type_data$type_pad + set msg $msg$msgval$msg3 + puts -nonewline $channel $msg + if { $opaque_len > 0 } { puts -nonewline $channel $msgop } + flushChannel channel "Error sending conf reply" +} + +# Event Message +proc sendEventMessage { channel type nodenum name data flags } { + global showAPI eventtypes + set prmsg $showAPI + + set len [expr 8] ;# event type + if {$nodenum > -1} { incr len 8 } + set name_len [string length $name] + set name_pad_len [pad_32bit $name_len] + if { $name_len > 0 } { incr len [expr {2 + $name_len + $name_pad_len}] } + set data_len [string length $data] + set data_pad_len [pad_32bit $data_len] + if { $data_len > 0 } { incr len [expr {2 + $data_len + $data_pad_len}] } + + if { $prmsg == 1 } { + puts -nonewline ">EVENT(flags=$flags," } + set msg [binary format ccS 8 $flags $len ] ;# message header + + set msg2 "" + if { $nodenum > -1 } { + if { $prmsg == 1 } { puts -nonewline "node=$nodenum," } + set msg2 [binary format c2sI {0x01 4} 0 $nodenum] + } + if { $prmsg == 1} { + set typestr "" + foreach t [array names eventtypes] { + if { $eventtypes($t) == $type } { set typestr "-$t"; break } + } + puts -nonewline "type=$type$typestr," + } + set msg3 [binary format c2sI {0x02 4} 0 $type] + set msg4 "" + set msg5 "" + if { $name_len > 0 } { + if { $prmsg == 1 } { puts -nonewline "name=$name," } + set msg4 [binary format cc 0x03 $name_len ] + set name_pad [binary format x$name_pad_len ] + set msg5 $name$name_pad + } + set msg6 "" + set msg7 "" + if { $data_len > 0 } { + if { $prmsg == 1 } { puts -nonewline "data=$data" } + set msg6 [binary format cc 0x04 $data_len ] + set data_pad [binary format x$data_pad_len ] + set msg7 $data$data_pad + } + + if { $prmsg == 1 } { puts ")" } + puts -nonewline $channel $msg$msg2$msg3$msg4$msg5$msg6$msg7 + flushChannel channel "Error sending Event type=$type" +} + + +# deploy working configuration using CORE API +# Deploys a current working configuration. It creates all the +# nodes and link as defined in configuration file. +proc deployCfgAPI { sock } { + global eid + global node_list link_list annotation_list canvas_list + global mac_byte4 mac_byte5 + global execMode + global ngnodemap + global mac_addr_start + global deployCfgAPI_lock + global eventtypes + global g_comments + + if { ![info exists deployCfgAPI_lock] } { set deployCfgAPI_lock 0 } + if { $deployCfgAPI_lock } { + puts "***error: deployCfgAPI called while deploying config" + return + } + + set nodecount [getNodeCount] + if { $nodecount == 0 } { + # This allows switching to exec mode without extra API messages, + # such as when connecting to a running session. + return + } + + set deployCfgAPI_lock 1 ;# lock + + set mac_byte4 0 + set mac_byte5 0 + if { [info exists mac_addr_start] } { set mac_byte5 $mac_addr_start } + set t_start [clock seconds] + + global systype + set systype [lindex [checkOS] 0] + statgraph on [expr (2*[llength $node_list]) + [llength $link_list]] + + + sendSessionProperties $sock + + # this tells the CORE services that we are starting to send + # configuration data + # clear any existing config + sendEventMessage $sock $eventtypes(definition_state) -1 "" "" 0 + # inform CORE services about emulation servers, hook scripts, canvas info, + # and services + sendEventMessage $sock $eventtypes(configuration_state) -1 "" "" 0 + sendEmulationServerInfo $sock 0 + sendSessionOptions $sock + sendHooks $sock + sendCanvasInfo $sock + sendNodeTypeInfo $sock 0 + # send any custom service info before the node messages + sendNodeCustomServices $sock + + # send Node add messages for all emulation nodes + foreach node $node_list { + set node_id "$eid\_$node" + set type [nodeType $node] + set name [getNodeName $node] + if { $type == "pseudo" } { continue } + + statgraph inc 1 + statline "Creating node $name" + if { [[typemodel $node].layer] == "NETWORK" } { + nodeHighlights .c $node on red + } + # inform the CORE daemon of the node + sendNodeAddMessage $sock $node + pluginCapsInitialize $node "mobmodel" + writeNodeCoords $node [getNodeCoords $node] + } + + # send Link add messages for all network links + for { set pending_links $link_list } { $pending_links != "" } {} { + set link [lindex $pending_links 0] + set i [lsearch -exact $pending_links $link] + set pending_links [lreplace $pending_links $i $i] + statgraph inc 1 + + set lnode1 [lindex [linkPeers $link] 0] + set lnode2 [lindex [linkPeers $link] 1] + if { [nodeType $lnode2] == "router" && \ + [getNodeModel $lnode2] == "remote" } { + continue; # remote routers are ctrl. by GUI; TODO: move to daemon + } + sendLinkMessage $sock $link add + } + + # GUI-specific meta-data send via Configure Messages + if { [llength $annotation_list] > 0 } { + sendMetaData $sock $annotation_list "annotation" + } + sendMetaData $sock $canvas_list "canvas" ;# assume >= 1 canvas + # global GUI options - send as meta-data + set obj "metadata" + set values [getGlobalOptionList] + sendConfReplyMessage $sock -1 $obj "10" "{global_options=$values}" "" + if { [info exists g_comments] && $g_comments != "" } { + sendConfReplyMessage $sock -1 $obj "10" "{comments=$g_comments}" "" + } + + # status bar graph + statgraph off 0 + statline "Network topology instantiated in [expr [clock seconds] - $t_start] seconds ([llength $node_list] nodes and [llength $link_list] links)." + + # TODO: turn on tcpdump if enabled; customPostConfigCommands; + # addons 4 deployCfgHook + + # draw lines between wlan nodes + # initialization does not work earlier than this + + foreach node $node_list { + # WLAN handling: draw lines between wireless nodes + if { [nodeType $node] == "wlan" && $execMode == "interactive" } { + wlanRunMobilityScript $node + } + } + + sendTrafficScripts $sock + + # tell the CORE services that we are ready to instantiate + sendEventMessage $sock $eventtypes(instantiation_state) -1 "" "" 0 + + set deployCfgAPI_lock 0 ;# unlock + + statline "Network topology instantiated in [expr [clock seconds] - $t_start] seconds ([llength $node_list] nodes and [llength $link_list] links)." +} + +# +# emulation shutdown procedure when using the CORE API +proc shutdownSession {} { + global link_list node_list eid eventtypes execMode + + set nodecount [getNodeCount] + if { $nodecount == 0 } { + # This allows switching to edit mode without extra API messages, + # such as when file new is selected while running an existing session. + return + } + + # prepare the channel + set plugin [lindex [getEmulPlugin "*"] 0] + set sock [pluginConnect $plugin connect true] + + sendEventMessage $sock $eventtypes(datacollect_state) -1 "" "" 0 + + # shut down all links + foreach link $link_list { + + set lnode2 [lindex [linkPeers $link] 1] + if { [nodeType $lnode2] == "router" && \ + [getNodeModel $lnode2] == "remote" } { + continue; # remote routers are ctrl. by GUI; TODO: move to daemon + } + + sendLinkMessage $sock $link delete + } + # shut down all nodes + foreach node $node_list { + set type [nodeType $node] + if { [[typemodel $node].layer] == "NETWORK" && $execMode != "batch" } { + nodeHighlights .c $node on red + } + sendNodeDelMessage $sock $node + pluginCapsDeinitialize $node "mobmodel" + deleteNodeCoords $node + } + + sendNodeTypeInfo $sock 1 + sendEmulationServerInfo $sock 1 +} + +# inform the CORE services about the canvas information to support +# conversion between X,Y and lat/long coordinates +proc sendCanvasInfo { sock } { + global curcanvas + + if { ![info exists curcanvas] } { return } ;# batch mode + set obj "location" + + set scale [getCanvasScale $curcanvas] + set refpt [getCanvasRefPoint $curcanvas] + set refx [lindex $refpt 0] + set refy [lindex $refpt 1] + set latitude [lindex $refpt 2] + set longitude [lindex $refpt 3] + set altitude [lindex $refpt 4] + + set types [list 2 2 10 10 10 10] + set values [list $refx $refy $latitude $longitude $altitude $scale] + + sendConfReplyMessage $sock -1 $obj $types $values "" +} + +# inform the CORE services about the default services for a node type, which +# are used when node-specific services have not been configured for a node +proc sendNodeTypeInfo { sock reset } { + global node_list + + set obj "services" + + if { $reset == 1} { + sendConfRequestMessage $sock -1 "all" 0x3 -1 "" + return + } + # build a list of node types in use + set typesinuse "" + foreach node $node_list { + set type [nodeType $node] + if { $type != "router" } { continue } + set model [getNodeModel $node] + if { [lsearch $typesinuse $model] < 0 } { lappend typesinuse $model } + } + + foreach type $typesinuse { + # build a list of type + enabled services, all strings + set values [getNodeTypeServices $type] + set values [linsert $values 0 $type] + set types [string repeat "10 " [llength $values]] + sendConfReplyMessage $sock -1 $obj $types $values "" + # send any custom profiles for a node type; node type passed in opaque + set machine_type [getNodeTypeMachineType $type] + set values [getNodeTypeProfile $type] + if { $values != "" } { + set types [string repeat "10 " [llength $values]] + sendConfReplyMessage $sock -1 $machine_type $types $values \ + "$machine_type:$type" + } + } + +} + +# inform the CORE services about any services that have been customized for +# a particular node +proc sendNodeCustomServices { sock } { + global node_list + foreach node $node_list { + set cfgs [getCustomConfig $node] + set cfgfiles "" + foreach cfg $cfgs { + set ids [split [getConfig $cfg "custom-config-id"] :] + if { [lindex $ids 0] != "service" } { continue } + if { [llength $ids] == 3 } { + # customized service config file -- build a list + lappend cfgfiles $cfg + continue + } + set s [lindex $ids 1] + set values [getConfig $cfg "config"] + set t [string repeat "10 " [llength $values]] + sendConfReplyMessage $sock $node services $t $values "service:$s" + } + # send customized service config files after the service info + foreach cfg $cfgfiles { + set idstr [getConfig $cfg "custom-config-id"] + set ids [split $idstr :] + if { [lindex $ids 0] != "service" } { continue } + set s [lindex $ids 1] + set filename [lindex $ids 2] + set data [join [getConfig $cfg "config"] "\n"] + sendFileMessage $sock $node "service:$s" $filename "" $data \ + [string length $data] + } + } +} + +# publish hooks to the CORE services +proc sendHooks { sock } { + global g_hook_scripts + if { ![info exists g_hook_scripts] } { return } + foreach hook $g_hook_scripts { + set name [lindex $hook 0] + set state [lindex $hook 1] + set data [lindex $hook 2] + # TODO: modify sendFileMessage to make node number optional + sendFileMessage $sock n0 "hook:$state" $name "" $data \ + [string length $data] + } +} + +# inform the CORE services about the emulation servers that will be used +proc sendEmulationServerInfo { sock reset } { + global exec_servers + set node -1 ;# not used + set obj "broker" + + set servernames [getAssignedRemoteServers] + if { $servernames == "" } { return } ;# not using emulation servers + + if { $reset == 1} { + sendConfRequestMessage $sock $node $obj 0x3 -1 "" + return + } + + set servers "" + foreach servername $servernames { + set host [lindex $exec_servers($servername) 0] + set port [lindex $exec_servers($servername) 1] + lappend servers "$servername:$host:$port" + } + + set serversstring [join $servers ,] + + set types [list 10] + set values [list $serversstring] + + sendConfReplyMessage $sock $node $obj $types $values "" +} + +# returns the length of node_list minus any pseudo-nodes (inter-canvas nodes) +proc getNodeCount {} { + global node_list + set nodecount 0 + foreach node $node_list { + if { [nodeType $node] != "pseudo" } { incr nodecount } + } + return $nodecount +} + +# send basic properties of a session +proc sendSessionProperties { sock } { + global currentFile CORE_DATA_DIR CORE_USER + set sessionname [file tail $currentFile] + set nodecount [getNodeCount] + if { $sessionname == "" } { set sessionname "untitled" } + set tf "/tmp/thumb.jpg" + if { ![writeCanvasThumbnail .c $tf] } { + set src "$CORE_DATA_DIR/icons/normal/thumb-unknown.gif" + set tf "/tmp/thumb.gif" + if [catch { file copy $src $tf } e] { + puts -nonewline "warning: failed to copy $src to $tf\n($e)" + set tf "" + } + } + set user $CORE_USER + sendSessionMessage $sock 0 0 $sessionname $currentFile $nodecount $tf $user +} + +# send session options from global array in Config Message +proc sendSessionOptions { sock } { + if { $sock == -1 } { + set sock [lindex [getEmulPlugin "*"] 2] + } + set values [getSessionOptionsList] + set types [string repeat "10 " [llength $values]] + sendConfReplyMessage $sock -1 "session" $types $values "" +} + +# send annotations as key=value metadata in Config Message +proc sendAnnotations { sock } { + global annotation_list + + if { $sock == -1 } { + set sock [lindex [getEmulPlugin "*"] 2] + } + set values "" + foreach a $annotation_list { + global $a + set val [set $a] + lappend values "annotation $a=$val" + } + set types [string repeat "10 " [llength $values]] + sendConfReplyMessage $sock -1 "metadata" $types $values "" +} + +# send items as key=value metadata in Config Message +proc sendMetaData { sock items itemtype } { + + if { $sock == -1 } { + set sock [lindex [getEmulPlugin "*"] 2] + } + set values "" + foreach i $items { + global $i + set val [set $i] + lappend values "$itemtype $i=$val" + } + set types [string repeat "10 " [llength $values]] + sendConfReplyMessage $sock -1 "metadata" $types $values "" +} + +# send an Event message for the definition state (this clears any existing +# state), then send all node and link definitions to the CORE services +proc sendNodeLinkDefinitions { sock } { + global node_list link_list annotation_list canvas_list eventtypes + global g_comments + #sendEventMessage $sock $eventtypes(definition_state) -1 "" "" 0 + foreach node $node_list { + sendNodeAddMessage $sock $node + pluginCapsInitialize $node "mobmodel" + } + foreach link $link_list { sendLinkMessage $sock $link add } + # GUI-specific meta-data send via Configure Messages + sendMetaData $sock $annotation_list "annotation" + sendMetaData $sock $canvas_list "canvas" + set obj "metadata" + set values [getGlobalOptionList] + sendConfReplyMessage $sock -1 $obj "10" "{global_options=$values}" "" + if { [info exists g_comments] && $g_comments != "" } { + sendConfReplyMessage $sock -1 $obj "10" "{comments=$g_comments}" "" + } +} + +proc getNodeTypeAPI { node } { + set type [nodeType $node] + if { $type == "router" } { + set model [getNodeModel $node] + set type [getNodeTypeMachineType $model] + } + switch -exact -- "$type" { + router { return 0x0 } + netns { return 0x0 } + jail { return 0x0 } + physical { return 0x1 } + xen { return 0x2 } + tbd { return 0x3 } + lanswitch { return 0x4 } + hub { return 0x5 } + wlan { return 0x6 } + rj45 { return 0x7 } + tunnel { return 0x8 } + ktunnel { return 0x9 } + emane { return 0xA } + default { return 0x0 } + } +} + +# send an Execute message +proc sendExecMessage { channel node cmd exec_num flags } { + global showAPI g_api_exec_num + set prmsg $showAPI + + set node_num [string range $node 1 end] + set cmd_len [string length $cmd] + if { $cmd_len > 255 } { puts "sendExecMessage error: cmd too long!"; return} + set cmd_pad_len [pad_32bit $cmd_len] + set cmd_pad [binary format x$cmd_pad_len] + + if { $exec_num == 0 } { + incr g_api_exec_num + set exec_num $g_api_exec_num + } + + # node num + exec num + command string + set len [expr {8 + 8 + 2 + $cmd_len + $cmd_pad_len}] + + if { $prmsg == 1 } {puts ">EXEC(flags=$flags,$node,n=$exec_num,cmd='$cmd')" } + + set msg [binary format ccSc2sIc2sIcc \ + 3 $flags $len \ + {1 4} 0 $node_num \ + {2 4} 0 $exec_num \ + 4 $cmd_len \ + ] + puts -nonewline $channel $msg$cmd$cmd_pad + flushChannel channel "Error sending file message" +} + +# if source file (sf) is specified, then send a message that the file source +# file should be copied to the given file name (f); otherwise, include the file +# data in this message +proc sendFileMessage { channel node type f sf data data_len } { + global showAPI + set prmsg $showAPI + + set node_num [string range $node 1 end] + + set f_len [string length $f] + set f_pad_len [pad_32bit $f_len] + set f_pad [binary format x$f_pad_len] + set type_len [string length $type] + set type_pad_len [pad_32bit $type_len] + set type_pad [binary format x$type_pad_len] + if { $sf != "" } { + set sf_len [string length $sf] + set sf_pad_len [pad_32bit $sf_len] + set sf_pad [binary format x$sf_pad_len] + set data_len 0 + set data_pad_len 0 + } else { + set sf_len 0 + set sf_pad_len 0 + set data_pad_len [pad_32bit $data_len] + set data_pad [binary format x$data_pad_len] + } + # TODO: gzip compression w/tlv type 0x11 + + # node number TLV + file name TLV + ( file src name / data TLV) + set len [expr {8 + 2 + 2 + $f_len + $f_pad_len + $sf_len + $sf_pad_len \ + + $data_len + $data_pad_len}] + # 16-bit data length + if { $data_len > 255 } { + incr len 2 + if { $data_len > 65536 } { + puts -nonewline "*** error: File Message data length too large " + puts "($data_len > 65536)" + return + } + } + if { $type_len > 0 } { incr len [expr {2 + $type_len + $type_pad_len}] } + set flags 1; # add flag + + if { $prmsg == 1 } { + puts -nonewline ">FILE(flags=$flags,$node,f=$f," + if { $type != "" } { puts -nonewline "type=$type," } + if { $sf != "" } { puts "src=$sf)" + } else { puts "data=($data_len))" } + } + + set msg [binary format ccSc2sIcc \ + 6 $flags $len \ + {1 4} 0 $node_num \ + 2 $f_len \ + ] + set msg2 "" + if { $type_len > 0 } { + set msg2 [binary format cc 0x5 $type_len] + set msg2 $msg2$type$type_pad + } + if { $sf != "" } { ;# source file name TLV + set msg3 [binary format cc 0x6 $sf_len] + puts -nonewline $channel $msg$f$f_pad$msg2$msg3$sf$sf_pad + } else { ;# file data TLV + if { $data_len > 255 } { + set msg3 [binary format ccS 0x10 0 $data_len] + } else { + set msg3 [binary format cc 0x10 $data_len] + } + puts -nonewline $channel $msg$f$f_pad$msg2$msg3$data$data_pad + } + flushChannel channel "Error sending file message" +} + +# Session Message +proc sendSessionMessage { channel flags num name sfile nodecount tf user } { + global showAPI + set prmsg $showAPI + + if { $channel == -1 } { + set pname [lindex [getEmulPlugin "*"] 0] + set channel [pluginConnect $pname connect true] + if { $channel == -1 } { return } + } + + set num_len [string length $num] + set num_pad_len [pad_32bit $num_len] + set len [expr {2 + $num_len + $num_pad_len}] + if { $num_len <= 0 } { + puts "error: sendSessionMessage requires at least one session number" + return + } + set name_len [string length $name] + set name_pad_len [pad_32bit $name_len] + if { $name_len > 0 } { incr len [expr { 2 + $name_len + $name_pad_len }] } + set sfile_len [string length $sfile] + set sfile_pad_len [pad_32bit $sfile_len] + if { $sfile_len > 0 } { + incr len [expr { 2 + $sfile_len + $sfile_pad_len }] + } + set nc_len [string length $nodecount] + set nc_pad_len [pad_32bit $nc_len] + if { $nc_len > 0 } { incr len [expr { 2 + $nc_len + $nc_pad_len }] } + set tf_len [string length $tf] + set tf_pad_len [pad_32bit $tf_len] + if { $tf_len > 0 } { incr len [expr { 2 + $tf_len + $tf_pad_len }] } + set user_len [string length $user] + set user_pad_len [pad_32bit $user_len] + if { $user_len > 0 } { incr len [expr { 2 + $user_len + $user_pad_len }] } + + if { $prmsg == 1 } { + puts -nonewline ">SESSION(flags=$flags" } + set msgh [binary format ccS 0x09 $flags $len ] ;# message header + + if { $prmsg == 1 } { puts -nonewline ",sids=$num" } + set num_hdr [binary format cc 0x01 $num_len] + set num_pad [binary format x$num_pad_len ] + set msg1 "$num_hdr$num$num_pad" + + set msg2 "" + if { $name_len > 0 } { + if { $prmsg == 1 } { puts -nonewline ",name=$name" } + # TODO: name_len > 255 + set name_hdr [binary format cc 0x02 $name_len] + set name_pad [binary format x$name_pad_len] + set msg2 "$name_hdr$name$name_pad" + } + set msg3 "" + if { $sfile_len > 0 } { + if { $prmsg == 1 } { puts -nonewline ",file=$sfile" } + # TODO: sfile_len > 255 + set sfile_hdr [binary format cc 0x03 $sfile_len] + set sfile_pad [binary format x$sfile_pad_len] + set msg3 "$sfile_hdr$sfile$sfile_pad" + } + set msg4 "" + if { $nc_len > 0 } { + if { $prmsg == 1 } { puts -nonewline ",nc=$nodecount" } + set nc_hdr [binary format cc 0x04 $nc_len] + set nc_pad [binary format x$nc_pad_len] + set msg4 "$nc_hdr$nodecount$nc_pad" + } + set msg5 "" + if { $tf_len > 0 } { + if { $prmsg == 1 } { puts -nonewline ",thumb=$tf" } + set tf_hdr [binary format cc 0x06 $tf_len] + set tf_pad [binary format x$tf_pad_len] + set msg5 "$tf_hdr$tf$tf_pad" + } + set msg6 "" + if { $user_len > 0 } { + if { $prmsg == 1 } { puts -nonewline ",user=$user" } + set user_hdr [binary format cc 0x07 $user_len] + set user_pad [binary format x$user_pad_len] + set msg6 "$user_hdr$user$user_pad" + } + + if { $prmsg == 1 } { puts ")" } + puts -nonewline $channel $msgh$msg1$msg2$msg3$msg4$msg5$msg6 + flushChannel channel "Error sending Session num=$num" +} + +# return a new execution number and record it in the execution request list +# for the given callback (e.g. widget) type +proc newExecCallbackRequest { type } { + global g_api_exec_num g_execRequests + incr g_api_exec_num + set exec_num $g_api_exec_num + lappend g_execRequests($type) $exec_num + return $exec_num +} + +# ask daemon to load or save an XML file based on the current session +proc xmlFileLoadSave { cmd name } { + global oper_mode eventtypes + + set plugin [lindex [getEmulPlugin "*"] 0] + set sock [pluginConnect $plugin connect true] + if { $sock == -1 || $sock == "" } { return } + + # inform daemon about nodes and links when saving in edit mode + if { $cmd == "save" && $oper_mode != "exec" } { + sendSessionProperties $sock + # this tells the CORE services that we are starting to send + # configuration data + # clear any existing config + sendEventMessage $sock $eventtypes(definition_state) -1 "" "" 0 + sendEventMessage $sock $eventtypes(configuration_state) -1 "" "" 0 + sendEmulationServerInfo $sock 0 + sendSessionOptions $sock + sendHooks $sock + sendCanvasInfo $sock + sendNodeTypeInfo $sock 0 + # send any custom service info before the node messages + sendNodeCustomServices $sock + sendNodeLinkDefinitions $sock + } elseif { $cmd == "open" } { + # reset config objects + sendNodeTypeInfo $sock 1 + } + sendEventMessage $sock $eventtypes(file_$cmd) -1 $name "" 0 +} + +############################################################################ +# +# Helper functions below here +# + +# helper function to get interface number from name +proc ifcNameToNum { ifc } { + # eth0, eth1, etc. + if {[string range $ifc 0 2] == "eth"} { + set ifnum [string range $ifc 3 end] + # l0, l1, etc. + } else { + set ifnum [string range $ifc 1 end] + } + if { $ifnum == "" } { + return -1 + } + if {![string is integer $ifnum]} { + return -1 + } + return $ifnum +} + +# +# parse the type and length from a TLV header +proc parseTLVHeader { data current_ref } { + global showAPI + set prmsg $showAPI + upvar $current_ref current + + if { [binary scan $data @${current}cc type length] != 2 } { + if { $prmsg == 1 } { puts "TLV header error" } + return "" + } + set length [expr {$length & 0xFF}]; # convert signed to unsigned + if { $length == 0 } { + if { $type == 0 } { + # prevent endless looping + if { $prmsg == 1 } { puts -nonewline "(extra padding)" } + return "" + } else { + # support for length > 255 + incr current 2 + if { [binary scan $data @${current}S length] != 1 } { + puts "error reading TLV length (type=$type)" + return "" + } + set length [expr {$length & 0xFFFF}] + if { $length == 0 } { + # zero-length string, not length > 255 + incr current -2 + } + } + } + incr current 2 + return [list $type $length] +} + +# return the binary string, and length by reference +proc buildStringTLV { type data len_ref } { + upvar $len_ref len + set data_len [string length $data] + if { $data_len > 65536 } { + puts "warning: buildStringTLV data truncated" + set data_len 65536 + set data [string range 0 65535] + } + set data_pad_len [pad_32bit $data_len] + set data_pad [binary format x$data_pad_len] + + if { $data_len == 0 } { + set len 0 + return "" + } + + if { $data_len > 255 } { + set hdr [binary format ccS $type 0 $data_len] + set hdr_len 4 + } else { + set hdr [binary format cc $type $data_len] + set hdr_len 2 + } + + set len [expr {$hdr_len + $data_len + $data_pad_len}] + + return $hdr$data$data_pad +} + +# calculate padding to 32-bit word boundary +# 32-bit and 64-bit values are pre-padded, strings and 128-bit values are +# post-padded to word boundary, depending on type +proc pad_32bit { len } { + # total length = 2 + len + pad + if { $len < 256 } { + set hdrsiz 2 + } else { + set hdrsiz 4 + } + # calculate padding to fill 32-bit boundary + return [expr { -($hdrsiz + $len) % 4 }] +} + +proc macToString { mac_num } { + set mac_bytes "" + # convert 64-bit integer into 12-digit hex string + set mac_num 0x[format "%.12lx" $mac_num] + while { $mac_num > 0 } { + # append 8-bit hex number to list + set uchar [format "%02x" [expr $mac_num & 0xFF]] + lappend mac_bytes $uchar + # shift off 8-bits + set mac_num [expr $mac_num >> 8] + } + + # make sure we have six hex digits + set num_zeroes [expr 6 - [llength $mac_bytes]] + while { $num_zeroes > 0 } { + lappend mac_bytes 00 + incr num_zeroes -1 + } + + # this is lreverse in tcl8.5 and later + set r {} + set i [llength $mac_bytes] + while { $i > 0 } { lappend r [lindex $mac_bytes [incr i -1]] } + + return [join $r :] +} + +proc hexdump { data } { + # read data as hex + binary scan $data H* hex + # split into pairs of hex digits + regsub -all -- {..} $hex {& } hex + return $hex +} diff --git a/gui/canvas.tcl b/gui/canvas.tcl new file mode 100755 index 00000000..bbcdfa24 --- /dev/null +++ b/gui/canvas.tcl @@ -0,0 +1,411 @@ +# +# Copyright 2005-2013 the Boeing Company. +# See the LICENSE file included in this distribution. +# + +# +# Copyright 2005-2008 University of Zagreb, Croatia. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# +# THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. +# +# + +#****h* imunes/canvas.tcl +# NAME +# canvas.tcl -- file used for manipultaion with canvases in IMUNES +# FUNCTION +# This module is used to define all the actions used for configuring +# canvases in IMUNES. On each canvas a part of the simulation is presented +# If there is no additional canvas defined, simulation is presented on the +# defalut canvas. +# +#**** + +#****f* canvas.tcl/removeCanvas +# NAME +# removeCanvas -- remove canvas +# SYNOPSIS +# removeCanvas $canvas_id +# FUNCTION +# Removes the canvas from simulation. This function does not change the +# configuration of the nodes, i.e. nodes attached to the removed canvas +# remain attached to the same non existing canvas. +# INPUTS +# * canvas_id -- canvas id +#**** + +proc removeCanvas { canvas } { + global canvas_list $canvas + + set i [lsearch $canvas_list $canvas] + set canvas_list [lreplace $canvas_list $i $i] + set $canvas {} +} + +#****f* canvas.tcl/newCanvas +# NAME +# newCanvas -- craete new canvas +# SYNOPSIS +# set canvas_id [newCanvas $canvas_name] +# FUNCTION +# Creates new canvas. Returns the canvas_id of the new canvas. +# If the canvas_name parameter is empty, the name of the new canvas +# is set to CanvasN, where N represents the canvas_id of the new canvas. +# INPUTS +# * canvas_name -- canvas name +# RESULT +# * canvas_id -- canvas id +#**** + +proc newCanvas { name } { + global canvas_list + + set canvas [newObjectId canvas] + global $canvas + lappend canvas_list $canvas + set $canvas {} + if { $name != "" } { + setCanvasName $canvas $name + } else { + setCanvasName $canvas Canvas[string range $canvas 1 end] + } + + return $canvas +} + + +proc setCanvasSize { canvas x y } { + global $canvas + + set i [lsearch [set $canvas] "size *"] + if { $i >= 0 } { + set $canvas [lreplace [set $canvas] $i $i "size {$x $y}"] + } else { + set $canvas [linsert [set $canvas] 1 "size {$x $y}"] + } +} + +proc getCanvasSize { canvas } { + global $canvas g_prefs + + set entry [lrange [lsearch -inline [set $canvas] "size *"] 1 end] + set size [string trim $entry \{\}] + if { $size == "" } { + return "$g_prefs(gui_canvas_x) $g_prefs(gui_canvas_y)" + } else { + return $size + } +} + +#****f* canvas.tcl/getCanvasName +# NAME +# getCanvasName -- get canvas name +# SYNOPSIS +# set canvas_name [getCanvasName $canvas_id] +# FUNCTION +# Returns the name of the canvas. +# INPUTS +# * canvas_id -- canvas id +# RESULT +# * canvas_name -- canvas name +#**** + +proc getCanvasName { canvas } { + global $canvas + + set entry [lrange [lsearch -inline [set $canvas] "name *"] 1 end] + return [string trim $entry \{\}] +} + +#****f* canvas.tcl/setCanvasName +# NAME +# setCanvasName -- set canvas name +# SYNOPSIS +# setCanvasName $canvas_id $canvas_name +# FUNCTION +# Sets the name of the canvas. +# INPUTS +# * canvas_id -- canvas id +# * canvas_name -- canvas name +#**** + +proc setCanvasName { canvas name } { + global $canvas + + set i [lsearch [set $canvas] "name *"] + if { $i >= 0 } { + set $canvas [lreplace [set $canvas] $i $i "name {$name}"] + } else { + set $canvas [linsert [set $canvas] 1 "name {$name}"] + } +} + +# Boeing: canvas wallpaper support +proc getCanvasWallpaper { canvas } { + global $canvas + + set entry [lrange [lsearch -inline [set $canvas] "wallpaper *"] 1 end] + set entry2 [lrange [lsearch -inline \ + [set $canvas] "wallpaper-style *"] 1 end] + return [list [string trim $entry \{\}] [string trim $entry2 \{\}]] +} + +proc setCanvasWallpaper { canvas file style} { + global $canvas + + set i [lsearch [set $canvas] "wallpaper *"] + if { $i >= 0 } { + set $canvas [lreplace [set $canvas] $i $i "wallpaper {$file}"] + } else { + set $canvas [linsert [set $canvas] 1 "wallpaper {$file}"] + } + + set i [lsearch [set $canvas] "wallpaper-style *"] + if { $i >= 0 } { + set $canvas [lreplace [set $canvas] $i $i "wallpaper-style {$style}"] + } else { + set $canvas [linsert [set $canvas] 1 "wallpaper-style {$style}"] + } +} + +# Boeing: manage canvases +proc manageCanvasPopup { x y } { + global curcanvas CORE_DATA_DIR + + set w .entry1 + catch {destroy $w} + toplevel $w -takefocus 1 + + if { $x == 0 && $y == 0 } { + set screen [wm maxsize .] + set x [expr {[lindex $screen 0] / 4}] + set y [expr {[lindex $screen 1] / 4}] + } else { + set x [expr {$x + 10}] + set y [expr {$y - 250}] + } + wm geometry $w +$x+$y + wm title $w "Manage Canvases" + wm iconname $w "Manage Canvases" + + + ttk::frame $w.name + ttk::label $w.name.lab -text "Canvas name:" + ttk::entry $w.name.ent + $w.name.ent insert 0 [getCanvasName $curcanvas] + pack $w.name.lab $w.name.ent -side left -fill x + pack $w.name -side top -padx 4 -pady 4 + + global canvas_list + ttk::frame $w.canv + listbox $w.canv.cl -bg white -yscrollcommand "$w.canv.scroll set" + ttk::scrollbar $w.canv.scroll -orient vertical -command "$w.canv.cl yview" + foreach canvas $canvas_list { + $w.canv.cl insert end [getCanvasName $canvas] + if { $canvas == $curcanvas } { + set curindex [expr {[$w.canv.cl size] - 1}] + } + } + pack $w.canv.cl -side left -pady 4 -fill both -expand true + pack $w.canv.scroll -side left -fill y + pack $w.canv -side top -fill both -expand true -padx 4 -pady 4 + $w.canv.cl selection set $curindex + $w.canv.cl see $curindex + bind $w.canv.cl "manageCanvasSwitch $w" + + ttk::frame $w.buttons2 + foreach b {up down} { + set fn "$CORE_DATA_DIR/icons/tiny/arrow.${b}.gif" + set img$b [image create photo -file $fn] + ttk::button $w.buttons2.$b -image [set img${b}] \ + -command "manageCanvasUpDown $w $b" + } + pack $w.buttons2.up $w.buttons2.down -side left -expand 1 + pack $w.buttons2 -side top -fill x -pady 2 + + # hidden list of canvas numbers + ttk::label $w.list -text $canvas_list + + ttk::frame $w.buttons + ttk::button $w.buttons.apply -text "Apply" -command "manageCanvasApply $w" + ttk::button $w.buttons.cancel -text "Cancel" -command "destroy $w" + pack $w.buttons.apply $w.buttons.cancel -side left -expand 1 + pack $w.buttons -side bottom -fill x -pady 2m + + bind $w "destroy $w" + bind $w "manageCanvasApply $w" + +} + +# Boeing: manage canvases helper +# called when a canvas in the list is double-clicked +proc manageCanvasSwitch { w } { + global canvas_list curcanvas + set i [$w.canv.cl curselection] + if {$i == ""} { return} + set i [lindex $i 0] + set item [$w.canv.cl get $i] + + foreach canvas $canvas_list { + if {[getCanvasName $canvas] == $item} { + $w.name.ent delete 0 end + $w.name.ent insert 0 $item + set curcanvas $canvas + switchCanvas none + return + } + } +} + +# manage canvases helper +# handle the move up/down buttons for the canvas selection window +proc manageCanvasUpDown { w dir } { + global canvas_list + # get the currently selected item + set i [$w.canv.cl curselection] + if {$i == ""} { return} + set i [lindex $i 0] + set item [$w.canv.cl get $i] + + if {$dir == "down" } { + set max [expr {[llength $canvas_list] - 1}] + if {$i >= $max } { return } + set newi [expr {$i + 1}] + } else { + if {$i <= 0} { return } + set newi [expr {$i - 1}] + } + + # change the position + $w.canv.cl delete $i + $w.canv.cl insert $newi $item + $w.canv.cl selection set $newi + $w.canv.cl see $newi + + # update hidden list of canvas numbers + set new_canvas_list [$w.list cget -text] + set item [lindex $new_canvas_list $i] + set new_canvas_list [lreplace $new_canvas_list $i $i] + set new_canvas_list [linsert $new_canvas_list $newi $item] + $w.list configure -text $new_canvas_list +} + +# manage canvases helper +# called when apply button is pressed - changes the order of the canvases +proc manageCanvasApply { w } { + global canvas_list curcanvas changed + # we calculated this list earlier, making life easier here + set new_canvas_list [$w.list cget -text] + if {$canvas_list != $new_canvas_list} { + set canvas_list $new_canvas_list + } + set newname [$w.name.ent get] + destroy $w + if { $newname != [getCanvasName $curcanvas] } { + set changed 1 + } + setCanvasName $curcanvas $newname + switchCanvas none + updateUndoLog +} + +proc setCanvasScale { canvas scale } { + global $canvas + + set i [lsearch [set $canvas] "scale *"] + if { $i >= 0 } { + set $canvas [lreplace [set $canvas] $i $i "scale $scale"] + } else { + set $canvas [linsert [set $canvas] 1 "scale $scale"] + } +} + +proc getCanvasScale { canvas } { + global $canvas g_prefs + + set entry [lrange [lsearch -inline [set $canvas] "scale *"] 1 end] + set scale [string trim $entry \{\}] + if { $scale == "" } { + if { ![info exists g_prefs(gui_canvas_scale)] } { return 150.0 } + return "$g_prefs(gui_canvas_scale)" + } else { + return $scale + } +} + +proc setCanvasRefPoint { canvas refpt } { + global $canvas + + set i [lsearch [set $canvas] "refpt *"] + if { $i >= 0 } { + set $canvas [lreplace [set $canvas] $i $i "refpt {$refpt}"] + } else { + set $canvas [linsert [set $canvas] 1 "refpt {$refpt}"] + } +} + +proc getCanvasRefPoint { canvas } { + global $canvas g_prefs DEFAULT_REFPT + + set entry [lrange [lsearch -inline [set $canvas] "refpt *"] 1 end] + set altitude [string trim $entry \{\}] + if { $altitude == "" } { + if { ![info exists g_prefs(gui_canvas_refpt)] } { + return $DEFAULT_REFPT + } + return "$g_prefs(gui_canvas_refpt)" + } else { + return $altitude + } +} + +# from http://wiki.tcl.tk/1415 (MAK) +proc canvasSee { hWnd items } { + set box [eval $hWnd bbox $items] + + if {$box == ""} { return } + + if {[string match {} [$hWnd cget -scrollregion]] } { + # People really should set -scrollregion you know... + foreach {x y x1 y1} $box break + + set x [expr round(2.5 * ($x1+$x) / [winfo width $hWnd])] + set y [expr round(2.5 * ($y1+$y) / [winfo height $hWnd])] + + $hWnd xview moveto 0 + $hWnd yview moveto 0 + $hWnd xview scroll $x units + $hWnd yview scroll $y units + } else { + # If -scrollregion is set properly, use this + foreach { x y x1 y1 } $box break + foreach { top btm } [$hWnd yview] break + foreach { left right } [$hWnd xview] break + foreach { p q xmax ymax } [$hWnd cget -scrollregion] break + + set xpos [expr (($x1+$x) / 2.0) / $xmax - ($right-$left) / 2.0] + set ypos [expr (($y1+$y) / 2.0) / $ymax - ($btm-$top) / 2.0] + + $hWnd xview moveto $xpos + $hWnd yview moveto $ypos + } +} diff --git a/gui/cfgparse.tcl b/gui/cfgparse.tcl new file mode 100755 index 00000000..8ccfa53b --- /dev/null +++ b/gui/cfgparse.tcl @@ -0,0 +1,1152 @@ +# +# Copyright 2005-2013 the Boeing Company. +# See the LICENSE file included in this distribution. +# + +# +# Copyright 2005-2008 University of Zagreb, Croatia. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# +# THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. +# +# This work was supported in part by the Croatian Ministry of Science +# and Technology through the research contract #IP-2003-143. +# + +#****h* imunes/cfgparse.tcl +# NAME +# cfgparse.tcl -- file used for parsing the configuration +# FUNCTION +# This module is used for parsing the configuration, i.e. reading the +# configuration from a file or a string and writing the configuration +# to a file or a string. This module also contains a function for returning +# a new ID for nodes, links and canvases. +#**** + +#****f* nodecfg.tcl/dumpputs +# NAME +# dumpputs -- puts a string to a file or a string configuration +# SYNOPSIS +# dumpputs $method $destination $string +# FUNCTION +# Puts a sting to the file or appends the string configuration (used for +# undo functions), the choice depends on the value of method parameter. +# INPUTS +# * method -- method used. Possiable values are file (if saving the string +# to the file) and string (if appending the string configuration) +# * dest -- destination used. File_id for files, and string name for string +# configuration +# * string -- the string that is inserted to a file or appended to the string +# configuartion +#**** + +proc dumpputs {method dest string} { + switch -exact -- $method { + file { + puts $dest $string + } + string { + global $dest + append $dest "$string +" + } + } +} + +#****f* nodecfg.tcl/dumpCfg +# NAME +# dumpCfg -- puts the current configuraton to a file or a string +# SYNOPSIS +# dumpCfg $method $destination +# FUNCTION +# Writes the working (current) configuration to a file or a string. +# INPUTS +# * method -- used method. Possiable values are file (saving current congif +# to the file) and string (saving current config in a string) +# * dest -- destination used. File_id for files, and string name for string +# configurations +#**** + +proc dumpCfg {method dest} { + global node_list plot_list link_list canvas_list annotation_list + + global g_comments + if { [info exists g_comments] && $g_comments != "" } { + dumpputs $method $dest "comments \{" + foreach line [split $g_comments "\n"] { dumpputs $method $dest "$line" } + dumpputs $method $dest "\}" + dumpputs $method $dest "" + } + + foreach node $node_list { + global $node + upvar 0 $node lnode + dumpputs $method $dest "node $node \{" + foreach element $lnode { + if { "[lindex $element 0]" == "network-config" } { + dumpputs $method $dest " network-config \{" + foreach line [lindex $element 1] { + dumpputs $method $dest " $line" + } + dumpputs $method $dest " \}" + } elseif { "[lindex $element 0]" == "custom-config" } { + dumpputs $method $dest " custom-config \{" + foreach line [lindex $element 1] { + if { $line != {} } { + if { [catch {set str [lindex $line 0]} err] } { + puts "error loading config: $err" + puts "problem section: [lindex $element 0]" + puts "problem line: $line" + set str "" + } + if { $str == "config" } { + dumpputs $method $dest " config \{" + foreach element [lindex $line 1] { + dumpputs $method $dest " $element" + } + dumpputs $method $dest " \}" + } else { + dumpputs $method $dest " $line" + } + } + } + dumpputs $method $dest " \}" + } elseif { "[lindex $element 0]" == "ipsec-config" } { + dumpputs $method $dest " ipsec-config \{" + foreach line [lindex $element 1] { + if { $line != {} } { + dumpputs $method $dest " $line" + } + } + dumpputs $method $dest " \}" + } elseif { "[lindex $element 0]" == "custom-pre-config-commands" } { + #Boeing custom pre config commands + dumpputs $method $dest " custom-pre-config-commands \{" + foreach line [lindex $element 1] { + dumpputs $method $dest " $line" + } + dumpputs $method $dest " \}" + } elseif { "[lindex $element 0]" == "custom-post-config-commands" } { + #Boeing custom post config commands + dumpputs $method $dest " custom-post-config-commands \{" + foreach line [lindex $element 1] { + dumpputs $method $dest " $line" + } + dumpputs $method $dest " \}" + } elseif { "[lindex $element 0]" == "ine-config" } { + # Boeing: INE config support + dumpputs $method $dest " ine-config \{" + foreach line [lindex $element 1] { + dumpputs $method $dest " $line" + } + dumpputs $method $dest " \}" + # end Boeing + } else { + dumpputs $method $dest " $element" + } + } + dumpputs $method $dest "\}" + dumpputs $method $dest "" + } + + foreach obj "link annotation canvas plot" { + upvar 0 ${obj}_list obj_list + foreach elem $obj_list { + global $elem + upvar 0 $elem lelem + dumpputs $method $dest "$obj $elem \{" + foreach element $lelem { + dumpputs $method $dest " $element" + } + dumpputs $method $dest "\}" + dumpputs $method $dest "" + } + } + + global g_traffic_flows + if { [info exists g_traffic_flows] && [llength $g_traffic_flows] > 0 } { + dumpputs $method $dest "traffic \{" + foreach flow $g_traffic_flows { + dumpputs $method $dest " $flow" + } + dumpputs $method $dest "\}" + dumpputs $method $dest "" + } + + global g_hook_scripts + if { [info exists g_hook_scripts] && [llength $g_hook_scripts] > 0 } { + foreach hook $g_hook_scripts { + set name [lindex $hook 0] + set state [lindex $hook 1] + set script [lindex $hook 2] + dumpputs $method $dest "hook $state:$name \{" + foreach line [split $script "\n"] { + dumpputs $method $dest "$line" + } + dumpputs $method $dest "\}" + dumpputs $method $dest "" + } + } + + dumpGlobalOptions $method $dest + + # session options + dumpputs $method $dest "option session \{" + foreach kv [getSessionOptionsList] { dumpputs $method $dest " $kv" } + dumpputs $method $dest "\}" + dumpputs $method $dest "" +} + +proc dumpGlobalOptions { method dest } { + global showIfNames showNodeLabels showLinkLabels + global showIfIPaddrs showIfIPv6addrs + global showBkgImage showGrid showAnnotations + global showAPI + global g_view_locked + global g_traffic_start_opt + global mac_addr_start + + dumpputs $method $dest "option global \{" + if {$showIfNames == 0} { + dumpputs $method $dest " interface_names no" + } else { + dumpputs $method $dest " interface_names yes" } + if {$showIfIPaddrs == 0} { + dumpputs $method $dest " ip_addresses no" + } else { + dumpputs $method $dest " ip_addresses yes" } + if {$showIfIPv6addrs == 0} { + dumpputs $method $dest " ipv6_addresses no" + } else { + dumpputs $method $dest " ipv6_addresses yes" } + if {$showNodeLabels == 0} { + dumpputs $method $dest " node_labels no" + } else { + dumpputs $method $dest " node_labels yes" } + if {$showLinkLabels == 0} { + dumpputs $method $dest " link_labels no" + } else { + dumpputs $method $dest " link_labels yes" } + if {$showAPI == 0} { + dumpputs $method $dest " show_api no" + } else { + dumpputs $method $dest " show_api yes" } + if {$showBkgImage == 0} { + dumpputs $method $dest " background_images no" + } else { + dumpputs $method $dest " background_images yes" } + if {$showAnnotations == 0} { + dumpputs $method $dest " annotations no" + } else { + dumpputs $method $dest " annotations yes" } + if {$showGrid == 0} { + dumpputs $method $dest " grid no" + } else { + dumpputs $method $dest " grid yes" } + if {$g_view_locked == 1} { + dumpputs $method $dest " locked yes" } + if { [info exists g_traffic_start_opt] } { + dumpputs $method $dest " traffic_start $g_traffic_start_opt" + } + if { [info exists mac_addr_start] && $mac_addr_start > 0 } { + dumpputs $method $dest " mac_address_start $mac_addr_start" + } + dumpputs $method $dest "\}" + dumpputs $method $dest "" +} + +# get the global options into a list of key=value pairs +proc getGlobalOptionList {} { + global tmp + set tmp "" + dumpGlobalOptions string tmp ;# put "options global {items}" into tmp + set items [lindex $tmp 2] + return [listToKeyValues $items] +} + +proc setGlobalOption { field value } { + global showIfNames showNodeLabels showLinkLabels + global showIfIPaddrs showIfIPv6addrs + global showBkgImage showGrid showAnnotations + global showAPI + global mac_addr_start + global g_traffic_start_opt + global g_view_locked + + switch -exact -- $field { + interface_names { + if { $value == "no" } { + set showIfNames 0 + } elseif { $value == "yes" } { + set showIfNames 1 + } + } + ip_addresses { + if { $value == "no" } { + set showIfIPaddrs 0 + } elseif { $value == "yes" } { + set showIfIPaddrs 1 + } + } + ipv6_addresses { + if { $value == "no" } { + set showIfIPv6addrs 0 + } elseif { $value == "yes" } { + set showIfIPv6addrs 1 + } + } + node_labels { + if { $value == "no" } { + set showNodeLabels 0 + } elseif { $value == "yes" } { + set showNodeLabels 1 + } + } + link_labels { + if { $value == "no" } { + set showLinkLabels 0 + } elseif { $value == "yes" } { + set showLinkLabels 1 + } + } + show_api { + if { $value == "no" } { + set showAPI 0 + } elseif { $value == "yes" } { + set showAPI 1 + } + } + background_images { + if { $value == "no" } { + set showBkgImage 0 + } elseif { $value == "yes" } { + set showBkgImage 1 + } + } + annotations { + if { $value == "no" } { + set showAnnotations 0 + } elseif { $value == "yes" } { + set showAnnotations 1 + } + } + grid { + if { $value == "no" } { + set showGrid 0 + } elseif { $value == "yes" } { + set showGrid 1 + } + } + locked { + if { $value == "yes" } { + set g_view_locked 1 + } else { + set g_view_locked 0 + } + } + mac_address_start { + set mac_addr_start $value + } + traffic_start { + set g_traffic_start_opt $value + } + } +} + +# reset global vars when opening a new file +proc cleanupGUIState {} { + global node_list link_list plot_list canvas_list annotation_list + global mac_addr_start g_comments + global g_traffic_flows g_traffic_start_opt g_hook_scripts + global g_view_locked + + set node_list {} + set link_list {} + set annotation_list {} + set plot_list {} + set canvas_list {} + set g_traffic_flows "" + set g_traffic_start_opt 0 + set g_hook_scripts "" + set g_comments "" + set g_view_locked 0 + resetSessionOptions +} + +#****f* nodecfg.tcl/loadCfg +# NAME +# loadCfg -- loads the current configuration. +# SYNOPSIS +# loadCfg $cfg +# FUNCTION +# Loads the configuration written in the cfg string to a current +# configuration. +# INPUTS +# * cfg -- string containing the new working configuration. +#**** + +proc loadCfg { cfg } { + global node_list plot_list link_list canvas_list annotation_list + global g_traffic_flows g_traffic_start_opt g_hook_scripts + global g_view_locked + global g_comments + + # maximum coordinates + set maxX 0 + set maxY 0 + set do_upgrade [upgradeOldConfig cfg] + if { $do_upgrade == "no"} { return } + + # Cleanup first + cleanupGUIState + set class "" + set object "" + foreach entry $cfg { + if {"$class" == ""} { + set class $entry + continue + } elseif {"$object" == ""} { + set object $entry + if {"$class" == "node"} { + lappend node_list $object + } elseif {"$class" == "link"} { + lappend link_list $object + } elseif {"$class" == "canvas"} { + lappend canvas_list $object + } elseif {"$class" == "plot"} { + lappend plot_list $object + } elseif {"$class" == "option"} { + # do nothing + } elseif {"$class" == "traffic"} { ;# save traffic flows + set g_traffic_flows [split [string trim $object] "\n"] + set class ""; set object ""; continue + } elseif {"$class" == "script"} { + # global_script (old config) becomes a runtime hook + set name "runtime_hook.sh" + set script [string trim $object] + lappend g_hook_scripts [list $name 4 $script] ;# 4=RUNTIME_STATE + set class ""; set object ""; continue + } elseif {"$class" == "hook"} { + continue + } elseif {"$class" == "comments"} { + set g_comments [string trim $object] + set class ""; set object ""; continue + } elseif {"$class" == "annotation"} { + lappend annotation_list $object + } else { + puts "configuration parsing error: unknown object class $class" + #exit 1 + } + # create an empty global variable named object for most objects + global $object + set $object {} + continue + } else { + set line [concat $entry] + # uses 'key=value' instead of 'key value' + if { $object == "session" } { + # 'key=value', values with space needs quoting 'key={space val}' + setSessionOptions "" $line + set class "" + set object "" + continue + } + # extracts "field { value }" elements from line + if { [catch { set tmp [llength $line] } e] } { + puts "*** Error with line ('$e'):\n$line" + puts "*** Line will be skipped. This is a Tcl limitation, " + puts "*** consider using XML or fixing with whitespace." + continue + } + while {[llength $line] >= 2} { + set field [lindex $line 0] + if {"$field" == ""} { + set line [lreplace $line 0 0] + continue + } + + # consume first two list elements from line + set value [lindex $line 1] + set line [lreplace $line 0 1] + + if {"$class" == "node"} { + switch -exact -- $field { + type { + lappend $object "type $value" + } + mirror { + lappend $object "mirror $value" + } + model { + lappend $object "model $value" + } + cpu { + lappend $object "cpu {$value}" + } + interface-peer { + lappend $object "interface-peer {$value}" + } + network-config { + set cfg "" + foreach zline [split $value { +}] { + if { [string index "$zline" 0] == " " } { + set zline [string replace "$zline" 0 0] + } + lappend cfg $zline + } + set cfg [lrange $cfg 1 [expr {[llength $cfg] - 2}]] + lappend $object "network-config {$cfg}" + } + custom-enabled { + lappend $object "custom-enabled $value" + } + custom-command { + lappend $object "custom-command {$value}" + } + custom-config { + set cfg "" + set have_config 0 + set ccfg {} + foreach zline [split $value "\n"] { + if { [string index "$zline" 0] == \ + " " } { + # remove leading tab character + set zline [string replace "$zline" 0 0] + } + + # flag for config lines + if { $zline == "config \{" } { + set have_config 1 + # collect custom config lines into list + } elseif { $have_config == 1 } { + lappend ccfg $zline + # add non-config lines + } else { + lappend cfg $zline + } + } + # chop off last brace in config { } block and add it + if { $have_config } { + set ccfg [lrange $ccfg 0 \ + [expr {[llength $ccfg] - 3}]] + lappend cfg [list config $ccfg] + } + #set cfg [lrange $cfg 1 [expr {[llength $cfg] - 2}]] + lappend $object "custom-config {$cfg}" + } + ipsec-enabled { + lappend $object "ipsec-enabled $value" + } + ipsec-config { + set cfg "" + + foreach zline [split $value { +}] { + if { [string index "$zline" 0] == " " } { + set zline [string replace "$zline" 0 0] + } + lappend cfg $zline + } + set cfg [lrange $cfg 1 [expr {[llength $cfg] - 2}]] + lappend $object "ipsec-config {$cfg}" + } + iconcoords { + checkMaxCoords $value maxX maxY + lappend $object "iconcoords {$value}" + } + labelcoords { + checkMaxCoords $value maxX maxY + lappend $object "labelcoords {$value}" + } + canvas { + lappend $object "canvas $value" + } + hidden { + lappend $object "hidden $value" + } + /* { + set comment "$field $value" + foreach c $line { + lappend comment $c + # consume one element from line + set line [lreplace $line 0 0] + if { $c == "*/" } { break } + } + lappend $object "$comment" + } + + custom-pre-config-commands { + # Boeing - custom pre config commands + set cfg "" + foreach zline [split $value { }] { + if { [string index "$zline" 0] == " " } { + set zline [string replace "$zline" 0 0] + } + lappend cfg $zline + } + set cfg [lrange $cfg 1 [expr [llength $cfg] - 2]] + lappend $object "custom-pre-config-commands {$cfg}" + } + custom-post-config-commands { + # Boeing - custom post config commands + set cfg "" + foreach zline [split $value { }] { + if { [string index "$zline" 0] == " " } { + set zline [string replace "$zline" 0 0] + } + lappend cfg $zline + } + set cfg [lrange $cfg 1 [expr [llength $cfg] - 2]] + lappend $object "custom-post-config-commands {$cfg}" + } + custom-image { + # Boeing - custom-image + lappend $object "custom-image $value" + } + ine-config { + # Boeing - INE + set cfg "" + foreach zline [split $value { }] { + if { [string index "$zline" 0] == " " } { + set zline [string replace "$zline" 0 0] + } + lappend cfg $zline + } + set cfg [lrange $cfg 1 [expr [llength $cfg] - 2]] + lappend $object "ine-config {$cfg}" + } + tunnel-peer { + # Boeing - Span tunnels + lappend $object "tunnel-peer {$value}" + } + range { + # Boeing - WLAN range + lappend $object "range $value" + } + bandwidth { + # Boeing - WLAN bandwidth + lappend $object "bandwidth $value" + } + cli-enabled { + puts "Warning: cli-enabled setting is deprecated" + } + delay { + # Boeing - WLAN delay + lappend $object "delay $value" + } + ber { + # Boeing - WLAN BER + lappend $object "ber $value" + } + location { + # Boeing - node location + lappend $object "location $value" + } + os { + # Boeing - node OS + # just ignore it, set at runtime + } + services { + lappend $object "services {$value}" + } + + default { + # Boeing - added warning + puts -nonewline "config file warning: unknown confi" + puts "guration item '$field' ignored for $object" + } + } + } elseif {"$class" == "plot"} { + switch -exact -- $field { + name { + lappend $object "name $value" + } + height { + lappend $object "height $value" + } + width { + lappend $object "width $value" + } + x { + lappend $object "x $value" + } + y { + lappend $object "y $value" + } + color { + lappend $object "color $value" + } + } + } elseif {"$class" == "link"} { + switch -exact -- $field { + nodes { + lappend $object "nodes {$value}" + } + mirror { + lappend $object "mirror $value" + } + bandwidth { + lappend $object "bandwidth $value" + } + delay { + lappend $object "delay $value" + } + ber { + lappend $object "ber $value" + } + duplicate { + lappend $object "duplicate $value" + } + jitter { + # Boeing - jitter + lappend $object "jitter $value" + } + color { + lappend $object "color $value" + } + width { + lappend $object "width $value" + } + default { + # this enables opaque data to be stored along with + # each link (any key is stored) + lappend $object "$field $value" + # Boeing - added warning + #puts -nonewline "config file warning: unknown conf" + #puts "iguration item '$field' ignored for $object" + } + } + } elseif {"$class" == "canvas"} { + switch -exact -- $field { + name { + lappend $object "name {$value}" + } + size { + lappend $object "size {$value}" + } + bkgImage { + lappend $object "wallpaper {$value}" + } + wallpaper { + lappend $object "wallpaper {$value}" + } + wallpaper-style { + lappend $object "wallpaper-style {$value}" + } + scale { + lappend $object "scale {$value}" + } + refpt { + lappend $object "refpt {$value}" + } + } + } elseif {"$class" == "option"} { + setGlobalOption $field $value + } elseif {"$class" == "annotation"} { + switch -exact -- $field { + type { + lappend $object "type $value" + } + iconcoords { + lappend $object "iconcoords {$value}" + } + color { + lappend $object "color $value" + } + border { + lappend $object "border $value" + } + label { + lappend $object "label {$value}" + } + labelcolor { + lappend $object "labelcolor $value" + } + size { + lappend $object "size $value" + } + canvas { + lappend $object "canvas $value" + } + font { + lappend $object "font {$value}" + } + fontfamily { + lappend $object "fontfamily {$value}" + } + fontsize { + lappend $object "fontsize {$value}" + } + effects { + lappend $object "effects {$value}" + } + width { + lappend $object "width $value" + } + rad { + lappend $object "rad $value" + } + } ;# end switch + } elseif {"$class" == "hook"} { + set state_name [split $object :] + if { [llength $state_name] != 2 } { + puts "invalid hook in config file" + continue + } + set state [lindex $state_name 0] + set name [lindex $state_name 1] + set lines [split $entry "\n"] + set lines [lreplace $lines 0 0] ;# chop extra newline + set lines [join $lines "\n"] + set hook [list $name $state $lines] + lappend g_hook_scripts $hook + set line "" ;# exit this while loop + } ;#endif class + } + } + set class "" + set object "" + } + + # + # Hack for comaptibility with old format files (no canvases) + # + if { $canvas_list == "" } { + set curcanvas [newCanvas ""] + foreach node $node_list { + setNodeCanvas $node $curcanvas + } + } + + + # auto resize canvas + set curcanvas [lindex $canvas_list 0] + set newX 0 + set newY 0 + if { $maxX > [lindex [getCanvasSize $curcanvas] 0] } { + set newX [expr {$maxX + 50}] + } + if { $maxY > [lindex [getCanvasSize $curcanvas] 1] } { + set newY [expr {$maxY + 50}] + } + if { $newX > 0 || $newY > 0 } { + if { $newX == 0 } { set newX [lindex [getCanvasSize $curcanvas] 0] } + if { $newY == 0 } { set newY [lindex [getCanvasSize $curcanvas] 1] } + setCanvasSize $curcanvas $newX $newY + } + + # extra upgrade steps + if { $do_upgrade == "yes" } { + upgradeNetworkConfigToServices + } + upgradeConfigRemoveNode0 + upgradeConfigServices + upgradeWlanConfigs +} + +#****f* nodecfg.tcl/newObjectId +# NAME +# newObjectId -- new object Id +# SYNOPSIS +# set obj_id [newObjectId $type] +# FUNCTION +# Returns the Id for a new object of the defined type. Supported types +# are node, link and canvas. The Id is in the form $mark$number. $mark is the +# first letter of the given type and $number is the first available number to +# that can be used for id. +# INPUTS +# * type -- the type of the new object. Can be node, link or canvas. +# RESULT +# * obj_id -- object Id in the form $mark$number. $mark is the +# first letter of the given type and $number is the first available number to +# that can be used for id. +#**** + +proc newObjectId { type } { + global node_list link_list annotation_list canvas_list + + set mark [string range [set type] 0 0] + set id 1 ;# start numbering at 1, not 0 + while {[lsearch [set [set type]_list] "$mark$id"] != -1} { + incr id + } + return $mark$id +} + + + +# Boeing: pick a new link id for temporary newlinks +proc newlinkId { } { + global link_list + set id [newObjectId link] + set mark "l" + set id 0 + + # alllinks contains a list of all existing and new links + set alllinks $link_list + foreach newlink [.c find withtag "newlink"] { + set newlinkname [lindex [.c gettags $newlink] 1] + lappend alllinks $newlinkname + } + + while {[lsearch $alllinks "$mark$id"] != -1 } { + incr id + } + return $mark$id +} + +# Boeing: helper fn to determine canvas size during load +proc checkMaxCoords { str maxXp maxYp } { + upvar 1 $maxXp maxX + upvar 1 $maxYp maxY + set x [lindex $str 0] + set y [lindex $str 1] + if { $x > $maxX } { + set maxX $x + } + if { $y > $maxY } { + set maxY $y + } + if { [llength $str] == 4 } { + set x [lindex $str 2] + set y [lindex $str 3] + if { $x > $maxX } { + set maxX $x + } + if { $y > $maxY } { + set maxY $y + } + } +} + +# Boeing: pick a router for OSPF +proc newRouterId { type node } { + set mark [string range [set type] 0 0] + for { set id 0 } { $node != "$mark$id" } { incr id } { + } + return "0.0.0.${id}" +} +# end Boeing + +# Boeing: load servers.conf file into exec_servers array +proc loadServersConf { } { + global CONFDIR exec_servers DEFAULT_API_PORT + set confname "$CONFDIR/servers.conf" + if { [catch { set f [open "$confname" r] } ] } { + puts "Creating a default $confname" + if { [catch { set f [open "$confname" w+] } ] } { + puts "***Warning: could not create a default $confname file." + return + } + puts $f "core1 192.168.0.2 $DEFAULT_API_PORT" + puts $f "core2 192.168.0.3 $DEFAULT_API_PORT" + close $f + if { [catch { set f [open "$confname" r] } ] } { + return + } + } + + array unset exec_servers + + while { [ gets $f line ] >= 0 } { + if { [string range $line 0 0] == "#" } { continue } ;# skip comments + set l [split $line] ;# parse fields separated by whitespace + set name [lindex $l 0] + set ip [lindex $l 1] + set port [lindex $l 2] + set sock -1 + if { $name == "" } { continue } ;# blank name + # load array of servers + array set exec_servers [list $name [list $ip $port $sock]] + } + close $f +} +# end Boeing + +# Boeing: write servers.conf file from exec_servers array +proc writeServersConf { } { + global CONFDIR exec_servers + set confname "$CONFDIR/servers.conf" + if { [catch { set f [open "$confname" w] } ] } { + puts "***Warning: could not write servers file: $confname" + return + } + + set header "# servers.conf: list of CORE emulation servers for running" + set header "$header remotely." + puts $f $header + foreach server [lsort -dictionary [array names exec_servers]] { + set ip [lindex $exec_servers($server) 0] + set port [lindex $exec_servers($server) 1] + puts $f "$server $ip $port" + } + close $f +} +# end Boeing + +# display the preferences dialog +proc popupPrefs {} { + global EDITORS TERMS + + set wi .core_prefs + catch { destroy $wi } + toplevel $wi + + wm transient $wi . + wm resizable $wi 0 0 + wm title $wi "Preferences" + + global g_prefs g_prefs_old + array set g_prefs_old [array get g_prefs] + + # + # Paths + # + labelframe $wi.dirs -borderwidth 4 -text "Paths" -relief raised + frame $wi.dirs.conf + label $wi.dirs.conf.label -text "Default configuration file path:" + entry $wi.dirs.conf.entry -bg white -width 40 \ + -textvariable g_prefs(default_conf_path) + pack $wi.dirs.conf.label $wi.dirs.conf.entry -side left + pack $wi.dirs.conf -side top -anchor w -padx 4 -pady 4 + + frame $wi.dirs.mru + label $wi.dirs.mru.label -text "Number of recent files to remember:" + entry $wi.dirs.mru.num -bg white -width 3 \ + -textvariable g_prefs(num_recent) + button $wi.dirs.mru.clear -text "Clear recent files" \ + -command "addFileToMrulist \"\"" + pack $wi.dirs.mru.label $wi.dirs.mru.num $wi.dirs.mru.clear -side left + pack $wi.dirs.mru -side top -anchor w -padx 4 -pady 4 + + pack $wi.dirs -side top -fill x + + # + # Window + # + labelframe $wi.win -borderwidth 4 -text "GUI Window" -relief raised + frame $wi.win.win + checkbutton $wi.win.win.savepos -text "remember window position" \ + -variable g_prefs(gui_save_pos) + checkbutton $wi.win.win.savesiz -text "remember window size" \ + -variable g_prefs(gui_save_size) + pack $wi.win.win.savepos $wi.win.win.savesiz -side left -anchor w -padx 4 + pack $wi.win.win -side top -anchor w -padx 4 -pady 4 + + frame $wi.win.a + checkbutton $wi.win.a.snaptogrid -text "snap to grid" \ + -variable g_prefs(gui_snap_grid) + checkbutton $wi.win.a.showtooltips -text "show tooltips" \ + -variable g_prefs(gui_show_tooltips) + pack $wi.win.a.snaptogrid $wi.win.a.showtooltips \ + -side left -anchor w -padx 4 + pack $wi.win.a -side top -anchor w -padx 4 -pady 4 + + frame $wi.win.canv + label $wi.win.canv.label -text "Default canvas size:" + entry $wi.win.canv.x -bg white -width 5 -textvariable g_prefs(gui_canvas_x) + entry $wi.win.canv.y -bg white -width 5 -textvariable g_prefs(gui_canvas_y) + label $wi.win.canv.label2 -text "Default # of canvases:" + entry $wi.win.canv.num -bg white -width 5 \ + -textvariable g_prefs(gui_num_canvases) + pack $wi.win.canv.label $wi.win.canv.x $wi.win.canv.y \ + $wi.win.canv.label2 $wi.win.canv.num \ + -side left -anchor w -padx 4 + pack $wi.win.canv -side top -anchor w -padx 4 -pady 4 + pack $wi.win -side top -fill x + + # + # Programs + # + labelframe $wi.pr -borderwidth 4 -text "Programs" -relief raised + + frame $wi.pr.editor + label $wi.pr.editor.label -text "Text editor:" + set editors [linsert $EDITORS 0 "EDITOR"] + ttk::combobox $wi.pr.editor.combo -width 10 -exportselection 0 \ + -values $editors -textvariable g_prefs(gui_text_editor) + label $wi.pr.editor.label2 -text "Terminal program:" + set terms [linsert $TERMS 0 "TERM"] + ttk::combobox $wi.pr.editor.combo2 -width 20 -exportselection 0 \ + -values $terms -textvariable g_prefs(gui_term_prog) + pack $wi.pr.editor.label $wi.pr.editor.combo -padx 4 -pady 4 -side left + pack $wi.pr.editor.label2 $wi.pr.editor.combo2 -padx 4 -pady 4 -side left + pack $wi.pr.editor -side top -anchor w -padx 4 -pady 4 + + frame $wi.pr.3d + label $wi.pr.3d.label -text "3D GUI command:" + entry $wi.pr.3d.entry -bg white -width 40 -textvariable g_prefs(gui_3d_path) + pack $wi.pr.3d.label $wi.pr.3d.entry -side left -padx 4 -pady 4 + pack $wi.pr.3d -side top -anchor w -padx 4 -pady 4 + + pack $wi.pr -side top -fill x + + # + # Buttons at the bottom + # + frame $wi.bot -borderwidth 0 + button $wi.bot.apply -text "Save" -command "savePrefsFile; destroy $wi" + button $wi.bot.defaults -text "Load defaults" -command initDefaultPrefs + button $wi.bot.cancel -text "Cancel" -command { + global g_prefs g_prefs_old + array set g_prefs [array get g_prefs_old] + destroy .core_prefs + } + pack $wi.bot.cancel $wi.bot.defaults $wi.bot.apply -side right + pack $wi.bot -side bottom -fill x + after 100 { + catch { grab .core_prefs } + } +} + +# initialize preferences array with default values +proc initDefaultPrefs {} { + global g_prefs CONFDIR SBINDIR DEFAULT_REFPT tcl_platform + + # variable expansions must be done here + array set g_prefs [list default_conf_path "$CONFDIR/configs"] + array set g_prefs [list gui_canvas_refpt "$DEFAULT_REFPT"] + if { $tcl_platform(os) == "FreeBSD" } { set shell "/usr/local/bin/bash" + } else { set shell "bash" } + array set g_prefs [list shell $shell] + array set g_prefs [list gui_text_editor [get_text_editor true]] + array set g_prefs [list gui_term_prog [get_term_prog true]] + setDefaultAddrs ipv4 + setDefaultAddrs ipv6 + # preferences will be reordered alphabetically + array set g_prefs { + num_recent 4 + log_path "/tmp/core_logs" + gui_save_pos 0 + gui_save_size 0 + gui_snap_grid 0 + gui_show_tooltips 1 + gui_canvas_x 1000 + gui_canvas_y 750 + gui_canvas_scale 150.0 + gui_num_canvases 1 + gui_3d_path "/usr/local/bin/sdt3d.sh" + } + # add new preferences above; keep this at the end of the file +} + + diff --git a/gui/configs/sample1-bg.gif b/gui/configs/sample1-bg.gif new file mode 100644 index 0000000000000000000000000000000000000000..98344744698658e0fdbc19a8be28f9bf065018c5 GIT binary patch literal 319126 zcmWiei9ZvL|Ho&W9oX93=4dm=-1iw}&bg1=RPGQpqUf{(Bjn7@oFQuDrkc%7nyb(? zQt75tx_o}$-}`@fKVI+W>-lzYv^O;irGw&tZ~p^;VFJ?fq7n+`O6pQ7>Nu>roxYih zp{e!}TN5jnXm?K!4fUoA+!Qj?m-IG29% z67^h4`soyUdUna>>qVK2ii<@}>DTKA%Nq-unrdrrRyW)%ZN6DpeY3N!wXm{1v+`D9 zV{2}0TX}g$Zf$#RdHZNhS7GIyp}M=dwH=Sz+6PNICmTD)$~rksT}4b*FSEP2shiQ( zS<%j7wy|#By3<+F$-CLbtm|erv4$JFE9*K(n|ia0yLlaVOKQ7jx>@z*-7`&n1r2?r z6}{}%-qPxxiJIP_mhPUqo{{>#-kW`Gjs2a?gXK5-?zIk;+#ITG8)SA2R<;aRb@Xw& z`&+vD@AUQ8cMg@d47YR+*54Uy8R~0ozhBsTzxw9=hGupd>t4<6dyQ=mYC0a2-D20a zk1*S~l^vWq7N@d%q`qsUm=X<7FIHM!O<0JRSX8LB@2FLhAGhO#*+WTk6*fRrz za~(r7567nm@6SG%n!YzgA;}*^mdur+S^y1*?!c)$Z-l-+d=9elYXZ>@}R_C8jKYq$vc{=m_>4PWFA1uG@T6#I~^x4?s7vrlh*o%Dj z+RKrR7eg=k)2ka(Yp?D<+u*Kk_C4MlUD}*}u`$20xv=r-;j`DXFE&?KUT?hKoZ!Ei zc=C4b^{chb*K;r4&TYI|e){I~^4p&qTT>t2KH1#*u<>z`|8e!*`^C5KUcddY_WI-c z$M@^&pWeU!GXH9K|MQ>C@4vRb@BRG#>&usafB*aMKis}7AzTfsud8c{O^S}hTAzuG zIeijqb0(e~dO8(=`vn#d0{jQi1pIIQe`Nr$eZXR)C)Y8(f*7#L>kQA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J}HK%4GyMtfj7KO`e8%j=oDyF17YOC zHK4<+MT1!sj;c}MSL_o3k++aY%#d zpw4oDkhtm2RVjz^jDogp6}JHo43@_aQq{{fA#Q;JCs2YEuvIHa!V4Th4EO-ORZtNW zL6TU(BLq-&_?5pA&y|ougrGt$=l~zo0w;jNCPac+c>-bmf;!m4I~YR{M1d3R&n`%i z6lB81*@ASOkW~$cCxikd{;a|(m;xDsoM}BmD^%elJc9Iyf+*;mgOI|t#mHYlNeFGo zZQKGWegY}lT$j|CO<0QaeO?SP(LnskK-f@BoJ5^n-54E>ujt|@JOnqLQao85nBauy zS&9&$3aY4+N(2H9=#m+@mnK!wLnH)5Xp_-gL_r`5%G66WEyNd{*BDKToPbJ2pb5Mj z7fraqoE%rZgH@(V02pyh5M2rc<#NeF{ zAq%32-k*$-tAJVl$^c4rB^M2Kou6C*N3a2#)j=ab7$8)Ur8E&h&QeS$S3F4sK(fjF z@j^1xgF2W6W++AC_|w`PMJ}*{7jVHlsDn^U1KPMB1rpj)423j=)FhxqOHl@>70xdt zh1O&SO_@cgT|*`4O)PMf2TDWcxL;BXhE|}%7wEvJr33zrpkn5qVuS;*so)Bd262o= z3;see)Itop0uMro>eL`mIok?G)l@Zy4=!ORc1SO1l`tR!G900IV8<;e;S$=8b-02p z+@>oSm2|un6pTYMP)`(Kp%3^#5zJc`YT*mufhp8nB9ftv)Q%DgTqxuMD$tsQaEKj{ zf|O7OWR3m^7o^ty$ifgrLB%QP@{4sD4?)GPnOdhK$sE~7eV~kzDz{Qq{)dDUD35c HKmY(cCWiQ$ literal 0 HcmV?d00001 diff --git a/gui/configs/sample1.imn b/gui/configs/sample1.imn new file mode 100644 index 00000000..c394bbe6 --- /dev/null +++ b/gui/configs/sample1.imn @@ -0,0 +1,510 @@ +node n1 { + type router + model router + network-config { + hostname n1 + ! + interface eth1 + ip address 10.0.5.1/24 + ipv6 address a:5::1/64 + ! + interface eth0 + ip address 10.0.3.2/24 + ipv6 address a:3::2/64 + ! + } + canvas c1 + iconcoords {384.0 456.0} + labelcoords {384.0 484.0} + interface-peer {eth0 n2} + interface-peer {eth1 n15} +} + +node n2 { + type router + model router + network-config { + hostname n2 + ! + interface eth2 + ip address 10.0.4.1/24 + ipv6 address a:4::1/64 + ! + interface eth1 + ip address 10.0.3.1/24 + ipv6 address a:3::1/64 + ! + interface eth0 + ip address 10.0.2.2/24 + ipv6 address a:2::2/64 + ! + } + canvas c1 + iconcoords {264.0 432.0} + labelcoords {264.0 460.0} + interface-peer {eth0 n3} + interface-peer {eth1 n1} + interface-peer {eth2 n15} +} + +node n3 { + type router + model router + network-config { + hostname n3 + ! + interface eth1 + ip address 10.0.2.1/24 + ipv6 address a:2::1/64 + ! + interface eth0 + ip address 10.0.1.1/24 + ipv6 address a:1::1/64 + ! + } + canvas c1 + iconcoords {120.0 360.0} + labelcoords {120.0 388.0} + interface-peer {eth0 n4} + interface-peer {eth1 n2} +} + +node n4 { + type lanswitch + network-config { + hostname n4 + ! + } + canvas c1 + iconcoords {192.0 252.0} + labelcoords {192.0 280.0} + interface-peer {e0 n3} + interface-peer {e1 n11} + interface-peer {e2 n12} + interface-peer {e3 n13} + interface-peer {e4 n14} +} + +node n5 { + type router + model mdr + network-config { + hostname n5 + ! + interface eth0 + ipv6 address a:0::3/128 + ip address 10.0.0.5/32 + ! + interface eth1 + ip address 10.0.6.2/24 + ipv6 address a:6::2/64 + ! + } + canvas c1 + iconcoords {540.0 348.0} + labelcoords {540.0 376.0} + interface-peer {eth0 n10} + interface-peer {eth1 n15} + services {zebra OSPFv2 OSPFv3MDR vtysh IPForward} + custom-config { + custom-config-id service:zebra + custom-command zebra + config { + files=('/usr/local/etc/quagga/Quagga.conf', 'quaggaboot.sh', ) + } + } + custom-config { + custom-config-id service:zebra:/usr/local/etc/quagga/Quagga.conf + custom-command /usr/local/etc/quagga/Quagga.conf + config { + interface eth0 + ip address 10.0.0.5/32 + ipv6 address a::3/128 + ipv6 ospf6 instance-id 65 + ipv6 ospf6 hello-interval 2 + ipv6 ospf6 dead-interval 6 + ipv6 ospf6 retransmit-interval 5 + ipv6 ospf6 network manet-designated-router + ipv6 ospf6 diffhellos + ipv6 ospf6 adjacencyconnectivity uniconnected + ipv6 ospf6 lsafullness mincostlsa + ! + interface eth1 + ip address 10.0.6.2/24 + !ip ospf hello-interval 2 + !ip ospf dead-interval 6 + !ip ospf retransmit-interval 5 + !ip ospf network point-to-point + ipv6 address a:6::2/64 + ! + router ospf + router-id 10.0.0.5 + network 10.0.0.5/32 area 0 + network 10.0.6.0/24 area 0 + redistribute connected metric-type 1 + redistribute ospf6 metric-type 1 + ! + router ospf6 + router-id 10.0.0.5 + interface eth0 area 0.0.0.0 + redistribute connected + redistribute ospf + ! + + + } + } +} + +node n6 { + type router + model mdr + network-config { + hostname n6 + ! + interface eth0 + ip address 10.0.0.6/32 + ipv6 address a:0::6/128 + ! + } + canvas c1 + iconcoords {780.0 228.0} + labelcoords {780.0 252.0} + interface-peer {eth0 n10} +} + +node n7 { + type router + model mdr + network-config { + hostname n7 + ! + interface eth0 + ip address 10.0.0.7/32 + ipv6 address a:0::7/128 + ! + } + canvas c1 + iconcoords {816.0 348.0} + labelcoords {816.0 372.0} + interface-peer {eth0 n10} +} + +node n8 { + type router + model mdr + network-config { + hostname n8 + ! + interface eth0 + ip address 10.0.0.8/32 + ipv6 address a:0::8/128 + ! + } + canvas c1 + iconcoords {672.0 420.0} + labelcoords {672.0 444.0} + interface-peer {eth0 n10} +} + +node n9 { + type router + model mdr + network-config { + hostname n9 + ! + interface eth0 + ip address 10.0.0.9/32 + ipv6 address a:0::9/128 + ! + } + canvas c1 + iconcoords {672.0 96.0} + labelcoords {672.0 120.0} + interface-peer {eth0 n10} +} + +node n10 { + type wlan + network-config { + hostname wlan10 + ! + interface wireless + ip address 10.0.0.0/32 + ipv6 address a:0::0/128 + ! + mobmodel + coreapi + basic_range + ns2script + ! + } + canvas c1 + iconcoords {852.0 564.0} + labelcoords {852.0 596.0} + interface-peer {e0 n8} + interface-peer {e1 n7} + interface-peer {e2 n5} + interface-peer {e3 n6} + interface-peer {e4 n9} + custom-config { + custom-config-id basic_range + custom-command {3 3 9 9 9} + config { + range=240 + bandwidth=54000000 + jitter=0 + delay=50000 + error=0 + } + } + custom-config { + custom-config-id ns2script + custom-command {10 3 11 10 10} + config { + file=sample1.scen + refresh_ms=50 + loop=1 + autostart=5 + map= + } + } +} + +node n11 { + type router + model PC + network-config { + hostname n11 + ! + interface eth0 + ip address 10.0.1.20/24 + ipv6 address a:1::20/64 + ! + } + canvas c1 + iconcoords {192.0 156.0} + labelcoords {192.0 188.0} + interface-peer {eth0 n4} +} + +node n12 { + type router + model PC + network-config { + hostname n12 + ! + interface eth0 + ip address 10.0.1.21/24 + ipv6 address a:1::21/64 + ! + } + canvas c1 + iconcoords {264.0 156.0} + labelcoords {264.0 188.0} + interface-peer {eth0 n4} +} + +node n13 { + type router + model PC + network-config { + hostname n13 + ! + interface eth0 + ip address 10.0.1.22/24 + ipv6 address a:1::22/64 + ! + } + canvas c1 + iconcoords {336.0 156.0} + labelcoords {336.0 188.0} + interface-peer {eth0 n4} +} + +node n14 { + type router + model host + network-config { + hostname n14 + ! + interface eth0 + ip address 10.0.1.10/24 + ipv6 address a:1::10/64 + ! + } + canvas c1 + iconcoords {348.0 228.0} + labelcoords {348.0 260.0} + interface-peer {eth0 n4} +} + +node n15 { + type router + model router + network-config { + hostname n15 + ! + interface eth2 + ip address 10.0.6.1/24 + ipv6 address a:6::1/64 + ! + interface eth1 + ip address 10.0.5.2/24 + ipv6 address a:5::2/64 + ! + interface eth0 + ip address 10.0.4.2/24 + ipv6 address a:4::2/64 + ! + } + canvas c1 + iconcoords {384.0 312.0} + labelcoords {384.0 340.0} + interface-peer {eth0 n2} + interface-peer {eth1 n1} + interface-peer {eth2 n5} +} + +link l1 { + nodes {n10 n8} + bandwidth 11000000 + delay 25000 +} + +link l0 { + nodes {n10 n7} + bandwidth 11000000 + delay 25000 +} + +link l2 { + nodes {n10 n5} + bandwidth 11000000 + delay 25000 +} + +link l3 { + nodes {n10 n6} + bandwidth 11000000 + delay 25000 +} + +link l4 { + nodes {n10 n9} + bandwidth 11000000 + delay 25000 +} + +link l5 { + nodes {n3 n4} + bandwidth 100000000 +} + +link l6 { + delay 25000 + nodes {n3 n2} + bandwidth 100000000 +} + +link l7 { + nodes {n2 n1} + bandwidth 100000000 +} + +link l8 { + delay 50000 + nodes {n2 n15} + bandwidth 100000000 +} + +link l9 { + nodes {n1 n15} + bandwidth 100000000 +} + +link l10 { + nodes {n15 n5} + bandwidth 100000000 +} + +link l11 { + nodes {n4 n11} + bandwidth 100000000 +} + +link l12 { + nodes {n4 n12} + bandwidth 100000000 +} + +link l13 { + nodes {n4 n13} + bandwidth 100000000 +} + +link l14 { + nodes {n4 n14} + bandwidth 100000000 +} + +annotation a0 { + iconcoords {612.0 492.0} + type text + label {wireless network} + labelcolor black + fontfamily {Arial} + fontsize {12} + effects {bold} + canvas c1 +} + +annotation a1 { + iconcoords {142.0 112.0 393.0 291.0} + type rectangle + label {} + labelcolor black + fontfamily {Arial} + fontsize {12} + color #ebebde + width 1 + border #ffffff + rad 25 + canvas c1 +} + +annotation a2 { + iconcoords {492.0 384.0} + type text + label {gateway} + labelcolor black + fontfamily {Arial} + fontsize {12} + effects {bold} + canvas c1 +} + +canvas c1 { + name {Canvas1} + wallpaper-style {upperleft} + wallpaper {sample1-bg.gif} +} + +option global { + interface_names no + ip_addresses yes + ipv6_addresses no + node_labels yes + link_labels yes + ipsec_configs yes + exec_errors no + show_api no + background_images no + annotations yes + grid no + traffic_start 0 +} + +option session { +} + diff --git a/gui/configs/sample1.scen b/gui/configs/sample1.scen new file mode 100644 index 00000000..c2fc5a44 --- /dev/null +++ b/gui/configs/sample1.scen @@ -0,0 +1,28 @@ +# +# nodes: 4, max time: 27.000000, max x: 600.00, max y: 600.00 +# nominal range: 300.00 link bw: 54000000.00 +# pause: 30.00, min speed 1.50 max speed: 4.50 + +$node_(6) set X_ 780.0 +$node_(6) set Y_ 228.0 +$node_(6) set Z_ 0.00 +$node_(7) set X_ 816.0 +$node_(7) set Y_ 348.0 +$node_(7) set Z_ 0.00 +$node_(8) set X_ 672.0 +$node_(8) set Y_ 420.0 +$node_(8) set Z_ 0.00 +$node_(9) set X_ 672.0 +$node_(9) set Y_ 96.0 +$node_(9) set Z_ 0.00 +$ns_ at 1.00 "$node_(6) setdest 500.0 178.0 25.0" +$ns_ at 2.00 "$node_(7) setdest 400.0 288.0 15.0" +$ns_ at 1.00 "$node_(8) setdest 590.0 520.0 17.0" +$ns_ at 3.00 "$node_(9) setdest 720.0 300.0 20.0" +$ns_ at 8.00 "$node_(7) setdest 600.0 350.0 10.0" +$ns_ at 9.00 "$node_(8) setdest 730.0 300.0 15.0" +$ns_ at 10.00 "$node_(6) setdest 600.0 108.0 10.0" +$ns_ at 16.00 "$node_(9) setdest 672.0 96.0 20.0" +$ns_ at 17.00 "$node_(7) setdest 816.0 348.0 20.0" +$ns_ at 18.00 "$node_(6) setdest 780.0 228.0 25.0" +$ns_ at 22.00 "$node_(8) setdest 672.0 420.0 20.0" diff --git a/gui/configs/sample10-kitchen-sink.imn b/gui/configs/sample10-kitchen-sink.imn new file mode 100644 index 00000000..a9e21a4a --- /dev/null +++ b/gui/configs/sample10-kitchen-sink.imn @@ -0,0 +1,848 @@ +comments { +Kitchen Sink +============ + +Contains every type of node available in CORE, except for the Xen and physical (prouter) +machine types, and nodes distributed on other emulation servers. + +To get the RJ45 node to work, a test0 interface should first be created like this: + sudo ip link add name test0 type veth peer name test0.1 + +wlan15 uses the basic range model, while wlan24 uses EMANE 802.11 + +gateway nodes n11 and n20 are customized to redistribute routing between OSPFv2 and +OSPFv3 MDR (the MANET networks) +} + +node n1 { + type router + model router + network-config { + hostname n1 + ! + interface eth2 + ip address 10.0.11.2/24 + ipv6 address 2001:11::2/64 + ! + interface eth1 + ip address 10.0.3.1/24 + ipv6 address 2001:3::1/64 + ! + interface eth0 + ip address 10.0.2.1/24 + ipv6 address 2001:2::1/64 + ! + } + canvas c1 + iconcoords {288.0 264.0} + labelcoords {288.0 292.0} + interface-peer {eth0 n3} + interface-peer {eth1 n2} + interface-peer {eth2 n20} + custom-image $CORE_DATA_DIR/icons/normal/router_red.gif +} + +node n2 { + type router + model router + network-config { + hostname n2 + ! + interface eth2 + ip address 10.0.5.2/24 + ipv6 address 2001:5::2/64 + ! + interface eth1 + ip address 10.0.3.2/24 + ipv6 address 2001:3::2/64 + ! + interface eth0 + ip address 10.0.0.1/24 + ipv6 address 2001:0::1/64 + ! + } + canvas c1 + iconcoords {576.0 264.0} + labelcoords {576.0 292.0} + interface-peer {eth0 n5} + interface-peer {eth1 n1} + interface-peer {eth2 n19} +} + +node n3 { + type router + model router + network-config { + hostname n3 + ! + interface eth3 + ip address 10.0.9.1/24 + ipv6 address 2001:9::1/64 + ! + interface eth2 + ip address 10.0.4.1/24 + ipv6 address 2001:4::1/64 + ! + interface eth1 + ip address 10.0.2.2/24 + ipv6 address 2001:2::2/64 + ! + interface eth0 + ip address 10.0.1.1/24 + ipv6 address 2001:1::1/64 + ! + } + canvas c1 + iconcoords {288.0 408.0} + labelcoords {288.0 436.0} + interface-peer {eth0 n4} + interface-peer {eth1 n1} + interface-peer {eth2 n19} + interface-peer {eth3 n11} + custom-image $CORE_DATA_DIR/icons/normal/router_red.gif +} + +node n4 { + type hub + network-config { + hostname n4 + ! + } + canvas c1 + iconcoords {216.0 528.0} + labelcoords {216.0 552.0} + interface-peer {e0 n3} + interface-peer {e1 n16} + interface-peer {e2 n17} + interface-peer {e3 n18} +} + +node n5 { + type lanswitch + network-config { + hostname n5 + ! + } + canvas c1 + iconcoords {672.0 264.0} + labelcoords {672.0 288.0} + interface-peer {e0 n2} + interface-peer {e1 n6} + interface-peer {e2 n7} + interface-peer {e3 n8} + interface-peer {e4 n25} +} + +node n6 { + type router + model host + network-config { + hostname n6 + ! + interface eth0 + ip address 10.0.0.10/24 + ipv6 address 2001:0::10/64 + ! + } + canvas c1 + iconcoords {792.0 216.0} + labelcoords {792.0 248.0} + interface-peer {eth0 n5} +} + +node n7 { + type router + model host + network-config { + hostname n7 + ! + interface eth0 + ip address 10.0.0.11/24 + ipv6 address 2001:0::11/64 + ! + } + canvas c1 + iconcoords {792.0 288.0} + labelcoords {792.0 320.0} + interface-peer {eth0 n5} +} + +node n8 { + type router + model host + network-config { + hostname n8 + ! + interface eth0 + ip address 10.0.0.12/24 + ipv6 address 2001:0::12/64 + ! + } + canvas c1 + iconcoords {792.0 360.0} + labelcoords {792.0 392.0} + interface-peer {eth0 n5} +} + +node n9 { + type rj45 + network-config { + hostname test0 + ! + } + canvas c1 + iconcoords {576.0 528.0} + labelcoords {576.0 556.0} + interface-peer {0 n19} +} + +node n10 { + type tunnel + network-config { + hostname 10.250.0.91 + ! + interface e0 + ip address 10.250.0.91/24 + ! + tunnel-type + UDP + ! + tunnel-tap + off + ! + tunnel-key + 1 + ! + } + canvas c1 + iconcoords {672.0 504.0} + labelcoords {672.0 536.0} + interface-peer {e0 n19} +} + +node n11 { + type router + model mdr + network-config { + hostname n11 + ! + interface eth1 + ip address 10.0.9.2/24 + ipv6 address 2001:9::2/64 + ! + interface eth0 + ip address 10.0.8.1/32 + ipv6 address 2001:8::1/128 + ! + } + canvas c1 + iconcoords {288.0 624.0} + labelcoords {288.0 656.0} + interface-peer {eth0 n15} + interface-peer {eth1 n3} + custom-config { + custom-config-id service:zebra + custom-command zebra + config { + files=('/usr/local/etc/quagga/Quagga.conf', 'quaggaboot.sh', '/usr/local/etc/quagga/vtysh.conf', ) + } + } + custom-config { + custom-config-id service:zebra:/usr/local/etc/quagga/Quagga.conf + custom-command /usr/local/etc/quagga/Quagga.conf + config { + interface eth0 + ip address 10.0.8.1/32 + ipv6 address 2001:8::1/128 + ipv6 ospf6 instance-id 65 + ipv6 ospf6 hello-interval 2 + ipv6 ospf6 dead-interval 6 + ipv6 ospf6 retransmit-interval 5 + ipv6 ospf6 network manet-designated-router + ipv6 ospf6 diffhellos + ipv6 ospf6 adjacencyconnectivity uniconnected + ipv6 ospf6 lsafullness mincostlsa + ! + interface eth1 + ip address 10.0.9.2/24 + ipv6 address 2001:9::2/64 + ! + router ospf + router-id 10.0.8.1 + network 10.0.8.1/32 area 0 + network 10.0.9.0/24 area 0 + redistribute connected metric-type 1 + redistribute ospf6 metric-type 1 + ! + router ospf6 + router-id 10.0.8.1 + interface eth0 area 0.0.0.0 + redistribute connected + redistribute ospf + ! + + } + } + services {zebra OSPFv2 OSPFv3MDR vtysh IPForward} +} + +node n12 { + type router + model mdr + network-config { + hostname n12 + ! + interface eth0 + ip address 10.0.8.2/32 + ipv6 address 2001:8::2/128 + ! + } + canvas c1 + iconcoords {504.0 792.0} + labelcoords {504.0 824.0} + interface-peer {eth0 n15} +} + +node n13 { + type router + model mdr + network-config { + hostname n13 + ! + interface eth0 + ip address 10.0.8.3/32 + ipv6 address 2001:8::3/128 + ! + } + canvas c1 + iconcoords {552.0 672.0} + labelcoords {552.0 704.0} + interface-peer {eth0 n15} +} + +node n14 { + type router + model mdr + network-config { + hostname n14 + ! + interface eth0 + ip address 10.0.8.4/32 + ipv6 address 2001:8::4/128 + ! + } + canvas c1 + iconcoords {720.0 792.0} + labelcoords {720.0 824.0} + interface-peer {eth0 n15} +} + +node n15 { + type wlan + network-config { + hostname wlan15 + ! + interface wireless + ip address 10.0.8.0/32 + ipv6 address 2001:8::0/128 + ! + mobmodel + coreapi + basic_range + ! + } + custom-config { + custom-config-id basic_range + custom-command {3 3 9 9 9} + config { + range=275 + bandwidth=54000000 + jitter=0 + delay=20000 + error=0 + } + } + canvas c1 + iconcoords {120.0 768.0} + labelcoords {120.0 800.0} + interface-peer {e0 n11} + interface-peer {e1 n12} + interface-peer {e2 n13} + interface-peer {e3 n14} +} + +node n16 { + type router + model PC + network-config { + hostname n16 + ! + interface eth0 + ip address 10.0.1.20/24 + ipv6 address 2001:1::20/64 + ! + } + canvas c1 + iconcoords {96.0 456.0} + labelcoords {96.0 488.0} + interface-peer {eth0 n4} +} + +node n17 { + type router + model PC + network-config { + hostname n17 + ! + interface eth0 + ip address 10.0.1.21/24 + ipv6 address 2001:1::21/64 + ! + } + canvas c1 + iconcoords {96.0 600.0} + labelcoords {96.0 632.0} + interface-peer {eth0 n4} +} + +node n18 { + type router + model PC + network-config { + hostname n18 + ! + interface eth0 + ip address 10.0.1.22/24 + ipv6 address 2001:1::22/64 + ! + } + canvas c1 + iconcoords {96.0 528.0} + labelcoords {96.0 560.0} + interface-peer {eth0 n4} +} + +node n19 { + type router + model router + network-config { + hostname n19 + ! + interface eth3 + ip address 10.0.7.1/24 + ipv6 address 2001:7::1/64 + ! + interface eth2 + ip address 10.0.6.1/24 + ipv6 address 2001:6::1/64 + ! + interface eth1 + ip address 10.0.5.1/24 + ipv6 address 2001:5::1/64 + ! + interface eth0 + ip address 10.0.4.2/24 + ipv6 address 2001:4::2/64 + ! + } + canvas c1 + iconcoords {576.0 408.0} + labelcoords {576.0 436.0} + interface-peer {eth0 n3} + interface-peer {eth1 n2} + interface-peer {eth2 n9} + interface-peer {eth3 n10} +} + +node n20 { + type router + model mdr + network-config { + hostname n20 + ! + interface eth1 + ip address 10.0.11.1/24 + ipv6 address 2001:11::1/64 + ! + interface eth0 + ip address 10.0.10.1/32 + ipv6 address 2001:10::1/128 + ! + } + canvas c1 + iconcoords {288.0 168.0} + labelcoords {288.0 200.0} + interface-peer {eth0 n24} + interface-peer {eth1 n1} + custom-config { + custom-config-id service:zebra + custom-command zebra + config { + files=('/usr/local/etc/quagga/Quagga.conf', 'quaggaboot.sh', '/usr/local/etc/quagga/vtysh.conf', ) + } + } + custom-config { + custom-config-id service:zebra:/usr/local/etc/quagga/Quagga.conf + custom-command /usr/local/etc/quagga/Quagga.conf + config { + interface eth0 + ip address 10.0.10.1/32 + ipv6 address 2001:10::1/128 + ipv6 ospf6 instance-id 65 + ipv6 ospf6 hello-interval 2 + ipv6 ospf6 dead-interval 6 + ipv6 ospf6 retransmit-interval 5 + ipv6 ospf6 network manet-designated-router + ipv6 ospf6 diffhellos + ipv6 ospf6 adjacencyconnectivity uniconnected + ipv6 ospf6 lsafullness mincostlsa + ! + interface eth1 + ip address 10.0.11.1/24 + ipv6 address 2001:11::1/64 + ! + router ospf + router-id 10.0.10.1 + network 10.0.10.1/32 area 0 + network 10.0.11.0/24 area 0 + redistribute connected metric-type 1 + redistribute ospf6 metric-type 1 + ! + router ospf6 + router-id 10.0.10.1 + interface eth0 area 0.0.0.0 + redistribute connected + redistribute ospf + ! + + } + } + services {zebra OSPFv2 OSPFv3MDR vtysh IPForward} +} + +node n21 { + type router + model mdr + network-config { + hostname n21 + ! + interface eth0 + ip address 10.0.10.2/32 + ipv6 address 2001:10::2/128 + ! + } + canvas c1 + iconcoords {240.0 48.0} + labelcoords {240.0 80.0} + interface-peer {eth0 n24} +} + +node n22 { + type router + model mdr + network-config { + hostname n22 + ! + interface eth0 + ip address 10.0.10.3/32 + ipv6 address 2001:10::3/128 + ! + } + canvas c1 + iconcoords {504.0 48.0} + labelcoords {504.0 80.0} + interface-peer {eth0 n24} +} + +node n23 { + type router + model mdr + network-config { + hostname n23 + ! + interface eth0 + ip address 10.0.10.4/32 + ipv6 address 2001:10::4/128 + ! + } + canvas c1 + iconcoords {144.0 168.0} + labelcoords {144.0 200.0} + interface-peer {eth0 n24} +} + +node n24 { + type wlan + network-config { + hostname wlan24 + ! + interface wireless + ip address 10.0.10.0/32 + ipv6 address 2001:10::0/128 + ! + mobmodel + coreapi + emane_ieee80211abg + ! + } + custom-config { + custom-config-id basic_range + custom-command {3 3 9 9 9} + config { + range=275 + bandwidth=54000000 + jitter=0 + delay=20000 + error=0 + } + } + canvas c1 + iconcoords {48.0 72.0} + labelcoords {48.0 104.0} + interface-peer {e0 n20} + interface-peer {e1 n21} + interface-peer {e2 n22} + interface-peer {e3 n23} +} + +node n25 { + type lanswitch + network-config { + hostname n25 + ! + } + canvas c1 + iconcoords {624.0 192.0} + labelcoords {624.0 216.0} + interface-peer {e0 n5} + interface-peer {e1 n26} +} + +node n26 { + type router + model PC + network-config { + hostname n26 + ! + interface eth0 + ip address 10.0.0.20/24 + ipv6 address 2001:0::20/64 + ! + } + canvas c1 + iconcoords {720.0 144.0} + labelcoords {720.0 176.0} + interface-peer {eth0 n25} +} + +link l1 { + nodes {n2 n5} + bandwidth 0 +} + +link l2 { + delay 8000 + nodes {n3 n4} + bandwidth 1024000 +} + +link l3 { + nodes {n1 n3} + bandwidth 0 +} + +link l4 { + nodes {n1 n2} + bandwidth 0 +} + +link l5 { + nodes {n5 n6} + bandwidth 0 +} + +link l6 { + nodes {n5 n7} + bandwidth 0 +} + +link l7 { + nodes {n5 n8} + bandwidth 0 +} + +link l8 { + nodes {n3 n19} + bandwidth 0 +} + +link l9 { + nodes {n19 n2} + bandwidth 0 +} + +link l10 { + nodes {n4 n16} + bandwidth 0 +} + +link l11 { + nodes {n4 n17} + bandwidth 0 +} + +link l12 { + nodes {n4 n18} + bandwidth 0 +} + +link l13 { + nodes {n19 n9} +} + +link l14 { + nodes {n19 n10} +} + +link l15 { + nodes {n15 n11} +} + +link l16 { + nodes {n15 n12} +} + +link l17 { + nodes {n15 n13} +} + +link l18 { + nodes {n15 n14} +} + +link l19 { + nodes {n3 n11} + bandwidth 0 +} + +link l20 { + nodes {n24 n20} +} + +link l21 { + nodes {n24 n21} +} + +link l22 { + nodes {n24 n22} +} + +link l23 { + nodes {n24 n23} +} + +link l24 { + nodes {n20 n1} + bandwidth 0 +} + +link l25 { + delay 5000 + nodes {n25 n5} + bandwidth 0 +} + +link l26 { + nodes {n25 n26} + bandwidth 0 +} + +annotation a1 { + iconcoords {45.0 431.0 220.0 642.0} + type rectangle + label {} + labelcolor black + fontfamily {Arial} + fontsize {12} + color #e6f4f4 + width 0 + border black + rad 0 + canvas c1 +} + +annotation a2 { + iconcoords {642 189 821 404} + type rectangle + label {} + labelcolor black + fontfamily {Arial} + fontsize {12} + color #e6f4f4 + width 0 + border black + rad 0 + canvas c1 +} + +annotation a3 { + iconcoords {200 218 655 463} + type rectangle + label {} + labelcolor black + fontfamily {Arial} + fontsize {12} + color #f4f1f0 + width 0 + border black + rad 0 + canvas c1 +} + +annotation a4 { + iconcoords {600.0 48.0} + type text + label {Kitchen Sink Scenario} + labelcolor black + fontfamily {FreeSans} + fontsize {16} + effects {bold} + canvas c1 +} + +annotation a5 { + iconcoords {648.0 72.0} + type text + label {see scenario comments} + labelcolor black + fontfamily {FreeSans} + fontsize {12} + canvas c1 +} + +canvas c1 { + name {Canvas1} + refpt {0 0 47.5791667 -122.132322 150} + scale {150.0} + size {1000 1000} +} + +option global { + interface_names no + ip_addresses yes + ipv6_addresses yes + node_labels yes + link_labels yes + ipsec_configs yes + exec_errors yes + show_api no + background_images no + annotations yes + grid yes + traffic_start 0 +} + +option session { + enablesdt=1 +} + diff --git a/gui/configs/sample2-ssh.imn b/gui/configs/sample2-ssh.imn new file mode 100644 index 00000000..d79a5f3b --- /dev/null +++ b/gui/configs/sample2-ssh.imn @@ -0,0 +1,248 @@ +node n8 { + type router + model router + network-config { + hostname n8 + ! + interface eth3 + ip address 10.0.6.2/24 + ipv6 address a:6::2/64 + ! + interface eth2 + ip address 10.0.3.1/24 + ipv6 address a:3::1/64 + ! + interface eth1 + ip address 10.0.1.1/24 + ipv6 address a:1::1/64 + ! + interface eth0 + ip address 10.0.0.1/24 + ipv6 address a:0::1/64 + ! + } + canvas c1 + iconcoords {264.0 168.0} + labelcoords {264.0 196.0} + interface-peer {eth0 n1} + interface-peer {eth1 n4} + interface-peer {eth2 n7} + interface-peer {eth3 n6} +} + +node n1 { + type router + model router + network-config { + hostname n1 + ! + interface eth3 + ip address 10.0.5.1/24 + ipv6 address a:5::1/64 + ! + interface eth2 + ip address 10.0.4.2/24 + ipv6 address a:4::2/64 + ! + interface eth1 + ip address 10.0.2.1/24 + ipv6 address a:2::1/64 + ! + interface eth0 + ip address 10.0.0.2/24 + ipv6 address a:0::2/64 + ! + } + canvas c1 + iconcoords {528.0 312.0} + labelcoords {528.0 340.0} + interface-peer {eth0 n8} + interface-peer {eth1 n5} + interface-peer {eth2 n7} + interface-peer {eth3 n6} +} + +node n2 { + type router + model host + cpu {{min 0} {max 100} {weight 1}} + network-config { + hostname sshserver + ! + interface eth0 + ip address 10.0.2.10/24 + ipv6 address a:2::10/64 + ! + } + canvas c1 + iconcoords {732.0 84.0} + labelcoords {671.0 95.0} + interface-peer {eth0 n5} +} + +node n3 { + type router + model PC + cpu {{min 0} {max 100} {weight 1}} + network-config { + hostname sshclient + ! + interface eth0 + ip address 10.0.1.20/24 + ipv6 address a:1::20/64 + ! + } + canvas c1 + iconcoords {72.0 252.0} + labelcoords {86.0 295.0} + interface-peer {eth0 n4} +} + +node n4 { + type lanswitch + network-config { + hostname n4 + ! + } + canvas c1 + iconcoords {120.0 120.0} + labelcoords {120.0 148.0} + interface-peer {e0 n3} + interface-peer {e1 n8} +} + +node n5 { + type lanswitch + network-config { + hostname n5 + ! + } + canvas c1 + iconcoords {708.0 204.0} + labelcoords {708.0 232.0} + interface-peer {e0 n1} + interface-peer {e1 n2} +} + +node n6 { + type router + model router + network-config { + hostname n6 + ! + interface eth1 + ip address 10.0.6.1/24 + ipv6 address a:6::1/64 + ! + interface eth0 + ip address 10.0.5.2/24 + ipv6 address a:5::2/64 + ! + } + canvas c1 + iconcoords {480.0 132.0} + labelcoords {480.0 160.0} + interface-peer {eth0 n1} + interface-peer {eth1 n8} +} + +node n7 { + type router + model router + network-config { + hostname n7 + ! + interface eth1 + ip address 10.0.4.1/24 + ipv6 address a:4::1/64 + ! + interface eth0 + ip address 10.0.3.2/24 + ipv6 address a:3::2/64 + ! + } + canvas c1 + iconcoords {312.0 348.0} + labelcoords {312.0 376.0} + interface-peer {eth0 n8} + interface-peer {eth1 n1} +} + +link l0 { + nodes {n8 n1} + bandwidth 0 +} + +link l1 { + nodes {n4 n3} + bandwidth 0 +} + +link l2 { + nodes {n4 n8} + bandwidth 0 +} + +link l3 { + nodes {n1 n5} + bandwidth 0 +} + +link l4 { + nodes {n5 n2} + bandwidth 0 +} + +link l5 { + nodes {n8 n7} + bandwidth 0 +} + +link l6 { + nodes {n7 n1} + bandwidth 0 +} + +link l7 { + nodes {n1 n6} + bandwidth 0 +} + +link l8 { + nodes {n6 n8} + bandwidth 0 +} + +annotation a0 { + iconcoords {202 75 612 405} + type rectangle + label {provider network} + labelcolor black + fontfamily {Arial} + fontsize 10 + color #f8f8d6 + width 0 + border black + rad 25 + canvas c1 +} + +canvas c1 { + name {Canvas1} +} + +option global { + interface_names no + ip_addresses yes + ipv6_addresses yes + node_labels yes + link_labels yes + ipsec_configs yes + remote_exec no + exec_errors yes + show_api no + background_images no + annotations yes + grid yes +} + diff --git a/gui/configs/sample3-bgp.imn b/gui/configs/sample3-bgp.imn new file mode 100644 index 00000000..f782585e --- /dev/null +++ b/gui/configs/sample3-bgp.imn @@ -0,0 +1,754 @@ +node n1 { + type router + model router + network-config { + hostname router1 + ! + interface eth2 + ip address 10.0.8.2/24 + ! + interface eth1 + ip address 10.0.6.1/24 + ! + interface eth0 + ip address 10.0.5.2/24 + ! + } + iconcoords {168.0 264.0} + labelcoords {168.0 288.0} + interface-peer {eth0 n16} + interface-peer {eth1 n2} + interface-peer {eth2 n3} + canvas c1 + services {zebra BGP vtysh IPForward} + custom-config { + custom-config-id service:zebra:/usr/local/etc/quagga/Quagga.conf + custom-command /usr/local/etc/quagga/Quagga.conf + config { + interface eth2 + ip address 10.0.8.2/24 + ! + interface eth1 + ip address 10.0.6.1/24 + ! + interface eth0 + ip address 10.0.5.2/24 + ! + router bgp 105 + bgp router-id 10.0.8.2 + redistribute connected + neighbor 10.0.6.2 remote-as 105 + neighbor 10.0.6.2 next-hop-self + neighbor 10.0.5.1 remote-as 105 + neighbor 10.0.5.1 next-hop-self + neighbor 10.0.8.1 remote-as 2901 + neighbor 10.0.8.1 next-hop-self + ! + } + } + custom-config { + custom-config-id service:zebra + custom-command zebra + config { + ('/usr/local/etc/quagga', '/var/run/quagga') + ('/usr/local/etc/quagga/Quagga.conf', 'quaggaboot.sh') + 35 + ('sh quaggaboot.sh zebra',) + ('killall zebra',) + + } + } +} + +node n2 { + type router + model router + network-config { + hostname router2 + ! + interface eth2 + ip address 10.0.9.1/24 + ! + interface eth1 + ip address 10.0.7.1/24 + ! + interface eth0 + ip address 10.0.6.2/24 + ! + } + iconcoords {312.0 168.0} + labelcoords {312.0 192.0} + interface-peer {eth0 n1} + interface-peer {eth1 n16} + interface-peer {eth2 n6} + canvas c1 + services {zebra BGP vtysh IPForward} + custom-config { + custom-config-id service:zebra:/usr/local/etc/quagga/Quagga.conf + custom-command /usr/local/etc/quagga/Quagga.conf + config { + interface eth2 + ip address 10.0.9.1/24 + ! + interface eth1 + ip address 10.0.7.1/24 + ! + interface eth0 + ip address 10.0.6.2/24 + ! + router bgp 105 + bgp router-id 10.0.8.2 + redistribute connected + neighbor 10.0.7.2 remote-as 105 + neighbor 10.0.7.2 next-hop-self + neighbor 10.0.6.1 remote-as 105 + neighbor 10.0.6.1 next-hop-self + neighbor 10.0.9.2 remote-as 2902 + neighbor 10.0.9.2 next-hop-self + ! + } + } + custom-config { + custom-config-id service:zebra + custom-command zebra + config { + ('/usr/local/etc/quagga', '/var/run/quagga') + ('/usr/local/etc/quagga/Quagga.conf', 'quaggaboot.sh') + 35 + ('sh quaggaboot.sh zebra',) + ('killall zebra',) + + } + } +} + +node n3 { + type router + model router + network-config { + hostname router3 + ! + interface eth1 + ip address 10.0.8.1/24 + ! + interface eth0 + ip address 10.0.2.1/24 + ! + } + iconcoords {96.0 408.0} + labelcoords {96.0 432.0} + interface-peer {eth0 n4} + interface-peer {eth1 n1} + canvas c1 + services {zebra BGP vtysh IPForward} + custom-config { + custom-config-id service:zebra:/usr/local/etc/quagga/Quagga.conf + custom-command /usr/local/etc/quagga/Quagga.conf + config { + interface eth1 + ip address 10.0.8.1/24 + ! + interface eth0 + ip address 10.0.2.1/24 + ! + router bgp 2901 + bgp router-id 10.0.2.1 + redistribute connected + neighbor 10.0.2.2 remote-as 2901 + neighbor 10.0.2.2 next-hop-self + neighbor 10.0.8.2 remote-as 105 + neighbor 10.0.8.2 next-hop-self + ! + } + } + custom-config { + custom-config-id service:zebra + custom-command zebra + config { + ('/usr/local/etc/quagga', '/var/run/quagga') + ('/usr/local/etc/quagga/Quagga.conf', 'quaggaboot.sh') + 35 + ('sh quaggaboot.sh zebra',) + ('killall zebra',) + + } + } +} + +node n4 { + type router + model router + network-config { + hostname router4 + ! + interface eth0 + ip address 10.0.2.2/24 + ! + interface eth1 + ip address 10.0.10.1/24 + ! + interface eth2 + ip address 10.0.0.1/24 + ! + } + iconcoords {240.0 432.0} + labelcoords {240.0 456.0} + interface-peer {eth2 n9} + interface-peer {eth0 n3} + interface-peer {eth1 n7} + canvas c1 + services {zebra BGP vtysh IPForward} + custom-config { + custom-config-id service:zebra:/usr/local/etc/quagga/Quagga.conf + custom-command /usr/local/etc/quagga/Quagga.conf + config { + interface eth0 + ip address 10.0.2.2/24 + ! + interface eth1 + ip address 10.0.10.1/24 + ! + interface eth2 + ip address 10.0.0.1/24 + ! + router bgp 2901 + bgp router-id 10.0.10.1 + redistribute connected + neighbor 10.0.2.1 remote-as 2901 + neighbor 10.0.2.1 next-hop-self + neighbor 10.0.10.2 remote-as 2902 + neighbor 10.0.10.2 next-hop-self + network 10.0.0.0 mask 255.255.255.0 + ! + } + } + custom-config { + custom-config-id service:zebra + custom-command zebra + config { + ('/usr/local/etc/quagga', '/var/run/quagga') + ('/usr/local/etc/quagga/Quagga.conf', 'quaggaboot.sh') + 35 + ('sh quaggaboot.sh zebra',) + ('killall zebra',) + + } + } +} + +node n5 { + type router + model router + network-config { + hostname router5 + ! + interface eth1 + ip address 10.0.4.1/24 + ! + interface eth0 + ip address 10.0.3.2/24 + ! + interface eth2 + ip address 10.0.1.1/24 + ! + } + iconcoords {528.0 336.0} + labelcoords {528.0 360.0} + interface-peer {eth2 n8} + interface-peer {eth0 n7} + interface-peer {eth1 n6} + canvas c1 + services {zebra BGP vtysh IPForward} + custom-config { + custom-config-id service:zebra:/usr/local/etc/quagga/Quagga.conf + custom-command /usr/local/etc/quagga/Quagga.conf + config { + interface eth1 + ip address 10.0.4.1/24 + ! + interface eth0 + ip address 10.0.3.2/24 + ! + interface eth2 + ip address 10.0.1.1/24 + ! + router bgp 2902 + bgp router-id 10.0.4.1 + redistribute connected + neighbor 10.0.4.2 remote-as 2902 + neighbor 10.0.4.2 next-hop-self + neighbor 10.0.3.1 remote-as 2902 + neighbor 10.0.3.1 next-hop-self + network 10.0.1.0 mask 255.255.255.0 + ! + } + } + custom-config { + custom-config-id service:zebra + custom-command zebra + config { + ('/usr/local/etc/quagga', '/var/run/quagga') + ('/usr/local/etc/quagga/Quagga.conf', 'quaggaboot.sh') + 35 + ('sh quaggaboot.sh zebra',) + ('killall zebra',) + + } + } +} + +node n6 { + type router + model router + network-config { + hostname router6 + ! + interface eth1 + ip address 10.0.9.2/24 + ! + interface eth0 + ip address 10.0.4.2/24 + ! + router bgp 2902 + bgp router-id 10.0.9.2 + redistribute connected + neighbor 10.0.4.1 remote-as 2902 + neighbor 10.0.4.1 next-hop-self + neighbor 10.0.9.1 remote-as 105 + neighbor 10.0.9.1 next-hop-self + ! + } + iconcoords {624.0 240.0} + labelcoords {624.0 264.0} + interface-peer {eth0 n5} + interface-peer {eth1 n2} + canvas c1 + services {zebra BGP vtysh IPForward} + custom-config { + custom-config-id service:zebra:/usr/local/etc/quagga/Quagga.conf + custom-command /usr/local/etc/quagga/Quagga.conf + config { + interface eth1 + ip address 10.0.9.2/24 + ! + interface eth0 + ip address 10.0.4.2/24 + ! + router bgp 2902 + bgp router-id 10.0.9.2 + redistribute connected + neighbor 10.0.4.1 remote-as 2902 + neighbor 10.0.4.1 next-hop-self + neighbor 10.0.9.1 remote-as 105 + neighbor 10.0.9.1 next-hop-self + ! + } + } + custom-config { + custom-config-id service:zebra + custom-command zebra + config { + ('/usr/local/etc/quagga', '/var/run/quagga') + ('/usr/local/etc/quagga/Quagga.conf', 'quaggaboot.sh') + 35 + ('sh quaggaboot.sh zebra',) + ('killall zebra',) + + } + } +} + +node n7 { + type router + model router + network-config { + hostname router7 + ! + interface eth1 + ip address 10.0.10.2/24 + ! + interface eth0 + ip address 10.0.3.1/24 + ! + } + iconcoords {528.0 456.0} + labelcoords {528.0 480.0} + interface-peer {eth0 n5} + interface-peer {eth1 n4} + canvas c1 + services {zebra BGP vtysh IPForward} + custom-config { + custom-config-id service:zebra:/usr/local/etc/quagga/Quagga.conf + custom-command /usr/local/etc/quagga/Quagga.conf + config { + interface eth1 + ip address 10.0.10.2/24 + ! + interface eth0 + ip address 10.0.3.1/24 + ! + router bgp 2902 + bgp router-id 10.0.3.1 + redistribute connected + neighbor 10.0.3.2 remote-as 2902 + neighbor 10.0.3.2 next-hop-self + neighbor 10.0.10.1 remote-as 2901 + neighbor 10.0.10.1 next-hop-self + ! + } + } + custom-config { + custom-config-id service:zebra + custom-command zebra + config { + ('/usr/local/etc/quagga', '/var/run/quagga') + ('/usr/local/etc/quagga/Quagga.conf', 'quaggaboot.sh') + 35 + ('sh quaggaboot.sh zebra',) + ('killall zebra',) + + } + } +} + +node n8 { + type lanswitch + network-config { + hostname lanswitch8 + ! + } + iconcoords {672.0 432.0} + labelcoords {672.0 456.0} + interface-peer {e0 n5} + interface-peer {e1 n10} + interface-peer {e2 n11} + canvas c1 +} + +node n9 { + type hub + network-config { + hostname hub9 + ! + } + iconcoords {120.0 504.0} + labelcoords {120.0 528.0} + interface-peer {e0 n4} + interface-peer {e1 n15} + interface-peer {e2 n14} + interface-peer {e3 n13} + interface-peer {e4 n12} + canvas c1 +} + +node n10 { + type router + model host + network-config { + hostname host10 + ! + interface eth0 + ip address 10.0.1.10/24 + ! + } + iconcoords {576.0 552.0} + labelcoords {576.0 584.0} + interface-peer {eth0 n8} + canvas c1 +} + +node n11 { + type router + model host + network-config { + hostname host11 + ! + interface eth0 + ip address 10.0.1.11/24 + ! + } + iconcoords {696.0 552.0} + labelcoords {696.0 584.0} + interface-peer {eth0 n8} + canvas c1 +} + +node n12 { + type router + model PC + network-config { + hostname pc12 + ! + interface eth0 + ip address 10.0.0.23/24 + ! + } + iconcoords {288.0 576.0} + labelcoords {288.0 608.0} + interface-peer {eth0 n9} + canvas c1 +} + +node n13 { + type router + model PC + network-config { + hostname pc13 + ! + interface eth0 + ip address 10.0.0.22/24 + ! + } + iconcoords {216.0 600.0} + labelcoords {216.0 632.0} + interface-peer {eth0 n9} + canvas c1 +} + +node n14 { + type router + model PC + network-config { + hostname pc14 + ! + interface eth0 + ip address 10.0.0.21/24 + ! + } + iconcoords {120.0 624.0} + labelcoords {120.0 656.0} + interface-peer {eth0 n9} + canvas c1 +} + +node n15 { + type router + model PC + network-config { + hostname pc15 + ! + interface eth0 + ip address 10.0.0.20/24 + ! + } + iconcoords {24.0 576.0} + labelcoords {24.0 608.0} + interface-peer {eth0 n9} + canvas c1 +} + +node n16 { + type router + model router + network-config { + hostname router0 + ! + interface eth0 + ip address 10.0.5.1/24 + ! + interface eth1 + ip address 10.0.7.2/24 + ! + } + iconcoords {120.0 120.0} + labelcoords {120.0 144.0} + interface-peer {eth0 n1} + interface-peer {eth1 n2} + canvas c1 + services {zebra BGP vtysh IPForward} + custom-config { + custom-config-id service:zebra:/usr/local/etc/quagga/Quagga.conf + custom-command /usr/local/etc/quagga/Quagga.conf + config { + interface eth0 + ip address 10.0.5.1/24 + ! + interface eth1 + ip address 10.0.7.2/24 + ! + router bgp 105 + bgp router-id 10.0.5.1 + redistribute connected + neighbor 10.0.7.1 remote-as 105 + neighbor 10.0.7.1 next-hop-self + neighbor 10.0.5.2 remote-as 105 + neighbor 10.0.5.2 next-hop-self + ! + } + } + custom-config { + custom-config-id service:zebra + custom-command zebra + config { + ('/usr/local/etc/quagga', '/var/run/quagga') + ('/usr/local/etc/quagga/Quagga.conf', 'quaggaboot.sh') + 35 + ('sh quaggaboot.sh zebra',) + ('killall zebra',) + + } + } +} + +link l0 { + nodes {n9 n4} + bandwidth 100000000 +} + +link l1 { + nodes {n8 n5} + bandwidth 100000000 +} + +link l2 { + nodes {n15 n9} + bandwidth 100000000 +} + +link l3 { + nodes {n14 n9} + bandwidth 100000000 +} + +link l4 { + nodes {n13 n9} + bandwidth 100000000 +} + +link l5 { + nodes {n12 n9} + bandwidth 100000000 +} + +link l6 { + nodes {n10 n8} + bandwidth 100000000 +} + +link l7 { + nodes {n11 n8} + bandwidth 100000000 +} + +link l8 { + nodes {n3 n4} + bandwidth 2048000 + delay 2500 +} + +link l9 { + nodes {n7 n5} + bandwidth 2048000 + delay 2500 +} + +link l10 { + nodes {n5 n6} + bandwidth 2048000 + delay 2500 +} + +link l11 { + nodes {n16 n1} + bandwidth 2048000 + delay 2500 +} + +link l12 { + nodes {n1 n2} + bandwidth 2048000 + delay 2500 +} + +link l13 { + nodes {n2 n16} + bandwidth 2048000 + delay 2500 +} + +link l14 { + nodes {n3 n1} + bandwidth 10000000 + delay 650000 +} + +link l15 { + nodes {n2 n6} + bandwidth 10000000 + delay 650000 +} + +link l16 { + nodes {n4 n7} + bandwidth 5000000 + delay 7500 +} + +annotation a0 { + iconcoords { 70 55 345 330 } + type oval + label {AS 105} + labelcolor #CFCFAC + fontfamily {Arial} + fontsize {12} + color #FFFFCC + width 0 + border black + canvas c1 +} + +annotation a1 { + iconcoords { 470 170 740 630 } + type oval + label {AS 2902} + labelcolor #C0C0CF + fontfamily {Arial} + fontsize {12} + color #F0F0FF + width 0 + border black + canvas c1 +} + +annotation a2 { + iconcoords { 0 355 320 660 } + type oval + label {AS 2901} + labelcolor #C0C0CF + fontfamily {Arial} + fontsize {12} + color #F0F0FF + width 0 + border black + canvas c1 +} + +annotation a10 { + type text + canvas c1 + iconcoords { 450 55 } + color #FFCCCC + fontsize {20} + label {Sample Topology 1} +} + +canvas c1 { + name {Canvas1} + size {900 706.0} +} + +option global { + interface_names yes + ip_addresses yes + ipv6_addresses yes + node_labels yes + link_labels yes + ipsec_configs yes + remote_exec no + exec_errors yes + show_api no + background_images no + annotations yes + grid yes +} + diff --git a/gui/configs/sample4-bg.jpg b/gui/configs/sample4-bg.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2b3d29dc60c3c76c56a31a1dde3c280ce1c23fea GIT binary patch literal 201030 zcmdSAby!@_)-JfaakoHlcXxMpcXxN!gplAC+#$HTI|O%k5*&hCAOs21`JHpV@6OzN zpJ!&C`Dcpm-EUW|lC@Xus`(27Ow7|008v>$)EM{bcJB(Q3!tH z4jCW>Z~nzL|H4;)vH3q32KpZvO?3$XfWZX-cw{p(cN+jep@ig{y(&1^FLrSGxPsy)6C4~zwp0wfz*U_ zENSQA>S*To&zJu%FHVkLko)yd!h~FrogJ0`+6D*m{$Xh*sQ~#TguMT_I{srbhztnd z%2`VTlJ^%gI-4u2{2L2fyGyG>Fr+R>)zwq{FNWMRkhQC)s^-7*-}&20C_^wZBtO~8 zL+U^6e6cr^|7$Z;NPdI6m%0`NQ$lc`hqs0l1Vd&NXy4yfQ|I3@KP{~!|D6v8TiZ#? z{YwUnY3C{Tx34!4o0B`ZDEu7*q%SZxpa3`mR)81a4!Jr5On@RF0Z9J)$^=*gW{?tZ zNSO!V031TF6QqUc*&lm1&y;(yAK{->S|q~8CzMN+^5BJ1^Eeg3OAQb?cwY10m{ zgy8?=n?d^cTlRN!9wv4n|J~<*B>uMd&uCaHS&vzt|1&0NYG`(7E@*LRA!uP}K7bS& z2O1w>g64$gg%*Prffj(2@d47nKBQ%v|BUf(`%Vqk-svuW{MxpV(!aW!|ECnt{zuyG zzrO!ZBLM8C&sxv^GXencwDN^K2LK@9;_ByaXJhM0Dh7FStr$t=oGq9cN!eN1SpOFP z|0exiv;H;MTlIg|A`s5Zf9JWd0RZ3MHRj`g=b2srK&w6EF~$7vJnB{eKw}4hu`~-W zckh3-2mSX020#SRATtyXAO3bFw?gS9B2)+ z13CuXfF8k6U}W$cFcFv<%mU^Gi-8runqVWa4cHCr5B>y>1E+%vz*XQDa6fngyae6` zpMvk804O9V94Im5(On4UxT&)&tRb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NR>D|+U;m=jqOcL&1b0D);jlB6FMwI5=*bu!MYo#>C}}m2 zUsgo(;XiB@j_R&rP-=XgV-h1Mru=yRxGlNyO`EGmCC~2YEzZl(shp<;`QN9kUV!&Q zFQOA1hL<@q+*`!1az~XF8>b$kv9EH1Ksr^FLQm?9X_0_R1gD9<>KtG1-1Gq|LfQtI7Pv-Pt`-ZJYy}ricd&f8V#^T3~ z5exOml~dso1bH9%I!Ic@!1calIOMvsEbx2=-V!-+)IL?n$`!d}y2yhH$4ME^nS>y%_Wr(xwf%4m$5=wAk&{U}-pe z6`e#J0P|xG;%H%_^r=v*O(@==kkFX1X|yd93ZCpa@?P2ty}YnR%zsKaogjh;h?+{d z^q1N-AKEqGOSjQRoGjoFWyJXE$w5#H+ya?4WEGjuiv~jviQJYdI!GeE>9seUuW=9* zN(k)*4F}3m6t)c7L9E4Z@jt5G=6_)OFQtlx86lL4oAsh!(5*T zD@Ep`c++{mD)f-u0&#R^ed_wix1tW3Y+TQsc`GnGg;c6p{q_%-D4=M?&q4oPZuTQ znBR_p8y2{`u&!YYk%#K zyxPKW1)Fyxr%}afSY7!Ig;06#TE0nS-wPBXv6@eFMP`m>%KHBRNtrEl=^s$so9E;K zXh7vT#&OfVbv_>PaKF^R>Eaor zzPNUcY}b9fR_9`u1FPq#C#_=S;I-9$AvK}dSnET6h&auC_x7I1RF4uZHZ z4|wY8X%uTw!6BRGLmKVcJ@Z}0pLrb8Vl*n)L(rlv>Gv&(1j43qjQSGnXEO9b39A_e)6GlcZDoa#;cl>zx zJ8z))qgT`8g(imA=7f3^&mWy~KL|A;;hk8;sV2>`jhXB#=+2&RY?J +without output it will stream to stdout. +} + +node n1 { + type router + model mdr + network-config { + hostname n1 + ! + interface eth0 + ip address 10.0.0.1/32 + ipv6 address a:0::1/128 + ! + } + iconcoords {186.2364578872143 137.89039496012572} + labelcoords {186.2364578872143 161.89039496012572} + canvas c1 + interface-peer {eth0 n11} + custom-image $CORE_DATA_DIR/icons/normal/router_green.gif + services {zebra OSPFv3MDR vtysh SMF IPForward UserDefined} + custom-config { + custom-config-id service:UserDefined:custom-post-config-commands.sh + custom-command custom-post-config-commands.sh + config { + route add default dev eth0 + route add -net 224.0.0.0 netmask 224.0.0.0 dev eth0 + } + } + custom-config { + custom-config-id service:UserDefined + custom-command UserDefined + config { + files=('custom-post-config-commands.sh', ) + startidx=35 + cmdup=('sh custom-post-config-commands.sh', ) + } + } +} + +node n2 { + type router + model mdr + network-config { + hostname n2 + ! + interface eth0 + ip address 10.0.0.2/32 + ipv6 address a:0::2/128 + ! + } + iconcoords {49.97421009111123 297.31725181124926} + labelcoords {49.97421009111123 321.31725181124926} + canvas c1 + interface-peer {eth0 n11} + custom-image $CORE_DATA_DIR/icons/normal/router_green.gif + services {zebra OSPFv3MDR vtysh SMF IPForward UserDefined} + custom-config { + custom-config-id service:UserDefined:custom-post-config-commands.sh + custom-command custom-post-config-commands.sh + config { + route add default dev eth0 + route add -net 224.0.0.0 netmask 224.0.0.0 dev eth0 + } + } + custom-config { + custom-config-id service:UserDefined + custom-command UserDefined + config { + files=('custom-post-config-commands.sh', ) + startidx=35 + cmdup=('sh custom-post-config-commands.sh', ) + } + } +} + +node n3 { + type router + model mdr + network-config { + hostname n3 + ! + interface eth0 + ip address 10.0.0.3/32 + ipv6 address a:0::3/128 + ! + } + iconcoords {176.46110847174833 328.14864514530865} + labelcoords {176.46110847174833 352.14864514530865} + canvas c1 + interface-peer {eth0 n11} + custom-image $CORE_DATA_DIR/icons/normal/router_green.gif + services {zebra OSPFv3MDR vtysh SMF IPForward UserDefined} + custom-config { + custom-config-id service:UserDefined:custom-post-config-commands.sh + custom-command custom-post-config-commands.sh + config { + route add default dev eth0 + route add -net 224.0.0.0 netmask 224.0.0.0 dev eth0 + } + } + custom-config { + custom-config-id service:UserDefined + custom-command UserDefined + config { + files=('custom-post-config-commands.sh', ) + startidx=35 + cmdup=('sh custom-post-config-commands.sh', ) + } + } +} + +node n4 { + type router + model mdr + network-config { + hostname n4 + ! + interface eth0 + ip address 10.0.0.4/32 + ipv6 address a:0::4/128 + ! + } + iconcoords {145.04062040794378 195.27962082775758} + labelcoords {145.04062040794378 219.27962082775758} + canvas c1 + interface-peer {eth0 n11} + custom-image $CORE_DATA_DIR/icons/normal/router_green.gif + services {zebra OSPFv3MDR vtysh SMF IPForward UserDefined} + custom-config { + custom-config-id service:UserDefined:custom-post-config-commands.sh + custom-command custom-post-config-commands.sh + config { + route add default dev eth0 + route add -net 224.0.0.0 netmask 224.0.0.0 dev eth0 + } + } + custom-config { + custom-config-id service:UserDefined + custom-command UserDefined + config { + files=('custom-post-config-commands.sh', ) + startidx=35 + cmdup=('sh custom-post-config-commands.sh', ) + } + } +} + +node n5 { + type router + model mdr + network-config { + hostname n5 + ! + interface eth0 + ip address 10.0.0.5/32 + ipv6 address a:0::5/128 + ! + } + iconcoords {137.9101266949479 257.51849231830334} + labelcoords {137.9101266949479 281.51849231830334} + canvas c1 + interface-peer {eth0 n11} + custom-image $CORE_DATA_DIR/icons/normal/router_green.gif + services {zebra OSPFv3MDR vtysh SMF IPForward UserDefined} + custom-config { + custom-config-id service:UserDefined:custom-post-config-commands.sh + custom-command custom-post-config-commands.sh + config { + route add default dev eth0 + route add -net 224.0.0.0 netmask 224.0.0.0 dev eth0 + } + } + custom-config { + custom-config-id service:UserDefined + custom-command UserDefined + config { + files=('custom-post-config-commands.sh', ) + startidx=35 + cmdup=('sh custom-post-config-commands.sh', ) + } + } +} + +node n6 { + type router + model mdr + network-config { + hostname n6 + ! + interface eth0 + ip address 10.0.0.6/32 + ipv6 address a:0::6/128 + ! + } + iconcoords {119.15850324229558 93.2505296351548} + labelcoords {119.15850324229558 117.2505296351548} + canvas c1 + interface-peer {eth0 n11} + custom-image $CORE_DATA_DIR/icons/normal/router_red.gif + services {zebra OSPFv3MDR vtysh SMF IPForward UserDefined} + custom-config { + custom-config-id service:UserDefined:custom-post-config-commands.sh + custom-command custom-post-config-commands.sh + config { + route add default dev eth0 + route add -net 224.0.0.0 netmask 224.0.0.0 dev eth0 + } + } + custom-config { + custom-config-id service:UserDefined + custom-command UserDefined + config { + files=('custom-post-config-commands.sh', ) + startidx=35 + cmdup=('sh custom-post-config-commands.sh', ) + } + } +} + +node n7 { + type router + model mdr + network-config { + hostname n7 + ! + interface eth0 + ip address 10.0.0.7/32 + ipv6 address a:0::7/128 + ! + } + iconcoords {79.1102256826161 50.123535235375556} + labelcoords {79.1102256826161 74.12353523537556} + canvas c1 + interface-peer {eth0 n11} + custom-image $CORE_DATA_DIR/icons/normal/router_red.gif + services {zebra OSPFv3MDR vtysh SMF IPForward UserDefined} + custom-config { + custom-config-id service:UserDefined:custom-post-config-commands.sh + custom-command custom-post-config-commands.sh + config { + route add default dev eth0 + route add -net 224.0.0.0 netmask 224.0.0.0 dev eth0 + } + } + custom-config { + custom-config-id service:UserDefined + custom-command UserDefined + config { + files=('custom-post-config-commands.sh', ) + startidx=35 + cmdup=('sh custom-post-config-commands.sh', ) + } + } +} + +node n8 { + type router + model mdr + network-config { + hostname n8 + ! + interface eth0 + ip address 10.0.0.8/32 + ipv6 address a:0::8/128 + ! + } + iconcoords {159.90259315202974 8.220638318379141} + labelcoords {159.90259315202974 32.220638318379144} + canvas c1 + interface-peer {eth0 n11} + custom-image $CORE_DATA_DIR/icons/normal/router_red.gif + services {zebra OSPFv3MDR vtysh SMF IPForward UserDefined} + custom-config { + custom-config-id service:UserDefined:custom-post-config-commands.sh + custom-command custom-post-config-commands.sh + config { + route add default dev eth0 + route add -net 224.0.0.0 netmask 224.0.0.0 dev eth0 + } + } + custom-config { + custom-config-id service:UserDefined + custom-command UserDefined + config { + files=('custom-post-config-commands.sh', ) + startidx=35 + cmdup=('sh custom-post-config-commands.sh', ) + } + } +} + +node n9 { + type router + model mdr + network-config { + hostname n9 + ! + interface eth0 + ip address 10.0.0.9/32 + ipv6 address a:0::9/128 + ! + } + iconcoords {150.43010603614704 165.70781621981482} + labelcoords {150.43010603614704 189.70781621981482} + canvas c1 + interface-peer {eth0 n11} + custom-image $CORE_DATA_DIR/icons/normal/router_red.gif + services {zebra OSPFv3MDR vtysh SMF IPForward UserDefined} + custom-config { + custom-config-id service:UserDefined:custom-post-config-commands.sh + custom-command custom-post-config-commands.sh + config { + route add default dev eth0 + route add -net 224.0.0.0 netmask 224.0.0.0 dev eth0 + } + } + custom-config { + custom-config-id service:UserDefined + custom-command UserDefined + config { + files=('custom-post-config-commands.sh', ) + startidx=35 + cmdup=('sh custom-post-config-commands.sh', ) + } + } +} + +node n10 { + type router + model mdr + network-config { + hostname n10 + ! + interface eth0 + ip address 10.0.0.10/32 + ipv6 address a:0::10/128 + ! + } + iconcoords {64.19289632467826 42.49909518554088} + labelcoords {64.19289632467826 66.49909518554088} + canvas c1 + interface-peer {eth0 n11} + custom-image $CORE_DATA_DIR/icons/normal/router_red.gif + services {zebra OSPFv3MDR vtysh SMF IPForward UserDefined} + custom-config { + custom-config-id service:UserDefined:custom-post-config-commands.sh + custom-command custom-post-config-commands.sh + config { + route add default dev eth0 + route add -net 224.0.0.0 netmask 224.0.0.0 dev eth0 + } + } + custom-config { + custom-config-id service:UserDefined + custom-command UserDefined + config { + files=('custom-post-config-commands.sh', ) + startidx=35 + cmdup=('sh custom-post-config-commands.sh', ) + } + } +} + +node n11 { + type wlan + network-config { + hostname wlan11 + ! + interface wireless + ip address 10.0.0.0/32 + ipv6 address a:0::0/128 + ! + scriptfile + sample4.scen + ! + mobmodel + coreapi + basic_range + ! + } + iconcoords {0 0} + labelcoords {0 0} + canvas c1 + interface-peer {e0 n1} + interface-peer {e1 n2} + interface-peer {e2 n3} + interface-peer {e3 n4} + interface-peer {e4 n5} + interface-peer {e5 n6} + interface-peer {e6 n7} + interface-peer {e7 n8} + interface-peer {e8 n9} + interface-peer {e9 n10} + custom-config { + custom-config-id basic_range + custom-command {3 3 9 9 9} + config { + range=200 + bandwidth=54000000 + jitter=0 + delay=50000 + error=0 + } + } +} + +link l1 { + nodes {n11 n1} + bandwidth 54000000 + delay 50000 +} + +link l2 { + nodes {n11 n2} + bandwidth 54000000 + delay 50000 +} + +link l3 { + nodes {n11 n3} + bandwidth 54000000 + delay 50000 +} + +link l4 { + nodes {n11 n4} + bandwidth 54000000 + delay 50000 +} + +link l5 { + nodes {n11 n5} + bandwidth 54000000 + delay 50000 +} + +link l6 { + nodes {n11 n6} + bandwidth 54000000 + delay 50000 +} + +link l7 { + nodes {n11 n7} + bandwidth 54000000 + delay 50000 +} + +link l8 { + nodes {n11 n8} + bandwidth 54000000 + delay 50000 +} + +link l9 { + nodes {n11 n9} + bandwidth 54000000 + delay 50000 +} + +link l10 { + nodes {n11 n10} + bandwidth 54000000 + delay 50000 +} + +canvas c1 { + name {Canvas1} + wallpaper-style {upperleft} + wallpaper {sample4-bg.jpg} + size {1000 750} +} + +option global { + interface_names no + ip_addresses yes + ipv6_addresses yes + node_labels yes + link_labels yes + show_api no + background_images no + annotations yes + grid no + traffic_start 0 +} + +option session { +} + diff --git a/gui/configs/sample4.scen b/gui/configs/sample4.scen new file mode 100644 index 00000000..939176e7 --- /dev/null +++ b/gui/configs/sample4.scen @@ -0,0 +1,2791 @@ +$node_(1) set X_ 196.387421 +$node_(1) set Y_ 462.134022 +$ns_ at 0.000000 "$node_(1) setdest 196.387421 462.134022 1.000000" +$ns_ at 0.000000 "$node_(1) setdest 195.956911 462.201568 0.435777" +$node_(2) set X_ 108.414716 +$node_(2) set Y_ 393.160360 +$ns_ at 0.000000 "$node_(2) setdest 108.414716 393.160360 1.000000" +$ns_ at 0.000000 "$node_(2) setdest 108.686466 392.778045 0.469055" +$node_(3) set X_ 14.254378 +$node_(3) set Y_ 541.257030 +$ns_ at 0.000000 "$node_(3) setdest 14.254378 541.257030 1.000000" +$ns_ at 0.000000 "$node_(3) setdest 14.839150 541.372844 0.596131" +$node_(4) set X_ 41.851670 +$node_(4) set Y_ 545.867138 +$ns_ at 0.000000 "$node_(4) setdest 41.851670 545.867138 1.000000" +$ns_ at 0.000000 "$node_(4) setdest 42.442273 545.926217 0.593550" +$node_(5) set X_ 182.809226 +$node_(5) set Y_ 513.055969 +$ns_ at 0.000000 "$node_(5) setdest 182.809226 513.055969 1.000000" +$ns_ at 0.000000 "$node_(5) setdest 183.335280 513.337339 0.596575" +$node_(6) set X_ 122.027997 +$node_(6) set Y_ 524.087717 +$ns_ at 0.000000 "$node_(6) setdest 122.027997 524.087717 1.000000" +$ns_ at 0.000000 "$node_(6) setdest 122.475860 524.470641 0.589248" +$node_(7) set X_ 186.692167 +$node_(7) set Y_ 453.103964 +$ns_ at 0.000000 "$node_(7) setdest 186.692167 453.103964 1.000000" +$ns_ at 0.000000 "$node_(7) setdest 186.362331 453.043815 0.335275" +$node_(8) set X_ 6.841010 +$node_(8) set Y_ 411.004614 +$ns_ at 0.000000 "$node_(8) setdest 6.841010 411.004614 1.000000" +$ns_ at 0.000000 "$node_(8) setdest 6.715910 410.970880 0.129569" +$node_(9) set X_ 180.514289 +$node_(9) set Y_ 395.901964 +$ns_ at 0.000000 "$node_(9) setdest 180.514289 395.901964 1.000000" +$ns_ at 0.000000 "$node_(9) setdest 180.863640 396.303766 0.532438" +$node_(10) set X_ 148.853602 +$node_(10) set Y_ 357.991260 +$ns_ at 0.000000 "$node_(10) setdest 148.853602 357.991260 1.000000" +$ns_ at 0.000000 "$node_(10) setdest 148.959253 358.166829 0.204906" + +$ns_ at 1.000000 "$node_(1) setdest 194.187758 463.051431 1.962694" +$ns_ at 1.000000 "$node_(2) setdest 109.321754 390.842582 2.037058" +$ns_ at 1.000000 "$node_(3) setdest 16.393600 542.808055 2.115690" +$ns_ at 1.000000 "$node_(4) setdest 44.634359 546.049079 2.195526" +$ns_ at 1.000000 "$node_(5) setdest 184.328928 515.246522 2.152281" +$ns_ at 1.000000 "$node_(6) setdest 123.835691 526.192539 2.194099" +$ns_ at 1.000000 "$node_(7) setdest 184.877733 452.038170 1.793140" +$ns_ at 1.000000 "$node_(8) setdest 6.671562 410.117567 0.854465" +$ns_ at 1.000000 "$node_(9) setdest 181.894113 398.159435 2.122590" +$ns_ at 1.000000 "$node_(10) setdest 148.870931 359.695988 1.531708" + +$ns_ at 2.000000 "$node_(1) setdest 190.851655 464.311512 3.566145" +$ns_ at 2.000000 "$node_(2) setdest 110.783099 387.546466 3.605539" +$ns_ at 2.000000 "$node_(3) setdest 14.881262 545.183484 2.815996" +$ns_ at 2.000000 "$node_(4) setdest 48.394729 546.584695 3.798324" +$ns_ at 2.000000 "$node_(5) setdest 184.473917 519.006641 3.762914" +$ns_ at 2.000000 "$node_(6) setdest 126.386821 528.676353 3.560561" +$ns_ at 2.000000 "$node_(7) setdest 182.160868 450.006458 3.392523" +$ns_ at 2.000000 "$node_(8) setdest 8.577394 409.839307 1.926038" +$ns_ at 2.000000 "$node_(9) setdest 182.309184 401.800750 3.664895" +$ns_ at 2.000000 "$node_(10) setdest 149.229189 362.797090 3.121727" + +$ns_ at 3.000000 "$node_(1) setdest 185.998912 466.082945 5.165955" +$ns_ at 3.000000 "$node_(2) setdest 114.977824 384.500577 5.183932" +$ns_ at 3.000000 "$node_(3) setdest 12.849462 546.572220 2.461056" +$ns_ at 3.000000 "$node_(4) setdest 52.522431 543.493688 5.156767" +$ns_ at 3.000000 "$node_(5) setdest 181.227267 523.091806 5.218171" +$ns_ at 3.000000 "$node_(6) setdest 122.849749 526.513462 4.145958" +$ns_ at 3.000000 "$node_(7) setdest 178.377101 446.748671 4.993003" +$ns_ at 3.000000 "$node_(8) setdest 11.957948 411.081133 3.601427" +$ns_ at 3.000000 "$node_(9) setdest 179.694536 406.348826 5.246083" +$ns_ at 3.000000 "$node_(10) setdest 150.721736 367.286506 4.731021" + +$ns_ at 4.000000 "$node_(1) setdest 179.555767 468.148449 6.766123" +$ns_ at 4.000000 "$node_(2) setdest 121.705230 383.835205 6.760230" +$ns_ at 4.000000 "$node_(3) setdest 12.743213 545.655478 0.922878" +$ns_ at 4.000000 "$node_(4) setdest 54.718112 536.856974 6.990493" +$ns_ at 4.000000 "$node_(5) setdest 174.581069 521.988831 6.737099" +$ns_ at 4.000000 "$node_(6) setdest 117.358177 524.776868 5.759612" +$ns_ at 4.000000 "$node_(7) setdest 173.583229 442.224357 6.591709" +$ns_ at 4.000000 "$node_(8) setdest 16.085272 414.253650 5.205734" +$ns_ at 4.000000 "$node_(9) setdest 174.174132 410.497488 6.905523" +$ns_ at 4.000000 "$node_(10) setdest 152.442894 373.377115 6.329131" + +$ns_ at 5.000000 "$node_(1) setdest 184.255964 467.324102 4.771939" +$ns_ at 5.000000 "$node_(2) setdest 130.096253 384.724742 8.438041" +$ns_ at 5.000000 "$node_(3) setdest 13.104636 545.386686 0.450418" +$ns_ at 5.000000 "$node_(4) setdest 60.821055 533.607888 6.913933" +$ns_ at 5.000000 "$node_(5) setdest 176.727658 522.545813 2.217673" +$ns_ at 5.000000 "$node_(6) setdest 109.928718 524.861347 7.429940" +$ns_ at 5.000000 "$node_(7) setdest 168.331832 435.943930 8.186631" +$ns_ at 5.000000 "$node_(8) setdest 20.338476 419.569962 6.808298" +$ns_ at 5.000000 "$node_(9) setdest 166.303912 413.725191 8.506376" +$ns_ at 5.000000 "$node_(10) setdest 153.598648 381.217946 7.925553" + +$ns_ at 6.000000 "$node_(1) setdest 190.713020 468.199291 6.516097" +$ns_ at 6.000000 "$node_(2) setdest 140.041968 386.083359 10.038083" +$ns_ at 6.000000 "$node_(3) setdest 15.010480 545.397474 1.905875" +$ns_ at 6.000000 "$node_(4) setdest 69.199175 531.278561 8.695899" +$ns_ at 6.000000 "$node_(5) setdest 180.271997 521.405130 3.723372" +$ns_ at 6.000000 "$node_(6) setdest 100.969155 523.987540 9.002072" +$ns_ at 6.000000 "$node_(7) setdest 162.840946 427.835646 9.792553" +$ns_ at 6.000000 "$node_(8) setdest 24.574187 426.845069 8.418339" +$ns_ at 6.000000 "$node_(9) setdest 156.473605 416.105660 10.114424" +$ns_ at 6.000000 "$node_(10) setdest 153.809976 390.743972 9.528370" + +$ns_ at 7.000000 "$node_(1) setdest 198.802940 468.836289 8.114961" +$ns_ at 7.000000 "$node_(2) setdest 151.520674 388.001681 11.637897" +$ns_ at 7.000000 "$node_(3) setdest 18.516288 545.400428 3.505809" +$ns_ at 7.000000 "$node_(4) setdest 79.188417 528.784398 10.295912" +$ns_ at 7.000000 "$node_(5) setdest 185.412195 520.020244 5.323489" +$ns_ at 7.000000 "$node_(6) setdest 91.080154 520.135759 10.612660" +$ns_ at 7.000000 "$node_(7) setdest 157.194066 417.952547 11.382569" +$ns_ at 7.000000 "$node_(8) setdest 29.470473 435.584536 10.017580" +$ns_ at 7.000000 "$node_(9) setdest 144.909476 418.020989 11.721670" +$ns_ at 7.000000 "$node_(10) setdest 154.204220 401.865406 11.128419" + +$ns_ at 8.000000 "$node_(1) setdest 208.501664 469.415232 9.715988" +$ns_ at 8.000000 "$node_(2) setdest 164.443430 390.863715 13.235894" +$ns_ at 8.000000 "$node_(3) setdest 23.619197 545.235409 5.105577" +$ns_ at 8.000000 "$node_(4) setdest 90.784905 526.131143 11.896146" +$ns_ at 8.000000 "$node_(5) setdest 192.096154 518.214428 6.923603" +$ns_ at 8.000000 "$node_(6) setdest 80.107574 514.731340 12.231323" +$ns_ at 8.000000 "$node_(7) setdest 153.494434 405.549908 12.942672" +$ns_ at 8.000000 "$node_(8) setdest 34.279206 446.159167 11.616658" +$ns_ at 8.000000 "$node_(9) setdest 131.868827 420.741097 13.321318" +$ns_ at 8.000000 "$node_(10) setdest 155.452554 414.535462 12.731405" + +$ns_ at 9.000000 "$node_(1) setdest 219.760670 470.533402 11.314394" +$ns_ at 9.000000 "$node_(2) setdest 178.682089 395.031168 14.836006" +$ns_ at 9.000000 "$node_(3) setdest 30.308442 544.767661 6.705579" +$ns_ at 9.000000 "$node_(4) setdest 103.964771 523.226201 13.496205" +$ns_ at 9.000000 "$node_(5) setdest 200.282657 515.840475 8.523761" +$ns_ at 9.000000 "$node_(6) setdest 69.403546 506.039069 13.788828" +$ns_ at 9.000000 "$node_(7) setdest 157.365544 391.985292 14.106179" +$ns_ at 9.000000 "$node_(8) setdest 38.646714 458.620995 13.205010" +$ns_ at 9.000000 "$node_(9) setdest 117.255049 423.747093 14.919736" +$ns_ at 9.000000 "$node_(10) setdest 155.850673 428.857711 14.327781" + +$ns_ at 10.000000 "$node_(1) setdest 232.472738 472.803312 12.913139" +$ns_ at 10.000000 "$node_(2) setdest 194.127048 400.653131 16.436339" +$ns_ at 10.000000 "$node_(3) setdest 38.581962 544.035935 8.305815" +$ns_ at 10.000000 "$node_(4) setdest 118.685377 519.880090 15.096115" +$ns_ at 10.000000 "$node_(5) setdest 210.050487 513.181447 10.123286" +$ns_ at 10.000000 "$node_(6) setdest 59.302514 494.374293 15.430420" +$ns_ at 10.000000 "$node_(7) setdest 169.643190 381.472758 16.163353" +$ns_ at 10.000000 "$node_(8) setdest 40.877385 473.255023 14.803063" +$ns_ at 10.000000 "$node_(9) setdest 100.860701 425.784585 16.520473" +$ns_ at 10.000000 "$node_(10) setdest 154.521863 444.723981 15.921817" + +$ns_ at 11.000000 "$node_(1) setdest 246.478612 476.598268 14.510900" +$ns_ at 11.000000 "$node_(2) setdest 210.951195 407.159256 18.038337" +$ns_ at 11.000000 "$node_(3) setdest 48.438708 543.050999 9.905834" +$ns_ at 11.000000 "$node_(4) setdest 134.861031 515.746212 16.695530" +$ns_ at 11.000000 "$node_(5) setdest 221.527307 510.799257 11.721444" +$ns_ at 11.000000 "$node_(6) setdest 49.457411 480.494289 17.017067" +$ns_ at 11.000000 "$node_(7) setdest 180.598709 367.456279 17.790028" +$ns_ at 11.000000 "$node_(8) setdest 39.538357 489.562934 16.362792" +$ns_ at 11.000000 "$node_(9) setdest 83.020566 428.952409 18.119203" +$ns_ at 11.000000 "$node_(10) setdest 151.821820 462.044995 17.530195" + +$ns_ at 12.000000 "$node_(1) setdest 261.629729 482.087033 16.114679" +$ns_ at 12.000000 "$node_(2) setdest 229.245871 414.133015 19.578776" +$ns_ at 12.000000 "$node_(3) setdest 59.881260 541.845844 11.505842" +$ns_ at 12.000000 "$node_(4) setdest 152.423948 510.621388 18.295352" +$ns_ at 12.000000 "$node_(5) setdest 234.527040 507.889458 13.321411" +$ns_ at 12.000000 "$node_(6) setdest 40.966307 463.915095 18.627091" +$ns_ at 12.000000 "$node_(7) setdest 185.609934 356.000078 12.504276" +$ns_ at 12.000000 "$node_(8) setdest 30.885561 505.096833 17.781252" +$ns_ at 12.000000 "$node_(9) setdest 63.625003 431.905828 19.619138" +$ns_ at 12.000000 "$node_(10) setdest 146.050593 480.248923 19.096860" + +$ns_ at 13.000000 "$node_(1) setdest 278.393127 487.812114 17.714064" +$ns_ at 13.000000 "$node_(2) setdest 248.189196 420.533024 19.995242" +$ns_ at 13.000000 "$node_(3) setdest 72.938784 540.726815 13.105387" +$ns_ at 13.000000 "$node_(4) setdest 171.235204 504.613101 19.747478" +$ns_ at 13.000000 "$node_(5) setdest 249.025623 504.352557 14.923758" +$ns_ at 13.000000 "$node_(6) setdest 30.880946 446.819434 19.848832" +$ns_ at 13.000000 "$node_(7) setdest 184.657559 357.512927 1.787661" +$ns_ at 13.000000 "$node_(8) setdest 14.206642 507.144149 16.804101" +$ns_ at 13.000000 "$node_(9) setdest 44.005432 428.793757 19.864857" +$ns_ at 13.000000 "$node_(10) setdest 132.025204 492.782747 18.809792" + +$ns_ at 14.000000 "$node_(1) setdest 297.118073 492.525399 19.309031" +$ns_ at 14.000000 "$node_(2) setdest 267.609451 425.285611 19.993334" +$ns_ at 14.000000 "$node_(3) setdest 87.624368 539.967665 14.705193" +$ns_ at 14.000000 "$node_(4) setdest 190.013797 497.736791 19.997979" +$ns_ at 14.000000 "$node_(5) setdest 265.067340 500.390654 16.523722" +$ns_ at 14.000000 "$node_(6) setdest 22.990420 428.699834 19.763105" +$ns_ at 14.000000 "$node_(7) setdest 182.833109 360.375049 3.394165" +$ns_ at 14.000000 "$node_(8) setdest 11.626599 492.727976 14.645227" +$ns_ at 14.000000 "$node_(9) setdest 26.668091 418.946242 19.938830" +$ns_ at 14.000000 "$node_(10) setdest 123.299921 486.526765 10.736287" + +$ns_ at 15.000000 "$node_(1) setdest 316.902786 495.404161 19.993052" +$ns_ at 15.000000 "$node_(2) setdest 287.409944 428.039581 19.991095" +$ns_ at 15.000000 "$node_(3) setdest 103.927453 539.724173 16.304903" +$ns_ at 15.000000 "$node_(4) setdest 208.447762 489.981073 19.999056" +$ns_ at 15.000000 "$node_(5) setdest 282.569771 495.688589 18.123038" +$ns_ at 15.000000 "$node_(6) setdest 32.358017 413.328574 18.000764" +$ns_ at 15.000000 "$node_(7) setdest 180.522818 364.802409 4.993892" +$ns_ at 15.000000 "$node_(8) setdest 17.250049 478.879349 14.946828" +$ns_ at 15.000000 "$node_(9) setdest 19.305071 401.972918 18.501562" +$ns_ at 15.000000 "$node_(10) setdest 122.308127 476.484801 10.090823" + +$ns_ at 16.000000 "$node_(1) setdest 336.810376 497.321840 19.999742" +$ns_ at 16.000000 "$node_(2) setdest 307.390871 428.541832 19.987239" +$ns_ at 16.000000 "$node_(3) setdest 121.831706 539.952811 17.905713" +$ns_ at 16.000000 "$node_(4) setdest 227.120033 482.822730 19.997389" +$ns_ at 16.000000 "$node_(5) setdest 301.236586 489.579183 19.641151" +$ns_ at 16.000000 "$node_(6) setdest 46.948370 420.814042 16.398495" +$ns_ at 16.000000 "$node_(7) setdest 177.898557 370.854610 6.596658" +$ns_ at 16.000000 "$node_(8) setdest 30.672025 469.903968 16.146420" +$ns_ at 16.000000 "$node_(9) setdest 28.762169 396.296220 11.030031" +$ns_ at 16.000000 "$node_(10) setdest 119.039643 465.199922 11.748680" + +$ns_ at 17.000000 "$node_(1) setdest 356.723919 496.365486 19.936494" +$ns_ at 17.000000 "$node_(2) setdest 327.327857 427.009656 19.995774" +$ns_ at 17.000000 "$node_(3) setdest 141.310307 540.046329 19.478826" +$ns_ at 17.000000 "$node_(4) setdest 246.180029 476.772114 19.997335" +$ns_ at 17.000000 "$node_(5) setdest 320.056175 482.812486 19.999128" +$ns_ at 17.000000 "$node_(6) setdest 50.106366 436.546462 16.046245" +$ns_ at 17.000000 "$node_(7) setdest 175.044087 378.536882 8.195444" +$ns_ at 17.000000 "$node_(8) setdest 48.497193 467.760705 17.953557" +$ns_ at 17.000000 "$node_(9) setdest 38.413556 402.420929 11.430719" +$ns_ at 17.000000 "$node_(10) setdest 114.693546 452.584125 13.343422" + +$ns_ at 18.000000 "$node_(1) setdest 376.664288 496.703412 19.943231" +$ns_ at 18.000000 "$node_(2) setdest 346.945189 423.241158 19.976018" +$ns_ at 18.000000 "$node_(3) setdest 161.304062 539.571077 19.999402" +$ns_ at 18.000000 "$node_(4) setdest 265.558802 471.836704 19.997378" +$ns_ at 18.000000 "$node_(5) setdest 338.448532 474.970956 19.994209" +$ns_ at 18.000000 "$node_(6) setdest 54.288270 451.088370 15.131272" +$ns_ at 18.000000 "$node_(7) setdest 172.073073 387.868710 9.793362" +$ns_ at 18.000000 "$node_(8) setdest 67.655050 465.445201 19.297281" +$ns_ at 18.000000 "$node_(9) setdest 49.709921 408.850378 12.997910" +$ns_ at 18.000000 "$node_(10) setdest 114.878490 437.804560 14.780722" + +$ns_ at 19.000000 "$node_(1) setdest 396.221169 500.830441 19.987596" +$ns_ at 19.000000 "$node_(2) setdest 364.910034 414.653995 19.911680" +$ns_ at 19.000000 "$node_(3) setdest 181.265387 538.352550 19.998483" +$ns_ at 19.000000 "$node_(4) setdest 285.155517 467.848358 19.998454" +$ns_ at 19.000000 "$node_(5) setdest 356.023480 465.435990 19.994859" +$ns_ at 19.000000 "$node_(6) setdest 59.822992 466.650093 16.516669" +$ns_ at 19.000000 "$node_(7) setdest 170.484709 399.136223 11.378916" +$ns_ at 19.000000 "$node_(8) setdest 84.504418 457.452149 18.649130" +$ns_ at 19.000000 "$node_(9) setdest 63.410973 414.003103 14.637944" +$ns_ at 19.000000 "$node_(10) setdest 124.979075 425.189235 16.160700" + +$ns_ at 20.000000 "$node_(1) setdest 414.959731 507.703787 19.959373" +$ns_ at 20.000000 "$node_(2) setdest 380.876777 402.624609 19.991073" +$ns_ at 20.000000 "$node_(3) setdest 201.169537 536.405487 19.999156" +$ns_ at 20.000000 "$node_(4) setdest 304.943032 464.963448 19.996711" +$ns_ at 20.000000 "$node_(5) setdest 372.787924 454.543588 19.992274" +$ns_ at 20.000000 "$node_(6) setdest 70.020001 481.532051 18.040280" +$ns_ at 20.000000 "$node_(7) setdest 170.249709 412.128831 12.994733" +$ns_ at 20.000000 "$node_(8) setdest 93.638312 442.200433 17.777595" +$ns_ at 20.000000 "$node_(9) setdest 78.562641 419.829513 16.233302" +$ns_ at 20.000000 "$node_(10) setdest 142.579167 424.108364 17.633250" + +$ns_ at 21.000000 "$node_(1) setdest 429.209520 521.348596 19.729097" +$ns_ at 21.000000 "$node_(2) setdest 397.102346 390.982114 19.970398" +$ns_ at 21.000000 "$node_(3) setdest 220.965783 533.570502 19.998213" +$ns_ at 21.000000 "$node_(4) setdest 324.852277 463.066604 19.999402" +$ns_ at 21.000000 "$node_(5) setdest 388.665021 442.382765 19.999195" +$ns_ at 21.000000 "$node_(6) setdest 86.716919 491.602850 19.498924" +$ns_ at 21.000000 "$node_(7) setdest 169.847567 426.715435 14.592147" +$ns_ at 21.000000 "$node_(8) setdest 97.710618 423.903178 18.744951" +$ns_ at 21.000000 "$node_(9) setdest 95.770736 424.404680 17.805917" +$ns_ at 21.000000 "$node_(10) setdest 161.156216 426.885868 18.783538" + +$ns_ at 22.000000 "$node_(1) setdest 430.473009 540.114895 18.808785" +$ns_ at 22.000000 "$node_(2) setdest 416.281990 386.251137 19.754515" +$ns_ at 22.000000 "$node_(3) setdest 240.636740 529.963240 19.998972" +$ns_ at 22.000000 "$node_(4) setdest 344.804967 461.695943 19.999714" +$ns_ at 22.000000 "$node_(5) setdest 405.064820 430.950640 19.991171" +$ns_ at 22.000000 "$node_(6) setdest 105.990772 495.255793 19.616967" +$ns_ at 22.000000 "$node_(7) setdest 167.385262 442.713557 16.186502" +$ns_ at 22.000000 "$node_(8) setdest 103.162186 405.249727 19.433755" +$ns_ at 22.000000 "$node_(9) setdest 115.163365 425.341594 19.415248" +$ns_ at 22.000000 "$node_(10) setdest 179.829755 431.479678 19.230293" + +$ns_ at 23.000000 "$node_(1) setdest 415.678953 543.404262 15.155331" +$ns_ at 23.000000 "$node_(2) setdest 435.187649 392.319327 19.855651" +$ns_ at 23.000000 "$node_(3) setdest 260.149758 525.579574 19.999361" +$ns_ at 23.000000 "$node_(4) setdest 364.757106 460.319210 19.999581" +$ns_ at 23.000000 "$node_(5) setdest 423.001973 422.178788 19.967143" +$ns_ at 23.000000 "$node_(6) setdest 123.055577 489.304227 18.072872" +$ns_ at 23.000000 "$node_(7) setdest 163.127378 459.989903 17.793305" +$ns_ at 23.000000 "$node_(8) setdest 100.668183 387.349777 18.072860" +$ns_ at 23.000000 "$node_(9) setdest 134.745751 421.781273 19.903410" +$ns_ at 23.000000 "$node_(10) setdest 192.254617 443.561434 17.330494" + +$ns_ at 24.000000 "$node_(1) setdest 406.160525 540.747525 9.882242" +$ns_ at 24.000000 "$node_(2) setdest 449.530999 405.814727 19.694098" +$ns_ at 24.000000 "$node_(3) setdest 279.642597 521.105699 19.999658" +$ns_ at 24.000000 "$node_(4) setdest 384.596757 457.826144 19.995677" +$ns_ at 24.000000 "$node_(5) setdest 442.473674 417.861163 19.944649" +$ns_ at 24.000000 "$node_(6) setdest 134.199736 475.485411 17.752521" +$ns_ at 24.000000 "$node_(7) setdest 160.485918 479.161017 19.352233" +$ns_ at 24.000000 "$node_(8) setdest 89.621312 373.738896 17.529673" +$ns_ at 24.000000 "$node_(9) setdest 151.033770 410.479558 19.824942" +$ns_ at 24.000000 "$node_(10) setdest 187.121532 459.497919 16.742763" + +$ns_ at 25.000000 "$node_(1) setdest 409.358404 540.925330 3.202818" +$ns_ at 25.000000 "$node_(2) setdest 458.447905 423.373342 19.693049" +$ns_ at 25.000000 "$node_(3) setdest 299.300679 517.470033 19.991455" +$ns_ at 25.000000 "$node_(4) setdest 404.207394 453.940099 19.991959" +$ns_ at 25.000000 "$node_(5) setdest 462.251199 419.968804 19.889511" +$ns_ at 25.000000 "$node_(6) setdest 137.331615 457.789340 17.971076" +$ns_ at 25.000000 "$node_(7) setdest 163.430534 498.853924 19.911840" +$ns_ at 25.000000 "$node_(8) setdest 77.657124 359.369184 18.698407" +$ns_ at 25.000000 "$node_(9) setdest 164.260780 395.480602 19.998061" +$ns_ at 25.000000 "$node_(10) setdest 184.039441 474.459839 15.276071" + +$ns_ at 26.000000 "$node_(1) setdest 413.898194 539.190016 4.860144" +$ns_ at 26.000000 "$node_(2) setdest 472.249585 436.422368 18.993774" +$ns_ at 26.000000 "$node_(3) setdest 319.267001 516.756455 19.979069" +$ns_ at 26.000000 "$node_(4) setdest 422.915330 447.007413 19.951166" +$ns_ at 26.000000 "$node_(5) setdest 477.938097 430.823097 19.076018" +$ns_ at 26.000000 "$node_(6) setdest 140.850027 439.467490 18.656618" +$ns_ at 26.000000 "$node_(7) setdest 173.893091 515.708878 19.838210" +$ns_ at 26.000000 "$node_(8) setdest 62.077819 360.254769 15.604455" +$ns_ at 26.000000 "$node_(9) setdest 179.407140 382.455787 19.976437" +$ns_ at 26.000000 "$node_(10) setdest 185.534654 490.826466 16.434784" + +$ns_ at 27.000000 "$node_(1) setdest 419.345130 535.713495 6.461836" +$ns_ at 27.000000 "$node_(2) setdest 485.947996 449.586921 18.998734" +$ns_ at 27.000000 "$node_(3) setdest 339.044367 519.533812 19.971427" +$ns_ at 27.000000 "$node_(4) setdest 438.826119 435.000710 19.932740" +$ns_ at 27.000000 "$node_(5) setdest 473.471267 424.832381 7.472701" +$ns_ at 27.000000 "$node_(6) setdest 135.925019 421.904243 18.240706" +$ns_ at 27.000000 "$node_(7) setdest 186.435379 531.166580 19.906018" +$ns_ at 27.000000 "$node_(8) setdest 57.119411 374.294350 14.889447" +$ns_ at 27.000000 "$node_(9) setdest 192.143744 373.866180 15.362370" +$ns_ at 27.000000 "$node_(10) setdest 185.569664 508.866862 18.040430" + +$ns_ at 28.000000 "$node_(1) setdest 425.125458 530.097247 8.059430" +$ns_ at 28.000000 "$node_(2) setdest 493.049174 466.718934 18.545421" +$ns_ at 28.000000 "$node_(3) setdest 358.303469 524.898542 19.992332" +$ns_ at 28.000000 "$node_(4) setdest 450.847143 419.080495 19.948891" +$ns_ at 28.000000 "$node_(5) setdest 466.757695 428.118270 7.474565" +$ns_ at 28.000000 "$node_(6) setdest 128.600444 404.149699 19.206072" +$ns_ at 28.000000 "$node_(7) setdest 190.977325 534.505975 5.637449" +$ns_ at 28.000000 "$node_(8) setdest 50.549060 388.112799 15.300949" +$ns_ at 28.000000 "$node_(9) setdest 191.629729 374.111864 0.569712" +$ns_ at 28.000000 "$node_(10) setdest 181.834449 527.981880 19.476543" + +$ns_ at 29.000000 "$node_(1) setdest 431.663417 522.972367 9.669997" +$ns_ at 29.000000 "$node_(2) setdest 500.999975 483.730217 18.777619" +$ns_ at 29.000000 "$node_(3) setdest 378.191935 526.327594 19.939741" +$ns_ at 29.000000 "$node_(4) setdest 458.446194 400.622892 19.960678" +$ns_ at 29.000000 "$node_(5) setdest 461.699992 435.699961 9.113857" +$ns_ at 29.000000 "$node_(6) setdest 122.697249 385.435598 19.623081" +$ns_ at 29.000000 "$node_(7) setdest 183.725190 529.813555 8.637839" +$ns_ at 29.000000 "$node_(8) setdest 38.920729 400.522858 17.006694" +$ns_ at 29.000000 "$node_(9) setdest 190.433575 375.757305 2.034271" +$ns_ at 29.000000 "$node_(10) setdest 169.338208 541.367431 18.311990" + +$ns_ at 30.000000 "$node_(1) setdest 440.262619 515.700706 11.261586" +$ns_ at 30.000000 "$node_(2) setdest 500.811238 501.442061 17.712850" +$ns_ at 30.000000 "$node_(3) setdest 397.439899 521.321197 19.888392" +$ns_ at 30.000000 "$node_(4) setdest 464.984365 381.792314 19.933348" +$ns_ at 30.000000 "$node_(5) setdest 458.178246 445.894374 10.785581" +$ns_ at 30.000000 "$node_(6) setdest 117.489012 366.365374 19.768641" +$ns_ at 30.000000 "$node_(7) setdest 174.343370 525.704745 10.242113" +$ns_ at 30.000000 "$node_(8) setdest 24.090640 411.759729 18.606419" +$ns_ at 30.000000 "$node_(9) setdest 187.828459 378.293814 3.636002" +$ns_ at 30.000000 "$node_(10) setdest 152.821188 535.712898 17.458113" + +$ns_ at 31.000000 "$node_(1) setdest 451.405438 509.290896 12.854885" +$ns_ at 31.000000 "$node_(2) setdest 491.700571 517.036414 18.060678" +$ns_ at 31.000000 "$node_(3) setdest 413.171544 509.240492 19.835022" +$ns_ at 31.000000 "$node_(4) setdest 480.918024 372.117997 18.640651" +$ns_ at 31.000000 "$node_(5) setdest 456.464076 458.133299 12.358384" +$ns_ at 31.000000 "$node_(6) setdest 116.659357 360.796271 5.630563" +$ns_ at 31.000000 "$node_(7) setdest 164.951174 518.581014 11.788168" +$ns_ at 31.000000 "$node_(8) setdest 8.936318 423.738537 19.316970" +$ns_ at 31.000000 "$node_(9) setdest 184.393707 382.243473 5.234245" +$ns_ at 31.000000 "$node_(10) setdest 139.669561 526.256345 16.198509" + +$ns_ at 32.000000 "$node_(1) setdest 464.725397 503.658293 14.461934" +$ns_ at 32.000000 "$node_(2) setdest 479.083065 531.312050 19.052435" +$ns_ at 32.000000 "$node_(3) setdest 421.035268 491.095019 19.776156" +$ns_ at 32.000000 "$node_(4) setdest 490.592449 383.745440 15.125870" +$ns_ at 32.000000 "$node_(5) setdest 456.762816 472.118321 13.988212" +$ns_ at 32.000000 "$node_(6) setdest 116.717596 368.408818 7.612770" +$ns_ at 32.000000 "$node_(7) setdest 156.422329 508.202089 13.433662" +$ns_ at 32.000000 "$node_(8) setdest 11.745791 420.358995 4.394820" +$ns_ at 32.000000 "$node_(9) setdest 180.640795 387.951388 6.831153" +$ns_ at 32.000000 "$node_(10) setdest 126.512644 516.165541 16.580976" + +$ns_ at 33.000000 "$node_(1) setdest 480.312677 499.837211 16.048799" +$ns_ at 33.000000 "$node_(2) setdest 464.103605 542.498822 18.695670" +$ns_ at 33.000000 "$node_(3) setdest 415.566812 472.559995 19.324884" +$ns_ at 33.000000 "$node_(4) setdest 492.444864 398.380771 14.752097" +$ns_ at 33.000000 "$node_(5) setdest 454.811405 487.581008 15.585336" +$ns_ at 33.000000 "$node_(6) setdest 117.946938 377.618577 9.291444" +$ns_ at 33.000000 "$node_(7) setdest 147.983933 495.750139 15.041861" +$ns_ at 33.000000 "$node_(8) setdest 16.630884 421.422038 4.999419" +$ns_ at 33.000000 "$node_(9) setdest 176.046756 395.024567 8.434160" +$ns_ at 33.000000 "$node_(10) setdest 114.664512 502.380973 18.176703" + +$ns_ at 34.000000 "$node_(1) setdest 497.919072 498.422291 17.663158" +$ns_ at 34.000000 "$node_(2) setdest 467.653826 541.046000 3.835981" +$ns_ at 34.000000 "$node_(3) setdest 405.186017 464.081358 13.403290" +$ns_ at 34.000000 "$node_(4) setdest 490.175129 414.347121 16.126873" +$ns_ at 34.000000 "$node_(5) setdest 451.792079 504.480069 17.166671" +$ns_ at 34.000000 "$node_(6) setdest 121.883147 387.777476 10.894815" +$ns_ at 34.000000 "$node_(7) setdest 138.114893 482.374086 16.622777" +$ns_ at 34.000000 "$node_(8) setdest 22.994022 423.191629 6.604618" +$ns_ at 34.000000 "$node_(9) setdest 170.044883 403.068060 10.035948" +$ns_ at 34.000000 "$node_(10) setdest 107.004140 484.410586 19.534997" + +$ns_ at 35.000000 "$node_(1) setdest 517.152845 499.275087 19.252670" +$ns_ at 35.000000 "$node_(2) setdest 469.760083 536.639542 4.883974" +$ns_ at 35.000000 "$node_(3) setdest 406.522026 464.499466 1.399905" +$ns_ at 35.000000 "$node_(4) setdest 486.192447 431.664927 17.769867" +$ns_ at 35.000000 "$node_(5) setdest 441.963945 520.294525 18.619593" +$ns_ at 35.000000 "$node_(6) setdest 124.346991 399.961894 12.431032" +$ns_ at 35.000000 "$node_(7) setdest 124.150809 470.712739 18.192929" +$ns_ at 35.000000 "$node_(8) setdest 30.684577 426.047417 8.203668" +$ns_ at 35.000000 "$node_(9) setdest 162.654904 412.053873 11.634287" +$ns_ at 35.000000 "$node_(10) setdest 107.841118 465.759378 18.669978" + +$ns_ at 36.000000 "$node_(1) setdest 536.528998 504.082029 19.963517" +$ns_ at 36.000000 "$node_(2) setdest 474.403635 532.108135 6.488160" +$ns_ at 36.000000 "$node_(3) setdest 409.528015 464.468428 3.006149" +$ns_ at 36.000000 "$node_(4) setdest 484.427652 450.881008 19.296950" +$ns_ at 36.000000 "$node_(5) setdest 426.470273 532.788799 19.903788" +$ns_ at 36.000000 "$node_(6) setdest 120.932715 413.505237 13.967084" +$ns_ at 36.000000 "$node_(7) setdest 105.532349 464.813463 19.530707" +$ns_ at 36.000000 "$node_(8) setdest 39.253080 430.783080 9.790084" +$ns_ at 36.000000 "$node_(9) setdest 153.536221 421.645072 13.234104" +$ns_ at 36.000000 "$node_(10) setdest 117.666134 450.695452 17.984794" + +$ns_ at 37.000000 "$node_(1) setdest 554.428542 512.921944 19.963411" +$ns_ at 37.000000 "$node_(2) setdest 481.127335 527.610678 8.089206" +$ns_ at 37.000000 "$node_(3) setdest 414.102043 465.013680 4.606412" +$ns_ at 37.000000 "$node_(4) setdest 489.773407 469.940100 19.794597" +$ns_ at 37.000000 "$node_(5) setdest 408.058188 532.100718 18.424937" +$ns_ at 37.000000 "$node_(6) setdest 109.012095 423.192684 15.360592" +$ns_ at 37.000000 "$node_(7) setdest 85.728992 467.102452 19.935205" +$ns_ at 37.000000 "$node_(8) setdest 48.361002 437.630220 11.394629" +$ns_ at 37.000000 "$node_(9) setdest 142.102893 431.075459 14.820701" +$ns_ at 37.000000 "$node_(10) setdest 131.161133 437.935237 18.572509" + +$ns_ at 38.000000 "$node_(1) setdest 566.932229 527.655226 19.323866" +$ns_ at 38.000000 "$node_(2) setdest 490.148231 524.075412 9.688895" +$ns_ at 38.000000 "$node_(3) setdest 420.185075 466.255244 6.208443" +$ns_ at 38.000000 "$node_(4) setdest 501.252538 485.927117 19.681340" +$ns_ at 38.000000 "$node_(5) setdest 405.981429 521.845202 10.463677" +$ns_ at 38.000000 "$node_(6) setdest 91.954174 422.557957 17.069726" +$ns_ at 38.000000 "$node_(7) setdest 66.578736 472.830545 19.988581" +$ns_ at 38.000000 "$node_(8) setdest 58.379443 445.916629 13.001297" +$ns_ at 38.000000 "$node_(9) setdest 128.348746 440.069498 16.433785" +$ns_ at 38.000000 "$node_(10) setdest 139.114132 421.205939 18.523488" + +$ns_ at 39.000000 "$node_(1) setdest 567.143596 529.512240 1.869004" +$ns_ at 39.000000 "$node_(2) setdest 501.202329 521.792270 11.287418" +$ns_ at 39.000000 "$node_(3) setdest 427.677364 468.446739 7.806218" +$ns_ at 39.000000 "$node_(4) setdest 511.141012 502.780491 19.540167" +$ns_ at 39.000000 "$node_(5) setdest 413.374406 514.767835 10.234513" +$ns_ at 39.000000 "$node_(6) setdest 75.493177 413.507199 18.785117" +$ns_ at 39.000000 "$node_(7) setdest 46.764183 471.773954 19.842703" +$ns_ at 39.000000 "$node_(8) setdest 69.942011 454.838968 14.604833" +$ns_ at 39.000000 "$node_(9) setdest 112.291115 448.251876 18.022176" +$ns_ at 39.000000 "$node_(10) setdest 141.846200 402.561193 18.843852" + +$ns_ at 40.000000 "$node_(1) setdest 564.578377 527.996748 2.979440" +$ns_ at 40.000000 "$node_(2) setdest 514.059687 520.805131 12.895197" +$ns_ at 40.000000 "$node_(3) setdest 436.538030 471.609166 9.408100" +$ns_ at 40.000000 "$node_(4) setdest 519.473141 520.208352 19.317213" +$ns_ at 40.000000 "$node_(5) setdest 419.858457 504.879506 11.824634" +$ns_ at 40.000000 "$node_(6) setdest 87.235668 420.830481 13.838951" +$ns_ at 40.000000 "$node_(7) setdest 64.203274 476.552061 18.081820" +$ns_ at 40.000000 "$node_(8) setdest 84.829204 454.481993 14.891472" +$ns_ at 40.000000 "$node_(9) setdest 125.059425 443.474044 13.632954" +$ns_ at 40.000000 "$node_(10) setdest 148.729503 397.886383 8.320679" + +$ns_ at 41.000000 "$node_(1) setdest 560.539286 525.794333 4.600531" +$ns_ at 41.000000 "$node_(2) setdest 528.559240 520.724740 14.499776" +$ns_ at 41.000000 "$node_(3) setdest 446.636223 475.986259 11.006019" +$ns_ at 41.000000 "$node_(4) setdest 526.125692 538.415388 19.384339" +$ns_ at 41.000000 "$node_(5) setdest 424.189640 492.212788 13.386743" +$ns_ at 41.000000 "$node_(6) setdest 102.775617 424.456016 15.957271" +$ns_ at 41.000000 "$node_(7) setdest 83.933552 478.414079 19.817945" +$ns_ at 41.000000 "$node_(8) setdest 101.442514 452.999884 16.679290" +$ns_ at 41.000000 "$node_(9) setdest 140.551926 441.300742 15.644194" +$ns_ at 41.000000 "$node_(10) setdest 158.699125 396.791989 10.029510" + +$ns_ at 42.000000 "$node_(1) setdest 554.946328 523.113767 6.202145" +$ns_ at 42.000000 "$node_(2) setdest 544.648492 520.084739 16.101976" +$ns_ at 42.000000 "$node_(3) setdest 457.867768 481.716252 12.608743" +$ns_ at 42.000000 "$node_(4) setdest 542.996006 542.160589 17.281030" +$ns_ at 42.000000 "$node_(5) setdest 427.836410 477.619041 15.042485" +$ns_ at 42.000000 "$node_(6) setdest 120.073180 427.461833 17.556783" +$ns_ at 42.000000 "$node_(7) setdest 103.908927 479.371110 19.998288" +$ns_ at 42.000000 "$node_(8) setdest 119.693903 451.998492 18.278840" +$ns_ at 42.000000 "$node_(9) setdest 157.508841 438.167173 17.244020" +$ns_ at 42.000000 "$node_(10) setdest 170.268449 395.614996 11.629039" + +$ns_ at 43.000000 "$node_(1) setdest 548.011229 519.540767 7.801405" +$ns_ at 43.000000 "$node_(2) setdest 559.640611 513.386833 16.420280" +$ns_ at 43.000000 "$node_(3) setdest 470.540438 488.142494 14.208911" +$ns_ at 43.000000 "$node_(4) setdest 557.442321 534.605141 16.302785" +$ns_ at 43.000000 "$node_(5) setdest 432.038134 461.515754 16.642426" +$ns_ at 43.000000 "$node_(6) setdest 139.110535 429.593024 19.156274" +$ns_ at 43.000000 "$node_(7) setdest 123.907121 479.374828 19.998194" +$ns_ at 43.000000 "$node_(8) setdest 139.427933 451.544210 19.739258" +$ns_ at 43.000000 "$node_(9) setdest 176.047394 434.787992 18.844013" +$ns_ at 43.000000 "$node_(10) setdest 183.465605 394.695269 13.229166" + +$ns_ at 44.000000 "$node_(1) setdest 540.245181 514.250782 9.396566" +$ns_ at 44.000000 "$node_(2) setdest 557.197334 501.679640 11.959430" +$ns_ at 44.000000 "$node_(3) setdest 484.194340 496.104414 15.805733" +$ns_ at 44.000000 "$node_(4) setdest 569.805764 524.976564 15.670489" +$ns_ at 44.000000 "$node_(5) setdest 437.187949 444.017164 18.240648" +$ns_ at 44.000000 "$node_(6) setdest 159.082551 430.599768 19.997374" +$ns_ at 44.000000 "$node_(7) setdest 143.880972 478.393510 19.997942" +$ns_ at 44.000000 "$node_(8) setdest 159.427822 451.554805 19.999892" +$ns_ at 44.000000 "$node_(9) setdest 195.825003 432.098619 19.959623" +$ns_ at 44.000000 "$node_(10) setdest 198.232049 393.331915 14.829248" + +$ns_ at 45.000000 "$node_(1) setdest 531.522089 507.546145 11.002022" +$ns_ at 45.000000 "$node_(2) setdest 547.805553 492.435892 13.177725" +$ns_ at 45.000000 "$node_(3) setdest 499.562490 504.256506 17.396455" +$ns_ at 45.000000 "$node_(4) setdest 586.131716 520.450839 16.941632" +$ns_ at 45.000000 "$node_(5) setdest 444.245357 425.600998 19.722124" +$ns_ at 45.000000 "$node_(6) setdest 179.081213 430.697528 19.998900" +$ns_ at 45.000000 "$node_(7) setdest 163.775015 476.359693 19.997735" +$ns_ at 45.000000 "$node_(8) setdest 179.427632 451.479451 19.999952" +$ns_ at 45.000000 "$node_(9) setdest 215.744509 430.326634 19.998166" +$ns_ at 45.000000 "$node_(10) setdest 214.511122 391.127338 16.427671" + +$ns_ at 46.000000 "$node_(1) setdest 521.224593 500.285353 12.599902" +$ns_ at 46.000000 "$node_(2) setdest 537.140911 482.188971 14.789658" +$ns_ at 46.000000 "$node_(3) setdest 517.239989 511.230267 19.003350" +$ns_ at 46.000000 "$node_(4) setdest 596.737679 531.230366 15.122323" +$ns_ at 46.000000 "$node_(5) setdest 450.567683 406.626744 19.999853" +$ns_ at 46.000000 "$node_(6) setdest 199.077088 430.293213 19.999963" +$ns_ at 46.000000 "$node_(7) setdest 183.547456 473.359299 19.998794" +$ns_ at 46.000000 "$node_(8) setdest 199.426772 451.293967 19.999999" +$ns_ at 46.000000 "$node_(9) setdest 235.727172 429.545275 19.997933" +$ns_ at 46.000000 "$node_(10) setdest 232.313482 388.287908 18.027380" + +$ns_ at 47.000000 "$node_(1) setdest 509.132728 492.839445 14.200519" +$ns_ at 47.000000 "$node_(2) setdest 529.956513 467.566241 16.292323" +$ns_ at 47.000000 "$node_(3) setdest 530.443547 512.706866 13.285868" +$ns_ at 47.000000 "$node_(4) setdest 593.888061 544.610217 13.679939" +$ns_ at 47.000000 "$node_(5) setdest 455.365546 387.217155 19.993791" +$ns_ at 47.000000 "$node_(6) setdest 219.066969 429.662345 19.999833" +$ns_ at 47.000000 "$node_(7) setdest 203.164862 469.479130 19.997458" +$ns_ at 47.000000 "$node_(8) setdest 219.417361 451.789967 19.996742" +$ns_ at 47.000000 "$node_(9) setdest 255.709496 428.728816 19.998997" +$ns_ at 47.000000 "$node_(10) setdest 251.796297 386.439234 19.570326" + +$ns_ at 48.000000 "$node_(1) setdest 494.811654 486.211110 15.780621" +$ns_ at 48.000000 "$node_(2) setdest 523.405915 450.824130 17.978004" +$ns_ at 48.000000 "$node_(3) setdest 527.369831 511.982215 3.157982" +$ns_ at 48.000000 "$node_(4) setdest 596.143329 540.896760 4.344652" +$ns_ at 48.000000 "$node_(5) setdest 452.127739 368.087344 19.401882" +$ns_ at 48.000000 "$node_(6) setdest 239.040183 428.633694 19.999686" +$ns_ at 48.000000 "$node_(7) setdest 222.507492 464.407083 19.996575" +$ns_ at 48.000000 "$node_(8) setdest 239.319828 453.699710 19.993882" +$ns_ at 48.000000 "$node_(9) setdest 275.658454 427.303064 19.999843" +$ns_ at 48.000000 "$node_(10) setdest 271.767272 385.393628 19.998328" + +$ns_ at 49.000000 "$node_(1) setdest 477.936814 482.029186 17.385301" +$ns_ at 49.000000 "$node_(2) setdest 511.589591 435.283606 19.522638" +$ns_ at 49.000000 "$node_(3) setdest 522.811495 510.411820 4.821262" +$ns_ at 49.000000 "$node_(4) setdest 596.364469 534.992612 5.908287" +$ns_ at 49.000000 "$node_(5) setdest 441.999585 365.539662 10.443668" +$ns_ at 49.000000 "$node_(6) setdest 259.000403 427.373742 19.999946" +$ns_ at 49.000000 "$node_(7) setdest 241.427668 457.938519 19.995384" +$ns_ at 49.000000 "$node_(8) setdest 258.949550 457.488811 19.992080" +$ns_ at 49.000000 "$node_(9) setdest 295.601472 425.794473 19.999995" +$ns_ at 49.000000 "$node_(10) setdest 291.764641 385.099501 19.999532" + +$ns_ at 50.000000 "$node_(1) setdest 460.251786 475.213570 18.952911" +$ns_ at 50.000000 "$node_(2) setdest 494.572859 425.450831 19.653312" +$ns_ at 50.000000 "$node_(3) setdest 516.437962 509.551212 6.431374" +$ns_ at 50.000000 "$node_(4) setdest 595.905073 527.487889 7.518771" +$ns_ at 50.000000 "$node_(5) setdest 435.704871 370.756310 8.175380" +$ns_ at 50.000000 "$node_(6) setdest 278.984020 426.603522 19.998455" +$ns_ at 50.000000 "$node_(7) setdest 259.940900 450.373613 19.999189" +$ns_ at 50.000000 "$node_(8) setdest 278.151718 463.062180 19.994642" +$ns_ at 50.000000 "$node_(9) setdest 315.561187 424.532692 19.999558" +$ns_ at 50.000000 "$node_(10) setdest 311.760339 384.687257 19.999947" + +$ns_ at 51.000000 "$node_(1) setdest 445.750485 461.773203 19.771980" +$ns_ at 51.000000 "$node_(2) setdest 477.062237 431.160008 18.417833" +$ns_ at 51.000000 "$node_(3) setdest 508.417207 509.293695 8.024888" +$ns_ at 51.000000 "$node_(4) setdest 596.138322 518.372789 9.118084" +$ns_ at 51.000000 "$node_(5) setdest 427.847555 376.601237 9.792885" +$ns_ at 51.000000 "$node_(6) setdest 298.977580 426.115506 19.999515" +$ns_ at 51.000000 "$node_(7) setdest 278.425975 442.746479 19.996779" +$ns_ at 51.000000 "$node_(8) setdest 297.021088 469.690556 19.999713" +$ns_ at 51.000000 "$node_(9) setdest 335.550946 423.983930 19.997290" +$ns_ at 51.000000 "$node_(10) setdest 331.755079 384.949165 19.996455" + +$ns_ at 52.000000 "$node_(1) setdest 440.756113 442.613683 19.799772" +$ns_ at 52.000000 "$node_(2) setdest 463.491729 442.499863 17.684767" +$ns_ at 52.000000 "$node_(3) setdest 498.797256 509.801163 9.633327" +$ns_ at 52.000000 "$node_(4) setdest 595.872849 507.661271 10.714807" +$ns_ at 52.000000 "$node_(5) setdest 421.543150 385.787102 11.141168" +$ns_ at 52.000000 "$node_(6) setdest 318.966418 425.467482 19.999339" +$ns_ at 52.000000 "$node_(7) setdest 297.432455 436.535728 19.995493" +$ns_ at 52.000000 "$node_(8) setdest 316.154504 475.504807 19.997327" +$ns_ at 52.000000 "$node_(9) setdest 355.519975 424.976200 19.993668" +$ns_ at 52.000000 "$node_(10) setdest 351.681172 386.619992 19.996020" + +$ns_ at 53.000000 "$node_(1) setdest 439.775796 422.648723 19.989013" +$ns_ at 53.000000 "$node_(2) setdest 454.163430 457.931863 18.032299" +$ns_ at 53.000000 "$node_(3) setdest 487.566288 509.968935 11.232221" +$ns_ at 53.000000 "$node_(4) setdest 593.366650 495.626354 12.293098" +$ns_ at 53.000000 "$node_(5) setdest 426.618346 394.729658 10.282360" +$ns_ at 53.000000 "$node_(6) setdest 338.963772 425.552181 19.997533" +$ns_ at 53.000000 "$node_(7) setdest 316.854629 431.777866 19.996452" +$ns_ at 53.000000 "$node_(8) setdest 335.626595 480.039122 19.993058" +$ns_ at 53.000000 "$node_(9) setdest 375.323130 427.689354 19.988150" +$ns_ at 53.000000 "$node_(10) setdest 371.379909 390.033338 19.992278" + +$ns_ at 54.000000 "$node_(1) setdest 445.215882 403.632184 19.779365" +$ns_ at 54.000000 "$node_(2) setdest 454.059564 475.725275 17.793715" +$ns_ at 54.000000 "$node_(3) setdest 474.763417 509.199397 12.825977" +$ns_ at 54.000000 "$node_(4) setdest 586.634251 483.521630 13.850977" +$ns_ at 54.000000 "$node_(5) setdest 434.740699 390.416312 9.196607" +$ns_ at 54.000000 "$node_(6) setdest 358.922646 426.804947 19.998152" +$ns_ at 54.000000 "$node_(7) setdest 336.584130 428.536703 19.993958" +$ns_ at 54.000000 "$node_(8) setdest 355.462297 482.552656 19.994323" +$ns_ at 54.000000 "$node_(9) setdest 394.479217 433.330580 19.969455" +$ns_ at 54.000000 "$node_(10) setdest 390.644077 395.375055 19.991051" + +$ns_ at 55.000000 "$node_(1) setdest 453.489395 385.467485 19.960143" +$ns_ at 55.000000 "$node_(2) setdest 462.180023 491.875553 18.076873" +$ns_ at 55.000000 "$node_(3) setdest 460.781091 505.762029 14.398644" +$ns_ at 55.000000 "$node_(4) setdest 575.183381 473.135665 15.459324" +$ns_ at 55.000000 "$node_(5) setdest 443.385083 383.339482 11.171700" +$ns_ at 55.000000 "$node_(6) setdest 378.818295 428.840950 19.999553" +$ns_ at 55.000000 "$node_(7) setdest 356.438978 426.133796 19.999724" +$ns_ at 55.000000 "$node_(8) setdest 375.442154 483.043104 19.985875" +$ns_ at 55.000000 "$node_(9) setdest 411.603795 443.510768 19.922032" +$ns_ at 55.000000 "$node_(10) setdest 409.167270 402.886591 19.988293" + +$ns_ at 56.000000 "$node_(1) setdest 459.358776 366.350314 19.997896" +$ns_ at 56.000000 "$node_(2) setdest 474.439207 506.513884 19.093672" +$ns_ at 56.000000 "$node_(3) setdest 448.331346 496.551801 15.486266" +$ns_ at 56.000000 "$node_(4) setdest 559.796949 465.725065 17.078034" +$ns_ at 56.000000 "$node_(5) setdest 453.233562 375.205933 12.772907" +$ns_ at 56.000000 "$node_(6) setdest 398.640054 431.491358 19.998170" +$ns_ at 56.000000 "$node_(7) setdest 376.341269 424.293425 19.987200" +$ns_ at 56.000000 "$node_(8) setdest 395.289271 480.727854 19.981702" +$ns_ at 56.000000 "$node_(9) setdest 424.686463 458.541108 19.926549" +$ns_ at 56.000000 "$node_(10) setdest 426.588462 412.682524 19.986450" + +$ns_ at 57.000000 "$node_(1) setdest 474.147494 357.589355 17.188968" +$ns_ at 57.000000 "$node_(2) setdest 487.397435 521.211648 19.594386" +$ns_ at 57.000000 "$node_(3) setdest 449.175044 489.763733 6.840299" +$ns_ at 57.000000 "$node_(4) setdest 541.945847 460.100331 18.716289" +$ns_ at 57.000000 "$node_(5) setdest 461.910819 364.190126 14.022938" +$ns_ at 57.000000 "$node_(6) setdest 418.176323 435.711193 19.986816" +$ns_ at 57.000000 "$node_(7) setdest 395.624998 428.517124 19.740868" +$ns_ at 57.000000 "$node_(8) setdest 414.491546 475.216368 19.977584" +$ns_ at 57.000000 "$node_(9) setdest 432.332273 476.914703 19.900939" +$ns_ at 57.000000 "$node_(10) setdest 442.302058 425.016869 19.976315" + +$ns_ at 58.000000 "$node_(1) setdest 481.754901 367.368742 12.389877" +$ns_ at 58.000000 "$node_(2) setdest 501.253150 535.247087 19.722434" +$ns_ at 58.000000 "$node_(3) setdest 452.555239 490.811571 3.538882" +$ns_ at 58.000000 "$node_(4) setdest 523.200618 453.356899 19.921282" +$ns_ at 58.000000 "$node_(5) setdest 462.037992 362.225513 1.968725" +$ns_ at 58.000000 "$node_(6) setdest 436.692511 443.161055 19.958699" +$ns_ at 58.000000 "$node_(7) setdest 407.232993 444.170234 19.487570" +$ns_ at 58.000000 "$node_(8) setdest 432.402128 466.376774 19.973166" +$ns_ at 58.000000 "$node_(9) setdest 433.371712 496.829333 19.941738" +$ns_ at 58.000000 "$node_(10) setdest 455.460442 440.041839 19.972301" + +$ns_ at 59.000000 "$node_(1) setdest 490.840101 378.013714 13.994866" +$ns_ at 59.000000 "$node_(2) setdest 517.254096 544.656606 18.562578" +$ns_ at 59.000000 "$node_(3) setdest 456.805761 493.906270 5.257765" +$ns_ at 59.000000 "$node_(4) setdest 505.296597 444.480311 19.983688" +$ns_ at 59.000000 "$node_(5) setdest 459.985759 364.047842 2.744548" +$ns_ at 59.000000 "$node_(6) setdest 452.558464 455.227354 19.932988" +$ns_ at 59.000000 "$node_(7) setdest 405.781902 462.093611 17.982022" +$ns_ at 59.000000 "$node_(8) setdest 448.131072 454.084488 19.962465" +$ns_ at 59.000000 "$node_(9) setdest 431.643951 516.751552 19.996999" +$ns_ at 59.000000 "$node_(10) setdest 465.450760 457.326282 19.963928" + +$ns_ at 60.000000 "$node_(1) setdest 498.659527 391.489267 15.579922" +$ns_ at 60.000000 "$node_(2) setdest 534.755136 543.334674 17.550895" +$ns_ at 60.000000 "$node_(3) setdest 462.401977 497.870630 6.858118" +$ns_ at 60.000000 "$node_(4) setdest 488.791604 433.220713 19.979823" +$ns_ at 60.000000 "$node_(5) setdest 456.842494 367.045729 4.343667" +$ns_ at 60.000000 "$node_(6) setdest 465.331500 470.591333 19.980047" +$ns_ at 60.000000 "$node_(7) setdest 408.815556 476.318798 14.545068" +$ns_ at 60.000000 "$node_(8) setdest 460.493008 438.434407 19.943483" +$ns_ at 60.000000 "$node_(9) setdest 438.396275 534.407383 18.902969" +$ns_ at 60.000000 "$node_(10) setdest 472.292912 476.109195 19.990319" + +$ns_ at 61.000000 "$node_(1) setdest 506.422494 406.848972 17.210003" +$ns_ at 61.000000 "$node_(2) setdest 550.122906 534.408750 17.771901" +$ns_ at 61.000000 "$node_(3) setdest 469.441169 502.553605 8.454613" +$ns_ at 61.000000 "$node_(4) setdest 473.810761 419.970774 19.999664" +$ns_ at 61.000000 "$node_(5) setdest 452.869841 371.468100 5.944690" +$ns_ at 61.000000 "$node_(6) setdest 475.369253 487.873233 19.985509" +$ns_ at 61.000000 "$node_(7) setdest 420.177106 474.634595 11.485703" +$ns_ at 61.000000 "$node_(8) setdest 468.519800 420.146652 19.971764" +$ns_ at 61.000000 "$node_(9) setdest 456.064353 537.336055 17.909162" +$ns_ at 61.000000 "$node_(10) setdest 480.398446 494.324173 19.937028" + +$ns_ at 62.000000 "$node_(1) setdest 514.243671 423.949759 18.804460" +$ns_ at 62.000000 "$node_(2) setdest 558.597008 518.822165 17.741252" +$ns_ at 62.000000 "$node_(3) setdest 478.289486 507.332608 10.056420" +$ns_ at 62.000000 "$node_(4) setdest 459.228341 406.299144 19.989007" +$ns_ at 62.000000 "$node_(5) setdest 448.065246 377.284900 7.544488" +$ns_ at 62.000000 "$node_(6) setdest 483.292150 506.217705 19.982291" +$ns_ at 62.000000 "$node_(7) setdest 431.806592 467.919195 13.429130" +$ns_ at 62.000000 "$node_(8) setdest 473.157337 400.709492 19.982741" +$ns_ at 62.000000 "$node_(9) setdest 471.569985 531.759731 16.477864" +$ns_ at 62.000000 "$node_(10) setdest 493.533931 509.329068 19.942113" + +$ns_ at 63.000000 "$node_(1) setdest 526.606177 439.546625 19.902105" +$ns_ at 63.000000 "$node_(2) setdest 563.865355 500.625921 18.943568" +$ns_ at 63.000000 "$node_(3) setdest 488.865584 512.231308 11.655519" +$ns_ at 63.000000 "$node_(4) setdest 443.896167 393.463964 19.995435" +$ns_ at 63.000000 "$node_(5) setdest 443.134296 384.956898 9.119968" +$ns_ at 63.000000 "$node_(6) setdest 483.704532 525.909424 19.696036" +$ns_ at 63.000000 "$node_(7) setdest 441.488756 456.383377 15.060524" +$ns_ at 63.000000 "$node_(8) setdest 471.609423 381.023538 19.746717" +$ns_ at 63.000000 "$node_(9) setdest 484.411309 520.929706 16.798483" +$ns_ at 63.000000 "$node_(10) setdest 509.195143 521.746549 19.986681" + +$ns_ at 64.000000 "$node_(1) setdest 540.433816 453.956062 19.970865" +$ns_ at 64.000000 "$node_(2) setdest 568.124533 481.658093 19.440142" +$ns_ at 64.000000 "$node_(3) setdest 501.350038 516.664198 13.248098" +$ns_ at 64.000000 "$node_(4) setdest 433.455434 376.647829 19.793718" +$ns_ at 64.000000 "$node_(5) setdest 440.254466 395.258128 10.696204" +$ns_ at 64.000000 "$node_(6) setdest 469.652755 537.742107 18.370216" +$ns_ at 64.000000 "$node_(7) setdest 449.511886 441.764181 16.676076" +$ns_ at 64.000000 "$node_(8) setdest 457.550576 367.766860 19.323320" +$ns_ at 64.000000 "$node_(9) setdest 498.202162 508.754862 18.396045" +$ns_ at 64.000000 "$node_(10) setdest 527.839755 528.576108 19.856093" + +$ns_ at 65.000000 "$node_(1) setdest 536.004799 446.599409 8.586997" +$ns_ at 65.000000 "$node_(2) setdest 564.983309 461.913673 19.992735" +$ns_ at 65.000000 "$node_(3) setdest 500.747238 516.306833 0.700769" +$ns_ at 65.000000 "$node_(4) setdest 438.545894 357.691580 19.627842" +$ns_ at 65.000000 "$node_(5) setdest 441.586829 385.431591 9.916452" +$ns_ at 65.000000 "$node_(6) setdest 457.118274 526.488725 16.844935" +$ns_ at 65.000000 "$node_(7) setdest 457.806607 425.470338 18.283646" +$ns_ at 65.000000 "$node_(8) setdest 439.123220 364.402269 18.732003" +$ns_ at 65.000000 "$node_(9) setdest 510.416367 493.167415 19.802912" +$ns_ at 65.000000 "$node_(10) setdest 547.813104 529.300629 19.986485" + +$ns_ at 66.000000 "$node_(1) setdest 535.511187 436.310624 10.300619" +$ns_ at 66.000000 "$node_(2) setdest 562.492130 442.069901 19.999531" +$ns_ at 66.000000 "$node_(3) setdest 500.517193 514.277017 2.042810" +$ns_ at 66.000000 "$node_(4) setdest 445.642038 338.993091 19.999719" +$ns_ at 66.000000 "$node_(5) setdest 444.691682 374.116179 11.733655" +$ns_ at 66.000000 "$node_(6) setdest 455.508240 510.110942 16.456730" +$ns_ at 66.000000 "$node_(7) setdest 468.428808 408.858654 19.717485" +$ns_ at 66.000000 "$node_(8) setdest 419.931073 364.342807 19.192239" +$ns_ at 66.000000 "$node_(9) setdest 524.816169 479.714481 19.706235" +$ns_ at 66.000000 "$node_(10) setdest 567.683020 530.920241 19.935814" + +$ns_ at 67.000000 "$node_(1) setdest 534.977282 424.421906 11.900701" +$ns_ at 67.000000 "$node_(2) setdest 560.569724 422.162987 19.999522" +$ns_ at 67.000000 "$node_(3) setdest 500.250852 510.644079 3.642688" +$ns_ at 67.000000 "$node_(4) setdest 452.955902 320.378413 19.999972" +$ns_ at 67.000000 "$node_(5) setdest 448.073535 361.217857 13.334303" +$ns_ at 67.000000 "$node_(6) setdest 451.399100 495.313815 15.357083" +$ns_ at 67.000000 "$node_(7) setdest 481.733772 393.932468 19.995327" +$ns_ at 67.000000 "$node_(8) setdest 408.322022 365.329378 11.650896" +$ns_ at 67.000000 "$node_(9) setdest 539.158447 466.290889 19.644179" +$ns_ at 67.000000 "$node_(10) setdest 586.678542 530.162271 19.010638" + +$ns_ at 68.000000 "$node_(1) setdest 534.442950 410.931909 13.500575" +$ns_ at 68.000000 "$node_(2) setdest 558.901130 402.232965 19.999749" +$ns_ at 68.000000 "$node_(3) setdest 500.103546 505.403612 5.242537" +$ns_ at 68.000000 "$node_(4) setdest 460.080618 301.691006 19.999519" +$ns_ at 68.000000 "$node_(5) setdest 452.196525 346.864412 14.933869" +$ns_ at 68.000000 "$node_(6) setdest 438.416880 485.903560 16.034056" +$ns_ at 68.000000 "$node_(7) setdest 492.545093 377.214664 19.909034" +$ns_ at 68.000000 "$node_(8) setdest 416.839668 364.609333 8.548026" +$ns_ at 68.000000 "$node_(9) setdest 555.040544 454.694707 19.665006" +$ns_ at 68.000000 "$node_(10) setdest 586.825175 529.031950 1.139792" + +$ns_ at 69.000000 "$node_(1) setdest 534.282344 395.832941 15.099822" +$ns_ at 69.000000 "$node_(2) setdest 557.329589 382.294855 19.999950" +$ns_ at 69.000000 "$node_(3) setdest 500.199783 498.561725 6.842563" +$ns_ at 69.000000 "$node_(4) setdest 466.364502 282.705492 19.998423" +$ns_ at 69.000000 "$node_(5) setdest 457.330300 331.148052 16.533591" +$ns_ at 69.000000 "$node_(6) setdest 422.274174 478.513804 17.753744" +$ns_ at 69.000000 "$node_(7) setdest 503.862909 361.836359 19.094115" +$ns_ at 69.000000 "$node_(8) setdest 427.020554 367.160258 10.495602" +$ns_ at 69.000000 "$node_(9) setdest 571.735283 444.352269 19.638745" +$ns_ at 69.000000 "$node_(10) setdest 585.455531 526.966140 2.478608" + +$ns_ at 70.000000 "$node_(1) setdest 534.838474 379.142686 16.699517" +$ns_ at 70.000000 "$node_(2) setdest 555.525020 362.376742 19.999692" +$ns_ at 70.000000 "$node_(3) setdest 500.519465 490.124854 8.442926" +$ns_ at 70.000000 "$node_(4) setdest 471.472022 263.373599 19.995221" +$ns_ at 70.000000 "$node_(5) setdest 463.120393 313.962864 18.134383" +$ns_ at 70.000000 "$node_(6) setdest 408.213514 466.311334 18.617262" +$ns_ at 70.000000 "$node_(7) setdest 507.696506 363.297112 4.102471" +$ns_ at 70.000000 "$node_(8) setdest 439.013807 368.678079 12.088916" +$ns_ at 70.000000 "$node_(9) setdest 589.464572 437.178961 19.125482" +$ns_ at 70.000000 "$node_(10) setdest 583.204839 523.564669 4.078679" + +$ns_ at 71.000000 "$node_(1) setdest 536.112282 360.887514 18.299561" +$ns_ at 71.000000 "$node_(2) setdest 553.523133 342.477773 19.999413" +$ns_ at 71.000000 "$node_(3) setdest 501.048110 480.096108 10.042669" +$ns_ at 71.000000 "$node_(4) setdest 475.511485 243.786853 19.998948" +$ns_ at 71.000000 "$node_(5) setdest 469.394485 295.340571 19.650802" +$ns_ at 71.000000 "$node_(6) setdest 409.735707 449.316228 17.063139" +$ns_ at 71.000000 "$node_(7) setdest 509.753088 368.161673 5.281428" +$ns_ at 71.000000 "$node_(8) setdest 452.539013 366.922685 13.638644" +$ns_ at 71.000000 "$node_(9) setdest 593.411094 420.224329 17.407888" +$ns_ at 71.000000 "$node_(10) setdest 580.200954 518.748793 5.675913" + +$ns_ at 72.000000 "$node_(1) setdest 538.243058 341.252788 19.750004" +$ns_ at 72.000000 "$node_(2) setdest 552.067476 322.531052 19.999766" +$ns_ at 72.000000 "$node_(3) setdest 502.043198 468.496468 11.642244" +$ns_ at 72.000000 "$node_(4) setdest 478.483272 224.011916 19.996990" +$ns_ at 72.000000 "$node_(5) setdest 475.540955 276.308901 19.999589" +$ns_ at 72.000000 "$node_(6) setdest 417.775607 434.844392 16.555181" +$ns_ at 72.000000 "$node_(7) setdest 510.902737 374.952179 6.887138" +$ns_ at 72.000000 "$node_(8) setdest 467.088300 362.216077 15.291629" +$ns_ at 72.000000 "$node_(9) setdest 588.386379 404.792399 16.229363" +$ns_ at 72.000000 "$node_(10) setdest 576.937804 512.244383 7.277053" + +$ns_ at 73.000000 "$node_(1) setdest 540.337760 321.362851 19.999934" +$ns_ at 73.000000 "$node_(2) setdest 550.508182 302.593413 19.998521" +$ns_ at 73.000000 "$node_(3) setdest 503.738640 455.363500 13.241955" +$ns_ at 73.000000 "$node_(4) setdest 480.607929 204.125582 19.999511" +$ns_ at 73.000000 "$node_(5) setdest 482.491192 257.559586 19.996064" +$ns_ at 73.000000 "$node_(6) setdest 424.060892 418.184577 17.806018" +$ns_ at 73.000000 "$node_(7) setdest 511.222289 383.432144 8.485983" +$ns_ at 73.000000 "$node_(8) setdest 483.575039 358.506602 16.898898" +$ns_ at 73.000000 "$node_(9) setdest 581.016072 390.553508 16.033323" +$ns_ at 73.000000 "$node_(10) setdest 573.633501 504.005362 8.876930" + +$ns_ at 74.000000 "$node_(1) setdest 542.640833 301.496124 19.999775" +$ns_ at 74.000000 "$node_(2) setdest 547.211487 282.875900 19.991211" +$ns_ at 74.000000 "$node_(3) setdest 506.228546 440.731667 14.842176" +$ns_ at 74.000000 "$node_(4) setdest 483.949062 184.414401 19.992345" +$ns_ at 74.000000 "$node_(5) setdest 490.772371 239.358717 19.996239" +$ns_ at 74.000000 "$node_(6) setdest 428.971719 399.458697 19.359101" +$ns_ at 74.000000 "$node_(7) setdest 510.977845 393.521870 10.092687" +$ns_ at 74.000000 "$node_(8) setdest 501.649850 360.807649 18.220692" +$ns_ at 74.000000 "$node_(9) setdest 574.169947 374.218269 17.711845" +$ns_ at 74.000000 "$node_(10) setdest 569.666315 494.308359 10.477138" + +$ns_ at 75.000000 "$node_(1) setdest 545.286982 281.676690 19.995301" +$ns_ at 75.000000 "$node_(2) setdest 541.579801 263.698851 19.986873" +$ns_ at 75.000000 "$node_(3) setdest 509.521933 424.622555 16.442319" +$ns_ at 75.000000 "$node_(4) setdest 489.316472 165.158057 19.990394" +$ns_ at 75.000000 "$node_(5) setdest 499.170013 221.211394 19.996143" +$ns_ at 75.000000 "$node_(6) setdest 433.995690 380.248856 19.855938" +$ns_ at 75.000000 "$node_(7) setdest 509.830491 405.143663 11.678292" +$ns_ at 75.000000 "$node_(8) setdest 514.956828 375.067165 19.504088" +$ns_ at 75.000000 "$node_(9) setdest 563.225009 358.537277 19.122897" +$ns_ at 75.000000 "$node_(10) setdest 564.059199 483.616863 12.072607" + +$ns_ at 76.000000 "$node_(1) setdest 550.377288 262.356101 19.979900" +$ns_ at 76.000000 "$node_(2) setdest 533.540653 245.403103 19.984051" +$ns_ at 76.000000 "$node_(3) setdest 513.154562 406.949557 18.042473" +$ns_ at 76.000000 "$node_(4) setdest 496.890661 146.658823 19.989748" +$ns_ at 76.000000 "$node_(5) setdest 507.041942 202.829163 19.996842" +$ns_ at 76.000000 "$node_(6) setdest 441.406995 362.103882 19.600192" +$ns_ at 76.000000 "$node_(7) setdest 506.263148 417.944045 13.288180" +$ns_ at 76.000000 "$node_(8) setdest 523.622151 393.089514 19.997322" +$ns_ at 76.000000 "$node_(9) setdest 562.694870 356.369564 2.231598" +$ns_ at 76.000000 "$node_(10) setdest 556.855146 471.989381 13.678331" + +$ns_ at 77.000000 "$node_(1) setdest 559.088417 244.398391 19.959036" +$ns_ at 77.000000 "$node_(2) setdest 521.840951 229.244414 19.949593" +$ns_ at 77.000000 "$node_(3) setdest 516.301733 387.623702 19.580433" +$ns_ at 77.000000 "$node_(4) setdest 505.320440 128.522356 19.999815" +$ns_ at 77.000000 "$node_(5) setdest 515.254078 184.596382 19.996837" +$ns_ at 77.000000 "$node_(6) setdest 437.257639 351.072545 11.785905" +$ns_ at 77.000000 "$node_(7) setdest 500.846086 431.809163 14.885767" +$ns_ at 77.000000 "$node_(8) setdest 529.413794 412.094108 19.867504" +$ns_ at 77.000000 "$node_(9) setdest 565.572234 358.356299 3.496619" +$ns_ at 77.000000 "$node_(10) setdest 548.808724 459.002515 15.277551" + +$ns_ at 78.000000 "$node_(1) setdest 568.615890 226.866730 19.953243" +$ns_ at 78.000000 "$node_(2) setdest 506.765408 216.107743 19.996103" +$ns_ at 78.000000 "$node_(3) setdest 518.586099 367.756661 19.997941" +$ns_ at 78.000000 "$node_(4) setdest 511.394728 109.548785 19.922183" +$ns_ at 78.000000 "$node_(5) setdest 521.978222 165.767794 19.993245" +$ns_ at 78.000000 "$node_(6) setdest 429.959797 352.164602 7.379098" +$ns_ at 78.000000 "$node_(7) setdest 494.140339 446.876872 16.492510" +$ns_ at 78.000000 "$node_(8) setdest 525.963760 430.106023 18.339351" +$ns_ at 78.000000 "$node_(9) setdest 569.000240 362.124933 5.094490" +$ns_ at 78.000000 "$node_(10) setdest 540.470647 444.327845 16.878077" + +$ns_ at 79.000000 "$node_(1) setdest 574.185687 207.679959 19.978859" +$ns_ at 79.000000 "$node_(2) setdest 491.733402 202.925804 19.993117" +$ns_ at 79.000000 "$node_(3) setdest 519.783067 347.795031 19.997485" +$ns_ at 79.000000 "$node_(4) setdest 508.990521 89.908093 19.787293" +$ns_ at 79.000000 "$node_(5) setdest 526.722730 146.349523 19.989487" +$ns_ at 79.000000 "$node_(6) setdest 421.402925 354.646309 8.909485" +$ns_ at 79.000000 "$node_(7) setdest 484.722595 462.296802 18.068430" +$ns_ at 79.000000 "$node_(8) setdest 513.980626 443.368125 17.873971" +$ns_ at 79.000000 "$node_(9) setdest 572.479374 367.825573 6.678447" +$ns_ at 79.000000 "$node_(10) setdest 529.744275 429.315243 18.450834" + +$ns_ at 80.000000 "$node_(1) setdest 576.539904 187.859407 19.959875" +$ns_ at 80.000000 "$node_(2) setdest 480.207033 186.703672 19.900119" +$ns_ at 80.000000 "$node_(3) setdest 519.812887 327.797852 19.997201" +$ns_ at 80.000000 "$node_(4) setdest 497.292409 73.848971 19.868096" +$ns_ at 80.000000 "$node_(5) setdest 528.886672 126.481962 19.985060" +$ns_ at 80.000000 "$node_(6) setdest 415.020974 363.015006 10.524466" +$ns_ at 80.000000 "$node_(7) setdest 471.817545 477.042190 19.595070" +$ns_ at 80.000000 "$node_(8) setdest 503.184441 458.887502 18.905255" +$ns_ at 80.000000 "$node_(9) setdest 575.661628 375.491501 8.300193" +$ns_ at 80.000000 "$node_(10) setdest 514.499292 416.740217 19.762106" + +$ns_ at 81.000000 "$node_(1) setdest 574.626392 167.968199 19.983034" +$ns_ at 81.000000 "$node_(2) setdest 475.821624 167.311287 19.882063" +$ns_ at 81.000000 "$node_(3) setdest 518.646194 307.835016 19.996899" +$ns_ at 81.000000 "$node_(4) setdest 483.578324 59.304461 19.990471" +$ns_ at 81.000000 "$node_(5) setdest 527.651007 106.553198 19.967035" +$ns_ at 81.000000 "$node_(6) setdest 410.440591 374.312692 12.190882" +$ns_ at 81.000000 "$node_(7) setdest 456.292988 489.616829 19.978324" +$ns_ at 81.000000 "$node_(8) setdest 498.005915 477.169448 19.001228" +$ns_ at 81.000000 "$node_(9) setdest 579.725346 384.508368 9.890283" +$ns_ at 81.000000 "$node_(10) setdest 495.634540 410.515884 19.865074" + +$ns_ at 82.000000 "$node_(1) setdest 573.744222 148.036265 19.951446" +$ns_ at 82.000000 "$node_(2) setdest 474.558082 147.369780 19.981497" +$ns_ at 82.000000 "$node_(3) setdest 516.187480 287.990063 19.996686" +$ns_ at 82.000000 "$node_(4) setdest 474.515345 41.610136 19.880309" +$ns_ at 82.000000 "$node_(5) setdest 522.091375 87.379602 19.963374" +$ns_ at 82.000000 "$node_(6) setdest 414.780703 386.764139 13.186170" +$ns_ at 82.000000 "$node_(7) setdest 438.763875 499.134151 19.946158" +$ns_ at 82.000000 "$node_(8) setdest 500.792450 494.938482 17.986199" +$ns_ at 82.000000 "$node_(9) setdest 588.726105 391.049918 11.126794" +$ns_ at 82.000000 "$node_(10) setdest 475.806091 412.296842 19.908270" + +$ns_ at 83.000000 "$node_(1) setdest 577.404142 128.397041 19.977341" +$ns_ at 83.000000 "$node_(2) setdest 471.772322 127.583434 19.981491" +$ns_ at 83.000000 "$node_(3) setdest 512.431069 268.349770 19.996293" +$ns_ at 83.000000 "$node_(4) setdest 467.791067 22.805362 19.970865" +$ns_ at 83.000000 "$node_(5) setdest 513.352198 69.412545 19.979699" +$ns_ at 83.000000 "$node_(6) setdest 426.772346 396.441652 15.409535" +$ns_ at 83.000000 "$node_(7) setdest 419.593750 498.212291 19.192278" +$ns_ at 83.000000 "$node_(8) setdest 513.064464 506.922013 17.152474" +$ns_ at 83.000000 "$node_(9) setdest 594.729903 387.107313 7.182599" +$ns_ at 83.000000 "$node_(10) setdest 456.101092 415.641689 19.986870" + +$ns_ at 84.000000 "$node_(1) setdest 583.213841 109.262849 19.996747" +$ns_ at 84.000000 "$node_(2) setdest 476.419501 108.372979 19.764560" +$ns_ at 84.000000 "$node_(3) setdest 507.266385 249.033080 19.995211" +$ns_ at 84.000000 "$node_(4) setdest 462.492387 11.625346 12.372096" +$ns_ at 84.000000 "$node_(5) setdest 502.089366 52.902858 19.985523" +$ns_ at 84.000000 "$node_(6) setdest 437.511332 409.573265 16.963640" +$ns_ at 84.000000 "$node_(7) setdest 412.014189 481.555847 18.299914" +$ns_ at 84.000000 "$node_(8) setdest 526.654692 519.163066 18.290371" +$ns_ at 84.000000 "$node_(9) setdest 592.714197 381.218901 6.223863" +$ns_ at 84.000000 "$node_(10) setdest 436.259652 418.153011 19.999737" + +$ns_ at 85.000000 "$node_(1) setdest 587.867212 89.874667 19.938793" +$ns_ at 85.000000 "$node_(2) setdest 489.338727 93.291200 19.858662" +$ns_ at 85.000000 "$node_(3) setdest 500.466087 230.231287 19.993786" +$ns_ at 85.000000 "$node_(4) setdest 463.199929 17.989912 6.403773" +$ns_ at 85.000000 "$node_(5) setdest 487.155522 39.734993 19.910107" +$ns_ at 85.000000 "$node_(6) setdest 443.956620 426.937800 18.522117" +$ns_ at 85.000000 "$node_(7) setdest 404.982373 466.107830 16.973145" +$ns_ at 85.000000 "$node_(8) setdest 537.501281 535.276226 19.423759" +$ns_ at 85.000000 "$node_(9) setdest 588.601285 374.648766 7.751304" +$ns_ at 85.000000 "$node_(10) setdest 417.844644 423.934655 19.301293" + +$ns_ at 86.000000 "$node_(1) setdest 583.707241 70.590453 19.727804" +$ns_ at 86.000000 "$node_(2) setdest 507.837671 86.031211 19.872553" +$ns_ at 86.000000 "$node_(3) setdest 492.487335 211.892008 19.999741" +$ns_ at 86.000000 "$node_(4) setdest 460.684485 25.836346 8.239780" +$ns_ at 86.000000 "$node_(5) setdest 468.395888 33.126211 19.889693" +$ns_ at 86.000000 "$node_(6) setdest 439.617458 445.683926 19.241766" +$ns_ at 86.000000 "$node_(7) setdest 405.686381 458.064025 8.074554" +$ns_ at 86.000000 "$node_(8) setdest 552.956635 544.737738 18.121484" +$ns_ at 86.000000 "$node_(9) setdest 579.604555 372.897661 9.165562" +$ns_ at 86.000000 "$node_(10) setdest 417.084191 434.018891 10.112869" + +$ns_ at 87.000000 "$node_(1) setdest 568.163720 58.723273 19.555844" +$ns_ at 87.000000 "$node_(2) setdest 527.597802 85.380885 19.770830" +$ns_ at 87.000000 "$node_(3) setdest 484.486710 193.561998 19.999982" +$ns_ at 87.000000 "$node_(4) setdest 458.575323 35.422524 9.815466" +$ns_ at 87.000000 "$node_(5) setdest 448.529777 33.971581 19.884089" +$ns_ at 87.000000 "$node_(6) setdest 425.906823 457.123064 17.855963" +$ns_ at 87.000000 "$node_(7) setdest 408.452236 458.872840 2.881690" +$ns_ at 87.000000 "$node_(8) setdest 568.879506 540.146677 16.571531" +$ns_ at 87.000000 "$node_(9) setdest 569.851338 377.857203 10.941769" +$ns_ at 87.000000 "$node_(10) setdest 421.850394 441.875446 9.189240" + +$ns_ at 88.000000 "$node_(1) setdest 548.683399 54.449519 19.943618" +$ns_ at 88.000000 "$node_(2) setdest 546.933768 82.546059 19.542668" +$ns_ at 88.000000 "$node_(3) setdest 476.681038 175.148773 19.999384" +$ns_ at 88.000000 "$node_(4) setdest 461.366028 46.344763 11.273125" +$ns_ at 88.000000 "$node_(5) setdest 430.847089 43.014463 19.860795" +$ns_ at 88.000000 "$node_(6) setdest 410.587500 453.395095 15.766401" +$ns_ at 88.000000 "$node_(7) setdest 412.362473 461.216708 4.558911" +$ns_ at 88.000000 "$node_(8) setdest 582.276440 530.346179 16.599024" +$ns_ at 88.000000 "$node_(9) setdest 560.884729 386.754776 12.631979" +$ns_ at 88.000000 "$node_(10) setdest 424.841637 452.326111 10.870324" + +$ns_ at 89.000000 "$node_(1) setdest 529.270019 51.276340 19.671004" +$ns_ at 89.000000 "$node_(2) setdest 565.972708 77.913315 19.594477" +$ns_ at 89.000000 "$node_(3) setdest 469.023624 156.673222 19.999549" +$ns_ at 89.000000 "$node_(4) setdest 471.973165 53.282586 12.674571" +$ns_ at 89.000000 "$node_(5) setdest 419.286989 58.968693 19.702116" +$ns_ at 89.000000 "$node_(6) setdest 404.803098 439.911564 14.671910" +$ns_ at 89.000000 "$node_(7) setdest 416.934945 465.341967 6.158349" +$ns_ at 89.000000 "$node_(8) setdest 595.673075 523.961962 14.840082" +$ns_ at 89.000000 "$node_(9) setdest 554.608120 399.466950 14.177277" +$ns_ at 89.000000 "$node_(10) setdest 428.943927 464.092911 12.461395" + +$ns_ at 90.000000 "$node_(1) setdest 510.446672 45.560687 19.671987" +$ns_ at 90.000000 "$node_(2) setdest 581.900465 67.427062 19.069739" +$ns_ at 90.000000 "$node_(3) setdest 460.852421 138.421298 19.997532" +$ns_ at 90.000000 "$node_(4) setdest 486.548028 54.559831 14.630720" +$ns_ at 90.000000 "$node_(5) setdest 417.520328 78.793399 19.903267" +$ns_ at 90.000000 "$node_(6) setdest 412.989536 428.553731 14.000647" +$ns_ at 90.000000 "$node_(7) setdest 421.706379 471.443160 7.745395" +$ns_ at 90.000000 "$node_(8) setdest 596.698144 525.418757 1.781297" +$ns_ at 90.000000 "$node_(9) setdest 552.296746 415.092034 15.795117" +$ns_ at 90.000000 "$node_(10) setdest 437.002050 475.535203 13.994977" + +$ns_ at 91.000000 "$node_(1) setdest 491.216630 41.851459 19.584506" +$ns_ at 91.000000 "$node_(2) setdest 597.391272 59.977823 17.188841" +$ns_ at 91.000000 "$node_(3) setdest 451.041441 121.016462 19.979581" +$ns_ at 91.000000 "$node_(4) setdest 502.763761 55.445814 16.239919" +$ns_ at 91.000000 "$node_(5) setdest 420.064577 98.608541 19.977814" +$ns_ at 91.000000 "$node_(6) setdest 427.036725 421.558974 15.692359" +$ns_ at 91.000000 "$node_(7) setdest 425.224219 480.087841 9.333043" +$ns_ at 91.000000 "$node_(8) setdest 595.078325 527.548271 2.675565" +$ns_ at 91.000000 "$node_(9) setdest 555.215513 432.214111 17.369074" +$ns_ at 91.000000 "$node_(10) setdest 450.540971 483.206577 15.561245" + +$ns_ at 92.000000 "$node_(1) setdest 471.659908 39.220660 19.732878" +$ns_ at 92.000000 "$node_(2) setdest 599.260739 62.844430 3.422330" +$ns_ at 92.000000 "$node_(3) setdest 437.200521 106.710742 19.905394" +$ns_ at 92.000000 "$node_(4) setdest 520.463512 57.440346 17.811775" +$ns_ at 92.000000 "$node_(5) setdest 425.407301 117.784600 19.906430" +$ns_ at 92.000000 "$node_(6) setdest 441.106703 411.581456 17.248628" +$ns_ at 92.000000 "$node_(7) setdest 426.330437 490.960272 10.928563" +$ns_ at 92.000000 "$node_(8) setdest 592.410482 530.533599 4.003694" +$ns_ at 92.000000 "$node_(9) setdest 564.412524 448.873432 19.029397" +$ns_ at 92.000000 "$node_(10) setdest 467.267881 487.413523 17.247838" + +$ns_ at 93.000000 "$node_(1) setdest 453.466313 33.175001 19.171774" +$ns_ at 93.000000 "$node_(2) setdest 598.291343 67.449039 4.705545" +$ns_ at 93.000000 "$node_(3) setdest 420.425409 96.070528 19.865007" +$ns_ at 93.000000 "$node_(4) setdest 539.462165 61.491498 19.425773" +$ns_ at 93.000000 "$node_(5) setdest 434.020030 135.209813 19.437519" +$ns_ at 93.000000 "$node_(6) setdest 455.272226 399.073428 18.897428" +$ns_ at 93.000000 "$node_(7) setdest 427.424847 503.463387 12.550921" +$ns_ at 93.000000 "$node_(8) setdest 593.809342 529.223559 1.916510" +$ns_ at 93.000000 "$node_(9) setdest 576.244847 464.961799 19.970965" +$ns_ at 93.000000 "$node_(10) setdest 485.902916 490.396138 18.872215" + +$ns_ at 94.000000 "$node_(1) setdest 440.069927 20.181823 18.662418" +$ns_ at 94.000000 "$node_(2) setdest 596.289520 73.428855 6.305989" +$ns_ at 94.000000 "$node_(3) setdest 418.138459 85.885901 10.438235" +$ns_ at 94.000000 "$node_(4) setdest 559.121472 65.074947 19.983229" +$ns_ at 94.000000 "$node_(5) setdest 433.752323 153.363814 18.155975" +$ns_ at 94.000000 "$node_(6) setdest 468.907539 384.565199 19.910059" +$ns_ at 94.000000 "$node_(7) setdest 423.892158 517.002474 13.992382" +$ns_ at 94.000000 "$node_(8) setdest 594.496732 525.690274 3.599529" +$ns_ at 94.000000 "$node_(9) setdest 587.176402 481.519615 19.840871" +$ns_ at 94.000000 "$node_(10) setdest 505.557558 493.894481 19.963551" + +$ns_ at 95.000000 "$node_(1) setdest 427.052116 6.847278 18.635275" +$ns_ at 95.000000 "$node_(2) setdest 594.485579 81.120759 7.900607" +$ns_ at 95.000000 "$node_(3) setdest 420.911514 86.122459 2.783127" +$ns_ at 95.000000 "$node_(4) setdest 579.042638 65.882017 19.937508" +$ns_ at 95.000000 "$node_(5) setdest 419.915636 161.815294 16.213618" +$ns_ at 95.000000 "$node_(6) setdest 479.384927 367.530238 19.999139" +$ns_ at 95.000000 "$node_(7) setdest 413.636242 520.451794 10.820426" +$ns_ at 95.000000 "$node_(8) setdest 595.480416 520.598937 5.185494" +$ns_ at 95.000000 "$node_(9) setdest 588.142218 501.154215 19.658340" +$ns_ at 95.000000 "$node_(10) setdest 525.501306 495.121901 19.981483" + +$ns_ at 96.000000 "$node_(1) setdest 410.783725 0.750524 17.373284" +$ns_ at 96.000000 "$node_(2) setdest 593.127576 90.529264 9.506006" +$ns_ at 96.000000 "$node_(3) setdest 424.469755 88.906562 4.517998" +$ns_ at 96.000000 "$node_(4) setdest 589.252016 52.033514 17.205011" +$ns_ at 96.000000 "$node_(5) setdest 406.673798 155.191050 14.806312" +$ns_ at 96.000000 "$node_(6) setdest 483.266169 352.608643 15.418108" +$ns_ at 96.000000 "$node_(7) setdest 410.018337 513.556034 7.787216" +$ns_ at 96.000000 "$node_(8) setdest 595.625065 513.990687 6.609832" +$ns_ at 96.000000 "$node_(9) setdest 576.073216 515.525770 18.767056" +$ns_ at 96.000000 "$node_(10) setdest 544.912679 490.672198 19.914850" + +$ns_ at 97.000000 "$node_(1) setdest 419.156506 3.762852 8.898179" +$ns_ at 97.000000 "$node_(2) setdest 591.679304 101.541365 11.106928" +$ns_ at 97.000000 "$node_(3) setdest 429.445594 92.463295 6.116317" +$ns_ at 97.000000 "$node_(4) setdest 580.554829 37.419012 17.006609" +$ns_ at 97.000000 "$node_(5) setdest 406.950962 153.565137 1.649367" +$ns_ at 97.000000 "$node_(6) setdest 479.856644 351.887222 3.485012" +$ns_ at 97.000000 "$node_(7) setdest 408.684567 504.276932 9.374469" +$ns_ at 97.000000 "$node_(8) setdest 590.406909 507.617288 8.237073" +$ns_ at 97.000000 "$node_(9) setdest 559.752265 523.162622 18.019294" +$ns_ at 97.000000 "$node_(10) setdest 561.124452 479.086372 19.926187" + +$ns_ at 98.000000 "$node_(1) setdest 429.488659 2.608879 10.396395" +$ns_ at 98.000000 "$node_(2) setdest 589.054917 113.968791 12.701509" +$ns_ at 98.000000 "$node_(3) setdest 436.124983 96.326552 7.716151" +$ns_ at 98.000000 "$node_(4) setdest 574.740693 23.094755 15.459253" +$ns_ at 98.000000 "$node_(5) setdest 409.384783 153.230897 2.456664" +$ns_ at 98.000000 "$node_(6) setdest 474.746734 352.016833 5.111553" +$ns_ at 98.000000 "$node_(7) setdest 413.021931 494.129886 11.035183" +$ns_ at 98.000000 "$node_(8) setdest 580.882175 505.117671 9.847266" +$ns_ at 98.000000 "$node_(9) setdest 542.784470 531.635980 18.965860" +$ns_ at 98.000000 "$node_(10) setdest 575.265149 465.030323 19.938201" + +$ns_ at 99.000000 "$node_(1) setdest 441.489099 2.335719 12.003549" +$ns_ at 99.000000 "$node_(2) setdest 586.056851 127.939810 14.289078" +$ns_ at 99.000000 "$node_(3) setdest 444.433154 100.546506 9.318461" +$ns_ at 99.000000 "$node_(4) setdest 563.604426 11.802092 15.860034" +$ns_ at 99.000000 "$node_(5) setdest 413.431025 153.540340 4.058058" +$ns_ at 99.000000 "$node_(6) setdest 468.323715 353.930297 6.701979" +$ns_ at 99.000000 "$node_(7) setdest 422.987216 486.505659 12.547341" +$ns_ at 99.000000 "$node_(8) setdest 569.510780 507.343850 11.587256" +$ns_ at 99.000000 "$node_(9) setdest 530.489038 544.913627 18.096231" +$ns_ at 99.000000 "$node_(10) setdest 581.656414 446.357042 19.736760" + +$ns_ at 100.000000 "$node_(1) setdest 454.447553 5.677176 13.382334" +$ns_ at 100.000000 "$node_(2) setdest 586.790587 143.764948 15.842139" +$ns_ at 100.000000 "$node_(3) setdest 454.264488 105.292106 10.916769" +$ns_ at 100.000000 "$node_(4) setdest 547.205392 5.747685 17.480967" +$ns_ at 100.000000 "$node_(5) setdest 419.055426 154.172769 5.659845" +$ns_ at 100.000000 "$node_(6) setdest 468.513902 353.682612 0.312280" +$ns_ at 100.000000 "$node_(7) setdest 425.531876 476.300999 10.517147" +$ns_ at 100.000000 "$node_(8) setdest 568.125928 506.009333 1.923214" +$ns_ at 100.000000 "$node_(9) setdest 534.125064 533.948308 11.552442" +$ns_ at 100.000000 "$node_(10) setdest 574.270722 427.825799 19.948820" + +$ns_ at 101.000000 "$node_(1) setdest 463.974595 17.337902 15.057791" +$ns_ at 101.000000 "$node_(2) setdest 588.818288 160.985039 17.339062" +$ns_ at 101.000000 "$node_(3) setdest 465.953584 109.763324 12.515061" +$ns_ at 101.000000 "$node_(4) setdest 528.686907 4.225543 18.580936" +$ns_ at 101.000000 "$node_(5) setdest 426.301451 153.959775 7.249155" +$ns_ at 101.000000 "$node_(6) setdest 468.409172 351.964764 1.721038" +$ns_ at 101.000000 "$node_(7) setdest 425.627464 463.860769 12.440598" +$ns_ at 101.000000 "$node_(8) setdest 568.230938 502.795685 3.215363" +$ns_ at 101.000000 "$node_(9) setdest 534.843844 520.422103 13.545289" +$ns_ at 101.000000 "$node_(10) setdest 565.376509 409.915463 19.997179" + +$ns_ at 102.000000 "$node_(1) setdest 469.266398 33.192266 16.714186" +$ns_ at 102.000000 "$node_(2) setdest 583.250087 179.129202 18.979345" +$ns_ at 102.000000 "$node_(3) setdest 479.708421 112.845067 14.095839" +$ns_ at 102.000000 "$node_(4) setdest 513.846746 13.845484 17.685407" +$ns_ at 102.000000 "$node_(5) setdest 434.772540 151.433158 8.839861" +$ns_ at 102.000000 "$node_(6) setdest 467.957451 348.674042 3.321581" +$ns_ at 102.000000 "$node_(7) setdest 425.462374 449.821538 14.040202" +$ns_ at 102.000000 "$node_(8) setdest 568.504849 497.988118 4.815363" +$ns_ at 102.000000 "$node_(9) setdest 536.479818 505.366286 15.144440" +$ns_ at 102.000000 "$node_(10) setdest 555.303153 392.642708 19.995513" + +$ns_ at 103.000000 "$node_(1) setdest 465.730169 51.026601 18.181541" +$ns_ at 103.000000 "$node_(2) setdest 566.879047 186.735999 18.051989" +$ns_ at 103.000000 "$node_(3) setdest 495.386590 112.701027 15.678831" +$ns_ at 103.000000 "$node_(4) setdest 498.374210 23.147625 18.053509" +$ns_ at 103.000000 "$node_(5) setdest 443.971210 146.477076 10.448841" +$ns_ at 103.000000 "$node_(6) setdest 467.040158 343.838883 4.921401" +$ns_ at 103.000000 "$node_(7) setdest 424.846982 434.193648 15.640001" +$ns_ at 103.000000 "$node_(8) setdest 568.959563 491.588797 6.415456" +$ns_ at 103.000000 "$node_(9) setdest 539.291404 488.859842 16.744184" +$ns_ at 103.000000 "$node_(10) setdest 543.978114 376.161913 19.996828" + +$ns_ at 104.000000 "$node_(1) setdest 453.885584 66.862210 19.775255" +$ns_ at 104.000000 "$node_(2) setdest 550.420005 182.065219 17.108953" +$ns_ at 104.000000 "$node_(3) setdest 512.035228 108.074256 17.279588" +$ns_ at 104.000000 "$node_(4) setdest 480.422154 28.888008 18.847502" +$ns_ at 104.000000 "$node_(5) setdest 453.481156 139.084396 12.045363" +$ns_ at 104.000000 "$node_(6) setdest 465.522276 337.496223 6.521756" +$ns_ at 104.000000 "$node_(7) setdest 423.890552 416.980065 17.240133" +$ns_ at 104.000000 "$node_(8) setdest 569.408345 483.586152 8.015219" +$ns_ at 104.000000 "$node_(9) setdest 542.421361 470.785101 18.343743" +$ns_ at 104.000000 "$node_(10) setdest 532.315171 359.914903 19.999739" + +$ns_ at 105.000000 "$node_(1) setdest 441.554672 82.598803 19.992292" +$ns_ at 105.000000 "$node_(2) setdest 539.013776 170.214626 16.448058" +$ns_ at 105.000000 "$node_(3) setdest 529.234106 100.206225 18.913152" +$ns_ at 105.000000 "$node_(4) setdest 461.595790 33.254097 19.326011" +$ns_ at 105.000000 "$node_(5) setdest 463.150011 129.433979 13.660795" +$ns_ at 105.000000 "$node_(6) setdest 464.066377 329.507246 8.120554" +$ns_ at 105.000000 "$node_(7) setdest 423.478241 398.145310 18.839268" +$ns_ at 105.000000 "$node_(8) setdest 569.653858 473.974181 9.615106" +$ns_ at 105.000000 "$node_(9) setdest 544.689190 451.144354 19.771242" +$ns_ at 105.000000 "$node_(10) setdest 521.557519 343.060211 19.995192" + +$ns_ at 106.000000 "$node_(1) setdest 426.035377 95.120154 19.940731" +$ns_ at 106.000000 "$node_(2) setdest 527.796998 156.046188 18.070991" +$ns_ at 106.000000 "$node_(3) setdest 546.577423 90.292431 19.976836" +$ns_ at 106.000000 "$node_(4) setdest 442.458573 31.949902 19.181606" +$ns_ at 106.000000 "$node_(5) setdest 473.667535 118.375737 15.261160" +$ns_ at 106.000000 "$node_(6) setdest 463.038352 319.841988 9.719776" +$ns_ at 106.000000 "$node_(7) setdest 424.022196 378.194573 19.958150" +$ns_ at 106.000000 "$node_(8) setdest 569.813158 462.759869 11.215443" +$ns_ at 106.000000 "$node_(9) setdest 547.190950 431.303404 19.998052" +$ns_ at 106.000000 "$node_(10) setdest 512.059389 325.464003 19.996025" + +$ns_ at 107.000000 "$node_(1) setdest 413.339629 110.424764 19.884997" +$ns_ at 107.000000 "$node_(2) setdest 522.889895 138.019659 18.682489" +$ns_ at 107.000000 "$node_(3) setdest 562.785458 78.657080 19.951987" +$ns_ at 107.000000 "$node_(4) setdest 424.326276 36.316554 18.650680" +$ns_ at 107.000000 "$node_(5) setdest 485.278736 106.151196 16.859994" +$ns_ at 107.000000 "$node_(6) setdest 462.686740 308.528017 11.319434" +$ns_ at 107.000000 "$node_(7) setdest 425.056084 358.221365 19.999950" +$ns_ at 107.000000 "$node_(8) setdest 570.011307 449.945947 12.815454" +$ns_ at 107.000000 "$node_(9) setdest 550.802202 411.635114 19.997070" +$ns_ at 107.000000 "$node_(10) setdest 504.100758 307.123887 19.992490" + +$ns_ at 108.000000 "$node_(1) setdest 403.484524 120.881194 14.368718" +$ns_ at 108.000000 "$node_(2) setdest 522.671723 118.777356 19.243540" +$ns_ at 108.000000 "$node_(3) setdest 566.030236 61.969468 17.000146" +$ns_ at 108.000000 "$node_(4) setdest 406.729266 43.449566 18.987750" +$ns_ at 108.000000 "$node_(5) setdest 498.299352 93.063657 18.461314" +$ns_ at 108.000000 "$node_(6) setdest 463.350139 295.626592 12.918469" +$ns_ at 108.000000 "$node_(7) setdest 425.713473 338.232633 19.999539" +$ns_ at 108.000000 "$node_(8) setdest 570.151839 435.531284 14.415348" +$ns_ at 108.000000 "$node_(9) setdest 553.849836 391.873169 19.995562" +$ns_ at 108.000000 "$node_(10) setdest 497.862638 288.126445 19.995423" + +$ns_ at 109.000000 "$node_(1) setdest 403.989736 119.896423 1.106803" +$ns_ at 109.000000 "$node_(2) setdest 528.443915 101.055487 18.638209" +$ns_ at 109.000000 "$node_(3) setdest 555.086711 59.581719 11.200986" +$ns_ at 109.000000 "$node_(4) setdest 419.658364 34.543594 15.699616" +$ns_ at 109.000000 "$node_(5) setdest 512.018250 78.744240 19.830629" +$ns_ at 109.000000 "$node_(6) setdest 465.226532 281.230082 14.518276" +$ns_ at 109.000000 "$node_(7) setdest 425.892742 318.233998 19.999438" +$ns_ at 109.000000 "$node_(8) setdest 569.845697 419.519895 16.014315" +$ns_ at 109.000000 "$node_(9) setdest 555.287187 371.932228 19.992677" +$ns_ at 109.000000 "$node_(10) setdest 493.133245 268.700773 19.993096" + +$ns_ at 110.000000 "$node_(1) setdest 405.689023 117.799747 2.698820" +$ns_ at 110.000000 "$node_(2) setdest 542.452784 89.981334 17.857360" +$ns_ at 110.000000 "$node_(3) setdest 541.878384 60.468639 13.238071" +$ns_ at 110.000000 "$node_(4) setdest 431.508634 26.710829 14.204967" +$ns_ at 110.000000 "$node_(5) setdest 525.437273 63.918876 19.996540" +$ns_ at 110.000000 "$node_(6) setdest 468.870766 265.532533 16.115008" +$ns_ at 110.000000 "$node_(7) setdest 425.465752 298.239034 19.999523" +$ns_ at 110.000000 "$node_(8) setdest 568.423672 401.966936 17.610467" +$ns_ at 110.000000 "$node_(9) setdest 554.604727 351.953670 19.990211" +$ns_ at 110.000000 "$node_(10) setdest 490.462288 248.888314 19.991687" + +$ns_ at 111.000000 "$node_(1) setdest 409.267839 115.417933 4.298949" +$ns_ at 111.000000 "$node_(2) setdest 559.897956 86.045463 17.883655" +$ns_ at 111.000000 "$node_(3) setdest 527.059137 59.782209 14.835137" +$ns_ at 111.000000 "$node_(4) setdest 443.573833 19.915640 13.847152" +$ns_ at 111.000000 "$node_(5) setdest 538.192908 48.515225 19.999468" +$ns_ at 111.000000 "$node_(6) setdest 473.714036 248.485385 17.721809" +$ns_ at 111.000000 "$node_(7) setdest 424.698720 278.254092 19.999656" +$ns_ at 111.000000 "$node_(8) setdest 566.060462 382.899839 19.212989" +$ns_ at 111.000000 "$node_(9) setdest 551.708859 332.174554 19.989984" +$ns_ at 111.000000 "$node_(10) setdest 489.396329 228.922479 19.994270" + +$ns_ at 112.000000 "$node_(1) setdest 414.950785 113.903111 5.881374" +$ns_ at 112.000000 "$node_(2) setdest 578.124561 87.480642 18.283021" +$ns_ at 112.000000 "$node_(3) setdest 510.636699 60.626058 16.444104" +$ns_ at 112.000000 "$node_(4) setdest 457.652786 13.663710 15.404660" +$ns_ at 112.000000 "$node_(5) setdest 551.827674 34.309326 19.690465" +$ns_ at 112.000000 "$node_(6) setdest 478.228138 229.700152 19.319992" +$ns_ at 112.000000 "$node_(7) setdest 422.398639 258.396580 19.990277" +$ns_ at 112.000000 "$node_(8) setdest 565.174425 362.924990 19.994490" +$ns_ at 112.000000 "$node_(9) setdest 546.871512 312.774624 19.993929" +$ns_ at 112.000000 "$node_(10) setdest 491.447099 209.200491 19.828325" + +$ns_ at 113.000000 "$node_(1) setdest 422.446166 114.130760 7.498837" +$ns_ at 113.000000 "$node_(2) setdest 591.915195 78.408014 16.507397" +$ns_ at 113.000000 "$node_(3) setdest 492.624699 59.666840 18.037523" +$ns_ at 113.000000 "$node_(4) setdest 472.214347 5.489961 16.698779" +$ns_ at 113.000000 "$node_(5) setdest 551.486872 35.177611 0.932773" +$ns_ at 113.000000 "$node_(6) setdest 482.217820 210.104151 19.998020" +$ns_ at 113.000000 "$node_(7) setdest 417.831564 238.927314 19.997762" +$ns_ at 113.000000 "$node_(8) setdest 564.744712 342.930184 19.999424" +$ns_ at 113.000000 "$node_(9) setdest 540.209785 293.926814 19.990462" +$ns_ at 113.000000 "$node_(10) setdest 504.489346 196.354667 18.306158" + +$ns_ at 114.000000 "$node_(1) setdest 431.271998 116.305610 9.089845" +$ns_ at 114.000000 "$node_(2) setdest 588.736507 63.560605 15.183860" +$ns_ at 114.000000 "$node_(3) setdest 473.963039 54.031040 19.494096" +$ns_ at 114.000000 "$node_(4) setdest 473.434460 2.312632 3.403542" +$ns_ at 114.000000 "$node_(5) setdest 548.218838 37.090081 3.786501" +$ns_ at 114.000000 "$node_(6) setdest 484.657569 190.258834 19.994725" +$ns_ at 114.000000 "$node_(7) setdest 414.150519 219.279742 19.989426" +$ns_ at 114.000000 "$node_(8) setdest 563.955033 322.946138 19.999642" +$ns_ at 114.000000 "$node_(9) setdest 531.976806 275.701992 19.998151" +$ns_ at 114.000000 "$node_(10) setdest 520.244752 190.438199 16.829659" + +$ns_ at 115.000000 "$node_(1) setdest 440.908069 120.949190 10.696574" +$ns_ at 115.000000 "$node_(2) setdest 580.431419 50.836504 15.194645" +$ns_ at 115.000000 "$node_(3) setdest 456.876131 43.692246 19.971307" +$ns_ at 115.000000 "$node_(4) setdest 472.869595 2.467477 0.585704" +$ns_ at 115.000000 "$node_(5) setdest 543.700691 40.023340 5.386804" +$ns_ at 115.000000 "$node_(6) setdest 485.938648 170.301151 19.998756" +$ns_ at 115.000000 "$node_(7) setdest 414.076804 199.317789 19.962089" +$ns_ at 115.000000 "$node_(8) setdest 563.190475 302.961948 19.998810" +$ns_ at 115.000000 "$node_(9) setdest 522.369871 258.168219 19.993159" +$ns_ at 115.000000 "$node_(10) setdest 534.924858 194.630099 15.266877" + +$ns_ at 116.000000 "$node_(1) setdest 451.284786 127.573697 12.310985" +$ns_ at 116.000000 "$node_(2) setdest 569.402032 38.175636 16.791217" +$ns_ at 116.000000 "$node_(3) setdest 440.770647 31.838598 19.997390" +$ns_ at 116.000000 "$node_(4) setdest 472.841751 4.274661 1.807398" +$ns_ at 116.000000 "$node_(5) setdest 537.436100 43.104717 6.981403" +$ns_ at 116.000000 "$node_(6) setdest 486.954575 150.332081 19.994896" +$ns_ at 116.000000 "$node_(7) setdest 417.830901 179.685288 19.988205" +$ns_ at 116.000000 "$node_(8) setdest 563.641683 282.971460 19.995579" +$ns_ at 116.000000 "$node_(9) setdest 511.298664 241.517648 19.995328" +$ns_ at 116.000000 "$node_(10) setdest 550.011999 194.908027 15.089700" + +$ns_ at 117.000000 "$node_(1) setdest 462.138089 136.267655 13.906081" +$ns_ at 117.000000 "$node_(2) setdest 556.634968 24.940619 18.389225" +$ns_ at 117.000000 "$node_(3) setdest 425.324448 19.136132 19.998443" +$ns_ at 117.000000 "$node_(4) setdest 473.314494 7.680851 3.438840" +$ns_ at 117.000000 "$node_(5) setdest 529.438223 46.226951 8.585708" +$ns_ at 117.000000 "$node_(6) setdest 490.129007 130.598208 19.987566" +$ns_ at 117.000000 "$node_(7) setdest 423.966373 160.668563 19.981989" +$ns_ at 117.000000 "$node_(8) setdest 565.740884 263.087161 19.994799" +$ns_ at 117.000000 "$node_(9) setdest 499.055031 225.704650 19.998936" +$ns_ at 117.000000 "$node_(10) setdest 563.557238 186.500635 15.942326" + +$ns_ at 118.000000 "$node_(1) setdest 473.241458 147.092544 15.506870" +$ns_ at 118.000000 "$node_(2) setdest 539.814754 14.774438 19.653774" +$ns_ at 118.000000 "$node_(3) setdest 409.111886 8.883379 19.182442" +$ns_ at 118.000000 "$node_(4) setdest 473.692202 12.706450 5.039772" +$ns_ at 118.000000 "$node_(5) setdest 519.739209 49.337753 10.185674" +$ns_ at 118.000000 "$node_(6) setdest 496.431453 111.642085 19.976371" +$ns_ at 118.000000 "$node_(7) setdest 432.569997 142.630498 19.984847" +$ns_ at 118.000000 "$node_(8) setdest 568.702436 243.307677 19.999970" +$ns_ at 118.000000 "$node_(9) setdest 485.443278 211.070870 19.985678" +$ns_ at 118.000000 "$node_(10) setdest 570.192106 171.160831 16.713200" + +$ns_ at 119.000000 "$node_(1) setdest 487.251601 156.862702 17.080401" +$ns_ at 119.000000 "$node_(2) setdest 520.683497 9.021841 19.977421" +$ns_ at 119.000000 "$node_(3) setdest 417.073766 12.056418 8.570864" +$ns_ at 119.000000 "$node_(4) setdest 474.036968 19.336302 6.638810" +$ns_ at 119.000000 "$node_(5) setdest 508.315867 52.234824 11.784981" +$ns_ at 119.000000 "$node_(6) setdest 506.265369 94.271345 19.961175" +$ns_ at 119.000000 "$node_(7) setdest 443.201855 125.694874 19.996294" +$ns_ at 119.000000 "$node_(8) setdest 571.628211 223.523019 19.999821" +$ns_ at 119.000000 "$node_(9) setdest 470.395480 197.901690 19.996588" +$ns_ at 119.000000 "$node_(10) setdest 581.059668 156.562270 18.199503" + +$ns_ at 120.000000 "$node_(1) setdest 504.954771 159.215359 17.858813" +$ns_ at 120.000000 "$node_(2) setdest 501.192874 10.606251 19.554916" +$ns_ at 120.000000 "$node_(3) setdest 423.571462 19.617907 9.969763" +$ns_ at 120.000000 "$node_(4) setdest 474.472309 27.560057 8.235270" +$ns_ at 120.000000 "$node_(5) setdest 495.207683 54.945946 13.385614" +$ns_ at 120.000000 "$node_(6) setdest 520.516470 80.409235 19.880946" +$ns_ at 120.000000 "$node_(7) setdest 453.570709 108.596480 19.996705" +$ns_ at 120.000000 "$node_(8) setdest 573.762328 203.638794 19.998422" +$ns_ at 120.000000 "$node_(9) setdest 453.975818 186.542303 19.965996" +$ns_ at 120.000000 "$node_(10) setdest 592.135494 143.826225 16.878411" + +$ns_ at 121.000000 "$node_(1) setdest 509.718099 146.506082 13.572583" +$ns_ at 121.000000 "$node_(2) setdest 484.117793 19.082124 19.063023" +$ns_ at 121.000000 "$node_(3) setdest 433.058684 26.201559 11.547808" +$ns_ at 121.000000 "$node_(4) setdest 476.147484 37.254243 9.837858" +$ns_ at 121.000000 "$node_(5) setdest 480.493467 57.703401 14.970361" +$ns_ at 121.000000 "$node_(6) setdest 537.165573 83.737558 16.978527" +$ns_ at 121.000000 "$node_(7) setdest 464.612917 91.921714 19.999454" +$ns_ at 121.000000 "$node_(8) setdest 575.622097 183.725674 19.999777" +$ns_ at 121.000000 "$node_(9) setdest 435.402591 179.523497 19.855186" +$ns_ at 121.000000 "$node_(10) setdest 589.495037 140.928854 3.920047" + +$ns_ at 122.000000 "$node_(1) setdest 501.618767 135.407562 13.739589" +$ns_ at 122.000000 "$node_(2) setdest 468.354636 30.000884 19.175412" +$ns_ at 122.000000 "$node_(3) setdest 444.780251 32.212762 13.173066" +$ns_ at 122.000000 "$node_(4) setdest 478.682436 48.409195 11.439359" +$ns_ at 122.000000 "$node_(5) setdest 465.298067 64.267961 16.552753" +$ns_ at 122.000000 "$node_(6) setdest 544.950948 98.256877 16.474910" +$ns_ at 122.000000 "$node_(7) setdest 475.946542 75.443825 19.999297" +$ns_ at 122.000000 "$node_(8) setdest 576.534377 163.749996 19.996499" +$ns_ at 122.000000 "$node_(9) setdest 434.434766 179.467028 0.969471" +$ns_ at 122.000000 "$node_(10) setdest 584.521690 139.425209 5.195683" + +$ns_ at 123.000000 "$node_(1) setdest 492.075637 123.450755 15.298253" +$ns_ at 123.000000 "$node_(2) setdest 455.863068 44.093278 18.831751" +$ns_ at 123.000000 "$node_(3) setdest 458.619999 37.371581 14.769972" +$ns_ at 123.000000 "$node_(4) setdest 482.138433 60.980026 13.037244" +$ns_ at 123.000000 "$node_(5) setdest 449.568122 73.372764 18.174944" +$ns_ at 123.000000 "$node_(6) setdest 555.460624 109.423500 15.334495" +$ns_ at 123.000000 "$node_(7) setdest 488.072608 59.566099 19.978580" +$ns_ at 123.000000 "$node_(8) setdest 575.616599 143.782691 19.988386" +$ns_ at 123.000000 "$node_(9) setdest 437.345563 182.540188 4.232854" +$ns_ at 123.000000 "$node_(10) setdest 578.082071 137.243055 6.799300" + +$ns_ at 124.000000 "$node_(1) setdest 481.629922 110.164467 16.900841" +$ns_ at 124.000000 "$node_(2) setdest 442.838643 58.392410 19.341686" +$ns_ at 124.000000 "$node_(3) setdest 474.615429 40.719637 16.342070" +$ns_ at 124.000000 "$node_(4) setdest 486.172579 75.052483 14.639275" +$ns_ at 124.000000 "$node_(5) setdest 430.524277 77.428350 19.470897" +$ns_ at 124.000000 "$node_(6) setdest 570.380491 116.561320 16.539374" +$ns_ at 124.000000 "$node_(7) setdest 503.421106 46.832482 19.942953" +$ns_ at 124.000000 "$node_(8) setdest 571.969243 124.135771 19.982610" +$ns_ at 124.000000 "$node_(9) setdest 437.850553 188.097996 5.580703" +$ns_ at 124.000000 "$node_(10) setdest 570.292753 134.115544 8.393736" + +$ns_ at 125.000000 "$node_(1) setdest 468.764309 108.362457 12.991198" +$ns_ at 125.000000 "$node_(2) setdest 424.365917 65.103086 19.653874" +$ns_ at 125.000000 "$node_(3) setdest 458.785742 38.071495 16.049662" +$ns_ at 125.000000 "$node_(4) setdest 485.862028 75.256264 0.371442" +$ns_ at 125.000000 "$node_(5) setdest 410.538520 78.179722 19.999876" +$ns_ at 125.000000 "$node_(6) setdest 586.519711 124.964926 18.196017" +$ns_ at 125.000000 "$node_(7) setdest 522.204110 40.543630 19.807850" +$ns_ at 125.000000 "$node_(8) setdest 565.283378 105.313652 19.974308" +$ns_ at 125.000000 "$node_(9) setdest 438.236927 188.566948 0.607619" +$ns_ at 125.000000 "$node_(10) setdest 561.454881 129.437687 9.999516" + +$ns_ at 126.000000 "$node_(1) setdest 453.894330 110.665395 15.047252" +$ns_ at 126.000000 "$node_(2) setdest 404.988454 70.046829 19.998166" +$ns_ at 126.000000 "$node_(3) setdest 440.858781 37.340840 17.941845" +$ns_ at 126.000000 "$node_(4) setdest 484.107042 74.965456 1.778916" +$ns_ at 126.000000 "$node_(5) setdest 390.542704 78.440085 19.997511" +$ns_ at 126.000000 "$node_(6) setdest 592.964875 127.196911 6.820696" +$ns_ at 126.000000 "$node_(7) setdest 542.036992 42.707094 19.950533" +$ns_ at 126.000000 "$node_(8) setdest 554.346165 88.643407 19.937896" +$ns_ at 126.000000 "$node_(9) setdest 438.863799 187.609138 1.144713" +$ns_ at 126.000000 "$node_(10) setdest 550.853562 124.755186 11.589383" + +$ns_ at 127.000000 "$node_(1) setdest 437.536983 113.753231 16.646247" +$ns_ at 127.000000 "$node_(2) setdest 385.400042 74.078678 19.999042" +$ns_ at 127.000000 "$node_(3) setdest 421.408233 35.863244 19.506591" +$ns_ at 127.000000 "$node_(4) setdest 480.756885 74.527052 3.378720" +$ns_ at 127.000000 "$node_(5) setdest 370.587368 77.185177 19.994756" +$ns_ at 127.000000 "$node_(6) setdest 591.806569 125.973434 1.684805" +$ns_ at 127.000000 "$node_(7) setdest 561.938216 44.598425 19.990894" +$ns_ at 127.000000 "$node_(8) setdest 538.791423 76.225827 19.903424" +$ns_ at 127.000000 "$node_(9) setdest 439.851088 185.026858 2.764582" +$ns_ at 127.000000 "$node_(10) setdest 538.598737 119.856049 13.197813" + +$ns_ at 128.000000 "$node_(1) setdest 419.670201 117.456660 18.246569" +$ns_ at 128.000000 "$node_(2) setdest 365.724919 77.666346 19.999545" +$ns_ at 128.000000 "$node_(3) setdest 401.445644 34.670369 19.998197" +$ns_ at 128.000000 "$node_(4) setdest 475.797670 74.087926 4.978620" +$ns_ at 128.000000 "$node_(5) setdest 350.726157 74.834010 19.999892" +$ns_ at 128.000000 "$node_(6) setdest 589.270539 123.860295 3.301031" +$ns_ at 128.000000 "$node_(7) setdest 581.791247 44.803262 19.854088" +$ns_ at 128.000000 "$node_(8) setdest 520.702123 67.707079 19.994795" +$ns_ at 128.000000 "$node_(9) setdest 441.303563 180.909826 4.365734" +$ns_ at 128.000000 "$node_(10) setdest 525.473635 113.036002 14.791260" + +$ns_ at 129.000000 "$node_(1) setdest 400.190414 120.538102 19.722002" +$ns_ at 129.000000 "$node_(2) setdest 345.957172 80.701765 19.999440" +$ns_ at 129.000000 "$node_(3) setdest 381.449576 34.354000 19.998570" +$ns_ at 129.000000 "$node_(4) setdest 469.225898 73.791977 6.578432" +$ns_ at 129.000000 "$node_(5) setdest 330.797553 73.177839 19.997304" +$ns_ at 129.000000 "$node_(6) setdest 585.243076 121.062983 4.903612" +$ns_ at 129.000000 "$node_(7) setdest 588.511397 48.281694 7.567028" +$ns_ at 129.000000 "$node_(8) setdest 502.905331 58.615452 19.984581" +$ns_ at 129.000000 "$node_(9) setdest 443.695561 175.443621 5.966662" +$ns_ at 129.000000 "$node_(10) setdest 511.499269 104.458277 16.396959" + +$ns_ at 130.000000 "$node_(1) setdest 380.319010 122.788460 19.998421" +$ns_ at 130.000000 "$node_(2) setdest 326.114659 83.198800 19.999013" +$ns_ at 130.000000 "$node_(3) setdest 361.450892 34.562067 19.999767" +$ns_ at 130.000000 "$node_(4) setdest 461.047591 73.796428 8.178308" +$ns_ at 130.000000 "$node_(5) setdest 310.805689 73.087262 19.992069" +$ns_ at 130.000000 "$node_(6) setdest 580.472921 116.653619 6.495912" +$ns_ at 130.000000 "$node_(7) setdest 586.575808 48.184730 1.938017" +$ns_ at 130.000000 "$node_(8) setdest 485.758668 48.322000 19.999080" +$ns_ at 130.000000 "$node_(9) setdest 446.859035 168.570017 7.566637" +$ns_ at 130.000000 "$node_(10) setdest 497.658476 92.981586 17.980044" + +$ns_ at 131.000000 "$node_(1) setdest 360.365366 124.127494 19.998522" +$ns_ at 131.000000 "$node_(2) setdest 306.164975 84.538799 19.994637" +$ns_ at 131.000000 "$node_(3) setdest 341.453459 34.881321 19.999981" +$ns_ at 131.000000 "$node_(4) setdest 451.277647 74.201781 9.778349" +$ns_ at 131.000000 "$node_(5) setdest 290.929481 75.205162 19.988725" +$ns_ at 131.000000 "$node_(6) setdest 575.708834 110.114534 8.090498" +$ns_ at 131.000000 "$node_(7) setdest 583.023276 48.266735 3.553478" +$ns_ at 131.000000 "$node_(8) setdest 468.711352 37.876329 19.993075" +$ns_ at 131.000000 "$node_(9) setdest 451.428019 160.631101 9.159804" +$ns_ at 131.000000 "$node_(10) setdest 485.035837 78.081245 19.528215" + +$ns_ at 132.000000 "$node_(1) setdest 340.372607 124.577953 19.997833" +$ns_ at 132.000000 "$node_(2) setdest 286.178506 84.073191 19.991892" +$ns_ at 132.000000 "$node_(3) setdest 321.454012 34.894377 19.999451" +$ns_ at 132.000000 "$node_(4) setdest 439.923459 74.951472 11.378912" +$ns_ at 132.000000 "$node_(5) setdest 271.481106 79.805860 19.985138" +$ns_ at 132.000000 "$node_(6) setdest 571.726779 101.275821 9.694308" +$ns_ at 132.000000 "$node_(7) setdest 577.934453 49.068828 5.151648" +$ns_ at 132.000000 "$node_(8) setdest 450.507813 29.624318 19.986609" +$ns_ at 132.000000 "$node_(9) setdest 457.527500 151.759105 10.766428" +$ns_ at 132.000000 "$node_(10) setdest 474.583709 61.040590 19.990771" + +$ns_ at 133.000000 "$node_(1) setdest 320.380450 124.065568 19.998722" +$ns_ at 133.000000 "$node_(2) setdest 266.383509 81.306673 19.987384" +$ns_ at 133.000000 "$node_(3) setdest 301.478147 33.972686 19.997117" +$ns_ at 133.000000 "$node_(4) setdest 426.974114 75.826178 12.978853" +$ns_ at 133.000000 "$node_(5) setdest 252.963837 87.304381 19.977914" +$ns_ at 133.000000 "$node_(6) setdest 568.310797 90.505002 11.299534" +$ns_ at 133.000000 "$node_(7) setdest 571.352734 50.591970 6.755663" +$ns_ at 133.000000 "$node_(8) setdest 430.748481 26.892605 19.947266" +$ns_ at 133.000000 "$node_(9) setdest 464.585787 141.605483 12.365900" +$ns_ at 133.000000 "$node_(10) setdest 461.707413 45.848981 19.914416" + +$ns_ at 134.000000 "$node_(1) setdest 300.449527 122.443033 19.996858" +$ns_ at 134.000000 "$node_(2) setdest 247.068943 76.153410 19.990212" +$ns_ at 134.000000 "$node_(3) setdest 281.620279 31.641423 19.994242" +$ns_ at 134.000000 "$node_(4) setdest 412.407798 76.413196 14.578139" +$ns_ at 134.000000 "$node_(5) setdest 236.182515 98.124469 19.967150" +$ns_ at 134.000000 "$node_(6) setdest 565.493969 77.924687 12.891814" +$ns_ at 134.000000 "$node_(7) setdest 563.139327 52.127120 8.355642" +$ns_ at 134.000000 "$node_(8) setdest 416.947036 15.226109 18.071719" +$ns_ at 134.000000 "$node_(9) setdest 472.330576 129.982714 13.966765" +$ns_ at 134.000000 "$node_(10) setdest 445.040272 34.848403 19.970135" + +$ns_ at 135.000000 "$node_(1) setdest 280.660058 119.566270 19.997470" +$ns_ at 135.000000 "$node_(2) setdest 228.579859 68.567935 19.984636" +$ns_ at 135.000000 "$node_(3) setdest 261.870140 28.489966 19.999992" +$ns_ at 135.000000 "$node_(4) setdest 396.230443 76.619532 16.178671" +$ns_ at 135.000000 "$node_(5) setdest 221.570082 111.764000 19.988997" +$ns_ at 135.000000 "$node_(6) setdest 565.462360 63.456976 14.467745" +$ns_ at 135.000000 "$node_(7) setdest 553.580974 54.883009 9.947715" +$ns_ at 135.000000 "$node_(8) setdest 426.301069 2.292969 15.961330" +$ns_ at 135.000000 "$node_(9) setdest 481.564388 117.456807 15.561543" +$ns_ at 135.000000 "$node_(10) setdest 426.598641 27.230647 19.953044" + +$ns_ at 136.000000 "$node_(1) setdest 260.964022 116.093665 19.999821" +$ns_ at 136.000000 "$node_(2) setdest 211.157455 58.763950 19.991455" +$ns_ at 136.000000 "$node_(3) setdest 242.069536 25.684400 19.998378" +$ns_ at 136.000000 "$node_(4) setdest 378.451498 76.635633 17.778952" +$ns_ at 136.000000 "$node_(5) setdest 207.405609 125.883222 19.999618" +$ns_ at 136.000000 "$node_(6) setdest 570.550150 48.286694 16.000721" +$ns_ at 136.000000 "$node_(7) setdest 543.178360 59.884928 11.542685" +$ns_ at 136.000000 "$node_(8) setdest 439.426261 7.213786 14.017314" +$ns_ at 136.000000 "$node_(9) setdest 492.799836 104.479486 17.165259" +$ns_ at 136.000000 "$node_(10) setdest 416.515775 29.332216 10.299553" + +$ns_ at 137.000000 "$node_(1) setdest 241.166659 113.273096 19.997279" +$ns_ at 137.000000 "$node_(2) setdest 193.607811 49.185768 19.993288" +$ns_ at 137.000000 "$node_(3) setdest 222.148163 23.923978 19.999004" +$ns_ at 137.000000 "$node_(4) setdest 359.072806 76.657629 19.378705" +$ns_ at 137.000000 "$node_(5) setdest 192.886203 139.634471 19.997750" +$ns_ at 137.000000 "$node_(6) setdest 583.970533 42.100482 14.777547" +$ns_ at 137.000000 "$node_(7) setdest 532.296270 67.248819 13.139511" +$ns_ at 137.000000 "$node_(8) setdest 453.839916 9.148842 14.542968" +$ns_ at 137.000000 "$node_(9) setdest 505.861846 91.012627 18.760928" +$ns_ at 137.000000 "$node_(10) setdest 417.284418 30.284041 1.223431" + +$ns_ at 138.000000 "$node_(1) setdest 221.227107 111.767797 19.996292" +$ns_ at 138.000000 "$node_(2) setdest 175.271841 41.218919 19.991961" +$ns_ at 138.000000 "$node_(3) setdest 202.333247 21.224188 19.997993" +$ns_ at 138.000000 "$node_(4) setdest 339.081034 77.216611 19.999585" +$ns_ at 138.000000 "$node_(5) setdest 177.604021 152.479213 19.963278" +$ns_ at 138.000000 "$node_(6) setdest 588.327423 50.944124 9.858625" +$ns_ at 138.000000 "$node_(7) setdest 521.858823 77.648040 14.733774" +$ns_ at 138.000000 "$node_(8) setdest 470.072953 9.536007 16.237653" +$ns_ at 138.000000 "$node_(9) setdest 520.526387 77.499927 19.940959" +$ns_ at 138.000000 "$node_(10) setdest 420.076823 30.790374 2.837939" + +$ns_ at 139.000000 "$node_(1) setdest 201.240697 111.066682 19.998704" +$ns_ at 139.000000 "$node_(2) setdest 164.466411 38.985513 11.033831" +$ns_ at 139.000000 "$node_(3) setdest 184.238943 13.733066 19.583686" +$ns_ at 139.000000 "$node_(4) setdest 319.132136 78.610994 19.997570" +$ns_ at 139.000000 "$node_(5) setdest 159.330537 160.396138 19.914767" +$ns_ at 139.000000 "$node_(6) setdest 588.282286 62.792033 11.847995" +$ns_ at 139.000000 "$node_(7) setdest 512.243129 90.872745 16.350976" +$ns_ at 139.000000 "$node_(8) setdest 487.878750 9.368775 17.806582" +$ns_ at 139.000000 "$node_(9) setdest 536.534192 65.547922 19.977493" +$ns_ at 139.000000 "$node_(10) setdest 424.324084 29.536639 4.428439" + +$ns_ at 140.000000 "$node_(1) setdest 181.242347 111.274656 19.999432" +$ns_ at 140.000000 "$node_(2) setdest 175.502159 37.272010 11.167982" +$ns_ at 140.000000 "$node_(3) setdest 182.074451 1.712658 12.213731" +$ns_ at 140.000000 "$node_(4) setdest 299.283899 81.049008 19.997411" +$ns_ at 140.000000 "$node_(5) setdest 139.532044 162.682204 19.930038" +$ns_ at 140.000000 "$node_(6) setdest 589.138402 76.155223 13.390586" +$ns_ at 140.000000 "$node_(7) setdest 501.789191 105.467392 17.952396" +$ns_ at 140.000000 "$node_(8) setdest 505.637603 16.818056 19.257951" +$ns_ at 140.000000 "$node_(9) setdest 554.813129 57.628754 19.920661" +$ns_ at 140.000000 "$node_(10) setdest 429.800533 26.943825 6.059223" + +$ns_ at 141.000000 "$node_(1) setdest 161.247046 111.473323 19.996287" +$ns_ at 141.000000 "$node_(2) setdest 185.373829 29.829709 12.362755" +$ns_ at 141.000000 "$node_(3) setdest 183.778520 1.889613 1.713232" +$ns_ at 141.000000 "$node_(4) setdest 279.550001 84.297092 19.999419" +$ns_ at 141.000000 "$node_(5) setdest 119.793534 159.666849 19.967502" +$ns_ at 141.000000 "$node_(6) setdest 592.156148 90.830024 14.981874" +$ns_ at 141.000000 "$node_(7) setdest 488.189099 119.413179 19.479412" +$ns_ at 141.000000 "$node_(8) setdest 523.321051 26.105433 19.973976" +$ns_ at 141.000000 "$node_(9) setdest 571.486632 63.791740 17.776055" +$ns_ at 141.000000 "$node_(10) setdest 436.921300 24.140901 7.652561" + +$ns_ at 142.000000 "$node_(1) setdest 141.772095 115.540184 19.895051" +$ns_ at 142.000000 "$node_(2) setdest 196.339570 29.318053 10.977671" +$ns_ at 142.000000 "$node_(3) setdest 184.812005 4.915605 3.197612" +$ns_ at 142.000000 "$node_(4) setdest 259.803815 87.459443 19.997808" +$ns_ at 142.000000 "$node_(5) setdest 100.096591 156.319135 19.979409" +$ns_ at 142.000000 "$node_(6) setdest 590.692452 107.433540 16.667908" +$ns_ at 142.000000 "$node_(7) setdest 471.797782 130.833795 19.977632" +$ns_ at 142.000000 "$node_(8) setdest 541.126366 35.173355 19.981403" +$ns_ at 142.000000 "$node_(9) setdest 567.782585 75.167477 11.963585" +$ns_ at 142.000000 "$node_(10) setdest 446.013398 22.445407 9.248835" + +$ns_ at 143.000000 "$node_(1) setdest 127.450194 128.944032 19.615810" +$ns_ at 143.000000 "$node_(2) setdest 197.147859 36.740438 7.466266" +$ns_ at 143.000000 "$node_(3) setdest 185.893987 9.604906 4.812507" +$ns_ at 143.000000 "$node_(4) setdest 239.858385 88.607005 19.978416" +$ns_ at 143.000000 "$node_(5) setdest 80.175258 157.537770 19.958571" +$ns_ at 143.000000 "$node_(6) setdest 585.791697 124.971994 18.210293" +$ns_ at 143.000000 "$node_(7) setdest 454.924266 141.549003 19.988276" +$ns_ at 143.000000 "$node_(8) setdest 556.871642 47.471369 19.978860" +$ns_ at 143.000000 "$node_(9) setdest 558.206517 84.854499 13.621287" +$ns_ at 143.000000 "$node_(10) setdest 456.841721 21.664948 10.856413" + +$ns_ at 144.000000 "$node_(1) setdest 118.524599 146.840858 19.999066" +$ns_ at 144.000000 "$node_(2) setdest 196.591811 45.826445 9.103005" +$ns_ at 144.000000 "$node_(3) setdest 187.092769 15.899568 6.407796" +$ns_ at 144.000000 "$node_(4) setdest 220.066145 86.102236 19.950103" +$ns_ at 144.000000 "$node_(5) setdest 60.964143 162.769298 19.910697" +$ns_ at 144.000000 "$node_(6) setdest 574.313128 140.914141 19.644582" +$ns_ at 144.000000 "$node_(7) setdest 441.557267 156.254138 19.872536" +$ns_ at 144.000000 "$node_(8) setdest 571.374396 61.086555 19.892289" +$ns_ at 144.000000 "$node_(9) setdest 552.626228 98.963335 15.172307" +$ns_ at 144.000000 "$node_(10) setdest 469.299904 21.561095 12.458615" + +$ns_ at 145.000000 "$node_(1) setdest 112.115498 165.696718 19.915321" +$ns_ at 145.000000 "$node_(2) setdest 190.250128 47.613148 6.588570" +$ns_ at 145.000000 "$node_(3) setdest 187.313861 23.900730 8.004216" +$ns_ at 145.000000 "$node_(4) setdest 203.065906 94.794565 19.093577" +$ns_ at 145.000000 "$node_(5) setdest 45.972008 175.619703 19.745810" +$ns_ at 145.000000 "$node_(6) setdest 560.255115 155.135300 19.996727" +$ns_ at 145.000000 "$node_(7) setdest 438.601722 175.534770 19.505846" +$ns_ at 145.000000 "$node_(8) setdest 588.750250 69.671374 19.380903" +$ns_ at 145.000000 "$node_(9) setdest 551.878665 115.778256 16.831530" +$ns_ at 145.000000 "$node_(10) setdest 483.345939 22.123346 14.057284" + +$ns_ at 146.000000 "$node_(1) setdest 111.731159 185.496144 19.803156" +$ns_ at 146.000000 "$node_(2) setdest 183.547590 43.776632 7.722881" +$ns_ at 146.000000 "$node_(3) setdest 185.862180 33.389020 9.598699" +$ns_ at 146.000000 "$node_(4) setdest 190.626206 108.639388 18.612503" +$ns_ at 146.000000 "$node_(5) setdest 47.072918 193.458445 17.872681" +$ns_ at 146.000000 "$node_(6) setdest 545.916182 169.049201 19.980032" +$ns_ at 146.000000 "$node_(7) setdest 444.782179 193.174570 18.691190" +$ns_ at 146.000000 "$node_(8) setdest 586.255822 69.734557 2.495228" +$ns_ at 146.000000 "$node_(9) setdest 554.631147 134.007561 18.435936" +$ns_ at 146.000000 "$node_(10) setdest 498.884774 24.015570 15.653623" + +$ns_ at 147.000000 "$node_(1) setdest 111.899554 186.471049 0.989342" +$ns_ at 147.000000 "$node_(2) setdest 175.795557 38.607572 9.317360" +$ns_ at 147.000000 "$node_(3) setdest 182.523745 44.090935 11.210537" +$ns_ at 147.000000 "$node_(4) setdest 179.070997 123.870067 19.117961" +$ns_ at 147.000000 "$node_(5) setdest 62.376736 192.812895 15.317427" +$ns_ at 147.000000 "$node_(6) setdest 531.919229 183.302102 19.976483" +$ns_ at 147.000000 "$node_(7) setdest 436.724006 199.709287 10.374810" +$ns_ at 147.000000 "$node_(8) setdest 576.168467 67.370369 10.360701" +$ns_ at 147.000000 "$node_(9) setdest 562.586604 152.129905 19.791631" +$ns_ at 147.000000 "$node_(10) setdest 515.441797 28.772088 17.226708" + +$ns_ at 148.000000 "$node_(1) setdest 108.990066 180.641200 6.515540" +$ns_ at 148.000000 "$node_(2) setdest 167.327952 31.720295 10.914894" +$ns_ at 148.000000 "$node_(3) setdest 179.086940 56.426752 12.805624" +$ns_ at 148.000000 "$node_(4) setdest 163.850105 134.459779 18.542318" +$ns_ at 148.000000 "$node_(5) setdest 69.482057 179.583763 15.016508" +$ns_ at 148.000000 "$node_(6) setdest 513.623888 191.062746 19.873276" +$ns_ at 148.000000 "$node_(7) setdest 426.833193 195.609739 10.706749" +$ns_ at 148.000000 "$node_(8) setdest 564.268369 67.203121 11.901272" +$ns_ at 148.000000 "$node_(9) setdest 570.951086 170.282477 19.987006" +$ns_ at 148.000000 "$node_(10) setdest 531.755709 38.134043 18.809304" + +$ns_ at 149.000000 "$node_(1) setdest 104.753756 173.710069 8.123232" +$ns_ at 149.000000 "$node_(2) setdest 156.878825 24.944390 12.453801" +$ns_ at 149.000000 "$node_(3) setdest 176.599709 70.622921 14.412410" +$ns_ at 149.000000 "$node_(4) setdest 146.434634 142.639565 19.240778" +$ns_ at 149.000000 "$node_(5) setdest 75.707512 165.318603 15.564417" +$ns_ at 149.000000 "$node_(6) setdest 493.935495 190.646337 19.692796" +$ns_ at 149.000000 "$node_(7) setdest 417.399684 187.603159 12.373213" +$ns_ at 149.000000 "$node_(8) setdest 551.157370 70.606676 13.545571" +$ns_ at 149.000000 "$node_(9) setdest 576.243443 189.189175 19.633448" +$ns_ at 149.000000 "$node_(10) setdest 546.734747 51.323269 19.958137" + +$ns_ at 150.000000 "$node_(1) setdest 99.278520 165.679385 9.719573" +$ns_ at 150.000000 "$node_(2) setdest 143.075068 24.363392 13.815978" +$ns_ at 150.000000 "$node_(3) setdest 173.400696 86.306718 16.006723" +$ns_ at 150.000000 "$node_(4) setdest 130.649757 153.943580 19.415023" +$ns_ at 150.000000 "$node_(5) setdest 88.488112 154.041636 17.044464" +$ns_ at 150.000000 "$node_(6) setdest 475.349957 183.326049 19.975206" +$ns_ at 150.000000 "$node_(7) setdest 414.624429 174.179041 13.707991" +$ns_ at 150.000000 "$node_(8) setdest 537.189239 76.498837 15.160021" +$ns_ at 150.000000 "$node_(9) setdest 575.465562 180.778988 8.446085" +$ns_ at 150.000000 "$node_(10) setdest 560.401937 65.884227 19.970318" + +$ns_ at 151.000000 "$node_(1) setdest 91.813160 157.170777 11.319364" +$ns_ at 151.000000 "$node_(2) setdest 138.004596 35.391633 12.138031" +$ns_ at 151.000000 "$node_(3) setdest 168.114267 103.099736 17.605447" +$ns_ at 151.000000 "$node_(4) setdest 119.996573 169.374810 18.751351" +$ns_ at 151.000000 "$node_(5) setdest 105.657672 146.388340 18.798051" +$ns_ at 151.000000 "$node_(6) setdest 459.956503 171.347805 19.504788" +$ns_ at 151.000000 "$node_(7) setdest 416.813764 158.732695 15.600731" +$ns_ at 151.000000 "$node_(8) setdest 521.788366 83.114604 16.761720" +$ns_ at 151.000000 "$node_(9) setdest 577.687876 171.392622 9.645857" +$ns_ at 151.000000 "$node_(10) setdest 569.087851 83.782994 19.894998" + +$ns_ at 152.000000 "$node_(1) setdest 82.097039 148.659628 12.916759" +$ns_ at 152.000000 "$node_(2) setdest 146.119591 45.797946 13.196382" +$ns_ at 152.000000 "$node_(3) setdest 160.937701 120.920891 19.211888" +$ns_ at 152.000000 "$node_(4) setdest 105.936747 181.378621 18.487028" +$ns_ at 152.000000 "$node_(5) setdest 124.801631 141.076851 19.867135" +$ns_ at 152.000000 "$node_(6) setdest 448.544469 155.827294 19.264495" +$ns_ at 152.000000 "$node_(7) setdest 417.880719 141.561761 17.204051" +$ns_ at 152.000000 "$node_(8) setdest 503.612706 85.135031 18.287612" +$ns_ at 152.000000 "$node_(9) setdest 582.520079 161.274967 11.212365" +$ns_ at 152.000000 "$node_(10) setdest 569.702380 103.596801 19.823334" + +$ns_ at 153.000000 "$node_(1) setdest 70.379904 140.091185 14.515835" +$ns_ at 153.000000 "$node_(2) setdest 158.134566 54.430381 14.794545" +$ns_ at 153.000000 "$node_(3) setdest 156.219850 140.328761 19.973071" +$ns_ at 153.000000 "$node_(4) setdest 88.725972 189.580626 19.065247" +$ns_ at 153.000000 "$node_(5) setdest 144.327183 138.526583 19.691395" +$ns_ at 153.000000 "$node_(6) setdest 442.382049 137.609253 19.232068" +$ns_ at 153.000000 "$node_(7) setdest 416.376540 122.816638 18.805376" +$ns_ at 153.000000 "$node_(8) setdest 483.914674 83.287628 19.784472" +$ns_ at 153.000000 "$node_(9) setdest 586.204849 149.285184 12.543222" +$ns_ at 153.000000 "$node_(10) setdest 559.010783 119.996465 19.577008" + +$ns_ at 154.000000 "$node_(1) setdest 55.997138 132.866034 16.095551" +$ns_ at 154.000000 "$node_(2) setdest 172.406373 62.536019 16.412977" +$ns_ at 154.000000 "$node_(3) setdest 151.635699 159.667002 19.874155" +$ns_ at 154.000000 "$node_(4) setdest 78.054821 195.479620 12.193096" +$ns_ at 154.000000 "$node_(5) setdest 163.592391 140.383876 19.354528" +$ns_ at 154.000000 "$node_(6) setdest 441.383428 118.459568 19.175706" +$ns_ at 154.000000 "$node_(7) setdest 412.338720 103.315957 19.914330" +$ns_ at 154.000000 "$node_(8) setdest 464.344857 79.349340 19.962160" +$ns_ at 154.000000 "$node_(9) setdest 576.816577 139.350201 13.669073" +$ns_ at 154.000000 "$node_(10) setdest 540.866973 128.225326 19.922651" + +$ns_ at 155.000000 "$node_(1) setdest 41.252307 123.224103 17.617516" +$ns_ at 155.000000 "$node_(2) setdest 186.611964 72.729002 17.484157" +$ns_ at 155.000000 "$node_(3) setdest 144.090830 165.764530 9.700768" +$ns_ at 155.000000 "$node_(4) setdest 84.150229 193.306525 6.471193" +$ns_ at 155.000000 "$node_(5) setdest 178.718241 150.366969 18.123286" +$ns_ at 155.000000 "$node_(6) setdest 439.600336 99.066105 19.475263" +$ns_ at 155.000000 "$node_(7) setdest 407.087226 84.024775 19.993196" +$ns_ at 155.000000 "$node_(8) setdest 447.207539 69.162889 19.936185" +$ns_ at 155.000000 "$node_(9) setdest 561.438062 134.917972 16.004480" +$ns_ at 155.000000 "$node_(10) setdest 526.487380 140.831521 19.122992" + +$ns_ at 156.000000 "$node_(1) setdest 34.078752 105.954513 18.700231" +$ns_ at 156.000000 "$node_(2) setdest 187.094893 73.875178 1.243760" +$ns_ at 156.000000 "$node_(3) setdest 141.135685 162.335572 4.526658" +$ns_ at 156.000000 "$node_(4) setdest 92.326017 193.380787 8.176125" +$ns_ at 156.000000 "$node_(5) setdest 191.326981 163.978216 18.553877" +$ns_ at 156.000000 "$node_(6) setdest 441.938872 80.015861 19.193242" +$ns_ at 156.000000 "$node_(7) setdest 410.869511 64.803585 19.589788" +$ns_ at 156.000000 "$node_(8) setdest 431.974289 56.242401 19.974757" +$ns_ at 156.000000 "$node_(9) setdest 545.448883 127.932357 17.448572" +$ns_ at 156.000000 "$node_(10) setdest 515.851572 156.904956 19.273705" + +$ns_ at 157.000000 "$node_(1) setdest 43.916030 90.582641 18.250109" +$ns_ at 157.000000 "$node_(2) setdest 185.047818 73.249294 2.140618" +$ns_ at 157.000000 "$node_(3) setdest 137.743986 157.188007 6.164499" +$ns_ at 157.000000 "$node_(4) setdest 102.029528 194.793971 9.805877" +$ns_ at 157.000000 "$node_(5) setdest 189.463671 163.013794 2.098103" +$ns_ at 157.000000 "$node_(6) setdest 447.800127 61.558044 19.366087" +$ns_ at 157.000000 "$node_(7) setdest 421.274390 47.730933 19.993423" +$ns_ at 157.000000 "$node_(8) setdest 417.596276 42.348809 19.993978" +$ns_ at 157.000000 "$node_(9) setdest 533.516072 113.369140 18.827619" +$ns_ at 157.000000 "$node_(10) setdest 508.458281 174.872098 19.428817" + +$ns_ at 158.000000 "$node_(1) setdest 55.511989 78.080336 17.052094" +$ns_ at 158.000000 "$node_(2) setdest 181.442077 72.235518 3.745545" +$ns_ at 158.000000 "$node_(3) setdest 134.731133 150.035278 7.761367" +$ns_ at 158.000000 "$node_(4) setdest 113.388357 195.826949 11.405702" +$ns_ at 158.000000 "$node_(5) setdest 189.430347 155.904971 7.108901" +$ns_ at 158.000000 "$node_(6) setdest 451.172245 42.328961 19.522521" +$ns_ at 158.000000 "$node_(7) setdest 430.947390 30.485112 19.773347" +$ns_ at 158.000000 "$node_(8) setdest 416.344354 24.696906 17.696242" +$ns_ at 158.000000 "$node_(9) setdest 532.772610 95.462924 17.921644" +$ns_ at 158.000000 "$node_(10) setdest 499.709975 191.961210 19.198193" + +$ns_ at 159.000000 "$node_(1) setdest 62.113656 61.761513 17.603579" +$ns_ at 159.000000 "$node_(2) setdest 176.123023 71.889821 5.330276" +$ns_ at 159.000000 "$node_(3) setdest 131.954733 141.086339 9.369734" +$ns_ at 159.000000 "$node_(4) setdest 126.380996 196.373692 13.004139" +$ns_ at 159.000000 "$node_(5) setdest 187.683229 147.360821 8.720947" +$ns_ at 159.000000 "$node_(6) setdest 451.279335 22.737061 19.592193" +$ns_ at 159.000000 "$node_(7) setdest 436.024525 11.839659 19.324342" +$ns_ at 159.000000 "$node_(8) setdest 426.226077 23.617931 9.940454" +$ns_ at 159.000000 "$node_(9) setdest 526.035117 80.351338 16.545509" +$ns_ at 159.000000 "$node_(10) setdest 503.894359 181.756466 11.029318" + +$ns_ at 160.000000 "$node_(1) setdest 65.960718 43.172044 18.983367" +$ns_ at 160.000000 "$node_(2) setdest 169.348075 73.331064 6.926551" +$ns_ at 160.000000 "$node_(3) setdest 128.796997 130.584343 10.966459" +$ns_ at 160.000000 "$node_(4) setdest 140.930810 195.800748 14.561090" +$ns_ at 160.000000 "$node_(5) setdest 187.045369 137.058154 10.322393" +$ns_ at 160.000000 "$node_(6) setdest 444.402909 18.604950 8.022441" +$ns_ at 160.000000 "$node_(7) setdest 434.909325 14.365720 2.761278" +$ns_ at 160.000000 "$node_(8) setdest 424.301771 22.863179 2.067028" +$ns_ at 160.000000 "$node_(9) setdest 512.812174 79.050168 13.286808" +$ns_ at 160.000000 "$node_(10) setdest 495.740867 177.608074 9.148147" + +$ns_ at 161.000000 "$node_(1) setdest 72.042419 24.842076 19.312556" +$ns_ at 161.000000 "$node_(2) setdest 161.871350 77.405615 8.514892" +$ns_ at 161.000000 "$node_(3) setdest 126.355196 118.254232 12.569568" +$ns_ at 161.000000 "$node_(4) setdest 150.057613 187.830197 12.117269" +$ns_ at 161.000000 "$node_(5) setdest 187.048576 125.133800 11.924355" +$ns_ at 161.000000 "$node_(6) setdest 434.736032 18.300064 9.671684" +$ns_ at 161.000000 "$node_(7) setdest 431.202382 15.736051 3.952118" +$ns_ at 161.000000 "$node_(8) setdest 421.173291 24.251968 3.422882" +$ns_ at 161.000000 "$node_(9) setdest 497.627026 80.566955 15.260713" +$ns_ at 161.000000 "$node_(10) setdest 485.182776 174.616363 10.973770" + +$ns_ at 162.000000 "$node_(1) setdest 76.823348 6.990102 18.481078" +$ns_ at 162.000000 "$node_(2) setdest 155.188412 84.965774 10.090474" +$ns_ at 162.000000 "$node_(3) setdest 123.148854 104.452853 14.168934" +$ns_ at 162.000000 "$node_(4) setdest 146.530739 184.039119 5.177945" +$ns_ at 162.000000 "$node_(5) setdest 185.580284 111.692807 13.520953" +$ns_ at 162.000000 "$node_(6) setdest 423.465948 18.099012 11.271878" +$ns_ at 162.000000 "$node_(7) setdest 426.070562 17.854362 5.551829" +$ns_ at 162.000000 "$node_(8) setdest 416.609786 26.350567 5.022917" +$ns_ at 162.000000 "$node_(9) setdest 480.789422 81.428650 16.859639" +$ns_ at 162.000000 "$node_(10) setdest 473.049914 171.315733 12.573802" + +$ns_ at 163.000000 "$node_(1) setdest 74.663686 11.270534 4.794396" +$ns_ at 163.000000 "$node_(2) setdest 150.947840 95.880837 11.709870" +$ns_ at 163.000000 "$node_(3) setdest 117.765575 89.646315 15.754785" +$ns_ at 163.000000 "$node_(4) setdest 140.287067 180.992837 6.947177" +$ns_ at 163.000000 "$node_(5) setdest 184.617717 96.618690 15.104819" +$ns_ at 163.000000 "$node_(6) setdest 410.594549 18.024662 12.871613" +$ns_ at 163.000000 "$node_(7) setdest 419.556244 20.806580 7.152058" +$ns_ at 163.000000 "$node_(8) setdest 410.491787 28.885939 6.622539" +$ns_ at 163.000000 "$node_(9) setdest 462.331560 81.229685 18.458934" +$ns_ at 163.000000 "$node_(10) setdest 459.326921 167.770043 14.173654" + +$ns_ at 164.000000 "$node_(1) setdest 77.700460 16.056801 5.668364" +$ns_ at 164.000000 "$node_(2) setdest 148.502806 108.986321 13.331613" +$ns_ at 164.000000 "$node_(3) setdest 109.149818 74.597894 17.340307" +$ns_ at 164.000000 "$node_(4) setdest 131.820856 181.190189 8.468511" +$ns_ at 164.000000 "$node_(5) setdest 185.147114 79.901197 16.725873" +$ns_ at 164.000000 "$node_(6) setdest 396.123158 17.912799 14.471824" +$ns_ at 164.000000 "$node_(7) setdest 411.667762 24.597608 8.752145" +$ns_ at 164.000000 "$node_(8) setdest 402.783503 31.748758 8.222735" +$ns_ at 164.000000 "$node_(9) setdest 442.549827 79.886156 19.827305" +$ns_ at 164.000000 "$node_(10) setdest 443.980346 164.127469 15.772942" + +$ns_ at 165.000000 "$node_(1) setdest 80.751011 22.632665 7.248989" +$ns_ at 165.000000 "$node_(2) setdest 147.928686 123.907075 14.931795" +$ns_ at 165.000000 "$node_(3) setdest 96.035595 60.970960 18.912329" +$ns_ at 165.000000 "$node_(4) setdest 122.502042 185.210639 10.149105" +$ns_ at 165.000000 "$node_(5) setdest 185.141179 61.579353 18.321845" +$ns_ at 165.000000 "$node_(6) setdest 380.051979 17.762097 16.071885" +$ns_ at 165.000000 "$node_(7) setdest 402.404607 29.219681 10.352276" +$ns_ at 165.000000 "$node_(8) setdest 393.507649 34.981420 9.823012" +$ns_ at 165.000000 "$node_(9) setdest 422.735375 77.199676 19.995742" +$ns_ at 165.000000 "$node_(10) setdest 426.942629 160.730540 17.373052" + +$ns_ at 166.000000 "$node_(1) setdest 82.726194 31.276530 8.866665" +$ns_ at 166.000000 "$node_(2) setdest 148.987588 140.420750 16.547590" +$ns_ at 166.000000 "$node_(3) setdest 78.637722 51.317801 19.896468" +$ns_ at 166.000000 "$node_(4) setdest 111.343377 182.740860 11.428718" +$ns_ at 166.000000 "$node_(5) setdest 183.940304 41.880407 19.735515" +$ns_ at 166.000000 "$node_(6) setdest 362.380169 17.752944 17.671813" +$ns_ at 166.000000 "$node_(7) setdest 391.653384 34.440900 11.951984" +$ns_ at 166.000000 "$node_(8) setdest 382.669885 38.590161 11.422790" +$ns_ at 166.000000 "$node_(9) setdest 403.199353 72.940877 19.994837" +$ns_ at 166.000000 "$node_(10) setdest 408.274085 157.340788 18.973796" + +$ns_ at 167.000000 "$node_(1) setdest 83.836001 41.676120 10.458640" +$ns_ at 167.000000 "$node_(2) setdest 153.399183 157.898562 18.025984" +$ns_ at 167.000000 "$node_(3) setdest 58.975217 50.354423 19.686091" +$ns_ at 167.000000 "$node_(4) setdest 103.966143 171.791634 13.202619" +$ns_ at 167.000000 "$node_(5) setdest 192.412042 25.101152 18.796642" +$ns_ at 167.000000 "$node_(6) setdest 343.128857 18.513654 19.266336" +$ns_ at 167.000000 "$node_(7) setdest 379.364734 40.154703 13.552065" +$ns_ at 167.000000 "$node_(8) setdest 370.163237 42.213745 13.021007" +$ns_ at 167.000000 "$node_(9) setdest 384.109842 66.996327 19.993677" +$ns_ at 167.000000 "$node_(10) setdest 388.699756 153.273291 19.992471" + +$ns_ at 168.000000 "$node_(1) setdest 84.894126 53.682119 12.052537" +$ns_ at 168.000000 "$node_(2) setdest 167.272527 171.355308 19.327536" +$ns_ at 168.000000 "$node_(3) setdest 50.795974 63.637111 15.599033" +$ns_ at 168.000000 "$node_(4) setdest 99.748116 157.437131 14.961400" +$ns_ at 168.000000 "$node_(5) setdest 198.947067 22.026635 7.222133" +$ns_ at 168.000000 "$node_(6) setdest 323.346757 21.396871 19.991109" +$ns_ at 168.000000 "$node_(7) setdest 365.975599 47.239433 15.148014" +$ns_ at 168.000000 "$node_(8) setdest 355.878352 45.327028 14.620207" +$ns_ at 168.000000 "$node_(9) setdest 365.020316 61.038320 19.997696" +$ns_ at 168.000000 "$node_(10) setdest 369.105098 149.269829 19.999458" + +$ns_ at 169.000000 "$node_(1) setdest 89.451531 66.521653 13.624375" +$ns_ at 169.000000 "$node_(2) setdest 185.788334 169.598855 18.598931" +$ns_ at 169.000000 "$node_(3) setdest 57.023606 66.857513 7.011019" +$ns_ at 169.000000 "$node_(4) setdest 94.375213 141.785412 16.548244" +$ns_ at 169.000000 "$node_(5) setdest 197.685641 21.098308 1.566202" +$ns_ at 169.000000 "$node_(6) setdest 303.800583 25.627234 19.998722" +$ns_ at 169.000000 "$node_(7) setdest 351.976358 56.428967 16.745934" +$ns_ at 169.000000 "$node_(8) setdest 339.845401 47.794114 16.221653" +$ns_ at 169.000000 "$node_(9) setdest 345.625203 56.166910 19.997526" +$ns_ at 169.000000 "$node_(10) setdest 349.412594 145.778646 19.999576" + +$ns_ at 170.000000 "$node_(1) setdest 98.595971 78.660537 15.197805" +$ns_ at 170.000000 "$node_(2) setdest 191.824229 152.854155 17.799355" +$ns_ at 170.000000 "$node_(3) setdest 65.505872 65.288800 8.626105" +$ns_ at 170.000000 "$node_(4) setdest 84.771789 126.399680 18.136882" +$ns_ at 170.000000 "$node_(5) setdest 194.447590 20.748193 3.256924" +$ns_ at 170.000000 "$node_(6) setdest 284.422089 30.561769 19.996891" +$ns_ at 170.000000 "$node_(7) setdest 336.488392 66.266943 18.348375" +$ns_ at 170.000000 "$node_(8) setdest 322.137911 49.798598 17.820583" +$ns_ at 170.000000 "$node_(9) setdest 325.954317 52.576373 19.995892" +$ns_ at 170.000000 "$node_(10) setdest 329.735957 142.201287 19.999189" + +$ns_ at 171.000000 "$node_(1) setdest 112.977297 87.271027 16.761953" +$ns_ at 171.000000 "$node_(2) setdest 191.611035 136.352639 16.502893" +$ns_ at 171.000000 "$node_(3) setdest 75.600405 63.592078 10.236135" +$ns_ at 171.000000 "$node_(4) setdest 69.325659 114.455881 19.525298" +$ns_ at 171.000000 "$node_(5) setdest 189.626370 20.167736 4.856036" +$ns_ at 171.000000 "$node_(6) setdest 265.427300 36.816797 19.998184" +$ns_ at 171.000000 "$node_(7) setdest 319.125355 75.725898 19.772377" +$ns_ at 171.000000 "$node_(8) setdest 302.740361 50.564467 19.412663" +$ns_ at 171.000000 "$node_(9) setdest 306.097225 50.200000 19.998782" +$ns_ at 171.000000 "$node_(10) setdest 310.324303 137.409564 19.994322" + +$ns_ at 172.000000 "$node_(1) setdest 130.889740 91.652087 18.440426" +$ns_ at 172.000000 "$node_(2) setdest 188.195099 119.984720 16.720568" +$ns_ at 172.000000 "$node_(3) setdest 87.261624 61.566337 11.835863" +$ns_ at 172.000000 "$node_(4) setdest 50.408455 108.069384 19.966171" +$ns_ at 172.000000 "$node_(5) setdest 183.210315 19.462493 6.454698" +$ns_ at 172.000000 "$node_(6) setdest 246.804372 44.105199 19.998357" +$ns_ at 172.000000 "$node_(7) setdest 300.903681 83.960245 19.995847" +$ns_ at 172.000000 "$node_(8) setdest 282.761368 49.802834 19.993506" +$ns_ at 172.000000 "$node_(9) setdest 286.178420 48.427559 19.997508" +$ns_ at 172.000000 "$node_(10) setdest 291.419852 130.900985 19.993495" + +$ns_ at 173.000000 "$node_(1) setdest 150.117221 96.445478 19.815968" +$ns_ at 173.000000 "$node_(2) setdest 186.605797 101.739334 18.314476" +$ns_ at 173.000000 "$node_(3) setdest 100.596739 59.980711 13.429055" +$ns_ at 173.000000 "$node_(4) setdest 30.490170 107.030632 19.945353" +$ns_ at 173.000000 "$node_(5) setdest 175.384564 17.552862 8.055375" +$ns_ at 173.000000 "$node_(6) setdest 228.279753 51.641445 19.998913" +$ns_ at 173.000000 "$node_(7) setdest 282.201859 91.043224 19.998168" +$ns_ at 173.000000 "$node_(8) setdest 263.086759 46.344289 19.976279" +$ns_ at 173.000000 "$node_(9) setdest 266.189461 47.940458 19.994893" +$ns_ at 173.000000 "$node_(10) setdest 273.195059 122.679443 19.993419" + +$ns_ at 174.000000 "$node_(1) setdest 168.902350 103.226473 19.971554" +$ns_ at 174.000000 "$node_(2) setdest 184.513754 82.093305 19.757102" +$ns_ at 174.000000 "$node_(3) setdest 115.623096 60.000922 15.026371" +$ns_ at 174.000000 "$node_(4) setdest 11.378375 105.199769 19.199290" +$ns_ at 174.000000 "$node_(5) setdest 165.905684 15.739495 9.650776" +$ns_ at 174.000000 "$node_(6) setdest 210.524312 60.821660 19.988297" +$ns_ at 174.000000 "$node_(7) setdest 263.237099 97.391304 19.999006" +$ns_ at 174.000000 "$node_(8) setdest 244.452806 39.179900 19.963784" +$ns_ at 174.000000 "$node_(9) setdest 246.259591 49.492870 19.990241" +$ns_ at 174.000000 "$node_(10) setdest 255.875893 112.695630 19.990749" + +$ns_ at 175.000000 "$node_(1) setdest 179.680069 118.492693 18.687341" +$ns_ at 175.000000 "$node_(2) setdest 180.258778 62.740869 19.814682" +$ns_ at 175.000000 "$node_(3) setdest 132.021670 62.570627 16.598693" +$ns_ at 175.000000 "$node_(4) setdest 5.755446 88.484328 17.635853" +$ns_ at 175.000000 "$node_(5) setdest 155.223912 16.670444 10.722262" +$ns_ at 175.000000 "$node_(6) setdest 194.092342 72.196532 19.984929" +$ns_ at 175.000000 "$node_(7) setdest 244.024859 102.944527 19.998711" +$ns_ at 175.000000 "$node_(8) setdest 226.039257 31.479843 19.958700" +$ns_ at 175.000000 "$node_(9) setdest 226.666973 53.441639 19.986582" +$ns_ at 175.000000 "$node_(10) setdest 239.867016 100.730485 19.986216" + +$ns_ at 176.000000 "$node_(1) setdest 178.455056 113.826735 4.824088" +$ns_ at 176.000000 "$node_(2) setdest 170.317497 46.270492 19.238045" +$ns_ at 176.000000 "$node_(3) setdest 148.852278 69.512159 18.205884" +$ns_ at 176.000000 "$node_(4) setdest 7.747696 72.189753 16.415914" +$ns_ at 176.000000 "$node_(5) setdest 155.067960 17.267330 0.616923" +$ns_ at 176.000000 "$node_(6) setdest 179.520253 85.870172 19.982848" +$ns_ at 176.000000 "$node_(7) setdest 224.758061 108.308526 19.999549" +$ns_ at 176.000000 "$node_(8) setdest 206.348654 28.206572 19.960815" +$ns_ at 176.000000 "$node_(9) setdest 207.773501 59.963121 19.987322" +$ns_ at 176.000000 "$node_(10) setdest 225.733708 86.607919 19.979922" + +$ns_ at 177.000000 "$node_(1) setdest 175.246544 108.496016 6.221826" +$ns_ at 177.000000 "$node_(2) setdest 157.726290 31.362125 19.514044" +$ns_ at 177.000000 "$node_(3) setdest 164.683417 81.103727 19.621148" +$ns_ at 177.000000 "$node_(4) setdest 17.513917 60.031501 15.594941" +$ns_ at 177.000000 "$node_(5) setdest 156.535342 17.780235 1.554439" +$ns_ at 177.000000 "$node_(6) setdest 167.122891 101.545865 19.985543" +$ns_ at 177.000000 "$node_(7) setdest 205.299075 112.923724 19.998805" +$ns_ at 177.000000 "$node_(8) setdest 186.493072 30.105946 19.946222" +$ns_ at 177.000000 "$node_(9) setdest 189.928589 68.956396 19.982989" +$ns_ at 177.000000 "$node_(10) setdest 213.261658 71.046403 19.942738" + +$ns_ at 178.000000 "$node_(1) setdest 172.424003 101.197065 7.825690" +$ns_ at 178.000000 "$node_(2) setdest 142.888376 19.133692 19.227539" +$ns_ at 178.000000 "$node_(3) setdest 174.810337 98.211073 19.880034" +$ns_ at 178.000000 "$node_(4) setdest 31.152481 49.569283 17.189195" +$ns_ at 178.000000 "$node_(5) setdest 159.699097 18.019297 3.172774" +$ns_ at 178.000000 "$node_(6) setdest 157.052647 118.802745 19.980234" +$ns_ at 178.000000 "$node_(7) setdest 185.768249 117.229326 19.999784" +$ns_ at 178.000000 "$node_(8) setdest 167.818405 37.111714 19.945525" +$ns_ at 178.000000 "$node_(9) setdest 173.871013 80.833808 19.972948" +$ns_ at 178.000000 "$node_(10) setdest 196.419365 70.738967 16.845098" + +$ns_ at 179.000000 "$node_(1) setdest 170.753363 91.918408 9.427858" +$ns_ at 179.000000 "$node_(2) setdest 125.010723 12.749372 18.983414" +$ns_ at 179.000000 "$node_(3) setdest 181.874760 116.920836 19.999033" +$ns_ at 179.000000 "$node_(4) setdest 46.551054 38.789818 18.796620" +$ns_ at 179.000000 "$node_(5) setdest 163.906434 16.048997 4.645834" +$ns_ at 179.000000 "$node_(6) setdest 150.159618 137.551322 19.975559" +$ns_ at 179.000000 "$node_(7) setdest 166.344084 121.993628 19.999919" +$ns_ at 179.000000 "$node_(8) setdest 150.738069 47.480338 19.981147" +$ns_ at 179.000000 "$node_(9) setdest 160.581359 95.722920 19.957469" +$ns_ at 179.000000 "$node_(10) setdest 195.672687 84.091040 13.372934" + +$ns_ at 180.000000 "$node_(1) setdest 170.379290 80.898702 11.026053" +$ns_ at 180.000000 "$node_(2) setdest 106.108663 11.307135 18.957001" +$ns_ at 180.000000 "$node_(3) setdest 186.831517 136.224536 19.929934" +$ns_ at 180.000000 "$node_(4) setdest 63.824239 28.948857 19.879825" +$ns_ at 180.000000 "$node_(5) setdest 169.419179 13.556525 6.050023" +$ns_ at 180.000000 "$node_(6) setdest 147.828308 157.269197 19.855216" +$ns_ at 180.000000 "$node_(7) setdest 147.059157 127.267473 19.993046" +$ns_ at 180.000000 "$node_(8) setdest 134.966214 59.765581 19.991963" +$ns_ at 180.000000 "$node_(9) setdest 151.747848 113.601200 19.941509" +$ns_ at 180.000000 "$node_(10) setdest 189.493134 92.502152 10.437130" + +$ns_ at 181.000000 "$node_(1) setdest 171.163052 68.288192 12.634842" +$ns_ at 181.000000 "$node_(2) setdest 91.123305 20.053465 17.351060" +$ns_ at 181.000000 "$node_(3) setdest 188.637831 156.141046 19.998253" +$ns_ at 181.000000 "$node_(4) setdest 82.685943 28.747684 18.862777" +$ns_ at 181.000000 "$node_(5) setdest 172.747269 19.290485 6.629817" +$ns_ at 181.000000 "$node_(6) setdest 160.476531 170.330272 18.181563" +$ns_ at 181.000000 "$node_(7) setdest 128.509912 134.706388 19.985292" +$ns_ at 181.000000 "$node_(8) setdest 117.253969 68.951910 19.952752" +$ns_ at 181.000000 "$node_(9) setdest 145.153561 132.482364 19.999575" +$ns_ at 181.000000 "$node_(10) setdest 178.683836 98.024600 12.138302" + +$ns_ at 182.000000 "$node_(1) setdest 172.888706 54.198358 14.195116" +$ns_ at 182.000000 "$node_(2) setdest 83.890009 35.949121 17.464032" +$ns_ at 182.000000 "$node_(3) setdest 190.094980 176.021799 19.934083" +$ns_ at 182.000000 "$node_(4) setdest 96.855632 39.340425 17.691417" +$ns_ at 182.000000 "$node_(5) setdest 173.027925 27.952089 8.666149" +$ns_ at 182.000000 "$node_(6) setdest 177.244737 175.603016 17.577672" +$ns_ at 182.000000 "$node_(7) setdest 111.416146 145.032855 19.970798" +$ns_ at 182.000000 "$node_(8) setdest 97.650034 72.426294 19.909435" +$ns_ at 182.000000 "$node_(9) setdest 139.260466 151.590578 19.996310" +$ns_ at 182.000000 "$node_(10) setdest 167.962697 106.536181 13.689040" + +$ns_ at 183.000000 "$node_(1) setdest 180.428826 40.405392 15.719393" +$ns_ at 183.000000 "$node_(2) setdest 80.665629 54.207418 18.540821" +$ns_ at 183.000000 "$node_(3) setdest 196.076606 187.662698 13.087794" +$ns_ at 183.000000 "$node_(4) setdest 113.096835 43.407822 16.742771" +$ns_ at 183.000000 "$node_(5) setdest 175.004921 38.052270 10.291850" +$ns_ at 183.000000 "$node_(6) setdest 192.567746 173.044954 15.535067" +$ns_ at 183.000000 "$node_(7) setdest 94.933105 156.301721 19.966922" +$ns_ at 183.000000 "$node_(8) setdest 78.202415 68.303846 19.879749" +$ns_ at 183.000000 "$node_(9) setdest 128.466810 168.153105 19.769176" +$ns_ at 183.000000 "$node_(10) setdest 155.692441 115.659456 15.290302" + +$ns_ at 184.000000 "$node_(1) setdest 194.682139 32.290056 16.401695" +$ns_ at 184.000000 "$node_(2) setdest 71.721236 70.341996 18.447948" +$ns_ at 184.000000 "$node_(3) setdest 195.005636 184.210017 3.614967" +$ns_ at 184.000000 "$node_(4) setdest 131.373418 43.329977 18.276749" +$ns_ at 184.000000 "$node_(5) setdest 177.681189 49.641032 11.893773" +$ns_ at 184.000000 "$node_(6) setdest 192.538130 172.725928 0.320398" +$ns_ at 184.000000 "$node_(7) setdest 76.208559 163.180223 19.947993" +$ns_ at 184.000000 "$node_(8) setdest 59.386392 61.528995 19.998534" +$ns_ at 184.000000 "$node_(9) setdest 119.659162 170.816167 9.201443" +$ns_ at 184.000000 "$node_(10) setdest 139.468774 119.990598 16.791848" + +$ns_ at 185.000000 "$node_(1) setdest 195.613467 33.069178 1.214250" +$ns_ at 185.000000 "$node_(2) setdest 72.027737 89.787372 19.447792" +$ns_ at 185.000000 "$node_(3) setdest 194.672645 188.582756 4.385400" +$ns_ at 185.000000 "$node_(4) setdest 134.492679 47.692958 5.363338" +$ns_ at 185.000000 "$node_(5) setdest 173.964993 62.431439 13.319333" +$ns_ at 185.000000 "$node_(6) setdest 191.099665 172.527656 1.452065" +$ns_ at 185.000000 "$node_(7) setdest 56.380453 165.404161 19.952436" +$ns_ at 185.000000 "$node_(8) setdest 40.804330 54.137082 19.998335" +$ns_ at 185.000000 "$node_(9) setdest 119.805941 169.859912 0.967454" +$ns_ at 185.000000 "$node_(10) setdest 121.371407 116.477413 18.435216" + +$ns_ at 186.000000 "$node_(1) setdest 195.523460 35.547228 2.479684" +$ns_ at 186.000000 "$node_(2) setdest 72.860222 109.769952 19.999913" +$ns_ at 186.000000 "$node_(3) setdest 193.465576 194.532746 6.071194" +$ns_ at 186.000000 "$node_(4) setdest 134.472696 54.482129 6.789201" +$ns_ at 186.000000 "$node_(5) setdest 169.445995 76.675295 14.943519" +$ns_ at 186.000000 "$node_(6) setdest 188.017704 172.548818 3.082034" +$ns_ at 186.000000 "$node_(7) setdest 36.936529 161.362410 19.859555" +$ns_ at 186.000000 "$node_(8) setdest 21.592497 48.640305 19.982719" +$ns_ at 186.000000 "$node_(9) setdest 120.575903 167.393762 2.583551" +$ns_ at 186.000000 "$node_(10) setdest 104.372214 106.231584 19.848162" + +$ns_ at 187.000000 "$node_(1) setdest 195.465659 39.626432 4.079614" +$ns_ at 187.000000 "$node_(2) setdest 73.033876 129.767033 19.997835" +$ns_ at 187.000000 "$node_(3) setdest 192.328990 202.117959 7.669894" +$ns_ at 187.000000 "$node_(4) setdest 134.718626 62.867220 8.388696" +$ns_ at 187.000000 "$node_(5) setdest 165.002660 92.609977 16.542591" +$ns_ at 187.000000 "$node_(6) setdest 183.363363 172.076516 4.678243" +$ns_ at 187.000000 "$node_(7) setdest 27.040671 147.302132 17.193587" +$ns_ at 187.000000 "$node_(8) setdest 15.086590 34.481154 15.582310" +$ns_ at 187.000000 "$node_(9) setdest 122.262624 163.566603 4.182365" +$ns_ at 187.000000 "$node_(10) setdest 87.019330 96.377428 19.955625" + +$ns_ at 188.000000 "$node_(1) setdest 195.493442 45.306014 5.679650" +$ns_ at 188.000000 "$node_(2) setdest 72.088632 149.742168 19.997487" +$ns_ at 188.000000 "$node_(3) setdest 191.694603 211.364885 9.268662" +$ns_ at 188.000000 "$node_(4) setdest 135.397225 72.832879 9.988737" +$ns_ at 188.000000 "$node_(5) setdest 160.860419 110.273346 18.142567" +$ns_ at 188.000000 "$node_(6) setdest 177.331385 170.366266 6.269746" +$ns_ at 188.000000 "$node_(7) setdest 33.339932 142.144690 8.141247" +$ns_ at 188.000000 "$node_(8) setdest 25.950932 28.357513 12.471284" +$ns_ at 188.000000 "$node_(9) setdest 125.574753 158.840877 5.770848" +$ns_ at 188.000000 "$node_(10) setdest 73.723879 81.531864 19.928868" + +$ns_ at 189.000000 "$node_(1) setdest 195.501926 52.585695 7.279686" +$ns_ at 189.000000 "$node_(2) setdest 70.118723 169.643281 19.998371" +$ns_ at 189.000000 "$node_(3) setdest 191.784503 222.234607 10.870094" +$ns_ at 189.000000 "$node_(4) setdest 136.587465 84.360558 11.588963" +$ns_ at 189.000000 "$node_(5) setdest 157.134792 129.574013 19.656960" +$ns_ at 189.000000 "$node_(6) setdest 170.511875 166.445811 7.866110" +$ns_ at 189.000000 "$node_(7) setdest 42.075135 137.545000 9.872230" +$ns_ at 189.000000 "$node_(8) setdest 39.756298 24.207709 14.415582" +$ns_ at 189.000000 "$node_(9) setdest 131.266657 154.174797 7.360033" +$ns_ at 189.000000 "$node_(10) setdest 62.437001 65.038639 19.985497" + +$ns_ at 190.000000 "$node_(1) setdest 195.416493 61.464644 8.879359" +$ns_ at 190.000000 "$node_(2) setdest 67.278825 189.439428 19.998811" +$ns_ at 190.000000 "$node_(3) setdest 192.074302 234.702462 12.471222" +$ns_ at 190.000000 "$node_(4) setdest 138.172614 97.454006 13.189051" +$ns_ at 190.000000 "$node_(5) setdest 154.020435 149.328771 19.998742" +$ns_ at 190.000000 "$node_(6) setdest 163.520779 160.060724 9.468092" +$ns_ at 190.000000 "$node_(7) setdest 51.690561 131.290754 11.470484" +$ns_ at 190.000000 "$node_(8) setdest 55.087819 19.437284 16.056541" +$ns_ at 190.000000 "$node_(9) setdest 139.311546 150.191848 8.976865" +$ns_ at 190.000000 "$node_(10) setdest 59.419189 45.948052 19.327640" + +$ns_ at 191.000000 "$node_(1) setdest 195.032236 71.937101 10.479504" +$ns_ at 191.000000 "$node_(2) setdest 63.774126 209.129366 19.999414" +$ns_ at 191.000000 "$node_(3) setdest 192.134525 248.773197 14.070864" +$ns_ at 191.000000 "$node_(4) setdest 140.151210 112.110209 14.789156" +$ns_ at 191.000000 "$node_(5) setdest 151.528492 169.172266 19.999351" +$ns_ at 191.000000 "$node_(6) setdest 156.653106 151.371539 11.075507" +$ns_ at 191.000000 "$node_(7) setdest 61.020362 122.160481 13.054006" +$ns_ at 191.000000 "$node_(8) setdest 72.246356 15.431568 17.619908" +$ns_ at 191.000000 "$node_(9) setdest 149.037901 146.020315 10.583179" +$ns_ at 191.000000 "$node_(10) setdest 62.233515 26.981985 19.173735" + +$ns_ at 192.000000 "$node_(1) setdest 194.328858 83.995651 12.079047" +$ns_ at 192.000000 "$node_(2) setdest 60.068139 228.782066 19.999074" +$ns_ at 192.000000 "$node_(3) setdest 191.210367 264.413225 15.667308" +$ns_ at 192.000000 "$node_(4) setdest 142.034412 128.390629 16.388976" +$ns_ at 192.000000 "$node_(5) setdest 149.209226 189.037194 19.999859" +$ns_ at 192.000000 "$node_(6) setdest 149.885588 140.648727 12.679826" +$ns_ at 192.000000 "$node_(7) setdest 70.178665 110.699923 14.670341" +$ns_ at 192.000000 "$node_(8) setdest 91.480263 14.579377 19.252776" +$ns_ at 192.000000 "$node_(9) setdest 160.621424 145.650484 11.589425" +$ns_ at 192.000000 "$node_(10) setdest 71.531198 10.851366 18.618372" + +$ns_ at 193.000000 "$node_(1) setdest 193.150556 97.624358 13.679549" +$ns_ at 193.000000 "$node_(2) setdest 56.962041 248.539067 19.999673" +$ns_ at 193.000000 "$node_(3) setdest 188.728422 281.499973 17.266065" +$ns_ at 193.000000 "$node_(4) setdest 143.661611 146.305417 17.988535" +$ns_ at 193.000000 "$node_(5) setdest 146.639128 208.871240 19.999870" +$ns_ at 193.000000 "$node_(6) setdest 141.678111 128.965386 14.278065" +$ns_ at 193.000000 "$node_(7) setdest 77.526460 96.240451 16.219323" +$ns_ at 193.000000 "$node_(8) setdest 111.285642 11.901841 19.985551" +$ns_ at 193.000000 "$node_(9) setdest 162.320582 151.191100 5.795306" +$ns_ at 193.000000 "$node_(10) setdest 69.434904 14.512209 4.218556" + +$ns_ at 194.000000 "$node_(1) setdest 191.331293 112.793988 15.278331" +$ns_ at 194.000000 "$node_(2) setdest 54.045499 268.325206 19.999938" +$ns_ at 194.000000 "$node_(3) setdest 184.809887 299.958796 18.870163" +$ns_ at 194.000000 "$node_(4) setdest 144.576980 165.824228 19.540263" +$ns_ at 194.000000 "$node_(5) setdest 143.541952 228.628802 19.998844" +$ns_ at 194.000000 "$node_(6) setdest 132.011405 116.363647 15.882350" +$ns_ at 194.000000 "$node_(7) setdest 81.390315 78.832201 17.831897" +$ns_ at 194.000000 "$node_(8) setdest 130.995388 8.526521 19.996672" +$ns_ at 194.000000 "$node_(9) setdest 158.304055 156.109234 6.349844" +$ns_ at 194.000000 "$node_(10) setdest 64.357297 23.822765 10.605120" + +$ns_ at 195.000000 "$node_(1) setdest 188.282059 129.392447 16.876216" +$ns_ at 195.000000 "$node_(2) setdest 51.150472 288.114471 19.999904" +$ns_ at 195.000000 "$node_(3) setdest 179.637007 319.243200 19.966145" +$ns_ at 195.000000 "$node_(4) setdest 144.982177 185.819869 19.999746" +$ns_ at 195.000000 "$node_(5) setdest 139.870629 248.288518 19.999576" +$ns_ at 195.000000 "$node_(6) setdest 122.921583 101.453520 17.462438" +$ns_ at 195.000000 "$node_(7) setdest 80.824768 59.414565 19.425870" +$ns_ at 195.000000 "$node_(8) setdest 150.685052 6.112369 19.837111" +$ns_ at 195.000000 "$node_(9) setdest 153.669623 162.564787 7.946831" +$ns_ at 195.000000 "$node_(10) setdest 62.963882 36.031903 12.288395" + +$ns_ at 196.000000 "$node_(1) setdest 183.957321 147.358510 18.479253" +$ns_ at 196.000000 "$node_(2) setdest 48.611087 307.952411 19.999809" +$ns_ at 196.000000 "$node_(3) setdest 172.922634 338.070779 19.989011" +$ns_ at 196.000000 "$node_(4) setdest 145.105736 205.819344 19.999857" +$ns_ at 196.000000 "$node_(5) setdest 135.716006 267.851495 19.999273" +$ns_ at 196.000000 "$node_(6) setdest 114.965812 84.111046 19.080244" +$ns_ at 196.000000 "$node_(7) setdest 77.199943 39.771797 19.974427" +$ns_ at 196.000000 "$node_(8) setdest 170.172454 10.569598 19.990641" +$ns_ at 196.000000 "$node_(9) setdest 146.820750 169.209669 9.542616" +$ns_ at 196.000000 "$node_(10) setdest 65.562221 49.704614 13.917413" + +$ns_ at 197.000000 "$node_(1) setdest 179.424231 166.672897 19.839215" +$ns_ at 197.000000 "$node_(2) setdest 46.811525 327.868842 19.997566" +$ns_ at 197.000000 "$node_(3) setdest 163.939414 355.929108 19.990452" +$ns_ at 197.000000 "$node_(4) setdest 145.006109 225.818471 19.999375" +$ns_ at 197.000000 "$node_(5) setdest 130.662166 287.197475 19.995206" +$ns_ at 197.000000 "$node_(6) setdest 106.357417 66.062345 19.996501" +$ns_ at 197.000000 "$node_(7) setdest 75.946021 20.181201 19.630684" +$ns_ at 197.000000 "$node_(8) setdest 188.099728 18.417830 19.569923" +$ns_ at 197.000000 "$node_(9) setdest 138.645810 176.738594 11.113701" +$ns_ at 197.000000 "$node_(10) setdest 71.277978 64.136289 15.522342" + +$ns_ at 198.000000 "$node_(1) setdest 175.356307 186.254820 19.999992" +$ns_ at 198.000000 "$node_(2) setdest 45.427324 347.820835 19.999951" +$ns_ at 198.000000 "$node_(3) setdest 152.416252 372.246071 19.975649" +$ns_ at 198.000000 "$node_(4) setdest 143.832197 245.780166 19.996183" +$ns_ at 198.000000 "$node_(5) setdest 123.549176 305.874927 19.986041" +$ns_ at 198.000000 "$node_(6) setdest 95.007893 49.716550 19.899666" +$ns_ at 198.000000 "$node_(7) setdest 89.910882 8.256505 18.363434" +$ns_ at 198.000000 "$node_(8) setdest 186.767229 35.321285 16.955895" +$ns_ at 198.000000 "$node_(9) setdest 140.360459 185.666801 9.091364" +$ns_ at 198.000000 "$node_(10) setdest 79.585340 79.054188 17.075010" + +$ns_ at 199.000000 "$node_(1) setdest 171.310371 205.841290 19.999985" +$ns_ at 199.000000 "$node_(2) setdest 45.246485 367.808943 19.988926" +$ns_ at 199.000000 "$node_(3) setdest 141.026187 379.353825 13.425861" +$ns_ at 199.000000 "$node_(4) setdest 141.471649 265.638334 19.997976" +$ns_ at 199.000000 "$node_(5) setdest 113.615585 323.205618 19.975712" +$ns_ at 199.000000 "$node_(6) setdest 77.769915 49.534854 17.238935" +$ns_ at 199.000000 "$node_(7) setdest 106.824065 10.366785 17.044326" +$ns_ at 199.000000 "$node_(8) setdest 175.640526 47.155431 16.243476" +$ns_ at 199.000000 "$node_(9) setdest 145.881782 184.022631 5.760929" +$ns_ at 199.000000 "$node_(10) setdest 88.755604 95.337817 18.688240" + +$ns_ at 200.000000 "$node_(1) setdest 167.224719 225.419522 19.999993" +$ns_ at 200.000000 "$node_(2) setdest 49.050666 387.354600 19.912420" +$ns_ at 200.000000 "$node_(3) setdest 144.119591 377.312601 3.706177" +$ns_ at 200.000000 "$node_(4) setdest 138.256986 285.377161 19.998884" +$ns_ at 200.000000 "$node_(5) setdest 100.527566 338.285629 19.967548" +$ns_ at 200.000000 "$node_(6) setdest 72.091162 65.514596 16.958785" +$ns_ at 200.000000 "$node_(7) setdest 122.081158 16.304017 16.371610" +$ns_ at 200.000000 "$node_(8) setdest 160.926667 51.839992 15.441592" +$ns_ at 200.000000 "$node_(9) setdest 149.142428 177.126205 7.628401" +$ns_ at 200.000000 "$node_(10) setdest 99.613365 111.937528 19.835356" + +$ns_ at 201.000000 "$node_(1) setdest 163.241486 245.018750 19.999897" +$ns_ at 201.000000 "$node_(2) setdest 61.654558 402.610167 19.788644" +$ns_ at 201.000000 "$node_(3) setdest 149.076068 375.294812 5.351461" +$ns_ at 201.000000 "$node_(4) setdest 134.200711 304.958942 19.997488" +$ns_ at 201.000000 "$node_(5) setdest 84.538504 350.240382 19.964123" +$ns_ at 201.000000 "$node_(6) setdest 67.136324 80.376662 15.666251" +$ns_ at 201.000000 "$node_(7) setdest 139.717702 18.648063 17.791633" +$ns_ at 201.000000 "$node_(8) setdest 145.832431 59.287246 16.831446" +$ns_ at 201.000000 "$node_(9) setdest 152.552155 168.551362 9.227902" +$ns_ at 201.000000 "$node_(10) setdest 117.014782 121.404332 19.809839" + +$ns_ at 202.000000 "$node_(1) setdest 159.391115 264.644218 19.999609" +$ns_ at 202.000000 "$node_(2) setdest 78.236392 413.777419 19.991617" +$ns_ at 202.000000 "$node_(3) setdest 155.820516 373.560161 6.963950" +$ns_ at 202.000000 "$node_(4) setdest 129.372934 324.366691 19.999203" +$ns_ at 202.000000 "$node_(5) setdest 66.671342 359.206049 19.990464" +$ns_ at 202.000000 "$node_(6) setdest 59.005599 94.783951 16.543236" +$ns_ at 202.000000 "$node_(7) setdest 158.694781 17.342255 19.021952" +$ns_ at 202.000000 "$node_(8) setdest 128.180124 62.164422 17.885247" +$ns_ at 202.000000 "$node_(9) setdest 155.239978 158.052038 10.837906" +$ns_ at 202.000000 "$node_(10) setdest 136.907991 122.875448 19.947530" + +$ns_ at 203.000000 "$node_(1) setdest 156.090421 284.369430 19.999465" +$ns_ at 203.000000 "$node_(2) setdest 95.064626 424.526948 19.968521" +$ns_ at 203.000000 "$node_(3) setdest 163.970693 371.055823 8.526259" +$ns_ at 203.000000 "$node_(4) setdest 123.550868 343.497632 19.997233" +$ns_ at 203.000000 "$node_(5) setdest 47.626658 365.068247 19.926499" +$ns_ at 203.000000 "$node_(6) setdest 44.129184 104.390756 17.708711" +$ns_ at 203.000000 "$node_(7) setdest 173.699979 7.360376 18.022038" +$ns_ at 203.000000 "$node_(8) setdest 113.299302 53.211896 17.366248" +$ns_ at 203.000000 "$node_(9) setdest 158.404079 146.023580 12.437658" +$ns_ at 203.000000 "$node_(10) setdest 156.369232 118.860713 19.871034" + +$ns_ at 204.000000 "$node_(1) setdest 153.023861 304.132837 19.999901" +$ns_ at 204.000000 "$node_(2) setdest 111.823384 435.393263 19.973301" +$ns_ at 204.000000 "$node_(3) setdest 169.826488 362.901841 10.038813" +$ns_ at 204.000000 "$node_(4) setdest 116.289633 362.124419 19.992067" +$ns_ at 204.000000 "$node_(5) setdest 28.522161 370.489417 19.858773" +$ns_ at 204.000000 "$node_(6) setdest 27.051512 112.644070 18.967447" +$ns_ at 204.000000 "$node_(7) setdest 180.486356 8.534284 6.887160" +$ns_ at 204.000000 "$node_(8) setdest 98.103987 42.322359 18.694375" +$ns_ at 204.000000 "$node_(9) setdest 161.029362 132.243002 14.028416" +$ns_ at 204.000000 "$node_(10) setdest 172.443816 107.486758 19.691600" + +$ns_ at 205.000000 "$node_(1) setdest 149.277393 323.777154 19.998380" +$ns_ at 205.000000 "$node_(2) setdest 129.394110 444.945228 19.999261" +$ns_ at 205.000000 "$node_(3) setdest 168.110917 364.353857 2.247562" +$ns_ at 205.000000 "$node_(4) setdest 106.734376 379.674290 19.982515" +$ns_ at 205.000000 "$node_(5) setdest 24.594624 377.857992 8.349937" +$ns_ at 205.000000 "$node_(6) setdest 9.174780 116.138563 18.215078" +$ns_ at 205.000000 "$node_(7) setdest 181.039157 13.299606 4.797278" +$ns_ at 205.000000 "$node_(8) setdest 82.787587 30.297708 19.472656" +$ns_ at 205.000000 "$node_(9) setdest 162.200630 116.656242 15.630705" +$ns_ at 205.000000 "$node_(10) setdest 181.116590 90.598550 18.984958" + +$ns_ at 206.000000 "$node_(1) setdest 144.598638 343.219337 19.997231" +$ns_ at 206.000000 "$node_(2) setdest 147.113812 454.211788 19.996424" +$ns_ at 206.000000 "$node_(3) setdest 161.975039 369.257123 7.854363" +$ns_ at 206.000000 "$node_(4) setdest 94.731875 395.657510 19.988080" +$ns_ at 206.000000 "$node_(5) setdest 28.110519 380.700946 4.521493" +$ns_ at 206.000000 "$node_(6) setdest 5.389523 111.880557 5.697261" +$ns_ at 206.000000 "$node_(7) setdest 182.643028 19.505356 6.409660" +$ns_ at 206.000000 "$node_(8) setdest 66.703839 19.152674 19.567798" +$ns_ at 206.000000 "$node_(9) setdest 163.096529 99.441502 17.238037" +$ns_ at 206.000000 "$node_(10) setdest 185.879217 71.902868 19.292773" + +$ns_ at 207.000000 "$node_(1) setdest 138.750622 362.341225 19.996146" +$ns_ at 207.000000 "$node_(2) setdest 163.876030 465.070012 19.971805" +$ns_ at 207.000000 "$node_(3) setdest 153.481555 373.421602 9.459501" +$ns_ at 207.000000 "$node_(4) setdest 81.367103 410.535184 19.999058" +$ns_ at 207.000000 "$node_(5) setdest 33.182405 384.121656 6.117622" +$ns_ at 207.000000 "$node_(6) setdest 7.670427 109.002037 3.672656" +$ns_ at 207.000000 "$node_(7) setdest 183.240979 27.459965 7.977052" +$ns_ at 207.000000 "$node_(8) setdest 48.471800 15.353912 18.623584" +$ns_ at 207.000000 "$node_(9) setdest 164.150679 80.632580 18.838438" +$ns_ at 207.000000 "$node_(10) setdest 185.014933 52.993766 18.928844" + +$ns_ at 208.000000 "$node_(1) setdest 131.154711 380.829290 19.987657" +$ns_ at 208.000000 "$node_(2) setdest 180.272876 476.520635 19.999333" +$ns_ at 208.000000 "$node_(3) setdest 143.368479 377.932962 11.073692" +$ns_ at 208.000000 "$node_(4) setdest 69.391507 426.525693 19.977769" +$ns_ at 208.000000 "$node_(5) setdest 39.946435 387.849275 7.723163" +$ns_ at 208.000000 "$node_(6) setdest 10.931499 104.858445 5.272945" +$ns_ at 208.000000 "$node_(7) setdest 180.816137 36.719425 9.571701" +$ns_ at 208.000000 "$node_(8) setdest 30.381523 9.369616 19.054393" +$ns_ at 208.000000 "$node_(9) setdest 164.385587 60.684667 19.949297" +$ns_ at 208.000000 "$node_(10) setdest 174.507313 38.662418 17.770695" + +$ns_ at 209.000000 "$node_(1) setdest 121.092963 398.095887 19.984348" +$ns_ at 209.000000 "$node_(2) setdest 189.211708 490.664051 16.731375" +$ns_ at 209.000000 "$node_(3) setdest 131.945788 383.417256 12.671044" +$ns_ at 209.000000 "$node_(4) setdest 59.975120 444.153298 19.985015" +$ns_ at 209.000000 "$node_(5) setdest 48.328073 391.937141 9.325369" +$ns_ at 209.000000 "$node_(6) setdest 14.411675 98.942625 6.863568" +$ns_ at 209.000000 "$node_(7) setdest 175.728098 46.705469 11.207551" +$ns_ at 209.000000 "$node_(8) setdest 12.204122 7.859309 18.240037" +$ns_ at 209.000000 "$node_(9) setdest 159.026552 41.578356 19.843648" +$ns_ at 209.000000 "$node_(10) setdest 163.369819 23.521448 18.796083" + +$ns_ at 210.000000 "$node_(1) setdest 108.982057 413.993854 19.985480" +$ns_ at 210.000000 "$node_(2) setdest 180.764820 496.526252 10.281795" +$ns_ at 210.000000 "$node_(3) setdest 119.741871 390.808564 14.267692" +$ns_ at 210.000000 "$node_(4) setdest 53.047125 462.900705 19.986555" +$ns_ at 210.000000 "$node_(5) setdest 57.929229 397.148381 10.924249" +$ns_ at 210.000000 "$node_(6) setdest 16.629371 90.783736 8.454918" +$ns_ at 210.000000 "$node_(7) setdest 170.109979 58.216735 12.809079" +$ns_ at 210.000000 "$node_(8) setdest 7.612919 9.823576 4.993745" +$ns_ at 210.000000 "$node_(9) setdest 144.943214 27.647777 19.809125" +$ns_ at 210.000000 "$node_(10) setdest 151.654646 8.351943 19.166615" + +$ns_ at 211.000000 "$node_(1) setdest 94.765433 428.045068 19.988722" +$ns_ at 211.000000 "$node_(2) setdest 169.488840 501.292361 12.241876" +$ns_ at 211.000000 "$node_(3) setdest 106.907423 400.126968 15.860507" +$ns_ at 211.000000 "$node_(4) setdest 49.262673 482.502882 19.964153" +$ns_ at 211.000000 "$node_(5) setdest 68.775716 403.409497 12.523891" +$ns_ at 211.000000 "$node_(6) setdest 18.101119 80.820271 10.071578" +$ns_ at 211.000000 "$node_(7) setdest 164.220636 71.367090 14.408894" +$ns_ at 211.000000 "$node_(8) setdest 8.398181 10.582628 1.092152" +$ns_ at 211.000000 "$node_(9) setdest 126.252440 20.979851 19.844553" +$ns_ at 211.000000 "$node_(10) setdest 150.671362 7.925031 1.071962" + +$ns_ at 212.000000 "$node_(1) setdest 79.694798 440.482197 19.539862" +$ns_ at 212.000000 "$node_(2) setdest 158.086396 509.199851 13.876027" +$ns_ at 212.000000 "$node_(3) setdest 93.891593 411.784206 17.472923" +$ns_ at 212.000000 "$node_(4) setdest 51.602803 502.238394 19.873768" +$ns_ at 212.000000 "$node_(5) setdest 79.786377 412.225707 14.105326" +$ns_ at 212.000000 "$node_(6) setdest 18.082994 69.169270 11.651015" +$ns_ at 212.000000 "$node_(7) setdest 156.452151 85.357032 16.002119" +$ns_ at 212.000000 "$node_(8) setdest 10.252534 12.543807 2.699046" +$ns_ at 212.000000 "$node_(9) setdest 106.444082 18.349570 19.982227" +$ns_ at 212.000000 "$node_(10) setdest 150.561643 9.241322 1.320856" + +$ns_ at 213.000000 "$node_(1) setdest 74.331248 439.156532 5.524948" +$ns_ at 213.000000 "$node_(2) setdest 147.109484 520.059714 15.441154" +$ns_ at 213.000000 "$node_(3) setdest 78.802986 423.444845 19.069257" +$ns_ at 213.000000 "$node_(4) setdest 64.714464 515.886813 18.926040" +$ns_ at 213.000000 "$node_(5) setdest 90.367257 423.848581 15.717704" +$ns_ at 213.000000 "$node_(6) setdest 15.231940 56.211466 13.267750" +$ns_ at 213.000000 "$node_(7) setdest 146.294162 99.736602 17.605590" +$ns_ at 213.000000 "$node_(8) setdest 12.764348 16.030199 4.296992" +$ns_ at 213.000000 "$node_(9) setdest 87.094251 13.355646 19.983875" +$ns_ at 213.000000 "$node_(10) setdest 150.265932 12.167440 2.941022" + +$ns_ at 214.000000 "$node_(1) setdest 75.387413 435.963971 3.362726" +$ns_ at 214.000000 "$node_(2) setdest 134.637490 531.303365 16.791972" +$ns_ at 214.000000 "$node_(3) setdest 63.111503 435.821747 19.985253" +$ns_ at 214.000000 "$node_(4) setdest 82.741655 517.689625 18.117113" +$ns_ at 214.000000 "$node_(5) setdest 100.190863 438.094362 17.304495" +$ns_ at 214.000000 "$node_(6) setdest 11.435316 41.831751 14.872477" +$ns_ at 214.000000 "$node_(7) setdest 134.405054 114.825240 19.209838" +$ns_ at 214.000000 "$node_(8) setdest 15.786921 21.097420 5.900227" +$ns_ at 214.000000 "$node_(9) setdest 67.206233 11.386313 19.985283" +$ns_ at 214.000000 "$node_(10) setdest 150.233247 16.709509 4.542186" + +$ns_ at 215.000000 "$node_(1) setdest 78.105600 431.749429 5.015068" +$ns_ at 215.000000 "$node_(2) setdest 119.211728 527.255675 15.947976" +$ns_ at 215.000000 "$node_(3) setdest 48.423135 449.394750 19.999364" +$ns_ at 215.000000 "$node_(4) setdest 100.521552 517.808971 17.780297" +$ns_ at 215.000000 "$node_(5) setdest 109.423660 454.614792 18.925357" +$ns_ at 215.000000 "$node_(6) setdest 16.762073 29.826767 13.133696" +$ns_ at 215.000000 "$node_(7) setdest 121.638439 130.219167 19.998986" +$ns_ at 215.000000 "$node_(8) setdest 20.223833 27.143327 7.499279" +$ns_ at 215.000000 "$node_(9) setdest 47.635785 14.277190 19.782811" +$ns_ at 215.000000 "$node_(10) setdest 149.981298 22.846536 6.142197" + +$ns_ at 216.000000 "$node_(1) setdest 82.316111 426.647880 6.614696" +$ns_ at 216.000000 "$node_(2) setdest 110.714063 514.069971 15.686717" +$ns_ at 216.000000 "$node_(3) setdest 34.234170 463.437881 19.963373" +$ns_ at 216.000000 "$node_(4) setdest 119.756878 518.623367 19.252559" +$ns_ at 216.000000 "$node_(5) setdest 118.021417 472.643823 19.974168" +$ns_ at 216.000000 "$node_(6) setdest 24.439905 33.577223 8.544883" +$ns_ at 216.000000 "$node_(7) setdest 109.264356 145.928934 19.997868" +$ns_ at 216.000000 "$node_(8) setdest 26.436807 33.784570 9.094347" +$ns_ at 216.000000 "$node_(9) setdest 34.763093 28.005283 18.819318" +$ns_ at 216.000000 "$node_(10) setdest 149.466985 30.571752 7.742318" + +$ns_ at 217.000000 "$node_(1) setdest 87.966643 420.681429 8.217484" +$ns_ at 217.000000 "$node_(2) setdest 106.139891 497.477479 17.211446" +$ns_ at 217.000000 "$node_(3) setdest 24.871837 481.006527 19.907551" +$ns_ at 217.000000 "$node_(4) setdest 139.198045 521.043816 19.591262" +$ns_ at 217.000000 "$node_(5) setdest 125.144910 491.320562 19.989115" +$ns_ at 217.000000 "$node_(6) setdest 29.906717 42.714611 10.647906" +$ns_ at 217.000000 "$node_(7) setdest 95.624683 160.464758 19.933160" +$ns_ at 217.000000 "$node_(8) setdest 35.012079 40.154365 10.682209" +$ns_ at 217.000000 "$node_(9) setdest 26.794592 44.498695 18.317469" +$ns_ at 217.000000 "$node_(10) setdest 148.822317 39.891733 9.342250" + +$ns_ at 218.000000 "$node_(1) setdest 95.567803 414.482141 9.808608" +$ns_ at 218.000000 "$node_(2) setdest 101.751650 479.151427 18.844119" +$ns_ at 218.000000 "$node_(3) setdest 21.772410 500.718610 19.954264" +$ns_ at 218.000000 "$node_(4) setdest 156.440799 529.170085 19.061711" +$ns_ at 218.000000 "$node_(5) setdest 136.804828 507.434328 19.889875" +$ns_ at 218.000000 "$node_(6) setdest 34.936287 53.901566 12.265583" +$ns_ at 218.000000 "$node_(7) setdest 77.559907 162.800620 18.215168" +$ns_ at 218.000000 "$node_(8) setdest 46.265277 45.048070 12.271219" +$ns_ at 218.000000 "$node_(9) setdest 18.369496 61.553834 19.022618" +$ns_ at 218.000000 "$node_(10) setdest 148.315037 50.819341 10.939376" + +$ns_ at 219.000000 "$node_(1) setdest 105.384019 408.666566 11.409602" +$ns_ at 219.000000 "$node_(2) setdest 105.257830 460.439311 19.037767" +$ns_ at 219.000000 "$node_(3) setdest 20.836622 520.669754 19.973078" +$ns_ at 219.000000 "$node_(4) setdest 169.726291 541.962081 18.442870" +$ns_ at 219.000000 "$node_(5) setdest 151.392428 509.951508 14.803185" +$ns_ at 219.000000 "$node_(6) setdest 39.985524 66.816926 13.867275" +$ns_ at 219.000000 "$node_(7) setdest 65.983518 149.611440 17.548997" +$ns_ at 219.000000 "$node_(8) setdest 60.002002 46.833409 13.852258" +$ns_ at 219.000000 "$node_(9) setdest 12.671632 79.346833 18.683052" +$ns_ at 219.000000 "$node_(10) setdest 149.329428 63.307247 12.529038" + +$ns_ at 220.000000 "$node_(1) setdest 117.372851 403.595980 13.017025" +$ns_ at 220.000000 "$node_(2) setdest 114.312002 443.838623 18.909280" +$ns_ at 220.000000 "$node_(3) setdest 32.633983 533.959274 17.770455" +$ns_ at 220.000000 "$node_(4) setdest 186.809428 545.300049 17.406194" +$ns_ at 220.000000 "$node_(5) setdest 154.136381 499.903314 10.416116" +$ns_ at 220.000000 "$node_(6) setdest 38.966285 82.245893 15.462596" +$ns_ at 220.000000 "$node_(7) setdest 74.429529 163.526860 16.278023" +$ns_ at 220.000000 "$node_(8) setdest 62.748658 50.955781 4.953592" +$ns_ at 220.000000 "$node_(9) setdest 16.722542 97.580963 18.678688" +$ns_ at 220.000000 "$node_(10) setdest 147.564335 77.337282 14.140630" + +$ns_ at 221.000000 "$node_(1) setdest 130.510749 397.211113 14.607220" +$ns_ at 221.000000 "$node_(2) setdest 126.001789 428.533431 19.258765" +$ns_ at 221.000000 "$node_(3) setdest 47.085796 524.976442 17.016055" +$ns_ at 221.000000 "$node_(4) setdest 195.470877 545.496075 8.663667" +$ns_ at 221.000000 "$node_(5) setdest 153.537843 487.668110 12.249835" +$ns_ at 221.000000 "$node_(6) setdest 37.659369 99.258980 17.063211" +$ns_ at 221.000000 "$node_(7) setdest 81.550077 180.240654 18.167363" +$ns_ at 221.000000 "$node_(8) setdest 62.598894 57.433367 6.479317" +$ns_ at 221.000000 "$node_(9) setdest 23.470822 116.374653 19.968527" +$ns_ at 221.000000 "$node_(10) setdest 144.701469 92.814988 15.740247" + +$ns_ at 222.000000 "$node_(1) setdest 145.829089 392.029894 16.170856" +$ns_ at 222.000000 "$node_(2) setdest 140.217574 415.094347 19.562657" +$ns_ at 222.000000 "$node_(3) setdest 60.241100 516.107987 15.865420" +$ns_ at 222.000000 "$node_(4) setdest 195.175480 544.049314 1.476611" +$ns_ at 222.000000 "$node_(5) setdest 153.773151 473.824698 13.845411" +$ns_ at 222.000000 "$node_(6) setdest 36.836689 117.903151 18.662312" +$ns_ at 222.000000 "$node_(7) setdest 88.469997 198.652396 19.669203" +$ns_ at 222.000000 "$node_(8) setdest 62.213896 65.503403 8.079215" +$ns_ at 222.000000 "$node_(9) setdest 31.284840 134.781911 19.997150" +$ns_ at 222.000000 "$node_(10) setdest 140.588071 109.660694 17.340642" + +$ns_ at 223.000000 "$node_(1) setdest 163.506752 392.575980 17.686096" +$ns_ at 223.000000 "$node_(2) setdest 154.063643 401.028161 19.737558" +$ns_ at 223.000000 "$node_(3) setdest 74.782464 518.041618 14.669363" +$ns_ at 223.000000 "$node_(4) setdest 194.480877 541.034819 3.093486" +$ns_ at 223.000000 "$node_(5) setdest 154.461775 458.388033 15.452018" +$ns_ at 223.000000 "$node_(6) setdest 36.889515 137.817056 19.913975" +$ns_ at 223.000000 "$node_(7) setdest 93.285752 218.049531 19.986004" +$ns_ at 223.000000 "$node_(8) setdest 61.558857 75.160595 9.679381" +$ns_ at 223.000000 "$node_(9) setdest 40.120888 152.722334 19.998363" +$ns_ at 223.000000 "$node_(10) setdest 135.370957 127.870138 18.942073" + +$ns_ at 224.000000 "$node_(1) setdest 181.923802 396.004220 18.733408" +$ns_ at 224.000000 "$node_(2) setdest 167.390779 386.339495 19.833544" +$ns_ at 224.000000 "$node_(3) setdest 88.812375 526.590208 16.429145" +$ns_ at 224.000000 "$node_(4) setdest 193.757794 536.395966 4.694870" +$ns_ at 224.000000 "$node_(5) setdest 155.534575 441.369278 17.052534" +$ns_ at 224.000000 "$node_(6) setdest 37.937125 157.787942 19.998344" +$ns_ at 224.000000 "$node_(7) setdest 95.263234 237.932451 19.981015" +$ns_ at 224.000000 "$node_(8) setdest 60.618285 86.400311 11.279002" +$ns_ at 224.000000 "$node_(9) setdest 49.705686 170.274483 19.998657" +$ns_ at 224.000000 "$node_(10) setdest 129.766491 147.053821 19.985588" + +$ns_ at 225.000000 "$node_(1) setdest 169.232343 395.048481 12.727394" +$ns_ at 225.000000 "$node_(2) setdest 178.021040 369.992559 19.499353" +$ns_ at 225.000000 "$node_(3) setdest 105.697669 532.818640 17.997403" +$ns_ at 225.000000 "$node_(4) setdest 193.626695 530.109972 6.287361" +$ns_ at 225.000000 "$node_(5) setdest 157.030780 422.777712 18.651674" +$ns_ at 225.000000 "$node_(6) setdest 39.945670 177.684547 19.997729" +$ns_ at 225.000000 "$node_(7) setdest 93.862395 257.856020 19.972755" +$ns_ at 225.000000 "$node_(8) setdest 59.031456 99.180711 12.878534" +$ns_ at 225.000000 "$node_(9) setdest 59.205275 187.873059 19.998802" +$ns_ at 225.000000 "$node_(10) setdest 124.063931 166.223553 19.999945" + +$ns_ at 226.000000 "$node_(1) setdest 156.800156 391.440287 12.945205" +$ns_ at 226.000000 "$node_(2) setdest 181.618992 357.273651 13.218014" +$ns_ at 226.000000 "$node_(3) setdest 124.505138 538.184199 19.557865" +$ns_ at 226.000000 "$node_(4) setdest 193.643917 522.227082 7.882909" +$ns_ at 226.000000 "$node_(5) setdest 158.657327 402.933793 19.910469" +$ns_ at 226.000000 "$node_(6) setdest 43.108409 197.429911 19.997057" +$ns_ at 226.000000 "$node_(7) setdest 88.502871 277.089742 19.966486" +$ns_ at 226.000000 "$node_(8) setdest 56.808037 113.487980 14.479003" +$ns_ at 226.000000 "$node_(9) setdest 67.791820 205.933327 19.997551" +$ns_ at 226.000000 "$node_(10) setdest 117.964834 185.269423 19.998604" + +$ns_ at 227.000000 "$node_(1) setdest 142.278798 390.812500 14.534922" +$ns_ at 227.000000 "$node_(2) setdest 180.809611 361.122439 3.932972" +$ns_ at 227.000000 "$node_(3) setdest 139.353761 542.830733 15.558660" +$ns_ at 227.000000 "$node_(4) setdest 190.918757 513.212438 9.417553" +$ns_ at 227.000000 "$node_(5) setdest 158.201943 382.958722 19.980261" +$ns_ at 227.000000 "$node_(6) setdest 47.461748 216.947467 19.997164" +$ns_ at 227.000000 "$node_(7) setdest 79.883191 295.123722 19.988080" +$ns_ at 227.000000 "$node_(8) setdest 54.120836 129.341065 16.079222" +$ns_ at 227.000000 "$node_(9) setdest 75.603470 224.344458 19.999791" +$ns_ at 227.000000 "$node_(10) setdest 111.317961 204.132478 19.999894" + +$ns_ at 228.000000 "$node_(1) setdest 126.803939 394.954915 16.019702" +$ns_ at 228.000000 "$node_(2) setdest 181.453885 366.636563 5.551636" +$ns_ at 228.000000 "$node_(3) setdest 139.679950 541.809477 1.072084" +$ns_ at 228.000000 "$node_(4) setdest 182.221684 506.884617 10.755483" +$ns_ at 228.000000 "$node_(5) setdest 147.532398 367.471383 18.806830" +$ns_ at 228.000000 "$node_(6) setdest 53.185240 236.106169 19.995355" +$ns_ at 228.000000 "$node_(7) setdest 69.135376 311.964610 19.978263" +$ns_ at 228.000000 "$node_(8) setdest 50.220110 146.582020 17.676713" +$ns_ at 228.000000 "$node_(9) setdest 83.229589 242.832888 19.999493" +$ns_ at 228.000000 "$node_(10) setdest 104.487873 222.930048 19.999968" + +$ns_ at 229.000000 "$node_(1) setdest 112.719153 405.732941 17.735474" +$ns_ at 229.000000 "$node_(2) setdest 184.190891 373.250673 7.158048" +$ns_ at 229.000000 "$node_(3) setdest 138.130687 540.190583 2.240767" +$ns_ at 229.000000 "$node_(4) setdest 170.893314 511.903508 12.390368" +$ns_ at 229.000000 "$node_(5) setdest 131.769906 373.894402 17.020909" +$ns_ at 229.000000 "$node_(6) setdest 60.421096 254.745402 19.994464" +$ns_ at 229.000000 "$node_(7) setdest 55.227342 326.293985 19.969086" +$ns_ at 229.000000 "$node_(8) setdest 46.727716 165.535396 19.272448" +$ns_ at 229.000000 "$node_(9) setdest 90.276455 261.550003 19.999718" +$ns_ at 229.000000 "$node_(10) setdest 98.003508 241.846149 19.996647" + +$ns_ at 230.000000 "$node_(1) setdest 96.091336 415.488575 19.278400" +$ns_ at 230.000000 "$node_(2) setdest 183.469209 381.617058 8.397453" +$ns_ at 230.000000 "$node_(3) setdest 135.135321 537.790149 3.838527" +$ns_ at 230.000000 "$node_(4) setdest 159.237705 520.178185 14.294178" +$ns_ at 230.000000 "$node_(5) setdest 126.003487 389.332246 16.479642" +$ns_ at 230.000000 "$node_(6) setdest 69.231636 272.693606 19.994091" +$ns_ at 230.000000 "$node_(7) setdest 39.927801 339.173368 19.998862" +$ns_ at 230.000000 "$node_(8) setdest 44.917086 185.446450 19.993211" +$ns_ at 230.000000 "$node_(9) setdest 96.877144 280.425405 19.996247" +$ns_ at 230.000000 "$node_(10) setdest 92.829898 261.161671 19.996390" + +$ns_ at 231.000000 "$node_(1) setdest 76.542960 419.096553 19.878544" +$ns_ at 231.000000 "$node_(2) setdest 176.455767 382.214395 7.038833" +$ns_ at 231.000000 "$node_(3) setdest 130.270647 535.384863 5.426828" +$ns_ at 231.000000 "$node_(4) setdest 147.767236 531.122795 15.854216" +$ns_ at 231.000000 "$node_(5) setdest 120.093704 403.690952 15.527329" +$ns_ at 231.000000 "$node_(6) setdest 79.612346 289.781035 19.993483" +$ns_ at 231.000000 "$node_(7) setdest 24.003817 350.585990 19.591355" +$ns_ at 231.000000 "$node_(8) setdest 44.961975 205.440954 19.994554" +$ns_ at 231.000000 "$node_(9) setdest 99.747344 300.145262 19.927640" +$ns_ at 231.000000 "$node_(10) setdest 89.013268 280.789285 19.995247" + +$ns_ at 232.000000 "$node_(1) setdest 57.010907 414.931045 19.971292" +$ns_ at 232.000000 "$node_(2) setdest 170.625082 375.887436 8.603912" +$ns_ at 232.000000 "$node_(3) setdest 123.401898 533.915668 7.024119" +$ns_ at 232.000000 "$node_(4) setdest 133.831007 536.334199 14.878750" +$ns_ at 232.000000 "$node_(5) setdest 112.784511 418.983603 16.949616" +$ns_ at 232.000000 "$node_(6) setdest 91.565883 305.808159 19.993893" +$ns_ at 232.000000 "$node_(7) setdest 24.991666 366.397074 15.841913" +$ns_ at 232.000000 "$node_(8) setdest 46.668910 225.364489 19.996521" +$ns_ at 232.000000 "$node_(9) setdest 95.297668 319.497789 19.857489" +$ns_ at 232.000000 "$node_(10) setdest 86.767611 300.658389 19.995606" + +$ns_ at 233.000000 "$node_(1) setdest 39.647141 405.570459 19.726149" +$ns_ at 233.000000 "$node_(2) setdest 163.274148 368.970881 10.093313" +$ns_ at 233.000000 "$node_(3) setdest 114.780291 533.380993 8.638170" +$ns_ at 233.000000 "$node_(4) setdest 131.539148 532.333883 4.610330" +$ns_ at 233.000000 "$node_(5) setdest 104.102864 435.367253 18.541710" +$ns_ at 233.000000 "$node_(6) setdest 103.303347 321.997575 19.996631" +$ns_ at 233.000000 "$node_(7) setdest 30.412033 380.296306 14.918748" +$ns_ at 233.000000 "$node_(8) setdest 49.123918 245.211852 19.998622" +$ns_ at 233.000000 "$node_(9) setdest 83.212825 335.267364 19.867635" +$ns_ at 233.000000 "$node_(10) setdest 86.025912 320.638077 19.993450" + +$ns_ at 234.000000 "$node_(1) setdest 27.316123 390.616503 19.382332" +$ns_ at 234.000000 "$node_(2) setdest 152.190026 371.188100 11.303708" +$ns_ at 234.000000 "$node_(3) setdest 104.559734 533.881666 10.232813" +$ns_ at 234.000000 "$node_(4) setdest 134.437047 528.843275 4.536757" +$ns_ at 234.000000 "$node_(5) setdest 99.490371 454.660971 19.837405" +$ns_ at 234.000000 "$node_(6) setdest 113.260598 339.320990 19.981180" +$ns_ at 234.000000 "$node_(7) setdest 34.878867 395.284625 15.639767" +$ns_ at 234.000000 "$node_(8) setdest 52.561370 264.911186 19.996995" +$ns_ at 234.000000 "$node_(9) setdest 66.066130 345.377223 19.905235" +$ns_ at 234.000000 "$node_(10) setdest 87.285070 340.587013 19.988635" + +$ns_ at 235.000000 "$node_(1) setdest 20.218846 372.865040 19.117682" +$ns_ at 235.000000 "$node_(2) setdest 142.051256 379.923957 13.383193" +$ns_ at 235.000000 "$node_(3) setdest 92.840981 535.571717 11.839993" +$ns_ at 235.000000 "$node_(4) setdest 138.217326 524.011125 6.135160" +$ns_ at 235.000000 "$node_(5) setdest 91.141238 472.512581 19.707562" +$ns_ at 235.000000 "$node_(6) setdest 120.629818 357.902574 19.989513" +$ns_ at 235.000000 "$node_(7) setdest 37.667906 412.302677 17.245082" +$ns_ at 235.000000 "$node_(8) setdest 57.399640 284.312240 19.995243" +$ns_ at 235.000000 "$node_(9) setdest 47.135371 351.684805 19.953928" +$ns_ at 235.000000 "$node_(10) setdest 91.171326 360.189136 19.983649" + +$ns_ at 236.000000 "$node_(1) setdest 24.598928 356.149629 17.279760" +$ns_ at 236.000000 "$node_(2) setdest 133.409494 392.148552 14.970664" +$ns_ at 236.000000 "$node_(3) setdest 79.429653 536.017371 13.418731" +$ns_ at 236.000000 "$node_(4) setdest 141.644180 517.087121 7.725617" +$ns_ at 236.000000 "$node_(5) setdest 82.659254 489.792059 19.249010" +$ns_ at 236.000000 "$node_(6) setdest 124.911845 377.382671 19.945173" +$ns_ at 236.000000 "$node_(7) setdest 36.308163 431.068874 18.815394" +$ns_ at 236.000000 "$node_(8) setdest 63.770885 303.263885 19.993940" +$ns_ at 236.000000 "$node_(9) setdest 27.530214 350.712658 19.629245" +$ns_ at 236.000000 "$node_(10) setdest 98.063978 378.939773 19.977363" + +$ns_ at 237.000000 "$node_(1) setdest 40.321183 353.037350 16.027339" +$ns_ at 237.000000 "$node_(2) setdest 125.329380 406.653920 16.604033" +$ns_ at 237.000000 "$node_(3) setdest 64.843715 532.584356 14.984497" +$ns_ at 237.000000 "$node_(4) setdest 144.634350 508.245730 9.333344" +$ns_ at 237.000000 "$node_(5) setdest 82.909106 508.254419 18.464050" +$ns_ at 237.000000 "$node_(6) setdest 118.133725 394.817452 18.706002" +$ns_ at 237.000000 "$node_(7) setdest 29.233267 449.643599 19.876483" +$ns_ at 237.000000 "$node_(8) setdest 71.818285 321.564343 19.991683" +$ns_ at 237.000000 "$node_(9) setdest 29.921966 351.885394 2.663792" +$ns_ at 237.000000 "$node_(10) setdest 108.291461 396.089794 19.968090" + +$ns_ at 238.000000 "$node_(1) setdest 45.596210 362.703271 11.011628" +$ns_ at 238.000000 "$node_(2) setdest 116.291703 422.438321 18.188648" +$ns_ at 238.000000 "$node_(3) setdest 50.905662 523.641287 16.560429" +$ns_ at 238.000000 "$node_(4) setdest 147.083186 497.586315 10.937090" +$ns_ at 238.000000 "$node_(5) setdest 86.823206 527.075434 19.223704" +$ns_ at 238.000000 "$node_(6) setdest 100.295091 394.820595 17.838634" +$ns_ at 238.000000 "$node_(7) setdest 14.754694 462.701263 19.496965" +$ns_ at 238.000000 "$node_(8) setdest 82.106778 338.696777 19.984329" +$ns_ at 238.000000 "$node_(9) setdest 29.384525 352.572171 0.872069" +$ns_ at 238.000000 "$node_(10) setdest 121.581838 411.004409 19.976983" + +$ns_ at 239.000000 "$node_(1) setdest 43.050325 374.782260 12.344371" +$ns_ at 239.000000 "$node_(2) setdest 109.603123 440.967025 19.698985" +$ns_ at 239.000000 "$node_(3) setdest 40.281591 508.934509 18.142774" +$ns_ at 239.000000 "$node_(4) setdest 150.186991 485.439022 12.537557" +$ns_ at 239.000000 "$node_(5) setdest 88.363743 540.891623 13.901811" +$ns_ at 239.000000 "$node_(6) setdest 83.872867 392.609649 16.570387" +$ns_ at 239.000000 "$node_(7) setdest 2.120167 462.131925 12.647348" +$ns_ at 239.000000 "$node_(8) setdest 94.881055 354.058754 19.979301" +$ns_ at 239.000000 "$node_(9) setdest 28.147365 354.727230 2.484924" +$ns_ at 239.000000 "$node_(10) setdest 137.437686 423.128242 19.959841" + +$ns_ at 240.000000 "$node_(1) setdest 38.556092 388.011135 13.971445" +$ns_ at 240.000000 "$node_(2) setdest 102.994537 459.843356 19.999731" +$ns_ at 240.000000 "$node_(3) setdest 34.511155 490.212704 19.590914" +$ns_ at 240.000000 "$node_(4) setdest 153.699183 471.745840 14.136432" +$ns_ at 240.000000 "$node_(5) setdest 87.677276 538.921027 2.086741" +$ns_ at 240.000000 "$node_(6) setdest 67.844685 393.430187 16.049172" +$ns_ at 240.000000 "$node_(7) setdest 2.807388 458.762773 3.438526" +$ns_ at 240.000000 "$node_(8) setdest 109.948493 367.184167 19.982596" +$ns_ at 240.000000 "$node_(9) setdest 26.581030 358.478450 4.065102" +$ns_ at 240.000000 "$node_(10) setdest 155.787822 430.945677 19.945921" + +$ns_ at 241.000000 "$node_(1) setdest 36.249641 403.358559 15.519767" +$ns_ at 241.000000 "$node_(2) setdest 95.054734 478.197050 19.997464" +$ns_ at 241.000000 "$node_(3) setdest 38.588756 470.902314 19.736210" +$ns_ at 241.000000 "$node_(4) setdest 158.039693 456.618076 15.738147" +$ns_ at 241.000000 "$node_(5) setdest 85.810743 535.721185 3.704447" +$ns_ at 241.000000 "$node_(6) setdest 50.254348 394.635888 17.631610" +$ns_ at 241.000000 "$node_(7) setdest 5.492504 454.380668 5.139327" +$ns_ at 241.000000 "$node_(8) setdest 125.740547 379.432191 19.985071" +$ns_ at 241.000000 "$node_(9) setdest 26.686133 364.112657 5.635187" +$ns_ at 241.000000 "$node_(10) setdest 175.328309 429.760207 19.576413" + +$ns_ at 242.000000 "$node_(1) setdest 37.522192 420.480349 17.169015" +$ns_ at 242.000000 "$node_(2) setdest 90.631305 497.645680 19.945323" +$ns_ at 242.000000 "$node_(3) setdest 50.739464 455.055826 19.968748" +$ns_ at 242.000000 "$node_(4) setdest 162.672725 439.910564 17.337991" +$ns_ at 242.000000 "$node_(5) setdest 82.862827 531.310088 5.305468" +$ns_ at 242.000000 "$node_(6) setdest 31.030156 394.391413 19.225746" +$ns_ at 242.000000 "$node_(7) setdest 9.560885 449.014231 6.734268" +$ns_ at 242.000000 "$node_(8) setdest 138.863619 394.470220 19.958891" +$ns_ at 242.000000 "$node_(9) setdest 30.044622 370.532583 7.245336" +$ns_ at 242.000000 "$node_(10) setdest 184.068040 414.234527 17.816555" + +$ns_ at 243.000000 "$node_(1) setdest 37.985476 439.243636 18.769005" +$ns_ at 243.000000 "$node_(2) setdest 87.433717 517.377092 19.988827" +$ns_ at 243.000000 "$node_(3) setdest 62.449094 438.866145 19.980520" +$ns_ at 243.000000 "$node_(4) setdest 167.366807 421.571460 18.930323" +$ns_ at 243.000000 "$node_(5) setdest 79.256025 525.421283 6.905580" +$ns_ at 243.000000 "$node_(6) setdest 11.506341 396.543000 19.642013" +$ns_ at 243.000000 "$node_(7) setdest 15.539098 443.203051 8.337197" +$ns_ at 243.000000 "$node_(8) setdest 147.973211 412.218070 19.949207" +$ns_ at 243.000000 "$node_(9) setdest 36.059140 377.050285 8.868758" +$ns_ at 243.000000 "$node_(10) setdest 177.685561 398.128349 17.324694" + +$ns_ at 244.000000 "$node_(1) setdest 39.206090 459.137583 19.931358" +$ns_ at 244.000000 "$node_(2) setdest 83.154377 536.500088 19.595961" +$ns_ at 244.000000 "$node_(3) setdest 78.636311 427.281132 19.905741" +$ns_ at 244.000000 "$node_(4) setdest 170.390886 401.818715 19.982892" +$ns_ at 244.000000 "$node_(5) setdest 74.252665 518.545692 8.503374" +$ns_ at 244.000000 "$node_(6) setdest 7.973051 410.375276 14.276414" +$ns_ at 244.000000 "$node_(7) setdest 23.323807 437.026222 9.937551" +$ns_ at 244.000000 "$node_(8) setdest 153.374916 431.467556 19.993027" +$ns_ at 244.000000 "$node_(9) setdest 44.032723 383.856539 10.483469" +$ns_ at 244.000000 "$node_(10) setdest 172.718843 382.551826 16.349201" + +$ns_ at 245.000000 "$node_(1) setdest 34.618867 478.486864 19.885606" +$ns_ at 245.000000 "$node_(2) setdest 84.300844 531.592510 5.039713" +$ns_ at 245.000000 "$node_(3) setdest 94.940590 415.825326 19.926490" +$ns_ at 245.000000 "$node_(4) setdest 172.304961 394.881002 7.196912" +$ns_ at 245.000000 "$node_(5) setdest 68.133382 510.504064 10.105117" +$ns_ at 245.000000 "$node_(6) setdest 17.059711 420.972002 13.959154" +$ns_ at 245.000000 "$node_(7) setdest 32.971174 430.706107 11.533236" +$ns_ at 245.000000 "$node_(8) setdest 157.601063 450.999458 19.983881" +$ns_ at 245.000000 "$node_(9) setdest 53.145590 391.780127 12.075909" +$ns_ at 245.000000 "$node_(10) setdest 169.004729 365.196387 17.748406" + +$ns_ at 246.000000 "$node_(1) setdest 23.314948 494.915448 19.941839" +$ns_ at 246.000000 "$node_(2) setdest 80.388414 526.333405 6.554791" +$ns_ at 246.000000 "$node_(3) setdest 105.925896 399.190915 19.934407" +$ns_ at 246.000000 "$node_(4) setdest 172.261920 400.073454 5.192630" +$ns_ at 246.000000 "$node_(5) setdest 60.662128 501.492990 11.705516" +$ns_ at 246.000000 "$node_(6) setdest 25.067644 434.285222 15.536049" +$ns_ at 246.000000 "$node_(7) setdest 44.416211 424.250797 13.140012" +$ns_ at 246.000000 "$node_(8) setdest 157.547382 470.971881 19.972495" +$ns_ at 246.000000 "$node_(9) setdest 61.816142 402.356439 13.676142" +$ns_ at 246.000000 "$node_(10) setdest 159.697284 354.841814 13.922848" + +$ns_ at 247.000000 "$node_(1) setdest 11.471594 510.982443 19.960295" +$ns_ at 247.000000 "$node_(2) setdest 73.667647 521.515333 8.269373" +$ns_ at 247.000000 "$node_(3) setdest 115.687404 381.745967 19.990329" +$ns_ at 247.000000 "$node_(4) setdest 172.542353 406.883343 6.815660" +$ns_ at 247.000000 "$node_(5) setdest 53.043729 490.595790 13.296201" +$ns_ at 247.000000 "$node_(6) setdest 35.532652 447.799237 17.092249" +$ns_ at 247.000000 "$node_(7) setdest 57.583686 417.635230 14.735946" +$ns_ at 247.000000 "$node_(8) setdest 155.807521 490.895157 19.999102" +$ns_ at 247.000000 "$node_(9) setdest 70.586313 414.874960 15.284936" +$ns_ at 247.000000 "$node_(10) setdest 150.705382 353.022498 9.174106" + +$ns_ at 248.000000 "$node_(1) setdest 6.250205 530.216206 19.929890" +$ns_ at 248.000000 "$node_(2) setdest 64.550481 517.738746 9.868400" +$ns_ at 248.000000 "$node_(3) setdest 129.575043 368.902786 18.915967" +$ns_ at 248.000000 "$node_(4) setdest 172.766820 415.295599 8.415251" +$ns_ at 248.000000 "$node_(5) setdest 45.664917 477.649441 14.901504" +$ns_ at 248.000000 "$node_(6) setdest 49.236481 460.622756 18.767994" +$ns_ at 248.000000 "$node_(7) setdest 72.542200 411.059556 16.340032" +$ns_ at 248.000000 "$node_(8) setdest 154.151119 510.826019 19.999573" +$ns_ at 248.000000 "$node_(9) setdest 80.048453 428.859710 16.885062" +$ns_ at 248.000000 "$node_(10) setdest 150.693495 353.348529 0.326248" + +$ns_ at 249.000000 "$node_(1) setdest 15.633937 545.116140 17.608591" +$ns_ at 249.000000 "$node_(2) setdest 53.897778 513.466205 11.477573" +$ns_ at 249.000000 "$node_(3) setdest 147.143605 364.268821 18.169425" +$ns_ at 249.000000 "$node_(4) setdest 172.715108 425.310616 10.015150" +$ns_ at 249.000000 "$node_(5) setdest 40.276620 462.090927 16.465147" +$ns_ at 249.000000 "$node_(6) setdest 66.591813 470.358500 19.899554" +$ns_ at 249.000000 "$node_(7) setdest 89.011277 403.945945 17.939731" +$ns_ at 249.000000 "$node_(8) setdest 153.637467 522.766334 11.951358" +$ns_ at 249.000000 "$node_(9) setdest 90.366944 444.196722 18.484999" +$ns_ at 249.000000 "$node_(10) setdest 152.055411 354.274810 1.647062" + +$ns_ at 250.000000 "$node_(1) setdest 32.767440 547.185729 17.258045" +$ns_ at 250.000000 "$node_(2) setdest 42.327370 507.405581 13.061605" +$ns_ at 250.000000 "$node_(3) setdest 166.110136 361.566966 19.158010" +$ns_ at 250.000000 "$node_(4) setdest 171.517760 436.860424 11.611706" +$ns_ at 250.000000 "$node_(5) setdest 39.663162 444.108944 17.992445" +$ns_ at 250.000000 "$node_(6) setdest 82.640473 482.268268 19.985046" +$ns_ at 250.000000 "$node_(7) setdest 106.691634 395.709099 19.504889" +$ns_ at 250.000000 "$node_(8) setdest 156.539558 511.951326 11.197613" +$ns_ at 250.000000 "$node_(9) setdest 102.661633 459.753615 19.828673" +$ns_ at 250.000000 "$node_(10) setdest 155.016298 355.644768 3.262459" + diff --git a/gui/configs/sample5-mgen.imn b/gui/configs/sample5-mgen.imn new file mode 100644 index 00000000..925266c4 --- /dev/null +++ b/gui/configs/sample5-mgen.imn @@ -0,0 +1,131 @@ +node n1 { + type router + model router + network-config { + hostname n1 + ! + interface eth0 + ip address 10.0.0.2/24 + ipv6 address a:0::2/64 + ! + router ospf + router-id 10.0.0.2 + network 10.0.0.0/24 area 0 + ! + router ospf6 + router-id 10.0.0.2 + interface eth0 area 0.0.0.0 + ! + } + canvas c1 + iconcoords {312.0 120.0} + labelcoords {312.0 148.0} + interface-peer {eth0 n2} + custom-config { + custom-config-id service:UserDefined:mgen.sh + custom-command mgen.sh + config { + #!/bin/sh + SCRIPTDIR=$SESSION_DIR + LOGDIR=/var/log + if [ `uname` = "Linux" ]; then + cd $SCRIPTDIR + else + cd /tmp/e0_`hostname` + fi + ( + cat << 'EOF' + # mgen receiver script + 15.0 LISTEN UDP 5001 + EOF + ) > recv.mgn + mgen input recv.mgn output $LOGDIR/mgen.log > /dev/null 2> /dev/null < /dev/null & + } + } + custom-config { + custom-config-id service:UserDefined + custom-command UserDefined + config { + files=('mgen.sh', ) + startidx=35 + cmdup=('sh mgen.sh', ) + } + } + services {zebra OSPFv2 OSPFv3 vtysh IPForward UserDefined} +} + +node n2 { + type router + model router + network-config { + hostname n2 + ! + interface eth0 + ip address 10.0.0.1/24 + ipv6 address a:0::1/64 + ! + } + canvas c1 + iconcoords {72.0 48.0} + labelcoords {72.0 76.0} + interface-peer {eth0 n1} + custom-config { + custom-config-id service:UserDefined + custom-command UserDefined + config { + files=('mgen.sh', ) + startidx=35 + cmdup=('sh mgen.sh', ) + } + } + custom-config { + custom-config-id service:UserDefined:mgen.sh + custom-command mgen.sh + config { + #!/bin/sh + HN=`hostname` + SCRIPTDIR=$SESSION_DIR + LOGDIR=/var/log + + if [ `uname` = "FreeBSD" ]; then + SCRIPTDIR=/tmp/e0_$HN + LOGDIR=$SCRIPTDIR + fi + cd $SCRIPTDIR + ( + cat << 'EOF' + # mgen sender script: send UDP traffic to UDP port 5001 after 15 seconds + 15.0 ON 1 UDP SRC 5000 DST 10.0.0.2/5001 PERIODIC [1 4096] + EOF + ) > send_$HN.mgn + mgen input send_$HN.mgn output $LOGDIR/mgen_$HN.log > /dev/null 2> /dev/null < /dev/null & + } + } + services {zebra OSPFv2 OSPFv3 vtysh IPForward UserDefined} +} + +link l1 { + nodes {n2 n1} + bandwidth 0 +} + +canvas c1 { + name {Canvas1} +} + +option global { + interface_names no + ip_addresses yes + ipv6_addresses yes + node_labels yes + link_labels yes + show_api no + background_images no + annotations yes + grid yes + traffic_start 0 +} + +option session { +} + diff --git a/gui/configs/sample6-emane-rfpipe.imn b/gui/configs/sample6-emane-rfpipe.imn new file mode 100644 index 00000000..9e0cc045 --- /dev/null +++ b/gui/configs/sample6-emane-rfpipe.imn @@ -0,0 +1,271 @@ +node n1 { + type router + model mdr + network-config { + hostname n1 + ! + interface eth0 + ip address 10.0.0.1/32 + ipv6 address a:0::1/128 + ! + } + iconcoords {263.148836492 76.94184084899999} + labelcoords {263.148836492 100.94184084899999} + canvas c1 + interface-peer {eth0 n11} +} + +node n2 { + type router + model mdr + network-config { + hostname n2 + ! + interface eth0 + ip address 10.0.0.2/32 + ipv6 address a:0::2/128 + ! + } + iconcoords {184.35166313500002 532.524009667} + labelcoords {184.35166313500002 556.524009667} + canvas c1 + interface-peer {eth0 n11} +} + +node n3 { + type router + model mdr + network-config { + hostname n3 + ! + interface eth0 + ip address 10.0.0.3/32 + ipv6 address a:0::3/128 + ! + } + iconcoords {121.17243156500001 313.104176223} + labelcoords {121.17243156500001 337.104176223} + canvas c1 + interface-peer {eth0 n11} +} + +node n4 { + type router + model mdr + network-config { + hostname n4 + ! + interface eth0 + ip address 10.0.0.4/32 + ipv6 address a:0::4/128 + ! + } + iconcoords {443.031505695 586.805480735} + labelcoords {443.031505695 610.805480735} + canvas c1 + interface-peer {eth0 n11} +} + +node n5 { + type router + model mdr + network-config { + hostname n5 + ! + interface eth0 + ip address 10.0.0.5/32 + ipv6 address a:0::5/128 + ! + } + iconcoords {548.817758443 209.207353139} + labelcoords {548.817758443 233.207353139} + canvas c1 + interface-peer {eth0 n11} +} + +node n6 { + type router + model mdr + network-config { + hostname n6 + ! + interface eth0 + ip address 10.0.0.6/32 + ipv6 address a:0::6/128 + ! + } + iconcoords {757.062318769 61.533941783} + labelcoords {757.062318769 85.533941783} + canvas c1 + interface-peer {eth0 n11} +} + +node n7 { + type router + model mdr + network-config { + hostname n7 + ! + interface eth0 + ip address 10.0.0.7/32 + ipv6 address a:0::7/128 + ! + } + iconcoords {778.142667152 489.227596061} + labelcoords {778.142667152 513.227596061} + canvas c1 + interface-peer {eth0 n11} +} + +node n8 { + type router + model mdr + network-config { + hostname n8 + ! + interface eth0 + ip address 10.0.0.8/32 + ipv6 address a:0::8/128 + ! + } + iconcoords {93.895107521 135.228007484} + labelcoords {93.895107521 159.228007484} + canvas c1 + interface-peer {eth0 n11} +} + +node n9 { + type router + model mdr + network-config { + hostname n9 + ! + interface eth0 + ip address 10.0.0.9/32 + ipv6 address a:0::9/128 + ! + } + iconcoords {528.693178831 84.9814304098} + labelcoords {528.693178831 108.9814304098} + canvas c1 + interface-peer {eth0 n11} +} + +node n10 { + type router + model mdr + network-config { + hostname n10 + ! + interface eth0 + ip address 10.0.0.10/32 + ipv6 address a:0::10/128 + ! + } + iconcoords {569.534639911 475.46828902} + labelcoords {569.534639911 499.46828902} + canvas c1 + interface-peer {eth0 n11} +} + +node n11 { + bandwidth 54000000 + type wlan + range 275 + network-config { + hostname wlan11 + ! + interface wireless + ip address 10.0.0.0/32 + ipv6 address a:0::0/128 + ! + mobmodel + coreapi + emane_rfpipe + ! + } + canvas c1 + iconcoords {65.0 558.0} + labelcoords {65.0 582.0} + interface-peer {e0 n1} + interface-peer {e1 n2} + interface-peer {e2 n3} + interface-peer {e3 n4} + interface-peer {e4 n5} + interface-peer {e5 n6} + interface-peer {e6 n7} + interface-peer {e7 n8} + interface-peer {e8 n9} + interface-peer {e9 n10} +} + +link l1 { + nodes {n11 n1} + bandwidth 54000000 +} + +link l2 { + nodes {n11 n2} + bandwidth 54000000 +} + +link l3 { + nodes {n11 n3} + bandwidth 54000000 +} + +link l4 { + nodes {n11 n4} + bandwidth 54000000 +} + +link l5 { + nodes {n11 n5} + bandwidth 54000000 +} + +link l6 { + nodes {n11 n6} + bandwidth 54000000 +} + +link l7 { + nodes {n11 n7} + bandwidth 54000000 +} + +link l8 { + nodes {n11 n8} + bandwidth 54000000 +} + +link l9 { + nodes {n11 n9} + bandwidth 54000000 +} + +link l10 { + nodes {n11 n10} + bandwidth 54000000 +} + +canvas c1 { + name {Canvas1} +} + +option global { + interface_names no + ip_addresses yes + ipv6_addresses yes + node_labels yes + link_labels yes + ipsec_configs yes + remote_exec no + exec_errors yes + show_api no + background_images no + annotations yes + grid yes + traffic_start 0 +} + diff --git a/gui/configs/sample7-emane-ieee80211abg.imn b/gui/configs/sample7-emane-ieee80211abg.imn new file mode 100644 index 00000000..b1323f6f --- /dev/null +++ b/gui/configs/sample7-emane-ieee80211abg.imn @@ -0,0 +1,274 @@ +node n1 { + type router + model mdr + network-config { + hostname n1 + ! + interface eth0 + ip address 10.0.0.1/32 + ipv6 address a:0::1/128 + ! + } + iconcoords {115.14883649199999 139.941840849} + labelcoords {115.14883649199999 167.941840849} + canvas c1 + interface-peer {eth0 n11} +} + +node n2 { + type router + model mdr + network-config { + hostname n2 + ! + interface eth0 + ip address 10.0.0.2/32 + ipv6 address a:0::2/128 + ! + } + iconcoords {190.35166313500002 519.524009667} + labelcoords {190.35166313500002 547.524009667} + canvas c1 + interface-peer {eth0 n11} +} + +node n3 { + type router + model mdr + network-config { + hostname n3 + ! + interface eth0 + ip address 10.0.0.3/32 + ipv6 address a:0::3/128 + ! + } + iconcoords {142.172431565 307.104176223} + labelcoords {142.172431565 335.104176223} + canvas c1 + interface-peer {eth0 n11} +} + +node n4 { + type router + model mdr + network-config { + hostname n4 + ! + interface eth0 + ip address 10.0.0.4/32 + ipv6 address a:0::4/128 + ! + } + iconcoords {395.031505695 589.805480735} + labelcoords {395.031505695 617.805480735} + canvas c1 + interface-peer {eth0 n11} +} + +node n5 { + type router + model mdr + network-config { + hostname n5 + ! + interface eth0 + ip address 10.0.0.5/32 + ipv6 address a:0::5/128 + ! + } + iconcoords {250.817758443 27.20735313899999} + labelcoords {250.817758443 55.20735313899999} + canvas c1 + interface-peer {eth0 n11} +} + +node n6 { + type router + model mdr + network-config { + hostname n6 + ! + interface eth0 + ip address 10.0.0.6/32 + ipv6 address a:0::6/128 + ! + } + iconcoords {757.062318769 61.533941783} + labelcoords {757.062318769 89.533941783} + canvas c1 + interface-peer {eth0 n11} +} + +node n7 { + type router + model mdr + network-config { + hostname n7 + ! + interface eth0 + ip address 10.0.0.7/32 + ipv6 address a:0::7/128 + ! + } + iconcoords {909.142667152 593.227596061} + labelcoords {909.142667152 621.227596061} + canvas c1 + interface-peer {eth0 n11} +} + +node n8 { + type router + model mdr + network-config { + hostname n8 + ! + interface eth0 + ip address 10.0.0.8/32 + ipv6 address a:0::8/128 + ! + } + iconcoords {351.895107521 337.228007484} + labelcoords {351.895107521 365.228007484} + canvas c1 + interface-peer {eth0 n11} +} + +node n9 { + type router + model mdr + network-config { + hostname n9 + ! + interface eth0 + ip address 10.0.0.9/32 + ipv6 address a:0::9/128 + ! + } + iconcoords {528.693178831 84.9814304098} + labelcoords {528.693178831 112.98143041} + canvas c1 + interface-peer {eth0 n11} +} + +node n10 { + type router + model mdr + network-config { + hostname n10 + ! + interface eth0 + ip address 10.0.0.10/32 + ipv6 address a:0::10/128 + ! + } + iconcoords {568.534639911 526.4682890199999} + labelcoords {568.534639911 554.4682890199999} + canvas c1 + interface-peer {eth0 n11} +} + +node n11 { + bandwidth 54000000 + type wlan + range 275 + network-config { + hostname wlan11 + ! + interface wireless + ip address 10.0.0.0/32 + ipv6 address a:0::0/128 + ! + mobmodel + coreapi + emane_ieee80211abg + ! + } + canvas c1 + iconcoords {65.0 558.0} + labelcoords {65.0 590.0} + interface-peer {e0 n1} + interface-peer {e1 n2} + interface-peer {e2 n3} + interface-peer {e3 n4} + interface-peer {e4 n5} + interface-peer {e5 n6} + interface-peer {e6 n7} + interface-peer {e7 n8} + interface-peer {e8 n9} + interface-peer {e9 n10} +} + +link l1 { + nodes {n11 n1} + bandwidth 54000000 +} + +link l2 { + nodes {n11 n2} + bandwidth 54000000 +} + +link l3 { + nodes {n11 n3} + bandwidth 54000000 +} + +link l4 { + nodes {n11 n4} + bandwidth 54000000 +} + +link l5 { + nodes {n11 n5} + bandwidth 54000000 +} + +link l6 { + nodes {n11 n6} + bandwidth 54000000 +} + +link l7 { + nodes {n11 n7} + bandwidth 54000000 +} + +link l8 { + nodes {n11 n8} + bandwidth 54000000 +} + +link l9 { + nodes {n11 n9} + bandwidth 54000000 +} + +link l10 { + nodes {n11 n10} + bandwidth 54000000 +} + +canvas c1 { + name {Canvas1} + refpt {0 0 47.5791667 -122.132322 2.0} + scale 350.0 + size {1000 750} +} + +option global { + interface_names no + ip_addresses yes + ipv6_addresses yes + node_labels yes + link_labels yes + ipsec_configs yes + remote_exec no + exec_errors yes + show_api no + background_images no + annotations yes + grid yes + traffic_start 0 +} + diff --git a/gui/configs/sample8-ipsec-service.imn b/gui/configs/sample8-ipsec-service.imn new file mode 100644 index 00000000..bb686742 --- /dev/null +++ b/gui/configs/sample8-ipsec-service.imn @@ -0,0 +1,967 @@ +comments { +Sample scenario showing IPsec service configuration. + +There are three red routers having the IPsec service enabled. The IPsec service +must be customized with the tunnel hosts (peers) and their keys, and the subnet +addresses that should be tunneled. + +For simplicity, the same keys and certificates are used in each of the three +IPsec gateways. These are written to node n1's configuration directory. Keys +can be generated using the openssl utility. + +Note that this scenario may require at patched kernel in order to work; see the +kernels subdirectory of the CORE source for kernel patches. + +The racoon keying daemon and setkey from the ipsec-tools package should also be +installed. +} + +node n1 { + type router + model router + network-config { + hostname n1 + ! + interface eth3 + ip address 192.168.6.1/24 + ipv6 address 2001:6::1/64 + ! + interface eth2 + ip address 192.168.5.1/24 + ipv6 address 2001:5::1/64 + ! + interface eth1 + ip address 192.168.1.1/24 + ipv6 address 2001:1::1/64 + ! + interface eth0 + ip address 192.168.0.1/24 + ipv6 address 2001:0::1/64 + ! + } + canvas c1 + iconcoords {210.0 172.0} + labelcoords {210.0 200.0} + interface-peer {eth0 n2} + interface-peer {eth1 n3} + interface-peer {eth2 n7} + interface-peer {eth3 n8} + custom-config { + custom-config-id service:IPsec:copycerts.sh + custom-command copycerts.sh + config { + #!/bin/sh + + FILES="test1.pem test1.key ca-cert.pem" + + mkdir -p /tmp/certs + + for f in $FILES; do + cp $f /tmp/certs + done + } + } + custom-config { + custom-config-id service:IPsec:ca-cert.pem + custom-command ca-cert.pem + config { + Certificate: + Data: + Version: 3 (0x2) + Serial Number: + df:69:1f:ef:e5:af:bf:0f + Signature Algorithm: sha1WithRSAEncryption + Issuer: C=US, ST=WA, O=core-dev, CN=CORE CA/emailAddress=root@localhost + Validity + Not Before: Mar 20 16:16:08 2012 GMT + Not After : Mar 20 16:16:08 2015 GMT + Subject: C=US, ST=WA, O=core-dev, CN=CORE CA/emailAddress=root@localhost + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (1024 bit) + Modulus: + 00:c4:d7:fc:c3:bc:a0:ee:76:7b:58:5c:96:6d:1f: + 74:26:c2:93:c1:a4:94:95:13:5e:4f:8b:3f:00:27: + e5:1b:b1:3b:70:3e:72:71:4d:c9:67:54:33:29:49: + 1e:de:a6:91:d9:00:ec:84:b8:64:f8:06:51:82:f4: + 84:9b:a2:fe:16:34:5c:e1:2f:3d:ad:34:b9:8e:ad: + 8e:ea:8a:e9:40:56:5b:f5:09:2c:bf:a0:08:db:81: + 7f:fb:d8:b9:6c:a6:be:4c:1f:b1:4e:b3:b0:8d:8d: + e4:04:8e:f8:8e:e9:c7:aa:e7:4a:b4:87:89:a7:25: + 72:38:74:bb:e5:b6:7f:86:7b + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Subject Key Identifier: + 98:0E:C7:0A:74:5D:FB:56:5B:B7:91:80:2A:3A:D4:89:AD:6C:B9:51 + X509v3 Authority Key Identifier: + keyid:98:0E:C7:0A:74:5D:FB:56:5B:B7:91:80:2A:3A:D4:89:AD:6C:B9:51 + + X509v3 Basic Constraints: + CA:TRUE + Signature Algorithm: sha1WithRSAEncryption + 39:7e:99:fd:40:44:0a:20:4c:3c:9a:bf:01:aa:94:c8:76:bb: + 80:53:4f:cd:28:2f:5b:7f:0b:52:09:14:cb:ac:ee:74:7f:17: + 4b:79:21:db:e1:a3:9b:e5:b1:72:83:f7:88:02:20:d6:23:33: + e4:ff:50:58:c6:88:e0:22:d7:2b:96:b3:dd:31:1a:80:52:0d: + 61:4f:47:72:63:39:1e:7f:a1:ad:f0:2b:82:53:05:ca:3d:0a: + 8f:3c:72:58:74:57:ae:8b:66:16:d9:a4:50:99:bc:d3:a7:c5: + 54:63:f0:87:cd:06:1a:d4:61:ed:d3:b8:33:5d:5a:d6:a4:f0: + a4:96 + -----BEGIN CERTIFICATE----- + MIICijCCAfOgAwIBAgIJAN9pH+/lr78PMA0GCSqGSIb3DQEBBQUAMF4xCzAJBgNV + BAYTAlVTMQswCQYDVQQIDAJXQTERMA8GA1UECgwIY29yZS1kZXYxEDAOBgNVBAMM + B0NPUkUgQ0ExHTAbBgkqhkiG9w0BCQEWDnJvb3RAbG9jYWxob3N0MB4XDTEyMDMy + MDE2MTYwOFoXDTE1MDMyMDE2MTYwOFowXjELMAkGA1UEBhMCVVMxCzAJBgNVBAgM + AldBMREwDwYDVQQKDAhjb3JlLWRldjEQMA4GA1UEAwwHQ09SRSBDQTEdMBsGCSqG + SIb3DQEJARYOcm9vdEBsb2NhbGhvc3QwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJ + AoGBAMTX/MO8oO52e1hclm0fdCbCk8GklJUTXk+LPwAn5RuxO3A+cnFNyWdUMylJ + Ht6mkdkA7IS4ZPgGUYL0hJui/hY0XOEvPa00uY6tjuqK6UBWW/UJLL+gCNuBf/vY + uWymvkwfsU6zsI2N5ASO+I7px6rnSrSHiaclcjh0u+W2f4Z7AgMBAAGjUDBOMB0G + A1UdDgQWBBSYDscKdF37Vlu3kYAqOtSJrWy5UTAfBgNVHSMEGDAWgBSYDscKdF37 + Vlu3kYAqOtSJrWy5UTAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA4GBADl+ + mf1ARAogTDyavwGqlMh2u4BTT80oL1t/C1IJFMus7nR/F0t5Idvho5vlsXKD94gC + INYjM+T/UFjGiOAi1yuWs90xGoBSDWFPR3JjOR5/oa3wK4JTBco9Co88clh0V66L + ZhbZpFCZvNOnxVRj8IfNBhrUYe3TuDNdWtak8KSW + -----END CERTIFICATE----- + + } + } + custom-config { + custom-config-id service:IPsec:test1.pem + custom-command test1.pem + config { + Certificate: + Data: + Version: 3 (0x2) + Serial Number: + df:69:1f:ef:e5:af:bf:10 + Signature Algorithm: sha1WithRSAEncryption + Issuer: C=US, ST=WA, O=core-dev, CN=CORE CA/emailAddress=root@localhost + Validity + Not Before: Mar 20 16:18:45 2012 GMT + Not After : Mar 20 16:18:45 2013 GMT + Subject: C=US, ST=WA, L=Bellevue, O=core-dev, CN=test1 + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (1024 bit) + Modulus: + 00:ab:08:f3:3e:47:ce:95:9f:a2:ec:75:14:6e:7d: + bc:33:a5:4c:60:f0:bb:1f:a1:17:17:70:84:43:3c: + 43:f7:37:9e:b1:ed:ff:0f:e3:70:e6:22:21:18:ec: + 9c:af:30:a8:cb:70:83:e7:7e:f5:85:77:15:69:2a: + db:d1:13:e9:8b:fb:5e:85:a8:a3:fa:95:f2:37:c8: + 91:5a:e5:c9:a8:56:a6:56:6a:14:34:ce:61:ad:90: + 63:d7:45:e2:4a:b8:7a:2c:38:17:ad:bd:6d:1d:80: + 16:4b:2f:2d:25:6a:2c:c9:d6:d4:7a:66:6f:57:c8: + 07:fd:7d:ac:41:f0:11:05:33 + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Basic Constraints: + CA:FALSE + Netscape Comment: + OpenSSL Generated Certificate + X509v3 Subject Key Identifier: + 71:90:B8:F7:1C:CA:93:7A:F4:11:E5:70:E2:F5:A0:2C:A6:71:E8:36 + X509v3 Authority Key Identifier: + keyid:98:0E:C7:0A:74:5D:FB:56:5B:B7:91:80:2A:3A:D4:89:AD:6C:B9:51 + + Signature Algorithm: sha1WithRSAEncryption + 06:67:4a:ed:5a:e9:a6:c7:16:32:3d:e8:2a:22:fb:06:4b:c9: + a3:8b:c5:2d:13:4d:d7:80:d3:df:3f:27:5b:cc:93:43:96:48: + 2a:64:19:7b:ce:c4:ec:f1:88:ee:47:3c:9e:85:40:2f:5a:19: + ea:e6:75:cc:8d:0b:70:41:5e:e8:76:98:49:27:fe:19:21:f1: + 64:70:f6:b0:26:91:94:fe:dc:2c:56:86:8a:ac:d0:52:d5:1e: + 30:42:68:aa:43:37:17:3b:a0:97:e4:7d:68:05:09:b2:fd:b3: + 2c:a0:f1:6f:07:0b:e2:5f:e8:a1:a3:39:6b:ba:83:ca:fa:ca: + 30:1e + -----BEGIN CERTIFICATE----- + MIICpzCCAhCgAwIBAgIJAN9pH+/lr78QMA0GCSqGSIb3DQEBBQUAMF4xCzAJBgNV + BAYTAlVTMQswCQYDVQQIDAJXQTERMA8GA1UECgwIY29yZS1kZXYxEDAOBgNVBAMM + B0NPUkUgQ0ExHTAbBgkqhkiG9w0BCQEWDnJvb3RAbG9jYWxob3N0MB4XDTEyMDMy + MDE2MTg0NVoXDTEzMDMyMDE2MTg0NVowUDELMAkGA1UEBhMCVVMxCzAJBgNVBAgM + AldBMREwDwYDVQQHDAhCZWxsZXZ1ZTERMA8GA1UECgwIY29yZS1kZXYxDjAMBgNV + BAMMBXRlc3QxMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCrCPM+R86Vn6Ls + dRRufbwzpUxg8LsfoRcXcIRDPEP3N56x7f8P43DmIiEY7JyvMKjLcIPnfvWFdxVp + KtvRE+mL+16FqKP6lfI3yJFa5cmoVqZWahQ0zmGtkGPXReJKuHosOBetvW0dgBZL + Ly0laizJ1tR6Zm9XyAf9faxB8BEFMwIDAQABo3sweTAJBgNVHRMEAjAAMCwGCWCG + SAGG+EIBDQQfFh1PcGVuU1NMIEdlbmVyYXRlZCBDZXJ0aWZpY2F0ZTAdBgNVHQ4E + FgQUcZC49xzKk3r0EeVw4vWgLKZx6DYwHwYDVR0jBBgwFoAUmA7HCnRd+1Zbt5GA + KjrUia1suVEwDQYJKoZIhvcNAQEFBQADgYEABmdK7VrppscWMj3oKiL7BkvJo4vF + LRNN14DT3z8nW8yTQ5ZIKmQZe87E7PGI7kc8noVAL1oZ6uZ1zI0LcEFe6HaYSSf+ + GSHxZHD2sCaRlP7cLFaGiqzQUtUeMEJoqkM3Fzugl+R9aAUJsv2zLKDxbwcL4l/o + oaM5a7qDyvrKMB4= + -----END CERTIFICATE----- + + } + } + custom-config { + custom-config-id service:IPsec:test1.key + custom-command test1.key + config { + -----BEGIN PRIVATE KEY----- + MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAKsI8z5HzpWfoux1 + FG59vDOlTGDwux+hFxdwhEM8Q/c3nrHt/w/jcOYiIRjsnK8wqMtwg+d+9YV3FWkq + 29ET6Yv7XoWoo/qV8jfIkVrlyahWplZqFDTOYa2QY9dF4kq4eiw4F629bR2AFksv + LSVqLMnW1Hpmb1fIB/19rEHwEQUzAgMBAAECgYEAnGREt5BFcD9WZMzx7859BuSB + IKs/D77nNIGoDyrOIwHy1FQBRG/+ThCrHvVMmEzwK4Yotsc6jd3D8DR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HWJSalckvPQO96SPhVD03b+jg1rW3ecwxXFKuM9nC + z5NxVmroFYDvhaRsaToLfEkXPw== + -----END CERTIFICATE REQUEST----- + + } + } + custom-config { + custom-config-id service:IPsec:ipsec.sh + custom-command ipsec.sh + config { + #!/bin/sh + # set up static tunnel mode security assocation for service (security.py) + # -------- CUSTOMIZATION REQUIRED -------- + # + # The IPsec service builds ESP tunnels between the specified peers using the + # racoon IKEv2 keying daemon. You need to provide keys and the addresses of + # peers, along with subnets to tunnel. + + # directory containing the certificate and key described below + keydir=/tmp/certs + + # the name used for the "$certname.pem" x509 certificate and + # "$certname.key" RSA private key, which can be generated using openssl + certname=test1 + + # list the public-facing IP addresses, starting with the localhost and followed + # by each tunnel peer, separated with a single space + tunnelhosts="192.168.0.1AND192.168.0.2 192.168.1.1AND192.168.1.2" + + # Define T where i is the index for each tunnel peer host from + # the tunnel_hosts list above (0 is localhost). + # T is a list of IPsec tunnels with peer i, with a local subnet address + # followed by the remote subnet address: + # T="AND AND" + # For example, 192.168.0.0/24 is a local network (behind this node) to be + # tunneled and 192.168.2.0/24 is a remote network (behind peer 1) + T1="192.168.5.0/24AND192.168.8.0/24" + T2="192.168.5.0/24AND192.168.4.0/24 192.168.6.0/24AND192.168.4.0/24" + + # -------- END CUSTOMIZATION -------- + + echo "building config $PWD/ipsec.conf..." + echo "building config $PWD/ipsec.conf..." > $PWD/ipsec.log + + checkip=0 + if [ "$(dpkg -l | grep " sipcalc ")" = "" ]; then + echo "WARNING: ip validation disabled because package sipcalc not installed + " >> $PWD/ipsec.log + checkip=1 + fi + + echo "#!/usr/sbin/setkey -f + # Flush the SAD and SPD + flush; + spdflush; + + # Security policies \ + " > $PWD/ipsec.conf + i=0 + for hostpair in $tunnelhosts; do + i=`expr $i + 1` + # parse tunnel host IP + thishost=${hostpair%%AND*} + peerhost=${hostpair##*AND} + if [ $checkip = "0" ] && + [ "$(sipcalc "$thishost" "$peerhost" | grep ERR)" != "" ]; then + echo "ERROR: invalid host address $thishost or $peerhost \ + " >> $PWD/ipsec.log + fi + # parse each tunnel addresses + tunnel_list_var_name=T$i + eval tunnels="$"$tunnel_list_var_name"" + for ttunnel in $tunnels; do + lclnet=${ttunnel%%AND*} + rmtnet=${ttunnel##*AND} + if [ $checkip = "0" ] && + [ "$(sipcalc "$lclnet" "$rmtnet"| grep ERR)" != "" ]; then + echo "ERROR: invalid tunnel address $lclnet and $rmtnet \ + " >> $PWD/ipsec.log + fi + # add tunnel policies + echo " + spdadd $lclnet $rmtnet any -P out ipsec + esp/tunnel/$thishost-$peerhost/require; + spdadd $rmtnet $lclnet any -P in ipsec + esp/tunnel/$peerhost-$thishost/require; \ + " >> $PWD/ipsec.conf + done + done + + echo "building config $PWD/racoon.conf..." + if [ ! -e $keydir\/$certname.key ] || [ ! -e $keydir\/$certname.pem ]; then + echo "ERROR: missing certification files under $keydir \ + $certname.key or $certname.pem " >> $PWD/ipsec.log + fi + echo " + path certificate \"$keydir\"; + listen { + adminsock disabled; + } + remote anonymous + { + exchange_mode main; + certificate_type x509 \"$certname.pem\" \"$certname.key\"; + ca_type x509 \"ca-cert.pem\"; + my_identifier asn1dn; + peers_identifier asn1dn; + + proposal { + encryption_algorithm 3des ; + hash_algorithm sha1; + authentication_method rsasig ; + dh_group modp768; + } + } + sainfo anonymous + { + pfs_group modp768; + lifetime time 1 hour ; + encryption_algorithm 3des, blowfish 448, rijndael ; + authentication_algorithm hmac_sha1, hmac_md5 ; + compression_algorithm deflate ; + } + " > $PWD/racoon.conf + + # the setkey program is required from the ipsec-tools package + echo "running setkey -f $PWD/ipsec.conf..." + setkey -f $PWD/ipsec.conf + + echo "running racoon -d -f $PWD/racoon.conf..." + racoon -d -f $PWD/racoon.conf -l racoon.log + + } + } + custom-config { + custom-config-id service:IPsec + custom-command IPsec + config { + + ('ipsec.sh', 'test1.key', 'test1.pem', 'ca-cert.pem', 'copycerts.sh', ) + 60 + ('sh copycerts.sh', 'sh ipsec.sh', ) + ('killall racoon', ) + + + } + } + services {zebra OSPFv2 OSPFv3 vtysh IPForward IPsec} + custom-image $CORE_DATA_DIR/icons/normal/router_red.gif +} + +node n2 { + type router + model router + network-config { + hostname n2 + ! + interface eth3 + ip address 192.168.8.1/24 + ipv6 address 2001:8::1/64 + ! + interface eth2 + ip address 192.168.7.1/24 + ipv6 address 2001:7::1/64 + ! + interface eth1 + ip address 192.168.2.1/24 + ipv6 address 2001:2::1/64 + ! + interface eth0 + ip address 192.168.0.2/24 + ipv6 address 2001:0::2/64 + ! + } + canvas c1 + iconcoords {455.0 173.0} + labelcoords {455.0 201.0} + interface-peer {eth0 n1} + interface-peer {eth1 n4} + interface-peer {eth2 n9} + interface-peer {eth3 n10} + custom-config { + custom-config-id service:IPsec:ipsec.sh + custom-command ipsec.sh + config { + #!/bin/sh + # set up static tunnel mode security assocation for service (security.py) + # -------- CUSTOMIZATION REQUIRED -------- + # + # The IPsec service builds ESP tunnels between the specified peers using the + # racoon IKEv2 keying daemon. You need to provide keys and the addresses of + # peers, along with subnets to tunnel. + + # directory containing the certificate and key described below + keydir=/tmp/certs + + # the name used for the "$certname.pem" x509 certificate and + # "$certname.key" RSA private key, which can be generated using openssl + certname=test1 + + # list the public-facing IP addresses, starting with the localhost and followed + # by each tunnel peer, separated with a single space + tunnelhosts="192.168.0.2AND192.168.0.1" + + # Define T where i is the index for each tunnel peer host from + # the tunnel_hosts list above (0 is localhost). + # T is a list of IPsec tunnels with peer i, with a local subnet address + # followed by the remote subnet address: + # T="AND AND" + # For example, 192.168.0.0/24 is a local network (behind this node) to be + # tunneled and 192.168.2.0/24 is a remote network (behind peer 1) + T1="192.168.8.0/24AND192.168.5.0/24" + + # -------- END CUSTOMIZATION -------- + + echo "building config $PWD/ipsec.conf..." + echo "building config $PWD/ipsec.conf..." > $PWD/ipsec.log + + checkip=0 + if [ "$(dpkg -l | grep " sipcalc ")" = "" ]; then + echo "WARNING: ip validation disabled because package sipcalc not installed + " >> $PWD/ipsec.log + checkip=1 + fi + + echo "#!/usr/sbin/setkey -f + # Flush the SAD and SPD + flush; + spdflush; + + # Security policies \ + " > $PWD/ipsec.conf + i=0 + for hostpair in $tunnelhosts; do + i=`expr $i + 1` + # parse tunnel host IP + thishost=${hostpair%%AND*} + peerhost=${hostpair##*AND} + if [ $checkip = "0" ] && + [ "$(sipcalc "$thishost" "$peerhost" | grep ERR)" != "" ]; then + echo "ERROR: invalid host address $thishost or $peerhost \ + " >> $PWD/ipsec.log + fi + # parse each tunnel addresses + tunnel_list_var_name=T$i + eval tunnels="$"$tunnel_list_var_name"" + for ttunnel in $tunnels; do + lclnet=${ttunnel%%AND*} + rmtnet=${ttunnel##*AND} + if [ $checkip = "0" ] && + [ "$(sipcalc "$lclnet" "$rmtnet"| grep ERR)" != "" ]; then + echo "ERROR: invalid tunnel address $lclnet and $rmtnet \ + " >> $PWD/ipsec.log + fi + # add tunnel policies + echo " + spdadd $lclnet $rmtnet any -P out ipsec + esp/tunnel/$thishost-$peerhost/require; + spdadd $rmtnet $lclnet any -P in ipsec + esp/tunnel/$peerhost-$thishost/require; \ + " >> $PWD/ipsec.conf + done + done + + echo "building config $PWD/racoon.conf..." + if [ ! -e $keydir\/$certname.key ] || [ ! -e $keydir\/$certname.pem ]; then + echo "ERROR: missing certification files under $keydir \ + $certname.key or $certname.pem " >> $PWD/ipsec.log + fi + echo " + path certificate \"$keydir\"; + listen { + adminsock disabled; + } + remote anonymous + { + exchange_mode main; + certificate_type x509 \"$certname.pem\" \"$certname.key\"; + ca_type x509 \"ca-cert.pem\"; + my_identifier asn1dn; + peers_identifier asn1dn; + + proposal { + encryption_algorithm 3des ; + hash_algorithm sha1; + authentication_method rsasig ; + dh_group modp768; + } + } + sainfo anonymous + { + pfs_group modp768; + lifetime time 1 hour ; + encryption_algorithm 3des, blowfish 448, rijndael ; + authentication_algorithm hmac_sha1, hmac_md5 ; + compression_algorithm deflate ; + } + " > $PWD/racoon.conf + + # the setkey program is required from the ipsec-tools package + echo "running setkey -f $PWD/ipsec.conf..." + setkey -f $PWD/ipsec.conf + + echo "running racoon -d -f $PWD/racoon.conf..." + racoon -d -f $PWD/racoon.conf -l racoon.log + + } + } + custom-config { + custom-config-id service:IPsec + custom-command IPsec + config { + + ('ipsec.sh', ) + 60 + ('sh ipsec.sh', ) + ('killall racoon', ) + + + } + } + services {zebra OSPFv2 OSPFv3 vtysh IPForward IPsec} + custom-image $CORE_DATA_DIR/icons/normal/router_red.gif +} + +node n3 { + type router + model router + network-config { + hostname n3 + ! + interface eth2 + ip address 192.168.4.1/24 + ipv6 address 2001:4::1/64 + ! + interface eth1 + ip address 192.168.3.1/24 + ipv6 address 2001:3::1/64 + ! + interface eth0 + ip address 192.168.1.2/24 + ipv6 address 2001:1::2/64 + ! + } + canvas c1 + iconcoords {211.0 375.0} + labelcoords {211.0 403.0} + interface-peer {eth0 n1} + interface-peer {eth1 n5} + interface-peer {eth2 n6} + custom-config { + custom-config-id service:IPsec:ipsec.sh + custom-command ipsec.sh + config { + #!/bin/sh + # set up static tunnel mode security assocation for service (security.py) + # -------- CUSTOMIZATION REQUIRED -------- + # + # The IPsec service builds ESP tunnels between the specified peers using the + # racoon IKEv2 keying daemon. You need to provide keys and the addresses of + # peers, along with subnets to tunnel. + + # directory containing the certificate and key described below + keydir=/tmp/certs + + # the name used for the "$certname.pem" x509 certificate and + # "$certname.key" RSA private key, which can be generated using openssl + certname=test1 + + # list the public-facing IP addresses, starting with the localhost and followed + # by each tunnel peer, separated with a single space + tunnelhosts="192.168.1.2AND192.168.1.1" + + # Define T where i is the index for each tunnel peer host from + # the tunnel_hosts list above (0 is localhost). + # T is a list of IPsec tunnels with peer i, with a local subnet address + # followed by the remote subnet address: + # T="AND AND" + # For example, 192.168.0.0/24 is a local network (behind this node) to be + # tunneled and 192.168.2.0/24 is a remote network (behind peer 1) + T1="192.168.4.0/24AND192.168.5.0/24 192.168.4.0/24AND192.168.6.0/24" + + # -------- END CUSTOMIZATION -------- + + echo "building config $PWD/ipsec.conf..." + echo "building config $PWD/ipsec.conf..." > $PWD/ipsec.log + + checkip=0 + if [ "$(dpkg -l | grep " sipcalc ")" = "" ]; then + echo "WARNING: ip validation disabled because package sipcalc not installed + " >> $PWD/ipsec.log + checkip=1 + fi + + echo "#!/usr/sbin/setkey -f + # Flush the SAD and SPD + flush; + spdflush; + + # Security policies \ + " > $PWD/ipsec.conf + i=0 + for hostpair in $tunnelhosts; do + i=`expr $i + 1` + # parse tunnel host IP + thishost=${hostpair%%AND*} + peerhost=${hostpair##*AND} + if [ $checkip = "0" ] && + [ "$(sipcalc "$thishost" "$peerhost" | grep ERR)" != "" ]; then + echo "ERROR: invalid host address $thishost or $peerhost \ + " >> $PWD/ipsec.log + fi + # parse each tunnel addresses + tunnel_list_var_name=T$i + eval tunnels="$"$tunnel_list_var_name"" + for ttunnel in $tunnels; do + lclnet=${ttunnel%%AND*} + rmtnet=${ttunnel##*AND} + if [ $checkip = "0" ] && + [ "$(sipcalc "$lclnet" "$rmtnet"| grep ERR)" != "" ]; then + echo "ERROR: invalid tunnel address $lclnet and $rmtnet \ + " >> $PWD/ipsec.log + fi + # add tunnel policies + echo " + spdadd $lclnet $rmtnet any -P out ipsec + esp/tunnel/$thishost-$peerhost/require; + spdadd $rmtnet $lclnet any -P in ipsec + esp/tunnel/$peerhost-$thishost/require; \ + " >> $PWD/ipsec.conf + done + done + + echo "building config $PWD/racoon.conf..." + if [ ! -e $keydir\/$certname.key ] || [ ! -e $keydir\/$certname.pem ]; then + echo "ERROR: missing certification files under $keydir \ + $certname.key or $certname.pem " >> $PWD/ipsec.log + fi + echo " + path certificate \"$keydir\"; + listen { + adminsock disabled; + } + remote anonymous + { + exchange_mode main; + certificate_type x509 \"$certname.pem\" \"$certname.key\"; + ca_type x509 \"ca-cert.pem\"; + my_identifier asn1dn; + peers_identifier asn1dn; + + proposal { + encryption_algorithm 3des ; + hash_algorithm sha1; + authentication_method rsasig ; + dh_group modp768; + } + } + sainfo anonymous + { + pfs_group modp768; + lifetime time 1 hour ; + encryption_algorithm 3des, blowfish 448, rijndael ; + authentication_algorithm hmac_sha1, hmac_md5 ; + compression_algorithm deflate ; + } + " > $PWD/racoon.conf + + # the setkey program is required from the ipsec-tools package + echo "running setkey -f $PWD/ipsec.conf..." + setkey -f $PWD/ipsec.conf + + echo "running racoon -d -f $PWD/racoon.conf..." + racoon -d -f $PWD/racoon.conf -l racoon.log + + } + } + custom-config { + custom-config-id service:IPsec + custom-command IPsec + config { + + ('ipsec.sh', ) + 60 + ('sh ipsec.sh', ) + ('killall racoon', ) + + + } + } + services {zebra OSPFv2 OSPFv3 vtysh IPForward IPsec} + custom-image $CORE_DATA_DIR/icons/normal/router_red.gif +} + +node n4 { + type router + model router + network-config { + hostname n4 + ! + interface eth1 + ip address 192.168.9.1/24 + ipv6 address 2001:9::1/64 + ! + interface eth0 + ip address 192.168.2.2/24 + ipv6 address 2001:2::2/64 + ! + } + canvas c1 + iconcoords {456.0 376.0} + labelcoords {456.0 404.0} + interface-peer {eth0 n2} + interface-peer {eth1 n11} +} + +node n5 { + type router + model host + network-config { + hostname n5 + ! + interface eth0 + ip address 192.168.3.10/24 + ipv6 address 2001:3::10/64 + ! + } + canvas c1 + iconcoords {50.0 472.0} + labelcoords {50.0 504.0} + interface-peer {eth0 n3} +} + +node n6 { + type router + model host + network-config { + hostname n6 + ! + interface eth0 + ip address 192.168.4.10/24 + ipv6 address 2001:4::10/64 + ! + } + canvas c1 + iconcoords {44.0 292.0} + labelcoords {44.0 324.0} + interface-peer {eth0 n3} +} + +node n7 { + type router + model host + network-config { + hostname n7 + ! + interface eth0 + ip address 192.168.5.10/24 + ipv6 address 2001:5::10/64 + ! + } + canvas c1 + iconcoords {41.0 62.0} + labelcoords {41.0 94.0} + interface-peer {eth0 n1} +} + +node n8 { + type router + model host + network-config { + hostname n8 + ! + interface eth0 + ip address 192.168.6.10/24 + ipv6 address 2001:6::10/64 + ! + } + canvas c1 + iconcoords {39.0 121.0} + labelcoords {39.0 153.0} + interface-peer {eth0 n1} +} + +node n9 { + type router + model host + network-config { + hostname n9 + ! + interface eth0 + ip address 192.168.7.10/24 + ipv6 address 2001:7::10/64 + ! + } + canvas c1 + iconcoords {653.0 69.0} + labelcoords {653.0 101.0} + interface-peer {eth0 n2} +} + +node n10 { + type router + model host + network-config { + hostname n10 + ! + interface eth0 + ip address 192.168.8.10/24 + ipv6 address 2001:8::10/64 + ! + } + canvas c1 + iconcoords {454.0 48.0} + labelcoords {484.0 59.0} + interface-peer {eth0 n2} +} + +node n11 { + type router + model host + network-config { + hostname n11 + ! + interface eth0 + ip address 192.168.9.10/24 + ipv6 address 2001:9::10/64 + ! + } + canvas c1 + iconcoords {654.0 460.0} + labelcoords {654.0 492.0} + interface-peer {eth0 n4} +} + +link l1 { + nodes {n1 n2} + bandwidth 0 +} + +link l2 { + nodes {n1 n3} + bandwidth 0 +} + +link l3 { + nodes {n2 n4} + bandwidth 0 +} + +link l4 { + nodes {n3 n5} + bandwidth 0 +} + +link l5 { + nodes {n3 n6} + bandwidth 0 +} + +link l6 { + nodes {n1 n7} + bandwidth 0 +} + +link l7 { + nodes {n1 n8} + bandwidth 0 +} + +link l8 { + nodes {n2 n9} + bandwidth 0 +} + +link l9 { + nodes {n2 n10} + bandwidth 0 +} + +link l10 { + nodes {n4 n11} + bandwidth 0 +} + +annotation a1 { + iconcoords {8.0 6.0 514.0 99.0} + type rectangle + label {Tunnel 1} + labelcolor black + fontfamily {Arial} + fontsize {12} + color #ffd0d0 + width 0 + border #00ff00 + rad 22 + canvas c1 +} + +annotation a2 { + iconcoords {8.0 6.0 137.0 334.0} + type rectangle + label {Tunnel 2} + labelcolor black + fontfamily {Arial} + fontsize {12} + color #ffe1e1 + width 0 + border black + rad 23 + canvas c1 +} + +annotation a5 { + iconcoords {263.0 127.0} + type text + label {} + labelcolor black + fontfamily {Arial} + fontsize {12} + effects {underline} + canvas c1 +} + +canvas c1 { + name {Canvas1} +} + +option global { + interface_names yes + ip_addresses yes + ipv6_addresses no + node_labels yes + link_labels yes + ipsec_configs yes + exec_errors yes + show_api no + background_images no + annotations yes + grid yes + traffic_start 0 +} + diff --git a/gui/configs/sample9-vpn.imn b/gui/configs/sample9-vpn.imn new file mode 100644 index 00000000..2a5696f2 --- /dev/null +++ b/gui/configs/sample9-vpn.imn @@ -0,0 +1,850 @@ +comments { +Sample scenario showing VPNClient and VPNServer service configuration. + +This topology features an OpenVPN client and server for virtual private +networking. The client can access the private 10.0.6.0/24 network via the VPN +server. First wait until routing converges in the center routers (try using the +Adjacency Widget and wait for blue lines, meaning full adjacencies), then open +a shell on the vpnclient and try pinging the private address of the vpnserver: + + vpnclient> ping 10.0.6.1 + +You can also access the other 10.0.6.* hosts behind the server. Try running +tcpudmp on one of the center routers, e.g. the n2 eth1/10.0.5.2 interface, and +you'll see UDP packets with TLS encrypted data instead of ICMP packets. + +Keys are included as extra files in the VPNClient and VPNServer service +configuration. +} + +node n1 { + type router + model router + network-config { + hostname n1 + ! + interface eth2 + ip address 10.0.4.2/24 + ipv6 address 2001:4::2/64 + ! + interface eth1 + ip address 10.0.2.1/24 + ipv6 address 2001:2::1/64 + ! + interface eth0 + ip address 10.0.0.1/24 + ipv6 address 2001:0::1/64 + ! + } + canvas c1 + iconcoords {297.0 236.0} + labelcoords {297.0 264.0} + interface-peer {eth0 n6} + interface-peer {eth1 n2} + interface-peer {eth2 n3} +} + +node n2 { + type router + model router + network-config { + hostname n2 + ! + interface eth1 + ip address 10.0.5.2/24 + ipv6 address 2001:5::2/64 + ! + interface eth0 + ip address 10.0.2.2/24 + ipv6 address 2001:2::2/64 + ! + } + canvas c1 + iconcoords {298.0 432.0} + labelcoords {298.0 460.0} + interface-peer {eth0 n1} + interface-peer {eth1 n4} +} + +node n3 { + type router + model router + network-config { + hostname n3 + ! + interface eth1 + ip address 10.0.4.1/24 + ipv6 address 2001:4::1/64 + ! + interface eth0 + ip address 10.0.3.1/24 + ipv6 address 2001:3::1/64 + ! + } + canvas c1 + iconcoords {573.0 233.0} + labelcoords {573.0 261.0} + interface-peer {eth0 n4} + interface-peer {eth1 n1} +} + +node n4 { + type router + model router + network-config { + hostname n4 + ! + interface eth2 + ip address 10.0.5.1/24 + ipv6 address 2001:5::1/64 + ! + interface eth1 + ip address 10.0.3.2/24 + ipv6 address 2001:3::2/64 + ! + interface eth0 + ip address 10.0.1.1/24 + ipv6 address 2001:1::1/64 + ! + } + canvas c1 + iconcoords {574.0 429.0} + labelcoords {574.0 457.0} + interface-peer {eth0 n5} + interface-peer {eth1 n3} + interface-peer {eth2 n2} +} + +node n5 { + type router + model host + network-config { + hostname vpnserver + ! + interface eth1 + ipv6 address 2001:6::10/64 + ip address 10.0.6.1/24 + ! + interface eth0 + ip address 10.0.1.10/24 + ipv6 address 2001:1::10/64 + ! + } + canvas c1 + iconcoords {726.0 511.0} + labelcoords {726.0 543.0} + interface-peer {eth0 n4} + interface-peer {eth1 n7} + custom-config { + custom-config-id service:VPNServer:copycerts.sh + custom-command copycerts.sh + config { + #!/bin/sh + + FILES="vpnserver.pem vpnserver.key ca-cert.pem dh1024.pem" + + mkdir -p /tmp/certs + + for f in $FILES; do + cp $f /tmp/certs + done + } + } + custom-config { + custom-config-id service:VPNServer:dh1024.pem + custom-command dh1024.pem + config { + -----BEGIN DH PARAMETERS----- + MIGHAoGBAIYQUzZ+2aYWFfdRWRL/Tc8bFqK8ve/0ihW1BPhe0z3b5D5+2/r9HAsG + u7oMkyM2oWp5N1DlzKgTizCRPRno5vgTz01kw4h6Y9ux496+huOHJGZXiCZlkZvM + daP8CC8z1naCC9MZLImQTkb1d1sH9BDRZAyfQYiXVYrHdqtNtqQjAgEC + -----END DH PARAMETERS----- + + } + } + custom-config { + custom-config-id service:VPNServer:ca-cert.pem + custom-command ca-cert.pem + config { + Certificate: + Data: + Version: 3 (0x2) + Serial Number: + df:69:1f:ef:e5:af:bf:0f + Signature Algorithm: sha1WithRSAEncryption + Issuer: C=US, ST=WA, O=core-dev, CN=CORE CA/emailAddress=root@localhost + Validity + Not Before: Mar 20 16:16:08 2012 GMT + Not After : Mar 20 16:16:08 2015 GMT + Subject: C=US, ST=WA, O=core-dev, CN=CORE CA/emailAddress=root@localhost + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (1024 bit) + Modulus: + 00:c4:d7:fc:c3:bc:a0:ee:76:7b:58:5c:96:6d:1f: + 74:26:c2:93:c1:a4:94:95:13:5e:4f:8b:3f:00:27: + e5:1b:b1:3b:70:3e:72:71:4d:c9:67:54:33:29:49: + 1e:de:a6:91:d9:00:ec:84:b8:64:f8:06:51:82:f4: + 84:9b:a2:fe:16:34:5c:e1:2f:3d:ad:34:b9:8e:ad: + 8e:ea:8a:e9:40:56:5b:f5:09:2c:bf:a0:08:db:81: + 7f:fb:d8:b9:6c:a6:be:4c:1f:b1:4e:b3:b0:8d:8d: + e4:04:8e:f8:8e:e9:c7:aa:e7:4a:b4:87:89:a7:25: + 72:38:74:bb:e5:b6:7f:86:7b + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Subject Key Identifier: + 98:0E:C7:0A:74:5D:FB:56:5B:B7:91:80:2A:3A:D4:89:AD:6C:B9:51 + X509v3 Authority Key Identifier: + keyid:98:0E:C7:0A:74:5D:FB:56:5B:B7:91:80:2A:3A:D4:89:AD:6C:B9:51 + + X509v3 Basic Constraints: + CA:TRUE + Signature Algorithm: sha1WithRSAEncryption + 39:7e:99:fd:40:44:0a:20:4c:3c:9a:bf:01:aa:94:c8:76:bb: + 80:53:4f:cd:28:2f:5b:7f:0b:52:09:14:cb:ac:ee:74:7f:17: + 4b:79:21:db:e1:a3:9b:e5:b1:72:83:f7:88:02:20:d6:23:33: + e4:ff:50:58:c6:88:e0:22:d7:2b:96:b3:dd:31:1a:80:52:0d: + 61:4f:47:72:63:39:1e:7f:a1:ad:f0:2b:82:53:05:ca:3d:0a: + 8f:3c:72:58:74:57:ae:8b:66:16:d9:a4:50:99:bc:d3:a7:c5: + 54:63:f0:87:cd:06:1a:d4:61:ed:d3:b8:33:5d:5a:d6:a4:f0: + a4:96 + -----BEGIN CERTIFICATE----- + MIICijCCAfOgAwIBAgIJAN9pH+/lr78PMA0GCSqGSIb3DQEBBQUAMF4xCzAJBgNV + BAYTAlVTMQswCQYDVQQIDAJXQTERMA8GA1UECgwIY29yZS1kZXYxEDAOBgNVBAMM + B0NPUkUgQ0ExHTAbBgkqhkiG9w0BCQEWDnJvb3RAbG9jYWxob3N0MB4XDTEyMDMy + MDE2MTYwOFoXDTE1MDMyMDE2MTYwOFowXjELMAkGA1UEBhMCVVMxCzAJBgNVBAgM + AldBMREwDwYDVQQKDAhjb3JlLWRldjEQMA4GA1UEAwwHQ09SRSBDQTEdMBsGCSqG + SIb3DQEJARYOcm9vdEBsb2NhbGhvc3QwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJ + AoGBAMTX/MO8oO52e1hclm0fdCbCk8GklJUTXk+LPwAn5RuxO3A+cnFNyWdUMylJ + Ht6mkdkA7IS4ZPgGUYL0hJui/hY0XOEvPa00uY6tjuqK6UBWW/UJLL+gCNuBf/vY + uWymvkwfsU6zsI2N5ASO+I7px6rnSrSHiaclcjh0u+W2f4Z7AgMBAAGjUDBOMB0G + A1UdDgQWBBSYDscKdF37Vlu3kYAqOtSJrWy5UTAfBgNVHSMEGDAWgBSYDscKdF37 + Vlu3kYAqOtSJrWy5UTAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA4GBADl+ + mf1ARAogTDyavwGqlMh2u4BTT80oL1t/C1IJFMus7nR/F0t5Idvho5vlsXKD94gC + INYjM+T/UFjGiOAi1yuWs90xGoBSDWFPR3JjOR5/oa3wK4JTBco9Co88clh0V66L + ZhbZpFCZvNOnxVRj8IfNBhrUYe3TuDNdWtak8KSW + -----END CERTIFICATE----- + + } + } + custom-config { + custom-config-id service:VPNServer:vpnserver.pem + custom-command vpnserver.pem + config { + Certificate: + Data: + Version: 3 (0x2) + Serial Number: + df:69:1f:ef:e5:af:bf:14 + Signature Algorithm: sha1WithRSAEncryption + Issuer: C=US, ST=WA, O=core-dev, CN=CORE CA/emailAddress=root@localhost + Validity + Not Before: Apr 12 15:09:45 2012 GMT + Not After : Apr 10 15:09:45 2022 GMT + Subject: C=US, ST=WA, O=core-dev, CN=vpnserver + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (1024 bit) + Modulus: + 00:af:da:e2:fb:f7:e1:ca:97:bb:94:1b:8f:f7:70: + 2f:c5:dc:71:22:b6:d2:f3:8b:fc:3a:d1:ef:65:60: + 21:0f:e5:49:ed:71:45:1c:e9:f7:b9:f7:00:74:05: + a3:ab:63:05:5c:be:23:fd:18:c6:b7:17:52:21:3a: + 86:5f:68:07:a6:1b:2f:fc:df:ce:ac:45:55:cd:2a: + d4:8a:66:d1:46:99:e4:b2:57:49:53:df:d0:c0:1e: + 0f:84:6f:52:8d:2c:6e:4b:cb:f7:7e:c4:27:51:72: + cd:db:68:54:fd:4d:c4:42:1a:27:be:9f:03:03:d8: + ff:11:58:46:2f:58:13:2c:37 + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Basic Constraints: + CA:FALSE + Netscape Comment: + OpenSSL Generated Certificate + X509v3 Subject Key Identifier: + 56:F2:E8:73:73:76:FD:14:13:1C:1A:AB:F2:8F:30:D4:91:7D:83:62 + X509v3 Authority Key Identifier: + keyid:98:0E:C7:0A:74:5D:FB:56:5B:B7:91:80:2A:3A:D4:89:AD:6C:B9:51 + + Signature Algorithm: sha1WithRSAEncryption + 29:62:f5:4a:40:ce:65:e0:73:ff:d1:80:ca:89:a3:29:4e:d8: + 63:52:f0:76:21:b7:83:49:a4:fa:54:f7:0d:58:eb:af:fb:59: + 61:63:02:57:de:4d:c1:8d:f1:de:d6:00:40:53:12:25:3c:9b: + 48:9a:a7:3b:95:5d:67:83:11:b2:b2:ef:c2:71:95:23:e5:42: + 88:09:ac:95:c9:cf:e8:5c:d8:14:9e:d8:4f:6f:af:10:4f:f5: + 19:a2:71:f3:96:5f:1b:19:53:e9:16:4d:4e:be:e5:8a:83:57: + 0a:93:7a:a4:53:05:1a:64:bf:25:69:fc:3c:3b:9b:aa:43:f4: + 1d:fc + -----BEGIN CERTIFICATE----- + MIICmDCCAgGgAwIBAgIJAN9pH+/lr78UMA0GCSqGSIb3DQEBBQUAMF4xCzAJBgNV + BAYTAlVTMQswCQYDVQQIDAJXQTERMA8GA1UECgwIY29yZS1kZXYxEDAOBgNVBAMM + B0NPUkUgQ0ExHTAbBgkqhkiG9w0BCQEWDnJvb3RAbG9jYWxob3N0MB4XDTEyMDQx + MjE1MDk0NVoXDTIyMDQxMDE1MDk0NVowQTELMAkGA1UEBhMCVVMxCzAJBgNVBAgM + AldBMREwDwYDVQQKDAhjb3JlLWRldjESMBAGA1UEAwwJdnBuc2VydmVyMIGfMA0G + CSqGSIb3DQEBAQUAA4GNADCBiQKBgQCv2uL79+HKl7uUG4/3cC/F3HEittLzi/w6 + 0e9lYCEP5UntcUUc6fe59wB0BaOrYwVcviP9GMa3F1IhOoZfaAemGy/8386sRVXN + KtSKZtFGmeSyV0lT39DAHg+Eb1KNLG5Ly/d+xCdRcs3baFT9TcRCGie+nwMD2P8R + WEYvWBMsNwIDAQABo3sweTAJBgNVHRMEAjAAMCwGCWCGSAGG+EIBDQQfFh1PcGVu + U1NMIEdlbmVyYXRlZCBDZXJ0aWZpY2F0ZTAdBgNVHQ4EFgQUVvLoc3N2/RQTHBqr + 8o8w1JF9g2IwHwYDVR0jBBgwFoAUmA7HCnRd+1Zbt5GAKjrUia1suVEwDQYJKoZI + hvcNAQEFBQADgYEAKWL1SkDOZeBz/9GAyomjKU7YY1LwdiG3g0mk+lT3DVjrr/tZ + YWMCV95NwY3x3tYAQFMSJTybSJqnO5VdZ4MRsrLvwnGVI+VCiAmslcnP6FzYFJ7Y + T2+vEE/1GaJx85ZfGxlT6RZNTr7lioNXCpN6pFMFGmS/JWn8PDubqkP0Hfw= + -----END CERTIFICATE----- + + } + } + custom-config { + custom-config-id service:VPNServer:vpnserver.key + custom-command vpnserver.key + config { + -----BEGIN PRIVATE KEY----- + MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAK/a4vv34cqXu5Qb + j/dwL8XccSK20vOL/DrR72VgIQ/lSe1xRRzp97n3AHQFo6tjBVy+I/0YxrcXUiE6 + hl9oB6YbL/zfzqxFVc0q1Ipm0UaZ5LJXSVPf0MAeD4RvUo0sbkvL937EJ1Fyzdto + VP1NxEIaJ76fAwPY/xFYRi9YEyw3AgMBAAECgYBcUveOP5KsUULqvBm2V5DNOTGw + fvl7Ycf3fZZIy9IvzTolzazyRCeJ25LCVt+ZsC/1g+HTE/nnz/ePeHFpj21LuVWJ + uWsV9qmdO0K5WxfXM4M08df+EVRrOh4rmgnHZp7jBW6srwGSSJxsvRAe0cRlZcCW + JsgJcyLJfZk0ypsSgQJBAOTtkUfJvqdU0CslBSmDY6skxjneS6kLQGvrELHRTZgd + K31E5WDYJgkpVGhWur19kUYIj7Fs3/Z1Q0KC0bRWokECQQDEpp52u4ilaP9nJsMm + 5l/JVEO5gIzbqStVTmU64wLgx3mapL6P8Sa1gbJMlc5NMyayjRP0PoN0cvz+V9t4 + 3cB3AkEAxhLHINXtn9pCQxJE5SZJlkq7OFaeICUcGEPKrg/qkzKp7jkuPhzGzCZ2 + YdCowkti5rWBnoIVRakwCNwnlWFgAQJAEhyWc7EKANIO091KFAcbw1szcZ5ZWtHV + 3+F8iVPnK/SzSn7p3jADtKvhVBRoD8wqQD+mGtS3Hr6IdpR47kTeOQJBAJhd4vi6 + LxbQZlS009DamuSrqgwsmTcfylu58bhFN4YkWCw8CPk3iKJXH6beomDvYEIQl8C5 + jWe+PqSX6XcwnTk= + -----END PRIVATE KEY----- + + } + } + custom-config { + custom-config-id service:VPNServer:vpnserver.sh + custom-command vpnserver.sh + config { + #!/bin/sh + # custom VPN Server Configuration for service (security.py) + # -------- CUSTOMIZATION REQUIRED -------- + # + # The VPNServer service sets up the OpenVPN server for building VPN tunnels + # that allow access via TUN/TAP device to private networks. + # + # note that the IPForward and DefaultRoute services should be enabled + + # directory containing the certificate and key described below, in addition to + # a CA certificate and DH key + keydir=/tmp/certs + + # the name used for a "$keyname.pem" certificate and "$keyname.key" private key. + keyname=vpnserver + + # the VPN subnet address from which the client VPN IP (for the TUN/TAP) + # will be allocated + vpnsubnet=10.0.200.0 + + # public IP address of this vpn server (same as VPNClient vpnserver= setting) + vpnserver=10.0.1.10 + + # optional list of private subnets reachable behind this VPN server + # each subnet and next hop is separated by a space + # ", , ..." + privatenets="10.0.6.0,10.0.1.10" + + # optional list of VPN clients, for statically assigning IP addresses to + # clients; also, an optional client subnet can be specified for adding static + # routes via the client + # Note: VPN addresses x.x.x.0-3 are reserved + # ",, ,, ..." + #vpnclients="client1KeyFilename,10.0.200.5,10.0.0.0 client2KeyFilename,," + vpnclients="" + + # NOTE: you may need to enable the StaticRoutes service on nodes within the + # private subnet, in order to have routes back to the client. + # /sbin/ip ro add /24 via + # /sbin/ip ro add /24 via + + # -------- END CUSTOMIZATION -------- + + echo > $PWD/vpnserver.log + rm -f -r $PWD/ccd + + # validate key and certification files + if [ ! -e $keydir\/$keyname.key ] || [ ! -e $keydir\/$keyname.pem ] \ + || [ ! -e $keydir\/ca-cert.pem ] || [ ! -e $keydir\/dh1024.pem ]; then + echo "ERROR: missing certification or key files under $keydir \ + $keyname.key or $keyname.pem or ca-cert.pem or dh1024.pem" >> $PWD/vpnserver.log + fi + + # validate configuration IP addresses + checkip=0 + if [ "$(dpkg -l | grep " sipcalc ")" = "" ]; then + echo "WARNING: ip validation disabled because package sipcalc not installed\ + " >> $PWD/vpnserver.log + checkip=1 + else + if [ "$(sipcalc "$vpnsubnet" "$vpnserver" | grep ERR)" != "" ]; then + echo "ERROR: invalid vpn subnet or server address \ + $vpnsubnet or $vpnserver " >> $PWD/vpnserver.log + fi + fi + + # create client vpn ip pool file + ( + cat << EOF + EOF + )> $PWD/ippool.txt + + # create server.conf file + ( + cat << EOF + # openvpn server config + local $vpnserver + server $vpnsubnet 255.255.255.0 + push redirect-gateway def1 + EOF + )> $PWD/server.conf + + # add routes to VPN server private subnets, and push these routes to clients + for privatenet in $privatenets; do + if [ $privatenet != "" ]; then + net=${privatenet%%,*} + nexthop=${privatenet##*,} + if [ $checkip = "0" ] && + [ "$(sipcalc "$net" "$nexthop" | grep ERR)" != "" ]; then + echo "ERROR: invalid vpn server private net address \ + $net or $nexthop " >> $PWD/vpnserver.log + fi + echo push route $net 255.255.255.0 >> $PWD/server.conf + /sbin/ip ro add $net/24 via $nexthop + /sbin/ip ro add $vpnsubnet/24 via $nexthop + fi + done + + # allow subnet through this VPN, one route for each client subnet + for client in $vpnclients; do + if [ $client != "" ]; then + cSubnetIP=${client##*,} + cVpnIP=${client#*,} + cVpnIP=${cVpnIP%%,*} + cKeyFilename=${client%%,*} + if [ "$cSubnetIP" != "" ]; then + if [ $checkip = "0" ] && + [ "$(sipcalc "$cSubnetIP" "$cVpnIP" | grep ERR)" != "" ]; then + echo "ERROR: invalid vpn client and subnet address \ + $cSubnetIP or $cVpnIP " >> $PWD/vpnserver.log + fi + echo route $cSubnetIP 255.255.255.0 >> $PWD/server.conf + if ! test -d $PWD/ccd; then + mkdir -p $PWD/ccd + echo client-config-dir $PWD/ccd >> $PWD/server.conf + fi + if test -e $PWD/ccd/$cKeyFilename; then + echo iroute $cSubnetIP 255.255.255.0 >> $PWD/ccd/$cKeyFilename + else + echo iroute $cSubnetIP 255.255.255.0 > $PWD/ccd/$cKeyFilename + fi + fi + if [ "$cVpnIP" != "" ]; then + echo $cKeyFilename,$cVpnIP >> $PWD/ippool.txt + fi + fi + done + + ( + cat << EOF + keepalive 10 120 + ca $keydir/ca-cert.pem + cert $keydir/$keyname.pem + key $keydir/$keyname.key + dh $keydir/dh1024.pem + cipher AES-256-CBC + status /var/log/openvpn-status.log + log /var/log/openvpn-server.log + ifconfig-pool-linear + ifconfig-pool-persist $PWD/ippool.txt + port 1194 + proto udp + dev tun + verb 4 + daemon + EOF + )>> $PWD/server.conf + + # start vpn server + openvpn --config server.conf + + } + } + custom-config { + custom-config-id service:VPNServer + custom-command VPNServer + config { + + ('vpnserver.sh', 'vpnserver.key', 'vpnserver.pem', 'ca-cert.pem', 'dh1024.pem', 'copycerts.sh', ) + 50 + ('sh copycerts.sh', 'sh vpnserver.sh', ) + ('killall openvpn', ) + ('pidof openvpn', ) + + } + } + services {IPForward DefaultRoute SSH VPNServer} +} + +node n6 { + type router + model PC + network-config { + hostname vpnclient + ! + interface eth0 + ip address 10.0.0.20/24 + ipv6 address 2001:0::20/64 + ! + } + canvas c1 + iconcoords {120.0 133.0} + labelcoords {120.0 165.0} + interface-peer {eth0 n1} + custom-config { + custom-config-id service:VPNClient:vpnclient.key + custom-command vpnclient.key + config { + -----BEGIN PRIVATE KEY----- + MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAM49tCuXw4Wjt8iY + 84nU+fdOCw5M9RXXDfwHOxd1ILSP4KDLB7FfqVo9/DZOMlqNHYBeeF0WXLnr+zda + kKQUWpWHJQGQ4qHIJ+xCsBRCVbTPsRngeQMCCQw5ekW7NZKpKj6ANWkIm4dhiuTr + ZshR5Q6idNFG/b/ksNQsARK8vlJlAgMBAAECgYEAoKeKMKcAxJpasGUM2OJRcWaW + 0CX8iG3EU/2h90zjFCQ7m6VsMaxN9KDyVa8mJElmoLd2VTT1OFLtlxnyMA423Hro + 0tlKGErCH2yWMnrcjO30w7pmWSONn0yU/iAbzYAsmLNwYKCPAX2tJ9FZKsfVhctd + MEDMf/skhYL6CFe4XwECQQD1pV7C9lj0vsno22WoVg8n6/7OZu/ZBtCXoAQKAo14 + bUqknK+SDMgqnexDQjarkQFrq4yxrPmp3Mv4a6M9vKglAkEA1u8i+1m4VMAARe9N + 3qiFA0hk9v3Nm7f/ZVrkddoZNChV8CQW9y3Caltrlrjj0ugTAaWKdOhOcWeRcDo9 + EMrNQQJAbXwpgkf+Wgd3QrwW0TKaSrbauPAUUuzAp/QAGN4OY/CCZmAXuMbNqID+ + vvOSHmHg+jZZ3Q81r8njd3OyLGAbqQJAURqn3qT6c7CH6dvlTHHWz2hQAQvAvFPw + IbTspLQJ8q6NzzIvIFK6HBwnOxbFkV5VXbezyW2nvA9SyECRrnZ4gQJAfV2In/xB + qxyrHHInJPtwzsKjfgw9787ulXeDa+gYQrmwfrqYvPo6NtfJ9i2ahl8tr3LIFWIH + NavHWA5NKc4GVw== + -----END PRIVATE KEY----- + + } + } + custom-config { + custom-config-id service:VPNClient:vpnclient.pem + custom-command vpnclient.pem + config { + Certificate: + Data: + Version: 3 (0x2) + Serial Number: + df:69:1f:ef:e5:af:bf:13 + Signature Algorithm: sha1WithRSAEncryption + Issuer: C=US, ST=WA, O=core-dev, CN=CORE CA/emailAddress=root@localhost + Validity + Not Before: Apr 12 15:09:01 2012 GMT + Not After : Apr 10 15:09:01 2022 GMT + Subject: C=US, ST=WA, O=core-dev, CN=vpnclient + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (1024 bit) + Modulus: + 00:ce:3d:b4:2b:97:c3:85:a3:b7:c8:98:f3:89:d4: + f9:f7:4e:0b:0e:4c:f5:15:d7:0d:fc:07:3b:17:75: + 20:b4:8f:e0:a0:cb:07:b1:5f:a9:5a:3d:fc:36:4e: + 32:5a:8d:1d:80:5e:78:5d:16:5c:b9:eb:fb:37:5a: + 90:a4:14:5a:95:87:25:01:90:e2:a1:c8:27:ec:42: + b0:14:42:55:b4:cf:b1:19:e0:79:03:02:09:0c:39: + 7a:45:bb:35:92:a9:2a:3e:80:35:69:08:9b:87:61: + 8a:e4:eb:66:c8:51:e5:0e:a2:74:d1:46:fd:bf:e4: + b0:d4:2c:01:12:bc:be:52:65 + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Basic Constraints: + CA:FALSE + Netscape Comment: + OpenSSL Generated Certificate + X509v3 Subject Key Identifier: + A0:59:F2:02:46:86:A3:2A:BD:C0:33:DA:31:71:1F:78:88:16:43:CE + X509v3 Authority Key Identifier: + keyid:98:0E:C7:0A:74:5D:FB:56:5B:B7:91:80:2A:3A:D4:89:AD:6C:B9:51 + + Signature Algorithm: sha1WithRSAEncryption + 0a:39:71:f3:9f:50:68:f9:de:3e:47:eb:73:6b:4e:d8:6c:ff: + d5:38:0a:a0:8f:52:8f:cb:7e:6f:95:62:b6:04:2f:1d:3f:42: + 32:26:38:c5:89:ea:ef:fc:27:ab:f0:81:39:e2:58:d6:fd:f8: + 3e:f8:db:22:ce:39:dd:13:49:6a:7b:eb:90:8a:cc:bc:7d:87: + c5:d4:25:5f:f5:9a:0a:8f:1e:28:86:50:46:e2:fd:4e:ff:5d: + b8:0e:48:2d:bd:0f:38:b4:85:0f:4e:05:c6:60:cf:5a:d9:d0: + 5c:32:ed:70:3c:72:28:fd:75:c5:38:d5:52:cb:57:f9:4b:86: + 0a:74 + -----BEGIN CERTIFICATE----- + MIICmDCCAgGgAwIBAgIJAN9pH+/lr78TMA0GCSqGSIb3DQEBBQUAMF4xCzAJBgNV + BAYTAlVTMQswCQYDVQQIDAJXQTERMA8GA1UECgwIY29yZS1kZXYxEDAOBgNVBAMM + B0NPUkUgQ0ExHTAbBgkqhkiG9w0BCQEWDnJvb3RAbG9jYWxob3N0MB4XDTEyMDQx + MjE1MDkwMVoXDTIyMDQxMDE1MDkwMVowQTELMAkGA1UEBhMCVVMxCzAJBgNVBAgM + AldBMREwDwYDVQQKDAhjb3JlLWRldjESMBAGA1UEAwwJdnBuY2xpZW50MIGfMA0G + CSqGSIb3DQEBAQUAA4GNADCBiQKBgQDOPbQrl8OFo7fImPOJ1Pn3TgsOTPUV1w38 + BzsXdSC0j+CgywexX6laPfw2TjJajR2AXnhdFly56/s3WpCkFFqVhyUBkOKhyCfs + QrAUQlW0z7EZ4HkDAgkMOXpFuzWSqSo+gDVpCJuHYYrk62bIUeUOonTRRv2/5LDU + LAESvL5SZQIDAQABo3sweTAJBgNVHRMEAjAAMCwGCWCGSAGG+EIBDQQfFh1PcGVu + U1NMIEdlbmVyYXRlZCBDZXJ0aWZpY2F0ZTAdBgNVHQ4EFgQUoFnyAkaGoyq9wDPa + MXEfeIgWQ84wHwYDVR0jBBgwFoAUmA7HCnRd+1Zbt5GAKjrUia1suVEwDQYJKoZI + hvcNAQEFBQADgYEACjlx859QaPnePkfrc2tO2Gz/1TgKoI9Sj8t+b5VitgQvHT9C + MiY4xYnq7/wnq/CBOeJY1v34PvjbIs453RNJanvrkIrMvH2HxdQlX/WaCo8eKIZQ + RuL9Tv9duA5ILb0POLSFD04FxmDPWtnQXDLtcDxyKP11xTjVUstX+UuGCnQ= + -----END CERTIFICATE----- + + } + } + custom-config { + custom-config-id service:VPNClient:copycerts.sh + custom-command copycerts.sh + config { + #!/bin/sh + + FILES="vpnclient.pem vpnclient.key" + + mkdir -p /tmp/certs + + for f in $FILES; do + cp $f /tmp/certs + done + } + } + custom-config { + custom-config-id service:VPNClient:vpnclient.sh + custom-command vpnclient.sh + config { + #!/bin/sh + # custom VPN Client configuration for service (security.py) + # -------- CUSTOMIZATION REQUIRED -------- + # + # The VPNClient service builds a VPN tunnel to the specified VPN server using + # OpenVPN software and a virtual TUN/TAP device. + + # directory containing the certificate and key described below + keydir=/tmp/certs + + # the name used for a "$keyname.pem" certificate and "$keyname.key" private key. + keyname=vpnclient + + # the public IP address of the VPN server this client should connect with + vpnserver="10.0.1.10" + + # optional next hop for adding a static route to reach the VPN server + nexthop="" + + # --------- END CUSTOMIZATION -------- + + # validate addresses + if [ "$(dpkg -l | grep " sipcalc ")" = "" ]; then + echo "WARNING: ip validation disabled because package sipcalc not installed + " > $PWD/vpnclient.log + else + if [ "$(sipcalc "$vpnserver" "$nexthop" | grep ERR)" != "" ]; then + echo "ERROR: invalide address $vpnserver or $nexthop \ + " > $PWD/vpnclient.log + fi + fi + + # validate key and certification files + if [ ! -e $keydir\/$keyname.key ] || [ ! -e $keydir\/$keyname.pem ] \ + || [ ! -e $keydir\/ca-cert.pem ] || [ ! -e $keydir\/dh1024.pem ]; then + echo "ERROR: missing certification or key files under $keydir \ + $keyname.key or $keyname.pem or ca-cert.pem or dh1024.pem" >> $PWD/vpnclient.log + fi + + # if necessary, add a static route for reaching the VPN server IP via the IF + vpnservernet=${vpnserver%.*}.0/24 + if [ "$nexthop" != "" ]; then + /sbin/ip route add $vpnservernet via $nexthop + fi + + # create openvpn client.conf + ( + cat << EOF + client + dev tun + proto udp + remote $vpnserver 1194 + nobind + ca $keydir/ca-cert.pem + cert $keydir/$keyname.pem + key $keydir/$keyname.key + dh $keydir/dh1024.pem + cipher AES-256-CBC + log /var/log/openvpn-client.log + verb 4 + daemon + EOF + ) > client.conf + + openvpn --config client.conf + + } + } + custom-config { + custom-config-id service:VPNClient + custom-command VPNClient + config { + + ('vpnclient.sh', 'copycerts.sh', 'vpnclient.pem', 'vpnclient.key', ) + 60 + ('sh copycerts.sh', 'sh vpnclient.sh', ) + ('killall openvpn', ) + ('pidof openvpn', ) + + } + } + services {DefaultRoute VPNClient} +} + +node n7 { + type lanswitch + network-config { + hostname n7 + ! + } + canvas c1 + iconcoords {824.0 458.0} + labelcoords {824.0 482.0} + interface-peer {e0 n5} + interface-peer {e1 n8} + interface-peer {e2 n9} + interface-peer {e3 n10} +} + +node n8 { + type router + model PC + network-config { + hostname n8 + ! + interface eth0 + ip address 10.0.6.20/24 + ipv6 address 2001:6::20/64 + ! + } + canvas c1 + iconcoords {801.0 264.0} + labelcoords {801.0 296.0} + interface-peer {eth0 n7} +} + +node n9 { + type router + model PC + network-config { + hostname n9 + ! + interface eth0 + ip address 10.0.6.21/24 + ipv6 address 2001:6::21/64 + ! + } + canvas c1 + iconcoords {885.0 305.0} + labelcoords {885.0 337.0} + interface-peer {eth0 n7} +} + +node n10 { + type router + model PC + network-config { + hostname n10 + ! + interface eth0 + ip address 10.0.6.22/24 + ipv6 address 2001:6::22/64 + ! + } + canvas c1 + iconcoords {954.0 353.0} + labelcoords {954.0 385.0} + interface-peer {eth0 n7} +} + +link l1 { + nodes {n6 n1} + bandwidth 0 +} + +link l2 { + nodes {n4 n5} + bandwidth 0 +} + +link l3 { + nodes {n1 n2} + bandwidth 0 +} + +link l4 { + nodes {n3 n4} + bandwidth 0 +} + +link l5 { + nodes {n3 n1} + bandwidth 0 +} + +link l6 { + nodes {n4 n2} + bandwidth 0 +} + +link l7 { + nodes {n5 n7} + bandwidth 0 +} + +link l8 { + nodes {n8 n7} + bandwidth 0 +} + +link l9 { + nodes {n9 n7} + bandwidth 0 +} + +link l10 { + nodes {n10 n7} + bandwidth 0 +} + +annotation a1 { + iconcoords {661.0 187.0 997.0 579.0} + type rectangle + label {private network} + labelcolor black + fontfamily {Arial} + fontsize 12 + color #e9e9fe + width 0 + border black + rad 25 + effects {bold} + canvas c1 +} + +canvas c1 { + name {Canvas1} +} + +option global { + interface_names no + ip_addresses yes + ipv6_addresses no + node_labels yes + link_labels yes + ipsec_configs yes + exec_errors yes + show_api no + background_images no + annotations yes + grid yes + traffic_start 0 +} + diff --git a/gui/core-bsd-cleanup.sh b/gui/core-bsd-cleanup.sh new file mode 100755 index 00000000..a73c6daa --- /dev/null +++ b/gui/core-bsd-cleanup.sh @@ -0,0 +1,60 @@ +#!/bin/sh +# +# cleanup.sh +# +# Copyright 2005-2013 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# Removes leftover netgraph nodes and vimages from an emulation that +# did not exit properly. +# + +ngnodes="pipe eiface hub switch wlan" +vimages=`vimage -l | fgrep -v " " | cut -d: -f 1 | sed s/\"//g` + +# shutdown netgraph nodes +for ngn in $ngnodes +do + nodes=`ngctl list | grep $ngn | awk '{print $2}'` + for n in $nodes + do + echo ngctl shutdown $n: + ngctl shutdown $n: + done +done + +# kills processes and remove vimages +for vimage in $vimages +do + procs=`vimage $vimage ps x | awk '{print $1}'` + for proc in $procs + do + if [ $proc != "PID" ] + then + echo vimage $vimage kill $proc + vimage $vimage kill $proc + fi + done + loopback=`vimage $vimage ifconfig -a | head -n 1 | awk '{split($1,a,":"); print a[1]}'` + if [ "$loopback" != "" ] + then + addrs=`ifconfig $loopback | grep inet | awk '{print $2}'` + for addr in $addrs + do + echo vimage $vimage ifconfig $loopback $addr -alias + vimage $vimage ifconfig $loopback $addr -alias + if [ $? != 0 ] + then + vimage $vimage ifconfig $loopback inet6 $addr -alias + fi + done + echo vimage $vimage ifconfig $loopback down + vimage $vimage ifconfig $loopback down + fi + vimage $vimage kill -9 -1 2> /dev/null + echo vimage -d $vimage + vimage -d $vimage +done + +# clean up temporary area +rm -rf /tmp/pycore.* diff --git a/gui/core-gui.in b/gui/core-gui.in new file mode 100755 index 00000000..2aeed1b2 --- /dev/null +++ b/gui/core-gui.in @@ -0,0 +1,164 @@ +#!/bin/sh +# +# Copyright 2005-2013 the Boeing Company. +# See the LICENSE file included in this distribution. +# + +# +# Copyright 2004-2008 University of Zagreb, Croatia. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# +# THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. +# +# This work was supported in part by Croatian Ministry of Science +# and Technology through the research contract #IP-2003-143. +# +case $1 in +-h | --help) + echo "" + echo "Usage: `basename $0` [-h|-v] [-b|-c ] [-s] []" + echo "" + echo "Launches the CORE Tcl/Tk X11 GUI or starts an imn-based emulation." + echo "" + echo " -(-h)elp show help message and exit" + echo " -(-v)ersion show version number and exit" + echo " -(-b)atch batch mode (no X11 GUI)" + echo -n " -(-c)losebatch stop and clean up a batch mode " + echo "session " + echo " -(-s)tart start in execute mode, not edit mode" + echo " (optional) load the specified imn scenario file" + echo "" + echo "With no parameters, starts the GUI in edit mode with a blank canvas." + echo "" + exit 0 + ;; +-v | --version) + exec echo "`basename $0` version @CORE_VERSION@ (@CORE_VERSION_DATE@)" + exit 0 + ;; +esac + +SHELL=/bin/sh +export SHELL + +export LIBDIR="@CORE_LIB_DIR@" +export SBINDIR="@SBINDIR@" +# eval is used here to expand "~" to user's home dir +if [ x$CONFDIR = x ]; then export CONFDIR=`eval "echo @CORE_GUI_CONF_DIR@"` ; fi +export CORE_STATE_DIR="@CORE_STATE_DIR@" +export CORE_DATA_DIR="@CORE_DATA_DIR@" +export CORE_USER=`id -u -n` +export CORE_START_DIR=$PWD + +init_conf_dir() { + echo "Setting up user config area $CONFDIR, $CONFDIR/configs, and " + echo " $CONFDIR/myservices" + mkdir -p $CONFDIR + if [ $? != 0 ]; then echo "error making directory $CONFDIR!"; fi + mkdir -p $CONFDIR/configs + if [ $? != 0 ]; then + echo "error making directory $CONFDIR/configs!"; + else + cp -a $CORE_DATA_DIR/examples/configs/* $CONFDIR/configs/ + fi + mkdir -p $CONFDIR/myservices + if [ $? != 0 ]; then + echo "error making directory $CONFDIR/myservices!"; + else + cp -a $CORE_DATA_DIR/examples/myservices/* $CONFDIR/myservices/ + fi +} + +cd $LIBDIR + +core=$LIBDIR/core.tcl + +# locate wish8.5 binaries +WISHLIST="/usr/local/bin/wish8.5 /usr/bin/wish8.5" +for wishbin in $WISHLIST +do + if [ -x $wishbin ] + then + WISH=$wishbin; + break; + fi; +done; + +if [ a$WISH = a ] +then + echo "CORE could not locate the Tcl/Tk binary (wish8.5)." + exit 1; +fi; + +# create /home/user/.core directory if necessary +if [ ! -e $CONFDIR ] +then + init_conf_dir +fi; + +# check for and fix write permissions on /home/user/.core directory +while [ ! -w $CONFDIR ]; +do + echo " CORE requires write permissions to the '$CONFDIR'" + echo " configuration directory for the user '$CORE_USER'," + echo " would you like to fix this now [Y/n]?" + read yn + if [ "z$yn" = "zn" ]; then + break + fi + echo -n " (sudo may prompt you for a password; if you do not have sudo set" + echo " up for the" + echo " user '$CORE_USER', su to root and run this command:" + echo " chown -R $CORE_USER $CONFDIR )" + sudo chown -R $U $CONFDIR + sudo chmod -R u+w $CONFDIR +done + +# GUI config directory should not be a file (old prefs) +if [ ! -d $CONFDIR ] +then + + mv $CONFDIR $CONFDIR.tmp + if [ $? != 0 ]; then echo "error moving $CONFDIR!"; exit 1; fi + init_conf_dir + echo "Old preferences file $CONFDIR has been moved to $CONFDIR/prefs.conf" + mv $CONFDIR.tmp $CONFDIR/prefs.conf + if [ $? != 0 ]; then echo "error moving $CONFDIR.tmp to $CONFDIR/prefs.conf!"; exit 1; fi +fi; + +case $1 in +-b | --batch) + TCLBIN=`echo ${WISH} | sed s/wish/tclsh/g` + exec ${TCLBIN} $core "$@" + ;; +-c | --closebatch) + TCLBIN=`echo ${WISH} | sed s/wish/tclsh/g` + exec ${TCLBIN} $core "$@" + ;; +-s) + exec ${WISH} $core "--start $@" + ;; +*) + exec ${WISH} $core $@ + ;; +esac + +cd $CORE_START_DIR diff --git a/gui/core.tcl b/gui/core.tcl new file mode 100755 index 00000000..d5110a78 --- /dev/null +++ b/gui/core.tcl @@ -0,0 +1,280 @@ +# +# Copyright 2005-2013 the Boeing Company. +# See the LICENSE file included in this distribution. +# + +# +# Copyright 2004-2008 University of Zagreb, Croatia. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# +# THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. +# +# This work was supported in part by Croatian Ministry of Science +# and Technology through the research contract #IP-2003-143. +# + +#****h* imunes/imunes.tcl +# NAME +# imunes.tcl +# FUNCTION +# Starts imunes in batch or interactive mode. Include procedures from +# external files and initializes global variables. +# +# imunes [-b|--batch] [filename] +# +# When starting the program in batch mode the option -b or --batch must +# be specified. +# +# When starting the program with defined filename, configuration for +# file "filename" is loaded to imunes. +#**** + +if {[lindex $argv 0] == "-b" || [lindex $argv 0] == "--batch"} { + set argv [lrange $argv 1 end] + set execMode batch +} elseif {[lindex $argv 0] == "-c" || [lindex $argv 0] == "--closebatch"} { + set argv [lrange $argv 1 end] + set execMode closebatch +} elseif {[lindex $argv 0] == "-a" || [lindex $argv 0] == "--addons"} { + set argv [lrange $argv 1 end] + set execMode addons +} else { + set execMode interactive +} + +# +# Include procedure definitions from external files. There must be +# some better way to accomplish the same goal, but that's how we do it +# for the moment. +# + +#****v* imunes.tcl/LIBDIR +# NAME +# LIBDIR +# FUNCTION +# The location of imunes library files. The LIBDIR variable +# will be automatically set to the proper value by the installation script. +#***** + +set LIBDIR "" +set SBINDIR "/usr/local/sbin" +set CONFDIR "." +set CORE_DATA_DIR "." +set CORE_STATE_DIR "." +set CORE_START_DIR "" +set CORE_USER "" +if { [info exists env(LIBDIR)] } { + set LIBDIR $env(LIBDIR) +} +if { [info exists env(SBINDIR)] } { + set SBINDIR $env(SBINDIR) +} +if { [info exists env(CONFDIR)] } { + set CONFDIR $env(CONFDIR) +} +if { [info exists env(CORE_DATA_DIR)] } { + set CORE_DATA_DIR $env(CORE_DATA_DIR) +} +if { [info exists env(CORE_STATE_DIR)] } { + set CORE_STATE_DIR $env(CORE_STATE_DIR) +} +if { [info exists env(CORE_START_DIR)] } { + set CORE_START_DIR $env(CORE_START_DIR) +} +if { [info exists env(CORE_USER)] } { + set CORE_USER $env(CORE_USER) +} + +source "$LIBDIR/version.tcl" + +source "$LIBDIR/linkcfg.tcl" +source "$LIBDIR/nodecfg.tcl" +source "$LIBDIR/ipv4.tcl" +source "$LIBDIR/ipv6.tcl" +source "$LIBDIR/cfgparse.tcl" +source "$LIBDIR/exec.tcl" +source "$LIBDIR/canvas.tcl" + +source "$LIBDIR/editor.tcl" +source "$LIBDIR/annotations.tcl" + +source "$LIBDIR/help.tcl" +source "$LIBDIR/filemgmt.tcl" + +source "$LIBDIR/ns2imunes.tcl" + + +source "$LIBDIR/mobility.tcl" +source "$LIBDIR/api.tcl" +source "$LIBDIR/wlan.tcl" +source "$LIBDIR/wlanscript.tcl" +source "$LIBDIR/util.tcl" +source "$LIBDIR/plugins.tcl" +source "$LIBDIR/nodes.tcl" +source "$LIBDIR/services.tcl" +source "$LIBDIR/traffic.tcl" +source "$LIBDIR/exceptions.tcl" + +# +# Global variables are initialized here +# + +#****v* imunes.tcl/node_list +# NAME +# node_list +# FUNCTION +# Represents the list of all the nodes in the simulation. When starting +# the program this list is empty. +#***** + +#****v* imunes.tcl/link_list +# NAME +# link_list +# FUNCTION +# Represents the list of all the links in the simulation. When starting +# the program this list is empty. +#***** + +#****v* imunes.tcl/canvas_list +# NAME +# canvas_list +# FUNCTION +# Contains the list of all the canvases in the simulation. When starting +# the program this list is empty. +#***** + +#****v* imunes.tcl/prefs +# NAME +# prefs +# FUNCTION +# Contains the list of preferences. When starting a program +# this list is empty. +#***** + +#****v* imunes.tcl/eid +# NAME +# eid -- experiment id. +# FUNCTION +# The id of the current experiment. When starting a program this variable +# is set to e0. +#***** + +set node_list {} +set link_list {} +set annotation_list {} +set canvas_list {} +set eid e0 +set plot_list {} + +#****v* core.tcl/exec_servers +# NAME +# exec_servers -- array of CORE remote execution servers +# FUNCTION +#***** + +# IP port monitor_port active ssh username +array set exec_servers {} +loadServersConf ;# populate exec_servers + +# global vars +set showAPI 0 +set mac_byte4 0 +set mac_byte5 0 +set g_mrulist {} +initDefaultPrefs +loadDotFile +loadPluginsConf +autoConnectPlugins + + +# +# Initialization should be complete now, so let's start doing something... +# + +if {$execMode == "interactive"} { + # GUI-related files + source "$LIBDIR/widget.tcl" + source "$LIBDIR/tooltips.tcl" + source "$LIBDIR/initgui.tcl" + source "$LIBDIR/topogen.tcl" + source "$LIBDIR/graph_partitioning.tcl" + source "$LIBDIR/gpgui.tcl" + source "$LIBDIR/debug.tcl" + # Load all Tcl files from the addons directory + foreach file [glob -nocomplain -directory "$LIBDIR/addons" *.tcl] { + if { [catch { if { [file isfile $file ] } { source "$file"; } } e] } { + puts "*** Error loading addon file: $file" + puts " $e" + } + } + # end Boeing + setOperMode edit + fileOpenStartUp + # Boeing --start option + foreach arg $argv { + if { $arg == "--start -s" || $arg == "--start" } { + global currentFile + if { [file extension $currentFile] == ".xml" } { + after 100; update; # yield to other events so XML file + after 100; update; # can be loaded and received + } + startStopButton "exec"; break; + } + } +# Boeing changed elseif to catch batch and else to output error +} elseif {$execMode == "batch"} { + puts "batch execute $argv" + set sock [lindex [getEmulPlugin "*"] 2] + if { $sock == "" || $sock == "-1" || $sock == -1 } { exit.real; } + if {$argv != ""} { + global currentFile + set currentFile [argAbsPathname $argv] + set fileId [open $currentFile r] + set cfg "" + foreach entry [read $fileId] { + lappend cfg $entry + } + close $fileId + after 100 { + loadCfg $cfg + deployCfgAPI $sock + puts "waiting to enter RUNTIME state..." + } + global vwaitdummy + vwait vwaitdummy + } +} elseif {$execMode == "closebatch"} { + global g_session_choice + set g_session_choice $argv + puts "Attempting to close session $argv ..." + global vwaitdummy + vwait vwaitdummy +} elseif {$execMode == "addons"} { + # pass control to included addons code + foreach file [glob -nocomplain -directory "$LIBDIR/addons" *.tcl] { + if { [file isfile $file ] } { source "$file"; } + } + global vwaitdummy + vwait vwaitdummy +} else { + puts "ERROR: execMode is not set in core.tcl" +} + diff --git a/gui/debug.tcl b/gui/debug.tcl new file mode 100644 index 00000000..c1bd0ef1 --- /dev/null +++ b/gui/debug.tcl @@ -0,0 +1,54 @@ +# +# CORE Debugger +# Copyright 2005-2013 the Boeing Company. +# See the LICENSE file included in this distribution. +# +# author: Jeff Ahrenholz +# + +.menubar.tools add command -label "Debugger..." -command popupDebugger + +set g_last_debug_cmd "puts \"Hello world\"" + +proc popupDebugger {} { + global g_last_debug_cmd + + set wi .debugger + catch { destroy $wi } + toplevel $wi + + wm transient $wi . + wm resizable $wi 300 200 + wm title $wi "CORE Debugger" + + frame $wi.dbg -borderwidth 4 + label $wi.dbg.label1 \ + -text "Enter TCL/Tk commands below, press Run to evaluate:" + text $wi.dbg.cmd -bg white -width 100 -height 3 + + pack $wi.dbg.label1 $wi.dbg.cmd -side top -anchor w -padx 4 -pady 4 + pack $wi.dbg -side top + + $wi.dbg.cmd insert end "$g_last_debug_cmd" + + frame $wi.btn + # evaluate debugging commands entered into the text box below + button $wi.btn.exec -text "Run" -command { + global g_last_debug_cmd + set wi .debugger + set i 1 + set g_last_debug_cmd "" + while { 1 } { + set cmd [$wi.dbg.cmd get $i.0 $i.end] + set g_last_debug_cmd "$g_last_debug_cmd$cmd\n" + if { $cmd == "" } { break } + catch { eval $cmd } output + puts $output + incr i + } + } + button $wi.btn.close -text "Close" -command "destroy .debugger" + + pack $wi.btn.exec $wi.btn.close -side left -padx 4 -pady 4 + pack $wi.btn -side bottom +} diff --git a/gui/editor.tcl b/gui/editor.tcl new file mode 100755 index 00000000..9bf28880 --- /dev/null +++ b/gui/editor.tcl @@ -0,0 +1,5149 @@ +# +# Copyright 2005-2013 the Boeing Company. +# See the LICENSE file included in this distribution. +# + +# +# Copyright 2004-2008 University of Zagreb, Croatia. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# +# THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. +# +# This work was supported in part by the Croatian Ministry of Science +# and Technology through the research contract #IP-2003-143. +# + +#****h* imunes/editor.tcl +# NAME +# editor.tcl -- file used for defining functions that can be used in +# edit mode as well as all the functions which change the appearance +# of the imunes GUI. +# FUNCTION +# This module is used for defining all possible actions in imunes +# edit mode. It is also used for all the GUI related actions. +#**** + + +proc animateCursor {} { + global cursorState + global clock_seconds + + if { [clock seconds] == $clock_seconds } { + update + return + } + set clock_seconds [clock seconds] + if { $cursorState } { + .c config -cursor watch + set cursorState 0 + } else { + .c config -cursor pirate + set cursorState 1 + } + update +} + +#****f* editor.tcl/removeGUILink +# NAME +# removeGUILink -- remove link from GUI +# SYNOPSIS +# renoveGUILink $link_id $atomic +# FUNCTION +# Removes link from GUI. It removes standard links as well as +# split links and links connecting nodes on different canvases. +# INPUTS +# * link_id -- the link id +# * atomic -- defines if the remove was atomic action or a part +# of a composed, non-atomic action (relevant for updating log +# for undo). +#**** + +proc removeGUILink { link atomic } { + global changed + + set nodes [linkPeers $link] + set node1 [lindex $nodes 0] + set node2 [lindex $nodes 1] + if { [nodeType $node1] == "pseudo" } { + removeLink [getLinkMirror $link] + removeLink $link + removeNode [getNodeMirror $node1] + removeNode $node1 + .c delete $node1 + } elseif { [nodeType $node2] == "pseudo" } { + removeLink [getLinkMirror $link] + removeLink $link + removeNode [getNodeMirror $node2] + removeNode $node2 + .c delete $node2 + } else { + removeLink $link + } + .c delete $link + if { $atomic == "atomic" } { + set changed 1 + updateUndoLog + } +} + +#****f* editor.tcl/removeGUINode +# NAME +# removeGUINode -- remove node from GUI +# SYNOPSIS +# renoveGUINode $node_id +# FUNCTION +# Removes node from GUI. When removing a node from GUI the links +# connected to that node are also removed. +# INPUTS +# * node_id -- node id +#**** + +proc removeGUINode { node } { + set type [nodeType $node] + foreach ifc [ifcList $node] { + set peer [peerByIfc $node $ifc] + set link [lindex [.c gettags "link && $node && $peer"] 1] + removeGUILink $link non-atomic + } + if { [lsearch -exact "oval rectangle label text marker" $type] != -1 } { + deleteAnnotation .c $type $node + } elseif { $type != "pseudo" } { + removeNode $node + .c delete $node + } +} + +#****f* editor.tcl/updateUndoLog +# NAME +# updateUndoLog -- update the undo log +# SYNOPSIS +# updateUndoLog +# FUNCTION +# Updates the undo log. Writes the current configuration to the +# undolog array and updates the undolevel variable. +#**** + +proc updateUndoLog {} { + global changed undolog undolevel redolevel + + if { $changed } { + global t_undolog undolog + set t_undolog "" + dumpCfg string t_undolog + incr undolevel + set undolog($undolevel) $t_undolog + set redolevel $undolevel + updateUndoRedoMenu "" +# Boeing: XXX why is this set here? + set changed 0 + } +} + +#****f* editor.tcl/undo +# NAME +# undo -- undo function +# SYNOPSIS +# undo +# FUNCTION +# Undo the change. Reads the undolog and updates the current +# configuration. Reduces the value of undolevel. +#**** + +proc undo {} { + global undolevel undolog oper_mode + + if {$oper_mode == "edit" && $undolevel > 0} { + incr undolevel -1 + updateUndoRedoMenu "" + .c config -cursor watch + loadCfg $undolog($undolevel) + switchCanvas none + } +} + +#****f* editor.tcl/redo +# NAME +# redo +# SYNOPSIS +# redo +# FUNCTION +# Redo the change if possible (redolevel is greater than +# undolevel). Reads the configuration from undolog and +# updates the current configuration. Increases the value +# of undolevel. +#**** + +proc redo {} { + global undolevel redolevel undolog oper_mode + + if {$oper_mode == "edit" && $redolevel > $undolevel} { + incr undolevel + updateUndoRedoMenu "" + .c config -cursor watch + loadCfg $undolog($undolevel) + switchCanvas none + } +} + +proc updateUndoRedoMenu { forced } { + global undolevel redolevel + + if { $forced == "" } { + if { $undolevel > 0 } { set undo "normal" } else { set undo "disabled" } + if { $redolevel > $undolevel } { set redo "normal" + } else { set redo "disabled" } + } else { + set undo $forced + set redo $forced + } + + .menubar.edit entryconfigure "Undo" -state $undo + .menubar.edit entryconfigure "Redo" -state $redo +} + +#****f* editor.tcl/redrawAll +# NAME +# redrawAll +# SYNOPSIS +# redrawAll +# FUNCTION +# Redraws all the objects on the current canvas. +#**** + + +proc redrawAll {} { + global node_list plot_list link_list annotation_list plot_list background sizex sizey grid + global curcanvas zoom + global showAnnotations showGrid + + #Call_Trace ;# debugging when things disappear + + .bottom.zoom config -text "zoom [expr {int($zoom * 100)}]%" + set e_sizex [expr {int($sizex * $zoom)}] + set e_sizey [expr {int($sizey * $zoom)}] + set border 28 + .c configure -scrollregion \ + "-$border -$border [expr {$e_sizex + $border}] \ + [expr {$e_sizey + $border}]" + + + saveRestoreWlanLinks .c save + .c delete all + set background [.c create rectangle 0 0 $e_sizex $e_sizey \ + -fill white -tags "background"] + # Boeing: wallpaper + set wallpaper [lindex [getCanvasWallpaper $curcanvas] 0] + set wallpaperStyle [lindex [getCanvasWallpaper $curcanvas] 1] + if { $wallpaper != "" } { + drawWallpaper .c $wallpaper $wallpaperStyle + } + # end Boeing + + if { $showAnnotations == 1 } { + foreach obj $annotation_list { + # fix annotations having no canvas (from old config) + if { [getNodeCanvas $obj] == "" } { setNodeCanvas $obj $curcanvas} + if { [getNodeCanvas $obj] == $curcanvas } { + drawAnnotation $obj + } + } + } + + # Grid + set e_grid [expr {int($grid * $zoom)}] + set e_grid2 [expr {$e_grid * 2}] + if { $showGrid } { + for { set x $e_grid } { $x < $e_sizex } { incr x $e_grid } { + if { [expr {$x % $e_grid2}] != 0 } { + if { $zoom > 0.5 } { + .c create line $x 1 $x $e_sizey \ + -fill gray -dash {1 7} -tags "grid" + } + } else { + .c create line $x 1 $x $e_sizey -fill gray -dash {1 3} \ + -tags "grid" + } + } + for { set y $e_grid } { $y < $e_sizey } { incr y $e_grid } { + if { [expr {$y % $e_grid2}] != 0 } { + if { $zoom > 0.5 } { + .c create line 1 $y $e_sizex $y \ + -fill gray -dash {1 7} -tags "grid" + } + } else { + .c create line 1 $y $e_sizex $y -fill gray -dash {1 3} \ + -tags "grid" + } + } + } + + .c lower -withtags background + + foreach node $node_list { + if { [getNodeCanvas $node] == $curcanvas } { + drawNode .c $node + } + } + + redrawAllThruplots + foreach link $link_list { + set nodes [linkPeers $link] + if { [getNodeCanvas [lindex $nodes 0]] != $curcanvas || + [getNodeCanvas [lindex $nodes 1]] != $curcanvas } { + continue + } + drawLink $link + redrawLink $link + updateLinkLabel $link + } + saveRestoreWlanLinks .c restore + + .c config -cursor left_ptr + + raiseAll .c +} + +#****f* editor.tcl/drawNode +# NAME +# drawNode +# SYNOPSIS +# drawNode node_id +# FUNCTION +# Draws the specified node. Draws node's image (router pc +# host lanswitch rj45 hub pseudo) and label. +# The visibility of the label depends on the showNodeLabels +# variable for all types of nodes and on invisible variable +# for pseudo nodes. +# INPUTS +# * node_id -- node id +#**** + +proc drawNode { c node } { + global showNodeLabels + global router pc host lanswitch rj45 hub pseudo + global curcanvas zoom + global wlan + if { $c == "" } { set c .c } ;# default canvas + + set type [nodeType $node] + set coords [getNodeCoords $node] + set x [expr {[lindex $coords 0] * $zoom}] + set y [expr {[lindex $coords 1] * $zoom}] + # special handling for custom images, dummy nodes + # could move this to separate getImage function + set model "" + set cimg "" + set imgzoom $zoom + if { $zoom == 0.75 || $zoom == 1.5 } { set imgzoom 1.0 } + if { $type == "router" } { + set model [getNodeModel $node] + set cimg [getNodeTypeImage $model normal] + } + set tmp [absPathname [getCustomImage $node]] + if { $tmp != "" } { set cimg $tmp } + if { $cimg != "" } { + # name of global variable storing the image is the filename without path + set img [file tail $cimg] + # create the variable if the image hasn't been loaded before + global [set img] + if { ![info exists $img] } { + if { [catch { + set [set img] [image create photo -file $cimg] + createScaledImages $img + } e ] } { ;# problem loading image file + puts "icon error: $e" + set cimg "" ;# fall back to default model icon + setCustomImage $node "" ;# prevent errors elsewhere + } + } + if { $cimg != "" } { ;# only if image file loaded + global $img$imgzoom + $c create image $x $y -image [set $img$imgzoom] -tags "node $node" + } + } + if { $cimg == "" } { + if { $type == "pseudo" } { + $c create image $x $y -image [set $type] -tags "node $node" + } else { + # create scaled images based on zoom level + global $type$imgzoom + $c create image $x $y -image [set $type$imgzoom] \ + -tags "node $node" + } + } + set coords [getNodeLabelCoords $node] + set x [expr {[lindex $coords 0] * $zoom}] + set y [expr {[lindex $coords 1] * $zoom}] + if { [nodeType $node] != "pseudo" } { ;# Boeing: show remote server + set loc [getNodeLocation $node] + set labelstr0 "" + if { $loc != "" } { set labelstr0 "([getNodeLocation $node]):" } + set labelstr1 [getNodeName $node]; + set labelstr2 "" + if [info exists getNodePartition] { [getNodePartition $node]; } + set l [format "%s%s\n%s" $labelstr0 $labelstr1 $labelstr2]; + set label [$c create text $x $y -fill blue \ + -text "$l" \ + -tags "nodelabel $node"] + } else { + set pnode [getNodeName $node] + set pcanvas [getNodeCanvas $pnode] + set ifc [ifcByPeer $pnode [getNodeMirror $node]] + if { $pcanvas != $curcanvas } { + set label [$c create text $x $y -fill blue \ + -text "[getNodeName $pnode]:$ifc @[getCanvasName $pcanvas]" \ + -tags "nodelabel $node" -justify center] + } else { + set label [$c create text $x $y -fill blue \ + -text "[getNodeName $pnode]:$ifc" \ + -tags "nodelabel $node" -justify center] + } + } + if { $showNodeLabels == 0} { + $c itemconfigure $label -state hidden + } + global invisible + if { $invisible == 1 && [nodeType $node] == "pseudo" } { + $c itemconfigure $label -state hidden + } +} + +#****f* editor.tcl/drawLink +# NAME +# drawLink +# SYNOPSIS +# drawLink link_id +# FUNCTION +# Draws the specified link. An arrow is displayed for links +# connected to pseudo nodes. If the variable invisible +# is specified link connecting a pseudo node stays hidden. +# INPUTS +# * link_id -- link id +#**** + +proc drawLink { link } { + set nodes [linkPeers $link] + set lnode1 [lindex $nodes 0] + set lnode2 [lindex $nodes 1] + set lwidth [getLinkWidth $link] + if { [getLinkMirror $link] != "" } { + set newlink [.c create line 0 0 0 0 \ + -fill [getLinkColor $link] -width $lwidth \ + -tags "link $link $lnode1 $lnode2" -arrow both] + } else { + set newlink [.c create line 0 0 0 0 \ + -fill [getLinkColor $link] -width $lwidth \ + -tags "link $link $lnode1 $lnode2"] + } + # Boeing: links between two nodes on different servers + if { [getNodeLocation $lnode1] != [getNodeLocation $lnode2]} { + .c itemconfigure $newlink -dash ","; + } + # end Boeing + # XXX Invisible pseudo-liks + global invisible + if { $invisible == 1 && [getLinkMirror $link] != "" } { + .c itemconfigure $link -state hidden + } + # Boeing: wlan links are hidden + if { [nodeType $lnode1] == "wlan" || [nodeType $lnode2] == "wlan" } { + global zoom + set imgzoom $zoom + if { $zoom == 0.75 || $zoom == 1.5 } { set imgzoom 1.0 } + global antenna$imgzoom + .c itemconfigure $link -state hidden + .c create image 0 0 -image [set antenna$imgzoom] \ + -tags "antenna $lnode2 $link" + .c create text 0 0 -tags "interface $lnode1 $link" -justify center + .c create text 0 0 -tags "interface $lnode2 $link" -justify center + .c raise interface "link || linklabel || background" + } else { + .c raise $newlink background + .c create text 0 0 -tags "linklabel $link" -justify center + .c create text 0 0 -tags "interface $lnode1 $link" -justify center + .c create text 0 0 -tags "interface $lnode2 $link" -justify center + .c raise linklabel "link || background" + .c raise interface "link || linklabel || background" + } + foreach n [list $lnode1 $lnode2] { + if { [getNodeHidden $n] } { + hideNode $n + statline "Hidden node(s) exist." + } + } +} + + +# draw a green link between wireless nodes (or other color if multiple WLANs) +# WLAN links appear on the canvas but not in the global link_list +proc drawWlanLink { node1 node2 wlan } { + global zoom defLinkWidth + set c .c + + set wlanlink [$c find withtag "wlanlink && $node1 && $node2 && $wlan"] + if { $wlanlink != "" } { + return $wlanlink ;# already exists + } + + set color [getWlanColor $wlan] + + set xy [getNodeCoords $node1] + set x [lindex $xy 0]; set y [lindex $xy 1] + set pxy [getNodeCoords $node2] + set px [lindex $pxy 0]; set py [lindex $pxy 1] + + set wlanlink [$c create line [expr {$x*$zoom}] [expr {$y*$zoom}] \ + [expr {$px*$zoom}] [expr {$py*$zoom}] \ + -fill $color -width $defLinkWidth \ + -tags "wlanlink $node1 $node2 $wlan"] + $c raise $wlanlink "background || grid || oval || rectangle" + return $wlanlink +} + + +#****f* editor.tcl/chooseIfName +# NAME +# chooseIfName -- choose interface name +# SYNOPSIS +# set ifcName [chooseIfName $lnode1 $lnode2] +# FUNCTION +# Choose intreface name. The name can be: +# * eth -- for interface connecting pc, host and router +# * e -- for interface connecting hub and lanswitch +# INPUTS +# * link_id -- link id +# RESULT +# * ifcName -- the name of the interface +#**** + +proc chooseIfName { lnode1 lnode2 } { + global $lnode1 $lnode2 + + # TODO: just check if layer == NETWORK and return eth, LINK return e + switch -exact -- [nodeType $lnode1] { + pc { + return eth + } + host { + return eth + } + hub { + return e + } + lanswitch { + return e + } + router { + return eth + } + rj45 { + return + } + tunnel { + return e + } + ktunnel { + return + } + wlan { + return e + } + default { + return eth +# end Boeing: below + } + } +} + + +#****f* editor.tcl/listLANNodes +# NAME +# listLANNodes -- list LAN nodes +# SYNOPSIS +# set l2peers [listLANNodes $l2node $l2peers] +# FUNCTION +# Recursive function for finding all link layer nodes that are +# connected to node l2node. Returns the list of all link layer +# nodes that are on the same LAN as l2node. +# INPUTS +# * l2node -- node id of a link layer node +# * l2peers -- old link layer nodes on the same LAN +# RESULT +# * l2peers -- new link layer nodes on the same LAN +#**** + +proc listLANnodes { l2node l2peers } { + lappend l2peers $l2node + foreach ifc [ifcList $l2node] { + set peer [logicalPeerByIfc $l2node $ifc] + set type [nodeType $peer] + # Boeing + if { [ lsearch {lanswitch hub wlan} $type] != -1 } { + if { [lsearch $l2peers $peer] == -1 } { + set l2peers [listLANnodes $peer $l2peers] + } + } + } + return $l2peers +} + +#****f* editor.tcl/calcDxDy +# NAME +# calcDxDy lnode -- list LAN nodes +# SYNOPSIS +# calcDxDy $lnode +# FUNCTION +# Calculates dx and dy variables of the calling function. +# INPUTS +# * lnode -- node id of a node whose dx and dy coordinates are +# calculated +#**** + +proc calcDxDy { lnode } { + global showIfIPaddrs showIfIPv6addrs zoom + upvar dx x + upvar dy y + + if { $zoom > 1.0 } { + set x 1 + set y 1 + return + } + switch -exact -- [nodeType $lnode] { + hub { + set x [expr {1.5 / $zoom}] + set y [expr {2.6 / $zoom}] + } + lanswitch { + set x [expr {1.5 / $zoom}] + set y [expr {2.6 / $zoom}] + } + router { + set x [expr {1 / $zoom}] + set y [expr {2 / $zoom}] + } + rj45 { + set x [expr {1 / $zoom}] + set y [expr {1 / $zoom}] + } + tunnel { + set x [expr {1 / $zoom}] + set y [expr {1 / $zoom}] + } + wlan { + set x [expr {1.5 / $zoom}] + set y [expr {2.6 / $zoom}] + } + default { + set x [expr {1 / $zoom}] + set y [expr {2 / $zoom}] + } + } + return +} + +#****f* editor.tcl/updateIfcLabel +# NAME +# updateIfcLabel -- update interface label +# SYNOPSIS +# updateIfcLabel $lnode1 $lnode2 +# FUNCTION +# Updates the interface label, including interface name, +# interface state (* for interfaces that are down), IPv4 +# address and IPv6 address. +# INPUTS +# * lnode1 -- node id of a node where the interface resides +# * lnode2 -- node id of the node that is connected by this +# interface. +#**** +proc updateIfcLabel { lnode1 lnode2 } { + global showIfNames showIfIPaddrs showIfIPv6addrs + + set link [lindex [.c gettags "link && $lnode1 && $lnode2"] 1] + set ifc [ifcByPeer $lnode1 $lnode2] + set ifipv4addr [getIfcIPv4addr $lnode1 $ifc] + set ifipv6addr [getIfcIPv6addr $lnode1 $ifc] + if { $ifc == 0 } { + set ifc "" + } + if { [getIfcOperState $lnode1 $ifc] == "down" } { + set labelstr "*" + } else { + set labelstr "" + } + if { $showIfNames } { + set labelstr "$labelstr$ifc " + } + if { $showIfIPaddrs && $ifipv4addr != "" } { + set labelstr "$labelstr$ifipv4addr " + } + if { $showIfIPv6addrs && $ifipv6addr != "" } { + set labelstr "$labelstr$ifipv6addr " + } + set labelstr \ + [string range $labelstr 0 [expr {[string length $labelstr] - 2}]] + .c itemconfigure "interface && $lnode1 && $link" \ + -text "$labelstr" + # Boeing: hide ifc label on wlans + if { [nodeType $lnode1] == "wlan" } { + .c itemconfigure "interface && $lnode1 && $link" -state hidden + } +} + + +#****f* editor.tcl/updateLinkLabel +# NAME +# updateLinkLabel -- update link label +# SYNOPSIS +# updateLinkLabel $link +# FUNCTION +# Updates the link label, including link bandwidth, link delay, +# BER and duplicate values. +# INPUTS +# * link -- link id of the link whose labels are updated. +#**** +proc updateLinkLabel { link } { + global showLinkLabels + + set labelstr "" + set delstr [getLinkDelayString $link] + set ber [getLinkBER $link] + set dup [getLinkDup $link] + set labelstr "$labelstr[getLinkBandwidthString $link] " + if { "$delstr" != "" } { + set labelstr "$labelstr$delstr " + } + if { "$ber" != "" } { + set berstr "loss=$ber%" + set labelstr "$labelstr$berstr " + } + if { "$dup" != "" } { + set dupstr "dup=$dup%" + set labelstr "$labelstr$dupstr " + } + set labelstr \ + [string range $labelstr 0 [expr {[string length $labelstr] - 2}]] + .c itemconfigure "linklabel && $link" -text "$labelstr" + if { $showLinkLabels == 0} { + .c itemconfigure "linklabel && $link" -state hidden + } +} + + +#****f* editor.tcl/redrawAllLinks +# NAME +# redrawAllLinks -- redraw all links +# SYNOPSIS +# redrawAllLinks +# FUNCTION +# Redraws all links on the current canvas. +#**** +proc redrawAllLinks {} { + global link_list curcanvas + + foreach link $link_list { + set nodes [linkPeers $link] + if { [getNodeCanvas [lindex $nodes 0]] != $curcanvas || + [getNodeCanvas [lindex $nodes 1]] != $curcanvas } { + continue + } + redrawLink $link + } +} + + +#****f* editor.tcl/redrawLink +# NAME +# redrawLink -- redraw a links +# SYNOPSIS +# redrawLink $link +# FUNCTION +# Redraws the specified link. +# INPUTS +# * link -- link id +#**** +proc redrawLink { link } { + global $link + + set limages [.c find withtag "link && $link"] + set limage1 [lindex $limages 0] + set limage2 [lindex $limages 1] + set tags [.c gettags $limage1] + set link [lindex $tags 1] + set lnode1 [lindex $tags 2] + set lnode2 [lindex $tags 3] + + set coords1 [.c coords "node && $lnode1"] + set coords2 [.c coords "node && $lnode2"] + set x1 [lindex $coords1 0] + set y1 [lindex $coords1 1] + set x2 [lindex $coords2 0] + set y2 [lindex $coords2 1] + + .c coords $limage1 $x1 $y1 $x2 $y2 + .c coords $limage2 $x1 $y1 $x2 $y2 + + set lx [expr {0.5 * ($x1 + $x2)}] + set ly [expr {0.5 * ($y1 + $y2)}] + .c coords "linklabel && $link" $lx $ly + + set n [expr {sqrt (($x1 - $x2) * ($x1 - $x2) + \ + ($y1 - $y2) * ($y1 - $y2)) * 0.015}] + if { $n < 1 } { + set n 1 + } + + calcDxDy $lnode1 + set lx [expr {($x1 * ($n * $dx - 1) + $x2) / $n / $dx}] + set ly [expr {($y1 * ($n * $dy - 1) + $y2) / $n / $dy}] + .c coords "interface && $lnode1 && $link" $lx $ly + updateIfcLabel $lnode1 $lnode2 + + calcDxDy $lnode2 + set lx [expr {($x1 + $x2 * ($n * $dx - 1)) / $n / $dx}] + set ly [expr {($y1 + $y2 * ($n * $dy - 1)) / $n / $dy}] + .c coords "interface && $lnode2 && $link" $lx $ly + updateIfcLabel $lnode2 $lnode1 + # Boeing - wlan antennas + if { [nodeType $lnode1] == "wlan" } { + global zoom + set an [lsearch -exact [findWlanNodes $lnode2] $lnode1] + if { $an < 0 || $an >= 5 } { set an 0 } + set dx [expr {20 - (10*$an)}] + .c coords "antenna && $lnode2 && $link" [expr {$x2-($dx*$zoom)}] \ + [expr {$y2-(20*$zoom)}] + } +} + +# Boeing +proc redrawWlanLink { link } { + global $link + + set tags [.c gettags $link] + set lnode1 [lindex $tags 1] + set lnode2 [lindex $tags 2] + set coords1 [.c coords "node && $lnode1"] + set coords2 [.c coords "node && $lnode2"] + set x1 [lindex $coords1 0] + set y1 [lindex $coords1 1] + set x2 [lindex $coords2 0] + set y2 [lindex $coords2 1] + set lx [expr {0.5 * ($x1 + $x2)}] + set ly [expr {0.5 * ($y1 + $y2)}] + + .c coords $link $x1 $y1 $x2 $y2 + .c coords "linklabel && $lnode2 && $lnode1" $lx $ly + + return +} +# end Boeing + +#****f* editor.tcl/splitGUILink +# NAME +# splitGUILink -- splits a links +# SYNOPSIS +# splitGUILink $link +# FUNCTION +# Splits the link and draws new links and new pseudo nodes +# on the canvas. +# INPUTS +# * link -- link id +#**** +proc splitGUILink { link } { + global changed zoom + + set peer_nodes [linkPeers $link] + set new_nodes [splitLink $link pseudo] + set orig_node1 [lindex $peer_nodes 0] + set orig_node2 [lindex $peer_nodes 1] + set new_node1 [lindex $new_nodes 0] + set new_node2 [lindex $new_nodes 1] + set new_link1 [linkByPeers $orig_node1 $new_node1] + set new_link2 [linkByPeers $orig_node2 $new_node2] + setLinkMirror $new_link1 $new_link2 + setLinkMirror $new_link2 $new_link1 + setNodeMirror $new_node1 $new_node2 + setNodeMirror $new_node2 $new_node1 + setNodeName $new_node1 $orig_node2 + setNodeName $new_node2 $orig_node1 + + set x1 [lindex [getNodeCoords $orig_node1] 0] + set y1 [lindex [getNodeCoords $orig_node1] 1] + set x2 [lindex [getNodeCoords $orig_node2] 0] + set y2 [lindex [getNodeCoords $orig_node2] 1] + + setNodeCoords $new_node1 \ + "[expr {($x1 + 0.4 * ($x2 - $x1)) / $zoom}] \ + [expr {($y1 + 0.4 * ($y2 - $y1)) / $zoom}]" + setNodeCoords $new_node2 \ + "[expr {($x1 + 0.6 * ($x2 - $x1)) / $zoom}] \ + [expr {($y1 + 0.6 * ($y2 - $y1)) / $zoom}]" + setNodeLabelCoords $new_node1 [getNodeCoords $new_node1] + setNodeLabelCoords $new_node2 [getNodeCoords $new_node2] + + set changed 1 + updateUndoLog + redrawAll +} + + +#****f* editor.tcl/selectNode +# NAME +# selectNode -- select node +# SYNOPSIS +# selectNode $c $obj +# FUNCTION +# Crates the selecting box around the specified canvas +# object. +# INPUTS +# * c -- tk canvas +# * obj -- tk canvas object tag id +#**** +proc selectNode { c obj } { + set node [lindex [$c gettags $obj] 1] + if { $node == "" } { return } ;# Boeing: fix occassional error + $c addtag selected withtag "node && $node" + if { [nodeType $node] == "pseudo" } { + set bbox [$c bbox "nodelabel && $node"] + } elseif { [nodeType $node] == "rectangle" } { + $c addtag selected withtag "rectangle && $node" + set bbox [$c bbox "rectangle && $node"] + } elseif { [nodeType $node] == "text" } { + $c addtag selected withtag "text && $node" + set bbox [$c bbox "text && $node"] + } elseif { [nodeType $node] == "oval" } { + $c addtag selected withtag "oval && $node" + set bbox [$c bbox "oval && $node"] + } else { + set bbox [$c bbox "node && $node"] + } + set bx1 [expr {[lindex $bbox 0] - 2}] + set by1 [expr {[lindex $bbox 1] - 2}] + set bx2 [expr {[lindex $bbox 2] + 1}] + set by2 [expr {[lindex $bbox 3] + 1}] + $c delete -withtags "selectmark && $node" + $c create line $bx1 $by1 $bx2 $by1 $bx2 $by2 $bx1 $by2 $bx1 $by1 \ + -dash {6 4} -fill black -width 1 -tags "selectmark $node" +} + +proc selectNodes { nodelist } { + foreach node $nodelist { + selectNode .c [.c find withtag "node && $node"] + } +} + +proc selectedNodes {} { + set selected {} + foreach obj [.c find withtag "node && selected"] { + lappend selected [lindex [.c gettags $obj] 1] + } + foreach obj [.c find withtag "oval && selected"] { + lappend selected [lindex [.c gettags $obj] 1] + } + foreach obj [.c find withtag "rectangle && selected"] { + lappend selected [lindex [.c gettags $obj] 1] + } + foreach obj [.c find withtag "text && selected"] { + lappend selected [lindex [.c gettags $obj] 1] + } + return $selected +} + +proc selectedRealNodes {} { + set selected {} + foreach obj [.c find withtag "node && selected"] { + set node [lindex [.c gettags $obj] 1] + if { [getNodeMirror $node] != "" || + [nodeType $node] == "rj45" } { + continue + } + lappend selected $node + } + return $selected +} + +proc selectAdjacent {} { + global curcanvas + + set selected [selectedNodes] + set adjacent {} + foreach node $selected { + foreach ifc [ifcList $node] { + set peer [peerByIfc $node $ifc] + if { [getNodeMirror $peer] != "" } { + return + } + if { [lsearch $adjacent $peer] < 0 } { + lappend adjacent $peer + } + } + } + selectNodes $adjacent +} + +#****f* editor.tcl/button3link +# NAME +# button3link +# SYNOPSIS +# button3link $c $x $y +# FUNCTION +# This procedure is called when a right mouse button is +# clicked on the canvas. If there is a link on the place of +# mouse click this procedure creates and configures a popup +# menu. The options in the menu are: +# * Configure -- configure the link +# * Delete -- delete the link +# * Split -- split the link +# * Merge -- this option is active only if the link is previously +# been split, by this action the link is merged. +# INPUTS +# * c -- tk canvas +# * x -- x coordinate for popup menu +# * y -- y coordinate for popup menu +#**** +proc button3link { c x y } { + global oper_mode env eid canvas_list node_list + global curcanvas + + set link [lindex [$c gettags {link && current}] 1] + if { $link == "" } { + set link [lindex [$c gettags {linklabel && current}] 1] + if { $link == "" } { + return + } + } + + .button3menu delete 0 end + + # + # Configure link + # + .button3menu add command -label "Configure" \ + -command "popupConfigDialog $c" + + # + # Delete link + # + if { $oper_mode != "exec" } { + .button3menu add command -label "Delete" \ + -command "removeGUILink $link atomic" + } else { + .button3menu add command -label "Delete" \ + -state disabled + } + + # + # Split link + # + if { $oper_mode != "exec" && [getLinkMirror $link] == "" } { + .button3menu add command -label "Split" \ + -command "splitGUILink $link" + } else { + .button3menu add command -label "Split" \ + -state disabled + } + + # + # Merge two pseudo nodes / links + # + if { $oper_mode != "exec" && [getLinkMirror $link] != "" && + [getNodeCanvas [getNodeMirror [lindex [linkPeers $link] 1]]] == + $curcanvas } { + .button3menu add command -label "Merge" \ + -command "mergeGUINode [lindex [linkPeers $link] 1]" + } else { + .button3menu add command -label "Merge" -state disabled + } + + set x [winfo pointerx .] + set y [winfo pointery .] + tk_popup .button3menu $x $y +} + + +#****f* editor.tcl/movetoCanvas +# NAME +# movetoCanvas -- move to canvas +# SYNOPSIS +# movetoCanvas $canvas +# FUNCTION +# This procedure moves all the nodes selected in the GUI to +# the specified canvas. +# INPUTS +# * canvas -- canvas id. +#**** +proc movetoCanvas { canvas } { + global changed + + set selected_nodes [selectedNodes] + foreach node $selected_nodes { + setNodeCanvas $node $canvas + set changed 1 + } + foreach obj [.c find withtag "linklabel"] { + set link [lindex [.c gettags $obj] 1] + set link_peers [linkPeers $link] + set peer1 [lindex $link_peers 0] + set peer2 [lindex $link_peers 1] + set peer1_in_selected [lsearch $selected_nodes $peer1] + set peer2_in_selected [lsearch $selected_nodes $peer2] + if { ($peer1_in_selected == -1 && $peer2_in_selected != -1) || + ($peer1_in_selected != -1 && $peer2_in_selected == -1) } { + if { [nodeType $peer2] == "pseudo" } { + setNodeCanvas $peer2 $canvas + if { [getNodeCanvas [getNodeMirror $peer2]] == $canvas } { + mergeLink $link + } + continue + } + set new_nodes [splitLink $link pseudo] + set new_node1 [lindex $new_nodes 0] + set new_node2 [lindex $new_nodes 1] + setNodeMirror $new_node1 $new_node2 + setNodeMirror $new_node2 $new_node1 + setNodeName $new_node1 $peer2 + setNodeName $new_node2 $peer1 + set link1 [linkByPeers $peer1 $new_node1] + set link2 [linkByPeers $peer2 $new_node2] + setLinkMirror $link1 $link2 + setLinkMirror $link2 $link1 + } + } + updateUndoLog + redrawAll +} + + +#****f* editor.tcl/mergeGUINode +# NAME +# mergeGUINode -- merge GUI node +# SYNOPSIS +# mergeGUINode $node +# FUNCTION +# This procedure removes the specified pseudo node as well +# as it's mirror copy. Also this procedure removes the +# pseudo links and reestablish the original link between +# the non-pseudo nodes. +# INPUTS +# * node -- node id of a pseudo node. +#**** +proc mergeGUINode { node } { + set link [lindex [linkByIfc $node [ifcList $node]] 0] + mergeLink $link + redrawAll +} + + +#****f* editor.tcl/button3node +# NAME +# button3node +# SYNOPSIS +# button3node $c $x $y +# FUNCTION +# This procedure is called when a right mouse button is +# clicked on the canvas. Also called when double-clicking +# on a node during runtime. +# If there is a node on the place of +# mouse click this procedure creates and configures a popup +# menu. The options in the menu are: +# * Configure -- configure the node +# * Create link to -- create a link to any available node, +# it can be on the same canvas or on a different canvas. +# * Move to -- move to some other canvas +# * Merge -- this option is available only for pseudo nodes +# that have mirror nodes on the same canvas (Pseudo nodes +# created by splitting a link). +# * Delete -- delete the node +# * Shell window -- specifies the shell window to open in +# exec mode. This option is available only to nodes on a +# network layer +# * Ethereal -- opens a Ethereal program for the specified +# node and the specified interface. This option is available +# only for network layer nodes in exec mode. +# INPUTS +# * c -- tk canvas +# * x -- x coordinate for popup menu +# * y -- y coordinate for popup menu +#**** +#old proc button3node { c x y } +#Boeing +proc button3node { c x y button } { + global oper_mode env eid canvas_list node_list curcanvas systype g_prefs + + set node [lindex [$c gettags {node && current}] 1] + if { $node == "" } { + set node [lindex [$c gettags {nodelabel && current}] 1] + if { $node == "" } { + return + } + } + set mirror_node [getNodeMirror $node] + + if { [$c gettags "node && $node && selected"] == "" } { + $c dtag node selected + $c delete -withtags selectmark + selectNode $c [$c find withtag "current"] + } + + # open up shells upon double-click or shift/ctrl-click + set shell $g_prefs(shell) + if { $button == "shift" || $button == "ctrl" } { + if { [nodeType $node] == "pseudo" } { + # + # Hyperlink to another canvas + # + set curcanvas [getNodeCanvas [getNodeMirror $node]] + switchCanvas none + return + } + # only open bash shells for NETWORK nodes and remote routers + if { [[typemodel $node].layer] != "NETWORK" } { + if { [typemodel $node] == "wlan" } { + wlanDoubleClick $node $button + } + return + } + if { $button == "shift" } { ;# normal bash shell + spawnShell $node $shell + } else { ;# right-click vtysh shell + set cmd [[typemodel $node].shellcmd $node] + if { $cmd != "/bin/sh" && $cmd != "" } { spawnShell $node $cmd } + } + return ;# open shell, don't post a menu + } + + # + # below here we build and post a menu + # + .button3menu delete 0 end + + # + # Configure node + # + if { [nodeType $node] != "pseudo" } { + .button3menu add command -label "Configure" \ + -command "popupConfigDialog $c" + } else { + .button3menu add command -label "Configure" \ + -command "popupConfigDialog $c" -state disabled + } + + # + # Select adjacent + # + if { [nodeType $node] != "pseudo" } { + .button3menu add command -label "Select adjacent" \ + -command "selectAdjacent" + } else { + .button3menu add command -label "Select adjacent" \ + -command "selectAdjacent" -state disabled + } + + # + # Create a new link - can be between different canvases + # + .button3menu.connect delete 0 end + if { $oper_mode == "exec" || [nodeType $node] == "pseudo" } { + #.button3menu add cascade -label "Create link to" \ + -menu .button3menu.connect -state disabled + } else { + .button3menu add cascade -label "Create link to" \ + -menu .button3menu.connect + } + destroy .button3menu.connect.selected + menu .button3menu.connect.selected -tearoff 0 + .button3menu.connect add cascade -label "Selected" \ + -menu .button3menu.connect.selected + .button3menu.connect.selected add command \ + -label "Chain" -command "P \[selectedRealNodes\]" + .button3menu.connect.selected add command \ + -label "Star" \ + -command "Kb \[lindex \[selectedRealNodes\] 0\] \ + \[lrange \[selectedNodes\] 1 end\]" + .button3menu.connect.selected add command \ + -label "Cycle" -command "C \[selectedRealNodes\]" + .button3menu.connect.selected add command \ + -label "Clique" -command "K \[selectedRealNodes\]" + .button3menu.connect add separator + foreach canvas $canvas_list { + destroy .button3menu.connect.$canvas + menu .button3menu.connect.$canvas -tearoff 0 + .button3menu.connect add cascade -label [getCanvasName $canvas] \ + -menu .button3menu.connect.$canvas + } + foreach peer_node $node_list { + set canvas [getNodeCanvas $peer_node] + if { $node != $peer_node && [nodeType $node] != "rj45" && + [lsearch {pseudo rj45} [nodeType $peer_node]] < 0 && + [ifcByLogicalPeer $node $peer_node] == "" } { + .button3menu.connect.$canvas add command \ + -label [getNodeName $peer_node] \ + -command "newGUILink $node $peer_node" + } elseif { [nodeType $peer_node] != "pseudo" } { + .button3menu.connect.$canvas add command \ + -label [getNodeName $peer_node] \ + -state disabled + } + } + # + # assign to emulation server + # + if { $oper_mode != "exec" } { + global exec_servers node_location + .button3menu.assign delete 0 end + .button3menu add cascade -label "Assign to" -menu .button3menu.assign + .button3menu.assign add command -label "(none)" \ + -command "assignSelection \"\"" + foreach server [lsort -dictionary [array names exec_servers]] { + .button3menu.assign add command -label "$server" \ + -command "assignSelection $server" + } + } + + # + # wlan link to all nodes + # + if { [nodeType $node] == "wlan" } { + .button3menu add command -label "Link to all routers" \ + -command "linkAllNodes $node" + set msg "Select new WLAN $node members:" + set cmd "linkSelectedNodes $node" + .button3menu add command -label "Select WLAN members..." \ + -command "popupSelectNodes \"$msg\" \"\" {$cmd}" + set state normal + if { $oper_mode != "exec" } { set state disabled } + .button3menu add command -label "Mobility script..." \ + -command "showMobilityScriptPopup $node" -state $state + } + + # + # Move to another canvas + # + .button3menu.moveto delete 0 end + if { $oper_mode != "exec" && [nodeType $node] != "pseudo" } { + .button3menu add cascade -label "Move to" \ + -menu .button3menu.moveto + .button3menu.moveto add command -label "Canvas:" -state disabled + foreach canvas $canvas_list { + if { $canvas != $curcanvas } { + .button3menu.moveto add command \ + -label [getCanvasName $canvas] \ + -command "movetoCanvas $canvas" + } else { + .button3menu.moveto add command \ + -label [getCanvasName $canvas] -state disabled + } + } + } + + # + # Merge two pseudo nodes / links + # + if { $oper_mode != "exec" && [nodeType $node] == "pseudo" && \ + [getNodeCanvas $mirror_node] == $curcanvas } { + .button3menu add command -label "Merge" \ + -command "mergeGUINode $node" + } + + # + # Delete selection + # + if { $oper_mode != "exec" } { + .button3menu add command -label "Cut" -command cutSelection + .button3menu add command -label "Copy" -command copySelection + .button3menu add command -label "Paste" -command pasteSelection + .button3menu add command -label "Delete" -command deleteSelection + } + + .button3menu add command -label "Hide" -command "hideSelected" + + # Boeing: flag used below + set execstate disabled + if { $oper_mode == "exec" } { set execstate normal } + + # + # Shell selection + # + .button3menu.shell delete 0 end + if { $oper_mode == "exec" && [[typemodel $node].layer] == "NETWORK" } { + .button3menu add cascade -label "Shell window" \ + -menu .button3menu.shell + set cmd [[typemodel $node].shellcmd $node] + if { $cmd != "/bin/sh" && $cmd != "" } { ;# typically adds vtysh + .button3menu.shell add command -label "$cmd" \ + -command "spawnShell $node $cmd" + } + .button3menu.shell add command -label "/bin/sh" \ + -command "spawnShell $node sh" + .button3menu.shell add command -label "$shell" \ + -command "spawnShell $node $shell" + } + + # + # services + # + .button3menu.services delete 0 end + if { $oper_mode == "exec" && [[typemodel $node].layer] == "NETWORK" } { + addServicesRightClickMenu .button3menu $node + } else { + .button3menu add command -label "Services..." -command \ + "sendConfRequestMessage -1 $node services 0x1 -1 \"\"" + } + + # + # Tcpdump, gpsd + # + if { $oper_mode == "exec" && [[typemodel $node].layer] == "NETWORK" } { + addInterfaceCommand $node .button3menu "Tcpdump" "tcpdump -n -l -i" \ + $execstate 1 + addInterfaceCommand $node .button3menu "TShark" "tshark -n -l -i" \ + $execstate 1 + addInterfaceCommand $node .button3menu "Wireshark" "wireshark -k -i" \ + $execstate 0 + # wireshark on host veth pair -- need veth pair name + #wireshark -k -i + if { [lindex $systype 0] == "Linux" } { + set name [getNodeName $node] + .button3menu add command -label "View log..." -state $execstate \ + -command "spawnShell $node \"less ../$name.log\"" + } + } + + # + # Finally post the popup menu on current pointer position + # + set x [winfo pointerx .] + set y [winfo pointery .] + + tk_popup .button3menu $x $y +} + + +#****f* editor.tcl/spawnShell +# NAME +# spawnShell -- spawn shell +# SYNOPSIS +# spawnShell $node $cmd +# FUNCTION +# This procedure spawns a new shell for a specified node. +# The shell is specified in cmd parameter. +# INPUTS +# * node -- node id of the node for which the shell +# is spawned. +# * cmd -- the path to the shell. +#**** +proc spawnShell { node cmd } { + # request an interactive terminal + set sock [lindex [getEmulPlugin $node] 2] + set flags 0x44 ;# set TTY, critical flags + set exec_num [newExecCallbackRequest shell] + sendExecMessage $sock $node $cmd $exec_num $flags +} + +# add a sub-menu to the parentmenu with the given command for each interface +proc addInterfaceCommand { node parentmenu txt cmd state isnodecmd } { + global g_current_session + set childmenu "$parentmenu.[lindex $cmd 0]" + $childmenu delete 0 end + $parentmenu add cascade -label $txt -menu $childmenu -state $state + if { ! $isnodecmd } { + if { $g_current_session == 0 } { set state disabled } + set ssid [shortSessionID $g_current_session] + } + foreach ifc [ifcList $node] { + set addr [lindex [getIfcIPv4addr $node $ifc] 0] + if { $addr != "" } { set addr " ($addr)" } + if { $isnodecmd } { ;# run command in a node + set icmd "spawnShell $node \"$cmd $ifc\"" + } else { ;# exec a command directly + set localifc $node.$ifc.$ssid + set icmd "exec $cmd $localifc &" + } + $childmenu add command -label "$ifc$addr" -state $state -command $icmd + } +} + +# Boeing: consolodate various raise statements here +proc raiseAll {c} { + $c raise rectangle background + $c raise oval "rectangle || background" + $c raise grid "oval || rectangle || background" + $c raise link "grid || oval || rectangle || background" + $c raise linklabel "link || grid || oval || rectangle || background" + $c raise newlink "linklabel || link || grid || oval || rectangle || background" + $c raise wlanlink "newlink || linklabel || link || grid || oval || rectangle || background" + $c raise antenna "wlanlink || newlink || linklabel || link || grid || oval || rectangle || background" + $c raise interface "antenna || wlanlink || newlink || linklabel || link || grid || oval || rectangle || background" + $c raise node "interface || antenna || wlanlink || newlink || linklabel || link || grid || oval || rectangle || background" + $c raise nodelabel "node || interface || antenna || wlanlink || newlink || linklabel || link || grid || oval || rectangle || background" + $c raise text "nodelabel || node || interface || antenna || wlanlink || newlink || linklabel || link || grid || oval || rectangle || background" + $c raise -cursor +} +# end Boeing + + +#****f* editor.tcl/button1 +# NAME +# button1 +# SYNOPSIS +# button1 $c $x $y $button +# FUNCTION +# This procedure is called when a left mouse button is +# clicked on the canvas. This procedure selects a new +# node or creates a new node, depending on the selected +# tool. +# INPUTS +# * c -- tk canvas +# * x -- x coordinate +# * y -- y coordinate +# * button -- the keyboard button that is pressed. +#**** +proc button1 { c x y button } { + global node_list plot_list curcanvas zoom + global activetool activetoolp newlink curobj changed def_router_model + global router pc host lanswitch rj45 hub + global oval rectangle text + global lastX lastY + global background selectbox + global defLinkColor defLinkWidth + global resizemode resizeobj + global wlan g_twoNodeSelect + global g_view_locked + + set x [$c canvasx $x] + set y [$c canvasy $y] + + set lastX $x + set lastY $y + + # TODO: clean this up + # - too many global variables + # - too many hardcoded cases (lanswitch, router, etc) + # - should be functionalized since lengthy if-else difficult to read + + set curobj [$c find withtag current] + set curtype [lindex [$c gettags current] 0] + + + if { $curtype == "node" || \ + $curtype == "oval" || $curtype == "rectangle" || $curtype == "text" \ + || ( $curtype == "nodelabel" && \ + [nodeType [lindex [$c gettags $curobj] 1]] == "pseudo") } { + set node [lindex [$c gettags current] 1] + set wasselected \ + [expr {[lsearch [$c find withtag "selected"] \ + [$c find withtag "node && $node"]] > -1}] + if { $button == "ctrl" } { + if { $wasselected } { + $c dtag $node selected + $c delete -withtags "selectmark && $node" + } + } elseif { !$wasselected } { + $c dtag node selected + $c delete -withtags selectmark + } + if { $activetool == "select" && !$wasselected} { + selectNode $c $curobj + } + } elseif { $curtype == "selectmark" } { + setResizeMode $c $x $y + } elseif { $activetool == "plot" } { + # plot tool: create new plot windows when clicking on a link + set link "" + set tags [$c gettags $curobj] + if { $curtype == "link" || $curtype == "linklabel" } { + set link [lindex $tags 1] + } elseif { $curtype == "interface" } { + set link [lindex $tags 2] + } + if { $link != "" } { + thruPlot $c $link $x $y 150 220 false + } + return + } elseif { $button != "ctrl" || $activetool != "select" } { + $c dtag node selected + $c delete -withtags selectmark + } + # user has clicked on a blank area or background item + if { [lsearch [.c gettags $curobj] background] != -1 || + [lsearch [.c gettags $curobj] grid] != -1 || + [lsearch [.c gettags $curobj] annotation] != -1 } { + # left mouse button pressed to create a new node + if { [lsearch {select marker link mobility twonode run stop oval \ + rectangle text} $activetool] < 0 } { + if { $g_view_locked == 1 } { return } + if { $activetoolp == "routers" } { + set node [newNode router] + setNodeModel $node $activetool + } else { + set node [newNode $activetool] + } + setNodeCanvas $node $curcanvas + setNodeCoords $node "[expr {$x / $zoom}] [expr {$y / $zoom}]" + lassign [getDefaultLabelOffsets $activetool] dx dy + setNodeLabelCoords $node "[expr {$x / $zoom + $dx}] \ + [expr {$y / $zoom + $dy}]" + drawNode $c $node + selectNode $c [$c find withtag "node && $node"] + set changed 1 + # remove any existing select box + } elseif { $activetool == "select" \ + && $curtype != "node" && $curtype != "nodelabel"} { + $c config -cursor cross + set lastX $x + set lastY $y + if {$selectbox != ""} { + # We actually shouldn't get here! + $c delete $selectbox + set selectbox "" + } + # begin drawing an annotation + } elseif { $activetoolp == "bgobjs" } { + set newcursor cross + if { $activetool == "text" } { set newcursor xterm } + $c config -cursor $newcursor + set lastX $x + set lastY $y + # draw with the marker + } elseif { $activetool == "marker" } { + global markersize markercolor + set newline [$c create oval $lastX $lastY $x $y \ + -width $markersize -outline $markercolor -tags "marker"] + $c raise $newline "background || link || linklabel || interface" + set lastX $x + set lastY $y + } + } else { + if {$curtype == "node" || $curtype == "nodelabel"} { + $c config -cursor fleur + } + if {$activetool == "link" && $curtype == "node"} { + $c config -cursor cross + set lastX [lindex [$c coords $curobj] 0] + set lastY [lindex [$c coords $curobj] 1] + set newlink [$c create line $lastX $lastY $x $y \ + -fill $defLinkColor -width $defLinkWidth \ + -tags "link"] + # twonode tool support + } elseif {$g_twoNodeSelect != "" && $curtype == "node"} { + set curnode [lindex [$c gettags $curobj] 1] + selectTwoNode $curnode + } elseif { $curtype == "node" } { + selectNode $c $curobj + } + # end Boeing + } + + raiseAll $c +} + +proc setResizeMode { c x y } { + set isThruplot false + set type1 notset + + if {$c == ".c"} { + set t1 [$c gettags current] + set o1 [lindex $t1 1] + set type1 [nodeType $o1] + } else { + set o1 $c + set c .c + set isThruplot true + } + #DYL + #puts "RESIZE NODETYPE = $type1" + global resizemode resizeobj + if {$type1== "oval" || $type1== "rectangle" || $isThruplot == true} { + set resizeobj $o1 + set bbox1 [$c bbox $o1] + set x1 [lindex $bbox1 0] + set y1 [lindex $bbox1 1] + set x2 [lindex $bbox1 2] + set y2 [lindex $bbox1 3] + set l 0 ;# left + set r 0 ;# right + set u 0 ;# up + set d 0 ;# down + + if { $x < [expr $x1+($x2-$x1)/8.0]} { set l 1 } + if { $x > [expr $x2-($x2-$x1)/8.0]} { set r 1 } + if { $y < [expr $y1+($y2-$y1)/8.0]} { set u 1 } + if { $y > [expr $y2-($y2-$y1)/8.0]} { set d 1 } + + if {$l==1} { + if {$u==1} { + set resizemode lu + } elseif {$d==1} { + set resizemode ld + } else { + set resizemode l + } + } elseif {$r==1} { + if {$u==1} { + set resizemode ru + } elseif {$d==1} { + set resizemode rd + } else { + set resizemode r + } + } elseif {$u==1} { + set resizemode u + } elseif {$d==1} { + set resizemode d + } else { + set resizemode false + } + } +} + + +#****f* editor.tcl/button1-motion +# NAME +# button1-motion +# SYNOPSIS +# button1-motion $c $x $y +# FUNCTION +# This procedure is called when a left mouse button is +# pressed and the mouse is moved around the canvas. +# This procedure creates new select box, moves the +# selected nodes or draws a new link. +# INPUTS +# * c -- tk canvas +# * x -- x coordinate +# * y -- y coordinate +#**** +proc button1-motion { c x y } { + global activetool newlink changed + global lastX lastY sizex sizey selectbox background + global oper_mode newoval newrect resizemode + global zoom + global g_view_locked + global thruPlotCur thruPlotDragStart + + set x [$c canvasx $x] + set y [$c canvasy $y] + + if {$thruPlotDragStart == "dragging"} { + #puts "active tool is $activetool" + thruPlotDrag $c $thruPlotCur $x $y null true + return + } + + # fix occasional error + if { $x == "" || $y == "" || $lastX == "" || $lastY == "" } { return } + + set curobj [$c find withtag current] + set curtype [lindex [$c gettags current] 0] + + # display coordinates in the status bar + set zoomx [expr {$x / $zoom}] + set zoomy [expr {$y / $zoom}] + .bottom.textbox config -text "<$zoomx, $zoomy>" + + # prevent dragging outside of the canvas area + if { $x < 0 } { + set x 0 + } elseif { $x > $sizex } { + set x $sizex + } + if { $y < 0 } { + set y 0 + } elseif { $y > $sizey } { + set y $sizey + } + + # marker tool drawing on the canvas + if { $activetool == "marker" } { + global markersize markercolor + set dx [expr {$x-$lastX} ] + set dy [expr {$y-$lastY} ] + # this provides smoother drawing + if { $dx > $markersize || $dy > $markersize } { + set mark [$c create line $lastX $lastY $x $y \ + -width $markersize -fill $markercolor -tags "marker"] + $c raise $mark \ + "marker || background || link || linklabel || interface" + } + set mark [$c create oval $x $y $x $y \ + -width $markersize -fill $markercolor \ + -outline $markercolor -tags "marker"] + $c raise $mark "marker || background || link || linklabel || interface" + set lastX $x + set lastY $y + return + } + # disable all other mouse drags in locked mode + if { $g_view_locked == 1 } { return } + + # don't move nodelabels in exec mode, use calcx,y instead of x,y + if {$oper_mode == "exec" && $curtype == "nodelabel" } { + set node [lindex [$c gettags $curobj] 1] + set curobj [$c find withtag "node && $node"] + set curtype "node" + set coords [$c coords $curobj] + set calcx [expr {[lindex $coords 0] / $zoom}] + set calcy [expr {[lindex $coords 1] / $zoom}] + selectNode $c $curobj + } else { + set calcx $x + set calcy $y + } + # drawing a new link + if {$activetool == "link" && $newlink != ""} { + $c coords $newlink $lastX $lastY $x $y + # draw a selection box + } elseif { $activetool == "select" && \ + ( $curobj == $selectbox || $curtype == "background" || $curtype == "grid")} { + if {$selectbox == ""} { + set selectbox [$c create line \ + $lastX $lastY $x $lastY $x $y $lastX $y $lastX $lastY \ + -dash {10 4} -fill black -width 1 -tags "selectbox"] + $c raise $selectbox "background || link || linklabel || interface" + } else { + $c coords $selectbox \ + $lastX $lastY $x $lastY $x $y $lastX $y $lastX $lastY + } + # move a text annotation + } elseif { $activetool == "select" && $curtype == "text" } { + $c move $curobj [expr {$x - $lastX}] [expr {$y - $lastY}] + set changed 1 + set lastX $x + set lastY $y + $c delete [$c find withtag "selectmark"] + # move a nodelabel apart from a node (edit mode only) + } elseif { $activetool == "select" && $curtype == "nodelabel" \ + && [nodeType [lindex [$c gettags $curobj] 1]] != "pseudo" } { + $c move $curobj [expr {$x - $lastX}] [expr {$y - $lastY}] + set changed 1 + set lastX $x + set lastY $y + # actually we should check if curobj==bkgImage + # annotations + } elseif { $activetool == "oval" && \ + ( $curobj == $newoval || $curobj == $background || $curtype == "background" || $curtype == "grid")} { + # Draw a new oval + if {$newoval == ""} { + set newoval [$c create oval $lastX $lastY $x $y \ + -dash {10 4} -width 1 -tags "newoval"] + $c raise $newoval "background || link || linklabel || interface" + } else { + $c coords $newoval \ + $lastX $lastY $x $y + } + # actually we should check if curobj==bkgImage + } elseif { $activetool == "rectangle" && \ + ( $curobj == $newrect || $curobj == $background || $curtype == "background" || $curtype == "grid")} { + # Draw a new rectangle + if {$newrect == ""} { + set newrect [$c create rectangle $lastX $lastY $x $y \ + -outline blue \ + -dash {10 4} -width 1 -tags "newrect"] + $c raise $newrect "oval || background || link || linklabel || interface" + } else { + $c coords $newrect $lastX $lastY $x $y + } + # resizing an annotation + } elseif { $curtype == "selectmark" } { + foreach o [$c find withtag "selected"] { + set node [lindex [$c gettags $o] 1] + set tagovi [$c gettags $o] + set koord [getNodeCoords $node] + + set oldX1 [lindex $koord 0] + set oldY1 [lindex $koord 1] + set oldX2 [lindex $koord 2] + set oldY2 [lindex $koord 3] + switch -exact -- $resizemode { + lu { + set oldX1 $x + set oldY1 $y + } + ld { + set oldX1 $x + set oldY2 $y + } + l { + set oldX1 $x + } + ru { + set oldX2 $x + set oldY1 $y + } + rd { + set oldX2 $x + set oldY2 $y + } + r { + set oldX2 $x + } + u { + set oldY1 $y + } + d { + set oldY2 $y + } + } + if {$selectbox == ""} { + # Boeing: fix "bad screen distance" error + if { $oldX1 == "" || $oldX2 == "" || $oldY1 == "" || \ + $oldY2 == "" } { return } + # end Boeing + set selectbox [$c create line \ + $oldX1 $oldY1 $oldX2 $oldY1 $oldX2 $oldY2 $oldX1 \ + $oldY2 $oldX1 $oldY1 \ + -dash {10 4} -fill black -width 1 -tags "selectbox"] + $c raise $selectbox \ + "background || link || linklabel || interface" + } else { + $c coords $selectbox \ + $oldX1 $oldY1 $oldX2 $oldY1 $oldX2 $oldY2 $oldX1 \ + $oldY2 $oldX1 $oldY1 + } + } + # selected node(s) are being moved + } else { + foreach img [$c find withtag "selected"] { + set node [lindex [$c gettags $img] 1] + set newcoords [$c coords $img] ;# different than getNodeCoords + set img [$c find withtag "selectmark && $node"] + if {$curtype == "oval" || $curtype == "rectangle"} { + $c move $img [expr {($x - $lastX) / 2}] \ + [expr {($y - $lastY) / 2}] + } else { + $c move $img [expr {$x - $lastX}] [expr {$y - $lastY}] + set img [$c find withtag "node && $node"] + $c move $img [expr {$x - $lastX}] [expr {$y - $lastY}] + set img [$c find withtag "nodelabel && $node"] + $c move $img [expr {$x - $lastX}] [expr {$y - $lastY}] + set img [$c find withtag "twonode && $node"] + if {$img != "" } {; # move Two Node Tool circles around node + $c move $img [expr {$x - $lastX}] [expr {$y - $lastY}] + }; + set img [$c find withtag "rangecircles && $node"] + if {$img != "" } {; # move throughput circles around node + $c move $img [expr {$x - $lastX}] [expr {$y - $lastY}] + }; + $c addtag need_redraw withtag "link && $node" + } + if { $oper_mode == "exec" } { + set newx [expr {[lindex $newcoords 0] / $zoom}] + set newy [expr {[lindex $newcoords 1] / $zoom}] + sendNodePosMessage -1 $node -1 $newx $newy -1 0 + } + $c addtag need_redraw withtag "wlanlink && $node" + widgets_move_node $c $node 0 + } + foreach link [$c find withtag "link && need_redraw"] { + redrawLink [lindex [$c gettags $link] 1] + } + foreach wlanlink [$c find withtag "wlanlink && need_redraw"] { + redrawWlanLink $wlanlink + } + $c dtag wlanlink need_redraw + $c dtag link need_redraw + set changed 1 + set lastX $x + set lastY $y + } +} + + +#****f* editor.tcl/pseudo.layer +# NAME +# pseudo.layer +# SYNOPSIS +# set layer [pseudo.layer] +# FUNCTION +# Returns the layer on which the pseudo node operates +# i.e. returns no layer. +# RESULT +# * layer -- returns an empty string +#**** +proc pseudo.layer {} { +} + + +#****f* editor.tcl/newGUILink +# NAME +# newGUILink -- new GUI link +# SYNOPSIS +# newGUILink $lnode1 $lnode2 +# FUNCTION +# This procedure is called to create a new link between +# nodes lnode1 and lnode2. Nodes can be on the same canvas +# or on different canvases. The result of this function +# is directly visible in GUI. +# INPUTS +# * lnode1 -- node id of the first node +# * lnode2 -- node id of the second node +#**** +proc newGUILink { lnode1 lnode2 } { + global changed + + set link [newLink $lnode1 $lnode2] + if { $link == "" } { + return + } + if { [getNodeCanvas $lnode1] != [getNodeCanvas $lnode2] } { + set new_nodes [splitLink $link pseudo] + set orig_nodes [linkPeers $link] + set new_node1 [lindex $new_nodes 0] + set new_node2 [lindex $new_nodes 1] + set orig_node1 [lindex $orig_nodes 0] + set orig_node2 [lindex $orig_nodes 1] + set new_link1 [linkByPeers $orig_node1 $new_node1] + set new_link2 [linkByPeers $orig_node2 $new_node2] + setNodeMirror $new_node1 $new_node2 + setNodeMirror $new_node2 $new_node1 + setNodeName $new_node1 $orig_node2 + setNodeName $new_node2 $orig_node1 + setLinkMirror $new_link1 $new_link2 + setLinkMirror $new_link2 $new_link1 + } + redrawAll + set changed 1 + updateUndoLog +} + + +#****f* editor.tcl/button1-release +# NAME +# button1-release +# SYNOPSIS +# button1-release $c $x $y +# FUNCTION +# This procedure is called when a left mouse button is +# released. +# The result of this function depends on the actions +# during the button1-motion procedure. +# INPUTS +# * c -- tk canvas +# * x -- x coordinate +# * y -- y coordinate +#**** +proc button1-release { c x y } { + global node_list plot_list activetool newlink curobj grid + global changed undolog undolevel redolevel selectbox + global lastX lastY sizex sizey zoom + global autorearrange_enabled + global resizemode resizeobj + set redrawNeeded 0 + global oper_mode + global g_prefs + global g_view_locked + + set x [$c canvasx $x] + set y [$c canvasy $y] + + $c config -cursor left_ptr + # place a new link between items + if {$activetool == "link" && $newlink != ""} { + if { $g_view_locked == 1 } { return } + $c delete $newlink + set newlink "" + set destobj "" + foreach obj [$c find overlapping $x $y $x $y] { + if {[lindex [$c gettags $obj] 0] == "node"} { + set destobj $obj + break + } + } + if {$destobj != "" && $curobj != "" && $destobj != $curobj} { + set lnode1 [lindex [$c gettags $curobj] 1] + set lnode2 [lindex [$c gettags $destobj] 1] + if { [ifcByLogicalPeer $lnode1 $lnode2] == "" } { + set link [newLink $lnode1 $lnode2] + if { $link != "" } { + drawLink $link + redrawLink $link + updateLinkLabel $link + set changed 1 + } + } + } + # annotations + } elseif {$activetool == "rectangle" || $activetool == "oval" } { + if { $g_view_locked == 1 } { return } + popupAnnotationDialog $c 0 "false" + # edit text annotation + } elseif {$activetool == "text" } { + if { $g_view_locked == 1 } { return } + textEnter $c $x $y + } + + if { $changed == 1 } { + set regular true + if { [lindex [$c gettags $curobj] 0] == "nodelabel" } { + set node [lindex [$c gettags $curobj] 1] + selectNode $c [$c find withtag "node && $node"] + } + set selected {} + foreach img [$c find withtag "selected"] { + set node [lindex [$c gettags $img] 1] + lappend selected $node + set coords [$c coords $img] + set x [expr {[lindex $coords 0] / $zoom}] + set y [expr {[lindex $coords 1] / $zoom}] + if { $autorearrange_enabled == 0 && $g_prefs(gui_snap_grid)} { + set dx [expr {(int($x / $grid + 0.5) * $grid - $x) * $zoom}] + set dy [expr {(int($y / $grid + 0.5) * $grid - $y) * $zoom}] + $c move $img $dx $dy + set coords [$c coords $img] + set x [expr {[lindex $coords 0] / $zoom}] + set y [expr {[lindex $coords 1] / $zoom}] + } else { + set dx 0 + set dy 0 + } + if {$x < 0 || $y < 0 || $x > $sizex || $y > $sizey} { + set regular false + } + # nodes with four coordinates + if { [lindex [$c gettags $node] 0] == "oval" || + [lindex [$c gettags $node] 0] == "rectangle" } { + set bbox [$c bbox "selectmark && $node"] + # Boeing: bbox causes annotations to grow, subtract 5 + if { [llength $bbox] > 3 } { + set x1 [lindex $bbox 0] + set y1 [lindex $bbox 1] + set x2 [expr {[lindex $bbox 2] - 5}] + set y2 [expr {[lindex $bbox 3] - 5}] + setNodeCoords $node "$x1 $y1 $x2 $y2" + set redrawNeeded 1 + if {$x1 < 0 || $y1 < 0 || $x1 > $sizex || $y1 > $sizey || \ + $x2 < 0 || $y2 < 0 || $x2 > $sizex || $y2 > $sizey} { + set regular false + } + } + # nodes with two coordinates + } else { + setNodeCoords $node "$x $y" + } + if {[$c find withtag "nodelabel && $node"] != "" } { + $c move "nodelabel && $node" $dx $dy + set coords [$c coords "nodelabel && $node"] + set x [expr {[lindex $coords 0] / $zoom}] + set y [expr {[lindex $coords 1] / $zoom}] + setNodeLabelCoords $node "$x $y" + if {$x < 0 || $y < 0 || $x > $sizex || $y > $sizey} { + set regular false + } + } + $c move "selectmark && $node" $dx $dy + $c addtag need_redraw withtag "link && $node" + set changed 1 + if { $oper_mode == "exec" } { + # send node position update using x,y stored in node + set xy [getNodeCoords $node] ;# read new coordinates + sendNodePosMessage -1 $node -1 [lindex $xy 0] [lindex $xy 1] \ + -1 0 + widgets_move_node $c $node 1 + } + $c addtag need_redraw withtag "wlanlink && $node" + } ;# end of: foreach img selected + if {$regular == "true"} { + # user has dragged something within the canvas boundaries + foreach link [$c find withtag "link && need_redraw"] { + redrawLink [lindex [$c gettags $link] 1] + } + } else { + # user has dragged something beyond the canvas boundaries + .c config -cursor watch + loadCfg $undolog($undolevel) + redrawAll + if {$activetool == "select" } { + selectNodes $selected + } + set changed 0 + } + $c dtag link need_redraw + nodeEnter $c + + # $changed!=1 + } elseif {$activetool == "select" } { + if {$selectbox == ""} { + set x1 $x + set y1 $y + rearrange_off + } else { + set coords [$c coords $selectbox] + set x [lindex $coords 0] + set y [lindex $coords 1] + set x1 [lindex $coords 4] + set y1 [lindex $coords 5] + $c delete $selectbox + set selectbox "" + } + + if { $resizemode == "false" } { + # select tool mouse button release while drawing select box + set enclosed {} + # fix occasional error + if { $x == "" || $y == "" || $x1 == "" || $y1 == "" } { return } + foreach obj [$c find enclosed $x $y $x1 $y1] { + set tags [$c gettags $obj] + if {[lindex $tags 0] == "node" && [lsearch $tags selected] == -1} { + lappend enclosed $obj + } + if {[lindex $tags 0] == "oval" && [lsearch $tags selected] == -1} { + lappend enclosed $obj + } + if {[lindex $tags 0] == "rectangle" && [lsearch $tags selected] == -1} { + lappend enclosed $obj + } + if {[lindex $tags 0] == "text" && [lsearch $tags selected] == -1} { + lappend enclosed $obj + } + } + foreach obj $enclosed { + selectNode $c $obj + } + } else { + # select tool resizing an object by dragging its handles + # DYL bugfix. if x,y does not change, do not resize! + # fixes a bug where the object dissappears + if { $x != $x1 || $y != $y1 } { + setNodeCoords $resizeobj "$x $y $x1 $y1" + } + set redrawNeeded 1 + set resizemode false + } + } + + if { $redrawNeeded } { + set redrawNeeded 0 + redrawAll + } else { + raiseAll $c + } + update + updateUndoLog +} + + +#****f* editor.tcl/nodeEnter +# NAME +# nodeEnter +# SYNOPSIS +# nodeEnter $c +# FUNCTION +# This procedure prints the node id, node name and +# node model (if exists), as well as all the interfaces +# of the node in the status line. +# Information is presented for the node above which is +# the mouse pointer. +# INPUTS +# * c -- tk canvas +#**** +proc nodeEnter { c } { + global activetool + + set curtags [$c gettags current] + if { [lsearch -exact "node nodelabel" [lindex $curtags 0]] < 0 } { + return ;# allow this proc to be called from button1-release + } + set node [lindex $curtags 1] + set type [nodeType $node] + set name [getNodeName $node] + set model [getNodeModel $node] + if { $model != "" } { + set line "{$node} $name ($model):" + } else { + set line "{$node} $name:" + } + if { $type != "rj45" && $type != "tunnel" } { + foreach ifc [ifcList $node] { + set line "$line $ifc:[getIfcIPv4addr $node $ifc]" + } + } + set xy [getNodeCoords $node] + set line "$line <[lindex $xy 0], [lindex $xy 1]>" + .bottom.textbox config -text "$line" + widgetObserveNode $c $node +} + + +#****f* editor.tcl/linkEnter +# NAME +# linkEnter +# SYNOPSIS +# linkEnter $c +# FUNCTION +# This procedure prints the link id, link bandwidth +# and link delay in the status line. +# Information is presented for the link above which is +# the mouse pointer. +# INPUTS +# * c -- tk canvas +#**** +proc linkEnter {c} { + global activetool link_list + + set link [lindex [$c gettags current] 1] + if { [lsearch $link_list $link] == -1 } { + return + } + set line "$link: [getLinkBandwidthString $link] [getLinkDelayString $link]" + .bottom.textbox config -text "$line" +} + + +#****f* editor.tcl/anyLeave +# NAME +# anyLeave +# SYNOPSIS +# anyLeave $c +# FUNCTION +# This procedure clears the status line. +# INPUTS +# * c -- tk canvas +#**** +proc anyLeave {c} { + global activetool + + .bottom.textbox config -text "" +# Boeing + widgetObserveNode $c "" +# nodeHighlights $c "" off "" +# end Boeing +} + + +#****f* editor.tcl/checkIntRange +# NAME +# checkIntRange -- check integer range +# SYNOPSIS +# set check [checkIntRange $str $low $high] +# FUNCTION +# This procedure checks the input string to see if it is +# an integer between the low and high value. +# INPUTS +# str -- string to check +# low -- the bottom value +# high -- the top value +# RESULT +# * check -- set to 1 if the str is string between low and high +# value, 0 otherwise. +#**** +proc checkIntRange { str low high } { + if { $str == "" } { + return 1 + } + set str [string trimleft $str 0] + if { $str == "" } { + set str 0 + } + if { ![string is integer $str] } { + return 0 + } + if { $str < $low || $str > $high } { + return 0 + } + return 1 +} + +proc checkFloatRange { str low high } { + if { $str == "" } { + return 1 + } + set str [string trimleft $str 0] + if { $str == "" } { + set str 0 + } + if { ![string is double $str] } { + return 0 + } + if { $str < $low || $str > $high } { + return 0 + } + return 1 +} + +proc checkHostname { str } { + # per RFC 952 and RFC 1123, any letter, number, or hyphen + return [regexp {^[A-Za-z0-9-]+$} $str] +} + + +#****f* editor.tcl/focusAndFlash +# NAME +# focusAndFlash -- focus and flash +# SYNOPSIS +# focusAndFlash $W $count +# FUNCTION +# This procedure sets the focus on the bad entry field +# and on this filed it provides an effect of flashing +# for approximately 1 second. +# INPUTS +# * W -- textbox field that caused the bed entry +# * count -- the parameter that causes flashes. +# It can be left blank. +#**** +proc focusAndFlash {W {count 9}} { + global badentry + + set fg black + set bg white + + if { $badentry == -1 } { + return + } else { + set badentry 1 + } + + focus -force $W + if {$count<1} { + $W configure -foreground $fg -background $bg + set badentry 0 + } else { + if {$count%2} { + $W configure -foreground $bg -background $fg + } else { + $W configure -foreground $fg -background $bg + } + after 200 [list focusAndFlash $W [expr {$count - 1}]] + } +} + + +#****f* editor.tcl/popupConfigDialog +# NAME +# popupConfigDialog -- popup Configuration Dialog Box +# SYNOPSIS +# popupConfigDialog $c +# FUNCTION +# Dynamically creates a popup dialog box for configuring +# links or nodes in IMUNES. +# INPUTS +# * c -- canvas id +#**** +proc popupConfigDialog { c } { + global activetool router_model link_color oper_mode + global badentry curcanvas + global node_location systype + global plugin_img_del + set type "" + + set wi .popup + if { [winfo exists $wi ] } { + return + } + catch {destroy $wi} + toplevel $wi + + wm transient $wi . + wm resizable $wi 1 1 + + set object_type "" + set tk_type [lindex [$c gettags current] 0] + set target [lindex [$c gettags current] 1] + if { [lsearch {node nodelabel interface} $tk_type] > -1 } { + set object_type node + } + if { [lsearch {link linklabel} $tk_type] > -1 } { + set object_type link + } + if { [lsearch {oval} $tk_type] > -1 } { + set object_type oval + } + if { [lsearch {rectangle} $tk_type] > -1 } { + set object_type rectangle + } + if { [lsearch {text} $tk_type] > -1 } { + set object_type text + } + if { "$object_type" == ""} { + destroy $wi + return + } + if { $object_type == "link" } { + set n0 [lindex [linkPeers $target] 0] + set n1 [lindex [linkPeers $target] 1] + # Boeing: added tunnel check + #if { [nodeType $n0] == "rj45" || [nodeType $n1] == "rj45" || \ + # [nodeType $n0] == "tunnel" || [nodeType $n1] == "tunnel" } { + # destroy $wi + # return + #} + } + $c dtag node selected + $c delete -withtags selectmark + + switch -exact -- $object_type { + node { + set type [nodeType $target] + if { $type == "pseudo" } { + # + # Hyperlink to another canvas + # + destroy $wi + set curcanvas [getNodeCanvas [getNodeMirror $target]] + switchCanvas none + return + } + set model [getNodeModel $target] + set router_model $model + wm title $wi "$type configuration" + ttk::frame $wi.ftop -borderwidth 4 + ttk::entry $wi.ftop.name -width 16 \ + -validate focus -invalidcommand "focusAndFlash %W" + if { $type == "rj45" } { + ttk::label $wi.ftop.name_label -text "Physical interface:" + } elseif { $type == "tunnel" } { + ttk::label $wi.ftop.name_label -text "IP address of tunnel peer:" + } else { + ttk::label $wi.ftop.name_label -text "Node name:" + $wi.ftop.name configure -validatecommand {checkHostname %P} + } + $wi.ftop.name insert 0 [getNodeName $target] + set img [getNodeImage $target] + ttk::button $wi.ftop.img -image $img -command "popupCustomImage $target" + + if { $type == "rj45" } { + rj45ifclist $wi $target 0 + } + # execution server + global exec_servers node_location + set node_location [getNodeLocation $target] + set servers [lsort -dictionary [array names exec_servers]] + set servers "(none) $servers" + if { $node_location == "" } { set node_location "(none)" } + eval tk_optionMenu $wi.ftop.menu node_location $servers + pack $wi.ftop.img $wi.ftop.menu $wi.ftop.name $wi.ftop.name_label \ + -side right -padx 4 -pady 4 + # end Boeing + pack $wi.ftop -side top + + if { $type == "router" } { + ttk::frame $wi.model -borderwidth 4 + ttk::label $wi.model.label -text "Type:" + set runstate "disabled" + if { $oper_mode == "edit" } { + eval tk_optionMenu $wi.model.menu router_model \ + [getNodeTypeNames] + set runstate "normal" + } else { + tk_optionMenu $wi.model.menu router_model $model + } + # would be nice to update the image upon selection; binding to + # will not work + #tkwait variable router_model "customImageApply $wi $target" + set sock [lindex [getEmulPlugin $target] 2] + ttk::button $wi.model.services -text "Services..." -state $runstate \ + -command \ + "sendConfRequestMessage $sock $target services 0x1 -1 \"\"" + pack $wi.model.services $wi.model.menu $wi.model.label \ + -side right -padx 0 -pady 0 + pack $wi.model -side top + } + + if { $type == "wlan" } { + wlanConfigDialogHelper $wi $target 0 + } elseif { $type == "tunnel" } { + # + # tunnel controls + # + ttk::frame $wi.con2 + global conntap + set conntap [netconfFetchSection $target "tunnel-tap"] + if { $conntap == "" } { set conntap off } + # TODO: clean this up + ttk::radiobutton $wi.con2.dotap0 \ + -variable conntap -value off \ + -text "tunnel to another CORE emulation" + ttk::frame $wi.con2.key + ttk::label $wi.con2.key.lab -text "GRE key:" + ttk::entry $wi.con2.key.key -width 6 + ttk::radiobutton $wi.con2.dotap1 -state disabled \ + -variable conntap -value on \ + -text "tunnel to the virtual TAP interface of another system" + pack $wi.con2.key.lab $wi.con2.key.key -side left + pack $wi.con2.dotap0 -side top -anchor w + pack $wi.con2.key -side top + pack $wi.con2.dotap1 -side top -anchor w + pack $wi.con2 -side top + set key [netconfFetchSection $target "tunnel-key"] + if { $key == "" } { set key 1 } + $wi.con2.key.key insert 0 $key + + # TODO: clean this up + ttk::frame $wi.conn + ttk::label $wi.conn.label -text "Transport type:" + tk_optionMenu $wi.conn.conntype conntype "UDP" "TCP" + $wi.conn.conntype configure -state disabled + pack $wi.conn.label $wi.conn.conntype -side left -anchor w + pack $wi.conn -side top + global conntype + set conntype [netconfFetchSection $target "tunnel-type"] + if { $conntype == "" } { set conntype "UDP" } + + + # TODO: clean this up + ttk::frame $wi.linfo + ttk::label $wi.linfo.label -text "Local hook:" + ttk::entry $wi.linfo.local -state disabled + set localhook [netconfFetchSection $target "local-hook"] + if { $localhook == "" || $localhook == "(none)" } { + # automatically generate local hook name + set ifc [lindex [ifcList $target] 0] + if { $ifc != "" } { + set hname [info hostname] + set peer [peerByIfc $target $ifc] + set localhook "$hname$peer" + } else { + set localhook "(none)" + } + } + $wi.linfo.local insert 0 $localhook + pack $wi.linfo.label $wi.linfo.local -side left -anchor w + pack $wi.linfo -side top + + ttk::frame $wi.pinfo + ttk::label $wi.pinfo.label -text "Peer hook:" + ttk::entry $wi.pinfo.peer -state disabled + $wi.pinfo.peer insert 0 \ + [netconfFetchSection $target "peer-hook"] + pack $wi.pinfo.label $wi.pinfo.peer -side left -anchor w + pack $wi.pinfo -side top + } + + # interface list + if { [[typemodel $target].layer] == "NETWORK" } { + # canvas used for scrolling frames for each interface + ttk::frame $wi.ifaces + set height [expr {100 * [llength [ifcList $target]]}] + if { $height > 300 } { set height 300 } + canvas $wi.ifaces.c -height $height -highlightthickness 0 \ + -yscrollcommand "$wi.ifaces.scroll set" + scrollbar $wi.ifaces.scroll -command "$wi.ifaces.c yview" + pack $wi.ifaces.c -side left -fill both -expand 1 + pack $wi.ifaces.scroll -side right -fill y + pack $wi.ifaces -side top -fill both -expand 1 + set y 0 + + foreach ifc [lsort -ascii [ifcList $target]] { + set fr $wi.ifaces.c.if$ifc + ttk::labelframe $fr -text "Interface $ifc" + $wi.ifaces.c create window 4 $y -window $fr -anchor nw + incr y 100 + + set peer [peerByIfc $target $ifc] + if { [isEmane $peer] } { + ttk::frame $fr.opts + set caps [getCapabilities $peer "mobmodel"] + set cap [lindex $caps 0] + set cmd "sendConfRequestMessage -1 $target $cap 0x1 -1 \"\"" + ttk::button $fr.opts.cfg -command $cmd \ + -text "$cap options..." + pack $fr.opts.cfg -side left -padx 4 + pack $fr.opts -side top -anchor w + incr y 28 + } + + ttk::frame $fr.cfg + # + # MAC address + # + ttk::frame $fr.cfg.mac + ttk::label $fr.cfg.mac.addrl -text "MAC address" \ + -anchor w + set macaddr [getIfcMacaddr $target $ifc] + global if${ifc}_auto_mac + if { $macaddr == "" } { + set if${ifc}_auto_mac 1 + set state disabled + } else { + set if${ifc}_auto_mac 0 + set state normal + } + ttk::checkbutton $fr.cfg.mac.auto -text "auto-assign" \ + -variable if${ifc}_auto_mac \ + -command "macEntryHelper $wi $ifc" + ttk::entry $fr.cfg.mac.addrv -width 15 \ + -state $state + $fr.cfg.mac.addrv insert 0 $macaddr + pack $fr.cfg.mac.addrl $fr.cfg.mac.auto \ + $fr.cfg.mac.addrv -side left -padx 4 + pack $fr.cfg.mac -side top -anchor w + + # + # IPv4 address + # + ttk::frame $fr.cfg.ipv4 + ttk::label $fr.cfg.ipv4.addrl -text "IPv4 address" \ + -anchor w + ttk::entry $fr.cfg.ipv4.addrv -width 30 \ + -validate focus -invalidcommand "focusAndFlash %W" + $fr.cfg.ipv4.addrv insert 0 \ + [getIfcIPv4addr $target $ifc] + $fr.cfg.ipv4.addrv configure \ + -validatecommand {checkIPv4Net %P} + ttk::button $fr.cfg.ipv4.clear -image $plugin_img_del \ + -command "$fr.cfg.ipv4.addrv delete 0 end" + pack $fr.cfg.ipv4.addrl $fr.cfg.ipv4.addrv \ + $fr.cfg.ipv4.clear -side left + pack $fr.cfg.ipv4 -side top -anchor w -padx 4 + + # + # IPv6 address + # + ttk::frame $fr.cfg.ipv6 + ttk::label $fr.cfg.ipv6.addrl -text "IPv6 address" \ + -anchor w + ttk::entry $fr.cfg.ipv6.addrv -width 30 \ + -validate focus -invalidcommand "focusAndFlash %W" + $fr.cfg.ipv6.addrv insert 0 \ + [getIfcIPv6addr $target $ifc] + $fr.cfg.ipv6.addrv configure -validatecommand {checkIPv6Net %P} + ttk::button $fr.cfg.ipv6.clear -image $plugin_img_del \ + -command "$fr.cfg.ipv6.addrv delete 0 end" + pack $fr.cfg.ipv6.addrl $fr.cfg.ipv6.addrv \ + $fr.cfg.ipv6.clear -side left + pack $fr.cfg.ipv6 -side top -anchor w -padx 4 + pack $fr.cfg -side left + bind $fr.cfg <4> "$wi.ifaces.c yview scroll -1 units" + bind $fr.cfg <5> "$wi.ifaces.c yview scroll 1 units" + } ;# end foreach ifc + $wi.ifaces.c configure -scrollregion "0 0 250 $y" + # mouse wheel bindings for scrolling + foreach ctl [list $wi.ifaces.c $wi.ifaces.scroll] { + bind $ctl <4> "$wi.ifaces.c yview scroll -1 units" + bind $ctl <5> "$wi.ifaces.c yview scroll 1 units" + bind $ctl "$wi.ifaces.c yview scroll -1 units" + bind $ctl "$wi.ifaces.c yview scroll 1 units" + } + } + } + oval { + destroy $wi + annotationConfig $c $target + return + } + rectangle { + destroy $wi + annotationConfig $c $target + return + } + text { + destroy $wi + annotationConfig $c $target + return + } + link { + wm title $wi "link configuration" + ttk::frame $wi.ftop -borderwidth 6 + set nam0 [getNodeName $n0] + set nam1 [getNodeName $n1] + ttk::label $wi.ftop.name_label -justify left -text \ + "Link from $nam0 to $nam1" + pack $wi.ftop.name_label -side right + pack $wi.ftop -side top + + set spinbox [getspinbox] + ttk::frame $wi.bandwidth -borderwidth 4 + global link_preset_val + set link_preset_val unlimited + set linkpreMenu [tk_optionMenu $wi.bandwidth.linkpre link_preset_val a] + pack $wi.bandwidth.linkpre -side top + linkPresets $wi $linkpreMenu init + ttk::label $wi.bandwidth.label -anchor e \ + -text "Bandwidth (bps):" + $spinbox $wi.bandwidth.value -justify right -width 10 \ + -validate focus -invalidcommand "focusAndFlash %W" + $wi.bandwidth.value insert 0 [getLinkBandwidth $target] + $wi.bandwidth.value configure \ + -validatecommand {checkIntRange %P 0 1000000000} \ + -from 0 -to 1000000000 -increment 1000000 + pack $wi.bandwidth.value $wi.bandwidth.label \ + -side right + pack $wi.bandwidth -side top -anchor e + + ttk::frame $wi.delay -borderwidth 4 + ttk::label $wi.delay.label -anchor e -text "Delay (us):" + $spinbox $wi.delay.value -justify right -width 10 \ + -validate focus -invalidcommand "focusAndFlash %W" + $wi.delay.value insert 0 [getLinkDelay $target] + $wi.delay.value configure \ + -validatecommand {checkIntRange %P 0 10000000} \ + -from 0 -to 10000000 -increment 5 + pack $wi.delay.value $wi.delay.label -side right + pack $wi.delay -side top -anchor e + + ttk::frame $wi.ber -borderwidth 4 + if { [lindex $systype 0] == "Linux" } { + set bertext "Loss (%):" + set berinc 1 + set bermax 100 + } else { ;# netgraph uses BER + set bertext "BER (1/N):" + set berinc 1000 + set bermax 10000000000000 + } + ttk::label $wi.ber.label -anchor e -text $bertext + $spinbox $wi.ber.value -justify right -width 10 \ + -validate focus -invalidcommand "focusAndFlash %W" + $wi.ber.value insert 0 [getLinkBER $target] + $wi.ber.value configure \ + -validatecommand "checkFloatRange %P 0 $bermax" \ + -from 0 -to $bermax -increment $berinc + pack $wi.ber.value $wi.ber.label -side right + pack $wi.ber -side top -anchor e + + ttk::frame $wi.dup -borderwidth 4 + ttk::label $wi.dup.label -anchor e -text "Duplicate (%):" + $spinbox $wi.dup.value -justify right -width 10 \ + -validate focus -invalidcommand "focusAndFlash %W" + $wi.dup.value insert 0 [getLinkDup $target] + $wi.dup.value configure \ + -validatecommand {checkFloatRange %P 0 50} \ + -from 0 -to 50 -increment 1 + pack $wi.dup.value $wi.dup.label -side right + pack $wi.dup -side top -anchor e + +# Boeing: jitter +# frame $wi.jitter -borderwidth 4 +# label $wi.jitter.label -anchor e -text "Jitter (us):" +# spinbox $wi.jitter.value -bg white -justify right -width 10 \ +# -validate focus -invalidcommand "focusAndFlash %W" +# $wi.jitter.value insert 0 [getLinkJitter $target] +# $wi.jitter.value configure \ +# -validatecommand {checkIntRange %P 0 10000000} \ +# -from 0 -to 10000000 -increment 5 +# pack $wi.jitter.value $wi.jitter.label -side right +# pack $wi.jitter -side top -anchor e +# end Boeing + + ttk::frame $wi.color -borderwidth 4 + ttk::label $wi.color.label -anchor e -text "Color:" + set link_color [getLinkColor $target] + tk_optionMenu $wi.color.value link_color \ + Red Green Blue Yellow Magenta Cyan Black + pack $wi.color.value $wi.color.label -side right + pack $wi.color -side top -anchor e + + ttk::frame $wi.width -borderwidth 4 + ttk::label $wi.width.label -anchor e -text "Width:" + $spinbox $wi.width.value -justify right -width 10 \ + -validate focus -invalidcommand "focusAndFlash %W" + $wi.width.value insert 0 [getLinkWidth $target] + $wi.width.value configure \ + -validatecommand {checkIntRange %P 1 8} \ + -from 1 -to 8 -increment 1 + pack $wi.width.value $wi.width.label -side right + pack $wi.width -side top -anchor e + } + } ;# end switch + + ttk::frame $wi.butt -borderwidth 6 + # NOTE: plugins.tcl:popupCapabilityConfig may read this command option + ttk::button $wi.butt.apply -text "Apply" -command \ + "popupConfigApply $wi $object_type $target 0" + focus $wi.butt.apply + # Boeing: remove range circles upon cancel + if {$type == "wlan"} { + set cancelcmd "set badentry -1 ; destroy $wi;" + set cancelcmd "$cancelcmd updateRangeCircles $target 0" + } else { + set cancelcmd "set badentry -1 ; destroy $wi" + } + ttk::button $wi.butt.cancel -text "Cancel" -command $cancelcmd + #end Boeing + pack $wi.butt.cancel $wi.butt.apply -side right + pack $wi.butt -side bottom + bind $wi $cancelcmd +# bind $wi "popupConfigApply $wi $object_type $target 0" +} + +# toggle the state of the mac address entry, and insert MAC address template +proc macEntryHelper { wi ifc } { + set fr $wi.ifaces.c.if$ifc + set ctl $fr.cfg.mac.addrv + set s normal + if { [$ctl cget -state] == $s } { set s disabled } + $ctl configure -state $s + + if { [$ctl get] == "" } { $ctl insert 0 "00:00:00:00:00:00" } +} + + +#****f* editor.tcl/popupConfigApply +# NAME +# popupConfigApply -- popup configuration apply +# SYNOPSIS +# popupConfigApply $w $object_type $target $phase +# FUNCTION +# This procedure is called when the button apply is pressed in +# popup configuration dialog box. It reads different +# configuration parameters depending on the object_type. +# INPUTS +# * w -- widget +# * object_type -- describes the object type that is currently +# configured. It can be either link or node. +# * target -- node id of the configured node or link id of the +# configured link +# * phase -- This procedure is invoked in two diffenet phases +# to enable validation of the entry that was the last made. +# When calling this function always use the phase parameter +# set to 0. +#**** +proc popupConfigApply { wi object_type target phase } { + global changed oper_mode router_model link_color badentry + global customEnabled ipsecEnabled + global eid + + $wi config -cursor watch + update + if { $phase == 0 } { + set badentry 0 + focus . + after 100 "popupConfigApply $wi $object_type $target 1" + return + } elseif { $badentry } { + $wi config -cursor left_ptr + return + } + switch -exact -- $object_type { + # + # Node + # + node { + set type [nodeType $target] + set model [getNodeModel $target] + set name [string trim [$wi.ftop.name get]] + set changed_to_remote 0 + global node_location + if { $node_location != [getNodeLocation $target] } { + if { $node_location == "(none)" } { set node_location "" } + setNodeLocation $target $node_location + set changed 1 + } + set node_location "" + if { $name != [getNodeName $target] } { + setNodeName $target $name + set changed 1 + } + if { $oper_mode == "edit" && $type == "router" && \ + $router_model != $model } { + setNodeModel $target $router_model + set changed 1 + if { $router_model == "remote" } { set changed_to_remote 1 };#Boeing + } + +# Boeing - added wlan, remote, tunnel, ktunnel items + if { $type == "wlan" } { + wlanConfigDialogHelper $wi $target 1 + } elseif { $type == "tunnel" } { + # + # apply tunnel items + # + set ipaddr "$name/24" ;# tunnel name == IP address of peer + set oldipaddr [getIfcIPv4addr $target e0] + if { $ipaddr != $oldipaddr } { + setIfcIPv4addr $target e0 $ipaddr + } + global conntype conntap + set oldconntype [netconfFetchSection $target "tunnel-type"] + if { $oldconntype != $conntype } { + netconfInsertSection $target [list "tunnel-type" $conntype] + } + set oldconntap [netconfFetchSection $target "tunnel-tap"] + if { $oldconntap != $conntap } { + netconfInsertSection $target [list "tunnel-tap" $conntap] + } + set oldkey [netconfFetchSection $target "tunnel-key"] + set key [$wi.con2.key.key get] + if { $oldkey != $key } { + netconfInsertSection $target [list "tunnel-key" $key] + } + + set oldlocal [netconfFetchSection $target "local-hook"] + set local [$wi.linfo.local get] + if { $oldlocal != $local } { + netconfInsertSection $target [list "local-hook" $local] + } + + set oldpeer [netconfFetchSection $target "peer-hook"] + set peer [$wi.pinfo.peer get] + if { $oldpeer != $peer } { + netconfInsertSection $target [list "peer-hook" $peer] + } + } elseif { $type == "ktunnel" } { + # + # apply ktunnel items + # + set oldlocal [netconfFetchSection $target "local-hook"] + set local [$wi.linfo.local get] + if { $oldlocal != $local } { + netconfInsertSection $target [list "local-hook" $local] + } +# Boeing changing to interface name for RJ45 +# } elseif { $type == "rj45" } { +# # +# # apply rj45 items +# # +# set ifcName [string trim [$wi.interface.name get]] +# puts "$ifcName\n" +# + } elseif { $type == "router" && [getNodeModel $target] == "remote" } { + if { $changed_to_remote == 0 } { + set i 1 + set remoteIP [string trim [$wi.remoteinfo.ip.text get $i.0 $i.end]] + if { $remoteIP != [router.remote.getRemoteIP $target] } { + router.remote.setRemoteIP $target $remoteIP + set changed 1 + } + set ifc [string trim [$wi.remoteinfo.ifc.text get $i.0 $i.end]] + if { $ifc != [router.remote.getCInterface $target] } { + router.remote.setCInterface $target $ifc + set changed 1 + } + set startcmd [string trim [$wi.remotecommands.start.text get $i.0 $i.end]] + if { $startcmd != [router.remote.getStartCmd $target] } { + router.remote.setStartCmd $target $startcmd + set changed 1 + } + set stopcmd [string trim [$wi.remotecommands.stop.text get $i.0 $i.end]] + if { $stopcmd != [router.remote.getStopCmd $target] } { + router.remote.setStopCmd $target $stopcmd + set changed 1 + } + } + } + + if {[[typemodel $target].layer] == "NETWORK"} { + foreach ifc [ifcList $target] { + set fr $wi.ifaces.c.if$ifc + set macaddr [$fr.cfg.mac.addrv get] + global if${ifc}_auto_mac + if { [set if${ifc}_auto_mac] == 1 } { set macaddr "" } + set oldmacaddr [getIfcMacaddr $target $ifc] + if { $macaddr != $oldmacaddr } { + setIfcMacaddr $target $ifc $macaddr + set changed 1 + } + set ipaddr [$fr.cfg.ipv4.addrv get] + set oldipaddr [getIfcIPv4addr $target $ifc] + if { $ipaddr != $oldipaddr } { + setIfcIPv4addr $target $ifc $ipaddr + set changed 1 + } + set ipaddr [$fr.cfg.ipv6.addrv get] + set oldipaddr [getIfcIPv6addr $target $ifc] + if { $ipaddr != $oldipaddr } { + setIfcIPv6addr $target $ifc $ipaddr + set changed 1 + } + } + } + } + + link { + set mirror [getLinkMirror $target] + set bw [$wi.bandwidth.value get] + if { $bw != [getLinkBandwidth $target] } { + setLinkBandwidth $target [$wi.bandwidth.value get] + if { $mirror != "" } { + setLinkBandwidth $mirror [$wi.bandwidth.value get] + } + set changed 1 + } + set dly [$wi.delay.value get] + if { $dly != [getLinkDelay $target] } { + setLinkDelay $target [$wi.delay.value get] + if { $mirror != "" } { + setLinkDelay $mirror [$wi.delay.value get] + } + set changed 1 + } + set ber [$wi.ber.value get] + if { $ber != [getLinkBER $target] } { + setLinkBER $target [$wi.ber.value get] + if { $mirror != "" } { + setLinkBER $mirror [$wi.ber.value get] + } + set changed 1 + } + set dup [$wi.dup.value get] + if { $dup != [getLinkDup $target] } { + setLinkDup $target [$wi.dup.value get] + if { $mirror != "" } { + setLinkDup $mirror [$wi.dup.value get] + } + set changed 1 + } + if { $link_color != [getLinkColor $target] } { + setLinkColor $target $link_color + if { $mirror != "" } { + setLinkColor $mirror $link_color + } + set changed 1 + } + set width [$wi.width.value get] + if { $width != [getLinkWidth $target] } { + setLinkWidth $target [$wi.width.value get] + if { $mirror != "" } { + setLinkWidth $mirror [$wi.width.value get] + } + set changed 1 + } + if { $changed == 1 && $oper_mode == "exec" } { + execSetLinkParams $eid $target + } + } + + } + + popdownConfig $wi +} + + +#****f* editor.tcl/printCanvas +# NAME +# printCanvas -- print canvas +# SYNOPSIS +# printCanvas $w +# FUNCTION +# This procedure is called when the print button in +# print dialog box is pressed. +# INPUTS +# * w -- print dialog widget +#**** +proc printCanvas { w } { + global sizex sizey + + set prncmd [$w.e1 get] + destroy $w + set p [open "|$prncmd" WRONLY] + puts $p [.c postscript -height $sizey -width $sizex -x 0 -y 0 -rotate yes -pageheight 297m -pagewidth 210m] + close $p +} + + +#****f* editor.tcl/deleteSelection +# NAME +# deleteSelection -- delete selection +# SYNOPSIS +# deleteSelection +# FUNCTION +# By calling this procedure all the selected nodes in imunes will +# be deleted. +#**** +proc deleteSelection { } { + global changed + global background + global viewid + catch {unset viewid} + .c config -cursor watch; update + + foreach lnode [selectedNodes] { + if { $lnode != "" } { + removeGUINode $lnode + } + set changed 1 + } + + raiseAll .c + updateUndoLog + .c config -cursor left_ptr + .bottom.textbox config -text "" +} + + +proc assignSelection { server } { + global changed + .c config -cursor watch; update + + foreach node [selectedNodes] { + if { $node != "" } { + setNodeLocation $node $server + } + set changed 1 + } + + redrawAll + updateUndoLog + .c config -cursor left_ptr + .bottom.textbox config -text "" +} + + +proc align2grid {} { + global sizex sizey grid zoom changed + + set node_objects [.c find withtag node] + if { [llength $node_objects] == 0 } { + return + } + + set step [expr {$grid * 4}] + + for { set x $step } { $x <= [expr {$sizex - $step}] } { incr x $step } { + for { set y $step } { $y <= [expr {$sizey - $step}] } { incr y $step } { + if { [llength $node_objects] == 0 } { + set changed 1 + updateUndoLog + redrawAll + return + } + set node [lindex [.c gettags [lindex $node_objects 0]] 1] + set node_objects [lreplace $node_objects 0 0] + setNodeCoords $node "$x $y" + lassign [getDefaultLabelOffsets [nodeType $node]] dx dy + setNodeLabelCoords $node "[expr {$x + $dx}] [expr {$y + $dy}]" + } + } +} + +#****f* editor.tcl/rearrange +# NAME +# rearrange +# SYNOPSIS +# rearrange $mode +# FUNCTION +# This procedure rearranges the position of nodes in imunes. +# It can be used to rearrange all the nodes or only the selected +# nodes. +# INPUTS +# * mode -- when set to "selected" only the selected nodes will be +# rearranged. +#**** +proc rearrange { mode } { + global link_list autorearrange_enabled sizex sizey curcanvas zoom activetool + + set activetool select + + if { $autorearrange_enabled } { + rearrange_off + return + } + set autorearrange_enabled 1 + .bottom.mbuf config -text "autorearrange" + if { $mode == "selected" } { + .menubar.tools entryconfigure "Auto rearrange all" -state disabled + .menubar.tools entryconfigure "Auto rearrange all" -indicatoron off + .menubar.tools entryconfigure "Auto rearrange selected" -indicatoron on + set tagmatch "node && selected" + } else { + .menubar.tools entryconfigure "Auto rearrange all" -indicatoron on + .menubar.tools entryconfigure "Auto rearrange selected" -state disabled + .menubar.tools entryconfigure "Auto rearrange selected" -indicatoron off + set tagmatch "node" + } + set otime [clock clicks -milliseconds] + while { $autorearrange_enabled } { + set ntime [clock clicks -milliseconds] + if { $otime == $ntime } { + set dt 0.001 + } else { + set dt [expr {($ntime - $otime) * 0.001}] + if { $dt > 0.2 } { + set dt 0.2 + } + set otime $ntime + } + + set objects [.c find withtag $tagmatch] + set peer_objects [.c find withtag node] + foreach obj $peer_objects { + set node [lindex [.c gettags $obj] 1] + set coords [.c coords $obj] + set x [expr {[lindex $coords 0] / $zoom}] + set y [expr {[lindex $coords 1] / $zoom}] + set x_t($node) $x + set y_t($node) $y + + if { $x > 0 } { + set fx [expr {1000 / ($x * $x + 100)}] + } else { + set fx 10 + } + set dx [expr {$sizex - $x}] + if { $dx > 0 } { + set fx [expr {$fx - 1000 / ($dx * $dx + 100)}] + } else { + set fx [expr {$fx - 10}] + } + + if { $y > 0 } { + set fy [expr {1000 / ($y * $y + 100)}] + } else { + set fy 10 + } + set dy [expr {$sizey - $y}] + if { $dy > 0 } { + set fy [expr {$fy - 1000 / ($dy * $dy + 100)}] + } else { + set fy [expr {$fy - 10}] + } + set fx_t($node) $fx + set fy_t($node) $fy + } + + foreach obj $objects { + set node [lindex [.c gettags $obj] 1] + set i [lsearch -exact $peer_objects $obj] + set peer_objects [lreplace $peer_objects $i $i] + set x $x_t($node) + set y $y_t($node) + foreach other_obj $peer_objects { + set other [lindex [.c gettags $other_obj] 1] + set o_x $x_t($other) + set o_y $y_t($other) + set dx [expr {$x - $o_x}] + set dy [expr {$y - $o_y}] + set d [expr {hypot($dx, $dy)}] + set d2 [expr {$d * $d}] + set p_fx [expr {1000.0 * $dx / ($d2 * $d + 100)}] + set p_fy [expr {1000.0 * $dy / ($d2 * $d + 100)}] + if {[linkByPeers $node $other] != ""} { + set p_fx [expr {$p_fx - $dx * $d2 * .0000000005}] + set p_fy [expr {$p_fy - $dy * $d2 * .0000000005}] + } + set fx_t($node) [expr {$fx_t($node) + $p_fx}] + set fy_t($node) [expr {$fy_t($node) + $p_fy}] + set fx_t($other) [expr {$fx_t($other) - $p_fx}] + set fy_t($other) [expr {$fy_t($other) - $p_fy}] + } + + foreach link $link_list { + set nodes [linkPeers $link] + if { [getNodeCanvas [lindex $nodes 0]] != $curcanvas || + [getNodeCanvas [lindex $nodes 1]] != $curcanvas || + [getLinkMirror $link] != "" } { + continue + } + set peers [linkPeers $link] + set coords0 [getNodeCoords [lindex $peers 0]] + set coords1 [getNodeCoords [lindex $peers 1]] + set o_x \ + [expr {([lindex $coords0 0] + [lindex $coords1 0]) * .5}] + set o_y \ + [expr {([lindex $coords0 1] + [lindex $coords1 1]) * .5}] + set dx [expr {$x - $o_x}] + set dy [expr {$y - $o_y}] + set d [expr {hypot($dx, $dy)}] + set d2 [expr {$d * $d}] + set fx_t($node) \ + [expr {$fx_t($node) + 500.0 * $dx / ($d2 * $d + 100)}] + set fy_t($node) \ + [expr {$fy_t($node) + 500.0 * $dy / ($d2 * $d + 100)}] + } + } + + foreach obj $objects { + set node [lindex [.c gettags $obj] 1] + if { [catch "set v_t($node)" v] } { + set vx 0.0 + set vy 0.0 + } else { + set vx [lindex $v_t($node) 0] + set vy [lindex $v_t($node) 1] + } + set vx [expr {$vx + 1000.0 * $fx_t($node) * $dt}] + set vy [expr {$vy + 1000.0 * $fy_t($node) * $dt}] + set dampk [expr {0.5 + ($vx * $vx + $vy * $vy) * 0.00001}] + set vx [expr {$vx * exp( - $dampk * $dt)}] + set vy [expr {$vy * exp( - $dampk * $dt)}] + set dx [expr {$vx * $dt}] + set dy [expr {$vy * $dt}] + set x [expr {$x_t($node) + $dx}] + set y [expr {$y_t($node) + $dy}] + set v_t($node) "$vx $vy" + + setNodeCoords $node "$x $y" + set e_dx [expr {$dx * $zoom}] + set e_dy [expr {$dy * $zoom}] + .c move $obj $e_dx $e_dy + set img [.c find withtag "selectmark && $node"] + .c move $img $e_dx $e_dy + set img [.c find withtag "nodelabel && $node"] + .c move $img $e_dx $e_dy + set x [expr {[lindex [.c coords $img] 0] / $zoom}] + set y [expr {[lindex [.c coords $img] 1] / $zoom}] + setNodeLabelCoords $node "$x $y" + .c addtag need_redraw withtag "link && $node" + } + foreach link [.c find withtag "link && need_redraw"] { + redrawLink [lindex [.c gettags $link] 1] + } + .c dtag link need_redraw + update + } + + rearrange_off + .bottom.mbuf config -text "" +} + +proc rearrange_off { } { + global autorearrange_enabled + set autorearrange_enabled 0 + .menubar.tools entryconfigure "Auto rearrange all" -state normal + .menubar.tools entryconfigure "Auto rearrange all" -indicatoron off + .menubar.tools entryconfigure "Auto rearrange selected" -state normal + .menubar.tools entryconfigure "Auto rearrange selected" -indicatoron off +} + + +#****f* editor.tcl/switchCanvas +# NAME +# switchCanvas -- switch canvas +# SYNOPSIS +# switchCanvas $direction +# FUNCTION +# This procedure switches the canvas in one of the defined +# directions (previous, next, first and last). +# INPUTS +# * direction -- the direction of switching canvas. Can be: prev -- +# previus, next -- next, first -- first, last -- last. +#**** +proc switchCanvas { direction } { + global canvas_list curcanvas + global sizex sizey + + set i [lsearch $canvas_list $curcanvas] + switch -exact -- $direction { + prev { + incr i -1 + if { $i < 0 } { + set curcanvas [lindex $canvas_list end] + } else { + set curcanvas [lindex $canvas_list $i] + } + } + next { + incr i + if { $i >= [llength $canvas_list] } { + set curcanvas [lindex $canvas_list 0] + } else { + set curcanvas [lindex $canvas_list $i] + } + } + first { + set curcanvas [lindex $canvas_list 0] + } + last { + set curcanvas [lindex $canvas_list end] + } + } + + .hframe.t delete all + set x 0 + foreach canvas $canvas_list { + set text [.hframe.t create text 0 0 \ + -text "[getCanvasName $canvas]" -tags "text $canvas"] + set ox [lindex [.hframe.t bbox $text] 2] + set oy [lindex [.hframe.t bbox $text] 3] + set tab [.hframe.t create polygon $x 0 [expr {$x + 7}] 18 \ + [expr {$x + 2 * $ox + 17}] 18 [expr {$x + 2 * $ox + 24}] 0 $x 0 \ + -fill gray -tags "tab $canvas"] + set line [.hframe.t create line 0 0 $x 0 [expr {$x + 7}] 18 \ + [expr {$x + 2 * $ox + 17}] 18 [expr {$x + 2 * $ox + 24}] 0 999 0 \ + -fill #808080 -width 2 -tags "line $canvas"] + .hframe.t coords $text [expr {$x + $ox + 12}] [expr {$oy + 2}] + .hframe.t raise $text + incr x [expr {2 * $ox + 17}] + } + incr x 7 + .hframe.t raise "$curcanvas" + .hframe.t itemconfigure "tab && $curcanvas" -fill #e0e0e0 + .hframe.t configure -scrollregion "0 0 $x 18" + update + set width [lindex [.hframe.t configure -width] 4] + set lborder [lindex [.hframe.t bbox "tab && $curcanvas"] 0] + set rborder [lindex [.hframe.t bbox "tab && $curcanvas"] 2] + set lmargin [expr {[lindex [.hframe.t xview] 0] * $x - 1}] + set rmargin [expr {[lindex [.hframe.t xview] 1] * $x + 1}] + if { $lborder < $lmargin } { + .hframe.t xview moveto [expr {1.0 * ($lborder - 10) / $x}] + } + if { $rborder > $rmargin } { + .hframe.t xview moveto [expr {1.0 * ($rborder - $width + 10) / $x}] + } + + set sizex [lindex [getCanvasSize $curcanvas] 0] + set sizey [lindex [getCanvasSize $curcanvas] 1] + + redrawAll +} + +proc resizeCanvasPopup {} { + global curcanvas + + set w .canvasSizeScaleDialog + catch {destroy $w} + toplevel $w + + wm transient $w . + wm title $w "Canvas Size and Scale" + + frame $w.buttons + pack $w.buttons -side bottom -fill x -pady 2m + button $w.buttons.print -text "Apply" -command "resizeCanvasApply $w" + button $w.buttons.cancel -text "Cancel" -command "destroy $w" + pack $w.buttons.print $w.buttons.cancel -side left -expand 1 + + set cursize [getCanvasSize $curcanvas] + set x [lindex $cursize 0] + set y [lindex $cursize 1] + set scale [getCanvasScale $curcanvas] + set refpt [getCanvasRefPoint $curcanvas] + set refx [lindex $refpt 0] + set refy [lindex $refpt 1] + set latitude [lindex $refpt 2] + set longitude [lindex $refpt 3] + set altitude [lindex $refpt 4] + + + labelframe $w.size -text "Size" + frame $w.size.pixels + pack $w.size $w.size.pixels -side top -padx 4 -pady 4 -fill x + spinbox $w.size.pixels.x -bg white -width 5 + $w.size.pixels.x insert 0 $x + $w.size.pixels.x configure -from 300 -to 5000 -increment 2 + label $w.size.pixels.label -text "W x" + spinbox $w.size.pixels.y -bg white -width 5 + $w.size.pixels.y insert 0 $y + $w.size.pixels.y configure -from 300 -to 5000 -increment 2 + label $w.size.pixels.label2 -text "H pixels" + pack $w.size.pixels.x $w.size.pixels.label $w.size.pixels.y \ + $w.size.pixels.label2 -side left -pady 2 -padx 2 -fill x + + frame $w.size.meters + pack $w.size.meters -side top -padx 4 -pady 4 -fill x + spinbox $w.size.meters.x -bg white -width 7 + $w.size.meters.x configure -from 300 -to 10000 -increment 100 + label $w.size.meters.label -text "x" + spinbox $w.size.meters.y -bg white -width 7 + $w.size.meters.y configure -from 300 -to 10000 -increment 100 + label $w.size.meters.label2 -text "meters" + pack $w.size.meters.x $w.size.meters.label $w.size.meters.y \ + $w.size.meters.label2 -side left -pady 2 -padx 2 -fill x + + labelframe $w.scale -text "Scale" + frame $w.scale.ppm + pack $w.scale $w.scale.ppm -side top -padx 4 -pady 4 -fill x + label $w.scale.ppm.label -text "100 pixels =" + entry $w.scale.ppm.metersper100 -bg white -width 10 + $w.scale.ppm.metersper100 insert 0 $scale + label $w.scale.ppm.label2 -text "meters" + pack $w.scale.ppm.label $w.scale.ppm.metersper100 \ + $w.scale.ppm.label2 -side left -pady 2 -padx 2 -fill x + + bind $w.size.pixels.x