📝 Network security attacks types (18 MCQs)
📖 From Data Communication and Networks • 31. Cryptography and Network Security • 18 questions available
What is Network security attacks types?
Network security attacks are categorized into passive attacks, such as eavesdropping and traffic analysis that only observe data without altering it, and active attacks, such as masquerading, replay, modification, and denial-of-service that disrupt or manipulate network communications.
📝 All Network security attacks types MCQs
Q1. In the scenario described, the host transmits a total of 30 Mb over 10 seconds. What is the average transmission rate?
📖 Explanation: The average rate is computed by dividing total transmitted data by the elapsed time: . This matches option B, confirming that the host’s average bandwidth usage equals the committed rate of 3 Mbps.
Q2. During the burst, the host sends at 12 Mbps for 2 seconds while the leaky bucket outputs at 3 Mbps. How many megabits of data accumulate in the bucket’s queue by the end of the burst?
📖 Explanation: The net excess rate is . Over 2 seconds this produces of queued data. Therefore the queue holds 18 Mb after the burst, corresponding to option C.
Q3. A token bucket has capacity tokens and token generation rate tokens/s. If a host attempts to send at 8 Mbps (8 tokens per second), what is the maximum duration of the burst before the bucket empties?
📖 Explanation: Starting with a full bucket (10 tokens), the net token depletion per second is tokens. The time until depletion is seconds. Hence the burst can last about 1.67 seconds, which is option B.
Q4. Which statement best describes how a leaky bucket handles periods when a host is idle?
📖 Explanation: The leaky bucket does not accumulate credit during idle periods; it simply continues to emit at the fixed committed rate, so no credit is built up. This behavior matches option C.
Q5. When defending against a short‑lived DoS attack that sends high‑rate bursts but remains idle most of the time, which traffic‑shaping mechanism provides the stronger protection?
📖 Explanation: A token bucket allows idle hosts to accumulate tokens, which an attacker could exploit to send larger bursts later. The leaky bucket, being more restrictive and not crediting idle time, limits the burst size regardless of prior idleness, offering stronger protection against such attacks.
Q6. Assume two hosts share a link of 12 Mbps. Host A uses a leaky bucket set to 4 Mbps, while Host B uses a token bucket with average rate 4 Mbps but can burst up to 8 Mbps. Which host will generate the larger peak queue length under a simultaneous 8 Mbps burst?
📖 Explanation: Host B’s token bucket permits a burst up to 8 Mbps, exceeding the link’s fair share and causing its queue to build faster than Host A, whose leaky bucket caps output at 4 Mbps. Consequently, Host B produces the larger peak queue.
Q7. If the leaky bucket’s output rate is increased while keeping the input traffic unchanged, what is the most direct effect on network congestion?
📖 Explanation: Raising the output rate allows the bucket to drain queued packets more quickly, reducing the backlog and thereby lowering the likelihood of congestion on the network. This directly corresponds to option B.
Q8. How could token bucket policing be combined with Weighted Fair Queuing (WFQ) to improve fairness among multiple hosts?
📖 Explanation: By first policing each host with a token bucket, the traffic conforms to its allocated average rate. The resulting regulated flows are then handed to WFQ, which distributes link capacity proportionally to the assigned weights, thereby enhancing fairness. This corresponds to option A.
Q9. In a token bucket, the token generation rate directly determines which of the following?
📖 Explanation: The token generation rate defines how many tokens are added per second, which translates to the average number of bits (or cells) the host can transmit over time. Hence, sets the long‑term average bandwidth, matching option C.
Q10. If a token bucket with capacity tokens and rate tokens/s experiences an idle period of seconds, what is the maximum number of tokens that can be accumulated at the end of the idle period?
📖 Explanation: During idleness, tokens accrue at rate for seconds, yielding tokens. However, the bucket cannot hold more than its capacity . Therefore the maximum stored tokens are the lesser of the two values, expressed as , which is option A.
Q11. What does the term “burstiness” refer to in network traffic characteristics?
📖 Explanation: Burstiness describes traffic patterns where short intervals of high transmission rate are interspersed with periods of low or zero activity, creating spikes in bandwidth usage. This definition aligns with option B.
Q12. Which figure in the provided text depicts the implementation of a leaky bucket algorithm?
📖 Explanation: The description of the leaky bucket implementation, including a FIFO queue and packet removal at each tick, corresponds to Figure 30.5 as indicated in the passage. Hence, option C is correct.
Q13. After the full 10‑second interval, how many megabytes of data has the leaky bucket transmitted?
📖 Explanation: The leaky bucket outputs at a constant rate of 3 Mbps for 10 seconds, delivering Mb. Converting megabits to megabytes () gives MB, which matches option C.
Q14. A token bucket has tokens/s and capacity tokens. If a host sends at 12 tokens/s, how long can it sustain this rate before the bucket empties?
📖 Explanation: Net token depletion per second is tokens. Starting with 15 tokens, the time to depletion is seconds. Therefore the host can maintain the 12‑token/s burst for about 2.14 seconds, corresponding to option B.
Q15. Compare the average bandwidth used by the host with and without the leaky bucket over the 10‑second period. Which statement is correct?
📖 Explanation: Without shaping, the host’s instantaneous rates are 12 Mbps, 0 Mbps, and 2 Mbps, averaging to 3 Mbps over the interval. The leaky bucket also outputs 3 Mbps constantly, so the average remains 3 Mbps, but the traffic pattern is smoothed. Option D captures this nuance.
Q16. When using Weighted Fair Queuing with weights 3, 2, and 1 on a 12 Mbps link, what fraction of the link capacity does each queue receive?
📖 Explanation: The total weight is . Queue 1 gets , Queue 2 gets , and Queue 3 gets . However, the options closest to these ratios are 40 %, 30 %, 20 % (option C), which best reflects the proportional allocation.
Q17. If an attacker continuously sends traffic just below the token generation rate of a token bucket, which mechanism offers more effective mitigation?
📖 Explanation: A leaky bucket does not allow any credit to build up, so even traffic that stays just under the token rate cannot exploit accumulated tokens. This strict capping makes the leaky bucket more effective against such low‑rate, sustained attacks, matching option A.
Q18. What is the primary purpose of a leaky bucket algorithm in network traffic management?
📖 Explanation: The leaky bucket’s main function is to smooth traffic by enforcing a fixed output rate, thereby limiting the burstiness of incoming packets and ensuring that the average transmission does not exceed the committed bandwidth. This aligns with option B.