5.61k likes | 5.85k Views
Introduction. Basic concepts Terminology. Ubiquitous Computing. Computers everywhere. Also means ubiquitous communication Users connected anywhere/anytime. PC (laptop, palmtop) equivalent to cell phone. Networking computers together is critical!. Computer Network.
E N D
Introduction • Basic concepts • Terminology
Ubiquitous Computing • Computers everywhere. • Also means ubiquitous communication • Users connected anywhere/anytime. • PC (laptop, palmtop) equivalent to cell phone. • Networking computers together is critical!
Computer Network • Provide access to local and remote resources. • Collection of interconnected end systems: • Computing devices (mainframes, workstations, PCs, palm tops) • Peripherals (printers, scanners, terminals). • Applications: location transparency.
Computer Networks (cont’d) • Components: • End systems (or hosts), • Routers/switches/bridges, and • Links (twisted pair, coaxial cable, fiber, radio, etc.).
Communication Model Network Source Destination
Example PTN Modem Modem Source Destination Source System Destination System PTN: Public Telephone Network
Connecting End Systems Dedicated link Multiple access / shared medium
Connecting End Systems (cont’d) Router Switched network Router: switching element; a.k.a., IMPs (Interface Message Processors) in ARPAnet’s terminology.
Shared Communication Infrastructure • Shared medium: • Examples: ethernet, radio. • How to acquire channel: medium access control protocols. • Switched networks: • Shared infrastructure consisting of point-to-point links. • Circuit- versus packet-switching.
Circuit Switching • Establish dedicated path (circuit) between source and destination. • Example: telephone network. • +’s: dedicated resources(stream-oriented). • -’s: lower resource utilization (e.g.,bursts).
Packet Switching S1 D1 D2 S2 • Data split into transmission units, or packets. • Routers: store packets briefly store packets and forward them: store-and-forward. • Efficient resource use: statistical multiplexing. • Ability to accommodate bursts.
(Switched) Network Topologies Ring Tree Star Irregular
Protocol • Set of rules that allow peering entities to communicate. • Example: 2 friends talking on the phone. • Peering entities or peers: user application programs, file transfer services, e-mail services, etc.
Network Architecture • Protocol layers: reduce design complexity. • Main idea: each layer uses the services from lower layer and provide services to upper layer. • Higher layer shielded from the implementation details of lower layers. • Interface between layers must be clearly defined: services provided to upper layer.
Example 1: ISO OSI Model • ISO: International Standards Organization • OSI: Open Systems Interconnection. Application Presentation Session Transport Network Data link Physical
OSI ISO 7-Layer Model • Physical layer: transmission of bits. • Data link layer: reliable transmission over physical medium; synchronization, error control, flow control; media access in shared medium. • Network layer: routing and forwarding; congestion control; internetworking.
OSI ISO 7-Layer Model (cont’d) • Transport layer: error, flow, and congestion control end-to-end. • Session layer: manages connections (sessions) between end points. • Presentation layer: data representation. • Application layer: provides users with access to the underlying communication infrastructure.
Example 2: TCP/IP Model • Model employed by the Internet. ISO OSI TCP/IP Application Application Presentation Session Transport Transport Internet Network Network Access Data link Physical Physical
TCP/IP Protocol Suite: • Physical layer: same as OSI ISO model. • Network access layer: medium access and routing over single network. • Internet layer: routing across multiple networks, or, an internet. • Transport layer: end-to-end error, congestion, flow control functions. • Application layer: same as OSI ISO model.
The Internet: Some History • Late 1970’s/ early 1980’s: the ARPANET (funded by ARPA). • Connecting university, research labs and some government agencies. • Main applications: e-mail and file transfer. • Features: • Decentralized, non-regulated system. • No centralized authority. • No structure. • Network of networks.
The Internet (cont’d) • Early 1990’s, the Web caused the Internet revolution: the Internet’s killer app! • Today: • Almost 60 million hosts as of 01.99. • Doubles every year.
Topics for Further Reading • Some Internet governing entities: • IAB • IETF • IRTF • The Internet’s standardization process. • Other network standardization bodies. • Other networks (Bitnet, SNA, etc).
Physical Layer • Sending raw bits across “the wire”. • Issues: • What’s being transmitted. • Transmission medium.
Basic Concepts • Signal: electro-magnetic wave carrying information. • Time domain: signal as a function of time. • Analog signal: signal’s amplitude varies continuously over time, ie, no discontinuities. • Digital signal: data represented by sequence of 0’s and 1’s (e.g., square wave).
Time Domain • Periodic signals: • Same signal pattern repeats over time. • Example: sine wave • Amplitude (A) • Period (or frequency) (T = 1/f) • Phase(f)
Frequency Domain • Signal consists of components of different frequencies. • Spectrum of signal: range of frequencies signal contains. • Absolute bandwidth: width of signal’s spectrum.
Example: S(f) • Spectrum of S(f) extends from f1 to 3f1. • Bandwidth is 2f1. f 1 3 2
Bandwidth and Data Rate • Data rate: rate at which data is transmitted; unit is bits/sec or bps (applies to digital signal). • Example: 2Mbits/sec, or 2Mbps. • Digital signal has infinite frequency components, thus infinite bandwidth. • If data rate of signal is W bps, good representation achieved with 2W Hz bandwidth.
Baud versus Data Rate • Baud rate: number of times per second signal changes its value (voltage). • Each value might “carry” more than 1 bit. • Example: 8 values of voltage (0..7); each value conveys 3 bits, ie, number of bits = log2V. • Thus, bit rate = log2V * baud rate. • For 2 levels, bit rate = baud rate.
Data Transmission 1 • Analog and digital transmission. • Example of analog data: voice and video. • Example of digital data: character strings • Use of codes to represent characters as sequence of bits (e.g., ASCII). • Historically, communication infrastructure for analog transmission. • Digital data needed to be converted: modems (modulator-demodulator).
Digital Transmission • Current trend: digital transmission. • Cost efficient: advances in digital circuitry (VLSI). • Advantages: • Data integrity: better noise immunity. • Security: easier to integrate encryption algorithms. • Channel utilization: higher degree of multiplexing (time-division mux’ing).
Transmission Impairments • Cause received signal to differ from original, transmitted signal. • Analog data: quality degradation • Digital data: bit errors. • Types of impairments: • Attenuation. • Delay distortion. • Noise.
Attenuation 1 • Weakening of the signal’s power as it propagates through medium. • Function of medium type • Guided medium: logarithmic with distance. • Unguided medium: more complex (function of distance and atmospheric conditions).
Attenuation 2 • Problems and solutions: • Insufficient signal strength for receiver to interpret it: use amplifiers/repeaters to boost/regenerate signal. • Error due to noise interference (level is not high enough to be distinguished from noise): use amplifiers/repeaters. • Attenuation increases with frequency: special amplifiers to amplify high-frequencies.
Delay Distortion • Speed of propagation in guided media varies with frequency. • Different frequency components arrive at receiver at different times. • Solution: equalization techniques to equalize distortion for different frequencies.
Noise • Noise: undesired signals inserted anywhere in the source/destination path. • Different categories: thermal (white), crosstalk, impulse, etc.
Decibel and Signal-to-Noise Ratio • Decibel (dB): measures relative strength of 2 signals. • Example: S1 and S2 with powers P1 and P2. NdB = 10 log10 (P1/P2) • Signal-to-noise ratio (S/N): • Measures signal quality. • S/NdB = 10 log10 (signal power/noise power)
Channel Capacity 1 • Rate at which data can be transmitted over communication channel. • Noise-free channel: Nyquist Theorem • Limitation of data rate is signal’s bandwidth. • Given channel bandwidth W, highest signal rate (or baud rate) is 2W. • From receiver’s point of view: sampling at rate 2W can reconstruct signal.
Channel Capacity 2 • Using data rate, • C = 2W log2V, where V is number voltage levels. • Same bandwidth, increasing number of signal levels, increases data rate, but more complex signal recognition at receiver and more noise-prone. • This is a theoretical upper bound, since channels are noisy.
Channel Capacity 3 • Noisy channel: Shannon’s Theorem • Given channel with W (Hz) bandwidth and S/N (dB) signal-to-noise ratio, C (bps) is • C = W log2 (1+S/N) • Theoretical upper bound since assumes only thermal noise (no impulse noise, etc).
Transmission Media • Physically connect transmitter and receiver carrying signals in the form electromagnetic waves. • Types of media: • Guided: waves guided along solid medium such as copper twisted pair, coaxial cable, optical fiber. • Unguided: “wireless” transmission (atmosphere, outer space).
Guided Media: Examples 1 • Twisted Pair: • 2 insulated copper wires arranged in regular spiral. Typically, several of these pairs are bundled into a cable. • Cheapest and most widely used; limited in distance, bandwidth, and data rate. • Applications: telephone system (home-local exchange connection). • Unshielded and shielded twisted pair.
Examples 2 • Coaxial Cable • Hollow outer cylinder conductor surrounding inner wire conductor; dielectric (non-conducting) material in the middle. • Applications: cable TV, long-distance telephone system, LANs. • +’s: Higher data rates and frequencies, better interference and crosstalk immunity. • -’s: Attenuation and thermal noise.
Examples 3 • Optical Fiber • Thin, flexible cable that conducts optical waves. • Applications: long-distance telecommunications, LANs. • +’s: greater capacity, smaller and lighter, lower attenuation, better isolation,
Unguided, Wireless Media • Microwave: directional, LOS transmission. • Satellite: directional, LOS, large delay, high bandwidth. • Radio: omnidirectional (broadcast), single hop (cellular), multi-hop (ad hoc net’s). • Infrared: directional, LOS transmission, cannot penetrate obstacles and used outdoors.
Data Encoding • Transforming original signal just before transmission. • Both analog and digital data can be encoded into either analog or digital signals. Chapter 4 EE/CS 450 Fall 99
Digital/Analog Encoding Encoding: g(t) g(t) (D/A) Encoder Digital Medium Decoder Source Destination Source System Destination System Modulation: g(t) g(t) (D/A) Modulator Analog Medium Demodulator Source Destination Source System Destination System
Encoding Considerations • Digital signaling can use modern digital transmission infrastructure. • Some media like fiber and unguided media only carry analog signals. • Analog-to-analog conversion used to shift signal to use another portion of spectrum for better channel utilization (frequency division mux’ing).
Digital Transmission Terminology • Data element: bit. • Signaling element: encoding of data element for transmission. • Unipolar signaling: signaling elements have same polarization (all + or all -). • Polar signaling: different polarization for different elements.
More Terminology • Data rate: rate in bps at which data is transmitted; for data rate of R, bit duration (time to emit 1 bit) is 1/R sec. • Modulation rate = baud rate (rate at which signal levels change).