Skip to content

Index out of range during emulation #24

@Jackbaude

Description

@Jackbaude
Start StarryNet.
rm: cannot remove '/home/baude/git/StarryNet/./starlink-5-5-550-53-grid-LeastDelay/*.txt': No such file or directory
Reset docker environment for constellation emulation ...
Remove legacy containers.
['constellation-test\r\n']
['7079db422c3c\r\n', '7886ffe15304\r\n', '5fb5d8e4245d\r\n', '35d3cef30cb1\r\n', '36ed52b392e3\r\n', 'f51f755569b9\r\n', 'f2cef938db7b\r\n', 'ab0caa4d6c89\r\n', '6dc4e9b054d4\r\n', '84f2792313d5\r\n', '98d110f38424\r\n', 'a9ac27621578\r\n', '1f56d1bfe18e\r\n', 'ec1ede8a4436\r\n', '33f49166eeff\r\n', '8a9078868e0a\r\n', '6d8779148e5f\r\n', '6e066b002e5a\r\n', 'e9aa76bc5644\r\n', 'e4b3db6d7fc0\r\n', 'bbfe3d8fce77\r\n', 'b3a24fc9c9ac\r\n', '63fc5427a3e1\r\n', '4b3cb242977e\r\n', '3d47b3c66332\r\n', 'cab3eb0be7a0\r\n', 'babcda903424\r\n']
Remove legacy emulated ISLs.
Creating new containers...
Rename all containers ...
Constellation initialization done. 27 have been created.
Create Links.
Run in link init thread.
Initializing links ...
Link initialization done.
Copy bird configuration file to each container and run routing process.
Initializing routing ...
Routing initialized!
Bird routing in all containers are running.
node_distance (km): 8148.249253913003
neighbors_index: [2, 5, 6, 21]
GSes are: [26]
LLA: 53.003651,-2.890712,542.611248

IP: []
Emulation in No.2 second.
Emulation in No.3 second.
Exception in thread Thread-10 (sn_ping):
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/home/baude/git/StarryNet/starrynet/sn_utils.py", line 732, in sn_ping
    " ping " + str(des_IP[0][:-1]) + " -c 4 -i 0.01 ")
IndexError: list index out of range
Emulation in No.4 second.
Emulation in No.5 second.
Randomly setting damaged links...

iperf server success
Exception in thread Thread-11 (sn_perf):
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/home/baude/git/StarryNet/starrynet/sn_utils.py", line 762, in sn_perf
    " iperf3 -c " + str(des_IP[0][:-1]) + " -t 5 ")
IndexError: list index out of range
Damage done.

Emulation in No.6 second.
Emulation in No.7 second.
Emulation in No.8 second.
Emulation in No.9 second.
Emulation in No.10 second.
Delay updating done.

Recovering damaged links...

Link recover done.

Emulation in No.11 second.
Emulation in No.12 second.
Emulation in No.13 second.
Emulation in No.14 second.
Emulation in No.15 second.
Emulation in No.16 second.
Emulation in No.17 second.
Emulation in No.18 second.
Emulation in No.19 second.
Emulation in No.20 second.
Delay updating done.

Exception in thread Thread-9:
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/home/baude/git/StarryNet/starrynet/sn_utils.py", line 438, in run
    sn_sr(self.sr_src[index_num],
  File "/home/baude/git/StarryNet/starrynet/sn_utils.py", line 705, in sn_sr
    " ip route del " + str(des_IP[0][:-3]) + "0/24")
IndexError: list index out of range
Deleting all native bridges and containers...

I have built and installed StarryNet as instructed, and I am seeing these errors when I run the example.

{
    "Name": "starlink",
    "Altitude (km)": 550,
    "Cycle (s)": 5731,
    "Inclination": 53,
    "Phase shift": 1,
    "# of orbit": 5,
    "# of satellites": 5,
    "Duration (s)": 100,
    "update_time (s)": 10,
    "satellite link bandwidth (\"X\" Gbps)": 5,
    "sat-ground bandwidth (\"X\" Gbps)": 5,
    "satellite link loss (\"X\"% )": 1,
    "sat-ground loss (\"X\"% )": 1,
    "GS number": 2,
    "antenna number": 1,
    "antenna_inclination_angle": 25,
    "remote_machine_IP": "REDACT",
    "remote_machine_username": "ubuntu",
    "remote_machine_password": "REDACT",
    "Satellite link": "grid",
    "IP version": "IPv4",
    "Intra-AS routing": "OSPF",
    "Inter-AS routing": "BGP",
    "Link policy": "LeastDelay",
    "Handover policy": "instant handover",
    "multi-machine (\"0\" for no, \"1\" for yes)": 0
}

Why is this bug happening? is this an issue with my configuration or with docker or with the code base?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions