Hi,

 > I need to apply the per-flow QoS and replace (simple_switch_13.py) with
 > (simple_switch_stp_13.py) because I have loop in my custom topology
 > but I have some error :with qos switch not connection

rest_qos.py suppose to be processed on Flow Table pipeline processing, 
modify simple_switch_stp_13.py to register flow entry into table id:1.

modifications example: add_flow
   mod = parser.OFPFlowMod(datapath=datapath, priority=priority,
                           match=match, instructions=inst, table_id=1)

modifications example: delete_flow
   mod = parser.OFPFlowMod(
       datapath, command=ofproto.OFPFC_DELETE,
       out_port=ofproto.OFPP_ANY, out_group=ofproto.OFPG_ANY,
       priority=1, match=match, table_id=1)


Please refer to the following for QOS.
https://osrg.github.io/ryu-book/en/html/rest_qos.html


Please try to start the ryu-manager with the following command.

ryu-manager ryu.app.rest_qos ./simple_switch_stp_13.py 
ryu.app.rest_conf_switch


The following is the result of running in my environment.

------------------------------------------------------------------------------- 

$ curl -X PUT -d '"tcp:127.0.0.1:6632"' 
http://localhost:8080/v1.0/conf/switches/0000000000000001/ovsdb_addr
$ curl -X PUT -d '"tcp:127.0.0.1:6632"' 
http://localhost:8080/v1.0/conf/switches/0000000000000002/ovsdb_addr
$ curl -X PUT -d '"tcp:127.0.0.1:6632"' 
http://localhost:8080/v1.0/conf/switches/0000000000000003/ovsdb_addr
$ curl -X PUT -d '"tcp:127.0.0.1:6632"' 
http://localhost:8080/v1.0/conf/switches/0000000000000004/ovsdb_addr
$
$ curl -X POST -d '{"port_name": "s1-eth2", "type": "linux-htb", 
"max_rate": "1000000", "queues": [{"max_rate": "500000"}, {"min_rate": 
"800000"}]}' http://localhost:8080/qos/queue/0000000000000001
[{"switch_id": "0000000000000001", "command_result": {"result": 
"success", "details": {"0": {"config": {"max-rate": "500000"}}, "1": 
{"config": {"min-rate": "800000"}}}}}]
$
$curl -X GET http://localhost:8080/qos/queue/0000000000000001
[{"switch_id": "0000000000000001", "command_result": {"result": 
"success", "details": {"0": {"config": {"max-rate": "500000"}}, "1": 
{"config": {"min-rate": "800000"}}}}}]
------------------------------------------------------------------------------- 


------------------------------------------------------------------------------- 

(21522) accepted ('127.0.0.1', 42155)
127.0.0.1 - - [06/Jul/2016 10:51:11] "PUT 
/v1.0/conf/switches/0000000000000001/ovsdb_addr HTTP/1.1" 201 120 0.010232
(21522) accepted ('127.0.0.1', 42157)
127.0.0.1 - - [06/Jul/2016 10:51:11] "PUT 
/v1.0/conf/switches/0000000000000002/ovsdb_addr HTTP/1.1" 201 120 0.000393
unchanged
(21522) accepted ('127.0.0.1', 42160)
127.0.0.1 - - [06/Jul/2016 10:51:11] "PUT 
/v1.0/conf/switches/0000000000000003/ovsdb_addr HTTP/1.1" 201 120 0.000353
unchanged
(21522) accepted ('127.0.0.1', 42163)
127.0.0.1 - - [06/Jul/2016 10:51:11] "PUT 
/v1.0/conf/switches/0000000000000004/ovsdb_addr HTTP/1.1" 201 120 0.000373

(21522) accepted ('127.0.0.1', 42168)
unchanged
success
127.0.0.1 - - [06/Jul/2016 10:51:44] "POST /qos/queue/0000000000000001 
HTTP/1.1" 200 295 0.183414

(26230) accepted ('127.0.0.1', 46929)
127.0.0.1 - - [06/Jul/2016 10:52:56] "GET /qos/queue/0000000000000001 
HTTP/1.1" 200 295 0.000593
--------------------------------------------------

Thanks,


