Slide design: Dr. Mark L. Hornick

Slides:



Advertisements
Similar presentations
Physical Layer: Signals, Capacity, and Coding
Advertisements

Theoretical basis for data communication
Chi-Cheng Lin, Winona State University CS412 Introduction to Computer Networking & Telecommunication Theoretical Basis of Data Communication.
ECE 4321: Computer Networks Chapter 3 Data Transmission.
1 Lecture 27 Physical Layer (Data and Signals) University of Nevada – Reno Computer Science & Engineering Department Fall 2010 CPE 400 / 600 Computer Communication.
William Stallings Data and Computer Communications 7 th Edition Chapter 3 Data Transmission.
Digital to Analog Many carrier facilities are analog Many transmission media are also analog (microwave, radio) We can carry digital values over analog.
Chapter 3 Data and Signals
Department of Electronic Engineering City University of Hong Kong EE3900 Computer Networks Data Transmission Slide 1 Continuous & Discrete Signals.
William Stallings Data and Computer Communications 7th Edition (Selected slides used for lectures at Bina Nusantara University) Data, Signal.
Module 3.0: Data Transmission
1 Computer Communication & Networks Lecture 5 Physical Layer: Data & Signals Waleed Ejaz
Net 222: Communications and networks fundamentals (Practical Part)
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Physical Layer PART II.
1-1 Basics of Data Transmission Our Objective is to understand …  Signals, bandwidth, data rate concepts  Transmission impairments  Channel capacity.
Part 2 Physical Layer and Media
1 Ch 6 Long-Distance Communication Carriers, Modulation, and Modems.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 8.
SE-3910 Real-time Systems Week 7, Class 3 – Announcement – Estimating rates Uncompressed Video Size Compression Ratio Frame rate – the Stroboscope effect.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Theoretical Basis of Data Communication.
SE-3910 Real-time Systems Week 7, Class 3 – Announcement – Estimating rates Uncompressed Video Size Compression Ratio Frame rate – the Stroboscope effect.
02 – Performance Basics 1CS Computer Networks.
Today TBA Tomorrow Good Friday SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 1 SE3910 Week 5, Class 3.
Today Networking in Linux/C Lab Eclipse cross-compiling Measuring latency of 100% CPU busy-wait polling Sleeping busy-wait polling Interrupt-driven response.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 3 – Digital Audio Representation Klara Nahrstedt Spring 2009.
Physical Layer PART II. Position of the physical layer.
Data Comm. & Networks Lecture 6 Instructor: Ibrahim Tariq.
1 Composite Signals and Fourier Series To approximate a square wave with frequency f and amplitude A, the terms of the series are as follows: Frequencies:
Today C/C++:.h/.cpp; compiling and linking Fourier Transform (corrected) Nyquist Theorem Audio sampling rates SE-2811 Slide design: Dr. Mark L. Hornick.
Chapter 3 Data and Signals. 3.2 Last Lecturer Summary Bit Rate Bit Length Digital Signal as a Composite Analog Signal Application Layer Distortion Noise.
CS2852 Week 3, Class 2 Today Stacks Queues SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 1.
Today Nervous System Response Time SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 1 SE3910 Week 3, Class 2.
Spring 2006Data Communications, Kwangwoon University3-1 Chapter 3. Signals 1.Analog and digital 2.Analog signals 3.Digital signals 4.Analog versus digital.
CS2852 Week 5, Class 2 Today Queue Applications Circular Queue Implementation Testing SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors:
CS2852 Week 7, Class 1 Today Binary Search Tree Implementing add Implementing find Return Quiz 4 (second attempt) Both sections are graded SE-2811 Slide.
Transmission Media. Quiz: ANGEL->Lessons->Quiz 2 Figure 1Figure 2 Figure 3Figure 4.
Today Signals Nyquist Theorem (revisited) Audio Sampling Latency and Bandwidth Scheduling Theory SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr.
Today (or Thursday) Qt Thursday Quiz SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 1 SE3910 Week 6, Lab.
Chapter 2 : Data Communications BENG 4522 Data Communications & Computer Networks Transmission Impairment Signals travel through the transmission.
Chapter 3 TRANSMISSION IMPAIRMENT. 3-4 TRANSMISSION IMPAIRMENT Signals travel through transmission media, which are not perfect. The imperfection causes.
SE3910 Week 6, Class 1 Week 6, Class 2 (Wednesday) Quiz Week 7, Class 2 (Wednesday) Half-Exam 2 Bring Calculator!! Qt GUI Design Analog and Digital Datarates.
SE3910 Week 5, Class 3 Week 6, Class 2 (Wednesday) Quiz Week 7, Class 2 (Wednesday) Half-Exam 2 Analog and Digital Datarates SE-2811 Slide design: Dr.
Computer Engineering and Networks, College of Engineering, Majmaah University Some Basics Mohammed Saleem Bhat CEN-444 Networks Structure.
SE3910 Week 4, Class 3 Notes on Lab 5 Code to write! Next week Monday Afternoon OH (after class) cancelled Ask questions before class if possible Week.
SE3910 Week 8, Class 2 Week 4 Lab: Please return your graded Lab 4 to me so I can enter it in my gradebook Week 7, Class 2 (Wednesday) Half-Exam 2 Done.
Data and Computer Communications Chapter 3 – Data Transmission.
Computer Communication & Networks
Slide design: Dr. Mark L. Hornick
Dr. Clincy Professor of CS
Part II Physical Layer.
Chapter Two Fundamentals of Data and Signals
PART II Physical Layer.
William Stallings Data and Computer Communications 7th Edition
Slide design: Dr. Mark L. Hornick
Slide design: Dr. Mark L. Hornick
Introduction to electronic communication systems
Dr. Clincy Professor of CS
Slide design: Dr. Mark L. Hornick
Slide design: Dr. Mark L. Hornick
Signals Prof. Choong Seon HONG.
Modulation Modulation => Converts from digital to analog signal.
Slide design: Dr. Mark L. Hornick
Slide design: Dr. Mark L. Hornick
REVIEW Physical Layer.
Slide design: Dr. Mark L. Hornick
Analog Transmission Example 1
Slide design: Dr. Mark L. Hornick
SE-3910 Real-time Systems Week 4, Class 1 Quick-Quiz (Ungraded!)
Data Communication and Networking
Physical Layer – How bits are sent
Presentation transcript:

