• Non ci sono risultati.

AOT LAB

N/A
N/A
Protected

Academic year: 2022

Condividi "AOT LAB"

Copied!
55
0
0

Testo completo

(1)

Agent and Object Technology Lab Dipartimento di Ingegneria dell’Informazione

Università degli Studi di Parma

AOT LAB

Computer Network Data Transmission

Prof. Agostino Poggi

(2)

AOT LAB Transmission of Information

Š Well-understood basics

Š From physics

ƒ Energy

ƒ Electromagnetic wave propagation

Š From mathematics

ƒ Coding theory

(3)

AOT LAB

Kinds of Energy used for Transmission

Š Electric current

ƒ Copper wire

Š Light

ƒ Optical fiber

Š Omni-directional electromagnetic waves

ƒ Radio Frequency

Š Directional electromagnetic waves

ƒ Point-to-point satellite channel

ƒ Microwave

ƒ Laser beam

ƒ Infrared

(4)

AOT LAB Twisted Pair

Š Used to carry voice as well as data communications

Š Consists of two insulated copper wires arranged in a regular spiral pattern to

minimize the

electromagnetic interference between adjacent pairs

Š Two main versions

ƒ Unshielded Twisted Pair (UTP)

ƒ Shielded Twisted Pair (STP)

(5)

AOT LAB Coaxial Cable

Š Used for cable television, LANs, telephony

ƒ An inner conductor

surrounded by a braided mesh

ƒ Both conductors share a

common center axial, hence the term “co-axial”

Š Two versions that vary in diameter and resistance

ƒ Baseband (50-ohm)

ƒ Broadband (75-ohm) copper or aluminum

conductor insulating material

shield (braided wire) outer jacket (polyethylene)

(6)

AOT LAB Twisted Pair Vs. Co-axial Cable

Š Twisted pair is more inexpensive and readily available

Š Twisted pair is more flexible and has a lighter weight

Š Twisted pair is easier to work with and install

Š Co-axial cable has a higher bandwidth

Š Co-axial cable is much less susceptible to

interference than twisted pair

(7)

AOT LAB Optical Fiber

Š Thin glass fiber carries light with encoded data

ƒ Light emitting diode (LED) or laser injects light pulses into fiber

ƒ Light sensitive receiver (transistor) at other end

translates light back into data

Š Plastic jacket allows fiber to bend without breaking

plastic jacket

glass or plastic

cladding fiber core

(8)

AOT LAB Multi-mode Vs. Single-mode

Š A mode is a defined path in which light travels

ƒ A light signal can propagate through the core of the optical fiber on a single path (single-mode fiber) or on many paths (multi-mode fiber)

ƒ The mode in which light travels depends on properties of the fiber, and the wavelength of the light

Š Multi-mode fiber

ƒ Different rays of light bounce along the fiber at different angles

ƒ Different parts of the signal arrive at different times at the destination

Š Single-mode fiber

ƒ Transmits a single beam of light through the cable

ƒ The light reflects in only one pattern

(9)

AOT LAB Multi-mode Vs. Single-mode

Š Single-mode fiber has the advantage of high

information-carrying capacity, low attenuation and low fiber cost

ƒ Allows faster transmission and longer distances

Š Multi-mode has the advantage of low connection

and electronics cost that may lead to lower system

cost

(10)

AOT LAB Multi-mode Vs. Single-mode

fiber optic multi-mode step-index

fiber optic multi-mode graded-index

fiber optic single-mode

(11)

AOT LAB Optical Fibers Vs. Wires

Š Fiber optics has several advantages

ƒ Fiber optic cables have a much greater bandwidth than metal cables. This means that they can carry more data

ƒ Fiber optic cables are less susceptible than metal cables to interference

ƒ Fiber optic cables are much thinner and lighter than metal wires

ƒ Data can be transmitted digitally (the natural form for computer data) rather than analogically

