Advanced Computer Networks

0.0(0)
studied byStudied by 1 person
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/216

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

217 Terms

1
New cards

Bits

Shannon and information theory lecture

Measure of information

2
New cards

Information

Shannon and information theory lecture

Resolution of uncertainty

3
New cards

Shannon information

Shannon and information theory lecture

Proposed a measure of that contains a discrete random variable and asks how much information is received when we observe a specific value for this variable

  • The “degree of surprise”

4
New cards

Shannon entropy

Shannon and information theory lecture

Where p(x) is the probability of x

h(x) = log 2 p(x)

5
New cards

Shannon information

Shannon and information theory lecture

Less likely a value, the more information is imported by revealing its value

If learn two independent facts, information is additive - so can sum the h values

p(x,y) = P(x)p(y)

h(x,y) = h(x) + h(y)

6
New cards

Information/Shannon entropy

Shannon and information theory lecture

For a series of values. The average amount of information transmitted is given by

h(x) = -∑p(x) log2 p(x)

7
New cards

Solutions to IPv4 address exhausation

IPv6 lecture

  • Address conservation

  • NAT

  • Proposed address release eg 0/8, 127/8, 240/4

  • Address recovery

  • CGNAT

8
New cards

Carrier grade NAT (CGNAT)

IPv6 lecture

  • ISP subnet becomes a large private network

  • Home routers are assigned private IP’s

  • The amount of required public addresses is reduced as wall as the cost

  • One bad actor could mean lots of people are blocked

9
New cards

Carrier grade NAT (CGNAT) problems

IPv6 lecture

  • Breaks end to end IP connectivity

  • Limits or removes ability to port forward

  • Stateful: ISP network has to keep state of all connections

  • Everyone gets punished by public IP abuse

  • Security and privacy implications

  • Does not solve IPv4 address exhausation

10
New cards

IPv6

IPv6 lecture

  • 128 bit addresses

  • 3.4×10³8 addresses

  • Addresses represented in colon hexadecimal format

  • Multicast replaces broadcast

11
New cards

IPv6 address formatting

IPv6 lecture

  • Leading 0’s in a block can be omitted

  • A single set of repeated 0 blocks can be replaced by ::

  • Subnets represented in CIDR notation

12
New cards

Changing to IPv6 challenges

IPv6 lecture

  • It isn’t ‘needed’

  • Those who want it can work around it

  • Some ISPs are being stubborn

  • Money

  • Training

  • New infrastructure

  • New issues

  • No urgency

13
New cards

Motivation for IPv6

IPv6 lecture

  • IPv4 address exhaustion

  • Direct addressability - End to end addressing

  • Less complex networks

14
New cards

Why not deploy IPv6

IPv6 lecture

  • ‘I have enough global IPv4 addresses’

  • ‘I like NAT, it adds security’ (It does not)

  • ‘I have little time/money; it’s not a priority’

  • ‘Application x does not support it’

15
New cards

IPv6 common misconceptions

IPv6 lecture

  • Puts the current infrastructure at risk - they can co-exist

  • Insecure

  • Cost - Cost savings and long-term investment

  • ‘ISP doesn’t offer it, so we can’t’ - Are transition mechanisms

  • Don’t break it if it’s not broken

16
New cards

IPv6 challenges

IPv6 lecture

Support

  • Network operators

  • Content providers

  • Software developers

  • Hardware developers

Chicken and the egg problem

Urgency - Killer application is not here yet

17
New cards

Need for IPv6 deployment

IPv6 lecture

  • Address space

  • Routing

  • Firewalling

  • DNS that serves it

  • Address allocation mechanism

18
New cards

IPv6 address allocation

IPv6 lecture

  • SLAAC

  • DHCPv6

19
New cards

DHCPv6

IPv6 lecture

A mix of multicast and unicast traffic, link local and global addresses

  • Client sends a SOLICIT over multicast

  • Server responds with and ADVERTISEment of an address directly to the client

  • Client sends a request for the advertised address over multicast

  • Server sends a REPLY confirming the address allocation

20
New cards

DHCPv6 Unique Identifier (DUID)

IPv6 lecture

Used to identify a host to the DHCPv6 server

Four different types in RFC 8415

21
New cards

Dual stack deployment

IPv6 lecture

Run both protocols on the same equipment so device have two addresses

22
New cards

IPv6 deployment stratergy

IPv6 lecture

Optimal deployment strategy could be

  • Start with it from ISP to your firewall

  • Roll out some test nets

  • Enable public facing services

  • Enable client devices

23
New cards

Tunnelling

