Showing posts with label INFORMATION AND COMMUNICATION TECHNOLOGY. Show all posts
Showing posts with label INFORMATION AND COMMUNICATION TECHNOLOGY. Show all posts

Saturday, January 3, 2015

Network Security, Authentication, Firewalls, Virus, Spyware P- 04. Information Communication Technology for Libraries

इस ब्लॉग्स को सृजन करने में आप सभी से सादर सुझाव आमंत्रित हैं , कृपया अपने सुझाव और प्रविष्टियाँ प्रेषित करे , इसका संपूर्ण कार्य क्षेत्र विश्व ज्ञान समुदाय हैं , जो सभी प्रतियोगियों के कॅरिअर निर्माण महत्त्वपूर्ण योगदान देगा ,आप अपने सुझाव इस मेल पत्ते पर भेज सकते हैं - chandrashekhar.malav@yahoo.com

Network Security, Authentication, Firewalls, Virus, Spyware


P- 04. Information Communication Technology for Libraries *

By :Usha Munshi,Paper Coordinator


Content Navigation

Home
 Content
    Objective
    1.Introduction
    2.Network Authentication
    3.Types of Network Attacks
    4.Virus
    5.Protection using UTM and Firewall
    6.DMZ for hosting and IDS
    7.Summary
  Collapse  Learn More

Objective

The Objective of this module is to provide the over all idea of the Network Security and its importance in an organization. The threats and challenges against network security and major kinds of threats found in a network will be discussed. In addition, proper remedies and measures to be taken to protect the data and information in a network environment is also highlighted. Major threats like virus, Trojan, malware, spyware, DoS attack, Hacking, IDS and implementation of anti virus as well as Firewall etc. will be learned. On completing this unit student should be in a position to understand the best mechanism to protect the network and tools required for implementing the best solution for safeguarding the network

1.Introduction


Security is a global issue and one need to protect his valuables, data and information,  even our home and nation with proper security. Physical security can be easily achieved by safeguarding it by physical means such as lock and key, fencing, creating walls, making compartments, etc. Physical security of computer system also can be attained by placing it in a safe place or put it in a lock and key or inside a compartment with proper security. But network security is a challenge since it involves interconnections of computers for resource sharing.  Security for computer networks and information is to be implemented at various levels in order to protect data and information. The Objective of this module is to  discuss  threats and challenges towards network security, such as  hacking, phishing attempt, virus, trojan, spyware, etc. over the network and various measures and methods of protection against these threats.

The prime objective of network security is to protect the confidentiality of data by keeping the integrity and correctness of data and make the availability of data for use over the network on 24 × 7 basis.  Everyone would like to get seamless and uninterrupted access to the resources over the network. Since computer networks are technically a cluster of interconnections of computers with the heterogeneous nature in its content and technology, ensuring security for the network is a major challenging task. The threats to the network may appear from both internal and external. The scope and function of  network has grown into a bigger magnitude with worldwide connections of computers i.e.  Internet. Since, each computer is getting connected to a global network,  security is to be ensured for every user and machines. The security has to be implemented at various levels, such as  user level, organizational level and national level. Security also needs to be enforced for Network of computers as well as information. Once the network is protected, information is also automatically getting protected to a great extent.

A major threat to individual user in a network environment is the threat of viruses and its variances.  In addition to viruses, there are similar threats like Trojan, Spyware, Addware etc. Before exploring these threats, let us discuss how does a legitimate user enter into a system which is connected in the network and ensure user level security.

2.Network Authentication

In a network, if a user is allowed to access information from his/her computer, one  can ensure that he/she is a legitimate user on the network. This is established by using or by giving an identity for the user in the network as well as system. Checking of such valid identity is called authentication. Authentication can be established on computer networks by providing a username and password or store IP address of the machine in advance in a centralised server.  The IP address is a unique ID for a user over a network. It can be a local IP address (e.g. 192.168.x.x or 172.16.x.x)  or global IP address or public IP address (e.g. 14.139.x.x or 8.8.8.8).

In addition to these mechanisms of authentication, one can also have recent techniques such as  biometric, fingerprint, face reading software, voice recognition, etc. for making valid entry into a system. These kind of tools are used  for authenticating so that like simple 'login' into the computer systems with his user name and password, a user can  get his/her credentials for authenticating with the network. Unauthorized users can be denied access to information by providing a valid authentication for each and every user in the network.  But, no one can create user names and passwords for all users  over a wide network like Internet. It is possible to  provide service level passwords similar to assigning passwords for email services (e.g. Gmail) as well as a user can have password for accessing e-resources, user can have a different passwords for login purpose, but not easy to assign a single password for all services.

It is suggested to create users with authentication at different level and every organization must have their own  authentication policy for it. This level of authentication can protect the network from unauthorised user or strange user while trying to access resources. If a user is denied access into the network, he/she  cannot access other resources as well. Therefore,  authentication is the mechanism by which one generally prevent illegitimate user to access the resources. As mentioned, a good password is a secured mechanism for a user to log in to a network.  It is suggested not to use simple words or dictionary words for passwords, instead one should use alphanumeric characters along  with combination of special characters for password. Banking sectors and other financial services over the Internet do not accept simple passwords.  It is also suggested to change  password at least once in three or six months so that even some inexperienced person cannot hack the system and get access to the data temporarily, the password change will can help to retrieve the access. Authenticated systems are also vulnerable for threats from outside as well as from inside. Few of such threats are discussed below.


3.Types of Network Attacks

