Data Communication and Networks
Data Communication and Networks
By:
Dr. Theodore HABIMANA
Tel: +250788301057
Content
1. Fundamental Concepts
• What is a Network? Networked Applications. Network
Standards. Quality of Service. Switched, Packet & Routed
Networks. LANs & WANs. Message Standards.
2. TCP/IP Internetworking
• Overview. IP Addresses. Router Operation. The Address
Resolution Protocol. The Internet Protocol. The
Transmission Control Protocol. The User Datagram
Protocol. Port Numbers and Sockets in TCP and UDP.
Dynamic Routing Protocols. The Internet Control Message
Protocol. Dynamic Host Configuration Protocol. Layer 3
Content
3. Telecommunications & Wireless Networks
4. Network Security
A NETWORK.NODE.NODE.NODE 255.0.0.0
B NETWORK.NETWORK.NODE.NODE 255.255.0.0
C NETWORK.NETWORK.NETWORK.NODE 255.255.255.0
Subnetting
• When you’ve chosen a possible subnet mask for your
network and need to determine the number of subnets,
valid hosts, and broadcast addresses of a subnet that the
mask provides, all you need to do is answer five simple
questions:
1. How many subnets does the chosen subnet mask
produce?
2. How many valid hosts per subnet are available?
3. What are the valid subnets?
4. What’s the broadcast address of each subnet?
5. What are the valid hosts in each subnet?
Subnetting in practice
• How many subnets?
• 2x= number of subnets. X is the number of masked bits, or the
1s.
• For example, in 11000000/26, the number of 1s gives us 22
• subnets. In this example, there are 4 subnets
•
• How many hosts per subnet?
• 2y – 2 = number of hosts per subnet. y is the number of
unmasked bits, or the 0s.
• For example, in 11000000, the number of 0s gives us 2 6 – 2
hosts. In this example, there are 62 hosts per subnet. You
need to subtract 2 for the subnet address and the broadcast
address, which are not valid hosts.
Subnetting in practice
• What are the valid subnets
• 256 – subnet mask = block size, or increment number.
An example would be 256 – 192 = 64. The block size of a
192 mask is always 64. Start counting at zero in blocks
of 64 until you reach the subnet mask value and these
are your subnets. 0, 64, 128, 192.
•
• What’s the broadcast address for each subnet?
• Now here’s the really easy part… Since we counted our
subnets in the last section as 0, 64, 128, and 192, the
broadcast address is always the number right before the
next subnet.
Subnetting in practice
• For example, the 0 subnet has a broadcast address of 63
because the next subnet is 64.
• The 64 subnet has a broadcast address of 127 because the
next subnet is 128.
• And so on. And remember, the broadcast of the last subnet
is always 255.
• What are the valid hosts?
• Valid hosts are the numbers between the subnets, omitting
the all 0s and all 1s.
• For example, if 64 is the subnet number and 127 is the
broadcast address, then 65–126 is the valid host range it’s
always the numbers between the subnet address and the
CHAPTER V: OSI DATA LINK LAYER
Introduction
• To support communication, the OSI model divides the
functions of a data network into layers. So far in this
module, you have learned about the following layers:
The application layer provides the interface to the
user.
The transport layer is responsible for dividing and
managing communications between the processes
running in the two end systems.
The network layer protocols organize communication
data so that it can travel across
internetworks from the originating host to a
Data link Layer sub layers
• The Data link Layer is divided into two sub
layers:
• Media Access Control (MAC) : It controls the
means by which multiple devices share
the same media channel for the transmission
of information.
• Logical Link Control (LLC): It establishes and
maintains links between communication
devices
Data link layer
Data link layer links the software and
hardware layers
Data Link layer frame
• Data Link layer frame includes:
Data - The packet from the Network layer
Header - Contains control information, such as addressing, and is
located at the beginning of the PDU
Trailer - Contains control information added to the end of the
PDU
• Formatting Data for Transmission: When data travels on the
media, it is converted into a stream of bits, or 1s and 0s. If a node
is receiving long streams of bits, how does it determine where a
frame starts and stops or which bits represent the address?
• Framing breaks the stream into decipherable groupings, with
control information inserted in the header and trailer as values in
different fields. This format gives the physical signals a structure
that can be received by nodes and decoded into packets at the
destination.
Data Link layer frame structure
Start and stop indicator fields - The beginning and end limits of the frame
Naming or addressing fields
Type field - The type of PDU contained in the frame
Quality - control fields
A data field -The frame payload (Network layer packet)
Fields at the end of the frame form the trailer. These fields are used to detect errors and to
mark the end of the frame.
CHAPTER VI: OSI PHYSICAL LAYER
Physical Layer
Communication Signals
• The delivery of frames across the local media
requires the following Physical layer elements:
The physical media and associated
connectors
A representation of bits on the media
Encoding of data and control information
Transmitter and receiver circuitry on the
network devices
Signaling methods
Physical Media
• The media does not carry the frame as a single
entity. The media carries signals, one at a
time, to represent the bits that make up the
frame.
• There are three basic forms of network media
on which data is represented:
Copper cable: UTP, STP, Coaxial cables
Fiber: Monomode, multimode
Wireless
CHAPTER VII ETHERNET
Introduction and Overview of Ethernet
• The LAN market has seen several technologies
such as Ethernet, token ring, token, bus, FDDI,
and ATM LAN.
• Some of these technologies survived for a while,
but Ethernet is by far the dominant technology.
• However, Ethernet standards have evolved to
continue meeting the needs of LANs.
• Ethernet has undergone changes in the type of
media used and the available speed of Ethernet.
Ethernet Cabling
• Three types of Ethernet cables are available:
Straight-through cable
Crossover cable
Rolled cable
Straight-Through Cable: RJ 11