新闻组上的TCPIP资源列表。

sevencat 2004-03-26 10:42:54
Posting-Frequency: every two weeks
Copyright: (c) 1996-2003 Uri Raz
Maintainer: Uri Raz <uriraz@private.org.il>
Last-modified: 24/Sep/2003
Archive-Name: internet/tcp-ip/resource-list
URL: http://www.private.org.il/tcpip_rl.html

This posting contains a list of various resources (books, web sites,
FAQS, newsgroups, and useful net techniques) intended to help a newbie
to learn about the TCP/IP suite of protocols.

This article is available as a web page at :
Primary indexed copy - http://www.private.org.il/tcpip_rl.html
Secondary indexless copy - http://www.faqs.org/faqs/internet/tcp-ip/resource-list/index.html

This article is available via FTP at :
ftp://rtfm.mit.edu/pub/usenet-by-group/news.answers/internet/tcp-ip/resource-list
ftp://rtfm.mit.edu/pub/usenet-by-hierarchy/comp/protocols/tcp-ip/TCP_IP_Resources_List

**************************************************************************
* *
* If you have any comments, addition suggestions, corrections, etc, *
* to the article itself, please send them to me by email. *
* My email address is mailto:uriraz@private.org.il *
* *
* There are plenty of copies of this article on the web. Please do not *
* create another one, as when the copies go out of date all the *
* requests to remove dead links, add new links, fix typos, etc which I *
* already did in the latest version go to me. *
* *
* If you have any questions about TCP/IP in general, which are not *
* directly related to this article, please post them to an appropriate *
* newsgroup, as my time is limited, and as it will serve you better. *
* *
**************************************************************************


1. Books About TCP/IP and networking.
-------------------------------------


1.1 Paper books.
----------------

Richard Stevens' TCP/IP illustrated.
Published by Addison-Wesley.
Volume 1 - describes the TCP/IP protocols.
ISBN 0201633469
Volume 2 - describes the TCP/IP stack as implemented in 4.4BSD-Lite,
at the source code level.
ISBN 020163354X
Volume 3 - describes HTTP, NNTP, and more.
ISBN 0201634953

Richard Stevens' UNIX Network Programming.
Published by Prentice Hall.
Described here is the 2nd edition of the book.
The 1st edition (ISBN 0139498761) will be sold until the third
volume of of the 2nd edition will be out.
Volume 1 - "Networking APIs: Sockets and XTI".
Describes UNIX network programming in & out, including
a lot of code examples, covering IPv4 & IPv6, sockets
and XTI, TCP & UDP, raw sockets, programming techniques,
multicasting & broadcasting, and what not. The best
TCP/IP programming book around, IMHO.
ISBN 013490012X
Volume 2 - "Interprocess Communications".
ISBN 0130810819
Volume 3 - "Applications"
Name is probable, to be published.

Due to Richard Steven's death on Sep 1st 1999,
I'm in the dark regarding this volume's future.
I have sent a query to Prentice-Hall, and will
update the text accordingly.

Douglas Comer's Internetworking with TCP/IP.
Published by Prentice-Hall.
Volume 1 - describes the TCP/IP protocols, architecture and principles.
ISBN 0132169878
Volume 2 - describes a TCP/IP implementation (with C code),
implemented on the XINU operating system.
ISBN 0131255274
Volume 3 - describes network programming, and has a sockets version
(ISBN 013260969X), a TLI version (ISBN 0132609770),
and a winsock version (ISBN 0138487146)

Internet Core Protocols
By Eric A. Hall
Published by O'Reilly
ISBN 1565925726
This book, subtitled "An Owner's Manual for the Internet", does
a very good work of explaining the core protocols - IP, ICMP,
IGMP & multicasting, UDP, and TCP. The detailed explanations
are accompanied by sample packet decodes (a lite version of
the decoding is available on the accompanying CD).

Microsoft Windows 2000 TCP/IP Protocols and Services Technical Reference
By Thomas Lee and Joseph Davies
Published by Microsoft Press
ISBN 0735605564
This book does to MS-Windows 2000 what Stevens' books did to Unix.
It explains IP from ground up, starting with LAN & WAN protocols,
through ARP, IP, ICMP, IGMP, TCP & UDP, and up to the application
layer. Everything is explained with diagrams and explanations of
how are the protocols work on MS-Windows 2000.

Effective TCP/IP Programming - 44 Tips to Improve Your Network Programs
By Jon C. Snader
Published by Addison-Wesley
ISBN 0201615894
This book is a must book for new sockets applications writers.
The book gives the basics of TCP/IP for programmers, rather than
from an academical point of view, giving effective tips, techniques,
and whole programs in C to assist network programmers in writing
solid networking programs.

TCP/IP Explained
By Philip Miller
Published by Digital Press
ISBN 1555581668
A fine book about TCP/IP, covering all the layers, starting with an
overview of the lowest 2 OSI layers, through IP(+ICMP), UDP, TCP,
routing (RIP + OSPF + EGP + BGP), broadcasting and multicasting,
DNS, SNMP, several apps (FTP, Telnet, SMTP, ...), with chapters
about IPv6 and Internet Security. The book is readable, with lots
of diagrams and packet trace decodes. Some points missing, such
as TCP congestion avoidance.

Troubleshooting TCP/IP - Analyzing the Protocols of the Internet
By Mark A. Miller
Published by M & T Books
ISBN 1558514503
A good troubleshooting guide, with good explanations of most
protocols, starting from network layer, through ARP, DNS, routing,
and up to the applications, including SMTP, FTP, and TELNET.
Coverage includes SNMP, ATM, IPv6. Case studies, included for
every subject, include sniffer output and explanations.

High-Speed Networks: TCP/IP and ATM Design Principles
By William Stallings
Published by Prentice-Hall
ISBN 0135259657
This book explains how to design high-speed networks (ATM, 100 Mbps &
Gbps ethernet) intended to carry high volume data (WWW, still images,
video on demand, etc). Coverage includes explanation of ATM and Fast &
Gigabit Ethernet, the mathematical background needed for performance
analysis, traffic management (IP & ATM), routing, and compression.

TCP/IP: Architecture, Protocols, and Implementation with IPv6 and IP Security
By Sidnie Feit
Published by McGraw-Hill
ISBN 0070213895
This book covers TCP/IP in one volume, starting from the physical
layer, through IP, UDP & TCP, the various applications (WWW, mail, etc)
to network management.
...全文
583 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
sevencat 2004-03-26
  • 打赏
  • 举报
回复
8.3 Layer 2 sites & pages.
--------------------------

The comp.dcom.lans.ethernet FAQ is available at
http://www.faqs.org/faqs/LANs/ethernet-faq/index.html
ftp://rtfm.mit.edu/pub/usenet-by-hierarchy/news/answers/LANs/ethernet-faq

Charles Spurgeon's Ethernet Page is at
http://wwwhost.ots.utexas.edu/ethernet/ethernet-home.html

Eddy Insam's article "PC Interfacing Via the Ethernet"
http://www.eix.co.uk/Ethernet/

The comp.dcom.lans.token-ring FAQ is available at
http://www.networkuptime.com/faqs/token-ring/

The comp.dcom.cabling FAQ is available at
http://www.faqs.org/faqs/LANs/cabling-faq/index.html
ftp://rtfm.mit.edu/pub/usenet-by-group/comp.dcom.cabling/

The comp.dcom.cell-relay FAQ is available at
http://cell-relay.indiana.edu/cell-relay/FAQ/ATM-FAQ/FAQ.html

The Big-LAN FAQ, created for the big-lan@listserv.syr.edu mailing
list, which discusses "[the] issues in designing and operating
Campus-Size Local Area Networks, ..." is available at
http://www.uni-giessen.de/faq/archiv/lans.big-lan-faq/msg00000.html

The Network Engineer's Toolkit Site
http://www.wanresources.com/

Committee T1's World Wide Web Site
http://www.t1.org/

A page decribing T1 with technical details is
http://www.laruscorp.com/t1tut.htm

The ATM Forum's home page can be found at
http://www.atmforum.com/

The University of Leeds ATM MultiMedia group has a collection of
articles, links, etc about ATM.
http://www.scs.leeds.ac.uk/atm-mm/links.html

The Frame Relay Forum's home page can be found at
http://www.frforum.com/

The Frame Relay Resource Center
http://www.alliancedatacom.com/

The Direct Cable Connection, Null-modem, Serial Ports site explains
how to connect two windows machines to each other using serial or
parallel ports to create a two nodes network.
http://www.indiacam.net/pinout/

Vinod Kalra's HDLC page.
http://members.tripod.com/~vkalra/hdlc.html

The GigaBit Ethernet Alliance home page
http://www.gigabit-ethernet.org/

The Daedalus project at Berkeley deals with wireless
networking and mobile computing, and it's web page
contains links to some articles.
http://daedalus.cs.berkeley.edu/

The Israely ADSL site provides information on ADSL and IP networking
in Herbew for Israelies.
http://www.adsl.org.il/


8.4 General networking sites.
-----------------------------

PC Support Advisor.
A support site which contains sections that deal with TCP/IP, including
some very good articles.
http://www.itp-journals.com/

TechFest's Networking page.
http://www.techfest.com/networking/

A large collection of communication tutorials may be found at
IOL's training page, which has links to materials on TCP/IP,
LAN technologies, programming & administrations manuals, and more.
http://www.iol.unh.edu/training/index.html

3COM has a page containing links to a collection of networking articles.
http://www.3com.com/technology/tech_net/white_papers/index.html

Protocols for WAN, LAN, ATM data communications and telecommunications.
http://www.protocols.com/

An excellent networking index site.
http://www.saintrochtree.com/zones/it/topics/2000-01-01-b/
Oceanwave Technical Resources.
http://www.oceanwave.com/technical-resources/

Rohit's Srivastava's High Speed Networking & Programming page.
http://members.tripod.com/~srohit/compu.html

Network Design Tutorials and Other Resources.
http://www.alaska.net/~research/Net/tutorial.htm

Networking Technologies - Software Toolkits and Documentation
http://www.nsrc.org/lowcost_tools/net-tech.html

Network Troubleshooting site.
http://www.networktroubleshooting.com/

Tomi Engdahl's Telecommunication Electronics Page.
http://junitec.ist.utl.pt/einfo/telecom.html

Standards (and Cross References)
http://www.cmpcmm.com/cc/standards.html

Lynn Larrow's Modems, Networking and Communications Links page.
http://www.internetweekly.org/llarrow/comfaqs.html

Hill Associates IT Technology Training networking articles.
http://www.hill.com/library/staff_publications.shtml
http://www.garykessler.net/library/


Thanks.
-------

I have written this document over the last few years. Yet, I could not
have made this document without the assistance of other people. I would,
therefore, like to thank to Andrew Gierth, Trevor Jenkins, Mark Daugherty,
Michael Hunter, David Peter, Erick Engelke, Jose Carrilho, Jose Carrilho,
Al Vonkeman, Zia R. Siddiqui, Jarle Aase, Daryl Banttari, SecurePoint,
Brian Schwarz, James Marshall, Diane Boling, Gisle Vanem, Jennifer Lazbin,
Enrique Fdez. Rasero, Peter Soreanu, Gary Kessler, Simon Bowring, Thomas
Lee, Eddy Insam, Petteri Kettunen, Harald Norvik, Debby Koren, and Lynn
Larrow who helped me in many ways, and to all the people who worked to
produce all the materials listed in this FAQ.
sevencat 2004-03-26
  • 打赏
  • 举报
回复
8. Misc Networking Pages.
-------------------------


8.1 General.
------------

A networking terms dictionary is available
http://www.rad.com/networks/netterms.htm

There's a site for the Kermit project at
http://www.kermit-project.org/

A good search engine could supply further info.
Yahoo at http://www.yahoo.com/
AltaVista at http://www.altavista.com/
Google at http://www.google.com/

The Networked Computer Science Technical Reference Library site
is an archive of computer science articles, which can be searched
through using an impressive search engine.
http://cs-tr.cs.cornell.edu/

Google nowadays archives all the posts to UseNet.
Google's UseNet archive, at http://groups.google.com/, enables users
to search through an archive covering many years using different
methods, which may be combined, such as words from articles, authors,
and newsgroups. The ability to find past posts discussing unfamiliar
subjects is an endless source of information, and may supply
immediate answers to questions asked on usenet in the past.

If you wish to have a post of yours not archived in dejanews add
the header "X-No-Archive: Yes" to your posting's header, or write
it as your article's first line. Notice that this wouldnt prevent
other people from quoting your article, thus causing the quoted
material to be archived.

Other useful features of DejaNews :
- Get poster profiles.
This gives a count of how many posts did a poster send to each
newsgroup, with a poster identified by it's email address.
- Search for newsgroups discussing given subjects.
As the search is done by frequency of words in posts, the
results should be taken with a grain of salt, e.g.
-------------------------------------------------------------------------------
NEWSGROUPS WHERE PEOPLE TALK ABOUT: christianity

All the newsgroups in the following list contain christianity in some article.
The confidence rating indicates how sure we are that people talk about your
query in the newsgroup. Clicking on the newsgroup name will show you all of
the articles within the group which match your query.

Confidence Newsgroup
99% alt.atheism
63% rec.games.frp.misc
54% rec.music.christian
39% alt.religion.christian
38% soc.religion.christian
38% soc.penpals
33% austin.general
-------------------------------------------------------------------------------

The Norwegian University of Science and Technology, located at
Trondheim, has an FTP search engine on the web, located at
http://ftpsearch.ntnu.no/ftpsearch, that can find files on
anonymous FTP servers world wide.

The search is similar to the one done by archie, and can be very
useful for finding source code for utilities, FAQs, etc.

A quick search for the word ping produced the following output :
-------------------------------------------------------------------------------
ftp.cc.uec.ac.jp (Japan)
1 ftp.cc.uec.ac.jp /.0/4.4BSD-Lite/usr/src/sbin/ping
2 ftp.cc.uec.ac.jp /.0/4.4BSD-Lite/usr/src/sys/i386/floppy/ping
3 ftp.cc.uec.ac.jp /.0/Linux/redhat-4.1/i386/RedHat/instimage/usr/bin/ping
4 ftp.cc.uec.ac.jp /.0/Linux/redhat-devel/i386/RedHat/instimage/usr/bin/ping

