WEBVTT

0:00:02.940000 --> 0:00:08.280000
 Hello and welcome to this video titled
 Wi-Fi modulation techniques.

0:00:08.280000 --> 0:00:12.300000
 In this video I'm going to talk about
 this term what is modulation, what

0:00:12.300000 --> 0:00:17.360000
 does it mean, and we're going to look
 at the four primary things that

0:00:17.360000 --> 0:00:23.160000
 you could modulate in a Wi-Fi signal
 frequency, wavelength, amplitude,

0:00:23.160000 --> 0:00:30.260000
 and phase. So let's start by talking about
 what is this term called modulation.

0:00:30.260000 --> 0:00:34.600000
 We know that radio frequency at its
 heart is really just electromagnetic

0:00:34.600000 --> 0:00:39.820000
 radiation. And electromagnetic radiation
 has several different descriptive

0:00:39.820000 --> 0:00:43.440000
 properties, several different
 ways we can measure it.

0:00:43.440000 --> 0:00:47.480000
 These properties or these individual
 characteristics that we can measure

0:00:47.480000 --> 0:00:53.700000
 can be artificially changed over time
 to encode data and this process

0:00:53.700000 --> 0:00:56.860000
 is called modulation.

0:00:56.860000 --> 0:00:58.680000
 Let me give you a real
 life example of this.

0:00:58.680000 --> 0:01:00.960000
 Let's forget about radio
 waves for a second.

0:01:00.960000 --> 0:01:06.440000
 Let's say that you and I are best friends
 and I know you're my best friend.

0:01:06.440000 --> 0:01:07.520000
 So we're not imagining here.

0:01:07.520000 --> 0:01:10.120000
 You're my best friend but let's take
 it back in time and we were like

0:01:10.120000 --> 0:01:13.260000
 ten years old. And we live across
 the street from each other.

0:01:13.260000 --> 0:01:16.660000
 As a matter of fact the window of my
 bedroom faces the window of your

0:01:16.660000 --> 0:01:20.300000
 bedroom. And we get into our heads that
 hey, it'd be kind of fun at night

0:01:20.300000 --> 0:01:25.360000
 to use flashlights and shine the flashlights
 to each other to encode signals.

0:01:25.360000 --> 0:01:27.200000
 Oh my dad was really
 angry tonight.

0:01:27.200000 --> 0:01:28.660000
 I didn't eat my beans.

0:01:28.660000 --> 0:01:30.140000
 Oh my mom spanked me tonight.

0:01:30.140000 --> 0:01:34.220000
 You know, whatever we want to say, we want
 to encode that with our flashlights.

0:01:34.220000 --> 0:01:38.280000
 Well, how are we actually now, if I
 just turn my flashlight on and shine

0:01:38.280000 --> 0:01:42.400000
 it in your face and I leave it on,
 can't really encode data that way.

0:01:42.400000 --> 0:01:47.500000
 I have to somehow change the flashlight
 to encode what I'm trying to tell

0:01:47.500000 --> 0:01:52.100000
 you. And the change I'm making
 is what's called modulation.

0:01:52.100000 --> 0:01:54.600000
 Now what I could do is I could
 do real simple modulation.

0:01:54.600000 --> 0:01:58.440000
 For example, I could do like
 Morse code on off, on off.

0:01:58.440000 --> 0:02:02.820000
 And depending on how long it's on or
 how long it's off, that is Morse

0:02:02.820000 --> 0:02:04.720000
 code dictates certain letters.

0:02:04.720000 --> 0:02:06.240000
 That's one way of modulation.

0:02:06.240000 --> 0:02:09.980000
 And certainly if I do that, I can get
 my information across to you at

0:02:09.980000 --> 0:02:14.080000
 a certain rate. It really depends on
 how quickly I can do my dots and

0:02:14.080000 --> 0:02:17.100000
 dashes in Morse code, you know, turn on
 for certain length, off for certain

0:02:17.100000 --> 0:02:20.000000
 length, and how quickly
 you can read it.

0:02:20.000000 --> 0:02:21.700000
 But we could go above
 and beyond that.

0:02:21.700000 --> 0:02:25.840000
 What if I could modulate two
 or more things at once?

0:02:25.840000 --> 0:02:30.500000
 What if not only could I modulate whether
 it's on, how long it's on and