Without proper security measures, data might be subjected to various kinds of  attacks. Attacks are classified as passive attacks and active attack where information is altered with intent to corrupt or destroy the data or the network.

Networks and data are vulnerable to any of the following types of attacks if one does not have a security plan in place.

3.1. Eavesdropping
Network communication happens in unsecured or "clear text" format, which allows an attacker to "listen in" or interpret (read) the data which passes through the network if he/she get access to the network by wrong means. When an attacker is eavesdropping, it is referred to as sniffing or snooping. This kind of  eavesdropping is a biggest security problem that administrators face  while managing the network.  Eavesdropping can be avoided by using strong encryption services that are based on cryptography.

3.2.     Data Modification
If an  attacker gets access to someone's data, the next logical step is to modify it. The smart attacker can even modify the data in the packet without the knowledge of the sender or receiver.

3.3.     Identity Spoofing (IP Address Spoofing)
The identity of a user on a network is through the IP address assign to the user while login into the network.  An IP address is a valid and unique identity which gives authorisation for a user. It is possible a smart attacker for an IP address to be falsely assumed i.e. identity spoofing. An attacker can also use a  special program to construct IP packets that appear to originate from valid addresses. After gaining access to the network with a valid IP address, the attacker can modify, reroute, or delete the data.

3.4.     Password-Based Attacks
As discussed in network authentication, a user is getting access through a password-based access control. Access rights to a computer and network resources are determined by the identity a user has normally a user name and  password.

When an attacker finds a valid user account and get the password, the attacker has the same rights as the real user. It will be very dangerous, if the user has administrator-level rights. In such cases the attacker gets full access right to do anything in the system.  After gaining access to a network with a valid account, an attacker can do any of the following:

  • Obtain lists of valid user and computer names and network information.
  • Modify server and network configurations, including access controls and routing tables which is a very serious threat.
  • Modify, reroute, or delete  data.


3.5.     Denial-of-Service (DOS) Attack
Unlike a password-based attack, the denial-of-service attack prevents normal use of a computer or network by valid users. DOS attack is generally caused by flooding a computer or the entire network with traffic until a shutdown occurs due to overload. DOS  can also cause blocking the traffic, which results in a loss of access to network resources by authorized users.

3.6.     Man-in-the-Middle Attack
Man-in-the-middle attacks are like someone assuming the identity of a user  in order to read his/her  message. The person on the other end might believe it is you because the attacker might be actively replying as you to keep the exchange going and gain more information.

3.7.     Compromised-Key Attack
A key is a secret code or number necessary to interpret secured information. After an attacker obtains a key, that key is referred to as a compromised key. An attacker uses the compromised key to gain access to a secured communication without the sender or receiver being aware of the attack. With the compromised key, the attacker can decrypt or modify data, and tries to use the compromised key to compute additional keys.

3.8.     Sniffer Attack
A sniffer is an application or device that can read, monitor, and capture network data exchanges and read network packets. If the packets are not encrypted, a sniffer provides a full view of the data inside the packet. Even encapsulated  packets can be broken open and read unless they are encrypted. Using a sniffer, an attacker can analyze the entire network and gain information to eventually cause the  network to crash or to become corrupted.

3.9.     Application-Layer Attack
An application-layer attack targets application servers by causing a fault in a server's operating system or applications. This results in the attacker gaining the ability to bypass normal access controls. The attacker takes advantage of this situation, gaining control of your application, system, or network for introducing a virus Program or introduce a sniffer Program or disable other security controls to enable future attacks.

Virus, Trojan, Worms, Addware and Spyware are generally belongs to active attacks and major threats to the security.

4.Virus

A virus is a computer program with malicious logic and replicate itself repeatedly over the network. Though Computer virus is working like a biological virus, i.e. enter into the computer without notice to the user of the system and spread to other computers, maintains its dormancy and keeps its polymorphic nature. The name is coined from Vital Information Resource Under Siege (VIRUS). Computer viruses are executable computer programs designed to replicate and damage the computer system without users' knowledge and permission. Computer virus gets activated on certain triggered conditions known as “Catalyst”. A computer virus program is logical activity and have its own mechanism to avoid detection by the user and activate on a particular time or occasion. Such viruses are called “stealth viruses”. The trigger could be a particular date for e.g. Thursday 12th (Alias CD), Friday the 13th for Jerusalem Virus. Some time a code is also embedded in some legislate programme, i.e. set to explore when certain conditions made and such viruses are called logical viruses.

A virus can affect operating system, computer files, data files, executable programs, bootable disk, hard disk partitions, boot sector etc. Generally, when it gets activated it can hide in RAM (Random Access Memory), Upper memory, High memory, TSR (Terminate and Stay Resident), MBR (Master Boot Record) extended and expanded memory. Viruses are categorized into boot sector infectors and program file infectors (for eg. .exe, .doc, .sys, .dill, .ovl, .scr, .xla, .xls)

Nature of following viruses and illegal activities on the network may be  learned from anti-virus web sites:
  • Adware (advertising software)
  • Armored viruses
  • Benign virus
  • Bomb virus
  • Boot virus (boot sector virus)
  • Botware
  • Browser hijacker
  • Companion virus
  • Dialer (phone dialer)
  • FAT virus (File Allocation Table virus)
  • File deleting viruses
  • Keyloggers
  • Macro virus
  • Malware (malicious software)
  • Mass mailer viruses
  • Memory resident virus
  • Multipartite virus
  • Multiple characteristic viruses
  • Parasitic virus
  • Polymorphic virus
  • Programme virus

