# Colossus computer

Developer A Colossus Mark 2 computer being operated by Dorothy Du Boisson (left) and Elsie Booker. The slanted control panel on the left was used to set the "pin" (or "cam") patterns of the Lorenz. The "bedstead" paper tape transport is on the right. Tommy Flowers Post Office Research Station Special-purpose electronic digital programmable computer First-generation computer Mk 1: December 1943; Mk 2: 1 June 1944 8 June 1945 10 Paper tape, teleprinter output Custom circuits using valves and Thyratrons. A total of 1500 in each Mk 1 and 2400 in Mk 2. Also relays and stepping switches ≤ 20 000 × 5-bit characters in paper tape loop None (no RAM) Indicator lamp panel console switches, plug panels and photocells reading paper tape

Colossus was the world's first electronic digital computer that was at all programmable. The Colossus computers were used by British codebreakers during World War II to help in the cryptanalysis of the Lorenz cipher. Without them, the Allies would have been deprived of the very valuable intelligence that was obtained from reading the vast quantity of encrypted high-level telegraphic messages between the German High Command (OKW) and their army commands throughout occupied Europe. Colossus used thermionic valves (vacuum tubes) to perform Boolean operations and calculations.

Colossus was designed by engineer Tommy Flowers to solve a problem posed by mathematician Max Newman at the Government Code and Cypher School (GC&CS) at Bletchley Park. The prototype, Colossus Mark 1, was shown to be working in December 1943 and was operational at Bletchley Park by 5 February 1944.[1] An improved Colossus Mark 2 first worked on 1 June 1944,[2] just in time for the Normandy Landings. Ten Colossus computers were in use by the end of the war.

The destruction of most of the Colossus hardware and blueprints, as part of the effort to maintain a project secrecy that was kept up into the 1970s, deprived some of the Colossus creators of credit for their pioneering advancements in electronic digital computing during their lifetimes. A functioning replica of a Colossus computer was completed in 2007, and is on display at the The National Museum of Computing at Bletchley Park.[3] It has sometimes been erroneously stated that Alan Turing designed Colossus to aid the Cryptanalysis of the Enigma machine.[4] Turing's machine that helped solve Enigma, was the electromechanical Bombe, not Colossus.[5]

## Purpose and origins

The Lorenz SZ machines had 12 wheels each with a different number of cams (or "pins").
 Wheel number BP wheel name[6] Number of cams (pins) 1 2 3 4 5 6 7 8 9 10 11 12 $\psi$1 $\psi$2 $\psi$3 $\psi$4 $\psi$5 $\mu$37 $\mu$61 $\chi$1 $\chi$2 $\chi$3 $\chi$4 $\chi$5 43 47 51 53 59 37 61 41 31 29 26 23

The Colossus computers were used to help decipher radio teleprinter messages that had been encrypted using the electromechanical Lorenz SZ40/42 in-line cipher machine. To encipher a message with the Lorenz machine, the 5-bit plaintext characters were combined with a stream of key characters. The keystream was generated using twelve pinwheels. British codebreakers referred to encrypted German teleprinter traffic as "Fish" and called the SZ40/42 machine and the intercepted messages "Tunny". Colossus was used for finding possible Lorenz key settings – not completely decrypting the message. It compared two data streams, counting a statistic based on a programmable Boolean function. The ciphertext was read at high speed from a paper tape. The other stream was generated internally, and was an electronic simulation of part of the Lorenz machine. If the count for a setting was above a certain threshold, it would be sent as output to an electric typewriter.

The logical structure of the Lorenz machine was diagnosed at Bletchley Park without a machine being seen–something that did not happen until almost the end of the war.[7] First, John Tiltman, a very talented GC&CS cryptanalyst derived a key stream of almost 4000 characters from a German operating blunder in August 1941. Then Bill Tutte, a newly-arrived member of the Research Section used this key stream to work out the logical structure of the Lorenz machine. He correctly deduced that it had twelve wheels in two groups of five, which he named the χ (chi) and ψ (psi) wheels, and the remaining two the μ mu or "motor" wheels. The χ wheels stepped regularly with each letter that was encrypted, while the ψ wheels stepped irregularly, under the control of the motor wheels.[8]