Slide design: Dr. Mark L. Hornick SE3910 5/28/2018 SE3910 Week 5, Class 3 Today Fourier Transform In-class examples and exercises Digital data rate over analog channel Digital bandwidth needs for video Start of Nyquist Theorem SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder Dr. Josiah Yoder

Ex: C/C++ (Review) Why do we have both .h and .cpp file extensions for C++? Why not just have .cpp (like .java for Java classes)? Answer these questions: What should you put into a class’s .h file? What should you put into a class’s .cpp file? [Note: On next lab, use .hpp and .cpp instead of .h and .cpp] SE-2811 Dr.Yoder

Compiling and Linking Compiling Linking Converting individual .c or .cpp file to object code Linking Combining multiple object (.o) files into an excecutable (usually without extension, or .exe on Windows) SE-2811 Dr.Yoder

Ex: C/C++ Circle the link-time errors. Box the compile-time SE3910 5/28/2018 Ex: C/C++ Circle the link-time errors. Box the compile-time syntax error warning: implicit declaration of function `...' point.m:40: error: ‘mypoint’ undeclared (first use in this function) parse error before `...‘ collect2: ld returned 1 exit status undefined reference to `filterText' /usr/lib/crt1.o(.text+0x18): undefined reference to `main ' SE-2811 Dr.Yoder Dr. Josiah Yoder

Network Latency with resmon.exe SE3910 5/28/2018 Network Latency with resmon.exe SE-2811 Dr.Yoder Dr. Josiah Yoder

Signals as sums of sine-waves SE3910 5/28/2018 Signals as sums of sine-waves http://ccn.ucla.edu/BMCweb/SharedCode/slides/SlideFiles.html http://mathworld.wolfram.com/FourierSeriesSquareWave.html SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Josiah Yoder

