Guided tour puzzle protocol

From HandWiki - Reading time: 6 min

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.[citation needed]

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.[citation needed]

Protocol steps

Example of a guided tour puzzle when the number of tour guides is 2, and the tour length is 5. The order of the tour is: G1 -> G0 -> G1 -> G1 -> G0.

Before the guided tour puzzle can start, [math]\displaystyle{ N }[/math] tour guides has to be set up in the system, where [math]\displaystyle{ N \ge 2 }[/math]. Meanwhile, the server establishes a shared secret [math]\displaystyle{ k_{js} }[/math] with each tour guide [math]\displaystyle{ G_{j} }[/math] using a secure channel, where [math]\displaystyle{ 0\leq j\lt N }[/math]. The server keeps a short-lived secret [math]\displaystyle{ K_{s} }[/math] 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 [math]\displaystyle{ L }[/math], which is used to control the difficulty of a guided tour puzzle. The figure shows an example of a guided tour when [math]\displaystyle{ N=2 }[/math] and [math]\displaystyle{ L=5 }[/math].

The details of the each protocol step of the guided tour puzzle protocol is explained in the following.[1]

  • Service request: A client [math]\displaystyle{ x }[/math] 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 [math]\displaystyle{ x }[/math] with a puzzle message that informs the client to complete a guided tour. The puzzle message contains the length of the tour [math]\displaystyle{ L }[/math] and a hash value [math]\displaystyle{ h_0 }[/math]. The server computes [math]\displaystyle{ h_0 }[/math] using the following formula:
[math]\displaystyle{ h_{0} = hash(A_{x}\; ||\; L\; ||\; ts\; ||\; K_{s}) }[/math]
where, [math]\displaystyle{ || }[/math] means concatenation, [math]\displaystyle{ A_{x} }[/math] is the address (or any unique value) of the client [math]\displaystyle{ x }[/math], [math]\displaystyle{ ts }[/math] is a coarse timestamp, and [math]\displaystyle{ hash }[/math] is a cryptographic hash function such as SHA-1.
  • Puzzle solving: A client computes the index of the tour guide at the [math]\displaystyle{ l }[/math]-th stop of its tour using the following formula:
[math]\displaystyle{ S_{l}=(h_{l-1}\; mod\; N) }[/math]
where, [math]\displaystyle{ 0 \lt l \leq L }[/math]. When contacted by a client [math]\displaystyle{ x }[/math], a tour guide [math]\displaystyle{ G_j }[/math] computes a hash value [math]\displaystyle{ h_{l} }[/math] ([math]\displaystyle{ 0 \lt l \leq L }[/math]) using the formula:
[math]\displaystyle{ h_{l} = hash(h_{l-1}\; ||\; l\; ||\; L\; ||\; A_{x}\; ||\; ts\; ||\; k_{js}) }[/math]
where, [math]\displaystyle{ l }[/math] means the [math]\displaystyle{ l }[/math]-th stop of the client's tour, [math]\displaystyle{ k_{js} }[/math] is the shared key between the tour guide [math]\displaystyle{ G_{j} }[/math] and the server. After client [math]\displaystyle{ x }[/math] receives the server's reply message, it starts a guided tour by computing the index [math]\displaystyle{ S_{1} }[/math] of the first tour guide using formula for [math]\displaystyle{ S_l }[/math]. The client then sends a set of values ([math]\displaystyle{ h_0 }[/math], [math]\displaystyle{ 1 }[/math], [math]\displaystyle{ L }[/math]) to the tour guide [math]\displaystyle{ G_{S_1} }[/math], where the second value denotes which stop of a tour the client is currently at. As a response, the client receives a hash value [math]\displaystyle{ h_1 }[/math] from the tour guide [math]\displaystyle{ G_{S_1} }[/math], where [math]\displaystyle{ h_1 }[/math] is computed using the formula for [math]\displaystyle{ h_l }[/math]. The client [math]\displaystyle{ x }[/math] repeats this process [math]\displaystyle{ L-1 }[/math] more times and contacts the tour guides [math]\displaystyle{ G_{S_2}, G_{S_3}, ..., G_{S_L} }[/math]. The reply message from the last-stop tour guide [math]\displaystyle{ G_{S_L} }[/math] contains the last hash value [math]\displaystyle{ h_L }[/math], and the client [math]\displaystyle{ x }[/math] sends ([math]\displaystyle{ h_0,\; h_L }[/math]) to the server as the puzzle answer.
  • Puzzle verification: when the server receives a request from client [math]\displaystyle{ x }[/math] with a puzzle answer ([math]\displaystyle{ h'_{0} }[/math], [math]\displaystyle{ h'_{L} }[/math]) attached, it first checks to see if [math]\displaystyle{ h'_{0} }[/math] is equal to the [math]\displaystyle{ h_{0} }[/math] it computed using the formula for [math]\displaystyle{ h_0 }[/math]. If so, the server computes [math]\displaystyle{ h_L }[/math] by repeatedly using the formula for [math]\displaystyle{ h_l }[/math], and verifies that [math]\displaystyle{ h'_{L} }[/math] is equal to [math]\displaystyle{ h_{L} }[/math]. If both hash values are valid, the server allocates resources to process the client's request. Since the server knows the shared keys [math]\displaystyle{ k_{1s}, k_{2s}, \dots, k_{Ns} }[/math], it can compute the chain of hashes [math]\displaystyle{ h_1, h_2, ..., h_L }[/math] without contacting any tour guide. A loose time synchronization between the server and tour guides is required in order to compute the same hash value at the server and tour guides.

