Professional Documents
Culture Documents
Physical Layer
the layer that actually interacts with the transmission media
the physical part of the network that connects network components together
involved in physically carrying information from one node in the network to the
next
position of the physical layer
2
Bit-to-Signal Transformation
Since a transmission medium (cable or air) cannot carry bits, the bits must be
represented by a signal, electromagnetic energy that can propagate through a
medium (already discussed the detail of it in chapter one )
Bit Synchronization
the timing of bit transfer is controlled by providing clocking mechanisms that
control both the sender and the receiver 3
Switching
there are Two methods
circuit switching - a physical layer function
packet switching - also datalink and network layer function
transmission impairments
attenuation: loss of energy
distortion: the signal changes its shape; for signals made of different
frequencies
categories of multiplexing
for analog signals
FDM - Frequency-Division Multiplexing
WDM - Wave-Division Multiplexing; mainly for fiber optic cable
for digital signals
TDM - Time-Division Multiplexing 5
Devices
1. NIC - Network Interface Card
amplifies electronic signals
physically connects a computer to the transmission medium
2. Transmission Media - actually below the physical layer, but controlled by it
two categories
guided (wired) - copper wire (twisted-pair cable, coaxial cable) and
fiber-optic cable
unguided (wireless) - terrestrial radio, microwave, satellite - signals
broadcast through air
comparison factors: bandwidth, delay, cost, ease of installation and
maintenance
6
3. Connectors - to connect cables with devices
they operate in different layers since different devices use different pieces
of information to decide how to switch
7
The Data Link Layer
8
Introduction
the data link layer is responsible for carrying a packet from one hop
(computer or router) to the next hop; i.e., it has local responsibility unlike
the network layer
position of the data link layer
9
Error Detection and Correction
mainly a data link layer function
networks must be able to transfer data from one device to another with complete
accuracy - our wish
data can be corrupted during transmission - many factors exist - like transmission
impairments
hence, reliable systems must have a mechanism for detecting and correcting errors
two types of errors: single-bit and burst
single-bit error: only one bit in a data unit (byte, character, packet, ...) has
changed; less likely to occur in serial transmission (since noise normally lasts
longer than the transmission time of 1 bit, e.g. 1 microsecond if speed is 1
Mbps), but most likely to occur in parallel transmission
10
burst error: 2 or more bits in the
data unit have changed; most likely
to occur in serial transmissions
this method can detect all single-bit errors; it can detect burst errors only if
the total number of errors in each data unit is odd
15
Medium Access Control
The MAC Sublayer: in a network, two devices can be connected by a
dedicated link (like a reserved highway, may be on certain occasions!) or a
shared link (like a public highway)
point-to-point access: when two devices are connected by a dedicated link
and this link can be used by them at any time;
multiple access: when two devices are connected by a shared link; when
two devices in a multiple access situation get access to the link or a channel
in the link, they may need to use a point-to-point access protocol to
exchange data
Multiple Access Protocols
the problem of controlling the access to the medium is similar to the rules
of speaking in an assembly (the right to speak is upheld; two people do not
speak at the same time; do not interrupt each other; do not monopolize the
discussion; ...) 16
three categories of multiple access protocols
1. Random Access Protocols - try your best like taxis do
i. MA - Multiple Access
ii. CSMA - Carrier Sense MA
iii. CSMA/CD - CSMA with Collision Detection
iv. CSMA/CA - CSMA with Collision Avoidance
2. Controlled-Access Protocols - get permission
i. Reservation
ii. Polling
iii. Token Passing
3. Channelization Protocols - simultaneous use
i. FDMA - Frequency-Division MA
ii. TDMA - Time-Division MA
iii. CDMA - Code-Division MA 17
1. Random Access Protocols
each station has the right to use the medium without being controlled by any
other station
collision may occur if more than one station tries to send
we need a procedure to answer the following questions
when can a station access the medium?
what can the station do if the medium is busy?
how can the station determine the success or failure of the transmission?
what can the station do if there is an access conflict?
i. MA - Multiple Access
originally designed to be used on a radio LAN with a data rate of 9600 bps
can also be used in satellite and wireless transmissions
18
ii. CSMA - Carrier Sense MA
to minimize the chance of collision, each station first listens to the medium
before sending; “listen before talk”
it waits a little the first time, more if a collision occurs again, much more
if it happens a third time, and so on; finally gives up
20
iv. CSMA/CA - CSMA with Collision Avoidance
avoids collision
uses one of the persistence strategies; after it finds the line idle, it waits an
IFG (interframe gap) amount of time; it then waits another random amount
of time; after that it sends the frame and sets a timer;
22
ii.Polling
for topologies in which one device is designated as a primary station and
the other stations are secondary stations
the primary asks the secondaries if they have data to send (polling); when
it has data to be sent, the primary tells the secondary to get ready to receive
(selecting)
a. poll b. select
23
iii.Token Passing
a station is authorized to send data when it receives a special frame called a
token
the stations are arranged around a ring (each station has a predecessor and a
successor)
a token circulates around the ring when no data is transmitted
token: a bit sequence
free token: 01111110
busy token: 01111111
when a node wants to transmit
wait for a free token
remove token from ring (replace with busy token)
transmit message
when done transmitting, replace free token on ring 24
3. Channelization Protocols
i. FDMA - Frequency-Division MA
the available bandwidth is divided into channels; each station uses its
allocated band to send its data; each band is reserved for a specific station
(it belongs to it all the time)
26
each station is assigned a code, which is a sequence of numbers called
chips
e.g., assume four stations 1, 2, 3 and 4 with the following chips
designated as A, B, C, D
27