DNS, SNMP, Web Service
DNS, SNMP, Web Service
DNS, SNMP, Web Service
• The Domain Name System (DNS) is a supporting program that is used by other programs such as e-mail.
• A user of an e-mail program may know the e-mail address of the recipient; however, the IP protocol needs the
IP address.
• The DNS client program sends a request to a DNS server to map the e-mail address to the corresponding IP
address.
• When the Internet was small, mapping was done by using a host file. The host file had only two columns:
name and address.
• Every host could store the host file on its disk and update it periodically from a master host file. When a
program or a user wanted to map a name to an address, the host consulted the host file and found the
mapping.
• Today, however, it is impossible to have one single host file to relate every address with a name and vice versa.
The host file would be too large to store in every host.
• One solution is to divide this huge amount of information into smaller parts and store each part on a
different computer.
• In this method, the host that needs mapping can contact the closest computer holding the needed
information. This method is used by the Domain Name System (DNS).
Name Space symmetry
• The names must be unique because the addresses are unique. A name space that maps each address to a
unique name can be organized in two ways:
• Flat Name Space-A name is assigned to an address. A name in this space is a sequence of characters without
structure. It cannot be used in a large system such as the Internet.
• Hierarchical Name Space-Each name is made of several parts. The first part can define the nature of the
organization, the second part can define the name of an organization, and the third part can define
departments in the organization, and so on.
Domain Name Space
• To have a hierarchical name space, a domain name space was designed. In this
design the names are defined in an inverted-tree structure with the root at the
top. The tree can have only 128 levels: level 0 (root) to level 127 (see Fig.5.19).
Application Application
Network Web
client Service program
WEB SERVICES
• Web services used for building large number of application to application
protocols.
• Enabling direct application to application protocol comes from business world.
• For example: user can order a book from amazon.com. Once your book has been
shipped, amazon sends you tracking number in email.
• You can track the status of your package from amazon.com website itself.
Actually, Amazon & FedEx (transport products) exchange information to track the
packages.
• We need some tools to simplify the task of specifying protocol & building
application protocols.
• Network application cross the boundaries. The problem is scale. Not scale in the
size of network but scare in number of different kinds of network application.
• It's necessary to come up with some technologies that simplify & automate the
task of application protocol design & implementation.
Architecture
• It provides two architectures to simplify & automate the task of protocol design
and implementations.
• Custom application protocols (WSDL, SOAP)
– Generate protocols that are customized(change according to cutomer) to each network
applications.
– Provides framework for protocol specification.
– Supports software toolkits for automatically generating protocol implementations.
– It supports procedural style approach.
• A generic application protocols (REST)
– Generic protocols use World Wide Web resources identified by URIs and access via HTTP.
– It supports data oriented or document passing style approach
– Rest architecture's strength includes stability & scalability.
These architectures are used to develop applications service that offer a remotely accessible
service to client application to form network applications.
Custom Application protocols (WSDL, SOAP)
Two standard custom application protocols are
1. WSDL - WEB SERVICE DESCRIPTION LANGUAGE
– Framework for specifying application protocols.
– Specify application details such as
• What operations are supported
• Format of data
• Response to the operation
2. SOAP-SIMPLE OBJECTACCESS PROTOCOL
• Implementing application protocols
• It's easy to define a transport protocol which supports reliability &
security.
— WSDL & SOAP consists protocol specification language. Both languages
are based on XML.
— Both use software tools such as stub compilers and directory
services(defines namespace for the network). Both protocol supports for
automating generation of implementations.
— Supports software generally takes form of toolkit which makes
implementation part much easier for web service developers.
Defining Application protocol (WSDL)
• WSDL provides Framework for defining application protocols. WSDL is a procedural operation model of
application protocols. Operation involves Remote procedure Calls (RPCs).
• Web service interface consists of a set of named operations. Each representing a simple interaction
between client and web service.
• WSDL separates the parts of protocols as
– Operations
– MEPs (Message Exchange Pattern)
– Abstract Message formats
• Each operation specifies a Message Exchange Pattern (MEP)
– MEP provides sequence number, when an error disrupts message flow trigger a fault message.
– MEPs are templates/placeholder
– Only 2 MEPs are used
• In - Only (a single message from client to service)
• In - Out (a request from client & reply from service)
– MEP is defined as an abstract data model using XML schema which supports both base data types
and compound data types.
• WSDL provides binding for underlying protocols and maps MEPs onto it then represent binary level of
information for fast Infoset.
• WSDL supports modules. This modularity makes it easier to develop a specification for large piece of
software.
• The specifications are uniquely identified using XML namespace. Each WSDL document specifies the URI of
a target namespace.
Defining Transport Protocols (SOAP)
• SOAP is used to define transport protocol. SOAP uses many of the same
strategies as WSDL, including message formats defined using XML
schema, binding to underlying protocols, Message Exchange Patterns, and
reusable specification elements identified using XML namespaces.
• SOAP defines transport protocol which supports reusable components.
• Each component captures the header information and logic to implement
a feature. Features may include
– Reliability
– Security
– Correlation
– Routing
– Message exchange patterns
• SOAP feature specification must include
– A URI that identifies the feature
– State information
– Information to be relayed to the next node
– Life cycle of data to be exchanged
– Relationship of the message
Two Strategies of Defining Soap protocol
• Layering : Binding SOAP to an underlying protocols
• Header blocks : SOAP message consists of an Envelope, which contains Header
that contains Header blocks, and a Body, which contains the payload. The message
structure is shown below in fig.5.18.
Fig.5.27 MIB-2
Accessing MIB variables
• MIB variables are of two types namely simple and table. To show how to access different variables,
we use the udp group as an example. There are four simple variables in the udp group and one
sequence of (table of) records. Fig.5.28 shows the variables and the table.
• Simple Variables: To access any of the simple variable content, we use id of the group
(1.3.6.1.2.1.7) followed by the id of the variable. The following shows how to access each variable.
udpInDatagrams 1.3.6.1.2.1.7.1
udpNoPorts 1.3.6.1.2.1.7.2
udplnErrors 1.3.6.1.2.1.7.3
udpOutDatagrams 1.3.6.1.2.1.7.4