Professional Documents
Culture Documents
w02 Lec ComputerNetworksAndTheInternet v01 Notes
w02 Lec ComputerNetworksAndTheInternet v01 Notes
COIT20246 1
W02 Computer Networks and the Internet
COIT20246 2
W02 Computer Networks and the Internet
COIT20246 3
W02 Computer Networks and the Internet
COIT20246 4
W02 Computer Networks and the Internet
Here is a common example of a home network. At the centre is a WiFi router (with two
antennas). There may be multiple computers (laptops, phones) connected wireless to
the router, and multiple computers (desktops, TVs) connected via wires to the router.
Together they form a computer network within the home.
While the home network allows the internal devices to communicate with each other
(e.g. phone to TV, desktop to laptop), the real benefits to users come when those
computers can also communicate with computers in other networks, i.e. in the Internet.
In this example the WiFI router also connects to a modem that in turn connects via a
telephone line to an Internet Service Provider (ISP). That ISP then has connections to
other ISPs. We’ll see the details later.
This example shows computers with addresses next to them. These addresses are used
to identify computers within a computer network, and within the Internet. The format of
the addresses isn’t important yet.
COIT20246 5
W02 Computer Networks and the Internet
Here is another example you may encounter: a simplified university campus network.
You don’t need to know all the details (e.g. difference between switch, router, AP). Note
however that within the campus there are multiple networks connected together. E.g. a
network in each computer lab, a network for the servers, ad network for the office
space on each floor. These networks are then connected together. Finally, for Internet
access, the campus connects to an ISP (in this example, as is common in Australian
universities, the ISP is AARnet).
Note that this figure uses a different style than the previous one. We haven’t shown
photos of actual devices, but represented computers with rectangles. It doesn’t matter
what brand or type of computer. We also hide some of the wired links (otherwise the
figure become too messy).
COIT20246 6
W02 Computer Networks and the Internet
Host: any end‐user computing device on network, e.g. desktop, phone, server, TV, security camera
Sometimes we don’t care about the wired/wireless connections in the network, nor the intermediate network
devices connecting the computers. We hide the details and just show hosts on a network (using a cloud, oval or
rectangle shape).
7 COIT20246 ‐ Computer Networks and the Internet
On the left is a example simple network with several computers connected together via
wired links and intermediate network devices called switches. When we are talking
about networks and the Internet we often don’t care about the detailed connections.
We simple refer to the “network”, and assume the computer devices are connected
using some underlying technology (it could be wired or wireless). Hence to simplify
diagrams, we will often omit the detailed connections and draw a cloud shape (or
sometimes oval or rectangle) to represent the connections.
We also often don’t care about what type of computer is connected, e.g. a desktop
computer, a laptop, Raspberry Pi, mobile phone, network security camera, TV, server,
supercomputer or … . From the networks perspective, it is just a computer. We will often
use the term ‘host’ to refer to such a computer. This is a term from the early days of the
Internet, and represents a computer on a network that may run one or more end‐user
applications.
On the right is an abstract view of the real network on the left. There are five hosts,
labelled H1 to H5. The network is drawn as a cloud shape. For later convenience, we
may give the network a name, e.g. “Network A”.
COIT20246 7
W02 Computer Networks and the Internet
Network B is connected to other networks via routers Rb and Rc. Network C has three
hosts.
You can imagine that Network E is connected to further networks via router Rd.
COIT20246 8
W02 Computer Networks and the Internet
as Network A, but be aware if we said Subnet A it would mean the same thing.
COIT20246 8
W02 Computer Networks and the Internet
COIT20246 9
W02 Computer Networks and the Internet
Computer A Computer B
The red LAN cable is the “link” between computer A and computer B.
COIT20246 10
W02 Computer Networks and the Internet
This figure is an example of a simple model of communications across a link. First note, a
“link” is a connection between two network devices, in this case, two computers.
COIT20246 11
W02 Computer Networks and the Internet
Here we list key performance metrics for links. While there are others, these are
sufficient for our coverage of links so far. (One other metric not listed is error rate).
“Depends on” lists the main factors that impact that metric, however there may be
others.
COIT20246 12
W02 Computer Networks and the Internet
C D
A switch B
This is an example of a Local Area Network (LAN). There is a switch in the centre
with the four computers connected to the switch with green and blue cables.
There are four links in this scenario: from each computer to the switch.
COIT20246 13
W02 Computer Networks and the Internet
Application Application
OS Intermediate device OS
Rx Tx
The intermediate device does not “understand” the application; it just receives data on one link and then
transmits that data onto the next link
COIT20246 14
W02 Computer Networks and the Internet
COIT20246 15
W02 Computer Networks and the Internet
Speedtest https://www.speedtest.net/
4:50pm 4:55pm
Here are two results of a speed test from a laptop on CQU campus (in Cairns) to a server
in Brisbane. The right test was performed 5 minutes after the left test. Note the
significant difference in download throughput at the different times.
Network throughput depends on many factors, especially how the network is used by
others at the same time. The significant download throughput difference could be
explained by various factors:
‐ Other users start doing something at 4:55pm, causing congestion in the network,
slowing down my messages (likely).
‐ A different path was used in the 4:55pm test, and that path had links with
significantly lower performance (unlikely, but possible)
‐ Significant processing on the source laptop or destination server caused delays in
processing messages (unlikely, but possible)
COIT20246 16
W02 Computer Networks and the Internet
A Simple Internet
Satellite
PC3 Router E
Router C
Router A Router H
Switch 2
Router F
Router D
Switch 3
Laptop 1
AP 1 AP 2 Router F
Web Email File
Laptop 2 Server Server Server
Laptop 3
This is an example of an internet, with multiple LANs connected together, sometimes via
Wide Area Networks (WANs). The clouds represent LANs/WANs with the details of the
internal network structure hidden.
COIT20246 17
W02 Computer Networks and the Internet
This is a very abstract model of communications in the Internet. We still need to learn
many details, including:
‐ How do intermediate devices receive/send data?
‐ How to select which intermediate device to send via?
‐ What happens if failures within intermediate devices?
‐ How to create applications without knowing details of underlying network and
technologies?
COIT20246 18
W02 Computer Networks and the Internet
COIT20246 19
W02 Computer Networks and the Internet
For some of the history of the formation of the Internet, including the definitions of
names, see: AARNet – 20 Years of the Internet in Australia:
https://www.aarnet.edu.au/history (free 130 page book).
If you want to delve further into the history of computer communications, the Computer
History Museum (https://www.computerhistory.org/) has the “James L. Pelkey
Collection: History of Computer Communications”
(https://historyofcomputercommunications.info/), which is a s set of 81 interviews with
people involved between 1968 and 1988. The transcripts of the interviews are available
COIT20246 20
W02 Computer Networks and the Internet
online (scroll down to the “Related Records” and follow link to each person.
https://www.computerhistory.org/collections/catalog/102746648
COIT20246 20
W02 Computer Networks and the Internet
Nov 1982
Sep 1973
The Computer History Museum has various resources on ARPNET history including:
‐ Geographical maps of the network over time (1969 – 1986):
https://www.computerhistory.org/collections/catalog/102646702
‐ Logical maps of the network over time (1969 – 1979):
https://www.computerhistory.org/collections/catalog/102646704
‐ Logical maps of the network over time (1980 – 1987):
https://www.computerhistory.org/collections/catalog/102646705
COIT20246 21
W02 Computer Networks and the Internet
Generally in performance: optical fibre > coaxial cable > copper cables
fixed wireless > satellite
Note the performance rule of thumb is saying optical fibre is faster than coaxial cable in
a similar environment, and coaxial cable is faster than copper cables. Fixed wireless may
compare to coaxial cable (i.e. slower than optical fibre) but is faster than satellite. There
are many exceptions to this rule (e.g. depending on distance, type of cable, frequencies,
interference), but is a good starting point if needing to quickly compare technologies.
COIT20246 22
W02 Computer Networks and the Internet
COIT20246 23
W02 Computer Networks and the Internet
Note that the actual plans vary over time, and different RSPs may offer slight variations.
However this gives an idea of the types of speed available for NBN.
COIT20246 24
W02 Computer Networks and the Internet
Fixed wireless typically has towers connected to the wired NBN (although it could be
wirelessly to other towers), and then customers have a wireless link from their home to
that tower. The range of the wireless signal from towers is kilometres (it depends on the
environment, max is 14 km and typical is 5‐6 km).
COIT20246 25
W02 Computer Networks and the Internet
NBN SkyMuster
• 2 x geostationary satellites covering Australia
• SkyMuster 1 (launched Sep 2015) and SkyMuster 2 (Oct 2016)
Satellite
Ground station
Home dish
PC1
Home router NBN
Geostationary satellites are in an orbit about 36,000 km above Earth such that they
appear stationary over Earth (that is, as the Earth rotates, so does the satellite so that
the satellite is always above the same location, which is Australia for SkyMuster).
There are 2 SkyMuster satellites. They weight about 3,500 kg and combined provided
135 Gb/s of bandwidth.
COIT20246 26
W02 Computer Networks and the Internet
NBN Sky Muster 1 satellite has many spot beams that point down to Australia and
region. In this image, from SatBeams (https://www.satbeams.com/), the spot beam
covering Brisbane is selected. There are about 100 spot beams used to cover the region,
with narrower beams (smaller coverage) over higher population density areas, and
wider beams (larger coverage) over lower population density areas.
COIT20246 27
W02 Computer Networks and the Internet
International Connections
COIT20246 28
W02 Computer Networks and the Internet
Visit the links to see further information, and some images of network diagrams.
COIT20246 29
W02 Computer Networks and the Internet
Addressing Basics
Addresses are needed for computers to identify the source (sender) and destination
(receiver) of messages sent in networks. There are different types of addresses used in
the Internet, with the historical development of computer networks playing a large part
in the structure and popularity of different formats.
Here we are going to quickly overview three formats of addresses. You have most likely
seen them many times before. We will explain the details for the formats – they will
come later in the unit if needed.
COIT20246 30
W02 Computer Networks and the Internet
COIT20246 31
W02 Computer Networks and the Internet
1‐to‐many 1‐to‐many
Many = selected group of devices Many = any device in a group
Requires techniques to determine Similar to multicast but packet
devices in multicast group delivered to only (any) one
Use: Multimedia and Use: DNS, CDN
collaborative apps
Before we talk about specific address formats, we first explain methods in which data is
delivered in networks.
By default, we will assume unicast is used when we talk about data delivery in a
network: one device sends to one other device. The other forms of data delivery are not
as common, but important. We will see examples of broadcast soon (but may not see
many examples of multicast or anycast in this unit).
For unicast, one destination address is associated with exactly one device. So if a device
sends a packet to that [unicast] destination address, the packet should be delivered only
to that device.
For broadcast, multicast and anycast, there is one destination address but it is
associated with multiple devices. If a device sends a packet to a [broadcast/multicast]
destination address, then the packet should be delivered to all devices associated with
that address. For anycast, if a device sends a packet to a [anycast] destination address,
then the packet should be delivered to one, but any one, of the devices in the anycast
group. So while anycast is 1‐to‐many with association between address and devices, it is
1‐to‐1 in terms of sender to receiving devices.
Multicast example: IP TV service where subscribers to the service watching the same
COIT20246 32
W02 Computer Networks and the Internet
channel are in the same multicast group. The TV service provider sends an IP stream to all
in that group.
Anycast example: A Content Delivery Network which has multiple servers across the
globe hosting the same content. A client wants to access the content: anycast routing
directs their packets to any of the servers hosting the content (usually the closest server).
For now, you don’t need to know how they are achieved (especially broadcast, multicast
and anycast), but just what the idea of each is.
COIT20246 32
W02 Computer Networks and the Internet
Within a single network all devices will typically use the same underyling network
technology, e.g. Ethernet or WiFi or Bluetooth. That underlying network technology
would specify the format of addresses to be used. These addresses are commonly
referred to as a MAC addresses (and also “hardware address”, “physical address”)., To
communicate to another device in the same network, a MAC address will be used. In the
past there were various different formats, but today the most common format is the
IEEE 48‐bit MAC address, or Extended Unique Identifier EUI‐48. A new format with 64‐
bits is EUI‐64.
COIT20246 33
W02 Computer Networks and the Internet
The first output of Get‐NetAdapter shows physical and virtual network adapters (NIC),
while with the “‐Physical” option it limits to the physical adapters. Virtual adapters
include e.g. VirtualBox, VPN, Bluetooth. This will differ across computers, but in this
example the physical adapters are:
1. Ethernet LAN port on laptop (where a LAN cable can be plugged in to). Currently
disconnected.
2. Ethernet LAN port on motherboard which is connected to USB‐C. The laptop is
plugged into a USB‐C dock, which has a LAN cable to an office network. This is
currently connected, with current link speed of 1 Gb/s.
3. Wi‐Fi port on a chip on the motherboard. Currently disconnected.
COIT20246 34
W02 Computer Networks and the Internet
Here is our example of a portion of the Internet. All of the hosts have a single
attachment to their local network represented by the black dot/circle. This is via a
Network Interface Card (NIC). As routers connect two or more network together, each
router has two or more network attachments/NICs.
Each NIC has a MAC address for communication on the directly attached network. For
example, host H6 can communicate directly with host H7 by sending to MAC address
MAC11.
With a diverse set of underlying technologies in the Internet, there is no guarantee that
all component networks are using the same MAC addressing scheme. Historically there
were several different formats, so the addresses used on Network A may be
incompatible with the addresses used on Network C. Therefore, for communication
across multiple networks, i.e. across the Internet, each Internet accessible NIC is given a
2nd address in a common format they all understand, i.e. and IP address.
Each host has an IP address. Again, the routers have one IP address for each network
they are attached to.
COIT20246 35
W02 Computer Networks and the Internet
IP Addressing
• IP addresses uniquely identify hosts/routers on the Internet
• Special cases and exceptions will be discussed in later topic, e.g. private
addresses
• Two versions: IPv4 and IPv6
• IPv4 example: 10.135.64.58
• IPv6 example: 2001:4860:4860::8888
• Tricks to communicate between devices using different version
• IP addresses are hierarchical
• Part of the address identifies network in the Internet
• Part of the address identified the host/router in that network
COIT20246 36
W02 Computer Networks and the Internet
These two PowerShell commands show different IP‐related information. IF you run then
with no options, you will see information for all interfaces. To select a specific interface,
use the InterfaceAlias or InterfaceIndex.
You don’t need to understand all information display. The most important part is to find
the IP address of your interface (NIC). In the above example, 10.135.64.58. Also take
note of your default gateway IP address.
If you are using Bash (Linux, MacOS) then you can find IP address information with:
‐ ifconfig
‐ ip addr show
COIT20246 37
W02 Computer Networks and the Internet
In the previous example we saw our own IP address, as well as the IP address of our
default gateway. A gateway is a router, so this is the default router on your local
network.
A common network diagnostic is to test for connectivity between two devices in the
Internet. This is commonly called “ping”. In PowerShell, use Test‐NetConnection.
The results show the ping succeeded and the round trip time (RTT) is 1ms.
COIT20246 38
W02 Computer Networks and the Internet
Domain Names
• MAC and IP addresses are used by computers … not very human
friendly
• Domain names are a human-friendly way to identify computers in
the internet
• Especially computers running server applications
• Domain Name System (DNS) maps domain names to IP addresses
COIT20246 39
W02 Computer Networks and the Internet
Name : a9113b8026a9cefed.awsglobalaccelerator.com
QueryType : A
TTL : 260
Section : Answer
IP4Address : 76.223.16.163
Name : a9113b8026a9cefed.awsglobalaccelerator.com
QueryType : A
TTL : 260
Section : Answer
IP4Address : 13.248.140.41 (with more information following)
Here we lookup a mapping from domain to IP. We won’t explain all information, just the
answers of interest.
In the first example, two answers are returned, one with an IPv6 address and the other
an IPv4 address. The answer of interest is that “google.com.au has the IPv4 address
142.250.71.67”.
(Information at the bottom of the 2nd command is remove due to space, but it doesn’t
help in what we are looking for).
COIT20246 40