0:02:30.500000 --> 0:02:34.980000
 how long it's off, what if in addition
 to that, I can modulate the color.

0:02:34.980000 --> 0:02:37.360000
 When it's on, it might be blue.

0:02:37.360000 --> 0:02:39.460000
 The next time it's on,
 it might be red.

0:02:39.460000 --> 0:02:43.600000
 Well, if I could modulate the color,
 now it can maybe encode even more

0:02:43.600000 --> 0:02:48.500000
 data. If it's on for two seconds, but
 it's red, that might be an A and

0:02:48.500000 --> 0:02:52.260000
 an E. If it's on for two seconds and
 it's blue, that might be a T and

0:02:52.260000 --> 0:02:56.780000
 an H. I can encode maybe multiple
 letters at once with that.

0:02:56.780000 --> 0:02:59.020000
 What if I modulate
 even a third thing?

0:02:59.020000 --> 0:03:03.720000
 Maybe when I have it on, it's facing
 straight at your eyeballs right now.

0:03:03.720000 --> 0:03:05.000000
 That means one thing.

0:03:05.000000 --> 0:03:07.880000
 What if I turn it on next time and
 I have it at a slight angle, where

0:03:07.880000 --> 0:03:11.280000
 it's not quite hitting your face, but
 it's hitting a little bit off to

0:03:11.280000 --> 0:03:16.660000
 the side? Depending on the angle of
 the light of my flashlight, that can

0:03:16.660000 --> 0:03:17.720000
 also encode data.

0:03:17.720000 --> 0:03:21.920000
 That's another thing I could modulate
 or change over time to mean something

0:03:21.920000 --> 0:03:27.480000
 specific. Let's take a look at what are
 the aspects of radio frequencies?

0:03:27.480000 --> 0:03:31.420000
 What are the characteristics of radio
 frequencies that I can change over

0:03:31.420000 --> 0:03:34.380000
 time to actually encode data?

0:03:34.380000 --> 0:03:38.940000
 Just like in my example there, where
 I was modulating various aspects

0:03:38.940000 --> 0:03:43.940000
 all at once, like color, direction,
 on or off, I could do that all at

0:03:43.940000 --> 0:03:47.060000
 once. These various things we're going
 to talk about here could either

0:03:47.060000 --> 0:03:51.680000
 be modulated individually or we could
 sort of combine them together to

0:03:51.680000 --> 0:03:54.760000
 get even higher data rates.

0:03:54.760000 --> 0:03:58.080000
 In no particular order, the first thing
 I'm going to talk about is the

0:03:58.080000 --> 0:04:00.960000
 modulation of frequency.

0:04:00.960000 --> 0:04:05.860000
 We know that electromagnetic radiation,
 I'm just going to call it radio

0:04:05.860000 --> 0:04:09.580000
 waves from this point, radio frequency
 has a certain oscillation.

0:04:09.580000 --> 0:04:14.460000
 Because it has an electromagnetic component,
 we can measure how strong

0:04:14.460000 --> 0:04:18.800000
 it is, and like a magnet, we can measure
 it like attractive and repulsive

0:04:18.800000 --> 0:04:22.500000
 force, and that creates a wave.

0:04:22.500000 --> 0:04:27.340000
 The greater the frequency, the more this
 wave changes over a given period

0:04:27.340000 --> 0:04:31.440000
 of time, the more data
 we can encode into it.

0:04:31.440000 --> 0:04:35.660000
 So for example, both of these waveforms
 here are measured over one second,

0:04:35.660000 --> 0:04:40.680000
 but the waveform on the left has less
 changes than the waveform on the

0:04:40.680000 --> 0:04:45.080000
 right. We would say the waveform on the
 right has a higher frequency than

0:04:45.080000 --> 0:04:46.660000
 the waveform on the left.

0:04:46.660000 --> 0:04:49.580000
 So the waveform on the right, because
 it's changing more often in that

0:04:49.580000 --> 0:04:53.460000
 one second period, I could actually
 encode that to mean more ones and

0:04:53.460000 --> 0:04:57.900000
 zeros of data than the
 waveform on the left.

0:04:57.900000 --> 0:05:02.460000
 So we actually call this frequency
 modulation, which is modifying the

0:05:02.460000 --> 0:05:04.620000
 frequency of a signal
 to encode data.

