Thursday, April 2, 2015

osi model layers and its functions with examples.


OSI MODEL – OPEN SYSTEM INTERCONNECTION




In 1970’s the OSI Model was developed by the ISO - International Organization for Standardization.

OSI - model allowing different networks to work with each other.

This model describes how the data and network information are communicated from one node to another over the different networks.

It fallows 7 Layers to communicating in the TCP/IP Network.

Each and every layer has its unique set of functions, roles or responsibilities.
























Application Layer (7th layer):


This layer acts as an interface between the N/w applications and the bottom layers of ISO.

Examples:Email, FTP etc.


Presentation Layer (6th layer):


This layer responsible for presenting the date in the required format.

It performs data translation, code formatting and data compression and decompression.

Example: ASCII conversion

Example: Audio and Video compression.


Session Layer (5th layer):


This layer controls network sessions.

It responsible for how to establishing, managing and terminating the sessions of communicating hosts.

It organizes communication through simplex, half-duplex or full-duplex.

Example: SQL, RPC, NetBIOS.


Transport Layer (4th layer):


It establishes logical connection between the sender and the receiver.

It provides end-to-end communication and it gives a choice of connection oriented or connection less data delivery by the help of TCP and UDP protocols.



Example: It passes segments of data through network layer and reassembles data for the session layers.


Network Layer (3rd layer):


Network layer is responsible for the logical addressing

It determines the best path to reach the destination of all available paths.

Example:

IP addressing is done at this layer.

Routers and firewalls work at this layer.


Data Link Layer (2nd layer):


Data Link layer handles physical transmission of data from one node to another.

This layer ensures that the messages are delivered to the proper device on the LAN using H/w (MAC) addresses.

Example: Switches and Bridges works at this layer.


Physical Layer (1st layer):


It manages physical media, here the data representing as electronic signals from source to destination host.

Example: Repeaters, Hubs, NIC-cards, cat5, coaxial, fiber optic cables work at this layer.



what is difference between udp and tcp/ip protocols.

TCP / IP

[Transmission control protocol / Internet Protocol]

TCP/IP is a universal standard protocols suite; it allows network connectivity between different n/w services.
TCP/IP widely used today, because it is scalable and reliable protocol.
Every operating systems enables TCP/ IP support inbuilt. It supports almost all network protocols so it is one of the common ways to communicate all network base services each others.

TCP/IP is a part of the OSI model.
IP - Internet-Protocol
Internet Protocol is responsible for moving packet of data from one node to another node over networks. It forwards each “packet” based on IP address of source and destinations.
TCP - Transmission-Control-Protocol
TCP is a connection-oriented protocol responsible for sending and verifying the date between client and server over networks.
It keeps the packet information like, whether the packet correctly delivery from client to server over the period of time, any connection failures, requesting time out and packets missing etc.

UDP - User Datagram Protocol

UDP is a connectionless protocol responsible for sending the date between client and server over networks.
It does not keeps any information of packets and it won’t get any acknowledgement from remote machine whether the packet correctly delivered or not, connection failure etc. *UDP does broadcast.








Wednesday, April 1, 2015

Network Topologies with examples

Network Topologies
  • Network topology defines the structure of the network.
  • One is physical topology, which is the actual layout of the media.
  • The other one is logical topology, which defines how the media is accessed by the hosts for sending data.
Physical Topologies













Bus Topology:
Bus topology is a method of physical connectivity.
In bus topology all the hosts connect directly to single cable.
Media: BNC connector, Coaxial cable.
Ex: - Cable T.V Connections
Ring Topology:
In this ring topology each host connects to the next host. Like all hosts connects each other. More cables and NIC card are used.
Note: Mostly this topology used in Railways.

Star Topology:
In star topology all hosts are connects to a central point of concentration. This centralize devices is called as Hub, Switch.
Note: It commonly used topology in LAN.
Media: Hub, Switch, Cat cables, RJ45 Connectors.

Extended Star Topology: Extended star topology links individual stars together by connecting the hubs (or) switches.
This topology can extend the scope and coverage of the network.

