Download Network Resource Scheduling Entity

Transcript
CHAPTER 5. IMPLEMENTATION
5.8.4
42
NRSEProfile class
NRSEProfile class is the BEEP profile implementation for NRSE server. It
handles the establishment and termination of BEEP connections depending
on the configuration from the Config file. After it receives a message from
the client, it attempts to send back to the client a reply of the message
received. Upon receiving a SLA request, it will coordinate with the database
and process the request accordingly. Currently, it processes SLA addition
requests, SLA deletion requests, and query requests. On adding a new SLA
request, the authentication code checking is skipped by using cheat in it. This
is because authentication is implemented but not checked in the application.
5.8.5
TCRouter class
TCRouter class sends TC commands to provide for Qos request. Deactivating Qos request method may be useful in certain circumstances but it is
not implemented yet. There are methods to find the appropriate network
interface used for route to IP, getting the interface name, doing IP lookups
for the appropriate interface, and getting the masked IP address depending
on the length of its prefix.
5.8.6
MyCanvas class and ReservationQuota class
MyCanvas class is useful for a quick glance on all the reservations made and
bandwidth used up as well as available bandwidth. To do this, queries are
made to the database on all the reservations made and plotted on the screen,
updated on every few seconds.
MyCanvas class attempts to read all the Qos reservations from the database
and plot the reservations in terms of bandwidth, with the bandwidth plotted vertically in the y-axis and time plotted horizontally in the x-axis. The
bandwidth is scaled, such that there is always only 10,000Kbps available at
all time, in relatively 10 units.
However MyCanvas class crashes when the start time of a reservation is
too early or the end-time of a reservation is too late. ReservationQuota class
attempts to overcome this effect by scaling the time such that the earliest
start time and the latest end time of all the reservations are taken into account
and scaled accordingly. However, scaling is done in terms of seconds and if
one reservation lasts for a minute, another reservation lasts for a day, and yet
another reservation lasts for many days. This would make the short-lasting
reservation that lasts for a minute looked very insignificant and probably not