CS2852 5/28/2018 For Digital TV: http://transition.fcc.gov/mb/engineering/dtvmaps/ Full US allocations: http://upload.wikimedia.org/wikipedia/commons/4/45/United_States_Frequency_Allocations_Chart_2003_-_The_Radio_Spectrum.jpg VHF Usage (World wide) http://upload.wikimedia.org/wikipedia/en/c/cc/VHF_Usage.svg SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder

SE3910 5/28/2018 Units: dB What is a decibel? A tenth of a bel What is a bel? The log10 of some ratio. e.g. signal power / noise power X dB = 10 log10 (Y) X – in units of dB Y – simple ratio (unitless) Dr. Josiah Yoder

SE3910 5/28/2018 dB examples dB 50 dB 100,000 30 dB 1,000 0 dB 1 -30 dB 0.001 -50 dB 0.000 010 SE-2811 Dr.Yoder Dr. Josiah Yoder

Channel capacity 𝑚𝑎𝑥𝑖𝑚𝑢𝑚 𝑛𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 𝑏𝑖𝑡𝑠 𝑠𝑒𝑐𝑜𝑛𝑑 𝐵=𝐻𝑙𝑜𝑔2 (1+ 𝑆 𝑁 ) SE3910 5/28/2018 Channel capacity 𝑚𝑎𝑥𝑖𝑚𝑢𝑚 𝑛𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 𝑏𝑖𝑡𝑠 𝑠𝑒𝑐𝑜𝑛𝑑 𝐵=𝐻𝑙𝑜𝑔2 (1+ 𝑆 𝑁 ) SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Josiah Yoder

In-class exercise The old analog TV channels had a bandwidth of 6MHz CS2852 5/28/2018 In-class exercise The old analog TV channels had a bandwidth of 6MHz Supposing a SNR of 50 dB, what is the maximum possible bit-rate? For Spring 2015 (15q3): Work through one, then give an in-class exercise for the following. SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder

CS2852 5/28/2018 In-class Activity: What is the data rate of classic NTSC television (as digital stream)? Store color with special scheme so only two bytes required per pixel, on average 720x480 30/1.001 fps Follow up: If compressed to 25MiB/s (or 25MB/s) what is the compression ratio? [Draw out example on board] SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder

The Stroboscopic Effect SE3910 5/28/2018 The Stroboscopic Effect Have you ever noticed something that is in motion seem to stop? SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Josiah Yoder

The Stroboscopic Effect (Aliasing) SE3910 5/28/2018 The Stroboscopic Effect (Aliasing) http://upload.wikimedia.org/wikipedia/commons/7/77/Propeller_strobe.ogv http://upload.wikimedia.org/wikipedia/commons/e/ef/The_wagon-wheel_effect.ogv https://www.youtube.com/watch?t=89&v=zBJMh-m9b1E SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Josiah Yoder

SE3910 5/28/2018 Safety See, e.g. “DC lamps must always be turned on when using any rotating machines” http://www.seasshops.ucla.edu/services/student-faculty-shop/machine-shop-rules SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Josiah Yoder

SE3910 5/28/2018 Aliasing http://photo.stackexchange.com/questions/24512/what-is-aliasing-and-anti-aliasing SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Josiah Yoder

SE3910 5/28/2018 More aliasing Single-Sensor Imaging: Methods and Applications for Digital Cameras, by Rastislav Lukac http://www.openphotographyforums.com/forums/showthread.php?t=14988 SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Josiah Yoder

Human eye Recall Notice interruption SE3910 5/28/2018 Human eye Recall As little as 13ms Notice interruption As short as 16ms Single-ms duration looks as long as 100-400ms 10ms green followed by 10ms red May appear as single yellow stimulus SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Josiah Yoder

SE3910 5/28/2018 Ex: Why might you want to sample at a higher frame-rate than the 30fps? Be as professional as possible Avoid flame wars Have technical depth to back it Avoid sounding technical just to be cool SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Josiah Yoder

