Chapter One
Chapter One
Prepared by
2019-2020
1 0 1 0 1 0
Digital System:
(1) Sampling (2) Quantization (3) Digital Coding (0’s and 1’s)
Storage Unit
4/30/2020 3
Digital Signal (Ideal Pulse)
High
High Falling Edge or
Trailing Rising Edge
Rising Edge Falling Edge or Leading
Low
Low
Positive-going Pulse (+ve) Negative-going Pulse (-ve)
+5volt VH (max)
Logic Levels
High Binary 1
VH (min)
Unacceptable Threshold level العتبة
VL (max)
Low Binary 0
0volt VL (min)
Periodic and No-Periodic Pulse:
Period= T1 = T2 = T3…..
T1 T2 T3…..
1 1
Periodic f Bit Rate [bps ] Non-Periodic
T Tbit
4/30/2020 4
Frequency=Clock [Hz]
Threshold level
Digital Signal
(Data 0 or 1)
Bit (0 or 1)
90% 9V
Pulse
50% 5V
Amplitude
(10V) (t W )
Pulse width Non-Linearity
10% 1V
الالخطية
Base time
Rise Fall
time time
(tr ) (t f )
1
T
f
t
Duty Cycle W 100% For Periodic Pulse
T
4/30/2020 6
Example: Consider a periodic digital waveform (signal) :
(tW ) T=10ms
Time
1 ms
Solution:
Exercise: A period digital signal of a pulse width of 25μs and a period of 50 μs.
4/30/2020 7
Determine its frequency, bit rate and duty cycle.
Chapter
1. Data Communications 1- Part 2
Concepts
Introduction to Digital Communications
4/30/2020 8
2.Communication System
(b) Example
Information (Voice, Data, Image, Video)
Transmission Media (Line or Network) Wired (guided) or Wireless
(unguided Media)
Signals (Digital/Analog)
4/30/2020 9
Communication System data exchange between two parties
- The key elements of this System are:
Source : generates data to be transmitted
Transmitter : converts data into transmittable signals
Transmission System: carries data from Source to Destination
Receiver: converts received signal to data
Destination: takes incoming data
4/30/2020 10
3. Communications Tasks
A B
Point-to-Point Link
PC PC, MODEM, Printer
Type of Nodes:
- Terminal Node: generates or use information transmitted over network
e.g. PC, Printer Video Monitor, File-Servers, (routers) (Processing)
Mesh Network T
4/30/2020 Communication Nodes 12
Type of Networks:
Computer Buses: Cables like RS-232, RS449, etc.
LANS: Local Area Networks, 1970’s
e.g. wireless LAN Wi-Fi IEEE802.11a (54Mbps) 100-300m
MANs: Metropolitan Area Networks,
e.g. WiMAX (IEEE802.16) up to 50km
WANs: Wide Area Networks e.g. Internet
BANs: Body Area Networks (Sensors)
PANs: Personal Area Networks (Bluetooth IEEE802.15.3)
100Mbps
Data Rate MANs
WANs
(bps) Computer LANs (WiMax)
Buses (Coverage area)
(WLANs)
100kbps
Distance (meter)
Data flow
RX
TX Char3 Char2 Char1
H.W: Consider Bit rate 100kbps Packet size 1000bit, what is the
time required to send one packet (i.e., transmission time) if the time
interval is 10μsec?
4/30/2020 15
Store-and-Forward Transmission
Message Switching
Packet Switching
4/30/2020 16
Example: Consider Computer A is connected to Computer B and to C by two
point-to-point links. Message is sent from ABC
Time
(sec) 17
4/30/2020
Exercise (2): Consider two intermediate nodes between A and B users, hop interval
for each packet is 5sec. Determine
1- Transmission time for sending 4 packets using Packet-switching.
2- If the message consists of 4 packets, what is transmission time of
message-switching.
Solution:
N n No. of Intermediate Nodes
TPkt Switching N n Thop N P Thop
No. of Hops ( N n 1)
TMessage switching ( N P Thop Pkt ) ( N n 1) N p No. of Packets
Thop Hop Interval Time
Thop message ( N n 1)
4/30/2020 18
1. Bit-oriented Transmission (Protocol): Data-Link Layer
- Packet is framed by two special patterns called Flags.
Original Packet
01111110 001111101010…………………………0111110101001111110
Bit Stuffing (at TX): adding an extra 0 after each group of 011111 in the packet
after the flag.
Bit De-stuffing (at RX): inverse operation of stuffing (i.e., deleting an extra 0)
4/30/2020 19
Bit-Stuffing Start
0 7th 1
Bit?
Delete”0” De-stuffing 0 8th 1
Bit?
stop
One Frame
SYN= Synchronization character
DLE= Data-Link Escape Note: Char-oriented Protocol ASCII 7bit
STX= Start of Text
ETX= End of Text
Character Stuffing (at TX): Replacing every occurrence of DLE in the string by
DLE DLE.
Note: Inside the Frame (Data field) DLE DLE ETX DLE DLE STX as a
data but only DLE STX means frame beginning.
Character De-Stuffing (at RX): change DLE DLE to DLE
USART: Universal Synchronous /Asynchronous Receiver/Transmitter
e.g. 8251A 16550
4/30/2020 21
Exercise:
Consider simple network shown in figure. One file of K>>1 bits must be
sent from A to C. The file is decomposed into packets of P bits each.
Each packet contains 16 error-control bits, 32 bits of address and
sequence number, in addition to the P data bits. Each packet is first sent
from A to B and then from B to C.
A B C
4/30/2020 22
Chapter 1- Part2
Transmission Modes
Synchronization & Framing
Prepared by
Prof. Dr. Ghaida A. AL-Suhail
2019-2020 - 2ndTerm
Transmission Direction: RX TX
5/4/2020 2
Transmission Modes: ● Serial Transmission
● Parallel Transmission
Serial Transmission (USART)
● Asynchronous Mode ● Synchronous Mode
Clock RX TX Clock
D0 D1 D2 D3 D4 D5 D6 PB
5/4/2020 5
Example (1):
Asynchronous data is transmitted in the form of characters as follows: 5
information bits of duration 20ms, and a start bit of the same duration of 20 ms,
and a stop bit of duration 30ms. Determine:
(a) The transmission rate in bps.
(b) The signaling rate in bauds.
Sol:
(n=7 bits= 1 Start + 5 Infor. + 1 Stop)
(a)
Total transmission time of a Single Character (Ttotal) (Framing)
Ttotal (5 1) 20 1 30 150ms
5/4/2020 7
Synchronization and Framing:
When does the Receiver measure the signal to recover the bits?
5/4/2020 8
Example: To avoid Clock Drift (Loss of Synch) at RX
Consider 11 bit sequence including 1 extra bit (i.e. start bit) for clock
Start bytes
PC Printer
Data Available DAV
time
DAC
time