Cyclic Redundancy Check (CRC) - Part 1 — Transcript
Full transcript
- 0:00hello everyone welcome back to the next
- 0:02lecture in the computer Network series
- 0:04and we are now in the last error
- 0:07detection technique the cyclic
- 0:09redundancy check CRC in part 1 we will
- 0:13be focusing on the sender side that is
- 0:15the CRC generation let's start the
- 0:18session with the outcomes what we are
- 0:21going to learn in today's session in
- 0:23today's session we are going to know the
- 0:25types of error detection I am we are
- 0:27going to understand how to generate the
- 0:29CRC the generation of CRC is mainly the
- 0:33responsibility of the sender let's start
- 0:36the session by knowing the types of
- 0:38error detection we have basically for
- 0:40error detection methods in the previous
- 0:43lectures we have discussed VRC LRC and
- 0:45checksum the final error detection
- 0:48method is the CRC that is the cyclic
- 0:51redundancy check and we know that any
- 0:53error detection technique we are going
- 0:55to append the redundant bits with the
- 0:57message because this redundant bit only
- 1:00will enable the receiver to detect
- 1:02whether there is an error or not so
- 1:05likewise CRC is also going to generate
- 1:07some bits and these bits are called as
- 1:10the redundant bits and in this technique
- 1:12these redundant bits are specifically
- 1:14called as CRC let's solve a problem now
- 1:18find the CRC for the data block one
- 1:21double zero one double zero with the
- 1:24divisor one one zero one the protocols
- 1:27that the sender and the receiver
- 1:29mutually agree upon will decide the
- 1:31divisor so the divisor will be known to
- 1:33the sender the receiver so based on the
- 1:36divisor the crc is going to be
- 1:38calculated or the crc is going to be
- 1:41generated in the sender side and
- 1:43verified in the receiver side now for
- 1:45time being let's assume the divisor is 1
- 1:481 0 1 and we are given with the data
- 1:51block that is 1 0 0 1 0 0 let's look at
- 1:55the generation of crc in the sender side
- 1:57formerly the crc generation of the
- 1:59sender side involves 4 steps basically
- 2:01step number 1 find the length of the
- 2:05divisor
- 2:05and we are naming it as l and after
- 2:08finding the length of the divisor in
- 2:10step number 2 we are going to append L
- 2:14minus 1 bits to the original message
- 2:16suppose if the length of the divisor is
- 2:195 then we are going to append 4 bits to
- 2:22the original message don't get confused
- 2:24this appending 4 bits to the original
- 2:27message is not the crc for doing the
- 2:29operation we are going to append L minus
- 2:311 bits to the original message and then
- 2:34perform binary division operation so we
- 2:37have a divisor and we have a message
- 2:39that is appended with L minus 1 bits now
- 2:42let's start performing the binary
- 2:44division after performing the binary
- 2:46division we will get two results one is
- 2:49the quotient another one is the
- 2:51remainder then whatever we get as the
- 2:53remainder that's the crc and please note
- 2:57we are appending L minus 1 bits so the L
- 3:01minus 1 bits must be the CRC code
- 3:03suppose if we are appending four zeros
- 3:06then four bits must be the CRC bits and
- 3:09when we want to perform the binary
- 3:12division operation we must be knowing
- 3:14about the exclusive or operation so we
- 3:17will just have a recapture on exclusive
- 3:19or operation
- 3:21and B are the two variables so the
- 3:23possibilities for a and B in binaries
- 3:25are 0 0 0 1 1 0 and 1 1 we are gonna
- 3:31perform a XOR B that is a exclusive
- 3:33orbit B so for same inputs it won't
- 3:37produce any output so for 0 0 and 1 1
- 3:40there will be 0 output for different
- 3:44inputs we will get 1 as the output so
- 3:47this is the logic behind exclusive odd
- 3:49you may be wondering we are actually
- 3:52going to perform binary division
- 3:53operation only what is the need for
- 3:55knowing about exclusive odd you will
- 3:58understand the significance of exclusive
- 4:00or when we see an example let's see an
- 4:02example
- 4:03in the question message is given and the
- 4:06divisor is given just in the binary
- 4:08division operation just place the
- 4:10divisor here and the message here what
- 4:13is this part this is the divisor and
- 4:16what is this part this is the message on
- 4:18top of this we will be getting the
- 4:21quotient at the bottom will be getting
- 4:23the remainder now step number 1 just
- 4:26recall step number 1 how many number of
- 4:28bits are there in the divisor we have
- 4:31four bits so L is equal to 4 here so L
- 4:35is equal to 4 means how many zeros we
- 4:37are going to append L minus 1 that is 3
- 4:40zeros are appended to the message so
- 4:42this is our message and three zeros we
- 4:45are appending with the message after
- 4:47appending the zeros let's start the
- 4:49binary division how many times it is
- 4:51going to divide one time 1 1 0 1 1 times
- 4:55is 1 1 0 1 now let's start the division
- 4:59actually polynomial division this binary
- 5:01division involves exclusive or operation
- 5:04and that's why in the previous slide I
- 5:07just recaptured the exclusive or
- 5:09operation for same input 1 1 will be
- 5:11getting 0 for same input 0 0 will be
- 5:14getting 0 for different input will be
- 5:16getting 1 and will be ignoring this
- 5:19anyway it has no role to play in the
- 5:21operation so the answer for this is same
- 5:24input 0 0 different input 1 we will
- 5:28ignore this then the division involves
- 5:30bringing the next bit so the next bit is
- 5:33brought here now how many
- 5:351:01 will be dividing this one time 1 1
- 5:390 1 1 x is 1 1 0 1 let's perform the
- 5:42exclusive or operation this is going to
- 5:45be 1 0 1 0 and we'll be ignoring this
- 5:49and we'll be getting 1 0 1 let's bring
- 5:52this bit here now when we bring this bit
- 5:55here how many times 1 1 0 1 takes it
- 5:58takes one time when we do the exclusive
- 6:00or operation and we get 1 1 1 because
- 6:04for different inputs will be getting 1
- 6:06now let's bring the next bit how many
- 6:09times 1 time 1 1 0 1 now the answer is 0
- 6:141 1 yes as usual let's bring the next
- 6:18bit now we are required to use the
- 6:20number of times it is dividing but when
- 6:23we observe here this is starting with 0
- 6:25anyway this has no role but this is 0
- 6:29this is starting with 0 so we'll be
- 6:31putting a 0 now when we divide it is
- 6:33going to be 1 1 0 and bring the next bit
- 6:37divide it 1 times and we'll be getting 1
- 6:401 0 1 and finally we are getting the
- 6:43remainder as 0 0 1 and what is start 0 0
- 6:471 it is actually the remainder in fact
- 6:51in CRC this is the CRC code
- 6:54so this CRC code only is going to be
- 6:56appended with the original message now
- 6:59let's see what's the CRC 0 0 1 is the
- 7:02CRC let's check it out yes 0 0 1 is the
- 7:06CRC and what is the actual message it's
- 7:091 0 0 and 1 0 0 and this CRC is going to
- 7:13be appended with the message just C 1 0
- 7:160 1 0 0 this is what the actual message
- 7:19and we are appending 0 0 1 this is the
- 7:22data part that is the original message
- 7:24what is the other part this is the CRC
- 7:26part so the actual data that is
- 7:28transmitted is 1 double 0 1 double 0 0 0
- 7:321 and that's it guys there is a homework
- 7:35problem for you just try this find the
- 7:38CRC for one one one double 0 1 0 1 0 1
- 7:43with the divisor X cubed plus x squared
- 7:46plus 1 is anything
- 7:49your Takeo yes we are finding something
- 7:51new here instead of having binary digits
- 7:54as the divisor we are having a
- 7:56polynomial expression
- 7:58no worries guys I will be providing you
- 8:00a hint to solve this the hint is just
- 8:03take this if we are given a polynomial
- 8:06like X power 7 plus X power 5 plus x
- 8:09squared plus X plus 1 just see one
- 8:13because we have X 7 here do we have X
- 8:16power 6
- 8:17no so place a 0 here so X power 6 is
- 8:20taking 0 do we have X power 5 yes put a
- 8:231 here
- 8:24do we have X power 4 here No so put a 0
- 8:27do we have X cube here no so put a 0 do
- 8:31we have x squared yes
- 8:33we have X square so put a 1 do we have X
- 8:36power 1 yes so we put a 1 here
- 8:39do we have X power 0 anything power 0 is
- 8:421 do we have any constant here yes if we
- 8:45have a constant put a 1 so try this and
- 8:48solve this problem
- 8:49post your answers in the comment section
- 8:52I hope you guys enjoyed the session and
- 8:54thank you for watching
- 8:56[Applause]
- 8:58[Music]
- 9:02you
- 9:06[Music]
About this transcript
This page contains the full transcript of Cyclic Redundancy Check (CRC) - Part 1 by Neso Academy, generated from the public captions YouTube serves with the video. The transcript has 1,535 words across 203 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.