Some of the viruses attack web servers and network managed programme and stop the legitimate user to access data from the server by denial of service (DoS attacks) as discussed earlier. Zombi is an example of this type of virus. It is expected at least 100000 viruses spread as on date. Use of proper anti-virus software, regular update on the signature of the new virus can prevent the system from virus attack. The virus cannot damage hardware such as keyboards, monitor, printer etc. on the detection of the virus this can be isolated from the normal programme such can be quarantine time.

4.1.     Trojan Horse

Trojan Horse is a type of non-self-replicating type of malware programmes containing malicious code which carries out predetermined actions based on the nature of Trojan. On execution it cost loss or theft of data for slowing down the performance of the system. Trojan act as back-door entry programme gets dropped in a system without notice of the user. A trojan may also give remote access to a hacker for the targeted computer systems. Harmful trojan horse can damage system in many ways such as crashing the computer, data corruption, formatting disk, keystroke logging, deletion of files, data theft, perform automated spamming or denial-of-service attack, viewing user’s webcam, modification of registry, downloading and installing third party malware etc.

4.2.     Malware/Spyware

Now a days,  virus  can also get attacked to data files such as .doc, .xls, .pps, .mdb,  etc. Such viruses called “Macros”. Some of these viruses are polymorphic in nature which mutates and changes its identifiable codes with each infection.  Macro viruses are generally independent 'malware' programme which do not require any host. It replicates itself and spread. In contrast to virus, some malicious programme do to replicate such programmes are called “Trojan Horses”.
Spyware programme helps in gathering information about a person  and organisation without a knowledge. Spyware is classified into four types: System monitors, Trojans, Adware and tracking cookies.

4.3.     Anti Virus Programmes
The threads like Virus, Trojan, Malware, Spyware, etc. can be prevented by using anti-software from the popular vendors. Anti-virus software is a set of programme  data designed to prevent, search for, detect and remove viruses and other malicious software like worms, trojan, adware, etc. These tools are critical at users level and has to be updated daily for the new inclusion of the viruses since more than 60,000 new pieces of Malware created daily. The Anti virus programme perform basic functions like scan specific files of directories, allow scheduled  scans automatically. Initiate scan for specific drive, folders, CD ROM, Flash Drives in any time. The infected files can be removed or quarantined to prevent the infection to other PCs for files.

Popular free anti-virus programs are AVG antivirus, Kaspersky, F Secure, and Avaste, and commercial software are Norton by Symantec, MaCafe, Trend Micro, eScan, Bitdefender, inoculate etc. It depends upon organisation to choose the best product.

5.Protection using UTM and Firewall

We have learned how to protect the computers against unauthorised entry and also seen that whether a user is legitimate user or not with authentication.  If unauthorised person can get access to a computer through network what she/he can do? Such unauthorized or illegitimate users are called hackers. Hackers use the vulnerability on a system. There could be loopholes in any software which allows to open ports (open entry) for entering data or programmes into the system. Such loopholes are called vulnerabilities in a system. This generally happens  with computer programmes installed on the system to get access to valid resources of the computer. The attack by a hacker could be passive in nature by which hacker just eave drops on information without modifying it. On the other hand,  an active hacker can modify the data or destroy the data.

Hacker can get into the resources once he gets into the system and  he/she can work like any other normal user. This is one of the serious threats in the network. Hacking attempt is there in every sectors and  banking sector loses huge amounts of money every year because unscrupulous people try to get access to confidential information through hacking and once this information is with hacker, hacker can play around with data, including malpractices,  which he has with him.

A Hacker or an unauthorized user can get access to system by any means. Computer programme generally works in a system by connecting to another system over the network so that it allows to access data. These relations are called  connections in the network. These connections are generally open  through some ports. Since ports are open to create some of the connections, security on this connection are compromised and  through these open connections, unauthorised people can also get access to the computer. Technically, it can be said  that each programme has a port that is an open place in the computer,  through the port only a programme can communicate. For example, suppose we have a database server with us, database server works on a particular port to get connected so that this port can also get accessed by a user or a network expert and he can launch some of the programmes through the same open port. There are more than 65000 ports get opened on a system and  some of them automatically open for services at the time of booting. A hacker can try to get access through this port into the computer and the process is  called hacking attempt.
Alternate Text
This is a very serious security threat as whatever activities a user is  doing can be monitored as a spy or data can be sent to another website without notice of the user. It is also possible that  whatever key a user is typing, it can be sent to a web site without knowledge of the user. This is possible by launching some of programme by the hacker into the system. Hence hacking threat on individual system as well as network is to be detected, network has to be monitored always for this kind of attempt on the server. There are sophistigated programmes called IDS (Intrusion Detection System) which are part of firewall which takes care of such attempts.  Implementing Firewall and UTM appliances (Unified Threat Management Systems)  in network can prevent many threats.

As shown in figure network is created with many devices such as PCs, Mobile, Laptops, servers and other network devices. Once connected, the same machine/devices can launch an attack.  Firewall creates a virtual protection mechanism to protect the network. Unauthorised attempts with data or traffic will be discarded by the firewall, if it is not through the known ports.  Firewall protects the network against all sorts of known attacks and threats.  Appliance based Firewall with Gateway level Anti Virus scanning can protect spreading of viruses over the network. Spam Filtering in UTM can check for data whether it is a spam or not. Intrusion Detection/Prevention System monitors the unauthorised entry into the network and prevent it. Firewall also has the facilities for bandwidth management, web content filtering, anti-phishing, load balancing, DNS resolution, creation of proxy server, DMZ support etc.

