🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #64961

Re: Student Questions - NNTP protocol

#64961
From: Curt Welch
Date: Mon, 21 Apr 2003 14:41
73 lines
5071 bytes
Russ Allbery <rra@stanford.edu> wrote:
> HarryB <harrynospam@nospam.net> writes:

> > 2) If I understand correctly, NNTP uses the TCP/IP, not the ISO-OSI
> > reference model.

> The OSI reference model is one of those rather general concepts that can
> be applied to just about anything on a network, including TCP
> applications like NNTP.  Figuring out how to do that is likely a core
> part of your excercise, so I don't feel right about giving you any more
> specific details there.

I see the OSI reference model as one possible network design.  Like all
designs, it's not the only way to solve the problem.  But because all
network hadware and protocols solve the same problems, they do tend to
share a lot in common.  The reference model was desigend to be a reference
design, or language, for talking about network protocols and not a working
protcol on it's own however.  TCP/IP is a suite of real networking
protocols which solves most the problems outlined in the OSI reference
model.  There isn't however a strict one-to-one relationship between the
TCP/IP protocols and the OSI reference model and this causes no end of
confusion.

> > Also, from what I understand the protocol in the transport layer is
> > connectionless UDP.
>
> No, NNTP is a TCP service, not a UDP service.  This makes the rest of
> your questions inaccurate -- for the answers to those questions when it
> comes to TCP, you'll want to do research on now the TCP protocol works.

To give you a little more to go on...

The IP protocol is a connectionless packet protocol.  Each packet has a
source and destination IP address.  There is no guarantee of delivery, or
order, when data is sent in IP packets.  The IP address will uniquely
define a network interface on a computer.  Checksums are used to help
ensure accuracy of data when it is delivered.  This is the ISO level 3,
network layer.  I've seen it described as "level 5 - internetwork", but  I
think that's just an error but I'm not clear on the history of that.

The TCP protocol is built on top of the IP protocol and creates a
connection based, byte stream protocol.  It adds the concept of "ports" to
the lower level IP address to form the "connection address" on each end of
the stream.  This allows multiple TCP connections to be associated with a
single IP address - i.e. multiple applications working at the same time
over a single network interface.  The standard server-side TCP port number
for the NNTP server is 119. Data deliverly is guaranteed, byte order of
guaranteed, packet boundries are not.  Flow control is added with this
protocol.  The connection acts as two independent byte streams (one flowing
in each direction) which can be closed independently.  This is the ISO
level 4, transport layer.  TCP also addresses ISO level 5 session level
issues, though it's never thought of as "level 5" in the TCP/IP world.

In most of the TCP/IP networking hardware world, "level 4" is used to
describe the application level which combines aspects of ISO levels 4, 5,
6, and 7.  There are for example "level 4 switches" which deal with issues
across all 4 of the ISO levels.  But more accurately, TCP would span levels
4 and 5, and application protocols like NNTP would span levels 6 and 7.

The UDP protocol, like TCP, is built on top of IP.  It is also a "Level 4"
protocol. Like TCP, it too adds the concept of ports on top of the IP
protocol to allow multiple applications to use the protocol at the same
time indepentley over a single network interface.  It however is
connectionless like IP.  It just extends the IP functionality to the
application level.  IP is a machine to machine packet protocol, where as
UDP is the application to application packet protocol.

Usenet news servers use the NNTP protocol over TCP connections.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20030421104137.328$yE@newsreader.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed1.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <WhJoa.52955$7i5.40027@fe02.atl2.webusenet.com> <ylu1csr0n0.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <20030421104137.328$yE@newsreader.com>
Subject: Re: Student Questions - NNTP protocol
Date: Mon, 21 Apr 2003 14:41:37 +0000
From: curt@kcwc.com (Curt Welch)
References: <WhJoa.52955$7i5.40027@fe02.atl2.webusenet.com> <ylu1csr0n0.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed1.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com z/3RgO+KNdBmxOSwXwHjNa10XTOzsdbRfObVDCFTzO2N1Qh
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
  %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 72