ftp.dwc.edu (Educational)
5 ftp.dwc.edu /.03/redhat/i386/RedHat/instimage/usr/bin/ping
6 ftp.dwc.edu /.03/redhat/sparc/RedHat/instimage/usr/bin/ping
7 ftp.dwc.edu /.03/redhat/sparc/misc/src/trees/rescue/bin/ping

ftp.fujixerox.co.jp (Japan)
8 ftp.fujixerox.co.jp /.1/NetBSD-current/src/sbin/ping

[more links snipped]

-------------------------------------------------------------------------------

Other files search engine are located at such places as
http://castor.acs.oakland.edu/cgi-bin/vsl-front/ which can find files
for specific platforms (e.g. unix, windows, mac) or specific formats
(e.g. wav, midi, fonts, source code).

There are three good sites to find mailing lists that discuss a subject
of interest. The first is located at http://groups.yahoo.com/, and
actually carries (and allows to create) mailing lists, the second is a
a lists search engine located at http://www.liszt.com/, and the last
is a directory of mailing lists located at http://paml.net/


8.2 Network research sites & pages.
-----------------------------------

Networking Research at the PSC
http://www.psc.edu/networking/

List of Publications by Raj Jain's Group
http://www.cis.ohio-state.edu/~jain/papers.html

Luigi Rizzo - Research work
http://www.iet.unipi.it/~luigi/research.html

UCLA Internet Research Lab
http://irl.cs.ucla.edu/

TCP Over Satellite work group
http://tcpsat.grc.nasa.gov/tcpsat/

Rutgers university DataMan mobile computing laboratory
http://www.cs.rutgers.edu/dataman/

Network Bibliography
http://www.cs.columbia.edu/~hgs/netbib/

ValueRocket Consulting
http://www.valuerocket.com/papers/

The Technion's Laboratory of Computer Communications and Networking.
http://www.cs.technion.ac.il/Labs/Lccn/index.html
Kitfox AI 2004-03-26
  • 打赏
  • 举报
回复
好啊,实在太好了,前无古人后无来者。顶顶顶顶!!!!
china_wu 2004-03-26
  • 打赏
  • 举报
回复
up
sevencat 2004-03-26
  • 打赏
  • 举报
回复
There are three great sites for all of MS-Windows's versions, which
cover a lot of info relating to connecting MS-Windows to TCP/IP networks.
The sites are :
http://www.windows.com/
http://www.barkers.org/windows/
http://search.support.microsoft.com/kb/c.asp

There are several good sites for various versions of Unix & Linux
GNU project http://www.gnu.org/
OpenBSD's home page http://www.openbsd.org/
FreeBSD's home page http://www.freebsd.org/
NetBSD's home page http://www.netbsd.org/
Linux's home page http://www.linux.org/
Trinux's home page http://www.trinux.org/
Linux Kernel Archive http://www.kernel.org/

The Linux Router Project, making a floppy sized distribution of Linux
used to build and maintain routers, terminal servers, etc.
http://www.linuxrouter.org/

The Internet Software Consortiumi, a non-profit organization, carries
and supports BIND, DHCP, and INN. The software is supplied for free,
as well as limited support via mailing list. A support contract comes,
naturally, with a fee.
http://www.isc.org/

Erick Engelke's WATTCP MS-DOS TCP/IP stack has a home page
http://www.wattcp.com/

Gisle Vanem has upgraded the WATTCP tcp/ip stack to include
DHCP, RARP, file-based lookup, BSD-compatible API. Supports
several compilers and DOS-extenders. WATT-32 is found at
http://www.bgnett.no/~giva/index.html

Phil Karn's KA9Q (DOS TCP/IP stack) is under Karn's home page.
http://people.qualcomm.com/karn/code/ka9qnos/

Windows and TCP/IP for Internet Access
http://learning.lib.vt.edu/wintcpip/wintcpip.html

Michael Bernardi's MS-DOS Applications for Internet Use FAQ, which
contains a list of TCP/IP stacks & applications for DOS.
ftp://ftp.demon.co.uk/pub/doc/ibmpc/dos-apps.txt
http://www.dendarii.demon.co.uk/FAQs/dos-apps.html

Dan Kegel has a page titled "MS-DOS TCP/IP Programming", which
is crammed with links & info about TCP/IP for DOS.
http://www.alumni.caltech.edu/~dank/trumpet/

Information about NetBIOS and NetBEUI can be found at
http://www.s390.ibm.com/bookmgr-cgi/bookmgr.cmd/BOOKS/bk8p7001/CCONTENTS
http://ourworld.compuserve.com/homepages/timothydevans/nbf.htm


4. Addresses, subnets, DNS, switching, and routing.
---------------------------------------------------

Understanding IP Addressing: Everything You Ever Wanted To Know
http://www.3com.com/nsc/501302.html

Understanding IP Addressing
http://noc.gate.net/doclib/faqs/help/net.html

The IP Address and Classes
http://www.sangoma.com/fguide.htm

What's A Netmask?
http://www.johnscloset.net/primer/subnet.html

Daryl's TCP/IP Primer
Addressing and Subnetting on the Near Side of the 'Net
http://www.ipprimer.com/

Breeze Through Subnet Masking, by John Lambert, MCSE
http://support.wrq.com/tutorials/tcpip/tcpipfundamentals.html

IP Address Subnetting Tutorial
http://www.ralphb.net/IPSubnet/

IP Subnet Calculations
http://www.swcp.com/~jgentry/topo/unit3.htm

The Subnet Online site
http://www.subnetonline.com/

Al Vokeman's netmask calculator
The calculator is implemented via JavaScript (not CGI),
making it quick, but requires JavaScript supported and enabled.
http://www.telusplanet.net/public/sparkman/netcalc.htm

A CIDR subnet mask calculator can be found at
http://minnie.cs.adfa.edu.au/Gateways/range_check.html

Petteri Kettunen's subnet calculator
http://neko.homeunix.net/~petterik/Subnetting.html

DHCP sites :
1. Ralph Droms' DHCP Resources site
http://www.dhcp.org/
2. Alan Dobkin's DHCP Resources
http://nws.cc.emory.edu/webstaff/alan/net-man/computing/dhcp/

DNS sites :
1. Gary Kessler's Setting Up Your Own DNS
http://www.garykessler.net/library/dns.html
2. The DNS Security Extensions, by Cricket Liu.
http://www.acmebw.com/resources/papers/dnssec.pdf
3. The DNS Resources Directory, an excellent resource, may be found at -
http://www.dns.net/dnsrd/
4. A Microsoft Windows-2000 DNS article by Thomas Lee and Joseph Davies
http://microsoft.com/technet/network/domain.asp

In general
http://www.bind.com/
http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/routing.htm

IGRP & EIGRP :
http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/igrp.htm
http://www.cisco.com/warp/public/103/index.shtml
http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/en_igrp.htm

RIP :
http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/rip.htm

BGP :
http://www.cisco.com/warp/public/459/18.html
http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/bgp.htm
http://www.academ.com/nanog/feb1997/BGPTutorial/index.htm

OSPF :
http://www.cisco.com/warp/public/104/1.html
http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/ospf.htm

Multi Layer Routing :
http://www.watersprings.org/links/mlr/

Multicast routing :
The IP Multicast Initiative home page
http://www.ipmulticast.com/
The Mbone (multicast bone) FAQ
http://www.cs.columbia.edu/~hgs/internet/mbone-faq.html
Introduction to IP Multicast Routing
http://www.3com.com/nsc/501303.html
A collection of documents explaining multicast routing.
ftp://ftpeng.cisco.com/ipmulticast/training/index.html

Merit GateD Consortium
This site contains wealth of information about GateD, including
source distributions, documentation, etc.
http://www.gated.org/

OSPFD Resource Page
This site includes a complete C++ implementation of OSPF. This is
the same implementation that accompanies John T. Moy's book mentioned
earlier in this FAQ.
http://www.ospf.org/

GNU Zebra site
The GBU Zebra project is a router software implementing OSPFv2,
BGP4, RIPv1, and RIPv2. It has a special architecture that differs
from GateD in that it allows to offloads the computation from the
CPU to special ASICs and in it's modularity.
http://www.zebra.org/

"Layer 3 and 4 Switching", article from Performance Computing.
http://web.archive.org/web/20010506172152/www.unixreview.com/articles/1998/9812/9812pp/pp.htm

"IP Switching: Issues and Alternatives,", by R. Jain.
http://www.cis.ohio-state.edu/~jain/talks/ipsw.htm

"IP Switching", course given by Shishir Agrawal.
http://www.cis.ohio-state.edu/~jain/cis788-97/ip_switching/index.htm

"L5: A Self Learning Layer 5 Switch", a report from IBM.
http://www.private.org.il/l5.pdf

IPv4 address space consumption :
http://moat.nlanr.net/IPaddrocc/
http://www.caida.org/outreach/resources/learn/ipv4space/
http://www.isi.edu/in-notes/iana/assignments/ipv4-address-space
ftp://rs.arin.net/netinfo/ip_network_allocations
sevencat 2004-03-26
  • 打赏
  • 举报
回复
The Generic Top Level Domain
Memorandum of Understanding - http://www.gtld-mou.org/
Internet Ad-Hoc Committee home page - http://www.iahc.org/
ICANN - The Internet Corporation for
Assigned Names and Numbers - http://www.icann.org/
ICANN Watch - http://www.icannwatch.org/
Open Root Server Confederation - http://www.open-rsc.org/
RFC editor's web page - http://www.rfc-editor.org/

Internet Assigned Numbers Authority home page - http://www.iana.org/
American Registry for Internet Numbers - http://www.arin.net/
Asian Pacific Network Information Centre - http://www.apnic.net/
Resaux IP Europeens Net Coordiantion Centre - http://www.ripe.net/

Overview of the DNS Controversy - http://www.rkey.com/dns/overview.html

The National Telecommunications and Information Administration's
Proposals for Management of Internet Names and Addresses page.
http://www.ntia.doc.gov/ntiahome/domainname/domainhome.htm

The AlterNIC's home page is http://www.alternic.org/
This site carries RFCs, internet drafts, and materials
relating to freedom of speech, encryption, and more.


2.4 FAQs, newsgroups, and mailing lists.
----------------------------------------

The comp.answers & news.answers newsgroups contain (or at least should)
all FAQ postings for the newsgroups dealing with computers.

The following newsgroups contain discussion related to TCP/IP :
- Newsgroups FAQs are posted periodically to their top-hierarchy
answers newsgroup (e.g. comp.os.vms => comp.answers). Those
groups, along with news.newusers.questions, are great places
to look for FAQs & tips in.
- the comp.protocols hierarchy, which covers various networking
protocols, such as tcp/ip, kermit, and iso.
notice that some TCP/IP related protocols have discussion
groups of their own (e.g. NFS, SNMP, NTP, PPP).
- the comp.dcom hierarchy, including groups that discuss lans,
modems, and ethernet.
- the comp.mail hierarchy, which covers various electronic
mail programs (pine, elm, sendmail, etc).
- The news hierarchy, which covers the various subjects related
to usenet, including the NNTP protocol.

All the newsgroups' FAQs, as well as other introductory documents are
stored at ftp://rtfm.mit.edu/pub/ and at http://www.faqs.org/. A good
introductory to TCP/IP from the site is the file
ftp://rtfm.mit.edu/pub/net/internet.text

As the rtfm.mit.edu & faqs.org sites might be heavily loaded, and
as many sites mirror the FAQs archive, it is advisable to search
for FAQs at geographically nearer sites. A list of many mirror sites
(allowing access via FTP, WWW, Gopher, mail, etc) is available at :
ftp://rtfm.mit.edu/pub/faqs/news-answers/introduction

A very good TCP/IP Q & A site was brought up by Yegappan Lakshmanan.
The content of the site was reviewed by the readership of the
comp.protocols.tcp-ip newsgroup and can be found at :
http://www.geocities.com/SiliconValley/Vista/8672/network/

The comp.protocols.tcp-ip.ibmpc newsgroup has a FAQ,
written by Bernard D. Aboba, which can be found at at :
ftp://ftp.netcom.com/pub/ma/mailcom/IBMTCP/ibmtcp.zip
http://www.uni-giessen.de/faq/archiv/ibmpc-tcp-ip-faq.part1-3/

The newsgroup is gated to a mailing list and it is served
by listserv@list.nih.gov, under the name PCIP.

The comp.protocols.tcp-ip.domains newsgroup has a FAQ,
maintained by Chris Peckham, which can be found at :
http://www.users.pfmc.net/~cdp/cptd-faq/
ftp://rtfm.mit.edu/pub/usenet/news.answers/internet/tcp-ip/domains-faq/

The comp.protocols.ppp FAQ is available at
http://www.faqs.org/faqs/ppp-faq/part1/index.html
http://cs.uni-bonn.de/ppp/part1.html

The comp.protocols.snmp FAQ FAQ is available at
http://www.pantherdig.com/snmpfaq/index.html
ftp://ftp.cs.utwente.nl/pub/src/snmp/

The alt.winsock newsgroup has a FAQ, by Nancy Cedeno Alegria, located at :
http://www.faqs.org/faqs/windows/winsock-faq/index.html
ftp://rtfm.mit.edu/pub/usenet/news.answers/windows/winsock-faq

This newsgroup is gated to a mailing list. The mailing list is named
winsock@microdyne.com. The [un]subscribe address is winsock-request@microdyne.com

Info about various TCP/IP protocols originating from UNIX utilities,
such as r-* services, lpd, and talk, can be found in a page I've
written up for the purpose of concentrating the info at a single point.
http://www.private.org.il/mini-tcpip.faq.html

The Amiga TCP/IP FAQ, written by Mike Meyer, is available at
http://users.mentasm.com/~mramiga/faqs/amitcp1.htm
http://users.mentasm.com/~mramiga/faqs/amitcp2.htm

The Amiga Nertworking FAQ, written by Richard Norman, is available at
http://www.faqs.org/faqs/amiga/networking-faq/part1/index.html

The comp.security.firewalls newsgroup has a FAQ, available at
http://www.faqs.org/faqs/firewalls-faq/index.html
http://www.interhack.net/pubs/fwfaq/

There's also a firewalls mailing list,
served by mailto:Majordomo@GreatCircle.com
archived at ftp://ftp.greatcircle.com/pub/firewalls/archive/

There's a Searchable Check Point FireWall-1 discussion archive
site (other mailing lists archived as well).
http://search.securepoint.com/index.php