SE3910 5/28/2018 Ex: What are two ways we can avoid the stroboscopic effect in a video game simulation of a rotating wheel? SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Josiah Yoder

In-class Activity: Analog to digital bandwidth CS2852 5/28/2018 In-class Activity: Analog to digital bandwidth 𝐻𝑙𝑜𝑔2 (1+ 𝑆 𝑁 ) Suppose you would like to send video in a (relatively) low-frequency with a narrow bandwidth of 1 Mhz The connection is fairly noisy and you can only get 20dB SNR What bit-rate can you achieve? http://www.arrl.org/files/file/Regulatory/Recommended_Practices_Version_6_5.pdf Earlier draft: Modern Digital TV uses the same channels as analog TV, but dynamically maps them. But each channel is now re-used by allocating virtual “sub-channels” within the main channel that use less of the bandwidth. This is done digitally [And as a result, the channel width is about the same] SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder

CS2852 5/28/2018 In-class activity Suppose I have a band centered at 100 Mhz which is 1Mhz wide. What are the limits on this range? What is the wavelength of the center 1 Mhz signal speed of light = 299 792 458 m / s speed in Cat-5 is 70% of this wavelength = time of period * velocity http://www.eham.net/ehamforum/smf/index.php?topic=56160.0 SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder

Fiber-optic Transmission CS2852 5/28/2018 Fiber-optic Transmission In fiber-optic transmission, signals are sent by transmitting various colors (or invisible) light down a fiber-optic channel The colors are separated at the other end Multiple fibers can be used Supposing that the same bandwidth rule applies, what bandwidth can be carried by the visible spectrum? (700-400nm) Use SNR of 4000 Hint: Convert wavelength to period/frequency http://physics.stackexchange.com/questions/56240/maximum-theoretical-bandwidth-of-fibre-optics So, let's begin by exploring the best way to use our power. If we devote it to M symbols per second, each of our measurements comprise the detection of N=PMhν0 photons, thus our signal to noise ratio is SNR=NN√=PMhν0−−−−−√. By the Shannon-Hartley form of the Noisy channel coding theorem(see also here), we can therefore code our channel to get log2(1+PMhν0−−−−−√) bits of information per symbol, i.e. Mlog2(1+PMhν0−−−−−√) bits per second through our optical fibre. This is a monotonically rising function of M, so a limit on P by itself does not limit the capacity. However, by a converse of the Nyquist-Shannon sampling theorem we can send a maximum of Bsymbols down the channel per second. This then is our greatest possible symbol rate. Hence, our overall expression for the fibre capacity in bits is: C=Blog2(1+PBhν0−−−−−√) bits per second SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder

CS2852 5/28/2018 Muddiest Point Wait for the slides, or follow this link to answer both questions at once: http://bit.ly/1Mow5a3 SE-2811 Dr.Yoder Dr. Josiah Yoder

CS2852 5/28/2018 Muddiest Point Wait for the slides, or follow this link to answer both questions at once: http://bit.ly/1Mow5a3 SE-2811 Dr.Yoder Dr. Josiah Yoder

https://www.polleverywhere.com/multiple_choice_polls/Tgsho9KFq8cPvBg CS2852 5/28/2018 http://bit.ly/1Mow5a3 Today, the professor made the course material clear and understandable? SE-2811 Dr. Josiah Yoder Dr. Josiah Yoder

https://www.polleverywhere.com/free_text_polls/5ecaTmFuFeJ65hY CS2852 5/28/2018 http://bit.ly/1Mow5a3 What was the muddiest point? SE-2811 Dr. Josiah Yoder Dr. Josiah Yoder

Slide design: Dr. Mark L. Hornick References EB: Derek Malloy, Exploring Beaglebone, Wiley, 2015 http://www.linuxtopia.org/online_books/an_introduction_to_gcc/gccintro_95.html http://www.network-theory.co.uk/docs/gccintro/gccintro_95.html http://stackoverflow.com/questions/5645387/gcc-compile-errors-in-an-basic-example-objc-program http://www.linuxtopia.org/online_books/an_introduction_to_gcc/gccintro_94.html SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder