Set 9 Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is functional composition?

A
  • Combining two functions to get a new function
  • g*f means apply f first, then g
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Describe in words what map does

A

Applies a given function to each element of a list, returning a list of results

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Describe in words what filter does

A

Processes a list to produce a new list containing exactly those elements that match a given condition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Describe in words what fold does

A

Reduces a list of values to a single value by repeatedly applying a combining function to the list values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a proxy server?

A
  • A server that sits ​between the network hosts and the firewall
  • Packets are sent outside the network by the proxy server (on behalf of the network hosts)
  • Provides anonymity, caching, and logging of user activities
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a network topolgy?

A

The way a network and its connected devices (computers, printers, servers etc.) are connected

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Give three disadvantages of bus networks

A
  1. If main cable fails no network data can be transmitted
  2. Performance degrades heavily with increased traffic
  3. Security is poor as all computers on the network can see all transmissions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Give two disadvantages of star networks

A
  1. If central node goes down the whole network can’t transmit / receive data
  2. Can be costly to set up and install as lots of cabling is needed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the purpose of DHCP?

A

To automate the allocation of IP addresses (configuration) to hosts on a network

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Why is DHCP used?

A
  • Reduces the need for expert knowledge when configuring a host
  • Reduces the time required to configure hosts
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How is an IP address configured using DHCP?

A
  1. Host sends request to discover a DHCP server
  2. DHCP server offers configuration to host
  3. Host accepts configuration by echoing the accepted configuration back to the server
  4. DHCP server confirms that configuration has been allocated to host
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does a firewall do?

A

Blocks or allows network traffic, based on predefined or dynamic rules and policies

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is packet filtering?

A

When a firewall monitors outgoing and incoming packets and allowing them to pass or halt based on
- source and destination IP addresses
- protocols / ports

  • Each packet is analysed separately
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is stateful inspection?

A
  • When the firewall monitors the incoming and outgoing traffic from all ongoing TCP connections by:
    – Analysing packet types
    – Inspecting the payload
    – Checking for suspicious activity (eg lots of outgoing data)
  • Connected packets are analysed together
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How long is an IPv4 address and what is it split into?

A
  • 32 bits (e.g. 192.168. 10.150)
  • Network ID and Host ID
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a subnet mask used for?

A

Identifying the Network ID part of an IP address (bitwise AND operation applied to subnet mask and IP address)

17
Q

How long is an IPv6 address and why was it introduced?

A
  • 128 bits (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:73)
  • Introduced to ensure there would be enough addresses for all devices to have a unique one - as IPv4 addresses are running out
18
Q

What is the difference between routable and non-routable IP addresses?

A
  • Routable IP Addresses must be public addresses. They are unique on a global scale, and are allocated by a regional issuing authority.
  • Non-routable IP addresses are assigned internally to devices on a private network. Many devices may have the same private address.
19
Q

What is NAT?

A
  • A process in which a router translates one or more non-routable IP addresses into one or more routable IP addresses and vice versa in order to provide Internet access to the local hosts
  • A single routable IP address can be used for an entire private network
20
Q

What is port forwarding?

A
  • An application of network address translation (NAT) that redirects a communication request for the public IP address using a specific port to a pre-selected private host
  • The port number is unchanged (forwarded)
21
Q

What is the purpose of port forwarding?

A
  • Allows computers outside the LAN to connect to a specific computer (and port) within the LAN
  • Needed if you want to have a (web) server inside the LAN
22
Q

How to determine if two computers are on the same subnet

A

Bitwise AND operation of subnet mask with both computer’s IP addresses. The result of the AND operations are the network IDs. These are then compared.

23
Q

How does routing work?

A
  • Routers are organised into a hierarchy
  • The path to take is selected by each router, determined by the Network ID of the destination IP address
  • Each router decrements the “time to live” of the packets
  • Source and destination MAC addresses changed at each hop
  • Network Address Translation will occur at routers at either end
24
Q

Explain how a router can be been configured so that a Web Server on a LAN can be accessed by computers outside the LAN

A
  • Port forwarding
  • Router must forward all traffic arriving on the HTTP(S) port to the IP address of the Web Server
25
Q

Which of packet filtering and stateful inspection are more advanced?

A

Stateful inspection

26
Q

Give three things that are better about IPv6

A
  • There aren’t enough unique addresses in IPv4 - there are many more IPv6 addresses as they are much longer
  • IPv6 eliminates the need for NAT
  • Automatic host configuration is possible without DHCP
27
Q

Which host ID is reserved as a network identifier?

A

Host ID = all zeros