CN Unit 5
CN Unit 5
1. DATA LINK-LAYER
In the OSI model, the data link layer is the 2nd layer from the bottom.
It is responsible for transmitting frames from one node to next node.
The main responsibility of the Data Link Layer is to transfer the datagram across an
individual link.
An important characteristic of a Data Link Layer is that datagram can be handled by
different link layer protocols on different links in a path.
The other responsibilities of this layer are
o Framing - Divides the stream of bits received into data units called frames.
o Physical addressing – If frames are to be distributed to different systems on the
same network, data link layer adds a header to the frame to define the sender and
receiver.
o Flow control- If the rate at which the data are absorbed by the receiver is less
than the rate produced in the sender ,the Data link layer imposes a flow control
mechanism.
o Error control- Used for detecting and retransmitting damaged orlost frames
and to prevent duplication of frames. This is achieved through a trailer added at
the end of the frame.
o Medium Access control - Used to determine which device has control over the
link at any given time.
The datagram received by the data-link layer of the source host is encapsulated in a
frame.
The frame is logically transported from the source host to the router.
The frame is decapsulated at the data-link layer of the router and encapsulated at
another frame.
The new frame is logically transported from the router to the destination host.
2. LINK-LAYER ADDRESSING
Unicast Address:
Each host or each interface of a router is assigned a unicast address. Unicasting means
one-to-one communication. A frame with a unicast address destination is destined only
for one entity in the link.
Multicast Address:
Link-layer protocols define multicast addresses. Multicasting means one-to- many
Communication but not all.
Broadcast Address:
Link-layer protocols define a broadcast address. Broadcasting means one- to-all
communication. A frame with a destination broadcast address is sent to all entities in the
link.
3. DLC SERVICES
The data link control (DLC) deals with procedures for communication between two
adjacent nodes—node-to-node communication—no matter whether the link is dedicated
or broadcast.
Data link control service include
(1) Framing (2) Flow Control (3) Error Control
(1) FRAMING
The data-link layer packs the bits of a message into frames, so that each frame is
distinguishable from another.
Although the whole message could be packed in one frame, that is not normally
done.
One reason is that a frame can be very large, making flow and error control very
inefficient.
When a message is carried in one very large frame, even a single-bit error would
require the retransmission of the whole frame.
When a message is divided into smaller frames, a single-bit error affects only that
small frame.
Framing in the data-link layer separates a message from one source to a destination
by adding a sender address and a destination address.
The destination address defines where the packet is to go; the sender address helps the
recipient acknowledge the receipt.
Frame Size
Frames can be of fixed or variable size.
Frames of fixed size are called cells. In fixed-size framing, there is no need for defining
the boundaries of the frames; the size itself can be used as a delimiter.
In variable-size framing, we need a way to define the end of one frame and the
beginning of the next. Two approaches were used for this purpose: a character-oriented
approach and a bit-oriented approach.
Character-Oriented Framing
In character-oriented (or byte-oriented) framing, data to be carried are 8-bitcharacters.
To separate one frame from the next, an 8-bit (1-byte) flag is added at the beginning
and the end of a frame.
The flag, composed of protocol-dependent special characters, signals the start or end
of a frame.
Any character used for the flag could also be part of the information.
If this happens, when it encounters this pattern in the middle of the data,the receiver
thinks it has reached the end of the frame.
To fix this problem, a byte-stuffing strategy was added to character-oriented framing.
Byte stuffing is the process of adding one extra byte whenever there is a flag or
escape character in the text.
In byte stuffing, a special byte is added to the data section of the framewhen there
is a character with the same pattern as the flag.
The data section is stuffed with an extra byte. This byte is usually called the escape
character (ESC) and has a predefined bit pattern.
Whenever the receiver encounters the ESC character, it removes it from thedata section
and treats the next character as data, not as a delimiting flag.
Bit-Oriented Framing
In bit-oriented framing, the data section of a frame is a sequence of bits to be
interpreted by the upper layer as text, graphic, audio, video, and so on.
In addition to headers and trailers), we still need a delimiter to separate one frame from
the other.
Most protocols use a special 8-bit pattern flag, 01111110, as the delimiter to define the
beginning and the end of the frame
If the flag pattern appears in the data, the receiver must be informed that this is not the
end of the frame.
This is done by stuffing 1 single bit (instead of 1 byte) to prevent the pattern from
looking like a flag. The strategy is called bit stuffing.
Bit Stuffing
Bit stuffing is the process of adding one extra 0 whenever five consecutive 1s follow
a 0 in the data, so that the receiver does not mistake the pattern 0111110 for a flag.
In bit stuffing, if a 0 and five consecutive 1 bits are encountered, an extra 0 is added.
This extra stuffed bit is eventually removed from the data by the receiver.
The extra bit is added after one 0 followed by five 1’s regardless of the
value of the next bit.
This guarantees that the flag field sequence does not inadvertently appear inthe frame.
STOP-AND-WAIT
o The simplest scheme is the stop-and-wait algorithm.
o In the Stop-and-wait method, the sender waits for an acknowledgement after every
frame it sends.
o When acknowledgement is received, then only next frame is sent.
o The process of alternately sending and waiting of a frame continues until the sender
transmits the EOT (End of transmission) frame.
o If the acknowledgement is not received within the allotted time, then the sender assumes
that the frame is lost during the transmission, so it will retransmit the frame.
o The acknowledgement may not arrive because of the following three scenarios :
1. Original frame is lost
2. ACK is lost
3. ACK arrives after the timeout
Advantage of Stop-and-wait
o The Stop-and-wait method is simple as each frame is checked and acknowledged before
the next frame is sent
Disadvantages of Stop-And-Wait
o In stop-and-wait, at any point in time, there is only one frame that is sent and waiting
to be acknowledged.
o This is not a good use of transmission medium.
o To improve efficiency, multiple frames should be in transition whilewaiting for ACK.
PIGGYBACKING
SLIDING WINDOW
o The Sliding Window is a method of flow control in which a sender can transmit the
several frames before getting an acknowledgement.
o In Sliding Window Control, multiple frames can be sent one after the another due to
which capacity of the communication channel can be utilized efficiently.
o A single ACK acknowledge multiple frames.
o Sliding Window refers to imaginary boxes at both the sender and receiver end.
o The window can hold the frames at either end, and it provides the upper limit on the
number of frames that can be transmitted before the acknowledgement.
o Frames can be acknowledged even when the window is not completely filled.
o The window has a specific size in which they are numbered as modulo-n means that
they are numbered from 0 to n-1.
o For example, if n = 8, the frames are numbered from
0,1,2,3,4,5,6,7,0,1,2,3,4,5,6,7,0,1........
o The size of the window is represented as n-1. Therefore, maximum n-1 frames can
be sent before acknowledgement.
o When the receiver sends the ACK, it includes the number of the next framethat it wants
to receive.
o For example, to acknowledge the string of frames ending with frame number 4, the
receiver will send the ACK containing the number 5.
o When the sender sees the ACK with the number 5, it got to know that theframes from
0 through 4 have been received.
Sender Window Receiver Window
Data can be corrupted during transmission. For reliable communication, errors must be detected
and corrected. Error Control is a technique of error detection and retransmission.
TYPES OF ERRORS
Single-bit error
The term Single-bit error means that only one bit of a given data unit (such as byte, character,
data unit or packet) is changed from 1 to 0 or from 0 to 1.
Burst error
The term Burst Error means that two or more bits in the data unit have changed from 1 to 0
or from 0 to 1.
PARITY CHECK
One bit, called parity bit is added to every data unit so that the total number
of 1’s in the data unit becomes even (or) odd.
The source then transmits this data via a link, and bits are checked and verified at
the destination.
Data is considered accurate if the number of bits (even or odd) matches the number
transmitted from the source.
This techniques is the most common and least complex method.
1. Even parity – Maintain even number of 1s
E.g., 1011 → 1011 1
2. Odd parity – Maintain odd number of 1s
E.g., 1011 → 1011 0
CYCLIC REDUNDANCY CHECK
Cyclic codes refers to encoding messages by adding a fixed-length checkvalue.
CRCs are popular because they are simple to implement, easy to analyze
mathematically and particularly good at detecting common errors caused in transmission
channels.
Steps Involved:
Consider the original message (dataword) as M(x) consisting of ‘k’ bits and the divisor
as C(x) consists of ‘n+1’ bits.
The original message M(x) is appended by ‘n’ bits of zero’s. Let us call this zero-
extended message as T(x).
Divide T(x) by C(x) and find the remainder.
The division operation is performed using XOR operation.
The resultant remainder is appended to the original message M(x) as CRCand sent by
the sender (codeword).
Example 1:
Consider the Dataword / Message M(x) = 1001
Divisor C(x) = 1011 (n+1=4)
Appending ‘n’ zeros to the original Message M(x).
The resultant messages is called T(x) = 1001 000. (here n=3)
Divide T(x) by the divisor C(x) using XOR operation.
Sender Side:
Receiver Side:
(For Both Case – Without Error and With Error)
Polynomials
A pattern of 0s and 1s can be represented as a polynomial with coefficientsof 0 and 1.
The power of each term shows the position of the bit; the coefficient showsthe value of
the bit.
INTERNET CHECKSUM
Checksum is a calculated value that is used to determine the integrity ofdata.
Example : Let the message to be transmitted be 7,11,12,0,6.
o Damaged Frame: When the receiver receives a damaged frame(i.e., the frame contains
an error), then it returns the NAK frame. For example, when the frame DATA 1 is sent,
and then the receiver sends the ACK 0 frame means that the data 1 has arrived correctly.
The sender transmits the next frame: DATA 0. It reaches undamaged, and the
receiver returns ACK 1. The sender transmits the third frame: DATA 1. The receiver
reports an errorand returns the NAK frame. The sender retransmits the DATA 1 frame.
o Lost Frame: Sender is equipped with the timer and starts when the frame is transmitted.
Sometimes the frame has not arrived at the receiving end so that it cannot be
acknowledged either positively or negatively. The sender waits for acknowledgement
until the timer goes off. If the timer goes off, it retransmits the last transmitted frame.
SLIDING WINDOW ARQ
Sliding Window ARQ is a technique used for continuous transmission error control.
o In the above figure, three frames (Data 0,1,2) have been transmitted before an error
discovered in the third frame.
o The receiver discovers the error in Data 2 frame, so it returns the NAK 2frame.
o All the frames including the damaged frame (Data 2,3,4) are discarded as it is
transmitted after the damaged frame.
o Therefore, the sender retransmits the frames (Data 2,3,4).
2. SELECTIVE-REJECT(REPEAT) ARQ
1. SIMPLE PROTOCOL
o The first protocol is a simple protocol with neither flow nor error control.
o We assume that the receiver can immediately handle any frame it receives.
o In other words, the receiver can never be overwhelmed with incomingframes.
o The data-link layers of the sender and receiver provide transmissionservices for their
network layers.
o The data-link layer at the sender gets a packet from its network layer, makes a frame out
of it, and sends the frame.
o The data-link layer at the receiver receives a frame from the link, extracts the packet
from the frame, and delivers the packet to its network layer.
NOTE :
2. STOP-AND-WAIT PROTOCOL
REFER STOP AND WAIT FROM FLOW CONTROL
3. GO-BACK-N PROTOCOL
REFER GO-BACK-N ARQ FROM ERROR CONTROL
4. SELECTIVE-REPEAT PROTOCOL
REFER SELECTIVE-REPEAT ARQ FROM ERROR CONTROL
5. HDLC (HIGH-LEVEL DATA LINK CONTROL)
HDLC FRAMES
HDLC defines three types of frames:
1. Information frames (I-frames) - used to carry user data
2. Supervisory frames (S-frames) - used to carry control information
3. Unnumbered frames (U-frames) – reserved for system management
Each type of frame serves as an envelope for the transmission of a different type ofmessage.
Each frame in HDLC may contain up to six fields:
1. Beginning flag field
2. Address field
3. Control field
4. Information field (User Information/ Management Information)
5. Frame check sequence (FCS) field
6. Ending flag field
In multiple-frame transmissions, the ending flag of one frame can serve as the beginning
flag of the next frame.
o Flag field - This field contains synchronization pattern 01111110, which identifies both
the beginning and the end of a frame.
o Address field - This field contains the address of the secondary station. If a primary
station created the frame, it contains a ‘to’ address. If a secondary station creates the
frame, it contains a ‘from’ address. The address field can be one byte or several bytes
long, depending on the needs of the network.
o Control field. The control field is one or two bytes used for flow and error control.
o Information field. The information field contains the user’s data from the network
layer or management information. Its length can vary from one network to another.
o FCS field. The frame check sequence (FCS) is the HDLC error detection field. It can
contain either a 16- bit or 32-bit CRC.
o The first bit defines the type. If the first bit of the control field is 0, this means the
frame is an I-frame.
o The next 3 bits, called N(S), define the sequence number of the frame.
o The last 3 bits, called N(R), correspond to the acknowledgment number when
piggybacking is used.
o The single bit between N(S) and N(R) is called the P/F bit. If this bit is 1 it means poll
(the frame is sent by a primary station to a secondary).
o If this bit is 0 it means final (the frame is sent by a secondary to a Primary).
o If the first 2 bits of the control field are 10, this means the frame is an S- frame.
o The last 3 bits, called N(R), correspond to the acknowledgment number (ACK) or
negative acknowledgment number (NAK), depending on the type of S-frame.
o The 2 bits called code are used to define the type of S-frame itself.
o With 2 bits, we can have four types of S-frames – Receive ready (RR), Receive not
ready (RNR), Reject (REJ) and Selective reject (SREJ).
o If the first 2 bits of the control field are 11, this means the frame is an U-frame.
o U-frame codes are divided into two sections: a 2-bit prefix before the P/Fbit and a 3-
bit suffix after the P/F bit.
o Together, these two segments (5 bits) can be used to create up to 32different types of U-
frames.
PPP Frame
PPP is a byte - oriented protocol where each field of the frame is composed of one or more
bytes.
1. Flag − 1 byte that marks the beginning and the end of the frame. The bit
pattern of the flag is 01111110.
2. Address − 1 byte which is set to 11111111 in case of broadcast.
3. Control − 1 byte set to a constant value of 11000000.
4. Protocol − 1 or 2 bytes that define the type of data contained in the payload field.
5. Payload − This carries the data from the network layer. The maximum
length of the payload field is 1500 bytes.
6. FCS − It is a 2 byte(16-bit) or 4 bytes(32-bit) frame check sequence for error detection.
The standard code used is CRC.
Components/Protocols of PPP
Three sets of components/protocols are defined to make PPP powerful:
Link Control Protocol (LCP)
Authentication Protocols (AP)
Network Control Protocols (NCP)
Authentication Protocols (AP) − Authentication means validating the identity of a user who
needs to access a set of resources. PPP has created two protocols for authentication -Password
Authentication Protocol and Challenge Handshake Authentication Protocol.
PAP
The Password Authentication Protocol (PAP) is a simple authentication procedure with a two-
step process:
a. The user who wants to access a system sends an authentication identification (usually
the user name) and a password.
b. The system checks the validity of the identification and password and either accepts
or denies connection.
CHAP
The Challenge Handshake Authentication Protocol (CHAP) is a three-way handshaking
authentication protocol that provides greater security than PAP. In this method, the password is
kept secret; it is never sent online.
a. The system sends the user a challenge packet containing a challenge value.
b. The user applies a predefined function that takes the challenge value and the user’s
own password and creates a result. The user sends the result in the response packet
to the system.
c. The system does the same. It applies the same function to the password of the user
(known to the system) and the challenge value to create a result. If the result created
is the same as the result sent in the response packet, access is granted; otherwise, it is
denied.
CHAP is more secure than PAP, especially if the system continuously changes the challenge
value. Even if the intruder learns the challenge value and the result, the password is still secret.
Goals of MAC
1. Fairness in sharing
2. Efficient sharing of bandwidth
3. Need to avoid packet collisions at the receiver due to interference
MAC Management
Medium allocation (collision avoidance)
Contention resolution (collision handling)
MAC Types
Round- Robin : – Each station is given opportunity to transmit in turns. Either a central
controller polls a station to permit to go, or stations can coordinate among themselves.
Reservation: - Station wishing to transmit makes reservations for time slots in advance.
(Centralized or distributed).
Contention (Random Access): No control on who tries; If collision occurs,
retransmission takes place.
MECHANISMS USED
Wired Networks :
o CSMA / CD – Carrier Sense Multiple Access / Collision Detection
Wireless Networks :
o CSMA / CA – Carrier Sense Multiple Access / Collision Avoidance
Carrier Sense in CSMA/CD means that all the nodes sense the medium to check
whether it is idle or busy.
If the carrier sensed is idle, then the node transmits the entireframe.
If the carrier sensed is busy, the transmission is postponed.
Collision Detect means that a node listens as it transmits and can therefore detect when
a frame it is transmitting has collided with a frame transmitted by another node.
The non-persistent approach reduces the chance of collision because it is unlikely that
two or more stations will wait the same amount of time and retry to send
simultaneously.
However, this method reduces the efficiency of the network because the medium
remains idle when there may be stations with frames to send.
Persistent Strategy
1- Persistent:
The 1-persistent method is simple and straightforward.
In this method, after the station finds the line idle, it sends its frame immediately (with
probability 1).
This method has the highest chance of collision because two or more stations may find
the line idle and send their frames immediately.
P-Persistent:
In this method, after the station finds the line idle it follows these steps:
With probability p, the station sends its frame.
With probability q = 1 − p, the station waits for the beginning of the next time slot
and checks the line again.
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.
The p-persistent approach combines the advantages of the other two strategies. It
reduces the chance of collision and improves efficiency.
.
EXPONENTIAL BACK-OFF
Once an adaptor has detected a collision and stopped its transmission, it waits a certain
amount of time and tries again.
Each time it tries to transmit but fails, the adaptor doubles the amount of time it waits
before trying again.
This strategy of doubling the delay interval between each retransmission attempt is a
general technique known as exponential back-off.
CARRIER SENSE MULTIPLE ACCESS / COLLISION AVOIDANCE(CSMA/CA)
Carrier sense multiple access with collision avoidance (CSMA/CA) was invented for
wireless networks.
Wireless protocol would follow exactly the same algorithm as the Ethernet—Wait until
the link becomes idle before transmitting and back off should a collision occur.
Collisions are avoided through the use of CSMA/CA’s three strategies: the
interframe space, the contention window, and acknowledgments
Interframe Space (IFS) - First, collisions are avoided by deferring transmission even if the
channel is found idle. When an idle channel is found, the station does not send immediately. It
waits for a period of time called the interframe space or IFS.
Contention Window - The contention window is an amount of time divided into slots. A
station that is ready to send chooses a random number of slots as its wait time. The number of
slots in the window changes according to the binary exponential backoff strategy. This means
that it is set to one slot the first time and then doubles each time the station cannot detect an idle
channel after the IFS time.
Acknowledgment - In addition, the data may be corrupted during the transmission.The positive
acknowledgment and the time-out timer can help guarantee that the receiver has received the
frame.
Ethernet was developed in the mid-1970’s at the Xerox Palo Alto Research
Center (PARC),
IEEE controls the Ethernet standards.
The Ethernet is the most successful local area networking technology, that uses bus
topology.
The Ethernet is multiple-access networks that is set of nodes send and receive
frames over a shared link.
Ethernet uses the CSMA / CD ( Carrier Sense Multiple Access with Collision
Detection) mechanism.
EVOLUTION OF ETHERNET
Ethernet Addresses
Every Ethernet host has a unique Ethernet address (48 bits – 6 bytes).
Ethernet address is represented by sequence of six numbers separated bycolons.
Each number corresponds to 1 byte of the 6 byte address and is given by pair of
hexadecimal digits.
Eg: 8:0:2b:e4:b1:2 is the representation of
00001000 00000000 00101011 11100100 10110001 00000010
Each frame transmitted on an Ethernet is received by every adaptor connected to the
Ethernet.
In addition to unicast addresses an Ethernet address consisting of all 1s is treated as
broadcast address.
Similarly the address that has the first bit set to 1 but it is not the broadcast address is
called multicast address.
ADVANTAGES OF ETHERNET
Ethernets are successful because
It is extremely easy to administer and maintain. There are no switches that can fail,
no routing or configuration tables that have to be kept up-to-date, and it is easy to add a
new host to the network.
It is inexpensive: Cable is cheap, and the only other cost is the network adaptor on each
host.
Station Types
IEEE 802.11 defines three types of stations based on their mobility in a wirelessLAN:
1. No-transition - A station with no-transition mobility is either stationary(not moving) or
moving only inside a BSS.
2. BSS-transition - A station with BSS-transition mobility can move from one BSS
to another, but the movement is confined inside one ESS
ESS-transition - A station with ESS-transition mobility can move from one ESS to
another.
COLLISION AVOIDANCE IN WLAN / 802.11
Wireless protocol would follow exactly the same algorithm as the Ethernet—Wait until the
link becomes idle before transmitting and back off should a collision occur.
Each of the four nodes is able to send and receive signals that reach just the nodes to its
immediate left and right.
For example, B can exchange frames with A and C but it cannot reach D,while C can
reach B and D but not A.
Suppose B is sending to A. Node C is aware of this communication because it hears B’s
transmission.
If at the same time, C wants to transmit to node D.
It would be a mistake, however, for C to conclude that it cannot transmit to anyone just
because it can hear B’s transmission.
This is not a problem since C’s transmission to D will not interfere with A’s ability to
receive from B.
This is called exposed problem.
Although B and C are exposed to each other’s signals, there is no interference
if B transmits to A while C transmits to D.
The receiver sends an ACK to the sender after successfully receiving a frame.
All nodes must wait for this ACK before trying to transmit.
When two or more nodes detect an idle link and try to transmit an RTS frame at the same
time, their RTS frames will collide with each other.
802.11 do not support collision detection, but instead, the senders realize the collision has
happened when they do not receive the CTS frame after a periodof time.
Each node waits for a random amount of time before trying again.
The amount of time a given node delays is defined by exponential back-off algorithm.
Active Scanning
When node C moves from the cell serviced by AP-1 to the cell serviced by AP-2. As it moves, it
sends Probe frames, which eventually result in Probe Response. Since the node is actively
searching for an access point it is called active scanning.
Passive Scanning
AP’s periodically send a Beacon frame to the nodes that advertises the capabilities of the
access point which includes the transmission rates supported by the AP. This is called passive
scanning and a node can change to this AP based on the Beacon frame simply by sending it an
Association Request frame back to the access point.
When both the DS bits are set to 1, it indicates that one node is sending the
message to another indirectly using the distribution system.
Duration - contains the duration of time the medium is occupied by the nodes.
Addr l - identifies the final original destination
Addr 2 - identifies the immediate sender (the one that forwarded the frame from the
distribution system to the ultimate destination)
Addr 3 - identifies the intermediate destination (the one that accepted the frame from a
wireless node and forwarded it across the distributionsystem)
Addr 4 - identifies the original source
Sequence Control - to avoid duplication of frames sequence number is
assigned to each frame
Payload - Data from sender to receiver
CRC - used for Error detection of the frame.
10. DATA AND SIGNALS
Sine Wave
The sine wave is the most fundamental form of a periodic analog signal. When we visualize it as a
simple oscillating curve, its change over the course of a cycle is smooth and consistent, a
continuous, rolling flow. Each cycle consists of a single arc above the time axis followed by a
single arc below it.
A sine wave can be represented by three parameters: the peak amplitude, the frequency, and the
phase. These three parameters fully describe a sine wave.
Peak Amplitude
The peak amplitude of a signal is the absolute value of its highest intensity, proportional to the
energy it carries. For electric signals, peak amplitude is normally measured in volts.
Period and Frequency
Period refers to the amount of time, in seconds, a signal needs to complete 1 cycle. Frequency
refers to the number of periods in 1 s. Note that period and frequency are just one characteristic
defined in two ways. Period is the inverse of frequency, and frequency is the inverse of period, as
the following formulas show.
Phase
The term phase, or phase shift, describes the position of the waveform relative to time 0. If wethink
of the wave as something that can be shifted backward or forward along the time axis, phase
describes the amount of that shift. It indicates the status of the first cycle.
Phase is measured in degrees or radians [360° is 2pi rad; 1° is 2pi/360 rad, and 1 rad is 360/(2pi)].
A phase shift of 360° corresponds to a shift of a complete period; a phase shift of 180°
corresponds to a shift of one- half of a period; and a phase shift of 90° corresponds to a shift of
one-quarter of a period.
Wavelength
Wavelength is another characteristic of a signal traveling through a transmission medium.
Wavelength binds the period or the frequency of a simple sine wave to the propagation speed of the
medium
While the frequency of a signal is independent of the medium, the wavelength depends on boththe
frequency and the medium. Wavelength is a property of any type of signal. In data
communications, we often use wavelength to describe the transmission of light in an optical fiber.
The wavelength is the distance a simple signal can travel in one period.
Wavelength can be calculated if one is given the propagation speed (the speed of light) and the
period of the signal.
Wavelength = (propagation speed) * period= propagation speed / frequency
The propagation speed of electromagnetic signals depends on the medium and on the frequency of
the signal. For example, in a vacuum, light is propagated with a speed of 3 x 10 8 m/ s. That speed
is lower in air and even lower in cable. The wavelength is normally measured in
micrometers (microns) instead of meters. For example, the wavelength of red light (frequency= 4 x
1014) in air is
Time and Frequency Domains
We have been showing a sine wave by using what is called a time- domain plot. The time- domain
plot shows changes in signal amplitude with respect to time.
To show the relationship between amplitude and frequency, we can use what is called a frequency-
domain plot. A frequency- domain plot is concerned with only the peak value and the frequency.
Changes of amplitude during one period are not shown.
Bandwidth
The range of frequencies contained in a composite signal is its bandwidth. The bandwidth is
normally a difference between two numbers. For example, if a composite signal contains
frequencies between 1000 and 5000, its bandwidth is 5000— 1000, or 4000. The figure depicts two
composite signals, one periodic and the other nonperiodic. The bandwidth of the periodic signal
contains all integer frequencies between 1000 and 5000( 1000, 1001, 1002,..). The bandwidth of
the nonperiodic signals has the same range, but the frequencies are continuous
DIGITAL SIGNALS
In addition to being represented by an analog signal, information can also be represented by a
digital signal. For example, a 1 can be encoded as a positive voltage and a 0 as zero voltage. A
digital signal can have more than two levels. In this case, we can send more than 1 bit for each level
Bit Rate
Most digital signals are nonperiodic, and thus period and frequency are not appropriate
characteristics. Another term-bit rate is used to describe digital signals. The bit rate is the number
of bits sent in 1s, expressed in bits per second (bps). The above Figure shows the bit rate for two
signals.
Bit Length
We discussed the concept of the wavelength for an analog signal: the distance one cycle occupies
on the transmission medium. We can define something similar for a digital signal: the bit length.
The bit length is the distance one bit occupies on the transmission medium.
Baseband transmission
Baseband transmission means sending a digital signal over a channel without changing the digital
signal to an analog signal. Requires that we have a low-pass channel, a channel with a bandwidth
that starts from zero. This is the case if we have a dedicated medium with a bandwidth
constituting only one channel. The figure shows two low-pass channels: one witha narrow
bandwidth and the other with a wide bandwidth.
o Attenuation: Attenuation means the loss of energy, i.e., the strength of the signal
decreases with increasing the distance which causes the loss of energy.
o Distortion: Distortion occurs when there is a change in the shape of the signal. This
type of distortion is examined from different signals having different frequencies. Each
frequency component has its own propagation speed, so they reach at a different time
which leads to the delay distortion.
o Noise: When data is travelled over a transmission medium, some unwanted signal is
added to it which creates the noise.
GUIDED MEDIA
It is defined as the physical medium through which the signals are transmitted.
It is also known as Bounded media.
Types of Guided media: Twisted Pair Cable, Coaxial Cable , Fibre Optic Cable
Advantages:
o It is cheap.
o Installation of the unshielded twisted pair is easy.
o It can be used for high-speed LAN.
Disadvantage:
o This cable can only be used for shorter distances because of attenuation.
Disadvantages:
o It is more expensive as compared to UTP and coaxial cable.
o It has a higher attenuation rate.
COAXIAL CABLE
o Coaxial cable (Coax) is a very commonly used transmission media, for example,TV
wire is usually a coaxial cable.
o The name of the cable is coaxial as it contains two conductors parallel to eachother.
o It has a higher frequency as compared to Twisted pair cable.
o The inner conductor of the coaxial cable is made up of copper, and the outer
conductor is made up of copper mesh.
o The middle core is made up of non-conductive cover that separates the inner
conductor from the outer conductor.
o The middle core is responsible for the data transferring whereas the copper mesh
prevents from the EMI (Electromagnetic interference).
o Common applications of coaxial cable are Cable TV networks and traditional
Ethernet LANs.
o Fibre optic cable is a cable that uses electrical signals for communication.
o Fibre optic is a cable that holds the optical fibres coated in plastic that are used tosend
the data by pulses of light.
o The plastic coating protects the optical fibres from heat, cold, electromagnetic
interference from other types of wiring.
o Fibre optics provide faster data transmission than copper wires.
Multimode Propagation
Multimode is so named because multiple beams from a light source move throughthe
core in different paths.
How these beams move within the cable depends on the structure of the core.
Single-mode uses step-index fiber and a highly focused source of light that limits beams
to a small range of angles, all close to the horizontal.
The single-mode fiber itself is manufactured with a much smaller diameter than that of
multimode fiber, and with substantially lower density (index of refraction).
The decrease in density results in a critical angle that is close enough to 90° to make the
propagation of beams almost horizontal.
In this case, propagation of different beams is almost identical, and delays are
negligible. All the beams arrive at the destination “together” and can be recombined
with little distortion to the signal.
UNGUIDED MEDIA
o An unguided transmission transmits the electromagnetic waves without using any
physical medium. Therefore it is also known as wireless transmission.
o In unguided media, air is the media through which the electromagnetic energycan
flow easily.
RADIO WAVES
o Radio waves are the electromagnetic waves that are transmitted in all thedirections of
free space.
o Radio waves are omnidirectional, i.e., the signals are propagated in all thedirections.
o The range in frequencies of radio waves is from 3Khz to 1Khz.
o In the case of radio waves, the sending and receiving antenna are not aligned, i.e.,the
wave sent by the sending antenna can be received by any receiving antenna.
o An example of the radio wave is FM radio.
Applications of Radio waves:
o A Radio wave is useful for multicasting when there is one sender and many
receivers.
o An FM radio, television, cordless phones are examples of a radio wave.
MICROWAVES
Microwaves are of two types - Terrestrial microwave & Satellite microwave
Terrestrial Microwave
o Terrestrial Microwave transmission is a technology that transmits the focused beam of a
radio signal from one ground-based microwave transmission antenna toanother.
o Microwaves are the electromagnetic waves having the frequency in the range from
1GHz to 1000 GHz.
o Microwaves are unidirectional as the sending and receiving antenna is to be aligned,
i.e., the waves sent by the sending antenna are narrowly focused.
o In this case, antennas are mounted on the towers to send a beam to another antenna
which is km away.
o It works on the line of sight transmission, i.e., the antennas mounted on the
towers are at the direct sight of each other.
Satellite Microwave
o A satellite is a physical object that revolves around the earth at a known height.
o Satellite communication is more reliable nowadays as it offers more flexibilitythan
cable and fibre optic systems.
o We can communicate with any point on the globe by using
satellitecommunication.
o The satellite accepts the signal that is transmitted from the earth station, and it
amplifies the signal. The amplified signal is retransmitted to another earth station.
Characteristics of Infrared:
o It supports high bandwidth, and hence the data rate will be very high.
o Infrared waves cannot penetrate the walls. Therefore, the infrared communicationin one
room cannot be interrupted by the nearby rooms.
o An infrared communication provides better security with minimum interference.
o Infrared communication is unreliable outside the building because the sun rays will
interfere with the infrared waves.