ICND1 Part1
ICND1 Part1
Outlines
1. OSI Model
2. Ethernet Networking
3. TCP/IP model
4. IP Subnetting and VLSM
5. IP Routing
Chapter 1: OSI Model
Chapter 1: OSI Model| Introduction
What’s a Network?
Data
Data
Segment
Packet
Frame
Chapter 2: Ethernet Networking
Chapter 2: Ethernet| Introduction
• Ethernet Networks are Local Area Networks
• Allow hosts to share the same bandwidth of a link.
• Scalable, simple to implement and easy to troubleshoot
• Contention media access method using CSMA/CD (Carrier Sense
Multiple Access with Collision Detection)
• Use both Data Link and Physical layer specifications
Chapter 2: Ethernet | Introduction
Chapter 2: Ethernet| Data Link Layer
• 2 Sub-Layers:
Logical Link Control (LLC): IEEE 802.2
Media Access Control (MAC): IEEE 802.3
• 2 Types of Ethernet:
Full Duplex: send and receive data
Half Duplex: send or receive data
Chapter 2: Ethernet| Full Duplex
• Use of two pairs of wires
• 100 percent efficiency in both directions
• Used in three situations:
With a connection from a switch to a host
With a connection from a switch to a switch
With a connection from a host to a host using a crossover
cable
Chapter 2: Ethernet| Half Duplex
• One wire pair with a digital signal running in both directions on the
wire
• Contention based
• Collision may happen
Solution: Avoid collision with CSMA/CD
Chapter 2: Ethernet| CSMA/CD
• Carrier Sense Multiple Access with Collision Detection
• Function of MAC Sub-Layer
• CSMA/CD procedure:
The device checks the medium each time it wants to transmit data
If the medium is free, it sends its data.
Continue listening to the medium to be aware if a collision happens
If collision happens, it stops sending data and start sending jam signal
to inform all stations of the collision
Run Backoff Algorithm
Chapter 2: Ethernet| Backoff Algorithm
Start
Attempt <-- 1
No
Attempt ++ wait>0 wait - -
No
Is the medium free?
Yes
1st
Transmit bit of
the frame
Yes No
Collision Detected? Attempt > maxAttempt wait <-- rand(16)*Backoff
1st
Transmit bit of
the frame No
Transmission finished? Yes
No
Yes
Transmission successful Transmission
impossible
Chapter 2: Ethernet| Ethernet Addressing
• Hardware, physical, MAC addresses.
• Burned into every Ethernet network interface card (NIC)
Chapter 2: Ethernet| Ethernet Addressing
• Hardware address is a 48 bits (6 bytes).
• Represented in hexadecimal format.
• Locally or globally administered.
• If globally administered (by IEEE), it is a unique address.
• Example: 08:00:20:09:E3:D8
• First 3 bytes are the Organizationally Unique Identifier (OUI) to identify the
constructor.
• Example:
00:00:0C:XX:XX:XX Cisco
08:00:20:XX:XX:XX Sun
08:00:09:XX:XX:XX HP
Chapter 2: Ethernet| Ethernet Addressing
• Preamble: 7 bytes altering 1/0 bits: 7X (10101010). Used to alert stations to start
receiving the data.
• Start Frame Delimiter: 8 bits (10101011). Used to synchronize the receiver.
• Destination address: address of the receiving stations.
• Source Address: address of the transmitting device. It can only be a unicast
address.
• Length or Type: 802.3 uses a Length field to indicate the length of data .
Ethernet_II frame uses a Type field to identify what type of high-level network
protocol is being carried.
Chapter 2: Ethernet| Ethernet Frame
• Length or Type: 802.3 uses a Length field to indicate the length of data .
Ethernet_II frame uses a Type field to identify what type of high-level
network protocol is being carried.
• Data: The size of frame can vary from 64 to 1,500 bytes. This field must be
at least 46 bytes long.
46<= data + padding <= 1500
• Frame Check Sequence (CRC): error detecting code.
Chapter 2: Ethernet| Physical Layer
Segment 1 Segment 5
S2
Table of B2
C D Segment Stations
B2 S2 A,B,C,D
S3 E,F
S3
E F
Chapter 2: Ethernet| Hardware
Data Link Hardware
• Switch:
Multiport-Bridge
Hardware Based
Each port is a collision domain
Don’t forward collisions