Comparison to other puzzle protocols

CPU-bound computational puzzle protocols, such as the Client Puzzle Protocol, can mitigate the effect of denial of service attack, because the more an attacker wants to overwhelm the server, the more puzzles it has to compute, and the more it must use its own computational resources. Clients with strong computational power can solve puzzles at much higher rate than destitute clients, and can undesirably take up most of the server resources.[1][2][3][4]

Another crucial shortcoming of computational puzzle protocols is that all clients, including all legitimate clients, are required to perform such CPU-intensive computations that do not contribute to any meaningful service or application.

Guided tour puzzle protocol enforces delay on the clients through round trip delays, so that clients' requests arrive at a rate that is sustainable by the server. The advantage of using round-trip delays, as opposed to hard computational problems, is that the round trip delay of a small packet is determined mostly by the processing delays, queuing delays, and propagation delays at the intermediate routers, therefore is beyond the control of end hosts (clients). As such, even an attacker with abundant computational resources cannot prioritize themselves over poorly provisioned legitimate clients.[citation needed]

Furthermore, in guided tour puzzle protocol, the computation required for the client is trivial. Since the length of a guided tour is usually a small number in the order of tens or lower, the bandwidth overhead for completing a guided tour is also trivial. As a result, clients are not burdened with heavy computations (that are usually required by CPU-bound or memory-bound puzzle protocols).[citation needed]

See also

References

  1. 1.0 1.1 Mehmud Abliz and Taieb Znati. A Guided Tour Puzzle for Denial of Service Prevention. In Proceedings of the Annual Computer Security Applications Conference (ACSAC) 2009, pages 279-288, Honolulu, HI, Dec 2009.
  2. "Cyber security pitfalls". https://www.mosaic451.com/outsourcing-cybersecurity-5-pitfalls-avoid/. Retrieved 2 August 2016. 
  3. Martin Abadi, Mike Burrows, Mark Manasse and Ted Wobber. Moderately Hard, Memory-bound Functions. In Proceedings of NDSS 2003, pages 25-39, 2003.
  4. Cynthia Dwork, Andrew Goldberg, and Moni Naor. On Memory-Bound Functions for Fighting Spam. In Proceedings of CRYPTO 2003, pages 426-444, 2003.

External links




Licensed under CC BY-SA 3.0 | Source: https://handwiki.org/wiki/Guided_tour_puzzle_protocol
6 views | Status: cached on October 05 2024 06:18:05
↧ Download this article as ZWI file
Encyclosphere.org EncycloReader is supported by the EncyclosphereKSF