Skip to content

MARS-1 and the JNR Seat Reservation System

Abstract

MARS-1 (Magnetic-electronic Automatic Reservation System) began taking seat reservations for Japanese National Railways in January 1960, on express trains between Tokyo and Osaka. It was designed at JNR’s Railway Technical Research Institute by Mamoru Hosaka and Yutaka Ohno and built by Hitachi: a special-purpose machine with about 1,000 transistors, a magnetic drum holding 3,600 seats for fifteen days ahead, and terminals at ten ticket windows in the Tokyo area. Hosaka then argued JNR out of simply enlarging it and into a multi-computer system with control software, MARS-101, which went live in February 1964. After the new Shinkansen’s manual booking broke down, MARS-102 opened the “Green Window” ticket counters at 152 stations in October 1965. The system’s descendants still manage and issue the JR group’s tickets, and in 2025 the IEEE made MARS-1 a Milestone as the first automated railway booking system.

MARS-1 Railway Museum
The processing unit of MARS-1, built by Hitachi, at the Railway Museum in Saitama. Image: Hirakawa, CC BY-SA 4.0, via Wikimedia Commons.

An Aircraft Engineer at the Railway

Mamoru Hosaka (穂坂衛, 1920–2016) graduated in aeronautics from the University of Tokyo in September 1942, a semester early because of the war. As a naval technical officer at the Yokosuka air arsenal he calculated the structural strength of the Ohka rocket-powered suicide plane. After 1945 aircraft work was forbidden in occupied Japan. Hosaka stayed on at the Central Aeronautical Research Institute, which had come under the railway ministry, and took up railway problems on his own initiative. In 1949 Hosaka joined the laboratory of Tadashi Matsudaira (松平精) at the Railway Technical Research Institute, a former navy engineer who studied why freight wagons derailed, and invented a ride-comfort meter that JNR and Japanese car makers used.

In 1952 he went to MIT as one of the first Fulbright scholars, wanting to study computers. He was placed in mechanical engineering instead, but the vibration specialist J. P. Den Hartog told him to pursue what he wanted and took him to meet Norbert Wiener (see Norbert Wiener and Cybernetics). Hosaka came home in July 1953 with the computer literature he had collected, including Harvard’s Computation Laboratory reports and High-Speed Computing Devices, and with Wiener’s idea that information is control. Japan had no working computer yet. In 1954 he gathered a voluntary study group of young researchers at the institute; among them was Yutaka Ohno (大野豊), later a professor at Kyoto University.

People as Bits

In late July 1955 Hosaka went to Ueno station early in the morning to catch a train to Kutsukake (today Naka-Karuizawa) for his laboratory’s annual outing, queued, and still got no seat. Standing in the crowded carriage, he began to think about seat assignment. “The people sitting there started to look like bits to me,” he said in an oral-history interview fifty years later. He spent the rest of the trip working out how a computer could find and assign free seats fast enough to answer a ticket clerk.

The problem was harder than an airline’s. JNR assigned each passenger a particular seat, and a seat could be sold to one passenger from Tokyo to Nagoya and to another from Nagoya to Osaka. The clerks kept the seat records in paper ledgers and checked availability by telephone, and the same seat was regularly sold twice. The JNR engineers knew the Magnetronic Reservisor that Teleregister had built for American Airlines (see SABRE and Airline Reservation Systems), but it only counted seats on a flight, was a special-purpose machine, and handled a single segment, so JNR decided it had to develop its own.

In 1956 the institute set up an automatic control laboratory with Hosaka in it, and the study of seat reservation became an official research topic. To learn real-time techniques, the institute imported a Bendix G-15, Harry Huskey’s small drum computer descended from the Pilot ACE (see Alan Turing and the ACE), which arrived in April 1957. Hosaka was responsible for running and maintaining it, documented it down to the details, and found that its programming tricks fitted the reservation scheme he had in mind. He passed the idea to Ohno, who was one of the few people who had followed his notes.

The Machine

In 1957 JNR’s communications section, its passenger department, and Hosaka agreed on a specification for a prototype, and Ohno did the detailed logical design. In 1958 the communications section found the money and placed the order with Hitachi. Hitachi’s computer engineers were busy on government work, so the job went to Yasuhiko Tani (谷恭彦) of its radio division and a team at the Totsuka plant. MARS-1 was installed in a computer room at Tokyo station in March 1959, tested from August, and Hitachi completed the circuit design and manufacture in July 1959. Hosaka later said its operation was certain by about the summer of 1959. The name, its builders noted, also stood for Mars, the god of war, leading JNR’s modernisation.

The seat file lived on a magnetic drum 300 mm in diameter and 300 mm long, turning at 3,000 rpm, with 200 tracks and about 400,000 bits. Ten of the tracks served as circulating registers: data written to the drum surface and read back a moment later acted as a delay line, which saved flip-flops. Two 900-bit registers held the free-or-taken state of a train’s seats so that a search did not have to go back to the drum. The central unit used about 1,000 transistors, 4,500 diodes, and 70 vacuum tubes, the tubes because there were no power transistors yet. Its logic ran twice in parallel and the two results were compared; the telegraph lines to the terminals had parity checks and the drum records sum checks.

The design specification, published by Hosaka and Ohno in their 1959 book Yoyaku kikai (予約機械, “Reservation Machine”), set the limits. MARS-1 handled four trains in the Tokyo-to-Osaka direction, the Tsubame, the Hato, and the first and second Kodama, each divided into three sections, for fifteen days ahead: 3,600 seats in all, at most 900 per train. A clerk could inquire, book, cancel, display a seat chart, or print the booking status. The central unit took about 0.15 seconds per request, the terminal lines ran at about 50 baud, and the whole transaction took under three seconds. Ten sets of terminals were installed at nine stations, including Tokyo, Ueno, Yurakucho, Shimbashi, Shibuya, Shinjuku, and Yokohama.

