CPSC Network Programming. How do computers really communicate?

Similar documents
Week 2 Lecture 1. Introduction to Communication Networks. Review: Analog and digital communications

Local Asynchronous Communication. By S.Senthilmurugan Asst.Professor/ICE SRM University. Chennai.

Introduction to LAN/WAN. Physical Layer

Chapter 2. Physical Layer

Announcements : Wireless Networks Lecture 3: Physical Layer. Bird s Eye View. Outline. Page 1

Lecture 5 Transmission. Physical and Datalink Layers: 3 Lectures

DATA TRANSMISSION. ermtiong. ermtiong

Outline / Wireless Networks and Applications Lecture 3: Physical Layer Signals, Modulation, Multiplexing. Cartoon View 1 A Wave of Energy

Physical Layer. Networks: Physical Layer 1

Lecture 5 Transmission

IST 220 Exam 1 Notes Prepared by Dan Veltri

Announcement : Wireless Networks Lecture 3: Physical Layer. A Reminder about Prerequisites. Outline. Page 1

SOME PHYSICAL LAYER ISSUES. Lecture Notes 2A

Last Time. Transferring Information. Today (& Tomorrow (& Tmrw)) Application Layer Example Protocols ftp http Performance.

The Physical Layer Outline

Data and Computer Communications. Chapter 3 Data Transmission

Cable Testing TELECOMMUNICATIONS AND NETWORKING

COMP211 Physical Layer

CSCD 433 Network Programming Fall Lecture 5 Physical Layer Continued

Lecture 3: Data Transmission

CS307 Data Communication

EITF25 Internet Techniques and Applications L2: Physical layer. Stefan Höst

Introduction to Telecommunications and Computer Engineering Unit 3: Communications Systems & Signals

two computers. 2- Providing a channel between them for transmitting and receiving the signals through it.

Part II Data Communications

Lecture Fundamentals of Data and signals

CS441 Mobile & Wireless Computing Communication Basics

Introduction to Communications Part Two: Physical Layer Ch3: Data & Signals

Module 3: Physical Layer

Point-to-Point Communications

PRINCIPLES OF COMMUNICATION SYSTEMS. Lecture 1- Introduction Elements, Modulation, Demodulation, Frequency Spectrum

Review of Lecture 2. Data and Signals - Theoretical Concepts. Review of Lecture 2. Review of Lecture 2. Review of Lecture 2. Review of Lecture 2

Data Communications & Computer Networks

Physical Layer: Outline

CSCD 433 Network Programming Fall Lecture 5 Physical Layer Continued

Lecture 2: Links and Signaling. CSE 123: Computer Networks Stefan Savage

William Stallings Data and Computer Communications. Bab 4 Media Transmisi

Lecture Progression. Followed by more detail on: Quality of service, Security (VPN, SSL) Computer Networks 2

CSE 123: Computer Networks Alex C. Snoeren. Project 1 out Today, due 10/26!

Lecture 2: Links and Signaling"

Chapter 3. Data Transmission

Transmission Medium/ Media

CSE 561 Bits and Links. David Wetherall

Transmission Media. - Bounded/Guided Media - Uubounded/Unguided Media. Bounded Media

Maximum date rate=2hlog 2 V bits/sec. Maximum number of bits/sec=hlog 2 (1+S/N)

Physical Layer. Transfers bits through signals overs links Wires etc. carry analog signals We want to send digital bits. Signal

Computer Networks

Chapter 3 Data and Signals

Data and Computer Communications Chapter 3 Data Transmission

Chapter 6 Bandwidth Utilization: Multiplexing and Spreading 6.1

Jaringan Komputer. Outline. The Physical Layer

Data Communication. Chapter 3 Data Transmission

Lecture Progression. Followed by more detail on: Quality of service, Security (VPN, SSL) Computer Networks 2

College of information Technology Department of Information Networks Telecommunication & Networking I Chapter DATA AND SIGNALS 1 من 42

Chapter 12: Digital Modulation and Modems

