ArticleslgStudy

computer science

TCN Protocol

TCN 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 TCN Protocol rather than just read about it. In short: The Temporary Contact Numbers Protocol, or TCN Protocol, is an open source, decentralized, anonymous exposure alert protocol developed by Covid Watch in response to the COVID-19 pandemic. The Covid Watch team, started as an independent research collaboration between Stanford University and the University of Waterloo was the first in the world to publish a white paper, develop, and open source fully anonymous Bluetoo…

TCN Protocol — main illustration
TCN Protocol — illustration

Key takeaways

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

Reference excerpt

The Temporary Contact Numbers Protocol, or TCN Protocol, is an open source, decentralized, anonymous exposure alert protocol developed by Covid Watch in response to the COVID-19 pandemic. The Covid Watch team, started as an independent research collaboration between Stanford University and the University of Waterloo was the first in the world to publish a white paper, develop, and open source fully anonymous Bluetooth exposure alert technology in collaboration with CoEpi after writing a blog post on the topic in early March. Covid Watch's TCN Protocol received significant news coverage and was followed by similar decentralized protocols in early April 2020 like DP-3T, PACT, and Google/Apple Exposure Notification framework. Covid Watch then helped other groups like the TCN Coalition and MIT SafePaths implement the TCN Protocol within their open source projects to further the development of decentralized technology and foster global interoperability of contact tracing and exposure alerting apps, a key aspect of achieving widespread adoption. Covid Watch volunteers and nonprofit staff also built a fully open source mobile app for sending anonymous exposure alerts first using the TCN Protocol and later using the very similar Google/Apple Exposure Notification Framework (ENF). The protocol, like BlueTrace and the Google / Apple contact tracing project, use Bluetooth Low Energy to track and log encounters with other users. The major distinction between TCN and protocols like BlueTrace is the fact the central reporting server never has access to contact logs nor is it responsible for processing and informing clients of contact. Because contact logs are never transmitted to third parties, it has major privacy benefits over approaches like the one used in BlueTrace. This approach however, by its very nature, does not allow for human-in-the-loop reporting, potentially leading to false positives if the reports are not verified by public health agencies. The TCN protocol received notoriety as one of the first widely released digital contact tracing protocols alongside BlueTrace, the Exposure Notification framework, and the Pan-European Privacy-Preserving Proximity Tracing (PEPP-PT) project. It also stood out for its incorporation of blockchain technology, and its influence over the Google/Apple project.

Overview The TCN protocol works off the basis of Temporary Contact Numbers (TCN), semi-random identifiers derived from a seed. When two clients encounter each other, a unique TCN is generated, exchanged, and then locally stored in a contact log. Then, once a user tests positive for infection, a report is sent to a central server. Each client on the network then collects the reports from the server and independently checks their local contact logs for a TCN contained in the report. If a matching TCN is found, then the user has come in close contact with an infected patient, and is warned by the client. Since each device locally verifies contact logs, and thus contact logs are never transmitted to third parties, the central reporting server cannot by itself ascertain the identity or contact log of any client in the network. This is in contrast to competing protocols like BlueTrace, where the central reporting server receives and processes client contact logs.

Temporary contact numbers The entire protocol is based on the principle of temporary contact numbers (TCN), a unique and anonymous 128-bit identifier generated deterministically from a seed value on a client device. TCNs are used to identify people with which a user has come in contact, and the seed is used to compactly report infection to a central reporting server. TCN reports are authenticated to be genuine by a secret held only by the client.

Generation To generate a TCN, first a report authorization key (RAK) and report verification key (RVK) are created as the signing and verification keys of a signature scheme (RAK-RVK pair). In the reference implementation this pair is created using the Ed25519 signature scheme. Then, using the RAK an initial temporary contact key (TCK) is generated using the algorithm tck0=H_tck(rak), where H_tck() is the SHA-256 hash function as H_tck(s)=SHA256(b'H_TCK'||s). This TCK is not used to generate any TCNs, but is used in the next TCK; where all future TCKs are calculated using the algorithm tcki=H_tck(rvk||tcki−1). A 128 bit TCN is then generated from a given TCK using the algorithm tcni>0=H_tcn(le_u16(i)||tcki), where le_u16() formats a supplied number as a little endian unsigned 2 byte integer, and H_tcn() is the SHA-256 hash function as H_tcn(s)=SHA256(b'H_TCN'||s)[0:128]. The following diagram demonstrates the key derivation process:TCNs are unique to each device encounter, and RAK-RVK pairs are cycled at regular intervals to allow a client to report only specific periods of contact.

Reporting When a client wishes to submit a report for the TCN indices s>0 to e, it structures the report as report=rvk||tcks−1||le_u16(s)||le_u16(e)||memo. A signature is then calculated using the RAK, and it is transmitted to the server as s_report=report||sig. Because any given TCK can only be used to derive an equal or higher indexed TCNs, by submitting tcks−1 no encounters prior to tcns−1 can be calculated. However, there is no upper limit to encounters calculated using the same RAK-RVK pair, which is why they are cycled often. To prevent clients calculating unused TCNs, e indicates the last TCN index generated with the given RVK. Additionally, since the RVK is used to calculate a TCK, and tcks−1 is provided, no valid TCNs in the reporting period can be derived from an illegitimate report. The only correct TCN calculable from a mismatched RVK and tcks−1 is tcns−1, the TCN before the start of the reporting period. Once a report is received, clients individually recalculate TCKs and TCNs for a given period using the original algorithms:tcks=H_tck(rvk||tcks−1)tcns=H_tcn(le_u16(s)||tcks)tcks+1=H_tck(rvk||tcks)tcns+1=H_tcn(le_u16(s+1)||tcks+1)...tcke=H_tck(rvk||tcke−1)tcne=H_tcn(le_u16(e)||tcke)This is used by client devices to check their local contact logs for potential encounters with the infected patient, but has the dual benefit of verifying reports since false reports will never produce matching TCNs.

… excerpt ends here. Continue reading the full article.

Illustrations

TCN Protocol illustration
TCN Protocol illustration

Worked examples

Example 1 — a first encounter with TCN Protocol

Start with the simplest possible case. Write down what TCN 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 TCN 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 TCN 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 TCN Protocol

In research
TCN 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 TCN 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
TCN Protocol is common in secondary-school and first-year university syllabi. It links to neighbouring topics 2020 software, Android (operating system) software, Application layer protocols, so understanding it makes those chapters shorter.
In everyday life
Look for TCN 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 “TCN Protocol” →

How to study TCN Protocol in 20 minutes

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

Frequently asked questions

What is TCN Protocol in simple terms?

The Temporary Contact Numbers Protocol, or TCN Protocol, is an open source, decentralized, anonymous exposure alert protocol developed by Covid Watch in response to the COVID-19 pandemic. The Covid Watch team, started as an independent research collaboration between Stanford University and the Univ…

Why does TCN 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 TCN 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 TCN Protocol.

Tags

  • 2020 software
  • Android (operating system) software
  • Application layer protocols
  • Bluetooth software
  • Digital contact tracing protocols
  • Digital contact tracing protocols with decentralized reporting
  • IOS software
  • Medical software
  • Software associated with the COVID-19 pandemic
  • Software using the MIT license

Keep exploring