{"base":{"id":"cs8-03","subject":"Networks","title":"Checking data: echo checks","scene":"network","steps":[{"mode":"noise","eyebrow":"Transmission errors","title":"Bits can flip","body":"Data travels as bits. Interference on the way can flip a 0 into a 1, or a 1 into a 0. Turn up the noise and send the letter A a few times.","controls":[{"id":"noise","label":"Noise on the cable","min":0,"max":50,"step":5,"value":20,"unit":"%"}],"actions":[{"id":"send","label":"Send the letter A"}]},{"mode":"echo","eyebrow":"The echo check","title":"Send it back to compare","body":"In an echo check, the receiver sends an exact copy back. The sender compares it with the original. If they differ, it sends the data again. Try it with some noise.","controls":[{"id":"noise","label":"Noise on the cable","min":0,"max":50,"step":5,"value":25,"unit":"%"}],"actions":[{"id":"send","label":"Send with an echo check"},{"id":"resend","label":"Send again"}]},{"mode":"limit","eyebrow":"Limits","title":"Where did it go wrong?","body":"The echo check spots a difference, but it can't tell where the error happened. Make the noise strike on the way there, then on the way back. What does the sender do each time?","actions":[{"id":"there","label":"Error on the way there"},{"id":"back","label":"Error on the way back"}]},{"mode":"quiz","look":"echo","eyebrow":"Check yourself","title":"Compare the copies","body":"A sender transmits 10110010. The echo that comes back is 10100010.","question":"What should the sender do?","options":["Send the data again","Accept the data","Ask the receiver to fix it"],"answer":0,"right":"Correct. The fourth bit is different, so an error happened somewhere. The sender sends again.","wrong":"Not quite. Compare the two codes bit by bit. Are they the same?"}],"more":[{"type":"cards","id":"ideas","eyebrow":"Popular idea vs science","title":"Common mix-ups","items":[{"tag":"Popular idea","title":"\"The receiver can tell when the data is wrong.\"","body":"With an echo check, only the sender compares, because only the sender still has the original."},{"tag":"Popular idea","title":"\"A different echo means the receiver got bad data.\"","body":"Maybe. But the damage might have happened to the echo on the way back. The check can't tell, so it simply resends."},{"tag":"Popular idea","title":"\"Errors are so rare that checks don't matter.\"","body":"Networks move billions of bits every second, so even a one-in-a-billion error happens every second."}]},{"type":"cards","id":"steps","eyebrow":"The method","title":"Echo check in five steps","items":[{"tag":"1","title":"Send","body":"The sender transmits the data and keeps a copy of the original."},{"tag":"2","title":"Echo","body":"The receiver sends an exact copy of what it received straight back."},{"tag":"3","title":"Compare","body":"The sender compares the echo with the original, bit by bit."},{"tag":"4","title":"Match?","body":"If every bit matches, the data is accepted."},{"tag":"5","title":"Different?","body":"If any bit differs, the sender transmits the data again."}]},{"type":"cards","id":"more-checks","eyebrow":"Going further","title":"Other ways to check","items":[{"tag":"Parity bit","title":"One extra bit","body":"The sender adds a bit so the number of 1s is always even. If the receiver counts an odd number of 1s, a bit has flipped."},{"tag":"Checksum","title":"A number from the data","body":"The sender adds up the data in a set way and sends the total too. The receiver does the same sum; if the totals differ, there was an error."}]},{"type":"activities","id":"try","eyebrow":"Try it at home","title":"Human echo check","items":[{"title":"Whisper and echo","time":"15 minutes","need":["Two or more people","Paper and a pen","A noisy room (music or TV on)"],"steps":["Write a secret 8-digit code of 0s and 1s, such as 01001101. Don't show it.","Whisper it once across the room to your partner, who writes down what they heard.","Your partner whispers back what they wrote. You write down the echo.","Compare the echo with your original. If they differ, whisper again. Count how many tries it takes."],"why":"The noise plays the part of interference. Only you, the sender, can check, because only you know the original.","safety":"Keep the music at a comfortable volume."}]},{"type":"quiz","id":"quiz","eyebrow":"Quiz","title":"Six more questions","questions":[{"question":"What is a transmission error?","options":["A file that is too big","A bit changed on the way","A slow internet connection"],"answer":1,"right":"Correct. Interference can flip bits while data travels.","wrong":"Not quite. Think about what happens to the bits themselves."},{"question":"In an echo check, who compares the data?","options":["The receiver","A third computer","The sender"],"answer":2,"right":"Correct. The sender still has the original to compare with.","wrong":"Not quite. Who still has the original?"},{"question":"Sent 0110, echo 0110. What happens?","options":["The data is accepted","The data is sent again","The cable is replaced"],"answer":0,"right":"Correct. The copies match, so the data is assumed correct.","wrong":"Not quite. Compare the two codes."},{"question":"Why does an echo check slow a network down?","options":["It deletes files","Every piece of data crosses the link twice","It switches the router off"],"answer":1,"right":"Correct. Sending everything back doubles the traffic.","wrong":"Not quite. Think about how many times the data travels."},{"question":"The data arrived correctly but the echo was damaged. What does the sender do?","options":["Nothing","Fixes the echo","Sends the data again"],"answer":2,"right":"Correct. The sender only sees a difference, so it resends to be safe.","wrong":"Not quite. Can the sender tell where the error happened?"},{"question":"Which could cause a transmission error?","options":["A strong password","A large screen","Interference from a big motor"],"answer":2,"right":"Correct. Electrical interference can flip bits in a copper cable.","wrong":"Not quite. Think about what disturbs signals."}]},{"type":"checklist","id":"check","eyebrow":"Self-check","title":"I can explain…","items":["what a transmission error is and one cause","the steps of an echo check","why only the sender can do the comparison","two limits of the echo check"]},{"type":"keywords","id":"words","eyebrow":"Key words","title":"Words to know","items":[{"word":"bit","meaning":"A single 0 or 1."},{"word":"transmission error","meaning":"A bit that changes while data travels."},{"word":"echo check","meaning":"The receiver sends the data back so the sender can compare it with the original."},{"word":"resend","meaning":"Transmit the same data again after an error is found."},{"word":"parity bit","meaning":"An extra bit that makes the number of 1s even, to help spot errors."},{"word":"checksum","meaning":"A number calculated from the data and sent with it, to check for errors."}]},{"type":"sources","id":"sources","title":"Sources","items":["BBC Bitesize GCSE Computer Science: Error checking"]}]},"overlay":null}