SWITCH ARCHITECTURE AND DOMAINS Flashcards

1
Q

What is an ingress and egress port?

A

– Ingress port -describes the port where a frame enters the device.
– Egress port- describes the port that frames use when leaving the device

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

Which of the following does a LAN switch consider during frame forwarding: ingress port, egress port or destination MAC address. Explain

A

• A LAN switch forwards traffic based on the ingress port and the destination MAC address of an Ethernet frame. It maintains a table that is referenced
when forwarding traffic.
• There is only one master switching table that describes a strict association between MAC addresses and ports; therefore, an Ethernet frame with a given destination address always exits the same egress port, regardless of the ingress port it enters.

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

What are the different switch frame forwarding methods?

A
  1. Store and forward
  2. Cut-through
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Describe the store and forward method

A

• The store-and-forward method makes a forwarding decision on a frame after it has received the entire frame and checked the frame for errors using a mathematical error-checking mechanism known as a cyclic redundancy check (CRC).

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

What are the two main characteristics that distinguish store and forward method from the cut through method? Include diagrams

A
  1. Error Checking :
    A switch using store-and-forward switching performs an error check on an incoming frame. After receiving the entire frame on the ingress port, the switch compares the frame-check-sequence (FCS) value in
    the last field of the datagram against its own FCS calculations. If the frame is error-free, the switch forwards the frame. Otherwise the frame is dropped.
  2. Automatic Buffering:
    The ingress port buffering process used by store-and forward switches provides the flexibility to support any mix of Ethernet speeds. For example, handling an incoming frame traveling into a 100 Mb/s Ethernet port that must be sent out a 1 Gb/s interface would require
    using the store-and-forward

*See Netacad for diagrams

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

Describe the cut-through method

A

A cut-through switch begins the forwarding process after the destination MAC address of an incoming frame and the egress port has been determined. I.e. it forwards the frame before it is entirely received

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

Give an advantage and disadvantage of the cut-through method over the store-and-forward

A

An advantage to cut-through switching is the ability of the switch to start forwarding a frame earlier than store-and-forward switching making it faster.
A disadvantage is if there is a high error rate (invalid frames) in the network, cut-through switching can have a negative impact on bandwidth; thus, clogging up
bandwidth with damaged and invalid frames.

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

What are the two primary characteristics of the cut-through method?

A
  1. Rapid Frame Forwarding:
    A switch using the cut-through method can make
    a forwarding decision as soon as it has looked up the destination MAC address of the frame in its MAC address table. The switch does not have to
    wait for the rest of the frame to enter the ingress port before making its forwarding decision.
  2. Fragment Free:
    Fragment free switching is a modified form of cut-through switching in which the switch waits for the collision window (64 bytes) to pass before forwarding the frame. This means each frame will be checked
    into the data field to make sure no fragmentation has occurred
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the advantage of fragment free forwarding

A

Fragment free switching provides better error checking than cut-through, with practically no increase in latency.

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

In what situations is cut-through frame forwarding the best option?

A

The lower latency speed of cut-through switching makes it more appropriate for extremely demanding, high-performance computing (HPC) applications that require process-to-process latencies of 10 µs or less.

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

Briefly describe CAM and how it works

A

CAM (Content Addressable Memory) is special type of memory used by Cisco switches. In the case of ordinary RAM the IOS uses a memory address to get the data stored at this memory location, while with CAM the IOS does the inverse; It uses the data and the CAM returns the address where the data is stored

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

Why is the CAM considered to be faster than the RAM?

A

In CAM, returning the address is done in a single CPU cycle vs. the traditional programming of searching through a table, which will cost many CPU cycles. Thus the CAM is considered to be faster than the RAM since the CAM searches the entire memory in one operation.

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

What is the CAM table and what is its function?

A

-The CAM table, also variably referred to as switch, switching table or MAC table, is used by the Ethernet switch logic to store information such as MAC addresses available on physical ports with their associated VLAN Parameters).
-Switch filtering and forwarding are done with a CAM
table.
-The CAM table is present in all switches for layer 2 switching allowing the switches to facilitate communications between connected nodes at high speed and in full-duplex regardless of how many devices are connected.

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

How is the CAM table used to make Layer 2 forwarding decisions

A

In the case of Layer 2 switching tables, the switch
must find an exact match to a destination MAC address or the switch floods the packet out all ports in the VLAN. A CAM tables provide only two results: 0 (true) or 1 (false).

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

How is a CAM table built? Include a topology and a
CAM table to Illustrate.

A

The table is built by recording the source address and inbound port of all frames. As frames arrive on switch ports, the source MAC addresses are learned and recorded in the CAM table. The port of arrival and the VLAN are both recorded in the table, along with a timestamp.