IPv6 lecture

Encapsulation of IPv6 packets in IPv4 packets between two destinations

Three main approaches

  • 6 in 4

  • VPN

  • Teredo

24
New cards

6 in 4

IPv6 lecture

IPv6 packet with an IPv4 header bolted in front

25
New cards

Teredo

IPv6 lecture

Encapsulates IPv6 in IPv4 UDP packets

26
New cards

NAT64 (RFC 6146)

IPv6 lecture

IPv4 addresses embedded in a specific IPv6 prefix

Allows IPv6 clients to communicate with IPv4 servers

27
New cards

DNS64 (RFC 6147)

IPv6 lecture

DNS server synthesis a AAAA record for a domain that only has A records

Combine with NAT 64 for a whole solution

Breaks

  • DNSSEC

  • Does nothing for IPv4 literals

  • Does nothing for IPv4 sockets

Without it, a query for an IPv4 only service will yield an IPv4 destination address in response and an IPv6 only service cannot communicate with it

28
New cards

IPv6 mostly

IPv6 lecture

Devices that can operate IPv6 only do so, other devices are dual stack or IPv4 only

29
New cards

MAP-T (RFC 7599)

IPv6 lecture

Translates IPv4 packets into IPv6

  • MAP-E (RFC 7597) encapsulates, so has at least 40 bytes of overhead

  • MAP-T reduces this to 20 bytes but does not maintain the IPv4 header

30
New cards

Dual stack lite (DS-lite)

IPv6 lecture

Native IPv4, tunnelled and NATed IPv4 (RFC 6333)

31
New cards

Higher bandwidth

IPv6 lecture

Higher the data rate achievable

32
New cards

Higher frequency

IPv6 lecture

Easier it is to use more bandwidth

33
New cards

Centre frequency

Radio fundamentals lecture

Also called carrier frequency

34
New cards

Bandwidth

Radio fundamentals lecture

How wide the signal is

35
New cards

Propagation

Radio fundamentals lecture

How radio waves bounce around an environment

36
New cards

Link budget

Radio fundamentals lecture

Summary of the gains/losses in a radio system

37
New cards

Prx

Radio fundamentals lecture

Received power

38
New cards

Ptx

Radio fundamentals lecture

Transmitter output power

39
New cards

Gtx

Radio fundamentals lecture

Transmitted antenna gain

40
New cards

Grx

Radio fundamentals lecture

Receiver antenna gain

41
New cards

Ltx

Radio fundamentals lecture

Transmit feeder and associated losses (Feeder, connectors, etc)

42
New cards

Lfs

Radio fundamentals lecture

Free space loss or path loss (Inverse square law, atmosphere absorption etc)

43
New cards

Lp

Radio fundamentals lecture

Miscellaneous losses

44
New cards

Modulation

Radio fundamentals lecture

Have a carrier frequency and then change a number of things

  • Amplitude

  • Frequency

  • Phase

45
New cards

Quadrature phase shift keying

Radio fundamentals lecture

Can send multiple bits simultaneously by extending multiple phase shifts

46
New cards

Quadrature amplitude modulation

Radio fundamentals lecture

Combining different modulation schemes

47
New cards

Application of modulation schemes

Radio fundamentals lecture

  • Bluetooth

  • Wi-Fi

  • GSM

  • UMTS - Universal Mobile Telecommunications system

  • LORA

48
New cards

Frequency Division Multiple Access (FDMA)

Radio fundamentals lecture

Divide frequency band into channels and assign each user a different channel (Uplink and downlink may be on different channel)

49
New cards

Time Division Multiple Access (TDMA)

Radio fundamentals lecture

Divide access to the frequency band into a number of distinct time slots

50
New cards

Code Division Multiple Access (CDMA)

Radio fundamentals lecture

Same carrier frequency but are assigned a mutually orthogonal signal composed of ‘chips’

51
New cards

802.15.4

802.15.4 & 6LoWPAN lecture

Standard that covers physical specifications (PHY) and MAC for LR-WPANs (Low rate wireless personal area network)

Sits in the network access layer of TCP/IP model and layer 1 and 2 of OSI model

52
New cards

802.15.4 applications

802.15.4 & 6LoWPAN lecture

  • Wireless/Environmental sensor networks

  • Industrial communications and control

  • Home automation

  • Health monitoring

  • Smart metering

  • Asset and inventory tracking

  • Intelligent agriculture

53
New cards

PAN coordinator

802.15.4 & 6LoWPAN lecture

The networks overall coordinator

54
New cards

Coordinator

802.15.4 & 6LoWPAN lecture

