Docsity

Ethernet Lan Switching, Test d'ammissione di Neuroanatomia

Toggle sidebar
bg1
Chapter 6, Ethernet LAN Switching
Key Concepts
● Frame = Layer 2 PDU (Layer 2 header + payload + trailer).
● Switches are Layer 2 devices because they forward using the Ethernet header.
Routers are Layer 3 because they forward using the IP header.
● Hop-to-hop delivery: Layer 3 addresses the final destination (IP address), while Layer
2 addresses the next hop (MAC address).
LAN Definition
● A LAN is defined by how devices are connected, not by physical distance.
● Another name for a LAN is a Layer 2 domain: hosts can communicate without a router.
● Switches connected directly to each other are in the same LAN.
● Switches connected through a router are separate LANs. The router separates them,
so traffic between them must pass through it. The router separates the LANs
Ethernet Frame Structure
Field
Size
Purpose
Preamble
7 bytes
Alternating 1s and 0s (10101010); lets the receiver sync its
clock
SFD
1 byte
Pattern 10101011; signals the frame is starting
Destination
6 bytes
Destination MAC address
Source
6 bytes
Source MAC address
Type/Length
2 bytes
Type (EtherType) of the encapsulated packet or its length
Payload
(varies)
Encapsulated packet
FCS
4 bytes
Error detection (trailer)
Header = Destination, Source, Type/Length. Trailer = FCS only.
Preamble & SFD
● Not part of the Ethernet frame, but sent with each frame.
● They are purely a Layer 1 (Physical) function.
● Purpose: the receiver synchronizes its receiver clock, meaning it determines the precise
length of 1 bit. This has nothing to do with date and time.
pf3
pf4

Anteprima parziale del testo

Scarica Ethernet Lan Switching e più Test d'ammissione in PDF di Neuroanatomia solo su Docsity!

Chapter 6, Ethernet LAN Switching

Key Concepts

● Frame = Layer 2 PDU (Layer 2 header + payload + trailer). ● Switches are Layer 2 devices because they forward using the Ethernet header. Routers are Layer 3 because they forward using the IP header. ● Hop-to-hop delivery: Layer 3 addresses the final destination (IP address), while Layer 2 addresses the next hop (MAC address).

LAN Definition

● A LAN is defined by how devices are connected, not by physical distance. ● Another name for a LAN is a Layer 2 domain : hosts can communicate without a router. ● Switches connected directly to each other are in the same LAN. ● Switches connected through a router are separate LANs. The router separates them, so traffic between them must pass through it. The router separates the LANs

Ethernet Frame Structure

Field Size Purpose

Preamble 7 bytes Alternating 1s and 0s (10101010); lets the receiver sync its clock

SFD 1 byte Pattern 10101011; signals the frame is starting

Destination 6 bytes Destination MAC address

Source 6 bytes Source MAC address

Type/Length 2 bytes Type (EtherType) of the encapsulated packet or its length

Payload (varies) Encapsulated packet

FCS 4 bytes Error detection (trailer)

Header = Destination, Source, Type/Length. Trailer = FCS only.

Preamble & SFD

● Not part of the Ethernet frame , but sent with each frame. ● They are purely a Layer 1 (Physical) function. ● Purpose: the receiver synchronizes its receiver clock, meaning it determines the precise length of 1 bit. This has nothing to do with date and time.

Destination & Source

● The Destination MAC is used by the switch to forward the frame. ● The Source MAC is used by the switch to learn which port each host is on.

Type/Length (2 bytes)

● ≤ 1500 (decimal): indicates the length of the encapsulated packet in bytes. ● ≥ 1536: indicates the type of the encapsulated packet and is called the EtherType field. This is the usual case today. ● Values between 1500 and 1536 should not be used. ● EtherType values (memorize): ○ IPv4: 0x0800 (0d2048) ○ IPv6: 0x86DD (0d34525) ● Original IEEE 802.3 used the field only for length, with an LLC header (sometimes plus SNAP) to indicate type. This is beyond CCNA scope.

Frame Check Sequence (FCS)

● 4 bytes, in the trailer, used to detect corrupted data. ● Process: ○ The sender calculates a checksum and appends it as the FCS. ○ The receiver calculates its own checksum with the same algorithm. ○ If they match , the data is assumed uncorrupted. If they differ , the frame is discarded. ● The checksum type is a CRC (cyclic redundancy check) : ○ Cyclic refers to the type of algorithm. ○ Redundancy means the field adds size but no new information. ○ Check means it checks for corruption in transit. ● Corruption can be caused by things like electromagnetic interference. ● The FCS detects errors but does not correct them.

MAC Addresses

● 6 bytes (48 bits) , written as 12 hexadecimal characters. ● Used by Layer 2 protocols such as Ethernet and Wi-Fi. ● Assigned per port by the manufacturer, so each port has its own MAC address. ● Also called a burned-in address (BIA). ● Globally unique. ● Can be overridden by manual configuration, but this is extremely rare. ● First 3 bytes = OUI (Organizationally Unique Identifier), assigned to the manufacturer by the IEEE. A manufacturer can have multiple OUIs. ● Last 3 bytes = assigned by the manufacturer, unique to the port. These are typically sequential on the same device.

Expanding the document into more detailed notes.