Chapter 1: Packet Forwarding Flashcards

1
Q

How does a switch populate the MAC address table?

A

Source MAC

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

A switch receives a packet with a destination MAC that is not in the switch’s MAC table. What does the switch do with the packet?

A

Forwards the packet out every port except the port it was received on.

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

_______ create multiple broadcast domains on the same switch.

A

VLANs

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

How many bits does the the 802.1Q header add to the frame?

A

32 bits (4 bytes)

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

What 4 fields are part of the 802.1Q header?

A

Tag protocol identifier (TPID)
Priority code point (PCP)
Drop eligible indicator (DEI)
VLAN identifier (VLAN ID)

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

16-bit field set to 0x8100.
Identifies packet as an 802.1Q packet.

A. VLAN Identifier (VLAN ID)
B. Priority Code Point (PCP)
C. Drop Eligible Indicator (DEI)
D. Tag Protocol Identifier (TPID)

A

D. Tag Protocol Identifier (TPID)

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

3-bit field.
Indicates a CoS as part of L2 QoS between switches.

A. VLAN Identifier (VLAN ID)
B. Priority Code Point (PCP)
C. Drop Eligible Indicator (DEI)
D. Tag Protocol Identifier (TPID)

A

B. Priority Code Point (PCP)

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

1-bit field that indicates if the packet can be dropped when bandwidth congestion occurs.

A. VLAN Identifier (VLAN ID)
B. Priority Code Point (PCP)
C. Drop Eligible Indicator (DEI)
D. Tag Protocol Identifier (TPID)

A

C. Drop Eligible Indicator (DEI)

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

12-bit field. IDs VLAN associated with a network packet.

A. VLAN Identifier (VLAN ID)
B. Priority Code Point (PCP)
C. Drop Eligible Indicator (DEI)
D. Tag Protocol Identifier (TPID)

A

A. VLAN Identifier (VLAN ID)

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

The VLAN Identifier has ____ bits.

How many VLANs does this provide?

A
12 bits
4094 VLANs  (2^12)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the normal range VLANs?

A

2-1001

Can be added, deleted, modified.

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

What is the default VLAN?

A

VLAN 1

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

VLAN 0 is reserved for ___ ______?

A

802.1P traffic

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

Can VLAN 0 be modified or deleted?

A

No

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

What VLANs are reserved and cannot be modified or deleted?

A

VLAN 1002-1005

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

What VLANs are in the extended range?

A

VLAN 1006-4094

Can be added, deleted, modified.

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

At what point is the VLAN actually created?

A

When the CLI has been moved back to global config or a different VLAN identifier.

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

How many VLANs is an access port assigned to?

A

1

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

What type of port adds or removes the 802.1Q header to the frame?

A

Trunk

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

By default, what kind of port are switch ports?

A

Access

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

What kind of port carries multiple VLANs?

A

Trunk

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

When are trunk ports used?

A

When multiple VLANs need connectivity between a switch and another switch/router/firewall.

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

What happens when a frame is received on a trunk port?

A
  1. Headers are examined.
  2. Traffic is associated to the proper VLAN.
  3. 802.1Q headers are removed.
  4. Traffic is forwarded to the next port, based on MAC address for that VLAN.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Traffic sent or received on a trunk port without the VLAN tag is associated to what VLAN?

A

Native VLAN

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

What info does ‘show interface trunk’ display?

A
Trunk ports;
Port status;
Association to etherchannel;
Native vlan;
List of vlans allowed on port;
Vlans in forwarding state on switch.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

What VLAN does switch control plane traffic use?

A

VLAN 1

27
Q

Where is the MAC address table stored?

A

CAM (Content Addressable Memory)

28
Q

What maps L3 addresses to L2 addresses?

A

ARP

29
Q

What does the ARP table contain?

A

MAC addresses for devices the host has communicated with AND are on the same IP network segment.

MAC address of next-hop interface.

30
Q

What device responds to an ARP request?

A

The device with the matching IP address.

31
Q

What kind of response is the ARP reply?

A

Unicast

32
Q

A computer on subnet A is sent to a computer on subnet B. What 2 fields in the packer are rewritten when the packet is sent through the router?

A

Source MAC and Destination MAC.

33
Q

What command is used to associate a VLAN with a router subinterface?

A

encapsulation dot1q

34
Q

How is a SVI created?

A

(config)#interface vlan [#]

