ncs 1
ncs 1
ncs 1
IP version 4 (IPv4)
IPv4 has a 32-bit address length.
It Supports Manual and DHCP address configuration
It can generate 4.29×109 address space
The Security feature is dependent on application
Address representation of IPv4 is in decimal
In IPv4 Encryption and Authentication facility not provided
IPv4 has a header of 20-60 bytes
Ex:- 192.168.1.165
IP version 6 (IPv6)
IPv6 has a 128-bit address length
It supports Auto and renumbering address configuration
Address space of IPv6 is quite large it can produce 3.4
×1038 address space
IPSEC is an inbuilt security feature in the IPv6 protocol
Address Representation of IPv6 is in hexadecimal
In IPv6 Encryption and Authentication are provided
IPv6 has header of 40 bytes fixed
Ex:- 2001:0db8:0000:0000:0000:ff00:0042:7879
Class A Network
This IP address class is used when there are a large number of
hosts. In a Class A type of network, the first 8 bits (first octet)
identify the network, and the remaining have 24 bits for the
host into that network.
An example of a Class A address is 102.168.212.226. Here,
“102” helps you identify the network and 168.212.226
identify the host.
Address Range:- 1 to 126
Class B Network
In class B the first 16 bits (first two octets) help you identify
the network. The other remaining 16 bits indicate the host
within the network.
An example of Class B IP address is 168.212.226.204, where
*168 212* identifies the network and *226.204* helps you
identify the Hut network host.
Address Range:- 128 to 191
Class C Network
Class C is a type of IP address that is used for the small
network. In this class, three octets are used to indent the
network.
In this type of network addressing method, the first two bits
are set to be 1, and the third bit is set to 0, which makes the
first 24 bits of the address them and the remaining bit as the
host address. Mostly local area network used Class C IP
address to connect with the network.
Address Range:- 192 to 223
Class D Network
Class D addresses are only used for multicasting applications.
Class D is never used for regular networking operations. This
class addresses the first three bits set to “1” and their fourth
bit set to use for “0”. Class D addresses are 32-bit network
addresses. All the values within the range are used to identify
multicast groups uniquely.
Therefore, there is no requirement to extract the host
address from the IP address, so Class D does not have any
subnet mask.
Address Range:- 224 to 239
Class E Network
Class E IP address is defined by including the starting four
network address bits as 1, which allows you two to
incorporate addresses from 240.0.0.0 to 255.255.255.255.
E class is reserved for research and Development Purposes,
and its usage is never defined. Therefore, many network
implementations discard these addresses as undefined or
illegal.
Address Range:- 240 to 254
Network Address Translation(NAT)
NAT stands for network address translation.
Network Address Translation (NAT) is a process in which one
or more local IP address is translated into one or more Global
IP address and vice versa in order to provide Internet access
to the local hosts.
Network Address Translation working
The router which has one interface in the local (inside)
network and one interface in the global (outside) network.
When a packet traverse outside the local (inside) network,
then NAT converts that local (private) IP address to a global
(public) IP address. When a packet enters the local network,
the global (public) IP address is converted to a local (private)
IP address.
If NAT runs out of addresses, no address is left in the pool
configured then the packets will be dropped and an Internet
Control Message Protocol (ICMP) host unreachable packet to
the destination is sent.
Why mask port numbers?
Suppose, in a network, two hosts A and B are connected.
Now, both of them request for the same destination, on the
same port number, say 1000, on the host side, at the same
time.
If NAT does only translation of IP addresses, then when their
packets will arrive at the NAT, both of their IP addresses
would be masked by the public IP address of the network and
sent to the destination.
Destination will send replies to the public IP address of the
router.
Inside local address – An IP address that is assigned to a host
on the Inside (local) network. The address is probably not an
IP address assigned by the service provider i.e., these are
private IP addresses. This is the inside host seen from the
inside network.
There are 65,535 possible port numbers, although not all are
in common use. Some of the most commonly used ports,
along with their associated networking protocol, are:
Ports 20 and 21: File Transfer Protocol (FTP). FTP is for
transferring files between a client and a server.
Port 22: Secure Shell (SSH). SSH is one of
many tunneling protocols that create secure network
connections.
Domain Names:
A domain name is a human-readable label assigned to an IP
address or a set of IP addresses. For example,
www.example.com is a domain name. Domain names are
organized hierarchically, with the top-level domain (TLD) at
the rightmost part (e.g., .com, .org, .net).
DNS Servers:
DNS operates in a distributed manner through a network of
DNS servers. These servers are categorized into several
types:
Root DNS Servers: These servers are at the top of the DNS
hierarchy and provide information about the authoritative
DNS servers for top-level domains.
Top-Level Domain (TLD) DNS Servers: These servers handle
requests for specific TLDs (e.g., .com, .org).
Authoritative DNS Servers: These servers store and provide
information about a specific domain. There are authoritative
servers for each domain.
Recursive DNS Servers: These servers perform the actual
work of translating domain names to IP addresses. They can
query other DNS servers to resolve a domain name.
DNS Resolution Process:
When a user types a domain name into a web browser, the
following steps occur:
The local device checks its local DNS cache to see if it already
has the IP address for the requested domain.
If not, the request is sent to a recursive DNS server (often
provided by the Internet Service Provider). This server may
have the information in its cache or may need to query other
DNS servers to resolve the domain.
The recursive server checks the root DNS servers to find the
TLD DNS servers responsible for the domain.
The TLD DNS server directs the recursive server to the
authoritative DNS server for the specific domain.
The authoritative DNS server provides the IP address for the
requested domain back to the recursive server.
The recursive server caches this information and returns the
IP address to the user's device, which can then access the
desired resource.
DNS Records:
Forwarders:
DNS servers can be configured to use forwarders, which are
other DNS servers that they forward queries to instead of
performing the full resolution process. This can be useful for
improving efficiency and reducing the load on root and TLD
servers.
DNS Security:
DNS is vulnerable to various attacks, such as DNS spoofing
and cache poisoning. DNS Security Extensions (DNSSEC) is a
set of extensions designed to add an extra layer of security by
signing DNS data cryptographically.