Line coding, modulation, framing and multiplexing — Transcript
Full transcript
- 0:00EP 1100 data communication and computer
- 0:04networks.
- 0:05Some illustrations in this material are
- 0:07collected from the book by Forouzan,
- 0:09data communications and networking,
- 0:11published by McGraw Hill.
- 0:15In the previous parts, I've shown
- 0:17examples of transmission medium, and we
- 0:19also looked at the ultimate limits
- 0:22of data communication that you can get
- 0:24from a given medium.
- 0:26The Shannon capacity.
- 0:28Now, I will show you some actual methods
- 0:31of transmitting data over transmission
- 0:33medium.
- 0:36We have two examples called coding and
- 0:38modulation.
- 0:40If you have a low-pass channel, which
- 0:42permits frequencies from zero
- 0:45up to some maximum limit, you can use
- 0:47something called line coding to carry
- 0:49the data.
- 0:51Or it's also referred as baseband
- 0:52modulation.
- 0:54It's basically a direct current
- 0:57or a continuous light signal that is
- 0:59being modulated to carry the data.
- 1:03If you instead have a bandpass channel,
- 1:06then you need a carrier signal that lies
- 1:08somewhere in the passband, and you
- 1:11modulate that in order to carry the
- 1:13data. These are the two principles that
- 1:15I will show you.
- 1:18The line coding or baseband modulation
- 1:20is used to turn data into transmission
- 1:22signal. It uses discrete amplitude
- 1:25levels,
- 1:26and the transitions between the levels
- 1:29occur at discrete times.
- 1:31So, it's a clocking where
- 1:33each clock interval corresponds to one
- 1:36or a fixed number of bits.
- 1:39The signal is constant between these
- 1:41transmission times as shown in the
- 1:42figure up to the right.
- 1:44You can see that a zero level
- 1:46corresponds to a zero in the data, and a
- 1:49high level corresponds to
- 1:51a one in the data.
- 1:53And you see that the signal remains low
- 1:55or zero
- 1:57and or high, but has no intermediate
- 1:59values. And a sharp transition between
- 2:01the low and the high levels.
- 2:05The effect is that if you create such a
- 2:07signal
- 2:08and look at the Fourier spectrum of the
- 2:10signal, it has an infinite bandwidth.
- 2:13While it's being transmitted through the
- 2:15low-pass channel, some of the higher
- 2:17frequencies will be attenuated, and you
- 2:19will only receive the the lower
- 2:21frequencies of of the signal spectrum.
- 2:24This means that the signal that's been
- 2:26received is not as sharp in the
- 2:28transitions as was sent.
- 2:33Here's an actual case of a line coding.
- 2:35It's called unipolar encoding, and it's
- 2:37the example that was used in the
- 2:38previous picture.
- 2:41This signal contains a direct current
- 2:44component, a zero frequency component.
- 2:47You can imagine if you only transmit
- 2:50an infinite string of ones, then you
- 2:52will have a fixed voltage, and you a
- 2:55current will flow through the cable.
- 2:59The average level of the signal will
- 3:01thus depend on the number of ones that
- 3:03you have in the signal, but it will
- 3:05always be above zero.
- 3:07This type of coding is only possible if
- 3:09you have a cable that permits a direct
- 3:11current to flow through the cable.
- 3:15It's important that the receiver is able
- 3:17to clock the signal. So it So it should
- 3:19know
- 3:20how long the bit intervals are as seen
- 3:22from the transmitter.
- 3:25In this
- 3:26encoding, if you transmit a long stretch
- 3:29of only zeros or only ones, you can
- 3:32imagine that the receiver will not have
- 3:34any transitions to indicate the edges of
- 3:38a
- 3:39an interval. Therefore, the receiver
- 3:41might lose synchronization with the
- 3:43sender.
- 3:45So we would like to have a signal with a
- 3:47lot of transitions, because the
- 3:48transitions mark the beginning and the
- 3:50end of the bit intervals. So the
- 3:52receiver has some information to to
- 3:54synchronize its clock to.
- 3:57Here is another example of a line
- 3:58coding. This is called
- 3:59non-return-to-zero, NRZ.
- 4:02The picture shows two ways of encoding
- 4:05the data.
- 4:06In the upper figure,
- 4:08the data is encoded by the level of the
- 4:10signal.
- 4:11So, a positive level
- 4:13is represents a zero, and a negative
- 4:15level represents a one. If zeros and
- 4:18ones are equally likely in the data,
- 4:20then you will not have a DC component in
- 4:22the signal.
- 4:23In the lower figure, we show the same
- 4:26non-return-to-zero code, but it encodes
- 4:28the data in a different way.
- 4:30It has a transition if the next bit is a
- 4:33one. The advantage by coding through the
- 4:36transitions is that the signal becomes
- 4:39less sensitive to attenuation, because
- 4:42it's not the level that's been detected,
- 4:44it's the transition between the levels
- 4:45that is detected.
- 4:47So, you see here,
- 4:48zero remains a high level, and then the
- 4:52next bit is one, so there's a
- 4:53transition.
- 4:54And then, after the one, there's two
- 4:56zeros, so there's no transitions. Then
- 4:58there comes a one, so there is a
- 5:00transition.
- 5:01Actually, there are three ones in a row,
- 5:03so there are three transitions, each
- 5:05encoding one bit.
- 5:07Synchronization is still a problem with
- 5:10NRZ, because we can still have very long
- 5:13stretches of zeros and ones,
- 5:15so that there are no transitions at all,
- 5:17and therefore the receiver will not have
- 5:20information to synchronize its clock to.
- 5:24So, here is another line code called
- 5:25return to zero,
- 5:27which always have a transition in order
- 5:29to make sure that there's clocking
- 5:31information to the receiver.
- 5:33We use two signal elements per bit
- 5:35interval. So, one bit is encoded as two
- 5:38elements.
- 5:40The The first element is either
- 5:43positive or negative, and the second
- 5:45element is always zero.
- 5:47Which means that in every interval,
- 5:49there's always a transition going from
- 5:51positive to zero, or going from negative
- 5:54to zero.
- 5:55So, in terms of DC component, it's
- 5:58similar to NRZ, but it has a better
- 6:01clocking frequency.
- 6:03However, the baud rate is now twice the
- 6:06bit rate because we have two signal
- 6:08elements for each bit transmitted.
- 6:10If you're willing to have a higher baud
- 6:12rate, we can also have a Manchester
- 6:13code. Advantage compared to to the
- 6:16return to zero is that here we only use
- 6:19two different levels. We don't have a
- 6:21zero level, we have a positive and a
- 6:23negative level.
- 6:24And there's
- 6:25a transition so that a zero is
- 6:28represented from from positive to
- 6:30negative
- 6:31and a one is represented from negative
- 6:33to to positive. The advantage with a
- 6:35Manchester code is that there is a
- 6:38transition in every bit interval so that
- 6:40the receiver can synchronize its clock
- 6:43to the sender clock.
- 6:45Another possibility to make sure that
- 6:48you have good clocking information is to
- 6:49use a block code. This code is applied
- 6:52to the data. It transforms the data
- 6:54before the line coding.
- 6:57Here we show show something called 4B5B.
- 7:00So, four bits in, five bits out.
- 7:04So, you take the data, you group it into
- 7:06four-bit patterns. There are 16
- 7:08combinations of those.
- 7:10And you map those into five-bit
- 7:12patterns. So, we have
- 7:1432
- 7:15different outgoing patterns.
- 7:18And we choose the outgoing patterns so
- 7:21that we have a certain number of ones
- 7:24and zeros.
- 7:26So, even if we encode the data by a
- 7:28non-return-to-zero code,
- 7:31we are sure that there will be
- 7:32transitions and we have clocking
- 7:33information
- 7:35uh
- 7:35to the receiver.
- 7:37There are also other variants
- 7:39such as eight-bit, 10-bit codes. Here
- 7:42you increase the data rate by going to
- 7:44four to five bits or from eight to 10
- 7:46bits. But on the other hand, you can use
- 7:49a simple line code such as
- 7:50non-return-to-zero which has a baud rate
- 7:52which is equivalent to the data rate
- 7:54rather than using return to zero or
- 7:58Manchester which has a baud rate which
- 8:00is twice the data rate.
- 8:03Modulation.
- 8:05Modulation is the technique we use when
- 8:07we a bypass channel. We take a
- 8:09sinusoidal wave, we position it well in
- 8:13the passband, and then we modulate one
- 8:17or several of the parameters of the sine
- 8:19wave.
- 8:20You see here the function s of t is a
- 8:22sinusoidal. It has an amplitude a, it
- 8:25has a frequency f, and it has a phase
- 8:28phi.
- 8:29So, these are the three parameters that
- 8:31we can change to represent data.
- 8:35A bit interval will be some duration of
- 8:38the sinusoidal where it remains constant
- 8:41before we change it to represent another
- 8:43data bit. Here we show amplitude shift
- 8:46keying, ASK. It uses two amplitudes, a
- 8:49lower and a higher one. You see in the
- 8:51first interval that a zero is
- 8:53represented by a low amplitude, and then
- 8:56in the second interval a one is
- 8:57represented by a higher amplitude. This
- 9:00type of encoding is sensitive to
- 9:03attenuation because the amplitudes
- 9:07will tend to zero, and of course it's
- 9:09also subjected to noise that will be
- 9:11added to the signal. So, that can be
- 9:13difficult to detect whether the received
- 9:16signal is low or high in amplitude. Then
- 9:18we can use the frequency. We show the
- 9:21zero bit being coded by a lower
- 9:23frequency,
- 9:24and the bit value one is represented by
- 9:26a higher frequency.
- 9:28The signal strength is the same
- 9:30throughout the signal. So, that means
- 9:32that all intervals are affected equally
- 9:34by attenuation, and the attenuation of
- 9:36course does not affect the frequency.
- 9:38So, the limitation here is the bandwidth
- 9:41of the passband of the medium.
- 9:44A third possibility is to use the phase.
- 9:47So, you see the zero bit is represented
- 9:50by one phase, and the one bit is
- 9:52represented here by a phase which is
- 9:54180° shifted from the zero bit. The
- 9:57signal level remains constant for the
- 10:00signal, and the detector has to detect
- 10:03the phase changes from one bit to to the
- 10:05next.
- 10:07You can combine these different formats,
- 10:09and here is an example called quadrature
- 10:11amplitude modulation, which uses two
- 10:14amplitude values and four phase values.
- 10:17So, that gives you
- 10:19two bits for the phase values and one
- 10:22bit for the amplitude values. So, in
- 10:23total each signal element can encode
- 10:26three bits.
- 10:28So, I have now shown how you can
- 10:29represent data as signals that travel
- 10:32through a medium.
- 10:34Now, we go over some data transmission
- 10:36modes.
- 10:37You can transmit data in parallel or
- 10:40serially.
- 10:41If you transmit the serially, you can
- 10:43have an asynchronous and synchronous
- 10:44mode.
- 10:45The parallel transmission is most common
- 10:48inside computers. A computer bus or any
- 10:52data path on a printed circuit board are
- 10:55usually carrying the data in parallel.
- 10:58So, here we show that eight bits are
- 11:00transferred in parallel at any one time.
- 11:02There could be additional conductors
- 11:05that carry for instance clocking
- 11:06information as well.
- 11:08This is also what you have in parallel
- 11:09cables, for instance to connect a
- 11:11printer. Serial transmission takes the
- 11:14data, which might be structured in data
- 11:16words or bytes, and then it sends them
- 11:18serially one bit at a time. It's
- 11:21important that the sender and the
- 11:22receiver agree on the order of the
- 11:24serialization. For instance, if you have
- 11:26a byte, should the most significant bit
- 11:29be sent first or should the least
- 11:30significant bit be sent first?
- 11:32Either order will work, but the sender
- 11:35receiver have to agree on the order.
- 11:37Here you need some other clocking
- 11:39information, external clocks of course,
- 11:41but the type of line coding that that I
- 11:44showed could be used here so that the
- 11:47signal itself carries enough timing
- 11:49information for the receiver to
- 11:51synchronize its clock to. The next
- 11:53aspect of data communication is framing
- 11:55of messages.
- 11:56A sender will not be active continuously
- 11:59for all times.
- 12:01It will have data to send,
- 12:02and then when the data has been sent, it
- 12:05may remain idle for a long period of
- 12:07time. This has to be communicated to the
- 12:09receiver so that the receiver knows that
- 12:11this end of message and then whatever
- 12:14signal it receives will be noise
- 12:16generated in the medium and then later
- 12:19on when a new message comes the receiver
- 12:21has to be able to detect that there's a
- 12:23new message starting and it should now
- 12:25detect at the signal and and translate
- 12:28the signal into data. We call this
- 12:30framing. So it marks start and stop of
- 12:33messages.
- 12:35It's some control data that's added for
- 12:37each message. So the data that's
- 12:39generated from a higher layer ultimately
- 12:42from an application will now be framed
- 12:44by by some predefined bit sequence at
- 12:48the beginning and end of the message.
- 12:51The framing also allows multiplexing of
- 12:53messages from multiple sources.
- 12:56If each source is only active a small
- 12:59percentage of time then several sources
- 13:02could share a channel for instance a
- 13:03radio channel. There will therefore be
- 13:06frames coming separately from each
- 13:08source towards the receiver.
- 13:10Could also be that a frame is shared by
- 13:12multiple sources that are co-located so
- 13:15they they can put the data in different
- 13:17parts of one and the same frame.
- 13:20Multiplexing.
- 13:23Multiplexing is the concept of sharing a
- 13:25link. Here we show a simple example with
- 13:28a four possible inputs on the left side
- 13:31to the multiplexer.
- 13:33There's one link
- 13:35carrying a bit stream of frames of bits
- 13:38but it's divided into four channels. And
- 13:41then the multiplexer will separate out
- 13:43these channels and deliver them. So we
- 13:45have
- 13:46emulated here a situation where we have
- 13:48four different links outside the max but
- 13:52they're implemented as one link um oh in
- 13:55one transmission medium.
- 13:57This allows multiple sender receiver
- 13:59pairs to share a link
- 14:01and to share the resources of that link
- 14:03because could be that the resource of
- 14:05the medium is so high that not any
- 14:07single sender would generate as much
- 14:09data as the medium can
- 14:11can carry. For instance um
- 14:14fiber optical cable.
- 14:16There's several ways of sharing the
- 14:17resource of the transmission medium.
- 14:20One is that we look at the bandwidth of
- 14:22the transmission medium and we divide
- 14:25that into different frequency channels
- 14:27and let each sender receiver pair have
- 14:30its own reserved
- 14:32frequency range. Another thing is that
- 14:34we modulate or or line code for the
- 14:38entire bandwidth of the medium
- 14:40and then we divide up that bit stream
- 14:44into
- 14:45time units and each time unit correspond
- 14:48to the slot that a sender will have
- 14:51available to send its data.
- 14:53In the first case, we talk about analog
- 14:55multiplexing. And this method of
- 14:58dividing up the bandwidth into frequency
- 15:00regions called frequency division
- 15:01multiplexing. It uses a modulation for
- 15:04each frequency channel. We have a
- 15:06carrier frequency that is positioned in
- 15:08the channel that has been allocated.
- 15:10This is the method that's been used for
- 15:12broadcast radio and television.
- 15:14Where for instance, different radio
- 15:16channels
- 15:18correspond to to a frequency range that
- 15:20they have. The center frequency which is
- 15:22used by the carrier frequency and a
- 15:23bandwidth around it that they have to
- 15:25remain within.
- 15:27The concept is also used in optical
- 15:30networks where it's referred to as
- 15:31wavelength division multiplexing.
- 15:34It's the same concept as FDM and here
- 15:37it's corresponds to sending the data
- 15:39with different wavelength channels or
- 15:41different colors of the light that's
- 15:43being transmitted.
- 15:46And then we have digital multiplexing
- 15:48where we let the sender generate a data
- 15:51rate for the entire bandwidth of the
- 15:53medium.
- 15:54Then we divide the times into slots and
- 15:58uh
- 15:59allocate slots to the different senders.
- 16:02So, the demultiplexer will then know
- 16:04that in each frame, the first slot
- 16:07belongs to channel one,
- 16:09the second slot belongs to channel two
- 16:11and it will separate out the slots and
- 16:13deliver the data to the receivers of
- 16:15those channels. This is called
- 16:18asynchronous time division multiplexing.
- 16:20We can also have an asynchronous time
- 16:22division multiplexing where each source
- 16:25gets its own frame that's sent into the
- 16:27medium.
- 16:28The frame will then have an address to
- 16:30indicate which channel that it belongs
- 16:34to. So that the demultiplexer can take
- 16:36the frame and deliver it to the right
- 16:38receiver.
- 16:40Here is an example of synchronous time
- 16:42division multiplexing for telephony. So
- 16:44as we heard in the PCM part, the 4 kHz
- 16:48of voice spectrum is PCM coded resulting
- 16:51in 64 kilobits per second of data. Such
- 16:55streams were multiplexed one byte per
- 16:58input and put into frames.
- 17:00In the United States, there were 24
- 17:02channels. In Europe and in other parts
- 17:04of the world, there were 30 channels
- 17:06resulting in a total bit rate of 2
- 17:08megabits per second.
- 17:10And then there's a whole hierarchy of
- 17:12these E1 or T1 channels being
- 17:14multiplexed together to higher data
- 17:17rates up to hundreds of megabits per
- 17:19second.
- 17:20Here's another example, the digital
- 17:22subscriber loop.
- 17:25This is a high-speed digital access that
- 17:27uses the old telephone wires that go
- 17:30into most homes.
- 17:32It uses the actual bandwidth in the
- 17:34twisted pair cable
- 17:36in the subscriber access lines.
- 17:39Even though an analog voice call was
- 17:41only 4 kHz in bandwidth, the cables
- 17:45permit up to over megahertz in
- 17:48bandwidth.
- 17:50The bandwidth of the medium is subject
- 17:51to strict physical limitations.
- 17:54It has a high attenuation, so you can
- 17:55only go short distances, and it requires
- 17:58advanced signaling.
- 18:00This is one way that the
- 18:02subscriber loop is being used. It takes
- 18:05the full spectrum of the medium and
- 18:06divides it into frequency bands. There
- 18:08is one band reserved for traditional
- 18:11analog voice communication.
- 18:14And then here you see there are bands
- 18:15that are not being used, and then other
- 18:18bands that are used for upstream.
- 18:20because this particular mode is called
- 18:22asymmetrical DSL.
- 18:24Then there are other channels, more
- 18:26channels used for downstream data. So,
- 18:28that's why it's asymmetrical. You get
- 18:30more data in the downstream direction.
- 18:32The bandwidth of the channels is 4 kHz.
- 18:35And there is a adaptation so that the
- 18:37the data rate per channel is adapted to
- 18:41the conditions of that channel.
- 18:44It could even be that an individual
- 18:45channel is not used at all if it's very
- 18:47poor quality.
- 18:48This is used for residential access
- 18:50broadband access for data.
- 18:53In the upstream direction, typically up
- 18:54to 1 megabit per second, and in the
- 18:57downstream direction, 8 megabits per
- 18:59second,
- 19:00uh but nowadays uh higher 24 megabits
- 19:03and up to 100 megabits per second,
- 19:05depending on the quality of the cable.
- 19:08This shows how it's accomplished.
- 19:11There's a voice channel, which is just
- 19:12transparent.
- 19:14And then
- 19:15there's a serial to parallel converter
- 19:16here. So, the data is sent in parallel
- 19:19over the different channels. And then
- 19:21there's an advanced modulation,
- 19:23quadrature amplitude modulation, which
- 19:25has 15 bits per board for each channel.
- 19:29And you see the same modulation being
- 19:31used for the downstream channels.
- 19:34So, each channel being 4 kHz, and
- 19:37there's 15 bits per board, it means that
- 19:40you can carry 60 kilobits per second per
- 19:43channel. So, in summary for this
- 19:45teaching module, I've showed
- 19:46transmission media, how you can see look
- 19:48at the link budget and the capacity
- 19:50limitations of it.
- 19:52We have in this part looked at uh
- 19:54transmission of digital information by
- 19:56line coding and digital modulation.
- 19:59I've briefly mentioned synchronization
- 20:01and multiplexing, and shown examples of
- 20:03multiplexing such as PCM of digital
- 20:07telephony or synchronous digital
- 20:09subscriber loop.
- 20:31Mhm.
About this transcript
This page contains the full transcript of Line coding, modulation, framing and multiplexing by Gunnar Karlsson, generated from the public captions YouTube serves with the video. The transcript has 3,117 words across 536 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.