Layer 2 Models


How switches process incoming frames

When a switch receives a frame (flowchart here):

 

 

How switches send frames

When a switch wants to send a frame (flowchart here):

 

 

How CSMA/CD is modeled

Packet Tracer models only certain aspects of the CSMA/CD process.

 

 

How switches utilize Spanning Tree Protocol (STP)

When a switch receives a STP frame (flowchart here):

 

When a switch receives a RSTP frame (flowchart here):

How port security works

When switch receives a frame (flowchart here):

If the frame passes the security process and the sticky MAC address is on, on the received interface, the MAC entry gets added to the MAC table as a static entry.

 

A switch port can be configured with secure MAC addresses even if the port's line protocol is down.

When the port's line protocol changes from down to up, if there is a list of secure MAC addresses for the port waiting to be added to the MAC table, the port security checks the MAC entries with the same VLAN address as the current port.

 

 

How DTP decides on the mode of the port

DTP has the responsibility of setting switch port's modes.

Each switch port sends a DTP frame out about its administration mode and operation mode on a regular basis

When the switch port on the other side of the link receives the DTP update it (flowchart here):

 

To update the port operational mode DTP (flowchart here):

 

 

How switches processing incoming VTP frames

When a switch receives a VTP frame (flowchart here):

 

 

When do switches send out VTP frames

When do switches send out Advertisement Requests:

  • When the switch detects a VTP configuration change and it is in VTP Client mode
  • When receiving a Summary Advertisement but there is no subset following it

     

    When do switches send out Summary Advertisements:

  • When a trunk port comes up and the switch is already advertising VTP
  • Every 5 minutes
  • When receiving a Summary Advertisement with its config revision smaller than the switch's

     

    When do switches send out Subset Advertisements:

  • When a trunk port comes up and the switch is not already advertising VTP
  • When a local VLAN change is detected and the switch is in VTP Server mode
  • When the switch detects a VTP configuration change and it is in VTP Server mode
  • After updating VLAN database on the receiving of Subset Advertisements
  • When receiving a Advertisement Request How HDLC Works

     

    How Etherchannel Works

    When a multilayer switch receives a packet (flowchart here): When a multilayer switch sends a packet: 

     

    How Multilayer Switching Works

     

    How HDLC Works

     

    How PPP Works

     

    How PPPoE Works

    The Point-to-Point Protocol over Ethernet (PPPoE) is a network protocol for encapsulating Point-to-Point Protocol (PPP) frames inside Ethernet frames. By using PPPoE, users can virtually "dial" from one machine to another over an Ethernet network, establish a point to point connection between them and then transport data packets over the connection. (flowchart here):

     

    How Frame Relay Works

     

    How Cable/DSL Works