Professional Documents
Culture Documents
From this we analyzed the issues in those papers above mentioned. We provided
some solutions to overcome those issues in our proposed system.
Chapter-III
Problem Definition
Existing System
The existing routing protocols that perform global rerouting need to trade
off between forwarding continuity and routing stability. This method is not
suppressing the failure notification.
The major drawbacks of the existing system are as follows
• Time consumption
• Low reliability
• Error prone
• Low speed communication
Proposed System
We propose a swarm array computing approach that addresses this issue by
employing interface-specific forwarding, and by performing local rerouting using
a back warding table upon a failure while suppressing the failure notification.
Java is an object-orientated language, and may not be suitable for first time
programmers. Learning a new language takes some time, but learning your first
object-orientated language can be exceedingly difficult. Nonetheless, if you've
done some C programming before, the shift into Java shouldn't be unreachable,
providing you obtain a good reference book. There are also those that believe
programmers should start with an object-orientated language first, and many
universities have adopted this practice. Still, you've been fairly warned.
This tutorial will presume that you have some basic programming
knowledge, particularly in C, as it will not be covering such principles as
sequence, selection and repetition. If you are unsure on ' for ' loops, or complex ' if
' statements, I'd suggest coming back here at a later point.
Application or Applet?
Java software comes in several flavors - the most common being the stand-
alone application, and the applet. Web developers may have come across the term
applet before, and perhaps even used one. An applet is an piece of software code
that runs under the control of a web browser, as distinct from the application
which requires an interpreter.
Applets are commonly used to enhance the interactivity of a web page, and
deliver client-side content. Applets run in their own frame, and can display
graphics, accept input from GUI components, and even open network connections.
Due the potential security risks associated with running applets from external and
potentially malicious sources, most web browsers limit file access, and impose
additional restrictions on applets (such as only being able to connect to the
hostname from which the applet was downloaded).Fortunately, stand-alone
applications have no such restrictions, and a full range of functionality is provided
for in the way of pre-written Java classes.
The first thing required for writing stand-alone Java applications is a java
compiler/interpreter. While there are commercial offerings available, such as
Visual J++ and Borland JBuilder, a freely available SDK is available from Sun,
the original creators of the Java language. It contains a compiler, interpreter,
debugger, and more.
To output text from the program, we execute the ' println ' method of
System. Out, this is Java’s output stream. UNIX users will appreciate the theory
behind such a stream, as it is actually standard output. For those who are instead
used to the Wintel platform, it will write the string passed to it to the user's screen.
That wraps it up for this first part of the introduction to Java tutorial series.
In the next tutorial, we'll cover some more object-orientated principles, and extend
your knowledge of the Java language and syntax.
Java is of two things
Java is also unusual in that each Java program is both compiled and
interpreted. With a compiler, you translate a Java program into an intermediate
language called Java byte codes--the platform-independent codes interpreted by
the Java interpreter. With an interpreter, each Java byte code instruction is parsed
and run on the computer. Compilation happens just once; interpretation occurs
each time the program is executed. This figure illustrates how this works.
Fig .b
Java Bytecode
The Java Platform
A platform is the hardware or software environment in which a program
runs. The Java platform differs from most other platforms in that it's a software-
only platform that runs on top of other, hardware-based platforms. Most other
platforms are described as a combination of hardware and operating system.
The Java platform has two components:
• The Java Virtual Machine (Java VM)
• The Java Application Programming Interface (Java API)
You've already been introduced to the Java VM. It's the base for the Java
platform and is ported onto various hardware-based platforms.
The Java API is a large collection of ready-made software components that
provide many useful capabilities, such as graphical user interface (GUI) widgets.
The Java API is grouped into libraries (packages) of related components. The next
section, What Can Java Do? Highlights each area of functionality provided by the
packages in the Java API.
The following figure depicts a Java program, such as an application or
applet, that's running on the Java platform. As the figure shows, the Java API and
Virtual Machine insulates the Java program from hardware dependencies.
Java Platform
The Java platform has a garbage collector that periodically frees the
memory used by objects that are no longer needed. The Java garbage collector is a
mark-sweep garbage collector. A mark-sweep garbage collector scans dynamic
memory areas for objects and marks those that are referenced.
Requirement Analysis
Functional Requirements
A functional requirement defines a function of a software system or its
component. A function is described as a set of inputs, the behavior, and outputs.
Modules:
Module Description:
• Packet Flowing
• Path Detection
• Detecting link Failure Nodes
• Rerouting Data
Packet Flowing:
This Module used to create the links for packets flowing. This module
execute in source node. We define network availability as the fraction of time the
network is able to forward packets between all source-destination pairs. Since a
forwarding loop is possible during the network transient period, we consider all
the network transient periods as unavailable time for both OSPF. Besides, under
OSPF, when a router suppresses a failed link, forwarding between some source-
destination pairs could be disrupted. We, therefore, count suppression periods too
as unavailable time under OSPF. On the other hand, to guarantees forwarding
correctness when at most one link failure is suppressed.
Path Detection:
Under FIR, only the node adjacent to a failed link is aware of the failure
and all other nodes are not. So, a packet takes the usual shortest path till the point
of failure and then gets rerouted along the alternate path. Consequently, in the
presence of link failures, FIR may forward packets along longer paths compared to
the globally recomputed optimal paths based on the link state updates. For
example in the topology when the link2–5 is down, packets from 1 to 6 are
forwarded along the path. Had node 1 been made aware of the link failure, packets
would be forwarded along the shorter path. However, we show that the extent of
this elongation is not significant. Let stretch of a path between a pair of nodes be
the ratio of the lengths of the path under FIR and the optimal shortest path.
Software Requirements:
Front End : JDK 1.5 and Above
Operating System : Windows XP
Documentation : Ms-Office 2007
Hardware Requirements:
Processor : Intel Pentium 4
RAM : 1 GB
Hard Disk : 30 GB
Non Functional Requirements
Adjacent Node
(If link fail
execute rerouting)
UML Diagram
Use case Diagram
Root request
send
Re-
Path route
received
Source
Data send
Request
received
Inter
Reply
Received
data
Destination
Sequence Diagram
Source Router Path Received Destination
Root Request
Path Received
Data Send
Received Data