In order to read messages, there were two tasks that had to be performed. The first task was "wheel breaking", which was the discovery of the pin patterns for all the wheels. These patterns were set up once on the Lorenz machine and then used for a fixed period of time and for a number of different messages. The second task was "wheel setting", which could be attempted once the pin patterns were known.[9] Each message encrypted using Lorenz was enciphered at a different start position for the wheels. Knowing that in German, as in other languages, there is a non-random distribution of the different letters, and that the psi wheels did not advance with each character, Tutte worked out that trying two impulses of the chi-stream against the ciphertext would produce a statistic that was non-random. This became known as Tutte's "1+2 break in".[10] The process of wheel setting found the start position for a message. Initially Colossus was used only to work out the start positions of the chi wheels, but later a method was devised for it to be used for wheel breaking as well.

Colossus was developed for the "Newmanry",[11] the section headed by the mathematician Max Newman at Bletchley Park responsible for machine methods against the Lorenz machine. The Colossus design arose out of a prior project that produced a counting machine dubbed "Heath Robinson". The main problems with the Heath Robinson were the relative slowness of electro-mechanical parts and the difficulty of synchronising two paper tapes, one punched with the enciphered message, the other representing the patterns produced by the wheels of the Lorenz machine. The tapes tended to stretch when being read, at some 2000 characters per second, resulting in unreliable counts.

Tommy Flowers of the Post Office Research Station at Dollis Hill had designed the "Combining Unit" of Heath Robinson.[12] He was not impressed by the system of a key tape that had to be kept synchronised with the message tape and, on his own initiative, designed an electronic machine which eliminated the need for the key tape. He presented this design to Max Newman in February 1943, but the idea that the one to two thousand thermionic valves (vacuum tubes and thyratrons) proposed, could work together reliably, was greeted with scepticism, so more Robinsons were ordered from Dollis Hill. Flowers, however, persisted with the idea and obtained support from the Director of the Research Station, W Gordon Radley.[13]

## Construction

Tommy Flowers was a senior engineer at the Post Office Research Station, Dollis Hill, in northwest London.[14] He had previously been involved with GC&CS at Bletchley Park from February 1941 in an attempt to improve the Bombes that were used in the Cryptanalysis of the Enigma German cipher machine.[15] He was recommended to Max Newman by Alan Turing[16] and spent eleven months from early February 1943 designing and building the first Colossus. His team included Sidney Broadhurst, William Chandler, Allen Coombs and Harry Fensom,[17][18] After a functional test in December 1943, Colossus was dismantled and shipped north to Bletchley Park, where it was delivered on 18 January 1944 and assembled by Harry Fensom and Don Horwood,[19] and attacked its first message on 5 February.[1]

The first, prototype, Colossus (Mark 1), was followed by nine Mark 2 machines, the first being commissioned in June 1944, and the original Mark 1 machine was converted into a Mark 2. An eleventh Colossus was essentially finished at the end of the war. Colossus Mark 1 contained 1500 thermionic valves (tubes). Colossus Mark 2 with 2400 valves was both 5 times faster and simpler to operate than Mark 1, greatly speeding the decoding process. Mark 2 was designed while Mark 1 was being constructed. Allen Coombs took over leadership of the Colossus Mark 2 project when Tommy Flowers moved on to other projects.[20] For comparison, later stored-program computers such as the Manchester Mark 1 of 1949 used 4050 valves,[21] while ENIAC (1946) used 17,468 valves.

Colossus dispensed with the second tape of the Heath Robinson design by generating the wheel patterns electronically, and processing 5,000 characters per second with the paper tape moving at 40 ft/s (12.2 m/s; 27.3 mph). The circuits were synchronized by a clock signal generated by the sprocket holes of the punched tape. The speed of calculation was thus limited by the mechanics of the tape reader. Tommy Flowers tested the tape reader up to 9,700 characters per second (53 mph) before the tape disintegrated. He settled on 5,000 characters/second as the desirable speed for regular operation. Sometimes, two or more Colossus computers tried different possibilities simultaneously in what now is called parallel computing, speeding the decoding process by perhaps as much as double the rate of comparison.

