
HOMEWORK 4
ENTS 689i Network Immunity
Fall 2008
Instructions
This assignment is NOT a group assignment. Each student should turn in their own set of answers. You
should not collaborate for this assignment.
Answer each of the following questions and send your responses in ASCII (.txt) or PDF format to
[email protected] no later than 12:01am EST on November 17th, 2008 (midnight Sunday night). All other formats will receive NO CREDIT. Any mail arriving later than 12:01am on Monday
morning (as determined by my mail server's time stamp) will be considered late. The standard course
grading policy will apply for late homework on this assignment. If you turn in several copies of this
assignment, the last one received will be graded and all others discarded.
Questions
1. (10 points) What are two reasons for using layered protocols? What are two disadvantages to
using layered protocols?
2. (10 points) Consider a system with an n-layer protocol stack. Applications generate messages of
length M bytes. At each of the layers, an h-byte header is added. What fraction of the network
bandwidth is filled with headers? Briefly explain how bandwidth would be affected if the
packets were fragmented?
3. (20 points) In slide 17 (“Programming Example (client)”), we made a call to the subroutine
htons(). What is the purpose of this function call? Please show, by filling in the boxes (in
binary), how the following 32-bit number, 0x11223344, would be stored using both big-endian
and little-endian byte orders. Assume big-endian bit order for both cases.
Big-Endian
Bit 0 31
Little-Endian
Bit 0 31
4. (10 points) Pfleeger, Chapter 7, exercise 19.
A port scanner is a tool useful to an attacker to identify possible vulnerabilities in a potential
victim's system. Cite a situation in which someone who is not an attacker could use a port
scanner for a nonmalicious purpose?
5. (10 points) Briefly explain (~1 paragraph) what SQL Injection is. Explain (1 paragraph) a
defensive mechanism that could be used to mitigate this threat.
6. (10 points) In the context of network security, what is the purpose of the Demilitarized Zone