Hello Satoshi,
Here is a brief breakdown of what I am trying to do. My focus is on message
distribution in internal BGP (iBGP) so I want to
1)Create bgp peers
2)Establish bgp sessions between these peers
3)Send bgp packets through the network of bgp peers
4)My main objective is to manipulate how the bgp messages are
distributed and filtered in the simulated network
Since my experiment is more on the message distribution than network changes, I
think I can create a particular network with same bgp peers while changing only
the message dissemination rules.
At the end I would like to capture the number of messages per protocol and the
memory consumption in each of the peers.
My questions are:
1)Could this be accomplished using only ryu and mininet?
2)Do I need to integrate quagga or bird into this ryu application?
3)If (question 1) is the right way to go then which of the ryu
application files do I need to change and run.
4)Do I need a config file for each peer?
5)Does BGP-4 in ryu support multicast bgp packet message dissemination,
if yes how can I accomplish this?
I tried running the sample conf file with:
ryu-manager ryu/services/protocols/bgp/application.py --bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py
but I got this error error
>>ryu-manager: error: unrecognized arguments: —bgp-app-config-file
>>ryu/services/protocols/bgp/bgp_sample_conf.py
When I remove the —bgp-app
ryu-manager ryu/services/protocols/bgp/application.py --config-file
ryu/services/protocols/bgp/bgp_sample_conf.py
I get:
>>raise ConfigFileParseError(pe.filename, str(pe))
oslo_config.cfg.ConfigFileParseError: Failed to parse
/home/ubuntu/ryu/ryu/services/protocols/bgp/bgp_sample_conf.py: at
/home/ubuntu/ryu/ryu/services/protocols/bgp/bgp_sample_conf.py:1, No ':' or '='
found in assignment: 'import os'
However when I replace bgp_sample_conf.py with ryu.conf :
cd /home/ubuntu/ryu && ./bin/ryu-manager --verbose --config-file
~/ryu/etc/ryu/ryu.conf ~/ryu/ryu/services/protocols/bgp/application.py
I get:
>>loading app /home/ubuntu/ryu/ryu/services/protocols/bgp/application.py
Create CustomEvent called
instantiating app /home/ubuntu/ryu/ryu/services/protocols/bgp/application.py of
RyuBGPSpeaker
BRICK RyuBGPSpeaker
Started Network Controller
NetworkController started listening for connections...
I am using the sdn hub vm ubuntu 64 from
http://sdnhub.org/tutorials/sdn-tutorial-vm/
<http://sdnhub.org/tutorials/sdn-tutorial-vm/> on virtualbox.
Thanks.
> On Jun 11, 2017, at 8:56 PM, Fujimoto Satoshi <[email protected]>
> wrote:
>
> Hi, Ukeme
>
> Sorry, please let me make your problem more clear.
>
> I understood as you want to implement a BGP app collaborating with your
> OpenFlow app.
> So, how will you make collaborating them?
> For example, do you want to capture BGP packets and add neighbor dynamically?
> Please tell me in detail what do you want.
>
> FYI, if you want a pure BGP application, the following code will be good.
> https://github.com/osrg/ryu/blob/master/ryu/services/protocols/bgp/application.py
> It works with its configuration file (the sample is
> /ryu/services/protocols/bgp/bgp_sample_conf.py).
> You can run it by this command:
> ryu-manager ryu/services/protocols/bgp/application.py
> --bgp-app-config-file ryu/services/protocols/bgp/bgp_sample_conf.py
>
> Thanks,
> Fujimoto
>
> On 2017年06月11日 03:17, Ukeme Bassey wrote:
>> Hi.
>>
>> I am new to using ryu and I am to implement bgp in ryu for my project. I saw
>> the sample bgpspeaker code on the Ryu doc site but I don’t know how to go
>> about implementing and running the application. I need help with how to
>> implement full mesh bgp using the ryu bgpspeaker library and how to
>> integrate it with my ryu application.
>>
>> Thanks.
>> ------------------------------------------------------------------------------
>> 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
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel