ArticleslgStudy

computer science

Guided tour puzzle protocol

Guided tour puzzle 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 Guided tour puzzle protocol rather than just read about it. In short: Guided tour puzzle (GTP) protocol is a cryptographic protocol for mitigating application layer denial of service attacks. It aims to overcome the shortcoming of computation-based puzzle protocols, in which clients are required to compute hard CPU- or memory-bound puzzles that favor clients with abundant computational resources.

Guided tour puzzle protocol — main illustration
Guided tour puzzle protocol — illustration

Key takeaways

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

Reference excerpt

Guided tour puzzle (GTP) protocol is a cryptographic protocol for mitigating application layer denial of service attacks. It aims to overcome the shortcoming of computation-based puzzle protocols, in which clients are required to compute hard CPU- or memory-bound puzzles that favor clients with abundant computational resources. Guided tour puzzle protocol can be seen as a form of proof-of-work (POW) protocol.

Overview The protocol steps of the guided tour puzzle protocol is similar to that of Client Puzzle Protocol. All clients are required to complete a guided tour puzzle prior to receiving service from the server, if the server suspects it is currently under denial of service attack or its load exceeds a pre-defined threshold. Simply put, a guided tour puzzle is a tour that needs to be completed by taking multiple round-trips to a set of special nodes, called tour guides, in a sequential order. It is called a guided tour, because the order in which the tour guides are visited is unknown to the client, and each tour guide has to direct the client towards the next tour guide for the client to complete the tour in correct order. A single tour guide may appear multiple times in a tour, so the term stop is used to denote a single appearance of a tour guide in a tour. A client knows which tour guide is at the next stop, only after completing its visit to the current stop. Solving a guided tour puzzle is essentially equal to completing a guided tour in the correct order. Starting from the first stop, the client contacts each stop and receives a reply. Each reply contains a unique token. The token in the reply message from the current stop is used for computing the address of the next stop tour guide. The address of the first stop tour guide is computed using the token contained in the server's first reply message that informs the client of the start of a puzzle process. The client must send the token received from the current stop tour guide to the next stop tour guide, which will use it as an input to its token calculation function. The token received from the last stop tour guide plus the token from the server's puzzle message are sent to the server as the proof of completion of a tour. The server can efficiently validate these two tokens, and grants service to the client only after proving their validity.

Protocol steps

Before the guided tour puzzle can start, N {\displaystyle N} tour guides has to be set up in the system, where N ≥ 2 {\displaystyle N\geq 2} . Meanwhile, the server establishes a shared secret k j s {\displaystyle k_{js}} with each tour guide G j {\displaystyle G_{j}} using a secure channel, where 0 ≤ j < N {\displaystyle 0\leq j<N} . The server keeps a short-lived secret K s {\displaystyle K_{s}} for computing the first hash value that is returned to the client as part of a puzzle message. A puzzle message also contains the length of the tour L {\displaystyle L} , which is used to control the difficulty of a guided tour puzzle. The figure shows an example of a guided tour when N = 2 {\displaystyle N=2} and L = 5 {\displaystyle L=5} . The details of the each protocol step of the guided tour puzzle protocol is explained in the following.

Service request: A client x {\displaystyle x} sends a service request to the server. If the server load is normal, the client's request is serviced as usual; if the server is overloaded, then it proceeds to the initial puzzle generation step. Initial puzzle generation: the server replies to the client x {\displaystyle x} with a puzzle message that informs the client to complete a guided tour. The puzzle message contains the length of the tour L {\displaystyle L} and a hash value h 0 {\displaystyle h_{0}} . The server computes h 0 {\displaystyle h_{0}} using the following formula:

h 0 = h a s h ( A x | | L | | t s | | K s ) {\displaystyle h_{0}=hash(A_{x}\;||\;L\;||\;ts\;||\;K_{s})}

where, | | {\displaystyle ||} means concatenation, A x {\displaystyle A_{x}} is the address (or any unique value) of the client x {\displaystyle x} , t s {\displaystyle ts} is a coarse timestamp, and h a s h {\displaystyle hash} is a cryptographic hash function such as SHA-1. Puzzle solving: A client computes the index of the tour guide at the l {\displaystyle l} -th stop of its tour using the following formula:

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Guided tour puzzle protocol

Start with the simplest possible case. Write down what Guided tour puzzle 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 Guided tour puzzle 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 Guided tour puzzle 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 Guided tour puzzle protocol

In research
Guided tour puzzle 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 Guided tour puzzle 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
Guided tour puzzle protocol is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer network security, so understanding it makes those chapters shorter.
In everyday life
Look for Guided tour puzzle 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 “Guided tour puzzle protocol” →

Affiliate

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

How to study Guided tour puzzle protocol in 20 minutes

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

Frequently asked questions

What is Guided tour puzzle protocol in simple terms?

Guided tour puzzle (GTP) protocol is a cryptographic protocol for mitigating application layer denial of service attacks. It aims to overcome the shortcoming of computation-based puzzle protocols, in which clients are required to compute hard CPU- or memory-bound puzzles that favor clients with abu…

Why does Guided tour puzzle 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 Guided tour puzzle 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 Guided tour puzzle protocol.

Tags

  • Computer network security

Keep exploring