On 2016年07月05日 19:11, wesam kh wrote:
> thank you for response
> I need to apply the per-flow QoS and replace (simple_switch_13.py) with
> (simple_switch_stp_13.py) because I have loop in my custom topology
> but I have some error :with qos switch not connection
> you can see the attachment
> thank in advance
>
>
>
>
>
>
> *Wisam Maala*
>
>
>
> On Tuesday, July 5, 2016 10:51 AM, Shinpei Muraoka
> <[email protected]> wrote:
>
>
> Hi,
>
>  > But I have same problem !!!!
>  > you can see the error in attachments
>
> simple_switch_13.py can not suppresses occurrence of broadcast streams
> in a network having a loop structure.
> How about using simple_switch_stp_13.py?
>
> Please refer to the following for broadcast streams.
>
> https://osrg.github.io/ryu-book/en/html/spanning_tree.html
>
>
> Thanks,
>
> On 2016年07月04日 17:23, wesam kh wrote:
>  > Shinpei Muraoka thank you for response
>  > and I making same what you say me in terminal
>  >
>  > $ sudo mn --custom ~/mininet/custom/4sw-4host.py --topo mytopo
>  > --controller=remote -x
>  > and set 1.3 for the OpenFlow version for all switch and run the
>  > simple_switch_13 in ryu controller
>  > But I have same problem !!!!
>  > you can see the error in attachments
>  >
>  >
>  >
>  >
>  >
>  > *Wisam Maala*
>  >
>  >
>  >
>  > On Monday, July 4, 2016 9:48 AM, Shinpei Muraoka
>  > <[email protected] <mailto:[email protected]>> wrote:
>  >
>  >
>  > Hi,
>  >
>  >  > can any one know how to solve this?
>  >  > and I using the command to execute the topology with remote
> controller :
>  >  > sudo mn --custom ~/mininet/custom/4sw-4host.py --controller=remote -x
>  >
>  > I think error cause is that you do not specify the 'mytopo' for command
>  > of mininet.
>  > Please try to start the mininet with the following command.
>  >
>  > sudo mn --custom ~/mininet/custom/4sw-4host.py --topo mytopo
>  > --controller=remote -x
>  >
>  >
>  > The following is the result of running in my environment.
>  >
>  >
> -------------------------------------------------------------------------------
>  > $ sudo mn --custom ~/mininet/custom/4sw-4host.py --topo mytopo
>  > --controller=remote -x
>  > [sudo] password:
>  > *** Creating network
>  > *** Adding controller
>  > *** Adding hosts:
>  > h1 h2 h3 h4
>  > *** Adding switches:
>  > s1 s2 s3 s4
>  > *** Adding links:
>  > (h1, s1) (h2, s2) (h3, s3) (h4, s4) (s1, s2) (s1, s3) (s2, s3) (s2, s4)
>  > (s3, s4)
>  > *** Configuring hosts
>  > h1 h2 h3 h4
>  > *** Running terms on :0
>  > *** Starting controller
>  > *** Starting 4 switches
>  > s1 s2 s3 s4
>  > *** Starting CLI:
>  > mininet> h1 ping h4
>  > PING 10.0.0.4 (10.0.0.4) 56(84) bytes of data.
>  > 64 bytes from 10.0.0.4: icmp_seq=1 ttl=64 time=17.9 ms
>  >
> ------------------------------------------------------------------------------
>  >
>  > Thanks,
>  >
>  >
>  > On 2016年07月01日 20:26, wesam kh wrote:
>  >  > hi
>  >  > I need to apply to apply the simple_switch_13.py but I need to use the
>  >  > custom topology like in picture but I have some error when I need to
>  >  > ping from H1 to H4 the controller (ryu) isn't stopping !
>  >  > can any one know how to solve this?
>  >  > and I using the command to execute the topology with remote
> controller :
>  >  > sudo mn --custom ~/mininet/custom/4sw-4host.py --controller=remote -x
>  >  > in the attachment the custom topology and error
>  >  >
>  >  > Inline image
>  >
>  >  >
>  >  >
>  >  >
>  >  >
>  >  >
>  >  > *Wisam Maala*
>  >
>  >  >
>  >  >
>  >  >
>  >  >
>  >
> ------------------------------------------------------------------------------
>  >  > Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park
> in San
>  >  > Francisco, CA to explore cutting-edge tech and listen to tech
> luminaries
>  >  > present their vision of the future. This family event has
> something for
>  >  > everyone, including kids. Get more information and register today.
>  >  > http://sdm.link/attshape
>  >  >
>  >  >
>  >  >
>  >  > _______________________________________________
>  >  > Ryu-devel mailing list
>  >  > [email protected]
> <mailto:[email protected]>
> <mailto:[email protected]
> <mailto:[email protected]>>
>  >  > https://lists.sourceforge.net/lists/listinfo/ryu-devel
>  >  >
>  >
>  >
> ------------------------------------------------------------------------------
>  > Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
>  > Francisco, CA to explore cutting-edge tech and listen to tech luminaries
>  > present their vision of the future. This family event has something for
>  > everyone, including kids. Get more information and register today.
>  > http://sdm.link/attshape
>  > _______________________________________________
>  > Ryu-devel mailing list
>  > [email protected]
> <mailto:[email protected]>
> <mailto:[email protected]
> <mailto:[email protected]>>
>
>  > https://lists.sourceforge.net/lists/listinfo/ryu-devel
>  >
>  >
>  >
>
> ------------------------------------------------------------------------------
> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
> _______________________________________________
> Ryu-devel mailing list
> [email protected] <mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
>

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to