طرح درس ‌‌‌‌[نام درس] شبکه های کامپیوتر

Download Report

Transcript طرح درس ‌‌‌‌[نام درس] شبکه های کامپیوتر

Basics of COMPUTER NETWORKS
Book in glance
Computer Engineering
Faculty of Engineering
Kurdistan University
( Email : [email protected])
‫‪Contact information‬‬
‫سرفصل‌هاي‌درس‬
‫•‬
‫•‬
‫•‬
‫•‬
‫•‬
‫•‬
‫•‬
‫فصل ‪ :1‬مفاهيم اوليه‬
‫فصل ‪ :2‬اليه فيزيكي‬
‫فصل ‪ :3‬اليه پيوند داده‬
‫فصل ‪ :4‬اليه شبكه‬
‫فصل ‪ :5‬اليه انتقال‬
‫فصل ‪ :6‬اليه كاربرد‬
‫فصل ‪: 7‬كابل كشي ساخت يافته‬
What’s a Computer Network?
• Connecting two or more computers or other
devices via a Communication media( Physical
or wireless)
• Categorizing networks according to size:
– LAN (Local Area Network)
– MAN (Metropolitan Area Network)
– WAN (Wide Area Network)
– Internet
Kurdistan University
3
Computer Network
Types of Links
Point-to-Point
Multiple Access
…
Computer Network
Kurdistan University
4
Kurdistan University
5
Computer Network
Computer Network
Kurdistan University
6
Protocol Demultiplexing
• Multiple choices at each layer
FTP
HTTP NV
TCP
TFTP
UDP
Network IP
IPX
NET1
TCP/UDP
IP
NET2 …
NETn
Computer Network
Type
Field
Protocol
Field
Port Number
Kurdistan University
7
OSI Layers and Locations
Application
Presentation
Session
Transport
Network
Data Link
Physical
Host
Hub
Switch
Computer Network
Router
Host
Kurdistan University
8
Network Interface Card (NIC)
Computer Network
Kurdistan University
9
Hub (layer 1 device)
Just knows bits
Computer Network
Kurdistan University
10
Switch (layer 2 device)
Knows MAC addresses
Computer Network
Kurdistan University
11
Router (layer 3 device)
Knows Logical addresses
(IP and IPX)
Computer Network
Kurdistan University
12
Computer Network
Kurdistan University
13
Twisted Pair
UTP
Connector
STP
Computer Network
Kurdistan University
14
Bad
Good
Computer Network
Kurdistan University
15
Connectors
Computer Network
Kurdistan University
16
Fiber Optic
Connectors
Computer Network
Kurdistan University
17
Computer Network
Kurdistan University
18
A Fiber Optic Ring with Active repeaters
Computer Network
Kurdistan University
19
Electromagnetic Spectrum
Computer Network
Kurdistan University
20
Types of Propagation
Computer Network
Kurdistan University
21
Basic Modulation Types
Computer Network
Kurdistan University
22
Compression:
 Huffman Coding
 Run-length Coding
 Ziv Lempel compression