Provides synchronisation services to other devices eg router

55
New cards

Full function device

802.15.4 & 6LoWPAN lecture

  • Can function as a PAN coordinator or coordinator

  • Can associate with multiple other devices at once

56
New cards

Reduced function device

802.15.4 & 6LoWPAN lecture

  • Cannot function as a PAN coordinator or coordinator

  • For very simple applications eg light switch or PIR sensor

  • Can only associate with one FFD at a time

57
New cards

Star topology

802.15.4 & 6LoWPAN lecture

All communications are to/from the PAN coordinator

58
New cards

Peer to peer

802.15.4 & 6LoWPAN lecture

All devices in range of each other can communicate directly. Is the basis of mesh networking

59
New cards

PPDU

802.15.4 & 6LoWPAN lecture

PHY protocol data unit

60
New cards

PSDU

802.15.4 & 6LoWPAN lecture

PHY Service Data Unit

61
New cards

Wireless HART

802.15.4 & 6LoWPAN lecture

Wireless Highway Addressable Remote Transducer Protocol

Intended for industrial wireless sensing applications

62
New cards

6LoWPAN

802.15.4 & 6LoWPAN lecture

IPv6 over low power wireless personal area networks

63
New cards

RPL

802.15.4 & 6LoWPAN lecture

Routing protocol for low power and lossy networks, RFC 6550

Work out routing over mesh networks and allows for multi hop networks

64
New cards

TSCH

802.15.4 & 6LoWPAN lecture

Time {slotted | synchronised} channel hopping

Essentially combines TDMA and FDMA

Each node gets a timeslot to talk to other nodes

65
New cards

Thread

802.15.4 & 6LoWPAN lecture

A royalty free open industry standard designed for connected home appliances

66
New cards

Matter

802.15.4 & 6LoWPAN lecture

A royalty free, open source protocol standard for IoT and smart home

67
New cards

MQTT

MQTT and CoAP lecture

Message Querying Telemetry Transport

Messages are published to a broker

Clients subscribe to data streams

68
New cards

CoAP

MQTT and CoAP lecture

Constrained Application Protocol

Efficient for low power IoT systems

RESTful

69
New cards

CoAP key features

MQTT and CoAP lecture

  • More modern and lightweight design the MQTT

  • Prefers UDP

  • Binary format for protocol

  • DTLS security option

  • Block transfers

  • Resource discovery

  • Push notifications

  • Cache model

  • Multicast support

70
New cards

Thread and CoAP

MQTT and CoAP lecture

Thread (which uses 6LoWPAN/Ble/Wi-Fi) uses CoAP to

  • Configure

  • Management messages

71
New cards

LPWAN

LPWAN lecture

Low Power Wide Area Network

72
New cards

Characteristics of LORA

LPWAN lecture

  • High immunity to interference

  • Long range due to high sensitivity

  • Doppler resistant - good for fast moving things

  • Multipath resistant - Better in urban environments with lots of reflecting surfaces

  • Scalability - To lots of nodes transmitting on the same frequency

73
New cards

LoraWAN architecture

LPWAN lecture

Each gateway makes a star network to nodes

Multiple gateways can overlap coverage and packet copies are managed

74
New cards

LoraWAN classes

LPWAN lecture

  • Class A - End device transmits a message and receives a response (or confirmation of receipt) in one of two downlink receive windows

  • Class B - Adds scheduled receive for downlinks, meaning the end device dies not have to transmit first to get a response

  • Class C - End device always listening, apart from during transmission

75
New cards

Frame counter

LPWAN lecture

  • Increments each time a packet is sent

  • Network and device reject counters that are lower than expected

  • Helps to prevent reply attacks

76
New cards

The things network

LPWAN lecture

Acts as a broker for LoraWAN base station control and data transfer and has a variety of integrations avaliable

77
New cards

NB-IoT

LPWAN lecture

  • Narrowband IoT

  • Uses LTE frequencies and GSM towers

  • 700MHz, 800Mhz, 900MHz with slightly better coverage than ‘normal’ GSM

  • Standardised in 2016

  • Low cost per sim card

78
New cards

LTE-M

LPWAN lecture

GSM low bandwidth network - Uses 4G infrastructure

Roughly 1Mbit/s each way and ~23dBm power

Can roam between base stations

Uses more power than NB-IoT

79
New cards

Internet of things

IoT lecture

Ubiquitous computing with a focus on objects

Computing is distributed into the environment, and onto physical objects

