Академический Документы
Профессиональный Документы
Культура Документы
2
5.1 Ethernet
3
Ethernet (2)
4
Ethernet (3)
An Ethernet frame contains 7 fields
Preamble: 56 bits of alternating 1s and 0s to alert the
receiving system to the coming frame (it is used to
synchronize receiver & sender clock rates since each may
have different capabilities - 10 Mbps, 100 Mbps, or 1 Gbps)
SFD: Start Field/Frame Delimiter, flag (10101011); last
chance for synchronization
The preamble and the SFD are added by the physical layer
and are not formally part of the frame
Destination Source Length Data and
Preamble SFD Address Address MTU Padding
CRC
Length
MTU
6
Ethernet (5)
8
Ethernet (7)
d. 10 GbE (IEEE Std 802.3-2008, a consolidated one)
10Gbps Ethernet (10GBASE-T or 10GbE) was standardized,
promising yet higher Ethernet LAN capacities
10GbE Ethernet defines only full duplex links which can be
connected by switches (meaning a switch and a node can each
send frames to each other at the same time without
interference); hence no collision (and no Media Access
Protocol) and higher data rate
Half duplex operation and CSMA/CD do not exist in 10GbE
40 Gigabit Ethernet (or 40GbE) and 100 Gigabit Ethernet (or
100GbE) are also on the making, mainly used in data centers
9
5.2 Virtual LANs (VLANs)
Large LAN installations with many stations have some problems
and inconveniences
12
VLANs (4)
16
Data Center Networking (4)
Data Center Network Components
The hosts in data centers are called blades and each includes
CPU, memory, and disk storage
The hosts are stacked in racks, with each rack typically having
20 to 40 blades
At the top of each rack there is a switch, named the Top of Rack
(TOR) switch, that interconnects the hosts in the rack with each
other and with other switches in the data center
Each host in the rack has a NIC that connects to its TOR switch,
and each TOR switch has additional ports that can be connected
to other switches; Today hosts typically have 40 Gbps Ethernet
connections to their TOR switches
Each host is assigned its own data-center-internal IP address
The data center network supports two types of traffic: traffic
flowing between external clients and internal hosts (through
boarder routers) and traffic flowing between internal hosts
17
Data Center Networking (5)
To handle flows between external clients and internal hosts, the
data center network includes one or more border routers,
connecting the data center network to the public Internet
Load Balancing
A load balancer distributes external requests to the hosts,
balancing the load across the hosts
A large data center will often have several load balancers, each
one devoted to a set of specific cloud applications
Such a load balancer is sometimes referred to as a “layer-4
switch” since it makes decisions based on the destination port
number (layer 4) as well as destination IP address in the packet
When a host finishes processing the request, it sends its
response back to the load balancer, which in turn relays the
response back to the external client
18
Data Center Networking (6)
19
5.4 Devices at the Link and Network Layers
Switch
Operates at the link layer to connect devices in a LAN segment
Stores and forwards Ethernet frames, i.e., it buffers packets
Examines incoming frame’s MAC address, selectively forwards
frame to one or more outgoing links when frame is to be
forwarded on segment
It has a filtering capability to decide whether a frame has to be
forwarded or dropped using a switch table (that maps addresses
to ports)
Because a switch isolates one link from another, the different
links in the LAN can operate at different speeds and can run
over different media
Transparent
Hosts are unaware of the presence of switches
Plug-and-play, self-learning
Switches do not need to be configured
20
Devices at the Link and Network Layers (2)
A switch allows multiple simultaneous transmissions
Hosts have a dedicated, direct connection to a switch
Switching: A-to-D and B-to-E simultaneously, without
collisions
A
Switch Table
How does a switch know that D is F B
reachable via interface 4, E is
reachable via interface 5? 1 2
Each switch has a switch table 6 3
Each entry has: MAC address of 5 4
host, interface to reach host, TTL C
(Aging time)
How are entries created and E D
maintained in switch table? Switch with six interfaces
Something like a routing protocol? (1, 2, 3, 4, 5, 6)
21
Devices at the Link and Network Layers (3)
A switch is self-learning: It learns Source: A
which hosts can be reached Dest: D
through which interfaces A AD
When a frame is received, a switch
“learns” the location of the sender: F B
incoming LAN segment
Records sender’s location in a 6
1 2
3
switch table
5 4
Aging time: the switch deletes an
address in the table if no frames C
are received with that address after
some period of time E D
MAC Address Interface TTL Switch Table
A 1 9:02 (initially empty)
If aging time is, say, 60 minutes and if no frames arrive between
9:02 and 10:02, then the above entry will be deleted at 10:02
22
Devices at the Link and Network Layers (4)
Frame Filtering/Forwarding
Filtering is the switch function that determines whether a frame
should be forwarded to some interface or should just be dropped
23
Devices at the Link and Network Layers (5)
Forwarding is the switch function that determines the interfaces
to which a frame should be directed, and then moves the frame
to those interfaces
When a frame is received:
1. Record link associated with the sending host
2. Index switch table using destination MAC address
3. if (entry found for destination)
{
if (destination is on segment from which frame arrived)
drop the frame (it is on the same LAN and the switch
on that LAN would have already forwarded it to the
destination)
else forward the frame on the interface indicated
} forward on all interfaces except the interface
on which the frame arrived
else flood
24
Devices at the Link and Network Layers (6)
Self-learning/forwarding: example
Source: A
Frame destination unknown Dest: D
flood A AD
Destination A: location known:
selective send F B
1 2
MAC Address Interface TTL 6
AD 3
A 1 9:04 5 4
D 4 9:05 C
DA
Switch Table E
(initially empty) D
25
Devices at the Link and Network Layers (7)
Interconnecting switches
Switches can be connected together
S4
S1 S2 S3
A
D G I
B C F
E H
26
Devices at the Link and Network Layers (8)
Router
Operates at the network layer to connect different networks
When a packet arrives, the frame header and trailer are stripped
off and the packet located in the frame’s payload (a packet from
the layer above) field is passed to the routing software. The
software uses the packet header to choose an output line
payload
27
Devices at the Link and Network Layers (9)
Switches vs. Routers
Both are store-and-forward devices but
Routers
Are network layer (or Layer-3) devices
Examine network layer headers and forward packets
using network-layer (IP) addresses, i.e., they locate
specific networks
Maintain routing tables, implement routing algorithms
Switches
Are link layer (or Layer-2) devices
Forward packets using MAC addresses, i.e., they locate
specific devices within a network
Maintain switch tables, implement filtering and learning
algorithms
28
Devices at the Link and Network Layers (10)
29
Devices at the Link and Network Layers (11)
When does a network use switches, and when should it use
routers?
Small networks consisting of a few hundred hosts have a few
LAN segments
Switches suffice for these small networks, as they localize
traffic and increase aggregate throughput without
requiring any configuration of IP addresses
But larger networks consisting of thousands of hosts typically
include routers within the network (in addition to switches)
The routers provide a more robust isolation of traffic,
control broadcast storms, and use more “intelligent”
routes among the hosts in the network
30
Devices at the Link and Network Layers (12)
Read about
Multiprotocol Label Switching (MPLS) networks [RFC 3031,
RFC 3032]
Frame-relay and ATM networks which can also be used to
interconnect IP devices, though they represent a slightly
older (but still deployed) technology
31