This can be explained in detail by using the following diagram that how a server and client is connected to share data. As it is  seen in the diagram the PCs used by a user on the Internet will be acting as a client and he/she will try to access the information from the server (web server) through the network. The server will push the information based on request to the client’s or user’s computer. If there is no security between  the user and server, the server can get direct access to the PC as well as the PC can also get direct access to server. The traffic will as well as nature of data will not be monitored in an unprotected environment.
Alternate Text
Firewall plays a role to protect the network where servers are connected. In organizational level, this protection can be introduced by using a checkpoint  between the user and outside network. Such check/verification  point is called firewall. Firewall is an intermediary layer which can be software or hardware or appliances,  which can reside in between the user and outside network. Any request which go through this equipment will be scanned and filtered for the content at the firewall level. Firewall is also added as filtering mechanism for data through  filtering gateways between the user and the outside network. It is essential that if one  host the content in a network, then the hosting server is to be protected from outside world. For example, as shown in diagram, if an institution  host web server, network admin need only to open the port which are required for accessing web service For eg. 8080 is a port number for Tomcat and 80 is port number for website. In general when a user  type http: // URL, then  by default,  the request comes through the port number 80. If he is using any other web server like tomcat,  it will be through 8080. If the hosting is done  using web server, one need to open only two or three ports. All other ports than these 3 ports has to be blocked. Firewall works based on this principle. Firewall blocks all the ports and network admin has to open the valid port(s) for the user.  As it is seen in the diagram,  first deny all connections and allow only connections which are required for use.

6.DMZ for hosting and IDS


In an organization, restriction on the server  can be established by creating a special zone. First, allow only known used ports from the system which is to be used for service.  In this context, there is an area in a normal network with a 'de militarized zone' (DMZ) which  means to militarize the complete zone by denying all connections and allow only the known connections/ programmes to access the resource. Any other attempt to access can be stopped at the firewall level as shown in programme. In addition to stopping such request, a firewall can also act as a tool for the  content filtering  or even restricted access to content (for e.g. Child sites restriction). Firewall blocks unauthorized network connections to the PC or local area networks including the server if a user is hosting services in the public domain. A firewall can also act as an Intrusion Detection System (IDS) which is a very common term used in network security to check any unauthorized entry into the system.

Any attempt by a hacker for passive as well as active intrusion has to be monitored and detected. There are many popular firewalls which have the facility for IDS as well as IPS i.e.. Intrusion Prevention System. Thus, the firewall will function for checking each and every connection request even at the content level. Some of the programmes can also carry harmful content and need to be filtered before it enters into the system. In addition  to protection, firewall can also act as a 'proxy' for sharing common Internet connection to many users.  UTM equipment can also filter content, act as load balancing between Internet connections from various ISPs, or authentication mechanism for users for proxy. Now a days,  all vendors come out with firewall products, which works as single UTM (Unified Threat management system) so that UTM box or appliance available in the market can be  procured directly and implement it in a network and configure the network so that every Internet connection or local connection for accessing outside or the internal data can be routed the traffic through this UTM (firewall). Some of the popular names of firewall/UTMs available in the market are Fortigate, Sonicwall, Cyberoam etc.  Firewall can filter the content as mentioned earlier, which can check the port number through which a programme is trying to access and deny any kind of access based on defined rules.  Another important threat is that many users try to continuously connect to a single server at same time which is also a kind of attack on the network.

Since  many organisations have limited network resources like bandwidth, etc. proxy server can be used.  Proxy servers are vulnerable for DoS attacks.  Suppose one network can accommodate 10000 users congruently at a time, an attempt by over 100000 users try to access the same server, the network will definitely chock due to heavy traffic which will lead to one of the threat like denial of service attack. Firewall can protect these kind of attacks for chocking the network by the hacker by monitor the flooding (UDP as well as ICMP). These are other kind of programmes created by the unauthorised persons who generally does not seriously work for resources access but just for spying the information. These attacks can be classified as passive attack and active attack. In passive attack, people will be getting into a system to know what is available. It is kind of eves dropping, release of message content, traffic analysis etc and active attack, the hacker will also get into the system and  modify the data, masquerading, replay, denial of service and alter data without giving any hint of change. Some people argue that ethical hacking is permitted, but cracking of a server is not permitted. Both ways,  this kind of activity is a crime under the IT act. A person should not get into the some's server without asking permission. This kind of attack can be stopped by using suitable firewall rules.


Few products are named as solutions for antivirus, trojans, spyware, adware and other kind of threats. Firewall can be implemented as software programme also (for eg in Linux, IP table) in addition to using as an equipment. This way firewall can take a shape of software as well as hardware and if software in the system, it come along with the operating system where the firewall has to be enabled. It depends upon the user to prevent his system from external attack as well internal attack. If the security is compromised at user level and organisation  may not be aware who is using the resource since hacker generally will not reveal the identity.  If an organisation  is not protecting their system, it will not only damage but it will also work as platform for others to attack. It is important to take care of security of computer systems, information, data as well as network so that user will  enjoy seamless access to information world.

7.Summary

Proper network security can be implemented by formulating very strong policy for the user as well as for the organisation with proper network security devices. The UTM (Unified Threat Management) appliances integrate  many security protection features in systematic security implementation. Restriction on the user is always required in the organization to protect network from local threats. Use of proper antivirus software on individual PCs as well as gateway level protection against virus attacks is to be strictly implemented. Use of pendrives, flashdrives,CDs, DVDs, and other storage devices plugging directly  into PC is to be strictly monitored. As per the IT Act, log records are to be created for each network activity as well as Internet usage in organization. All users should be given an individual user account with authentication and user privileges. Network security should be treated as an organization culture where ethical use of services is to be followed religiously.