There's a free firewalls site,
http://www.free-firewall.org/

Slow start & delayed ack explained
http://www.sun.com/sun-on-net/performance/tcp.slowstart.html

Henning Schulzrinne's RTP (Real Time Protocol) site
http://www.cs.columbia.edu/~hgs/rtp/

Queen's University Real - Time Transport Protocol (QRTP)
http://htm4.ee.queensu.ca:8000/ling/QRTP.html

Two RFCs that can serve as FAQs are :

- RFC #1180 (RFC1180), titled "A TCP/IP Tutorial", is a good
tutorial, with a focus on how an IP packet travels from
source to destination.

- RFC #2151 (FYI30), titled "A Primer On Internet and TCP/IP Tools"
is a good introductory to TCP/IP tools, such as ping, finger, and
traceroute.


3. O/S Specific.
----------------

The Unix Guru Universe's where one could find references to all kinds
of info relating to UNIX, including TCP/IP.
http://www.ugu.com/

The comp.unix.programmer FAQ can be found at :
http://www.erlenstar.demon.co.uk/unix/
ftp://rtfm.mit.edu/pub/usenet/comp.unix.programmer/faq
sevencat 2004-03-26
  • 打赏
  • 举报
回复
TCP/IP courses from universities :
0. The Cooperative Association for Internet Data Analysis
maintains a list of pointers to Internet Engineering
related university courses.
http://www.caida.org/outreach/iec/courses/
1. Dr. Reuven Cohen
Internet Networking
Technion - Israel Institute of Science
http://www.cs.technion.ac.il/Courses/cs236341/
2. Dr. Shlomi Dolev
Computer Communications and Distributed Algorithms
Ben-Gurion University
http://www.cs.bgu.ac.il/~ccda012/ (slides are in hebrew)
3. Dr. Ofer Hadar
Introduction To Computer Networks
Technion - Israel Institute of Science
http://www.cs.technion.ac.il/~cs236334/ (slides are in hebrew)
4. Dr. Arieal Orda
Internet - Architecutre and Protocols
Technion - Israel Institute of Science
http://tiger.technion.ac.il/courses/046000/
5. Dave Hollinger
Network Programming
http://www.cs.rpi.edu/courses/netprog/index.html
6. Prof. Jim Kurose
Computer Networks
http://www-net.cs.umass.edu/cs653/
7. Phil Scott
Data Communications, Computer Networks
http://ironbark.bendigo.latrobe.edu.au/staff/pscott/pscott.home.html
8. David Cyganski
Telecommunications Transmission Technologies
http://bugs.wpi.edu:8080/EE535/
9. S. Keshav
Engineering Computer Networks
http://web.archive.org/web/20011101082505/http://www.cs.cornell.edu/cs519/
10. Prof. Ralph Droms
Purdue University
Computer Networks
http://www.netbook.cs.purdue.edu/cs363/index.html
11. Simon Cleary
RMIT university
Computer Networks and Protocols
http://www.cse.rmit.edu.au/~rdssc/courses/ds454/
12. Phil Scott
La Trobe university
Computer Networks
http://ironbark.bendigo.latrobe.edu.au/subjects/bitcne/
Data Communications
http://ironbark.bendigo.latrobe.edu.au/courses/bcomp/c202/


2.2 Resources for programmers.
------------------------------

The comp.protocols.tcp-ip group has a FAQ, previously maintained by
George V. Neville-Neil, now by Mike Oliver, is located at :
ftp://rtfm.mit.edu/pub/faqs/internet/tcp-ip/tcp-ip-faq/
http://www.itprc.com/tcpipfaq/default.htm
http://www.private.org.il/tcpip-faq/default.htm

The sockets programming FAQ, by Vic Metcalfe, is located at :
ftp://rtfm.mit.edu/pub/usenet/news.answers/unix-faq/socket
http://www.faqs.org/faqs/unix-faq/socket/index.html

BSD socket programming tutorials
Quick - http://ftp.std.com/homepages/jimf/sockets.html
Intro - http://www-users.cs.umn.edu/~bentlema/unix/ipc/ipctut.html
Advanced - http://www-users.cs.umn.edu/~bentlema/unix/advipc/ipc.html

Unix Network Programming
http://www-net.cs.umass.edu/ntu_socket/

The Winsock Programmer's FAQ, by Warren Young, is located at :
http://tangentsoft.net/wskfaq/
http://www.faqs.org/faqs/windows/winsock/programmer-faq/index.html
ftp://rtfm.mit.edu/pub/usenet/news.answers/windows/winsock/programmer-faq

Al's WinSock Tuning FAQ
http://www.cerberus-sys.com/~belleisl/mtu_mss_rwin.html

The windows-sockets page, by Bob Quinn, is located at :
http://www.sockets.com/

The sockaddr.com - Programming Resources for WinSock site, is located at :
http://www.sockaddr.com/

The Raw IP Networking FAQ, by Thamer Al-Herbish, is available at :
http://www.whitefang.com/rin/

Catalyst's Introduction to TCP/IP Programming
http://www.catalyst.com/support/tutorials/tcpintro/

RPC - Remote Procedure Calls
http://pandonia.canberra.edu.au/OS/l14_1.html
http://www.ja.net/documents/NetworkNews/Issue44/RPC.html

An Introduction to Socket Programming
http://www.uwo.ca/its/doc/courses/notes/socket/index.html
Beej's Guide to Network Programming
http://www.ecst.csuchico.edu/~beej/guide/net/
Vijay Mukhi's Winsock Programming page
http://www.vijaymukhi.com/vmis/wsock.htm
Spencer's Socket Site
http://www.lowtek.com/sockets/


2.3 Standards bodies.
---------------------

RFCs (Requests For Comments) are the official standards for the
Internet Protocols. Those are specs, not hands-on manuals.
The RFC index lists the status of each RFC. STD #1 lists which
RFCs a compliant IP stack should implement.

The RFC Editor's home page is http://www.rfc-editor.org/
This is _the_ authorative source for RFCs (which include all
the standards for TCP/IP), FYIs, and other infos about the
internet and TCP/IP. RFC drafts are available for the Internet
Engineering Task Force's site (http://www.ietf.org/).

Five other good places to look for RFCs are -

1. The Kashpureff Family's site, at http://www.kashpureff.org/nic/,
which has a copy of all RFCs and drafts, as well as a search
engine to search for keywords through either RFCs or drafts.

2. The Internet FAQ Consortium site, at http://www.faqs.org/rfcs/,
which has a search engine, indice, RFCs FAQs, etc.

3. By email to rfc-info@isi.edu. to get further info, send a
message with any subject, and with the body having one line,
containing either "help", or "help: ways_to_get_rfcs".

4. The Internet Standards site, which breaks down RFCs by
category (e.g. by application) at http://www.Internet-Standard.com/

5. The RFC Sourcebook, at http://www.networksorcery.com/enp/default0303.htm
The site has an extensive and useful index.

An excellent index of RFCs is available in an appendix in Comer's
first volume, but it is current as of the publishing date only.

Comment : as many people seem to look for RFCs on CD-ROMs,
I list here two titles I know of :
1. Infomagic has a 2 CDs set titled "STANDARDS" which
contains, among other things, all the RFCs & IENs.
2. Walnut-Creek has a CD-ROM titled "Internet Info" which
contains some of the RFCs & IENs, among other stuff.

Network Research Group home page - http://www-nrg.ee.lbl.gov/nrg.html
Internet Engineering Task Force home page - http://www.ietf.org/
Internet Research Task Force home page - http://www.irtf.org/
Internet SOCiety home page - http://www.isoc.org/
Internet Architecture Board home page - http://www.iab.org/
Internet Engineering Steering Group - http://www.ietf.org/iesg.html
Internet Engineering & Planning Group - http://www.iepg.org/
Internet Mail Consortium - http://www.imc.org/
sevencat 2004-03-26
  • 打赏
  • 举报
回复
OSPF, Anatomy of an Internet Routing Protocol
By John T. Moy
Published by Addison-Wesley
ISBN 0201634724
A great book about OSPF, including it's history, multicast routing,
management, debugging, comparisons to other routing protocols. The
book was written by the author of the OSPF RFCs, who is both a good
author and authorative source of information on the protocol.

A companion book has been published, containing a complete implementation
of an OSPF daemon in C++ on CD-ROM and the text of the book documents the
implementation. I had not seen a copy of the book, but it's details are

OSPF Complete Implementation
By John T. Moy
Published by Addison-Wesley
ISBN 0201309661

BGP4
By John W. Stewart III
Published by Addison-Wesley
ISBN 0201379511
A small (<150 pages) book, covering BGP4 in full using clear language
and drawings. The four chapters include an introduction, the protocol,
operations, and extensions (scaling, route flap dampening, authentication,
negotiation, etc).

RIP - An Intra-Domain Routing Protocol
By Gary Scott Malkin
Published by Addison-Wesley
ISBN 0201433206
Another small (<120 pages) book, covering RIP v1 & v2 in a concise and
clear manner and drawings. The book includes some introductory material,
e.g. topologies and subnets/supernets, three chapters about configuration
(including Nortel & Cisco routers) and troubleshooting, and three chapters
covering the RIP specs & MIB.

Data and Computer Communications
By William Stallings
Published by Prentice-Hall.
ISBN 0024154253
A very good book about computer communications basics.
Includes information about TCP/IP and IPv6.

Computer Networks
By Andrew S. Tanenbaum
Published by Prentice-Hall.
ISBN 0133499456
A very good book about computer communications basics.
Describes communications according to the OSI seven layers model,
but includes information about TCP/IP and IPv6.

Information Warfare and Security
By Dorothy E. Denning
Published by Addison-Wesley
ISBN 0201433036
A book covering all aspects of information warfare with clear
explanations and many references. Gives an excellent framework
to Internet security.


1.2 On-line books and magazines.
--------------------------------

Publishers' sites can be found at -
O'Reilly http://www.oreilly.com/
Prentice Hall http://www.prenhall.com/
Addison Wesley http://www.aw.com/
MacMillan http://www.mcp.com/
McGraw-Hill http://www.mcgraw-hill.com/
MIS:Press http://www.mispress.com/ (M & T Books)
New Riders http://www.newriders.com/

You can find many books on the web :
1. Macmillan's Personal Bookshelf
http://www.informit.com/free_library/index.asp</a>
2. National Academy Press's Reading Room
http://www.nap.edu/info/browse.htm
3. The Network Administrators' Guide, by Olaf Kirch.
http://www.ibiblio.org/mdw/LDP/nag/nag.html
4. Computer Networks and Internets, by Douglas E. Comer.
http://www.netbook.cs.purdue.edu/
5. Netizens: An Anthology, by
http://www.columbia.edu/~rh120/
ftp://wuarchive.wustl.edu/doc/misc/acn/netbook/

Books related pages :
1. The Xinu BUG Page at the University of Canberra, Australia.
http://willow.canberra.edu.au/~chrisc/bugs.html
2. List of enhancements to Comer's TCP code by Simon Ilyushchenko
http://simonf.com/tcp/

On-line networking magazines :
1. Network Magazine
http://www.networkmagazine.com/
2. Network Computing
http://www.networkcomputing.com/
3. Data Communications magazine has a collection of technical
tutorials available at it's site, covering such subjects as
ATM, IP, high speed networking, etc.
http://www.networkmagazine.com/Tutorials/
4. First Monday is a journal about the Internet which is published on
the internet, with all it's articles peer-reviewed.
It's archives contain articles about TCP/IP, indexed at
http://www.firstmonday.dk/subjects/technical.html


2. Major On-Line Resources.
---------------------------


2.1 TCP/IP Introductions & Courses.
-----------------------------------

gopher://gopher-chem.ucdavis.edu/11/Index/Internet_aw/

Optimized Engineering Technical Compendium (LANs & IP)
http://www.optimized.com/COMPENDI/

Introduction to TCP/IP
http://pclt.cis.yale.edu/pclt/COMM/TCPIP.HTM

Introduction to the Internet Protocols
http://oac3.hsc.uth.tmc.edu/staff/snewton/tcp-tutorial/

Under the hood of the 'net: An overview of the TCP/IP Protocol Suite,
By Jason Yanowitz.
http://info.acm.org/crossroads/xrds1-1/tcpjmy.html

IP overview, by Cisco.
http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/ip.htm

Tech-NIC's technical page
http://www.tech-nic.net/html/technical.html

Thomas's Technical Links
http://www.psp.co.uk/tfl/techlinks.htm

"TCP/IP Tutorial and Technical Overview" from IBM
http://www.redbooks.ibm.com/redbooks/GG243376.html

An Overview of TCP/IP Protocols and the Internet
http://www.garykessler.net/library/tcpip.html

Hedrick-intro to the Internet Protocols
http://oac3.hsc.uth.tmc.edu/staff/snewton/tcp-tutorial/

Von Welch has a network performance page at
http://archive.ncsa.uiuc.edu/People/vwelch/net_perf/
One of the subpages explains TCP windows
http://www.ncsa.uiuc.edu/People/vwelch/net_perf/tcp_windows.html

Marc Slemko' Path MTU Discovery and Filtering ICMP
http://www.worldgate.com/~marcs/mtu/

Connected: An Internet Encyclopedia
http://www.freesoft.org/CIE/index.htm
http://www.cl.cam.ac.uk/~and1000/CIE/index.htm

Materials on TCP/IP Networking
http://spectral.mscs.mu.edu/NetworksClass/Materials/

Computer Networking and Internet Protocols
By Keith W. Ross and James F. Kurose
http://occ.awlonline.com/bookbind/pubbooks/kurose-ross1/
sevencat 2004-03-26
  • 打赏
  • 举报
回复
哪位大哥帮我顶一下。
SNMP, SNMPv2, SNMPv3, and RMON1 and RMON2
By William Stallings
Published by Addison-Wesley
ISBN 0201485346
An encyclopedic book about SNMP & RMON. Covers the material in
depth and clarity, giving good background of the subject.

SNMP - A Guide to Network Management
By Dr. Sidnie Feit
Published by McGraw-Hill
ISBN 0070203598
A thorough, though a bit dated, book about SNMP. Covers SNMP(v1)
and SNMPv2 clearly with all the details, which is handy for
actually managing a network with SNMP.

