Beruflich Dokumente
Kultur Dokumente
1) What is protocol ?
A protocol is a set of rules that govern how systems communicate. For networking, they govern how
data is transferred from one system to another.
3) Protocol Stacks:
a. It is possible to write a single protocol that takes data from one computer application and sends it to an
application on another computer (a single stack protocol)
b. The problem with this approach is that it is very inflexible, as any changes require the entire application
and protocol software .
c. The approach used in networking is to create layered protocol stacks.
d. Each level of the stacks performs a particular function and communicates with the level above and
below it.
e. Example:
Parcel service between two offices
We will divide the task into two distinct processes as follows:
(1) Take a package, wrap it and address it.
(2) Send it to the destination.
At the receiving end:
(1) Receive the package.
(2) Deliver it to the receipient.
Typically you would have an internal mail man that:
(1) Collects the parcels from the senders and takes them to a mail dispatch room.
(2) The parcels are placed in a van by dispatcher and then driven to the remote office.
At the remote office:
(1) The parcels are received by the dispatcher and placed into a tray for the mail man.
(2) The mail man collects the parcels and delivers them to receipients.
Parcel
Mailman
Delivery
Layer Protoc
Nam ols
es
Applica HTTP,
tion FTP,
POP3,
SMTP,
SNMP
Transp TCP, UDP
ort
Netwo IP, ICMP
rking
Datalin Ethernet,
k ARP
i) HTTP (Hyper Text Transfer Protocol) : This is the workhorse of the web.
A. Email protocols:
i) SMTP : Simple Mail Transfer Protocol.
ii) POP3 : Post Office Protocol Version 3
iii) IMap4 : Internet Message Access Protocol Version 4
i) TCP (Transfer Control Protocol) : Connection oriented protocol and is used to provide a reliable end to
end connection.
ii) UDP (Used Datagram Protocol) : Connection less protocol and doesn't guarantee delivery.
iii) ARP (Address Resolution Protocol) : Transfers IP address to MAC or physical address (IP4 Networks)
Applications will choose which protocol should be used based on their function.
IP = Main networking Protocol
Types : 1) IPV4 2) IPV6
(Reference : steves-internet-guide.com)
IP Address:
An Internet protocol address is a numerical label assigned to each device connected to a computer
network that uses the internet protocol for communication.
An IP Address serves two main functions:
a. Host or network interface identification
b. Location Addressing
Internet Protocol Version 4 (IPV4) defines an IP address as a 32-bit number.
However, because of the growth of the internet and the depletion of available IPV4 addresses, a new
version of IP (IPV6), using 128 bits for the IP address, was standardized in 1998.
IPV6 deployment has been ongoing since the mid-2000s.
IP addresses are written and displayed in human-readable notations, such as 172.16.254.1 in IPV4, and
2001:db8:0:567:8:1 in IPV6.
The size of the routing prefix of the address is designated in CIDR notation by suffixing the address with
Two versions of the Internet Protocol are in common use in the internet
today.
1) Unicast Address : Unicast Address identifies a single network interface. A packet sent to unicast
address is delivered to the interface identified by that address.
2) Multicast Address : Multicast Address is used by multiple hosts, called as group, acquires a multicast
destination address. These hosts need not be geographically together. If any packet is sent to this
multicast address, it will be distributed to all interfaces corresponding to that multicast address.
3) Anycast Address : Anycast address is assigned to a group of interfaces. Any packet sent to anycast
address will be delivered to only one member interface (mostly nearest host possible)
We have 128 bits in IPV6 address but by looking at first few bits we can identify what type of address it
is.
Address Formats
1) Unicast and Anycast address format
Unicast and Anycast addresses are typically composed of two logical parts : a 64 -bit network prefix used
for routing, and a 64-bit interface identifier used to identify a host's network interface.
The network prefix (the routing prefix combined with the subnet id) is contained in the most significant
64 bits of the address.
The size of the routing prefix may vary; a larger prefix size means a smaller subnet id size.
The bits of the subnet id field are available to the network administrator to define subnet within the
given network.
The 64-bit interface identifier is either automatically generated from the interface's MAC address using
the modified EUI-64 format, obtained from a DHCPv6 server, automatically established randomly, or
assigned manually.
A link address is also based on the interface identifier, nut uses a different format for the network prefix.
The prefix holds the binary value 11111111 for any multicast address.
Currently, 3 of the 4 flag bits in the flg field are defined; the most significant flag bit is reserved for
future use.