Computer Networks Notes
Computer Networks Notes
Chapter 1 - Introduction
1.1 Data Communication
The term telecommunication means communication at a distance. The word data
refers to information presented in whatever form is agreed upon by the parties
creating and using the data. Data communications are the exchange of data
between two devices via some form of transmission medium such as a wire cable.
Data communications are the exchange of data between two devices via some
form of transmission medium such as a wire cable. For data communications to
occur, the communicating devices must be part of a communication system made
up of a combination of hardware (physical equipment) and software (programs).
The effectiveness of a data communications system depends on four
fundamental characteristics: delivery, accuracy, timeliness, and jitter.
Delivery. The system must deliver data to the correct destination. Data must
be received by the intended device or user and only by that device or user.
Accuracy. The system must deliver the data accurately. Data that have been
altered in transmission and left uncorrected are unusable.
Timeliness. The system must deliver data in a timely manner. Data
delivered late are useless. In the case of video and audio, timely delivery
means delivering data as they are produced, in the same order that they are
produced, and without significant delay. This kind of delivery is called real-
time transmission.
Jitter. Jitter refers to the variation in the packet arrival time. It is the uneven
delay in the delivery of audio or video packets.
1.2 NETWORKS
A network is a set of devices (often referred to as nodes) connected by
communication links. A node can be a computer, printer, or any other device
capable of sending and/or receiving data generated by other nodes on the network.
A link can be a cable, air, optical fiber, or any medium which can transport a signal,
carrying information.
Malicious users
Hybrid Topology: A network can be hybrid. For example, we can have a main star
topology with each branch connecting several stations in a bus topology.
Local Area Network: A local area network (LAN) is usually privately owned and
links the devices in a single office, building, or campus. Depending on the needs of
an organization and the type of technology used, a LAN can be as simple as two PCs
and a printer in someone's home office; or it can extend throughout a company and
include audio and video peripherals. Currently, LAN size is limited to a few
kilometers.
1.3 The
Internet
The Internet has
revolutionized many
aspects of our daily
lives. It has affected the
way we do business as
well as the way we
spend our leisure time.
The Internet is a
communication system
that has brought a
wealth of information to
our fingertips and
organized it for our use.
Hierarchical
organization of the
Internet
1.4 Protocols
A protocol is synonymous with rule. It consists of a set of rules that govern data
communications. It determines what is communicated, how it is communicated and
when it is communicated. The key elements of a protocol are syntax, semantics and
timing
1.5 Standards
Standards are essential in creating and maintaining an open and competitive
market for equipment manufacturers and in guaranteeing national and international
operational ability of data and telecommunication technology and processes.
Data communication standards fall into two categories: de facto (meaning "by
fact" or "by convention") and de jure (meaning "by law" or "by regulation").
De facto. Standards that have not been approved by an organized body but
have been adopted as standards through widespread use are de facto standards.
De facto standards are often established originally by manufacturers who seek to
define the functionality of a new product or technology.
published as a Request for Comment (RFC). Each RFC is edited, assigned a number,
and made available to all interested parties. RFCs go through maturity levels and
are categorized according to their requirement level.
Chapter 2 - Network Models
On the Way
The letter is then on its way to the recipient. On the way to the recipient's local post
office, the letter may actually go through a central office. In addition, it may be
transported by truck, train, airplane, boat, or a combination of these.
Figure shows the layers involved when a message is sent from device A to device
B. As the message travels from A to B, it may pass through many intermediate
nodes. These intermediate nodes usually involve only the first three layers of the
OSI model.
Between machines, layer x on one machine communicates with layer x on
another machine. This communication is governed by an agreed-upon series of rules
and conventions called protocols. The processes on each machine that
communicate at a given layer are called peer-to-peer processes. Communication
between machines is therefore a peer-to-peer process using the protocols
appropriate to a given layer.
Peer-to-Peer Processes
At the physical layer, communication is direct: In Figure, device A sends a stream
of bits to device B (through intermediate nodes). At the higher layers, however,
communication must move down through the layers on device A, over to device B,
and then back up through the layers. Each layer in the sending device adds its own
information to the message it receives from the layer just above it and passes the
whole package to the layer just below it.
In Figure, which gives an overall view of the OSI layers, D7 means the data unit
at layer 7, D6 means the data unit at layer 6, and so on. The process starts at layer
7 (the application layer), then moves from layer to layer in descending, sequential
order. At each layer, a header, or possibly a trailer, can be added to the data unit.
Commonly, the trailer is added only at layer 2. When the formatted data unit passes
through the physical layer (layer 1), it is changed into an electromagnetic signal and
transported along a physical link.
Encapsulation
Figure reveals another aspect of data communications in the OSI model:
encapsulation. A packet (header and data) at level 7 is encapsulated in a packet at
level 6. The whole packet at level 6 is encapsulated in a packet at level 5, and so on.
In other words, the data portion of a packet at level N - 1 carries the whole packet
(data and header and maybe trailer) from level N. The concept is called
encapsulation; level N - 1 is not aware of which part of the encapsulated packet is
data and which part is the header or trailer. For level N - 1, the whole packet coming
from level N is treated as one integral unit.
The physical layer is responsible for movements of individual bits from one
hop (node) to the next.
The data link layer is responsible for moving frames from one hop (node)
to the next.
Hop-to-hop delivery
The network layer is responsible for the delivery of individual packets from
the source host to the destination host.
Source-to-destination delivery
The transport layer is responsible for the delivery of a message from one
process to another.
from a remote computer for use in the local computer, and to manage or
control files in a remote computer locally.
Mail services: This application provides the basis for e-mail forwarding and
storage.
Directory services: This application provides distributed database sources
and access for global information about various objects and services.
Summary of layers
The User Datagram Protocol (UDP) is the simpler of the two standard TCP/IP
trans-protocols. It is a process-to-process protocol that adds only port addresses,
check error control, and length information to the data from the upper layer.
2.5 Addressing
Four levels of addresses are used in an internet employing the TCP/IP protocols:
physical, logical, port, and specific.
Addresses in TCP/IP
networks (only two are shown in the figure). So each router has three pairs of
addresses, one for each connection.
The physical addresses will change from hop to hop, but the logical
addresses usually remain the same.
192.168.1.1
A 32-bit logical address represented as Dotted Decimal format
The physical addresses change from hop to hop, but the logical and port
addresses usually remain the same.
753
A 16-bit port address represented as one single number.