Communications and Network Security Flashcards

1
Q

What does OSI stand for?

A

Open Systems Interconnection - created by ISO (International standard for organisation)

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

What is the most widely used protocol?

A

TCP/IP protocol (based on TCP/IP model)

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

Explain a protocol?

A

A protocol is the way in which two computers are able to communication over a network (think of it like a path between houses)

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

What is the main goal of the OSI?

A

To support data exchange and network communications. Also to ensure different products can communicate across vendors - i.e CISCO switch can communicate with netgear router.

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

Name the Seven layers of the OSI?

A

All People Seem To Need Domino’s Pizza

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

What moves across the physical wire?

A

Electrons over copper
Photons over fiber
Radio signals through the air (wifi)

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

What part of the OSI model does each layer communicate with?

A

Up, down and to it’s peer layer (for authentication)

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

Explain encapsulation/descaps

A

Employed by protocols
The addition of a header or footer to direct the data
They combine to become the payload
They contain instructions so the peer layers can communicate

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

At what point is the message converted into electrical impulses that represent bits?

A

In the physical layer so that it can be transferred over the wire

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

What does the physical layer do when it receives the message?

A

converts the message into bits. Before converting it to frames at the data link layer

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

Name the different types of message at each layer?

A
Data (session, presentation, application)
Segement/datagram (transport layer)
packet (network layer)
Frame (data link layer)
Bits (physical)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

The message in a network is a segment when?

A

It uses TCP protocols

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

The message in a network is a datagram when?

A

It uses UDP protocols

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

What are the two networking model and which one do all networks use?

A

OSI and TCP/IP - all networks support TCP/IP stack but OSI is used as a benchmark.

They are standards on how systems are built and networks communicate. It means we can all talk together and use the same protocols etc.

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

Name the layers of the TCP/IP model?

A

All twats need domino’s pizza

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

What layer does a hub operate at?

A

Hubs operate at layer 1 because they are simple and stupid - they only repeat electric signals. Similar to a repeater on layer 1 too.

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

What is the first thing that Ron must do before he tried to buy coffee off Starbucks?

A
  • Send out ARP request for DNS server and then send out a DNS request to get the IP address of website
  • Do the same for the router so that he can go outside
  • then send the message to the switch > router > switch > Web server
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What happens at the application level?

A

You attempt to access a website for example, or attempt to send an email. They are protocols used by web browsers for example. Includes HTTPs/

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

What happens at layer 4 (transport layer)?

A

This is where you outline and add headers that describe how you are going to send the data and which ports you are going to use - i.e HTTPS and port 443 - so that the other layers know

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

When your browser tries to access a website and it adds a HTTP header to the data - what is this called?

A

Encapsulation

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

Each layer adds a header to the data/segment/frame/packets/bits - what is this called?

A

Encapsulation

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

What is the benefit of adding layer 3 headings?

A

It add’s destination and source IP addresses and tells the router where to direct the message (this message is a packet)

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

What is the benefit of adding layer 2 headings?

A

It gives instructions to our switch (this message is a frame) - where to send the message

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

Once you encapsulate the data and send your message - what type of message does the switch (on your side) receive at layer 2?

A

It receives a frame, which only contains the MAC address data (the rest is encapsulated and can’t be read). The Switch see’s this information by decapsulating the message and uses the MAC address to forward on the message.

This will typically be the MAC address of the router, as it needs to be send outside the network.

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

How does the router learn the IP address of a website?

A

It does this through ARP - and then encapsulates this information into a new mac address header and footer. The original footer would have contained IP/MAC adderesses of the sender and router.

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

What happens when the server receives the frame from a switch?

A

It can read all the layers and it checks each one to make sure it contains his/her MAC address, IP address, and see’s that it’s using TCP on port 443 (for example). It then passes it up to the application level and it can see that it’s HTTP and for the browser.

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

What are the two protocols that you can choose when using the transport layer?

A

TCP, UDP

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

What parts of the OSI model are employed more when watching youtube, rather then sending emails?

A

Application, presentation and session layers

29
Q

What type of request would be coming from the application layer when trying to stream something like youtube?

A

It would be a data request from your browser, in the form of a ‘get’ request - i.e get me that data

30
Q

What are the two main things that the presentation layer is concerned with?

A

Data format - this will be file types such as .PDF. they are common formats that your computer knows how to open.
Data encryption - SSL would sit here.

31
Q

What is the data format (presentation layer) for our web browser?

A

HTML! Your presentation layer puts the data in a .HTML file.

For example, if youtube send you the homepage of youtube - it will send you a homepage.html file

32
Q

What does the session layer do

A

It opens up the session and starts the conversation between source and destination. Ensures authentication and a smooth communication. It happens whilst everything else is going through the other layers. Session layer has one job - keep the conversation going throughout (makes it quicker and easier)

33
Q

give a working example of a session layer communication?

A

Between your application and the web server of a website

34
Q

Examples of session layer protocols?

A

L2TP - layer 2 tunnelling protocl (VPN)
RTCP - remote transport control (phone calls)
H.2ys - for video calls
SOCKS - this sets up proxies

35
Q

If we refer to the TCP/IP model - what does the application layer do?