References:


 An information Security Handbook, By John M D Hunter , Springer Publication

Abbreviations:

VIRUS: Vital Information Resources Under Seize
TSR: Terminate Stay Resident
MBR: Master Boot Record
FAT Virus: File Allocation Tabl Virus
IDS:  Intrusion Detection System
IPS: Intrusion Prevention System
UTM: Unified Threat Management
DMZ: De militarized zone
RAM:  Random Access Memory
PC: Personal Computer
CD: Compact Disk
DVD: Digital Video Disk, Digital Versetile Disk
IP : Internet Protocol
ICMP - Internet Control Message Protocol
........................................................................................................................

What is Anti-Virus Software?

Anti-virus software is a program or set of programs that are designed to prevent, search for, detect, and remove software viruses, and other malicious software like worms, trojans, adware, and more.
These tools are critical for users to have installed and up-to-date because a computer without anti-virus software installed will be infected within minutes of connecting to the internet. The bombardment is constant, with anti-virus companies update their detection tools constantly to deal with the more than 60,000 new pieces of malware created daily.
There are several different companies that build and offer anti-virus software and what each offers can vary but all perform some basic functions:
  • Scan specific files or directories for any malware or known malicious patterns
  • Allow you to schedule scans to automatically run for you
  • Allow you to initiate a scan of a specific file or of your computer, or of a CD or flash drive at any time.
  • Remove any malicious code detected –sometimes you will be notified of an infection and asked if you want to clean the file, other programs will automatically do this behind the scenes.
  • Show you the ‘health’ of your computer
Always be sure you have the best, up-to-date security software installed to protect your computers, laptops, tablets and smartphones.

Network Protocol Types P- 04. Information Communication Technology for Libraries

इस ब्लॉग्स को सृजन करने में आप सभी से सादर सुझाव आमंत्रित हैं , कृपया अपने सुझाव और प्रविष्टियाँ प्रेषित करे , इसका संपूर्ण कार्य क्षेत्र विश्व ज्ञान समुदाय हैं , जो सभी प्रतियोगियों के कॅरिअर निर्माण महत्त्वपूर्ण योगदान देगा ,आप अपने सुझाव इस मेल पत्ते पर भेज सकते हैं - chandrashekhar.malav@yahoo.com

Network Protocol Types


P- 04. Information Communication Technology for Libraries *

By :Usha Munshi,Paper Coordinator

Content Navigation

Home
 Content
    1.Objectives 
    2. Introduction 
    3. Definition 
    4. Concept of Layering 
  Collapse  5. ISO-OSI Model 
  Collapse  6. TCP / IP Model 
     6.0 TCP / IP Model
     6.1 SMTP
     6.2 Telnet
     6.3 FTP
     6.4 HTTP 
    7. Z39.50 
    8. Harvesting Protocols OAI-PMH 
  Collapse  Learn More 
     Reference: 

1.Objectives

Objective of this module is to teach students about the basic concept of protocols in Network andInternet. Few standard models of protocols such as OSI, TCP/IP is discussed in details. Aftercompletion of the module, the student will be able to understand basic principles of datacommunication and protocols and standards for Internet and networks. Protocols used for dataexchange is also discussed in this module.

2. Introduction

Protocol is a way of agreeing to a common set of rules for communication over network.Even a novice user, who uses a computer for his/her basic needs, also need to come acrosswith may protocols, which he/she might be unknowingly using on his/her computer. For e.g.For browsing a website using a standard browser software, generally one user need to type aweb address starting with 'http://' in the browser. In simple words, HTTP stands for aprotocol for transferring and displaying web pages on a browser screen. In few popularbrowsers, if nothing is mentioned, 'http' is assumed as default protocol. Basic protocol forInternet architecture is TCP/IP. Mail programs use SMTP protocol and File transfer onInternet uses FTP protocol. Protocols are required for transferring data, when network iscreated using different underlying technologies. These protocols are predefined and can beadopted before the implementation of a network.

3. Definition

Data transmission happens between different networks may vary in terms of topology,architecture, standards and underlying technologies. The fragmented portion of the data orcomponent wised blocks of data called “packets” travels from one node in a specific networkto a distance network which may be using different technology or protocol. It is important tointerpret the path of travelling packets on each network. Dissimilar networks should agree oncommon rules and standards for handling the data it received from one network to forward tothe targeted destination. This set of rules is called ‘protocols' in networks. The entire network(LAN, WAN, MAN etc.) and Internet agreed upon common rules and standards for dataexchange. Network protocol is a code of correct conduct with a set of rules and conventionsfor sending information over a network for exchanging data. Such standard procedures forregulating data transmission between computers are essential to send a data across dissimilarnetwork. The popular models are ISO-OSI, TCP/IP, SNA and DNA. The major two protocolswill be discussed in this model.
When networking concept was introduced, many major companies tried to invent their owncommunication standards for network. All standards introduced by major private IT networkcompanies used the same to implement on their network and became their own proprietyprotocols. IBM (International Business Machines Corp.) used special SNA (System NetworkArchitecture) for their devices to connect and make network. Meanwhile, Japanese basedDEC (Digital Equipment Corporation) company used DNA (Digital Network Architecture)for connection their devices to build network. These two major network protocols standardare used even for others to implement, but remained as their proprietary protocols. Later in1983, an open protocol is introduced by International Standards Organisation (ISO) which isbased on sever layer approach for communication from one machine to another. This modelis called Open System Interconnections (ISO-OSI), which is emerged as an open protocolstandard for connecting computers for creating networks. It is a sophisticated protocol whichdistinctively defines roles for each layer. Two network models will be discussed in this module.

