{"base":{"id":"cs10-17","subject":"Networks","title":"Routers, IP addresses and the web","scene":"mix","steps":[{"use":"net9","mode":"request","eyebrow":"Following a web request","title":"From URL to web page","body":"Type a URL and press enter: your browser asks a DNS server for the IP address, then sends an HTTP request to the web server, which sends the page back. Step through it.","actions":[{"id":"step","label":"Step"},{"id":"reset","label":"Reset"}]},{"use":"sys10","mode":"ipaddr","eyebrow":"Addresses","title":"IP and MAC addresses","body":"An IP address identifies a device on the internet and is used by routers. A MAC address is fixed into the network card and identifies it on the local network. Compare them.","actions":[{"id":"v4","label":"IPv4"},{"id":"v6","label":"IPv6"},{"id":"mac","label":"MAC"}]},{"use":"net9","mode":"layers","eyebrow":"Protocols","title":"Rules for talking","body":"Protocols are agreed rules. HTTP and HTTPS fetch web pages, TCP makes sure all the packets arrive, and IP addresses and routes them. Tap each layer.","actions":[{"id":"l0","label":"HTTP"},{"id":"l1","label":"TCP"},{"id":"l2","label":"IP"}]},{"use":"net9","mode":"quiz","look":"request","eyebrow":"Check yourself","title":"What does DNS do?","body":"Leo types www.example.com into his browser.","question":"What is the job of the DNS server?","options":["Store the web page","Turn the domain name into an IP address","Encrypt the connection"],"answer":1,"right":"Correct. DNS works like a phone book, looking up the IP address for a domain name.","wrong":"Not quite. Computers find each other by numbers, not names."}],"more":[{"type":"cards","id":"worked","eyebrow":"Worked examples","title":"Step by step","items":[{"tag":"URL parts","title":"https://shop.example.org/cart","body":"protocol: https (secure)\ndomain: shop.example.org\npath: /cart","code":true},{"tag":"Request steps","title":"Loading a page","body":"1. browser asks DNS for the IP address\n2. DNS replies with the IP\n3. browser sends HTTP(S) request to that IP\n4. server sends HTML, images, CSS\n5. browser renders the page","code":true}]},{"type":"cards","id":"detail","eyebrow":"The ideas in detail","title":"The ideas in detail","items":[{"tag":"URL","title":"Uniform resource locator","body":"https://www.example.com/news/today.html → protocol (https), domain name (www.example.com), path to the file (/news/today.html)."},{"tag":"Router","title":"Forwards packets","body":"Reads each packet's destination IP address and sends it towards the next network on the best route."},{"tag":"NIC","title":"Network interface card","body":"The hardware that connects a device to a network; it has a unique MAC address."},{"tag":"Cookies","title":"Small files saved by websites","body":"Session cookies remember you during one visit (like a basket) and are deleted when you close the browser; persistent cookies stay for a set time (like logins and preferences)."}]},{"type":"cards","id":"mistakes","eyebrow":"Common mistakes","title":"Watch out for these","items":[{"tag":"Mistake","title":"\"DNS stores websites\"","body":"DNS only stores addresses. Web servers store pages."},{"tag":"Mistake","title":"\"MAC and IP are the same\"","body":"MAC is fixed to hardware; IP can change and is used for routing between networks."},{"tag":"Mistake","title":"\"HTTPS means a site is safe\"","body":"It means the connection is encrypted. A scam site can still use HTTPS."},{"tag":"Mistake","title":"\"Routers and switches are the same\"","body":"Switches connect devices within one network; routers connect different networks."}]},{"type":"cards","id":"deeper","eyebrow":"Go deeper","title":"More than the lesson","items":[{"tag":"Real world","title":"Your home router","body":"Your home router gives each device a private IP address (often 192.168.x.x) and shares one public IP address with the internet."},{"tag":"History","title":"The web is younger than the internet","body":"The internet began in the 1960s–80s; Tim Berners-Lee invented the World Wide Web (HTTP, HTML, URLs) at CERN in 1989."},{"tag":"Careers","title":"Who keeps the web running?","body":"Web developers, network administrators, DNS and hosting engineers, and site reliability engineers."},{"tag":"Coming next","title":"Where this leads","body":"Next: the operating system that manages all of this inside your computer."}]},{"type":"cards","id":"challenge","eyebrow":"Challenge yourself","title":"Stretch your brain","intro":"Try each one on paper before opening the card.","items":[{"tag":"Challenge","title":"Why does IPv6 exist?","body":"IPv4 has about 4.3 billion addresses, fewer than the number of devices online. IPv6's 128-bit addresses give an almost limitless supply."},{"tag":"Challenge","title":"Explain why browsers store a DNS cache.","body":"Looking up the same domain again and again would be slow. A cache keeps recent answers so pages load faster, until the record expires."}]},{"type":"activities","id":"try","eyebrow":"Try it at home","title":"Try it yourself","items":[{"title":"Trace a route","time":"15 minutes","need":["A computer"],"steps":["Open a command prompt or terminal.","Type tracert example.com (Windows) or traceroute example.com (Mac/Linux).","Count the routers (hops) on the way.","Try a website in another country."],"why":"Each line is a router passing your packets on; further sites usually need more hops.","safety":"Only run the command shown."},{"title":"URL detective","time":"10 minutes","need":["A browser"],"steps":["Pick five web addresses you use.","Split each into protocol, domain and path.","Which use https?","Find the cookie settings in your browser."],"why":"Recognising URL parts helps you spot fake websites with look-alike domains.","safety":"Don't change cookie settings without asking."}]},{"type":"quiz","id":"quiz","eyebrow":"Quiz","title":"Eight more questions","questions":[{"question":"What does DNS stand for?","options":["Digital Network Server","Data Name Store","Domain Name System"],"answer":2,"right":"Correct.","wrong":"Not quite."},{"question":"Which device forwards packets between networks?","options":["Router","Monitor","Keyboard"],"answer":0,"right":"Correct.","wrong":"Not quite."},{"question":"In https://news.example.com/sport, the domain name is…","options":["https","news.example.com","/sport"],"answer":1,"right":"Correct.","wrong":"Not quite."},{"question":"What does the S in HTTPS mean?","options":["Super fast","Server","Secure (encrypted)"],"answer":2,"right":"Correct.","wrong":"Not quite."},{"question":"A MAC address is…","options":["fixed into the network card","given by DNS","a website address"],"answer":0,"right":"Correct.","wrong":"Not quite."},{"question":"Session cookies are deleted when…","options":["the computer is a year old","the browser closes","never"],"answer":1,"right":"Correct.","wrong":"Not quite."},{"question":"Which protocol makes sure all packets arrive?","options":["HTML","USB","TCP"],"answer":2,"right":"Correct.","wrong":"Not quite."},{"question":"An IPv4 address has how many bits?","options":["32","128","48"],"answer":0,"right":"Correct.","wrong":"Not quite."}]},{"type":"checklist","id":"check","eyebrow":"Self-check","title":"I can…","items":["describe the parts of a URL","explain the job of DNS","describe how a web page reaches a browser","explain what a router does","compare IP and MAC addresses","compare IPv4 and IPv6","explain HTTP, HTTPS, TCP and IP","explain session and persistent cookies"]},{"type":"keywords","id":"words","eyebrow":"Key words","title":"Words to know","items":[{"word":"URL","meaning":"The address of a web resource."},{"word":"domain name","meaning":"A human-readable name for a server."},{"word":"DNS","meaning":"Turns domain names into IP addresses."},{"word":"IP address","meaning":"A number identifying a device on a network."},{"word":"MAC address","meaning":"A fixed hardware address of a network card."},{"word":"router","meaning":"Forwards packets between networks."},{"word":"protocol","meaning":"An agreed set of rules for communication."},{"word":"HTTP / HTTPS","meaning":"Protocols for fetching web pages (HTTPS is encrypted)."},{"word":"browser","meaning":"Software that requests and displays web pages."},{"word":"cookie","meaning":"A small file a website stores in your browser."}]},{"type":"sources","id":"sources","title":"Sources","items":["BBC Bitesize, GCSE Computer Science: The internet","Mozilla Developer Network: How the web works","CERN: The birth of the web","Internet Assigned Numbers Authority (IANA): IP addresses"]}]},"overlay":null}