1 ch 9 hardware addressing and frame type identification

21
1 Ch 9 Hardware Addressing and Frame Type Identification

Upload: janis-hoover

Post on 05-Jan-2016

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1 Ch 9 Hardware Addressing and Frame Type Identification

1

Ch 9 Hardware Addressing and Frame Type Identification

Page 2: 1 Ch 9 Hardware Addressing and Frame Type Identification

2

Specifying a RecipientSpecifying a RecipientAll stations on shared-media LAN receive all

transmissionsTo allow sender to specify destination

Each station assigned a unique numberKnown as station’s physical address, hardware

address, or media access address (MAC address)Each frame contains address of intended

recipient in the header (also the sender’s address)

Page 3: 1 Ch 9 Hardware Addressing and Frame Type Identification

3

Conceptual Frame FormatConceptual Frame Format

Each LAN technology defines the exact formatHeader

Contains address and type informationFixed size

PayloadContains data being sentVariable in size

Page 4: 1 Ch 9 Hardware Addressing and Frame Type Identification

4

Illustration Of Ethernet Frame

Illustration Of Ethernet Frame

Sender places64-bit alternating 1s and 0sSender’s address in sourceRecipient’s address in destinationType of data in frame typeCyclic redundancy check in CRC

Page 5: 1 Ch 9 Hardware Addressing and Frame Type Identification

5

Ethernet AddressingEthernet Addressing

Standardized by IEEEEach station assigned by unique 48-bit

address (demo)Address assigned when network interface

card (NIC) manufacturedDemo: ipconfig /all

Page 6: 1 Ch 9 Hardware Addressing and Frame Type Identification

6

Use Addresses to Filter Packets

Use Addresses to Filter Packets

LAN interface HW handles Sending and receiving framesChecks frame length and CRCCompare the destination address in the received

frame Accept or discard (filter packets)

NICCPU

MemoryLAN

Computer

Page 7: 1 Ch 9 Hardware Addressing and Frame Type Identification

7

Ethernet Address Recognition

Ethernet Address Recognition

Each frame contains destination addressAll stations receive a transmissionStation discards any frame addresses to

another stationImportant: interface hardware, not software,

checks address

Page 8: 1 Ch 9 Hardware Addressing and Frame Type Identification

8

Possible DestinationsPossible Destinations

Packet can be sent to:Single destination (unicast)All stations on network (broadcast)Subset of stations (multicast)

Address used to distinguish

A B C D E F

Page 9: 1 Ch 9 Hardware Addressing and Frame Type Identification

9

Advantages of Address Alternatives

Advantages of Address Alternatives

UnicastEfficient for interaction between two computers

BroadcastEfficient for transmitting to all computers

MulticastEfficient for transmitting to a subset of

computers

Page 10: 1 Ch 9 Hardware Addressing and Frame Type Identification

10

Broadcast on EthernetBroadcast on EthernetSender

Places broadcast address in frameAll 1s address specifies a broadcastTransmits one copy on shared networkAll stations receive the copy

Receiver always accepts BC frame

CRC

Page 11: 1 Ch 9 Hardware Addressing and Frame Type Identification

11

Multicast on EthernetMulticast on EthernetA B C D E F

Group 1: AC 1000…01Group 2: CDF 1000…11

Page 12: 1 Ch 9 Hardware Addressing and Frame Type Identification

12

Multicast on EthernetMulticast on EthernetHalf addresses reserved for multicast (start

with a 1 bit)Network interface card

Always accepts unicast and broadcastCan be programmed to accept zero or more

multicast addressesSoftware

Determines multicast address to acceptInforms NIC

Page 13: 1 Ch 9 Hardware Addressing and Frame Type Identification

13

Promiscuous ModePromiscuous Mode

Allows interface to accept all framesDesigned for testing / debuggingAvailable on most interface hardware

Page 14: 1 Ch 9 Hardware Addressing and Frame Type Identification

14

Network AnalyzerNetwork Analyzer

Listens in promiscuous mode for testing and maintenance

ProducesSummaries (e.g., % of broadcast frames)Specific items (e.g., frames from a given address)

ExampleEthereal http://www.ethereal.com/ (WinPcap_3_0.exe and ethereal-setup-0.10.2.exe)Sniffer

Page 15: 1 Ch 9 Hardware Addressing and Frame Type Identification

15

Page 16: 1 Ch 9 Hardware Addressing and Frame Type Identification

16

ExerciseExercise

Use the Ethereal to find the physical address of computers on a LAN

Page 17: 1 Ch 9 Hardware Addressing and Frame Type Identification

17

End

Page 18: 1 Ch 9 Hardware Addressing and Frame Type Identification

18

Identifying Frame Contents

Identifying Frame Contents

Integer type field tells recipient the type of data being carried

For example, e-mail, web pages, or text filesTwo possibilities

Self-identifying or explicit type (network hardware includes a type field in each frame)

Implicit type (application sending data must handle type)

Page 19: 1 Ch 9 Hardware Addressing and Frame Type Identification

19

Example Ethernet TypesExample Ethernet Types

Page 20: 1 Ch 9 Hardware Addressing and Frame Type Identification

20

When Network HardwareDoes Not Include Types

When Network HardwareDoes Not Include Types

Sending and receiving computers must agreeTo only send single type of dataTo put type information in first few octets of

payload

QuestionsWhat size should the type information be?Meaning of type value? Multiple standards

Page 21: 1 Ch 9 Hardware Addressing and Frame Type Identification

21

A Standard For Type Information

A Standard For Type Information

Defined by IEEE, called LLC / SNAP headerLLC portion specifies that a type field followsSNAP portion contains 2 fields

Organizationally Unique IdentifierTYPE