Upload
yin0110yang
View
216
Download
0
Embed Size (px)
Citation preview
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
1/45
2007 Cisco Systems, Inc. All rights reserved. Cisco Public
ITE PC v4.0
Chapter 1 1
Ethernet
Network Fundamentals
Chapter 9
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
2/45
ITE PC v4.0
Chapter 1 2 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Ethernet - Standards and Implementation
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
3/45
ITE PC v4.0
Chapter 1 3 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Physical Layer Limitations
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
4/45
ITE PC v4.0
Chapter 1 4 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
LLC Connecting the Upper Layers
Can be considered the driver software for theNIC
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
5/45
ITE PC v4.0
Chapter 1 5 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Media Access Control
Lower sublayer of the Data Link layer; implemented byhardware
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
6/45
ITE PC v4.0
Chapter 1 6 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Physical Implementations of Ethernet
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
7/45ITE PC v4.0
Chapter 1 7 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Historic Ethernet
The first version of Ethernet is known as Carrier SenseMultiple Access with Collision Detection (CSMA/CD).
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
8/45ITE PC v4.0
Chapter 1 8 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Legacy Ethernet
Technology MediumPhysical
Topology
Max. Segment
Length
10 BASE 5Thick coax
(Thicknet) Bus 500 m
10 BASE 2Thin coax
(Thinnet)Bus 200 m (185 m)
10 BASE TTwisted
pair
Star 100 m
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
9/45ITE PC v4.0
Chapter 1 9 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Ethernet Collision Management
Legacy Ethernet Current Ethernet
central point of the network
segment was a hub
switches replaced hubs in
Ethernet-based networks
half-duplex communication full-duplex communications
As the number of devices and data
traffic increase, the rise in
collisions can have a significant
impact on the user's experience.
The switch reduces or minimizes
the possibility of collisions.
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
10/45ITE PC v4.0
Chapter 1 10 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Moving to Gigabit Ethernet
New networking services require higherbandwidth LANs
Upgrading to Gigabit Ethernet does not always
mean that the existing network infrastructurehas to be completely replaced
Ethernet can now be applied across a city inwhat is known as a Metropolitan Area Network
(MAN).
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
11/45ITE PC v4.0
Chapter 1 11 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
The Frame Encapsulating the Packet
The differences between framing styles are minimal.
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
12/45ITE PC v4.0
Chapter 1 12 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Ethernet Frame Size
Original Ethernet frame: minimum - 64 bytes;maximum -1518 bytes
The IEEE 802.3ac standard (1998), extended
the maximum allowable frame size to 1522bytes. to accommodate a technology calledVirtual Local Area Network (VLAN).
If the size of a transmitted frame is less than
the minimum or greater than the maximum, thereceiving device drops the frame.
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
13/45
ITE PC v4.0
Chapter 1 13 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Addressing in Ethernet
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
14/45
ITE PC v4.0
Chapter 1 14 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Ethernet MAC Address Structure
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
15/45
ITE PC v4.0
Chapter 1 15 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Viewing the MAC Address
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
16/45
ITE PC v4.0
Chapter 1 16 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Addressing Layers L2 and L3
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
17/45
ITE PC v4.0
Chapter 1 17 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Ethernet Unicast, Broadcast and Multicast
Unicast IP and MAC destination addresses areused by the source to forward a packet.
Broadcast - all hosts on that local network willreceive and process the packet; broadcast MAC is
FF-FF-FF-FF-FF-FF Multicast IP and MAC destination addresses
deliver packets/frames to a specific group of hosts;Multicast MAC address is a special value that
begins with 01-00-5E in hexadecimal; value endsby converting the lower 23 bits of the IP multicastaddress into the remaining 6 hexadecimalcharacters of the Ethernet address. The remainingbit in the MAC address is always a "0".
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
18/45
ITE PC v4.0
Chapter 1 18 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Media Access Control in Ethernet In a shared media environment, all devices have guaranteed
access to the medium, but they have no prioritized claim on it.
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
19/45
ITE PC v4.0
Chapter 1 19 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
CSMA/CD The Process
All network devices that have messages to send mustlisten before transmitting.
If a device detects a signal, it will wait some of timebefore attempting to transmit.
When there is no traffic detected, a device will transmit
its message.
If two devices transmit signals at the same time, thesignals mix and the message becomes corrupted.
Once detected, every device transmitting will continue
to transmit to ensure that all devices detect the collisionand send out a jamming signal, invoke a backoffalgorithm.
After the delay has expired on a device, the devicegoes back into the "listening before transmit" mode.
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
20/45
ITE PC v4.0
Chapter 1 20 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Hubs and Collision Domain
Hubs and repeaters therefore have the effect of increasing the sizeof the collision domain.
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
21/45
ITE PC v4.0
Chapter 1 21 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Drill:
How many collision domains and broadcast domains are seen?
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
22/45
ITE PC v4.0
Chapter 1 22 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Drill:
How many collision domains and broadcast domains are seen?
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
23/45
ITE PC v4.0
Chapter 1 23 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Drill:
How many collision domains and broadcast domains are seen?
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
24/45
ITE PC v4.0
Chapter 1 24 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Ethernet Delay (Latency)
As hubs or repeaters are added, the accumulated delay increasesthe likelihood that collisions will occur.
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
25/45
ITE PC v4.0
Chapter 1 25 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Timing and Synchronization
10 Mbps Ethernet uses the first 64 bits of theframe preamble to synchronize the receiver. Ituses asynchronous communication.
Ethernet implementations with throughput of100 Mbps and higher are synchronous.Synchronous communication means that timinginformation is not required.
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
26/45
ITE PC v4.0
Chapter 1 26 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Ethernet Bit and Slot Time
Determining slot time is a trade-off between the need to reduce theimpact of collision recovery (backoff and retransmission times) andthe need for network distances to be large enough toaccommodate reasonable network sizes.
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
27/45
ITE PC v4.0
Chapter 1 27 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Interframe Spacing
- time measured from the last bit of the FCS field of one frame to thefirst bit of the Preamble of the next frame
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
28/45
ITE PC v4.0
Chapter 1 28 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Jam Signal
As soon as a collision is detected, sendingdevices transmit a 32-bit "jam" signal that willenforce the collision. This ensures all devices inthe LAN to detect the collision.
The jam signal is not detected as a valid frame;otherwise the collision would not be identified.The most commonly observed data pattern for
a jam signal is simply a repeating 1, 0, 1, 0pattern, the same as the Preamble.
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
29/45
ITE PC v4.0
Chapter 1 29 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Backoff TimingAfter a collision occurs and all devices allow thecable to become idle, the devices whosetransmissions collided must wait an additional,longer period of time before attempting toretransmit the collided frame.
Intentionally designed to be random so that twostations do not delay for the same amount oftime before retransmitting
If media congestion results in the MAC layerunable to send the frame after 16 attempts, itgives up and generates an error to the Networklayer.
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
30/45
ITE PC v4.0
Chapter 1 30 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Overview of Ethernet Physical Layer
10 Mbps - 10Base-T Ethernet 100 Mbps Fast Ethernet1000 Mbps - Gigabit Ethernet 10 Gbps - 10 Gb Ethernet
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
31/45
ITE PC v4.0
Chapter 1 31 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
10 BASE-T RJ-45 Pinouts
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
32/45
ITE PC v4.0
Chapter 1 32 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Implementations of Fast Ethernet
100BASE-TX using Cat5 or later UTP (electrical)
100BASE-FX using fiber-optic cable (optical)
Both uses the 4B/5B as encoding technique.
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
33/45
ITE PC v4.0
Chapter 1 33 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Gigabit Ethernet 1000 BASE-T
Gigabit Ethernet uses two separate encoding steps. Encoding thedata enables synchronization, efficient usage of bandwidth, andimproved signal-to-noise ratio characteristics.
1000BASE-T Ethernet provides full-duplex transmission using allfour pairs in Category 5 or later UTP cable.
1000BASE-T allows the transmission and reception of data in bothdirections, creating permanent collisions on the wire pairs. Thehybrid circuits detecting the signals use sophisticated techniquessuch as echo cancellation, Layer 1 Forward Error Correction(FEC), and prudent selection of voltage levels.
1000BASE-T uses many voltage levels. In idle periods, ninevoltage levels are found on the cable. During data transmissionperiods, up to 17 voltage levels are found on the cable.
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
34/45
ITE PC v4.0
Chapter 1 34 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Gigabit Ethernet 1000BASE-SX and1000BASE-LX Ethernet Using Fiber-Optics
The fiber versions of Gigabit Ethernet - 1000BASE-SX and1000BASE-LX - offer the following advantages over UTP: noiseimmunity, small physical size, and increased unrepeated distancesand bandwidth.
The principal differences among the 1000BASE-SX and
1000BASE-LX fiber versions are the link media, connectors, andwavelength of the optical signal.
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
35/45
ITE PC v4.0
Chapter 1 35 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Legacy Ethernet Using Hubs
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
36/45
ITE PC v4.0
Chapter 1 36 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Ethernet Using Switches
- Switches allow the segmentation of the LAN into separate collisiondomains.
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
37/45
ITE PC v4.0
Chapter 1 37 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Features of Switched-based LANs
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
38/45
ITE PC v4.0
Chapter 1 38 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Switches Selective Forwarding
Can be thought of as establishing a momentary point-to-pointconnection between the transmitting and receiving node, longenough to forward a frame.
Store and forward switching - switch receives the entire frame,checks the FCS for errors, and forwards the frame to the
appropriate port for the destination node.
The switch maintains a MAC table that matches a destination MACaddress with the port used to connect to a node. For eachincoming frame, the destination MAC address is compared to thelist of addresses in the MAC table. If a match is found, the port
number in the table that is paired with the MAC address is used asthe exit port for the frame.
The terms switching and bridgingmay both be used in networking.
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
39/45
ITE PC v4.0
Chapter 1 39 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Basic Switch Operation
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
40/45
ITE PC v4.0
Chapter 1 40 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Switching Operation Master this Activity...
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
41/45
ITE PC v4.0
Chapter 1 41 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Address Resolution Protocol (ARP)
The ARP protocol provides two basic functions:
Resolving IPv4 addresses to MAC addresses
Maintaining a cache of mappings
Each entry of the ARP table has a pair of values: an IPAddress and a MAC address.
To begin the process, a transmitting node attempts tolocate in the ARP table the MAC address mapped to an
IPv4 destination. If this map is cached in the table, thenode uses the MAC address as the destination MAC inthe frame that encapsulates the IPv4 packet.
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
42/45
ITE PC v4.0
Chapter 1 42 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Maintaining the ARP Table
The ARP table is maintained dynamically.
As a node receives frames from the media, it can record thesource IP and MAC address as a mapping in the ARP table.
Another way a device can get an address pair is to broadcastan ARP request.
The dynamic entries in the ARP table are timestamped, same waythat MAC table entries are timestamped in switches.
Static map entries can be entered in an ARP table.
If an entry is not found on the ARP table, the processes send outan ARP request packet to discover the MAC address of thedestination device on the local network. The recipient sends an
ARP reply.
If no device responds to the ARP request, the packet is dropped.
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
43/45
ITE PC v4.0
Chapter 1 43 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
ARP Process Destinations Outside the LAN
If the destination IPv4 host is on the local network, theframe will use the MAC address of this device as thedestination MAC address.
If the destination host is not on the local network, the
source node needs to deliver the frame to the routerinterface (gateway) to reach that destination.
In the event that the gateway entry is not in the table,the normal ARP process will send an ARP request to
retrieve the MAC address associated with the IPaddress of the router interface.
For each device, an ARP cache timer removes ARPentries that have not been used for a specified period of
time.
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
44/45
ITE PC v4.0
Chapter 1 44 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Drill:
Host A needs to send data to Host B. What Layer 2 and Layer 3addresses will be used to send data from Host A to Host B?
7/29/2019 Exploration Network Chapter 9 (Rev 1.0)
45/45