Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Ethernet
Ethernet
1
05/09/2018
Ethernet
Ethernet Frame
• An Ethernet frame is the fundamental unit of Layer 2 data transmission
for Ethernet networks . The frame’s structure is rather straightforward,
compared to some more complex protocols built on top of it.
• Ethernet II frames (the most common Ethernet Frame format) enable
communication between two machines over an Ethernet link.
So what’s the Difference in?
• Both Ethernet Version II and IEEE 802.3 Ethernet standards have a similar
underlying structure, the primary difference being the frame layout.
• Both have P = Preamble , D = Destination MAC Address , S = Source MAC
Address , x = data unit and F = Frame Check Sequence (FCS)
• They differ where Ethernet II frame has T = Ether Type …
P P P P P P P P DDDDDD S S S S S S T T x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x F F F F
• Ethernet II frames are more popular as they best handle TCP/IP traffic.
ICS 2103: Computer Networks / BTC 1203: Introduction to Computer Networks James N. Gikera
Ethernet
ICS 2103: Computer Networks / BTC 1203: Introduction to Computer Networks James N. Gikera
2
05/09/2018
Ethernet
A typical IEEE 802.3 Ethernet frame looks like this:
P R R R R R R RDDDDDD S S S S S S L L d s c c x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x F F F F
ICS 2103: Computer Networks / BTC 1203: Introduction to Computer Networks James N. Gikera
Ethernet
Ethernet Specifications
Designation Supported Media Maximum Segment Length Transfer Speed Topology
10Base-5 Coaxial 500m 10Mbps Bus
10Base-2 ThinCoaxial (RG-58 A/U) 185m 10Mbps Bus
10Base-T Category3 or above unshielded 100m 10Mbps Star,using either simple repeater hubs
twisted-pair (UTP) or Ethernet switches
1Base-5 Category3 UTP, or above 100m 1Mbps Star,using simple repeater hubs
10Broad-36 Coaxial(RG-58 A/U CATV type) 3600m 10Mbps Bus(often only point-to-point)
10Base-FL Fiber-optic- two strands of 2000m (full-duplex) 10Mbps Star(often only point-to-point)
multimode 62.5/125 fiber
100Base-TX Category5 UTP 100m 100Mbps Star,using either simple repeater hubs
or Ethernet switches
100Base-FX Fiber-optic- two strands of 412 meters (Half-Duplex) 100 Mbps Star(often only point-to-point)
multimode 62.5/125 fiber
2000 m (full-duplex) (200 Mb/s full-duplex
mode)
1000Base-SX Fiber-optic- two strands of 260m 1Gbps Star,using buffered distributor hub (or
multimode 62.5/125 fiber point-to-point)
1000Base-LX Fiber-optic- two strands of 440m (multimode) 5000 m 1Gbps Star,using buffered distributor hub (or
multimode 62.5/125 fiber or (singlemode) point-to-point)
monomode fiber
1000Base-CX Twinax,150-Ohm-balanced, 25m 1Gbps Star(or point-to-point)
shielded, specialty cable
1000Base-T Category5 100m 1Gbps Star
3
05/09/2018
Ethernet
ICS 2103: Computer Networks / BTC 1203: Introduction to Computer Networks James N. Gikera
Ethernet
Switches
• A switch is a computer networking device that is used to connect many devices
together on a computer network. Switches are “intelligent” hubs. They can
remember which ports are connected to which devices.
• Switches operate at the Data Link layer, layer 2 -OSI, layer 1- TCP/IP models.
• A switch is considered more advanced than a hub because a switch will only
send a message to a device that needs or request it. When a switch receives a
packet (data), it resends that packet directly to the correct port.
• E.g., host A sends out a message through port A. The switch records into its
switch table that host A is on port A. When host B decides to send a packet to
host A, the switch first checks its switch table.
• If port A is registered in the switch table, it will resend the packet directly to
port A instead of sending it to all the ports. This also means that switching
gives dedicated bandwidth.
A Switch is like a private phone
call. The phone number that is
entered is looked up in the table
and the correct telephone rings at
the other end.
ICS 2103: Computer Networks / BTC 1203: Introduction to Computer Networks James N. Gikera
4
05/09/2018
Ethernet
Switches
• A switch receives incoming link-layer frames, filters and forwards them
onto outgoing links. Switch filtering and forwarding are done with a
switch table.
ICS 2103: Computer Networks / BTC 1203: Introduction to Computer Networks James N. Gikera
Ethernet
Hubs
• Hubs work at the Physical layer (layer 1) of the OSI model.
• It links all the devices connected to it and forms a single network.
Each device that directly connects to the hub uses a port on the hub.
• When one device sends out a message to another device, the hub
does not decide where the message goes. It just repeats the
message to all the ports.
• One problem with hubs is that they
share bandwidth among everyone.
• Each device needs to decide
whether this message is for itself or
for others.
A hub is like telephone party. Each
person decides by the ring if it is their
phone call or someone else’s call, BUT,
everyone can listen in on the call.
ICS 2103: Computer Networks / BTC 1203: Introduction to Computer Networks James N. Gikera
5
05/09/2018
Ethernet
Routers
• A router is a networking device that connects a local network to other local
networks. At the Distribution Layer of the network, routers direct traffic
and perform other functions critical to efficient network operation.
• Routers are on the Network layer / third layer. They are used to connect
networks together. The Internet consists of many interconnected routers.
Using a network protocol, like TCP/IP, a router can intelligently move data
from one network to another.
• For example, when a user sends a request for a server, the router in the
local network will check its routing table and decide where to resend the
data. So, a router needs to have a better understanding of the whole
network structure than does a switch.
A long distance phone call uses a
router like device. The initial one plus
area code tells the system that the call is
not local but needs to be routed to a
distant phone network. The “phone
router” then connects the call to the
correct distant phone network.
ICS 2103: Computer Networks / BTC 1203: Introduction to Computer Networks James N. Gikera
Ethernet
Routers: Bridge Mode vs Router/Gateway Mode
ICS 2103: Computer Networks / BTC 1203: Introduction to Computer Networks James N. Gikera
6
05/09/2018
Ethernet
Switches vs Routers
• A switch differs from a Router in that it forwards packets using MAC
addresses (layer-2) whereas a Router is a layer-3 packet switch.
ICS 2103: Computer Networks / BTC 1203: Introduction to Computer Networks James N. Gikera
Ethernet
Switches vs Routers
Router Switch
Layer Network Layer (Layer 3 devices) Data Link Layer. Network switches operate at Layer 2 of
the OSI model.
Function Directs data in a network. Passes data between home Allow connections to multiple devices, manage ports,
computers, and between computers and the modem. manage VLAN security settings
Data Transmission Packet Frame (L2 Switch) Frame & Packet (L3 switch)
form
Ports 2/4/5/8 Switch is multi port Bridge. 24/48 ports
Device Type Networking device Active Device (With Software) & Networking device
Transmission Type At Initial Level Broadcast then Uni-cast & Multicast First broadcast; then unicast & multicast as needed.
Used in (LAN, MAN, LAN, MAN, WAN LAN
WAN)
Table Store IP address in Routing table and maintain address at its Switches use content accessible memory CAM table
own. which is typically accessed by ASIC (Application Specific
integrated chips).
Transmission Mode Full duplex Half/Full duplex
Broadcast Domain In Router, every port has its own Broadcast domain. Switch has one broadcast domain [unless VLAN
implemented]
Connections Can connect to multiple PCs or networking devices Can connect to multiple PCs or networking devices (L3
via Ethernet or WiFi switches) via Cat5, Cat5e
Speed 1-100 Mbps (Wireless); 100 Mbps - 1 Gbps (Wired) 10/100 Mbps, 1 Gbps
ICS 2103: Computer Networks / BTC 1203: Introduction to Computer Networks James N. Gikera
7
05/09/2018
Ethernet
Switches vs Routers
Router Switch
Address used for Uses IP address Uses MAC address
data transmission
Security Provides security measures to protect network Port security
Used for Connecting two or more networks Connecting two or more nodes in the same network
(L2) or different network (L3)
Bandwidth sharing Bandwidth sharing is Dynamic (Enables either static or There is no sharing. Individual port can be 10, 100,
dynamic bandwidth sharing for modular cable interfaces. The 1000 and 10000 Mbps
default percent-value is 0. The percent-value range is 1-96.)
Routing Decision Take faster routing decisions Take more time for complicated routing decisions
NAT (Network Routers can perform NAT Switches cannot perform NAT
Address
Translation)
Faster In a different network environment (MAN/ WAN), a router is In a LAN environment, an L3 switch is faster than a
faster than an L3 switch. router (built-in switching hardware)
Features Firewall VPN Dynamic hadling of Bandwidth Priority rt range On/Off setting of port VLAN Port
mirroring
Examples Linksys WRT54GL Juniper MX & EX series Cisco 3900, 2900, Alcatel's OmniSwitch 9000; Cisco Catalyst switch 4500
1900 and 6500 (10 Gbps)
Manufacturers Cisco, Netgear, Linksys, Asus, TP-Link, D-Link Cisco and D-link Juniper
ICS 2103: Computer Networks / BTC 1203: Introduction to Computer Networks James N. Gikera
Ethernet
Bridges
• http://nhprice.com/tutorial-of-differences-between-hub-bridge-
switch-and-router.html
ICS 2103/BTC
ICS 2103:1203:
Computer
Computer
Networks
Networks
/ BTC 1203: Introduction to Computer Networks James N. Gikera James N. Gikera
8
05/09/2018
Ethernet
Bridges
ICS 2103: Computer Networks / BTC 1203: Introduction to Computer Networks James N. Gikera
Ethernet
Gateway
• Gateways make communication possible between different architectures
and environments. They repackage and convert data going from one
environment to another so that each environment can understand the
other's environment data.
• A Gateway repackages information to match the requirements of the
destination system. Gateways can change the format of a message so that it
will conform to the application program at the receiving end of the transfer.
• A gateway links two systems that do not use the same:
– Communication protocols.
– Data formatting structures.
– Languages.
– Architecture.
• E.g. electronic mail gateways, such as X.400 gateway, receive messages in
one format, and then translate it, and forward in X.400 format used by the
receiver, and vice versa.
• To process the data, the Gateway de-encapsulates incoming data through
the networks complete protocol stack, then encapsulates the outgoing data
in the complete protocol stack of the other network to allow transmission.
ICS 2103: Computer Networks / BTC 1203: Introduction to Computer Networks James N. Gikera James N. Gikera
9
05/09/2018
Ethernet
Real Devices with corresponding networking symbols
Gateway
Hub
Access Points
Switch
Bridge
Router
ICS 2103: Computer Networks / BTC 1203: Introduction to Computer Networks James N. Gikera James N. Gikera
Ethernet
Applications of Ethernet
• Ethernet connectivity is widely preferred as it provides availability, performance and
bandwidth scalability, etc. Among the many applications include:-
Layer 2 VPNs for IT Infrastructure: Ethernet Layer 2 Virtual Private Networks (VPNs)
maximize the performance of existing IT infrastructure increasing network control.
Cloud Computing: The deterministic and dynamic service attributes of Ethernet
benefit the way cloud computing is used and consumed.
Site to Site Access: Provides added performance and higher bandwidth levels along
with service standardization at all locations.
Software-as-a-Service (SaaS), Service Oriented Architecture (SOA): Offers better
transparency, standardization at all locations and easier performance management.
Video Applications: Provides better quality of service (QoS).
Voice: Voice over Internet Protocol (VoIP) is well-known for its cost-savings. Ethernet
provides quality of service (QoS) options and improved performance management.
Distributed Storage Area Networks: Provides added performance and higher
bandwidth levels.
CCTV: Closed-circuit television (CCTV) – Ethernet connectivity offers consistent cost
and ubiquity enabling improved service management.
Business Continuity/Disaster Recovery: Ethernet allow business continuity and disaster
recovery networks to optimally perform with measurable performance and flexible
bandwidth levels.
Distributed Imaging: Ethernet delivers the higher bandwidth required for distributed
imaging systems including picture archiving and communications system (PACS).
ICS 2103: Computer Networks / BTC 1203: Introduction to Computer Networks James N. Gikera
10
05/09/2018
Ethernet
ICS 2103: Computer Networks / BTC 1203: Introduction to Computer Networks James N. Gikera
Ethernet
~Quiz~
• Compare between the maximum segment lengths and transfer speeds of
10Base-T and 1000Base-T Ethernet Cables.
• At which layer of the OSI model do the following devices operate? Switch,
hub, router?
• Which is the most common Ethernet Frame format?
• Differentiate between the functions of a hub, a switch and a router.
• Which device operates at the data link layer and filters both inbound and
outbound traffic from a network?
• Which device operates at the physical layer and sends out an incoming
message to all the ports?
• Which device that connects networks that uses the same protocol within
the same domain?
• Which device that connects networks that uses the same protocol from
different domains?
• Which device that connects networks that uses different protocols,
architectures and environments?
• Using a table, compare four functions of switches and routers?
• Explain any two applications of Ethernet in networking.
ICS 2103: Computer Networks / BTC 1203: Introduction to Computer Networks James N. Gikera
11