# # Models a single user host with a persistent connection to the Internet, # e.g. a home user connected through cable model, under attack from a worm. # Uses worm infection parameter from Code Red v2 worm spread. # # Uses stochastic epidemic model. # # topology: # 0(0) 'Router 0' 0(1) ------------- 1(0) 'Host 1' _schema [_find .schemas.Net] Net [ frequency 1000000000 AS_status boundary ospf_area 0 worm_model [ Epidemic [ use SSF.App.Worm.StochasticWormEpidemic s_0 359999 # number of susceptible hosts (initially) =N-1 i_0 1 # number of infected hosts (initially) beta 1.235e-9 # infection parameter =(1.6/3600)/N ] debug true ] router [ id 0 interface [ id 0 _extends .dictionary.1Mb ] interface [ id 1 _extends .dictionary.100Mb ] _find .dictionary.routerGraph.graph ] host [ id 1 interface [ id 0 _extends .dictionary.100Mb ] _find .dictionary.clientGraph.graph ] link [ attach 0(1) attach 1(0) delay 0.003 ] ] # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= dictionary [ # interface specs 1Mb [ bitrate 1000000 # 1 million bits per second latency 0.0001 # 0.1 ms NIC latency, in seconds (on-card delay) ] 100Mb [ bitrate 100000000 # 100 million bits per second latency 0.0001 # 0.1 ms NIC latency, in seconds (on-card delay) ] # protocol graphs routerGraph [graph [ ProtocolSession [name ip use SSF.OS.IP] ProtocolSession [name ospf use SSF.OS.OSPF.sOSPF] ]] clientGraph [graph [ ProtocolSession [ name WormProtocolSession use SSF.App.Worm.WormProtocolSession debug true ] ProtocolSession [name ip use SSF.OS.IP] ] ]