A Level · 1.3.3 and 1.3.4
Networks and Web Technologies
Name
Class
Date
Mark / 34
Section A
Circle the letter of the correct answer. One mark each.
- 1At which layer of the TCP/IP stack does IP operate?1
- ANetwork
- BTransport
- CApplication
- DLink
- 2What is encapsulation in networking?1
- APackets are encrypted
- BData is compressed before transmission
- CSeveral packets are merged into one
- DEach layer adds a header as data passes down the stack
- 3When is UDP preferable to TCP?1
- ALoading a web page
- BLive video and voice, where a late packet is worse than a missing one
- CTransferring a file that must arrive intact
- DSending an email
- 4What is the main advantage of packet switching over circuit switching?1
- AIt has no delay
- BIt guarantees constant bandwidth
- CNetwork capacity is shared efficiently and packets route around failures
- DPackets always arrive in order
- 5Why is client side validation not sufficient for security?1
- AIt cannot check numbers
- BThe user can disable JavaScript or send a crafted request directly to the server
- CBrowsers do not support it
- DIt runs too slowly
- 6In PageRank, why does a page linking to a thousand others confer little rank on each?1
- AA page's outgoing vote is divided among all the pages it links to
- BThe damping factor removes them
- CLinks beyond ten are ignored
- DOnly the first link counts
- 7What does the damping factor model in PageRank?1
- AThe number of pages in the index
- BThe rate at which pages change
- CThe speed of the web crawler
- DThe probability that a user eventually stops following links
- 8What does a proxy server do?1
- AEncrypts all network traffic
- BAssigns IP addresses to devices
- CSits between clients and the internet, hiding addresses, caching and filtering
- DResolves domain names
- 9What does a web crawler do?1
- AStores user search history
- BRanks pages by importance
- CFollows links between pages to retrieve content for indexing
- DEncrypts web traffic
- 10Which is a disadvantage of the client server model?1
- ASecurity cannot be managed centrally
- BThe server is a single point of failure and can become a bottleneck
- CPerformance depends on which peers are online
- DThere is no central backup
Section B
Answer in the space provided. The number of marks tells you how many separate points to make.
- 1DescribeDescribe the function of each layer of the TCP/IP stack.4
- 2ExplainExplain why a live video call would use UDP rather than TCP.4
- 3ExplainExplain the difference between client side and server side processing, and state why validation should be performed on both.5
- 4ExplainExplain how the PageRank algorithm determines the importance of a web page.5
- 5CompareCompare the client server and peer to peer network models.6
Mark scheme
Section A
Section B
1 Describe the function of each layer of the TCP/IP stack. 4
One mark for each of the following, to a maximum of 4.
- The application layer provides services to user software and formats data
- The transport layer splits data into segments and ensures reliable delivery
- The network layer adds IP addresses and routes packets between networks
- The link layer handles physical transmission and uses MAC addresses
Model answer. The application layer is where the protocols used directly by software operate, such as HTTP for web pages and SMTP for sending mail, and it is responsible for formatting the data appropriately for the service being used. The transport layer takes that data and divides it into segments, adding port numbers so the receiving machine knows which application the data belongs to, and where TCP is used it also numbers the segments and manages acknowledgements and retransmission to guarantee complete, correctly ordered delivery. The network layer, sometimes called the internet layer, attaches the source and destination IP addresses and is responsible for routing each packet across the intervening networks towards its destination. The link layer handles the actual transmission over the physical medium, adding MAC addresses so that frames reach the correct device on the local network, and it is where Ethernet and Wi-Fi operate.
2 Explain why a live video call would use UDP rather than TCP. 4
One mark for each of the following, to a maximum of 4.
- UDP is connectionless and does not guarantee delivery or ordering
- This reduces overhead so data arrives with lower latency
- In a live call a retransmitted packet would arrive too late to be useful
- A small amount of lost data causes a brief glitch, which is preferable to delay
Model answer. UDP is connectionless: it sends datagrams without establishing a connection, without acknowledgements and without retransmitting anything that is lost, so it carries far less overhead than TCP and delivers data with noticeably lower latency. That matters enormously in a live call, where the total delay between speaking and being heard determines whether a conversation is usable at all. The decisive point is what would happen if TCP were used instead. If a packet carrying a fiftieth of a second of audio were lost, TCP would detect the gap and retransmit it, but by the time the replacement arrived that moment in the conversation would already have passed, so the retransmitted data is worthless while the stall waiting for it is very noticeable. With UDP the missing fragment simply produces a momentary glitch that the human ear largely ignores, and the call continues smoothly. In short, for live media a small amount of loss is far preferable to delay, which is precisely the trade UDP makes.
3 Explain the difference between client side and server side processing, and state why validation should be performed on both. 5
One mark for each of the following, to a maximum of 5.
- Client side code runs in the user's browser
- Server side code runs on the web server
- Client side gives immediate feedback without a round trip to the server
- Client side code can be viewed, disabled or altered by the user
- Server side validation is authoritative because the user cannot bypass it
Model answer. Client side processing is code, usually JavaScript, that is downloaded and executed by the user's own browser, whereas server side processing runs on the web server and only the results are sent to the client. The advantage of client side processing is responsiveness: a form field can be checked the moment the user leaves it, with no request to the server and no waiting, which makes the interface feel immediate and reduces load on the server. The critical weakness is that anything running on the user's machine is entirely under their control. They can read the source, disable JavaScript altogether, modify the code with browser developer tools, or bypass the page completely and send a crafted request directly to the server. Client side validation therefore provides usability but no security whatsoever. Server side validation is authoritative because the user cannot alter or bypass it, and it is the only check that can be trusted to protect the database from invalid or malicious data. Both are used together: client side for a good experience, server side because it is the only one that actually enforces anything.
4 Explain how the PageRank algorithm determines the importance of a web page. 5
One mark for each of the following, to a maximum of 5.
- A link from one page to another is treated as a vote for the target page
- Votes from pages that are themselves important carry more weight
- A page's vote is divided among all the pages it links to
- A damping factor models the probability that a user stops following links
- The calculation is iterative, repeated until the values converge
Model answer. PageRank estimates the importance of a page from the structure of links pointing at it, treating each incoming link as a vote of confidence. Crucially the votes are not counted equally: a link from a page that is itself highly ranked contributes far more than a link from an obscure one, so the rank of a page depends recursively on the ranks of the pages linking to it. Each page's voting power is also divided among all the pages it links out to, so a page with a thousand outgoing links passes only a thousandth of its rank to each, which prevents importance being manufactured simply by linking to everything. A damping factor, conventionally 0.85, is applied to model the probability that a person following links eventually stops and starts somewhere new, and it also guarantees that the mathematics converges rather than concentrating all rank in a small group of pages. Because each page's rank depends on others which are themselves being calculated, the algorithm is iterative: every page begins with an equal rank, the formula is applied to every page, and this repeats until the values stop changing significantly.
5 Compare the client server and peer to peer network models. 6
One mark for each of the following, to a maximum of 6.
- Client server has dedicated servers providing resources to clients
- Peer to peer has all machines acting as both client and server
- Client server allows central backup, security and account management
- Client server has a single point of failure and can become a bottleneck
- Peer to peer is cheaper with no dedicated server and distributes load
- Peer to peer has no central backup or management and depends on which peers are online
Model answer. In a client server network, dedicated server machines provide resources and services which client machines request, so files, authentication and applications are centralised. In a peer to peer network every machine is an equal that acts as both client and server, sharing its own resources directly with the others. The client server model's strength is control: data can be backed up centrally in one place, user accounts and permissions are administered from a single point, and software updates and security policies are applied consistently across the whole network, which is essential once an organisation grows beyond a handful of machines. Its weaknesses are cost and dependency, since server hardware and specialist staff are expensive, the server represents a single point of failure whose loss affects every user, and it can become a bottleneck if demand exceeds what it can serve. Peer to peer inverts this. It is cheap to set up because there is no server to buy, load is naturally distributed across the participants so it scales well as more peers join, and there is no single point of failure. In exchange it offers no central backup, so data protection depends on each user individually, no central management of security or updates, and availability depends entirely on which peers happen to be switched on, so a file may simply be unreachable. In practice client server suits organisations needing control and reliability, while peer to peer suits small informal networks and distributed content sharing.