🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
11 messages
11 total messages Started by HarryB Mon, 21 Apr 2003 03:24
Student Questions - NNTP protocol
#64954
Author: HarryB
Date: Mon, 21 Apr 2003 03:24
42 lines
2706 bytes
If this is off-topic I apologize - I just don't know where to ask for help
and will readily accept your suggestions for a more appropriate venue if
there is one.

I'm taking a networking course at a community college and have to write a
paper on a server type of my choice and then:
- Describe what the server does
- Describe what kind of security is necessary
- Describe what happens in each of the ISO-OSI layers

I have selected a newserver and have some questions:
1) What type or level of security does a typical newserver use?

2) If I understand correctly, NNTP uses the TCP/IP, not the ISO-OSI
reference model. Also, from what I understand the protocol in the transport
layer is connectionless UDP. But I can't figure out if in the network layer
the service is connection-oriented or connectionless.

3) Does the UDP header usually have a checksum and if so, is this only
checked in the transport layer? If this is the case and an error is found,
what happens? Does the application layer get informed of a corrupted
datagram, or is it simply discarded by the transport lay so that the
application layer, upon discovering the missing data, requests that data be
resent?

4) Is there a "standard" size for the datagrams in the transport layer and
is this size reduced (broken up) in the network layer? If so, does the
network layer use something like sliding windows (like in the data link
layer of the ISO-OSI model) to ensure proper reassembly at the receiving
end?

Any help would be most appreciated because I'm somewhat confused (as you can
probably tell.) The book we are using, "Computer Networks" by Tanenbaum, is
sometimes over my head.

Harry





Re: Student Questions - NNTP protocol
#64955
Author: Russ Allbery
Date: Mon, 21 Apr 2003 03:26
36 lines
2370 bytes
HarryB <harrynospam@nospam.net> writes:

> I have selected a newserver and have some questions:
> 1) What type or level of security does a typical newserver use?

See the Security Considerations section of:

    <ftp://ftp.isi.edu/internet-drafts/draft-ietf-nntpext-base-17.txt>

Most news servers use IP addresses as a weak form of authentication.  Some
use the AUTHINFO extension specified in RFC 2980.

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

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

Hope this helps.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Student Questions - NNTP protocol
#64957
Author: HarryB
Date: Mon, 21 Apr 2003 13:40
71 lines
3642 bytes
"Russ Allbery" <rra@stanford.edu> wrote in message
news:ylu1csr0n0.fsf@windlord.stanford.edu...
> HarryB <harrynospam@nospam.net> writes:
>
> > I have selected a newserver and have some questions:
> > 1) What type or level of security does a typical newserver use?
>
> See the Security Considerations section of:
>
>     <ftp://ftp.isi.edu/internet-drafts/draft-ietf-nntpext-base-17.txt>
>
> Most news servers use IP addresses as a weak form of authentication.  Some
> use the AUTHINFO extension specified in RFC 2980.
>
> > 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.
>
> > 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.
>
> Hope this helps.
>
> --
> Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

Russ,

I seem to have a difficult time finding specific information about NNTP that
someone with my limited knowledge (first year college student) can
understand. Since you have said that NNTP uses TCP services it will make it
much easier for me because our book does discuss TCP. Based on my reading, I
make the following assumptions which I will explore in my paper. If any are
incorrect I would appreciate a note to that effect:

1) TCP service is established between ports (usually 119) on the sending and
receiving machines

2) TCP connections are full duplex and point-to-point

3) The TCP segment header includes information such as:
   - Source and Destination port numbers
   - Sequence number
   - Acknowledgment number
   - Header length
   - Window size
   - Checksum

4) Connection is established via the three-way handshake

5) Flow control is accomplished by one of the sliding window protocols

Thank you for the corrections to my initial post. I have enjoyed learning
about networking, but feel that our book is somewhat overwhelming for a
first year college student.

Harry



Re: Student Questions - NNTP protocol
#64958
Author: Jeffrey M. Vinocur
Date: Mon, 21 Apr 2003 13:52
39 lines
2535 bytes
In article <joSoa.62621$ZP.17945@fe06.atl2.webusenet.com>,
HarryB <harrynospam@nospam.net> wrote:
>
>I seem to have a difficult time finding specific information about NNTP that
>someone with my limited knowledge (first year college student) can
>understand. Since you have said that NNTP uses TCP services it will make it
>much easier for me because our book does discuss TCP. Based on my reading, I
>make the following assumptions which I will explore in my paper.

The points you list are essentially correct, for all TCP
protocols.  

Although, people don't generally talk about such things in the
context of NNTP per se; there are many application-level
protocols using TCP (HTTP, SMTP, POP, IMAP, FTP, ...) and they
simply take for granted a reliable bidirectional channel.


>1) TCP service is established between ports (usually 119) on the sending and
>receiving machines

Slightly incorrect here.  The server is usually listening on port
119, but the client simply allocates an arbitrary free port (look
up "ephemeral ports" in your text).  After all, if the client had
to come from 119 as well, there could only be one NNTP connection
to a given server from that machine.


>feel that our book is somewhat overwhelming for a
>first year college student.

Have you asked your instructor for pointers to simpler resources?
Or perhaps you could find some useful information on the web...


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Student Questions - NNTP protocol
#64961
Author: 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/
Re: Student Questions - NNTP protocol
#64962
Author: Curt Welch
Date: Mon, 21 Apr 2003 15:19
18 lines
1927 bytes
"HarryB" <harrynospam@nospam.net> wrote:
> 1) TCP service is established between ports (usually 119) on the sending
> and receiving machines