A

Gets the data ready, encrypts it, formats it, opens up a session.

application layer is quite relevant for programmers (not networkers)

36
Q

What is the transport layer concerned with?

A

How it is going to get the data to the other person!

It’s like sending a package - we’ve boxed it up and secured it, but how will it get there through the lower levels?

To ‘transport’ it - you can choose out of the two main protocols; TCP/UDP

37
Q

TCP |

A

Transmission control protocol
More reliable
has a verification process to make sure your data has been received
Also requires a three way handshake

38
Q

what is the TCP three way handshake?

A

It sets up the connection before you start exchanging the data.

Youtube trying to send data - Send a synchronisation message - Syn
You send a synchronisation acknowledgement message - SyncAck
Youtube send an acknowledgement message - Ack

Once this has been done you can exchange data

39
Q

UDP

A

Doesn’t wait for verification - it just sends the message back to you

40
Q

Why would your communication with youtube switch from TCP to UDP

A

Youtube will send a .HTML file through TCP as it will send the actual home page. But videos will come through as UDP.

41
Q

How do you communication with youtube?

A

you need to access their server (which is obviously publicly available)

42
Q

What are ports?

A

They are used by protocols.

How do you tell a server that you want to access SSH rather than watch a video? You do this via port numbers!

You know HTTPS uses port 443. So when you type in https//:youtube ….. you are saying that you want to access the youtube server via port 443. It could also look like this 174.37.192: 443

The ports allow us to run multiple services on one server.

43
Q

What is wireshark?

A

It captures your network traffic

44
Q

Should one server host one service?

A

No - it can be a web server, RDP server, SSH, FTP

You just need to open up other ports on your server!

45
Q

Are ports both TCP and UDP?

A

Some use both, but others only use one or the other.

46
Q

How many ports in general and how many ‘well known’ ports?

A

0 - 6k

0 - 1k ish

47
Q

Name some well known ports?

A
22 - SSH
23 - Tel net
25 - SMTP 
80 - HTTP
443 - HTTPS (accessing web server for youtube)
48
Q

Which port will the application send you data back on?

A

You can tell the application which port it should send you application data on - i.e port 5709

you will be receiving lots of data all at once

49
Q

What;s an ephemeral port?

A

It’s a temporary port for youtube or other applications to send you data back on

50
Q

What does your transport layer do?

A

It determines which ports and protocols you will be using and then adds this on as a header before sending it to the network layer (which adds on the IP address header) - it also adds in your source IP address so it knows where to send the data back to

51
Q

What types of devices might be connected to you switch (working environment?)

A

Computer, phones, WAP (for wifi), web server, router

52
Q

Why should you never connect a switch to another switch within your network?

A

It’s a single point of failure!

53
Q

How do you become redundant in your network design?

A

a) connect all of your switches to your router (but that isn’t good for devices communicating on your own network)
b) connect all fo your switches to a multi-layer swtich.

54
Q

What does a multi-layer switch do?

A

It sits at layer 3 (instead of layer 2). It can handle IP addresses and MAC addresses!! Also ensures redundancy if any of your switches go down.

It will connect directly to your router.

55
Q

Why don’t businesses design their network without single points of failure?

A

It can be really expensive! The more devices you have, the more expensive it is. You need to take baby steps.

56
Q

When you add in a multi-layer switch - what is this network architecture called?

A

2-tier architecture. You switches and devices sit at access layer/tier one and your multi-layer switch/router sit at distribution layer/tier 2.

It’s a distribution layer because everything goes through the ‘distribution switch’ - it needs to be able to handle all of the traffic.

57
Q

What devices sit at layer 1?

A

Hub, repeaters, extenders, buffers

58
Q

What devices sit at layer 2?

A

Switch and bridges

59
Q

What does the network layer packet header include?

A

Source and IP address

60
Q

Which layer manages traffic control?

A

The network layer - it looks at error detection and node traffic data

61
Q

What are TCP/IP protocols?

A

Protocols that are widely used within the TCP/IP model

62
Q

What devices sit at layer 3?

A

Routers and bridge routers

63
Q

Can you use non IP protocols (at the network layer)?

A

Yes you can, but they are for special purpose networks. Much more bespoke - IPX, Apple Talk, NetBEUI

64
Q

What is a Brouter?

A

It sits at layer 3 and attempts to route first, but if that fails it defaults to bridging at layer 2 (non-routable protocols)

65
Q

At the session layer - how do communication sessions operate?

A

Simplex - One-way communication
Half Duplex - Two way comms - but can only send data one way at a time
Full Duplex - two way comms - data can be sent both ways

66
Q

Name some of the format standards that operate within the application layer?

A

File formats:

ASCII - represent text in computers (binary) 10100110
TIFF - for raster graphics images 
JPEG - contains high quality images 
MPEG -  digital audio / movie format 
MIDI - shares musical information
67
Q

At what level does your web browser or other application directly communicate with protocols?

A

Application layer

68
Q

Does the application itself sit in layer 7?

A

No - just the protocols and services used to transmit files, messages etc.

69
Q

What other devices sit at layer 7?

A

Application layer gateway (protocol translation tool)

Application layer firewall