Top Banner
The Saigon CTT Semester 1 Semester 1 CHAPTER 6 CHAPTER 6
41

The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Dec 22, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

Semester 1Semester 1

CHAPTER 6CHAPTER 6

Page 2: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

ContentContent

• LAN Standards.

• Hexadecimal Numbers.

• MAC Addressing.

• Framing.

• Media Access Control (MAC).

Page 3: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

LAN STANDARDSLAN STANDARDS

Page 4: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

Limitations of Layer 1Limitations of Layer 1

• Cannot organize streams of bits.

• Cannot name or identify computers.

• Cannot communicate with the upper-level layers.

• Cannot decide which computer will transmit binary data.

Page 5: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

Layer 2Layer 2

• Layer 2 uses framing to organize or group the bits.

• Layer 2 uses an addressing process to identify computers.

• Layer 2 uses Logical Link Control (LLC) to communicate with the upper-level layers.

• Layer 2 uses Media Access Control (MAC) to decide which computer will transmit.

Page 6: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

OSI and various LAN standardOSI and various LAN standard

Page 7: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

IEEEIEEE

• The Institute of Electrical and Electronic Engineers.

• LAN standards:

– 802.1d: Spanning tree.

– 802.2: LLC.

– 802.3: MAC ~ Ethernet.

– 802.5: MAC ~ Token ring.

– 802.11: Wireless LAN.

Page 8: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

IEEE LAN StandardIEEE LAN Standard

• Logical Link Control (LLC): Transitions up to the network layer.

• Media Access Control (MAC): Transitions down to media.

Page 9: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

Two Sub-layers Two Sub-layers WHYWHY ? ?

• LLC serves to communicate upward to Network layer, independent of the specific LAN technology used and Upper layer.

• MAC serves to access and communicate downward to the technology-specific Physical layer.

Page 10: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

LLCLLC

• PDU: Protocol data unit

• DSAP: Destination service access point

• SSAP: Source service access point

Packet

Packet

Packet

LLC PDU

Frame

Page 11: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

MACMAC

• Naming.

• Framing.

• Media access control rules.

Packet

Packet

Packet Packet

802.3 802.5

Page 12: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

4 Concepts of Layer 24 Concepts of Layer 2

1. Layer 2 uses framing to organize or group the data.

2. Layer 2 uses a flat addressing convention.

3. Layer 2 communicates with the upper-level layers through LLC.

4. Layer 2 uses MAC to choose which computer will transmit binary data, from a group in which all computers are trying to transmit at the same time.

Page 13: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

ReviewReview

• 2 sub-layers of data link layer.

• Functions of LLC.

• Functions of MAC.

• 4 concepts of layer 2.

Page 14: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

MAC ADDRESSINGMAC ADDRESSING

Page 15: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

MAC AddressMAC Address

• Every computer has a unique way of identifying itself : MAC address or physical address.

• The physical address is located on the Network Interface Card (NIC).

• MAC addresses have no structure, and are considered flat address spaces.

Page 16: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

MAC address formatMAC address format

The first six hexadecimal digits, which are administered

by the IEEE, identify the manufacturer or vendor.

The remaining six hexadecimal digits comprise the interface serial number.

Page 17: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

MAC addressMAC address

• MAC addresses are sometimes referred to as burned-in addresses (BIAs) because they are burned into read-only memory (ROM) and are copied into random-access memory (RAM) when the NIC initializes.

• 0000.0c12.3456 or 00-00-0c-12-34-56.

Page 18: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

Using MAC addressesUsing MAC addresses

A DData A DData A DDataA DData

Source Address

Destination Address

Page 19: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

EncapsulationEncapsulation

Page 20: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

Limitation of MACLimitation of MAC

• Flat, does not work well in internetwork.

• Hardware dependent.

Page 21: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

ReviewReview

• MAC address structure.

• Limitation of MAC.

Page 22: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

FRAMINGFRAMING

Page 23: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

EncodingEncoding

• Encoding is the process of converting information into a form that can travel on a physical link.

Page 24: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

Why framing is necessary?Why framing is necessary?

• Which computers are communicating with one another.

• When communication between individual computers begins and when it terminates.

• A record of errors that occurred during the communication.

• Whose turn it is to “talk” in a computer “conversation”.

Page 25: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

Frame format diagramFrame format diagram

Page 26: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

Frame format diagramFrame format diagram

• The frame format diagram shows different groupings of bits (fields) that perform other functions.

• Read them from left to right.

Page 27: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

Generic frame formatGeneric frame format

• There are many different types of frames described by various standards.

Page 28: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

Start frame fieldStart frame field

• The Start Frame field tells other devices on the network that a frame is coming down the wire.

Page 29: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

Address fieldAddress field

• The Address field stores the source and destination MAC addresses.

Page 30: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

Length/Type fieldLength/Type field

• The Type/Length field is an optional field used by some protocols to either state what type of data is coming or possibly the length of the frame.

Page 31: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

Data fieldData field

• The Data field is the actual information being sent by the upper layer protocols. Therefore, it will be all upper layer data.

Page 32: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

Stop frame fieldStop frame field

• The Stop Frame field, also called the Frame Trailer, is an optional field that is used when the length of the frame was not specified in the Type/Length field.

Page 33: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

ReviewReview

• Generic frame format.

Page 34: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

MEDIA ACCESS CONTROLMEDIA ACCESS CONTROL

MACMAC

Page 35: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

Definition MACDefinition MAC

Page 36: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

Definition MACDefinition MAC

• Specified by the technology being used.

• Determine who can transmit and when.

• Two types:

– Deterministic: “Let’s take turns”.

• Token-Ring, FDDI.

– Non-deterministic: “First come, first serve”.

• Ethernet : CSMA/CD.

Page 37: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

Deterministic MAC protocolDeterministic MAC protocol

Page 38: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

Non-deterministic MAC protocolNon-deterministic MAC protocol

• Carrier Sense Multiple Access with Collision Detection (CSMA/CD). 

Page 39: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

CSMA/CDCSMA/CD

Page 40: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

LAN TechnologiesLAN Technologies

• Ethernet: logical broadcast topology

• Token Ring: logical token ring topology

• FDDI: logical token ring topology

Page 41: The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).

Th

e S

aig

on

CT

T

ReviewReview

• Function of MAC layer.

• Type of MAC protocols.