Book Image

Understanding TCP/IP

By : CP Books a.s.
Book Image

Understanding TCP/IP

By: CP Books a.s.

Overview of this book

This book covers in detail the Open System Interconnection (OSI) reference model and the TCP/IP protocols that operate that different layers. Its coverage includes various application protocols. The authors explain in an easy-to-read style networking concepts and protocols, with examples that make the book a practical guide in addition to its coverage of theory.
Table of Contents (20 chapters)
19
Index

16.2 NNTP Protocol

The NNTP protocol is specified in RFC 977. The NNTP protocol server listens at a well-known port 199/TCP.

Once again, as the NNTP protocol commands are in ASCII, it is possible to use the Telnet program (for example, from Windows 2000/XP) to communicate with the news server:

C:\WINNT>telnet news.provider.com 119

After a connection is established, the server will introduce itself as follows:

200 news.provider.com InterNetNews NNRP server INN 2.4.1 ready (posting ok).

The first line of a reply is always a status line indicating how successful we were. The status line begins with a three-digit status code. The three-digit status codes are similar to those in the FTP and HTTP protocols:

100 help text follows
199 debug output
200 server ready posting allowed
201 server ready no posting allowed
202 slave status noted
205 closing connection goodbye!
211 n f l s group selected
(n = estimated number of articles in group,
f = first article number in the group,
l = last article...