MULTIPLE ACCESS IN COMMUNICATION NETWORKS
ECE 422 – DATA COMMUNICATION & COMPUTER NETWORKS Wednesday, 12 February 2020
1
COMMUNICATION NETWORKS ECE 422 DATA COMMUNICATION & COMPUTER - - PowerPoint PPT Presentation
MULTIPLE ACCESS IN COMMUNICATION NETWORKS ECE 422 DATA COMMUNICATION & COMPUTER NETWORKS Wednesday, 12 February 2020 1 WHERE ARE WE IN THE SYLLABUS? Course Content: Introduction: Overview of Data Communications and Networking. Physical
ECE 422 – DATA COMMUNICATION & COMPUTER NETWORKS Wednesday, 12 February 2020
1
Course Content: Introduction: Overview of Data Communications and Networking. Physical Layer: Analog and Digital, Analog Signals, Digital Signals, Analog versus Digital, Data Rate Limits, Transmission Impairment, More about signals. Digital Transmission: Line coding, Block coding, Sampling, Transmission mode. Analog Transmission: Modulation of Digital Data; Telephone modems, modulation of Analog signals. Multiplexing: FDM, TDM, CDM. Transmission Media: Guided Media, Unguided media (wireless). Data Link Layer: Error Detection and correction - Types of Errors, Detection, Error Correction; Data Link Control and Protocols-Flow and Error Control, Stop-and-wait ARQ. Go-Back-N ARQ, Selective Repeat ARQ, HDLC. Point-to-Point Access- Point–to-Point Protocol (PPP), PPP Stack, Multiple Access Random Access, Controlled Access, Channelization. Network Layer: Host to Host Delivery: Internetworking, addressing and Routing Network Layer Protocols: ARP, IPV4, ICMP, IPV6 and ICMPV6 Transport Layer: Process to Process Delivery: UDP; TCP congestion control and Quality of service. Application Layer: Client Server Model, Socket Interface, Domain Name System (DNS): Electronic Mail (SMTP) and file transfer (FTP) HTTP and WWW. Local area Network: Ethernet - Traditional Ethernet, Fast Ethernet, Gigabit Ethernet; Token bus, token ring; Wireless LANs - IEEE 802.11, Bluetooth virtual circuits: Frame Relay and ATM. Industrial Communication and Control Networks: Transmission methods, Network topology, Contemporary networks – Profibus, Controller Area Network (CAN), DeviceNet, CANopen, Actuator Sensor Interface (AS-1),Industrial Ethernet.
2
The Data Link Layer
free to the upper layer.
a) Physical addressing b) Flow-control c) Error Control d) Access Control Suppose the Physical Media is Multipoint (Ethernet)
3
For effective Communication, we require that no two people: 1. Should speak at the same time, 2. Interrupt each other, 3. Monopolize the discussion. We can therefore introduce control measure as follows: a) Have a chairman selecting who speaks and limiting speech time, b) Use a microphone automated switch-off to place a limit on speech time, The alternative, is to have a free for all meeting (Shouting match!)
4
Computer Networks Apply the Same Rules when many Computers/Devices share the same communication Media
Multiple Access Protocols Random Access
Controlled Access
Channelization
5
Covered in ECE 416
a) When can the station access the medium? b) What can the station do if the medium is busy? c) How can the station determine the success or failure of the transmission? d) What can the station do if there is an access conflict?
A B C E F
6
1. ALOHA was the earliest random access method. 2. It was developed at the University of Hawaii in early 1970. 3. It is a system for coordinating and arbitrating access to a shared communication Networks channel. 4. It was designed for a radio (wireless) LAN, but it can be used on any shared medium. 5. There are two different types of ALOHA: a) Pure ALOHA b) Slotted ALOHA
7
frames.
eight frames send on the shared medium.
because multiple frames are in contention for the shared channel.
correctly received frame.
receive ACK before timeout, it retransmits the frame.
8
9
𝑶𝒄𝒈 = 𝟏 is is 𝑶𝒄𝒈 ≥ 𝑶𝑴𝒋𝒏? 𝑶𝒄𝒈 = 𝑶𝒄𝒈 + 𝟐 Transmitter Sends Receiver Listens
Vulnerable time = 2 × 𝑢
10
If a station wants to transmit data, its transmission may damage the transmission of another packet which commenced transmission up to t seconds before. Once the station has started transmitting data, its transmission may be disrupted
station starts transmitting.
11
SOLUTION
𝐺𝑠𝑏𝑛𝑓 𝑇𝑗𝑨𝑓 𝑈𝑠𝑏𝑜𝑡𝑛𝑗𝑡𝑡𝑗𝑝𝑜 𝑇𝑞𝑓𝑓𝑒 = 500 1,000,000 = 500𝜈𝑡𝑓𝑑
i.e 0.5 msec before or 0.5 msec after the station starts transmitting.
B C A t t 0.5 ms 0.5 ms
frames generated by a pure ALOHA system during a frame transmission time i.e attempts per packet.
transmissions, S is given by: 𝑇 = 𝐻𝑓−2𝐻
G = 0.5, i.e 𝑇𝑛𝑏𝑦 = 0.5𝑓−1= 0.184
12
13
14
200 200,000 or 1 ms.
The load, G = 1 Or S = Ge-2G = 1xe-2 = 0.135 or 13.5% Throughput = 1000 x 0.135 = 135 frames per second
200 200,000 or 1 ms.
1 2 frame per
The load, G =
1 2
Or S =
1 2e-1 = 0.184 or 18.4%
Throughput = 500 x 0.184 = 93 frames per second
15
200 200,000 or 1 ms.
1 4 frame per
The load, G =
1 4
Or S =
1 4e-0.5 = 0.152 or 15.2%
Throughput = 250 x 0.152 = 36 frames per second
16
17
B C A t t Slot-1 Slot-2 Slot-3
18
19
generated by a pure ALOHA system during
transmissions, S is given by: 𝑇 = 𝐻𝑓−𝐻
1, i.e 𝑇𝑛𝑏𝑦 = 1𝑓−2= 0.368
20
21
22
The frame transmission time is
200 200,000 or 1 ms
(a) System produces 1000 frames per second Let us call G the average number of frames generated In this case G = 0.001 x 1,000 = 1 S =G x e-G or S =0.368 (or 36.8 percent) (was 13.5% for pure Aloha!) Throughput is therefore 1000 x 0.0368 =368 frames. Therefore only 368 out of 1000 frames will probably survive.
23
200 200,000 or 1 ms
1 2
1 2 𝑓−1
2 =0.303 ( or 30.3 percent)
24
25
26
∆t
27
1. Persistence methods were developed to answer the question .. ‘What should a station do if it senses the channel to be busy?’
a) Non-Persistence b) 1-persistence c) p-Persistence
28
continuously.
sends its frame immediately.
highest chance of collision because two or more stations may find the line idle and send their frames simulteneously.
29
1. The p-persistent method is used if the channel has time slots with a slot duration equal to or greater than the maximum propagation time. 2. After the station finds the line idle it follows these steps:
a) With probability p, the station sends its frame. b) With probability q = 1 - p, the station waits for the beginning of the next time slot and checks the line again. I. If the line is idle, it goes to step (a). II. If the line is busy, it acts as though a collision has occurred and uses the backoff procedure.
30
31
32
signal on the wire.
the it begins sending the frame.
no other hosts begin transmitting.
same time a a collision occurs.
that causes all hosts on the network segment to stop sending data.
retransmit their packets.
33
34
35
SOLUTION The frame transmission time is Tfr = 2 x Tp =2X25.6 =51.2 µsec. This means, in the worst case, a station needs to transmit for a period of 51.2 µsec to detect the collision. The minimum size of the frame is 10x106 x 51.2x10-6 =512 bits or 64 bytes. 512 bits (or 512/8 = 64 bytes) is actually the minimum size of the frame for Standard Ethernet, i.e 10baseT.
have three values:
a) Zero Level: the channel is idle b) Normal Level: A station has successfully captured the channel and is sending its frame. c) Abnormal Level: There is a collision and the level of the energy up to twice the normal level.
therefore designed to monitor the energy level to determine if the channel is idle, busy, or in collision mode.
36
37
Multiple Access Protocols Random Access
Controlled Access
Channelization
39
40
41
42
43
44
45
46
47
A B C E F
48
bandwidth of a link is shared in time, frequency, or through code, between different stations.
to send its data in the common transmission medium.
a) TDMA b) FDMA c) CDMA
49
Channels Channels Link
50
51
52
Unique codes Data streams