35
Q

How is a switch port configured to operate as an L3 port?

A

no switchport

36
Q

What is in charge of switching in Process Switching?

A

CPU

37
Q

What type of packets are process switched?

A

Packets that cannot be handled by CEF.

  1. Packet sourced or destined to router (control traffic or routing protocols).
  2. Packets too complex for hardware to handle (packets with IP options).
  3. Packets that require extra info that is unknown (ARP).
38
Q

What does the RIB contain?

A

Routes learned from static routes, directly connected routes, and dynamic routing protocols.

39
Q

What is the default switching mechanism on most Cisco devices?

A

CEF

40
Q

What happens to a packet when it arrives on a router with a TTL of 0?

A

The packet is discarded.

41
Q

What happens when a packet is punted to the CPU for processing?

A
  1. The ip_input process consults the routing table and ARP table to obtain the next-hop
    router’s IP address, outgoing interface, and MAC address.
  2. DMAC of the packet is overwritten with next-hop router’s MAC. SMAC is is overwritten with the egress L3 interface MAC.
  3. TTL decremented.
  4. IP header checksum recalculated.
  5. Packet sent to next-hop.
42
Q

What are the types of CEF adjacencies?

A
Glean
Null
Drop
Discard
Punt
43
Q

Glean Adjacency

A

When a router is directly connected to a segment shared by multiple hosts, the FIB table on the router maintains a prefix for the subnet, rather than an individual prefix for each host.

44
Q

Null Adjacency

A

Packets destined for a Null0 interface are dropped.

45
Q

Drop Adjacency

A

Used to switch packets that cannot be forwarded normally.

Ex. encapsulation error, no valid route, unsupported protocol.

46
Q

Discard Adjacency

A

Used when packets must be discarded because of an access-list or other policy decision.

47
Q

Punt Adjacency

A

Packets are sent to the L3 forwarding engine for processing.

48
Q

Define ARP throttling

A

When FIB entry is in glean state, additional packets to that host are dropped so input queues do not fill.

49
Q

Examples of packets that get punted to the CPU for processing:

A
ARP requests and replies.
Packets requiring response from router.
IP broadcasts that will be relayed as unicast.
Routing protocol updates.
CDP packets.
Packets needing encryption.
Packets triggering NAT.
50
Q

What does TCAM allow for?

A

Matching and evaluating a packet on more than one field.

Inbound/outbound ACLs, QoS, L2/L3 forwarding decisions occur simultaneously.

51
Q

A TCAM search provides what results?

A

0=True
1=False
X=Do not care

52
Q

How are TCAM entries stored?

A

VMR format

Value, Mask, Result

53
Q

Cisco IOS software has 2 components that are part of TCAM operation. What are they and what do they do?

A

Feature Manager (FM): Merges ACEs into entries in the TCAM.

Switching Database Manager (SDM): Configures TCAM partitions to provide enough space for switching functions.

54
Q

Value in VMR format

A

134-bits.

Indicates the fields that should be searched.

Ex. IP address and protocol fields

55
Q

Mask in VMR format

A

134-bits.

Indicates the field that is of interest and that should be queried.

56
Q

Result in VMR format

A

Indicates the action that should be taken with a match on the value and mask.

57
Q

What does Hardware CEF use to make forwarding decisions?

A

TCAM

58
Q

What does Software CEF use to make forwarding decisions?

A

FIB

Adjacency table

59
Q

What is centralized forwarding?

A

A route processor (RP) engine is equipped with a forwarding engine so that it can make all the packet switching decisions.

60
Q

Centralized forwarding steps

A
  1. Packet received on ingress line card.
  2. Packet transmitted to the forwarding engine on the RP.
  3. Forwarding engine exams the packet’s headers and determines the packet will be sent out a port on the egress line card.
  4. Packet is sent to egress line card.
61
Q

CEF is distributed across each line card. A central L3 engine generates the FIB, which is then stored on each line card.

A

Distributed CEF (dCEF)

62
Q

A type of CEF in which a portion of the FIB is downloaded to each line card, resulting in a FIB cache containing entries likely to be used again.

A

Accelerated forwarding (aCEF)

63
Q

What is stateful switchover? (SSO)

A

A redundancy feature that allows a Cisco router with two RPs to synchronize router configuration and control plane state information.

64
Q

Define checkpointing

A

The process of mirroring information between RPs.