Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

54
Layer One and Two LAN Networking Wires and connections Station to station packet transmission

Transcript of Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Page 1: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Layer One and Two LAN Networking

Wires and connectionsStation to station packet transmission

Page 2: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

OSI:Open SystemsInterconnectionReference Model

LAN

Page 3: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Application

Presentation

Session

Transport

Network

Data Link

Physical

©”A Guide to Networking Essentials”, 1998, Course Technology.

OSI Reference Model

Page 4: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Open Systems Interconnection (OSI)

International StandardWritten to be a manufacturing

standard, but never builtUsed as a vocabulary short handApplies to all extensions of networks

Page 5: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

OSI Reference Model

7. Application layer6. Presentation layer5. Session layer

UserPrograms

4. Transport layer3. Network layer

WAN

2. Data link layer1. Physical layer

LAN

Page 6: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

OSI Layer 1

Local Area Network protocolsPhysical layer:

standards for physical connections (e.g. plugs and connectors)

Responsible for getting bits from one location to another.

Medium Connectors Representation of signals

Page 7: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Media

Twisted Pair Copper Wireshielded vs unshieldedplenum vs PVC

Coaxial Copper Cablethinnet and thicknet

Fibersingle mode and multi-mode

MicrowaveInfrared, Radio

Page 8: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Unshielded Twisted Pairs

Cheapest alternative for LAN cablingAlready exists in most officesAdapts to star wiring and hub systemsTrend in modern LAN installationsNew technologies adapt to itShielded cable used where electronic

interference a problem

Page 9: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Cat 5 Twisted Pair Wiring

Page 10: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Twisted Pair SignalsReverse phases to cancel noise

LINE 1 +

LINE 2 -

Page 11: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Cable categories

Cable Type UseLevel 1 Voice & low speed dataLevel 2 Data to 4 MbpsCategory 3 LAN to 10 MbpsCategory 4 LAN to 20 MbpsCategory 5 LAN to 100 Mbps

Page 12: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Twisted Pair Connectors

Wiring Pairs blue, white-blue orange, white-orange green, white-green brown, white-brown

RJ-11 and RJ-45D connectors

Page 13: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

RJ-45 (Registered Jack 45): 8 wires for Ethernet

Page 14: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

RJ-11 (4 or 6 wire versions) for telephones

Page 15: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Unshielded Twisted Pairs

Phones use 1 pair10BaseT uses 2 pairs of Category 5

copper100BaseT uses 2 pairs of Category 5

copper100BaseFX uses multimode fiber

Page 16: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

10BaseT Ethernet Wiring

Page 17: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Fiber Optic Cables

Longer distancesHigh data rate requirementsHigh interference situationsHigh security situationsConnections more difficult than with

UTP

Page 18: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Fiber Optic

8/125 micron

62.5/125 micron

SingleMode

MultimodeLED

Laser

Up to 50 miles

Up to 2000 meters

Page 19: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Fiber-optic Connectors

Page 20: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Wireless

InfraredRadio

Microwave Radio Frequency

Spread Spectrum & Wi-Fi (IEEE 802.11)

Wireless security

Page 21: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Wireless LAN Access

Page 22: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Local Area Networks

Layer 2

Page 23: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

"Gentlemen! Start — your — laptops!"

Copyright 1998 Doug Adams

Page 24: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Local Area Networks

Networks that move data from station to station using a common set of layer 1 and layer 2 protocols. Common broadcast domain Local ownership Common operating system Machine ID addressing

Page 25: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Application

Presentation

Session

Transport

Network

Data Link

Physical

©”A Guide to Networking Essentials”, 1998, Course Technology.

OSI Reference Model

Page 26: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Data Link - Layer 2

2. Data link layer:

protocols for error free transmission from station to station The data link is responsible for node to node validity and integrity of the transmission. The transmitted bits are divided into frames; for example, an Ethernet, Token Ring or FDDI frame in local area networks. Layers 1 and 2 are required for every type of communications.

Page 27: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Data Link - Layer 2 functions

Media access Gain access to the network

Data delineation Start &stop characters,delimiters, frame formats

