☰ Contents · Computing

Computer networks and their protection

Lessons 29 · 1 lessons · N. I. Taylaqov (general editor), A. B. Akhmedov, M. D. Pardayeva, A. A. Abdug‘aniyev, U. M. Mirsanov. Informatics and Information Technologies, Grade 11, 1st edition. “Extremum-press”, Tashkent, 2018
29

Regional and global computer networks and their protection

Textbook: pp. 102–107
GoalExplains local, regional and global networks, network protocols (IP, TCP, UDP, HTTPS) and the structure of an IP address, calculates transfer time, and knows how a network is protected with a firewall, Wi-Fi security and a VPN.
New words
local / metropolitan (regional) / wide area network · LAN / MAN / WANprotocol: an agreed set of rules for exchanging data between devices · protokolIP address: the number that identifies a device in a network (32 bits in IPv4, 128 in IPv6) · IP manzilfirewall: a program or device that allows or blocks network traffic by rules · brandmauer
Explanation

A network is a set of devices that exchange data. By size: local (LAN) – one building or room (a school computer room, home Wi-Fi); regional (MAN, city or province scale) – for example a system of bank branches or city libraries; global (WAN) – countries and continents, whose biggest example is the Internet, a union of thousands of networks. Data travels by wire (twisted pair, optical fibre) or wirelessly (Wi-Fi, mobile networks, satellite). Optical fibre transmits with light, is not affected by outside noise and is very fast; home networks today usually have 100 Mbit/s – 1 Gbit/s. Protocols are the “language” of the network. IP gives each device an address: an IPv4 address is 32 bits (four numbers 0–255, for example 192.168.1.10), 2³² = 4294967296 in total; since these ran short, IPv6 (128 bits) is being introduced. TCP splits data into pieces, confirms that they arrive and resends lost ones (web, mail); UDP does not confirm but is fast (video calls, games). HTTP is the page-transfer protocol, and HTTPS protects it with TLS encryption: the padlock in the browser shows the connection is encrypted but does not guarantee the site is trustworthy. The old Telnet sent data in the open, so encrypted SSH is used instead. Protection measures: a firewall passes or blocks incoming and outgoing packets by rules; for home Wi-Fi use WPA2 or WPA3 encryption and a long password, and for the router change the default administrator password and update its software; do not enter bank details or passwords on open (passwordless) Wi-Fi; a VPN sends the connection through an encrypted “tunnel”, but get it from a trusted service. Entering someone's network without permission or listening to its traffic is against the law. File transfer time = size (bits) : speed (bits/s); 1 byte = 8 bits.

Worked examples
Calculating with IP addresses (Python, tested): import ipaddress ⏎ t = ipaddress.ip_network("192.168.1.0/26") ⏎ print(t.num_addresses - 2) ⏎ print(t.netmask) ⏎ print(t.broadcast_address) The program prints 62, 255.255.255.192 and 192.168.1.63: in /26 the network part is 26 bits and the remaining 6 bits are for devices, 2⁶ = 64 addresses; the first is the network name and the last is the broadcast address, so 62 are left for devices.
Transfer time: a 750 MB file at 100 Mbit/s. The size is 750·8 = 6000 Mbit, the time is 6000 : 100 = 60 seconds (a little more in practice because of protocol overhead).
Class activity

“Network map”: draw the network at home or in the classroom (router, computers, phones, printer). Mark how each device connects (wire, Wi-Fi) and where the firewall and password are. Open the router settings only at your own home and with a parent's permission.

Practice
1
Give one example of a regional (MAN) network and tell it from a local one.
2
How many seconds does it take to transfer a 1200 MB file at 80 Mbit/s?
3
What is the main difference between TCP and UDP? Give one use for each.
4
Write three actions to protect home Wi-Fi.