12
1 Layer 2: Concepts Honolulu Community College Cisco Academy Training Center Semester 1 Version 2.1.1

1 Layer 2: Concepts Honolulu Community College Cisco Academy Training Center Semester 1 Version 2.1.1

Embed Size (px)

Citation preview

Page 1: 1 Layer 2: Concepts Honolulu Community College Cisco Academy Training Center Semester 1 Version 2.1.1

1

Layer 2: Concepts

Honolulu Community College

Cisco Academy Training Center

Semester 1

Version 2.1.1

Page 2: 1 Layer 2: Concepts Honolulu Community College Cisco Academy Training Center Semester 1 Version 2.1.1

2

Overview Access to the networking media Physical addressing Error notification, network topology, and flow

control How the data link layer provides reliable transit

of data across a physical link by using the Media Access Control

Technology-independent IEEE 802.2 LLC standard

Grouping of bits - framing

Page 3: 1 Layer 2: Concepts Honolulu Community College Cisco Academy Training Center Semester 1 Version 2.1.1

3

IEEE Institute of Electrical and Electronic Engineers Professional organization that defines network

standards Standards include IEEE 802.2, IEEE 802.3, and

IEEE 802.5 Best known LAN standards in the world today Only involves the two lowest layers Divides the OSI layer 2 into the MAC sublayer

(transitions down to media) and the LLC sublayer (transitions up to network layer)

Page 4: 1 Layer 2: Concepts Honolulu Community College Cisco Academy Training Center Semester 1 Version 2.1.1

4

Logical Link Control Allows part of the data link layer to function

independently from existing technologies Participates in the encapsulation process - there

is an LLC PDU Adds two addressing components of the 802.2

specification - the Destination Service Access Point (DSAP) and the Source Service Access Point (SSAP).

Repackaged IP packet passed to MAC sublayer for handling by the required technology.

Page 5: 1 Layer 2: Concepts Honolulu Community College Cisco Academy Training Center Semester 1 Version 2.1.1

5

Media Access Control Coordinates access to specific physical media. Controls access to media; example access

methods are CSMA/CD and token passing. Used to determine which host has access to the

media at any given point in time.

Page 6: 1 Layer 2: Concepts Honolulu Community College Cisco Academy Training Center Semester 1 Version 2.1.1

6

How NIC’s use MAC’s When a source device sends data out on an Ethernet

network, the data carries the MAC address of its intended destination. As this data propagates along the network media, the NIC in each device on the network checks to see if its MAC address matches the physical destination address carried by the data packet. If there is no match, the NIC discards the data packet.

As data travels along the wire, the NIC in each station checks it. The NIC verifies the destination address in the frame header to determine if the packet is properly addressed. When the data passes its destination station, the NIC for that station makes a copy, takes the data out of the envelope and gives it to the computer.

Page 7: 1 Layer 2: Concepts Honolulu Community College Cisco Academy Training Center Semester 1 Version 2.1.1

7

Framing

A frame is layer 2 PDU. Framing allows for: determining which

computers are communicating with one another, when communication between individual computers begins, and when it terminates

Allows for dealing with errors that occurred during the communication

Page 8: 1 Layer 2: Concepts Honolulu Community College Cisco Academy Training Center Semester 1 Version 2.1.1

8

Frame Formats

The portions of a frame are called fields. Each field is composed of bytes.

"Here comes a frame!"

Source and Dest.

Page 9: 1 Layer 2: Concepts Honolulu Community College Cisco Academy Training Center Semester 1 Version 2.1.1

9

Frame Formats (cont.)

In some technologies, a length field specifies the exact length of a frame. Some have a type field, which specifies the Layer 3 protocol making the sending request. There is also a set of technologies where no such fields are used.

Page 10: 1 Layer 2: Concepts Honolulu Community College Cisco Academy Training Center Semester 1 Version 2.1.1

10

Frame Formats (cont.) There are three primary ways to calculate

the Frame Check Sequence number: cyclic redundancy check (CRC) - performs

polynomial calculations on the data

two-dimensional parity - adds an 8th bit that makes an 8 bit sequence have an odd or even number of binary 1's

Internet checksum - adds the values of all of the data bits to arrive at a sum

Page 11: 1 Layer 2: Concepts Honolulu Community College Cisco Academy Training Center Semester 1 Version 2.1.1

11

Summary

IEEE defines LAN standards. IEEE divides OSI Layer 2 into LLC and

MAC sublayers. MAC controls access to media -

deterministic or otherwise. Framing organizes bit stream - frame

format has fields containing bytes of various types of information.

Page 12: 1 Layer 2: Concepts Honolulu Community College Cisco Academy Training Center Semester 1 Version 2.1.1

12

The End