contents

Saturday, April 15, 2017

RAPID SPANNING TREE PROTOCOL

Rapid Spanning Tree Protocol (RSTP)

One big disadvantage of STP is the low convergence which is very important in switched network. To overcome this problem, in 2001, the IEEE with document 802.1w introduced an evolution of the Spanning Tree Protocol: Rapid Spanning Tree Protocol (RSTP), which significantly reduces the convergence time after a topology change occurs in the network. While STP can take 30 to 50 seconds to transit from a blocking state to a forwarding state, RSTP is typically able to respond less than 10 seconds of a physical link failure.

RSTP works by adding an alternative port and a backup port compared to STP. These ports are allowed to immediately enter the forwarding state rather than passively wait for the network to converge.

RSTP bridge port roles:

* Root port – A forwarding port that is the closest to the root bridge in terms of path cost
* Designated port – A forwarding port for every LAN segment
* Alternate port – A best alternate path to the root bridge. This path is different than using the root port. The alternative port moves to the forwarding state if there is a failure on the designated port for the segment.
* Backup port – A backup/redundant path to a segment where another bridge port already connects. The backup port applies only when a single switch has two links to the same segment (collision domain). To have two links to the same collision domain, the switch must be attached to a hub.
* Disabled port – Not strictly part of STP, a network administrator can manually disable a port

Now let’s see an example of three switches below:

RSTP_port_roles_initial.jpg

 

 

Suppose all the switches have the same bridge priority so the switch with lowest MAC address will become root bridge -> Sw1 is the root bridge and therefore all of its ports will be Designated ports (forwarding).

Two ports fa0/0 on Sw2 & Sw3 are closest to the root bridge (in terms of path cost) so they will become root ports.

On the segment between Sw2 and Sw3, because Sw2 has lower MAC than Sw3 so it will advertise better BPDU on this segment -> fa0/1 of Sw2 will be Designated port and fa0/1 of Sw3 will be Alternative port.

RSTP_port_roles_middle.jpg

Now for the two ports connecting to the hub, we know that there will have only one Designated port for each segment (notice that the two ports fa0/2 & fa0/3 of Sw2 are on the same segment as they are connected to a hub). The other port will be Backup port according to the definition of Backup port above. But how does Sw2 select its Designated and Backup port? The decision process involves the following parameters inside the BPDU:

* Lowest path cost to the Root
* Lowest Sender Bridge ID (BID)
* Lowest Port ID

Well, both fa0/2 & fa0/3 of Sw2 has the same “path cost to the root” and “sender bridge ID” so the third parameter “lowest port ID” will be used. Because fa0/2 is inferior to fa0/3, Sw2 will select fa0/2 as its Designated port.

 

RSTP_port_roles.jpg

Note: Alternative Port and Backup Port are in discarding state.

RSTP Port States:

There are only three port states left in RSTP that correspond to the three possible operational states. The 802.1D disabled, blocking, and listening states are merged into the 802.1w discarding state.

* Discarding – the port does not forward frames, process received frames, or learn MAC addresses – but it does listen for BPDUs (like the STP blocking state)
* Learning – receives and transmits BPDUs and learns MAC addresses but does not yet forward frames (same as STP).
* Forwarding – receives and sends data, normal operation, learns MAC address, receives and transmits BPDUs (same as STP).

STP State (802.1d) RSTP State (802.1w)
Blocking Discarding
Listening Discarding
Learning Learning
Forwarding Forwarding
Disabled Discarding

Although the learning state is also used in RSTP but it only takes place for a short time as compared to STP. RSTP converges with all ports either in forwarding state or discarding state.

RSTP Quick Summary:

RSTP provides faster convergence than 802.1D STP when topology changes occur.
* RSTP defines three port states: discarding, learning, and forwarding.
* RSTP defines five port roles: root, designated, alternate, backup, and disabled.

Note: RSTP is backward compatible with legacy STP 802.1D. If a RSTP enabled port receives a (legacy) 802.1d BPDU, it will automatically configure itself to behave like a legacy port. It sends and receives 802.1d BPDUs only.

Sunday, April 2, 2017

OSI Quiz






Question 1: Computer Network is?

Collection of hardware components and computers
Interconnected by communication channels
Sharing of resources and information
All


Question 2: What is a Firewall in Computer Network?

The physical boundary of Network
An operating System of Computer Network
A system designed to prevent unauthorized access
A web browsing Software


Question 3:How many layers does OSI Reference Model has?

4
5
6
7


Question 4: DHCP is the abbreviation of?

Dynamic Host Control Protocol
Dynamic Host Configuration Protocol
Dynamic Hyper Control Protocol
Dynamic Hyper Configuration Protocol


Question 5: IPV4 Address is?

8 bit
16 bit
32 bit
64 bit


Question 6: DNS is the abbreviation of?

Dynamic Name System
Dynamic Network System
Domain Name System
Domain Network Service


Question 7:What is the meaning of Bandwidth in Network?

Transmission capacity of a communication channels
Connected Computers in the Network
Class of IP used in Network
None


Question 8: ADSL is the abbreviation of?

Asymmetric Dual Subscriber Line
Asymmetric Digital System Line
Asymmetric Dual System Line
Asymmetric Digital Subscriber Line


Question 9: What is the use of Bridge in Network?

To connect LANs
To separate LANs
To control Network Speed
All


Question 10: Router operates in which layer of OSI Reference Model

Layer 1 (Physical Layer)
Layer 3 (Network Layer)
Layer 4 (Transport Layer)
Layer 7 (Application Layer)


Question 11: Bits are packaged into frames at which layer of the OSI model?

data link
transport
physical
presentation


Question 12: ARP stands for?

array redundan tprotocol
address redundant protocol
array resolution protocol
address resolution protocol


Question 13:Which of the following are considered to be the upper layer protocols??

presentation and session
application and presentation
application, presentation, and session
application, presentation, session, and transpor


Question 14: Error detection and recovery takes place at which layer??

transport
presentation
data link
application


Question 15: IP is implemented at which OSI model layer?

transport
session
data linkt
network


Question 16: Packets are found at which layer?

data link
transport
network
session


Question 17:What does OSI stand for?

International Standards Organization
Open System Interconnection
Operating Standard Information
Operating System Interconnection


Question 18: Repeaters and hubs operate at which layer?

network
data link
transport
physical


Question 19: Bridges operate at which layer of the OSI model?

physical
data link
transport
network


Question 20: Which layer is responsible for packet sequencing, acknowledgments, and requests for retransmission

The MAC sublayer of the data link layer
transport
physical
application