Professional Documents
Culture Documents
com
Data Communications
National Engineer Training Services
www.jntuworld.com
Discrete signal
Maintains a constant level then changes to another constant level
Periodic signal
Pattern repeated over time
Aperiodic signal
Pattern not repeated over time
www.jntuworld.com
www.jntuworld.com
Periodic Signals
www.jntuworld.com
Wavelength
Distance occupied by one cycle Distance between two points of corresponding phase in two consecutive cycles Assuming signal velocity v
= vT f = v
c = 3*108 ms-1 (speed of light in free space)
www.jntuworld.com
www.jntuworld.com
Spectrum range of frequencies contained in signal Absolute bandwidth width of spectrum Effective bandwidth Often just bandwidth Narrow band of frequencies containing most of the energy DC Component Component of zero frequency
www.jntuworld.com
www.jntuworld.com
Signals
Electric or electromagnetic representations of data
Transmission
Communication of data by propagation and processing of signals
www.jntuworld.com
Data
Analog
Continuous values within some interval e.g. sound, video
Digital
Discrete values e.g. text, integers
www.jntuworld.com
www.jntuworld.com
Analog Transmission
Analog signal transmitted without regard to content May be analog or digital data Attenuated over distance Use amplifiers to boost signal Also amplifies noise
www.jntuworld.com
Digital Transmission
Concerned with content Integrity endangered by noise, attenuation etc. Repeaters used Repeater receives signal Extracts bit pattern Retransmits Attenuation is overcome Noise is not amplified
www.jntuworld.com
Data integrity
Longer distances over lower quality lines
Capacity utilization
High bandwidth links economical High degree of multiplexing easier with digital techniques
Integration
Can treat analog and digital data similarly
www.jntuworld.com
Encoding Techniques
Digital data, digital signal Analog data, digital signal Digital data, analog signal Analog data, analog signal
www.jntuworld.com
www.jntuworld.com
Terms (1)
Unipolar
All signal elements have same sign
Polar
One logic state represented by positive voltage the other by negative voltage
Data rate
Rate of data transmission in bits per second
www.jntuworld.com
Terms (2)
Modulation rate
Rate at which the signal level changes Measured in baud = signal elements per second
www.jntuworld.com
Interpreting Signals
Need to know
Timing of bits - when they start and end Signal levels
www.jntuworld.com
Amplitude shift keying (ASK) Frequency shift keying (FSK) Phase shift keying (PK)
www.jntuworld.com
Modulation Techniques
www.jntuworld.com
Susceptible to sudden gain changes Inefficient Up to 1200bps on voice grade lines Used over optical fiber
www.jntuworld.com
www.jntuworld.com
www.jntuworld.com
www.jntuworld.com
Quadrature PSK
More efficient use by each signal element representing more than one bit
e.g. shifts of /2 (90o) Each element represents two bits Can use 8 phase angles and have more than one amplitude 9600bps modem use 12 angles , four of which have two amplitudes
www.jntuworld.com
In the presence of noise, bit error rate of PSK and QPSK are about 3dB superior to ASK and FSK
www.jntuworld.com
www.jntuworld.com
www.jntuworld.com
8 bit sample gives 256 levels Quality comparable with analog transmission 8000 samples per second of 8 bits each gives 64kbps
www.jntuworld.com
Nonlinear Encoding
Quantization levels not evenly spaced Reduces overall signal distortion Can also be done by companding
www.jntuworld.com
Delta Modulation
Analog input is approximated by a staircase function Move up or down one level () at each sample interval Binary behavior
Function moves up or down at each sample interval
www.jntuworld.com
www.jntuworld.com
www.jntuworld.com
www.jntuworld.com
Analog Modulation
www.jntuworld.com
Transmission Impairments
Signal received may differ from signal transmitted Analog - degradation of signal quality Digital - bit errors Caused by
Attenuation and attenuation distortion Delay distortion Noise
www.jntuworld.com
Attenuation
Signal strength falls off with distance Depends on medium Received signal strength:
must be enough to be detected must be sufficiently higher than noise to be received without error
www.jntuworld.com
Delay Distortion
Only in guided media Propagation velocity varies with frequency
www.jntuworld.com
Noise (1)
Additional signals inserted between transmitter and receiver Thermal
Due to thermal agitation of electrons Uniformly distributed White noise
Intermodulation
Signals that are the sum and difference of original frequencies sharing a medium
www.jntuworld.com
Noise (2)
Crosstalk
A signal from one line is picked up by another
Impulse
Irregular pulses or spikes e.g. External electromagnetic interference Short duration High amplitude
www.jntuworld.com
Channel Capacity
Data rate
In bits per second Rate at which data can be communicated
Bandwidth
In cycles per second of Hertz Constrained by transmitter and medium
www.jntuworld.com
Encoding Schemes
Nonreturn to Zero-Level (NRZ-L) Nonreturn to Zero Inverted (NRZI) Bipolar -AMI Pseudoternary Manchester Differential Manchester B8ZS HDB3
www.jntuworld.com
e.g. Absence of voltage for zero, constant positive voltage for one More often, negative voltage for one value and positive for the other This is NRZ-L
www.jntuworld.com
www.jntuworld.com
NRZ
www.jntuworld.com
Differential Encoding
Data represented by changes rather than levels More reliable detection of transition rather than level In complex transmission layouts it is easy to lose sense of polarity
www.jntuworld.com
Cons
dc component Lack of synchronization capability
Used for magnetic recording Not often used for signal transmission
www.jntuworld.com
Multilevel Binary
Use more than two levels Bipolar-AMI
zero represented by no line signal one represented by positive or negative pulse one pulses alternate in polarity No loss of sync if a long string of ones (zeros still a problem) No net dc component Lower bandwidth Easy error detection
www.jntuworld.com
Pseudoternary
One represented by absence of line signal Zero represented by alternating positive and negative No advantage or disadvantage over bipolar-AMI
www.jntuworld.com
www.jntuworld.com
www.jntuworld.com
Biphase
Manchester
Transition in middle of each bit period Transition serves as clock and data Low to high represents one High to low represents zero Used by IEEE 802.3
Differential Manchester
Midbit transition is clocking only Transition at start of a bit period represents zero No transition at start of a bit period represents one Note: this is a differential encoding scheme Used by IEEE 802.5
www.jntuworld.com
Pros
Synchronization on mid bit transition (self clocking) No dc component Error detection
Absence of expected transition
www.jntuworld.com
Modulation Rate
www.jntuworld.com
Scrambling
Use scrambling to replace sequences that would produce constant voltage Filling sequence
Must produce enough transitions to sync Must be recognized by receiver and replace with original Same length as original
No dc component No long sequences of zero level line signal No reduction in data rate Error detection capability
www.jntuworld.com
B8ZS
Bipolar With 8 Zeros Substitution Based on bipolar-AMI If octet of all zeros and last voltage pulse preceding was positive encode as 000+-0-+ If octet of all zeros and last voltage pulse preceding was negative encode as 000-+0+Causes two violations of AMI code Unlikely to occur as a result of noise Receiver detects and interprets as octet of all zeros
www.jntuworld.com
HDB3
High Density Bipolar 3 Zeros Based on bipolar-AMI String of four zeros replaced with one or two pulses
www.jntuworld.com
www.jntuworld.com
www.jntuworld.com
Twisted Pair
www.jntuworld.com
Within buildings
To private branch exchange (PBX)
www.jntuworld.com
www.jntuworld.com
www.jntuworld.com
www.jntuworld.com
UTP Categories
Cat 3
up to 16MHz Voice grade found in most offices Twist length of 7.5 cm to 10 cm
Cat 4
up to 20 MHz
Cat 5
up to 100MHz Commonly pre-installed in new office buildings Twist length 0.6 cm to 0.85 cm
www.jntuworld.com
www.jntuworld.com
Coaxial Cable
www.jntuworld.com
www.jntuworld.com
Digital
Repeater every 1km Closer for higher data rates
www.jntuworld.com
Optical Fiber
www.jntuworld.com
Smaller size & weight Lower attenuation Electromagnetic isolation Greater repeater spacing
10s of km at least
www.jntuworld.com
www.jntuworld.com
www.jntuworld.com
www.jntuworld.com
Wireless Transmission
Unguided media Transmission and reception via antenna Directional
Focused beam Careful alignment required
Omnidirectional
Signal spreads in all directions Can be received by many antennae
www.jntuworld.com
Frequencies
2GHz to 40GHz
Microwave Highly directional Point to point Satellite
30MHz to 1GHz
Omnidirectional Broadcast radio
3 x 1011 to 2 x 1014
Infrared Local
www.jntuworld.com
Terrestrial Microwave
Parabolic dish Focused beam Line of sight Long haul telecommunications Higher frequencies give higher data rates
www.jntuworld.com
Satellite Microwave
Satellite is relay station Satellite receives on one frequency, amplifies or repeats signal and transmits on another frequency Requires geo-stationary orbit
Height of 35,784km
www.jntuworld.com
Broadcast Radio
Omnidirectional FM radio UHF and VHF television Line of sight Suffers from multipath interference
Reflections
www.jntuworld.com
Infrared
Modulate noncoherent infrared light Line of sight (or reflection) Blocked by walls e.g. TV remote control, IRD port
www.jntuworld.com
Standards
Required to allow for interoperability between equipment Advantages
Ensures a large market for equipment and software Allows products from different vendors to communicate
Disadvantages
Freeze technology May be multiple standards for the same thing
www.jntuworld.com
Standards Organizations
Internet Society ISO ITU-T (formally CCITT) ATM forum
www.jntuworld.com
www.jntuworld.com
www.jntuworld.com
www.jntuworld.com
www.jntuworld.com
Elements of Standardization
Protocol specification
Operates between the same layer on two systems May involve different operating system Protocol specification must be precise
Format of data units Semantics of all fields allowable sequence of PCUs
Service definition
Functional description of what is provided
Addressing
Referenced by SAPs
www.jntuworld.com
Data Link
Means of activating, maintaining and deactivating a reliable link Error detection and control Higher layers may assume error free transmission
www.jntuworld.com
Transport
Exchange of data between end systems Error free In sequence No losses No duplicates Quality of service
www.jntuworld.com
Presentation
Data formats and coding Data compression Encryption
Application
Means for applications to access OSI environment
www.jntuworld.com
Terminology (1)
Transmitter Receiver Medium
Guided medium
e.g. twisted pair, optical fiber
Unguided medium
e.g. air, water, vacuum
www.jntuworld.com
Terminology (2)
Direct link
No intermediate devices
Point-to-point
Direct link Only 2 devices share link
Multi-point
More than two devices share the link
www.jntuworld.com
Terminology (3)
Simplex
One direction
e.g. Television
Half duplex
Either direction, but only one way at a time
e.g. police radio
Full duplex
Both directions at the same time
e.g. telephone
www.jntuworld.com
A Communications Model
Source generates data to be transmitted Transmitter Converts data into transmittable signals Transmission System Carries data Receiver Converts received signal into data Destination Takes incoming data
www.jntuworld.com
www.jntuworld.com
www.jntuworld.com
www.jntuworld.com
Networking
Point to point communication not usually practical
Devices are too far apart Large set of devices would need impractical number of connections
www.jntuworld.com
www.jntuworld.com
Usually owned by same organization as attached devices Data rates much higher Usually broadcast systems Now some switched systems and ATM are being introduced
www.jntuworld.com
www.jntuworld.com
Backbone LANs
Interconnect low speed local LANs Reliability Capacity Cost
www.jntuworld.com
LAN Topologies
www.jntuworld.com
www.jntuworld.com
www.jntuworld.com
Ring Topology
Repeaters joined by point to point links in closed loop
Receive data on one link and retransmit on another Links unidirectional Stations attach to repeaters
Data in frames
Circulate past all stations Destination recognizes address and copies frame Frame circulates back to source where it is removed
www.jntuworld.com
www.jntuworld.com
Star Topology
Each station connected directly to central node
Usually via two point to point links
www.jntuworld.com
www.jntuworld.com
Circuit Switching
Dedicated communications path established for the duration of the conversation e.g. telephone network
www.jntuworld.com
Packet Switching
Data sent out of sequence Small chunks (packets) of data at a time Packets passed from node to node between source and destination Used for terminal to computer and computer to computer communications
www.jntuworld.com
Frame Relay
Packet switching systems have large overheads to compensate for errors Modern systems are more reliable Errors can be caught in end system Most overhead for error control is stripped out
www.jntuworld.com
www.jntuworld.com
Protocols
Used for communications between entities in a system Must speak the same language Entities User applications e-mail facilities terminals Systems Computer Terminal Remote sensor
www.jntuworld.com
www.jntuworld.com
Characteristics
Direct or indirect Monolithic or structured Symmetric or asymmetric Standard or nonstandard
www.jntuworld.com
Direct or Indirect
Direct
Systems share a point to point link or Systems share a multi-point link Data can pass without intervening active agent
Indirect
Switched networks or Internetworks or internets Data transfer depend on other entities
www.jntuworld.com
Symmetric or Asymmetric
Symmetric
Communication between peer entities
Asymmetric
Client/server
www.jntuworld.com
Standard or Nonstandard
Nonstandard protocols built for specific computers and tasks K sources and L receivers leads to K*L protocols and 2*K*L implementations If common protocol used, K + L implementations needed
www.jntuworld.com
www.jntuworld.com
Monolithic or Structured
Communications is a complex task To complex for single unit Structured design breaks down problem into smaller units Layered structure
www.jntuworld.com
Functions
Encapsulation Segmentation and reassmebly Connection control Ordered delivery Flow control Error control Addressing Multiplexing Transmission services
www.jntuworld.com
Encapsulation
Addition of control information to data
Address information Error-detecting code Protocol control
www.jntuworld.com
Segmentation (Fragmentation)
Data blocks are of bounded size Application layer messages may be large Network packets may be smaller Splitting larger blocks into smaller ones is segmentation (or fragmentation in TCP/IP)
ATM blocks (cells) are 53 octets long Ethernet blocks (frames) are up to 1526 octets long
www.jntuworld.com
Why Fragment?
Advantages
More efficient error control More equitable access to network facilities Shorter delays Smaller buffers needed
Disadvantages
Overheads Increased interrupts at receiver More processing time
www.jntuworld.com
Connection Control
Connection Establishment Data transfer Connection termination May be connection interruption and recovery Sequence numbers used for Ordered delivery Flow control Error control
www.jntuworld.com
www.jntuworld.com