Hip Lan Manual
Hip Lan Manual
Hip Lan Manual
IMO:9793856
AUTHOR: MD KAMRUZZAMAN
CONTACT: +8801706717654
E-MAIL:[email protected]
Index:
NETWORKING BASICS:
Address: A unique number assigned to something to completely identify the
item within many other items. For example, in the ship’s spare locker the main
engine tools box number is 26. Now if we need some tool for ME overhauling we
should look for box 26 although there are many other boxes. This is because we
already know the tool-box number for ME. This number 26 is the address of ME
tool box because it clearly identifies our required box. Any one knows the number
can find tools for ME overhauling. Now, let’s suppose our box number is always a
two-digit number. Then what is the highest box number?? Too easy haa!! Yes 99.
Well how many boxes we can address/number in that spare locker??? Not that
easy haa!! OK Max 99 boxes can be numbered in there excluding the number
00(starting from 01 to 99). Mathematically, 10x10=100-1(because 00 is excluded)
=99 boxes which is permutation of 10 elements taken any 2 at a time. For un-
careful reader 100 cannot be a box address/number because it is a three-digit
number. Which contradicts with our hypotheses that the address/number can
only be a 2-digit number. Similarly, in computing world addressing is extensibily
used. For example, we commonly say 64-bit address bus or simply say 64-bit
computer. What does it mean???? This means processor installed (core i3/i5/i7 or
dual core/Pentium I/II/III/IV or Celeron/ARM or whatever it is) has 64 wires for
addressing any memory each of which represents one byte. Therefore, this
processor can address at max 2 64=2,305,843,009,213,693,952 bytes =
2,251,799,813,685,248 Kilo-Bytes=20,480 Mega-Bytes =20 GB RAM memory
points each a size of 1 byte (8 bits in a byte). Also note IP address is 32 bit (4
bytes). Therefore, with this addressing scheme we can address max
232=4,294,967,296 unique points/devices. IP is discussed further below. Same is
true for hard disk, USB, PCI, I2C BUS and every digital device which needs
addressing.
BUS: A common transportation medium free for all to use. Suc as the green line
bus service we use travelling which is free for all to use. In computing world BUS is
a wire or a set of wires to which two or more devices are connected for internal
communication. Since, two or more devices is connected to same set of wires
therefore it is a shared resource. Now imagine two device starts communicating
in the same time then what will happen??? Uncontrolled haphazard condition!!!!
Yes. So in this type of shared resource we need an arbitrator which is also called
bus master. Any device wants to communicate with other device should first
contact the arbitrator/bus master for permission to transmit. Bus master will see
if the line/bus is free or not. If line is free the master will give permission to the
device otherwise will put the device on hold. Router is the bus mater in a LAN.
Platform Hub controller(PCH) is a bus master in modern computer motherboard
etc.
LAN: local area network. Two or more computer connected to each other
through a network master/bus master(router).
Internet: Two or more inter connected network(LAN).
IP: Internet protocol. The well-defined manner in which two operating system
internet layer software communicate with same layer on another
computer/device
AND operation: 1100 0000 1010 1000 0000 1000 0000 0000 (192.168.8.0)
And we get the main Network number. Therefore, the computer is located in the
network number 192.168.8(It’s main network number/router network number) &
in this network the computer has the address 10, it’s subnetwork number. In this
way the router knows exactly which device should receive the packet when any
request arrives to the router within many devices connected to it. Please Notice in
this network (192.168.8) the last six bits (6 least significant bits) are designated
for subnetwork device addresses assignment. Therefore, at max 2 6=64 devices can
be connected in this network. For enthusiastic readers, there are four type of IP
address (A, B, C &D). IP 255.255.255.255 means all device in the network and
used during initialization phase and for radio transmit. IP 0.0.0.0 is reserved for
this device. Please google it.
Router: A device act as the bus master/Network master in the network. Router
assigns a unique IP Number/address to each device connected to it (by twisted
pair cable: CAT-5, CAT-6 or by Wi-Fi). Router also maintains a table of IP address
vs Devices. The connected devices directly send their request to the router to
which it is connected(Gateway) with sender IP address and Receiver IP address.
When any IP packet arrives at the router the router checks the sender address
and destination address and looks for it in the table. If a match found in the
LAN/same network, then the packet is sent to the appropriate device else the
packet is transmitted to the upper level router (It’s Gateway). In other words, the
router routes Internet packets to appropriate destination. Modern routers have
the capability to decide the best routing path in which the packet will be delivered
in shortest time. Router also maintain a path table for each destination along with
ARP table.
Router Basics:
Prerequisite: Please go through network basics first.
Gateway: The IP address of the upper level router to which this device/router is
connected to. In figure 1 the computer is connected to the gateway 192.168.8.1
which is the IP address of the router to which it is connected. Therefore, this
computer will send all of its request/packets to the gateway router. In case of
router it will first find out whether the destination address is its own network or
other. If the packet is for a device in the same network as of the router, then
router will directly route the packet to appropriate LAN cable/Port. And if the
packet/request is for other network then router will transmit the packet to upper
layer router which is its gateway.
Subnet MASK: Please refer to Network Basics Chapter.
LAN page: User can define the range of IP numbers the router can assign to the
devices connected to it’s lines/channels/LAN ports.
DHCP: Dynamic Host Control Protocol. The router refers to the devices connected
to it as hosts. Router assigns each host connected to it a unique IP number. Now
how the IP number can be assigned?? Well router uses two methods. One of
them is DHCP. IF DHCP is enabled then the situation is like this: a host is
connected to a router using SSID or LAN Cable. First the device tells the router “I
am here along with it’s MAC address”. Router replies the device with a unique IP
address on the way which is usually randomly selected from it’s IP address range
defined in the LAN page section and saves the IP number in it’s routing table.
Normally the IP number is leased to the device for a certain time. After the time
expires, router will renew the device with different IP number. This scheme is
maintenance free. Any device will simply connect to the router and get an IP
automatically. Router will do the job. But if you need to control who can use the
router services and who cannot then this is not a good idea. In that case you must
use Static IP address scheme.
You can enable/disable DHCP in DHCP page. Refer to below figure 3:
Figure:3
Static IP: If don’t want any device to use your router’s service but only some
selected devices then your option is switch to static routing. Go through following
procedure:
First Login to your router
Go to DHCP
Click DHCP setting (Figure 3)
Disable DHCP server (Figure 3)
Now click Address reservation (Figure 4)
Now click Add new (Figure 4)
Figure: 4
On next page insert the MAC address of the device you want to allow
(Figure 5).
Also input the IP address you want the device to have (Figure 5).
Now click Save. You can add as many devices as you want depending on
your subnet.
The added device list will appear in the previous page (Figure 4).
Now only the devices listed in Figure 4 can have access to router.
Figure: 5
DHCP but permanent IP: If you want any device can use your router’s service but
always your device will get the same IP no matter what then follow this:
First enable DHCP (Figure 3)
Then go to Address reservation (Figure 4)
In address reservation page click “Add New” (Figure 4).
Then follow step depicted in figure 5.
Routing Table: Suppose your computer IP is 192.168.0.106, your network number
is 192.168.0.0, subnet mask is 255.255.255.0 and your gateway is 192.168.0.1.
But you want to communicate with a computer having IP address 192.168.20.10
but located in another network 192.168.20.0, subnet mask 255.255.255.192
having it’s gateway 192.168.20.1. Now if the router of your destination computer
is connected to your router through on of your own router’s LAN port having IP
address 192.168.0.109 then you can do the trick. Just tell your router that
whenever your computer asks for IP range in network 192.168.20.0 then forward
the request in IP address 192.168.0.109. The scenario is diagrammatically
represented below:
Figure: 6
Figure: 7
Default gateway: This is confusing. This gateway is the IP address of the
router to which your router wants to connect. For example, a router in
engine room is connected to your router through one of your routers
LAN port (Ref. figure 6). So your router has assigned some IP number to
that E/R router. Well in this case this IP address which your router has
assigned to the E/R router is our required gateway.
Click save. Your job is done.
Figure: 8
Internet Access control: Suppose you router has access to internet and many device is connected to your
router. But you want some of the devices to access internet and deny for others. Do it in following way:
Figure: 9
Figure: 10