Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replacement buckets #26

Open
wants to merge 70 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
d2e85ba
Implemented replacement buckets
kaleem-peeroo Feb 8, 2023
56dc55f
Added k-value in k-buckets when used in routing table
kaleem-peeroo Feb 8, 2023
997a0f8
Added limits to k-bucket and replacement bucket and updated addReplac…
kaleem-peeroo Feb 8, 2023
e32360d
Added size check for removeReplacement()
kaleem-peeroo Feb 8, 2023
2b19041
Added refreshBuckets template to fill in later
kaleem-peeroo Feb 8, 2023
93e1735
refresh buckets added in config
srene Feb 9, 2023
a4ad16e
Implemented refreshBuckets() in RoutingTable
kaleem-peeroo Feb 22, 2023
d125576
Made nodeIdToNode() public and implemented checkAndReplaceLast() in K…
kaleem-peeroo Mar 1, 2023
33a572a
Changed neighbours data structure to list from treemap
kaleem-peeroo Mar 8, 2023
3cebe0c
Made routingTable protected instead of private
kaleem-peeroo Mar 8, 2023
4016a04
Updated checkAndReplaceLast() function. Added routing table to KBucke…
kaleem-peeroo Mar 8, 2023
9e67501
init commit blocks and samples
srene Jan 26, 2023
b0fe98e
block class
srene Feb 2, 2023
b882c2a
block iterator
srene Feb 2, 2023
52cf2b0
traffic generator sample
srene Feb 2, 2023
3fb4cd0
traffic sample generator
srene Feb 3, 2023
ff8cdf4
iterator fix
srene Feb 8, 2023
8feef21
sample rem size
srene Feb 8, 2023
4c011fa
block get random samples id func
srene Feb 8, 2023
0d8b62f
samples publish/query generator
srene Feb 8, 2023
8b3e5c3
disable get log after first found
srene Feb 8, 2023
def54f3
sample id using row and column
srene Feb 10, 2023
fba5b94
traffic generator sample renamed
srene Feb 10, 2023
3dd644d
das lookup operation + protocol class
srene Feb 16, 2023
f0e41d9
get logger
srene Feb 16, 2023
3c3180a
region-based sample placement config and fixes
oascigil Feb 16, 2023
8a8208f
Update README.md
harnen Feb 16, 2023
6e2dd1e
new message
srene Feb 16, 2023
1bc5bf3
das protocolbuilder address
srene Feb 21, 2023
eebf7ec
kad protocol refactor
srene Feb 21, 2023
bdc2343
sample pull from builder
srene Feb 21, 2023
b8f5d6e
block builder wip
srenevic14 Feb 22, 2023
5bd63e3
pull built samples from builder done
srene Feb 22, 2023
20442a4
sample region fix wip
srene Feb 22, 2023
24a4ff4
region calculation fix
srenevic14 Feb 22, 2023
0b5bb20
interface between Das protocol and kademlia protocol to send found no…
srene Feb 23, 2023
7778ffc
search table for lookups
srenevic14 Feb 23, 2023
381dfda
advertise new block instead sample by smample
srenevic14 Feb 23, 2023
63c0367
das lookup wip
srenevic14 Feb 24, 2023
65895d8
new messages
srene Feb 24, 2023
50c1d13
check if sample is part of a block
srene Feb 24, 2023
3aebf6f
get all objects from store
srene Feb 24, 2023
fc4f51a
new messages
srene Feb 24, 2023
8895aec
initial period no new sample blocks, only lookups
srene Feb 24, 2023
761751c
init block samples hashmap fix
srene Feb 24, 2023
5e29f51
init block samples hashmap fix
srene Feb 24, 2023
4f9ec12
revert block
srene Feb 24, 2023
98081d6
block id as parameter
srene Feb 24, 2023
c212f94
fix blockid
srene Feb 24, 2023
c3946a7
complete random lookup done
srene Feb 24, 2023
296531a
random sampling refactor wip
srene Mar 1, 2023
ed62af1
missing file
srenevic14 Mar 1, 2023
97ab4f9
random sampling refactor wip
srenevic14 Mar 2, 2023
094894a
randon sampling operation completed
srene Mar 2, 2023
2a18394
cleaning code
srene Mar 8, 2023
91068c4
reduce samples creation
srene Mar 8, 2023
11d6b25
random sampling gettin only n samples per node
srene Mar 9, 2023
0919026
adding comments
srene Mar 9, 2023
7043cc6
find logging
Countermatt Feb 22, 2023
ebc32d9
full operation loggin - move to operation
Countermatt Feb 23, 2023
a4016ed
correct first comma bug KademliaObserver log
Countermatt Mar 1, 2023
4f53852
modify to have all operation
Countermatt Mar 1, 2023
d900142
config file for malicious DAS protocol scenario
oascigil Mar 13, 2023
93d540a
Malicious DAS protocol implementation
oascigil Mar 13, 2023
b449a67
Bump json from 20200518 to 20230227 in /simulator (#30)
dependabot[bot] Apr 17, 2023
0250e99
samples with double id assignment by row and column reference
srene Apr 18, 2023
ec56df8
kademlia find operation callbacks
srene Apr 24, 2023
469a57b
operation logging extension
srene Apr 24, 2023
379c814
Made nodeIdToNode() public and implemented checkAndReplaceLast() in K…
kaleem-peeroo Mar 1, 2023
1f90b7e
Removed duplicated function.
kaleem-peeroo May 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
init block samples hashmap fix
  • Loading branch information
srene authored and kaleem-peeroo committed May 9, 2023
commit 761751c395837d87955af3935e5f30355433dda2
1 change: 1 addition & 0 deletions simulator/src/main/java/peersim/kademlia/das/Block.java
Original file line number Diff line number Diff line change
@@ -45,6 +45,7 @@ public Block() {

this.blockId = (ID_GENERATOR++);
blockSamples = new Sample[SIZE][SIZE];
samples = new HashMap<>();
row = column = 0;
for (int i = 0; i < blockSamples.length; i++) {