[peqi-hackathon-orga] Instructions and Files for Connection Test
Mujtaba Zahidy mujtaba.zahidy at studenti.unipd.it
Tue Oct 1 11:56:34 CEST 2019
Padova OK. Test was successful. However, due to the policy of the network in the venue of Hackathon, I need to send a formal request, for them to grant us access to the ports. Only a limited number of ports are open for 2-way communication here. I appreciate it if you can inform us about the final list of ports needed (if it is going to be different from the ones in the test script) a couple of days before the event so we can arrange for it. Kind regards, Mujtaba On Mon, Sep 30, 2019 at 12:35 PM Matt Skrzypczyk < M.D.Skrzypczyk at student.tudelft.nl> wrote: > Hello technical contacts! > > > This morning I have had the opportunity to verify the test set up for > tomorrow. There were a few unexpected hiccups due to a couple restricted > ports on AWS's end but this only requires a few modifications to resolve. > Please find the necessary connection test script and configuration file > attached to this email as well as a short description of how to perform the > test below. We will need a little bit of coordination among ourselves to > make sure we do not interfere with each other while executing the test > code. The infrastructure for the test involves two AWS instances each of > which is running a single simulated network node (Alice and Bob). The > tests will perform the following set of actions: > > > > 1. Verify that the machine at your local node is able to communicate > with the Alice and Bob simulated nodes and that Alice and Bob are able to > communicate across the AWS instances. This communication will rely on > access to ports 8011 and 8014. > 2. Verify that the remaining ports in the default port range are > accessible. Due to the AWS hiccups I mentioned this port range has been > slightly modified to 8016 to 8079, (the simulaqron tests from 1 verify > 8010-8015 are fine). > 3. Rerun the same tests in 1 but this time using port 80 for > communications to verify port forwarding. > > > These tests should be sufficient for verifying that machines in your local > network will be able to connect to the infrastructure we plan to set up for > the hackathon event. > > In order to run the tests I have included a configuration file > (connection_test_config.json) which needs to be placed in the correct > location on your test machine. If you followed the previous email > regarding setting up simulaqron in preparation for the tests, you can find > where the default simulaqron configuration file is located by running the > following command: > > *simulaqron get network-config-file* > > On my own local machine this provides me the following path in the output: > > */usr/local/lib/python3.7/site-packages/simulaqron/config/network.json* > > The path output on your own machine may be slightly different and should > be noted. Next, copy the connection_test_config.json to this same path: > > *cp connection_test_config.json > /usr/local/lib/python3.7/site-packages/simulaqron/config/network.json* > > Alternatively, you can combine the two: > > *cp connection_test_config.json $(simulaqron get network-config-file)* > > Once the configuration file has been copied, verify that the contents of > the path to the simulaqron network config file matches the configuration > file I have provided. > > After the configuration file has been copied, we can begin the tests! > Simply run the python script using Python 3 and this will execute the tests: > > *python3 connection_test.py* > > Some output will appear indicating the status of the tests, if all goes > well then you should see the following output indicating no failures: > > Beginning Simulaqron connection tests > Test 1: Successfully verified creating EPR pairs. > Test 2: Successfully verified sending qubits. > Simulaqron tests passed! > Beginning port scan tests > Port scan tests passed! > Beginning port forwarding tests > Test 1: Successfully verified creating EPR pairs. > Test 2: Successfully verified sending qubits. > Port forwarding tests passed! > All tests have been run > > If you see the output above then great your location's network > configuration should be sufficient and your node will be ready to test the > final infrastructure before the hackathon! If you get any errors running > the script please email the output to me and I will try to help however I > can :). > > If anyone has any other questions regarding the instructions above please > feel free to reach out to me :). > > At this point from Harold we know that they will need to run the test > around 9:30am or around 5:00pm, if the other technical contacts can please > choose a time they would like to run the tests tomorrow then we can ensure > that the tests are isolated from one another. As I mentioned before, I > will leave the test infrastructure stood up (starting as of now) throughout > the day of October 1st so that tests can be done whenever (even today if > you are eager). > > Thanks for everything and fingers crossed for the tests! > -Matt > -- > peqi-hackathon-orga mailing list > peqi-hackathon-orga at ripe.net > https://lists.ripe.net/mailman/listinfo/peqi-hackathon-orga > -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.ripe.net/ripe/mail/archives/peqi-hackathon-orga/attachments/20191001/61a479da/attachment-0001.html>