ArticleslgStudy

science

Ident protocol

Ident protocol is a 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 Ident protocol rather than just read about it. In short: The Ident protocol (Identification Protocol, often just ident) is an application-layer protocol specified in RFC 1413. Given a pair of TCP port numbers corresponding to an existing connection, an Ident server returns a short string that identifies the owner of that connection on the server's host.

Key takeaways

  • Ident protocol belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Ident protocol to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Ident protocol from memory before moving on to harder problems.

Reference excerpt

The Ident protocol (Identification Protocol, often just ident) is an application-layer protocol specified in RFC 1413. Given a pair of TCP port numbers corresponding to an existing connection, an Ident server returns a short string that identifies the owner of that connection on the server's host. The protocol listens on TCP port 113. It obsoletes the earlier “Authentication Server” protocol.

Function The Ident Protocol is designed to work as a server daemon, on a user's computer, where it receives requests to a specified TCP port, generally 113. In the query, a client specifies a pair of TCP ports (a local and a remote port), encoded as ASCII decimals and separated by a comma (,). The server then sends a response that identifies the username of the user who runs the program that uses the specified pair of TCP ports, or specifies an error. Suppose host A wants to know the name of the user who is connecting to its TCP port 23 (Telnet) from the client's (host B) port 6191. Host A would then open a connection to the ident service on host B, and issue the following query:

6191, 23

As TCP connections generally use one unique local port (6191 in this case), host B can unambiguously identify the program that has initiated the specified connection to host A's port 23, should it exist. Host B would then issue a response, identifying the user ("stjohns" in this example) who owns the program that initiated this connection and the name of its local operating system:

6193, 23 : USERID : UNIX : stjohns

But if it would turn out that no such connection exists on host B, it would instead issue an error response:

6195, 23 : ERROR : NO-USER

All ident messages should be delimited by an end of line sequence consisting of the carriage return and linefeed characters (CR+LF).

Usefulness of ident Dialup hosts or shared shell servers often provide ident to enable abuse to be tracked back to specific users. In the case that abuse is handled on this host, the concern about trusting the ident daemon is mostly irrelevant. Spoofing of the service and privacy concerns can be avoided by providing varying cryptographically strong tokens instead of real usernames. If abuse is to be handled by the administrators of the service that users connect to using the ident providing host, then the ident service must provide information identifying each user. Usually, it is impossible for the administrators of the remote service to know whether specific users are connecting via a trustable server or from a computer they themselves control. In the latter case the ident service provides no reliable information. The usefulness of Ident for proving of a known identity to a remote host is limited to circumstances when:

The user connecting is not the administrator of the machine. This is only likely for hosts providing Unix shell access, shared servers using a suEXEC-like construction and the like. One trusts the administrators of the machine and knows their user policy. This is most likely for hosts in a common security domain such as within a single organization. One trusts that the machine is the machine it claims to be and knows that machine. This is only easily arranged for hosts on a local area network or virtual network where all hosts on the network are trusted and new hosts cannot easily be added due to physical protection. On remote and normal local networks false ident replies can be accomplished by ip spoofing and, if DNS is used, by all kinds of DNS trickery. The ident daemon may provide cryptographically signed replies which, if they can be confirmed, solves these last, but not the first, concerns. There exist no intermediate obstacles to connecting to identd such as firewall, NAT, or proxy (such as if you were using ident with Apache httpd). These are common occurrences when going between security domains (as with public HTTP or FTP servers).

Protocol Ident is a simple request/response service over TCP. A client connects to the server on port 113 and sends the server's TCP port and the client's TCP port as ASCII decimals separated by a comma (e.g. 6191, 23). The server replies with either a USERID response, which includes an operating-system tag and an identifier string, or an ERROR code such as NO-USER or HIDDEN-USER.

Security and Privacy The specification notes that Ident information is only as trustworthy as the host returning it and may reveal information that would normally be considered private. It warns against using Ident for access control. The IETF's security-guidance BCP also describes use of Ident for sender authentication (for example in mail systems) as “a bad idea”, citing risks including relaying, TCP hijacking and the possibility of misleading or false replies; it also notes operational issues due to many sites dropping or black-holing Ident queries.

Deployment and Usage Historically, Ident was used on multi-user systems to aid auditing and abuse handling (for example, on IRC networks). Modern IRC specifications treat Ident as optional: servers MAY use the Ident protocol to look up a client's “real username”, and (if enabled) often mark client-supplied names as unverified when no Ident reply is received. In practice, widespread use of firewalls and network address translation (NAT) reduces the usefulness of Ident across networks, since inbound connections to client hosts are commonly blocked or translated.

History Ident was published as a Proposed Standard in February 1993, replacing the earlier “Authentication Server”. The service name “auth/ident” remains assigned to TCP port 113 in the IANA registry.

See also oidentd (for Unix-like systems) SMTP NNTP SSH SOCKS proxies

References

Further reading RFC 912 – Authentication Service RFC 931 – Authentication Server Daniel J. Bernstein: TAP Internet Draft, June 1992 Daniel J. Bernstein: Why TAP? A White Paper, 1992-08-20 RFC 1413 – Identification Protocol RFC 1414 – Identification MIB Peter Eriksson: TAPvsIDENT, 1993-11-03 Damien Doligez: Why encrypt ident/TAP replies?, 1994-02-22

Worked examples

Example 1 — a first encounter with Ident protocol

Start with the simplest possible case. Write down what Ident protocol claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In 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 Ident 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 Ident 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 Ident protocol

In research
Ident protocol appears in 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 Ident 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
Ident protocol is common in secondary-school and first-year university syllabi. It links to neighbouring topics Email authentication, Internet protocols, Protocols related to IRC, so understanding it makes those chapters shorter.
In everyday life
Look for Ident 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 “Ident protocol” →

How to study Ident protocol in 20 minutes

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

Frequently asked questions

What is Ident protocol in simple terms?

The Ident protocol (Identification Protocol, often just ident) is an application-layer protocol specified in RFC 1413. Given a pair of TCP port numbers corresponding to an existing connection, an Ident server returns a short string that identifies the owner of that connection on the server's host.

Why does Ident protocol matter?

Because it connects several 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 Ident 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 Ident protocol.

Tags

  • Email authentication
  • Internet protocols
  • Protocols related to IRC

Keep exploring