Professional Documents
Culture Documents
Chuong II
Chuong II
1
What Is a Network?
Common Physical
Components of a Network
Interpreting a Network
Diagram
Resource-Sharing Functions
and Benefits
Data and
applications
Resources
Network
Network User Applications
E-mail (Outlook, POP3, Yahoo, and so on)
Web browser (IE, Firefox, and so on)
Instant messaging (Yahoo IM, Microsoft
Messenger, and so on)
Collaboration (Whiteboard, Netmeeting,
WebEx, and so on)
Databases (file servers)
Impact of User Applications
on the Network
Batch applications
FTP, TFTP, inventory updates
No direct human interaction
Bandwidth important, but not
critical
Interactive applications
Inventory inquiries, database
updates.
Human-to-machine interaction.
Because a human is waiting for a
response, response time is
important but not critical, unless the
wait becomes excessive.
Real-time applications
VoIP, video
Human-to-human interaction
End-to-end latency critical
Characteristics of a Network
Speed
Cost
Security
Availability
Scalability
Reliability
Topology
Physical Topology Categories
Logical Topologies
Bus Topology
Highly fault-tolerant
Expensive to implement
Partial-Mesh Topology
24
2.1. Giới thiệu về mạng
Ethernet.
The relationship of the 802 Standard to the
traditional OSI model
25
2.1. Giới thiệu về mạng Ethernet.
LAN Standards
2.1. Giới thiệu về mạng
Ethernet.
Data Link Layer:
1)Logical Link Control (LLC) :
In IEEE Project 802, flow control, error control, and part of
the framing duties are collected into one sublayer called the
logical link control .
The LLC provides one single data link control protocol for all
IEEE LANs.
A single LLC protocol can provide interconncctivity between
different LANs because it makes the MAC sublayer
transparent.
The purpose of the LLC is to provide flow and error control
for the upper layer protocols that actually demand these 27
services
2.1. Giới thiệu về mạng
Ethernet.
2)Media Access Control (MAC):
31
2.1. Giới thiệu về mạng
Ethernet.
Physical Layer: The physical layer is dependent
on the implementation and type of physical
media used. IEEE defines detailed
specifications for each LAN implementation.
32
2.1. Giới thiệu về mạng
Ethernet.
b) Ethernet:
The original Ethernet was created in 1976 at
Xerox's Palo Alto Research Center (PARC).
Since then, it has gone through four generations:
Standard Ethemet (10 Mbps), Fast Ethemet (100
Mbps), Gigabit Ethemet (1 Gbps), and Ten
Gigabit Ethemet (10 Gbps).
33
2.1. Giới thiệu về mạng
Ethernet.
Ethernet Evolution
CSMA/CD
Ethernet Frame Structure
Communicating Within the
LAN
2.1. Giới thiệu về mạng
Ethernet.
38
2.1. Giới thiệu về mạng
Ethernet.
1) Standard Ethernet :
39
2.1. Giới thiệu về mạng
Ethernet.
MAC Sublayer :
-Frame Format :
40
2.1. Giới thiệu về mạng
Ethernet.
MAC Sublayer :
-Frame Length :
41
2.1. Giới thiệu về mạng
Ethernet.
MAC Sublayer :
-Addressing : Each station on an Ethernet network (such as a
PC, workstation, or printer) has its own network interface card
(NIC). The NIC fits inside the station and provides the station
with a 6-byte physical address.
Example of an Ethernet address in hexadecimal notation:
42
2.1. Giới thiệu về mạng
Ethernet.
Unicast, Multicast, and Broadcast Addresses: A
source address is always a unicast address-the
frame comes from only one station. The
destination address, however, can be unicast,
multicast, or broadcast.
44
2.1. Giới thiệu về mạng
Ethernet.
Physical Layer :
45
2.1. Giới thiệu về mạng
Ethernet.
Encoding in a Standard Ethernet implementation:
46
2.1. Giới thiệu về mạng
Ethernet.
2) FAST ETHERNET
The goals of Fast Ethemet can be summarized:
Upgrade the data rate to 100 Mbps.
Make it compatible with Standard Ethernet.
Keep the same 48-bit address.
Keep the same frame format.
Keep the same minimum and maximum frame lengths.
47
2.1. Giới thiệu về mạng
Ethernet.
MAC Sublayer
-Autonegotiation: is a new feature added to Fast
Ethemet. Autonegotiation allows two devices to
negotiate the mode or data rate of operation
- Autonegotiation was designed particularly for the
following purposes:
48
2.1. Giới thiệu về mạng
Ethernet.
To allow incompatible devices to connect to
one another.
To allow one device to have multiple
capabilities.
To allow a station to check a hub's capabilities.
49
2.1. Giới thiệu về mạng
Ethernet.
Physical Layer.
- Topology :
50
2.1. Giới thiệu về mạng
Ethernet.
-Implementation
51
2.1. Giới thiệu về mạng
Ethernet.
-Encoding
52
2.1. Giới thiệu về mạng
Ethernet.
3) GIGABIT ETHERNET
The goals of the Gigabit Ethernet design can be
summarized as follows:
Upgrade the data rate to 1 Gbps.
Make it comoatible with Standard or Fast Ethernet.
Use the same 48-bit address.
Use the same frame format.
Keep the same minimum and maximum frame lengths.
To support autonegotiation as defined in Fast Ethernet 53
2.1. Giới thiệu về mạng
Ethernet.
MAC Sublayer
-Full-Duplex Mode :
There is a central switch connected to all computers
or other switches.
Each switch has buffers for each input port in which
data are stored until they are transmitted
There is no collision (no CSMA/CD)
The maximum length of the cable is determined by
the signal attenuation in the cable
2.1. Giới thiệu về mạng
Ethernet.
-Half-Duplex Mode:
Gigabit Ethernet can also be used in half-duplex mode,
although it is rare.
A switch can be replaced by a hub, which acts as the common
cable in which a collision might occur.
The half-duplex approach uses CSMA/CD.
The maximum length of the network in this approach is totally
dependent on the minimum frame size. Three methods have
been defined: traditional, carrier extension, and frame
bursting 55
2.1. Giới thiệu về mạng
Ethernet.
Physical Layer
-Topology
56
2.1. Giới thiệu về mạng
Ethernet.
-Implementation
57
2.1. Giới thiệu về mạng
Ethernet.
-Encoding
58
2.2. Kết nối mạng cục bộ
Ethernet.
Connecting devices
59
2.2. Kết nối mạng cục bộ
Ethernet.
Passive Hubs:
-Passive hub is just a connector.
-Passive hub connects the wires coming from different
branches.
- In a star-topology Ethemet LAN, a passive hub is just a
point where the signals coming from different stations
collide; the hub is the collision point. This type of a hub is
part of the media; its location in the Internet model is below
the physical layer.
60
2.2. Kết nối mạng cục bộ
Ethernet.
Repeaters
61
2.2. Kết nối mạng cục bộ
Ethernet.
Function of a repeater 63
2.2. Kết nối mạng cục bộ
Ethernet.
Active Hubs: An active hub is actually a multiport
repeater. It is normally used to create connections
between stations in a physical star topology. Hubs can
also be used to create multiple levels of hierarchy
64
2.2. Kết nối mạng cục bộ
Ethernet.
Bridges
-A bridge operates in both the physical and the data
link layer.
-A bridge has a table used in filtering decisions
-A bridge does not change the physical (MAC)
addresses in a frame
65
2.2. Kết nối mạng cục bộ
Ethernet.
h
68
2.2. Kết nối mạng cục bộ
Ethernet.
Gateway
A gateway is normally a computer that operates in all five
layers of the Internet or seven layers of OSI model. A
gateway takes an application message, reads it, and
interprets it. This means that it can be used as a connecting
device between two internetworks that use different models.
For example, a network designed to use the OSI model can
be connected to another network using the Internet model.
The gateway connecting the two systems can take a frame as
it arrives from the first system, move it up to the OSI
application layer, and remove the message
69
2.2. Kết nối mạng cục bộ
Ethernet.
Switches:
Network Congestion
High-performance PCs
More networked data 70
Bandwidth-intensive applications
2.2. Kết nối mạng cục bộ
Ethernet.
73
2.2. Kết nối mạng cục bộ
Ethernet.
Three Switch Functions:
Address learning
Forward/filter decision
Loop avoidance 74
2.2. Kết nối mạng cục bộ
Ethernet.
How Switches Learn Host Locations
75
2.2. Kết nối mạng cục bộ
Ethernet.
80
2.2. Kết nối mạng cục bộ
Ethernet.
Spanning tree protocol
81
2.4. Quá trình phân phối gói tin
từ host to host thông qua switch
82
Layer 2 Devices