Š The main disadvantage of fiber optics

ƒ Fiber cables are more expensive to install

ƒ Fiber cables are more fragile than wire and are difficult to split

(12)

AOT LAB Wireless

(13)

AOT LAB Wireless

Š Conceptually similar to radio, TV, cellular phones

Š Data transmitted using electromagnetic waves

ƒ Can travel through walls and through an entire building

Š Transmission and reception are achieved by means of an antenna

ƒ Directional

Transmitting antenna puts out focused beam

Transmitter and receiver must be aligned

ƒ Omni-directional

Signal spreads out in all directions

Can be received by many antennas

Š Transmission can be long distance or short distance

ƒ Long distance with satellite relay

ƒ Short distance with wireless computer network

(14)

AOT LAB Wireless

terrestrial microwave satellite microwave

broadcast radio

infrared

(15)

AOT LAB Radio Waves

Š Electromagnetic radio waves can be used to transmit computer data to facilitate wireless networking

Š Each computer on the network attaches to an

antenna which transmits and receives RF signals

Š Advantages of radio waves

ƒ Can travel long distances

ƒ Pass through obstacles well at low frequencies

Š Disadvantages:

ƒ Subject to interference from motors and other electrical equipment

ƒ Absorbed by rain

(16)

AOT LAB Microwave

Š Transmission is aimed in a single direction to prevent others from intercepting the signal

ƒ Stations are placed ~30 km apart

Š Carries more information than low-frequency RF transmission

Š Microwaves cannot penetrate metal structures

ƒ Stations must be visible to each other

Š Many long-distance telephone companies use

microwave as their transmission medium

(17)

AOT LAB Infrared

Š Uses transmitters/receivers (transceivers) that modulate non-coherent infrared light

Š Transceivers must be within line of sight of each other (directly or via reflection )

ƒ Infrared does not penetrate walls

Š Infrared transmission uses low frequency light waves to carry data through the air

Š Its main limits

ƒ Limited to a small area (e.g., a single room)

ƒ Requires line-of-sight

ƒ Cannot be used outdoors

(18)

AOT LAB Transmission Physical Limits

Š Propagation delay

ƒ Time required for signal to travel across media (speed is always less than 3 · 108 m/s)

Š Bandwidth

ƒ Maximum times per second the signal can change

(19)

AOT LAB Transmission Measures

Š Delay

ƒ Amount of time required for a bit of data to travel from one end to the other of the communication media

Š Throughput

ƒ Number of bits per second that can be transmitted. This value includes all bits transmitted (data, control, and so on), even retransmitted bits

ƒ The effective throughput is the number of data bits transmitted within a given time period

(20)

AOT LAB Transmission Measures

0 1 3

2

0

1 3

2 0

1 3

2

0 1 3

2

Switch 3 Switch 2

Switch 1

Switch 4

Host A (1,2)

Host B (4,2)

Host A (3,1)

(21)

AOT LAB Transmission Measures

Š Delay

ƒ The amount of time required for a bit of data to travel through the network

Propagation

Switching

Queuing delay

D = D0 / (1 – U) Where

U = utilization i.e., ratio of throughput to capacity

D = propagation and switching delay

(22)

AOT LAB Nyquist’s Theorem

Š The Nyquist’s theorem establishes a connection between the throughput and the bandwidth

D = 2B . log

2

K

Where

ƒ D is maximum data rate

ƒ B is bandwidth

ƒ K is the number of values used to encode data

3

Vmin Vmax

1

0 0

2 1

(23)

AOT LAB Shannon’s Theorem

Š The Shannon’s theorem gives the correct data rate limit for real systems (with noise)

C = B . log

2

(1 + S/N) Where

ƒ C is the effective channel capacity in bits per second

ƒ B is bandwidth

ƒ S is the average power (signal)

ƒ N is the noise

(24)

AOT LAB Example: Phone Cable

Š B = 3100 Hz

