mirror of
https://gitlab.com/manzerbredes/esds.git
synced 2025-04-19 03:59:45 +00:00
Update user manual
This commit is contained in:
parent
c1ac340350
commit
0177500584
5 changed files with 37 additions and 16 deletions
|
@ -10,8 +10,8 @@ L=np.full((n,n),0) # Latency 0s
|
|||
s=esds.Simulator({"wlan0":{"bandwidth":B, "latency":L, "is_wired":False}})
|
||||
|
||||
##### Instantiate nodes with their implementation
|
||||
s.create_node("node",args="sender") # Use node.py for the first node with "sender" as argument
|
||||
s.create_node("node",args="receiver") # Now the second node
|
||||
s.create_node("node",interfaces=["wlan0"],args="sender") # Use node.py for the first node, specify the vailable communication interfaces and use "sender" as argument
|
||||
s.create_node("node",interfaces=["wlan0"],args="receiver") # Now the second node
|
||||
|
||||
##### Run the simulation
|
||||
s.run(interferences=True)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
[t=0.000,src=n0] Send 10 bytes on wlan0
|
||||
[t=0.002,src=n1] Receive 10 bytes on wlan0
|
||||
[t=0.000,src=n0,grp=def] Send 10 bytes on wlan0
|
||||
[t=0.002,src=n1,grp=def] Receive 10 bytes on wlan0
|
||||
[t=0.002,src=esds] Simulation ends
|
||||
|
|
|
@ -12,6 +12,7 @@ nodes:
|
|||
interfaces:
|
||||
wlan0:
|
||||
type: "wireless"
|
||||
nodes: all # All nodes are connected to this network
|
||||
links:
|
||||
- all 50kbps 0s all # All nodes are reachable by each other
|
||||
txperfs:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue