02 Communication
02 Communication
2.1
In this chapter, you will learn about
the benefits of networking devices
Networking
★
★ the characteristics of a local area network (LAN) and a wide area
network (WAN)
★ client-server and peer-to-peer models in networking
★ the differences between thin client and thick client
★ bus, star, mesh and hybrid networking topologies
★ public and private cloud computing
★ the differences between wired and wireless networks
(including types of cable and wireless technologies)
★ the hardware required to support a LAN
★ the function of routers
★ Ethernet and how data collisions are detected and avoided
★ bit streaming (including differences between real-time and
on-demand streaming of data)
★ the differences between the internet and the World Wide Web (WWW)
★ the hardware needed to support the internet
★ IP addresses (including IPv4, IPv6, public IP addresses and private IP
addresses)
★ the use of the uniform resource locator (URL) to locate a resource on
the world wide web
★ the role of the domain name service (DNS).
27
28
2.1
Real-time (bit streaming) – system in which an event
CSMA/CD – carrier sense multiple access with collision
is captured by camera (and microphone) connected
detection – a method used to detect collisions and
Networking
to a computer and sent to a server where the data
resolve the issue.
is encoded. The user can access the data ‘as it
Bit streaming – contiguous sequence of digital bits sent happens’ live.
over a network/internet.
LINCOLN
MIT-IPC
MIT-MAC
LBL T CCA
RADC T T BBN
AMES AMES LLL UTAH BBN
T SRI CASE
T GWC HARVARD
XEROX T CARNEGIE
STANFORD T TYMSHARE T
FNWC T DOCB ABERDEEN
BELVOIR NORSAR
UCSB ILLINOS
SDAC T T
UCSD UCLA
T MITRE T T NBS
SDC T
HAWAI LONDON
RAND T ARPA T T ETAC
USC
USC–ISI
T RML
2
(MAN) – has emerged. MANs are larger than LANs as they can connect together
many small computer networks (e.g LANs) housed in different buildings within
a city (for example, a university campus). MANs are restricted in their size
geographically to, for example, a single city.
In contrast, WANs can cover a much larger geographical area, such as a country
or a continent. For example, a multi-national company may connect a number
of smaller networks together (e.g. LANs or MANs) to form a world-wide WAN.
This is covered in more detail later.
2 Communication
Here are some of the main benefits of networking computers and devices
(rather than using a number of stand-alone computers):
» Devices, such as printers, can be shared (thus reducing costs).
» Licences to run software on networks are often far cheaper than buying
licences for an equivalent number of stand-alone computers.
» Users can share files and data.
» Access to reliable data that comes from a central source, such as a file
server.
» Data and files can be backed up centrally at the end of each day.
» Users can communicate using email and instant messaging.
» A network manager can oversee the network and, for example, apply access
rights to certain files, or restrict access to external networks, such as the
internet.
Networked computers
Networked computers form an infrastructure which enables internal and external
communications to take place. The infrastructure includes the following:
Hardware
» LAN cards
» routers
» switches
» wireless routers
» cabling
Software
» operation and management of the network
» operation of firewalls
» security applications/utilities
Services
» DSL
» satellite communication channels
» wireless protocols
» IP addressing.
30
2.1
networks may be under security management.
Networking
WANs and LANs
Local area networks (LANs)
LANs are usually contained within one building, or within a small geographical
area. A typical LAN consists of a number of computers and devices (such as
printers) connected to hubs or switches. One of the hubs or switches is usually
connected to a router and/or modem to allow the LAN to connect to the
internet or become part of a wide area network (WAN).
Wireless LANs (WLANs)
Wireless LANs (WLANs) are similar to LANs but there are no wires or cables.
In other words, they provide wireless network communications over fairly
short distances (up to 100 metres) using radio or infrared signals instead of
using cables.
Devices, known as wireless access points (WAPs), are connected into
the wired network at fixed locations. Because of the limited range, most
commercial LANs (such as those on a college campus or at an airport) need
several WAPs to permit uninterrupted wireless communications. The WAPs use
either spread spectrum technology (which is a wideband radio frequency with
a range from a few metres to 100 metres) or infrared (which has a very short
range of about 1 to 2 metres and is easily blocked, and therefore has limited
use; see Section 2.1.5 Wired and wireless networking).
The WAP receives and transmits data between the WLAN and the wired network
structure. End users access the WLAN through wireless LAN adapters which are
built into the devices or as a plug in module.
WAP
WAP WAP
2 Wide area networks (WANs) are used when computers or networks are situated
a long distance from each other (for example, they may be in different cities or
on different continents). If a number of LANs are joined together using a router
or modem, they can form a WAN. The network of automated teller machines
(ATMs) used by banks is one of the most common examples of the use of a WAN.
Because of the long distances between devices, WANs usually make use of a
public communications network (such as telephone lines or satellites), but they
can use dedicated or leased communication lines which can be less expensive
2 Communication
1 2 3
4 5 6
7 8 9 10
Client-server model
internet
clients
server
2
client workstations; client computers will be connected to the server
computer(s).
» Users are able to access most of the files, which are stored on dedicated
servers.
» The server dictates which users are able to access which files. (Note: sharing
of data is the most important part of the client-server model; with peer-to-
peer, connectivity is the most important aspect.)
» The client-server model allows the installation of software onto a client’s
2.1
computer.
» The model uses central security databases which control access to the
Networking
shared resources. (Note: passwords and user IDs are required to log into the
network.)
» Once a user is logged into the system, they will have access to only those
resources (such as a printer) and files assigned to them by the network
administrator, so offers greater security than peer-to-peer networks.
» Client-server networks can be as large as you want them to be and they are
much easier to scale up than peer-to-peer networks.
» A central server looks after the storing, delivery and sending of emails.
» This model offers the most stable system, for example, if someone deletes
a shared resource from the server, the nightly back-up would restore the
deleted resource (this is different in peer-to-peer – see later).
» Client-server networks can become bottlenecked if there are several client
requests at the same time.
» In the client-server model, a file server is used and is responsible for
– central storage and management of data files, thus enabling other
network users to access files
– allowing users to share information without the need for offline devices
(such as a memory stick)
– allowing any computer to be configured as the host machine and act as
the file server (note that the server could be a storage device (such as
SSD or HDD) that could also serve as a remote storage device for other
computers, thus allowing them to access this device as if it were a local
storage device attached to their computer).
33
2
no interaction between users and server since they are kept entirely separate
at all times.
Peer-to-peer model
2 Communication
node
34
2
This means it is impossible to know who is authorised to share certain data.
Users can create their own network node share point which is the only real
security aspect since this gives them some kind of control. However, there are
no real authentication procedures.
2.1
» The network of users is fairly small.
» There is no need for robust security.
Networking
» They require workstation-based applications rather than being server-based.
35
Thick clients
to server) n each client needs to update data and
n clients have more control (they can software individually
store their own programs and data/ n data integrity issues, since many
files) clients access the same data which
can lead to inconsistencies
n less expensive to expand (low-powered n high reliance on the server; if the
2 Communication
and cheap devices can be used) server goes down or there is a break
Thin clients
n all devices are linked to a server (data in the communication link then the
updates and new software installation devices cannot work
done centrally) n despite cheaper hardware, the start-up
n server can offer protection against costs are generally higher than for
hacking and malware thick clients
▲ Table 2.1 Summary of pros and cons of thick and thin client hardware
Table 2.2 highlights the differences between thick and thin client software.
ACTIVITY 2A
1 A company has 20 employees working on the development of a new type
of battery for use in mobile phones. Decide which type of network model
(client-server or peer-to-peer) would be most suitable. Give reasons for
your choice.
2 Another company is made up of a group of financial consultants who
advise other companies on financial matters, such as taxation and
exporting overseas. Decide which type of network model (client-server or
peer-to-peer) would be most suitable. Give reasons for your choice.
2.1
» The network is not secure since each packet passes through every node.
Networking
The advantages of a bus network include:
» Even if one node fails, the remainder of the network continues to function.
» It is easy to increase the size of the network by adding additional nodes.
In bus network topology, each node looks at each packet and determines
whether or not the address of the recipient in the package matches the node
address. If so, the node accepts the packet; if not, the packet is ignored.
These are most suitable for situations with a small number of devices with light
traffic occurring. For example, a small company or an office environment.
Star networks
A star network topology uses a central hub/switch and each computer/device
is connected to the hub/switch. Data going from host to host is directed
through the central hub/switch. Each computer/device has its own dedicated
connection to the central node (hub/switch) – any type of network cable can
be used for the connections (see Section 2.1.5 Wired and wireless networking).
This type of network is typically a client-server. The disadvantages of a star
network include:
» The initial installation costs are high.
» If the central hub/switch fails, then the whole network goes down.
The advantages of a star network include:
» Data collisions are greatly reduced due to the topology.
» It is a more secure network since security methods can be applied to the
central node and packets only travel to nodes with the correct address.
hub/switch
» It is easy to improve by simply installing an upgraded hub.
» If one of the connections is broken it only affects one of the nodes.
How packets are handled depends on whether the central node is a switch or
a hub. If it is a hub, all the packets will be sent to every device/node on the
star network – if the address in the packet matches that of the node, it will be
accepted; otherwise, it is ignored (this is similar to the way packets are handled on
a bus network). If the central node is a switch, packets will only be sent to nodes
▲ Figure 2.7 Star network where the address matches the recipient address in the packet. The latter is clearly
topology more secure, since only nodes intended to see the packet will receive it.
37
2
added or removed. They are well suited to applications where there is heavy
data traffic.
Mesh networks
There are two types of mesh network topologies: routing and flooding.
Routing works by giving the nodes routing logic (in other words, they act like
a router) so that data is directed to its destination by the shortest route and
can be re-routed if one of the nodes in the route has failed. Flooding simply
2 Communication
sends the data via all the nodes and uses no routing logic, which can lead to
unnecessary loading on the network. It is a type of peer-to-peer network, but
is fundamentally different. The disadvantages of a mesh network include:
» A large amount of cabling is needed, which is expensive and time
consuming.
» Set-up and maintenance is difficult and complex.
The advantages of a mesh network include:
» It is easy to identify where faults on the network have occurred.
» Any broken links in the network do not affect the other nodes.
» Good privacy and security, since packets travel along dedicated routes.
» The network is relatively easy to expand.
38
Hybrid networks
A hybrid network is a mixture of two or more different topologies (bus and star,
2.1
bus and mesh, and so on). The main advantages and disadvantages depend on
Networking
which types of network are used to make up the hybrid network, but an additional
disadvantage is that they can be very complex to install, configure and maintain.
Additional advantages include:
» They can handle large volumes of traffic.
» It is easy to identify where a network fault has occurred.
» They are very well suited to the creation of larger networks.
Note that the handling of packets in hybrid networks will depend on which of
the above topologies are used to make up the hybrid structure.
One of the typical applications of hybrid networks is illustrated by the
following example, involving three hotel chains, A, B and C.
Suppose hotel chain A uses a bus network, hotel chain B uses a star network
and hotel chain C uses a mesh network.
At some point, all three hotel chains are taken over by another company. By
using hybrid network technology, all three hotel chains can be connected
together even though they are each using a different type of network. The
system can also be expanded easily without affecting any of the existing
hotels using the network.
There are many other examples; you might want to explore the various
applications for each type of network topology.
2
repair, allowing clients to access data at any time. This is known as data
redundancy. The physical environment is owned and managed by a hosting
company.
There are three common systems, public cloud, private cloud and hybrid cloud.
Public cloud is a storage environment where the customer/client and cloud
storage provider are different companies.
Private cloud is storage provided by a dedicated environment behind a
2 Communication
2
all their cloud servers, was caused by a problem in the XEN hypervisor
(a hypervisor is a piece of computer software, firmware or hardware that
creates and runs virtual machines).
» A large cloud service provider permanently lost data during a routine
back-up procedure.
» The celebrity photos cloud hacking scandal, in which more than 100 private
photos of celebrities were leaked. Hackers had gained access to a number of
cloud accounts, which then enabled them to publish the photos on social
2.1
networks and sell them to publishing companies.
» In 2016, the National Electoral Institute of Mexico suffered a cloud security
Networking
breach in which 93 million voter registrations, stored on a central database,
were compromised and became publicly available to everyone. To make
matters worse, much of the information on this database was also linked to
an Amazon cloud server outside Mexico.
Cloud software
Cloud storage is, of course, only one aspect of cloud computing. Other areas
covered by cloud computing include databases, networking, software and
analytical services using the internet.
Here we will consider cloud software – you can research for yourself how
databases and analytical services are provided by cloud computing services.
Software applications can be delivered to a user’s computer on demand using
cloud computing services. The cloud provider will both host and manage
software applications – this will include maintenance, software upgrades and
security for a monthly fee. A user will simply connect to the internet (using
their web browser on a computer or tablet or mobile phone) and contact their
cloud services supplier. The cloud services supplier will connect them to the
software application they require.
The main advantages are that the software will be fully tested and it does not
need to reside on the user’s device. However, the user can still use the software
even if the internet connection is lost. Data will simply be stored on the
local device and then data will be uploaded or downloaded once the internet
connection is restored.
Cloud-based applications can, therefore, perform tasks on a local device. This
makes them fundamentally different to web-based apps which need an internet
connection at all times.
41
2
minimise the risks of interference with other devices, the communication pairs
constantly change the frequencies (channels) they are using (several times a
second). Bluetooth creates a secure wireless personal area network (WPAN)
based on key encryption.
Bluetooth is useful when
» transferring data between two or more devices which are less than 30
metres apart
» the speed of data transmission is not critical
2 Communication
» using low bandwidth applications (for example, sending music files from a
mobile phone to a headset).
radio waves microwaves infrared visible light ultra violet X-rays gamma rays
Wave length (m) 102 10 −1 10 −3 10 −5 10 −7 10 −9 10 −11
Frequency (Hz) 3 MHz 3 GHz 300 GHz 30 THz 3 PHz 300 PHz 30 EHz
EXTENSION ACTIVITY 2B
Frequency and wavelength are linked by the equation:
f= c
λ
where f = frequency (m), λ = wavelength (Hz), and
c = velocity of light (3 × 108 m/s).
Confirm the frequency values in Table 2.3 using the wavelengths given.
Table 2.5 compares radio waves, microwaves and infrared. (Please note: the
‘>’ symbol in the table means ‘better than’).
2
through different media. Attenuation is the reduction in amplitude of a
signal (infrared has low attenuation because it can be affected by, for
example, rain or internal walls). Thus, we would expect infrared to be
suitable for indoor use only; the fact that it can be stopped by walls is
seen as an advantage since this stops the signal causing interference
elsewhere. Microwaves seem to offer the best compromise, since they
support reasonable bandwidth, and have reasonable penetration and
attenuation.
2.1
Additional notes on the use of satellites
Networking
The use of microwaves and radio waves was previously mentioned as a method
for allowing Wi-Fi connectivity in networks. These methods are perfectly
satisfactory for short distances – the electromagnetic waves carry the signals –
but the curvature of the Earth prevents such methods transmitting data
globally.
▲ Figure 2.10
A B
▲ Figure 2.11
Wired
There are three main types of cable used in wired networks (see Figure 2.12).
43
flexible buffer
tube
water blocking
insulator
2 binders
pairs ripcord
3 Aramid strength
yarns
cable jacket copper mesh copper wire
2 Communication
4 jacket
▲ Figure 2.12 (left to right) Twisted pair cable, coaxial cable, fibre optic cable
44
2.1
» Signals can be stopped by thick walls (in old houses, for example) and signal
strength can vary, or ‘drop out’.
Networking
Wired networking
» More reliable and stable network (wireless connectivity is often subjected to
interference).
» Data transfer rates tend to be faster with no ‘dead spots’.
» Tends to be cheaper overall, in spite of the need to buy and install cable.
» Devices are not mobile; they must be close enough to allow for cable
connections.
» Lots of wires can lead to tripping hazards, overheating of connections
(potential fire risk) and disconnection of cables during routine office cleaning.
Other considerations
» If mobile phones and tablets are connected to the network, it will need to
offer Wi-Fi or Bluetooth capability.
» There may be regulations in some countries regarding which wireless
transmission frequencies can be used legally.
» Permission from authorities and land owners may be required before laying
cables underground.
» There are numerous competing signals in the air around us; it is important to
consider this when deciding whether to go for wired or wireless connectivity.
Hub
Hubs are hardware devices that can have a number of devices or computers
connected to them.
computer
computer
45
2
network (LAN), for example a star network (see Section 2.1.3). A hub’s
main task is to take any data packet (a group of data being transmitted)
received at one of its ports and then send the data to every computer
in the network. Using hubs is not a very secure method of data distribution
and is also wasteful of bandwidth. Note that hubs can be wired or
wireless devices.
Switch
2 Communication
Switches are similar to hubs, but are more efficient in the way they distribute
the data packet. As with hubs, they connect a number of devices or computers
together to form a LAN (for example, a star network).
However, unlike a hub, the switch checks the data packet received and works
out its destination address (or addresses) and sends the data to the appropriate
computer(s) only. This makes using a switch a more secure and efficient way of
distributing data.
computer
Each device or computer on a network has a media access control (MAC) address
which identifies it uniquely. Data packets sent to switches will have a MAC
address identifying the source of the data and additional addresses identifying
each device which should receive the data. Note that switches can be wired or
wireless devices.
Repeater
When signals are sent over long distances, they suffer attenuation or signal
loss. Repeaters are devices which are added to transmission systems to
boost the signal so it can travel greater distances. They amplify signals on
both analogue (copper cable) and digital (fibre optic cable) communication
links.
Repeaters can also be used on wireless systems. These are used to boost
signals to prevent any ‘dead spots’ in the Wi-Fi zone. These devices plug into
electric wall sockets and send out booster signals. They are termed non-logical
devices because they will boost all signals which have been detected; they are
not selective.
Sometimes, hubs contain repeaters and are known as repeating hubs. All
signals fed to the hub are boosted before being sent to all devices in the
network, thus increasing the operational range.
There are two main drawbacks of repeating hubs:
1 They have only one collision domain. When the signals are boosted and
then broadcast to devices, any collisions which might occur are not resolved
there and then. One way to deal with this problem is to make use of
46
2
network performance since it involves repeated broadcasts as the
collisions are resolved.
2 The devices are referred to as unmanaged since they are unable to manage
delivery paths and also security in the network.
Bridge
Bridges are devices that connect one LAN to another LAN that uses the same
protocol (communication rules). They are often used to connect together
2.1
different parts of a LAN so that they can function as a single LAN.
Networking
LAN LAN
server server
computer computer
computer computer
BRIDGE
Bridges are used to interconnect LANs (or parts of LANs), since sending out
every data packet to all possible destinations would quickly flood larger
networks with unnecessary traffic. For this reason, a router is used to
communicate with other networks, such as the internet. Note that bridges can
be wired or wireless devices.
Router
Routers enable data packets to be routed between the different networks for
example, to join a LAN to a WAN. The router takes data transmitted in one
format from a network (which is using a particular protocol) and converts the
data to a protocol and format understood by another network, thereby allowing
them to communicate via the router. We can, therefore, summarise the role of
routers as follows. Routers
» restrict broadcasts to a LAN
» act as a default gateway
» can perform protocol translation; for example, allowing a wired network
to communicate with a wireless (Wi-Fi) network – the router can take an
Ethernet data packet, remove the Ethernet part and put the IP address into
a frame recognised by the wireless protocol (in other words, it is performing
a protocol conversion)
» can move data between networks
» can calculate the best route to a network destination address.
47
computer SWITCH
ROUTER
LAN
Broadband routers sit behind a firewall. The firewall protects the computers
on a network. The router’s main function is to transmit internet and
transmission protocols between two networks and allow private networks to
be connected.
The router inspects the data package sent to it from any computer on any
of the networks connected to it. Since every computer on the same network
has the same part of an internet protocol (IP) address, the router is able to
send the data packet to the appropriate switch and it will then be delivered
using the MAC destination address (see next section). If the MAC address
doesn’t match any device on the network, it passes on to another switch on
the same network until the appropriate device is found. Routers can be wired
or wireless devices.
Gateway
A gateway is a network point (or node) that acts as an entrance to another
network. It is a key point for data on its way to or from other networks. It
can be used to connect two or more dissimilar LANs (LANs using different
protocols). The gateway converts data packets from one protocol to another.
Gateways can also act as routers, firewalls or servers – in other words, any
device that allows traffic to flow in and out of the networks. Gateways can be
wired or wireless devices.
All networks have boundaries so that all communication within the network is
conducted using devices such as switches or routers. If a network node needs
to communicate outside its network, it needs to use a gateway.
Modems
Modern computers work with digital data, whereas many of the public
communication channels still only allow analogue data transmission. To allow
the transmission of digital data over analogue communication channels we
need to use a modem (modulator demodulator). This device converts digital
data to analogue data. It also does the reverse and converts data received
over the analogue network into digital data which can be understood by the
computer.
Wireless modems transmit data in a modulated form to allow several
simultaneous wireless communications to take place without interfering
with each other. A modem will connect to the public infrastructure (cable,
telephone, fibre-optics or satellite) and will supply the user with a standard
Ethernet output which allows connection to a router, thus enabling an internet
connection to occur.
48
internet
PC
smart phone
2
modem router
tablet
2.1
While the router will allow the creation of a network in a home, for
example, the modem allows for the connection to the external networks
Networking
(for example, the internet). Routers and modems can be combined into one
unit; these devices have the electronics and software to provide both router
and modem functions.
Another example of a modem is a softmodem (software modem), which uses
minimal hardware and uses software that runs on the host computer. The
computer’s resources (mainly the processor and RAM) replace the hardware of a
conventional modem.
Table 2.6 shows the differences between routers and gateways.
Routers Gateways
n forward packets of data from one n convert one protocol (or data format)
network to another; routers read each to another protocol (format) used in a
incoming packet of data and decide different network
where to forward the packet
n can route traffic from one network to n convert data packets from one protocol
another network to another; they act as an entry and
exit point to networks
n can be used to join LANs together to n translate from one protocol to another
form a WAN (sometimes called brouters)
and also to connect a number of LANs
to the internet
n offer additional features such as n do not support dynamic routing
dynamic routing (ability to forward
data by different routes)
▲ Table 2.6 Differences between routers and gateways
EXTENSION ACTIVITY 2C
Draw a diagram to show how a gateway could be used to connect together
three LANs which are using different protocols. Include all the hardware
devices and cables needed.
49
Infrastructure mode requires WAPs (wireless access points) and all the data
is transferred using the WAP and hub/switch; all the wireless devices connect
to the WAP and must use the same security and authentication techniques.
Ad hoc mode does not need to have access to WAPs; it is possible for devices
to interface with each other directly.
2.1.7 Ethernet
Ethernet is a protocol used by many wired LANs. It was adopted as a standard
by the Institute of Electrical and Electronic Engineers (IEEE) and Ethernet is
also known as IEEE 802.3. A network using Ethernet is made up of:
» a node (any device on the LAN)
» medium (path used by the LAN devices, such as an Ethernet cable)
» frame (data is transmitted in frames which are made up of source address
and destination address – the addresses are often the MAC address).
Conflicts
When using Ethernet, it is possible for IP addresses to conflict; this could show
up as a warning such as that in Figure 2.19.
This may occur if devices on the same network have been given the same
IP address; without a unique IP address it is not possible to connect to a
network. This is most likely to occur on a LAN where dynamic IP addresses
may have been used. Dynamic IP addresses are temporary and may have been
assigned to a device on the network, unfortunately, another device using
static IP addresses may already have the same IP address. This can be resolved
by re-starting the router. Any dynamic IP addresses will be re-assigned, which
could resolve the issue.
Collisions
Ethernet supports broadcast transmission (communications where pieces of
data are sent from sender to receiver) and are used to send messages to all
devices connected to a LAN. The risk is that two messages using the same data
50
2
multiple access with collision detection (CSMA/CD) was developed to try and
resolve this issue. Collison detection depends on simple physics: when a frame
is sent it causes a voltage change on the Ethernet cable. When a collision is
detected, a node stops transmitting a frame and transmits a ‘jam’ signal and
then waits for a random time interval before trying to resend the frame.
CSMA/CD protocol will define the random time period for a device to wait
before trying again.
Figure 2.20 shows how data collisions can be dealt with using transmission
2.1
counters (which keep track of how many times the collision detection routine
has been entered – there will a defined limit as part of the CSMA/CD protocol)
Networking
and random time periods.
assemble
A
frame
Yes
END
frame
No sent?
collision No continue to
detected? send
Yes
increment transmission
counter
No
A
wait for allocated time period
then re-start transmission
▲ Figure 2.20 How data collisions can be dealt with using transmission counters
51
low high
source of bit streaming
buffer
data stream from server
media
player
52
On demand
» Digital files stored on a server are converted to a bit streaming format
2
(encoding takes place and the encoded files are uploaded to a server).
» A link to the encoded video/music file is placed on the web server to be
downloaded.
» The user clicks on the link and the video/music file is downloaded in a
contiguous bit stream.
2.1
» Because it is on demand, the streamed video/music is broadcast to the user
as and when required.
Networking
» It is possible to pause, rewind and fast forward the video/music if required.
Real time
» An event is captured by camera and microphone and is sent to a computer.
» The video signal is converted (encoded) to a streaming media file.
» The encoded file is uploaded from the computer to the dedicated video
streaming server.
» The server sends the encoded live video to the user’s device.
» Since the video footage is live it is not possible to pause, rewind or fast
forward.
ACTIVITY 2B
1 a) Explain the differences between LAN, MAN and WAN.
b) Give three of the benefits of networking computers.
c) Explain the following terms.
i) Thick client
ii) Thin client
2 a) Draw diagrams to show the following network topologies.
i) Bus
ii) Star
iii) Mesh
b) Give one benefit and one drawback of using each type of network
topology.
3 a) Explain the differences between public and private cloud computing.
b) Give two benefits of using cloud computing.
c) Give two drawbacks of using cloud computing.
4 You have been asked by a manager to write a report on whether a
LAN being set up in their new building should use wired or wireless
connectivity. The building has 20 floors.
Explain your arguments for and against using both types of connectivity
and draw a conclusion to help the manager make their decision.
5 a) What is meant by bit streaming?
b) Why is it necessary to use buffers whilst streaming a video from the
internet?
c) Explain the differences between on demand and real time bit streaming.
53
54
2.2
2.2.2 Hardware and software needed to support
the internet
The internet
The fundamental requirements for connecting to the internet are
» a device (such as a computer, tablet or mobile phone)
» a telephone line connection or a mobile phone network connection
(however, it is possible that a tablet or mobile phone may connect to the
internet using a wireless router)
» a router (which can be wired or wireless) or router and modem
» an internet service provider (ISP) (combination of hardware and software)
» a web browser.
The telephone network system, public switched telephone network (PSTN),
is used to connect computers/devices and LANs between towns and cities.
Satellite technology is used to connect to other countries (see later).
In recent years, telephone lines have changed from copper cables to fibre optic
cables, which permits greater bandwidth and faster data transfer rates (and
less risk of data corruption from interference). Fibre optic telephone networks
are usually identified as ‘fast broadband’. As discussed earlier, high speed
broadband has allowed WLANs to be developed by using WAPs.
High speed communication links allow telephone and video calls to be made
using a computer and the internet. Telephone calls require either an internet-
enabled telephone connected to a computer (using a USB port) or external/
internal microphone and speakers. Video calls also require a webcam. When
using the internet to make a phone call, the user’s voice is converted to
digital packages using Voice over Internet Protocol (VoIP). Data is split into
packages (packet switching) and sent over the network via the fastest route.
Packet switching and circuit switching are covered in more detail in Chapter 14.
Comparison between PSTN and internet when making a phone call
Public switched telephone network (PSTN)
PSTN uses a standard telephone connected to a telephone line.
The telephone line connection is always open whether or not anybody is talking –
the link is not terminated until the receivers are replaced by both parties.
Telephone lines remain active even during a power cut; they have their own
power source.
Modern phones are digitised systems and use fibre optic cables (although
because of the way it works this is a big waste of capacity – a 10 minute phone
call will transmit about 10 MB of data).
Existing phone lines use circuit switching (when a phone call is made the
connection (circuit) is maintained throughout the duration of the call – this is
the basis of PSTN).
55
2 Phone calls using the internet use either an internet phone or microphone and
speakers (video calls also require a webcam).
The internet connection is only ‘live’ while data (sound/video image) is being
transmitted.
Voice over Internet Protocol (VoIP) converts sound to digital packages
(encoding) which can be sent over the internet.
VoIP uses packet switching; the networks simply send and retrieve data as it
2 Communication
35 800 km GEO
5000–12 000 km
MEO
500–2500 km
LEO
Geostationary Earth Orbit (GEO) provide long distance telephone and computer network communications;
orbital period = 24 hours
Medium Earth Orbit (MEO) used for GPS systems (about 10 MEO satellites are currently orbiting the Earth);
orbital period = 2 to 12 hours
Low Earth Orbit (LEO) used by the mobile phone networks (there are currently more than 100 LEO satellites
orbiting the Earth); orbital period = 80 mins to 2 hours
56
2
and don’t suffer from signal attenuation to the same extent as underground/
undersea cables. It is also difficult to isolate and resolve faults in cables on
the sea bed.
2.2.3 IP addresses
The internet is based on TCP/IP protocols. Protocols define the rules that must
be agreed by senders and receivers on the internet. Protocols can be divided
into TCP layers (see Chapter 14). We will first consider internet protocols (IP).
2.2
Internet protocols (IP)
The internet
IPv4 addressing
The most common type of addressing on the internet is IP version 4 (IPv4).
This is based on 32 bits giving 232 (4 294 967 296) possible addresses. The
32 bits are split into four groups of 8 bits (thus giving a range of 0 to 255).
For example, 254.0.128.77.
The system uses the group of bits to define network (netID) and network host
(hostID). The netID allows for initial transmission to be routed according to the
netID and then the hostID is looked at by the receiving network. Networks are
split into five different classes, as shown in Table 2.8 below.
Network IPv4 range Number of Number of Types of
class netID bits hostID bits network
A 0.0.0.0 to 127.255.255.255 8 24 very large
B 128.0.0.0 to 191.255.255.255 16 16 medium size
C 192.0.0.0 to 223.255.255.255 24 8 small networks
D 224.0.0.0 to 239.255.255.255 – – multi-cast
E 240.0.0.0 to 255.255.255.255 – – experimental
▲ Table 2.8 The five network classes
57
2
address range. For example, a user with a medium sized network (class B) might
have 284 host machines and their class B licence allows them 216 (65534; note
the value is not 65536 since two values are not assigned). This means several of
the allocated host IDs will not be used, which is wasteful.
Classless inter-domain routing (CIDR) reduces this problem by increasing the
flexibility of the IPv4 system. A suffix is used, such as 192.30.250.00/18, which
means 18 bits will be used for the net ID and the last 14 bits will be used for
the host ID (rather than the normal 24 bits and 8 bits for a class C network).
2 Communication
The suffix clearly increases the flexibility regarding which bits represent the
net ID and which represent the host ID.
EXTENSION ACTIVITY 2E
Network address translation (NAT) removes the need for each IP address to
be unique. Find out how it works.
IPv6 addressing
IPv6 addressing has been developed to overcome some of the problems
associated with IPv4. This system uses 128-bit addressing, which allows for
much more complex addressing structures. An IPv6 address is broken into
16-bit chunks and because of this, it adopts the hexadecimal notation. For
example:
A8FB:7A88:FFF0:0FFF:3D21:2085:66FB:F0FA
Note how a colon (:) rather than a decimal point (.) is used here.
It has been designed to allow the internet to grow in terms of number of hosts
and the potential amount of data traffic. IPv6 has benefits over IPv4, it
» has no need for NATs (network address translation)
» removes risk of private IP address collisions
» has built in authentication
» allows for more efficient routing.
Zero compression
IPv6 addresses can be quite long; but there is a way to shorten them using
zero compression. For example, 900B:3E4A:AE41:0000:0000:AFF7:DD44:F1FF
can be written as:
900B:3E4A:AE41::AFF7:DD44:F1FF
With the section 0000:0000 replaced by ::
The zero compression can only be applied ONCE to an IPv6 address, otherwise
it would be impossible to tell how many zeros were replaced on each occasion
where it was applied. For example, 8055:F2F2:0000:0000:FFF1:0000:0000:DD04
can be rewritten either as:
8055:F2F2::FFF1:0000:0000:DD04
or as:
8055:F2F2:0000:0000:FFF1::DD04
58
2
we have no way of knowing whether the original address was
8055:F2F2:0000:FFF1:0000:0000:0000:DD04
or
8055:F2F2:0000:0000:0000:FFF1:0000:DD04
or
8055:F2F2:0000:0000:FFF1:0000:0000:DD04
2.2
It would, therefore, be regarded as ambiguous.
The internet
Sub-netting
CIDR is actually based on sub-netting and the two are similar in many ways.
Sub-netting divides a LAN into two or more smaller networks. This helps reduce
network traffic and can also hide the complexity of the overall network. Recall
that the IP address (using IPv4) is made up of the netID and hostID. Suppose
a university network has eight departments and has a netID of 192.200.20
(11000000.11001000.00010100). All of the devices on the university network
will be associated with this netID and can have hostID values from 00000001
to 1111110 (hostIDs containing all 0s or all 1s are forbidden). The university
network will look something like this:
Humanities
Admin and
finance Maths
Science
internet gateway
Arts
Engineering
Business
Computing
So, for example, the devices in the Admin and finance department might have
hostIDs of 1, 8, 240, 35, 67, 88, 134, and so on, with similar spreads for the
other seven departments.
It would be beneficial to organise the netIDs and hostIDs so that the network
was a lot less complex in nature. With sub-netting, the hostID is split as follows:
000 00000, where the first 3 bits are netID expansion and the last 5 bits are
the hostIDs.
59
2 Department
Admin and finance
netID
192.200.20.0
hostID range
00001 to 11110
Humanities 192.200.20.1 00001 to 11110
Maths 192.200.20.2 00001 to 11110
Science 192.200.20.3 00001 to 11110
Arts 192.200.20.4 00001 to 11110
2 Communication
Humanities
Admin and 192.200.20.1
finance Maths
192.200.20.0 192.200.20.2
Science
192.200.20.3
internet router
Arts
192.200.20.4
Engineering
Business
192.200.20.5
192.200.20.7
Computing
192.200.20.6
The devices in the Admin and finance department will have IP addresses
192.200.20.000 00001 to 192.200.20.000 11110
The Humanities department will have IP addresses
192.200.20.001 00001 to 192.200.20.001 11110
And so on for the other departments.
To obtain the netID from the IP address we can apply the AND mask (recall
that 1 AND 1 = 1, 0 AND 0 = 0 or 1 AND 0 = 0). Thus, if a device has an IP
address of
11000000.11001000.00010100.011 00011
we can apply the AND mask
11111111.11111111.11111111.111 00000
which results in the netID value
11000000.11001000.00010100.011 00000 (or 192.200.20.03)
60
2
efficient (for the reasons stated above) and less complex. Compare this to
CIDR 192/200/20/0/27, which extends the size of the netID to 27 bits and has
a hostID of only 5 bits, but would not reduce the complexity of the network.
Private IP addresses and public IP addresses
Private IP addresses are reserved for internal use behind a router or other NAT
device. The following blocks are reserved for private IP addresses.
Class A 10.0.0.0 to 10.255.255.255 16 million possible addresses
2.2
Class B 172.16.0.0 to 172.31.255.255 1 million possible addresses
The internet
Class C 192.168.0.0 to 192.168.255.255 65 600 possible addresses
▲ Table 2.10
Private IP addresses (which are internal value only) allow for an entirely
separate set of addresses within a network. They allow access to the network
without taking up a public IP address space. However, devices using these
private IP addresses cannot be reached by internet users.
Public IP addresses are the ones allocated by a user’s ISP to identify the
location of their device. Devices using these IP addresses are accessible from
anybody using the internet. Public IP addresses are used by
» DNS servers
» network routers
» directly-controlled computers.
Path is the web page (if this is omitted then it is the root directory of the website)
Filename is the item from the web page
For example: http://www.hoddereducation.co.uk/computerscience
3 2
2 Communication
computer
5 website server
① The user opens their web browser and types in the URL
(www.hoddereducation.co.uk) and the web browser asks the DNS server (1)
for the IP address of the website.
② The DNS server can’t find www.hoddereducation.co.uk in its database or its
cache and sends out a request to DNS server (2).
③ DNS server (2) finds the URL and can map it to 107.162.140.19; the IP
address is sent back to DNS server (1) which now puts the IP address and
associated URL into its cache/database.
④ This IP address is then sent back to the user’s computer.
⑤ The computer now sets up a communication with the website server and the
required pages are downloaded. The web browser interprets the HTML and
displays the information on the user’s screen.
62
Between the HTML tags the inclusion of JavaScript or PHP can be used.
2.2
JavaScript
The internet
JavaScript (unlike HTML) is a programming language which will run on the
client-side. What is the difference between running on the client-side and
running on the server-side?
» Client-side – the script runs on the computer, which is making the request,
processing the web page data that is being sent to the computer from the
server.
» Server-side – the script is run on the web server and the results of
processing are then sent to the computer that made the request.
01 <html>
02 <body>
03 <p>Enter the temperature</p>
04 <input id="Temp" value="0"
05 <button onclick="checkReading()>"Enter</button>
06 <script>
07 function checkReading() {
08 var temp, result;
09 temp = document.getElementById("Temp").value;
10 if (temp >= 200) {
11 result = "HIGH"
12 } else if (temp >= 100) {
13 result = "OK"
14 } else {
15 result = "LOW"
16 }
17 alert("The result is " + result)
18 }
19 </script>
20 </body>
21 </html>
PHP
PHP is another language which can be embedded within HTML. However,
when PHP is used it is processed on the server-side. Again, the code will be
sandwiched inside HTML and will be stored as a .php file.
63
2
are input but this time ‘H’, ‘O’ and ‘L’ are output depending on the result. Note
that variables begin with $ and are case-sensitive.
01 <?php
02 if(isset($ _ GET['temp'])) {
03 echo "Result: " . checkReading($ _ GET['temp']);
04 } else {
2 Communication
05 ?>
06 <form action="#" method="get">
07 Enter Temp: <input type="text" name="temp" /><br />
08 <input type="submit" value="Calculate" />
09 </form>
10
11 <?php
12 }
13 function checkReading($inputTemp) {
14 $resultChar = "L";
15 if($inputTemp >= 200) $resultChar = "H";
16 else if($inputTemp >= 100) $resultChar = "O";
17 return $resultChar;
18 }
19 ?>
EXTENSION ACTIVITY 2F
Look at the two pieces of code in the previous JavaScript and PHP sections,
then answer these questions.
a) Write down the names of two variables which are used in each piece
of code.
b) In each case, identify which statement(s) correspond(s) to an output.
c) What is the purpose of the statement shown in line:
i) 09 of the JavaScript code
ii) 03 of the PHP code?
e) What is the purpose of line 05 in the JavaScript?
ACTIVITY 2C
1 a) Describe what happens when a telephone call is made using PSTN.
b) Describe what happens when a computer, equipped with microphone
and speakers, is used to make a ‘telephone’ call over the internet.
c) Communication links between continents frequently involve the use of
satellite technology. Explain the differences between GEO, MEO and
LEO satellites.
64
2.2
i) Which class of network is the device part of?
The internet
ii) Which bits are used for the net ID and which bits are used for the
host ID?
iii) A network uses IP addresses of the form 200.35.254.25/18.
Explain the significance of the appended value 18.
d) Give two differences between IPv4 and IPv6.
3 a) Describe the differences between private IP addresses and public
IP addresses.
b) Identify the protocol, domain name and file name used in the following
URL: https://www.exampleofaurl.co.de/computer_logic.html
c) Describe how DNS is used to retrieve a web page from the website
used in part b).
4 a) Explain the differences between the internet and the world wide web
(www).
b) Hasina wrote,
‘The internet is not necessarily a type of WAN.’
Is Hasina’s statement correct? Give reasons for your answer.
c) Explain these two terms.
i) Web browser
ii) Internet service provider (ISP)
End of chapter 1 Star and mesh are two types of network topology that can be used to make a LAN.
questions
a) i) State one benefit and one drawback of the star network topology. [2]
ii) State one benefit and one drawback of the mesh network topology. [2]
➔
65
2
or peer-to-peer network. [4]
Type of network Description
workstations
2 a) Conventional telephone calls are made using the public service telephone
network (PSTN). The national network uses both copper cables and fibre
optic cables.
i) Explain the difference between copper cabling and fibre optic cabling. [2]
ii) Describe two benefits and two drawbacks of both types of cabling. [4]
b) Satellite technology is often used in long distance communications.
Compare the differences between GEO, MEO and LEO satellites. [3]
c) Some telephones use Bluetooth to connect to the telephone network. Explain
what is meant by:
i) the attenuation of a signal [2]
ii) spread spectrum frequency hopping. [2]
3 a) Explain the term bit streaming. [2]
b) A person watches a film streamed from a website on a tablet computer.
i) Give two benefits of using bit streaming for this purpose. [2]
ii) State two potential problems of using bit streaming for this purpose. [2]
c) Explain the terms on-demand bit streaming and real-time bit streaming. [4]
Cambridge International AS & A Level Computer Science 9608
Paper 11 Q1 November 2015
66
2
higher limit is set at 1.8 MiB.
Data is being streamed at 1.5 Mbps and the media player is taking data at the rate
600 kbps.
You may assume a megabit is 1 048 576 bits and a kilobit is 1024 bits.
a) Explain why the buffer is needed. [2]
b) i) Calculate the amount of data stored in the buffer after 2 seconds of
streaming and playback.
2.2
You may assume that the buffer already contains 200 KiB of data. [4]
ii) By using different time values (such as 4 secs, 6 secs, 8 secs, and so on)
The internet
determine how long it will take before the buffer reaches its higher limit
(1.8 MiB). [5]
c) Describe how the problem calculated in part b) ii) can be overcome so that a
30-minute video can be watched without frequent pausing of playback. [2]
5 a) When data is transmitted over a LAN network there is the possible risk of
data collision.
i) Explain the term data collision. [2]
ii) Describe how CSMA/CD is able to detect collisions. [1]
iii)Explain how CSMA/CD can be used to resolve the problem of data
collision. [2]
b) Copy the diagram below and connect each network device to its
description. [5]
Network device Description
67