A happy convergence

  • Networking devices, sensors, actuators, becoming prevalent, small and cheap

  • Internet connectivity becoming integrated into everyday life

  • Cloud platforms for storage; API’s for data collection

  • Smaller, lower cost, computing devices

80
New cards

IoT product categories

IoT lecture

  • Personal

  • Home

  • Urban

  • Industry

  • Ambient devices

81
New cards

IoT communication categories

IoT lecture

  • Wi-Fi

  • Bluetooth

  • Zigbee

  • 6LowPAN over 802.15.4 radios

  • NB-IoT and cat-M (mobile phone networks)

  • Lorawan

82
New cards

Bluetooth low energy

IoT lecture

  • Short range, not IP

  • Available on phones/tablets/laptops

  • Some existing devices like speakers

83
New cards

Zigbee

IoT lecture

  • Protocol over 802.15.4 layer at 2.4Ghz/868/915MHz

  • 64 bit addressing

  • Payload up to 104 bytes

  • Being replaced by thread

84
New cards

6LowPAN over 802.15.4

IoT lecture

  • Low power radios (typically 10mw)

  • Excellent integration with internet

  • Gains IPv6 characteristics

  • Mesh networking (RPL)

  • But need gateway/hub to LAN/WAN

  • Can use 2.4GHz or 868/900MHz

  • Can be used by Thread/Matter

85
New cards

LoraWAN

IoT lecture

  • Wide area low power network using gateway

  • Based on starts - gateways link together

  • Up to 50 kbps, uses ISM 868/915MHz boards

  • Security mechanisms

  • Proprietary physical layer (semtech)

  • SS chrip modulation - very robust

86
New cards

MQTT

IoT lecture

  • Publish/subscribe

  • Light weight

  • Tend to use a message broker like mosquito

  • 'Topics’ published to broker which other can publish/subscribe

87
New cards

Hypercat

IoT lecture

Consortium is developing a new standard for secure IoT interoperability and creating commercial demonstrators

88
New cards

Wireless sensor networks applications

Wireless sensor networks lecture

  • Environmental monitoring

  • Security and surveillance

  • Health monitoring (Personal area networks)

  • Rapid response/disaster

89
New cards

Power aware routing

Wireless sensor networks lecture

Wireless sensor networks can often route to prevent overloading one node or cope with breakdowns

90
New cards

Listen-sleep media access protocol

Wireless sensor networks lecture

  • Typically MAC protocol

  • May need synchronisation

  • Can sometimes use a low power preamble listen

91
New cards

Low energy adaptive clustering hierarchy (LEACH)

Wireless sensor networks lecture

Forms clusters of sensors, around a local temporary cluster head

92
New cards

Environmental sensor network

Wireless sensor networks lecture

Comprises an array of sensor nodes and a communications system which allows their data to reach a server

  • Enable data that would previously be impossible to collect to be gathered

  • Typically wireless

  • Battery powered

93
New cards

Personal area network (PAN)

Bluetooth lecture

  • Short range

  • Body area networks (Network of things connected around body eg heart rate monitor, headphones and phone)

  • Personal devices

  • Some standards (Bluetooth, Zigbee)

94
New cards

Bluetooth

Bluetooth lecture

Open specification to enable short range wireless voice and data communications

Cable replacement between small mobile devices

95
New cards

2.4Ghz spectrum band

Bluetooth lecture

Globally unlicensed (regulated) part of the spectrum

Interference must be anticipated and appropriately handled - competes with 802.11 Wi-Fi

Aims to maximise bandwidth and minimise RF interference while operating at very low power

96
New cards

Bluetooth radio

Bluetooth lecture

Divides 2.4GHz band in to 79 channels

1MHz per channel

Maximum rate about 1Mbit/s

Uses PSK modulation

97
New cards

Frequency hopping

Bluetooth lecture

To reduce interference transmission frequently hop between channels

  • Communication divided into slots

  • Each slot uses a different channel

  • Reduced RF interference

  • Security enhances

98
New cards

Adaptive frequency hopping (AFH)

Bluetooth lecture

Bad (Marked unused) channels within hopping sequence are replaced by random good channels used in hopping sequence (Version 1.2)

Reduces interference with Wi-Fi competing for the same spectrum band

99
New cards

Controller and Responder

Bluetooth lecture

Controller may connect up to seven slaves

No difference in hardware between controller and responder

No responder can communicate directly with another responder

Other responders can be parked (255 of them)

Controller determines frequency hopping pattern and timing

Also called master and slave

100
New cards

IEEE 802.11

Wi-Fi lecture

Set of standards that cover physical specifications (PHY) and MAC for wireless local area networks (WLANs)