Colossus included the first ever use of shift registers and systolic arrays, enabling five simultaneous tests, each involving up to 100 Boolean calculations, on each of the five channels on the punched tape (although in normal operation only one or two channels were examined in any run).

Initially Colossus was only used to determine the initial wheel positions used for a particular message (termed wheel setting). The Mark 2 included mechanisms intended to help determine pin patterns (wheel breaking). Both models were programmable using switches and plug panels in a way the Robinsons had not been.

## Design and operation

In 1994, a team led by Tony Sale (right) began a reconstruction of a Colossus at Bletchley Park. Here, in 2006, Sale supervises the breaking of an enciphered message with the completed machine.

Colossus used state-of-the-art vacuum tubes (thermionic valves), thyratrons and photomultipliers to optically read a paper tape and then applied a programmable logical function to every character, counting how often this function returned "true". Although machines with many valves were known to have high failure rates, it was recognised that valve failures occurred most frequently with the current surge when powering up, so the Colossus machines, once turned on, were never powered down unless they malfunctioned.[22]

Colossus was the first of the electronic digital machines with programmability, albeit limited by modern standards:[23]

• it had no internally stored programs. To set it up for a new task, the operator had to set up plugs and switches to alter the wiring.
• Colossus was not a general-purpose machine, being designed for a specific cryptanalytic task involving counting and Boolean operations.
Colossus Indicator Lamp Panel

It was thus not a fully general Turing-complete computer, even though Alan Turing worked at Bletchley Park. It was not then realized that Turing completeness was significant; most of the other pioneering modern computing machines were also not Turing complete (e.g. the Atanasoff–Berry Computer, the Bell Labs relay machines (by George Stibitz et al.), or the first designs of Konrad Zuse). The notion of a computer as a general purpose machine—that is, as more than a calculator devoted to solving difficult but specific problems—did not become prominent for several years.

Colossus was preceded by several computers, many of them first in some category. Zuse's Z3 was the first functional fully program-controlled computer, and was based on electromechanical relays, as were the (less advanced) Bell Labs machines of the late 1930s (George Stibitz, et al.). The Atanasoff–Berry Computer was electronic and binary (digital) but not programmable. Assorted analog computers were semiprogrammable; some of these much predated the 1930s (e.g., Vannevar Bush). Babbage's Analytical engine design predated all these (in the mid-19th century), it was a decimal, programmable, entirely mechanical construction—but was only partially built and never functioned during Babbage's lifetime (the first complete mechanical Difference engine No. 2, built in 1991, does work however). Colossus was the first combining digital, (partially) programmable, and electronic. The first fully programmable digital electronic computer was the ENIAC which was completed in 1946.

## Influence and fate

The use to which the Colossus computers were put was of the highest secrecy, and the Colossus itself was highly secret, and remained so for many years after the War. Thus, Colossus could not be included in the history of computing hardware for many years, and Flowers and his associates also were deprived of the recognition they were due.

Being not widely known, it therefore had little direct influence on the development of later computers; EDVAC was the early design which had the most influence on subsequent computer architecture.

However, the technology of Colossus, and the knowledge that reliable high-speed electronic digital computing devices were feasible, had a significant influence on the development of early computers in the United Kingdom and probably in the US. A number of people who were associated with the project and knew all about Colossus played significant roles in early computer work in the UK. In 1972, Herman Goldstine wrote that:

Britain had such vitality that it could immediately after the war embark on so many well-conceived and well-executed projects in the computer field.[24]

In writing that, Goldstine was unaware of Colossus, and its legacy to those projects of people such as Alan Turing (with the Pilot ACE and ACE), and Max Newman and I. J. Good (with the Manchester Mark 1 and other early Manchester computers). Brian Randell later wrote that:

the COLOSSUS project was an important source of this vitality, one that has been largely unappreciated, as has the significance of its places in the chronology of the invention of the digital computer.[25]