4. Concept of Layering

Computer networks are designed in a modular way for easy and efficient handling of the network system. The whole network functions   are categorised into   a series of layered modules and are logically composed of a many layers depending upon the model used. Each layer at bottom offers particular services to the immediate higher layer by shielding those layers from the details of how the offered services are actually implemented in that layer. Therefore,  each  layer  has  its  own  set  of   protocols. A particular  layer  of one  machine communicates only with the corresponding layer of another machine by using the protocols of that layer.

Each layer is designed to do its   functionalities independently without bothering the other layers. Major functionalities which are to be done on various layers are modulation/demodulation,       encoding,       framing,        detect       and         correct errors, Medium Access Control,   routing,   reliability,      in-order delivery,   multiplexing   and   de- multiplexing,   quality   of   services   (QoS),   security,   compression,   naming, addressing, application  handling etc.

The main reasons for using the concept of layered protocols in network design are as follows:

  • The protocols of a network are fairly complex. Designing them in layers makes their implementation more manageable.

  • Layering of protocols provides well-defined interfaces between the layers, so that a change in one layer does not affect the adjacent layer. Various functionalists can be partitioned and implemented independently, so that each one can be changed as technology improves without the other ones being affected. For example, a change in a routing algorithm of a network control program should not after affect the functions of message sequencing, which is located in another layer of the network architecture.

  • Layering of protocols also allows interaction between functionally paired layer in different locations. This concept aids in permitting the distribution of functions to remote nodes.

  • The term protocol suite, protocol family, or protocol stacks are used to refer to the collection of protocols (of all layers) of a particular networking system.

5. 0 ISO-OSI Model

ISO stands for International Standards Organization and OSI stands for Open SystemsInterconnect. ISO-OSI model is the fundamental and popular model introduced in 1978 andrevised in 1984. This model formulates the communication process into structured layers asshown in figure. There are seven layers in the model and it is called a 7-Layer model. Themodel acts as a frame of reference in the design of communications and networking products.The OSI model passes the communication from the Physical Layer at media level, all theway to the Application layer. As shown in the figure, message traffic moves up and down theOSI model, depending on the purpose of the message. If host 'A' wants to communicate withHost 'B', the communication starts from the Application layer of 'A' to the application layer of'B' through all other layers. A virtual channels are created from one host to another host. Onelayer communicates with the corresponsing layer in the other system. Each layer adds itsown header information to the data received. There is no direct communication between eachlayer physically except physical layer. Physical layers of both the hosts are connecteddirectly through a physical media. The media can be cable, fiber, wireless, radio frequencysignals etc. 
Alternate Text
The OSI Model works by establishing a set of rules and standards for communication inbetween the layers. These rules ensure that different products can communicate betweeneach other because they are developed around the same guidelines. The picture below showshow messages are transferred between the different layers of the OSI model.
Alternate Text

5.1 Physical Layer
The physical layer of the OSI model defines media specifications such as connector andinterface specifications, as well as the medium (cable) requirements. Through physicalmedia, information is passed as signals which are coded as bit streams. Electrical,mechanical, functional and procedural specifications are provided for sending a bit stream ona computer network. Equipment like hubs and cables are related to physical layer.
5.2 Data Link Layer
Data Link layer allows a device to access the network to send and receive messages. It isresponsible for offering a physical address (MAC address) so that device’s data can be senton the network. This layer also has error detection facilities. Networking components thatfunction at layer 2 include NIC (Network interface cards) and Ethernet and Token Ringswitches, Bridges etc. A layer 2 switch uses this address to filter and forward traffic, helpingrelieve congestion and collisions on a network segment.
5.3 Network Layer
The basic unit of transfer is a datagram that is wrapped (encapsulated) in a frame. Thedatagram is also composed of a header and data field. There is usually at least one router onWANs between two computers. The connection between two neighbouring routers on the linklayer is always direct. The router unpacks the datagram from a frame, only to wrap it againinto a different frame (or, more generally, in a frame of different link protocol) before sendingit to a different line. The network layer does not see the appliances on the physical and linklayers (modems, repeaters, switches, etc.). The network layer also does not care about whatkind of link protocols are used on routes between the source and the destination.An internetwork addressing scheme assigns each network and each node a unique address.The network layer supports multiple data link connections. In the Internet Protocol suite, IP isthe network layer internetworking protocol which uses IP address. In the IPX/SPX suite, IPXis the network layer protocol.
5.4 Transport Layer
The transport layer provides end-to-end communication services and ensures that data isreliably delivered between those end systems. This layer works a Quality of Service fornetworks. Both end systems establish a connection and engage in a dialog to track thedelivery of packets across the internetwork. The protocol also regulates the flow of packets toaccommodate slow receivers and ensures that the transmission is not completely halted if adisruption in the link occurs. TCP and SPX are transport layer protocols.
5.5 Session Layer
The session layer coordinates the exchange of information between systems by usingconversational techniques, or dialogs. Dialogs are not always required, but some applicationsmay require a way of knowing where to restart the transmission of data if a connection istemporarily lost, or may require a periodic dialog to indicate the end of one data set and thestart of a new one.
5.6 Presentation Layer
The presentation layer is responsible for how an application formats the data to be sent outonto the network. This layer basically allows an application to read (or understand) themessage. Functionalities include encryption and decryption of a message for security,compression and expansion of a message so that it travels efficiently, graphics formatting,content translation, system-specific translation etc.
 5.7 Application Layer