Each TCP connection will be defined by it's IP address and port on _both_
sides of the connection.  It will be port 119 on the server side, but not
port 119 on the client side.  Client side port numbers are picked by the
client and kept unique normally across all active connections on the client
machine.

The lower port numbers are well defined and associated with various
applications such as 119 for NNTP, and 25 for SMTP (e-mail).  Higher
numbers are assigned dynamicly per connection.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Student Questions - NNTP protocol
#64963
Author: Curt Welch
Date: Mon, 21 Apr 2003 15:25
16 lines
1731 bytes
curt@kcwc.com (Curt Welch) wrote:
> The IP protocol is a connectionless packet protocol.  ...
> Checksums are used to help
> ensure accuracy of data when it is delivered.

Ugh, I was wrong about this.  I thought checksums were added at the IP
level but not at the TCP level.

The IP header does include a checksum, but it's only for the data in the IP
header, not the payload data.  TCP adds another checksum which covers both
the TCP header and the tcp payload data.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Student Questions - NNTP protocol
#64984
Author: HarryB
Date: Wed, 23 Apr 2003 12:35
35 lines
2289 bytes
"Jeffrey M. Vinocur" <jeff@litech.org> wrote in message
news:b80t2g$vac$2@puck.litech.org...
> In article <joSoa.62621$ZP.17945@fe06.atl2.webusenet.com>,
> HarryB <harrynospam@nospam.net> wrote:
[snip]
> >feel that our book is somewhat overwhelming for a
> >first year college student.
>
> Have you asked your instructor for pointers to simpler resources?
> Or perhaps you could find some useful information on the web...
>
>
> --
> Jeffrey M. Vinocur
> jeff@litech.org

This class appears to be one that has been put together in a rather
haphazard manner. It is only taught once a year and is taught by one of the
network administrators at the school. He appears to be very knowledgeable,
but has some handicaps which include a speech impediment which makes
understanding him very difficult. This is the first time he has taught this
course from a book and I think he now realizes that this book is not the
best for our level.

I have already learned a lot from researching the web and now you guys have
really helped me as well.

Cheers,
Harry




Re: Student Questions - NNTP protocol
#64986
Author: HarryB
Date: Wed, 23 Apr 2003 12:35
21 lines
1799 bytes
"HarryB" <harrynospam@nospam.net> wrote in message
news:WhJoa.52955$7i5.40027@fe02.atl2.webusenet.com...
> If this is off-topic I apologize - I just don't know where to ask for help
> and will readily accept your suggestions for a more appropriate venue if
> there is one.
>
> I'm taking a networking course at a community college and have to write a
> paper on a server type of my choice and then:
[snip]

Thank you so much for your help. I showed a rough draft to my instructor and
his main criticism was that I had not included any information about
congestion control. If I remember correctly, this happens in the network
layer, so I will add some information about choke packets, etc.

Again - thanks,
Harry



Re: Student Questions - NNTP protocol
#64987
Author: David Magda
Date: Wed, 23 Apr 2003 13:19
23 lines
2173 bytes
"HarryB" <harrynospam@nospam.net> writes:
[...]
> but has some handicaps which include a speech impediment which
> makes understanding him very difficult. This is the first time he
> has taught this course from a book and I think he now realizes that
> this book is not the best for our level.
[...]

Have him checkout the textbooks/course info at:

        http://www.ee.ryerson.ca/~courses/ele865/

I've just finished the course and the two text books there are pretty
good. The one by Kurose & Ross is pretty good for beginners, the
authors also have slides which you can either use as-is or modify to
suit your needs (they're PowerPoint slides).

-- 
David Magda <dmagda at ee.ryerson.ca>, http://www.magda.ca/
Because the innovator has for enemies all those who have done well under
the old conditions, and lukewarm defenders in those who may do well 
under the new. -- Niccolo Machiavelli, _The Prince_, Chapter VI
Re: Student Questions - NNTP protocol
#65039
Author: mei lesheng
Date: Sun, 27 Apr 2003 08:44
48 lines
2773 bytes
"Jeffrey M. Vinocur" <jeff@litech.org> wrote in message
news:b80t2g$vac$2@puck.litech.org...
> In article <joSoa.62621$ZP.17945@fe06.atl2.webusenet.com>,
> HarryB <harrynospam@nospam.net> wrote:
> >
> >I seem to have a difficult time finding specific information about NNTP
that
> >someone with my limited knowledge (first year college student) can
> >understand. Since you have said that NNTP uses TCP services it will make
it
> >much easier for me because our book does discuss TCP. Based on my
reading, I
> >make the following assumptions which I will explore in my paper.
>
> The points you list are essentially correct, for all TCP
> protocols.
>
> Although, people don't generally talk about such things in the
> context of NNTP per se; there are many application-level
> protocols using TCP (HTTP, SMTP, POP, IMAP, FTP, ...) and they
> simply take for granted a reliable bidirectional channel.
>
>
> >1) TCP service is established between ports (usually 119) on the sending
and
> >receiving machines
>
> Slightly incorrect here.  The server is usually listening on port
> 119, but the client simply allocates an arbitrary free port (look
> up "ephemeral ports" in your text).  After all, if the client had
> to come from 119 as well, there could only be one NNTP connection
> to a given server from that machine.
>
>
> >feel that our book is somewhat overwhelming for a
> >first year college student.
>
> Have you asked your instructor for pointers to simpler resources?
> Or perhaps you could find some useful information on the web...
>
>
> --
> Jeffrey M. Vinocur
> jeff@litech.org


Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads