Dear All,

I am running apache2 server in one of the mininet host (ip:10.0.0.1) and trying to streaming the video in the other two other hosts (ip: 10.0.0.3 and 10.0.0.4). All the hosts are connected with a single switch. I want to have a queue for tcp flows going to 10.0.0.3. The rest I followed the 1st example of QoS chapter of Ryu book. I am using this python code right now (written by myself) to set the queues however, though the controller say queue is successful, when I stream the video it doesn't work. The python file is attached. Thanks for the help.




--
Arslan Ahmad
PhD Student
Department of Electrical and Electronics Engineering
University of Cagliari, Italy
#! /usr/bin/python
import os
import sys
import subprocess
from time import sleep

#s1
subprocess.call('curl -X PUT -d \'\"tcp:127.0.0.1:6632\"\' http://localhost:8080/v1.0/conf/switches/0000000000000001/ovsdb_addr',shell=True)
sleep(5)
# subprocess.call('curl -X PUT -d \'\"tcp:127.0.0.1:6632\"\' http://localhost:8080/v1.0/conf/switches/0000000000000002/ovsdb_addr',shell=True)
# sleep(2)
   #execute setting of Queue
subprocess.call('curl -X POST -d \'{\"port_name\": \"s1-eth1\", \"type\": \"linux-htb\", \"max_rate\": \"2800000\", \"queues\": [{\"max_rate\": \"2800000\"}, {\"min_rate\": \"2500000\"}]}\' http://localhost:8080/qos/queue/0000000000000001',shell=True)
  #3 QoS Setting to install flow entry
subprocess.call('curl -X POST -d \'{\"match\": {\"nw_dst\": \"10.0.0.3\", \"nw_proto\": \"TCP\", \"tp_dst\": \"80\"}, \"actions\":{\"queue\": \"1\"}}\' http://localhost:8080/qos/rules/0000000000000001',shell=True)
  #4 Verify the settings
subprocess.call('curl -X GET http://localhost:8080/qos/rules/0000000000000001',shell=True)
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to