• No results found

lec-12 (ethernet)

N/A
N/A
Protected

Academic year: 2020

Share "lec-12 (ethernet)"

Copied!
22
0
0

Loading.... (view fulltext now)

Full text

(1)

Lec # 12

Computer communucation and Networks

(2)

Ethernet

History

↗ Ethernet is the most widespread

LAN technology

↗ Ethernet was

developed at Xerox (1973) inspired by ALOHAnet

which

Robert Metcalfe had studied as part of his PhD dissertation

↗ Standardized by Xerox/DEC/Intel in 1978

↗ Ethernet was officially

accepted as IEEE standard 802.3 in 1985

(3)

Ethernet & IEEE 802.3

What the IEEE standard covers- Physical layer and interface to the link layer.

IEEE 802.2 is the Link layer standard.

Differences between Ethernet and 802.3

1-There are some electrical and connector

differences; most

equipment uses IEEE 802.3.

2-There is difference in the header. DIX uses

TYPE,

802.3 uses LENGTH. SInce the frame is limited

in size, the two coexist.

(4)

IEEE & OSI

PHY

MAC

LLC

Data link

1-

(5)

Ethernet

Why Ethernet became so popular

↗ Easy to understand, implement, manage, and maintain

↗ Low-cost network implementations

↗ Topological flexibility for network installation

(6)

Frame Format

(7)

Ethernet

↗ Preamble:Starts with 7 bytes of 1010101 to get timing synchronized

↗ SFD: indicate the frame is starting (10101011) , 1- byte

↗ PDU or Frames: headers (addresses + length/type) ↗ 802.3 standard substitutes length with type field

↗ The Length/EtherType: In 802.3 it indicates the number of bytes of data in the frame from 0 to 1500 bytes. Frames must be at least 64 bytes long, not including the preamble, so, if the data field is shorter than 46 bytes, it must be compensated by the

Pad field (padding bytes).

↗ Type field is the first thing in data portion

↗ Data (46-1500), add bits if necessary to get to 46 bytes. ↗ CRC-32 FCS for error checking

Preamble SFD Destination Address

Source

Address Length Data + Pad FCS

7 1 6 6 2 46-1500 4

Frame Format (Ethernet & 802.3)

(8)

Ethernet

Ethernet Addresses

↗ MAC address, short for Media Access Control address, a hardware address that uniquely identifies each node on a network

↗ When a manufacturer creates a network capable piece of hardware they will assign the MAC address which will usually begin with a code that is tied to the manufacturer

↗ It will be unique to every device, even two devices of the same type.

↗ A device’s MAC address is composed of six pairs of hexadecimal numbers ↗ The numbers are separated by colons as in the following example:

↗ 6E:51:F5:C1:11:00

(9)

Ethernet

Ethernet Address

↗ The first three octets identify the organization that issued the identifier and are known as the Organizationally Unique Identifier (OUI)

↗ The following three octets are assigned by that organization in nearly any manner they please, subject to the constraint of uniqueness

(10)

Ethernet

Ethernet Addresses Types

↗ Unicast; unique, 48-bit address assigned to each adapter ↗ Examples:

↗ 01:23:45:67:89:AB ↗ 08:00:07:A9:B2:FC ↗ Broadcast: all 1s

(11)

Normal Ethernet Operation

A B D Data C Address mismatch

packet discarded Address mismatchpacket discarded

Address match packet processed Send data

to node D

Transmitted packet seen by all stations on the LAN

(12)

Ethernet Collisions

A

B C

D

Collision

(13)

Ethernet

• Two stations (2 and 4) communicating using a single bus

(14)

Ethernet

How Ethernet Works

Shared Media Problem

↗ Problem: demands can conflict, e.g., two hosts send simultaneously ↗ Solution is a medium access control (MAC) algorithm

(15)

Ethernet

Need for an Access Method

↗ Whenever multiple users have unregulated access to a single line, there is a danger of signals overlapping and destroying each other

↗ Such overlaps which turn signals to noise are called Collisions ↗ As traffic increases on multiple-access link, so do collisions

↗ Such a network therefore needs a mechanism to coordinate traffic, minimize the number of collisions and maximizes the number of frames that are delivered successfully

(16)

Ethernet

Ethernet MAC –

CSMA/CD

(Carrier Sense Multiple Access/Collision Detection)

↗ Multiple access

↗ Nodes send and receive frames over a shared link ↗ Carrier sense

↗ Nodes can distinguish between an idle and busy link ↗ Collision detection

(17)

Ethernet

Ethernet MAC –

CSMA/CD

MAC Algorithm

↗ If line is idle (no carrier sensed) ↗ Send immediately

(18)

Ethernet

Ethernet MAC –

CSMA/CD

MAC Algorithm

↗ If line is busy (carrier sensed)

↗ Wait until the line becomes idle and then transmit immediately ↗ Called 1-persistent (special case of p-persistent)

↗ If collision detected

(19)

Ethernet MAC (CSMA/CD)

Packet? Sense Carrier Discard Packet Send Detect Collision Jam channel b=CalcBackoff(); wait(b); attempts++; No Yes

attempts < 16

attempts == 16

(20)

Ethernet’s CSMA/CD (more)

Jam Signal:

make sure all other transmitters are aware of

collision; 48 bits;

Exponential Backoff:

If deterministic delay after collision, collision will occur

again in lockstep

If random delay with fixed mean

Few senders

needless waiting

Too many senders

too many collisions

(21)

Ethernet

Switched Ethernet

↗ No need Of MAC

↗ No collision because of the micro level segmentation ↗ Switches performs the switching between hosts

(22)

Ethernet

Ethernet Flavors

10Base5 10BaseT 10baseFL 100BaseTX 100BaseFX Media Thick coax

RG-8, RG-11 TIA/EIA UTP Cat 3,4,5,5e,6 (2 pair) 62.2/125 m Multi-mode Fiber TIA/EIA UTP Cat 5 and up (2 pair) 62.2/125 m Multi-mode Fiber Or Single mode fiber Speed 10 Mbps 10 Mbps 10 Mbps 100 Mbps 100 Mbps

Max Seg. Length

References

Related documents

In this work we study the collision probability, saturation throughput and packet error rate for the carrier sense multiple access collision avoidance (CSMA/CA) protocol with request

Occurring during the ongoing COVID-19 pandemic, where the EU remains in lockdown and faces an impending economic crisis, the German-led EU Council presidency succeeded in

Graduates who complete a PGD programme and an internship will be eligible to progress to the MIB, Master of International Business in Hotel, Resort and Spa Management or in Food

Ethernet technology uses broadcast topology with baseband signaling and a control method called Carrier Sense Multiple Access/Collision Detection.. (CSMA/CD) to

In April 2015, the Central Research Laboratory, Hitachi Research Laboratory, Yokohama Research Laboratory, Design Division, and the overseas research centers were realigned

We consider the problem of ad hoc microphone array calibration where the distance matrix consisted of all microphones pairwise distances have entries missing corresponding to

You will benefit from the real world experiences of peers “in the trenches”; the deep experience and best practices of our on-site outsourcing providers; and the high-level insight

The out-of-pocket limit is the most you could pay during a coverage period (usually one year) for your share of the cost of covered services.. This limit helps you plan for