telematics-dev / MEC-simulator

GNU General Public License v2.0
4 stars 0 forks source link

example script problem #1

Open hoohoopp0 opened 3 years ago

hoohoopp0 commented 3 years ago

When I run ./waf --run mec-sim_scenario1.cc ...Resolve after copying the data to /scratch

Now i get the error message below...how can i fix it ?

Waf: Entering directory `/home/ee/repos/tarballs/ns-allinone-3.31/ns-3.31/build' program '/home/ee/repos/tarballs/ns-allinone-3.31/ns-3.31/contrib/mec-sim/examples/mec-sim_scenario1.cc' not found; available programs are: ['aodv', 'src/aodv/examples/aodv', 'three-gpp-http-example', 'src/applications/examples/three-gpp-http-example', 'csma-bridge', 'src/bridge/examples/csma-bridge', 'csma-bridge-one-hop', 'src/bridge/examples/csma-bridge-one-hop', 'buildings-pathloss-profiler', 'src/buildings/examples/buildings-pathloss-profiler', 'outdoor-random-walk-example', 'src/buildings/examples/outdoor-random-walk-example', 'config-store-save', 'src/config-store/examples/config-store-save', 'main-callback', 'src/core/examples/main-callback', 'sample-simulator', 'src/core/examples/sample-simulator', 'main-ptr', 'src/core/examples/main-ptr', 'main-random-variable-stream', 'src/core/examples/main-random-variable-stream', 'sample-random-variable', 'src/core/examples/sample-random-variable', 'sample-random-variable-stream', 'src/core/examples/sample-random-variable-stream', 'command-line-example', 'src/core/examples/command-line-example', 'hash-example', 'src/core/examples/hash-example', 'sample-log-time-format', 'src/core/examples/sample-log-time-format', 'test-string-value-formatting', 'src/core/examples/test-string-value-formatting', 'sample-show-progress', 'src/core/examples/sample-show-progress', 'empirical-random-variable-example', 'src/core/examples/empirical-random-variable-example', 'system-path-examples', 'src/core/examples/system-path-examples', 'main-test-sync', 'src/core/examples/main-test-sync', 'csma-one-subnet', 'src/csma/examples/csma-one-subnet', 'csma-broadcast', 'src/csma/examples/csma-broadcast', 'csma-packet-socket', 'src/csma/examples/csma-packet-socket', 'csma-multicast', 'src/csma/examples/csma-multicast', 'csma-raw-ip-socket', 'src/csma/examples/csma-raw-ip-socket', 'csma-ping', 'src/csma/examples/csma-ping', 'csma-star', 'src/csma-layout/examples/csma-star', 'dsdv-manet', 'src/dsdv/examples/dsdv-manet', 'dsr', 'src/dsr/examples/dsr', 'li-ion-energy-source', 'src/energy/examples/li-ion-energy-source', 'rv-battery-model-test', 'src/energy/examples/rv-battery-model-test', 'basic-energy-model-test', 'src/energy/examples/basic-energy-model-test', 'dummy-network', 'src/fd-net-device/examples/dummy-network', 'fd2fd-onoff', 'src/fd-net-device/examples/fd2fd-onoff', 'realtime-dummy-network', 'src/fd-net-device/examples/realtime-dummy-network', 'realtime-fd2fd-onoff', 'src/fd-net-device/examples/realtime-fd2fd-onoff', 'fd-emu-ping', 'src/fd-net-device/examples/fd-emu-ping', 'fd-emu-udp-echo', 'src/fd-net-device/examples/fd-emu-udp-echo', 'fd-emu-onoff', 'src/fd-net-device/examples/fd-emu-onoff', 'fd-tap-ping', 'src/fd-net-device/examples/fd-tap-ping', 'fd-tap-ping6', 'src/fd-net-device/examples/fd-tap-ping6', 'main-simple', 'src/internet/examples/main-simple', 'dhcp-example', 'src/internet-apps/examples/dhcp-example', 'traceroute-example', 'src/internet-apps/examples/traceroute-example', 'lr-wpan-packet-print', 'src/lr-wpan/examples/lr-wpan-packet-print', 'lr-wpan-phy-test', 'src/lr-wpan/examples/lr-wpan-phy-test', 'lr-wpan-data', 'src/lr-wpan/examples/lr-wpan-data', 'lr-wpan-error-model-plot', 'src/lr-wpan/examples/lr-wpan-error-model-plot', 'lr-wpan-error-distance-plot', 'src/lr-wpan/examples/lr-wpan-error-distance-plot', 'lr-wpan-mlme', 'src/lr-wpan/examples/lr-wpan-mlme', 'lena-cqi-threshold', 'src/lte/examples/lena-cqi-threshold', 'lena-dual-stripe', 'src/lte/examples/lena-dual-stripe', 'lena-fading', 'src/lte/examples/lena-fading', 'lena-intercell-interference', 'src/lte/examples/lena-intercell-interference', 'lena-ipv6-addr-conf', 'src/lte/examples/lena-ipv6-addr-conf', 'lena-ipv6-ue-rh', 'src/lte/examples/lena-ipv6-ue-rh', 'lena-ipv6-ue-ue', 'src/lte/examples/lena-ipv6-ue-ue', 'lena-pathloss-traces', 'src/lte/examples/lena-pathloss-traces', 'lena-profiling', 'src/lte/examples/lena-profiling', 'lena-rem', 'src/lte/examples/lena-rem', 'lena-rem-sector-antenna', 'src/lte/examples/lena-rem-sector-antenna', 'lena-rlc-traces', 'src/lte/examples/lena-rlc-traces', 'lena-simple', 'src/lte/examples/lena-simple', 'lena-simple-epc', 'src/lte/examples/lena-simple-epc', 'lena-simple-epc-backhaul', 'src/lte/examples/lena-simple-epc-backhaul', 'lena-deactivate-bearer', 'src/lte/examples/lena-deactivate-bearer', 'lena-x2-handover', 'src/lte/examples/lena-x2-handover', 'lena-x2-handover-measures', 'src/lte/examples/lena-x2-handover-measures', 'lena-frequency-reuse', 'src/lte/examples/lena-frequency-reuse', 'lena-distributed-ffr', 'src/lte/examples/lena-distributed-ffr', 'lena-uplink-power-control', 'src/lte/examples/lena-uplink-power-control', 'lena-radio-link-failure', 'src/lte/examples/lena-radio-link-failure', 'lena-simple-epc-emu', 'src/lte/examples/lena-simple-epc-emu', 'mesh', 'src/mesh/examples/mesh', 'main-grid-topology', 'src/mobility/examples/main-grid-topology', 'main-random-topology', 'src/mobility/examples/main-random-topology', 'main-random-walk', 'src/mobility/examples/main-random-walk', 'mobility-trace-example', 'src/mobility/examples/mobility-trace-example', 'ns2-mobility-trace', 'src/mobility/examples/ns2-mobility-trace', 'bonnmotion-ns2-example', 'src/mobility/examples/bonnmotion-ns2-example', 'dumbbell-animation', 'src/netanim/examples/dumbbell-animation', 'grid-animation', 'src/netanim/examples/grid-animation', 'star-animation', 'src/netanim/examples/star-animation', 'wireless-animation', 'src/netanim/examples/wireless-animation', 'uan-animation', 'src/netanim/examples/uan-animation', 'colors-link-description', 'src/netanim/examples/colors-link-description', 'resources-counters', 'src/netanim/examples/resources-counters', 'main-packet-header', 'src/network/examples/main-packet-header', 'main-packet-tag', 'src/network/examples/main-packet-tag', 'packet-socket-apps', 'src/network/examples/packet-socket-apps', 'nix-simple', 'src/nix-vector-routing/examples/nix-simple', 'nms-p2p-nix', 'src/nix-vector-routing/examples/nms-p2p-nix', 'simple-point-to-point-olsr', 'src/olsr/examples/simple-point-to-point-olsr', 'olsr-hna', 'src/olsr/examples/olsr-hna', 'main-attribute-value', 'src/point-to-point/examples/main-attribute-value', 'main-propagation-loss', 'src/propagation/examples/main-propagation-loss', 'jakes-propagation-model-example', 'src/propagation/examples/jakes-propagation-model-example', 'example-sixlowpan', 'src/sixlowpan/examples/example-sixlowpan', 'example-ping-lr-wpan', 'src/sixlowpan/examples/example-ping-lr-wpan', 'example-ping-lr-wpan-beacon', 'src/sixlowpan/examples/example-ping-lr-wpan-beacon', 'example-ping-lr-wpan-mesh-under', 'src/sixlowpan/examples/example-ping-lr-wpan-mesh-under', 'adhoc-aloha-ideal-phy', 'src/spectrum/examples/adhoc-aloha-ideal-phy', 'adhoc-aloha-ideal-phy-matrix-propagation-loss-model', 'src/spectrum/examples/adhoc-aloha-ideal-phy-matrix-propagation-loss-model', 'adhoc-aloha-ideal-phy-with-microwave-oven', 'src/spectrum/examples/adhoc-aloha-ideal-phy-with-microwave-oven', 'tv-trans-example', 'src/spectrum/examples/tv-trans-example', 'tv-trans-regional-example', 'src/spectrum/examples/tv-trans-regional-example', 'three-gpp-channel-example', 'src/spectrum/examples/three-gpp-channel-example', 'gnuplot-example', 'src/stats/examples/gnuplot-example', 'double-probe-example', 'src/stats/examples/double-probe-example', 'time-probe-example', 'src/stats/examples/time-probe-example', 'gnuplot-aggregator-example', 'src/stats/examples/gnuplot-aggregator-example', 'gnuplot-helper-example', 'src/stats/examples/gnuplot-helper-example', 'file-aggregator-example', 'src/stats/examples/file-aggregator-example', 'file-helper-example', 'src/stats/examples/file-helper-example', 'tap-csma', 'src/tap-bridge/examples/tap-csma', 'tap-csma-virtual-machine', 'src/tap-bridge/examples/tap-csma-virtual-machine', 'tap-wifi-virtual-machine', 'src/tap-bridge/examples/tap-wifi-virtual-machine', 'tap-wifi-dumbbell', 'src/tap-bridge/examples/tap-wifi-dumbbell', 'topology-example-sim', 'src/topology-read/examples/topology-example-sim', 'red-tests', 'src/traffic-control/examples/red-tests', 'red-vs-ared', 'src/traffic-control/examples/red-vs-ared', 'adaptive-red-tests', 'src/traffic-control/examples/adaptive-red-tests', 'pfifo-vs-red', 'src/traffic-control/examples/pfifo-vs-red', 'codel-vs-pfifo-basic-test', 'src/traffic-control/examples/codel-vs-pfifo-basic-test', 'codel-vs-pfifo-asymmetric', 'src/traffic-control/examples/codel-vs-pfifo-asymmetric', 'pie-example', 'src/traffic-control/examples/pie-example', 'uan-cw-example', 'src/uan/examples/uan-cw-example', 'uan-rc-example', 'src/uan/examples/uan-rc-example', 'uan-raw-example', 'src/uan/examples/uan-raw-example', 'uan-ipv4-example', 'src/uan/examples/uan-ipv4-example', 'uan-ipv6-example', 'src/uan/examples/uan-ipv6-example', 'uan-6lowpan-example', 'src/uan/examples/uan-6lowpan-example', 'virtual-net-device', 'src/virtual-net-device/examples/virtual-net-device', 'wave-simple-80211p', 'src/wave/examples/wave-simple-80211p', 'wave-simple-device', 'src/wave/examples/wave-simple-device', 'vanet-routing-compare', 'src/wave/examples/vanet-routing-compare', 'wifi-phy-test', 'src/wifi/examples/wifi-phy-test', 'wifi-test-interference-helper', 'src/wifi/examples/wifi-test-interference-helper', 'wifi-manager-example', 'src/wifi/examples/wifi-manager-example', 'wifi-trans-example', 'src/wifi/examples/wifi-trans-example', 'wifi-phy-configuration', 'src/wifi/examples/wifi-phy-configuration', 'wifi-bianchi', 'src/wifi/examples/wifi-bianchi', 'wimax-ipv4', 'src/wimax/examples/wimax-ipv4', 'wimax-multicast', 'src/wimax/examples/wimax-multicast', 'wimax-simple', 'src/wimax/examples/wimax-simple', 'mec-sim_scenario1', 'contrib/mec-sim/examples/mec-sim_scenario1', 'mec-sim_scenario2', 'contrib/mec-sim/examples/mec-sim_scenario2', 'object-names', 'examples/naming/object-names', 'udp-echo', 'examples/udp/udp-echo', 'udp-client-server', 'examples/udp-client-server/udp-client-server', 'udp-trace-client-server', 'examples/udp-client-server/udp-trace-client-server', 'wifi-example-sim', 'examples/stats/wifi-example-sim', 'energy-model-example', 'examples/energy/energy-model-example', 'energy-model-with-harvesting-example', 'examples/energy/energy-model-with-harvesting-example', 'simple-error-model', 'examples/error-model/simple-error-model', 'hello-simulator', 'examples/tutorial/hello-simulator', 'first', 'examples/tutorial/first', 'second', 'examples/tutorial/second', 'third', 'examples/tutorial/third', 'fourth', 'examples/tutorial/fourth', 'fifth', 'examples/tutorial/fifth', 'sixth', 'examples/tutorial/sixth', 'seventh', 'examples/tutorial/seventh', 'mixed-wired-wireless', 'examples/wireless/mixed-wired-wireless', 'wifi-adhoc', 'examples/wireless/wifi-adhoc', 'wifi-clear-channel-cmu', 'examples/wireless/wifi-clear-channel-cmu', 'wifi-ap', 'examples/wireless/wifi-ap', 'wifi-wired-bridging', 'examples/wireless/wifi-wired-bridging', 'wifi-multirate', 'examples/wireless/wifi-multirate', 'wifi-simple-adhoc', 'examples/wireless/wifi-simple-adhoc', 'wifi-simple-adhoc-grid', 'examples/wireless/wifi-simple-adhoc-grid', 'wifi-simple-infra', 'examples/wireless/wifi-simple-infra', 'wifi-simple-interference', 'examples/wireless/wifi-simple-interference', 'wifi-blockack', 'examples/wireless/wifi-blockack', 'wifi-dsss-validation', 'examples/wireless/wifi-dsss-validation', 'wifi-ofdm-validation', 'examples/wireless/wifi-ofdm-validation', 'wifi-ofdm-ht-validation', 'examples/wireless/wifi-ofdm-ht-validation', 'wifi-ofdm-vht-validation', 'examples/wireless/wifi-ofdm-vht-validation', 'wifi-hidden-terminal', 'examples/wireless/wifi-hidden-terminal', 'wifi-ht-network', 'examples/wireless/wifi-ht-network', 'wifi-vht-network', 'examples/wireless/wifi-vht-network', 'wifi-timing-attributes', 'examples/wireless/wifi-timing-attributes', 'wifi-sleep', 'examples/wireless/wifi-sleep', 'wifi-power-adaptation-distance', 'examples/wireless/wifi-power-adaptation-distance', 'wifi-power-adaptation-interference', 'examples/wireless/wifi-power-adaptation-interference', 'wifi-rate-adaptation-distance', 'examples/wireless/wifi-rate-adaptation-distance', 'wifi-aggregation', 'examples/wireless/wifi-aggregation', 'wifi-txop-aggregation', 'examples/wireless/wifi-txop-aggregation', 'wifi-simple-ht-hidden-stations', 'examples/wireless/wifi-simple-ht-hidden-stations', 'wifi-80211n-mimo', 'examples/wireless/wifi-80211n-mimo', 'wifi-mixed-network', 'examples/wireless/wifi-mixed-network', 'wifi-tcp', 'examples/wireless/wifi-tcp', 'wifi-80211e-txop', 'examples/wireless/wifi-80211e-txop', 'wifi-spectrum-per-example', 'examples/wireless/wifi-spectrum-per-example', 'wifi-spectrum-per-interference', 'examples/wireless/wifi-spectrum-per-interference', 'wifi-spectrum-saturation-example', 'examples/wireless/wifi-spectrum-saturation-example', 'wifi-ofdm-he-validation', 'examples/wireless/wifi-ofdm-he-validation', 'wifi-he-network', 'examples/wireless/wifi-he-network', 'wifi-multi-tos', 'examples/wireless/wifi-multi-tos', 'wifi-backward-compatibility', 'examples/wireless/wifi-backward-compatibility', 'wifi-pcf', 'examples/wireless/wifi-pcf', 'wifi-spatial-reuse', 'examples/wireless/wifi-spatial-reuse', 'matrix-topology', 'examples/matrix-topology/matrix-topology', 'realtime-udp-echo', 'examples/realtime/realtime-udp-echo', 'socket-bound-static-routing', 'examples/socket/socket-bound-static-routing', 'socket-bound-tcp-static-routing', 'examples/socket/socket-bound-tcp-static-routing', 'socket-options-ipv4', 'examples/socket/socket-options-ipv4', 'socket-options-ipv6', 'examples/socket/socket-options-ipv6', 'icmpv6-redirect', 'examples/ipv6/icmpv6-redirect', 'ping6', 'examples/ipv6/ping6', 'radvd', 'examples/ipv6/radvd', 'radvd-two-prefix', 'examples/ipv6/radvd-two-prefix', 'test-ipv6', 'examples/ipv6/test-ipv6', 'fragmentation-ipv6', 'examples/ipv6/fragmentation-ipv6', 'fragmentation-ipv6-two-MTU', 'examples/ipv6/fragmentation-ipv6-two-MTU', 'loose-routing-ipv6', 'examples/ipv6/loose-routing-ipv6', 'wsn-ping6', 'examples/ipv6/wsn-ping6', 'dynamic-global-routing', 'examples/routing/dynamic-global-routing', 'static-routing-slash32', 'examples/routing/static-routing-slash32', 'global-routing-slash32', 'examples/routing/global-routing-slash32', 'global-injection-slash32', 'examples/routing/global-injection-slash32', 'simple-global-routing', 'examples/routing/simple-global-routing', 'simple-alternate-routing', 'examples/routing/simple-alternate-routing', 'mixed-global-routing', 'examples/routing/mixed-global-routing', 'simple-routing-ping6', 'examples/routing/simple-routing-ping6', 'manet-routing-compare', 'examples/routing/manet-routing-compare', 'ripng-simple-network', 'examples/routing/ripng-simple-network', 'rip-simple-network', 'examples/routing/rip-simple-network', 'global-routing-multi-switch-plus-router', 'examples/routing/global-routing-multi-switch-plus-router', 'simple-multicast-flooding', 'examples/routing/simple-multicast-flooding', 'tcp-large-transfer', 'examples/tcp/tcp-large-transfer', 'tcp-nsc-lfn', 'examples/tcp/tcp-nsc-lfn', 'tcp-nsc-zoo', 'examples/tcp/tcp-nsc-zoo', 'tcp-star-server', 'examples/tcp/tcp-star-server', 'star', 'examples/tcp/star', 'tcp-bulk-send', 'examples/tcp/tcp-bulk-send', 'tcp-pcap-nanosec-example', 'examples/tcp/tcp-pcap-nanosec-example', 'tcp-nsc-comparison', 'examples/tcp/tcp-nsc-comparison', 'tcp-variants-comparison', 'examples/tcp/tcp-variants-comparison', 'tcp-pacing', 'examples/tcp/tcp-pacing', 'dctcp-example', 'examples/tcp/dctcp-example', 'traffic-control', 'examples/traffic-control/traffic-control', 'queue-discs-benchmark', 'examples/traffic-control/queue-discs-benchmark', 'red-vs-fengadaptive', 'examples/traffic-control/red-vs-fengadaptive', 'red-vs-nlred', 'examples/traffic-control/red-vs-nlred', 'tbf-example', 'examples/traffic-control/tbf-example', 'cobalt-vs-codel', 'examples/traffic-control/cobalt-vs-codel', 'scratch-simulator', 'scratch/scratch-simulator', 'subdir', 'scratch/subdir/subdir', 'test-runner', 'utils/test-runner', 'bench-simulator', 'utils/bench-simulator', 'bench-packets', 'utils/bench-packets', 'print-introspected-doxygen', 'utils/print-introspected-doxygen', 'tap-device-creator', 'src/fd-net-device/tap-device-creator', 'raw-sock-creator', 'src/fd-net-device/raw-sock-creator', 'tap-creator', 'src/tap-bridge/tap-creator']

telematics-dev commented 3 years ago

You should run "./waf --run mec-sim_scenario1"

hoohoopp0 commented 3 years ago

You should run "./waf --run mec-sim_scenario1"

Thank you for your answer. When I run "./waf --run first", get the successful message. Then I run "./waf --run mec-sim_scenario1", get the error message and empty csv file.

Waf: Entering directory /home/ee/repos/tarballs/ns-allinone-3.31/ns-3.31/build' Waf: Leaving directory/home/ee/repos/tarballs/ns-allinone-3.31/ns-3.31/build' Build commands will be stored in build/compile_commands.json 'build' finished successfully (1.538s) +0.000000000s MEC SYSTEM CREATION +0.000000000s - UserApplicationLcmProxy Created ualcmpID: 1 +0.000000000s - OperationsSupportSystem Created ossID: 2 +0.000000000s - MultiaccessEdgeOrchestrator Created meoID: 3 +0.000000000s - BaseStation Added bsId: 1 Position: x = 100,y = 100,z = 150 +0.000000000s - BaseStation Added bsId: 2 Position: x = 300,y = 100,z = 150 +0.000000000s - BaseStation Added bsId: 3 Position: x = 500,y = 100,z = 150 +0.000000000s - BaseStation Added bsId: 4 Position: x = 700,y = 100,z = 150 +0.000000000s - BaseStation Added bsId: 5 Position: x = 100,y = 300,z = 150 +0.000000000s - BaseStation Added bsId: 6 Position: x = 300,y = 300,z = 150 +0.000000000s - BaseStation Added bsId: 7 Position: x = 500,y = 300,z = 150 +0.000000000s - BaseStation Added bsId: 8 Position: x = 700,y = 300,z = 150 +0.000000000s - BaseStation Added bsId: 9 Position: x = 100,y = 500,z = 150 +0.000000000s - BaseStation Added bsId: 10 Position: x = 300,y = 500,z = 150 +0.000000000s - BaseStation Added bsId: 11 Position: x = 500,y = 500,z = 150 +0.000000000s - BaseStation Added bsId: 12 Position: x = 700,y = 500,z = 150 +0.000000000s - BaseStation Added bsId: 13 Position: x = 100,y = 700,z = 150 +0.000000000s - BaseStation Added bsId: 14 Position: x = 300,y = 700,z = 150 +0.000000000s - BaseStation Added bsId: 15 Position: x = 500,y = 700,z = 150 +0.000000000s - BaseStation Added bsId: 16 Position: x = 700,y = 700,z = 150 +0.000000000s - MecHost Added hostId: 100000 CPU (300000 MIps) MEMORY (16 GB) STORAGE (240 GB) +0.000000000s - MecHost Added hostId: 200000 CPU (300000 MIps) MEMORY (16 GB) STORAGE (240 GB) +0.000000000s - MecHost Added hostId: 300000 CPU (300000 MIps) MEMORY (16 GB) STORAGE (240 GB) +0.000000000s - MecHost Added hostId: 400000 CPU (300000 MIps) MEMORY (16 GB) STORAGE (240 GB) +0.000000000s - MecHost Added hostId: 500000 CPU (300000 MIps) MEMORY (16 GB) STORAGE (240 GB) +0.000000000s - MecHost Added hostId: 600000 CPU (300000 MIps) MEMORY (16 GB) STORAGE (240 GB) +0.000000000s - MecHost Added hostId: 700000 CPU (300000 MIps) MEMORY (16 GB) STORAGE (240 GB) +0.000000000s - MecHost Added hostId: 800000 CPU (300000 MIps) MEMORY (16 GB) STORAGE (240 GB) +0.000000000s - MecHost Added hostId: 900000 CPU (300000 MIps) MEMORY (16 GB) STORAGE (240 GB) +0.000000000s - MecHost Added hostId: 1000000CPU (300000 MIps) MEMORY (16 GB) STORAGE (240 GB) +0.000000000s - MecHost Added hostId: 1100000CPU (300000 MIps) MEMORY (16 GB) STORAGE (240 GB) +0.000000000s - MecHost Added hostId: 1200000CPU (300000 MIps) MEMORY (16 GB) STORAGE (240 GB) +0.000000000s - MecHost Added hostId: 1300000CPU (300000 MIps) MEMORY (16 GB) STORAGE (240 GB) +0.000000000s - MecHost Added hostId: 1400000CPU (300000 MIps) MEMORY (16 GB) STORAGE (240 GB) +0.000000000s - MecHost Added hostId: 1500000CPU (300000 MIps) MEMORY (16 GB) STORAGE (240 GB) +0.000000000s - MecHost Added hostId: 1600000CPU (300000 MIps) MEMORY (16 GB) STORAGE (240 GB) +0.000000000s - UserEquipment Added imsi: 2221034000000001 +0.000000000s - UserEquipment Added imsi: 2221034000000002 +0.000000000s - UserEquipment Added imsi: 2221034000000003 +0.000000000s - UserEquipment Added imsi: 2221034000000004 +0.000000000s - UserEquipment Added imsi: 2221034000000005 +0.000000000s - UserEquipment Added imsi: 2221034000000006 +0.000000000s - UserEquipment Added imsi: 2221034000000007 +0.000000000s - UserEquipment Added imsi: 2221034000000008 +0.000000000s - UserEquipment Added imsi: 2221034000000009 +0.000000000s - UserEquipment Added imsi: 2221034000000010 +0.000000000s - UserEquipment Added imsi: 2221034000000011 +0.146938219s ns3::UserEquipment(imsi: 2221034000000006) Send ns3::CreateAppContextRequest(ContextId: 1) +0.160968324s ns3::UserEquipment(imsi: 2221034000000007) Send ns3::CreateAppContextRequest(ContextId: 1) +0.205631044s ns3::UserEquipment(imsi: 2221034000000010) Send ns3::CreateAppContextRequest(ContextId: 1) +0.260605462s ns3::UserEquipment(imsi: 2221034000000004) Send ns3::CreateAppContextRequest(ContextId: 1) +0.550093522s ns3::UserEquipment(imsi: 2221034000000008) Send ns3::CreateAppContextRequest(ContextId: 1) +0.689700091s ns3::UserEquipment(imsi: 2221034000000006) Process ns3::CreateAppContextResponse(ContextId: 1, Mec Host ID: 900000, RespCode: 201, ProblemDetails: MecApp successfull instantiate!) Command ['/home/ee/repos/tarballs/ns-allinone-3.31/ns-3.31/build/contrib/mec-sim/examples/ns3.31-mec-sim_scenario1-debug'] terminated with signal SIGSEGV. Run it under a debugger to get more information (./waf --run --gdb").

Program received signal SIGSEGV, Segmentation fault. 0x00007ffff750907f in ns3::MecDelayModel::GetRadioDelay (this=0x7fffde6a2010, activeFlow=807417136, appid=3) at ../contrib/mec-sim/model/mec-delay-model.cc:128 128 case 3: t = m_radioDelay3[j][activeFlow];

At ../contrib/mec-sim/model/mec-delay-model.cc:128 I don't know why "activeFlow" will be greater than 40

telematics-dev commented 3 years ago

You have to extract radio_delay.zip:

cd ./<Your workplace>/ns-3-allinone/ns-3.31/contrib/mec-sim/model unzip radio_delay.zip rm radio_delay.zip

hoohoopp0 commented 3 years ago

Thank you for your answer.

  1. This problem seems to not happen only when Ubuntu=20.04, I have tested it... Program received signal SIGSEGV, Segmentation fault. 0x00007ffff750907f in ns3::MecDelayModel::GetRadioDelay (this=0x7fffde6a2010, activeFlow=807417136, appid=3) at ../contrib/mec-sim/model/mec-delay-model.cc:128 128 case 3: t = m_radioDelay3[j][activeFlow];

  2. In ../contrib/mec-sim/model/logging-to-file.cc:66, this code should be task_file << Now().GetSeconds() << "; " << imsi << "; " << appDiD << "; "<< ContextId << "; " << hostId <<"; " << e2e <<"; "<< processing <<"\n";}

The above report to you.

hoohoopp0 commented 3 years ago

I have a question about "Orchestration of MEC resources", I cannot find FindBestHost(), how to set custom Orchestration of MEC resources and set different CPUMips, VirtualMemSize, and SizeOfStorage MECAPP?

telematics-dev commented 3 years ago

the method FindBestHost() can be found in: /contrib/mec-sim/model/mec-entity-meo.h -> row 135 /contrib/mec-sim/model/mec-entity-meo.cc -> row 761

Instead you can find MEC App property in /contrib/mec-sim/model/app-repository.cc

hoohoopp0 commented 2 years ago

I want to know the calculation method of CpuUsage (such as those parameters of the application will affect CpuUsage), a task of a UE occupies 46% of the CPU resources...

thanks.