ccna press stp

Upload: sadam017

Post on 06-Apr-2018

220 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/3/2019 Ccna Press Stp

    1/64

    SwitchingSwitching

  • 8/3/2019 Ccna Press Stp

    2/64

    2002, Cisco Systems, Inc. All rights reserved.

  • 8/3/2019 Ccna Press Stp

    3/64

    ObjectivesObjectives Upon completing thismodule, you willbe able

    to:

    Explain how bridging andswitching operates

    Explain thepurpose andoperationsof the Spanning-

    Tree Protocol

    Verify thedefault configuration of thedevice, given afunctioning accesslayerswitch

    Build a functional accessswitch configuration to

    support thespecified networkoperationalparameters,given a networkdesign

    Execute an add,move,or changeon an accesslayerswitch, given a new networkrequirement

  • 8/3/2019 Ccna Press Stp

    4/64

    2002, Cisco Systems, Inc. All rights reserved. 4

    Basic Layer 2 Switching and

    Bridging Functions

  • 8/3/2019 Ccna Press Stp

    5/64

    ObjectivesObjectives

    Upon completing thislesson, you willbeable to:

    Describe Layer 2 switching andbridging

    operations andmodes Describe how LAN switchesuse andpopulate

    the MAC address table

  • 8/3/2019 Ccna Press Stp

    6/64

    Addresslearning

    Forward/filterdecision

    Loop avoidance

    Ethernet Switches andBridgesEthernet Switches andBridges

  • 8/3/2019 Ccna Press Stp

    7/64

    Cut-Through

    Switch checks destination

    address and immediately

    begins forwarding frame.

    Fragment-Free

    Switch checks the first 64 bytes,

    then immediatelybegins forwarding frame.

    Store and Forward

    Complete frame is received

    and checked before

    forwarding.

    Transmitting Frames

  • 8/3/2019 Ccna Press Stp

    8/64

    MAC Address TableMAC Address Table

    Initial MAC address table is empty.

  • 8/3/2019 Ccna Press Stp

    9/64

    Learning AddressesLearning Addresses

    Station A sends a frame to station C.

    Switch caches the MAC address of station A to port E0 bylearning the source address of data frames.

    The frame from station A to station C is flooded out to all

    ports except port E0 (unknown unicasts are flooded).

  • 8/3/2019 Ccna Press Stp

    10/64

    Learning Addresses (Cont.)Learning Addresses (Cont.)

    Station D sends a frame to station C.

    Switch caches the MAC address of station D to port E3 bylearning the source address of data frames.

    The frame from station D to station C is flooded out to all ports

    except port E3 (unknown unicasts are flooded).

  • 8/3/2019 Ccna Press Stp

    11/64

    Filtering FramesFiltering Frames

    Station A sends a frame to station C.

    Destination is known; frame is not flooded.

  • 8/3/2019 Ccna Press Stp

    12/64

    Filtering Frames (Cont.)Filtering Frames (Cont.)

    Station A sends a frame to station B.

    The switch has the address for station B in the MACaddress table.

  • 8/3/2019 Ccna Press Stp

    13/64

  • 8/3/2019 Ccna Press Stp

    14/64

    Redundant topology eliminatessinglepointsoffailure.

    Redundant topology causesbroadcast storms,multipleframe copies, and MAC address table instability problems.

    Redundant TopologyRedundant Topology

  • 8/3/2019 Ccna Press Stp

    15/64

    Host X sends a broadcast.

    Switches continue to propagate broadcast traffic

    over and over.

    Broadcast StormsA 5.1.2.2

  • 8/3/2019 Ccna Press Stp

    16/64

    Host X sends a unicast frame to router Y.

    MAC address of router Y has not been learned by

    either switch yet.

    Router Y will receive two copies of the same frame.

    Multiple Frame Copies orDuplicate Unicast Frames

    A 5.1.2.3

  • 8/3/2019 Ccna Press Stp

    17/64

    Host X sends a unicast frame to router Y.

    MAC address of router Y has not been learned by either switch.

    Switches A and B learn the MAC address of host X on port 0.

    The frame to router Y is flooded.

    Switches A and B incorrectly learn the MAC address of host X on port 1.

    MAC Database Instability

  • 8/3/2019 Ccna Press Stp

    18/64

    SpanningSpanning--Tree FunctionTree Function

    STP logically block all alternativepathsforsolve theredundancy problem

  • 8/3/2019 Ccna Press Stp

    19/64

    SpanningSpanning--Tree OperationTree Operation

    1. One root bridge per network

    2. One root port per nonroot bridge

    3. One designated port per segment4. Nondesignated ports are unused

    A 1.5.2.1STP Topology

  • 8/3/2019 Ccna Press Stp

    20/64

    11--Root bridgeRoot bridge

    1. Bpdu = Bridge Protocol Data Unit

    (default = sent every two seconds)

    2. Root bridge = Bridge with the lowest bridge ID

    3. Bridge ID =

    4. All port at the root bridge is designated forward

    6 byte2 byte 6 byte2 byte 6 byte2 byte

  • 8/3/2019 Ccna Press Stp

    21/64

    100Mb/s

    100Mb/s

    100Mb/s

    100Mb/s

    S4 S3

    S1 S2

  • 8/3/2019 Ccna Press Stp

    22/64

    100Mb/s

    100Mb/s

    100Mb/s

    100Mb/s

    D(f)

    D(f)

    S4 S3

    S1 S2

  • 8/3/2019 Ccna Press Stp

    23/64

    22-- One root port per nonrootOne root port per nonrootbridgebridge

    Thelowest cost toRoot bridge

    Ifequal thelowest brideID

    Ifequal thelowest port no.

  • 8/3/2019 Ccna Press Stp

    24/64

    Spanning-Tree Path Cost

  • 8/3/2019 Ccna Press Stp

    25/64

    100Mb/s

    100Mb/s

    100Mb/s

    100Mb/s

    D(f)

    D(f) R(F)

    S4 S3

    S1 S2

    Cost=19

    Cost=4

    Cost=19

    Switch 2

    Cost=19

    Cost=4

  • 8/3/2019 Ccna Press Stp

    26/64

    100Mb/s

    100Mb/s

    100Mb/s

    100Mb/s

    D(f)

    D(f) R(F)

    S4 S3

    S1 S2

    Cost=4

    Cost=19

    Cost=19

    Cost=19

    Cost=19

    Switch 3

  • 8/3/2019 Ccna Press Stp

    27/64

    100Mb/s

    100Mb/s

    100Mb/s

    100Mb/s

    D(f)

    D(f) R(F)

    R(F)

    S4 S3

    S1 S2

    Cost=19

    Cost=19

    Cost=19

    Cost=4

    Cost=4

    Switch 4

  • 8/3/2019 Ccna Press Stp

    28/64

  • 8/3/2019 Ccna Press Stp

    29/64

  • 8/3/2019 Ccna Press Stp

    30/64

    100Mb/s

    100Mb/s

    100Mb/s

    100Mb/s

    D(f)

    D(f) R(F)

    R(F)

    S4 S3

    S1 S2

    D(f)

    D(f)

  • 8/3/2019 Ccna Press Stp

    31/64

    100Mb/s

    100Mb/s

    100Mb/s

    100Mb/s

    D(f)

    D(f) R(F)

    R(F)

    S4 S3

    S1 S2

    D(f)

    D(f)

  • 8/3/2019 Ccna Press Stp

    32/64

    44-- Non designatedports areNon designatedports areunusedunused

  • 8/3/2019 Ccna Press Stp

    33/64

    100Mb/s

    100Mb/s

    100Mb/s

    100Mb/s

    D(f)

    D(f) R(F)

    R(F)

    S4 S3

    S1 S2

    D(f)

    D(f)ND(B)

    ND(B)

  • 8/3/2019 Ccna Press Stp

    34/64

    ExampleExample 22

  • 8/3/2019 Ccna Press Stp

    35/64

    1Gb/s

    100Mb/s

    1Gb/s

    1Gb/s

    S4 S3

    S1 S2

  • 8/3/2019 Ccna Press Stp

    36/64

    1Gb/s

    100Mb/s

    1Gb/s

    1Gb/s

    S4 S3

    S1 S2

    D(f)

    D(f)

  • 8/3/2019 Ccna Press Stp

    37/64

    1Gb/s

    100Mb/s

    1Gb/s

    1Gb/s

    S4 S3

    S1 S2

    D(f)

    D(f)

    R(f)

  • 8/3/2019 Ccna Press Stp

    38/64

    1Gb/s

    100Mb/s

    1Gb/s

    1Gb/s

    S4 S3

    S1 S2

    D(f)

    D(f)

    R(f)

    R(f)

  • 8/3/2019 Ccna Press Stp

    39/64

    1Gb/s

    100Mb/s

    1Gb/s

    1Gb/s

    S4 S3

    S1 S2

    D(f)

    D(f)

    R(f)

    R(f)

    R(f)

  • 8/3/2019 Ccna Press Stp

    40/64

    1Gb/s

    100Mb/s

    1Gb/s

    1Gb/s

    S4 S3

    S1 S2

    D(f)

    D(f)

    R(f)

    R(f)

    R(f)D(f)

  • 8/3/2019 Ccna Press Stp

    41/64

    1Gb/s

    100Mb/s

    1Gb/s

    1Gb/s

    S4 S3

    S1 S2

    D(f)

    D(f)

    R(f)

    R(f)

    R(f)D(f)

    D(f)

  • 8/3/2019 Ccna Press Stp

    42/64

    1Gb/s

    100Mb/s

    1Gb/s

    1Gb/s

    S4 S3

    S1 S2

    D(f)

    D(f)

    R(f)

    R(f)

    R(f)D(f)

    D(f)

  • 8/3/2019 Ccna Press Stp

    43/64

    1Gb/s

    100Mb/s

    1Gb/s

    1Gb/s

    S4 S3

    S1 S2

    D(f)

    D(f)

    R(f)

    R(f)

    R(f)D(f)

    D(f)

    ND(B)

  • 8/3/2019 Ccna Press Stp

    44/64

    What happen when link failedWhat happen when link failed??

    Block port Steps to arrive at forward port

  • 8/3/2019 Ccna Press Stp

    45/64

    1) Block : Wait 20 seconds without receive

    BPDU.

    2) Listening: theport can receive andsend

    Bpdu and wait 15 second beforeenter in

    thirdstep .

    3) Learn:in thissteplearn mac address

    and wait 15 second also .

    4) Forward:

    thefinalstep and can send

  • 8/3/2019 Ccna Press Stp

    46/64

    55..22..55 STP Port States andSTP Port States andBPDU TimersBPDU Timers

    55 22 33 B id IDB id ID

  • 8/3/2019 Ccna Press Stp

    47/64

    55..22..33 Bridge IDBridge ID

  • 8/3/2019 Ccna Press Stp

    48/64

    1. Toensure that theswitch has thelowest bridgepriority value,usethespanning-tree vlan vlan-idroot primary command in globalconfiguration mode. Thepriority for theswitch isset to thepredefinedvalueof 24576 or to the next 4096 increment valuebelow thelowest bridgepriority detectedon the network.

    1. If an alternateroot bridge isdesired,use the spanning-treevlan vlan-id root secondary global configuration modecommand. This commandsets thepriority for theswitch to thepredefinedvalueof 28672. Thisensures that thisswitch becomestheroot bridge if theprimary root bridgefails and a new rootbridgeelection occurs and assuming that therest of theswitches

    in the network have thedefault 32768 priority valuedefined.

    2. In theexample,switch S1 hasbeen assigned as theprimary rootbridgeusing thespanning-tree vlan 1 root primary globalconfiguration mode command, andswitch S2 hasbeen configuredas thesecondary root bridgeusing thespanning-tree vlan 1 rootsecondary global configuration mode command.

    3. Method 2 - Anothermethodfor configuring thebridgepriorityvalue isusing thespanning-tree vlan vlan-idpriority value globalconfiguration mode command. This command gives youmoregranular controlover thebridgepriority value. The priorityvalue is configured in increments of 4096 between 0 and65536.

  • 8/3/2019 Ccna Press Stp

    49/64

    55..22..33 Bridge IDBridge ID

  • 8/3/2019 Ccna Press Stp

    50/64

    The range value can be between 1 and 200,000,000.

    Packet Tracer Don,t support this command

  • 8/3/2019 Ccna Press Stp

    51/64

  • 8/3/2019 Ccna Press Stp

    52/64

    The endThe end

  • 8/3/2019 Ccna Press Stp

    53/64

    Cisco PortFast Technology

    PortFast is a Cisco technology. When a switch port configured with

    PortFast is configured as an access port, that port transitions from

    blocking to forwarding state immediately,

  • 8/3/2019 Ccna Press Stp

    54/64

  • 8/3/2019 Ccna Press Stp

    55/64

    1Gb/s

    100Mb/s

    1Gb/s

    1Gb/s

    SW4 SW3

    SW1 SW2

  • 8/3/2019 Ccna Press Stp

    56/64

    1Gb/s

    100Mb/s

    1Gb/s

    1Gb/s

    SW4 SW3

    SW1 SW2

    D(f)

    D(f) R(f)

  • 8/3/2019 Ccna Press Stp

    57/64

  • 8/3/2019 Ccna Press Stp

    58/64

    1Gb/s

    100Mb/s

    1Gb/s

    1Gb/s

    SW4 SW3

    SW1 SW2

    D(f)

    D(f) R(f)

  • 8/3/2019 Ccna Press Stp

    59/64

    1Gb/s

    100Mb/s

    1Gb/s

    1Gb/s

    SW4 SW3

    SW1 SW2

    D(f)

    D(f) R(f)

    R(f)

  • 8/3/2019 Ccna Press Stp

    60/64

    1Gb/s

    100Mb/s

    1Gb/s

    1Gb/s

    SW4 SW3

    SW1 SW2

    D(f)

    D(f) R(f)

    R(f)

    D(f)

    D(f)

  • 8/3/2019 Ccna Press Stp

    61/64

    1Gb/s

    100Mb/s

    1Gb/s

    1Gb/s

    SW4 SW3

    SW1 SW2

    D(f)

    D(f) R(f)

    R(f)

    D(f)

    D(f)

    ND(B)

  • 8/3/2019 Ccna Press Stp

    62/64

    SW1

    SW2

    SW3

    100Mb/s

    100Mb/s

  • 8/3/2019 Ccna Press Stp

    63/64

    SW1

    SW2

    SW3

    100Mb/s

    100Mb/s

    D(f)

    D(f)

  • 8/3/2019 Ccna Press Stp

    64/64

    SW1

    SW2

    SW3

    100Mb/s

    100Mb/s

    D(f)

    D(f)