⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ex1.sc

📁 i3源码
💻 SC
字号:
# Usage example:
# >../traffic_gen ex1.sc 11 >! ex1.ev
# >../sim ex1.ev 10
#

# create a network consisting of 1000 nodes
# a new node joins the system each 1 sec on the average
#
# 'events num avg wjoin wfail wroute
#  - num: number of events
#  - avg: average time between events (in ms)
#  - wjoin/(wjoin+wfail+wroute): fraction of nodes joinning the network
#  - wfail/(wjoin+wfail+wroute): fraction of node failures
#  - wroute/(wjoin+wfail+wroute): fraction of route requests
# 
events 1000 1000 1 0 0 

# wait 100 sec for the network to stabilize
wait 100000

# generate 500 route requests; the time
# between two events is 0.2 sec
events 500 200 0 0 1

# wait 1 sec to complete all operations 
wait 1000

# end the simulation
exit

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -