Introduction to Ethernet and lab3.3

Similar documents
Introduction to Ethernet. Guy Hutchison 8/30/2006

Part3. Local Area Networks (LAN)

EE-379 Embedded Systems and Applications Introduction to Ethernet

Canova Tech The Art of Silicon Sculpting

Link Layer and Ethernet

Link Layer and Ethernet

Clause BASE-X Physical Coding Sublayer (PCS) UNIVERSITY of NEW HAMPSHIRE INTEROPERABILITY LABORATORY

Ethernet 101 Siemens Industry Inc All rights reserved. usa.siemens.com/industry

Introductory to Computer Networks Local Area Networks. Lecture 16 Fall Isfahan University of technology Dr.

CCNA Exploration Network Fundamentals. Chapter 09 Ethernet

Canova Tech The Art of Silicon Sculpting

Ethernet Basics. based on Chapter 4 of CompTIA Network+ Exam Guide, 4 th ed., Mike Meyers

10/100M Ethernet-FIFO convertor

Discontinued IP. OPB Ethernet Lite Media Access Controller (v1.01b) Introduction. Features. LogiCORE Facts

Lecture 4b. Local Area Networks and Bridges

CS 43: Computer Networks Switches and LANs. Kevin Webb Swarthmore College December 5, 2017

Lecture 9 The Data Link Layer part II. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

PHY-Less Ethernet Implementation Using Freescale Power Architecture Based Microprocessors

Summary of MAC protocols

Medium Access Protocols

Data Link Layer, Part 3 Medium Access Control. Preface

DP83848 Single 10/100 Mb/s Ethernet Transceiver Reduced Media Independent Interface (RMII ) Mode

Canova Tech. IEEE Plenary Meeting, San Diego (CA) cg draft 2.0 PLCA (Clause 148) Overview July 9 th, 2018

Lecture 6 The Data Link Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Lecture 7: Ethernet Hardware Addressing and Frame Format. Dr. Mohammed Hawa. Electrical Engineering Department, University of Jordan.

Physical and Link Layers. CS144 Review Session 6 November 6 th, 2008 Roger Liao Based on slides by Ben Nham

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 18

Lecture 5 The Data Link Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

The Link Layer II: Ethernet

The Link Layer and LANs: Ethernet and Swiches

80220/ BASE-TX/10BASE-T Ethernet Media Interface Adapter

ECE 158A: Lecture 13. Fall 2015

ECE 4450:427/527 - Computer Networks Spring 2017

CSC 4900 Computer Networks: Link Layer (2)

Tri-Speed Ethernet MAC IP User Guide

Computer and Network Security

Housekeeping. Fall /5 CptS/EE 555 1

Networking Technologies and Applications

Canova Tech The Art of Silicon Sculpting

Data Link Layer, Part 5. Medium Access Control

Computer Networks Medium Access Control. Mostafa Salehi Fall 2008

Ethernet. Network Fundamentals Chapter Cisco Systems, Inc. All rights reserved. Cisco Public 1

Data Link Layer. Our goals: understand principles behind data link layer services: instantiation and implementation of various link layer technologies

CS 3516: Advanced Computer Networks

Chapter 3: Industrial Ethernet

ECPE / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Data and Computer Communications. Chapter 11 Local Area Network

Local Area Networks. Aloha Slotted Aloha CSMA (non-persistent, 1-persistent, p-persistent) CSMA/CD Ethernet Token Ring

CIS 551 / TCOM 401 Computer and Network Security. Spring 2007 Lecture 7

Quad 100BaseTX/FX/10BaseT Physical Layer Device

Computer Networks Principles LAN - Ethernet

Objectives. Hexadecimal Numbering and Addressing. Ethernet / IEEE LAN Technology. Ethernet

Origin of IEEE (Ethernet) Ethernet. Agenda. Basic Idea of Ethernet Bus System

Ethernet. Agenda. Introduction CSMA/CD Elements and Basic Media-Types Repeater, Link Segments Framing. L21 - Ethernet

High Level View. EE 122: Ethernet and Random Access protocols. Medium Access Protocols

FCC Ethernet Controller

8 PORT LOW COST 10/100 SWITCH

Lab Using Wireshark to Examine Ethernet Frames

Communication (III) Kai Huang

TELECOMMUNICATION STANDARDIZATION SECTOR

IMPLEMENTATION OF IEEE MAC TRANSMITTER USING VHDL

Data Link Protocols. TCP/IP Suite and OSI Reference Model

CS 455/555 Intro to Networks and Communications. Link Layer Addressing, Ethernet, and a Day in the Life of a Web Request

Introduction to Information Science and Technology 2017 Networking I. Sören Schwertfeger 师泽仁

Reminder: Datalink Functions Computer Networking. Datalink Architectures

INTERNATIONAL TELECOMMUNICATION UNION

1: Review Of Semester Provide an overview of encapsulation.

Chapter 6: DataLink Layer - Ethernet Olivier Bonaventure (2010)

Chapter 5 Link Layer and LANs

Introduction to Computer Networks. IEEE Ethernet

