Local Area Network (LAN) - Kasetsart University
Transcript of Local Area Network (LAN) - Kasetsart University
1
Local Area Network (LAN)
รศ.ดร.อนันต์ ผลเพิ่ม
Asso. Prof. Anan Phonphoem, [email protected]
http://www.cpe.ku.ac.th/~anan
Computer Engineering Department
Kasetsart University, Bangkok, Thailand
2
Outline
Line Configuration
Topology
Multiple Access Protocol
LAN
Ethernet Address
3
Line configuration
Defines the attachment of communication devices to a link
A link – A physical communication pathway
2 possible configurations
Point-to-point
Multipoint
4
Point-to-point
Link between two devices
Use entire channel capacity for communication
Wire or wireless channel (link)
5
Point-to-point
Satellite dish Satellite dish
Link
6
Multipoint
More than 2 devices share a single link
Channel capacity is shared
Link
7
Topology
The way a network is physically or logically layout
2 or more devices connected to a link
2 or more links form a topology
Basic topologies• Mesh
• Star
• Tree
• Bus
• Ring
• Hybrid
8
Mesh Topology
Each device has a dedicated point-to-point link
total links = n(n-1)/2
9
Mesh Topology
Advantages High throughput
Robust
High Security
Easy to cope with fault
Disadvantages Number of cables – space & cost (material, install.)
Number of I/O ports
Difficult to reconfigure
Usage Backbone connecting
10
Star Topology
Each device has a dedicated point-to-point link to a central controller (Hub)
ACTACT10M100M
1 2 3 4
13 14 15 16
5 6 7 8
17 18 19 20
9 10 11 12
21 22 23 24
UPLINK
1 2 3 4 5 6 7 8 9 101112
131415161718192021222324COLCOL
PWR
SWITCH
11
Tree Topology A variation of star
ACTACT10M100M
1 2 3 4
13 14 15 16
5 6 7 8
17 18 19 20
9 10 11 12
21 22 23 24
UPLINK
1 2 3 4 5 6 7 8 9 101112
131415161718192021222324COLCOL
PWR
SWITCH
ACTACT10M100M
1 2 3 4
13 14 15 16
5 6 7 8
17 18 19 20
9 10 11 12
21 22 23 24
UPLINK
1 2 3 4 5 6 7 8 9 101112
131415161718192021222324COLCOL
PWR
SWITCHACTACT
10M100M1 2 3 4
13 14 15 16
5 6 7 8
17 18 19 20
9 10 11 12
21 22 23 24
UPLINK
1 2 3 4 5 6 7 8 9 101112
131415161718192021222324COLCOL
PWR
SWITCH
12
Bus Topology
Each node connects to the Bus (a long cable running as a backbone)
Terminator
Bus Topology
13
http://www.windowsnetworking.com/j_helmig/thin.htm
14
Bus Topology
Advantages
Easy to install
Less cable compare to other topologies
Disadvantages
Difficult to cope with fault
Difficult to modify
Not robust
15
Ring Topology
Each device has a dedicated point-to-point with its neighbors
16
Ring Topology
Advantages
Easy to install
Easy to cope with fault
Disadvantages
Not robust
17
Hybrid Topologies
ACTACT10M100M
1 2 3 4
13 14 15 16
5 6 7 8
17 18 19 20
9 10 11 12
21 22 23 24
UPLINK
1 2 3 4 5 6 7 8 9 101112
131415161718192021222324COLCOL
PWR
SWITCH
ACTACT10M100M
1 2 3 4
13 14 15 16
5 6 7 8
17 18 19 20
9 10 11 12
21 22 23 24
UPLINK
1 2 3 4 5 6 7 8 9 101112
131415161718192021222324COLCOL
PWR
SWITCH
18
Multiple Access Protocol
19
Random Access Evolution
MAMultiple access
CSMACarrier sense
Multiple access
CSMA/CDCarrier sense
Multiple accessCollision detect
CSMA/CACarrier sense
Multiple accessCollision avoidance
Transmission on a shared bus
20http://cnp3book.info.ucl.ac.be/1st/html/lan/lan.html
Collision on a shared bus
21http://cnp3book.info.ucl.ac.be/1st/html/lan/lan.html
22
Collision in CSMA
Collision in CSMA
23http://www.spectrose.com/what-is-ethernet-how-it-works.html
24
CSMA/CD
25
CSMA/CD animation
26
CSMA/CD
CRS
collision
CRS
CRS
CRS
defer
defer
X
Y
Z
Modified from Lucent Slide
27
CSMA/CA
28
CSMA/CA
defer
CRS
CRS
defer
defer
CRS CRS
defer
X
Y
Z
Modified from Lucent Slide
29
Token passing
30
Token passing procedure
31
Token Ring animation
32
Ethernet
For Baseband:
Manchester Encoding
For Broadband (not popular):
Differential PSK (10Broad36)
33
Notation
Thicknet
34
10BASE5
35
Notation
36
10Base2
37
Notation
38
10BaseT
39
100Base-TX
40
1000Base-X
41
Token Ring
Differential Manchester encoding
Support up to 16 Mbps
3 types of frames:
Data/command
Token
Abort
“Logical” Ring Topology
42https://www.microsoft.com/mspress/books/sampchap/5202/0735613788-07.gif
43
MAU
44
Token Ring Switch
45
FDDI Rings
46
FDDI Ring Failure
FDDI
47http://flylib.com/books/2/59/1/html/2/images/1587050900/graphics/05fig08.gif
Ethernet Address
Each device has a network interface card (NIC)
Can be called
MAC Address / Physical Address / Ethernet Address
Each NIC has a 6-byte address
Written in Hexadecimal notation
00-E0-00-AB-04-50
Ethernet Address
Unicast Address
(for source and Destination)
00-E0-00-AB-04-50
Broadcast Address FF-FF-FF-FF-FF-FF
Multicast Address 11-C0-02-D9-12-77
Find your NIC’s Vendor
Open terminal and find your MAC Address
Visit https://macvendors.com
Enter your mac address vendor
50
00-E0-00-AB-04-50
OUI: Organizational Unique Identifier
51
Summary
Line Configuration
Topology
Multiple Access Protocol
LAN
Ethernet
Token Ring / FDDI
Ethernet Address