0:05:04.620000 --> 0:05:06.960000
 Think about your radio
 and your car.

0:05:06.960000 --> 0:05:11.560000
 A lot of us listen to radio stations
 that are FM radio stations.

0:05:11.560000 --> 0:05:14.900000
 So now if you think about that,
 that is frequency modulation.

0:05:14.900000 --> 0:05:16.020000
 Now, here's a big difference.

0:05:16.020000 --> 0:05:19.620000
 In the world of Wi-Fi, we're talking about
 things are modulating or changing

0:05:19.620000 --> 0:05:22.980000
 at billions of times
 in one second.

0:05:22.980000 --> 0:05:24.560000
 That would be in gigahertz.

0:05:24.560000 --> 0:05:28.960000
 The radio stations you're listening to
 in your car are still pretty fast,

0:05:28.960000 --> 0:05:31.060000
 but they're not modulating
 that fast.

0:05:31.060000 --> 0:05:34.860000
 They are megahertz stations,
 millions of times per second.

0:05:34.860000 --> 0:05:40.880000
 So 98.5, that station is oscillating
 98.5 millions of times per second.

0:05:40.880000 --> 0:05:44.140000
 The next station down
 might be 96.1.

0:05:44.140000 --> 0:05:47.520000
 That's oscillating a little bit slower,
 but your radio is able to tune

0:05:47.520000 --> 0:05:51.440000
 into those. And depending on the oscillation
 rate, it can encode the data

0:05:51.440000 --> 0:05:54.100000
 as, in this case, audio signals,
 like audio signals.

0:05:54.100000 --> 0:05:56.960000
 Advertisements or songs
 or something like that.

0:05:56.960000 --> 0:06:00.540000
 Well, with radio waves with Wi-Fi, we're
 doing the same thing, but we're

0:06:00.540000 --> 0:06:05.040000
 oscillating much, much faster.

0:06:05.040000 --> 0:06:09.280000
 So here's an example of by changing
 the frequency, I can actually encode

0:06:09.280000 --> 0:06:14.500000
 data. So within the first second, we're
 modulating in a certain frequency.

0:06:14.500000 --> 0:06:17.540000
 That might represent
 a 1 or a 1 and a 0.

0:06:17.540000 --> 0:06:21.260000
 The next second, we've increased
 the frequency.

0:06:21.260000 --> 0:06:24.240000
 Now it's oscillating a little bit faster,
 and that could mean something

0:06:24.240000 --> 0:06:30.040000
 else. So like I mentioned, radio frequency
 changes in the world of radio

0:06:30.040000 --> 0:06:36.420000
 frequency is millions or more likely
 billions of changes per second.

0:06:36.420000 --> 0:06:41.680000
 And this is why you'll notice that when
 Wi-Fi first came out, it operated

0:06:41.680000 --> 0:06:43.900000
 at the slower end of the spectrum.


0:06:43.900000 --> 0:06:48.220000
 Most Wi-Fi when it first came out
 was in the 2.4 gigahertz space.

0:06:48.220000 --> 0:06:55.620000
 So that meant roughly 2.4 billions
 of changes in one second of time.

0:06:55.620000 --> 0:07:00.260000
 Then with the newer Wi-Fi standards,
 they started moving towards the 5

0:07:00.260000 --> 0:07:04.060000
 gigahertz frequency space,
 5 billion changes per time.

0:07:04.060000 --> 0:07:08.000000
 And just like we saw right here, the
 faster your frequency, the more data

0:07:08.000000 --> 0:07:15.680000
 you can encode. Okay, so that's one thing
 you can change or modulate with

0:07:15.680000 --> 0:07:17.920000
 radio. What's another
 thing you can change?

0:07:17.920000 --> 0:07:22.600000
 Now this thing here, wavelength, I'm
 going to talk about so you understand

0:07:22.600000 --> 0:07:26.380000
 the theory of wavelength, but this isn't
 something necessarily that you

0:07:26.380000 --> 0:07:30.700000
 would artificially manipulate.

0:07:30.700000 --> 0:07:36.160000
 So wavelength is measured in meters,
 and wavelength is directly related

0:07:36.160000 --> 0:07:43.680000
 to frequency. So for example, here we
 have a wave, and the distance between