Service

MARS-1 started work on 18 January 1960, taking bookings for limited expresses on the Tokaido line departing from 1 February. According to the railway electrical engineers’ history, it began with two trains and added two more in June 1960; the IEEJ’s account has the electric Kodama expresses first and the Tsubame joining in June. Hosaka, in his interview, recalled fourteen days of advance booking rather than fifteen. In February 1961 terminals opened at Osaka and Nagoya.

The prototype was more reliable than anyone expected: 99.86 percent availability in its first ten months and over 99.95 percent after that. It ran until October 1963. Three months after MARS-1 started, in April 1960, the private Kinki Nippon Railway opened its own NEC-built reservation system for 20 stations (see Japan’s Computing Industry).

MARS-101

MARS-101 Central Unit Room
The MARS-101 central unit room, 1964. Image: Japan Railway Engineer’s Association, public domain, via Wikimedia Commons.

In October 1959, with MARS-1’s success in sight, Hosaka was allowed to move to the University of Tokyo, on condition that he keep working for JNR. In 1961 JNR set up a committee for a full-scale system, with Hosaka as an outside member. JNR’s staff planned a MARS-2, an enlarged MARS-1. Hosaka argued that MARS-1 had only worked because its requirements had been cut to the bone, and that a national system could not be built by multiplying it. It needed several computers sharing the work and a computer with software to control the whole: “The word OS did not exist yet,” he said later. His plan was adopted. When he presented the idea of a real-time system with lines to many ticket windows at the Information Processing Society of Japan’s monthly meeting in May 1961, the general reaction was that such a thing could not be built.

Hitachi built the hardware, and the control software was written by Hosaka’s assistant Setsuo Ohsuga (大須賀節雄) and others. Printing the kanji on the tickets was solved by watching the clerks. Hosaka bought tickets at Shimbashi station with his own money to see what the clerk did, and noticed that each destination came from a pre-printed card; in the new design the clerk picked a wooden block carrying printing type for the destination and set it in the ticket printer, and the block’s code went to the computer at the same time. Tani, usually a hard man to convince, agreed at once. MARS-101, named so because it was not an extension of MARS-1, went into service in February 1964. Two months later IBM announced the System/360 (see Gene Amdahl and the System/360), and Hosaka was startled, reading its design papers, to find ideas he had written down himself, among them the multiplexer channel, which MARS-101 already had under another name.

The Shinkansen and the Green Window

The Tokaido Shinkansen, opened in October 1964, was at first left out of MARS: its reservations looked simple, and JNR decided to handle them with an improved version of the manual method. The manual method broke down almost immediately, and JNR began work on a second machine of the same type. In October 1965 MARS-101 and the new MARS-102 together opened the Midori no madoguchi (みどりの窓口, “Green Window”) reservation counters at 152 stations, covering 239 trains. MARS-102 used three computers and could hold up to 150,000 seats.

Later Generations

The general passenger system went through MARS-103, 104, and 105 (from 1972), then MARS-301 (from 1985), which combined the passenger, group-booking, and telephone-booking systems on five large general-purpose computers, MARS-305 (from 1996), which cut them to two, and MARS-501 (from 2004), which brought servers in alongside the mainframes. Push-button telephone booking had started in March 1975. Between 1960 and the 2010s the system grew from 3,600 seats a day to a million, and from 10 terminals to 9,500; by 1991 it was selling more than a million tickets a day. When JNR was broken up and privatised in 1987, MARS passed to Railway Information Systems (JR Systems), founded in December 1986, which runs it for all the JR companies. The current generation, MARS-505, has been introduced since 2020 to handle internet sales, foreign visitors, and payment management, and JR Systems claims 99.999 percent availability.

MARS and SABRE

MARS-1 went into service four years before SABRE was complete and was a much smaller machine: 3,600 seats and ten terminals against SABRE’s pair of IBM 7090s and well over a thousand terminals. It was also built differently. MARS-1 was a special-purpose machine whose logic implemented the reservation rules directly, closer in kind to the Magnetronic Reservisor than to SABRE, while SABRE was custom programming on general-purpose scientific computers. MARS-101 crossed the same line in 1964, the year SABRE was completed: from then on both were systems of general-purpose computers under control software, handling short transactions from many terminals against shared records, the pattern later called online transaction processing (see Jim Gray and the Transaction). SABRE’s software went on to other airlines as IBM’s PARS package.

Recognition

The Information Processing Society of Japan put MARS-1 on its list of technology heritage in its first round, for 2008, and the Institute of Electrical Engineers of Japan included it in its first “One Step on Electro-Technology” awards the same year. The processing unit, control panel, and input/output equipment are preserved at the Railway Museum in Saitama. Hosaka went on to computer graphics and CAD at the University of Tokyo, where his curve and surface methods were taken up by Toyota for its die and styling systems (see The History of CAD), served as president of the IPSJ in 1977–78, and received the IEEE Computer Society’s Computer Pioneer Award in 2006. He died on 26 October 2016. The IEEE approved MARS-1 as a Milestone, “MARS-1 First Automated Railway Booking System, 1960,” on 20 May 2025; the plaques were presented in Tokyo in May 2026 to the Railway Technical Research Institute, JR Systems, and Hitachi.

📚 Sources