ArticleslgStudy

computer science

Needham–Schroeder protocol

Needham–Schroeder 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 Needham–Schroeder protocol rather than just read about it. In short: The Needham–Schroeder protocol is one of the two key transport protocols intended for use over an insecure network, both proposed by Roger Needham and Michael Schroeder. These are: The Needham–Schroeder Symmetric Key Protocol, based on a symmetric encryption algorithm.

Needham–Schroeder protocol — main illustration
Needham–Schroeder protocol — illustration

Key takeaways

  • Needham–Schroeder 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 Needham–Schroeder protocol to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Needham–Schroeder protocol from memory before moving on to harder problems.

Reference excerpt

The Needham–Schroeder protocol is one of the two key transport protocols intended for use over an insecure network, both proposed by Roger Needham and Michael Schroeder. These are:

The Needham–Schroeder Symmetric Key Protocol, based on a symmetric encryption algorithm. It forms the basis for the Kerberos protocol. This protocol aims to establish a session key between two parties on a network, typically to protect further communication. The Needham–Schroeder Public-Key Protocol, based on public-key cryptography. This protocol is intended to provide mutual authentication between two parties communicating on a network, but in its proposed form is insecure.

Symmetric protocol Here, Alice ( A ) {\displaystyle (A)} initiates the communication to Bob ⁠ B {\displaystyle B} ⁠. S {\displaystyle S} is a server trusted by both parties. In the communication:

A {\displaystyle A} and B {\displaystyle B} are identities of Alice and Bob respectively

K A S {\displaystyle {K_{AS}}} is a symmetric key known only to A {\displaystyle A} and S {\displaystyle S}

K B S {\displaystyle {K_{BS}}} is a symmetric key known only to B {\displaystyle B} and S {\displaystyle S}

N A {\displaystyle N_{A}} and N B {\displaystyle N_{B}} are nonces generated by A {\displaystyle A} and B {\displaystyle B} respectively

K A B {\displaystyle {K_{AB}}} is a symmetric, generated key, which will be the session key of the session between A {\displaystyle A} and B {\displaystyle B}

The protocol can be specified as follows in security protocol notation:

A → S : A , B , N A {\displaystyle A\rightarrow S:\left.A,B,N_{A}\right.}

Alice sends a message to the server identifying herself and Bob, telling the server she wants to communicate with Bob.

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

The server generates K A B {\displaystyle {K_{AB}}} and sends back to Alice a copy encrypted under K B S {\displaystyle {K_{BS}}} for Alice to forward to Bob and also a copy for Alice. Since Alice may be requesting keys for several different people, the nonce assures Alice that the message is fresh and that the server is replying to that particular message and the inclusion of Bob's name tells Alice who she is to share this key with.

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

Alice forwards the key to Bob who can decrypt it with the key he shares with the server, thus authenticating the data.

B → A : { N B } K A B {\displaystyle B\rightarrow A:\{N_{B}\}_{K_{AB}}}

Bob sends Alice a nonce encrypted under K A B {\displaystyle {K_{AB}}} to show that he has the key.

A → B : { N B − 1 } K A B {\displaystyle A\rightarrow B:\{N_{B}-1\}_{K_{AB}}}

Alice performs a simple operation on the nonce, re-encrypts it and sends it back verifying that she is still alive and that she holds the key.

… excerpt ends here. Continue reading the full article.

Illustrations

Needham–Schroeder protocol: Symmetric Needham–Schroeder protocol scheme
Symmetric Needham–Schroeder protocol scheme

Worked examples

Example 1 — a first encounter with Needham–Schroeder protocol

Start with the simplest possible case. Write down what Needham–Schroeder 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 Needham–Schroeder 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 Needham–Schroeder 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 Needham–Schroeder protocol

In research
Needham–Schroeder 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 Needham–Schroeder 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
Needham–Schroeder 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 Needham–Schroeder 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.

Affiliate

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

How to study Needham–Schroeder protocol in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Needham–Schroeder 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 Needham–Schroeder protocol out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Needham–Schroeder protocol in simple terms?

The Needham–Schroeder protocol is one of the two key transport protocols intended for use over an insecure network, both proposed by Roger Needham and Michael Schroeder. These are: The Needham–Schroeder Symmetric Key Protocol, based on a symmetric encryption algorithm.

Why does Needham–Schroeder 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 Needham–Schroeder 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 Needham–Schroeder protocol.

Tags

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

Keep exploring