0:07:43.680000 --> 0:07:49.000000
 point A and point B, that would
 be considered our wavelength.

0:07:49.000000 --> 0:07:52.880000
 Now wavelength is inversely
 proportional to frequency.

0:07:52.880000 --> 0:07:54.080000
 What does that mean?

0:07:54.080000 --> 0:07:59.140000
 That means the more often you're changing
 something, the higher the frequency,

0:07:59.140000 --> 0:08:00.920000
 the shorter the wavelength.

0:08:00.920000 --> 0:08:02.560000
 Now here, why do we
 care about this?

0:08:02.560000 --> 0:08:06.180000
 Well, from a Wi-Fi perspective, the
 longer the wavelength, the better

0:08:06.180000 --> 0:08:08.660000
 a signal propagates
 through things.

0:08:08.660000 --> 0:08:12.080000
 So for example, here we
 have two radio waves.

0:08:12.080000 --> 0:08:17.320000
 The one on the left has a lower frequency,
 so over one second it's not

0:08:17.320000 --> 0:08:21.080000
 changing as often as
 the one on the right.

0:08:21.080000 --> 0:08:24.600000
 So we could say, well, you might say,
 well, the one on the right is better,

0:08:24.600000 --> 0:08:26.940000
 right? Because the one on the right,
 because it has a higher frequency,

0:08:26.940000 --> 0:08:29.200000
 we can encode more data on it.

0:08:29.200000 --> 0:08:31.660000
 That's true, but there's
 a trade-off.

0:08:31.660000 --> 0:08:35.900000
 Because remember, the longer the wavelength,
 the longer the space between

0:08:35.900000 --> 0:08:41.000000
 point A and point B, the more that radio
 wave will propagate through human

0:08:41.000000 --> 0:08:45.500000
 beings, through walls, even through
 the air, and maybe through raindrops

0:08:45.500000 --> 0:08:50.660000
 around us. So if we think about the
 ISM bands, how one was in the 2.4

0:08:50.660000 --> 0:08:56.320000
 gigahertz space, another was in the 5
 gigahertz space, your initial reaction

0:08:56.320000 --> 0:09:00.480000
 might be, oh, well, I've got an access
 point that has two radios, 2.4

0:09:00.480000 --> 0:09:05.020000
 and 5. I don't even want to bother using
 the 2.4 radio because I get faster

0:09:05.020000 --> 0:09:08.040000
 data rates using the
 5 gigahertz radio.

0:09:08.040000 --> 0:09:12.680000
 Well, that's true, but if we take a
 look at our environment, if between

0:09:12.680000 --> 0:09:16.600000
 that access point and your stations,
 your laptops, your clients, your

0:09:16.600000 --> 0:09:22.260000
 PCs, you have a lot of walls, a lot
 of drywall, a lot of wood furniture,

0:09:22.260000 --> 0:09:27.140000
 a lot of curtains and hangings, a lot
 of stuff, that 5 gigahertz signal

0:09:27.140000 --> 0:09:32.140000
 is not going to be able to penetrate
 through those things as well as the

0:09:32.140000 --> 0:09:37.080000
 slower 2.4 gigahertz signal, because
 the 2.4 gigahertz signal has a longer

0:09:37.080000 --> 0:09:40.300000
 wavelength, and that's one
 of the properties of RF.

0:09:40.300000 --> 0:09:43.700000
 The longer the wavelength, the better
 it can push through things.

0:09:43.700000 --> 0:09:49.820000
 So that would be a consideration
 you might want to have.

0:09:49.820000 --> 0:09:53.740000
 Another thing that we can
 modulate is the amplitude.

0:09:53.740000 --> 0:09:58.580000
 Now, amplitude is a measurement of
 the overall strength or power of a

0:09:58.580000 --> 0:10:00.640000
 radio frequency signal.

0:10:00.640000 --> 0:10:05.700000
 Amplitude can also be modulated
 to encode data.

0:10:05.700000 --> 0:10:09.580000
 So, for example, right here, we have
 a signal where at some points in

0:10:09.580000 --> 0:10:14.820000
 time, if I was measuring the actual raw,
 you know, electromagnetic energy,

0:10:14.820000 --> 0:10:19.500000
 the electromagnetic energy at this point
 in time is very strong, whereas

