Configuration File samples
PeerSim (Event-Driven)
random.seed 1234567891
simulation.endtime 10^6
simulation.logtime 10^3
simulation.experiments 50
network.size 10^6
network.node peersim.core.GeneralNode
MINDELAY 10 # Minimum delay is 10 ms
MAXDELAY 400 # Maximum delay is 400 ms
DROP 0.0 # Drop probability is 0
protocol.urt UniformRandomTransport
{
mindelay MINDELAY
maxdelay MAXDELAY
}
protocol.tr UnreliableTransport
{
# Messages are actually delivered by urt
transport urt
# Here, we drop them with probability DROP
drop DROP
}
# A simple implementation of Linkable that does nothing;
# just stores a set of neighbors
protocol.link IdleProtocol
# The protocol defined in the previous slides
protocol.my GossipProtocol
{
# Use the unreliable trasport defined above
transport tr
# Use the random topology defined above
protocol link
# Use the default value for prob
}
# Initialize link with 20 neighbors at random
init.rndgraph WireKOut
{
k 20
protocol link
}
# Traffic generator
control.traffic TrafficGenerator
{
# Inject traffic on my protocol
protocol my
# Every 1000ms (1s)
step 1000
}
NeuroGrid (Advanced)
SIMULATION_TYPE=com.neurogrid.simulation.NeuroGridNetwork
LOG_FILE=ng_simulation.log
SUMMARY_LOG_FILE=ng_sum_simulation.log
ARCHITECTURE_LOG_FILE=ng_arch_simulation.log
PROBE_LOG_FILE=ng_probe_simulation.log
SEARCH_LOG_FILE=ng_search.log
LOG_DIRECTORY=output/adv_neurogrid
APPLET=false
NO_KEYWORDS=200
NO_DOCUMENTS=1000
NO_KEYWORDS_PER_DOCUMENT=2
NO_NODES=1000
NO_HONEST_NODES=300
NO_DOCUMENTS_PER_NODE=3
MAX_KNOWLEDGE_PER_NODE=100
NO_CONNECTIONS_PER_NODE=3
MAX_CONNECTIONS_PER_NODE=3
NO_SEARCH_KEYWORDS=1
START_TTL=7
MAX_FORWARDING_DEGREE=5
MIN_FORWARDING_DEGREE=1
INTERNAL_LOOP=100
PROBE_LOOP=101
NO_PROBES=10
GROWTH_LOOP=101
STATS_LOOP=50
RECIPROCAL_CONNECTIONS=true
RING_TOPOLOGY=false
DOC_KEYWORD_ZIPF_DISTRIBUTION=false
NODE_DOC_ZIPF_DISTRIBUTION=false
RANDOM_SEARCHES=false
RANDOM_FORWARDING=false
FUZZY_SEARCHES=false