Š S/N = 30 dB = 1000

Š C = 3100 log

2

(1+1000) = 30894 bps

10 Log10 S/N = 30 Log10 S/N = 3

S/N = 103 = 1000

(25)

AOT LAB Transmission of Data

Š Network hardware encodes information for transmission

Š Two types of encoding

ƒ Analog

ƒ Digital

Š Computer networks use the second type

(26)

AOT LAB The World Was Once Analog

Š Many familiar devices use analog technology

ƒ Early telephone systems

ƒ AM or FM radio

ƒ Stereo

ƒ Television

ƒ ...

Š Analog is simple, but inaccurate

ƒ Analog device always distorts the input and adds noise

Š Sending an analog signal across a wire

ƒ Modulation

ƒ Signal loss - amplifiers

(27)

AOT LAB The Digital Revolution

Š The revolution began when engineers devised ways to combine transistors in an integrated circuit

Š Information, including audio and video, can be encoded in digital form

ƒ Inside a computer, all information is represented by numbers

ƒ Internet provides digital communication

ƒ Digital recording, television, …

Š Advantages are:

ƒ The signal is exact

ƒ Signals can be checked for errors

ƒ Noise/interference are easily filtered out

ƒ A variety of services can be offered over one line

ƒ Higher bandwidth is possible with data compression

(28)

AOT LAB Digital Encoding

Š The signal-encoding rule will determine what form an electrical signal will take to represent a 1 or a 0

ƒ Dozens of rule sets have been proposed. Each has its advantages and disadvantages

ƒ In the simplest encoding scheme, a particular voltage level represents one value and a different (or zero) voltage represents a different value

(29)

AOT LAB Digital Encoding

Š The digital encoding technique should consider at least the following aspects

ƒ Small bandwidth in order to allow many signals to be transmitted on a given communication channel

ƒ Low DC level as signals with high one are attenuated more and we would like to transmit the signal to large distances

ƒ As many changes in the voltage in order to allow synchronization between the transmitter and the

receiver without the addition of extra information, but by using the voltage level changes to achieve this goal

(30)

AOT LAB Digital Encoding Methods

Method Format

Unipolar NRZ 1 = positive voltage (+V) 0 = 0 voltage

Polar NRZ 1 = positive voltage (+V/2) 0 = negative voltage (-V/2) NRZ- inverted

(differential coding)

1 = enforcing a transition 0 = no transition

Bipolar encoding 1 = alternating polarity from pulse to pulse 0 = no pulse

Manchester encoding 1 = transition from high to low in middle of an interval 0 = transition from low to high in middle of an interval Differential Manchester

encoding

1 = no transition at the beginning of an interval 0 = transition at the beginning of an interval Always a transition in middle of an interval

(31)

AOT LAB Digital Encoding Examples

NRZ-inverted (differential encoding)

1 0 1 0 1 1 1 0 0

Unipolar NRZ

Bipolar encoding Manchester encoding Differential Manchester Polar NRZ

(32)

AOT LAB Cable Length Baud Rate Limit

Š Electric energy dissipates as it travels along

Š Wires have resistance,

capacitance, and inductance which distort signals

Š Magnetic or electrical interference distort signals

Š Distortion can result in loss or

misinterpretation

(33)

AOT LAB Distortion Components

Š Attenuation

ƒ Depends on the transmission medium

ƒ Attenuation is an increasing function of frequency

Š Delay distortion

ƒ Propagation velocity varies with frequency

Š Noise

ƒ Depends on the transmission medium and on the external environment

(34)

AOT LAB Noise

Š 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

Š Crosstalk

ƒ A signal from one line is picked up by another

Š Impulse

ƒ Irregular pulses or spikes (external electromagnetic interference)

ƒ Short duration

ƒ High amplitude

(35)

AOT LAB Error Handling

Š Data can be corrupted during transmission

ƒ Bits lost

ƒ Bit values changed

