project3-QA - 1. If an infected computer randomly picks a...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
1. If an infected computer randomly picks a computer in the address space that's already infected, what should the behavior be? Should it basically ignore that computer and move on to the next scan? Answer: if a scanned target is an already infected computer, nothing will happen. The scan is treated as if it missed a target and the computer should continue its scanning process. 2. I'm a little confused about how to implement the 2nd part of the assignment. If the worm infects computer A at time = 10, then computer A goes into "being infected" and I then calculate X using Geometric distr and find out that X = 3.12 for instance. Answer: First, Geometric distribution always generates integer random variable, i.e., X is always an integer. Second, if the worm infects computer A at time 10 and X is chosen to be 3, then computer A will begin to send out scans to infect others at time 13. 3. I wasn't sure what the best way to generate a random integer. Answer: If you program in C and if you use the rand01() function I provided in my lecture notes “generate-rv”, then you can use:
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/14/2012 for the course CDA 6530 taught by Professor Zou during the Fall '11 term at University of Central Florida.

Page1 / 2

project3-QA - 1. If an infected computer randomly picks a...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online