Computer Network
Kurdistan University
23
Computer Network
Kurdistan University
24
FDM (Frequency Division Multiplexing)
Computer Network
Kurdistan University
25
WDM (Wavelength Division Multiplexing)
Computer Network
Kurdistan University
26
TDM (Time Division Multiplexing)
Computer Network
Kurdistan University
27
Computer Network
Kurdistan University
28
Circuit Switching
Computer Network
Kurdistan University
29
Computer Network
Kurdistan University
30
Time Division Switch
Computer Network
Kurdistan University
31
Packet Switching
Computer Network
Kurdistan University
32
Message Switching
Computer Network
Kurdistan University
33
Framing Methods
Character Count
Byte Stuffing
Bit Stuffing
Computer Network
Kurdistan University
34
Handling Errors
Computer Network
Kurdistan University
35
Single bit Error
Multiple bit Error
Computer Network
Kurdistan University
36
Parity bit
0110100
1
1011010
0
0010110
1
1110101
1
1001011
0
1000110
1
One Dimensional Parity
Two Dimensional Parity
Computer Network
Kurdistan University
37
Cyclic Redundancy Check (CRC)
• Represent a (n+1)-bit message as an n-degree polynomial
M(x)
– E.g., 10101101  M(x) = x7 + x5 + x3 + x2 + x0
• Choose a divisor k-degree polynomial G(x)
• Compute reminder R(x) of M(x)*xk / C(x), i.e., compute
A(x) such that
M(x)*xk = A(x)*G(x) + R(x), where degree(R(x)) < k
• Let
T(x) = M(x)*xk – R(x) = A(x)*G(x)
• Then
– T(x) is divisible by G(x)
Computer Network
Kurdistan University
38
Hamming Code
Computer Network
Kurdistan University
39
Categories of Flow Control
Computer Network
Kurdistan University
40
Stop-and-Wait
Computer Network
Kurdistan University
41
Sliding Window
Sender/Receiver State
Sender
Max ACK received
Receiver
Next expected
Next seqnum
…
…
Max acceptable
…
…
Sender window
Receiver window
Sent & Acked
Sent Not Acked
OK to Send
Not Usable
Received & Acked
Computer Network
Acceptable Packet
Not Usable
Kurdistan University
42
Example of Sliding Window
Computer Network
Kurdistan University
43
Sliding Window
Go-Back-n, Damaged Frame
Computer Network
Kurdistan University
44
Sliding window
Selective-Repeat, Damaged Frame
Computer Network
Kurdistan University
45
Media Access Control
Evolution of Contention Protocols
Aloha
Slotted
Aloha
CSMA
CSMA/CD
Developed in the 1970s
for a packet radio
network
Improvement: Start transmission only at fixed
times (slots)
CSMA = Carrier Sense Multiple Access
Improvement: Start transmission only if no
transmission is ongoing
CD = Collision Detection
Improvement: Stop ongoing transmission if a
collision is detected (e.g. Ethernet)
Computer Network
Kurdistan University
46
The Aloha Protocol
•simple: if you have pkt to send, "just do it"
•if pkt suffers collision, will try resending later
Computer Network
Kurdistan University
47
Slotted Aloha
•synchronous system: time divided into slots
•slot siz equals fixed packet transmission time
•when pkt ready for transmission, wait until start of next
slot
•packets overlap completely or not at all
Computer Network
Kurdistan University
48
Carrier Sensing Protocols
•Aloha is inefficient (and rude!): doesn't listen before
talking!
•Carrier Sense Multiple Access: CSMA
non-persistent CSMA:
1.sense (listen to) channel
2.if {channel sensed busy}
then wait random time; go to 1
else transmit packet
p-persistent CSMA:
1.sense (listen to) channel
2.when {channel sensed idle}
transmit with probability p
else wait random time, go to 1
Computer Network
Kurdistan University
49
CSMA/CD
•CSMA with collision detection(CD):
•listen while talking!
•stop transmitting when another pkt has collided with your pkt
•wait random time before attempting to resend
•worst case time to detect a collision?
•performance depends (as in CSMA) on channel length
Computer Network
Kurdistan University
50
Collision free protocols
Reservation


No collisions
reservation is made before sending
t
d bits
N bits



average waiting time before transmission is N
low load utilization: d/(d+N) – not good if N is large
high-load utilization d/(d+1)
Computer Network
Kurdistan University
51
Collision free protocols
Computer Network
Kurdistan University
52
Computer Network
Kurdistan University
53
IEEE 802 Standards
Computer Network
Kurdistan University
54
Computer Network
Kurdistan University
55
02.3 Frame structure
Computer Network
Kurdistan University
56
10Base5
Computer Network
Kurdistan University
57
10Base2
Computer Network
Kurdistan University
58
10BaseT
Computer Network
Kurdistan University
59
10BaseF
Computer Network
Kurdistan University
60
IEEE 802.4
Token Bus Network
Computer Network
Kurdistan University
61
Token Ring IEEE 802.5
Listen:
Talk:
Data
l4
l3
Token/Data
l1
l2
PROP  i li / c  TRTmin
TRT=Token Rotation Time
Computer Network
Kurdistan University
62
Token Ring IEEE 802.5
Computer Network
Kurdistan University
63
IEEE 802.11
Wireless LAN (WLAN)
802.11
802.11b
802.11a
802.11g
Computer Network
Kurdistan University
64
ISM Bands
(Unlicensed )
802.11b
(11Mbps)
802.11a
(54 Mbps)
802.11g
(54 Mbps)
Computer Network
Kurdistan University
65
Wireless Network Interface Card
Wireless Access Point
Computer Network
Kurdistan University
66
Spread Spectrum Methods
DSSS
FHSS
Computer Network
Kurdistan University
67
FHSS
Computer Network
Kurdistan University
68
DSSS
Original Data
Transmitted Data
Computer Network
Kurdistan University
69
ESS
Extended Service Set
Overlapped Area
for roaming
BSS: Basic Service Set
Computer Network
Kurdistan University
70
CSMA/CA
Computer Network
Kurdistan University
71
Computer Network
Kurdistan University
72
Computer Network
Kurdistan University
73
Computer Network
Kurdistan University
74
Network Layer
Internetworking
Hop-by-hop
Computer Network
Kurdistan University
75
Need of Network Layer
Host-to-host (End-to-end)
Computer Network
Kurdistan University
76
Packet delivery in Network layer
Internet
Computer Network
Kurdistan University
77
Routing Algorithms
• Calculate the shortest path (lowest cost)
• Two common methods
– Distance vector routing (RIP , IGRP , … )
– Link state routing (OSPF , IS-IS)
Computer Network
Kurdistan University
78
The concept of distance vector routing
Computer Network
Kurdistan University
79
Concept of link state routing
Computer Network
Kurdistan University
80
Hierarchical Routing
Routing in Autonomous Systems (IGP)
Routing between Autonomous Systems (EGP)
EGP
IGP
Computer Network
Kurdistan University
81