Colossus documentation and hardware were classified from the moment of their creation and remained so after the War, when Winston Churchill specifically ordered the destruction of most of the Colossus machines into "pieces no bigger than a man's hand"; Tommy Flowers was ordered to destroy all documentation and burnt them in a furnace at Dollis Hill. He later said of that order:

That was a terrible mistake. I was instructed to destroy all the records, which I did. I took all the drawings and the plans and all the information about Colossus on paper and put it in the boiler fire. And saw it burn.[26]

Some parts, sanitised as to their original use, were taken to Newman's Royal Society Computing Machine Laboratory at Manchester University.[27] The Colossus Mark 1 was dismantled and parts returned to the Post Office. Two Colossus computers, along with two replica Tunny machines, were retained, moving to GCHQ's new headquarters at Eastcote in April 1946, and moving again with GCHQ to Cheltenham between 1952 and 1954.[28] One of the Colossi, known as Colossus Blue, was dismantled in 1959; the other in 1960.[28] In their later years, the Colossi were used for training, but before that, there had been attempts to adapt them, with varying success, to other purposes.[29] Jack Good relates how he was the first to use it after the war, persuading NSA that Colossus could be used to perform a function for which they were planning to build a special purpose machine.[28] Colossus was also used to perform character counts on one-time pad tape to test for non-randomness.[28]

Throughout this period the Colossus remained secret, long after any of its technical details were of any importance. This was due to the UK's intelligence agencies use of Enigma-like machines which they promoted and sold to other governments, and then broke the codes using a variety of methods. Had the knowledge of the codebreaking machines been widely known, no one would have accepted these machines; rather, they would have developed their own methods for encryption, methods that the UK services might not have been able to break[citation needed]. The need for such secrecy ebbed away as communications moved to digital transmission and all-digital encryption systems became common in the 1960s.

Information about Colossus began to emerge publicly in the late 1970s, after the secrecy imposed was broken when Colonel Winterbotham published his book The Ultra Secret. More recently, a 500-page technical report on the Tunny cipher and its cryptanalysis – entitled General Report on Tunny – was released by GCHQ to the national Public Record Office in October 2000; the complete report is available online,[30] and it contains a fascinating paean to Colossus by the cryptographers who worked with it:

It is regretted that it is not possible to give an adequate idea of the fascination of a Colossus at work; its sheer bulk and apparent complexity; the fantastic speed of thin paper tape round the glittering pulleys; the childish pleasure of not-not, span, print main header and other gadgets; the wizardry of purely mechanical decoding letter by letter (one novice thought she was being hoaxed); the uncanny action of the typewriter in printing the correct scores without and beyond human aid; the stepping of the display; periods of eager expectation culminating in the sudden appearance of the longed-for score; and the strange rhythms characterizing every type of run: the stately break-in, the erratic short run, the regularity of wheel-breaking, the stolid rectangle interrupted by the wild leaps of the carriage-return, the frantic chatter of a motor run, even the ludicrous frenzy of hosts of bogus scores.[31]

## Reconstruction

Colossus rebuild seen from the rear

Construction of a fully functional replica[32] of a Colossus Mark 2 was undertaken by a team led by Tony Sale. In spite of the blueprints and hardware being destroyed, a surprising amount of material survived, mainly in engineers' notebooks, but a considerable amount of it in the U.S. The optical tape reader might have posed the biggest problem, but Dr. Arnold Lynch, its original designer, was able to redesign it to his own original specification. The reconstruction is on display, in the historically correct place for Colossus No. 9, at The National Museum of Computing, in H Block Bletchley Park in Milton Keynes, Buckinghamshire.

