[peqi-hackathon-orga] Instructions and Files for Connection Test
Matt Skrzypczyk M.D.Skrzypczyk at student.tudelft.nl
Tue Oct 1 11:18:42 CEST 2019
Harun, Also awesome! Thanks! -Matt ________________________________ From: Harun Siljak <harun.siljak at tcd.ie> Sent: Tuesday, October 1, 2019 11:13:13 AM To: Matt Skrzypczyk; Ernedin Zajko Cc: peqi-hackathon-orga at ripe.net Subject: Re: [peqi-hackathon-orga] Instructions and Files for Connection Test Dublin confirms: everything works, the script had no complaints about our ports. ________________________________ From: peqi-hackathon-orga <peqi-hackathon-orga-bounces at ripe.net> on behalf of Matt Skrzypczyk <M.D.Skrzypczyk at student.tudelft.nl> Sent: Tuesday 1 October 2019 09:47 To: Ernedin Zajko <ezajko at etf.unsa.ba> Cc: peqi-hackathon-orga at ripe.net <peqi-hackathon-orga at ripe.net> Subject: Re: [peqi-hackathon-orga] Instructions and Files for Connection Test Hey Ernedin, Awesome! Thanks, -Matt ________________________________ From: Ernedin Zajko <ezajko at etf.unsa.ba> Sent: Tuesday, October 1, 2019 10:46:43 AM To: Matt Skrzypczyk Cc: peqi-hackathon-orga at ripe.net Subject: Re: [peqi-hackathon-orga] Instructions and Files for Connection Test Hi Matt, Sarajevo in fine (test output is attached, using docker container at the HC venue) regards, --eZ ----- Original Message ----- From: "Matt Skrzypczyk" <M.D.Skrzypczyk at student.tudelft.nl> To: peqi-hackathon-orga at ripe.net Sent: Monday, September 30, 2019 12:35:14 PM Subject: [peqi-hackathon-orga] Instructions and Files for Connection Test 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/972ce0d7/attachment.html>