Robert Low

When you last used a mobile phone to access any kind of data (you may even be using one now), how was your experience? Could you read your email without any glitches? Was your web browsing experience fuss-free? Did an app tell you what you needed to know about where you were, or where you wanted to be? And how was BBM – did your colleague's snippet of information turn out to be useful?

The chances are that any of these applications actually worked, and worked properly. In fact, when you consider the atmospheric conditions that they may have gone through – walking in cities covered in tall buildings, or working on a train, or in a spot of poor mobile coverage – then it's a minor miracle that right and meaningful data got through at all.

This is because digital communications rely on error correction. Whether it regards a mobile phone or a space probe, there is reliance on the part of both the sender and receiver, that the information has to be right and delivered as it was intended. In the case of both, there is liable to be some interference on the signal, so what is received is not necessarily what was sent. Correcting the problem is undertaken by adding extra information before the signal is transmitted.

Many of us know a little bit of how this works, with the tried-and-tested formula of the Parity Check. The binary transmission is split into chunks of seven. Before the signal is transmitted at the end of each group of 7, an additional bit is added in such a way that the total number of 1s in the new chunk of 8 is an even number. When the signal arrives, if there is an even number of 1s in the group of 8 then it looks to be more acceptable – more likely of being right – than if the number of 0s is an odd number. This makes the process of spotting mistakes fairly easy to automate, in a way that most of us now don't even see.

Robert Low's fascination with digital communications and the still-growing world of error checking has been captured in many of his talks. While parity checking provides a corrective action for a network that is constantly there, it is not always the best approach. "It is fine for something like email, but it's not so great for live, streamed conversations. obviously, if you look at a picture of Saturn's rings arriving, since it takes over an hour for the picture to arrive, there's not much point in asking 'Can you send it again?'".

In more extreme cases such as interplanetary communications, there are more sophisticated ways of checking than with parity. Instead of adding an extra 1 to a group of 7, an extra 3 bits are added to an existing group of 4, so that if something arrives and looks right, then it is rather likely to be so. If the data arrives and isn't based upon a pattern of how to add 3 bits to 4, then as long as only one mistake has been made, the original group of 7 can be reconstructed without having to retransmit the message. There is enough extra information in the group to enable this to happen.

"They're always called Parity Checks, even though they're no longer just about counting up whether the number of 1s is even or odd; you're looking at where they are. You might have a digit that says that the total number of 1s in positions 1, 3, 5, and 7 is even, and another for 2, 4 and 6 and so on.

By choosing these in a cunning way, you can set it up so that if a single mistake is made in the transmission, either in the original message or in the additional bits, then you can work out where that single error must have been. There's only one string of 0s and 1s that you can legally have to begin with, which will end up with what you've received."

Once these error checks - complete with a dash of cunning - are in place, it's then down to finding the best outcome. And, at this point, things really matter to the consumer. The greater the checks, the bigger the "data chunks", and the bigger the download. What consumers can't do – at least easily – is to tell their network that a 100K file from the CEO is more important and may require another 100K or error checking, than 200 emails of 1K each from everyone else. Even if they could, would they be prepared to pay for the guarantee?

Because of the sheer volume of data that is now sent and received, there are reasonable steps which are taken on the part of networks in terms of what is an acceptable experience in terms of data quality, and we have certainly moved on from the NO CARRIER days of modems and acoustic couplers. Earlier forms of error correction may not have coped with the demands that we now put on over-the-air digital communications.

Low admits that consumer expectation has changed, concurrently with this increase in quality. "You now rarely receive a garbled email and think that it must be a transmission error. You usually end up blaming the fingers at the other end! It's a very powerful, mature discipline now.

"If you're watching digital TV, you're accustomed to the fact that if the reception's poor or if the weather's usually very good - if the weather's good you find that the picture will often pixellate for a bit, and then recover - this is thanks to the power of the error correction that's being used. Without it, you would find a much worse picture, all of the time".

Even with errors, there are ways of "patching up" the problem. In the case of digital TV, this is where pixellation gives distorted blocks, but not black ones; or where a CD sounds garbled through scratching, but doesn't stop playing. The key is in the strength and complexity of the error-correcting code. When one thinks of what consumers now experience in television, such as HD-ready 3D, then it is a phenomenon which simply could not work without robust error correction. Solar flares and weather patterns make domestic reception prone to all sorts of problems, meaning that an infrastructure has to be in place which is capable of throwing around massive amounts of data – amounts that will only get bigger as more people want greater innovation on bigger screens.

