ArticleslgStudy

computer science

Dn42

Dn42 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 Dn42 rather than just read about it. In short: dn42 is a decentralized peer-to-peer network built using VPNs and software/hardware BGP routers. While other darknets function to establish anonymity for their participants, dn42 is a network to explore and research routing technologies used in the Internet and establish non-NATed connections between the members to share services.

Dn42 — main illustration
Dn42 — illustration

Key takeaways

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

Reference excerpt

dn42 is a decentralized peer-to-peer network built using VPNs and software/hardware BGP routers. While other darknets function to establish anonymity for their participants, dn42 is a network to explore and research routing technologies used in the Internet and establish non-NATed connections between the members to share services. The network is not fully meshed. dn42 uses mostly tunnels instead of physical links between the individual networks. Each participant is connected to one or more other participants. Over the VPN or the physical links, BGP is used for inter AS routing. While OSPF is the most commonly used protocol for intra AS routing, each participant is free to choose any other IGP, like Babel, inside their AS.

History The dn42 is a reboot of the diac24. At the time, diac24 only consisted of around a dozen participants. In diac24, the IPv4 address range used was 172.22.0.0/23 and the IPv6 address range used was 3ffe:400:c00::/48. The dn42 seems to have used the IPv4 space 172.22.0.0/16, the Clearnet IPv6 spaces like 2001:6f8: and the AS range 65000 to 65999 in the early years after that. It can also be said that the diac24 and the dn42 were initially aimed at a German audience, as much of the documentation was written in German. The diac24 mainly used GRE as a tunnel protocol between the participants, but this is not encrypted. In the beginning of the dn42, OpenVPN was often used for peering in the dn42. Over time, this has been replaced by WireGuard, partly due to faster performance and simpler configuration. At that time, the registry was not managed with Git as it is now, but in a wiki page. Anyone who wanted to register entered their desired ASN and IP space there.

Technical setup

Address space Network address space for IPv4 consists of private subnets: 172.20.0.0/14 is the main subnet. Note that other private address ranges may also be announced in dn42, as the network is interconnected with other similar projects. Most notably, ChaosVPN uses 172.31.0.0/16 and parts of 10.0.0.0/8, Freifunk IC-VPN uses 10.0.0.0/8 and NeoNetwork uses 10.127.0.0/16. For IPv6, Unique Local Address (ULA, the IPv6 equivalent of private address range) (fd00::/8) are used. Please note that IPv6 addresses within this range are also utilized by other networks, such as NeoNetwork employing fd10:127::/32 and CRXN utilizing segments of fd00::/8.

AS numbers In order to use BGP, even in a private environment, autonomous system numbers are needed. dn42 uses several private or reserved AS number ranges, including 64512 to 64855 and 76100 to 76199. Since June 2014, dn42 is now using a new private range, 4242420000 to 4242429999, part of larger private range defined by RFC 6996.

BGP routers While some participants use hardware routers, most participants use general purpose servers or virtual machines to lower their cost. The most commonly used BGP implementations used in dn42 are BIRD and FRR, but some participants use OpenBGPD, XORP, GoBGP or the implementation of JunOS, Cisco IOS, MikroTik's RouterOS or VyOS (which uses FRR as a routing daemon in the background).

Tunneling In dn42, various links are used between the participants - but mainly virtual links, also known as tunnels. WireGuard is most commonly used for this, as it is easy to configure and is considered secure (with Perfect Forward Secrecy). Furthermore, many automatic peering systems offer WireGuard as the only option. fastd is used for peering with the IC-VPN. In rare cases, OpenVPN or IPsec are also used.

DN42 TLD Websites and services hosted on the Dn42 network often use the top-level domain dn42. This is not an official IANA top-level domain, and it is handled through the dn42 registry.

Registry To ensure uniform administration of IP addresses and domains, there is also a registry in dn42, as in Clearnet. This is based on Git in dn42 and therefore also offers the option of storing these in a decentralized manner. Furthermore, all changes can be clearly traced back to an author. To make a change in the dn42 (e.g. a registration), a pull request is created with the corresponding change. One of the registry maintainers then looks at this, validates it (including syntactically) and also verifies it (checking the authorization and signature). A participant must be authorized to make a change. This is verified by a signature using a GPG or SSH key.

Interconnections The dn42 maintains a number of links to similar projects:

Certificate Authority The dn42 has its own (unofficial) Certificate Authority (CA). This can be used to issue TLS certificates, for example for HTTPS. Ownership can be verified with ACME, as with Let's Encrypt. In addition, the NeoNetwork also operates its own CA for the .neo TLD and the associated network area. The ChaosVPN, IC-VPN and the CRXN do not have a CA. In order to prevent the CA from issuing certificates for Clearnet addresses, name constraints are used which limit the name validity range of the CA. This means that the CA cannot be used for Clearnet addresses.

Telephony In addition to traditional Internet services, dn42 also supports experimental Voice over IP (VoIP) and telephony systems. The network uses the private country code +042 and allows participants to register telephony prefixes through the dn42 registry using an ENUM-like DNS system under the tel.dn42 domain. This enables decentralized mapping between telephone numbers and SIP endpoints while remaining entirely within the dn42 network. Several community members operate Asterisk-based PBX systems, providing services such as conference rooms, echo tests, fax and modem experiments, WebRTC softphones, and gateways between dn42 and public telephone networks for testing purposes.

Notes

References

External links dn42.dev - mirror of the official website

Worked examples

Example 1 — a first encounter with Dn42

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

In research
Dn42 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 Dn42 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
Dn42 is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer networking, Internet exchange points, Peer-to-peer computing, so understanding it makes those chapters shorter.
In everyday life
Look for Dn42 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 “Dn42” →

How to study Dn42 in 20 minutes

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

Frequently asked questions

What is Dn42 in simple terms?

dn42 is a decentralized peer-to-peer network built using VPNs and software/hardware BGP routers. While other darknets function to establish anonymity for their participants, dn42 is a network to explore and research routing technologies used in the Internet and establish non-NATed connections betwe…

Why does Dn42 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 Dn42?

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 Dn42.

Tags

  • Computer networking
  • Internet exchange points
  • Peer-to-peer computing
  • Virtual private networks

Keep exploring