Chapter 5: Ethernet. Introduction to Networks - R&S 6.0. Cisco Networking Academy. Mind Wide Open

EE 122: Ethernet and

Ethernet Hub. Campus Network Design. Hubs. Sending and receiving Ethernet frames via a hub

THE ETHERNET IN THE FIRST MILE CONSORTIUM. Annex 4A MAC Conformance Test Suite Version 1.0 Technical Document

Medium Access Control. CSCI370 Lecture 5 Michael Hutt New York Institute of Technology

MAC-PHY Rate Adaptation Baseline. Arthur Marris

Lab Using Wireshark to Examine Ethernet Frames

cs144 Midterm Review Fall 2010

LAN Protocols. Required reading: Forouzan 13.1 to 13.5 Garcia 6.7, 6.8. CSE 3213, Fall 2015 Instructor: N. Vlajic

CCNA 1 Chapter 5 v5.0 Exam Answers 2013

Hubs. twisted pair. hub. 5: DataLink Layer 5-1

2. What is a characteristic of a contention-based access method?

Review. Error Detection: CRC Multiple access protocols. LAN addresses and ARP Ethernet. Slotted ALOHA CSMA/CD

Bit A binary digit. The smallest unit of data, either a zero or a one. Bus A shared connection for multiple devices over a cable or backplane.

ISO/OSI Model and Collision Domain NETWORK INFRASTRUCTURES NETKIT - LECTURE 1 MANUEL CAMPO, MARCO SPAZIANI

Fast Ethernet Consortium

CW-Net. 100 Mbit/s Data Transmission and Device Control System 2007/1

FPGA Implementation of Low Power Serial to High Speed Data Networks

Chapter 5 Reading Organizer After completion of this chapter, you should be able to:

Local Area Networks. Ethernet LAN

Overview of Ethernet Networking

Link Layer Review. CS244A Winter 2008 March 7, 2008 Ben Nham

80C300. Full Duplex CMOS Ethernet 10/100 Mega Bit/Sec Data Link Controller 98012

CS 416: Operating Systems Design April 11, 2011

CS 640 Lecture 4: 09/11/2014

REV CHANGE DESCRIPTION NAME DATE. A Release

M242 COMPUTER NETWORS AND SECURITY

Worked solutions for EG/S /2007

Relationship of 1000BASE-T1 to other standards

Transcription:

Introduction to Ethernet and lab3.3 maglun@sm.luth.se Nov 200 Computation structures Agenda Introduction History Components (MAC, PHY) Packet format CRC Bit order Hubs, Switches and Routers Questions

Computation structures 2 What is (the) Ethernet Ethernet is a network BUS Ethernet is packet based Ethernet is available as 0 Mbit/s - 0 Gbit/s Ethernet is based on the CSMA/CD (Carrier Sense Multiple Access with Collision Detect access) protocol Computation structures 3 Ethernet Basics Ethernet Packets are from 64 bytes up to 58 bytes Since Ethernet is a BUS several Attached Units can talk on the BUS at the same time Collisions occur and the talking parties backoff for a time and then try again For each failed attempt the backoff time is increased exponentially

Computation structures 4 OSI model OSI Model Application L7 Presentation Session Transport Network Datalink Physical L On The OSI model with 7 layers, Ethernet is in the bottom two layers: Data Link Layer and Physical Layer OSI (Open Systems Interconnection) Computation structures 5 History of Ethernet Developed by Xerox at their PARC Research Facility by Bob Metcalfe and David Boggs First version was 3 Mbit /s Initial Ethernet standard developed by Digital, Intel and Xerox in the DIX consortium Standard for 0 Mbit/s called The Blue book was ready in 980 Standard was then submitted to a newly formed working group in IEEE called 802 IEEE splits the 802 working group in four parts 802.3 becomes the Ethernet working group

Computation structures 6 History of Ethernet Late 982 DIX s Bluebook and the IEEE 802.3 specifications merge into one standard Ethernet was already multi vendor and more company s endorsed the standard Ethernet vs 802.3 CSMA/CD Ethernet patents where inexpensive and easy to license Ethernet was developed into several different mediums. Coaxial/UTP/Optical Computation structures 7 Components MAC PHY MAU FPGA MII MDI MAC Media Access Control PHY Physical layer device MAU Medium Attachment Unit (RJ45 connector) MII Media Independant Interface MDI Media Dependant Interface

Computation structures 8 MAC - Media Access Controller Does statistical functions : Packet Lengths, Packet collisions etc. Does the stripping and adding of the preamble bits and the CRC calculations Communicates with the rest of the design Back off mechanism with random delay in case of collision A MAC usually has two different datapaths one for internal clock (Sending) and one external (Receiving) Computation structures 9 Media Independent Interface - MII This is the interface between the PHY and the MAC Regardless of the underlying Media this interface always stays the same MII is for 0 and 00 Mbit Ethernet. First bit from MAC First Nibble Second Nibble D0 D D2 D3 D4 D5 D6 D7 MSB D0 D D2 LSB D3