0:10:19.500000 --> 0:10:22.260000
 the electromagnetic energy right here
 at this other point in time is a

0:10:22.260000 --> 0:10:23.540000
 little bit weaker.

0:10:23.540000 --> 0:10:27.800000
 I could use that to encode 1s
 and 0s, to encode my data.

0:10:27.800000 --> 0:10:31.000000
 That is called amplitude
 modulation.

0:10:31.000000 --> 0:10:35.380000
 And we can certainly
 do that with RF.

0:10:35.380000 --> 0:10:39.980000
 Now, here's the thing to consider about
 amplitude, the strength, the power,

0:10:39.980000 --> 0:10:46.080000
 the amplitude of a radio frequency
 greatly weakens over distance, and

0:10:46.080000 --> 0:10:47.720000
 as it passes through objects.

0:10:47.720000 --> 0:10:52.860000
 This physical reaction of it weakening,
 we actually have a term for that,

0:10:52.860000 --> 0:10:54.720000
 we call that attenuation.

0:10:54.720000 --> 0:10:55.840000
 Look at the signal right here.

0:10:55.840000 --> 0:10:59.180000
 It starts out really strong, and then
 as it gets further and further away

0:10:59.180000 --> 0:11:01.120000
 from its source, it weakens.

0:11:01.120000 --> 0:11:04.280000
 And we call that attenuation.

0:11:04.280000 --> 0:11:10.440000
 So, in the world of radio frequencies,
 it's actually amazing how fast

0:11:10.440000 --> 0:11:15.160000
 radio frequency attenuates over
 just a little bit of distance.

0:11:15.160000 --> 0:11:20.440000
 For example, most of your Wi-Fi transmitters,
 let's take an access point

0:11:20.440000 --> 0:11:26.320000
 as an example. A Wi-Fi access point,
 when the transmitter inside the guts

0:11:26.320000 --> 0:11:30.320000
 of that access point is sending the
 electrical signal up to the antenna,

0:11:30.320000 --> 0:11:33.580000
 so that's moving electrons which is
 going to create this electromagnetic

0:11:33.580000 --> 0:11:40.400000
 radiation that emits from the antenna,
 that starts out relatively weak.

0:11:40.400000 --> 0:11:45.140000
 A strong and a strong access point might
 be transmitting at 100 milliwatts.

0:11:45.140000 --> 0:11:49.360000
 That's not from the standpoint of microwave
 ovens and light bulbs and

0:11:49.360000 --> 0:11:53.860000
 TVs. That would not be enough to power any
 of those things, but it's considered

0:11:53.860000 --> 0:11:57.740000
 a very strong signal
 in Wi-Fi terminology.

0:11:57.740000 --> 0:12:04.720000
 So, if my laptop, if my antenna is
 like one quarter of an inch or one

0:12:04.720000 --> 0:12:08.220000
 quarter of a centimeter away from the
 antenna of the access points, right

0:12:08.220000 --> 0:12:11.860000
 up next to it, I'm going to
 get most of that signal.

0:12:11.860000 --> 0:12:16.080000
 But if I'm even just a couple of feet
 away, the power, the amplitude of

0:12:16.080000 --> 0:12:18.700000
 that signal, drops dramatically.

0:12:18.700000 --> 0:12:22.880000
 As a matter of fact, I might be getting
 a tiny, if I'm 10 or 15 feet away

0:12:22.880000 --> 0:12:27.600000
 from that access point, I might be
 getting one one thousandth of that

0:12:27.600000 --> 0:12:32.640000
 signal. And yet what's awesome about
 this is that Wi-Fi antennas can pick

0:12:32.640000 --> 0:12:38.060000
 up a signal that week and still
 process the data inside of it.

0:12:38.060000 --> 0:12:41.480000
 So, the takeaway from this here is that
 attenuation happens over distance

0:12:41.480000 --> 0:12:43.980000
 and it happens very, very
 quickly over distance.

0:12:43.980000 --> 0:12:45.600000
 And that's just the air.

0:12:45.600000 --> 0:12:49.040000
 If that signal is trying to push through
 something like a wall or a human

0:12:49.040000 --> 0:12:55.240000
 body, it's going to attenuate
 even faster than that.

0:12:55.240000 --> 0:12:59.460000
 And then the last thing that we can
 modulate with regards to Wi-Fi is