*See Netacad for illustrations

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

How is the CAM table updated if: a MAC address learned on one switch port has moved to a different port or if a MAC address is already present in the table for the correct arrival port

A

If a MAC address learned on one switch port has moved to a different port, the MAC address and timestamp are recorded for the most recent arrival
port and the previous entry deleted. If a MAC address is already present in the table for the correct arrival port, only its timestamp is updated.

17
Q

What is the difference between the CAM table and ARP table?

A

• A CAM table maps Ethernet hardware addresses to switch ports. There is only one CAM table found in the switch.
• An ARP table maps IP addresses to Ethernet hardware addresses. Each host (TCP/IP client) connected to the network has its own ARP Table.

18
Q

What is a collision domain?

A

In hub-based Ethernet segments, network devices compete for the medium, because devices must take turns when transmitting. The network segments that share the same bandwidth between devices are known as collision domains.

19
Q

When do collisions occur?

A

When two or more devices within that the same collision domain try to communicate at the same time, a collision will occur.

20
Q

Discuss collision domains in both half and full duplex

A

If an Ethernet switch port is operating in half duplex, each segment is in its own collision domain. However, Ethernet switch ports operating in full duplex eliminate collisions; therefore, there is no collision domain.

21
Q

What will a switch do if: a)both devices can operate in full duplex and b) only one can operate in full duplex

A

By default, Ethernet switch ports will autonegotiate full duplex when the adjacent device can also operate in full duplex. Their highest common bandwidth is also used
If the switch port is connected to a device operating in half-duplex, such as a legacy hub, then
the switch port will operate in half duplex. In the case of half duplex, the switch port will be part of a collision domain.

22
Q

What is a broadcast domain?

A

A collection of interconnected switches forms a single broadcast domain. Only a network layer device, such as a router, can divide a Layer 2 broadcast domain. Routers are used to segment broadcast domains, but will also segment a collision domain

23
Q

What happens when a switch receives a broadcast frame?

A

When a switch receives a broadcast frame, it forwards the frame out each of its ports, except the ingress port where the broadcast frame was received. Each device connected to the switch receives a copy of the broadcast frame and processes it

24
Q

What are the advantages of broadcast domains?

A

• Broadcasts are sometimes necessary for initially locating other devices and network services.
• Fast and reliable communication for offices in different locations.

25
Q

What are the disadvantages of broadcast domains?

A

• They reduce network efficiency as network bandwidth is used to propagate the broadcast traffic.
• Too many broadcasts and a heavy traffic load on a network can result in congestion, which slows down network performance.
• E.g. tendency to drop Web data signals after reaching network router interface borders.

26
Q

Illustrate broadcast and collision domains

A

See https://elearning.strathmore.edu/pluginfile.php/240105/mod_resource/content/2/1.3%20-%20Switch%20Architecture%20%20Domains.pdf

slide 9 for illustration

27
Q

Explain some ways in which switches can alleviate congestion

A

By default, interconnected switch ports attempt to establish a link in full duplex, therefore eliminating
collision domains.
Each full duplex port of the switch provides the full bandwidth to the device or devices that are connected to that port.
Switches use a table of MAC addresses to determine the segment to which the frame is to be sent, and can lessen or eliminate collisions entirely.

28
Q

What are some important characteristics of switches for alleviating Network Congestion

A

• High port density - Switches have high-port densities: 24- and 48-port switches are often just a single rack unit and operate at speeds of 100 Mb/s, 1 Gb/s, and 10 Gb/s. Large enterprise switches may support many
hundreds of ports.
• Large frame buffers - The ability to store more received frames before having to start dropping them is useful, particularly when there may be congested ports to servers or other parts of the network.
• Port speed - Depending on the cost of a switch, it may be possible to support a mixture of speeds. Ports of 100 Mb/s, and 1 or 10 Gb/s are common (100 Gb/s is also possible).
• Fast internal switching - Having fast internal forwarding capabilities allows high performance. The method that is used may be a fast internal bus or shared memory, which affects the overall performance of the switch.
• Low per-port cost - Switches provide high-port density at a lower cost.

29
Q

When two switches with 3 clients each are connected to each other, what does that increase, the broadcast domain or the collision domain?

A

When two switches are connected together, the broadcast domain is increased

30
Q

Can a hub create a collision domain? Why?

A

No. The reason being, it neither breaks a collision domain nor a broadcast domain, i.e a hub is neither a collision domain separator nor a broadcast domain separator. All the devices connected to a hub are in a single collision and single broadcast domain. Remember, hubs do not segment a network, they just connect network segments.