Application layer provides an interface for the end user operating a device connected to anetwork. The application layer defines the format in which the data should be received fromor handed over to the applications. Application layer is layer user views while using thenetwork applications.
Examples of applications on this layer functionality include:• Support for file transfers (FTP)• Remote Connections (Telnet)• Ability to print on a network• Electronic mail (E-Mail) and Electronic messaging• Browsing the World Wide Web (HTTP)Few of the examples are discussed separately later.

5.1 Physical Layer

The physical layer of the OSI model defines media specifications such as connector andinterface specifications, as well as the medium (cable) requirements. Through physicalmedia, information is passed as signals which are coded as bit streams. Electrical,mechanical, functional and procedural specifications are provided for sending a bit stream ona computer network. Equipment like hubs and cables are related to physical layer.

5.2 Data Link Layer

Data Link layer allows a device to access the network to send and receive messages. It isresponsible for offering a physical address (MAC address) so that device’s data can be senton the network. This layer also has error detection facilities. Networking components thatfunction at layer 2 include NIC (Network interface cards) and Ethernet and Token Ringswitches, Bridges etc. A layer 2 switch uses this address to filter and forward traffic, helpingrelieve congestion and collisions on a network segment.

5.3 Network Layer

The basic unit of transfer is a datagram that is wrapped (encapsulated) in a frame. Thedatagram is also composed of a header and data field. There is usually at least one router onWANs between two computers. The connection between two neighbouring routers on the linklayer is always direct. The router unpacks the datagram from a frame, only to wrap it againinto a different frame (or, more generally, in a frame of different link protocol) before sendingit to a different line. The network layer does not see the appliances on the physical and linklayers (modems, repeaters, switches, etc.). The network layer also does not care about whatkind of link protocols are used on routes between the source and the destination.An internetwork addressing scheme assigns each network and each node a unique address.The network layer supports multiple data link connections. In the Internet Protocol suite, IP isthe network layer internetworking protocol which uses IP address. In the IPX/SPX suite, IPXis the network layer protocol.

5.4 Transport Layer

The transport layer provides end-to-end communication services and ensures that data isreliably delivered between those end systems. This layer works a Quality of Service fornetworks. Both end systems establish a connection and engage in a dialog to track thedelivery of packets across the internetwork. The protocol also regulates the flow of packets toaccommodate slow receivers and ensures that the transmission is not completely halted if adisruption in the link occurs. TCP and SPX are transport layer protocols.


5.5 Session Layer

The session layer coordinates the exchange of information between systems by usingconversational techniques, or dialogs. Dialogs are not always required, but some applicationsmay require a way of knowing where to restart the transmission of data if a connection istemporarily lost, or may require a periodic dialog to indicate the end of one data set and thestart of a new one.

5.6 Presentation Layer

The presentation layer is responsible for how an application formats the data to be sent outonto the network. This layer basically allows an application to read (or understand) themessage. Functionalities include encryption and decryption of a message for security,compression and expansion of a message so that it travels efficiently, graphics formatting,content translation, system-specific translation etc.


5.7 Application Layer

Application layer provides an interface for the end user operating a device connected to anetwork. The application layer defines the format in which the data should be received fromor handed over to the applications. Application layer is layer user views while using thenetwork applications.Examples of applications on this layer functionality include:
• Support for file transfers (FTP)
• Remote Connections (Telnet)
• Ability to print on a network
• Electronic mail (E-Mail) and Electronic messaging
• Browsing the World Wide Web (HTTP)
Few of the examples are discussed separately later.

6.0 TCP / IP Model