Š Frame includes additional information (one or more bits) to detect/correct errors

ƒ Set by sender

ƒ Checked by receiver

Š Statistical guarantee

(36)

AOT LAB Error Handling

Š The number (R) of incorrect bits that can be detected

R = H – 1 Where

ƒ H is the Hamming distance, i.e., the minimum number of bits that two codes differ

Š The number (C) of incorrect bits that can be recovered

C ≤ (H – 1) / 2

(37)

AOT LAB An Example

Code’ (H = 1) Code’’ (H = 2) Code’’’ (H = 3)

A 01 001 10001

B 10 010 00010

C 11 111 11100

(38)

AOT LAB Error Detection and Recovery:

Parity bit

Š One additional bit per character

Š Two forms

ƒ Even parity

ƒ Odd parity

Š Cannot handle error that changes two bits

0 1 1 0 1 1 0 0 1

(39)

AOT LAB Error Detection and Recovery:

Checksum

Š Treat data as sequence of integers

Š Compute and send arithmetic sum

Š Handle multiple bit errors

Š Cannot handle all errors

00001 00010 00011 00001 00111

(40)

AOT LAB What is the Problem?

Byte Checksum Byte Checksum

00001 1 00011 3

00010 2 00000 0

00011 3 00001 1

00001 1 00011 3

00111 7 00111 7

(41)

AOT LAB Error Detection and Recovery:

Cyclic Redundancy Check

Š Mathematical function building a M + R bits frame whose value is exactly divisible by a fixed number P (R bits)

M|R / P = 0

Š More complex to compute, however it can be computed by a circuit consisting of exclusive-or and shift gates

Š Handles more errors

(42)

AOT LAB An Example

Š M = 1010001101

Š P = 110101

Š R = M|00000 % P = 01110

Š M|R = 1010001101|01110

(43)

AOT LAB Why Use Analog Transmission?

Š Already in place

Š Significantly less expensive

Š Fully sufficient for transmission of voice signals

Š Lower attenuation rates

(44)

AOT LAB Long Distance Transmission

Š An oscillating signal travel farther than direct current

Š For long distance communication

ƒ Send a sine (carrier) wave

ƒ Change (modulate) the carrier to encode data

Amplitude modulation (AM radio)

Frequency modulation (FM radio)

Phase shift modulation (data)

(45)

AOT LAB Modulation

Š Amplitude Modulation (AM)

ƒ Strength of signal encodes 0 or 1

ƒ One cycle of wave needed for each bit

ƒ Data rate limited by carrier bandwidth

Š Frequency Modulation (FM)

ƒ Frequency of signal encodes 0 or 1

ƒ More resistant to noise than AM

ƒ Less attractive because it requires more analog bandwidth than AM

Š Phase Modulation (PM)

ƒ Section of wave is omitted at phase shift

ƒ Data bits determine size of omitted section

ƒ Change of phase encoded K bit

ƒ Data rate higher than carrier bandwidth

(46)

AOT LAB Modulation

(47)

AOT LAB Modem

Š Hardware device used for long distance communication that

ƒ Modulates an analog carrier signal to encode digital information

ƒ Demodulates such a carrier signal to decode the transmitted information

Š The goal of a modem is to produce a signal that can be

ƒ Transmitted easily

ƒ Decoded to reproduce the original digital data

(48)

AOT LAB Modem

Š A modem is based on two circuits

ƒ For modulating an outgoing signal (modulator)

ƒ For demodulating an incoming signal (demodulator)

Š Two modems are use between a couple of computer connected through an analog line:

ƒ Use a constant-frequency signal known as a carrier signal

ƒ Sender converts a series of binary voltage pulses into an analog signal by modulating the carrier signal

ƒ Receiver translates the analog signal back into digital data

(49)

AOT LAB Types of Modem

Š Conventional

ƒ Use four wires and transmit modulated electrical wave

Š Optical