Networking with Microsoft TCP/IP
By Drew Heywood
Published by New Riders
ISBN 1562057138
An excellent book about management of Microsoft Windows TCP/IP
networks, starting from the basics of explaining networking technologies,
through installation of TCP/IP on DOS and all MS Windows versions,
routing, managing (DHCP, WINS, DNS), troubleshooting, IIS & FrontPage.

TCP/IP Network Administration
By Craig Hunt
Published by O'Reilly
ISBN 1565923227
An excellent book about management of TCP/IP networks, covering
every subject that needed, including DNS, routing, sendmail,
configuring, and trouble-shooting. This book is UNIX oriented.

Networking Personal Computers with TCP/IP - Building TCP/IP Networks
By Craig Hunt
Published by O'Reilly
ISBN 1565921232
A good book about management of TCP/IP networks, which is PC
oriented, covering DOS, Windows, Windows-95, and Windows-NT.

Teach Yourself TCP/IP in 14 days.
By Timothy Parker
Published by SAM'S Publishing.
ISBN 0672305496
This book is intended for network managers, and gives an overview
of TCP/IP from ground up, in a short schedule.

PPP Design and Debugging
By James Carlson
Published by Addison-Wesley
ISBN 0201185393
An excellent book about PPP. This compact book is packed with info
about PPP, covering it in both depth and width, covering LCP,
negotiation & authentication, network layer protocols, bandwidth
management, etc, including trace interpretation, C code & pseudo
code, and lots of resources and references.

NOSintro -- TCP/IP over Packet Radio
(An Introduction to the KA9Q Network Operating System)
By Ian Wade
Published by Dowermain
ISBN 1897649002
NOSintro describes in detail how to use Phil Karn's KA9Q Network
Operating System, and is a classic reference work in this area.
It includes full information on how to install & configure KA9Q,
and how to make it work in a packet radio environment.
The book is very well illustrated, with many diagrams & hands-on
examples of keyboard commands.
Extracts from the book are available at http://www.ian.wade.care4free.net/nosintro.htm

IPv6: The New Internet Protocol
By Christian Huitema
Published by Prentice-Hall.
ISBN 0138505055
This book, written by Christian Huitema - a member of the Internet
Architecture Board, gives an excellent description of IPv6, how
it differs from IPv4, and the hows and whys of it's development.

Unix Network Programming
By W. Richard Stevens
Published by Prentice-Hall
ISBN 0139498761
Obsoleted by the second edition, covered above.

Due to Richard Steven's death on Sep 1st 1999,
I'm in the dark regarding this books's future.
I have sent a query to Prentice-Hall, and will
update the text accordingly.

Unix System V. Network Programming
By Steven A. Rago
Published by Addison-Wesley
ISBN 0201563185
This books gives a good coverage of UNIX network programming.
Though it is centered around SVR4, it covers many subjects,
including STREAMS, TLI, sockets, RPC, and kernel level
communications, including ethernet & SLIP drivers.

The Design and Implementation of the 4.4 BSD Operating System.
By Marshall Kirk McKusick, Keith Bostic, Michael J. Karels
and John S. Quarterman.
Published by Addison-Wesley.
ISBN 0201549794
This book describes the internals of the 4.4 BSD operating system,
including the Net/2 TCP/IP stack implementation. A good explanation
of the most commonly used implementation of TCP/IP.

Linux Kernel Internals
By M. Beck, H. Bohme, M. Dziadzka, U. Kunitz, R. Magnus,
and D. Verworner.
Published by Addison-Wesley
ISBN 0201331438
This book describes the internals of the Linux operating system,
version 2.0, with a chapter devoted to the TCP/IP stack.

Windows Sockets Network Programming
By Bob Quinn and Dave Shute
Published by Addison-Wesley
ISBN 0201633728
An excellent book about winsock programming, with chapters about
porting apps from BSD Unix & sockets, DLLs, debugging, and nice appendice.

The two following books are not directly related to TCP/IP, but are
recommended as good books for windows programmer who write TCP/IP
clients & servers, and are complementary to the above book :

1. Win32 Network Programming
By Ralph Davis
Published by Addison-Wesley
ISBN 0201489309
This book shows programmers how to build networked apps
using the 32-bit features of Win95 and NT, and includes
a floppy with all the examples' code.

2. Multithreading Applications in Win32
By Jim Beveridge and Robert Wiener
Published by Addison-Wesley
ISBN 0201442345
This book shows developers how, when and where to use
multi-threading in Win32 applications, and includes a CD-ROM.

Differentiated Services for the Internet
By Kalevi Kilkki
Published by Macmillan Technical Publishing
ISBN 1578701325
An up to date and thorough book about the subject. Covers the
history of the subject, it's rational, and it's working in detail.

Interconnections
Bridges, Routers, Switches, and Internetworking Protocols.
By Radia Perlman
Published by Addison-Wesley
ISBN 0201634481
The second edition is much expanded over the first edition. It
covers bridging & routing with extensive theory and technical depth.
New material covers VLANs, ATM, WAN multicasting, and the routing
chapter covers not only IP but DECnet, IPX and PNNI as well.
Security is well covered, in contrast to other books on the subject.

Routing in the Internet
By Christian Huitema
Published by Prentice Hall
ISBN 0131321927
A clear and thorough, though a bit dated, book about routing.
Covers all major routing protocols (RIP, OSPF, IGRP & EIGRP, IS-IS,
EGP, BGP3, BGP4 & CIDR), and covers multicast, mobility,
and resource reservation.

Internet Routing Architectures
By Bassam Halabi
Published by Cisco Press
ISBN 1562056522
A clear and through book about interdomain routing network design,
with many clear examples with diagrams. Focuses on BGP4 and is,
naturally, oriented toward Cisco's way of doing it (which is not
much of a limit, considering Cisco's dominance of the routers market).
shootingstars 2004-03-26
  • 打赏
  • 举报