In November 2007, to celebrate the project completion and to mark the start of a fundraising initiative for The National Museum of Computing, a Cipher Challenge[33] pitted the rebuilt Colossus against radio amateurs worldwide in being first to receive and decode three messages enciphered using the Lorenz SZ42 and transmitted from radio station DL0HNF in the Heinz Nixdorf MuseumsForum computer museum. The challenge was easily won by radio amateur Joachim Schüth, who had carefully prepared[34] for the event and developed his own signal processing and code-breaking code using Ada.[35] The Colossus team were hampered by their wish to use World War II radio equipment,[36] delaying them by a day because of poor reception conditions. Nevertheless the victor's 1.4 GHz laptop, running his own code, took less than a minute to find the settings for all 12 wheels. The German codebreaker said: "My laptop digested ciphertext at a speed of 1.2 million characters per second—240 times faster than Colossus. If you scale the CPU frequency by that factor, you get an equivalent clock of 5.8 MHz for Colossus. That is a remarkable speed for a computer built in 1944."[37]

The Cipher Challenge verified the successful completion of the rebuild project. "On the strength of today's performance Colossus is as good as it was six decades ago", commented Tony Sale. "We are delighted to have produced a fitting tribute to the people who worked at Bletchley Park and whose brainpower devised these fantastic machines which broke these ciphers and shortened the war by many months."[38]

## Footnotes

1. ^ a b Copeland 2006, p. 75
2. ^ Copeland 2006, p. 427
3. ^ The National Museum of Computing: The Colossus Gallery, retrieved 18 October 2012
4. ^ Golden, Frederic (29 March 1999), "Who Built The First Computer?", Time Magazine 153 (12)
5. ^ Copeland, Jack, Colossus: The first large scale electronic computer, retrieved 21 October 2012
6. ^ Good, Michie & Timms 1945, p. 6 in 1. Introduction: German Tunny
7. ^ Sale, Tony, The Lorenz Cipher and how Bletchley Park broke it, retrieved 21 October 2010
8. ^ Tutte 2006, p. 357
9. ^ Good, Michie & Timms 1945, p. 15 in 1. Introduction: German Tunny
10. ^ Budiansky 2006, pp. 58–59
11. ^ Good, Michie & Timms 1945, p. 276 in 3. Organisation: Mr Newman's section
12. ^ Good, Michie & Timms 1945, p. 33 in 1. Introduction: Some historical notes
13. ^ Randell 2006
14. ^ Flowers was appointed MBE in June 1943.
15. ^ Randell 1980, p. 9
16. ^ Budiansky 2000, p. 314
17. ^ "Bletchley's code-cracking Colossus", BBC News, 2 February 2010, retrieved 19 October 2012
18. ^ Fensom 2010
19. ^ The Colossus Rebuild http://www.tnmoc.org/colossus-rebuild-story
20. ^ Randell, Brian; Fensom, Harry; Milne, Frank A. (15 March 1995), "Obituary: Allen Coombs", The Independent, retrieved 18 October 2012
21. ^ Lavington, S. H. (July 1977), "The Manchester Mark 1 and Atlas: a Historical Perspective", Communications of the ACM - Special issue on computer architecture 21 (1): 4–12, doi:10.1145/359327.359331, retrieved 8 February 2009
22. ^ Copeland 2006, p. 72
23. ^ A Brief History of Computing. Jack Copeland, June 2000
24. ^ Goldstine 1980, p. 321
25. ^ Randell 1980, p. 87
26. ^ McKay 2010, pp. 270-271
27. ^ "A Brief History of Computing". alanturing.net. Retrieved 26 January 2010.
28. ^ a b c d Copeland 2006, pp. 173–175
29. ^ Horwood 1973
30. ^ Good, Michie & Timms 1945
31. ^ Good, Michie & Timms 1945, p. 327 in 51. Introductory: Impressions of Colossus
32. ^ Retrieved 30 October 2011
33. ^ "Cipher Challenge". Archived from the original on 1 August 2008. Retrieved 1 February 2012.
34. ^
35. ^
36. ^ Ward, Mark (16 November 2007). "BBC News Article". Retrieved 2 January 2010.
37. ^
38. ^ "Latest Cipher Challenge News 16.11.2007". Archived from the original on 2008-04-18.

## References

• Sale, Tony (2004), The Colossus Computer 1943–1996: How It Helped to Break the German Lorenz Cipher in WWII, Kidderminster, ISBN 0-947712-36-4 Unknown parameter |publoisher= ignored (help) A slender (20 page) booklet, containing the same material as Tony Sale's website (see below)