ƒ Use glass fibers and transmit modulated light

Š Wireless

ƒ Use air/space and transmit modulated radio frequency wave

Š Dialup

ƒ Use voice telephone system and transmit modulated audio tone

(50)

AOT LAB Types of Modem

Š Full-duplex modem

ƒ Two way communication

ƒ Simultaneous transmission

ƒ Four wires

Š Half-duplex modem

ƒ Two way communication

ƒ No simultaneous transmission

ƒ Two wires

(51)

AOT LAB V.34 Modem Standard

Š Traditional modem standards assume that both ends of a modem session have an analog

connection to the public switched telephone network

Š Data signals are converted from digital to analog and back again, limiting transmission speeds to 33.6Kbps with current V.34 modems

Š Analog modems use two methods of transferring data: Phase Modulation (PM) and Amplitude

Modulation (AM) and their combination:

Quadrature Amplitude Modulation (QAM)

(52)

AOT LAB

Quadrature Amplitude Modulation

Š With QAM we can transmitted in both the phase shift of PM and in the signal magnitude of AM at the same time

ƒ The graphical representation of QAM is called a constellation

ƒ The following constellations

show what it would look like for 4-bits and 6-bits of information per point

ƒ Each point can also be called a symbol

QAM-16

QAM-64

(53)

AOT LAB Was Shannon Wrong?

Š The maximum data transfer rate considering the least amount of realistic noise on the telephone lines is 35Kbps according to Shannon’s theory

Š But current modem technology (modem V.90 – V92) exceed this limit (56Kbps)

Š Today's telephone network is increasingly digital

(54)

AOT LAB Was Shannon Wrong?

Š Digital lines still have noise, and are still subject to

Shannon's limit, but they have less noise and a higher ceiling

Š Several companies have created techniques that take advantage of the digital portion of the phone network to achieve higher speeds than were possible with a purely analog pathway

Š These new techniques treat the phone system as a mostly digital network that just happens to have an analog portion

Š By eliminating one of the analog-to-digital conversions in the downstream path, modems can reach speeds up to 56Kbps

(55)

AOT LAB Was Shannon Wrong?

codec codec

digital (short cable or bus) 33 MB/s

digital (short cable or bus) 33 MB/s digital digital

28.8 Kb/s analog local loop

1.544 Mb/s (T1 carrier) 28.8 Kb/s analog local loop

local office

local office toll

office

home computer ISP computer

V.34 modem V.34 modem

digital (short cable or bus) 33 MB/s

codec digital digital

56 kb/s – 33,6 Kb/s

1.544 Mb/s (T1 carrier)

local

office toll office home computer

Interface

twisted pair

V.90 modem

ISP computer

digital (short cable or bus) 33 MB/s

Riferimenti

Documenti correlati

 Questo è solo possibile se oltre alla memoria primaria viene utilizzata dal sistema operativo anche la memoria secondaria del calcolatore..

 Java non impone ai metodi di catturare o specificare le eccezioni non controllate (RuntimeException, Error e sottoclassi).  I programmatori possono essere tentati di scrivere

 Un oggetto può essere descritto tramite le caratteristiche della classe (insieme, famiglia) di oggetti di cui fa parte1.  Tutti i

Quando viene invocato wait, il thread rilascia il lock e sospende la sua esecuzione. In seguito, un altro thread acquisirà lo stesso

Quando un server invia una risposta, può inviare anche informazione di stato da memorizzare sul client.  Specificato del range di url per cui lo stato

Š International Standardization Organization (ISO) is responsible for a wide range of standards including networking standards.. AOT LAB

Š FIPA ACL is an “outer language” that defines a set of performatives (communicative acts) used for exchanges of knowledge. Š But knowledge can be expressed in different

 L’ereditarità tra le classi Java è singola: solo una classe base (diretta) per ogni classe derivata..  Tutte le classi sono derivate (implicitamente)