Professional Documents
Culture Documents
Combine PDF
Combine PDF
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 1: Outline
1.1 DATA COMMUNICATIONS
• Components
• Data Flow
1.2 NETWORKS
• Network Criteria
• Physical Structures
• Type of Connection
• Physical Topology
1.3 NETWORK TYPES
• Local Area Network
• Wide Area Network
• Point-to-Point WAN
• Switched WAN
1.4 THE INTERNET
1.5 STANDARDS AND ADMINISTRATION
1-1 DATA COMMUNICATIONS
1. Sender
2. Receiver
3. Transmission medium
4. Message
5. Protocol: A protocol is a set of rules that govern data-communications.
Data Flow: Simplex
• Both the stations can transmit as well as receive but not at the same time.
• For example: Walkie-talkies
• Entire-capacity of a channel is used by one of the 2 stations that are transmitting the data.
1 - Point-to-point
• Only two devices are connected by a dedicated-link.
• Entire-capacity of the link is reserved for transmission between those two devices.
2- Multipoint
◼ Pros:
◼ Dedicated links
◼ Robustness
◼ Privacy
◼ Easy to identify fault
◼ Cons:
◼ A lot of cabling
◼ I/O ports
◼ Difficult to move
• Number of duplex-mode links n(n-1)/2
• n – 1 input/output (I/O) ports
Figure 1.4 A fully connected mesh topology (five devices)
Physical Structures: Star Topology
◼ Pros:
◼ One I/O port per device
◼ Little cabling
◼ Easy to install
◼ Robustness
◼ Easy to identify fault
◼ Cons:
◼ Single point of failure
Figure 1.5 A star topology ◼ More cabling still required
connecting four stations ◼ Number of nodes in
network depends on
capacity of hub
Physical Structures: Bus Topology
◼ Pros: ◼ Cons:
◼ Little cabling ◼ Difficult to modify
◼ Easy to install ◼ Difficult to isolate fault
◼ Break in the bus cable
stops all transmission
◼ Security is very low
Physical Structures: Ring Topology
◼ Pros: ◼ Cons:
◼ Easy to install ◼ Delay in large ring
◼ Easy to identify fault ◼ Break in the ring stops all
transmission
◼ Security is very low
1-3 NETWORK TYPES
Switched WAN
Differences between a LAN and a WAN
LAN WAN
limited in size, spanning an wider geographical span,
office, a building, or a campus spanning a town, a state, a
country, or even the world
interconnects hosts interconnects connecting
devices such as switches,
routers, or modems
privately owned by the created and run by
organization that uses it communication companies and
leased by an organization that
uses it
High speed Low speed
Easy Design & maintenance Difficult Design & maintenance
Figure 1.12 A heterogeneous network made of four WANs and two LANs
internet: inter-network
1-3 THE INTERNET
Internet Standards
An Internet standard is a thoroughly tested
specification that is useful to and adhered to by those
who work with the Internet. It is a formalized
regulation that must be followed.
Internet Administration
Various groups that provide support for the Internet
standards process
Network
Models
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
2.1 PROTOCOL LAYERING
• Scenarios
• Principles of Protocol Layering
• Logical Connections
2.2 TCP/IP PROTOCOL SUITE
• Layered Architecture
• Layers in the TCP/IP Protocol Suite
• Encapsulation and Decapsulation
• Addressing
2.3 THE OSI MODEL
• OSI versus TCP/IP
• Lack of OSI Model’s Success
2-1 PROTOCOL LAYERING
• A protocol defines the rules that both the sender and receiver
and all intermediate devices need to follow to be able to
communicate effectively.
• When communication is simple, we may need only one simple
protocol.
• When communication is complex, we need to divide the task
between different layers.
• We need a protocol at each layer, or protocol layering.
• Protocol layering enables us to divide a complex task into
several smaller and simpler tasks.
• A layer can be defined as a black box with inputs and
outputs, without concern about how inputs are changed to
outputs.
Protocol Layers
Principles of Protocol Layering
First Principle
• If we want bidirectional communication, we need to make each
layer able to perform 2 opposite tasks, one in each direction.
Second Principle
• The two objects under each layer at both sites should be identical.
Logical
Connections
2-2 TCP/IP PROTOCOL SUITE
1) Source host(computer A)
2) Link-layer switch in link 1
3) Router
4) Link-layer switch in link 2
5) Destination host
(computer B).
Layered Architecture
• Each device is involved with a set of layers depending on the
role of the device in the internet
• The two hosts are involved in all five layers.
• The source host:
✓ creates a message in the application layer
✓ sends the message down the layers so that it is physically sent to the
destination host.
• The destination host:
✓ receives the message at the physical layer
✓ deliver the message through the other layers to the application layer.
Layered Architecture
• The router is involved in only three layers; there is no
transport or application layer.
• A router is involved in n combinations of link and physical
layers, where n = number of links the router is connected to.
• The reason is that each link may use its own data-link or
physical protocol.
• A link-layer switch is involved only in two layers: i) data-link
and ii) physical.
Layers in the TCP/IP Protocol Suite
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 3: Outline
3.1 DESCRIPTION OF PHYSICAL LAYER
3.2 ANALOG AND DIGITAL SIGNALS
3.3 REPRESENTING DATA BY A DIGITAL SIGNAL
3.4 TRANSMISSION IMPAIRMENT
Attenuation Distortion Noise
3.5 PERFORMANCE
Bandwidth Throughput Delay
3.6 TRANSMISSION MEDIA
Guided Media: Wired
Unguided Media: Wireless
Description of Physical Layer
• The physical layer coordinates the functions required to
transmit a bit stream over a physical medium.
• Two devices are connected by a transmission medium (cable or
air).
• The transmission medium does not carry bits; it carries
electrical, electromagnetic, or optical signals.
• The physical layer
✓ receives bits from the data-link layer
✓ sends through the transmission media.
Analog and Digital Signals
Signals can be either analog or digital (Figure 3.2).
1) Analog Signal has infinitely many levels of intensity over a
period of time.
2) Digital Signal can have only a limited number of defined
values
3.2 DIGITAL SIGNALS
• Information can be represented by a digital signal.
For example:
1. 1 can be encoded
as a positive
voltage. 0 can be
encoded as a zero
voltage (Figure
3.17a).
2. A digital signal
can have more
than 2 levels
(Figure 3.17b).
3.4 TRANSMISSION IMPAIRMENT
• Signals travel through transmission media, which are not
perfect.
• The imperfection causes signal-impairment.
• This means that signal at beginning of the medium is not the
same as the signal at end of medium.
• What is sent is not what is received.
• Three causes of impairment are (Figure 3.26):
1. Attenuation
2. Distortion
3. Noise.
Attenuation
As signal travels through the
medium, its strength decreases as
distance increases. To compensate for
this loss, amplifiers are used to
amplify the signal.
Distortion
Distortion means that the
signal changes its form or
shape
Noise
Noise is defined as an external energy that
corrupts a signal.
Four types of noise: 1) Thermal Noise
2) Induced Noise 3) Crosstalk 4) Impulse Noise
3.6 PERFORMANCE
Bandwidth
• Bandwidth refers to the number of bits transmitted in one second in a link.
• Bandwidth of digital signals is calculated in bits per second (bps).
Throughput
• The throughput is a measure of how fast we can actually send data
through a network.
• A link may have a bandwidth of 1000 bps, but we can only send 200 bps
through this link
Delay
• The latency defines how long it takes for an entire message to completely
arrive at the destination from the time the first bit is sent out from the
source.
Propagation Time , Transmission Time , Queuing Time
3.6 TRANSMISSION MEDIA
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 4: Outline
4.1 INTRODUCTION
The Internet is a
combination of
networks glued
together by connecting
devices (routers or
switches). If a packet is
to travel from a host to
another host, it needs to
pass through these
networks.
9.3
Description of Data Link Layer
• The data-link layer is responsible for delivering data units from
one station to the next without errors.
• The link can be wired LAN/WAN or wireless LAN/WAN.
Nodes and Links
• Communication at the data-link layer is node-to-node.
• A data unit from one point in the Internet needs to pass through
many networks (LANs and WANs) to reach another point.
• Theses LANs and WANs are connected by routers.
• It is customary to refer to the two end hosts and the routers as nodes
and the networks in between as links.
9.5
Data Link Services
The data-link layer provides services to the network layer; it
receives services from the physical layer.
9.6
Two Categories of Links
In a point-to-point link, the link is dedicated to the
two devices
In a broadcast link, the link is shared between
several pairs of devices
9.7
Two Sublayers
The data-link layer is divided into two sublayers: data link
control (DLC) and media access control (MAC).
9.8
4-2 LINK-LAYER ADDRESSING
• The source and
destination IP addresses
define the two ends but
cannot define which
links the datagram
should pass through.
• We need another
addressing mechanism
in a connectionless
internetwork: the link-
layer addresses of the
two nodes
• A link-layer address is
sometimes called a link
address, sometimes a
physical address, and
sometimes a MAC These two addresses are changed every time
address the frame moves from one link to another.
9.9
Three Types of addresses
The addresses in the most common LAN, Ethernet, are 48
bits (six bytes) that are presented as 12 hexadecimal digits
separated by colons.
A3:34:45:11:92:F1 BB:3A:EF:00:0A:CA
Some link-layer protocols define three types of addresses:
unicast, multicast, and broadcast.
9.10
Address Resolution Protocol ARP
• Anytime a node has an IP datagram to send to another
node in a link, it has the IP address of the receiving node.
• However, the IP address of the next node is not helpful in
moving a frame through a link; we need the link-layer
address of the next node.
• This is the time when the Address Resolution Protocol
(ARP) becomes helpful.
9.13
Figure 9.7: ARP operation
Chapter 5
Introduction to
Network
Layer
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 5: Outline
Packetizing
The first duty of the network layer is definitely
packetizing: encapsulating the payload in a network-
layer packet at the source and decapsulating the payload
from the network-layer packet at the destination.
Routing and Forwarding
• Forwarding: refers to transferring a packet from
incoming-link to outgoing-link within a router.
• Forwarding is a router-local action.
//////////////////////////////////////////////////////////////////////////////////////
• Routing: means determining the path taken by
packets from a sender to a receiver.
• Routing is a network-wide process.
• The Protocol that determine the paths are
referred to as routing protocol.
• Each router has a forwarding-table.
Routing and Forwarding
120.0.2.0 130.10.2.0
120.0.2.1 130.10.2.1
120.0.2.2 130.10.2.2
.. ..
120.0.2.255 130.10.2.255
. .
. .
120.255.255.255 130.10.255.255
Address Mask
The address mask is a 32-bit number in which the prefix bits
are set to 1s and the suffix bits are set to 0s.
It is used to find the network address
120 . 0 . 0 . 0 130 . 10 . 0 . 0
Class C mask
255.255.255.0
200. 20 .100 .50 /24
AND 255 .255.255. 0
200. 20 .100 .0
Special Addresses
• This-host Address The only address in the block 0.0.0.0/32 is
called the this-host address.
• Limited-broadcast Address The only address in the block
255.255.255.255/32 is called the limited-broadcast address.
• Loopback Address The block 127.0.0.0/8 is called the
loopback address. A packet with one of the addresses in this
block as the destination address never leaves the host
• Private Addresses Four blocks are assigned as private
addresses: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16
DHCP