0:12:59.460000 --> 0:13:01.520000
 something called phase.

0:13:01.520000 --> 0:13:08.260000
 Now, phase is really a comparison of
 two Wi-Fi signals against each other,

0:13:08.260000 --> 0:13:10.700000
 two waveforms between RF signals.

0:13:10.700000 --> 0:13:13.160000
 We know that RF signal
 has a waveform.

0:13:13.160000 --> 0:13:14.780000
 It gets strong, then it gets weak.


0:13:14.780000 --> 0:13:19.780000
 It gets strong. Or maybe if we're measuring
 frequency, you know, gets

0:13:19.780000 --> 0:13:22.520000
 real fast and really slow, real fast,
 really slow, but we can look at

0:13:22.520000 --> 0:13:25.540000
 one signal and sort of
 plot it out as a wave.

0:13:25.540000 --> 0:13:30.400000
 What if I was sending you two signals
 at once, simultaneously?

0:13:30.400000 --> 0:13:35.020000
 And during a slice of time, you sample
 the first signal and the second

0:13:35.020000 --> 0:13:38.380000
 signal and you see how do they
 line up against each other?

0:13:38.380000 --> 0:13:42.580000
 So now what you're measuring
 is what's called phase.

0:13:42.580000 --> 0:13:46.980000
 At the moment of comparison, if two waveforms
 are exactly identical, they

0:13:46.980000 --> 0:13:50.340000
 both hit their peak at exactly the same
 time or they both hit their trough

0:13:50.340000 --> 0:13:52.160000
 at exactly the same time.

0:13:52.160000 --> 0:13:56.220000
 That is considered to
 be 100% in phase.

0:13:56.220000 --> 0:13:59.200000
 So we can actually intentionally
 change this.

0:13:59.200000 --> 0:14:02.920000
 I can intentionally change, so maybe
 I'll send you one waveform which

0:14:02.920000 --> 0:14:04.080000
 is like your carrier signal.

0:14:04.080000 --> 0:14:06.080000
 This is the one that
 you lock onto.

0:14:06.080000 --> 0:14:08.080000
 This is always steady
 and consistent.

0:14:08.080000 --> 0:14:11.160000
 And then I got another one right here
 that I'm modifying the phase of

0:14:11.160000 --> 0:14:15.400000
 this waveform, and so depending on how
 it lines up to the first waveform,

0:14:15.400000 --> 0:14:17.260000
 we'll encode certain data.

0:14:17.260000 --> 0:14:18.300000
 Like look at these right here.

0:14:18.300000 --> 0:14:23.600000
 In time sample number one, the two
 waveforms are exactly in sync.

0:14:23.600000 --> 0:14:26.220000
 That might represent like a
 zero and a one or something.

0:14:26.220000 --> 0:14:31.080000
 In the very next time slot, I slightly
 modify the waveform of the red

0:14:31.080000 --> 0:14:34.200000
 signal, so now it's
 exactly opposite.

0:14:34.200000 --> 0:14:36.680000
 It's 180 degrees out of phase.

0:14:36.680000 --> 0:14:38.780000
 That would mean something else.

0:14:38.780000 --> 0:14:43.440000
 Or maybe the next time slot, I modify
 it so it's just slightly different.

0:14:43.440000 --> 0:14:45.320000
 They almost line up but not quite.


0:14:45.320000 --> 0:14:47.220000
 Well that's also not in phase.

0:14:47.220000 --> 0:14:50.340000
 That might be considered like 30 degrees
 out of phase or something like

0:14:50.340000 --> 0:14:54.240000
 that. That could also be
 used to encode data.

0:14:54.240000 --> 0:14:59.460000
 And with the newer Wi-Fi technologies,
 they incorporate all of this.

0:14:59.460000 --> 0:15:03.040000
 In order to get the really fast data rates,
 they will modulate the amplitude

0:15:03.040000 --> 0:15:07.760000
 and the frequency and the phase all
 together to give you really super

0:15:07.760000 --> 0:15:10.300000
 fast data rates.

0:15:10.300000 --> 0:15:15.140000
 So that concludes this video on modulation
 techniques, and I hope you

0:15:15.140000 --> 0:15:16.240000
 found it useful.

0:15:16.240000 --> 0:15:16.780000
 Thank you for watching.

