Lecture 1: The Changing Internet
Lecture 1 introduces the course, and reviews some of the material
covered in the Networks and Operating Systems Essentials course in
Level 2. It discusses what is a network protocol and the concept of
layering as a way of structuring networked systems. It reviews some
important aspect of the physical and data link layer; IPv4 and IPv6
and the operation of the network layer; the UDP and TCP transport
protocols; and the higher layers in the protocol stack. Finally,
it concludes by discussing some of the changes occurring in the
network and some of the challenges forcing such changes, to set
the scene for the later discussion.
Part 1: The Changing Internet
The first part of this lecture introduces the course. It reviews the
aims, objectives, and learning outcomes, and the structure of the
lectures and labs. It outlines the assessment scheme, and the dates
and topics for the assessed exercises. Recommended reading is given.
00:00:00.000
Welcome to Networked Systems (H) for the
00:00:03.404
2020-2021 academic year.
00:00:04.434
For those who don’t know me,
00:00:06.594
my name is Colin Perkins. I’m the
00:00:08.998
lecturer and coordinator for this course.
00:00:11.058
In this first lecture, I’ll review the
00:00:13.561
aims, objectives, and administration of the course,
00:00:15.965
and recap some of the material covered
00:00:18.369
in the Networks and Operating Systems Essentials
00:00:20.772
course in Level 2.
00:00:22.146
Then, I’ll briefly introduce some of the
00:00:24.649
changes occurring in the network, to set
00:00:27.053
the scene for the remainder of this
00:00:29.457
course.
00:00:31.000
In this part of the lecture,
00:00:33.510
I’ll start with some administrative details.
00:00:35.920
I’ll talk about the aims, objectives,
00:00:38.431
and intended learning outcomes for the course.
00:00:41.242
I’ll outline the content of the lectures
00:00:44.054
and labs, the timetable for lectures and
00:00:46.866
laboratory sessions, and the structure of the
00:00:49.678
assessed exercises and exam. Finally, I’ll highlight
00:00:52.490
the recommended reading for the course.
00:00:56.000
As I mentioned at the start,
00:00:58.062
I’m Colin Perkins, the lecturer and coordinator
00:01:00.350
for the course.
00:01:01.331
If you have questions about the material
00:01:03.719
covered in the course, my email address
00:01:06.008
is on the slide, and I’m happy
00:01:08.296
to answer questions via email. We also
00:01:10.585
have office hours and discussion sessions throughout
00:01:12.873
the course, and a chat room in
00:01:15.162
Microsoft Teams.
00:01:15.815
All the course materials can be found
00:01:18.204
on Moodle, and also on my website
00:01:20.492
at the URL listed.
00:01:23.000
The aims and objectives of this course
00:01:25.752
are four-fold.
00:01:26.510
Firstly, the course aims to introduce the
00:01:29.262
fundamental concepts and theory of communication.
00:01:31.535
We’ll build on the material from the
00:01:34.187
Networks and Operating Systems Essentials course in
00:01:36.839
Level 2, covering the concepts in more
00:01:39.491
depth, and going into more details about
00:01:42.143
the operation of the Internet.
00:01:44.037
Second, the course aim to give you
00:01:46.789
a good understanding of the technologies that
00:01:49.441
comprise the modern Internet, and an understanding
00:01:52.093
of how, and why, the network is
00:01:54.745
changing. We’re in the middle of a
00:01:57.397
period of rapid change in the Internet
00:02:00.049
infrastructure, and this course will try to
00:02:02.701
make it clear what’s changing, and what
00:02:05.353
are the drivers for the changes.
00:02:07.626
This should give you the ability to
00:02:10.378
evaluate networked systems, and understand what technologies
00:02:13.030
and approaches are suitable for particular scenarios,
00:02:15.682
so you can advise on what’s appropriate
00:02:18.334
for use.
00:02:19.092
Finally, the course will build on the
00:02:21.844
material in the Systems Programming course,
00:02:24.117
to introduce low-level network programming, and to
00:02:26.769
give you practice with systems programming in
00:02:29.421
C.
00:02:31.000
By the end of the course,
00:02:33.443
you should be able to describe and
00:02:36.176
compare the capabilities of different communications technologies,
00:02:38.910
understand the implications of scale on networked
00:02:41.643
systems, and understand the different quality of
00:02:44.376
service needs of different applications.
00:02:46.329
In concrete terms, this means you should
00:02:49.162
understand what are the different protocols in
00:02:51.895
use in the Internet, and when it’s
00:02:54.629
appropriate to use one or the other.
00:02:57.362
For example, you should understand the differences
00:03:00.095
between UDP, TCP, and QUIC, and when
00:03:02.829
it’s appropriate to use each of these
00:03:05.562
protocols.
00:03:06.702
You should understand the importance of heterogeneity
00:03:09.536
in the design of the Internet,
00:03:11.879
the importance of layered protocol stacks,
00:03:14.221
and they way the different components of
00:03:16.955
the network are combined to form a
00:03:19.688
whole.
00:03:20.829
And, finally, you should be able to
00:03:23.662
write simple low-level communications software in C,
00:03:26.395
showing awareness of good practice for correct
00:03:29.129
and secure programming.
00:03:30.000
The course is organised as ten lectures
00:03:32.705
and six laboratory sessions.
00:03:34.194
The lectures are organised once per week
00:03:36.899
for the first eight weeks, followed by
00:03:39.504
a one-week gap, and then finishing up
00:03:42.109
with the final two lectures in the
00:03:44.714
tenth week.
00:03:45.458
Labs are organised weekly, with the first
00:03:48.163
four laboratory exercises expected to take one
00:03:50.768
week each, then the last two exercises
00:03:53.373
should take two weeks each. The labs
00:03:55.978
finish after eight weeks.
00:03:57.467
There’s also a weekly office hour.
00:04:01.000
Lecture recordings will be made available ahead
00:04:03.743
of time, and will comprise approximately two
00:04:06.387
hours worth of material, split into several
00:04:09.030
shorter parts, per week.
00:04:10.541
Each lecture will be accompanied by a
00:04:13.284
set of discussion questions, that will be
00:04:15.928
available on Moodle and on the course
00:04:18.571
website. These discussion questions are not assessed,
00:04:21.214
and are intended to help you understand
00:04:23.858
the material.
00:04:24.613
We have a live session timetabled from
00:04:27.357
10:00-11:00 on Thursday mornings, and also 2:00-3:00
00:04:30.000
on Thursday afternoon in week 10,
00:04:32.266
via Zoom. These sessions are intended for
00:04:34.909
a discussion of the lecture material and
00:04:37.553
questions. You should watch the lecture videos,
00:04:40.196
and think about the discussion questions,
00:04:42.462
before the timetabled sessions.
00:04:43.972
This discussion slot is your main opportunity
00:04:46.716
to ask questions about the material,
00:04:48.982
and I encourage you to come prepared
00:04:51.625
to use this slot for discussion.
00:04:53.891
The more questions and discussion we have,
00:04:56.534
the more useful it will be.
00:05:00.000
Immediately following the lecture discussion, from 11:00-12:00
00:05:02.721
on Thursday mornings, is the scheduled office
00:05:05.343
hour.
00:05:06.467
This is your time to ask questions
00:05:09.188
and discuss the course material with me,
00:05:11.810
in a one-to-one Zoom call, for any
00:05:14.431
questions you don’t want to ask in
00:05:17.052
the open discussion session.
00:05:19.000
Finally, there will be weekly labs during
00:05:21.811
the first eight weeks of the course.
00:05:24.522
These will run using Microsoft Teams,
00:05:26.845
and you’ll be organised into small groups
00:05:29.556
for these labs.
00:05:30.718
As with the lectures, the lab materials
00:05:33.528
will be made available in advance of
00:05:36.239
the timetabled sessions, and are to be
00:05:38.950
completed in your own time.
00:05:40.886
The timetabled sessions, from 14:00-16:00 on Thursdays,
00:05:43.697
are for live support with the lab
00:05:46.408
exercises. You should try to solve the
00:05:49.119
exercise, and think of questions you might
00:05:51.829
need to ask, before the timetabled support
00:05:54.540
slot, so the lab demonstrators and I
00:05:57.251
can effectively help you.
00:06:00.000
This course follows the usual model of
00:06:02.634
an exam worth 80% of the marks,
00:06:05.169
and coursework work the remaining 20%.
00:06:07.341
The assessed coursework will comprise two exercises,
00:06:09.975
each worth 10% of the marks.
00:06:12.148
The first assessed exercise will look at
00:06:14.782
TCP behaviour and congestion control. It will
00:06:17.316
be made available on 11 February,
00:06:19.489
along with the material for lab 5,
00:06:22.023
and will be due two weeks later,
00:06:24.557
on 25 February.
00:06:25.643
The second assessed exercise will look at
00:06:28.278
naming and the network topology. It will
00:06:30.812
be made available on 25 February,
00:06:32.984
with lab 6, and will be due
00:06:35.519
on 12 March.
00:06:36.605
I expect that you’ll complete each assessed
00:06:39.239
exercise over a couple of weeks.
00:06:41.411
Don’t leave them to the last minute:
00:06:43.946
there’s too much material to cover in
00:06:46.480
a rush just before the deadline.
00:06:48.652
There will also be an exam,
00:06:51.025
worth 80% of the marks for the
00:06:53.559
course, sometime in April or May.
00:06:55.731
Copies of past exam papers are available
00:06:58.266
on the Moodle page for the course.
00:07:02.000
Finally, while the lectures, labs, and discussion
00:07:04.688
will introduce you to the important concepts
00:07:07.277
in networking, it’s important that you read
00:07:09.865
about, and around, the material covered,
00:07:12.084
so that you understand the details.
00:07:14.303
Reading other descriptions of the material also
00:07:16.991
helps to illustrate different aspects of the
00:07:19.580
subject, and the different perspectives may make
00:07:22.168
things clear in cases where my explanations
00:07:24.757
do not.
00:07:25.496
The slide lists four good books on
00:07:28.185
computer networks. You should read one of
00:07:30.773
them. The books by Peterson and Davie,
00:07:33.362
and by Olivier Bonaventure, are available for
00:07:35.950
free online.
00:07:36.690
In addition to these books, many of
00:07:39.378
the lecture slides include links to the
00:07:41.967
standards documents and research papers that describe
00:07:44.555
the material being discussed. You’re not expected
00:07:47.144
to read these primary sources, but they’re
00:07:49.732
linked in case you want to go
00:07:52.321
deeper into the subject.
00:07:55.000
That concludes the review of the course
00:07:57.542
structure and administration.
00:07:58.589
In the remaining parts of this lecture,
00:08:01.131
I’ll review the traditional Internet architecture,
00:08:03.224
starting with a discussion of protocols and
00:08:05.667
layering, and then talk about some of
00:08:08.109
the ways in which the network is
00:08:10.551
changing.
Part 2: Protocols and Layers
Part 2 of the lecture introduces the idea of a network protocol, and
the concept of layering as a way of structuring networked systems. It
reviews the 7-layer OSI model, and discusses how it's a useful way of
thinking about systems, even though it's not representative of any
real-world systems.
00:00:00.000
I'd like to begin the course by
00:00:04.314
reviewing some of the fundamental principles of
00:00:06.528
networked systems.
00:00:07.160
In particular, I'd like to talk briefly
00:00:09.474
about what is a networked system,
00:00:11.372
and how networked systems are structured in
00:00:13.586
the form of a layered protocol stack.
00:00:17.000
So, what is a networked system?
00:00:19.716
A networked system is a set of
00:00:22.868
cooperating, autonomous, computing devices that exchange data
00:00:25.920
to perform some application goal.
00:00:28.101
I talk about computing devices, because networked
00:00:31.253
systems are not limited to traditional PCs,
00:00:34.305
laptops, or servers. There are far more
00:00:37.357
smart phones and tablets connected to the
00:00:40.409
network than there are laptops and servers,
00:00:43.461
for example. But there are also the
00:00:46.514
numerous sensors and controllers that form the
00:00:49.566
Internet of Things: cameras, smart light bulbs,
00:00:52.618
heating controllers, weather stations, medical devices,
00:00:55.234
industrial automation, and so on.
00:00:57.414
The network is comprised of an increasingly
00:01:00.566
diverse set of devices, and has to
00:01:03.619
meet their diverse needs.
00:01:05.363
These devices are autonomous. Each device acts
00:01:08.515
independently, with no central control, and can
00:01:11.567
choose what data to send, and when
00:01:14.619
to send it.
00:01:15.927
And these devices are all running different
00:01:19.080
applications, with different requirements. They require different
00:01:22.132
things from the network, and need different
00:01:25.184
network protocols to support their needs.
00:01:28.000
There are four aspects to the network.
00:01:30.998
The first is communication. How can two
00:01:34.097
devices, that are connected to a single
00:01:37.095
link, reliably exchange data.
00:01:38.809
Second, is networking. How can we combine
00:01:41.907
multiple network links to form a wide
00:01:44.906
area network, around a building, a campus,
00:01:47.904
or a region.
00:01:49.189
Third is internetworking. How can we connect
00:01:52.287
multiple networks together to form an internet?
00:01:55.286
How can multiple independently operated networks work
00:01:58.284
together to act as-if they were a
00:02:01.283
single global network? How can data be
00:02:04.281
routed across this collection of networks to
00:02:07.280
reach its destination?
00:02:08.565
And, finally, there is the problem of
00:02:11.663
transport. How do the end systems ensure
00:02:14.661
that data is delivered across this network
00:02:17.660
or networks with appropriate reliability to meet
00:02:20.658
the needs of the application?
00:02:24.000
Networked systems are fundamentally about communications protocols.
00:02:27.588
A sender is trying to talk to
00:02:31.176
one of more receivers, via some communications
00:02:34.664
channel.
00:02:35.913
It does this by sending messages,
00:02:39.003
that have to fit within the constraints
00:02:42.491
of the communications channel.
00:02:44.484
These constraints provide limits on the speed
00:02:48.072
and reliability of transmission. The channel is
00:02:51.560
not infinitely fast or perfectly reliable.
00:02:54.000
The messages being sent across the channel
00:02:56.969
have a well defined format. Much like
00:02:59.938
programming languages, network protocols have well defined
00:03:02.906
syntax that describes the structure and format
00:03:05.875
of the messages that can be sent.
00:03:08.844
They also have well defined semantics that
00:03:11.912
define the meaning of the messages,
00:03:14.457
the order in which they are sent,
00:03:17.426
and the patterns of communication.
00:03:19.546
Together the syntax and semantics of the
00:03:22.615
messages define a network protocol, such as
00:03:25.584
HTTP, TCP/IP, etc.
00:03:26.856
Each protocol has a particular purpose and
00:03:29.925
solves a particular problem. Protocols can be
00:03:32.894
combined, and layered on one another,
00:03:35.438
to gradually raise the level of abstraction,
00:03:38.407
and provide more sophisticated services to the
00:03:41.376
applications.
00:03:43.000
The Open Systems Interconnection Reference Model,
00:03:45.750
the OSI Model, is a common way
00:03:48.841
of thinking about protocol layering.
00:03:51.049
The OSI model structures the network as
00:03:54.240
a set of seven layers.
00:03:56.448
At the bottom of the protocol stack
00:03:59.639
is the physical layer.
00:04:01.406
For two devices, two end systems,
00:04:04.155
that are directly connected, as shown on
00:04:07.246
the slide, the physical layer represents the
00:04:10.338
means of interconnection. The type of cable,
00:04:13.429
if it's a wired link, or the
00:04:16.520
details of the radio channel.
00:04:18.728
The purpose of the physical layer is
00:04:21.919
to exchange data between the devices.
00:04:24.569
Above this sits the data link layer.
00:04:27.760
The link layer structures that data into
00:04:30.851
messages, identifies the devices, and coordinates when
00:04:33.942
each device can send, so they share
00:04:37.034
access to the channel.
00:04:40.000
If a single network comprises more than
00:04:43.143
one physical link, devices known as switches
00:04:46.185
can be inserted into the network.
00:04:48.793
Switches operate at the data link layer,
00:04:51.936
adapting the message framing and arbitrating access
00:04:54.979
to the different channels, in order to
00:04:58.021
bridge the different links together.
00:05:00.195
Examples of this include Ethernet switches,
00:05:02.903
that connect multiple Ethernet links together to
00:05:05.945
form a larger Ethernet network, and Wi-Fi
00:05:08.988
base stations that bridge between Ethernet and
00:05:12.031
Wi-Fi networks.
00:05:14.000
The third layer in the OSI model
00:05:17.460
is the network layer.
00:05:19.380
The network layer supports the interconnection of
00:05:22.840
multiple independently operated networks. It abstracts away
00:05:26.200
the details of the different types of
00:05:29.560
link layer, and combines different networks into
00:05:32.920
one, to give the illusion that there
00:05:36.280
is a single global internetwork.
00:05:38.680
The Internet protocols, IPv4 and IPv6,
00:05:41.660
are examples of network layer protocols,
00:05:44.540
and the devices that connect different networks
00:05:47.900
together are known as routers.
00:05:50.300
Above the network layer, the transport layer
00:05:53.760
ensures that data is delivered with appropriate
00:05:57.120
reliability between end systems. The Transmission Control
00:06:00.480
Protocol, TCP, is a widely used example
00:06:03.840
of a transport protocol.
00:06:05.760
Finally, the Session, Presentation, and Application layers
00:06:09.220
support the coordination of multiple transport connections,
00:06:12.580
describe the data formats used, and support
00:06:15.940
application semantics.
00:06:18.000
The OSI reference model is a standard
00:06:20.951
model for layered protocol design.
00:06:22.988
It's important to realise, though, that real
00:06:25.939
networks don't follow the OSI model.
00:06:28.382
No deployed networked system has seven layers
00:06:31.333
structured in this way.
00:06:32.963
Real systems are more complex. In some
00:06:35.914
cases, especially around the upper layers of
00:06:38.765
the stack, the layers merge together,
00:06:41.208
and the boundaries between them are unclear.
00:06:44.059
In other cases, systems are designed with
00:06:47.010
more layers, or with clearly defined sub-layers,
00:06:49.861
to support features that don't fit neatly
00:06:52.713
into the layer boundaries defined by the
00:06:55.564
OSI model.
00:06:56.378
Tunnelling solutions, that encapsulate data from a
00:06:59.329
lower layer, and transmit it within a
00:07:02.180
higher layer connection are also common.
00:07:04.624
Virtual Private Networks, VPNs, are a good
00:07:07.475
example of this, and take network layer
00:07:10.326
data in the form IP packets,
00:07:12.770
and tunnel them inside a transport layer
00:07:15.621
connection to some other part of the
00:07:18.472
network, giving the illusion that a device
00:07:21.323
is physically connected elsewhere. There’s not a
00:07:24.174
strict progression of layers.
00:07:25.803
We talk about the OSI model because
00:07:28.754
it's an extremely useful way to structure
00:07:31.605
discussion about networks, not because it reflects
00:07:34.456
the structure of any particular network.
00:07:38.000
To conclude, the network is a collection
00:07:40.845
of autonomous computing devices, cooperating to exchange
00:07:43.589
messages to support application needs.
00:07:45.550
Those messages are structured in the form
00:07:48.394
of a layered protocol stack, gradually building
00:07:51.139
up features from the exchange of data
00:07:53.883
between directly connected devices until we have
00:07:56.628
the global Internet.
00:07:57.804
The seven layer OSI model doesn’t reflect
00:08:00.649
reality, but is a useful way of
00:08:03.393
thinking about the protocol stack. For this
00:08:06.138
reason, I’ll use it to structure the
00:08:08.882
discussion in the other parts of this
00:08:11.627
lecture starting, in the next part,
00:08:13.979
with a discussion of the physical and
00:08:16.724
data link layers.
Part 3: Physical and Data Link Layers
Part 3 of the lecture reviews the physical and data link layers.
It briefly reviews baseband data encoding, carrier modulation,
and spread spectrum communication. It talks about the limitations
of physical links, the Shannon-Hartley theorem, the factor that
limit the performance of a communications channel.
It also briefly reviews the data link layer, talking about framing,
addressing, and media access control.
00:00:00.000
The physical and data link layers occupy
00:00:04.494
the lowest levels of the protocol stack,
00:00:06.988
and support data transmission between directly connected
00:00:09.481
devices.
00:00:10.588
In the following, I’ll briefly discuss the
00:00:13.181
physical characteristics of network links and the
00:00:15.675
modulation process by which data is transmitted
00:00:18.169
across those links. Then, I’ll talk about
00:00:20.662
features of the data link layer,
00:00:22.800
such as framing, addressing, and media access
00:00:25.294
control.
00:00:26.000
The physical layer describes the properties of
00:00:28.589
the communications channel. It’s the realm of
00:00:31.079
the electrical engineer; of cables, optical fibres,
00:00:33.568
and radio transmission.
00:00:34.635
When considering the physical layer, we discuss
00:00:37.224
the physical properties of the channel,
00:00:39.358
the way bits are encoded onto the
00:00:41.847
channel, and the capacity and error rate
00:00:44.337
of the channel.
00:00:45.403
We begin by asking whether the link
00:00:47.993
is wired or wireless?
00:00:49.415
If it is a wired link,
00:00:51.649
we then consider the type of cable
00:00:54.138
or optical fibre used. We ask what
00:00:56.628
voltage is applied to the cable,
00:00:58.761
or what frequency of laser light is
00:01:01.251
sent down the fibre. And we ask
00:01:03.740
how the bits are encoded as variations
00:01:06.229
in that voltage or in the intensity
00:01:08.719
of the laser.
00:01:09.785
If, instead, the channel is wireless,
00:01:12.019
we consider what type of antenna is
00:01:14.508
used, the transmission power, the carrier frequency,
00:01:16.998
and the modulation scheme used to encode
00:01:19.487
data onto the carrier wave.
00:01:21.265
Given these details, we can then estimate
00:01:23.854
the capacity of the channel, and model
00:01:26.344
the physical limitations of the performance of
00:01:28.833
the transmission link.
00:01:31.000
When using a wired link, whether an
00:01:33.689
electrical cable or an optical fibre,
00:01:35.908
the signal to be transmitted is usually
00:01:38.496
directly encoded onto the channel. That is,
00:01:41.085
the voltage applied to an electrical cable,
00:01:43.674
or the brightness of a laser shining
00:01:46.263
down an optical fibre, is changed in
00:01:48.851
a way that directly corresponds to the
00:01:51.440
signal to be transmitted.
00:01:52.919
The signal will occupy a certain frequency
00:01:55.608
range, known as its bandwidth. This is
00:01:58.197
measured in units of Hertz, Hz,
00:02:00.416
and directly corresponds to the complexity and
00:02:03.004
information content of the signal. The more
00:02:05.593
information being transmitted in a given time
00:02:08.182
interval, the greater the bandwidth. A signal
00:02:10.770
directly applied to a channel occupies what’s
00:02:13.359
known as the baseband frequency range:
00:02:15.578
the range starting at 0 Hz,
00:02:17.797
and reaching up to the maximum bandwidth
00:02:20.386
of the signal.
00:02:21.495
Every channel also has a maximum bandwidth
00:02:24.184
it can transmit. This depends on the
00:02:26.773
physical characteristics of the channel. For example,
00:02:29.361
the maximum bandwidth that can be sent
00:02:31.950
over a twisted pair electrical cable depends
00:02:34.539
on the length of the cable,
00:02:36.758
the tightness of the twists, and the
00:02:39.346
thickness of the wires.
00:02:40.826
A channel is only able to transmit
00:02:43.514
a particular signal if the bandwidth of
00:02:46.103
the signal is less than the bandwidth
00:02:48.692
of the channel. There’s a maximum rate
00:02:51.280
at which data can be transmitted,
00:02:53.499
depending on the physical characteristics of the
00:02:56.088
channel.
00:02:57.208
That maximum data rate is determined by
00:02:59.897
Nyquist’s theorem. This states that the maximum
00:03:02.485
data rate a channel can support,
00:03:04.704
Rmax, cannot exceed 2 B Log2 V
00:03:07.293
bits per second, where B is the
00:03:09.882
maximum bandwidth of the channel, and V
00:03:12.470
is the number of different values each
00:03:15.059
symbol can take.
00:03:16.169
For binary data, each symbol can have
00:03:18.857
one of two values, it can be
00:03:21.446
0 or a 1. Accordingly, V is
00:03:24.035
equal to two. The value of “Log2
00:03:26.623
V” term, in this case, evaluates to
00:03:29.212
one, and the maximum data rate directly
00:03:31.801
corresponds to the channel bandwidth.
00:03:34.000
How is the signal encoded onto the
00:03:36.796
channel?
00:03:37.931
The simplest case is what’s known as
00:03:40.728
non-return to zero, NRZ, encoding, as shown
00:03:43.424
in the top figure on the slide.
00:03:46.120
When sending binary data, NRZ encoding directly
00:03:48.916
encodes the signal onto the channel.
00:03:51.227
If the binary value 1 is to
00:03:53.924
be sent over an electrical cable,
00:03:56.235
for example, a high voltage is applied
00:03:58.931
to the cable, whereas a low voltage
00:04:01.627
is applied to send the binary value
00:04:04.323
zero. The receiver simply measures the voltage,
00:04:07.019
and directly translates it into binary values.
00:04:09.716
Non-return to zero encoding is simple,
00:04:12.127
but has the problem that long runs
00:04:14.823
of ones or zeros result in signals
00:04:17.519
that maintain the same value for long
00:04:20.215
periods of time. The example has a
00:04:22.912
run of four consecutive one bits,
00:04:25.223
followed a little later by a run
00:04:27.919
of four consecutive zeros, and each results
00:04:30.615
in a signal that’s unchanging for a
00:04:33.311
significant period of time.
00:04:34.852
At high data rates, and with long
00:04:37.648
consecutive sequences of the same value,
00:04:39.959
it can be difficult to measure the
00:04:42.655
exact time for which the signal is
00:04:45.352
unchanging. This leads to miscounting, where the
00:04:48.048
receiver believes one more, or one less,
00:04:50.744
bit was sent than intended, giving a
00:04:53.440
corrupt signal.
00:04:54.211
To avoid this, more complex encodings are
00:04:57.007
used.
00:04:58.142
One such scheme is Manchester Encoding.
00:05:00.553
This encodes every bit to be sent
00:05:03.249
as a pair of values. A binary
00:05:05.945
1 is sent as a high-to-low transition
00:05:08.642
in the signal strength, whereas a binary
00:05:11.338
0 is sent as a low-to-high transition.
00:05:14.034
This avoids the miscounting problem of NRZ
00:05:16.730
encoding, since the signal always changes irrespective
00:05:19.426
of the data being sent, but at
00:05:22.123
the cost of requiring twice as many
00:05:24.819
transitions, and hence using twice the bandwidth.
00:05:27.515
There are many different methods of baseband
00:05:30.311
data encoding, of which the NRZ and
00:05:33.008
Manchester encodings are the simplest. The different
00:05:35.704
encodings trade-off increased complexity for better performance.
00:05:38.000
When encoding data onto a wireless channel,
00:05:40.812
carrier modulation is used rather than baseband
00:05:43.523
encoding. This allows multiple signals to be
00:05:46.235
carried on a single channel, each modulated
00:05:48.946
onto a carrier wave transmitted at a
00:05:51.658
different frequency.
00:05:52.432
Carrier modulation shifts the frequency range occupied
00:05:55.244
by a signal up, so it’s centred
00:05:57.955
on the carrier frequency. Instead of occupying
00:06:00.667
the baseband range, from 0 - B
00:06:03.379
Hz, the signal is shifted to occupy
00:06:06.090
a frequency range centred on the carrier
00:06:08.802
frequency. This is done by varying some
00:06:11.513
property of the carrier wave to match
00:06:14.225
the signal being sent. The receiver tunes
00:06:16.936
into the carrier frequency, and measures the
00:06:19.648
variation in the carrier wave to extract
00:06:22.359
the signal.
00:06:23.134
In much the same way as wired
00:06:25.946
links, there are limitations in the bandwidth
00:06:28.657
of the signal that can be sent,
00:06:31.369
depending on the carrier frequency, the type
00:06:34.080
of antenna used, the transmission power,
00:06:36.404
the modulation scheme, etc.
00:06:37.954
Broadcast radio stations use carrier modulation to
00:06:40.765
transmit on different frequencies. The principle is
00:06:43.477
the same for digital transmission, except that
00:06:46.188
it’s data being transmitted, rather than music.
00:06:50.000
There are three types of carrier modulation
00:06:52.941
that can be used.
00:06:54.564
Amplitude modulation varies the loudness of the
00:06:57.505
carrier wave to directly match the signal
00:07:00.346
being transmitted. AM radio works the same
00:07:03.187
way. Amplitude modulation is simple, but can
00:07:06.028
perform poorly, because radio noise takes the
00:07:08.869
form of changes in the loudness of
00:07:11.710
the signal that corrupt the received data.
00:07:14.551
Frequency modulation varies the frequency of the
00:07:17.492
carrier to match the signal. In the
00:07:20.333
example on the slide, it switches between
00:07:23.174
a high frequency that corresponds to binary
00:07:26.015
zeros and a lower frequency that corresponds
00:07:28.856
to a binary ones. FM radio works
00:07:31.696
in a similar way, varying the frequency
00:07:34.537
to match the speech or music being
00:07:37.378
transmitted. This is slightly more complex than
00:07:40.219
amplitude modulation, but more resistant to noise
00:07:43.060
and interference.
00:07:43.872
Finally, phase modulation shifts forwards or backwards
00:07:46.813
in the cycle of the waveform to
00:07:49.654
indicate different symbols.
00:07:50.871
Real systems tend to use a combination
00:07:53.812
of modulation techniques, perhaps varying both the
00:07:56.653
amplitude and phase, to increase the data
00:07:59.494
rate.
00:08:01.000
Radio signals modulated onto a single carrier
00:08:03.936
wave are prone to interference. This is
00:08:06.772
because signals sent at particular frequencies tend
00:08:09.609
to be blocked by vehicles, trees,
00:08:12.040
and people moving around, or by the
00:08:14.876
weather and other radio transmissions, while signals
00:08:17.712
sent on a carrier at a different
00:08:20.548
frequency may be unaffected. This strength of
00:08:23.384
this interference can change rapidly.
00:08:25.410
To avoid this problem, many wireless links
00:08:28.347
use a technique known as spread spectrum
00:08:31.183
communication, where the carrier frequency is changed
00:08:34.019
several times per second, following a pseudo-random
00:08:36.855
sequence known to both the sender and
00:08:39.691
receiver.
00:08:40.847
Spread spectrum communication limits the impact of
00:08:43.783
interference, because the transmission will quickly switch
00:08:46.619
away from a poorly performing channel.
00:08:49.050
It adds a lot of complexity,
00:08:51.481
since both sender and receiver need to
00:08:54.317
continually change the carrier frequency, and synchronise
00:08:57.153
what frequencies they use, but greatly improves
00:08:59.990
performance.
00:09:01.145
The concept of spread spectrum communication was
00:09:04.081
invented by Hedy Lamarr, a Hollywood actress
00:09:06.917
turned inventor, during World War 2.
00:09:09.348
It’s now widely used as part of
00:09:12.184
the Wi-Fi standards.
00:09:13.000
The impact of noise on the data
00:09:15.739
rate achievable over a particular channel can
00:09:18.378
be predicted. This is the case whether
00:09:21.017
that noise is due to electrical or
00:09:23.656
radio interference, imperfections in an optical fibre,
00:09:26.295
or other means.
00:09:27.426
In the simplest case, where it’s assumed
00:09:30.165
the noise affects all frequencies used by
00:09:32.804
the transmission to the same extent,
00:09:35.066
the maximum data rate of the channel
00:09:37.705
can be determined using the Shannon-Hartley theorem.
00:09:40.344
This states that the maximum data rate,
00:09:43.083
Rmax, is equal to the bandwidth of
00:09:45.722
the channel, B, multiplied by the log
00:09:48.361
of 1 plus the strength of the
00:09:51.001
signal, S, divided by the amount of
00:09:53.640
noise, N.
00:09:54.394
The bandwidth and the amount of noise
00:09:57.133
depend on the channel and the environment.
00:09:59.772
For example, for a wireless link,
00:10:02.034
they depend on the carrier frequency,
00:10:04.296
the type of antenna, the weather,
00:10:06.558
the presence of obstacles between the sender
00:10:09.197
and receiver, and whether there are other
00:10:11.836
simultaneous radio transmissions. The signal strength depends
00:10:14.475
on the amount of power applied at
00:10:17.114
the transmitter. This allows the sender to
00:10:19.753
trade-off battery life for performance, saving power
00:10:22.392
by transmitting more slowly.
00:10:25.000
We have seen that the physical layer
00:10:27.708
enables communication. It allows the sender and
00:10:30.316
receiver to exchange a sequence of bits
00:10:32.925
of data across a channel, but assigns
00:10:35.533
no meaning to those bits.
00:10:37.396
The data link layer starts to provide
00:10:40.104
structure to the bitstream provided by the
00:10:42.712
physical layer.
00:10:43.458
It provides framing, splitting the bitstream into
00:10:46.166
individual messages, and gives the ability to
00:10:48.774
detect, and possibly correct, errors in the
00:10:51.382
transmission of those messages.
00:10:52.873
It provides addressing, giving each device an
00:10:55.581
identifier that can be used to indicate
00:10:58.189
what device sent the message and what
00:11:00.797
device, or devices, should act on the
00:11:03.405
message.
00:11:04.528
And, finally, the data link layer provides
00:11:07.236
media access control. It arbitrates access to
00:11:09.845
the channel, to make sure that more
00:11:12.453
than one device doesn’t try to send
00:11:15.061
at the same time, and to ensure
00:11:17.669
that each gets its fair share to
00:11:20.277
transmit.
00:11:21.000
A key role of the data link
00:11:23.970
layer is to separate the bitstream into
00:11:26.839
meaningful frames of data, and to identify
00:11:29.709
the devices that are sending and receiving
00:11:32.578
those frames.
00:11:33.398
For example, if we consider an Ethernet
00:11:36.368
link, the bitstream is split up into
00:11:39.237
frames that contain a number of different
00:11:42.107
elements.
00:11:43.267
First is the start code. This is
00:11:46.236
a preamble, containing a particular pattern that
00:11:49.106
only occurs at the start of a
00:11:51.975
message, and is used to alert the
00:11:54.845
receiver that a new message is starting.
00:11:57.714
This is followed by some header information.
00:12:00.684
The header comprises a source address,
00:12:03.144
specifying the identity of the device sending
00:12:06.013
the frame, and a destination address that
00:12:08.883
identifies the receiver. These are followed by
00:12:11.752
a length field, indicating the amount of
00:12:14.622
data to follow.
00:12:15.852
The data comes next, up to 1500
00:12:18.821
bytes in length.
00:12:20.051
And, finally, a cyclic redundancy code concludes
00:12:23.021
the packet, allowing the receiver to check
00:12:25.890
if the frame was received correctly.
00:12:28.350
The start code provides for synchronisation and
00:12:31.319
timing recovery. It’s a regular pattern that’s
00:12:34.189
only sent at the start of a
00:12:37.058
frame, and allows the receiver to precisely
00:12:39.928
measure the speed at which the frame
00:12:42.797
is being sent.
00:12:44.027
The source and destination addresses identify the
00:12:46.997
devices sending and receiving the message.
00:12:49.456
Each is 48 bits, six bytes,
00:12:51.916
in size, and is globally unique.
00:12:54.376
The addresses are split into two 24-bit
00:12:57.245
parts, one indicating the vendor, and one
00:13:00.115
indicating the device. In this example,
00:13:02.574
the vendor ID of 00:14:51 indicates Apple,
00:13:05.444
and the device ID of 04:27:ea indicates
00:13:08.313
the laptop on which I’m recording this
00:13:11.183
lecture.
00:13:12.343
Modern operating systems are starting to randomly
00:13:15.312
change the Ethernet addresses each time they
00:13:18.182
connect to the network, to limit tracking
00:13:21.052
and improve privacy.
00:13:22.281
Finally, the data packet of the Ethernet
00:13:25.251
frame contains data for the next layer
00:13:28.121
up in the protocol stack, the network
00:13:30.990
layer.
00:13:31.000
The last feature of the data link
00:13:33.744
layer I want to discuss is media
00:13:36.388
access control.
00:13:37.143
If you have a channel that’s shared
00:13:39.887
between multiple devices, such as a common
00:13:42.531
wireless link or a shared cable,
00:13:44.797
then there’s the risk that two devices
00:13:47.441
can try to send at once.
00:13:49.707
In this slide, for example, devices A
00:13:52.351
and B both try to send a
00:13:54.995
message to device C at the same
00:13:57.639
time.
00:13:58.767
The centre image shows the signals sent
00:14:01.510
by the devices A and B,
00:14:03.777
each of which is sending using NRZ
00:14:06.421
encoding. These are entirely normal signals.
00:14:08.687
The right-hand image shows what’s received at
00:14:11.331
C. This is the superposition of the
00:14:13.974
two signals, the result of adding the
00:14:16.618
two signals together, and is corrupt and
00:14:19.262
meaningless to the receiver.
00:14:20.773
Media access control is the problem of
00:14:23.517
avoiding such collisions.
00:14:25.000
A common way to perform media access
00:14:27.904
control is using a technique known as
00:14:30.707
carrier sense multiple access with collision detection,
00:14:33.511
CSMA/CD.
00:14:34.661
The idea is that when a device
00:14:37.565
wants to send, it first listens to
00:14:40.368
see if another device is sending already.
00:14:43.172
If another transmission is active, then it
00:14:45.976
waits before trying again.
00:14:47.578
If it doesn’t hear anything, it starts
00:14:50.481
to send data. While sending, it listens
00:14:53.285
to see if another device also starts
00:14:56.088
to send. If such a collision occurs,
00:14:58.892
the device stops sending, waits, and tries
00:15:01.695
again.
00:15:02.846
Collisions don’t usually happen, because devices listen
00:15:05.749
before sending, but there’s always some chance
00:15:08.553
that messages might overlap because of the
00:15:11.357
time it takes a message to traverse
00:15:14.160
the network. As we see from the
00:15:16.964
diagram on the right, if device A
00:15:19.767
starts to send and simultaneously B listens,
00:15:22.571
hears nothing because the message from A
00:15:25.374
hasn’t reached it yet, and starts sending,
00:15:28.178
then there’s the risk that both messages
00:15:30.982
collide and are corrupted.
00:15:32.584
Collisions are more likely to occur in
00:15:35.487
long distance networks, with large propagation delays,
00:15:38.291
but can happen in any network with
00:15:41.094
a shared channel.
00:15:42.296
If a collision occurs, how long should
00:15:45.199
a device wait before trying to re-send
00:15:48.003
a message?
00:15:48.804
Well, devices shouldn’t always wait for the
00:15:51.708
same amount of time. Doing so would
00:15:54.511
run the risk that two devices get
00:15:57.315
stuck, each repeatedly trying to send,
00:15:59.718
waiting the same time, then colliding again
00:16:02.521
in a loop. The amount of time
00:16:05.325
to wait should be randomised, to avoid
00:16:08.129
deterministic collisions.
00:16:08.930
If such randomisation is used, but another
00:16:11.833
collision occurs after waiting, this suggests that
00:16:14.637
the network is busy. It’s unlikely that
00:16:17.440
two devices will randomly wait for the
00:16:20.244
same time, so a subsequent collisions suggest
00:16:23.047
there are many devices trying to send.
00:16:25.851
A sender should therefore increase the time
00:16:28.655
it waits after each collision, to reduce
00:16:31.458
the overall load on the network.
00:16:33.861
Many data link layer protocols double the
00:16:36.665
wait time after each repeated collision,
00:16:39.068
resetting when a successful transmission occurs.
00:16:41.471
This approach, known as CSMA/CD, is widely
00:16:44.374
used, including in Ethernet and WiFi networks.
00:16:47.178
A consequence of it is that devices
00:16:49.982
share access to a channel, and how
00:16:52.785
quickly they can send a message depends
00:16:55.589
on how busy is the network.
00:16:57.992
This introduces some element of unpredictability into
00:17:00.795
the timing of many messages sent over
00:17:03.599
the network.
00:17:04.000
To conclude, the physical layer provides for
00:17:06.983
encoding a sequence of bits onto a
00:17:09.866
channel, but says nothing about the meaning
00:17:12.750
of those bits. The data link layer
00:17:15.633
starts to add structure, separating the bit
00:17:18.516
stream into frames, checking those frames to
00:17:21.399
ensure they were correctly received, identifying devices,
00:17:24.282
and arbitrating access to the channel.
00:17:26.753
Together, the physical and data link layers
00:17:29.737
enable local area networks, where devices connected
00:17:32.620
to a single link can communicate.
00:17:35.091
This forms the basis of the Internet.
00:17:37.974
In the next part, I’ll talk about
00:17:40.957
the network layer, that allows multiple networks
00:17:43.841
to be combined into one.
Part 4: The Network Layer and the Internet Protocols
Part 4 of the lecture is about the network layer and the Internet
Protocols. It reviews the role of the network layer, and the ideas of
addressing, routing, and forwarding. And, it talks about the network
layer in the Internet, and IPv4 and IPv6.
00:00:00.000
The network layer allows several independently operated
00:00:04.633
networks to be combined to give the
00:00:07.267
appearance of a single network. It provides
00:00:09.900
an internetworking function that allows us to
00:00:12.533
build an internet.
00:00:13.662
In this part, I’ll talk about the
00:00:16.395
Internet Protocols, IPv4 and IPv6, that provide
00:00:19.029
the network layer in the Internet,
00:00:21.286
and briefly review the network layer concepts
00:00:23.919
of addressing, routing, and forwarding.
00:00:27.000
The network layer is the internetworking point
00:00:29.810
in the protocol stack.
00:00:31.358
The use of a common network layer
00:00:34.168
protocol allows us to decouple the operation
00:00:36.877
of the networks that comprise an internet,
00:00:39.587
from the operation of the applications that
00:00:42.297
run on that internet.
00:00:43.845
It allows each network to make its
00:00:46.655
own choice about what sort of data
00:00:49.365
link and physical layer technologies to use,
00:00:52.074
because that choice is hidden from the
00:00:54.784
applications and transport protocols by the common
00:00:57.494
network layer. It doesn’t matter whether the
00:01:00.203
underlying network is Ethernet, WiFi, optical fibre,
00:01:02.913
or something else, because the differences are
00:01:05.623
hidden from the upper-layer protocols.
00:01:07.558
Similarly, the use of a common network
00:01:10.368
layer makes it easy to deploy different
00:01:13.077
applications and transport protocols. The lower layers
00:01:15.787
must deliver network layer packets, but are
00:01:18.497
unaware of the type of application data
00:01:21.206
contained in those packets. They cannot tell
00:01:23.916
whether the packets being delivered comprise an
00:01:26.626
email message, a web page, a phone
00:01:29.335
call, streaming video, or whatever.
00:01:31.271
This approach is very flexible, and makes
00:01:34.081
it easy to support new physical and
00:01:36.790
data link layer technologies, and new transport
00:01:39.500
protocols and applications, provided they can deliver
00:01:42.210
packets for, or operate over, the common
00:01:44.919
network layer.
00:01:45.694
The disadvantage is that the network layer
00:01:48.503
is not optimised for any one application.
00:01:51.213
It emphasises generality and flexibility to support
00:01:53.923
many different uses, rather than providing optimal
00:01:56.632
performance for any particular use case.
00:01:58.955
In the Internet, the network layer is
00:02:01.765
known as the Internet Protocol, IP.
00:02:04.087
This is the IP part of the
00:02:06.797
well known TCP/IP protocol suite.
00:02:08.732
The Internet Protocol provides a common way
00:02:11.542
to identify devices on the network,
00:02:13.865
using what’s known as an IP address.
00:02:16.574
It provides routing algorithms to direct packets
00:02:19.284
across the network from source to destination.
00:02:21.994
And it forwards those packets in a
00:02:24.703
best effort manner, accepting that the network
00:02:27.413
may be unreliable.
00:02:28.574
At its core, the Internet Protocol provides
00:02:31.384
uniform connectivity – any host can send
00:02:34.094
data to any other host, subject to
00:02:36.803
firewall policy – but makes no quality
00:02:39.513
guarantees.
00:02:41.000
There are two versions of the Internet
00:02:43.904
Protocol in use. The most commonly used
00:02:46.709
version is IP version 4. This was
00:02:49.513
introduced into what became the Internet in
00:02:52.317
1983.
00:02:53.468
The figure shows the format of an
00:02:56.372
IPv4 packet. This is sent in the
00:02:59.177
payload data section of a data link
00:03:01.981
layer packet, such as an Ethernet or
00:03:04.786
WiFi frame, with the different parts of
00:03:07.590
the IPv4 packet being sent in the
00:03:10.394
order shown, left-to-right, top-to-bottom, starting with the
00:03:13.199
version number, header length, DSCP field,
00:03:15.602
and so on, concluding with the transport
00:03:18.407
layer data.
00:03:19.208
Key parts of an IPv4 packet are
00:03:22.112
the source and destination addresses, each 32
00:03:24.917
bits in size, that denote the network
00:03:27.721
interfaces from which the packet was sent,
00:03:30.526
and to which it should be delivered.
00:03:33.330
The use of 32 bits for the
00:03:36.134
address fields allows 2-to-the-power-32 possible addresses,
00:03:38.538
around 4 billion, which is not enough
00:03:41.342
for the current Internet. This is the
00:03:44.147
motivation to switch to IPv6.
00:03:46.150
In addition to addressing, IPv4 provides the
00:03:49.054
fragment identifier, fragment offset, “don’t fragment” (DF),
00:03:51.859
and “more fragments” (MF) fields to allow
00:03:54.663
large IPv4 packets to be split into
00:03:57.467
pieces for delivery over networks that can
00:04:00.272
only deliver small packets.
00:04:01.874
It also includes a Differentiated Services Code
00:04:04.779
Point (DSCP) field to allow packets to
00:04:07.583
request special treatment by the network.
00:04:09.987
For example, a packet that carries video
00:04:12.791
conferencing or gaming data might ask for
00:04:15.596
low latency delivery, while one carrying data
00:04:18.400
that’s part of a background software update
00:04:21.204
might indicate that it’s low priority.
00:04:23.608
The time-to-live (TTL) field prevents packets from
00:04:26.512
circulating forever in the network in case
00:04:29.317
a routing problem causes them to go
00:04:32.121
around in a loop, and the header
00:04:34.926
checksum detects transmission errors.
00:04:36.528
Finally, the upper layer protocol identifier identifies
00:04:39.432
the format of the transport layer data
00:04:42.237
that follows the IPv4 header. This usually
00:04:45.041
indicates that the transport layer data is
00:04:47.846
a TCP segment or a UDP datagram.
00:04:51.000
IPv6 was designed to solve the problem
00:04:54.083
that the IPv4 addresses are too small.
00:04:57.066
It replaces the 32 bit addresses used
00:05:00.150
in IPv4 with 128 bit addresses.
00:05:02.707
This vastly increases the number of devices
00:05:05.690
that can be added to the network,
00:05:08.673
since each additional bit doubles the number
00:05:11.657
of addresses that are available.
00:05:13.787
In addition, IPv6 simplifies the header.
00:05:16.445
It removes the support for in-network fragmentation,
00:05:19.428
that was present in IPv4, since it
00:05:22.411
was difficult to implement efficiently, and instead
00:05:25.394
requires the hosts to adjust the size
00:05:28.377
of the packets they send to match
00:05:31.361
the network path. It also removes the
00:05:34.344
header checksum, since it’s usually redundant with
00:05:37.327
the checksum provided by the data link
00:05:40.310
layer.
00:05:41.487
As of late 2020, Google reports that
00:05:44.570
about a third of their users access
00:05:47.553
Google over IPv6. Statistics from Akamai,
00:05:50.110
a large content distribution network, report around
00:05:53.093
60% of connections to their network from
00:05:56.077
India are over IPv6, around 50% from
00:05:59.060
the US, Germany, Belgium, Greece, Taiwan,
00:06:01.617
and Vietnam, and around 35% from the
00:06:04.600
UK.
00:06:05.776
IPv6 took a long time to start
00:06:08.860
seeing deployment, but its use has greatly
00:06:11.843
accelerated over the last few years.
00:06:14.000
If we have IPv4 and IPv6,
00:06:16.851
you might ask what about IPv5?
00:06:19.601
Well, experiments with packet voice over the
00:06:22.910
ARPAnet, the precursor to the Internet,
00:06:25.661
started in the early 1970s, with the
00:06:28.870
Network Voice Protocol developed by Danny Cohen
00:06:32.079
at the University of Southern California’s Information
00:06:35.288
Sciences Institute. This work eventually led to
00:06:38.497
the Internet Stream Protocol, ST-II, that was
00:06:41.706
an experimental multimedia streaming protocol developed mostly
00:06:44.915
in the 1980s and early 1990s.
00:06:47.665
ST-II ran in parallel to IPv4,
00:06:50.416
and used IP version 5 in its
00:06:53.625
header.
00:06:54.833
ST-II was not widely deployed, but it
00:06:58.142
helped prototype a number of important ideas
00:07:01.351
around multimedia transport over packet networks.
00:07:04.102
Both what worked well, and what didn’t.
00:07:07.311
Steve Casner and Eve Schooler, who both
00:07:10.520
worked with Danny Cohen at ISI,
00:07:13.270
helped lead the development of the next
00:07:16.479
wave of multimedia transport protocols, RTP and
00:07:19.688
SIP, based on experiences with ST-II and
00:07:22.897
earlier protocols. RTP and SIP are extremely
00:07:26.106
widely used in modern video conferencing services,
00:07:29.315
such as Zoom, Webex, and Microsoft Teams,
00:07:32.524
and as the basis for today’s mobile
00:07:35.733
phone networks.
00:07:37.000
IPv4 and IPv6 have differently sized addresses,
00:07:39.931
but otherwise work similarly.
00:07:41.549
In both protocols, an IP address represents
00:07:44.480
the location of a particular network interface.
00:07:47.311
If a device has more than one
00:07:50.142
network interface, for example if it’s a
00:07:52.973
smart phone with both 5G and WiFi,
00:07:55.804
it will have one IP address for
00:07:58.635
each interface. It may also have both
00:08:01.466
IPv4 and IPv6 addresses assigned to some,
00:08:04.297
or all, of its network interfaces.
00:08:06.724
And, in some cases, can have more
00:08:09.555
than one address of each type assigned
00:08:12.386
to an interface.
00:08:13.600
Importantly, the IP address identifies the location
00:08:16.531
at which a network interface is attached
00:08:19.362
to the network. It does not identify
00:08:22.193
the device, and if a device moves
00:08:25.024
to a different place it will acquire
00:08:27.855
a different IP address.
00:08:29.473
IPv4 and IPv6 addresses both comprise a
00:08:32.404
network part and a host part.
00:08:34.830
The network part, often known as the
00:08:37.661
network prefix, identifies the network to which
00:08:40.493
the device is attached, while the host
00:08:43.324
part of the address identifies a particular
00:08:46.155
attachment point on that network. The fraction
00:08:48.986
of the address that identifies the network
00:08:51.817
part, and the fraction left for the
00:08:54.648
host varies, with different networks being assigned
00:08:57.479
differing amounts of address space.
00:08:59.501
As an example, the School of Computing
00:09:02.432
Science operates an IPv4 network in Lilybank
00:09:05.263
Gardens and the Boyd Orr Building where
00:09:08.094
the first 20 bits of the IPv4
00:09:10.925
address comprise the network part, and the
00:09:13.757
last 12 bits are the host part.
00:09:16.588
IPv4 addresses in the range 130.209.240.0 to
00:09:19.419
130.209.255.255, that all share the same initial
00:09:22.250
20 bit prefix, are all within that
00:09:25.081
network.
00:09:26.235
The School also has an IPv6 network,
00:09:29.166
that works similarly, although the addresses are
00:09:31.997
longer.
00:09:33.152
In the wide area, Internet traffic is
00:09:36.083
routed towards its destination looking only at
00:09:38.914
the network part of the IP address.
00:09:41.745
Only when it reaches the destination network
00:09:44.576
do the routers in the network inspect
00:09:47.407
the host part of the address,
00:09:49.834
to find the device that should receive
00:09:52.665
the packet.
00:09:53.474
Finally, it’s important to remember that the
00:09:56.405
network layer does not use names such
00:09:59.236
as example.com. Traffic delivered over the Internet
00:10:02.067
contains source and destination IP addresses,
00:10:04.494
and is routed based on those IP
00:10:07.325
addresses. The host that sends an IP
00:10:10.156
packet resolves the name of the destination
00:10:12.987
to an IP address, and puts that
00:10:15.818
address into the destination address field of
00:10:18.649
the IP packet. The network delivers that
00:10:21.480
packet using only that IP address.
00:10:23.907
The DNS, that resolves names, is just
00:10:26.738
another application that runs on the Internet,
00:10:29.569
and is not fundamental to its operation.
00:10:32.000
The Internet is a network of networks.
00:10:35.139
Each network is administered and operated separately.
00:10:38.278
It acts as what is known as
00:10:41.317
an Autonomous System, an AS. Each AS
00:10:44.356
can choose to use different technologies internally,
00:10:47.395
and can have different rules and policies.
00:10:50.434
The commonality is that all run the
00:10:53.473
Internet Protocol.
00:10:54.341
The University of Glasgow acts as an
00:10:57.480
Autonomous System in the Internet, as do
00:11:00.520
companies such as Google or Facebook,
00:11:03.124
and Internet Service Providers such as BT,
00:11:06.163
Virgin Media, O2, etc.
00:11:09.000
Within a network, the network operator will
00:11:11.894
seek to deliver data to its destination
00:11:14.689
as efficiently as possible. The Internet places
00:11:17.483
no requirements on how they do this,
00:11:20.277
or on what data link layer or
00:11:23.071
physical layer technologies they use. Each network
00:11:25.866
operator is free to use whatever technologies,
00:11:28.660
and whatever routing or forwarding algorithms,
00:11:31.055
that it chooses.
00:11:32.252
Typically, the network operator will seek to
00:11:35.147
ensure traffic follows the shortest path from
00:11:37.941
source to destination across their network,
00:11:40.336
using either a distance vector routing algorithm,
00:11:43.130
or, more likely, a link state routing
00:11:45.925
algorithm such as OSPF. There are a
00:11:48.719
wide variety of different approaches used,
00:11:51.114
though, depending on the size of the
00:11:53.908
network, and the needs the network operator
00:11:56.702
and its customers.
00:11:59.000
Most Internet traffic is not confined to
00:12:01.886
a single AS. Rather, it’s common for
00:12:04.671
traffic to pass through several Autonomous Systems
00:12:07.457
on its path from source to destination.
00:12:10.243
For example, packets sent from the University
00:12:13.129
of Glasgow to Google will start in
00:12:15.914
the University’s network, then traverse a network
00:12:18.700
known as JANET (the Joint Academic NETwork;
00:12:21.486
the University’s ISP), and then finally reach
00:12:24.271
Google.
00:12:25.419
Each of these three networks is an
00:12:28.305
Autonomous Systems. Each must cooperate to forward
00:12:31.091
the packets, and find an appropriate route
00:12:33.877
for the data across the network.
00:12:36.264
Indeed, all of the ASes that comprise
00:12:39.050
the Internet cooperate to ensure the network
00:12:41.836
can successfully route data to its destination,
00:12:44.621
wherever that destination is.
00:12:46.213
This cooperation is enabled by the Border
00:12:49.099
Gateway Protocol, BGP.
00:12:50.293
BGP is a routing protocol. It allows
00:12:53.179
each AS to advertise the network prefixes
00:12:55.964
that it owns, to tell the rest
00:12:58.750
of the network where to send packets
00:13:01.536
destined for IP addresses contained within those
00:13:04.321
prefixes. In addition, BGP allows ASes to
00:13:07.107
advertise the routes they can use to
00:13:09.893
reach the network prefixes owned by other
00:13:12.679
ASes. This allows, for example, an ISP
00:13:15.464
to advertise how to reach the IP
00:13:18.250
addresses used by its customers. Similarly,
00:13:20.638
BGP allows ASes to filter out advertisements
00:13:23.423
for network prefixes to which they will
00:13:26.209
not forward traffic.
00:13:27.403
The information exchanged in BGP allows ASes
00:13:30.289
to decide how to route packets across
00:13:33.074
the network.
00:13:33.870
Networks located near the edge of the
00:13:36.756
Internet need to maintain relatively little information
00:13:39.542
to participate in BGP. They simply need
00:13:42.328
to know their own network prefixes,
00:13:44.715
and those of their customers. They then
00:13:47.501
advertise those prefixes to the rest of
00:13:50.287
the network. Those edge ASes know how
00:13:53.072
to route traffic to themselves and their
00:13:55.858
customers, and just pass everything else to
00:13:58.644
a default route that directs it out
00:14:01.430
to the wider network.
00:14:03.021
For networks nearer the core of the
00:14:05.907
Internet, this approach is no longer sufficient.
00:14:08.693
These ASes form the so-called default free
00:14:11.479
zone, the DFZ, where they use BGP
00:14:14.264
to put together something close to a
00:14:17.050
complete map of the Internet, so they
00:14:19.836
know how to forward packets to reach
00:14:22.621
any possible destination.
00:14:23.815
When it comes to BGP routing,
00:14:26.303
and finding the correct route for data
00:14:29.089
to cross the wide area Internet,
00:14:31.477
policy, politics, and economics are often more
00:14:34.262
important than finding the shortest route.
00:14:37.000
A final feature of the network layer
00:14:39.949
is forwarding.
00:14:40.764
Given a route through the network,
00:14:43.306
calculated by BGP for the inter-domain path,
00:14:46.155
and by an intra-domain routing protocol such
00:14:49.005
as OSPF within each network, how are
00:14:51.854
the packets actually forwarded along that path?
00:14:54.704
Forwarding in the Internet follows a best
00:14:57.653
effort approach. A router in the network
00:15:00.503
receives a packet, and makes its best
00:15:03.352
effort to forward it towards its destination.
00:15:06.202
The network is connectionless. A sender doesn’t
00:15:09.151
need to establish a connection or ask
00:15:12.001
permission before sending a packet, and makes
00:15:14.850
no attempt to reserve capacity. As a
00:15:17.700
result, the network makes no guarantees.
00:15:20.142
If there are insufficient resources available to
00:15:22.992
forward a packet, then it may be
00:15:25.841
delayed or will simply be discarded.
00:15:28.283
The figure shows an example, showing the
00:15:31.233
time packets take to traverse the network,
00:15:34.082
with the x-axis showing time since the
00:15:36.932
start of transmission, and the y-axis showing
00:15:39.781
the time taken to receive a response
00:15:42.631
from the destination. As can be seen,
00:15:45.480
the time taken to get a response
00:15:48.330
may vary significantly, depending on the amount
00:15:51.179
of other traffic in the network.
00:15:53.622
Packets may be delayed, reordered, lost,
00:15:56.064
duplicated, or corrupted in transit.
00:15:58.099
In a well engineered network, there is
00:16:01.049
little timing variation, packets are rarely lost
00:16:03.898
or corrupted, and almost never arrive out
00:16:06.748
of order. If the packets traverse a
00:16:09.597
poor quality network, however, behaviour may be
00:16:12.447
less predictable.
00:16:13.261
The Internet can provide extremely high quality,
00:16:16.210
but there’s no requirement that it does
00:16:19.060
so. This gives flexibility. The Internet can
00:16:21.909
encompass all sorts of different networks,
00:16:24.352
not just those in rich countries with
00:16:27.201
well-developed infrastructure. But, it requires applications to
00:16:30.051
be able to cope with unpredictable quality.
00:16:34.000
To summarise, the network layer provides the
00:16:37.235
interworking function that allows networks to cooperate,
00:16:40.371
and come together to build a global
00:16:43.506
internet.
00:16:44.704
It provides a common addressing scheme to
00:16:47.940
identify endpoints of communication, a routing scheme
00:16:51.075
to allow systems to determine the appropriate
00:16:54.210
path for data to take across the
00:16:57.346
internetwork, and a forwarding scheme to move
00:17:00.481
packets towards their destination.
00:17:02.273
In the Internet, the network layer is
00:17:05.508
the Internet Protocols, IPv4 and IPv6.
00:17:08.196
Data is routed between Autonomous Systems using
00:17:11.331
BGP, and within autonomous systems using distance
00:17:14.467
vector or link-state routing protocols, such as
00:17:17.602
OSPF. Finally, packet forwarding happens on a
00:17:20.737
best effort basis, giving the flexibility to
00:17:23.873
operate over any type of link layer
00:17:27.008
at the cost of potentially unpredictable behaviour.
00:17:30.144
The network layer provides connectivity. Above it
00:17:33.379
sits the transport layer, that provides the
00:17:36.515
abstractions that applications use to deliver data.
Part 5: The Transport Layer
Part 5 of the lecture reviews the transport layer in the Internet.
It talks about UDP and TCP, the services they provide to Internet
applications, and their strengths and weaknesses. It reviews TCP
connection establishment and congestion control very briefly.
00:00:00.000
The transport layer isolates the applications from
00:00:03.889
the vagaries of the network. It ensures
00:00:06.777
data is delivered with appropriate reliability,
00:00:09.253
and adapts the speed of transmission to
00:00:12.142
match the network capacity.
00:00:13.792
There are two widely used transport layer
00:00:16.781
protocols in the Internet: UDP and TCP.
00:00:19.669
UDP provides an unreliable packet delivery service,
00:00:22.658
essentially exposing the raw IP network model
00:00:25.546
to the applications. It’s useful for applications
00:00:28.435
that prefer timeliness over reliability, and as
00:00:31.323
a building block for developing new transport
00:00:34.212
protocols.
00:00:35.375
TCP provides a reliable service, retransmitting any
00:00:38.363
lost packets, putting reordered data back into
00:00:41.252
the correct order, and adapting its transmission
00:00:44.140
rate to match the available capacity.
00:00:46.616
It’s useful for applications that need data
00:00:49.505
to be delivered reliably and as fast
00:00:52.393
as possible.
00:00:53.219
In this part, I’ll talk about transport
00:00:56.207
layer concepts, and the UDP and TCP
00:00:59.096
transport protocols used in the Internet.
00:01:01.572
I’ll also briefly introduce the idea of
00:01:04.460
congestion control, adapting the sending rate of
00:01:07.349
the transport to match the available network
00:01:10.237
capacity.
00:01:11.000
As discussed in the previous part,
00:01:13.836
an IP network provides only a best
00:01:17.029
effort packet delivery service. IP packets can
00:01:20.221
be lost, duplicated, delayed, or re-ordered in
00:01:23.414
transit.
00:01:24.620
The role of the transport protocol is
00:01:27.912
to isolate applications, as much as is
00:01:31.105
necessary, from the network.
00:01:32.929
The transport protocol demultiplexes traffic destined for
00:01:36.221
different applications. It enhances the network quality
00:01:39.414
of service to offer appropriate reliability for
00:01:42.606
those applications. And it performs congestion control,
00:01:45.798
to adapt the transmission rate to the
00:01:48.991
available network capacity.
00:01:50.359
There are two transport protocols that have
00:01:53.652
been successfully deployed in the Internet.
00:01:56.388
UDP, the user datagram protocol, provides an
00:01:59.680
unreliable service.
00:02:00.592
TCP, the transmission control protocol, provides a
00:02:03.885
reliable, ordered, and congestion controlled service.
00:02:06.621
Applications that run on the Internet use
00:02:09.914
one of these two transport protocols.
00:02:13.000
UDP is the simplest possible transport protocol
00:02:16.122
that can run on the Internet.
00:02:18.712
It exposes the raw IP service to
00:02:21.834
applications, adding only the concept of a
00:02:24.856
port number, to identify different applications running
00:02:27.878
on a single host.
00:02:29.605
Like IPv4 and IPv6, UDP is connectionless.
00:02:32.726
An application doesn’t need to establish a
00:02:35.748
UDP connection. Rather, it can simply send
00:02:38.770
a packet towards a destination without asking
00:02:41.792
permission or establishing a connection.
00:02:43.951
UDP datagrams are delivered in a best
00:02:47.073
effort manner. Datagrams might not arrive at
00:02:50.094
all, and if they do arrive,
00:02:52.685
they might not arrive in the order
00:02:55.707
they were sent. The UDP transport protocol
00:02:58.728
doesn’t attempt to correct for this,
00:03:01.319
or to ensure reliable delivery. It’s the
00:03:04.341
responsibility of the application using UDP to
00:03:07.362
reconstruct the ordering, or to detect lost
00:03:10.384
packets.
00:03:11.566
Similarly, UDP doesn’t perform any form of
00:03:14.688
congestion control. If an application using UDP
00:03:17.710
tries to send faster than the network
00:03:20.732
can deliver packets, then those packets will
00:03:23.754
simply be discarded. UDP doesn’t help the
00:03:26.775
application adapt its sending rate to match
00:03:29.797
the network capacity.
00:03:31.092
Accordingly, applications using UDP must be able
00:03:34.214
to tolerate some loss of data,
00:03:36.805
to receive data out of order,
00:03:39.395
and to be able to estimate and
00:03:42.417
adapt to the available network capacity.
00:03:45.007
Doing this well is extremely difficult,
00:03:47.597
and UDP is not suitable for many
00:03:50.619
applications.
00:03:51.801
Where UDP is useful is when the
00:03:54.923
application prefers timeliness over reliability. Because it
00:03:57.944
doesn’t attempt to retransmit lost data,
00:04:00.535
and doesn’t buffer data to allow it
00:04:03.557
to be put into the correct order,
00:04:06.578
UDP offers the lowest possible latency for
00:04:09.600
data sent across the network. That’s useful
00:04:12.622
for applications like voice-over-IP, video conferencing,
00:04:15.212
and gaming, that can tolerate some data
00:04:18.234
loss but need low latency.
00:04:20.393
For most applications, though, the unreliable nature
00:04:23.515
of UDP makes it poorly suited to
00:04:26.537
their needs.
00:04:27.000
By way of contrast, the TCP protocol
00:04:30.126
provides a fully reliable, ordered, byte stream
00:04:33.152
delivery service than runs over an IP
00:04:36.178
network.
00:04:37.360
TCP is a connection oriented transport protocol.
00:04:40.486
Applications that use TCP as their transport
00:04:43.512
must first setup a connection from sender
00:04:46.537
to receiver, before they can send data.
00:04:49.563
Once a connection is established, the TCP
00:04:52.589
protocol ensures that any lost data is
00:04:55.615
retransmitted, and that any reordered data is
00:04:58.641
put back into the correct order,
00:05:01.235
before delivering it to the receiving application.
00:05:04.260
The TCP protocol also adapts the rate
00:05:07.386
at which data is sent across the
00:05:10.412
network to match the available network capacity,
00:05:13.438
a process known as congestion control.
00:05:16.032
A TCP sender writes a sequence of
00:05:19.157
bytes into a TCP connection, and that
00:05:22.183
exact same sequence of bytes is delivered
00:05:25.209
to the receiver. Reliably. In the order
00:05:28.235
sent. And at the maximum speed the
00:05:31.261
network can support.
00:05:32.558
The overwhelming majority of applications running on
00:05:35.684
the Internet use TCP as their transport
00:05:38.709
protocol.
00:05:39.892
TCP has two limitations.
00:05:41.721
The first is that TCP delivers a
00:05:44.847
sequence of bytes, not a sequence of
00:05:47.873
messages. If a sender writes 2000 bytes
00:05:50.898
of data into a TCP connection,
00:05:53.492
comprising two messages of 1000 bytes each,
00:05:56.518
then TCP guarantees that those 2000 bytes
00:05:59.544
will be received reliably, and in the
00:06:02.570
order sent. It does not guarantee that
00:06:05.595
they will be received as two messages
00:06:08.621
of 1000 bytes each. Indeed, it’s entirely
00:06:11.647
possible that TCP will deliver the data
00:06:14.673
as a block of 1500 bytes followed
00:06:17.699
by a separate block containing the remaining
00:06:20.725
500 bytes. Applications that care about message
00:06:23.751
boundaries must structure the data they send
00:06:26.777
over a TCP connection to allow those
00:06:29.802
message boundaries to be reconstructed. Since reading
00:06:32.828
and writing data to a file also
00:06:35.854
doesn’t preserve message boundaries, doing this tends
00:06:38.880
not to be difficult.
00:06:40.609
The other limitation of TCP is that,
00:06:43.735
because it delivers data reliably and in
00:06:46.761
order, it must retransmit any lost packets.
00:06:49.787
This delays any data following those lost
00:06:52.813
packets, since it can’t be delivered to
00:06:55.838
the application until the retransmission arrives.
00:06:58.432
This is an unavoidable trade-off, if data
00:07:01.458
is to be delivered reliably and,
00:07:04.051
in the order sent, across an unreliable
00:07:07.077
network, but does mean that TCP trades
00:07:10.103
latency for reliability.
00:07:11.000
TCP delivers data in the form of
00:07:13.927
segments, each delivered within an IP packet.
00:07:16.755
Each TCP segment includes a source and
00:07:19.682
destination port numbers, that identify the applications
00:07:22.509
that send and receive the data.
00:07:24.933
Each TCP segment also includes a sequence
00:07:27.860
number, that counts the number of bytes
00:07:30.688
of data sent and allows the receiver
00:07:33.515
to detect loss and reconstruct the original
00:07:36.342
sending order, and an acknowledgement number that
00:07:39.170
indicates the next segment it wishes to
00:07:41.997
receive.
00:07:43.151
TCP segments also include the receiver window
00:07:46.078
size, that indicates the amount of buffer
00:07:48.906
space the receiver has to store incoming
00:07:51.733
TCP segments, a checksum to detect packet
00:07:54.561
corruption, a set of flags to manage
00:07:57.388
connection setup, and an urgent pointer to
00:08:00.215
support advance delivery of important data.
00:08:02.639
The actual TCP payload data follows this
00:08:05.566
header.
00:08:06.720
As can be seen, TCP packets carry
00:08:09.647
a lot of information in addition to
00:08:12.475
that carried in an IP packet header.
00:08:15.302
TCP is a complex and sophisticated transport
00:08:18.130
protocol, that adds a lot of features
00:08:20.957
to IP in order to ensure that
00:08:23.784
data is delivered effectively.
00:08:25.000
A TCP connection proceeds in three stages.
00:08:28.161
At the start of the connection is
00:08:31.322
an initial three-way handshake that establishes the
00:08:34.382
connection. An initial TCP packet is sent
00:08:37.443
from the TCP client to the server,
00:08:40.504
with the SYN (“synchronise”) bit set in
00:08:43.565
the TCP header, to indicate the start
00:08:46.626
of a connection.
00:08:47.938
The server sends a response, with its
00:08:51.098
SYN bit set, to indicate that it’s
00:08:54.159
willing to establish a connection. This response
00:08:57.220
also has the ACK bit set,
00:08:59.844
indicating that the acknowledgement number is valid,
00:09:02.904
because it acknowledges receipt of that initial
00:09:05.965
packet.
00:09:07.152
The client completes the three-way SYN -
00:09:10.313
SYN+ACK - ACK handshake by sending an
00:09:13.374
acknowledgement to the server. This establishes the
00:09:16.435
connection.
00:09:17.622
The client and server can then exchange
00:09:20.783
data.
00:09:21.970
In this example, the client sends data
00:09:25.131
to the server, and the server acknowledges
00:09:28.192
receipt of that data. The initial packet
00:09:31.253
had sequence number 0, and each packet
00:09:34.314
includes 1500 bytes of data.
00:09:36.500
We see the server sending acknowledgement packets,
00:09:39.661
and delivering data to the application in
00:09:42.722
response to recv() calls, as the data
00:09:45.782
packets arrive.
00:09:46.657
We also see that the client can
00:09:49.818
send some number of data packets,
00:09:52.441
known as its congestion window, before it
00:09:55.502
receives an acknowledgement. In this example,
00:09:58.126
the congestion window is 3000 bytes:
00:10:00.749
the client is allowed to send up
00:10:03.810
to 3000 bytes of data without receiving
00:10:06.871
an acknowledgement.
00:10:07.745
The packet with sequence number 4500,
00:10:10.469
sent from client to server, is lost.
00:10:13.530
As a result, when the next packet,
00:10:16.691
with sequence number 6000, arrives the server
00:10:19.751
generates another acknowledgment indicating that it’s still
00:10:22.812
expecting packet 4500. This continues until three
00:10:25.873
duplicate acknowledgements have been received, when the
00:10:28.934
client retransmits the lost packet.
00:10:31.120
Eventually, the missing data arrives at the
00:10:34.281
server. This fills the gap, and the
00:10:37.342
missing data, and the three following packets
00:10:40.403
that were already received, are delivered to
00:10:43.463
the application. The server sees a delay,
00:10:46.524
while the missing data is retransmitted,
00:10:49.148
then receives a burst of data.
00:10:51.771
Message boundaries are not preserved.
00:10:53.958
Finally, the connection is closed using a
00:10:57.118
three-way handshake similar to that used to
00:11:00.179
open the connection.
00:11:01.491
We’ll talk more about how TCP establishes
00:11:04.652
connections, and reliably transmits data, in later
00:11:07.713
lectures.
00:11:07.000
The TCP protocol includes a sophisticated algorithm,
00:11:09.921
known as congestion control, that adapts its
00:11:12.742
transmission rate to match the available network
00:11:15.563
capacity.
00:11:16.716
This operates in two phases.
00:11:18.831
The first phase is known as slow-start.
00:11:21.752
At the start of a connection,
00:11:24.170
TCP starts by sending slowly, but increases
00:11:26.991
its sending rate exponentially until it reaches
00:11:29.812
the network capacity.
00:11:31.021
Once it’s sending at a speed that
00:11:33.942
matches the available network capacity, TCP switches
00:11:36.763
to a congestion avoidance phase, adapting its
00:11:39.584
sending rate following a sawtooth pattern that
00:11:42.404
allows it to gradually adapt to changes
00:11:45.225
in capacity.
00:11:46.031
There are a lot of subtle details
00:11:48.952
in TCP congestion control behaviour, that we’ll
00:11:51.773
talk about later in the course.
00:11:54.191
What’s important for now is that TCP
00:11:57.112
can effectively adjust the rate at which
00:11:59.933
data is sent to match changes in
00:12:02.754
the available network capacity. The algorithm it
00:12:05.575
uses to do this looks simple at
00:12:08.396
first glance, but actually contains a lot
00:12:11.217
of complex features, and not obvious behaviours,
00:12:14.038
and is highly effective.
00:12:16.000
To conclude, the transport layer protocols adapt
00:12:19.119
the service provided by the network layer
00:12:22.138
to meet the needs of applications.
00:12:24.726
The Internet provides two transport protocols,
00:12:27.414
TCP and UDP. TCP is a complex
00:12:30.433
and sophisticated protocol, that is highly optimised
00:12:33.452
to deliver reliable data quickly. It’s well
00:12:36.471
suited to the overwhelming majority of Internet
00:12:39.490
applications.
00:12:40.671
UDP is much less sophisticated, and essentially
00:12:43.790
exposes the best effort packet delivery service
00:12:46.810
offered by the underlying IP layer to
00:12:49.829
the application. It’s useful when developing applications
00:12:52.848
that prefer timeliness to reliability, or as
00:12:55.867
a basis for building new transport protocols,
00:12:58.886
but is very difficult to use effectively.
00:13:01.905
The transport layer is the last general
00:13:05.024
purpose layer in the protocol stack.
00:13:07.612
Above it sit the application protocols,
00:13:10.200
that we’ll discuss briefly in the next
00:13:13.219
part.
Part 6: Higher Layer Protocols
Part 6 of the lecture reviews the higher layers of the protocol stack.
It talks about the role of the session layer in managing connections;
it reviews the way the presentation layer supports different data
formats and format negotiation; and it reviews the role of the application
layer in supporting the application logic. Finally, it discusses the
importance of standardisation in ensuring interoperability.
00:00:00.000
The higher layers of the OSI reference
00:00:03.696
model – the session, presentation, and application
00:00:06.393
layers – provide services to help applications
00:00:09.089
manage transport connections, data formats, and the
00:00:11.785
application logic.
00:00:12.556
In this part, I’ll talk briefly about
00:00:15.352
some issues to consider around higher layer
00:00:18.048
protocols, and of the importance of protocol
00:00:20.744
standards for interoperability.
00:00:23.000
The OSI reference model defines three layers
00:00:25.878
above the transport layer. These are the
00:00:28.655
session, presentation, and application layers.
00:00:30.639
The goal of protocols at these layers
00:00:33.517
is to support the needs of applications.
00:00:36.294
They manage transport connection, name and locate
00:00:39.072
resources used by the application, describe and
00:00:41.850
negotiate data formats, and present the data
00:00:44.627
in an appropriate manner. Essentially, they translate
00:00:47.405
the application’s needs into protocol mechanisms.
00:00:49.786
The protocols used at these layers tend
00:00:52.663
to be quite tightly bound to particular
00:00:55.441
classes of application, and are less general
00:00:58.218
purpose than protocols at the transport layer
00:01:00.996
and below. As a result, the boundaries
00:01:03.774
between these layers tend to be less
00:01:06.551
clear, and many systems implement these higher
00:01:09.329
layer protocols without a clear distinction between
00:01:12.106
the layers.
00:01:14.000
The session layer is about managing transport
00:01:16.991
layer connections.
00:01:17.816
Some applications are straight forward, with a
00:01:20.807
single client connecting to a single server,
00:01:23.698
or to a small set of servers.
00:01:26.588
HTTP is an example of such a
00:01:29.479
protocol. This class of protocols tends to
00:01:32.369
need relatively little session layer support,
00:01:34.847
often limited to being able to re-use
00:01:37.738
a transport layer connection to send and
00:01:40.628
receive multiple messages.
00:01:41.867
Others systems are more complex, involving multiple
00:01:44.858
clients and servers collaborating to meet the
00:01:47.748
application needs. Examples include video conferencing and
00:01:50.639
chat applications, and multiplayer games, that use
00:01:53.529
a cluster of servers to support end-user
00:01:56.420
applications. The session layer in these applications
00:01:59.311
tends to be concerned with finding the
00:02:02.201
participants in a call or players in
00:02:05.092
the game, and forwarding messages between those
00:02:07.982
participants and between the servers supporting each
00:02:10.873
user.
00:02:12.036
Peer-to-peer applications tend to have still more
00:02:15.026
sophisticated session layer features. These applications have
00:02:17.917
the problem of how to set-up peer-to-peer
00:02:20.808
connections in the presence of firewalls and
00:02:23.698
network address translators, and often need to
00:02:26.589
adapt to rapid changes in group membership.
00:02:29.479
BitTorrent is a well known example of
00:02:32.370
this class of application.
00:02:34.022
Finally, there are applications that use multicast
00:02:37.012
or broadcast transmission, where the network can
00:02:39.903
send messages to a group of receivers.
00:02:42.794
Like peer-to-peer applications, these tend to require
00:02:45.684
the session layer to manage group membership
00:02:48.575
changes.
00:02:49.738
Each session layer protocol is different,
00:02:52.315
and they have relatively little in common
00:02:55.206
with each other, since they tend to
00:02:58.096
be closely tied to particular classes of
00:03:00.987
application.
00:03:01.000
The presentation layer sits above the session
00:03:03.900
layer, and manages the presentation, representation,
00:03:06.300
and conversion of data.
00:03:07.900
Presentation layer features include the media type
00:03:10.800
descriptions that web servers and video conferencing
00:03:13.600
tools use to describe data formats.
00:03:16.000
They specify that a page is in
00:03:18.800
HTML, whether an image is a JPEG
00:03:21.600
or a PNG, or that the video
00:03:24.400
is compressed with H.264 rather than VP8.
00:03:27.200
And they allow applications to describe the
00:03:30.000
data formats they support, and to negotiate
00:03:32.800
an agreed format with the other participants
00:03:35.600
in the session.
00:03:36.800
Other presentation layer features include channel encodings,
00:03:39.700
where data is adapted to fit the
00:03:42.500
limitations of the communications channel. An example
00:03:45.300
is email, where the original design only
00:03:48.100
supported textual data in ASCII format.
00:03:50.500
When support for email attachments was added,
00:03:53.300
those attachments had to look like text,
00:03:56.100
so they could pass through mail servers
00:03:58.900
that hadn’t yet been upgraded. A channel
00:04:01.700
encoding scheme, known as BASE64 encoding,
00:04:04.100
was developed to do this, allowing arbitrary
00:04:06.900
data to be converted to a text-based
00:04:09.700
format for transmission.
00:04:10.900
Finally, the presentation layer is often where
00:04:13.800
support for internationalisation is implemented. There are
00:04:16.600
two sorts of concerns here. One is
00:04:19.400
around labelling the character set used to
00:04:22.200
represent textual data, whether it is Unicode
00:04:25.000
text in UTF-8 format, or some national
00:04:27.800
character set such as ASCII, Latin1,
00:04:30.200
or the Big5 system used in Taiwan
00:04:33.000
and Hong Kong. The other is around
00:04:35.800
labelling the language, and possibly the regional
00:04:38.600
variant or dialect, that is used.
00:04:41.000
The problems addressed by the presentation layer
00:04:43.900
are wide-ranging, and tend to relate to
00:04:46.700
the broader system, and to the environment
00:04:49.500
in which the application operates, not just
00:04:52.300
to the network communication.
00:04:55.000
The final layer in the 7-layer OSI
00:04:58.119
reference model is the application layer.
00:05:00.706
It is here that protocol functions that
00:05:03.725
are specific to the application logic are
00:05:06.744
implemented. The application layer protocols deliver email
00:05:09.763
messages, retrieve web pages, stream video,
00:05:12.350
support multiplayer games, and so on.
00:05:14.938
By definition, such messages are entirely application
00:05:18.056
specific, and there is little that is
00:05:21.075
general to say here.
00:05:24.000
The OSI model is a reasonable way
00:05:27.116
of thinking about network protocols. Having a
00:05:30.132
common model helps to frame and organise
00:05:33.148
discussion of network protocols. Real networks are
00:05:36.164
more complex, and the layer boundaries are
00:05:39.180
less clear cut than the model suggests,
00:05:42.196
especially around the higher layers, but the
00:05:45.212
OSI model is close enough to reality
00:05:48.228
to be useful.
00:05:49.521
But, it misses two key layers:
00:05:52.206
the financial and the political.
00:05:54.360
Network protocols are only successful to the
00:05:57.476
extent that they enable different devices to
00:06:00.492
communicate. This requires interoperability between different implementations
00:06:03.508
of a protocol, implemented by different groups
00:06:06.524
of people.
00:06:07.386
Getting the incentives right, so that different
00:06:10.502
vendors can work together to ensure their
00:06:13.518
products interoperate, is a problem that rapidly
00:06:16.534
goes beyond the technical, and into the
00:06:19.550
realms of organisational politics, market forces,
00:06:22.135
regulation, and economics.
00:06:23.427
It’s an area where standards setting organisations,
00:06:26.543
such as the Internet Engineering Task Force,
00:06:29.559
the International Telecommunications Union, the World-wide Web
00:06:32.575
Consortium, the 3rd Generation Partnership Project,
00:06:35.161
the Moving Picture Experts Group, and others,
00:06:38.177
play an important role.
00:06:41.000
Network protocol standards are a very human
00:06:44.141
process. They’re the result of much discussion
00:06:47.181
and negotiation, much argument and compromise.
00:06:49.787
The IETF describes the outcome as “rough
00:06:52.828
consensus and running code”. The Internet works
00:06:55.869
because thousands of engineers spend the effort
00:06:58.909
to make sure it works, to make
00:07:01.950
sure their products work together, and that
00:07:04.991
the protocols are described well enough to
00:07:08.031
support interoperability.
00:07:10.000
This concludes our brief review of the
00:07:12.260
Internet protocols. In the next part,
00:07:14.111
we’ll start to think about how the
00:07:16.271
network is changing and evolving, to set
00:07:18.431
the scene for the remainder of the
00:07:20.591
course.
Part 7: The Changing Internet
Part 7, the final part of this lecture, moves on from the review to
talk about some of the changes occurring the Internet, to begin to
set the scene for later lectures. It talks about the assumptions
made in the design of the network, and discusses some changes that
mean those assumption don't necessarily hold in the modern Internet.
In particular, it talks about IPv4 address exhaustion, challenges
in establishing connectivity, increasing device mobility, hypergiants
and centralisation, the need to support real-time applications, and
challenges in securing the network. Finally, it briefly discusses
some of the difficulties faced in upgrading a globally deployed running
network.
00:00:00.000
We are in the middle of a
00:00:03.689
period of rapid change in the Internet
00:00:06.378
infrastructure. In this part, I want to
00:00:09.067
highlight some ways in which the network
00:00:11.756
is changing, to set the scene for
00:00:14.444
the remainder of the course.
00:00:16.365
In particular, I want to talk about
00:00:19.154
the exhaustion of the IPv4 address space,
00:00:21.843
and the accelerating transition to IPv6.
00:00:24.148
The increasing proportion of wireless, mobile,
00:00:26.552
Internet endpoints, such as smartphones, and the
00:00:29.241
implications of this shift to a network
00:00:31.930
of mobile devices.
00:00:33.083
The increasing centralisation of the network around
00:00:35.871
a small number of hypergiant content providers.
00:00:38.560
The increasing use of real-time applications,
00:00:40.965
and the corresponding need for low-latency transport.
00:00:43.654
And, finally, new approaches to protocol design
00:00:46.443
to support innovation in the face of
00:00:49.132
network ossification.
00:00:51.000
The designers of the Internet made certain
00:00:53.791
assumptions.
00:00:54.925
They assumed that devices would generally be
00:00:57.716
located at a fixed location in the
00:01:00.407
network, and would have a small number
00:01:03.099
of network interfaces that could be given
00:01:05.790
persistent and globally unique addresses.
00:01:07.712
They assumed the network, and the services
00:01:10.503
that run on it, would be operated
00:01:13.194
by many different organisations, working as peers,
00:01:15.885
and that there would be no central
00:01:18.576
points of control.
00:01:19.729
They assumed that best effort packet delivery
00:01:22.520
service would provide sufficient quality, and that
00:01:25.211
applications would be adaptive, and able to
00:01:27.902
cope with changes in the network capacity
00:01:30.593
and available bandwidth.
00:01:31.746
They assumed that the network was trusted
00:01:34.537
and secure.
00:01:35.306
And they assumed that innovation would happen
00:01:38.097
at the edges, and that the network
00:01:40.788
itself would provide only a simple packet
00:01:43.479
delivery service.
00:01:44.248
These assumptions generally made sense for a
00:01:47.039
research network in the mid-1980s, when the
00:01:49.730
original design of the Internet protocols was
00:01:52.421
being finalised. Do they still make sense
00:01:55.112
for a network today?
00:01:57.000
The first assumption was that devices were
00:02:00.231
located at fixed places in the network,
00:02:03.362
and that each device had a small
00:02:06.493
number of network interfaces, that could be
00:02:09.624
given persistent and globally unique IP addresses.
00:02:12.755
This gives the desirable property that every
00:02:15.986
device is addressable by every other device.
00:02:19.117
It assumes a network of peers,
00:02:21.800
with no conceptual difference between clients and
00:02:24.931
servers, where any device connected to the
00:02:28.062
network can take either role, depending on
00:02:31.193
the software it runs. And where,
00:02:33.877
in principle, any device can connect to
00:02:37.008
any other device.
00:02:38.350
Of course, addressable doesn’t necessarily imply reachable,
00:02:41.580
and the Internet has long supported firewalls
00:02:44.711
to provide access control, by blocking access
00:02:47.842
to certain devices, but the ability for
00:02:50.973
any device to be a server empowers
00:02:54.104
end-users.
00:02:55.301
If any device can act as a
00:02:58.532
server, it ought to be possible to
00:03:01.663
run a website, or other service,
00:03:04.347
anywhere in the network, including on a
00:03:07.478
home machine. There should be no requirement
00:03:10.609
to pay for a dedicated server,
00:03:13.293
located in a managed data centre,
00:03:15.976
to host a website or other service.
00:03:19.107
Unfortunately, this assumption failed.
00:03:20.996
It failed because IPv4 had insufficient addresses
00:03:24.227
to support it, and because devices became
00:03:27.358
mobile.
00:03:28.555
The problem with the lack of addresses
00:03:31.786
in IPv4 results in many hosts sharing
00:03:34.917
IP address with others, using a technique
00:03:38.048
known as network address translation (NAT).
00:03:40.732
In theory, IPv6 will solve this problem
00:03:43.863
by providing enough addresses for each host,
00:03:46.994
but IPv6 has been slow to deploy.
00:03:50.125
The result of this lack of addresses
00:03:53.356
is that connectivity becomes difficult.
00:03:55.592
It’s increasingly necessary to try both IPv4
00:03:58.823
and IPv6 addresses when connecting to a
00:04:01.954
device, perhaps racing connection attempts in parallel
00:04:05.085
to get good performance – a technique
00:04:08.216
known as Happy Eyeballs because it improves
00:04:11.347
end user web browsing performance.
00:04:13.583
It’s also necessary to think about NAT
00:04:16.814
traversal. A client behind a NAT can
00:04:19.945
easily connect to a server on the
00:04:23.076
public Internet but, as we’ll discuss in
00:04:26.207
Lecture 2, it’s difficult to connect to
00:04:29.338
a device located behind a NAT,
00:04:32.022
and to build peer-to-peer applications.
00:04:34.258
This combination greatly increases the complexity of
00:04:37.489
establishing a connection.
00:04:38.831
This makes networked applications slower, and less
00:04:42.062
reliable. And, perhaps more importantly, it forces
00:04:45.193
server applications to run in data centres,
00:04:48.324
and discourages peer-to-peer applications. This forces reliance
00:04:51.454
on cloud services, and encourages centralisation of
00:04:54.585
Internet services onto large cloud providers,
00:04:57.269
such as Amazon Web Services and Google.
00:05:00.000
How severe is the shortage of IPv4
00:05:03.391
addresses?
00:05:04.612
Well, IP address assignment follows a hierarchical
00:05:08.003
model. The Internet Assigned Numbers Authority (IANA)
00:05:11.295
assigns blocks of IP addresses to Regional
00:05:14.586
Internet Registries. Those regional registries then assign
00:05:17.878
addresses to ISPs, and other organisations within
00:05:21.169
their region, and those in turn allocate
00:05:24.461
addresses to end users.
00:05:26.341
The IANA assigned the last available blocks
00:05:29.733
of IP addresses to the regional registries
00:05:33.024
in 2011 – around ten years ago.
00:05:36.316
Since then, the regional registries have gradually
00:05:39.707
been running down their pool of available
00:05:42.999
addresses. As of late 2020, the regional
00:05:46.290
registries for Europe, North America, Latin America,
00:05:49.582
and the Asia-Pacific Region have entirely run
00:05:52.873
out of available IPv4 addresses. Africa is
00:05:56.165
projected to run out of IPv4 addresses
00:05:59.456
during 2021.
00:06:00.397
There is now a thriving market in
00:06:03.788
the transfer of Pv4 addresses, with networks
00:06:07.080
that were previously assigned IPv4 addresses,
00:06:09.901
and have more than they need,
00:06:12.722
selling the addresses on to others.
00:06:15.544
As of late 2020, a single IPv4
00:06:18.835
address can be sold for around $25.
00:06:22.127
The IPv4 address space owned by the
00:06:25.418
University of Glasgow, for example, is worth
00:06:28.710
around $1,600,000.
00:06:30.000
Despite this shortage of IPv4 addresses,
00:06:32.821
adoption of IPv6 has been relatively slow,
00:06:35.995
although it’s now reaching critical mass.
00:06:38.716
For example, as shown on the slide,
00:06:41.991
Google currently reports that around a third
00:06:45.165
of its users are on IPv6.
00:06:47.886
Availability of IPv6 is highly variable,
00:06:50.707
since network operators tend to switch their
00:06:53.881
customers all at once. Generally, either all
00:06:57.056
the users in a particular network have
00:07:00.230
IPv6, or none of them. In the
00:07:03.405
UK, for example, most mobile networks assign
00:07:06.579
IPv6 addresses to smartphones on their networks
00:07:09.753
by default, but many residential ISPs and
00:07:12.928
businesses still use IPv4. What type of
00:07:16.102
address you get depends on how you
00:07:19.277
connect to the network.
00:07:21.091
Other countries follow similar patterns, with some
00:07:24.365
networks switching wholesale to IPv6, while others
00:07:27.540
remain on IPv4.
00:07:30.000
This mixed use of IPv4 and IPv6,
00:07:33.276
with many IPv4 hosts being located behind
00:07:36.453
network address translators, greatly complicates connection establishment.
00:07:39.629
In the IPv4 Internet, peer-to-peer applications must
00:07:42.905
perform a complex process to discover NAT
00:07:46.082
bindings, exchange candidate addresses with their peer,
00:07:49.258
and probe to establish what addresses are
00:07:52.434
usable for a connection.
00:07:54.249
This uses a set of protocols,
00:07:57.072
known as STUN and TURN, and the
00:08:00.248
assistance of a central server with a
00:08:03.424
globally unique public IPv4 address, to detect
00:08:06.601
the presence of network address translation,
00:08:09.323
to determine what type of address translation
00:08:12.499
is being performed, and to derive a
00:08:15.676
set of candidate addresses that can be
00:08:18.852
used for peer to peer communication.
00:08:21.575
The peers use the central server to
00:08:24.751
exchange these candidate addresses with each other,
00:08:27.927
and then follow an algorithm known as
00:08:31.103
Interactive Connectivity Establishment (ICE) to setup direct,
00:08:34.280
low-latency, peer-to-peer flows.
00:08:35.641
This works, most of the time,
00:08:38.464
but is complicated, slow, power hungry,
00:08:41.186
and generates a lot of otherwise unnecessary
00:08:44.362
traffic – and all because there aren’t
00:08:47.539
enough IPv4 addresses.
00:08:50.000
The fix, of course, is to move
00:08:53.290
to IPv6.
00:08:54.201
Unfortunately, the move to IPv6 will take
00:08:57.490
a long time. And, while it’s happening,
00:09:00.680
there will be some devices, and some
00:09:03.869
networks, that support only IPv4, some that
00:09:07.059
support only IPv6, and some that support
00:09:10.248
both.
00:09:11.454
To reach users on both IPv4 and
00:09:14.744
IPv6, popular services tend to be hosted
00:09:17.933
on servers that have both IPv4 and
00:09:21.123
IPv6 addresses. This is known as dual
00:09:24.312
stack hosting, and it further encourages centralisation
00:09:27.502
onto large hosting providers with the resources
00:09:30.691
to provide both types of address.
00:09:33.425
To get good performance, clients must try
00:09:36.715
to connect using both IPv4 and IPv6
00:09:39.904
addresses simultaneously, or near simultaneously. This further
00:09:43.094
complicates connection setup, making it harder to
00:09:46.283
write networks applications.
00:09:48.000
The Internet Protocols are designed such that
00:09:50.907
IP addresses encode the location of a
00:09:53.714
network interface within the network. An IP
00:09:56.521
address does not represent a device,
00:09:58.927
it represents a location where a device
00:10:01.733
can attach to the network.
00:10:03.738
If a device is attached to the
00:10:06.645
network via a wireless connection, but moves
00:10:09.452
so that it changes the WiFi or
00:10:12.259
4G base station to which it connects,
00:10:15.066
then that device will be assigned a
00:10:17.873
new IP address.
00:10:19.076
This has some privacy benefits, but makes
00:10:21.983
it difficult to maintain long-lived connections with
00:10:24.790
that device. For example, TCP connections fail,
00:10:27.597
and must be re-established by the application,
00:10:30.403
when a device moves. And UDP applications
00:10:33.210
need to coordinate with their peers to
00:10:36.017
change the IP addresses they use for
00:10:38.824
communication.
00:10:39.975
Applications that want to maintain long-lived connections,
00:10:42.882
or that want to accept incoming connections,
00:10:45.689
must deal with the complexity of changing
00:10:48.496
IP addresses, and the need to signal
00:10:51.303
such changes to their peers and reestablish
00:10:54.110
connections as the device moves.
00:10:56.115
Something has to keep track of where
00:10:59.021
each device is, in order to route
00:11:01.828
traffic. The assumptions in the design of
00:11:04.635
the Internet mean that complexity is visible
00:11:07.442
to applications, rather than hidden inside the
00:11:10.249
network.
00:11:11.000
As we’ve seen, several aspects of the
00:11:14.324
Internet’s design push toward centralisation.
00:11:16.627
The network topology is gradually flattening,
00:11:19.491
and moving away from a complex mesh
00:11:22.715
of peer connections, towards a hub-and-spoke model
00:11:25.939
centred around a small number of large,
00:11:29.164
centralised, services, directly connecting to so-called “eyeball”
00:11:32.388
networks, at the edge of the network,
00:11:35.612
where consumers of those services live.
00:11:38.376
This enables the set of hypergiant content
00:11:41.700
providers, including Google, Facebook, Amazon, Akamai,
00:11:44.464
Apple, Netflix, and so on, to dominate,
00:11:47.688
and makes it difficult for new competitors
00:11:50.912
to gain a foothold. This has implications
00:11:54.136
for network neutrality, competition, and innovation.
00:11:58.000
We’re also seeing steady growth of real-time
00:12:01.077
traffic, with streaming video being, by far,
00:12:04.055
the dominant type of traffic in the
00:12:07.032
network – while still growing at ~40%
00:12:10.009
year on year.
00:12:11.285
Streaming video has reasonably strict timing and
00:12:14.362
quality constraints, and these push network operators
00:12:17.340
to improve the quality of their networks,
00:12:20.317
and push streaming video content providers to
00:12:23.294
peer directly with the residential edge networks.
00:12:26.271
This is a further incentive towards centralisation,
00:12:29.249
the flattening of the network, since such
00:12:32.226
direct peerings make it easier to ensure
00:12:35.203
high-quality video is delivered to viewers.
00:12:37.755
Increases in streaming video are also driving
00:12:40.832
changes in TCP congestion control, such as
00:12:43.810
Google’s BBR algorithm, and the development of
00:12:46.787
TCP replacements, such as QUIC, both aimed
00:12:49.764
at reducing latency and increasing quality.
00:12:52.316
Lectures 4 and 5 talk will about
00:12:55.294
some of these developments.
00:12:56.995
WebRTC-based video conferencing services, such as Zoom,
00:13:00.072
Webex, and Microsoft Teams, have even stricter
00:13:03.049
latency requirements.
00:13:05.000
The COVID-19 pandemic has accelerated these effects.
00:13:08.345
This graph shows measurement of Internet traffic
00:13:11.691
as the initial lockdowns started in March
00:13:14.936
2020. It shows that many residential networks
00:13:18.182
saw a 20-25% increase in the total
00:13:21.427
amount of Internet traffic they were carrying,
00:13:24.673
as people shifted to working from home.
00:13:27.918
It also shows a corresponding drop in
00:13:31.164
mobile traffic.
00:13:32.091
That shift in traffic wasn’t evenly distributed,
00:13:35.436
though.
00:13:37.000
This second graph shows the amount of
00:13:40.090
video data being sent over Webex,
00:13:42.653
one of the popular video conferencing platforms,
00:13:45.643
over a similar time period. Usage grew
00:13:48.633
by around a factor of 20 in
00:13:51.623
less than a week, and has continued
00:13:54.614
growing since.
00:13:55.468
Impressively, the Internet was flexible and robust
00:13:58.558
enough to support this rapid change in
00:14:01.548
how it is used.
00:14:03.257
The question is, can we maintain such
00:14:06.347
flexibility while also improving quality? Lectures 6
00:14:09.337
and 7 discuss this topic further.
00:14:13.000
The final shift in assumptions has been
00:14:16.191
around security.
00:14:17.074
The Internet Protocols were originally designed to
00:14:20.265
support a research network, with a relatively
00:14:23.355
small set of users, who had reasonably
00:14:26.446
closely aligned goals, and provided little in
00:14:29.537
the way of security.
00:14:31.303
Over the years, the protocols have changed
00:14:34.494
to provide increasingly sophisticated security and protection
00:14:37.585
from attacks. The Edward Snowden revelations accelerated
00:14:40.675
that trend, by increasing awareness of large-scale
00:14:43.766
government surveillance, but the increase in security
00:14:46.857
started before that, in response to hacking
00:14:49.948
and criminal activity.
00:14:51.272
A significant challenge going forward will be
00:14:54.463
in balancing the needs of law enforcement
00:14:57.554
to access and monitor some traffic,
00:15:00.203
in a targeted manner, while preserving privacy
00:15:03.294
and protecting against attackers.
00:15:05.060
We’ll talk about these topics more in
00:15:08.251
Lectures 3, 4, 8, and 9.
00:15:12.000
The Internet is now a globally deployed
00:15:15.103
network. Like any large system, it becomes
00:15:18.105
increasingly ossified, increasingly difficult to change,
00:15:20.679
over time.
00:15:21.537
The slow transition from IPv4 to IPv6
00:15:24.640
is one example of this ossification.
00:15:27.214
Another example would be the difficulty in
00:15:30.316
updating TCP, to better support low-latency services
00:15:33.319
and improve performance. The widespread use of
00:15:36.322
NATs, firewalls, and other middleboxes makes such
00:15:39.325
changes surprisingly difficult. We’re now starting to
00:15:42.327
see serious attempts to replace TCP,
00:15:44.901
with protocols such as QUIC that employ
00:15:47.904
pervasive encryption and tunnel over UDP to
00:15:50.907
avoid such interference by the legacy network,
00:15:53.909
but it’s not clear that these will
00:15:56.912
succeed.
00:15:58.091
Finally, we must consider the effects of
00:16:01.194
the push towards centralised services and applications,
00:16:04.196
driven by both technical and business considerations,
00:16:07.199
and whether these are beneficial to consumers
00:16:10.202
and users of the network, or not.
00:16:13.205
Is this shift towards a small number
00:16:16.207
of hypergiant service providers an inevitable consequence
00:16:19.210
of the design of the network,
00:16:21.784
or of the business and regulatory environment,
00:16:24.787
and to what extent should we attempt
00:16:27.789
to influence it through technological change in
00:16:30.792
the network?
00:16:32.000
The way the network is used is
00:16:34.890
changing, and the technologies that support that
00:16:37.580
use are necessarily shifting too. The network
00:16:40.269
has become more fragmented, there are more
00:16:42.959
serious security threats, more demanding applications,
00:16:45.265
and some significant shifts in the devices
00:16:47.955
and technologies we use to access the
00:16:50.644
network.
00:16:51.779
In the rest of this course,
00:16:54.184
I want to start to discuss how
00:16:56.874
the protocols that form the Internet are
00:16:59.564
evolving to meet these needs, and to
00:17:02.254
highlight some of the open issues and
00:17:04.944
challenges still to be addressed.
00:17:06.865
We’ll start, in the next lecture,
00:17:09.270
by discussing the increasing fragmentation of the
00:17:11.960
network and its implications for connection establishment.
Discussion
The goal of the Networked Systems (H) course is to discuss how the
Internet is changing – to support more devices, to improve real-time and
low-latency applications, and to increase security. The recorded material
for lecture 1 reviewed some prior material, that is hopefully somewhat
familiar to you from the Networks and Operating Systems Essentials course
in Level 2, and introduced some of the changes we'll discuss in the
remainder of the course. The live discussion session will briefly recap
this review, then discuss the following points.
IPv4, IPv6, and NAT
One of the ongoing changes in the network is the transition from IPv4 to
IPv6. The lecture presented data from Google showing that about 30% of
their traffic is running over IPv6. Does your home network support IPv6?
What about your mobile provider?
Due to the shortage of IPv4 addresses, many networks use NAT to share IP
addresses. We'll talk more about this in Lecture 2, but for now, find our
whether your home network uses IPv4 with a NAT. The site at
https://lifehacker.com/how-to-find-your-local-and-external-ip-address-5833108
has instructions for finding your machine’s local IP address. If it's
using one of the private address ranges (10.0.0.0 - 10.255.255.255.
172.16.0.0 - 172.31.255.255, or 192.168.0.0 - 192.168.255.255) your home
network is using a NAT.
Google “what is my IP” to find your public IPv4 and IPv6
address
Does it matter that we’re running out of IPv4
addresses?
Real-time Applications
Streaming video is the majority of Internet traffic, and video
conferencing providers saw a massive traffic increase due to the
pandemic. The lecture presented some data to illustrate this, and we'll
talk about the issues more in the rest of the course.
How well have video conferencing apps worked for you? Do you see frequent quality problems?
Hypergiants, Centralisation, and Security
Internet topology is flattening and becoming increasingly centralised,
with direct connections from “eyeball” networks to massive content
providers – Google, Facebook, Amazon, Apple, Akamai, etc.
What are the implications for network neutrality, competition,
innovation, privacy, freedom of speech, pervasive monitoring, and
security?