Terminology (1) Chapter 3. Terminology (3) Terminology (2) Transmitter Receiver Medium. Data Transmission. Direct link. Point-to-point.

UNIT 6 ANALOG COMMUNICATION & MULTIPLEXING YOGESH TIWARI EC DEPT,CHARUSAT

Computer Networks Lecture -4- Transmission Media. Dr. Methaq Talib

Terminology (1) Chapter 3. Terminology (3) Terminology (2) Transmitter Receiver Medium. Data Transmission. Simplex. Direct link.

Class 4 ((Communication and Computer Networks))

Lecture 2 Physical Layer - Data Transmission

Course 2: Channels 1 1

E-716-A Mobile Communications Systems. Lecture #2 Basic Concepts of Wireless Transmission (p1) Instructor: Dr. Ahmad El-Banna

Data Communications and Networks

INTRODUCTION TO COMMUNICATION SYSTEMS AND TRANSMISSION MEDIA

1. What is the bandwidth of a signal that ranges from 40 KHz to 4 MHz? a MHz (4M -40K) b. 36 MHz c. 360 KHz d. 396 KHz

*Most details of this presentation obtain from Behrouz A. Forouzan. Data Communications and Networking, 5 th edition textbook

a. Find the minimum number of samples per second needed to recover the signal without loosing information.

EC 554 Data Communications

Transmission Media. Transmission Media 12/14/2016

FDM- FREQUENCY DIVISION MULTIPLEXING

ROM/UDF CPU I/O I/O I/O RAM

William Stallings Data and Computer Communications 7 th Edition. Chapter 4 Transmission Media

Chapter 3 Data and Signals 3.1

BSc (Hons) Computer Science with Network Security. Examinations for Semester 1

CSE 461 Bits and Links. David Wetherall

Overview. Chapter 4. Design Factors. Electromagnetic Spectrum

Physical Layer. Networked Systems (H) Lecture 3

CSE 461: Bits and Bandwidth. Next Topic

Chapter 3 Digital Transmission Fundamentals

Chapter 3 Data Transmission COSC 3213 Summer 2003

(Refer Slide Time: 2:23)

Introduction to the Communication Process. Digital Transmission MEEC

Data Communication and Media

CSEP 561 Bits and Links. David Wetherall

Contents. Telecom Service Chae Y. Lee. Data Signal Transmission Transmission Impairments Channel Capacity

Media. Twisted pair db/km at 1MHz 2 km. Coaxial cable 7 db/km at 10 MHz 1 9 km. Optical fibre 0.2 db/km 100 km

Data Transmission. ITS323: Introduction to Data Communications. Sirindhorn International Institute of Technology Thammasat University ITS323

ECE 435 Network Engineering Lecture 16

Figure 4-1. Figure 4-2 Classes of Transmission Media

Chapter 1 Acknowledgment:

6. has units of bits/second. a. Throughput b. Propagation speed c. Propagation time d. (b)or(c)

Data Communication (CS601)

Chapter-15. Communication systems -1 mark Questions

Qiz 1. 3.discrete time signals can be obtained by a continuous-time signal. a. sampling b. digitizing c.defined d.

Transmission Impairments

UNIT 2 DATA TRANSMISSION

Basic Concepts in Data Transmission

P. 241 Figure 8.1 Multiplexing

Bandwidth Utilization:

Transcription:

CPSC 360 - Network Programming Data Transmission Michele Weigle Department of Computer Science Clemson University mweigle@cs.clemson.edu February 11, 2005 http://www.cs.clemson.edu/~mweigle/courses/cpsc360 Data Transmission How do computers really communicate? 1. They need a physical connection. 2. Data is encoded and transmitted as energy. 3. Energy is decoded at the destination back into data. 4. Each form of energy has different properties and requirements for transmission.

Data Transmission Forms Of Energy Used! Electric current! Audible sounds! Omni-directional electromagnetic waves "Radio Frequency (RF) "Infrared! Directional electromagnetic waves "Point-to-point satellite channel "Limited broadcast (spot beam) "Microwave "Laser beam Data Transmission Transmission Media! Copper wire " Possibilities! Twisted pair! Coaxial cable! Optical fiber " Flexible " Light stays in! Air/space " Used for electromagnetic transmission

