310 likes | 345 Views
Chapter 13 Multiple Access. 13.1 Random Access. MA – Multiple Access CSMA – Carrier Sense MA CSMA/CD – CSMA/Collision Detection CSMA/CA – CSMA/Collision Avoidance. Evolution of random-access methods. ALOHA network – Multiple Access. Base station is central controller
E N D
13.1 Random Access • MA – Multiple Access • CSMA – Carrier Sense MA • CSMA/CD – CSMA/Collision Detection • CSMA/CA – CSMA/Collision Avoidance
ALOHA network – Multiple Access • Base station is central controller • Base station acts as a hop • Potential collisions, all incoming data is @ 407 MHz
Persistence strategies • 1- persistent • P-persistent
CSMA/CD procedure – Collision Detection CSMA/CD procedure – Collision Detection - Used in Ethernet Usually15
CSMA/CA procedure – Collision Avoidance CSMA/CA procedure – Collision Avoidance - Used in Wireless LAN Interframe Gap
13.2 Controlled Access • Stations consult one another to find which station has the right to send Reservation Polling – Select and Poll Token Passing
Reservation access method • A station need to make a reservation before sending data
Polling • If the primary want to receive data, it asks the secondaries if they have anything to send. • The secondaries are not allowed to transmit data unless asked (don’t call us - we’ll call you)
Token-passing network • A station is authorized to send data when it receives a special frame called a token
13.3 Channelization FDMA – Frequency Division TDMA – Time Division CDMA – Code Division
FDMA • The available bandwidth is shared by all stations. • The FDMA is a data link layer protocol that uses FDM at the physical layer In FDMA, the bandwidth is divided into channels.
TDMA • The entire bandwidth is just one channel. • Stations share the capacity of the channel in time In TDMA, the bandwidth is just one channel that is timeshared.
CDMA • Only one channel occupies the entire bandwidth of the link • All Stations can send data simultaneously; there is no time sharing. In CDMA, one channel carries all transmissions simultaneously.
Chip sequences – Four Stations • CDMA is based on coding theory • Each station is assigned a code, which is a sequence of numbers called chips. • All Stations can send data simultaneously; there is no time sharing.
Encoding Rules • When a station is idle, it sends no signal, which is represented by a 0.
Encoding Rules • Showing how four stations share the link during 1-bit interval. • CDMA Multiplexer
Encoding Rules • CDMA Demultiplexer
Sequence Generation • To generate sequences, we use a Walsh table, a two-dimensional table with an equal number of rows and columns. • Each row is a sequence of chips
Properties of Orthogonal Sequences • If we multiply a sequence by -1, every element in the sequence is complemented • If we multiply two sequences, element by element and add the result, we get a number called the inner product. If two sequences are the same, we get N, where N is the number of sequences; if different ,we get • Inner product of a sequence by its complement is –N. So A·B is 0.
Example 1 Check to see if the second property about orthogonal codes holds for our CDMA example. Solution The inner product of each code by itself is N. This is shown for code C; you can prove for yourself that it holds true for the other codes. C . C = [+1, +1, -1, -1] . [+1, +1, -1, -1] = 1 + 1 + 1 + 1 = 4 If two sequences are different, the inner product is 0. B . C = [+1, -1, +1, -1] . [+1, +1, -1, -1] = 1 - 1 - 1 + 1 = 0
Example 2 Check to see if the third property about orthogonal codes holds for our CDMA example. Solution The inner product of each code by its complement is -N. This is shown for code C; you can prove for yourself that it holds true for the other codes. C . (-C ) = [+1, +1, -1, -1] . [-1, -1, +1, +1] = - 1 - 1 - 1 - 1 = -4 The inner product of a code with the complement of another code is 0. B . (-C ) = [+1, -1, +1, -1] . [-1, -1, +1, +1] = -1 + 1 + 1 - 1 = 0