ArticleslgStudy

computer science

Otway–Rees protocol

Otway–Rees protocol is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Otway–Rees protocol rather than just read about it. In short: The Otway–Rees protocol is a computer network authentication protocol designed for use on insecure networks (e.g. the Internet). It allows individuals communicating over such a network to prove their identity to each other while also preventing eavesdropping or replay attacks and allowing for the detection of modification.

Key takeaways

  • Otway–Rees protocol belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Otway–Rees protocol to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Otway–Rees protocol from memory before moving on to harder problems.

Reference excerpt

The Otway–Rees protocol is a computer network authentication protocol designed for use on insecure networks (e.g. the Internet). It allows individuals communicating over such a network to prove their identity to each other while also preventing eavesdropping or replay attacks and allowing for the detection of modification. The protocol can be specified as follows in security protocol notation, where Alice is authenticating herself to Bob using a server S (M is a session-identifier, NA and NB are nonces):

A → B : M , A , B , { N A , M , A , B } K A S {\displaystyle A\rightarrow B:M,A,B,\{N_{A},M,A,B\}_{K_{AS}}}

B → S : M , A , B , { N A , M , A , B } K A S , { N B , M , A , B } K B S {\displaystyle B\rightarrow S:M,A,B,\{N_{A},M,A,B\}_{K_{AS}},\{N_{B},M,A,B\}_{K_{BS}}}

S → B : M , { N A , K A B } K A S , { N B , K A B } K B S {\displaystyle S\rightarrow B:M,\{N_{A},K_{AB}\}_{K_{AS}},\{N_{B},K_{AB}\}_{K_{BS}}}

B → A : M , { N A , K A B } K A S {\displaystyle B\rightarrow A:M,\{N_{A},K_{AB}\}_{K_{AS}}}

Note: The above steps do not authenticate B to A. This is one of the protocols analysed by Burrows, Abadi and Needham in the paper that introduced an early version of Burrows–Abadi–Needham logic.

Attacks on the protocol There are a variety of attacks on this protocol currently published.

Interception attacks These attacks leave the intruder with the session key and may exclude one of the parties from the conversation. Boyd and Mao observe that the original description does not require that S check the plaintext A and B to be the same as the A and B in the two ciphertexts. This allows an intruder masquerading as B to intercept the first message, then send the second message to S constructing the second ciphertext using its own key and naming itself in the plaintext. The protocol ends with A sharing a session key with the intruder rather than B. Gürgens and Peralta describe another attack which they name an arity attack. In this attack the intruder intercepts the second message and replies to B using the two ciphertexts from message 2 in message 3. In the absence of any check to prevent it, M (or perhaps M,A,B) becomes the session key between A and B and is known to the intruder. Cole describes both the Gürgens and Peralta arity attack and another attack in his book Hackers Beware. In this the intruder intercepts the first message, removes the plaintext A,B and uses that as message 4 omitting messages 2 and 3. This leaves A communicating with the intruder using M (or M,A,B) as the session key.

Disruptive attacks This attack allows the intruder to disrupt the communication but does not allow the intruder to gain access to it. One problem with this protocol is that a malicious intruder can arrange for A and B to end up with different keys. Here is how: after A and B execute the first three messages, B has received the key K A B {\displaystyle K_{AB}} . The intruder then intercepts the fourth message. He resends message 2, which results in S generating a new key K A B ′ {\displaystyle K'_{AB}} , subsequently sent to B. The intruder intercepts this message too, but sends to A the part of it that B would have sent to A. So now A has finally received the expected fourth message, but with K A B ′ {\displaystyle K'_{AB}} instead of K A B {\displaystyle K_{AB}} .

See also Kerberos (protocol) Needham–Schroeder protocol Yahalom (protocol) Wide Mouth Frog protocol

References

Worked examples

Example 1 — a first encounter with Otway–Rees protocol

Start with the simplest possible case. Write down what Otway–Rees protocol claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Otway–Rees protocol before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Otway–Rees protocol ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Otway–Rees protocol

In research
Otway–Rees protocol appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Otway–Rees protocol in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Otway–Rees protocol is common in secondary-school and first-year university syllabi. It links to neighbouring topics Authentication protocols, Computer access control protocols, Key transport protocols, so understanding it makes those chapters shorter.
In everyday life
Look for Otway–Rees protocol outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Otway–Rees protocol” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Otway–Rees protocol in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Otway–Rees protocol means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Otway–Rees protocol out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Otway–Rees protocol in simple terms?

The Otway–Rees protocol is a computer network authentication protocol designed for use on insecure networks (e.g. the Internet). It allows individuals communicating over such a network to prove their identity to each other while also preventing eavesdropping or replay attacks and allowing for the d…

Why does Otway–Rees protocol matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Otway–Rees protocol?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Otway–Rees protocol.

Tags

  • Authentication protocols
  • Computer access control protocols
  • Key transport protocols
  • Symmetric-key cryptography

Keep exploring