Sunteți pe pagina 1din 18

CASE STUDY :

HP-IMC VAN SDN MANAGER

PROVISIONING, NETWORK
MANAGEMENT & PERFORMANCE
MONITORING IN SDN

HPS IMC VAN SDN


MANAGER
HPs VAN (Virtual Application Networking) SDN Manager :
location of the switches- both physically and logicallyrelative to the control point of the network
The traffic flow across the SDN domain is monitored and
represented visually in VAN SDN Manager enabling fast
troubleshooting
HPs IMC provides lifecycle management and monitoring of
the HP VAN SDN Controller as well as details of network
service status and OpenFlow monitoring

HP SDN CLIENT & REST API INTERACTIVITY

HP Network Services REST API


class hpsdnclient.net.NetMixin(controller, auth)
Network Service REST API Methods This class contains
Methods that call the NetworkServicesRESTAPI functions in the
HPVANSDNController
1. TopologyService
2. NodeService
3. LinkService
4. PathPlanner
5. PathDiagnosticsService

HP SDN CLIENT & REST API INTERACTIVITY

HP SDN Client is an Apache2 Licensed Python library, designed


to make interacting with the HP VAN SDN Controllers REST API
easy.
The HP SDN Client provides the following features:
Authentication
Error Handling
Serializing Python Objects to JSON and back again
This makes interacting with the HP VAN SDN Contoller REST API
a simple method call

HP SDN CLIENT & REST API INTERACTIVITY


https://<192.168.56.7:8443/sdn/ui/

First we import the HP SDN Client module using the short


name hp
import hpsdnclient as hp

Then, we create an XAuthToken authenticator


controller = '192.168.56.7' auth = hp.XAuthToken(user='sdn',
password='skyline', server=controller)
This creates a XAuthToken authenticator called auth which is
required to instantiate the Api object:
api = hp.Api(controller=controller, auth=auth)
Now, we have a Api object called api. This object allows us to
access the HP VAN SDN Controller API using simple method
calls. For example:
datapaths = api.get_datapaths()
links = api.get_links()

MININET NETWORK
EMULATOR
Mininet is a network emulation
platform that is very useful to test SDN
applications that you build. It can
support different types of topologies.
The mn utility creates Mininet network
from the command line. It can create
parametrized topologies, invoke the
Mininet CLI, and run tests.

TOPOLOGY DISCOVERY THRU HP IMC VAN SDN


CONTROLLER
Mininet creates a basic topology with a single switch and two
hosts

h1 is connected to the switch on port 1 and h2 is


connected to the switch on port 2. That can be seen
easily within the HP SDN Controller.

TOPOLOGY DISCOVERY THRU HP IMC


VAN SDN CONTROLLER
Basic Ping command the first
0 & M Step issued pingall for all hosts
through Mininet

Basic Ping illuminates the hosts


configured Visually this is displayed in this
way in HP IMC VAN SDN Manager

TOPOLOGY DISCOVERY THRU HP IMC VAN


SDN CONTROLLER
Net command & ifconfig commands
of Mininet basically show the network
with all hosts & switches with Net
command ,
Ifconfig command stands for Interface
Config for host showing MAC &
IP address
h1 is connected to the switch on
port 1 and h2 is connected to the
switch on port 2. That can be seen
easily within the HP SDN
Controller

CONFIGURATION & TOPOLOGY DISCOVERY THRU HP


IMC VAN SDN CONTROLLER
Configurating a Complicated network
with hosts & switches

output on the HP SDN VAN Controller

CONFIGURATION & TOPOLOGY DISCOVERY THRU HP


IMC VAN SDN CONTROLLER

drop the link between switch5 and switch7

controller = '192.168.56.7' auth =


hp.XAuthToken(user='sdn',
password='skyline', server=controller)
api = hp.Api(controller=controller,
auth=auth)
datapaths = api.get_datapaths()
links = api.get_links()

CONFIGURATION & TOPOLOGY DISCOVERY THRU HP


IMC VAN SDN CONTROLLER

controller = '192.168.56.7' auth =


hp.XAuthToken(user='sdn', password='skyline',
server=controller)
api = hp.Api(controller=controller, auth=auth)
links = api.get_links()
class hpsdnclient.datatypes.NodeLink(**kwargs)
NodeLink() A Pyhton representation of the NodeLink
object

CONFIGURATION & TOPOLOGY DISCOVERY THRU HP IMC VAN SDN


CONTROLLER

create a single core switch and three leaf switches. Each leaf switch has thee hosts class
hpsdnclient.datatypes.Node(**kwargs) Node (JsonObject) A python representation of the Node
object

PATH SELECTION THRU HP IMC VAN SDN


CONTROLLER

Display of Interfaces & Port Information for a Datapath


ID

get_forward_path(src_dpid, dst_dpid)
Gets the shortest computed path between src_dpid and
dst_dpid Parameters src_dpid(str) The source DPID
dst_dpid(str) THe destination DPID Returns The shortest path
between the two DPIDs Returntype hpsdnclient.datatypes.Path
class hpsdnclient.datatypes.Path(**kwargs) Path (JsonObject) A
python representation of the Path object class
hpsdnclient.datatypes.Port(**kwargs) Port (JsonObject) A
python representation of the Port object

PATH SELECTION THRU HP IMC VAN SDN


CONTROLLER
The traffic is using the SPF algorithm and is going via port 5

PATH SELECTION THRU HP IMC VAN SDN


CONTROLLER

The below function enables the determination of SPF


get_forward_path(src_dpid, dst_dpid) Gets the shortest computed
path between src_dpid and dst_dpid Parameters src_dpid(str) The
source DPID dst_dpid(str) THe destination DPID Returns The
shortest path between the two DPIDs Returntype
hpsdnclient.datatypes.Path

HP-IMC VAN SDN MANAGER

HP-IMC VAN SDN


MANAGER
1. TopologyService
2. NodeService
3. LinkService
4. PathPlanner
5. PathDiagnosticsService

S-ar putea să vă placă și