Transmission Media Copper! Transmission is the propagation of an electromagnetic wave (or optical pulse) through a physical medium! Media types " Guided media signals propagate in solid media (copper, fiber) " Unguided media signals propagate freely (radio, infrared)! What do you use? " Twisted Pair (UTP) Two insulated copper wires! Category 3 UTP: " Traditional phone wires, 10 Mbps Ethernet! Category 5 UTP: " 100Mbps Ethernet " Gigabit possible " Distance limited (100 m) Transmission Media Coax and Fiber Optics! Coaxial cable "Wire (signal carrier) within a wire (shield)! Baseband: single channel on cable! Broadband: multiple channel on cable "Bi-directional transmission "Largely used for cable TV! Fiber optic cable "Glass fiber carrying light pulses "Higher-speed operation:! 100-1,000 Mbps Ethernet! High-speed point-to-point transmission (e.g., 10 Gbps) "Low signal attenuation long distances "Low error rate

Transmission Media Radio! Signal carried in electromagnetic spectrum " No physical wire! Bi-directional! Physical environment effects propagation " Reflection " Obstruction by objects " Interference uplink base station! Radio link types: " Microwave! Up to 45 Mbps channels " LAN (e.g., 802.11)! 2 Mbps, 11, 56 Mbps " Wide-area (e.g., cellular)! CDPD, 10 s Kbps " Satellite! Up to 50Mbps channel (or multiple smaller channels)! 270 msec end-end delay! Geosynchronous versus LEOS Transmission Media Choosing a Medium! Copper wire (traditional wired network) "mature technology, rugged and inexpensive; maximum transmission speed is limited.! Glass fiber (optical network) "Higher speed "More resistant to electro-magnetic interference "Spans longer distances "Requires only single fiber "More expensive; less rugged! Radio and microwave (wireless network) "don't require physical connection and can be used for mobile connections.

Transmission Media Physical Limits! Propagation delay "Time required for signal to travel across media "Example: electromagnetic radiation travels through space at the speed of light (C=3x10 8 meters per second)!bandwidth "Maximum times per second the signal can change Data Transmission! Network hardware encodes information for transmission!two types of encoding "Analog (amount of energy proportional to value of item sent) "Digital (two forms of energy to encode 0 and 1)!what computers use

Data Transmission Example Digital Encoding! Medium: Copper wire! Energy form: Electric current!encoding: "Negative voltage encodes 1 "Positive voltage encodes 0 Data Transmission Illustration of Digital Encoding! Known as waveform diagram! X-axis corresponds to time! Y-axis corresponds to voltage

Data Communications! Encoding scheme leaves several questions unanswered: "How long will voltage last for each bit? "How soon will next bit start? "How will the transmitter and receiver agree on timing?! Standards specify operation of communication systems "Devices from different vendors that adhere to the standard can interoperate "Example organizations:! International Telecommunications Union (ITU)! Electronic Industries Association (EIA)! Institute for Electrical and Electronics Engineers (IEEE) The RS-232C Standard! Example Use "Connection to keyboard/mouse "Serial port on PC! Voltage is +15 or -15! Cable limited to ~50 feet! Uses asynchronous communication

RS-232C Asynchronous Communication! Sender and receiver must agree on " Number of bits per character " Duration of each bit! Receiver " Does not know when a character will arrive " May wait forever! To ensure meaningful exchange, send: " Start bit before character " One or more stop bits after character RS-232C Illustration! Start bit "Same as 0 "Not part of data! Stop bit "Same as 1 "Follows data

RS-232C Duration Of A Bit! Determined by baud rate "Example baud rates: 9.6 Kbaud, 28.8 Kbaud, 33.6 Kbaud "Duration of bit is 1/baud_rate! Sender and receiver must agree a priori! Receiver samples signal! Disagreement results in framing error Two-Way Communication! Desirable in practice! Requires each side to have transmitter and receiver! Called full duplex

