Article title: Linux Network Administrator Manual (16 ). Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Chapter 4 network news)
16.1 Usenet history
The concept of network news came from 1979, when two graduate students Tom Truscott and Jim El
Lis is considering using UUCP between UN * X users to connect machines for information exchange. They use it in North Carolina.
Three machines form a small network.
At first, the information was transmitted through a lot of shell scripts (later written in C), but these scripts never
Outside World announcement. They were quickly replaced by "A" news, the first news software version released to the outside world.
"A" news is designed to process only A few articles in each group every day. When the newsgroup capacity continues to increase
Ark Horton and Matt Glickman are rewritten. they are called the "B" release (also known as Bnews ). Bnews
The first public release is the 1982 version in 2.1. It is constantly expanded, adding several new features. The current version is
Bnews 2.11. Now it has been slowly abandoned, and the last official maintainer has switched to the INN.
Another rewrite was completed and released by Geoff Collyer and Henry Spencer in 1987. this is the version "C", or
C News. Many patches for C News have been released in the following period, the most significant of which is C News P.
Erformance version. On websites with a large number of news groups, because relaynews is frequently called (this program is responsible
The system overhead caused by the distribution of site articles to other sites. Performance version added to relaynews
An option that allows it to run in daemon mode and puts itself in the background.
The Performance version is currently included in most Linux versions of C News.
All the news releases of "C" are basically used for UUCP networks. Although they can also be used in other environments.
Effective news transmission on a network such as TCP/IP, DECNet, or other corresponding networks requires a new solution. This is
What was the introduction of "Network News Transfer Protocol" ("Network News Transfer Protocol") in 1986, NNTP
. It is based on network connections and specifies many commands for interactive transmission and document receiving.
There are many NNTP-based applications on the Internet. One of them is Brian Barber and Phil Lapsley's nntpd package.
You can use this software and other software to provide news and reading services for many hosts in a LAN. Nntpd is
Designed to supplement News packages such as Bnews or C news to provide them with NNTP features.
Another different NNTP software package is INN, Internet News. It is not just a front-end program, it is
A news system. It is a complex news relay background program that can effectively maintain several parallel NNTP links at the same time.
Therefore, many Internet sites choose it as a news server.
16.2 in short, what is Usenet?
One of the most notable facts about Usenet is that it does not belong to any organization and has no centralized network management privileges. Actual
This is part of Usenet learning. Apart from technical instructions, you cannot define what it is.
It is not anything. If you have a copy of Brendan Kehoe's outstanding "Zen and Internet Art" (online and Prent
Ice-Hall is commercially available, see [Kehoe92]). you will find an interesting list about Usenet.
At the risk of making people seem stupid, we can define Usenet as an independent site set for Usenet News exchange.
. To become a Usenet site, all you need to do is to find another Usenet site and
The maintainer has reached an agreement to exchange news with you. Providing news for another site is also called Feed to it, which originated from another
The principle of Usenet philosophy: "Get a feed and you're on it ."
The most basic unit of Usenet news is the article. This is what users write and "post" to the Internet. To enable the news system
Processing, these articles include management information, that is, the so-called article title (header ). It is compatible with Internet mail standard RF
The title format of a C 822 email is very similar. it consists of several lines of text. each line uses a field name ending with a colon.
Start, followed by the field value. [1]
The article is submitted to one or more newsgroups ). People can think of a newsgroup
Forum for shared topic articles. All newsgroups are composed of hierarchies. each group name indicates itself in this hierarchies.
. This makes it easy for a group to see which aspects are relevant. For example
Everyone can see that comp. OS. linux. announce is used for the announcement about the operating system named Linux.
These articles are then exchanged among all Usenet sites that are willing to pass news from this group. When two sites agree
When they exchange news, they can freely exchange any news group they like, or even add their own local ne
Ws hierarchy. For example, groucho.edu may have a connection with branyard.edu (a major news feed machine ).
The news link also has a link with several small sites that it wants to feed. Now, the University of Barnyard may receive all Usen
While GMU only transmits several major hierarchies such as sci, comp, and rec. Some downstream sites, such
A uucp site called brewhq even wants to transmit fewer groups because they do not have such network or hardware resources.
On the other hand, brewhq may want to receive newsgroups from the fj hierarchy, where GMU is not transmitted. Therefore
It maintains another link with gargleblaster.com, but the site transfers all fj groups and feeds them
Brewhq. The flow of these news is shown in section 6.1.
6.1 Usenet news flow in Groucho Marx University
Although it is clear that the labels on the arrows from brewhq may still need to be explained. By default, it requires all
The local news is sent to groucho.edu. However, since groucho.edu does not transmit fj groups
It sends any messages with no arrows pointing. Therefore, the message feed operation from brewhq to GMU is labeled as all ,! Fj, indicating
All groups except fj are sent to it.
16.3 How does Usenet handle News?
Today, Usenet has grown to a large proportion. Websites that send news on the entire network usually transmit 60 m characters every day.
Not surprising. [2] of course, this requires more processing than any arbitrary file. So let's take a look at most UN * X series
To process Usenet news.
News is published over the network through various transmission channels. The traditional transmission media used to be UUCP, but now the main
Data traffic is transmitted by Internet sites. The algorithm used for route selection is called flooding:
Sites maintain many links to other sites (news feeds ). Any message generated or received by the local news system
All articles are forwarded to them, unless the article is already on that site, the article will be discarded in this case. Pass View
Check Path: the Title field. one site can find all other sites that have passed through the article. This title contains the article already
A list of all systems marked with the bang path forwarded by the system.
To distinguish between different articles and identify duplicate articles, Usenet articles must carry a Message id (in the Message-Id:
It combines the name of the shipping site with a serial number to form a "". For each
The news system records this id in the history log file and checks all new articles accordingly.
The article information flow between any two sites can be restricted by two criteria: first, the article is assigned a mail
Layout information (in the Distribution: title field), which can be used to classify the article into appropriate groups on the site. Another
On the one hand, the exchanged newsgroups can be restricted by the sending or receiving system. Allowed to be transferred to a site
A set of news groups and categories is usually stored in the sys file.
The number of purely articles usually requires improvements to the above scheme. On the UUCP network, it is usually done at intervals
Collect an article and combine it into a single file, compress it, and send it to a remote site. This is called
Batching ). [3]
Another technique is the ihave/sendme protocol, which avoids repeated sending of articles at the beginning of the article.
This saves network bandwidth. Instead of putting all the articles into a batch file and sending them together
Only combine the message id of the article into a huge "ihave" message and send it to a remote site. Remote site reads this message
And compare it with its own history file, and then return the list of the articles you want in the "sendme" message. After that,
Only these articles will be sent.
Of course, ihave/sendme is meaningful only when two major sites are involved. The two sites are independent of each other.
The recipient of the message receives news, and often selects the other party as a valid news destination.
Websites on the Internet usually rely on TCP/IP and use the software [4] of the network news transmission protocol NNTP. It is in
Message is sent between recipients and Usenet access is provided to individual users on the remote host.
NNTP can transmit news in three ways. One is the real-time version of ihave/sendme, also known as pushing
News) operation. The second technique is called the pulling news operation. In this method, the customer
Retrieves a list of articles in a specified newsgroup or hierarchy, and selects the articles that are not included in its history file.
These articles arrive at the server site after the specified date. The third method is used for interactive news reading.
You or your readers may extract articles from a specified news group and deliver articles with incomplete title information.
On each site, news is placed in the directory structure under/var/spool/news. each article is a file
Newsgroups are in a separate directory. The directory name consists of the newsgroup name. each part of the newsgroup name constitutes the path department.
Points. Therefore, the article on comp. OS. linux. misc is stored in/var/spool/news/comp/OS/linux/misc.
. An article in a newsgroup is assigned a number in the order of arrival, which is used as the file name. Current Online article
The number range is placed in a file called active. This file is also used for clearing the newsgroups known to your site.
Single.
Since disk space is a limited resource, [5] After a while, you need to discard some articles. This is called
Expiring ). In general, articles from a certain group and structure go through a fixed number of days after arriving at the site
And then it expires. If the author specifies an expiration date in the article title field Expires:, the fixed number of days can be overwritten.
.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service