Ethernet frame format

24
1 Ethernet Frame Format

Transcript of Ethernet frame format

Page 1: Ethernet frame format

1

Ethernet Frame Format

Page 2: Ethernet frame format

9EC606A.35 2

Objectives

• Ethernet characteristics

• Ethernet Frame Format

Page 3: Ethernet frame format

3

Ethernet

• Trade mark of Xerox Corporation

• Invented at Xerox PARC in 1976

• Standardised by IEEE in 1978

• Popular for LAN

• Uses Packet Switching Technology

Page 4: Ethernet frame format

4

Ethernet

• Xerox PARC

• CSMA / CD

• 2.94 Mbps

• No length field in Packet Header

• IEEE

• 1 – Persistent CSMA / CD

• 1 – 10 Mbps

• Length field in Packet Header

Page 5: Ethernet frame format

5

Ethernet

• Ether refers to the ‘Cable’. Its variants are

• 10 base 5

• 10 base 2

• 10 base T

• 10 base F

Page 6: Ethernet frame format

6

10 Base 5 – Called Thick Ethernet4

• Resembles yellow garden hose

• Marking for every 2.5 meters

• Connections are made using vampire taps

• Can run for 500 meters

• Can handle 100 machines

Page 7: Ethernet frame format

9EC606A.35 7

10 Base 2 – Called Thin Ethernet

• Bends easily

• Connections can be made using BNC to for

T-junction

• Can run over 100 meters

• Can handle 30 machines

• Cheaper and Easier to install

Page 8: Ethernet frame format

8

10 Base T – Twisted Pair

• Easy maintenance

• Can run over 100 meters

• Can handle 1024 machines

Page 9: Ethernet frame format

9

10 Base F – Fibre Optics

• Best choice of using between two buildings or widely separated Hubs

• Run over 2000 meters

• Can handle 1024 machines

• Excellent Noise Immunity

• More Expensive

Page 10: Ethernet frame format

10

Fig.1

ETHERNET CONNECTIONS

Page 11: Ethernet frame format

11

Encoding

• Is a way to determine the start, end, or middle of each bit

• There are two approaches

• Manchester encoding

• Differential Manchester encoding

Page 12: Ethernet frame format

12

Manchester Encoding

• Each bit period is divided into two equal intervals

• Binary 1 is sent by having the voltage set high during the first interval & low in the second interval

• Binary 0 is just reverse

Disadvantage– Requires twice the Band width than straight binary encoding

Page 13: Ethernet frame format

13

Differential Manchester Encoding

• A binary 1 is indicated by the absence of a transition at the start of the interval

• A binary 0 is indicated by the presence of transition at the start of the interval

• Advantage– Better noise immunity

• Disadvantage– Requires more complex equipment

Page 14: Ethernet frame format

14

IEEE 802.3 Frame Format

Page 15: Ethernet frame format

15

Preamble

• Length of the field is 7 bytes.

• Each byte contain the bit pattern of 10101010.

• Manchester encoding produces a square

wave for this bit pattern with.

• Frequency of 10 MHz.

• Time period of 5.6 sec.

Page 16: Ethernet frame format

16

IEEE 802.3 Frame Format

• Start of Frame delimiter– Contains 10101011 to indicate the start of Frame

• Source Address– Contains either 2 bytes or 6 bytes

• Destination Address– Contains either 2 bytes or 6 bytes– For ordinary addressing the higher order bit is 0– For group addressing the higher order bit is 1 i.e Multicasting– For Broadcasting of the frame in the network all the bits are made as 1’s

SFD D Address S AddressPreamble

Page 17: Ethernet frame format

17

IEEE 802.3 Frame Format

Length – Tells how many bytes are present in the data field 0 to a maximum of 1500

– A data field of 0 bytes is legal, it causes a problem

– When a computer detects a collision, it truncates the current frame which means that corrupted frames appear on the cable all the time

– To make it easier to distinguish valid frames from corrupted frames (due to collisions), 802.3 states that valid frames to be at least 64 bytes long from destination address to checksum

Preamble SFD D Address S Address Length

Page 18: Ethernet frame format

18

IEEE 802.3 Frame Format

• Pad field

If the data portion is less than 46 bytes, the pad

field is used to fill out the frame to the minimum

size of 64 bytes

• Checksum

The Checksum is used to detect if any data bits

have been corrupted during transmission

Preamble SFD D Address S Address Length Data Pad Checksum

Page 19: Ethernet frame format

19

IEEE 802.3 Ethernet LANs

When a computer wants to receive a frame it

• Listens to all frames traveling on the cable

• If the frame address is the same as the computer’s address or the same as the group address of the computers of which it is a member, it copies the frame from the cable

• Otherwise it just ignores the frame

Page 20: Ethernet frame format

20

Summary

In this class, you have learnt about

• Different types of Ethernet cables

• Encoding

• All the fields of Frame Format

Page 21: Ethernet frame format

21

• Unicast a frame from one computer to any other computer connected to the same cable

• Broadcast a frame from one computer to all other computers connected to the same cable

• Multicast a frame from one computer to a subset of the computers connected to the same cable

Summary

Page 22: Ethernet frame format

22

Quiz

1. In Ethernet the valid frame size is

(a) 64 bytes

(b) 16 bytes

(c) 46 bytes

(d) 32 bytes

Page 23: Ethernet frame format

23

2. A frame containing all 1’s in the destination field is for

(a) Unicasting

(b) Broadcasting

(c) Multicasting

Quiz

Page 24: Ethernet frame format

24

Frequently Asked Questions

1. Explain Ethernet frame format?

2. List the various types of Ethernet cables