1.3.3 Networks (TCP/IP Stack and Packets) Flashcards

1
Q

What are the four layers in the TCP/IP stack?

A

Application Layer
Transport Layer
Network Layer
Link Layer

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

What does the application layer do?

A

It specifies what protocol needs to be used to relate the application being sent.

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

What does the transport layer do? [3]

A
  • Uses TCP to establish an end-to-end connection between the source and recipient computer.
  • It splits data into packets, and labels them with their packet number, the total number of packets and the port number being used for communication.
  • If any packets get lost, the transport layer requests retransmissions of these lost packets.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does the network layer do? [3]

A
  • It adds the source and destination IP addresses.
  • Routers operate on this layer. The router uses the IP addresses to forward the packets.
  • The socket addresses are used to specify which device the packets must be sent to, and the application being used on that device.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a socket address?

A

The combination of the IP address and the port number.

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

What is the link layer?

A
  • The connection between the network devices. It adds the MAC address identifying the Network Interface Cards of the source and destination computers.
  • For devices on the same network, the destination MAC is the address of the recipient computer. Otherwise, it is the MAC address of the router.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Some data has reached its destination. What happens moving up the TCP/IP stack?

A

Link: Removes the MAC address
Network: Removes the IP addresses
Transport: Removes the port number and reassembles the packets
Application: Presents the data to the recipient, in the form it was requested in.

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

Who typically owns infrastructure used in WANs?

A

Third parties

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

What is the TCP/IP stack?

A

A stack of networking protocols which work together, used in sending and receiving data.

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

What is the Domain Name System?

A

The system used to name and organise internet resources.

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

How does the DNS work?

A

It is a hierarchy. Each smaller domain is separated from the larger domain by a full stop.

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

Give an example of a TLD (top level domain)

A

.com

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

Give an example of a 2LD (second level domain)

A

.co.uk

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

What are packets?

A

Segments of data.

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

What three parts can a packet be split up into?

A
  • Header
  • Payload
  • Trailer
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does the header of a packet contain?

A
  • Sender and recipient IP addresses
  • Protocol being used (allows recipient to understand how to interpret packet)
  • Order of packets
  • Time to Live (tells packet when to expire, so it doesnt travel forever)
17
Q

What does the payload of a packet contain?

A

Raw data to be transmitted

18
Q

What does the trailer of a packet contain?

A

Checksum, or cyclic redundancy check (detects whether any errors have occured during transmission)

19
Q

What are the two methods used in networks to exchange data?

A

Packet switching
Circuit Switching

20
Q

What is packet switching?

A

A method of communication, where data is communicated using packets across a network using the most efficient route. This route can vary for each packet.

21
Q

Packet Switching Advantages

A
  • Multiple methods to ensure data arrives intact (eg checksums)
  • Multiple routes can be used between paths. If one path breaks, another can be used.
  • Packets can be transferred over very large networks, allowing global communication.
22
Q

Packet Switching Disadvantages

A
  • Time is spent deconstructing and reconstructing the data packets
  • Must wait for all packets to arrive before the data can be received.
23
Q

What is Circuit Switching?

A

A method of communication, where a direct link is created between two devices.
This direct link is maintained for the duration of the entire conversation between devices.

24
Q

What is a requirement for circuit switching?

A

The two devices must be able to transfer and receive data at the same rate.

25
Q

Advantages of circuit switching

A
  • Data arrives in a logical order, which results in a quicker reconstruction of the data
  • Two users can hold a call without delay in speech
26
Q

Disadvantages of circuit switching

A
  • Bandwidth is wasted during periods of time in which no data is being sent.
  • Devices must transfer and receive data at the same rate.
  • Ties up sections of the network which cannot be used by others until transmission has been completed.
27
Q

What is an IP address?

A
  • A numerical address made of 4 numbers, each between 0 and 255.
  • It uniquely identifies a device on a network.
  • It is a logical identifier.