Skip to content
This repository was archived by the owner on May 23, 2022. It is now read-only.

Commit 78187d4

Browse files
committed
Added crypto-operations instructions
1 parent 999e1b2 commit 78187d4

File tree

7 files changed

+132
-0
lines changed

7 files changed

+132
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.DS_STORE
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
/--------------------------------------------------------------------------------/
2+
/--------------------------Instructions IC cluster (mininet)---------------------/
3+
/--------------------------------------------------------------------------------/
4+
5+
- Access iccluster website:
6+
http://install.iccluster.epfl.ch/Portal/
7+
8+
- Request servers:
9+
1. Reservations/Spot Reservations -> Make a reservation
10+
a. select date
11+
b. select number of machines
12+
c. reserve
13+
14+
- Setup servers:
15+
1. MyServers/Setup tab
16+
a. add servers to setup list
17+
b. choose boot option: Ubuntu xenial amd64 installation via network
18+
c. select password (Customization): you can choose
19+
d. run setup
20+
21+
2. MyServers/List
22+
a. Actions -> Power -> Power Cycle (for each server)
23+
24+
- Run servers:
25+
Important!
26+
If you are using bn256 curve please add TAGS = “vartime” in your .toml file
27+
28+
0. Remove corresponding ssh keys from .ssh/know_hosts)
29+
30+
1. Build simul executable:
31+
- Execute inside simul/:
32+
go build (if using ed25519)
33+
go build -tags vartime (if using bn256)
34+
35+
2. Run simulation:
36+
./simul -platform mininet [-debug 1] runfiles/xxxxx.toml
37+
38+
3. In your first run you will prompted with a series of configuration questions:
39+
a. "Do you want to run mininet on ICCluster? [Yn]:" Y
40+
b. "Please enter the space separated numbers of the servers [server1 server2 server3]:" 31 32 33
41+
- each number represents the id of each iccluster server: e.g. iccluster031.iccluster.epfl.ch -> 31
42+
c. You will be asked the password for each server
43+
d. Just wait....
44+
45+
4. If you are monitoring time (libunlynx.TIME = true) a new .csv file will be generated/updated under /simul/test_data/
46+
47+
- Notes:
48+
* To access each server:
49+
- remove iccluster servers' keys from .ssh/know_hosts
50+
ssh root@iccluster026.iccluster.epfl.ch
51+
52+
* To reset/retry mininet instalation:
53+
- remove iccluster servers' ssh keys from .ssh/know_hosts
54+
- execute inside simul/:
55+
rm server_list
56+
57+
* To clean mininet:
58+
for a in 31 32 33; do ssh root@iccluster0$a.iccluster.epfl.ch mn -c; done
59+
60+
* If you get a port forwarding problem just reboot the servers
61+
62+
* To see cores execution (inside each server): htop
63+
64+
* To see network bandwidth (inside each server): nload
65+
66+
* You can check the log by accessing cat tmp/mininet.log
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Simulation = "DeterministicTagging"
2+
Servers = 12
3+
Bf = 2
4+
Suite = "Ed25519"
5+
Rounds = 1
6+
RunWait = "24h"
7+
Bandwidth = 1000
8+
9+
Hosts, NbrResponses, NbrGroupAttributes, NbrAggrAttributes, Proofs
10+
12, 200000, 1, 1, false
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Simulation = "DeterministicTagging"
2+
Servers = 3
3+
Bf = 2
4+
Suite = "Ed25519"
5+
Rounds = 1
6+
RunWait = "24h"
7+
Bandwidth = 1000
8+
Delay = 10
9+
10+
Hosts, NbrResponses, NbrGroupAttributes, NbrAggrAttributes, Proofs
11+
3, 15000, 1, 1, false
12+
3, 20000, 1, 1, false
13+
3, 40000, 1, 1, false
14+
3, 60000, 1, 1, false
15+
3, 80000, 1, 1, false
16+
3, 100000, 1, 1, false
17+
3, 120000, 1, 1, false
18+
3, 140000, 1, 1, false
19+
3, 160000, 1, 1, false
20+
3, 180000, 1, 1, false
21+
3, 200000, 1, 1, false
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Simulation = "DeterministicTagging"
2+
Servers = 6
3+
Bf = 2
4+
Suite = "Ed25519"
5+
Rounds = 1
6+
RunWait = "24h"
7+
Bandwidth = 1000
8+
Delay = 10
9+
10+
Hosts, NbrResponses, NbrGroupAttributes, NbrAggrAttributes, Proofs
11+
6, 200000, 1, 1, false
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Simulation = "DeterministicTagging"
2+
Servers = 9
3+
Bf = 2
4+
Suite = "Ed25519"
5+
Rounds = 1
6+
RunWait = "24h"
7+
Bandwidth = 1000
8+
Delay = 10
9+
10+
Hosts, NbrResponses, NbrGroupAttributes, NbrAggrAttributes, Proofs
11+
9, 200000, 1, 1, false
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/--------------------------------------------------------------------------------/
2+
/--------------------------Instructions: Encryption Experiments------------------/
3+
/--------------------------------------------------------------------------------/
4+
5+
- clone the unlynx repo:
6+
git clone https://github.com/ldsec/unlynx.git
7+
8+
- Change the nbrEncryptions variable to 200000 in the TestEncryptIntVector() (lib/crypto_test.go)
9+
10+
- Execute the test:
11+
cd lib
12+
go test -run TestEncryptIntVector

0 commit comments

Comments
 (0)