Error control Trailers: e.g. cycleredundancy checks (CRC)

Addressing MAC addresses (48 bitpermanent device ID’s)

Transparency Special codes in data notinterpreted as delineation

Code independence ASCII, EBCDIC or anyother code accepted

Page 28: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Data Link Sub-layers

Media Access Control (MAC) Standards for addressing and

locating nodesLogical Link Control (LLC)

Standards for communication with higher layers

Page 29: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

LAN Operating Protocols

Ethernetopen standard, cheap, most common

Token RingIBM proprietary, high quality, expensive

Others

Page 30: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Network Interface Cards

Build, send out and accept framesUsually a daughter board on PCMust match LAN and CPURequire drivers to operate

Page 31: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Network Interface Cards (NIC)

Page 32: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

EthernetCarrier Sense Multiple Access/Collision Detection

HeaderBodyTrailer

Listen before transmitContention accessRetransmit on collision

Page 33: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Ethernet:CSMA/CD (IEEE 802.3)

Carrier Sense Multiple Access with Collision Detection Compare channel voltage to reference

level Any node can transmit if channel free Collision detection during transmission

JammingRandom back off

Slot time and minimum packet size

Page 34: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Manchester Encoding(self-clocking bit stream)

0 1 0High-to-Low = 0Low-to-High = 1

Switch voltage ateach time point

Page 35: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Ethernet Packets

SynchronizationData transparencyMAC addressesMinimum lengthError checkAlternate Ethernet packet formats

Page 36: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Ethernet Packet Structure

Section Length Contents

Preamble 7 bytes 10101010 (7X)

Start Frame Delimiter

1 byte 10101011

Destination 6 bytes MAC destination

Source 6 bytes MAC source

Length 2 bytes Number of bytes in data field

Data 46 – 1500 bytes

Message

Check Sequence

4 bytes Cyclical redundancy check field

Page 37: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Administration

AcknowledgementsAddress announcements

(identification)Slot timeCard streamingHub access10BaseT, 100BaseT, Gigabit Ethernet

Page 38: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

10BaseT Specifications(Twisted Pair Ethernet)

100 m to hub1024 stations per network10 mbpsUTPStar/bus

Page 39: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

LAN Logical/Physical Topologies

Bus

Ring

Star

Page 40: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Network Logical Topologies

Topologies are determined by the technologies that run the network

Bus:Ethernet

Ring:Token ringSONET, FDDI

Star:MainframeSwitched Ethernet

Page 41: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Ethernet: Physical Star, Logical Bus

Page 42: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

LAN with hubs

Page 43: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Hubs or Switches

Page 44: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Switches (Layer 2)

Route packets to destination nodes based on MAC addresses Limit traffic on unused branches Provide additional security Connect 10Mb and 100Mb branches

Operate in firmware

Page 45: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Switch (CISCO Catalyst 1928)

Page 46: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Ethernet Switching

Page 47: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Token Ring (IEEE 802.5)

Allocated access via electronic tokenPriority access reservationConfirmed packet deliveryMultiple monitor functions

Page 48: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Token Ring

Page 49: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Token Ring

Message

CRC HeaderBody

HeaderBody

HeaderBodyToken accessEqual accessCollision avoidance

CRC

CRC

Page 50: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Empty Token Structure

Block Use Bytes

Starting Delimiter Begin Token 1

Access Control PriorityTokenMonitorReservation

1

Ending Delimiter End Token 1

Page 51: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Dataframe Token Structure

Bytes

Start delimiter 1 Code violations

Access control 1 Priority, Token,Monitor, Reservation

Frame control 1 Logical Link or MAC

Destination address 6

Source address 6

Data To 4,500

Frame check sequence 4 Error detection

Ending delimiter 1 Code violations

Frame Status 1 Address recognized,Copied?

Page 52: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Topology: Logical or Physical?

Bus

Ring

Star

Page 53: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.

Network Topologies

Topologies are determined by the technologies that run the network

Bus:Ethernet

Ring:Token ringSONET, FDDI

Star:MainframeSwitched Ethernet

Page 54: Layer One and Two LAN Networking Wires and connections Station to station packet transmission.