The reference model was named after two of its main protocols, TCP (Transmission Control Protocol)[12] and IP (Internet Protocol). TCP/IP is based on a four‐layer reference model with many protcolsincluded in it. All protocols that belong to the TCP/IP protocol suite are located in the top threelayers of this model. Each layer of the TCP/IP model corresponds to one or more layers of the seven‐layer Open Systems Interconnection (OSI) reference model proposed by the International StandardsOrganization (ISO). Following table describes the various layers and its responsibilities:
Alternate Text
Core protocols in the TCP/IP suite are Address Resolution Protocol (ARP), Internet Protocol (IP),Internet Control Message Protocol (ICMP), Internet Group Management Protocol (IGMP) , UserDatagram Protocol (UDP, Transmission Control Protocol (TCP)  etc. These applications include SMTP, Telnet, FTP, HTTP, DNS etc. Few popular application protocols arediscussed below;


6.1 SMTP

SMTP stands for Simple Mail Transfer Protocol, which allows a software to transmitEmail over the Internet. Most email software is designed to use SMTP for communication purposes when sending email and It only works for outgoing messages. When people set up their email programs, they will typically have to give the address of their Internet service provider's (ISP) SMTP server for outgoing mail (smtp.gmail.com). There are two other protocols ‐ POP3 and IMAP ‐ that are used for retrieving and storing email.

The SMTP server understands very simple text commands like HELO, MAIL, RCPT and DATA. The most common commands are:

  •  HELO ‐ introduce yourself

  •  EHLO ‐ introduce yourself and request extended mode

  •  MAIL FROM: ‐ specify the sender

  •  RCPT TO: ‐ specify the recipient

  •  DATA ‐ specify the body of the message (To, From and Subject should be the first three lines.)

  •  RSET ‐ reset

  •  QUIT ‐ quit the session

  •  HELP ‐ get help on commands

6.2 Telnet

Many a times, servers hosted in a hosing centre which is remotely kept in a distant place need to bemanaged from outside. For remote connections to a system, Telnet protocol is used. It is a terminalemulation program for TCP/IP networks such as the Internet. One can then enter commands throughthe Telnet program and those will be executed as if the user is entering them directly on the serverconsole. This enables to control the server and this communicate with other servers on the network.To start a Telnet session, you must log in to a server by entering a valid username and password.
Telnet protocol uses port number 23 on a computer system to allow connections from the remoteclients. This protocol is very useful in managing server remotely. There is also provision in computerwhich uses firewall  to allow connections only from known hosts. There are many freely availableTelnet programs which can be installed in client's machine to get connected to servers remotely.Telnet program uses IP address of the host machine to get connected (As shown in picture).  Popularoperating systems gave default telnet command line programs. 'Putty' is one of the popular freeware to install as a clienttelnet prpogram. Putty also has otherserviceslike FTP, SSHetc
Alternate Text


6.3 FTP

FTP is File Transfer Protocol which is to be enabled to share data from one host to another. This isalso a very popular service on the Internet. The FTP server program is to be installed on a host FTPserver. FTP will allow to transfer data over TCP/IP. FTP uses port numbers 20 and 21 andauthentication using a username and password is required for getting access to FTP server.'Anonymous' FTP configuration is also possible so that a user can transfer, normally download, datafrom the FTP server. Software are shared using FTP server due to the larger size of data. 


6.4 HTTP

The Hypertext Transfer Protocol (HTTP) is an application‐level protocol for distributed, collaborative,hypermedia information systems which is used for web pages. HTTP has been in use by the World‐Wide Web (hence it is called www) global information initiative since 1990. HTTP/1.0, as defined byRFC 1945. RFC is the approved technical documentation for  protocols and models.
The HTTP protocol is a request/response protocol. A client sends a request to the server in the formof a request method, URI, and protocol version, followed by a MIME‐like message containing requestmodifiers, client information, and possible body content over a connection with a server. The serverresponds with a status line, including the message's protocol version and a success or error code,followed by a MIME‐like message containing server information, entity meta‐information, andpossible entity‐body content.  HTTP communication usually takes place over TCP/IP connections. Thedefault port is TCP 80, but other ports can be used (eg. 8080).
Since this protocol is used in web page transmission, the URL starts with 'http://' on browser addressscreen. If nothing is specified in browser address bar, 'http' is assumed as the protocol by themodern browsers and http becomes the default protocol for browsers

7. Z39.50

Z39.50 is an international standard client–server, an application layer communications protocol forsearching and retrieving information from a database over a TCP/IP computer network. It is coveredby ANSI/NISO standard Z39.50, (ISO standard 23950) and maintained by the Library of Congress.Z39.50 is widely used in library environments and is often incorporated into integrated librarysystems and personal bibliographic reference software. Interlibrary catalogue searches forinterlibrary loan are often implemented with Z39.50 queries. It supports a number of actions,including search, retrieval, sort, and browse. Searches are expressed using attributes, typically fromthe bib‐1 attribute set, which defines six attributes to be used in search of information on the servercomputer: use, relation, position, structure, truncation, completeness.


8. Harvesting Protocols OAI-PMH

The Open Archives Initiative Protocol for Metadata Harvesting (OAI‐PMH) provides an application‐independent interoperability framework based on metadata harvesting. There are two classes ofparticipants in the OAI‐PMH framework (1) Data Providers administer systems that support the OAI‐PMH as a means of exposing metadata; and (2) Service Providers use metadata harvested via theOAI‐PMH as a basis for building value‐added services.
A harvester is a client application that issues OAI‐PMH requests. A harvester is operated by a serviceprovider as a means of collecting metadata from repositories. A repository is a network accessibleserver that can process the OAI‐PMH requests. A repository is managed by a data provider to exposemetadata to harvesters. The OAI‐PMH distinguishes between three distinct entities related to themetadata made accessible by the OAI‐PMH ie. resource, item and a record. A resource is the objector "stuff" that metadata is "about". The nature of a resource, whether it is physical or digital, orwhether it is stored in the repository or is a constituent of another database, is outside the scope ofthe OAI‐PMH. An item is a constituent of a repository from which metadata about a resource can bedisseminated. That metadata may be disseminated on‐the‐fly from the associated resource, cross‐walked from some canonical form, actually stored in the repository, etc. A record is metadata in aspecific metadata format. A record is returned as an XML‐encoded byte stream in response to aprotocol request to disseminate a specific metadata format from a constituent item. Followingpicture shows how metadata is harvested into a repository from various databases and harvesters.

Alternate Text


Reference:


CS348: Computer Networks‐ The Concept of Layering by Bhaskaran Raman, Assistant Professor,
Department of CSE, IIT Bombay
http://csanu1314.blogspot.in/2012/08/concept‐of‐layered‐protocols‐in‐network.html
http://blog.buildingautomationmonthly.com/
http://technet.microsoft.com/en‐us/library/
http://www.openarchives.org/OAI/openarchivesprotocol.html
Additional reading
Global Knowledge ‐ Expert Reference Series of White Papers The OSI Model: Understanding the
Seven Layers of Computer Networks (www.globalknowledge.com)
URL at   http://faculty.spokanefalls.edu/Rudlock/files/WP_Simoneau_OSIModel.pdfaccessed on
15th April 2014.
http://www.w3.org/Protocols/rfc2616/rfcxxx