How do CRCs work?

Поделиться
HTML-код
  • Опубликовано: 14 дек 2024

Комментарии • 633

  • @junkmail4613
    @junkmail4613 5 лет назад +968

    25 comments, 58 views, 21 likes, 0 dislikes. So I'm fairly early in the viewing.
    I'm so Damn impressed. I'm 70, a retired Electrical Engineer, and had glancing contact with CRC back in late 60's early 70's, and figured I'd get back to clarifying it to my satisfaction later on in my life, as time allowed. I long ago forgot that "promise to myself", and thru disuse, long ago lost the discipline of the required regimen to reconstruct the required elements, to then reassemble. I ramble. I AM SO PLEASED, to see with such clarity, as pure as the resonance of the ringing of a bell. It is as an epiphany. Thank You So Much, for the intense effort and discipline, you've achieved. I REALLY ENJOYED YOUR PRESENTATION, have seen some , and expect to witness many more of your videos. They are quite refreshing, and a reaffirmation of many of my previous studies. At my age, what a joy. Opening so many new refreshing avenues of research. Keep up the good work. Thanks.

    • @donprefontaine3237
      @donprefontaine3237 5 лет назад +4

      Ditto.

    • @johncrunk8038
      @johncrunk8038 5 лет назад +2

      @@donprefontaine3237 re-ditto

    • @pedzsan
      @pedzsan 5 лет назад +13

      Similar to Junk Mail, I'm 60. E.E. (Not retired). This really is an exceptional piece of work.

    • @CarlTWest
      @CarlTWest 5 лет назад +8

      My Dad has a similar background (and age). I've been thinking of sending him this playlist's link and some description (as I've been *adoring* it). Seeing your comment I decided to just do it now, and the description is mostly a copy-paste of what you've written.

    • @coreyhulse8226
      @coreyhulse8226 4 года назад +9

      24 year old electrical engineer fresh out of school here, what I like about Ben's videos is how accessible and engaging these lessons are. Exactly like you said sometimes I've found in school that I make "promises to myself" that I will learn this material better once I'm out of school and that right now I just need to memorize answers so I can pass. But I've been watching these videos for the last four years and they have really helped me stop and take the time to dive into the required elements like you say. It's made me feel much more secure about my skills in the embedded systems/comp arch world and the ability to dive deep like this was critical in getting through grad school. I'm glad his videos can do something for anyone no matter what their experience.

  • @3blue1brown
    @3blue1brown 5 лет назад +2232

    Ah yes, "what is x". A strangely profound question in modern algebra.

    • @BenEater
      @BenEater  5 лет назад +504

      According to some of my teachers, it was the only question...

    • @adamlanghans
      @adamlanghans 5 лет назад +103

      x = y - 90°

    • @arsen3783
      @arsen3783 5 лет назад +45

      "a letter"

    • @tahaabujrad7806
      @tahaabujrad7806 5 лет назад +20

      Because the coefficients of all the the Xs are either 0 or 1, why we do-not replace the X with the number 2?

    • @d0nnyr0n
      @d0nnyr0n 5 лет назад +5

      @@adamlanghans lol

  • @icycolas
    @icycolas 2 года назад +75

    Probably the most comprehensive explanation for CRC on RUclips. Not only just how to do it, but also the reasoning behind it. Thank you.

  • @paololucchesi2827
    @paololucchesi2827 5 лет назад +237

    If you have already seen the video but you want to review just a part of it (say, you are building a project which uses a CRC):
    00:00 - Detecting errors with modulo division
    10:51 - Message data as a polynomial
    16:41 - Finite fields
    22:57 - Polynomial division
    31:04 - Sending and verifying CRC
    36:29 - Choosing a generator polynomial

    • @azzajohnson2123
      @azzajohnson2123 5 лет назад +7

      Paolo Lucchesi Fuck me just when you see smart guys like Ben breaking things like a genius down so I understand, he mentions professors that sit around all day finding the best generator polynomials vs overheads vs message sizes. Incredible stuff!

    • @notalostnumber8660
      @notalostnumber8660 2 года назад +2

      RUclips allows chapters now, maybe Ben could use them and make everyone's life easier.

  • @tobyfried
    @tobyfried 5 лет назад +131

    I'm not an engineer, I have no plans to build low-level computer hardware any time soon, but I look forward to every one of your videos. You have the spectacular ability of making complex concepts less intimidating and more digestible.

    • @azzajohnson2123
      @azzajohnson2123 5 лет назад +7

      Tobias Fried I’m no engineer but I can’t wait to build a low level computer to show my kids how it works!

  • @MrBluemoon74
    @MrBluemoon74 5 лет назад +377

    Ben, this is a real good video on CRC, I used CRC-32 multiple times in software, and relyed on some 3th party implementation to construct or validate it, but I never understood why it worked. Thanks you very much and I cannot wait for the next video to see the ex-or in action. Jeroen.

  • @davethedaemon9024
    @davethedaemon9024 5 лет назад +21

    I started my career as a communications technician in the late 70'sand became a communications programmer in the early 80's. I've worked with crc16 and crc32, but never knew the details at this level. I always relied on either the hardware or canned software to do the trick. Thanks for taking the time to explain this. I always wanted to understand the details. I remember trying to read a paper on the subject. It took me a while to realize that this paper was so verbose as to start off by taking 3/4 of a page to explain the mathematical concept of a bit! (He must have had a word quota). I got frustrated and gave up. Thanks for explaining this in a concise way I can understand. Now that I'm retiring and playing with Arduinos, I'd love to see how you do this in hardware. Thanks again!

    • @leave-a-comment-at-the-door
      @leave-a-comment-at-the-door Год назад +2

      Your three spaces between sentences is messing with my head... One is internet standard, and two is a common holdover from typewriters and stuff, but where on earth did you get three from?

    • @kaitlyn__L
      @kaitlyn__L Год назад

      @@leave-a-comment-at-the-door some people learned to triple space between sentences because they double spaced between words

    • @leave-a-comment-at-the-door
      @leave-a-comment-at-the-door Год назад

      @@kaitlyn__L double spaces between *words?* If you want more space between words wouldn't you just make the "how much the typewriter moves on the space key" space bigger? It seems excessive to have to press a button twice between every word, you are adding no new information with that extra press if you do it every time

    • @topilinkala1594
      @topilinkala1594 Год назад

      I'm 62 years old telecom engineer in Helsinki, Finland . When I started my studies in U in 80's my major was mathematics. Because I was using computers at home to amuse myself and using communications over phonelines first to local numbers but trough them to more distant computers I started to focus my studies more on computers. So I changed my major to computer technology and quickly realised that what happens within computer is kinda boring, but what happens when they communicate with each other is fascinating. So I changed Us and majored in telecommunications. Through out my studies I tutored my fellow students in math. Modular arithmetics eg. finite fields was always the big question how they work. I always used the clock as an example. When the lecturer wrote those x-polynomials and calculated with them I always changed the x's to a, b, w or what not when I explained the things so that they'd understand that it is just an abstract that is used to make the calculation work.

  • @MarkoTasic
    @MarkoTasic 5 лет назад +205

    Besides being great explanation, I really like how you used pen and paper instead of computer graphics and animations. It adds sentimental value to video.

    • @uptide1214
      @uptide1214 5 лет назад +22

      he knows the truth. never trust computers. :]

    • @Bob3519
      @Bob3519 5 лет назад +2

      Marko you might like "Diode gone wild" on RUclips also. He uses good ol' pen and paper too! 😁 Not a programming channel but great electronics stuff!

    • @jsmythib
      @jsmythib 5 лет назад

      @@Bob3519 Looks great. Subbed.

    • @MarcSputnik
      @MarcSputnik 3 года назад

      As he said one needs to do it by hand to see the pattern :-)

    • @chrisalister2297
      @chrisalister2297 3 года назад +1

      Makes it more organic.

  • @neilharrison01
    @neilharrison01 Год назад +1

    Hi, my name is Neil Harrison and way back in the 1980s I was an engineer working for BT. I created the CRC4 frame/mult structure for the 2.048Mbit/s transmission system that became a CCITT standard in G.704/706. Did all the modelling work on a BBC Micro. Seems a long time ago now. Amazed how it lasted. Been retired as a engineer for about 9 years.

  • @bergpolarbear
    @bergpolarbear 5 лет назад +2

    Old retired software engineer here. Used CRC countless times but never really understood it till now. Great presentation! Thanks.

  • @toncho1986
    @toncho1986 5 лет назад +61

    Finally! Another great video.. We really missed you a lot, Ben :)

  • @HA7DN
    @HA7DN 5 лет назад +302

    Dammit, I've just watched a video about CRC?
    And I understood it.
    And I even liked it!
    Damn, I am a geek indeed.

    • @speggeri90
      @speggeri90 3 года назад +3

      Neeeerrrrd...! I liked it too though! It's a nice feeling when you understand something new. :)

    • @okaywhynot4728
      @okaywhynot4728 3 года назад +1

      Hell yeah we are 😤🤓

  • @buzztoneaudioeffects6023
    @buzztoneaudioeffects6023 Год назад +3

    Just started a new job where we implement a lot of CRC checks, so was great to watch this video and fill in missing areas of my knowledge. Huge thanks!!

  • @GnBst
    @GnBst 4 года назад +4

    This video just lit up parts of my brain i have not used since graduating year of high school, then i got a headache. Thank you so much for this video and others in the series, I have always been confused on how checksums, CRC and ECC actually work, really only paying attention to what they provide to my work. I've been in the IT realm for 20 years now and have always been ashamed of my lack of understanding of how most of the low-level components operate and the sheer brilliance in the engineering of it. Your videos are a massive asset to help me get my head around these concepts. I just hope that the crowd touting the likes of "AI" and "machine learning" take the time to understand how the low level machine enables the garbage that they talk. Thank you! I will be blowing the dust of my Arduino kit and playing with some of these things again as time permits. Thank God for the likes of you and Mr. Carlson and so many other great content creators!

  • @Snollygoster-
    @Snollygoster- 2 года назад +2

    I truly wish I had this channel when I was younger. The concepts and seemingly esoteric knowledge that you just nail down with simple examples is almost annoying with how obvious it is, having been confused so much by it.
    Absolutely amazing teacher and I am so tempted to buy your kit and start making my own computer, because you make it feel entirely attainable.

  • @rogeriorogerio1007
    @rogeriorogerio1007 5 лет назад +10

    You have the gift of deconstructing complexity into triviality. A great teacher! Wish I had classes like that back in mid school... Well we all can have them now. Thanks a lot.

  • @AdhyyanSekhsaria
    @AdhyyanSekhsaria 5 лет назад +14

    Amazon video! However, I think many ppl who aren't in touch with abstract algebra can find this overly confusing because of the field we are using. The main reason it's confusing is because it looks that the field follows random rules. It is actuslly just a mod 2 field or a xor field which makes it much easier to think about. Anyway great work!

  • @yatharthagarwal2041
    @yatharthagarwal2041 5 лет назад +46

    The quality of these videos!!!! Makes learning new things so fun! Love your videos ben❤️!

  • @ronjon7942
    @ronjon7942 2 года назад +6

    Wow, I’ve gotten so dumb in my old age. I’ve had delusions of retaking the three semesters of 200 level calculus, but no way. I’m gonna have to start all the way at the beginning with algebra.
    What a great presentation, Ben, this is great work. I had an epiphany when you coverted the binary message to real numbers to show how the math works to reconstruct a message at the received end. I always considered the binary math with hesitation and suspicion , but when you did the math using real numbers, my brain went “oh, yeah, of course THAT math works reliably at both sides!” Now that I see it’s not only possible, but that it HAS to work, I just need practice. Lots and lots of practice.
    One more bucket list item is to order your breadboard kits and follow along all your marvelous labs. Chuckle, maybe then I won’t still be intimidated by actually learning to program on my C64.

  • @chrisocon
    @chrisocon 5 лет назад +4

    For my senior design project in CE, we had an app communicating with a microprocessor using a Bluetooth module and our information would at times be sent incorrectly. We had to use a CRC to check that our data was being transmitted correctly and use the Stop-and-Wait ARQ protocol to send acknowledgment checks so that our information was transmitted and received correctly. It took such a long time to understand how CRCs work because the math was very convoluted. I wished this video existed then!

  • @codeinnovator
    @codeinnovator 5 лет назад +1

    In our Networks class we studied CRC. And in Network Security class we studied about finite field theory. This video was much more intuitive than two regular courses at college. Thanks for your effort in simplifying the mathematical rigour to an understandable level for the common populace.

  • @Thulgon
    @Thulgon 5 лет назад +2

    As a CS student, this is an eye opener as to why we need those math courses that we often complain about. Excellent work!

  • @willofirony
    @willofirony 5 лет назад +2

    I can't really improve on Junk Mail's comment. My experience has followed his, almost word for word. Maybe the fact that our ages are only 2 years apart is a factor here; though a was a chemical engineer with just an amature interest in electronics and programming. The other common factor is that we have both just finished watching a video by a truly gifted teacher. Thank you, Ben.

  • @NesrocksGamingVideos
    @NesrocksGamingVideos 5 лет назад

    This is by far the best math class I've had in decades. You don't speak slowly but you explain it thoroughly. You really know what you're talking about, and all that preparation with the math on paper really helped. Thanks!!!!

  • @DailyWalk365
    @DailyWalk365 5 лет назад +2

    Why must you continue to blow my mind, repeatedly? You are an excellent instructor. Wish I had you as an instructor when I was in VOTEC Electronics.

  • @georgemaragos2378
    @georgemaragos2378 3 года назад

    Hi
    Another well presented and explained video, in the late 80's i had done some pascal code, one of the sites had 2400 modems to warehouse and dedicated lines ( gov department)
    I could not guarantee serial transmission, and ended up discussing with other in the telco industry and they recommend using of the shelf comms programs, but the contract terms of the project forbid it as they wanted fresh hand coded and the source code to be theirs
    So it was 80% complete and workable, in discussions about the next step eventually i said - i can re-price the job down and give you all the workings for stock transfer / accounting / interface is all done and it works stand alone and via serial port to the 2 local (on site but 600meter away ) remote warehouses the comms is working but no error checking for long distance / line loss
    I was allowed to buy some external pascal code to use as a module for the crc error checking, used that and problem solved, the purchase of the module was cheap enough ( say 3-5% of my overall charge )
    The issue was basically the long distance charges for the dial up and in organizing efficient / optimal packet size for the crc to stop resending large packets again and increasing phone charges
    There is a science to speed and pack size

  • @Debraj1978
    @Debraj1978 4 года назад +1

    Just like any subject of DSP, the math is hugely involved, but the implementation is simpler. I had been using CRC function on different microcontorller for so many years, the math behind the CRC is aptly explained here. Thank you. BTW, I had also realized that the CRC polynomials are determined after lot of reseach and that is another subject all together. Fortunately, mundane creatures like me are happy with usage of CRC. Thanks for the video.

  • @halbeard2996
    @halbeard2996 5 лет назад +18

    For anyone who is confused by how the addition rules of the finite field translate to the polynomial expression:
    You can think of the polynomial as a vector (with some additional properties), where the powers of the indeterminate represent the independent entries of the vector. The video on abstract vector spaces in the linear algebra series by 3blue1brown explains why this is the case, if you're not familiar with the matter.
    Then the polynomial addition (or subtraction) is nothing more than vector addition. But in this case it is addition according to the adding rules of the finite field. At least to me this view makes it clearer why each component can be added independently and there is no carrying over.

    • @Kokurorokuko
      @Kokurorokuko Год назад

      That is such a great addition (pun intended) to the video. Thank you!

  • @SherifTGElDin
    @SherifTGElDin 6 месяцев назад

    This one of the best lectures on CRC on the Web. It explores the fundamentals and slowly takes u through all the steps to the final phase which is the construction of the Generating Poly.
    Even though the lecture is on paper and not some fancy ppt presentation but the presented material is to the core and very valuable, I am impressed by the step by step, hand calculation, sequence of the presentation, topics covered, Q&A that come to mind.
    Looking forward to the bext lecture of HW implementation of shift/XOR operation to perform the divisin.
    Thank u 🙏

  • @peterholzer4481
    @peterholzer4481 3 года назад +1

    Excellent explanation. Wish our university math professor was that clear 30 years ago. But since he wasn't I had to figure out that all those polynomial operations are just shifts and XORs in disguise myself, which was probably a good thing. OTOH, I never understood why you would use something complicated like polynomials instead of something simple like bitstrings. I put that down to mathematicians just using what they are familiar with. But now I see that proving properties (like the maximum length of a burst error that can be detected) is easier using polynomials. So another insight after 30 years :-).

  • @CharlesBurnsPrime
    @CharlesBurnsPrime 3 месяца назад

    This isn't merely an excellent deep dive into one of the most important algorithms in modern computing, but such depth in a RUclips video they got so many views reminds me that there are still intelligent, curious people.

  • @niclaskron3384
    @niclaskron3384 5 лет назад +13

    Ben, glad to see that you are back. You are so incredibly talented at explaining these things in a simple manner. Thank you :o)

  • @davedaley9093
    @davedaley9093 3 года назад +1

    During the early part of my career I was a hardware tech so I attended a number of classes where the instructor would attempt to explain redundancy checks by tracing through logic diagrams. On something like the error correction logic for reading a disk track this was near impossible. This explanation clears up the questions I always had but never answered. Since I never saw the hardware in this area fail it wasn't a problem but now my curiosity has been satisfied.

  • @just_morby
    @just_morby 5 лет назад +2

    I came here to watch some arduino systems transmit data and suddenly BAM! I'm back at the uni again. The only difference is (contrary to my professors) he makes it easier to understand. Well explained. Earned my sub. Keep it up!
    Peace out

  • @justrichard2491
    @justrichard2491 4 года назад

    Speaking as someone who has no proper credentials to be watching your video, I found it very understandable. And, as much as I would like to pat myself on the back for being so clever, I'm posting this note to congratulate you on an outstanding explanation! Nothing but net!

  • @gesprengt6561
    @gesprengt6561 5 лет назад +93

    Is there an exception for 0 in the axiom of multiplicative inverse?

    • @BenEater
      @BenEater  5 лет назад +87

      Yes; good catch! I guess I neglected to mention it, but there is indeed an explicit exception for 0. Division by zero is undefined.

    • @halbeard2996
      @halbeard2996 5 лет назад +51

      A rigorous definition for fields actually demands that all of the multiplication rules are not defined for 0. How 0 behaves in multiplication then only follows from the distributive law (i.e. 0•anything = 0).
      If you know about groups then you can think of fields as being made up of an additive group and a multiplicative group connected by the distributive law, where the mutliplicative group doesn't contain the neutral element from the additive group.
      Everything else from the definition in the video is correct.

    • @Sporkabyte
      @Sporkabyte 5 лет назад +2

      Halberd Rejoyceth there should also be an axiom that says that the field is closed with respect to its binary operations

    • @TJStellmach
      @TJStellmach 5 лет назад +1

      @@Sporkabyte That follows from the group axioms.

  • @TheFreeSpiritKID
    @TheFreeSpiritKID Год назад

    Extraordinary quality. You explained CRC way better than my Profs when studying electrical engineering. Nearly forgot about this topic. Thank you!

  • @nataphonkabkaew1965
    @nataphonkabkaew1965 6 месяцев назад

    The ultimate teaching about crc. I hope i find this when I studied undergrads.

  • @trungpham704
    @trungpham704 3 месяца назад

    This is the best CRC video on youtube !!! Thank you so much for the amazing knowledge

  • @Lorden1516
    @Lorden1516 3 года назад +1

    Thank you for the well prepared walkthrough..!
    Trying to write a software implementation, I read many guides online, tested different calculators, heard of all the terms around CRC, and it only left me wanting to shoot all the guide authors...
    You instead started from the beginning, stopping at the problems that resulted in CRC's weird traits.. I also wondered why mathematicians would come up with this fringe thing, but you showed that it's actually pretty general and super powerful, so their involvement was justified.

  • @nrnoble
    @nrnoble 2 года назад

    Excellent. I have had a basic understanding of CRC for over 40 years (300 baud modem days), but under understood the black box details of how it works. Thanks

  • @myahmitchell
    @myahmitchell 5 лет назад +15

    Another great video! Really taking the magic out of computers, which is awesome.

  • @HarshColby
    @HarshColby 3 года назад +1

    Definately one of the best and most easily understood explanations I've heard. Bravo. Understanding the detailed math isn't essential. The concept is, and explained very well here.

  • @buzzy1010
    @buzzy1010 3 года назад

    Although it's long, I could watch it without any skipping or altering the playback speed. Now I feel like I fully understood CRC and can even apply it to different situations. Helped me a ton studying for my course. Amazing work!

  • @ACTlVISION
    @ACTlVISION 5 лет назад +12

    I knew I should've paid more attention in linear algebra... also this is the best CRC explanation I've seen

    • @duncanwalduck7715
      @duncanwalduck7715 5 лет назад +1

      Yhup! - you know there's no hiding that there's chunky maths in it from the slide at 0:35 (generator, fields, modulo, polynomial) but if I hang in there for 45 minutes plus re-plays, I know there's already a circuit-board implementation to look forward to in the next video. I've been hearing these terms and feel I #ought to# be able to understand them at face value [with some discrete maths background] rather than with a hand-wave over, "you spin it round and do a checksum (of sorts)". I trust you, Ben: commence the brain-dump!

  • @FewMoreWords
    @FewMoreWords 5 лет назад

    Excellent video. Straight to the point. No need for fancy graphics. I say again: excellent.

  • @JoannaHammond
    @JoannaHammond 5 лет назад +2

    I remember (a long time ago) learning all the error correction stuff, I will have to say, you explain it so well. You'd make a great lecturer.

  • @SyphistPrime
    @SyphistPrime 5 лет назад +1

    Holy shit, you did a really good job explaining this, starting with simplified and generalized concepts slowly building up to how it's actually done and do a real world example.

  • @cperzam7700
    @cperzam7700 4 года назад +1

    Dear Ben,
    Impressive, what an explanation. Thank you very much for this amazing video, I'm subscribed now and will check your videos as I can. I'm a network engineer trying to fill all the gaps I, as Mr. Junk Mail promised to ourselves would do. Most of these missing pieces are details, so it takes much more time to find the information about it and then fully comprehend it, making it really difficult due to my daily activies. I invested both my days off for searching, refreshing long forgotten math concepts as it was required, practicing on paper just to get a blurry approach of how CRC works, how are the generator polynomials selected, if they are sent to the receiver, if the receiver already has the polynomial beforehand, etc. I was so close to give up for the week, all ready to go work and forget about it slowly overtime. I can't thank you enough for this, but there is something I can do. You can count on me watching your videos and recommend them to my coworkers who also seek to strengthen their knowledge.
    Regards from México.

  • @atharvavaidya9245
    @atharvavaidya9245 5 лет назад +6

    I'm so glad I found this channel! Your explanation is outstanding...can't thank you enough!!

  • @evanlane1690
    @evanlane1690 3 года назад

    We'll that's something I never knew I wanted to know. Now I do thanks to someone spending a ton of their time making a 47-minute-long video.
    Awesome! Thanks!

  • @hinarinlove
    @hinarinlove 3 года назад

    This is the best channel on RUclips about computer engineering. I really love your videos

  • @doryiii
    @doryiii 5 лет назад

    This video was hands down the best explanation of finite field I've ever seen. Not to say that my university professors are not impressive or anything, but sometimes explaining things just weren't their forte...

  • @danymogh
    @danymogh 3 года назад

    I really liked this video. I too am an electrical engineer and i've used CRC some times but never took the effort to see why it works. Thanks Ben. I wish you were my professor

  • @MaximilianRehkopf
    @MaximilianRehkopf 2 года назад

    This video is a gift! CRC is one of those concepts we all use but never stop to ask how it works, and why.
    I'd absolutely love to see a video from you on Reed-Solomon codes as used in CDs.

  • @murugesanr1691
    @murugesanr1691 5 лет назад +2

    I have ever seen...such a explanation for CRC .
    Thank you very much sir

  • @clarkinthedark1
    @clarkinthedark1 3 года назад

    Mind blown at the XOR part around minute 29.. excellent observation

  • @hannakrupowiecka6311
    @hannakrupowiecka6311 5 лет назад +1

    This is a really good video. Everything is explained clearly and patiently and I only had to pause at the monstrous polynomial division. I'm really happy to see that you continue to do these videos

  • @burnstick1380
    @burnstick1380 5 лет назад +16

    20:51 i don't know if mentioned but well at the top right thats equals to the truth table of an XOR-gate (That to the right as well). And that below equals to the truth table of an AND-Gate
    EDIT: okay well to be fair: you have to "forget" the multiplication, addition, etc. and you have to take each value as an input
    EDIT 2: well you said it at 28:50 but well im proud that i at least figured that one out by myself

  • @srapdy6960
    @srapdy6960 5 лет назад

    The clarity and depth of content in your videos are unmatched. Simply outstanding!

  • @PabloGonzalez-ub6lu
    @PabloGonzalez-ub6lu 5 лет назад +2

    I was looking for something like this a few weeks ago. The structure and clarity of your explanation is remarkable. I look forward for the HW implementation video.

  • @Twigleaf
    @Twigleaf 5 лет назад +1

    Back in the UseNet days, a parity reprocess was pretty much needed for large binary posts. I always thought the QuickPar .PAR2 rebuild process was one of the most ingenious and advanced engineering inventions ever. The way it could take ANY location of a 2 GB file (example) that was corrupt in ANY random spot, ... all you needed was a set number of PAR2 blocks to rebuild it. The idea of being able to rebuild any number of corrupt sections in the fileset was mind boggling. You could also rebuild entire lost segments. To this day, I do not fully understand how the Reed-Solomon algorithm EC worked to repair usenet sets. As long as the author published a set of PAR2 repair blocks, you could fix anything. To be able to fix an error in a 2 GB file, with a small 5 MB parse block was ingenious, and it had to work similar to how CRC worked, but on a much broader scale.

    • @kaitlyn__L
      @kaitlyn__L Год назад

      Reed-Solomon relies mainly on having a large enough size of signal bits versus data bits, that instead of the maths you just have a lookup table of valid byte codes. Anything invalid is then assumed to have intended to be the closest valid one (massive over simplification but I assume that’s what the “repair blocks” contained, the valid codes).
      For instance CDs use 14 bits to encode a byte, with the valid code words arranged in a particular geometric way through the possibility-space to keep the distance between them consistent. So quite large errors can still be recovered (and CDs use further techniques on top, interleaving, duplication, etc so all in all you can lose about a fifth of all the signal but the data will still be recoverable).

  • @richards7502
    @richards7502 11 месяцев назад

    WOW, this is by far the most complicated thing I have understood from start to end. Fantastic explanation by Ben. Now onto the hardware build video

  • @MarcSputnik
    @MarcSputnik 3 года назад

    Well explained and better than any lectures about information/coding-theory during my studies! Furthermore links the topics (algebra, fields, polynoms) with practical use.

  • @cherrypoo0806
    @cherrypoo0806 3 года назад

    Super video! I applauded for $2.00 👏

  • @Torchl146
    @Torchl146 3 года назад +1

    So much better explained then in my master degree EE course XD thx for the exam prep video :DD

  • @hepbitkin9854
    @hepbitkin9854 2 года назад

    Best video about CRC on the internet.

  • @JakkuSakura
    @JakkuSakura 4 года назад

    Fantastic video! Even though my professor mentioned CRC in her class, I still feel the CRC she taught is not clear enough for me. Then I find this. Thanks.

  • @xotmatrix
    @xotmatrix 5 лет назад +4

    Great video, Ben. I've used and coded CRC routines but have never understood the fundamentals of them. Can't wait for the next installment!

  • @brutexx2
    @brutexx2 Год назад

    I had a question, but got it afterwards. I'll explain it too in case it helps someone else:
    30:53 Here it's said that the remainder is added to the original message - but shouldn't we actually be adding "the divisor minus the remainder"? So that the message then becomes a multiple of whatever divisor we had?
    A: See, by adding the remainder, since we're using that different field, this is the same as subtracting it. So essentially we're making the message a multiple of the divisor, by taking off the original message of its remainder.

  • @mattquick5045
    @mattquick5045 5 лет назад

    I gaven't even finished an elementary course in Linear Algebra and I just spent half an hour watching a video that talks about higher level algebra and computer science. Love it.

  • @nathanjohnson9715
    @nathanjohnson9715 3 года назад +1

    I don't know why, but the "oh wait a minute, there's no such thing as six" made me laugh. Thanks as always for the incredible videos Ben!

  • @MrMxt3
    @MrMxt3 5 лет назад

    Awesome! I love how clearly you are able to convey this while using simple pen and paper. No over-fancy graphics and a very well thought-through structure.

  • @lukasbrown6114
    @lukasbrown6114 Год назад

    This is a great video to highlight the importance of prime numbers in computing and understanding the value of them from a computing aspect. Greatly appreciate seeing an underlying hint towards primes!

  • @jaoudi
    @jaoudi 2 года назад

    Thanks!

  • @cj90210x
    @cj90210x 5 лет назад +1

    Absolutely superb videos, Ben. The effort you go to in producing these is phenomenal. Quite simply, thank you.

  • @gedesatya6372
    @gedesatya6372 2 года назад

    How can you pick such perfect examples, man. That's where the magic comes from. Doesn't take too much time to explain, yet answers all the "what if"s!

  • @prasadbeer5288
    @prasadbeer5288 2 года назад

    Congratulations Ben, You have single handedly explained the weird math and rational behind the complex operations that take place with such ease. Loved and learnt !!!

  • @Zwedgy
    @Zwedgy 5 лет назад +451

    Yeah, I too hate when I want to say "Hi!", but say "Ho!" to a girl.

    • @-yttrium-1187
      @-yttrium-1187 5 лет назад +29

      I have the opposite problem

    • @calmeilles
      @calmeilles 5 лет назад +31

      "O hai!" No... wait... let me checksum that."

    • @R3lay0
      @R3lay0 5 лет назад +6

      When is he finally gonna release to video on how to avoid errors in RL?

    • @fanisdeli
      @fanisdeli 5 лет назад +14

      @@R3lay0 he is a computer engineer.. We don't have that "RL" thing you're talking about :(

    • @jamestheotherone742
      @jamestheotherone742 5 лет назад +16

      I bet she didn't check your bits.

  • @momcilomrkaic2214
    @momcilomrkaic2214 2 года назад +1

    Studying for computer networks final. This really helps great explanation!

  • @arjieparjiie
    @arjieparjiie 2 года назад

    Ben, this is so well done - I could listen to you for hours. Thanks for this fantastic video that helped me brush up the math I needed for implementing some of the firmware/embedded tasks I've been doing at my job.

  • @JohnSmith-one
    @JohnSmith-one 5 лет назад +1

    I finally got how P can be equal to NP. All thanks to your video, Ben. Thank you so much!

    • @BenEater
      @BenEater  5 лет назад +2

      Glad I could help! :)

  • @Mr_ToR
    @Mr_ToR 5 лет назад +1

    37:11 small problem in the editing. awesome video as always. thnx a lot. I've leatned so much from your videos. you're the best.

  • @jimgolab536
    @jimgolab536 4 года назад +1

    Wow! Unbelievably clear explanation. Thank you!

  • @ChrisAthanas
    @ChrisAthanas 4 года назад

    Very patient teacher. Thanks for bringing clarity to this subject

  • @diminddl
    @diminddl 5 лет назад +1

    You explain math better than my math teacher.

  • @xjabon
    @xjabon 5 месяцев назад

    The video which make me really understand the trick behind CRC. Didn't know that it also relies on finite or Galois field. Thanks!

  • @jonathan8530
    @jonathan8530 5 лет назад +1

    Perfect timing! Just as we were talking about this at university. Great resource, love it :)

  • @ennihlist885
    @ennihlist885 4 года назад

    This guy deserves a lot more subscribers. I strongly recommend this Man🙄

  • @stevemiller1581
    @stevemiller1581 5 лет назад

    Ben, the best think about your videos is their detail. I appreciate you taking the time to share your knowledge. I have watched every one you have made multiple times.

  • @flamewiseify
    @flamewiseify 3 года назад

    I did not expect finite fields. I'm so impressed. Do not regret my patreon.

  • @RickertBrandsen
    @RickertBrandsen 2 года назад

    absolutely phenomenal video... Ben you are divine in explaining things!

  • @rokoala2636
    @rokoala2636 5 лет назад +4

    I knew that mathematics was important in computing, but this video really highlights how important it is.
    Fantastic video, very complicated but very well explained.
    Thanks for your efforts, you aren't just sharing knowledge

  • @gloverelaxis
    @gloverelaxis 5 лет назад

    This is an unbelievably elegant and powerful idea. What an incredible invention!

  • @delve_
    @delve_ 5 лет назад

    Some one suggested your channel in the comments of another video. This is the first video I've seen by you. I'm in love.

  • @MrVipulLal
    @MrVipulLal 2 года назад

    Brilliant video, very well explained. Many thanks, Ben. Love your channel

  • @levimckenzie93
    @levimckenzie93 3 года назад

    Super video! I applauded for A$5.00 👏👏

  • @melkiorwiseman5234
    @melkiorwiseman5234 5 лет назад +8

    I noticed a clue in there as to how error correction can work. Something about knowing the received content and the divisor enabling you to reconstruct the original message? I'd guess that an expansion of that is what allows a corrupted received message to be reconstructed, so long as not too much of the message has been damaged?
    Of course this is beyond what a CRC could do, but it appears to be an expansion on how the CRC works?
    Edit: Also, it seems that I'm now coming to understand what a polynomial is, in spite of never learning about them in school (left too early - thereby lies a sad story totally unrelated to the video).

  • @mironix2
    @mironix2 5 лет назад

    I've had this math at my university - i hated it - you made me love it again. Thank you.

  • @toddmarshall7573
    @toddmarshall7573 3 года назад

    30:23 Your magic X16, x12, x5, x1 is all bits zero except the MSB and the LSB which are 1. It then moves to MSB-4 and LSB+4 and makes them 1. But it quits there. It doesn't move to MSB-8 and LSB+8. At this point we get X9 and X8 (i.e. adjacent bits). I wonder why? I will probably have to remove this comment by the time I get to the end of your presentation. However, your explanation is better than I have ever seen in my formal education...or even read in the literature. Thanks (even though I'm regrettably coming to the party 2 years late).