Packet Forwarding Flashcards
What are the 7 layers of the OSI model.
Layer 7: Application Layer: Provides an interface from the application to the network by supplying a protocol that works with that application.
Layer 6: Presentation Layer: Negotiates the data formats, such as ASCII text, or images like jpeg.
Layer 5: Session Layer: Provides methods to group multiple bidirectional messages into a work flow for easier management and easier blackout of work if that work flow fail.
Layer 4: Transport layer: This layer focuses on data delivery between two host.
Layer 3: Network layer: this layer defines logical addressing, routing and route protocols used to learn routes.
Layer 2: data-Link layer: This layer defines the protocol that transmits the data over a particular type of physical network. For a example PPP, HDLC, Ethernet.
Layer 1: Physical layer: this layer defines the characteristics of the transmission on the wire. Such as pins, use of pins, electrical current, light modulation etc.
What is a MAC address.
A MAC address is a 48- bit address that is divided up into 6 octets in a hexadecimal format.
Example aa:bb:cc:dd:ff:gg
The first 3 octets are the OUI organizational unique identifier number assigned to that manufacturer. The last three octets are random numbers never to be duplicated.
The MAC address is used to forward traffic across a layer two boundary.
What is the broadcast MAC address and what dose it do.
The broadcast MAC address is all FF.FF.FF.FF.FF.FF
It’s used by protocols such as ARP and switches to flood a frame to all host on that network.
Forwarding network traffic across layer 2 uses what information.
A. Source Ip
B. Destination
IP
C. Source MAC address
D. Destination MAC address
Destination MAC address
What type of network device helps reduce the size of the collision domain.
A. Hub
B. Switch
C. Load balancer
D. Router
Switch
Forwarding traffic across a layer 3 uses what information.
A. Source Ip
B. Destination
Ip
C. Source MAC address
D. Destination MAC address
Destination IP
What type of device reduces the size of a broadcast domain.
A. Hub
B. Switch
C. Load balancer
D. Router
router
The _____ is also know as the MAC address table.
A. Adjacency table
B. CAM
C. TCAM
D. Routing table
CAM
What dose a VLAN do.
A virtual LAN (vlan) provides Logical segmentation of a switch by creating multiple broadcast domains on that switch. Network devices in one VLAN Can’t communicate with devices in a different VLAN On a layer 2 level that traffic has to be routed first.
Vlans add how many bits to a packet header, and what fields are add.
Vlans add a 32 bit field.
The tag protical identifier (TPID): this 16 bit field is set to 0x8100 to identify the packet as a 802.1Q packet.
Priority Code Point (PCP): this 3 bit field indicates the layer two QOS markings.
Drop eligible indicator (DEI): this 1 bit field indicates whether the packet can be dropped when there’s congestion.
VLAN identifier (VLAN ID): this 12 bit field specifies the VLAN # associated with the packet.
VLAN ID has only a 12 bit field how many unique vlans dose that allow.
The 12 bits allows for 4094 vlans. Which are.
Vlan 0 reserved for 802.1p traffic and cannot be modified or deleted.
Vlan 1 the default vlan and cannot be modified or deleted.
Vlan 2 to 1001 are normal range Vlans and can be modified, deleted, and add.
Vlan 1002 to 1005 are reserved and cannot be modified or deleted.
Vlan 1006 to 4094 are exited vlans and can be add, deleted, and modified.
What’s the configuration command to create a VLAN and name it
1 move to global configuration mode with the command : config T
2 create the vlan with the command: vlan 10
3 name the vlan: name pc
What’s the command to view vlans and their port assignment.
Show vlan
The optional key words provide the following information.
Show vlan brief: displays only the port to vlan mappings.
Show vlan summary: displays a count of vlans , vlans participating in VTP, and vlans that are in the extended range
Show vlan name:
Show vlan #
List the information for just that vlan.
What’s the configuration command to assign a port to a vlan.
1 move into the desired port # with the command: interface g0/1
Optional to set multiple ports to the same vlan us: interface range g0/1 - 5
2 set the switch port mode with : switchport mode access
3 set what vlan you want the port or port’s to participate in: switchport access vlan 10
What’s the command to configure a trunk.
1 config T
2 interface g0/1
3 switchport mode trunk