Quiz 5 Flashcards

(31 cards)

1
Q

What is the basic operation of a switch?

A

A switch forwards frames based on MAC addresses by looking them up in a forwarding table.

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

How does a switch differ from hubs and repeaters?

A

Hubs and repeaters operate at Layer 1 and forward all signals blindly; switches operate at Layer 2 and forward selectively using MAC addresses.

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

What is the difference between full-duplex and half-duplex communication?

A

Full-duplex allows simultaneous sending and receiving; half-duplex allows only one direction at a time.

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

Why are switched networks more efficient than shared media networks?

A

They eliminate collisions

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

How does the backward learning algorithm work in switches?

A

The switch learns which MAC addresses are reachable via which ports by observing the source address of incoming frames.

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

What is the problem of forwarding loops in switched networks?

A

Frames can circulate endlessly

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

How does the Spanning Tree Protocol prevent loops?

A

It disables certain ports to create a loop-free logical topology while maintaining overall connectivity.

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

What are the steps of the Spanning Tree Algorithm?

A
  1. Root Election: The switch with the lowest identifier (bridge ID) is elected as the root of the spanning tree
  2. Path Selection: Each non-root switch selects a single port to forward frames toward the root (its root port)
  3. Designated Ports: For each network segment, one port is selected as the designated port to forward frames away from
    the root
  4. Blocking: All other ports are put in blocking state and do not forward frames
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the purpose of VLANs?

A

VLANs divide a physical network into logical segments to reduce broadcast domains and increase manageability.

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

How does VLAN tagging work?

A

A VLAN tag is inserted into Ethernet frames to identify their VLAN; switches use this tag for forwarding decisions.

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

What are the benefits of VLANs?

A

Improved security

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

What are some limitations of switches?

A

Limited scalability

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

What are the key limitations of the network layer that the transport layer addresses?

A

No guarantees of delivery

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

What does it mean that TCP is a byte-oriented protocol?

A

TCP assigns sequence numbers to individual bytes

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

How does TCP use sequence numbers?

A

Each byte in the stream is numbered; segments carry the sequence number of the first byte they contain.

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

How does TCP use acknowledgment numbers?

A

The ACK number indicates the next expected byte

17
Q

How can you calculate the sequence number for a TCP segment?

A

It equals the number of the first byte of data in that segment.

18
Q

How can you calculate the acknowledgment number for a TCP segment?

A

It is one more than the last byte successfully received.

19
Q

What is the purpose of the Source and Destination Port fields in the TCP header?

A

To identify the sending and receiving applications.

20
Q

What is the purpose of the Window Size field in the TCP header?

A

It indicates how much data the receiver is willing to accept

21
Q

What does the Checksum field in the TCP header do?

A

It helps detect transmission errors.

22
Q

What are the six TCP control flags?

A
  • SYN (Synchronize): Initiates a connection
  • ACK (Acknowledgment): Acknowledges received data
  • FIN (Finish): Initiates the connection termination
  • RST (Reset): Abruptly terminates the connection
  • PSH (Push): Pushes data to the application without buffering
  • URG (Urgent): Indicates urgent data
23
Q

What is the function of the SYN flag?

A

Initiates a TCP connection.

24
Q

What is the function of the ACK flag?

A

Acknowledges received data.

25
What is the function of the FIN flag?
Gracefully terminates a TCP connection.
26
What is the function of the RST flag?
Abruptly resets a connection.
27
What is the function of the PSH flag?
Tells the receiver to pass data to the application immediately.
28
What is the function of the URG flag?
Indicates urgent data.
29
What does the Urgent Pointer field do?
Points to the end of urgent data if the URG flag is set.
30
What does the Data Offset field in the TCP header specify?
The size of the TCP header.
31
What happens when a receiver gets a TCP segment with SEQ = 100 and 50 bytes of data?
It sends an ACK with acknowledgment number 150