Networks and the web · A level · OCR H446 1.3.3, AQA 7517 4.9.2.1, Eduqas A500QS 2.1 · about 25 min
Physical and logical bus and star; Wi-Fi, SSIDs, WPA2 and CSMA/CA with RTS/CTS.
[1 mark]Devices are cabled to a central hub, which repeats every frame out of every port. What is the network's topology?
[1 mark]Which of these are advantages of a physical star over a physical bus? Choose all that apply.
Tick every answer that is true.
[1 mark]Why does Wi-Fi use collision avoidance rather than detecting collisions?
[1 mark]Put the steps of CSMA/CA with RTS/CTS in order.
Number the lines 1 to 6 to put them in the right order.
Send a request to send (RTS)Receive clear to send (CTS) from the access pointTransmit the data frameIf it is busy, wait a random back-off time and listen againWait for an acknowledgement (ACK)Listen to check whether the channel is idle[1 mark]What problem does RTS/CTS solve?
[1 mark]Why is a MAC address allow list, on its own, weak protection for a wireless network?
The Neighbour is sending frames for the first couple of seconds. The AccessPoint replies CTS bot when it hears RTS, and ACK bot when it hears a message starting DATA. Both replies come about 0.2 s later.
Carry out CSMA/CA with RTS/CTS:
1. Call messages() once to clear anything old. Then listen for a window of 0.4 s: wait(0.4), then messages().
2. If anything arrived in the window, print busy, backing off, wait a random time from 0.1 to 0.5 seconds (random.uniform(0.1, 0.5)), and listen for another window. Repeat until a window is silent.
3. Print channel clear and send RTS.
4. Wait for a message starting CTS, checking messages() every 0.1 s for up to 2 seconds. When it comes, print got CTS and send DATA hello.
5. Wait the same way for a message starting ACK, then print got ACK.
The robot does not drive.
# the two lines every program starts with: the commands, then the robot
from bugbot import *
connect()
import random
send("RTS")
wait(1)
print(messages())Plan your program here, then type it in and press Run.
random.uniform: what changes?