Computer Networks and Internets 6th Edition Ebook PDF
Computer Networks and Internets 6th Edition Ebook PDF
Preface xxiii
2.1 Introduction 17
2.2 Resource Sharing 17
2.3 Growth Of The Internet 18
2.4 From Resource Sharing To Communication 21
2.5 From Text To Multimedia 21
2.6 Recent Trends 22
2.7 From Individual Computers To Cloud Computing 23
2.8 Summary 24
3.1 Introduction 27
3.2 Two Basic Internet Communication Paradigms 28
viii Contents
4.1 Introduction 49
4.2 Application-Layer Protocols 49
4.3 Representation And Transfer 50
4.4 Web Protocols 51
4.5 Document Representation With HTML 52
4.6 Uniform Resource Locators And Hyperlinks 54
4.7 Web Document Transfer With HTTP 55
4.8 Caching In Browsers 57
4.9 Browser Architecture 59
4.10 File Transfer Protocol (FTP) 59
4.11 FTP Communication Paradigm 60
4.12 Electronic Mail 63
4.13 The Simple Mail Transfer Protocol (SMTP) 64
4.14 ISPs, Mail Servers, And Mail Access 66
4.15 Mail Access Protocols (POP, IMAP) 67
4.16 Email Representation Standards (RFC2822, MIME) 67
4.17 Domain Name System (DNS) 69
4.18 Domain Names That Begin With A Service Name 71
4.19 The DNS Hierarchy And Server Model 72
4.20 Name Resolution 72
4.21 Caching In DNS Servers 74
Contents ix
5.1 Introduction 85
5.2 The Essence Of Data Communications 86
5.3 Motivation And Scope Of The Subject 87
5.4 The Conceptual Pieces Of A Communications System 87
5.5 The Subtopics Of Data Communications 90
5.6 Summary 91
6.1 Introduction 93
6.2 Information Sources 93
6.3 Analog And Digital Signals 94
6.4 Periodic And Aperiodic Signals 94
6.5 Sine Waves And Signal Characteristics 95
6.6 Composite Signals 97
6.7 The Importance Of Composite Signals And Sine Functions 97
6.8 Time And Frequency Domain Representations 98
6.9 Bandwidth Of An Analog Signal 99
6.10 Digital Signals And Signal Levels 100
6.11 Baud And Bits Per Second 101
6.12 Converting A Digital Signal To Analog 102
6.13 The Bandwidth Of A Digital Signal 103
6.14 Synchronization And Agreement About Signals 103
6.15 Line Coding 104
6.16 Manchester Encoding Used In Computer Networks 106
6.17 Converting An Analog Signal To Digital 107
6.18 The Nyquist Theorem And Sampling Rate 108
6.19 Nyquist Theorem And Telephone System Transmission 108
6.20 Nonlinear Encoding 109
6.21 Encoding And Data Compression 109
6.22 Summary 110
x Contents
PART IV Internetworking
Index 617
Preface
I thank the many readers who have taken the time to write to me with comments
on previous editions of Computer Networks And Internets. The reviews have been in-
credibly positive, and the audience is surprisingly wide. In addition to students who use
the text in courses, networking professionals have written to praise its clarity and to
describe how it helped them pass professional certification exams. Many enthusiastic
comments have also arrived from countries around the world; some about the English
language version and some about foreign translations. The success is especially satisfy-
ing in a market glutted with networking books. This book stands out because of its
breadth of coverage, logical organization, explanation of concepts, focus on the Internet,
and appeal to both professors and students.
In response to suggestions from readers and recent changes in networking, the new
edition has been completely revised and updated. As always, material on older technol-
ogies has been significantly reduced and replaced by material on new technologies. The
significant changes include:
Approach Taken
This text combines the best of top-down and bottom-up approaches. The text be-
gins with a discussion of network applications and the communication paradigms that
the Internet offers. It allows students to understand the facilities the Internet provides to
applications before studying the underlying technologies that implement the facilities.
Following the discussion of applications, the text presents networking in a logical
manner so a reader understands how each new technology builds on lower layer tech-
nologies.
Intended Audience
The text answers the basic question: how do computer networks and internets
operate? It provides a comprehensive, self-contained tour through all of networking that
describes applications, Internet protocols, network technologies, such as LANs and
WANs, and low-level details, such as data transmission and wiring. It shows how pro-
tocols use the underlying hardware and how applications use the protocol stack to pro-
vide functionality for users.
Intended for upper-division undergraduates or beginning graduate students who
have little or no background in networking, the text does not use sophisticated
mathematics, nor does it assume a detailed knowledge of operating systems. Instead, it
defines concepts clearly, uses examples and figures to illustrate how the technology
operates, and states results of analysis without providing mathematical proofs.
The text is divided into five parts. The first part (Chapters 1–4) focuses on uses of
the Internet and network applications. It describes protocol layering, the client-server
model of interaction, the socket API, and gives examples of application-layer protocols
used in the Internet.
The second part (Chapters 5–12) explains data communications, and presents back-
ground on the underlying hardware, the basic vocabulary, and fundamental concepts
used throughout networking, such as bandwidth, modulation, and multiplexing. The fi-
nal chapter in the second part presents access and interconnection technologies used in
the Internet, and uses concepts from previous chapters to explain each technology.
The third part (Chapters 13–19) focuses on packet switching and packet switching
network technologies. Chapters give the motivation for using packets, introduce the
IEEE model for layer 2 protocols, and consider wired and wireless networking technolo-
gies, such as Ethernet and Wi-Fi. The third part also introduces the four basic
categories of network technologies: LAN, MAN, PAN, and WAN, and discusses rout-
ing in WANs. The final chapter presents examples of network technologies that have
been used in the Internet.
Organization Of The Material xxv
The fourth part (Chapters 20–26) focuses on the Internet protocols. After discuss-
ing the motivation for internetworking, the text describes Internet architecture, routers,
Internet addressing, address binding, and the TCP/IP protocol suite. Protocols such as
IPv4, IPv6, TCP, UDP, ICMP, ICMPv6, and ARP are reviewed in detail, allowing stu-
dents to understand how the concepts relate to practice. Because IPv6 has (finally) be-
gun to be deployed, material on IPv6 has been integrated into the chapters. Each
chapter presents general concepts, and then explains how the concepts are implemented
in IPv4 and IPv6. Chapter 25 on TCP covers the important topic of reliability in trans-
port protocols.
The final part of the text (Chapters 27–33) considers topics that cross multiple
layers of a protocol stack, including network performance, network security, network
management, bootstrapping, multimedia support, and the Internet of Things. Chapter 31
presents Software Defined Networking, one of the most exciting new developments in
networking. Each chapter draws on topics from previous parts of the text. The place-
ment of these chapters at the end of the text follows the approach of defining concepts
before they are used, and does not imply that the topics are less important.
Use In Courses
http://www.netbook.cs.purdue.edu
I thank all the people who have contributed to editions of the book. Many grad
students at Purdue have contributed suggestions and criticism. Baijian (Justin) Yang
and Bo Sang each recommended the addition of text and figures to help their students
understand the material better. Fred Baker, Ralph Droms, and Dave Oran from Cisco
contributed to earlier editions. Lami Kaya suggested how the chapters on data com-
munications could be organized, and made many other valuable suggestions. Special
thanks go to my wife and partner, Christine, whose careful editing and helpful sugges-
tions made many improvements throughout.
Douglas E. Comer
†A separate lab manual, Hands-On Networking, is available that describes possible experiments and as-
signments that can be performed on a variety of hardware, including a single computer or a set of computers
on a local area network.
About The Author
www.cs.purdue.edu/people/comer
This page intentionally left blank
Enthusiastic Comments About
Computer Networks And Internets
“The book is one of the best that I have ever read. Thank you.”
Gokhan Mutlu
Ege University, Turkey
“I just could not put it down before I finished it. It was simply superb.”
Lalit Y. Raju
Regional Engineering College, India
“An excellent book for beginners and professionals alike — well written,
comprehensive coverage, and easy to follow.”
John Lin
Bell Labs
“It’s truly the best book of its type that I have ever seen. A huge vote of
thanks!”
Chez Ciechanowicz
Info. Security Group, University Of London
“Wow, when I was studying for the CCNA exam, the clear explanations in this
book solved all the problems I had understanding the OSI model and TCP/IP
data transfer. It opened my mind to the fascinating world of networks and
TCP/IP.”
Solomon Tang
PCCW, Hong Kong
“An invaluable tool, particularly for programmers and computer scientists desir-
ing a clear, broad-based understanding of computer networks.”
Peter Chuks Obiefuna
East Carolina University
“The textbook covers a lot of material, and the author makes the contents very
easy to read and understand, which is the biggest reason I like this book. It’s
very appropriate for a 3-credit class in that a lot of material can be covered.
The student’s positive feedback shows they too appreciate using this text-
book.”
Jie Hu
Saint Cloud State University
“Despite the plethora of acronyms that infest the discipline of networking, this
book is not intimidating. Comer is an excellent writer, who expands and ex-
plains the terminology. The text covers the entire scope of networking from
wires to the web. I find it outstanding.”
Jennifer Seitzer
University of Dayton
Other Books By Douglas Comer
Internetworking With TCP/IP Volume I: Principles, Protocols
and Architectures, 6th edition: 2013, ISBN 9780136085300
The classic reference in the field for anyone who wants to understand Internet tech-
nology in more depth, Volume I surveys the TCP/IP protocol suite and describes each
component. The text covers protocols such as IPv4, IPv6, ICMP, TCP, UDP, ARP,
SNMP, MPLS, and RTP, as well as concepts such as VPNs, address translation, classif-
ication, Software Defined Networking, and the Internet of Things.
The Internet Book: Everything you need to know about computer network-
ing and how the Internet works, 4th Edition 2007, ISBN 0-13-233553-0
A gentle introduction to networking and the Internet that does not assume the
reader has a technical background. It explains the Internet in general terms, without
focusing on a particular computer or a particular brand of software. Ideal for someone
who wants to become Internet and computer networking literate; an extensive glossary
of terms and abbreviations is included.
www.comerbooks.com
This page intentionally left blank
PART I
Introduction To
Networking And
Internet Applications
An overview of networking
and the interface that
application programs use
to communicate across
the Internet
Chapters
1 Introduction And Overview
2 Internet Trends
3 Internet Applications And Network
Programming
4 Traditional Internet Applications
Chapter Contents
1.1 Growth Of Computer Networking, 1
1.2 Why Networking Seems Complex, 2
1.3 The Five Key Aspects Of Networking, 2
1.4 Public And Private Parts Of The Internet, 6
1.5 Networks, Interoperability, And Standards, 8
1.6 Protocol Suites And Layering Models, 9
1.7 How Data Passes Through Layers, 11
1.8 Headers And Layers, 12
1.9 ISO And The OSI Seven Layer Reference Model, 13
1.10 Remainder Of The Text, 14
1.11 Summary, 14
Another random document with
no related content on Scribd:
DANCE ON STILTS AT THE GIRLS’ UNYAGO, NIUCHI
I see increasing reason to believe that the view formed some time
back as to the origin of the Makonde bush is the correct one. I have
no doubt that it is not a natural product, but the result of human
occupation. Those parts of the high country where man—as a very
slight amount of practice enables the eye to perceive at once—has not
yet penetrated with axe and hoe, are still occupied by a splendid
timber forest quite able to sustain a comparison with our mixed
forests in Germany. But wherever man has once built his hut or tilled
his field, this horrible bush springs up. Every phase of this process
may be seen in the course of a couple of hours’ walk along the main
road. From the bush to right or left, one hears the sound of the axe—
not from one spot only, but from several directions at once. A few
steps further on, we can see what is taking place. The brush has been
cut down and piled up in heaps to the height of a yard or more,
between which the trunks of the large trees stand up like the last
pillars of a magnificent ruined building. These, too, present a
melancholy spectacle: the destructive Makonde have ringed them—
cut a broad strip of bark all round to ensure their dying off—and also
piled up pyramids of brush round them. Father and son, mother and
son-in-law, are chopping away perseveringly in the background—too
busy, almost, to look round at the white stranger, who usually excites
so much interest. If you pass by the same place a week later, the piles
of brushwood have disappeared and a thick layer of ashes has taken
the place of the green forest. The large trees stretch their
smouldering trunks and branches in dumb accusation to heaven—if
they have not already fallen and been more or less reduced to ashes,
perhaps only showing as a white stripe on the dark ground.
This work of destruction is carried out by the Makonde alike on the
virgin forest and on the bush which has sprung up on sites already
cultivated and deserted. In the second case they are saved the trouble
of burning the large trees, these being entirely absent in the
secondary bush.
After burning this piece of forest ground and loosening it with the
hoe, the native sows his corn and plants his vegetables. All over the
country, he goes in for bed-culture, which requires, and, in fact,
receives, the most careful attention. Weeds are nowhere tolerated in
the south of German East Africa. The crops may fail on the plains,
where droughts are frequent, but never on the plateau with its
abundant rains and heavy dews. Its fortunate inhabitants even have
the satisfaction of seeing the proud Wayao and Wamakua working
for them as labourers, driven by hunger to serve where they were
accustomed to rule.
But the light, sandy soil is soon exhausted, and would yield no
harvest the second year if cultivated twice running. This fact has
been familiar to the native for ages; consequently he provides in
time, and, while his crop is growing, prepares the next plot with axe
and firebrand. Next year he plants this with his various crops and
lets the first piece lie fallow. For a short time it remains waste and
desolate; then nature steps in to repair the destruction wrought by
man; a thousand new growths spring out of the exhausted soil, and
even the old stumps put forth fresh shoots. Next year the new growth
is up to one’s knees, and in a few years more it is that terrible,
impenetrable bush, which maintains its position till the black
occupier of the land has made the round of all the available sites and
come back to his starting point.
The Makonde are, body and soul, so to speak, one with this bush.
According to my Yao informants, indeed, their name means nothing
else but “bush people.” Their own tradition says that they have been
settled up here for a very long time, but to my surprise they laid great
stress on an original immigration. Their old homes were in the
south-east, near Mikindani and the mouth of the Rovuma, whence
their peaceful forefathers were driven by the continual raids of the
Sakalavas from Madagascar and the warlike Shirazis[47] of the coast,
to take refuge on the almost inaccessible plateau. I have studied
African ethnology for twenty years, but the fact that changes of
population in this apparently quiet and peaceable corner of the earth
could have been occasioned by outside enterprises taking place on
the high seas, was completely new to me. It is, no doubt, however,
correct.
The charming tribal legend of the Makonde—besides informing us
of other interesting matters—explains why they have to live in the
thickest of the bush and a long way from the edge of the plateau,
instead of making their permanent homes beside the purling brooks
and springs of the low country.
“The place where the tribe originated is Mahuta, on the southern
side of the plateau towards the Rovuma, where of old time there was
nothing but thick bush. Out of this bush came a man who never
washed himself or shaved his head, and who ate and drank but little.
He went out and made a human figure from the wood of a tree
growing in the open country, which he took home to his abode in the
bush and there set it upright. In the night this image came to life and
was a woman. The man and woman went down together to the
Rovuma to wash themselves. Here the woman gave birth to a still-
born child. They left that place and passed over the high land into the
valley of the Mbemkuru, where the woman had another child, which
was also born dead. Then they returned to the high bush country of
Mahuta, where the third child was born, which lived and grew up. In
course of time, the couple had many more children, and called
themselves Wamatanda. These were the ancestral stock of the
Makonde, also called Wamakonde,[48] i.e., aborigines. Their
forefather, the man from the bush, gave his children the command to
bury their dead upright, in memory of the mother of their race who
was cut out of wood and awoke to life when standing upright. He also
warned them against settling in the valleys and near large streams,
for sickness and death dwelt there. They were to make it a rule to
have their huts at least an hour’s walk from the nearest watering-
place; then their children would thrive and escape illness.”
The explanation of the name Makonde given by my informants is
somewhat different from that contained in the above legend, which I
extract from a little book (small, but packed with information), by
Pater Adams, entitled Lindi und sein Hinterland. Otherwise, my
results agree exactly with the statements of the legend. Washing?
Hapana—there is no such thing. Why should they do so? As it is, the
supply of water scarcely suffices for cooking and drinking; other
people do not wash, so why should the Makonde distinguish himself
by such needless eccentricity? As for shaving the head, the short,
woolly crop scarcely needs it,[49] so the second ancestral precept is
likewise easy enough to follow. Beyond this, however, there is
nothing ridiculous in the ancestor’s advice. I have obtained from
various local artists a fairly large number of figures carved in wood,
ranging from fifteen to twenty-three inches in height, and
representing women belonging to the great group of the Mavia,
Makonde, and Matambwe tribes. The carving is remarkably well
done and renders the female type with great accuracy, especially the
keloid ornamentation, to be described later on. As to the object and
meaning of their works the sculptors either could or (more probably)
would tell me nothing, and I was forced to content myself with the
scanty information vouchsafed by one man, who said that the figures
were merely intended to represent the nembo—the artificial
deformations of pelele, ear-discs, and keloids. The legend recorded
by Pater Adams places these figures in a new light. They must surely
be more than mere dolls; and we may even venture to assume that
they are—though the majority of present-day Makonde are probably
unaware of the fact—representations of the tribal ancestress.
The references in the legend to the descent from Mahuta to the
Rovuma, and to a journey across the highlands into the Mbekuru
valley, undoubtedly indicate the previous history of the tribe, the
travels of the ancestral pair typifying the migrations of their
descendants. The descent to the neighbouring Rovuma valley, with
its extraordinary fertility and great abundance of game, is intelligible
at a glance—but the crossing of the Lukuledi depression, the ascent
to the Rondo Plateau and the descent to the Mbemkuru, also lie
within the bounds of probability, for all these districts have exactly
the same character as the extreme south. Now, however, comes a
point of especial interest for our bacteriological age. The primitive
Makonde did not enjoy their lives in the marshy river-valleys.
Disease raged among them, and many died. It was only after they
had returned to their original home near Mahuta, that the health
conditions of these people improved. We are very apt to think of the
African as a stupid person whose ignorance of nature is only equalled
by his fear of it, and who looks on all mishaps as caused by evil
spirits and malignant natural powers. It is much more correct to
assume in this case that the people very early learnt to distinguish
districts infested with malaria from those where it is absent.
This knowledge is crystallized in the
ancestral warning against settling in the
valleys and near the great waters, the
dwelling-places of disease and death. At the
same time, for security against the hostile
Mavia south of the Rovuma, it was enacted
that every settlement must be not less than a
certain distance from the southern edge of the
plateau. Such in fact is their mode of life at the
present day. It is not such a bad one, and
certainly they are both safer and more
comfortable than the Makua, the recent
intruders from the south, who have made USUAL METHOD OF
good their footing on the western edge of the CLOSING HUT-DOOR
plateau, extending over a fairly wide belt of
country. Neither Makua nor Makonde show in their dwellings
anything of the size and comeliness of the Yao houses in the plain,
especially at Masasi, Chingulungulu and Zuza’s. Jumbe Chauro, a
Makonde hamlet not far from Newala, on the road to Mahuta, is the
most important settlement of the tribe I have yet seen, and has fairly
spacious huts. But how slovenly is their construction compared with
the palatial residences of the elephant-hunters living in the plain.
The roofs are still more untidy than in the general run of huts during
the dry season, the walls show here and there the scanty beginnings
or the lamentable remains of the mud plastering, and the interior is a
veritable dog-kennel; dirt, dust and disorder everywhere. A few huts
only show any attempt at division into rooms, and this consists
merely of very roughly-made bamboo partitions. In one point alone
have I noticed any indication of progress—in the method of fastening
the door. Houses all over the south are secured in a simple but
ingenious manner. The door consists of a set of stout pieces of wood
or bamboo, tied with bark-string to two cross-pieces, and moving in
two grooves round one of the door-posts, so as to open inwards. If
the owner wishes to leave home, he takes two logs as thick as a man’s
upper arm and about a yard long. One of these is placed obliquely
against the middle of the door from the inside, so as to form an angle
of from 60° to 75° with the ground. He then places the second piece
horizontally across the first, pressing it downward with all his might.
It is kept in place by two strong posts planted in the ground a few
inches inside the door. This fastening is absolutely safe, but of course
cannot be applied to both doors at once, otherwise how could the
owner leave or enter his house? I have not yet succeeded in finding
out how the back door is fastened.