Data Link layer Flashcards

1
Q

What device is in the data-link layer(layer 2)?

A

Switch

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

What are the function of a data-link layer?

A

The data-link layer controls access to the physical layer through the Media Access control.

It provides an interface for the network layer.

Helps to encode and decode between frames and signals

Implements error detection

can split data link layer into 2 Sublayer-

  • logically controlled (LLC)- flow control , error control
  • encoding decoding digital/analog , CRC .
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is an Ethernet?

A

Ethernet is a dominant LAN technology cable and is mostly UTP.

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

What is the mechanism used in Shared Ethernet?

A

With the mechanism that any device can transmit at any time, collision detection by carrier sensing and retransmit.

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

What is an ethernet MAC?

A

It uses the CSMA/CD algorithm(carrier sense multiple access/ collision detection).

Carrier sense- listen on bus, only transmit if no other signal is “sensed”.

Multiple Access (MA):
several devices access the same medium

• Collision Detection (CD):
when signal other than own is detected:
• transmit jam signal (so all other devices detect collision)
• both wait random time before re-transmitting

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

Ethernet - topology- shared bus

A

multi-point

-Shared coaxial cable hence shared ethernet.

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

Ethernet star topology

A

point-to-point

Every signal received on one port of hub is sent out
on all other ports

-Modern technology replaces hub with switch and called hub-and-spoke topology.

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

Problems with shared ethernet? Solution?

A
  • Half Duplex- only one device can send at a time either transmit or receive
    e. g internet can send and receive
  • Broadcasting- when one frame is sent , all are sent.
  • Limited Network Size- CSMA/CD limits size of collision domain
  • Solution-
  • logical star topology (switched internet)
  • AP has switch.
  • dedicated full duplex with no collision
  • hub and switch look similar but are not
  • switch is a layer 2 devices, while hub is a layer 1 device.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a switch , how is it different to a hub?

A
• looks like hub
• 16 to 24 ports for UTP cables
• but: circuit no longer shared!
A switch is a layer 2 device
• reads MAC address of frame
• transmits only to destination port by switch forwarding table
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Describe how forwarding tables work in Ethernet switches

A
  • switching table to forward information from source to destination
  • flood frames-

switch completes a table, and keeps in track the MAC address and port.

  • now can have one-to-one connection
  • can transmit and send data at same time because of full-duplex circuits by creating MAC address tables

no collisions.

-dont need CSMA/CD

-switched ethernet is at 95% capacity, no collision
compared to 50% for shared ethernet (and can decrease when more collisions)

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

Basic setup of WLAN?

A

WLAN NICs built in laptop. connects to APs using radio frequencies and APs are connected to wireless LANs

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

Latest WiFi IEEE 802.11 standard?

A

Latest: 802.11ac & ad

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

Advantages of WLAN?

A

WiFi- can eliminate UTP cables, heritage buildings, rented apartments

allow for more flexible network access

-ubiquitous computing, IoT, 4G,etc

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

WLAN radio frequencies?

A

Most WLAN use the 2.4 GHz and/or 5 GHz range

  • high frequencies allow larger bandwidth
  • higher frequencies higher attenuation
  • greater coverage in 2.4 GHz

higher the bandwidth, higher the capacity

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

WLAN channel define?

A

Networks in the same area should not use the same
frequencies
• WLAN spectrum is divided into channels, each
network is set to a different channel

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

WiFi Channel characteristics

A

Channels

  • 2.4 GhZ has 14 channels, 5 GHz has about 160 channels
  • 1,6,11 is non overlapping
  • 2,7,12 are non overlapping
  • 3,8,13 are non overlapping

it can overlap 10-15%.

17
Q

CSMA/CA ?

A

CSMA/CA MAC

All devices shares same medium, channels need to deal with collisions.

change the CSMA/CD algorithm to CSMA/CA

  • collision avoidance
  • devices actively avoiding collisions
18
Q

Why is wlan different to ethernet in terms of collision detection?

Solution to it?

A

AP can detect signal from client, but also other client does so it backs off.

However, when there is weak signal for other client, there is a hidden node problem cant detect sending signal to AP. COLLISION.

  1. 11 using stop-and wait ARQ
  2. ARQ - detecting errors.

Automatic Repeat ReQuest.

AP sends ACK (acknowledgement) after receiving a frame. if did not receive frame, it will re-send transmission.

  1. 802.11 Either can send frames
    - Device can send “Request to Send” (RTS)
    - transmit frame only if AP send “Clear to Send” (CTS) - after acknowledgement to RTS they can send
    - Hidden node problem- receiver needs to ACK every case.

CSMA/CD cant only be applied in bus topology not even switch topology.

19
Q

What if cant sense carrier bc distance?

A

Solution is Exponential Back-Off

CSMA/CA with this

increasing wait time everytime you dont receive an ACK.

Avoids collisions

20
Q

WLAN Topology→

BSS?

A

BSS- (Basic Service Set) No access point

communicate directly with each other

Adhoc network

Infrustructure BSS aka WLAN .

have an AP connected to a backbone router.

AP connects to LAN

1 AP is called BSS

21
Q

ESS

A

BSS can establish ESS( Extended Service Set)- two or more ESS.

different can roam between different APs.

connected to the same router and distribution system

-mobility

Roaming between different ESSs

-not possible in 802.11 protocol

22
Q

Planning depending on coverage?

A

3 non overlapping channels

a bit of overlap is ok 10-15%, due to different channels

If more users,more access points

Less users, less APs

23
Q

Attenuation-

A

even distance is attenuation.

Attenuation diagram