networkedsystems / lora-ns3 Goto Github PK
View Code? Open in Web Editor NEWns3 lora module
ns3 lora module
LoraWAN partial network implementation ------------------------------------- Introduction ============ LoRaWAN is a long range wireless protocol with interesting features such as: * long range * spread spectrum (enabling to receive multiple packets at the same time) * Scalable data rate - not only to increase the range, but also to schedule dynamically Support ======= Parts that are supported: * Device class A Commands that are supported * LinkAdrReq * LinkAdrAns Topology ======== Device Gateway Network ------ ------- ------- LoRaApplication LoRaSinkApplication LoRaNetwork|LoRaPowerControl LoRaNetDevice LoRaNetDeviceGw | IP layer--------IP layer (Does not matter what protocol.) LoRaPhy LoRaPhy | ----------SpectrumChannel------------ Helper ======
may u help me to solve this problem..i cant run this simulation..there is error..
program 'src/lora/examples/lora' 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', 'fatal-example', 'src/core/examples/fatal-example', '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-onoff', 'src/fd-net-device/examples/fd-emu-onoff', 'fd-emu-tc', 'src/fd-net-device/examples/fd-emu-tc', 'fd-emu-send', 'src/fd-net-device/examples/fd-emu-send', 'fd-emu-udp-echo', 'src/fd-net-device/examples/fd-emu-udp-echo', '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', 'lollipop-comparisions', 'src/network/examples/lollipop-comparisions', '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', 'fqcodel-l4s-example', 'src/traffic-control/examples/fqcodel-l4s-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', 'matrix-topology', 'examples/matrix-topology/matrix-topology', 'simple-error-model', 'examples/error-model/simple-error-model', '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', 'energy-model-example', 'examples/energy/energy-model-example', 'energy-model-with-harvesting-example', 'examples/energy/energy-model-with-harvesting-example', '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', 'object-names', 'examples/naming/object-names', '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', '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', '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', 'tcp-linux-reno', 'examples/tcp/tcp-linux-reno', 'realtime-udp-echo', 'examples/realtime/realtime-udp-echo', 'wifi-example-sim', 'examples/stats/wifi-example-sim', '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', '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', 'subdir', 'scratch/subdir/subdir', 'scratch-simulator', 'scratch/scratch-simulator', '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']
Hi,
I'm trying to do some experiments with out LoRaWAN module and do not understand the RSSI value. It is "infinity" when the sending node is directly located at the gateway and get close to 0 when moving away by 1000 meters.
Normally, the RSSI value is given as (negative) dB value. How is the value in this module to be interpreted?
I appreaciate your feedback.
How to install and run this module in ns3 in ubuntu? What are the command needed for the same?
I got this error https://pastebin.com/0UgF1EmG just after ./waf configure --enable-tests --enable-examples
The ACK test code structure is mainly based on existing lr-wpan test ACK code, however, it seems that the ACK test code has not been finished yet.
excuse me, i want to ask where is location module lora for scheduling?
thankyou
I don't know how to program to get packet error ratio, who can help me?
Hi,
I followed these steps to build this ns-3 module:
wget https://www.nsnam.org/release/ns-allinone-3.28.tar.bz2
tar xvjf ns-allinone-3.28.tar.bz2
cd ns-allinone-3.28/ns-3.28/src/
git clone https://github.com/networkedsystems/lora-ns3.git lora
cd ../
./waf --enable-examples --enable-tests configure
./waf
But I get following error on last step:
source not found: 'model/lora-tsch-net-device.cc' in bld(features=['cxx', 'cxxshlib', 'ns3module'], ns3_dir_location='src/lora', ...
I guess some of the lora-ns3 module source files are missing on current codebase.
Thanks,
Tugrul
could you give me a suggestion for me?
hello...may I ask something..why i can't install this module...using ./waf build
can u give me the instruction on how to install this module in ns3.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.