Illustration Of Full-Duplex Communication! Transmitter on one side connected to receiver on other! Separate wires needed to carry current in each direction! Common ground wire! DB-9, DB-15, or DB-25 connector used "Pin 2 is transmit "Pin 3 is receive Electrical Transmission (The Bad News) It s an ugly world! "Electrical energy dissipates as it travels along "Wires have resistance, capacitance, and inductance which distort signals "Magnetic or electrical interference distorts signals "Distortion can result in loss or misinterpretation

Illustration Of Distorted Signal For A Single Bit In practice "Distortion can be much worse than illustrated Consequences! RS-232 hardware must handle minor distortions "Take multiple samples per bit "Tolerate less than full voltage! Cannot use electrical current for longdistance transmission

Long-Distance Communication! Important fact: an oscillating signal travels farther than direct current! For long-distance communication "Send a sine wave (called a carrier wave) "Change (modulate) the carrier to encode data! Note: modulated carrier technique used for radio and television Long-Distance Communication Illustration Of A Carrier!Carrier "Usually a sine wave "Oscillates continuously! Frequency of carrier fixed

Long-Distance Communication Types Of Modulation! Amplitude modulation (used in AM radio)! Frequency modulation (used in FM radio)! Phase shift modulation (used for data) Amplitude Modulation Illustration! Strength of signal encodes 0 or 1! One cycle of wave needed for each bit! Data rate limited by carrier bandwidth

Phase-Shift Modulation Illustration!Change in phase encodes K bits! Data rate higher than carrier bandwidth Phase-Shift Example! Section of wave is omitted at phase shift! Data bits determine size of omitted section

Long-Distance Communication Modem! Hardware device! Used for long-distance communication! Contains separate circuitry for "Modulation of outgoing signal "Demodulation of incoming signal! Name abbreviates modulator/demodulator Long-Distance Communication Modem! One modem at each end! Separate wires carry signals in each direction! Modulator on one modem connects to demodulator on other

Long-Distance Communication Modem Types! Conventional "Use four wires "Transmit modulated electrical wave! Wireless "Use air/space "Transmit modulated RF wave! Optical "Use glass fibers "Transmit modulated light! Dialup "Use voice telephone system "Transmit modulated audio tone Long-Distance Communication Dialup Modem Illustration!Modem can "Dial "Answer!Carrier is audio tone

Long-Distance Communication Modem Terminology! Full-duplex modem "Provides 2-way communication "Allows simultaneous transmission "Uses four wires! Half-duplex modem "Provides 2-way communication "Transmits in one direction at any time "Uses two wires Data Transmission Recall! Propagation delay "Determined by physics "Time required for signal to travel across medium!bandwidth "Electrical property of physical transmission system "Maximum times per second signal can change

Fundamental Measures Of A Digital Transmission System!Delay "The amount of time required for a bit of data to travel from one end to the other "Usually the same as the propagation delay in underlying hardware! Throughput "The number of bits per second that can be transmitted "Related to underlying hardware bandwidth Relationship Between Digital Throughput And Bandwidth Given by Nyquist s theorem: where D = 2Blog 2 K "D is maximum data rate "B is hardware bandwidth "K is number of values used to encode data

Applications Of Nyquist s Theorem!For RS-232 "K is 2 because RS-232 uses two values, +15 or -15 volts, to encode data bits "D is 2B log 2 2 = 2B! For phase-shift encoding "Suppose K is 8 (possible shifts) "D is 2Blog 2 8 = 2Bx3 = 6B More Bad News! Physics tells us that real systems emit and absorb energy (e.g., thermal)! Engineers call unwanted energy noise! Nyquist s theorem "Assumes a noise-free system "Only works in theory! Shannon s theorem corrects for noise

Shannon s Theorem Gives capacity in presence of noise: C = B log 2 (1 + S/N) where "C is the effective channel capacity in bits per second "B is hardware bandwidth "S is the average power (signal) "N is the noise S/N is signal-to-noise ratio Application Of Shannon s Theorem! Conventional telephone system "Engineered for voice "Bandwidth is 3000 Hz "Signal-to-noise ratio is approximately 1000 "Effective capacity is!3000 log 2 (1 + 1000) = ~30000 bps! Conclusion: dialup modems have little hope of exceeding 28.8 Kbps

