Slide 5 Flashcards

1
Q

What does that Data Link Layer does ?

A

The data link layer deals with data transfer between devices belonging to the same subnet.
It encapsulates datagrams into frames.

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

Data Link Layer Services

A
  • Framing, Link access;
  • Reliable delivery between adjacent nodes;
  • Error detection;
  • Error correction;
  • Flow control;
  • Half-duplex and full-duplex links.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

MAC address

A

The MAC address uses (48 bits) and is like the “Cartão de cidadão” while the IP being the postal address.
- MAC flat address -> portability:
- I can move network interface card from one LAN to another.
- IP hierarchical address is NOT portable:
- IP address depends on the subnet to which the node is currently attached.
Broadcast address = FF-FF-FF-FF-FF-FF

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

How are MAC addresses allocated ?

A

The manufacturer buys a portion of MAC address space (to assure uniqueness);
The first 3 bytes are the organisation identifier while the last 3 are the NIC aka the individual identifier.

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

What is the ARP ?

A

The address resolution protocol (ARP), each node keeps an ARP table which contain the <IP address; MAC address; TTL> in this case TTL is a time (e.g. 20 minutes) and not a number of hops.
ARP is plug and play, it works without the intervention from net admin.

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

ARP: A wants to find B address

A

If B’s MAC is not in A’s ARP table, A needs to broadcast to FF:FF:FF:FF:FF:FF B’s IP address, when the broadcast reaches B, and it will reply with its own MAC address.

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

Error detection: Parity Bit

A

É uma forma antiga de detetar erros.
No fim da transmissão, era acrescentado um bit que dependia do número de bits totais da mensagem:

Se o número de bits fosse par, colocava-se um 0;
Se o número de bits fosse ímpar, colocava-se um 1.
Não é uma forma muito boa pois não deteta um número par de erros.

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

Bus Topology

A

Bus topology was popular in mid 1990s, all nodes where in the same collision domain so they could collide with each other.

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

Start Topology

A

Consists on an active switch in center and each host runs a separate protocol through the switch. The nodes do not collide with each other.

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

Ethernet Frame Structure

A
  • Preamble;
  • Addresses;
  • Type;
  • Data;
  • CRC.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the preamble in Ethernet frames ?

A

The preamble are 7 bytes with pattern 10101010 followed by one byte with pattern 10101011, used to synchronise receiver and sender clock rates.

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

What are the addresses in Ethernet frames ?

A

With 6 bytes, if the frame arrives to the wrong MAC address it is discarded.

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

What is the Type in Ethernet frames ?

A

The type indicates the higher layer protocol, normally IP but could be Novell IPX or AppleTalk.

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

What is the data in Ethernet frames ?

A

Its the MTU (maximum transmission unit) ranging from 46 to 1500 bytes.

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

What is the CRC in Ethernet frames ?

A

It’s used to check if erros happened during the transmission.

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

Characteristics of the Ethernet ?

A
  • Connectionless: No handshaking between sending and receiving NICs.
  • Unreliable: Receiving NIC doesn’t send ACKs or NACKs to sending NIC.
    The error protocol is the unspotted CSMA/CD with exponential binary backoff.
17
Q

What is a Hub ?

A

Hubs are physical-layer (dumb) repeaters, the bits incoming from one link go out in all other links at the same rate, collisions can happen.

18
Q
A