YouTube2Text

Line coding, modulation, framing and multiplexing — Transcript

by Gunnar Karlsson · 3,117 words · 536 segments · language en · Watch on YouTube

Full transcript

  1. 0:00EP 1100 data communication and computer
  2. 0:04networks.
  3. 0:05Some illustrations in this material are
  4. 0:07collected from the book by Forouzan,
  5. 0:09data communications and networking,
  6. 0:11published by McGraw Hill.
  7. 0:15In the previous parts, I've shown
  8. 0:17examples of transmission medium, and we
  9. 0:19also looked at the ultimate limits
  10. 0:22of data communication that you can get
  11. 0:24from a given medium.
  12. 0:26The Shannon capacity.
  13. 0:28Now, I will show you some actual methods
  14. 0:31of transmitting data over transmission
  15. 0:33medium.
  16. 0:36We have two examples called coding and
  17. 0:38modulation.
  18. 0:40If you have a low-pass channel, which
  19. 0:42permits frequencies from zero
  20. 0:45up to some maximum limit, you can use
  21. 0:47something called line coding to carry
  22. 0:49the data.
  23. 0:51Or it's also referred as baseband
  24. 0:52modulation.
  25. 0:54It's basically a direct current
  26. 0:57or a continuous light signal that is
  27. 0:59being modulated to carry the data.
  28. 1:03If you instead have a bandpass channel,
  29. 1:06then you need a carrier signal that lies
  30. 1:08somewhere in the passband, and you
  31. 1:11modulate that in order to carry the
  32. 1:13data. These are the two principles that
  33. 1:15I will show you.
  34. 1:18The line coding or baseband modulation
  35. 1:20is used to turn data into transmission
  36. 1:22signal. It uses discrete amplitude
  37. 1:25levels,
  38. 1:26and the transitions between the levels
  39. 1:29occur at discrete times.
  40. 1:31So, it's a clocking where
  41. 1:33each clock interval corresponds to one
  42. 1:36or a fixed number of bits.
  43. 1:39The signal is constant between these
  44. 1:41transmission times as shown in the
  45. 1:42figure up to the right.
  46. 1:44You can see that a zero level
  47. 1:46corresponds to a zero in the data, and a
  48. 1:49high level corresponds to
  49. 1:51a one in the data.
  50. 1:53And you see that the signal remains low
  51. 1:55or zero
  52. 1:57and or high, but has no intermediate
  53. 1:59values. And a sharp transition between
  54. 2:01the low and the high levels.
  55. 2:05The effect is that if you create such a
  56. 2:07signal
  57. 2:08and look at the Fourier spectrum of the
  58. 2:10signal, it has an infinite bandwidth.
  59. 2:13While it's being transmitted through the
  60. 2:15low-pass channel, some of the higher
  61. 2:17frequencies will be attenuated, and you
  62. 2:19will only receive the the lower
  63. 2:21frequencies of of the signal spectrum.
  64. 2:24This means that the signal that's been
  65. 2:26received is not as sharp in the
  66. 2:28transitions as was sent.
  67. 2:33Here's an actual case of a line coding.
  68. 2:35It's called unipolar encoding, and it's
  69. 2:37the example that was used in the
  70. 2:38previous picture.
  71. 2:41This signal contains a direct current
  72. 2:44component, a zero frequency component.
  73. 2:47You can imagine if you only transmit
  74. 2:50an infinite string of ones, then you
  75. 2:52will have a fixed voltage, and you a
  76. 2:55current will flow through the cable.
  77. 2:59The average level of the signal will
  78. 3:01thus depend on the number of ones that
  79. 3:03you have in the signal, but it will
  80. 3:05always be above zero.
  81. 3:07This type of coding is only possible if
  82. 3:09you have a cable that permits a direct
  83. 3:11current to flow through the cable.
  84. 3:15It's important that the receiver is able
  85. 3:17to clock the signal. So it So it should
  86. 3:19know
  87. 3:20how long the bit intervals are as seen
  88. 3:22from the transmitter.
  89. 3:25In this
  90. 3:26encoding, if you transmit a long stretch
  91. 3:29of only zeros or only ones, you can
  92. 3:32imagine that the receiver will not have
  93. 3:34any transitions to indicate the edges of
  94. 3:38a
  95. 3:39an interval. Therefore, the receiver
  96. 3:41might lose synchronization with the
  97. 3:43sender.
  98. 3:45So we would like to have a signal with a
  99. 3:47lot of transitions, because the
  100. 3:48transitions mark the beginning and the
  101. 3:50end of the bit intervals. So the
  102. 3:52receiver has some information to to
  103. 3:54synchronize its clock to.
  104. 3:57Here is another example of a line
  105. 3:58coding. This is called
  106. 3:59non-return-to-zero, NRZ.
  107. 4:02The picture shows two ways of encoding
  108. 4:05the data.
  109. 4:06In the upper figure,
  110. 4:08the data is encoded by the level of the
  111. 4:10signal.
  112. 4:11So, a positive level
  113. 4:13is represents a zero, and a negative
  114. 4:15level represents a one. If zeros and
  115. 4:18ones are equally likely in the data,
  116. 4:20then you will not have a DC component in
  117. 4:22the signal.
  118. 4:23In the lower figure, we show the same
  119. 4:26non-return-to-zero code, but it encodes
  120. 4:28the data in a different way.
  121. 4:30It has a transition if the next bit is a
  122. 4:33one. The advantage by coding through the
  123. 4:36transitions is that the signal becomes
  124. 4:39less sensitive to attenuation, because
  125. 4:42it's not the level that's been detected,
  126. 4:44it's the transition between the levels
  127. 4:45that is detected.
  128. 4:47So, you see here,
  129. 4:48zero remains a high level, and then the
  130. 4:52next bit is one, so there's a
  131. 4:53transition.
  132. 4:54And then, after the one, there's two
  133. 4:56zeros, so there's no transitions. Then
  134. 4:58there comes a one, so there is a
  135. 5:00transition.
  136. 5:01Actually, there are three ones in a row,
  137. 5:03so there are three transitions, each
  138. 5:05encoding one bit.
  139. 5:07Synchronization is still a problem with
  140. 5:10NRZ, because we can still have very long
  141. 5:13stretches of zeros and ones,
  142. 5:15so that there are no transitions at all,
  143. 5:17and therefore the receiver will not have
  144. 5:20information to synchronize its clock to.
  145. 5:24So, here is another line code called
  146. 5:25return to zero,
  147. 5:27which always have a transition in order
  148. 5:29to make sure that there's clocking
  149. 5:31information to the receiver.
  150. 5:33We use two signal elements per bit
  151. 5:35interval. So, one bit is encoded as two
  152. 5:38elements.
  153. 5:40The The first element is either
  154. 5:43positive or negative, and the second
  155. 5:45element is always zero.
  156. 5:47Which means that in every interval,
  157. 5:49there's always a transition going from
  158. 5:51positive to zero, or going from negative
  159. 5:54to zero.
  160. 5:55So, in terms of DC component, it's
  161. 5:58similar to NRZ, but it has a better
  162. 6:01clocking frequency.
  163. 6:03However, the baud rate is now twice the
  164. 6:06bit rate because we have two signal
  165. 6:08elements for each bit transmitted.
  166. 6:10If you're willing to have a higher baud
  167. 6:12rate, we can also have a Manchester
  168. 6:13code. Advantage compared to to the
  169. 6:16return to zero is that here we only use
  170. 6:19two different levels. We don't have a
  171. 6:21zero level, we have a positive and a
  172. 6:23negative level.
  173. 6:24And there's
  174. 6:25a transition so that a zero is
  175. 6:28represented from from positive to
  176. 6:30negative
  177. 6:31and a one is represented from negative
  178. 6:33to to positive. The advantage with a
  179. 6:35Manchester code is that there is a
  180. 6:38transition in every bit interval so that
  181. 6:40the receiver can synchronize its clock
  182. 6:43to the sender clock.
  183. 6:45Another possibility to make sure that
  184. 6:48you have good clocking information is to
  185. 6:49use a block code. This code is applied
  186. 6:52to the data. It transforms the data
  187. 6:54before the line coding.
  188. 6:57Here we show show something called 4B5B.
  189. 7:00So, four bits in, five bits out.
  190. 7:04So, you take the data, you group it into
  191. 7:06four-bit patterns. There are 16
  192. 7:08combinations of those.
  193. 7:10And you map those into five-bit
  194. 7:12patterns. So, we have
  195. 7:1432
  196. 7:15different outgoing patterns.
  197. 7:18And we choose the outgoing patterns so
  198. 7:21that we have a certain number of ones
  199. 7:24and zeros.
  200. 7:26So, even if we encode the data by a
  201. 7:28non-return-to-zero code,
  202. 7:31we are sure that there will be
  203. 7:32transitions and we have clocking
  204. 7:33information
  205. 7:35uh
  206. 7:35to the receiver.
  207. 7:37There are also other variants
  208. 7:39such as eight-bit, 10-bit codes. Here
  209. 7:42you increase the data rate by going to
  210. 7:44four to five bits or from eight to 10
  211. 7:46bits. But on the other hand, you can use
  212. 7:49a simple line code such as
  213. 7:50non-return-to-zero which has a baud rate
  214. 7:52which is equivalent to the data rate
  215. 7:54rather than using return to zero or
  216. 7:58Manchester which has a baud rate which
  217. 8:00is twice the data rate.
  218. 8:03Modulation.
  219. 8:05Modulation is the technique we use when
  220. 8:07we a bypass channel. We take a
  221. 8:09sinusoidal wave, we position it well in
  222. 8:13the passband, and then we modulate one
  223. 8:17or several of the parameters of the sine
  224. 8:19wave.
  225. 8:20You see here the function s of t is a
  226. 8:22sinusoidal. It has an amplitude a, it
  227. 8:25has a frequency f, and it has a phase
  228. 8:28phi.
  229. 8:29So, these are the three parameters that
  230. 8:31we can change to represent data.
  231. 8:35A bit interval will be some duration of
  232. 8:38the sinusoidal where it remains constant
  233. 8:41before we change it to represent another
  234. 8:43data bit. Here we show amplitude shift
  235. 8:46keying, ASK. It uses two amplitudes, a
  236. 8:49lower and a higher one. You see in the
  237. 8:51first interval that a zero is
  238. 8:53represented by a low amplitude, and then
  239. 8:56in the second interval a one is
  240. 8:57represented by a higher amplitude. This
  241. 9:00type of encoding is sensitive to
  242. 9:03attenuation because the amplitudes
  243. 9:07will tend to zero, and of course it's
  244. 9:09also subjected to noise that will be
  245. 9:11added to the signal. So, that can be
  246. 9:13difficult to detect whether the received
  247. 9:16signal is low or high in amplitude. Then
  248. 9:18we can use the frequency. We show the
  249. 9:21zero bit being coded by a lower
  250. 9:23frequency,
  251. 9:24and the bit value one is represented by
  252. 9:26a higher frequency.
  253. 9:28The signal strength is the same
  254. 9:30throughout the signal. So, that means
  255. 9:32that all intervals are affected equally
  256. 9:34by attenuation, and the attenuation of
  257. 9:36course does not affect the frequency.
  258. 9:38So, the limitation here is the bandwidth
  259. 9:41of the passband of the medium.
  260. 9:44A third possibility is to use the phase.
  261. 9:47So, you see the zero bit is represented
  262. 9:50by one phase, and the one bit is
  263. 9:52represented here by a phase which is
  264. 9:54180° shifted from the zero bit. The
  265. 9:57signal level remains constant for the
  266. 10:00signal, and the detector has to detect
  267. 10:03the phase changes from one bit to to the
  268. 10:05next.
  269. 10:07You can combine these different formats,
  270. 10:09and here is an example called quadrature
  271. 10:11amplitude modulation, which uses two
  272. 10:14amplitude values and four phase values.
  273. 10:17So, that gives you
  274. 10:19two bits for the phase values and one
  275. 10:22bit for the amplitude values. So, in
  276. 10:23total each signal element can encode
  277. 10:26three bits.
  278. 10:28So, I have now shown how you can
  279. 10:29represent data as signals that travel
  280. 10:32through a medium.
  281. 10:34Now, we go over some data transmission
  282. 10:36modes.
  283. 10:37You can transmit data in parallel or
  284. 10:40serially.
  285. 10:41If you transmit the serially, you can
  286. 10:43have an asynchronous and synchronous
  287. 10:44mode.
  288. 10:45The parallel transmission is most common
  289. 10:48inside computers. A computer bus or any
  290. 10:52data path on a printed circuit board are
  291. 10:55usually carrying the data in parallel.
  292. 10:58So, here we show that eight bits are
  293. 11:00transferred in parallel at any one time.
  294. 11:02There could be additional conductors
  295. 11:05that carry for instance clocking
  296. 11:06information as well.
  297. 11:08This is also what you have in parallel
  298. 11:09cables, for instance to connect a
  299. 11:11printer. Serial transmission takes the
  300. 11:14data, which might be structured in data
  301. 11:16words or bytes, and then it sends them
  302. 11:18serially one bit at a time. It's
  303. 11:21important that the sender and the
  304. 11:22receiver agree on the order of the
  305. 11:24serialization. For instance, if you have
  306. 11:26a byte, should the most significant bit
  307. 11:29be sent first or should the least
  308. 11:30significant bit be sent first?
  309. 11:32Either order will work, but the sender
  310. 11:35receiver have to agree on the order.
  311. 11:37Here you need some other clocking
  312. 11:39information, external clocks of course,
  313. 11:41but the type of line coding that that I
  314. 11:44showed could be used here so that the
  315. 11:47signal itself carries enough timing
  316. 11:49information for the receiver to
  317. 11:51synchronize its clock to. The next
  318. 11:53aspect of data communication is framing
  319. 11:55of messages.
  320. 11:56A sender will not be active continuously
  321. 11:59for all times.
  322. 12:01It will have data to send,
  323. 12:02and then when the data has been sent, it
  324. 12:05may remain idle for a long period of
  325. 12:07time. This has to be communicated to the
  326. 12:09receiver so that the receiver knows that
  327. 12:11this end of message and then whatever
  328. 12:14signal it receives will be noise
  329. 12:16generated in the medium and then later
  330. 12:19on when a new message comes the receiver
  331. 12:21has to be able to detect that there's a
  332. 12:23new message starting and it should now
  333. 12:25detect at the signal and and translate
  334. 12:28the signal into data. We call this
  335. 12:30framing. So it marks start and stop of
  336. 12:33messages.
  337. 12:35It's some control data that's added for
  338. 12:37each message. So the data that's
  339. 12:39generated from a higher layer ultimately
  340. 12:42from an application will now be framed
  341. 12:44by by some predefined bit sequence at
  342. 12:48the beginning and end of the message.
  343. 12:51The framing also allows multiplexing of
  344. 12:53messages from multiple sources.
  345. 12:56If each source is only active a small
  346. 12:59percentage of time then several sources
  347. 13:02could share a channel for instance a
  348. 13:03radio channel. There will therefore be
  349. 13:06frames coming separately from each
  350. 13:08source towards the receiver.
  351. 13:10Could also be that a frame is shared by
  352. 13:12multiple sources that are co-located so
  353. 13:15they they can put the data in different
  354. 13:17parts of one and the same frame.
  355. 13:20Multiplexing.
  356. 13:23Multiplexing is the concept of sharing a
  357. 13:25link. Here we show a simple example with
  358. 13:28a four possible inputs on the left side
  359. 13:31to the multiplexer.
  360. 13:33There's one link
  361. 13:35carrying a bit stream of frames of bits
  362. 13:38but it's divided into four channels. And
  363. 13:41then the multiplexer will separate out
  364. 13:43these channels and deliver them. So we
  365. 13:45have
  366. 13:46emulated here a situation where we have
  367. 13:48four different links outside the max but
  368. 13:52they're implemented as one link um oh in
  369. 13:55one transmission medium.
  370. 13:57This allows multiple sender receiver
  371. 13:59pairs to share a link
  372. 14:01and to share the resources of that link
  373. 14:03because could be that the resource of
  374. 14:05the medium is so high that not any
  375. 14:07single sender would generate as much
  376. 14:09data as the medium can
  377. 14:11can carry. For instance um
  378. 14:14fiber optical cable.
  379. 14:16There's several ways of sharing the
  380. 14:17resource of the transmission medium.
  381. 14:20One is that we look at the bandwidth of
  382. 14:22the transmission medium and we divide
  383. 14:25that into different frequency channels
  384. 14:27and let each sender receiver pair have
  385. 14:30its own reserved
  386. 14:32frequency range. Another thing is that
  387. 14:34we modulate or or line code for the
  388. 14:38entire bandwidth of the medium
  389. 14:40and then we divide up that bit stream
  390. 14:44into
  391. 14:45time units and each time unit correspond
  392. 14:48to the slot that a sender will have
  393. 14:51available to send its data.
  394. 14:53In the first case, we talk about analog
  395. 14:55multiplexing. And this method of
  396. 14:58dividing up the bandwidth into frequency
  397. 15:00regions called frequency division
  398. 15:01multiplexing. It uses a modulation for
  399. 15:04each frequency channel. We have a
  400. 15:06carrier frequency that is positioned in
  401. 15:08the channel that has been allocated.
  402. 15:10This is the method that's been used for
  403. 15:12broadcast radio and television.
  404. 15:14Where for instance, different radio
  405. 15:16channels
  406. 15:18correspond to to a frequency range that
  407. 15:20they have. The center frequency which is
  408. 15:22used by the carrier frequency and a
  409. 15:23bandwidth around it that they have to
  410. 15:25remain within.
  411. 15:27The concept is also used in optical
  412. 15:30networks where it's referred to as
  413. 15:31wavelength division multiplexing.
  414. 15:34It's the same concept as FDM and here
  415. 15:37it's corresponds to sending the data
  416. 15:39with different wavelength channels or
  417. 15:41different colors of the light that's
  418. 15:43being transmitted.
  419. 15:46And then we have digital multiplexing
  420. 15:48where we let the sender generate a data
  421. 15:51rate for the entire bandwidth of the
  422. 15:53medium.
  423. 15:54Then we divide the times into slots and
  424. 15:58uh
  425. 15:59allocate slots to the different senders.
  426. 16:02So, the demultiplexer will then know
  427. 16:04that in each frame, the first slot
  428. 16:07belongs to channel one,
  429. 16:09the second slot belongs to channel two
  430. 16:11and it will separate out the slots and
  431. 16:13deliver the data to the receivers of
  432. 16:15those channels. This is called
  433. 16:18asynchronous time division multiplexing.
  434. 16:20We can also have an asynchronous time
  435. 16:22division multiplexing where each source
  436. 16:25gets its own frame that's sent into the
  437. 16:27medium.
  438. 16:28The frame will then have an address to
  439. 16:30indicate which channel that it belongs
  440. 16:34to. So that the demultiplexer can take
  441. 16:36the frame and deliver it to the right
  442. 16:38receiver.
  443. 16:40Here is an example of synchronous time
  444. 16:42division multiplexing for telephony. So
  445. 16:44as we heard in the PCM part, the 4 kHz
  446. 16:48of voice spectrum is PCM coded resulting
  447. 16:51in 64 kilobits per second of data. Such
  448. 16:55streams were multiplexed one byte per
  449. 16:58input and put into frames.
  450. 17:00In the United States, there were 24
  451. 17:02channels. In Europe and in other parts
  452. 17:04of the world, there were 30 channels
  453. 17:06resulting in a total bit rate of 2
  454. 17:08megabits per second.
  455. 17:10And then there's a whole hierarchy of
  456. 17:12these E1 or T1 channels being
  457. 17:14multiplexed together to higher data
  458. 17:17rates up to hundreds of megabits per
  459. 17:19second.
  460. 17:20Here's another example, the digital
  461. 17:22subscriber loop.
  462. 17:25This is a high-speed digital access that
  463. 17:27uses the old telephone wires that go
  464. 17:30into most homes.
  465. 17:32It uses the actual bandwidth in the
  466. 17:34twisted pair cable
  467. 17:36in the subscriber access lines.
  468. 17:39Even though an analog voice call was
  469. 17:41only 4 kHz in bandwidth, the cables
  470. 17:45permit up to over megahertz in
  471. 17:48bandwidth.
  472. 17:50The bandwidth of the medium is subject
  473. 17:51to strict physical limitations.
  474. 17:54It has a high attenuation, so you can
  475. 17:55only go short distances, and it requires
  476. 17:58advanced signaling.
  477. 18:00This is one way that the
  478. 18:02subscriber loop is being used. It takes
  479. 18:05the full spectrum of the medium and
  480. 18:06divides it into frequency bands. There
  481. 18:08is one band reserved for traditional
  482. 18:11analog voice communication.
  483. 18:14And then here you see there are bands
  484. 18:15that are not being used, and then other
  485. 18:18bands that are used for upstream.
  486. 18:20because this particular mode is called
  487. 18:22asymmetrical DSL.
  488. 18:24Then there are other channels, more
  489. 18:26channels used for downstream data. So,
  490. 18:28that's why it's asymmetrical. You get
  491. 18:30more data in the downstream direction.
  492. 18:32The bandwidth of the channels is 4 kHz.
  493. 18:35And there is a adaptation so that the
  494. 18:37the data rate per channel is adapted to
  495. 18:41the conditions of that channel.
  496. 18:44It could even be that an individual
  497. 18:45channel is not used at all if it's very
  498. 18:47poor quality.
  499. 18:48This is used for residential access
  500. 18:50broadband access for data.
  501. 18:53In the upstream direction, typically up
  502. 18:54to 1 megabit per second, and in the
  503. 18:57downstream direction, 8 megabits per
  504. 18:59second,
  505. 19:00uh but nowadays uh higher 24 megabits
  506. 19:03and up to 100 megabits per second,
  507. 19:05depending on the quality of the cable.
  508. 19:08This shows how it's accomplished.
  509. 19:11There's a voice channel, which is just
  510. 19:12transparent.
  511. 19:14And then
  512. 19:15there's a serial to parallel converter
  513. 19:16here. So, the data is sent in parallel
  514. 19:19over the different channels. And then
  515. 19:21there's an advanced modulation,
  516. 19:23quadrature amplitude modulation, which
  517. 19:25has 15 bits per board for each channel.
  518. 19:29And you see the same modulation being
  519. 19:31used for the downstream channels.
  520. 19:34So, each channel being 4 kHz, and
  521. 19:37there's 15 bits per board, it means that
  522. 19:40you can carry 60 kilobits per second per
  523. 19:43channel. So, in summary for this
  524. 19:45teaching module, I've showed
  525. 19:46transmission media, how you can see look
  526. 19:48at the link budget and the capacity
  527. 19:50limitations of it.
  528. 19:52We have in this part looked at uh
  529. 19:54transmission of digital information by
  530. 19:56line coding and digital modulation.
  531. 19:59I've briefly mentioned synchronization
  532. 20:01and multiplexing, and shown examples of
  533. 20:03multiplexing such as PCM of digital
  534. 20:07telephony or synchronous digital
  535. 20:09subscriber loop.
  536. 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.