Networking Design For Organization
Networking Design For Organization
net/publication/348163172
CITATIONS READS
0 4,050
1 author:
SEE PROFILE
All content following this page was uploaded by Mohamed Mahmoud Ashour on 17 May 2021.
Design of Campus
Communication Network
BSc Comm. & Computers Eng.
Team
Omar Mokhtar Mohamed Ahmed Mahmoud
Mohamed Mahmoud Hussien
Mahmoud Ahmed Gaber Akram Mohamed Aly
Thabet Attiya
Ahmed Wed Abdul-Azim Gamal Hussien Ebrahiem
Attiya Mohamed
Ahmed Khaled Mohamed Mohamed Aly Al-saied Aly
Esmaiel
29 March 2021
Design of Campus Communication Network
Abstract
In this project a computer network made up of an interconnection of local area
networks (LANs) within a limited geographical area.
Through a blend of theory and the VMware (TM) program, we develop the
backbone necessary for our project to work in high demand areas of network
support, user support, and security.
A campus area network is larger than a local area network but smaller than a
metropolitan area network (MAN) or wide area network (WAN).
Then, we design a real Campus network and make it Suitable for our
capabilities to move to GNS3 to emulate, configure, test and troubleshoot the
network.
1|P ag e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Table of Contents
Abstract .................................................. 1
2|P ag e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Chapter4: EtherChannel....................................... 42
What is the EtherChannel?.................................... 42
Benefits of EtherChannel ..................................... 43
EtherChannel Requirements ................................... 45
EtherChannel Load-Balancing .................................. 46
Configuration ............................................ 47
EtherChannel – Manual Configuration .......................... 53
EtherChannel – Dynamic Configuration .......................... 54
EthernChannel - PAgP ....................................... 55
EtherChannel - LACP ........................................ 56
Troubleshooting EtherChannel ................................. 57
Appendices ............................................... 89
References ............................................... 90
3|P ag e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Chapter 1:
Introduction
The increasing demand for high performance network has challenged network
researchers to design network architectures capable of delivering a high
quality of service to end users.
Many network design tools and methodologies in use today resemble the
connect-the-dots game that some of us played as children.
These tools let you place internetworking devices on a palette and connect
them with local-area network (LAN) or wide-area network (WAN) media.
The problem with this methodology is that it skips the steps of analyzing a
customer's requirements and selecting devices and media based on those
requirements.
4|P ag e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Packet Tracer
5|P ag e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
VMware
To help you and your organization evaluate Windows 8, master the Metro UI
and test your applications, VMware Workstation 9 is optimized for running
Windows 8 virtual machines and running on Windows 8 PCs. Easy Install
simplifies the task of creating Windows 8 virtual machines, Unity mode will
intelligently scale windows with Metro applications and multi-touch support
will ensure you get the true Windows 8 experience in a virtual machine.
Workstation’s new web interface allows you to access your virtual machines
running in Workstation or vSphere on a tablet, smart phone, PC or any device
with a modern browser. No plugins necessary. Now you can power on, off, or
suspend your virtual machines and interact with them from almost anywhere.
Create virtual machines that are encrypted, block USB devices, require a
runtime password, and another password to change virtual machine settings.
Once set, send the virtual machine
6|P ag e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
GNS3
When you create topologies in GNS3 using the all-in-one software GUI client,
the devices created need to be hosted and run by a server process. You have
a few options for the server part of the software:
The local GNS3 server runs locally on the same PC where you installed the
GNS3 all-in-one software. If for example you are using a Windows PC, both
the GNS3 GUI and the local GNS3 server are running as processes in
Windows.
Emulation: GNS3 mimics or emulates the hardware of a device and you run
actual images on the virtual device. For example, you could copy the Cisco
IOS from a real, physical Cisco router and run that on a virtual, emulated
Cisco router in GNS3.
7|P ag e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
8|P ag e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Then, we decrease the number of PCs and remove the Clouds because of
appropriate capabilities. And this is the final topology which is Configured and
tested.
9|P ag e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Chapter2:
Multilayer Switching
With the increasing diversity of network applications and the implementation
of some converted networks, the multilayer switch is thriving in data centers
and networks. It is regarded as a technology to enhance the network routing
performance on LANs.
The multilayer switch (MLS) has 10gbe switch and Gigabit Ethernet switch. It is
a network device which enables operation at multiple layers of the OSI model.
By the way, the OSI model is a reference model for describing network
communications. It has seven layers, including the physical layer (layer 1), data
link layer (layer 2), network layer (layer 3) and so on. The multilayer switch
performs functions up to almost application Layer (layer 7). For instance, it can
do the context based access control, which is a feature of layer 7. Unlike the
traditional switches, multilayer switches also can bear the functions of routers
at incredibly fast speeds. In addition, the Layer 3 switch is one type of multilayer
switches and is very commonly used.
10 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
The Layer 2 switch forwards data packets based on the Layer 2 information like
MAC addresses. As a traditional switch, it can inspect frames. While multilayer
switches not only can do all the job that Layer 2 switches do, it has routing
function as well, including static routing and dynamic routing. So multilayer
switches can inspect deeper into the protocol description unit.
Generally, multilayer switches and routers have three key differences. Firstly,
routers typically use software to route. While multilayer switches route packets
on ASCI (Application Specific Integrated Circuit) hardware. Another difference
is that multilayer switches route packets faster than routers. In addition, based
on IP addresses, routers can support numerous different WAN technologies.
However, multilayer switches lack some QoS (Quality of Service) features. It is
commonly used in LAN environment.
By default, a switch will forward both broadcasts and multicasts out every port
but the originating port. However, a switch can be logically segmented into
separate broadcast domains, using Virtual LANs (or VLANs).
11 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
There are three methods of routing between VLANs. The first method involves
using an external router with a separate physical interface in each VLAN. This
is the least scalable solution, and impractical for environments with a large
number of VLANs:
The second method involves using an external router with a single trunk link
to the switch, over which all VLANs can be routed. The router must support
either 802.1Q or ISL encapsulation. This method is known as router-on-a-
stick:
The final method involves using a multilayer switch, which supports both
Layer-2 and Layer-3 forwarding:
12 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Easy for use – Multilayer switches are configured automatically and its Layer
3 flow cache is set up autonomously. And there is no need for you to learn
new IP switching technologies for its “plug-and-play” design.
Faster connectivity – With multilayer switches, you gain the benefits of both
switching and routing on the same platform. Therefore, it can meet the
higher-performance need for the connectivity of intranets and multimedia
applications.
13 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Generally, there are three main steps for you to configure a multilayer switch.
Preparation
Determine the number of VLANs that will be used, and the IP address range
(subnet) you’re going to use for each VLAN.
Within each subnet, identify the addresses that will be used for the default
gateway and DNS server.
Decide if you’re going to use DHCP or static addressing in each VLAN.
Configuration
You can start configuring the multilayer switch after making preparations.
Enable routing on the switch with the IP routing command. (Note: some
multilayer switches may support the protocols like RIP and OSPF.)
Log into multilayer switch management interface.
Create the VLANs on the multilayer switch and assign ports to each VLAN.
Verification
After completing the second step, you still need to offer a snapshot of the
routing table entries and list a summary of an interface’s IP information and
status. Then, the multilayer switch configuration is finished.
14 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Layer-2 or switchports
Layer-3 or routed ports
Switched Virtual Interfaces (SVIs)
Switch(config-if)# switchport
A routed port behaves exactly like a physical router interface, and is not
associated with a VLAN. The no switchport command configures an interface
as a routed port, allowing an IP address to be assigned:
Switch(config-if)# no switchport
15 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Switch(config-if)# no shut
SVIs are the most common method of configuring inter-VLAN routing. The
logical VLAN interface will not become online unless:
The first packet in an IP traffic flow must be sent to the routing engine to
be routed. The switching engine could then cache this traffic flow.
Subsequent packets destined for that flow could then be switched instead
of routed. Thisgreatly reduced forwarding latency.
16 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Conclusion
The multilayer switch provides high functions in the networking. It is suitable for
VLAN segmentation and better network performance. When buying multilayer
switches, you’d better take multilayer switch price and using environment into
consideration.
17 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Chapter3:
Redundancy and Load
Balancing
- What Is Redundancy in Networking?
18 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Generally speaking, there are two forms of redundancy that data centers use
to ensure systems will stay up and running:
19 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
20 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Reduced Downtime
Scalable
Redundancy
Flexibility
Efficiency
Global Server Load Balancing
- Because GLBP allows the load balancing of traffic among the master and
standby routers while in HSRP (and VRRP) the standby routers do not help
handle traffic. With GLBP, the single virtual IP address is associated with one
virtual MAC address per GLBP member. The master receives ARP requests
and sends replies that specify different virtual MAC addresses, taking turns
among the different virtual MAC addresses in order to distribute traffic among
them.
21 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
- Routers in the GLBP group are assigned a single virtual IP address. Hosts
will use this virtual address as their default gateway. The AVG will respond to
ARP requests for the virtual IP with the virtual MAC address of an Active
Virtual Forwarder (AVF).
- Up to three routers can be elected as AVFs. The AVG assigns a virtual MAC
address to each AVF, and to itself, for a maximum total of 4 virtual MAC
addresses. Only the AVG and AVFs can forward traffic for hosts.
Any router not elected as an AVF or AVG will become a Secondary Virtual
Forwarder (SVF), and will wait in standby until an AVF fails.
22 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
- The default load balancing method is per-host round robin. Traffic from
hosts is distributed equally across all routers in the GLBP group. The AVG will
respond to the first host ARP request with the first virtual MAC address. The
second ARP request will receive the second virtual MAC address, etc.
- Host-dependent load balancing will provide a host device with the same
Virtual MAC address every time it performs an ARP request.
- Hello packets are used to elect GLBP roles and to ensure all routers are
functional. If the current active router fails, the standby router will immediately
take over as active, and a new standby is elected. By default, hello packets
are sent every 3 seconds
23 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
The AVG will respond to ARP requests for the virtual IP with
the virtual MAC address of an Active Virtual Forwarder (AVF).
24 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Configuration
For Switch 1
25 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
For Switch 2
26 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
For Switch 3
27 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
For Switch 4
28 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Testing
Show Glbp
Let’s dissect this output piece by piece and talk about what it means.
The top portion of the output talks about who the AVG is, as well as the
general state of the group.
Vlan8 – Group 1
State is Active
The first line tells about the group we are looking at as well as the interface
that GLBP is running on. The second line tells us that this router in the Active
AVG.
29 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
The next chunk of output gives us some general information about the local
GLBP host as well as the group in general. We can see the virtual IP that the
group is responsible for which was configured on all of the hosts to star the
GLBP process. We can also see the local priority of this GLBP host. As the
output, states this is the default value. The priority is used to determine who
the active AVG is. The router with the highest AVG will always be the AVG,
and the second highest will always be the SVG.
30 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Glbp brief
- Switch 1
-Switch 2
- Switch 3
- Switch 4
31 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
So all the other switches know who the AVG is as well as who the SVG
is. Switch3 is the SVG so he marks himself as ‘local’ under the Standby
router field…
Now let’s take a look at the output of the ‘show glbp brief’ command on
Swittch4…
As you can see, Switch4 is now the active AVG with Switch3 (with the second
highest priority) being the SVG.
- Let’s take a second to talk about the output from this command.
32 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
- The First line in the output talks about the group in general. It tells you the
priority of the AVG, the GLBP group IP, the AVG and the SVG. In this case,
the priority of the AVG is 200, the group IP is 10.16.8.1, the AVG is local, and
the SVG is switch3.
- The Second line talks about the first virtual forwarder. The state is shown
as active here since the third AVF is the local router itself. This shows that a
switch can own both the AVG as well as the AVF roles. We see the virtual
MAC as well as ‘local’ to indicate that this router has this role
- The Third line talks about the second AVF in the group. The meaning of
the ‘state’ column changes here slightly. As far as switch4 is concerned, it is
listening to this AVF to make sure that it is still online. This does NOT imply
that this AVF is not active. This is just the view point from switch4. The rest
of the line shows the virtual MAC that this AVF is responsible for as well as
the router’s IP address.
- The Fourth line talks about the third virtual forwarder. Again, from switch4’s
perspective it is listening to this AVF. We see the virtual MAC that this AVF is
using and responsible for as well as its IP address.
- The Fifth line shows the fourth AVF, its virtual MAC and IP address.
33 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
• Round Robin
• Weighted
• Host-dependent
The default load balancing method is per-host round robin. Traffic from
hosts is distributed equally across all routers in the GLBP group. The AVG will
respond to the first host ARP request with the first virtual MAC address. The
second ARP request will receive the second virtual MAC address, etc.
34 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
If the weight falls below the lower threshold, the router must stop
functioning as an AVF. The router will become an AVF again once its
weight reaches the upper threshold, as long as preempt is configured.
35 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Debugging
Debug Glbp
Examples
The following is sample output from the debug glbp errors command:
36 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Examples
37 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
38 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Examples
The following is sample output from the debug glbp packets command:
1d19h: GLBP: Fa0/0 Grp 10 Hello out 10.21.8.32 VG Active pri 254 vIP
10.21.8.10 1
1d19h: GLBP: Fa0/0 Grp 10 Hello out 10.21.8.32 VG Active pri 254 vIP
10.21.8.10 1
1d19h: GLBP: Fa0/0 Grp 10 Hello out 10.21.8.32 VG Active pri 254 vIP
10.21.8.10 1
39 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Examples
The following is sample output from the debug glbp terse command:
GLBP:
GLBP Errors debugging is on
40 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
41 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Chapter4:
EtherChannel
An EtherChannel can be created from between two and eight active Fast,
Gigabit or 10-Gigabit Ethernet ports, with an additional one to eight inactive
(failover) ports which become active as the other active ports fail.
EtherChannel is primarily used in the backbone network, but can also be used
to connect end user machines.
42 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
-Benefits of EtherChannel:
A network will often span across multiple switches. Trunk ports are usually
Used to connect switches together.
There are two issues with using only a single physical port for the trunk
Connection:-
• The port represents a single point of failure. If the port goes down,
the trunk connection is lost.
• The port represents a traffic bottleneck.
All other ports on the switch will use that one port to communicate across the
trunk connection.
Thus, the obvious benefits of adding redundancy to the trunk connection are
fault tolerance and increased bandwidth, via load balancing.
However, simply trunking two or more ports between the switches will not
Work, as this creates a switching loop.
43 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
• Spanning Tree Protocol (STP) will disable one or more ports to eliminate the
loop.
• If STP is disabled, the switching loop will result in an almost.
If the ports are operating in full duplex, the maximum theoretical bandwidth
Supported is as follows:-
44 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
EtherChannel Requirements:
The previous section described the benefits of port aggregation for a trunk
Connection. However, EtherChannel can be formed with either access or
trunk ports.
45 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
EtherChannel Load-Balancing:
Traffic sent across an EtherChannel is not evenly distributed across all ports
in the bundle.
Instead, EtherChannel utilizes a load-balancing algorithm to determine the
port to send the traffic out, based on one of several criteria:-
46 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Configuration
Switch1(config-if)#interface port-channel 5
47 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Switch2(config-if)#interface port-channel 5
Switch2(config-if)#interface port-channel 6
48 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
49 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Switch3(config-if)#interface port-channel 6
Switch3(config-if)#interface port-channel 5
50 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
51 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Switch4(config-if)#interface port-channel 5
52 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
The remote switch must also have the EtherChannel manually configured as
on. Remember that speed, duplex, VLAN, and STP configuration must be
configured identically across all participating ports on both switches.
The channel-group number identifies the EtherChannel on the local switch. This
number does not need to match on both switches, though for documentation
purposes it should.
Changes made to the logical port-channel interface are applied to all physical
switch ports in the channel-group:
Switch(config)# interface port-channel 1
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport trunk allowed vlan 50-100
53 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Both PAgP and LACP exchange negotiation packets to form the EtherChannel.
When an EtherChannel is configured manually, no negotiation packets are
exchanged.
Thus, an EtherChannel will never form if one switch manually configured the
EtherChannel, and the other switch is using a dynamic aggregation protocol.
PAgP and LACP are not compatible – both sides of an EtherChannel must use
the same aggregation protocol.
54 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
EthernChannel - PAgP
A channel will not form if both sides are set to auto. Also, PAgP will not form a
channel if the remote side is running LACP, or manually configured.
PAgP requires that speed, duplex, VLAN, and STP configuration be configured
identically across all participating ports.
55 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
EtherChannel - LACP
A channel will not form if both sides are set to passive. Also, LACP will not form
a channel if the remote side is running PAgP, or manually configured.
LACP requires that speed, duplex, VLAN, and STP configuration be configured
identically across all participating ports.
56 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Troubleshooting EtherChannel
Flags:
D - Down
P - in port-channel
I - stand-alone
s - Suspended
R - Layer3
S - Layer2
U - port-channel in use
Note that both ports have a status of P, which indicates that they are up and
active in the EtherChannel.
57 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
On Cisco Nexus switches, the syntax for this command is slightly different:
NexusSwitch# show port-channel summary
58 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
59 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
60 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
61 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
62 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
63 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
64 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Chapter5:
Spanning Tree protocol
Switching loops:
When a switching loop is introduced into the network, a destructive broadcast
storm will develop within seconds. A storm occurs when broadcasts are
endlessly forwarded through the loop.
Consider the following example:
65 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
If HostA sends out a broadcast, SwitchD will forward the broadcast out all
ports in the same VLAN. The broadcast will loop around the switches infinitely
and there will be a broadcast storm.
Root Bridge:
which is the central reference point for the STP topology is elected based on
its Bridge ID, comprised of two components in the original 802.1D standard:
• 16-bit Bridge priority
• 48-bit MAC address
the lowest priority wins. If there is a tie in priority, the lowest MAC address is
used as the tie-breaker.
66 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
SwitchA has the lowest MAC address, and will be elected the Root
Bridge.
67 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
the port to switch is preferred and will become the root port .
68 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
If two ports are eligible to become the designated port, then there is a
loop. One of the ports will be placed in a blocking state to eliminate the
loop.
Note: A port can never be both a designated port and a root port.
Consider the following example:
69 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Port ID:
When electing root and designated ports, it is possible to have a tie in both
path cost and Bridge ID. Consider the following example: The bandwidth of
both links is equal, thus both ports on SwitchB have an equal path cost to the
Root Bridge. Which port will become the root port then? Normally, the lowest
Bridge ID is used as the tiebreaker, but that is not possible in this
circumstance.
Port ID is used as the final tiebreaker, and consists of two components:
• 4-bit port priority
• 12-bit port number, derived from the physical port number
Versions of STP
There are three flavors of the original 802.1D version of STP:
• Common Spanning Tree (CST)
• Per-VLAN Spanning Tree (PVST)
• Per-VLAN Spanning Tree Plus (PVST+)
CST utilizes a single STP instance for all VLANs, and is sometimes referred
to as mono spanning tree. All CST BPDU’s are sent over the native VLAN on
a trunk port, and thus are untagged. PVST employs a separate STP instance
for each VLAN, improving flexibility and performance. PVST requires trunk
ports to use ISL encapsulation. PVST and CST are not compatible. The
enhanced PVST+ is compatible with both CST and PVST, and supports both
ISL and 802.1Q encapsulation. PVST+ is the default mode on many Cisco
platforms.
STP has continued to evolve over time. Modern extensions of STP will be
covered later in this guide:
• Rapid Spanning Tree Protocol (RSTP)
70 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
STP is enabled by default on all Cisco switches, for all VLANs and ports.
PVST+ is the default STP mode on most modern Cisco platforms, allowing
each VLAN to run a separate STP instance.
STP can be disabled. This should be done with caution - any switching loop
will result in a broadcast storm.
The switch with the lowest Bridge ID is elected as the Root Bridge. The
priority can be adjusted from its default of 32,768, to increase the likelihood
that a switch is elected as the Root Bridge.
Priority can be configured on a per-VLAN basis. Remember that the priority
must be in multiples of 4,096 when extended system IDs are enabled:
SwitchA(config)# spanning-tree vlan 101 priority 8192
A switch can be indirectly forced to become the Root Bridge for a specific
VLAN:
SwitchA(config)# spanning-tree vlan 101 root primary
71 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
STP does not technically support a backup Root Bridge. However, the root
secondary command can increase the likelihood that a specified switch will
succeed as the new Root Bridge in the event of a failure:
SwitchB(config)# spanning-tree vlan 101 root secondary
72 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Blocking
Listening
Learning
Forwarding
73 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Thus, STP will always take a proactive approach. Starting in a blocking state
allows STP to complete its convergence process before any traffic is
forwarded. In perfect STP operation, a broadcast storm should never occur.
74 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
STP Timers
Switches running STP exchange BPDUs to build and converge the topology
database. There are three timers that are crucial to the STP process:
-Hello timer
75 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
The forward delay timer determines how long a port must spend in both a
learning and listening state:
-Introducing this delay period ensures that STP will have enough time
to detect and eliminate loops.
-By default, the forward delay is 15 seconds.
-Because a port must transition through two forward delays, the total
delay time is 30 seconds.
The max age timer indicates how long a switch will retain BPDU
information from a neighbor switch, before discarding it:
-Remember that BPDUs are sent every two seconds.
-If a switch fails to receive a BPDU from a neighboring switch for the
max age period, it will assume there was a change in the switching
topology.
-STP will then purge that neighbor’s BPDU information.
-By default, the max age timer is 20 seconds.
Timer values can be adjusted. However, this is rarely necessary, and can
negatively impact STP performance and reliability.
Timers must be changed on the Root Bridge. The Root Bridge will
propagate the new timer values to all switches using BPDUs. Non-root
switches will ignore their locally configured timer values.
76 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
PortFast
UplinkFast
BackboneFast
Each feature will be covered in detail in the following sections.
- PortFast
The host port will transition through the normal STP states, including
waiting two forward delay times. Thus, a host will be without network
connectivity for a minimum of 30 seconds when first powered on.
77 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
78 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
- UplinkFast
Often, a switch will have multiple uplinks to another upstream switch:
If the links are not bundled using an EtherChannel, at least one of the ports
will transition to a blocking state to eliminate the loop.
In the above example, port gi2/24 was placed into a blocking state on
SwitchB.
Normally, if the root port fails on the local switch, STP will need to perform
a recalculation to transition the other port out of a blocking state. At a
minimum, this process will take 30 seconds.
79 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
UplinkFast functions by tracking all possible links to the Root Bridge. Thus,
UplinkFast is not supported on the Root Bridge. In fact, enabling this
feature will automatically increase a switch’s bridge priority to 49,152.
UplinkFast is intended for the furthest downstream switches in the STP
topology.
- BackboneFast
UplinkFast provides faster convergence if a directly-connected port fails. In
contrast, BackboneFast provides improved convergence if there is an
indirect failure in the STP topology.
80 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
If the link between SwitchB and SwitchA fails, SwitchD will eventually
recalculate a path through SwitchE to reach the Root Bridge. However,
SwitchD must wait the max age timer before purging SwitchB’s superior
BPDU information. By default, this is 20 seconds.
BackboneFast allows a switch to bypass the max age timer. The switch will
accept SwitchE’s inferior BPDU’s immediately. The blocked port on
SwitchE must still transition to a forwarding state. Thus, BackboneFast
essentially reduces total convergence time from 50 seconds to 30 seconds for
an indirect failure.
This is accomplished by sending out Root Link Queries (RLQs). The Root
Bridge will respond to these queries with a RLQ Reply:
If a RLQ Reply is received on a root port, the switch knows that the
root path is stable.
81 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Troubleshoot
Troubleshoot a Failure
In order to know what to fix in the network, we need to know how the
network looks when it works correctly.
82 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
On the Catalyst switches that run CatOS, we can easily check the overall
backplane usage with the show system command. The command provides
the current usage of the switch backplane and also specifies the peak usage
and date of peak usage. An unusual peak utilization shows us whether there
has ever been a bridging loop on this device.
83 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Debug spanning-tree
84 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Show spanning-tree
85 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
86 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Chapter6:
Conclusion
Finally we made the network and we can divide the network to 4 main
sections:
1- We decided that we will use packet tracer then transfer the design to
4- STP: Finally we use this protocol to ensure that we do not create loops
when we have redundant paths in our network. Loops are deadly to a
network.
87 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
88 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
Appendices
Value Description
89 | P a g e
Comm. & Computer Engineering Program, 29 March 2021
Design of Campus Communication Network
References
https://www.cisco.com/en/US/docs/ios/12_2t/12_2t15/feature/guide/
ft_glbp.html#wp1048594
https://www.cisco.com/c/en/us/support/docs/lan-
switching/spanning-tree-protocol/5234-5.html
https://www.cisco.com/en/US/docs/ios/12_2/switch/configuration/g
uide/xcfmsc_external_docbase_0900e4b180753c28_4container_ext
ernal_docbase_0900e4b18088695e.html
https://www.cisco.com/c/en/us/support/docs/lan-
switching/etherchannel/12023-4.html
- EtherChannel
-Multilayer Switching
90 | P a g e
Comm. & Computer Engineering Program, 29 March 2021