Hierarchical topology: Hierarchical topology is combination of two/more topologies.
Ex: - star topology, ring topology.

Mesh topology: Mesh topology each computer directly connects to other computer. Used No. of cables and NIC cards.
Mostly this topology used for wireless communication
Ex: - Telephone towers.



kickstart server configuration step by step in linux.

Configuration Of Kickstart File
The Kickstart Configurator program allows you to answer most of the questions asked during an interactive installation process. Once each section of the configurator is complete, simply save the configuration as a file.
Kickstart file is used to install the OS at client machine without Providing the Entries which are asked during Installation. Kickstart File should be available on the machine where the copy of O/S DVD or CD is stored.
In our scenario the kickstart file is on machine 192.168.0.100 and copy of CD or DVD is inside /var/ftp/pub

Step 1)
Copy all *.rpms from DVD/CD's in a folder /var/ftp/pub/Server/
Step 2)
Configure your machine as NFS,FTP & DHCP
Copy all rpms from DVD/CD's in a folder /var/ftp/pub/Server

[root@server ~]# yum install nfs* vsftpd* dhcpd* *kickstart* -y
[root@server ~]# vi /etc/exports
/var/ftp/pub 192.168.0.0/24(ro.async)
:wq!
[root@server ~]# service nfs restart
[root@server ~]# service vsftpd restart
[root@server ~]# service dhcpd restart
[root@server ~]# chkconfig nfs on
[root@server ~]# chkconfig vsftpd on
[root@server ~]# chkconfig dhcpd on

Step 3) Create the Kickstart File by using the following command

[root@server ~]# system-config-kickstart & 
















.
.
.



Step 4 ) Go to /var/ftp/pub and give execute permission to kickstart file 
[root@server ~]# cd /var/ftp/pub 
[root@server ~]# chmod +x *.cfg 


There are a large number of Kickstart Options that can not be modified by the Kickstart Configurator.then modified to include the hostname and some additional packages, shown in bold, to support the installation of 11gR2 database.

#platform=x86, AMD64, or Intel EM64T
#version=DEVEL
# Firewall configuration
firewall --enabled --ssh
# Install OS instead of upgrade
install
# Use CDROM installation media
cdrom
# Root password
rootpw --iscrypted $1u.8woUF10
# System authorization information
auth --useshadow --passalgo=sha512
# Use graphical install
graphical
# Run the Setup Agent on first boot
firstboot --enable
# System keyboard
keyboard uk
# System language
lang en_GB
# SELinux configuration
selinux --permissive
# Installation logging level
logging --level=info
# Reboot after installation
reboot
# System timezone
timezone Europe/London
# Network information
network --bootproto=static --device=eth0 --gateway=192.168.0.1 --ip=192.169.0.10 --nameserver=192.168.0.111
--netmask=255.255.255.0 --onboot=on --hostname=linux-test.local
# System bootloader configuration
bootloader --location=mbr
# Partition clearing information
clearpart --all
# Disk partitioning information
part /boot --fstype="ext4" --size=500
part swap --fstype="swap" --size=2048
part / --fstype="ext4" --grow --size=1

%packages
@base
@basic-desktop
@compat-libraries
@desktop-platform
@development
@directory-client
@fonts
@general-desktop
@graphical-admin-tools
@input-methods
@internet-browser
@large-systems
@server-platform
@system-admin-tools
@x11
kernel-devel
kernel-headers
gcc
%end



Client Side configuration 

Step 1) 
Set the BIOS first Bootable  Device as  CDROM. 

Step 2) 
Take Linux RHEL5 Bootable CD and Boot. 

Step 3) 
Now at the Boot prompt Type following Commands. 

boot : linux ks=nfs:192.168.0.X:/var/ftp/pub/ksn.cfg 
OR 
boot : linux ks=ftp://192.168.0.X/pub/ksf.cfg 

Step 4 ) 
Once the installation Starts Remove the Bootable CD/DVD.