Chapter 6 Ethernet Fundamentals By: Steven P. Luse

2,670 views

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,670
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
53
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Chapter 6 Ethernet Fundamentals By: Steven P. Luse

  1. 1. Chapter 6 Ethernet Fundamentals By: Steven P. Luse
  2. 2. 6.1.1 Introduction to Ethernet <ul><li>From its beginning in the 1970s, Ethernet has evolved to meet the increasing demand for high speed LANs. the same protocol that transported data at 3 Mbps in 1973 is carrying data at 10 Gbps. </li></ul><ul><li>The success of Ethernet is due to the following factors: </li></ul><ul><ul><li>Simplicity and ease of maintenance </li></ul></ul><ul><ul><li>Ability to incorporate new technologies </li></ul></ul><ul><ul><li>Reliability </li></ul></ul><ul><ul><li>Low cost of installation and upgrade </li></ul></ul>
  3. 3. 6.1.1 Introduction to Ethernet <ul><li>The original idea for Ethernet grew out of the problem of allowing two or more hosts to use the same medium and prevent the signals from interfering with each other. This problem of multiple user access to a shared medium was studied in the early 1970s at the University of Hawaii. A system called Alohanet was developed to allow various stations on the Hawaiian Islands structured access to the shared radio frequency band in the atmosphere. </li></ul><ul><li>This work later formed the basis for the Ethernet access method known as CSMA/CD. </li></ul>
  4. 4. 6.1.1 Introduction to Ethernet <ul><li>In 1985, the Institute of Electrical and Electronics Engineers (IEEE) standards committee for LANs published standards. They started with the number 802. Called Ethernet 802.3 . This had to be compatible with the ISO/OSI model. To do this, the IEEE 802.3 standard had to address the needs of Layer 1 and the lower portion of Layer 2 of the OSI model. As a result, some small modifications to the original Ethernet standard were made in 802.3. </li></ul><ul><li>The differences between the two standards were so minor that any Ethernet network interface card (NIC) can transmit and receive both Ethernet and 802.3 frames. Essentially, Ethernet and IEEE 802.3 are the same standards. </li></ul>
  5. 5. 6.1.2 IEEE Ethernet naming rules <ul><li>Ethernet is not one networking technology, but a family of networking technologies that includes Legacy, Fast Ethernet, and Gigabit Ethernet . Ethernet speeds can be 10, 100, 1000, or 10,000 Mbps . The basic frame format and the IEEE sublayers of OSI Layers 1 and 2 remain consistent across all forms of Ethernet . </li></ul><ul><li>The abbreviated description consists of: </li></ul><ul><ul><li>A number indicating the number of Mbps transmitted. </li></ul></ul><ul><ul><li>The word base, indicating that baseband signaling is used. </li></ul></ul><ul><ul><li>One or more letters of the alphabet indicating the type of medium used (F= fiber optical cable, T = copper unshielded twisted pair). </li></ul></ul>
  6. 6. 6.1.3 Ethernet and the OSI model <ul><li>Ethernet operates in two areas of the OSI model, the lower half of the data link layer, known as the MAC sublayer and the physical layer. </li></ul>
  7. 7. 6.1.3 Ethernet and the OSI model <ul><li>A collision domain is then a shared resource. Problems originating in one part of the collision domain will usually impact the entire collision domain. </li></ul>
  8. 8. 6.1.3 Ethernet and the OSI model <ul><li>maps a variety of Ethernet technologies to the lower half of OSI Layer 2 and all of Layer 1. Ethernet at Layer 1 involves interfacing with media, signals, bit streams that travel on the media, components that put signals on media, and various topologies. Ethernet Layer 1 performs a key role in the communication that takes place between devices, but each of its functions has limitations. Layer 2 addresses these limitations. </li></ul>
  9. 9. 6.1.3 Ethernet and the OSI model <ul><li>Layer 1 involves media, signals, bit streams that travel on media, components that put signals on media, and various topologies. Each of its functions has its limitations. Layer 2 addresses these limitations. </li></ul><ul><li>For each limitation in Layer 1, Layer 2 has a solution. </li></ul><ul><li>Layer 1 cannot communicate with the upper-level layers; Layer 2 does that with logical link control (LLC). </li></ul><ul><li>Layer 1 cannot name or identify computers; Layer 2 uses an addressing (or naming) process. </li></ul><ul><li>Layer 1 can only describe streams of bits; Layer 2 uses framing to organize or group the bits. </li></ul><ul><li>Layer 1 cannot choose which computer will transmit binary data, from a group in which all computers are trying to transmit at the same time; Layer 2 accomplishes this by using a system called Media Access Control (MAC). </li></ul>
  10. 10. 6.1.3 Ethernet and the OSI model <ul><li>Data link sublayers contribute significantly to technology compatibility and computer communication. The MAC sublayer is concerned with the physical components that will be used to communicate the information. The Logical Link Control (LLC) sublayer remains relatively independent of the physical equipment that will be used for the communication process. </li></ul>
  11. 11. 6.1.4 Naming <ul><li>Ethernet uses MAC addresses that are 48 bits in length and expressed as twelve hexadecimal digits . The first six hexadecimal digits, which are administered by the IEEE, identify the manufacturer or vendor. This portion of the MAC address is known as the Organizational Unique Identifier (OUI). The remaining six hexadecimal digits represent the interface serial number, or another value administered by the specific equipment manufacturer. MAC addresses are sometimes referred to as burned-in addresses (BIA) because they are burned into read-only memory (ROM) and are copied into random-access memory (RAM) when the NIC initializes. </li></ul>
  12. 12. 6.1.5 Layer 2 framing <ul><li>Framing helps obtain essential information that could not, otherwise, be obtained with coded bit streams alone. </li></ul><ul><ul><li>Which computers are communicating with one another </li></ul></ul><ul><ul><li>When communication between individual computers begins and when it terminates </li></ul></ul><ul><ul><li>Provides a method for detection of errors that occurred during the communication </li></ul></ul><ul><ul><li>Whose turn it is to &quot;talk&quot; in a computer &quot;conversation&quot; </li></ul></ul>
  13. 13. 6.1.5 Layer 2 framing <ul><li>The frame format diagram shows different groupings of bits (fields) that perform other functions. </li></ul><ul><li>The names of the fields are as follows: </li></ul><ul><ul><li>Start frame field </li></ul></ul><ul><ul><li>Address field </li></ul></ul><ul><ul><li>Length / type field </li></ul></ul><ul><ul><li>Data field </li></ul></ul><ul><ul><li>Frame check sequence field  </li></ul></ul>
  14. 14. 6.1.5 Layer 2 framing <ul><li>All frames contain naming information, such as the name of the source node (MAC address) and the name of the destination node (MAC address). </li></ul><ul><li>In some technologies, a length field specifies the exact length of a frame in bytes. Some frames have a type field, which specifies the Layer 3 protocol making the sending request. </li></ul><ul><li>Data </li></ul><ul><li>The Frame Check Sequence (FCS) field contains a number that is calculated by the source node based on the data in the frame. This FCS is then added to the end of the frame that is being sent. </li></ul><ul><li>There are three primary ways to calculate the Frame Check Sequence number: </li></ul><ul><ul><li>Cyclic Redundancy Check (CRC) – performs calculations on the data. </li></ul></ul><ul><ul><li>Two-dimensional parity – adds an 8th bit that makes an 8 bit sequence have an odd or even number of binary 1s. </li></ul></ul><ul><ul><li>Internet checksum – adds the values of all of the data bits to arrive at a sum. </li></ul></ul>
  15. 15. 6.1.6 Ethernet frame structure
  16. 16. 6.1.7 Ethernet frame fields <ul><li>fields permitted or required in an 802.3 Ethernet Frame are: </li></ul><ul><ul><li>Preamble - is an alternating pattern of ones and zeroes used for timing synchronization in the asynchronous 10 Mbps and slower implementations of Ethernet. </li></ul></ul><ul><ul><li>Start Frame Delimiter - one-octet field that marks the end of the timing information, and contains the bit sequence 10101011. </li></ul></ul><ul><ul><li>Destination Address </li></ul></ul><ul><ul><li>Source Address </li></ul></ul><ul><ul><li>Length/Type </li></ul></ul><ul><ul><li>Data and Pad </li></ul></ul><ul><ul><li>FCS - contains a four byte CRC value that is created by the sending device and is recalculated by the receiving device to check for damaged frames. </li></ul></ul><ul><ul><li>Extension </li></ul></ul>
  17. 17. 6.2.1 Media Access Control (MAC) <ul><li>There are two broad categories of Media Access Control, deterministic (taking turns) and non-deterministic (first come, first served). </li></ul><ul><li>deterministic protocols include Token Ring and FDDI. </li></ul><ul><li>Non-deterministic MAC protocols use a first-come, first-served approach . CSMA/CD is a simple system. The NIC listens for an absence of a signal on the media and starts transmitting. </li></ul>
  18. 18. 6.2.1 Media Access Control (MAC) <ul><li>The specific technologies for each are as follows: </li></ul><ul><ul><li>Ethernet – logical bus topology (information flow is on a linear bus) and physical star or extended star (wired as a star) </li></ul></ul><ul><ul><li>Token Ring – logical ring topology (in other words, information flow is controlled in a ring) and a physical star topology (in other words, it is wired as a star) </li></ul></ul><ul><ul><li>FDDI – logical ring topology (information flow is controlled in a ring) and physical dual-ring topology (wired as a dual-ring) </li></ul></ul>
  19. 19. 6.2.2 MAC rules and collision detection/backoff <ul><li>The access method CSMA/CD used in Ethernet performs three functions: </li></ul><ul><ul><li>Transmitting and receiving data packets </li></ul></ul><ul><ul><li>Decoding data packets and checking them for valid addresses before passing them to the upper layers of the OSI model </li></ul></ul><ul><ul><li>Detecting errors within data packets or on the network </li></ul></ul>
  20. 20. 6.2.3 Ethernet timing <ul><li>The electrical signal takes time to travel down the cable (delay), and each subsequent repeater introduces a small amount of latency in forwarding the frame from one port to the next. Because of the delay and latency, it is possible for more than one station to begin transmitting at or near the same time. This results in a collision. </li></ul><ul><li>Full-duplex operation also changes the timing considerations and eliminates the concept of slot time. Full-duplex operation allows for larger network architecture designs since the timing restriction for collision detection is removed. </li></ul><ul><li>In half duplex, assuming that a collision does not occur, the sending station will transmit 64 bits of timing synchronization information that is known as the preamble. The sending station will then transmit the following information: </li></ul><ul><ul><li>Destination and source MAC addressing information </li></ul></ul><ul><ul><li>Certain other header information </li></ul></ul><ul><ul><li>The actual data payload </li></ul></ul><ul><ul><li>Checksum (FCS) used to ensure that the message was not corrupted along the way </li></ul></ul><ul><li>Stations receiving the frame recalculate the FCS to determine if the incoming message is valid and then pass valid messages to the next higher layer in the protocol stack. </li></ul>
  21. 21. 6.2.4 Interframe spacing and backoff <ul><li>The minimum spacing between two non-colliding frames is also called the interframe spacing. </li></ul><ul><li>The minimum spacing between two non-colliding frames is also called the interframe spacing. </li></ul>
  22. 22. 6.2.5 Error handling
  23. 23. 6.2.6 Types of collisions <ul><li>Collisions typically take place when two or more Ethernet stations transmit simultaneously within a collision domain. A single collision is a collision that was detected while trying to transmit a frame, but on the next attempt the frame was transmitted successfully. </li></ul><ul><li>Three types of collisions are: </li></ul><ul><ul><li>Local - collision on coax cable (10BASE2 and 10BASE5), the signal travels down the cable until it encounters a signal from the other station. </li></ul></ul><ul><ul><li>Remote - a frame that is less than the minimum length, has an invalid FCS checksum, but does not exhibit the local collision symptom of over-voltage or simultaneous RX/TX activity. This sort of collision usually results from collisions occurring on the far side of a repeated connection. </li></ul></ul><ul><ul><li>Late - Collisions occurring after the first 64 octets. The most significant difference between late collisions and collisions occurring before the first 64 octets is that the Ethernet NIC will retransmit a normally collided frame automatically, but will not automatically retransmit a frame that was collided late. </li></ul></ul>
  24. 24. 6.2.7 Ethernet errors <ul><li>The following are the sources of Ethernet error: </li></ul><ul><ul><li>Collision or runt – Simultaneous transmission occurring before slot time has elapsed </li></ul></ul><ul><ul><li>Late collision – Simultaneous transmission occurring after slot time has elapsed </li></ul></ul><ul><ul><li>Jabber, long frame and range errors – Excessively or illegally long transmission  </li></ul></ul><ul><ul><li>Short frame, collision fragment or runt – Illegally short transmission </li></ul></ul><ul><ul><li>FCS error – Corrupted transmission </li></ul></ul><ul><ul><li>Alignment error – Insufficient or excessive number of bits transmitted </li></ul></ul><ul><ul><li>Range error – Actual and reported number of octets in frame do not match </li></ul></ul><ul><ul><li>Ghost or jabber – Unusually long Preamble or Jam event </li></ul></ul>
  25. 25. 6.2.8 FCS and beyond <ul><li>A received frame that has a bad Frame Check Sequence, also referred to as a checksum or CRC error, differs from the original transmission by at least one bit. In an FCS error frame the header information is probably correct, but the checksum calculated by the receiving station does not match the checksum appended to the end of the frame by the sending station. The frame is then discarded. </li></ul>
  26. 26. 6.2.9 Ethernet auto-negotiation <ul><li>10BASE-T required each station to transmit a link pulse about every 16 milliseconds, whenever the station was not engaged in transmitting a message. Auto-Negotiation adopted this signal and renamed it a Normal Link Pulse (NLP). When a series of NLPs are sent in a group for the purpose of Auto-Negotiation, the group is called a Fast Link Pulse (FLP) burst. Each FLP burst is sent at the same timing interval as an NLP, and is intended to allow older 10BASE-T devices to operate normally in the event they should receive an FLP burst. </li></ul><ul><li>Auto-Negotiation is accomplished by transmitting a burst of 10BASE-T Link Pulses from each of the two link partners. The burst communicates the capabilities of the transmitting station to its link partner. </li></ul>
  27. 27. 6.2.10 Link establishment and full and half duplex <ul><li>Link partners are allowed to skip offering configurations of which they are capable. This allows the network administrator to force ports to a selected speed and duplex setting, without disabling Auto-Negotiation.  </li></ul>
  28. 28. The End Good Luck on the Chapter Test

×