Week 2
Week 2
IP Address
Department of CS & IT
University of Mianwali
IP Address Binary Representation
IP addresses are usually written in dotted decimal
notation, with a decimal number representing each of the
octets of the 32-bit address. For example, the IP address
11000000 11100100 00010001 00111001 is written as
192.228.17.57
192.168.10.1
192.228.17.57
255.128.11.90
280.255.168.1
210.190.210.90
Subnet, Subnet Masking
Consider an internet that includes one or more WANs and
a number of sites, each of which has a number of LANs.
We would like to allow arbitrary complexity of
interconnected LAN structures within an organization
while insulating the overall internet against explosive
growth in network numbers and routing complexity.
One approach to this problem is to assign a single network
number to all of the LANs at a site.
From the point of view of the rest of the internet, there is
a single network at that site, which simplifies addressing
and routing.
To allow the router within the site to function properly,
each LAN is assigned a subnet number.
Subneting
192.168.10.0/24 , 192.168.10.10/25
27
1 1 1 1 1 1 1
Network 1 Network 2
192.168.10.0 Net id 192.168.10.128 Net id
192.168.10.1 192.168.10.129
192.168.10.126 192.168.10.254
192.168.10.127 bd 192.168.10.255 bd id
id
Domain Name System (DNS)
IP address is difficult to remember for user, the domain names are alphabetic
and are easier to remember.
DNS resolves the name of website typed in browser with IP address of server
that send requested information from that website.
For example www.example.com might be translated to 198.105.229.9
Four steps of DNS
1. DNS Recursor: The recursor can be thought of as a
librarian who is asked to go find a particular book
somewhere in a library. The DNS recursor is a server
designed to receive queries from client machines through
applications such as web browsers
2. Root Nameserver: The root server is the first step in
translating (resolving) human readable host names into IP
addresses.
3. TLD Nameserver: The top level domain server (TLD)
can be thought of as a specific rack of books in a library.
This nameserver is the next step in the search for a
specific IP address, and it hosts the last portion of a
hostname (In example.com, the TLD server is “com”)
4. Authoritative nameserver: This final nameserver can
be thought of as a dictionary on a rack of books, in which
a specific name can be translated into its definition. The
authoritative nameserver is the last stop in the
nameserver query.