Application Application Transport Transport Internet Network Link Data Link Physical
Application Application Transport Transport Internet Network Link Data Link Physical
Application Application Transport Transport Internet Network Link Data Link Physical
Application
Application
Transport
Internet
Transport
Network
Data Link
Physical
Link
IPG
Layer 1
Preamble
Standard
12 Bytes
8 Bytes
Layer2
Start of Frame
Delimiter
1 Byte
Layer4
Layer4 TCP
Segment Size
Variable
Maximum Frame Size for Ethernet II is 1518. Maximum Frame Size for 802.1Q networking is 1522.
Frame Structure
Layer2
Layer2 Frame Size with 802.1 Q
64 - 1522 Bytes
For Frame Size settings, most of the time, the Preamble and SFD seem to be filltered out of the sum. As of such, configuration wise the Frame Header Length is 14 bytes, Frame Tr
Minimum Frame Size- Frame Header +Layer3 PDU + Frame Trailer (14+46+4- 64 Bytes).
For backwards compatibility, even if the 802.1Q header is present, the minimum Ethernet Frame Size will still be 64 bytes.
Detailed Frame Structure
The Ethernet data link protocol defines the Ethernet frame- an Ethernet header at the front, the encapsulated payload in the middle, and an Ethernet trailer at the end. IEEE 802.2 / 802
802.3 Frame Structure
0
15
16
23
24
31
32
39
Layer2 OverHead
Layer2 MAC Header
DSAP address
Length
15 16
23
24
Layer2 OverHead
Layer2 802.2 LLC Header
SSAP address
Control (1 or 2 Bytes)
31
OR
0
DSAP address
15 16
23
24
31
Layer2 OverHead
Type
Layer2 OverHead
Slow Protocols Header
Slow Protocols Subtype
1 Byte
Ethernet II + 802.1Q Frame Structure
0
15
16
23
24
31
32
39
Layer2 OverHead
Layer2 MAC Header
0000
0100
0001
0101
0010
0110
0011
0111
Hexadecim
132
0000
1000
6
0100
0000
0110
132
1000
Resulting MAC Address-
01-00-5E
01-00-5E-04-06-01-11
Frame forwarding Types
Layer2 only Equipments will not modify the Source/Destination Ethernet Addresses (MAC), but they can alter the Ethernet Header structure adding/removing the 802.1Q (
Store-and-Forward- the switch will forward the frame only after it has received it completely and has done the FCS on it.
Fragment-Free Processing- the switch will forward the frame after receiving the first 64bytes of the forwarding frame, using this type of forwarding will reduce the number
Collisions should be detected in the first 64 bytes of a frame.
Cut-Through Processing- the switch will forward the frame as soon as it has received it , possibly propagating errors due to the fact that the FCS is in the trailer part of the
CSMA/CD
Carrier Sense Multiple Access with Collision Detection (CSMA/CD) is a system that permits multiple devices to use a shared transport medium to communicate. Since they can all co
The Collision Detection mechanism can observe these collisions and once a collision has taken place, all of the devices on that network will stop sending any other data. Each device w
After the timer has reached its value, then, the devices will start listening to the transport medium again to see if it is available for transport. This mechanism applies to modern etherne
CAM
Content Addressable Memory table( CAM or MAC Address Table) is a table that stores all of the MAC Addresses that a device has learned. Every device can learn MAC addresses fro
The switching decisions are also made with the help of the MAC Address Table as follows- If the destination MAC address is contained inside of the CAM, then forward the frame on
If the destination MAC address is not inside the CAM, then broadcast the frame on all active interfaces, except the one it was received on. Flooding is the process by which a device se
CAM tables have 2 categories of MAC Addresses- Dynamic MAC Addresses, Static MAC Addresses. The Static MAC Addresses, in turn can be manually configured MAC Addresses
The Dynamic MAC Addresses are addresses that are learned by the device and that have an inactivity timer assigned to them. Due to this fact, when the inactivity timer reaches 0, then
The inactivity timer is reseted when a new frame with the same Source MAC Address is received.
Unicast MAC addresses can be learned by CAM tables, while Broadcast and Multicast addresses will not, since they will not be contained in the Source M
Collision Domains and Vlan Broadcast Filtering
Collision Domain represent a contention based medium used by multiple devices were collisions can take place.
Early on, Hubs, that used to send out the information received on an interface out on all interfaces would provide 1 collision domain.
With the innovation of Bridges, the collision domains have been restructured and were supported only on a per interface basis, thus increasing throughput utilization and giving the Bri
Destination MAC
01-80-C2-00-00-00
01-00-0C-CC-CC-CD
01-80-C2-00-00-02
01-00-0C-CC-CC-CC
01-00-5E-00-00-02
01-00-5E-00-00-02
01-00-5E-00-00-66
01-00-5E-00-00-66
01-00-5E-00-00-12
0x01-00-5E-00-00-66
0x01-00-5E-00-00-66
Source MAC
Burned In MAC Address
Burned In MAC Address
nu e clara
nu e clara
00-00-0C-07-AC-XX, Active Router
Burned In MAC, Non Active Router
00-00-0C-9F-FX-XX
Burned In MAC, Non Active Router
00-00-5E-00-01-xx
Burned In MAC, Roles not assigned in GLBP
0x00-07-B4-00-XX-YY, Roles assigned in GLBP
Protocol Value
Layer2
Layer2 MAC OverHead
Frame Header
14 bytes / 18 Bytes
Layer2
Layer2 MAC OverHead
Frame Header
14 bytes / 18 Bytes
Layer3
Layer2 Payload
Payload
42/46 - 1500 Bytes
Layer4 Payload
Payload
Variable
Layer2 Payload
Payload
42/46 - 1500 Bytes
Frame Header Length is 14 bytes, Frame Trailer Length is 4 bytes and the L2PDU length reaches 18 bytes.
40
r2 OverHead
2 MAC Header
47
48
55
56
63
32
Layer2 OverHead
r2 OverHead
39
40
47
48
55
2 MAC Header
40
r2 OverHead
2 MAC Header
47
48
55
56
63
Type Field - Identifies the 802.1Q Structure inside of the Frame Structure.
Priority Code Point- Class of Service QoS.
Vlan Identifier- 0 to 4096 Vlan Identifiers.
ress Format
8
1000
1001
1010
1011
B
Hexadecimal Representation Format
17
0001
132
0001
17
0100
0000
0110
0001
0001
s type of forwarding will reduce the number of collision based error frames on the medium.
fact that the FCS is in the trailer part of the packet and will be verified at the end of the frame reception.
medium to communicate. Since they can all communicate possibly at the same time, collisions can appear.
will stop sending any other data. Each device will have its own random timer which will run afterwards.
port. This mechanism applies to modern ethernet based networks.
ned. Every device can learn MAC addresses from the frames it receives on its own interfaces.
inside of the CAM, then forward the frame on the corresponding interface.
on. Flooding is the process by which a device sends the frame out all of its active interfaces.
rn can be manually configured MAC Addresses or local MAC Addresses.
s fact, when the inactivity timer reaches 0, then the MAC address will be flushed from the CAM.
Protocol Name
PAgP
LACP
DTP
CDP
OSPFv2
OSPFv2
EIGRP
The EtherType/Length field is used to predict which protocol will follow after Layer2 MAC.
When Length field is used, the addressing will be supplimented with the 802.2 LLC Header and SNAP Extension.
Destination MAC
01-00-0C-CC-CC-CC
01-80-C2-00-00-02
01-00-0C-CC-CC-CC
01-00-0C-CC-CC-CC
01-00-5E-00-00-06 (All DR Address)
01-00-5E-00-00-05 (All SPF Address)
01-00-5E-00-00-0A
Layer3
Layer3 IPv6 Packet
Size
0 - 1500 Bytes
Layer3 Payload
Payload
Variable
1100
1101
1110
1111
Source MAC