Such is the expectation of digital communications, that it's human nature to notice when it doesn't work. Being able to see the possibilities of a problem, ironically, helps. We may forgive a library's CD if it jumps, but not if it's an MP3 of the same music from iTunes. If the signal was garbled along the way, then the blame is directed back to the sender for publishing unacceptable material, rather than perhaps in any conditions that may have added the garbling.

 

Streams of thought

Industry activity is currently focusing on a form of transmission which works across wired and wireless infrastructure: streamed data. Streaming offers a whole new set of challenges, because the data has to be checked on-the-fly. Less checking results in a poor reception, while greater checking results in overbuffering. The codes have to be right. "Convolutional codes are 'built out of the message'. They are delayed and amalgamated in a way so that when the message comes in, you don't have to wait for the next 128 bits before you look for what's wrong. The error correction is performed on the stream, which means that you don't get stuttering of a streamed video or of a voice signal".

Finding new algorithms is always a problem, as it involves an understanding of where the errors might occur: gap analysis, if you will. While much of this is due to intense research and ongoing test-and-learn practice, new codes cannot always be summarised algebraically. Maths does help, but isn't a panacea.

For example, if we think about the block codes, the ones that are well understood, in general, we might be able to correct 4 errors in a string of 128 bits but the question is, how do you find the string where you make the smallest number of possible changes in that group of 128, where all of its parity checks work out? The obvious thing to do is to try to change every single one of them, one at a time, and see if any of those do it. Then you change all possible pairs, then you change all possible triplets, and keep going until you find what appears to be an illegal message and realise that you got to this by assuming that with the smallest number of possible errors, it must be right.

But you can see that the number of calculations involved in doing that is enormous, as the strings get longer and the number of corrections possible get larger. But there are methods based on matrix theory which enable you to cut down the work a lot."

One of the algebraic methods used in error correction was invented by Srinivasa Ramanujan, long before the concept even existed. It was Ramanjan who considered the methods now used, to simply be "interesting algebraic problems". What he invented was a technique that could be used to perform error correction in a type of code that had yet to exist.

Maths helps in moving on being locked in test-and-learn to the development of matrix theory, eventually ending up with some way of figuring out where the errors must be in a given string. However, it's that level of maturity that we don't yet have in convolutional codes. However, what we don't have is the theoretical framework that gives the potential for what can work and what can't, and in that, what the general procedure is for for constructing effective checks.

These complexities don't necessarily matter with bandwidth, as much as with physical storage. If we are happy to accept robustly-checked data because of the greater chance of it being right, then the data volume will be greater. If the signal is crammed into a small amount of storage, then recipients may be willing to put up with a relatively corrupted signal, as is the case with image compression. It is, as Low suggests, almost the inverse of error correction: consumers are willing to hold images in smaller data volumes as long as the quality of the image is maximised and fidelity loss is kept at a minimum.

Thus, error correction in image compression is used inversely. "What you store is what would have been the original message, if what you had received had error correction bits in it. When you unpack it, you put back in the error correction bits and read that as if it was the picture, and it turns out that it does quite a good job of throwing away information, but not in a random way; in a way that preserves as much of the information as possible. If you have ripped a CD then you have made this decision: you are given the option of how high a fidelity a signal to get, and you pay for that by getting fewer onto your MP3 player. People maybe don't think of it in those terms, but they make that tradeoff: how reliable do I want the information, and how much am I prepared to pay for it."

Low sees the future as being increasingly based around consumer desires for more data, and a greater expectation that the data will be right first time. As bandwidth and computing power go up, consumers will be using codes which are more sophisticated – although they won't necessarily need to know what these more sophisticated codes are, and do. The cost of storage and bandwidth is increasingly less of an issue "... and your TV will have more processing power than PCs did 20 years ago. It will be able to do the decoding and present a signal, fast".

Do remember to thank Low and the still-growing industry of data quality and error correction, the next time that you receive an email which is spot-on – at least in data reception. What you do with the content is up to you.

 

Robert Low is Reader in Mathematical Physics at Coventry University.