The Bottom Line!Nyquist s theorem means finding a way to encode more bits per cycle improves the data rate! Shannon s theorem means that no amount of clever engineering can overcome the fundamental physical limits of a real transmission system Multiplexing! Fundamental to networking! General concept!used in "Lowest level of transmission systems "Higher levels of network hardware "Protocol software "Applications

Multiplexing General Concept! Separate pairs of communications travel across shared channel! Multiplexing prevents interference! Each destination receives only data sent by corresponding source Multiplexing Terminology! Multiplexor "Device or mechanism "Accepts data from multiple sources "Sends data across shared channel! Demultiplexor "Device or mechanism "Extracts data from shared channel "Sends to correct destination

Multiplexing Two Basic Types! Time Division Multiplexing (TDM) "Only one item at a time on shared channel! share by taking turns "Item marked to identify source "Demultiplexor uses identifying mark to know where to deliver "Statistical multiplexing is similar to TDM except if a source does not have data to send, the multiplexor skips the source! Frequency Division Multiplexing (FDM) "Multiple items transmitted simultaneously "Uses multiple channels / carriers Multiplexing Frequency Division Multiplexing! Two or more signals that use different carrier frequencies can be transmitted over a single medium simultaneously without interference.! Receiver can "tune" to specific frequency and extract modulation for that one channel " Frequencies must be separated to avoid interference " Only useful in media that can carry multiple signals with different frequencies - high-bandwidth required! Note: This is the same principle that allows a cable TV company to send multiple television signals across a single cable.

Transmission Schemes! Baseband transmission "Uses only low frequencies "Encodes data directly! Broadband transmission "Uses multiple carriers "Can use higher frequencies "Achieves higher throughput "Hardware more complex and expensive Wave Division Multiplexing!Facts "FDM can be used with any electromagnetic radiation "Light is electromagnetic radiation!when applied to light, FDM is called wave division multiplexing "Informally called color division multiplexing

Summary! Various transmission schemes and media available "Electrical current over copper "Light over glass "Electromagnetic waves! Digital encoding used for data! Asynchronous communication "Used for keyboards and serial ports "RS-232 is standard "Sender and receiver agree on baud rate Summary! Physical layer impairments (e.g., noise on the wire) lead to bit errors.! The physical layer can become unusable (e.g., construction crews destroy fiber lines). "The higher layers needs to handle this.

Summary! The communications channel along with the modulation technique determines the bandwidth! Channel bandwidth: Measured in cycles per second or Hertz (Hz), is the fastest continuously oscillating signal that can be sent over the channel. "Can also refer to bandwidth as the width of the spectrum available to the signal. "A transmitter s maximum signal rate (i.e., baud rate) is limited by the channel bandwidth. Summary! Modems "Used for long-distance communication "Available for copper, optical fiber, dialup "Transmit modulated carrier! Phase-shift modulation popular "Classified as full- or half- duplex! Two measures of digital communication system "Delay "Throughput

Summary Nyquist thereom: " Provides a theoretical bound on the maximum rate at which data can be sent over a channel (i.e., gives the channel capacity). D 2 D: maximum data rate over a channel = 2Blog K B: channel bandwidth K: number of signal levels available Question: Television channels are allocated 6MHz of spectrum. How many bits/second can be sent over a 6MHz channel if four-level signals are used (assuming a noiseless channel?) Summary! Nyquist s theorem "Relates throughput to bandwidth "Encourages engineers to use complex encoding! Shannon s theorem "Adjusts for noise "Specifies limits on real transmission systems

Summary! Multiplexing "Fundamental concept "Used at many levels "Applied in both hardware and software "Two basic types! Time-division multiplexing (TDM)! Frequency-division multiplexing (FDM)! When applied to light, FDM is called wavedivision multiplexing