回复
呵呵,好。
太大了,分了四个包
目 录
译者序
前言
第一部分 TCP/IP基础
第1章 开放式通信模型简介 1
1.1 开放式网络的发展 1
1.1.1 通信处理层次化 2
1.1.2 OSI参考模型 3
1.1.3 模型的使用 5
1.2 TCP/IP参考模型 7
1.3 小结 7
第2章 TCP/IP和Internet 8
2.1 一段历史 8
2.1.1 ARPANET 8
2.1.2 TCP/IP 9
2.1.3 国家科学基金会(NSF) 9
2.1.4 当今的Internet 12
2.2 RFC和标准化过程 12
2.2.1 获得RFC 13
2.2.2 RFC索引 13
2.2.3 有关RFC的幽默 13
2.3 Internet服务简介 13
2.3.1 Whois和Finger 14
2.3.2 文件传输协议 14
2.3.3 Telnet 14
2.3.4 Email 14
2.3.5 WWW 14
2.3.6 USENET News 15
2.4 Intranet和Extranet概览 15
2.4.1 Intranet 15
2.4.2 将Intranet对外开放 16
2.5 Internet的明天 16
2.5.1 下一代Internet(NGI) 16
2.5.2 超速骨干网服务 16
2.5.3 Internet2(I2) 17
2.6 Internet管理组织 17
2.6.1 Internet协会 17
2.6.2 Internet体系结构组 17
2.6.3 Internet工程任务组 17
2.6.4 Internet工程指导组 17
2.6.5 Internet编号管理局 18
2.6.6 Internet名字和编号分配组织
(ICANN) 18
2.6.7 Internet网络信息中心和其他注
册组织 18
2.6.8 RFC编辑 18
2.6.9 Internet服务提供商 18
2.7 小结 19
第3章 TCP/IP概述 20
3.1 TCP/IP的优点 20
3.2 TCP/IP的层和协议 21
3.2.1 体系结构 21
3.2.2 传输控制协议 21
3.2.3 IP协议 23
3.2.4 应用层 25
3.2.5 传输层 25
3.2.6 网络层 25
3.2.7 链路层 25
3.3 远程登录(Telnet) 25
3.4 文件传输协议(FTP) 25
3.5 普通文件传输协议(TFTP) 26
3.6 简单邮件传输协议(SMTP) 26
3.7 网络文件系统(NFS) 26
3.8 简单网络管理协议(SNMP) 27
3.9 TCP/IP和系统结合 27
3.10 内部网概述 28
3.11 小结 28
第二部分 命名和寻址
第4章 IP网络中的名字和地址 29
4.1 IP寻址 29
4.1.1 二进制和十进制数 30
4.1.2 IPv4地址格式 30
4.2 子网的出现 34
4.2.1 分子网 35
4.2.2 可变长子网掩码(VLSM) 37
4.3 无类域前路由(CIDR) 38
4.3.1 无类地址 38
4.3.2 强化路由汇聚 39
4.3.3 超网化 39
4.3.4 CIDR怎样工作 39
4.3.5 公共地址空间 40
4.3.6 RFC 1597和1918 40
4.4 小结 40
第5章 ARP和RARP 41
5.1 使用地址 41
5.1.1 子网寻址 41
5.1.2 IP地址 43
5.2 使用地址解析协议 44
5.2.1 ARP cache 45
5.2.2 代理ARP 47
5.2.3 反向地址解析协议 47
5.3 使用ARP命令 47
5.4 小结 47
第6章 DNS:名字服务器 48
6.1 域名系统概述 48
6.2 授权局 50
6.3 DNS分布数据库 50
6.4 域和区 50
6.5 Internet顶级域 51
6.6 选择一个域名服务器 52
6.7 名字服务解析过程 52
6.7.1 递归查询 52
6.7.2 叠代查询 52
6.8 高速缓存 52
6.9 反向解析(Pointer)查询 52
6.10 DNS安全 52
6.11 资源记录 53
6.12 小结 54
第7章 WINS 55
7.1 NetBIOS 55
7.2 NetBIOS名字解析 57
7.3 动态NetBIOS名字解析 58
7.3.1 使用WINS的优点 58
7.3.2 WINS如何工作 59
7.3.3 配置WINS客户机 60
7.3.4 为代理配置WINS 60
7.3.5 配置NT 4.0系统 61
7.3.6 配置Windows 95或Windows 98
系统 61
7.4 安装WINS服务器 61
7.5 WINS管理和维护 62
7.5.1 加入静态表项 62
7.5.2 维护WINS数据库 63
7.5.3 备份WINS数据库 65
7.5.4 备份WINS注册项 65
7.5.5 恢复WINS数据库 65
7.5.6 压缩WINS数据库 66
7.5.7 WINS复制参与者 66
7.5.8 WINS实现建议 67
7.6 集成WINS和DNS名字解析服务 67
7.7 DHCP服务WINS选项 67
7.8 通过LMHOSTS进行NetBIOS名字
解析 68
7.9 小结 69
第8章 地址发现协议(BOOTP和DHCP) 71
8.1 “引导”协议(BOOTP) 71
8.2 动态主机配置协议(DHCP) 72
8.2.1 DHCP如何工作 72
8.2.2 理解租用地址 73
8.3 管理地址池 74
8.4 DHCP能处理的其他分配 75
8.4.1 注意重载 75
8.4.2 其他分配 75
8.5 小结 76
第三部分 IP和相关协议
第9章 IP协议家族 77
9.1 TCP/IP模型 77
9.1.1 解剖TCP/IP模型 78
9.1.2 协议组件 78
9.2 理解网际协议(IP) 79
9.2.1 IPv4结构 79
9.2.2 IP做什么 80
9.3 理解传输控制协议(TCP) 81
9.3.1 TCP头结构 81
9.3.2 TCP做什么 83
9.4 理解用户数据报协议(UDP) 85
9.4.1 UDP头结构 85
9.4.2 UDP能做什么 85
9.4.3 TCP和UDP 86
9.5 小结 86
第10章 IPv6 87
10.1 IPv6数据报 87
10.1.1 优先级分类 88
10.1.2 流标识 89
10.1.3 128位IP地址 89
10.1.4 IP扩展头 90
10.2 多IP地址主机 91
10.3 单播、组播和任一播头 91
10.4 从IPv4到IPv6的过渡 93
10.5 小结 94
第四部分 IP互联
第11章 IP网络中的路由 95
11.1 路由基本知识 95
11.1.1 静态路由 96
11.1.2 距离-向量路由 99
11.1.3 链路-状态路由 100
11.2 IP网络中的收敛 102
11.2.1 适应拓扑变化 102
11.2.2 收敛时间 106
11.3 计算IP网络中的路由 106
11.3.1 存储多条路由 107
11.3.2 初始化更新 107
11.3.3 路由度量标准 107
11.4 小结 108
第12章 路由信息协议(RIP) 109
12.1 理解RFC1058 109
12.1.1 RIP报文格式 109
12.1.2 RIP路由表 111
12.2 操作机制 112
12.2.1 计算距离向量 113
12.2.2 更新路由表 116
12.2.3 寻址问题 118
12.3 拓扑变化 120
12.3.1 收敛 120
12.3.2 计值到无穷 122
12.4 RIP的限制 127
12.4.1 跳数限制 128
12.4.2 固定度量 128
12.4.3 对路由表更新反应强烈 128
12.4.4 收敛慢 128
12.4.5 缺乏负载均衡 128
12.5 小结 129
第13章 开放式最短路径优先 130
13.1 OSPF起源 130
13.2 理解RFC 2328 OSPF,版本2 130
13.2.1 OSPF区 131
13.2.2 路由更新 134
13.3 研究OSPF数据结构 136
13.3.1 HELLO报文 137
13.3.2 数据库描述报文 137
13.3.3 链路-状态请求报文 138
13.3.4 链路-状态更新报文 138
13.3.5 链路-状态应答报文 140
13.4 计算路由 140
13.4.1 使用自动计算 140
13.4.2 使用缺省路由耗费 141
13.4.3 最短路径树 142
13.5 小结 144
第14章 网关协议 145
14.1 网关、桥和路由器 145
14.1.1 网关 145
14.1.2 网桥 146
14.1.3 路由器 146
14.1.4 自治系统 146
14.2 网关协议:基础知识 146
14.3 内部网关协议和外部网关协议 147
14.3.1 网关-网关协议(GGP) 147
14.3.2 外部网关协议(EGP) 147
14.3.3 内部网关协议(IGP) 148
14.4 小结 148
第五部分 网络服务
第15章 互联网打印协议 149
15.1 IPP历史 149
15.2 IPP和端用户 150
15.3 使用HP的IPP实现 151
15.4 小结 152
第16章 LDAP:目录服务 153
16.1 为什么使用目录服务 153
16.2 目录服务的功能 153
16.3 IP上的目录服务 154
16.4 OSI X.500目录模型 156
16.4.1 早期的X.500 157
16.4.2 今天的X.500 157
16.5 LDAP结构 157
16.5.1 LDAP层次结构 157
16.5.2 名字结构 158
16.6 目录系统代理和访问协议 158
16.7 轻型目录访问协议 158
16.7.1 查询信息 159
16.7.2 存储信息 160
16.7.3 访问权限和安全 160
16.8 LDAP服务器-服务器通信 161
16.8.1 LDAP数据互换格式(LDIF) 161
16.8.2 LDAP复制 162
16.9 设计LDAP服务 162
16.9.1 定义需求 162
16.9.2 设计策略 163
16.9.3 性能 164
16.9.4 网络功能 165
16.9.5 安全 166
16.10 LDAP配置 169
16.11 产品环境 169
16.11.1 创建计划 170
16.11.2 有价值的建议 171
16.12 选择LDAP软件 171
16.13 小结 174
第17章 远程访问协议 175
17.1 远程互联 175
17.1.1 ISDN 176
17.1.2 电缆调制解调器 176
17.1.3 数字用户环(DSL) 176
17.1.4 无线网络 177
17.2 远程认证拨入用户服务(RADIUS) 177
17.2.1 RADIUS认证 178
17.2.2 记账信息 179
17.3 用SLIP、CSLIP和PPP传输IP数
据报文 179
17.3.1 串行线路接口协议(SLIP) 179
17.3.2 压缩的SLIP(CSLIP) 180
17.3.3 点到点协议(PPP) 180
17.4 隧道远程访问 184
17.4.1 点到点隧道协议(PPTP) 185
17.4.2 两层隧道协议(L2TP) 188
17.4.3 IPSec 192
17.5 小结 194
第18章 防火墙 195
18.1 使网络安全 195
18.2 使用防火墙 196
18.2.1 代理服务器 197
18.2.2 报文过滤器 198
18.3 使服务安全 198
18.3.1 电子邮件(SMTP) 198
18.3.2 HTTP:万维网 199
18.3.3 FTP 199
18.3.4 Telnet 199
18.3.5 Usenet:NNTP 199
18.3.6 DNS 200
18.4 建造用户自己的防火墙 200
18.5 使用商业防火墙软件 200
18.6 小结 202
第19章 IP安全 203
19.1 使用加密 203
19.1.1 公共-私钥加密 204
19.1.2 对称私钥加密 205
19.1.3 DES、IDEA及其他 205
19.2 数字签名认证 206
19.3 破译加密的数据 207
19.4 保护网络 207
19.4.1 登录名和口令 208
19.4.2 文件的目录允许权限 208
19.4.3 信任关系 209
19.4.4 UNIX和Linux系统上的UUCP 209
19.5 应付最坏情况 210
19.6 小结 210
第六部分 实现TCP/IP
第20章 一般配置问题 211
20.1 安装网卡 211
20.1.1 网卡 211
20.1.2 资源配置 212
20.1.3 安装适配器软件 213
20.1.4 重定向器和API 214
20.1.5 服务 214
20.1.6 NIC接口 215
20.2 网络和传输层协议 215
20.2.1 IP配置要求 215
20.2.2 配置缺省网关地址 216
20.2.3 配置名字服务器地址 217
20.2.4 配置邮件服务器地址 217
20.2.5 注册域名 218
20.3 IP配置 218
20.4 配置路由表 218
20.5 异种协议的IP封装 219
20.6 小结 220
第21章 Windows 98 221
21.1 Windows 98网络体系结构 221
21.1.1 安装网卡 222
21.1.2 更改网卡配置 224
21.1.3 当Windows 98引导失败 224
21.2 配置Windows 98的TCP/IP 225
21.2.1 写在开始之前 225
21.2.2 安装TCP/IP 225
21.2.3 配置微软的TCP/IP 225
21.2.4 DNS配置 227
21.2.5 静态配置文件 228
21.2.6 注册表配置 229
21.2.7 测试TCP/IP 231
21.3 小结 232
第22章 Windows 98拨号网络 233
22.1 配置拨号网络适配器 233
22.2 安装拨号网络 234
22.3 服务器类型 235
22.4 编写脚本 238
22.5 多重链接 238
22.6 PPTP 239
22.6.1 安装及配置PPTP 240
22.6.2 建立PPTP连接 240
22.7 Windows 98拨号服务器 241
22.8 解决拨号网络连接中的问题 242
22.8.1 确认DUN配置 242
22.8.2 PPP日志 243
22.9 小结 243
第23章 Windows NT 4.0 244
23.1 Windows NT版本 244
23.2 体系结构 244
23.3 安装Windows NT 4.0 244
23.4 配置TCP/IP 246
23.4.1 IP地址 246
23.4.2 DNS 248
23.4.3 WINS地址 248
23.4.4 DHCP中继 249
23.4.5 路由 250
23.5 简单TCP/IP服务 250
23.6 远程访问服务(RAS) 250
23.7 DHCP服务器 252
23.7.1 安装DHCP服务器服务 252
23.7.2 控制DHCP服务器服务 253
23.7.3 压缩DHCP数据库 253
23.7.4 管理DHCP 254
23.8 使用Microsoft DNS 256
23.8.1 安装DNS 256
23.8.2 创建区 257
23.8.3 配置逆向域名解功能 258
23.8.4 配置DNS与WINS服务器的连
接 259
23.8.5 增加辅助名字服务器 259
23.9 FTP和HTTP服务 259
23.10 TCP/IP打印服务 259
23.10.1 安装TCP/IP打印服务 259
23.10.2 安装LPR服务 260
23.11 Windows 2000新特性 260
23.12 小结 261
第24章 在Novell NetWare中支持IP 262
24.1 Novell与TCP/IP 262
24.1.1 IP与NetWare 4 262
24.1.2 NetWare 5与Pure IP初始化 262
24.2 传统解决方案:NetWare 3.x到
NetWare 4.x的IP支持 263
24.2.1 IP隧道 264
24.2.2 IP中继 264
24.2.3 LAN WorkPlace 264
24.2.4 IPX-IP网关 265
24.2.5 NetWare/IP 265
24.3 NetWare 5—Novell对IP的
完全支持 266
24.3.1 纯IP 266
24.3.2 多协议 266
24.4 安装选项 266
24.4.1 NetWare 5的IP-Only安装 267
24.4.2 IPX-Only安装 267
24.4.3 混合TCP/IP安装 268
24.5 IP迁移辅助工具 268
24.5.1 NDS 268
24.5.2 DNS 269
24.5.3 DHCP 269
24.5.4 DDNS 269
24.5.5 SLP 269
24.5.6 兼容模式 269
24.5.7 迁移代理 270
24.6 迁移策略 270
24.6.1 使用测试平台 270
24.6.2 迁移建议 270
24.7 小结 271
第七部分 使用TCP/IP应用
第25章 Whois和Finger 273
25.1 理解Whois协议 273
25.1.1 互联网注册 273
25.1.2 Whois数据库 274
25.1.3 基于Web的Whois 275
25.1.4 命令行方式的Whois 276
25.1.5 示例 276
25.1.6 基于Telnet的Whois 278
25.2 扩充Whois 279
25.2.1 提示Whois(RWhois) 279
25.2.2 WHOIS++ 280
25.3 使用Finger 280
25.3.1 Finger命令 280
25.3.2 Finger 守护进程 282
25.3.3 非UNIX环境下的Finger 283
25.3.4 Finger的应用 283
25.4 相关RFC文档 285
25.5 小结 285
第26章 文件传输协议 286
26.1 FTP和TFTP在网络世界中的作用 286
26.2 使用FTP传输文件 286
26.2.1 FTP连接 287
26.2.2 使用FTP客户端建立连接 288
26.2.3 FTP安全 296
26.2.4 FTP服务器及守护进程 299
26.2.5 匿名FTP访问 299
26.3 使用TFTP 300
26.3.1 FTP与TFTP的区别 301
26.3.2 TFTP命令 301
26.4 小结 301
第27章 使用Telnet 302
27.1 理解Telnet协议 302
27.2 Telnet守护进程 303
27.3 使用Telnet 304
27.3.1 UNIX telnet命令 304
27.3.2 Telnet GUI应用 305
27.3.3 Telnet命令 305
27.3.4 示例 308
27.4 高级主题 309
27.4.1 安全 309
27.4.2 Telnet应用 309
27.4.3 使用Telnet访问其他TCP/IP
服务 310
27.5 相关RFC文档 312
27.6 小结 313
第28章 使用r系列实用工具 314
28.1 理解r系列命令 314
28.1.1 安全问题 314
28.1.2 禁止使用r系列命令 315
28.1.3 增强r系列命令的安全性 316
28.2 使用r系列命令的替代方法 317
28.3 r系列命令详解 317
28.3.2 相关文件 320
28.4 在非UNIX环境下实现r系
列命令的功能 321
28.5 小结 322
第29章 使用网络文件系统(NFS) 323
29.1 什么是NFS 323
29.1.1 NFS的历史 323
29.1.2 为何使用NFS 323
29.2 实现—NFS工作过程 324
29.2.1 远程过程调用(RPC)
和外部数据表示(XDR) 324
29.2.2 加载类型 324
29.3 NFS使用的文件及命令 325
29.3.1 NFS守护进程 325
29.3.2 与NFS相关的文件 327
29.3.3 NFS服务器命令 329
29.3.4 NFS客户命令 331
29.4 示例:共享及加载NFS文件系统 333
29.5 NFS常见问题及解决方案 334
29.5.1 不能加载 334
29.5.2 不能卸载 334
29.5.3 硬加载与软加载 334
29.6 相关协议及产品 334
29.6.1 WebNFS 335
29.6.2 基于PC的NFS及其他客户端
软件 335
29.6.3 SMB和CIFS 335
29.6.4 其他产品 336
29.7 小结 336
第八部分 使用基于IP的应用
第30章 在应用中集成TCP/IP 337
30.1 使用浏览器作为表示层 338
30.2 不断增加的Internet应用 338
30.3 在已有应用中集成TCP/IP 339
30.4 在其他网络中使用TCP/IP 339
30.4.1 NetBIOS与TCP/IP 339
30.4.2 IPX与UDP 340
30.4.3 ARCNET与TCP/IP 340
30.5 小结 340
第31章 Internet Email协议 341
31.1 电子邮件 341
31.1.1 电子邮件的历史 341
31.1.2 标准及制定标准的组织 341
31.2 X.400 341
31.3 简单邮件传输协议(SMTP) 343
31.3.1 MIME和SMTP 343
31.3.2 其他编码标准 344
31.3.3 SMTP命令 344
31.3.4 SMTP状态码 345
31.3.5 扩展SMTP 345
31.3.6 检查SMTP的头 346
31.3.7 SMTP的优势与不足 347
31.4 使用POP和IMAP取回客户邮件 347
31.4.1 邮局协议(POP) 347
31.4.2 互联网邮件访问协议(IMAP) 348
31.4.3 POP3与IMAP4的比较 348
31.5 高级主题 349
31.6 相关RFC文档及其他参考信息 351
31.7 小结 352
第32章 HTTP: World Wide Web 353
32.1 万维网(WWW) 353
32.1.1 Web简史 353
32.1.2 Web的发展 354
32.2 统一资源定位器 354
32.3 Web服务器与浏览器 355
32.4 理解HTTP 356
32.4.1 HTTP/1.1 356
32.4.2 MIME与Web 358
32.4.3 HTTP通信示例 358
32.5 高级主题 359
32.5.1 服务器方功能 359
32.5.2 SSL和S-HTTP 359
32.6 Web语言 359
32.6.1 HTML 360
32.6.2 XML 360
32.6.3 CGI 361
32.6.4 Java 361
32.6.5 JavaScript 362
32.6.6 动态服务器页面 362
32.7 Web的未来 363
32.7.1 HTTP-ng 363
32.7.2 IIOP 363
32.7.3 IPv6 363
32.7.4 IPP 363
32.8 小结 364
第33章 NNTP:互联网新闻组 365
33.1 互联网新闻组 365
33.2 新闻组和层次 366
33.3 网络新闻传输协议 367
33.3.1 获取新闻组 367
33.3.2 获取消息 369
33.3.3 发布消息 370
33.4 大量广告(Spamming)和新闻黑洞
(Blackholing) 371
33.5 小结 371
第34章 Web服务 373
34.1 Web服务工作概览 373
34.2 主流Web服务器 375
34.3 运行Apache HTTP Web服务 376
34.3.1 下载、安装和配置Apache 376
34.3.2 在Windows环境下使用Apache 381
34.4 浏览其他Web服务器 383
34.5 小结 383
第九部分 使用与管理TCP/IP网络
第35章 协议配置与调整 385
35.1 系统的初始化问题 385
35.2 配置文件 390
35.2.1 在/etc/protocols文件中定义网
络协议 390
35.2.2 在/etc/hosts文件中标识主机 391
35.2.3 TCP/IP与/etc/services文件 392
35.2.4 inetd守护进程与/etc/inetd.conf
文件 394
35.2.5 在/etc/networks文件中设置网络 397
35.2.6 DNS客户与/etc/resolv.conf 397
35.3 小结 398
第36章 配置DNS 399
36.1 域名服务器 399
36.2 资源记录 400
36.3 域名解析 401
36.4 配置UNIX或Linux域名服务器
(DNS) 401
36.4.1 添加资源记录 402
36.4.2 完成DNS文件 402
36.4.3 启动DNS守护进程 405
36.4.4 配置客户端 405
36.5 Windows和域名服务器 405
36.6 小结 406
第37章 网络管理 407
37.1 制定网络监控方案 407
37.2 网络问题及其解决方案 408
37.3 网络管理工具 408
37.3.1 使用协议分析器 409
37.3.2 专家系统 410
37.3.3 基于PC的分析器 410
37.3.4 网络管理协议支持 411
37.3.5 集成网络仿真/模型工具 411
37.4 配置SNMP 412
37.4.1 配置Windows SNMP 413
37.4.2 配置UNIX SNMP 414
37.4.3 SNMP安全属性 414
37.4.4 SNMP代理与管理 415
37.5 SNMP工具及命令 416
37.6 RMON及相关的MIB模型 417
37.7 建立网管需求 417
37.8 小结 419
第38章 SNMP:简单网络管理协议 420
38.1 什么是SNMP 420
38.2 管理信息基(MIB) 421
38.3 使用SNMP 421
38.4 UNIX与SNMP 422
38.4.1 在UNIX和Linux上安装SNMP 423
38.4.2 SNMP命令 424
38.5 Windows与SNMP 424
38.5.1 Windows NT 425
38.5.2 Windows 95、Windows 98和
Windows 3.x 425
38.6 小结 427
第39章 加强TCP/IP传输安全 428
39.1 定义所需的网络安全 428
39.1.1 什么是网络安全 428
39.1.2 为什么网络安全非常重要 429
39.1.3 安全级别 429
39.1.4 口令与口令文件 430
39.1.5 控制对口令的访问 430
39.2 加强网络安全 431
39.2.1 攻击种类 431
39.2.2 加强网络安全 432
39.3 应用配置 434
39.3.1 Internet守护进程与
/etc/inetd.conf 434
39.3.2 网络加密软件 436
39.3.3 TCP Wrapper 436
39.4 使用端口及可信端口 437
39.4.1 防火墙 437
39.4.2 包过滤 437
39.4.3 应用层网关 438
39.4.4 其他应用的过滤 438
39.5 一般安全事务 438
39.5.1 用户帐号维护 438
39.5.2 审计 438
39.5.3 正确的系统配置 438
39.6 小结 438
第40章 问题解决工具及要点 440
40.1 监视网络行为 440
40.2 标准应用程序 440
40.2.1 测试基本连接 441
40.2.2 ping命令 442
40.2.3 解决网络访问故障 443
40.3 解决网络接口层问题 449
40.4 解决网络层问题 449
40.4.1 TCP/IP配置参数 449
40.4.2 IP地址配置问题 450
40.5 解决TCP和UDP问题 453
40.6 解决应用层问题 455
40.7 小结 455
第十部分 附 录
附录A RFC及标准化 457
附录B Linux 469
附录C 简写与缩略语 480
TCP/IP详解 卷1:协议 译者序 前言 第1章 概述 1 1.1 引言 1 1.2 分层 1 1.3 TCP/IP的分层 4 1.4 互联网的地址 5 1.5 域名系统 6 1.6 封装 6 1.7 分用 8 1.8 客户-服务器模型 8 1.9 端口号 9 1.10 标准化过程 10 1.11 RFC 10 1.12 标准的简单服务 11 1.13 互联网 12 1.14 实现 12 1.15 应用编程接口 12 1.16 测试网络 13 1.17 小结 13 第2章 链路层 15 2.1 引言 15 2.2 以太网和IEEE 802封装 15 2.3 尾部封装 17 2.4 SLIP:串行线路IP 17 2.5 压缩的SLIP 18 2.6 PPP:点对点协议 18 2.7 环回接口 20 2.8 最大传输单元MTU 21 2.9 路径MTU 21 2.10 串行线路吞吐量计算 21 2.11 小结 22 第3章 IP:网际协议 24 3.1 引言 24 3.2 IP首部 24 3.3 IP路由选择 27 3.4 子网寻址 30 3.5 子网掩码 32 3.6 特殊情况的IP地址 33 3.7 一个子网的例子 33 3.8 ifconfig命令 35 3.9 netstat命令 36 3.10 IP的未来 36 3.11 小结 37 第4章 ARP:地址解析协议 38 4.1 引言 38 4.2 一个例子 38 4.3 ARP高速缓存 40 4.4 ARP的分组格式 40 4.5 ARP举例 41 4.5.1 一般的例子 41 4.5.2 对不存在主机的ARP请求 42 4.5.3 ARP高速缓存超时设置 43 4.6 ARP代理 43 4.7 免费ARP 45 4.8 arp命令 45 4.9 小结 46 第5章 RARP:逆地址解析协议 47 5.1 引言 47 5.2 RARP的分组格式 47 5.3 RARP举例 47 5.4 RARP服务器的设计 48 5.4.1 作为用户进程的RARP服务器 49 5.4.2 每个网络有多个RARP服务器 49 5.5 小结 49 第6章 ICMP:Internet控制报文协议 50 6.1 引言 50 6.2 ICMP报文的类型 50 6.3 ICMP地址掩码请求与应答 52 6.4 ICMP时间戳请求与应答 53 6.4.1 举例 54 6.4.2 另一种方法 55 6.5 ICMP端口不可达差错 56 6.6 ICMP报文的4.4BSD处理 59 6.7 小结 60 第7章 Ping程序 61 7.1 引言 61 7.2 Ping程序 61 7.2.1 LAN输出 62 7.2.2 WAN输出 63 7.2.3 线路SLIP链接 64 7.2.4 拨号SLIP链路 65 7.3 IP记录路由选项 65 7.3.1 通常的例子 66 7.3.2 异常的输出 68 7.4 IP时间戳选项 69 7.5 小结 70 第8章 Traceroute程序 71 8.1 引言 71 8.2 Traceroute 程序的操作 71 8.3 局域网输出 72 8.4 广域网输出 75 8.5 IP源站选路选项 76 8.5.1 宽松的源站选路的traceroute 程序示例 78 8.5.2 严格的源站选路的traceroute 程序示例 79 8.5.3 宽松的源站选路traceroute程序 的往返路由 80 8.6 小结 81 第9章 IP选路 83 9.1 引言 83 9.2 选路的原理 84 9.2.1 简单路由表 84 9.2.2 初始化路由表 86 9.2.3 较复杂的路由表 87 9.2.4 没有到达目的地的路由 87 9.3 ICMP主机与网络不可达差错 88 9.4 转发或不转发 89 9.5 ICMP重定向差错 89 9.5.1 一个例子 90 9.5.2 更多的细节 91 9.6 ICMP路由器发现报文 92 9.6.1 路由器操作 93 9.6.2 主机操作 93 9.6.3 实现 93 9.7 小结 94 第10章 动态选路协议 95 10.1 引言 95 10.2 动态选路 95 10.3 Unix选路守护程序 96 10.4 RIP:选路信息协议 96 10.4.1 报文格式 96 10.4.2 正常运行 97 10.4.3 度量 98 10.4.4 问题 98 10.4.5 举例 98 10.4.6 另一个例子 100 10.5 RIP版本2 102 10.6 OSPF:开放最短路径优先 102 10.7 BGP:边界网关协议 103 10.8 CIDR:无类型域间选路 104 10.9 小结 105 第11章 UDP:用户数据报协议 107 11.1 引言 107 11.2 UDP首部 107 11.3 UDP检验和 108 11.3.1 tcpdump输出 109 11.3.2 一些统计结果 109 11.4 一个简单的例子 110 11.5 IP分片 111 11.6 ICMP不可达差错(需要分片) 113 11.7 用Traceroute确定路径MTU 114 11.8 采用UDP的路径MTU发现 116 11.9 UDP和ARP之间的交互作用 118 11.10 最大UDP数据报长度 119 11.11 ICMP源站抑制差错 120 11.12 UDP服务器的设计 122 11.12.1 客户IP地址及端口号 122 11.12.2 目标IP地址 122 11.12.3 UDP输入队列 122 11.12.4 限制本地IP地址 124 11.12.5 限制远端IP地址 125 11.12.6 每个端口有多个接收者 125 11.13 小结 126 第12章 广播和多播 128 12.1 引言 128 12.2 广播 129 12.2.1 受限的广播 129 12.2.2 指向网络的广播 129 12.2.3 指向子网的广播 129 12.2.4 指向所有子网的广播 130 12.3 广播的例子 130 12.4 多播 132 12.4.1 多播组地址 133 12.4.2 多播组地址到以太网地址的转换 133 12.4.3 FDDI和令牌环网络中的多播 134 12.5 小结 134 第13章 IGMP:Internet组管理协议 136 13.1 引言 136 13.2 IGMP报文 136 13.3 IGMP协议 136 13.3.1 加入一个多播组 136 13.3.2 IGMP报告和查询 137 13.3.3 实现细节 137 13.3.4 生存时间字段 138 13.3.5 所有主机组 138 13.4 一个例子 138 13.5 小结 141 第14章 DNS:域名系统 142 14.1 引言 142 14.2 DNS基础 142 14.3 DNS的报文格式 144 14.3.1 DNS查询报文中的问题部分 146 14.3.2 DNS响应报文中的资源记录部分 147 14.4 一个简单的例子 147 14.5 指针查询 150 14.5.1 举例 151 14.5.2 主机名检查 151 14.6 资源记录 152 14.7 高速缓存 153 14.8 用UDP还是用TCP 156 14.9 另一个例子 156 14.10 小结 157 第15章 TFTP:简单文件传送协议 159 15.1 引言 159 15.2 协议 159 15.3 一个例子 160 15.4 安全性 161 15.5 小结 162 第16章 BOOTP: 引导程序协议 163 16.1 引言 163 16.2 BOOTP的分组格式 163 16.3 一个例子 164 16.4 BOOTP服务器的设计 165 16.5 BOOTP穿越路由器 167 16.6 特定厂商信息 167 16.7 小结 168 第17章 TCP:传输控制协议 170 17.1 引言 170 17.2 TCP的服务 170 17.3 TCP的首部 171 17.4 小结 173 第18章 TCP连接的建立与终止 174 18.1 引言 174 18.2 连接的建立与终止 174 18.2.1 tcpdump的输出 174 18.2.2 时间系列 175 18.2.3 建立连接协议 175 18.2.4 连接终止协议 177 18.2.5 正常的tcpdump输出 177 18.3 连接建立的超时 178 18.3.1 第一次超时时间 178 18.3.2 服务类型字段 179 18.4 最大报文段长度 179 18.5 TCP的半关闭 180 18.6 TCP的状态变迁图 182 18.6.1 2MSL等待状态 183 18.6.2 平静时间的概念 186 18.6.3 FIN_WAIT_2状态 186 18.7 复位报文段 186 18.7.1 到不存在的端口的连接请求 187 18.7.2 异常终止一个连接 187 18.7.3 检测半打开连接 188 18.8 同时打开 189 18.9 同时关闭 191 18.10 TCP选项 191 18.11 TCP服务器的设计 192 18.11.1 TCP服务器端口号 193 18.11.2 限定的本地IP地址 194 18.11.3 限定的远端IP地址 195 18.11.4 呼入连接请求队列 195 18.12 小结 197 第19章 TCP的交互数据流 200 19.1 引言 200 19.2 交互式输入 200 19.3 经受时延的确认 201 19.4 Nagle算法 203 19.4.1 关闭Nagle算法 204 19.4.2 一个例子 205 19.5 窗口大小通告 207 19.6 小结 208 第20章 TCP的成块数据流 209 20.1 引言 209 20.2 正常数据流 209 20.3 滑动窗口 212 20.4 窗口大小 214 20.5 PUSH标志 215 20.6 慢启动 216 20.7 成块数据的吞吐量 218 20.7.1 带宽时延乘积 220 20.7.2 拥塞 220 20.8 紧急方式 221 20.9 小结 224 第21章 TCP的超时与重传 226 21.1 引言 226 21.2 超时与重传的简单例子 226 21.3 往返时间测量 227 21.4 往返时间RTT的例子 229 21.4.1 往返时间RTT的测量 229 21.4.2 RTT估计器的计算 231 21.4.3 慢启动 233 21.5 拥塞举例 233 21.6 拥塞避免算法 235 21.7 快速重传与快速恢复算法 236 21.8 拥塞举例(续) 237 21.9 按每条路由进行度量 240 21.10 ICMP的差错 240 21.11 重新分组 243 21.12 小结 243 第22章 TCP的坚持定时器 245 22.1 引言 245 22.2 一个例子 245 22.3 糊涂窗口综合症 246 22.4 小结 250 第23章 TCP的保活定时器 251 23.1 引言 251 23.2 描述 252 23.3 保活举例 253 23.3.1 另一端崩溃 253 23.3.2 另一端崩溃并重新启动 254 23.3.3 另一端不可达 254 23.4 小结 255 第24章 TCP的未来和性能 256 24.1 引言 256 24.2 路径MTU发现 256 24.2.1 一个例子 257 24.2.2 大分组还是小分组 258 24.3 长肥管道 259 24.4 窗口扩大选项 262 24.5 时间戳选项 263 24.6 PAWS:防止回绕的序号 265 24.7 T/TCP:为事务用的TCP扩展 265 24.8 TCP的性能 267 24.9 小结 268 第25章 SNMP:简单网络管理协议 270 25.1 引言 270 25.2 协议 270 25.3 管理信息结构 272 25.4 对象标识符 274 25.5 管理信息库介绍 274 25.6 实例标识 276 25.6.1 简单变量 276 25.6.2 表格 276 25.6.3 字典式排序 277 25.7 一些简单的例子 277 25.7.1 简单变量 278 25.7.2 get-next操作 278 25.7.3 表格的访问 279 25.8 管理信息库(续) 279 25.8.1 system组 279 25.8.2 interface组 280 25.8.3 at组 281 25.8.4 ip组 282 25.8.5 icmp组 285 25.8.6 tcp组 285 25.9 其他一些例子 288 25.9.1 接口MTU 288 25.9.2 路由表 288 25.10 trap 290 25.11 ASN.1和BER 291 25.12 SNMPv2 292 25.13 小结 292 第26章 Telnet和Rlogin:远程登录 293 26.1 引言 293 26.2 Rlogin协议 294 26.2.1 应用进程的启动 295 26.2.2 流量控制 295 26.2.3 客户的中断键 296 26.2.4 窗口大小的改变 296 26.2.5 服务器到客户的命令 296 26.2.6 客户到服务器的命令 297 26.2.7 客户的转义符 298 26.3 Rlogin的例子 298 26.3.1 初始的客户-服务器协议 298 26.3.2 客户中断键 299 26.4 Telnet协议 302 26.4.1 NVT ASCII 302 26.4.2 Telnet命令 302 26.4.3 选项协商 303 26.4.4 子选项协商 304 26.4.5 半双工、一次一字符、一次 一行或行方式 304 26.4.6 同步信号 306 26.4.7 客户的转义符 306 26.5 Telnet举例 306 26.5.1 单字符方式 306 26.5.2 行方式 310 26.5.3 一次一行方式(准行方式) 312 26.5.4 行方式:客户中断键 313 26.6 小结 314 第27章 FTP:文件传送协议 316 27.1 引言 316 27.2 FTP协议 316 27.2.1 数据表示 316 27.2.2 FTP命令 318 27.2.3 FTP应答 319 27.2.4 连接管理 320 27.3 FTP的例子 321 27.3.1 连接管理:临时数据端口 321 27.3.2 连接管理:默认数据端口 323 27.3.3 文本文件传输:NVT ASCII 表示还是图像表示 325 27.3.4 异常中止一个文件的传输: Telnet同步信号 326 27.3.5 匿名FTP 329 27.3.6 来自一个未知IP地址的匿名FTP 330 27.4 小结 331 第28章 SMTP:简单邮件传送协议 332 28.1 引言 332 28.2 SMTP协议 332 28.2.1 简单例子 332 28.2.2 SMTP命令 334 28.2.3 信封、首部和正文 335 28.2.4 中继代理 335 28.2.5 NVT ASCII 337 28.2.6 重试间隔 337 28.3 SMTP的例子 337 28.3.1 MX记录:主机非直接连到 Internet 337 28.3.2 MX记录:主机出故障 339 28.3.3 VRFY和EXPN命令 340 28.4 SMTP的未来 340 28.4.1 信封的变化:扩充的SMTP 341 28.4.2 首部变化:非ASCII字符 342 28.4.3 正文变化:通用Internet邮件 扩充 343 28.5 小结 346 第29章 网络文件系统 347 29.1 引言 347 29.2 Sun远程过程调用 347 29.3 XDR:外部数据表示 349 29.4 端口映射器 349 29.5 NFS协议 351 29.5.1 文件句柄 353 29.5.2 安装协议 353 29.5.3 NFS过程 354 29.5.4 UDP还是TCP 355 29.5.5 TCP上的NFS 355 29.6 NFS实例 356 29.6.1 简单的例子:读一个文件 356 29.6.2 简单的例子:创建一个目录 357 29.6.3 无状态 358 29.6.4 例子:服务器崩溃 358 29.6.5 等幂过程 360 29.7 第3版的NFS 360 29.8 小结 361 第30章 其他的TCP/IP应用程序 363 30.1 引言 363 30.2 Finger协议 363 30.3 Whois协议 364 30.4 Archie、WAIS、Gopher、Veronica和WWW 366 30.4.1 Archie 366 30.4.2 WAIS 366 30.4.3 Gopher 366 30.4.4 Veronica 366 30.4.5 万维网WWW 367 30.5 X窗口系统 367 30.5.1 Xscope程序 368 30.5.2 LBX: 低带宽X 370 30.6 小结 370 附录A tcpdump程序 371 附录B 计算机时钟 376 附录C sock程序 378 附录D 部分习题的解答 381 附录E 配置选项 395 附录F 可以免费获得的源代码 406 参考文献 409 缩略语 420 =================================== TCP/IP详解 卷2:实现 ================ 第一章 概述 1.1 引言 1.2 源代码表示 1.3 历史 1.4 应用编程接口 1.5 程序示例 1.6 系统调用和库函数 1.7 描述符 1.8 网络实现概述 1.9 mbuf与输出处理 1.10 输入处理 1.11 网络实现概述 1.12 中断级别与并发 1.13 源代码组织 1.14 测试网络 1.15 小结 第二章 mduf:存储器缓存 2.1 引言 2.2 代码介绍 2.3 mduf的定义 2.4 mduf结构 2.5 简单的mduf宏和函数 2.6 m_devget和m_pullup函数 2.7 mduf宏和函数的小结 2.8 Net/3联网数据结构小结 2.9 m_copy和簇引用记数 2.10 其他选择 2.11 小结 第三章 接口层 3.1 引言 3.2 代码介绍 3.3 ifnet结构 3.4 ifaddr结构 3.5 sockaddr结构 3.6 ifnet与ifaddr的专用化 3.7 网络初始化概述 3.8 以太网初始化 3.9 SLIP初始化 3.10 环回初始化 3.11 if_attach函数 3.12 ifinit函数 3.13 小结 第四章 接口:以太网 4.1 引言 4.2 代码介绍 4.3 以太网接口 4.4 ioctl系统调用 4.5 小结 第五章 接口:SLIP和环回 5.1 引言 5.2 代码介绍 5.3 SLIP接口 5.4 环回接口 5.5 小结 第六章 IP编址 6.1 引言 6.2 代码介绍 6.3 接口和地址小结 6.4 sockaddr_in结构 6.5 in_ifaddr结构 6.6 地址指派 6.7 接口ioctl处理 6.8 internet实用函数 6.9 ifnet实用函数 6.10 小结 第七章 域和协议 7.1 引言 7.2 代码介绍 7.3 domain结构 7.4 protosw结构 7.5 IP的domain和protosw结构 7.6 pffindproto和pffindtype函数 7.7 pfctlinput函数 7.8 IP初始化 7.9 sysctl系统调用 7.10 小结 第八章 IP:网际协议 8.1 引言 8.2 代码介绍 8.3 IP分组 8.4 输入处理:ipintr函数 8.5 转发:ip_forward函数 8.6 输出处理:ip_output函数 8.7 Internet检验和:in_cksum函数 8.8 setsockopt和getsockopt系统调用 8.9 ip_sysctl函数 8.10 小结 第九章 IP选项处理 9.1 引言 9.2 代码介绍 9.3 选项格式 9.4 ip_dooptions函数 9.5 记录路由选项 9.6 源站和记录路由选项 9.7 时间戳选项 9.8 ip_insertoptions函数 9.9 ip_pcbopts函数 9.10 一些限制 9.11 小结 第十章 IP的分片与重装 10.1 引言 10.2 代码介绍 10.3 分片 10.4 ip_optcopy函数 10.5 重装 10.6 ip_optcopy函数 10.7 ip_slowtimo函数 10.8 小结 第十一章 ICMP:Internet控制报文协议 11.1 引言 11.2 代码介绍 11.3 icmp结构 11.4 ICMP的protosw结构 11.5 输入处理:icmp_input函数 11.6 差别处理 11.7 请求处理 11.8 重定向处理 11.9 回答问题 11.10 输出处理 11.11 icmp_error函数 11.12 icmp_reflect函数 11.13 icmp_send函数 11.14 icmp_sysctl函数 11.15 小结 第十二章 IP多播 12.1 引言 12.2 代码介绍 12.3 以太网多播地址 12.4 ether_multi结构 12.5 以太网多播接收 12.6 in_multi结构 12.7 ip_moptions结构 12.8 多播的插口选项 12.9 多播的TTL值 12.10 ip_setmoptions函数 12.11 加入一个IP多播组 12.12 离开一个IP多播组 12.13 ip_getmoptions函数 12.14 多播输入处理:ipintr函数 12.15 多播输出处理:ip_output函数 12.16 性能的考虑 12.17 小结 第十三章 IGMP:Internet组管理协议 13.1 引言 13.2 代码介绍 13.3 igmp结构 13.4 IGMP的protosw结构 13.5 加入一个组:igmp_joingroup函数 13.6 igmp_fasttimo函数 13.7 输入处理:igmp_input函数 13.8 离开一个组:igmp_leavegroup函数 13.9 小结 第十四章 IP多播选路 14.1 引言 14.2 代码介绍 14.3 多播输出处理 14.4 mrouted守护程序 14.5 虚拟接口 14.6 IGMP 14.7 多播选路 14.8 多播转发:ip_mforward函数 14.9 清理:ip_mrouter_done函数 14.10 小结 第十五章 插口层 15.1 引言 15.2 代码介绍 15.3 socket介绍 15.4 系统调用 15.5 进程,描述符和插口 15.6 socket系统调用 15.7 getsock和sockargs函数 15.8 bind系统调用 15.9 listen系统调用 15.10 tsleep和wakeup函数 15.11 accept系统调用 15.12 sonewconn和soisconnected函数 15.13 connect系统调用 15.14 shutdown系统调用 15.15 close系统调用 15.16 小结 第十六章 插口I/O 16.1 引言 16.2 代码介绍 16.3 插口缓存 16.4 write,writev,sendto和sendmsg系统调用 16.5 sendmsg系统调用 16.6 sendit函数 16.7 sosend函数 16.8 read,readv,recvfrom和recvmsg系统调用 16.9 recvgsm系统调用 16.10 soreceive函数 16.11 recvit函数 16.12 soreceive代码 16.13 select系统调用 16.14 小结 第十七章 插口选项 17.1 引言 17.2 代码介绍 17.3 setsockopt系统调用 17.4 getsockopt系统调用 17.5 fcntl和ioctl系统调用 17.6 getsockname系统调用 17.7 getpeername系统调用 17.8 小结 第十八章 Radix树路由表 18.1 引言 18.2 路由表结构 18.3 选路插口 18.4 代码介绍 18.5 Radix结点数据结构 18.6 选路结构 18.7 初始化:route_init和rtable_init函数 18.8 初始化:rn_init和rn_inithead 18.9 重复键和掩码列表 18.10 rn_match函数 18.11 rn_search函数 18.12 小结 第十九章 选路请求和选路消息 19.1 引言 19.2 rtalloc和rtallocl函数 19.3 宏RTFREE和rtfree函数 19.4 rtrequest函数 19.5 rt_setgate函数 19.6 rtinit函数 19.7 rtredirect函数 19.8 选路消息的结构 19.9 rt_missmsg函数 19.10 rt_ifmsg函数 19.11 rt_newaddrmsg函数 19.12 rt_msg1函数 19.13 rt_msg2函数 19.14 sysctl_rtable函数 19.15 sysctl_dumpentry函数 19.16 sysctl_iflist函数 19.17 小结 第二十章 选路接口 20.1 引言 20.2 routedomain和protosw结构 20.3 选路控制块 20.4 raw_init函数 20.5 route_output函数 20.6 rt_xaddrs函数 20.7 rt_setmetrics函数 20.8 raw_input函数 20.9 route_usrreq函数 20.10 raw_usrreq函数 20.11 raw_attach,raw_detach和raw_disconnect函数 20.12 小结 第二十一章 ARP:地址解析协议 21.1 介绍 21.2 ARP和路由表 21.3 代码介绍 21.4 ARP结构 21.5 arpwhohas函数 21.6 arprequest函数 21.7 arpintr函数 21.8 in_arpinput函数 21.9 ARP定时器函数 21.10 arpresolve函数 21.11 arplookup函数 21.12 代理ARP 21.13 arp_rtrequest函数 21.14 ARP和多播 21.15 小结 第二十二章 协议控制块 22.1 引言 22.2 代码介绍 22.3 inpcb结构 22.4 in_pcballoc和in_pcbdetach函数 22.5 绑定,连接和分用 22.6 in_pcblookup函数 22.7 in_pcbbind函数 22.8 in_pcbconnect函数 22.9 in_pcbdisconnect函数 22.10 in_setsockaddr和in_setpeeraddr函数 22.11 in_pcbnotify,in_rtchange和in_losing函数 22.12 实现求精 22.13 小结 第二十三章 UDP:用户数据报协议 23.1 引言 23.2 代码介绍 23.4 UDP的protosw结构 23.5 udp_init函数 23.6 udp_output函数 23.7 udp_saveopt函数 23.8 udp_ctlinput函数 23.9 udp_usrreq函数 23.10 udp_sysctl函数 23.11 udp_input函数 23.12 实现求精 23.13 小结 第二十四章 TCP:传输控制协议 24.1 引言 24.2 代码介绍 24.3 TCP的protosw结构 24.4 TCP的首部 24.5 TCP的控制块 24.6 TCP的状态变迁图 24.7 TCP的序号 24.8 tcp_init函数 24.9 小结 第二十五章 TCP的定时器 25.1 引言 25.2 代码介绍 25.3 tcp_canceltimers函数 25.4 tcp_fasttimo函数 25.5 tcp_slowtimo函数 25.6 tcp_timers函数 25.7 重传定时器的计算 25.8 tcp_newtcpcb算法 25.9 tcp_setpersist函数 25.10 tcp_xmit_timer函数 25.11 重传超时:tcp_timers函数 25.12 一个RTT的例子 25.13 小结 第二十六章 TCP输出 26.1 引言 26.2 tcp_output概述 26.3 决定是否应发送一个报文段 26.4 TCP选项 26.5 窗口大小选项 26.6 时间戳选项 26.7 发送一个报文段 26.8 tcp_template函数 26.9 tcp_respond函数 26.10 小结 第二十七章 TCP的函数 27.1 引言 27.2 tcp_drain函数 27.3 tcp_drop函数 27.4 tcp_close函数 27.5 tcp_mss函数 27.6 tcp_ctlinput函数 27.7 tcp_notify函数 27.8 tcp_quench函数 27.9 TCP_REASS宏和tcp_reass函数 27.10 tcp_trace函数 27.11小结 第二十八章 TCP的输入 28.1 引言 28.2 预处理 28.3 tcp_dooptions函数 28.4 首部预测 28.5 TCP输入:缓慢的执行路径 28.6 完成被动打开或主动打开 28.7 PAWS:防止序号回饶 28.8 裁剪报文段使数据在窗口内 28.9 自连接和同时打开 28.10 记录时间戳 28.11 RST处理 28.12 小结 第二十九章 TCP的输入(续) 29.1 引言 29.2 ACK处理概述 29.3 完成被动打开和同时打开 29.4 快速重传和快速恢复的算法 29.5 ACK处理 29.6 更新窗口信息 29.7 紧急方式处理 29.8 tcp_pulloutofband函数 29.9 FIN处理 29.10 最后的处理 29.11 处理已接收的数据 29.12 实现求精 29.13 首部压缩 29.14 小结 第三十章 TCP的用户需求 30.1 引言 30.2 tcp_usrreq函数 30.3 tcp_attach函数 30.4 tcp_disconnect函数 30.5 tcp_usrclosed函数 30.6 tcp_ctloutput函数 30.7 小结 第三十一章 BPF:BSD分组过滤程序 31.1 引言 31.2 代码介绍 31.3 bpf_if结构 31.4 bpf_d结构 31.5 BPF的输入 31.6 BPF的输出 31.7 小结 第三十二章 原始IP 32.1 引言 32.2 代码介绍 32.3 原始IP的protosw结构 32.4 rip_init函数 32.5 rip_input函数 32.6 rip_output函数 32.7 rip_usrreq函数 32.8 rip_ctloutput函数 32.9 小结 结束语 附录A 部分习题的解答 附录B 源代码的获取 附录C RFC 1122的有关内容 参考文献 =================================== TCP/IP详解 卷3:TCP事务协议HTTPNNTP和UNIX域协议 译者序 前言 第一部分 TCP事务协议 第1章 T/TCP概述 1.1 概述 1.2 UDP上的客户-服务器 1.3 TCP上的客户-服务器 1.4 T/TCP上的客户-服务器 1.5 测试网络 1.6 时间测量程序 1.7 应用 1.8 历史 1.9 实现 1.10 小结 第2章 T/TCP协议 2.1 概述 2.2 T/TCP中的新TCP选项 2.3 T/TCP实现所需变量 2.4 状态变迁图 2.5 T/TCP的扩展状态 2.6 小结 第3章 T/TCP使用举例 3.1 概述 3.2 客户重新启动 3.3 常规的T/TCP事务 3.4 服务器收到过时的重复SYN 3.5 服务器重启动 3.6 请求或应答超出报文段最大长度MSS 3.7 向后兼容性 3.8 小结 第4章 T/TCP协议(续) 4.1 概述 4.2 客户的端口号和TIME_WAIT状态 4.3 设置TIME_WAIT状态的目的 4.4 TIME_WAIT状态的截断 4.5 利用TAO跳过三次握手 4.6 小结 第5章 T/TCP协议的实现:插口层 5.1 概述 5.2 常量 5.3 sosend函数 5.4 小结 第6章 T/TCP的实现:路由表 6.1 概述 6.2 代码介绍 6.3 radix_node_head结构 6.4 rtentry结构 6.5 rt_metrics结构 6.6 in_inithead函数 6.7 in_addroute函数 6.8 in_matroute函数 6.9 in_clsroute函数 6.10 in_rtqtimo函数 6.11 in_rtqkill函数 6.12 小结 第7章 T/TCP实现:协议控制块 7.1 概述 7.2 in_pcbladdr函数 7.3 in_pcbconnect函数 7.4 小结 第8章 T/TCP实现: TCP概要 8.1 概述 8.2 代码介绍 8.3 TCP的protosw结构 8.4 TCP控制块 8.5 tcp_init函数 8.6 tcp_slowtimo函数 8.7 小结 第9章 T/TCP实现:TCP输出 9.1 概述 9.2 tcp_output函数 9.2.1 新的自动变量 9.2.2 增加隐藏的状态标志 9.2.3 在SYN_SENT状态不要重传SYN 9.2.4 发送器的糊涂窗口避免机制 9.2.5 有RST或SYN标志时强制发送报文段 9.2.6 发送MSS选项 9.2.7 是否发送时间戳选项 9.2.8 发送T/TCP的CC选项 9.2.9 根据TCP选项调整数据长度 9.3 小结 第10章 T/TCP实现:TCP函数 10.1 概述 10.2 tcp_newtcpcb函数 10.3 tcp_rtlookup函数 10.4 tcp_gettaocache函数 10.5 重传超时间隔的计算 10.6 tcp_close函数 10.7 tcp_msssend函数 10.8 tcp_mssrcvd函数 10.9 tcp_dooptions函数 10.10 tcp_reass函数 10.11 小结 第11章 T/TCP实现:TCP输入 11.1 概述 11.2 预处理 11.3 首部预测 11.4 被动打开的启动 11.5 主动打开的启动 11.6 PAWS:防止序号重复 11.7 ACK处理 11.8 完成被动打开和同时打开 11.9 ACK处理(续) 11.10 FIN处理 11.11 小结 第12章 T/TCP实现:TCP用户请求 12.1 概述 12.2 PRU_CONNECT请求 12.3 tcp_connect函数 12.4 PRU_SEND和PRU_SEND_EOF请求 12.5 tcp_usrclosed函数 12.6 tcp_sysctl函数 12.7 T/TCP的前景 12.8 小结 第二部分 TCP的其他应用 第13章 HTTP:超文本传送协议 13.1 概述 13.2 HTTP和HTML概述 13.3 HTTP 13.3.1 报文类型:请求与响应 13.3.2 首部字段 13.3.3 响应代码 13.3.4 各种报文头举例 13.3.5 例子:客户程序缓存 13.3.6 例子:服务器重定向 13.4 一个例子 13.5 HTTP的统计资料 13.6 性能问题 13.7 小结 第14章 在HTTP服务器上找到的分组 14.1 概述 14.2 多个HTTP服务器 14.3 客户端SYN的到达间隔时间 14.4 RTT的测量 14.5 用listen设置入连接队列的容量 14.6 客户端的SYN选项 14.7 客户端的SYN重传 14.8 域名 14.9 超时的持续探测 14.10 T/TCP路由表大小的模拟 14.11 mbuf的交互 14.12 TCP的PCB高速缓存和首部预测 14.13 小结 第15章 NNTP:网络新闻传送协议 15.1 概述 15.2 NNTP 15.3 一个简单的新闻客户 15.4 一个复杂的新闻客户 15.5 NNTP的统计资料 15.6 小结 第三部分 Unix域协议 第16章 Unix域协议:概述 16.1 概述 16.2 用途 16.3 性能 16.4 编码举例 16.5 小结 第17章 Unix域协议:实现 17.1 概述 17.2 代码介绍 17.3 Unix domain和protosw结构 17.4 Unix域插口地址结构 17.5 Unix域协议控制块 17.6 uipc_usrreq函数 17.7 PRU_ATTACH请求和unp_attach函数 17.8 PRU_DETACH请求和unp_detach函数 17.9 PRU_BIND请求和unp_bind函数 17.10 PRU_CONNECT请求和unp_connect函数 17.11 PRU_CONNECT2请求和unp_connect2函数 17.12 socketpair系统调用 17.13 pipe系统调用 17.14 PRU_ACCEPT请求 17.15 PRU_DISCONNECT请求和unp_disconnect函数 17.16 PRU_SHUTDOWN请求和unp_shutdown函数 17.17 PRU_ABORT请求和unp_drop函数 17.18 其他各种请求 17.19 小结 第18章 Unix域协议:I/O和描述符的传递 18.1 概述 18.2 PRU_SEND和PRU_RCVD请求 18.3 描述符的传递 18.4 unp_internalize函数 18.5 unp_externalize函数 18.6 unp_discard函数 18.7 unp_dispose函数 18.8 unp_scan函数 18.9 unp_gc函数 18.10 unp_mark函数 18.11 性能(再讨论) 18.12 小结 附录A 测量网络时间 附录B 编写T/TCP应用程序 参考文献 缩略语
说明--TCPIP高效编程:改善网络程序的44个技巧 PDF中文版带书签-目录 下载链接放在文档中 《TCP/IP高效编程:改善网络程序的44个技巧》是TCP/IP 领域历久弥新的经典著作,网络编程人员必备,对TCP/IP 网络编程中存在的各种问题进行了全面解析,旨在帮助读者深入透彻地理解TCP/IP 网络编程。本书组织方式比较特别,正文部分包括4 章,将网络编程中存在的常见问题组织成44 个技巧,探讨问题的过程中构建并运行了多个程序,并且指出了代码的源地址,便于读者查看。全书以技巧的形式解答了日常工作中遇到的经典问题,将本书作为手册使用,极其方便。 《TCP/IP高效编程:改善网络程序的44个技巧》主要面向有一定经验的初学者或中级网络程序员,也可作为计算机相关专业人士的参考读物。 ================ 原书名:Effective TCP/IP Programming: 44 Tips to Improve Your Network Programs 原出版社: Addison-Wesley Professional 作者: (美)Jon C. Snader 译者: 陈涓 赵振平 作译者 Jon C.Snader:TCP/IP专家,Paradigm 4的资深软件工程师。他的工作领域包括通信、网络、编译器开发、操作系统以及无线网络控制器等。最近主要从事公共安全市场的报文交换系统方面的工作。 陈涓 1997年毕业于南京通信工程学院,获得通信与信息系统方向硕士学位。留校任教至今,从事网络应用方面的工作。 赵振平 1998年毕业于南京大学计算机科学系,获得操作系统和网络方向硕士学位。目前任职于南京信风软件有限公司(www.greatbit.com),从事网络安全和多媒体方面的工作。 目录 《TCP/IP高效编程:改善网络程序的44个技巧》 第1章 概述 1 1.1 几个约定 1 1.2 本书其余部分的内容介绍 2 1.3 客户端—服务器结构 4 1.4 对基本套接字API的回顾 5 1.5 小结 12 第2章 基本概念 13 2.1 技巧1:理解面向连接和无连接协议之间的区别 13 2.2 技巧2:理解子网和CIDR的概念 18 2.2.1 分类编址 18 2.2.2 子网划分 21 2.2.3 CIDR 26 2.2.4 子网划分和CIDR的状态 27 2.2.5 小结 27 2.3 技巧3:理解私有地址和NAT 28 2.4 技巧4:开发并使用应用程序“框架” 30 2.4.1 TCP服务器框架 31 2.4.2 TCP客户端框架 36 2.4.3 UDP服务器框架 38 2.4.4 UDP客户端框架 39 2.4.5 小结 41 2.5 技巧5:套接字接口比XTI/TLI更好用 41 2.6 技巧6:记住,TCP是一种流协议 43 2.7 技巧7:不要低估TCP的性能 50 2.7.1 UDP源程序与接收程序 52 2.7.2 TCP源程序及接收程序 53 2.7.3 小结 59 2.8 技巧8:避免重新编写TCP 59 2.9 技巧9:要认识到TCP是一个可靠的,但并不绝对可靠的协议 61 2.9.1 可靠性——是什么,不是什么 61 2.9.2 故障模式 63 2.9.3 网络中断 63 2.9.4 对等实体崩溃 64 2.9.5 对等实体的主机崩溃 68 2.9.6 小结 69 2.10 技巧10:记住,TCP/IP不是轮询的 69 2.10.1 保持活跃 70 2.10.2 心跳信号 71 2.10.3 另一个例子 76 2.10.4 小结 81 2.11 技巧11:提防对等实体的不友好动作 81 2.11.1 检测客户端的终止 82 2.11.2 检测无效输入 84 2.11.3 小结 88 2.12 技巧12:成功的LAN策略不一定能推广到WAN中去 88 2.12.1 性能问题举例 88 2.12.2 隐含错误举例 89 2.12.3 小结 93 2.13 技巧13:了解协议是怎样工作的 93 2.14 技巧14:不要把OSI七层参考模型太当回事 94 2.14.1 OSI模型 95 2.14.2 TCP/IP模型 96 2.14.3 小结 98 第3章 构建高效且健壮的网络程序 99 3.1 技巧15:理解TCP的写操作 99 3.1.1 从应用程序的角度看写操作 99 3.1.2 从TCP角度看写操作 100 3.1.3 小结 103 3.2 技巧16:理解TCP的有序释放操作 103 3.2.1 shutdown调用 104 3.2.2 有序释放 106 3.2.3 小结 110 3.3 技巧17:考虑用inetd来装载应用程序 111 3.3.1 TCP服务器 111 3.3.2 UDP服务器 114 3.3.3 小结 118 3.4 技巧18:考虑用tcpmux为服务器“分配”知名端口 118 3.5 技巧19:考虑使用两条TCP连接 126 3.5.1 单连接结构 127 3.5.2 双连接架构 128 3.5.3 小结 133 3.6 技巧20:使应用程序成为事件驱动的(1) 133 3.7 技巧21:使应用程序成为事件驱动的(2) 140 3.8 技巧22:不要用TIME-WAIT暗杀来关闭一条连接 147 3.8.1 它是什么 147 3.8.2 为什么要使用它 149 3.8.3 TIME-WAIT暗杀 150 3.8.4 小结 151 3.9 技巧23:服务器应该设置SO_REUSEADDR选项 151 3.10 技巧24:可能的话,使用一个大规模的写操作,而不是多个小规模的写操作 155 3.10.1 禁用Nagle算法 158 3.10.2 将写操作合并起来 159 3.10.3 小结 161 3.11 技巧25:理解如何使connect调用超时 162 3.11.1 使用告警 162 3.11.2 使用select 164 3.11.3 小结 167 3.12 技巧26:避免数据复制 167 3.12.1 共享内存缓冲区 168 3.12.2 一个共享内存缓冲区系统 169 3.12.3 一个UNIX实现 171 3.12.4 一个Windows实现 175 3.12.5 小结 179 3.13 技巧27:使用前将结构sockadddr_in清零 179 3.14 技巧28:不要忘记字节的性别 180 3.15 技巧29:不要将IP地址或端口号硬编入应用程序中 182 3.16 技巧30:理解已连接的UDP套接字 187 3.17 技巧31:记住,并不是所有程序都是用C编写的 190 3.18 技巧32:理解缓冲区长度带来的影响 195 第4章 工具和资源 199 4.1 技巧33:熟悉ping实用工具 199 4.2 技巧34:学习使用tcpdump或类似的工具 201 4.2.1 tcpdump是如何工作的 202 4.2.2 使用tcpdump 205 4.2.3 tcpdump的输出 206 4.2.4 小结 210 4.3 技巧35:学习使用traceroute 210 4.3.1 traceroute是如何工作的 212 4.3.2 Windows TRACERT 214 4.3.3 小结 215 4.4 技巧36:学习使用ttcp 215 4.5 技巧37:学习使用lsof 219 4.6 技巧38:学习使用netstat 221 4.6.1 活动套接字 221 4.6.2 接口 223 4.6.3 路由表 223 4.6.4 协议统计 225 4.6.5 Windows版的netstat 227 4.6.6 小结 227 4.7 技巧39:学习使用系统中的调用追踪工具 227 4.7.1 过早终止 227 4.7.2 ttcp性能问题 231 4.7.3 小结 232 4.8 技巧40:构建并使用捕获ICMP报文的工具 233 4.8.1 读取ICMP报文 233 4.8.2 打印ICMP报文 234 4.8.3 小结 239 4.9 技巧41:读Stevens的书 240 4.9.1 《TCP/IP详解》丛书 240 4.9.2 《UNIX网络编程》丛书 241 4.10 技巧42:阅读代码 242 4.11 技巧43:访问RFC编辑者的页面 243 4.12 技巧44:经常访问新闻组 244 附录A 各种UNIX代码 247 附录B 各种Windows代码 250 参考书目 253 索引 257 ======================

18,358

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 网络编程
c++c语言开发语言 技术论坛(原bbs)
社区管理员
  • 网络编程
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