Protocols 1
Protocols 1
Topics
• Definition
• Functions of Protocols
• TCP/IP Overview
• TCP/IP Configuration
• Other Protocols
Protocols
•Protocol is a rule that governs how networks communicate
i.e. it is a method of communication between network nodes.
•Integral part of both software and hardware adhered to by
software & hardware developers.
•Only clients and servers using the same protocols to
communicate.
•There are many different types of protocols available to
accomplish different purposes
•Some work at different layers of the OSI reference model
and some work together in what is referred to as protocol
stack e,g TCP/IP
•Protocols include: IPX/SPX, TCP, IP, SNMP, HTTP, SMTP, POP,
NETBIOS, Apple Talk, SDLC etc
Functions of a protocol
i. Define the structure of the message information i.e. function
of the parity bit to the transmission data
ii. Coping up with signal errors through
(a)block checksum (a code generated and sent after a certain
number of bytes have been transmitted
Matching checksum values at both transmitter and receiver
implies absence of errors
(b)or using a polynomial code (a mathematical code that
detects burst errors
iii. Control information flow through windowing (the
transmission of multiple packets that requires acknowledgment
from receiving machine.
TCP/IP Overview
•The most common protocol is TCP/IP because it can be
supported by other operating systems e.g. LINUX and
Windows (compatibility)
•TCP/IP is fondly referred in short as IP
•There are many versions of IP protocols. The present and
commonly used one is IPv4 or simply IP that has a 32-bit
address (a maximum of 232 =4,294,967,296 addresses)
•IP (internet protocol) is responsible for routing and re-
routing packets in a network
•TCP(transmission control protocol is responsible for breaking
large messages into packets, control of packet flow to ensure
delivery and re-assembling of packets into a complete
message at the receiving node)
TCP/ IP Configuration
IP addressing
•The location of communicating nodes must be
known in order to transmit
•IP address is a number assigned to a network
node for identification and location
•It is composed of a set of four dotted decimal
numbers each of which range 0-255 in value e.g.
of an IP address is 172.68.1.10
•An IP address is split into two components; a
Network ID and an Host ID
IP addressing
Network ID (NID)
- Is the first part of the IP address
- It identifies the network segment (physical
network) in which a particular node is located in
the network.
- All nodes on the same segment will have the
same network ID.
Host ID (HID)
- Is the unique ID of the device/node
-It is the second part of the IP address
•Question. How many components are possible
with an IP address w.x.y.z?
IP Address Classification
•There are five IP classes namely A, B, C, D and
E
•They define the division between networks
and host ID.
•Are based on the physical location of the
network that an organization has.
A
E
Class “A” IP Address
•Uses only the first of the four IP decimal number
parts for network Id and the next three for the
host Id
•Out of the 32-bit addresses, it uses 7-bit for
NetID and 24-bit address for HostId leaving 1-bit
(binary 0) for class order. Therefore a prefix of 8
bits
•Allows the use of 126 (27-2) networks and
16,777 214 (224-2) hosts per network
•Good for organizations with very large number
of hosts e.g the internet (WAN)
Class “B” IP Address
•Uses the first two IP address Network ID and
last two parts for host id
•Out of the 32-bit addresses, it uses 14-bit for
NetID and 16-bit address for HostId leaving 2-
bits (binary 10) for class order. Therefore a
prefix of 16 bits
•Allows the use of 16384 (214) networks and
65534(216-2) hosts per network
•Usually assigned to medium sized to large sized
organizations with branches/campuses
distributed over regions (MANs)
Class “C” IP Address
•Uses the first three IP address parts for NetId
and the last part for HostId
•Out of the 32-bit addresses, it uses 21-bit for
NetID and 8-bit address for HostId leaving 3-bits
(binary 110) for class order. Therefore a prefix
of 24 bits
•Allows the use of 2097152 (221) networks and
fewer 254(28-2) hosts per network
•Used for small sized hosts LANs
•Commonly used because lots of networks are
required than hosts
Class “D” and “E” IP Address
•Class D is allocated to network only and is used for
multicasting networks -
•Class E is neither allocated NID nor HID and is
reserved for future IP expansion and experimental
use.
•Question. What do think is the IP address class for
our 172.168.1.10?
•IP address classes is identified using the first part
(first octet) of the four dotted decimal part . The first
octet range for each class is obtained from binary
number systems range as follows
Class Binary Number range Dotted Decimal range
A 00000000-01111111 0-127
B 10000000-10111111 128-
191
C 11000000-11011111 192-
223
D 11100000-11101111 224-
239
E 11110000-11111111 240-
255
IP Address Assignment Rules
•IP address first part cannot be 127 as it results to
looped back function used to test network
continuity. (ping address=127.0.0.1)
•Bits cannot be all binary 1s for both network and
host Ids (e.g 192.168.1.255); the address is
interpreted as a broadcast rather than a host id or
network id
•Bits as well cannot be all binary 0s (e.g
192.168.1.0 or 0.168.1.16); the address is
interpreted as this network only i.e. cannot
connect to a remote network
•Host Id must be unique to network Id for
identification
Sub netting
A number used in conjunction with IP address to
distinguish between NID and HID of e network