Computation structures 0 Media Independent Interface - MII The MII consists of 0 different signals Transmit Clock (TX_CLK) which runs at either 2.5 Mhz for 0 Mbit or 25 Mhz for 00 Mbit Transmit Data (TXD <3:0>) data nibble to the PHY circuit from MAC Transmit Enable (TX_EN) is high when data on the TXD pins are valid Transmit Error (TX_ERR) goes high when the PHY is coding incorrectly, not used in 0 Mbit Computation structures Media Independent Interface - MII Receive Clock (RX_CLK) generated by the PHY for incoming data Receive Data (RXD <3:0>) data from the sender decoded by the PHY to MAC Receive Data Valid (RX_DV) asserted when there is valid data on the RXD path Receive Error (RX_ER) asserted to indicate that something in the coding layer is wrong etc Carrier Sense (CRS) asserted by the PHY to indicate someone else is sending data Collision (COL) asserted by the PHY when a collision has taken/is taking place, useless if working in full duplex mode

Computation structures 2 MII - Sending Packets TX_CLK TX_EN TXD<3:0> COL CRS Computation structures 3 MII - Receiving Packets RX_CLK RX_DV RXD<3:0> COL CRS

Computation structures 4 PHY Encodes/Decodes (Manchester coding for 0 Mbit/s) Converts from parallel to serial Detects collisions Auto-negotiation Computation structures 5 Ethernet Packet Format Preamble Destination Addr. Source Addr. Etype/Length Data FCS 8 Bytes 6 Bytes 6 Bytes 2 Bytes 46 500 Bytes 4 Bytes

Computation structures 6 Preamble Preamble is used by the PHY to sync its RX_CLK to the transmitters TX_CLK. The Preamble consists of 8 bytes of alternating ones and zeros The two last bits of the preamble field are both high and are called the synch sequence, it is used to signal that the preamble ends and the Destination address begins. Computation structures 7 Destination and Source address Both Addresses are 6 bytes each and consists of two parts: 3 Bytes Vendor code (0x00003F = Syntrex Inc) 3 Bytes Serial number (0x000000) This address are sometimes callad MAC-address Stored in ROM in a NIC 0xFFFFFFFFFFFF is the broadcast address.

Computation structures 8 Type/Length Length / Etype field is either a type field or length. if the value is smaller than 0x0600 it contains length, otherwise it is an Ethernet Type 0x0800 is IPv4 Datagram 0x0806 is ARP 0x8DD is IPv6 Datagram 0x00 is experimental(below 0x0600?) Computation structures 9 Data Minimum data size 46 Bytes Maximum data size 500 Bytes If actual data is less than 46 Bytes the packet is padded with zeros

Computation structures 20 Frame Check Sequence (FCS) 4 Bytes used to detect bit faults in the packet Computed with the CRC-32 algorithm Computed on the Destination Address, Source Address, type and data fields. Computation structures 2 CRC theory () M F T P DA, SA, type and data fields, k bits long. The FCS field, n bits long. M and F concatenated.(k+n bits long). The CRC Polynomial. A pattern of n+ bits. (2) (3)

Computation structures 22 (4) But any binary number added to itself in a modulo 2 field yields zero so: (5) Computation structures 23 CRC polynomial The CRC polynomial for Ethernet is: CRC =

Computation structures 24 CRC in hardware The VHDL code for the -bit wide data bus implementation with polynomial crc(0) <= data_in xor crc(4); is shown below: crc() <= crc(0); crc(2) <= data_in xor crc() xor crc(4); crc(3) <= crc(2); crc(4) <= data_in xor crc(3) xor crc(4); Computation structures 25 Data In Q D CRC in hardware Q D Q D Q D Q D P(x) = x 5 + x 5 x 4 x 3 x 2 x x 0 x 4 + x 2 + Load the CRC register with 0xFFFFFFFFFF initially The resulting CRC must be inverted and reflected.

Computation structures 26 Bit Order Byte-order Bit-order Bit-order Highest Byte...... Lowest Byte MSB LSB MSB LSB Preamble Synch DA SA Type Data FCS 62 Bits 2 Bits 6 Bytes 6 Bytes 2 Bytes 46-500 Bytes 4 Bytes Note that the Bit order is reversed compared to the Byte order Computation structures 27 Bit Order example When sending the two Bytes 0x3F0 the following bit order is used. 0 3 F 0 0 0 0 0 0 0 0 0 Tx_d(3) Tx_d(0)

Computation structures 28 Bit Order CRC When sending 0xD0D5 the following bit order is used. Note that the CRC is not sent bytewise. D 0 D 5 0 0 0 0 0 0 0 0 Tx_d(3) Tx_d(0) Computation structures 29 Hubs & Switches & Routers Hubs = Is an extension cord for networks, all signals are sent to all computers on network, all users share the same bandwidth Switches = Each signal is connected to a specific link to a switch. The switch receives the packet looks where it is heading and sends it to the appropriate port Router = Is working on higher level than the Ethernet Protocol, it usually works on IP level and looks at the IP address instead of the Ethernet Address

)( &' '' '& && $ % % $ # " #"!! Computation structures 30 Clip-art Every presentation needs some clip-art Ethernet Switch NIC Computation structures 3 Questions?