[Ryu-devel] Capturing openflow's Packt_In as pcap file

2021-04-16 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
Hello every one, I am trying to capture Packet_In as pcap file from ryu.lib import pcaplib def __init__(self, *args, **kwargs): super(SimpleSwitch13, self).__init__(*args, **kwargs) self.pcap_writer = pcaplib.Writer(open('mypcap.pcap', 'wb'))

[Ryu-devel] Assigning two different controller to one switch

2020-08-19 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
Dears all, I would like to connect 2 controllers (C1,C2) to one switch. When a certain match takes part the switch sends to C1, and for different match, the switch sends to another controller.

[Ryu-devel] Is it possible to match metadata field which comes from the host, how?

2020-07-21 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
Dear all, I use ryu controller to install an entry to match the metadata field that comes from the hosts as a part of the packet header, For instance : match = parser.OFPMatch(metadata=(200, 0x)) actions = [] self.add_flow(datapath, 100, match, actions)

[Ryu-devel] Help about customizing or using a match field

2020-07-14 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
Dear All, I am trying to add a new match field or using an existing one which matches a hexadecimal or short mixed text (anything). Any advice or guidance would be appreciated M.Sc Abdullah Soliman ___ Ryu-devel mailing list

[Ryu-devel] Fast sending packet with sequence number to iperf server

2020-06-22 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
Hello all, I know this mailing list it is not about this kind of quastions. but I know some of you have a good skills in scapy. I am using the below code to send number of packets to iperf server, but the procedure takes around 22 seconds becuese of the for loop. How can I send them in 1

[Ryu-devel] Who use the port as out-port

2020-05-26 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
Hello, I am wondering, If there is any way to know the users who have used a specific port as output port during the last period time. any Idea thanks a lot Alshra'a ___ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net

[Ryu-devel] getting Ip address

2020-03-04 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
Hello, I am using the next commend to establish an attack client.cmdPrint('sudo hping3 --flood --rand-source --verbose -p 80 10.0.0.99 &'). but, I cannot get the ip address from the packet_in during the attack. ip = pkt.get_protocol(ipv4.ipv4) if ip: x = ip.src any

[Ryu-devel] getting the network resource information

2020-02-24 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
Hello, I have a fat tree topology with 20 switches, 64 hosts and one host as a server. All hosts send to the server in parallel. I need to measure: delay time loss packet bandwidth consumption Server CPU usage during time Any advice will be appreciated Thanks in Advance Abdullah

[Ryu-devel] Sending Packet-In to different controller

2019-06-13 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
Dear Ryu, I have two controllers: C1 and C2 with a switch. I need C1 instructs the switch to send the Packet-In to C2. Is it possible ? Thanks M.Sc Abdullah Soliman Alshra'a Technische Universität Ilmenau Fakultät für Elektrotechnik und Informationstechnik Fachgebiet Kommunikationsnetze

[Ryu-devel] measuring the server workload

2019-01-08 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
Hello Ryu, In my topology I defined a host as a server info( '\n*** Starting web server ***\n') server = net.get('server') server.cmd('iperf -s -p 80 &') server.cmd('tcpdump tcp port 80 -i server-eth0 -w server.pcap &') My inquiry is how to measure the server workload (Cup ,

[Ryu-devel] VLAN tag doesn't match the instruction sometimes

2018-11-08 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
Hello all, I am using a Fat tree topology with Spanning Tree protocol(STP), and I use a VLAN tag at all switches in order to pass the packet if the packet have a VLAN tag. For example: actions = [parser.OFPActionOutput(4)] match = parser.OFPMatch(vlan_vid =(0x1000,0x1000) )

[Ryu-devel] send() to discarded

2018-06-27 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
Hello all, What are the reasons to see the next lines ? switch features ev version=0x4,msg_type=0x6,msg_len=0x20,xid=0x4109cbb7,OFPSwitchFeatures(auxiliary_id=0,capabilities=79,datapath_id=276,n_buffers=256,n_tables=254) Datapath in process of terminating; send() to ('127.0.0.1', 41540)

[Ryu-devel] changing host Ip and mac addres

2018-06-01 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
Dears, I need to send ping packet with different ip and mac address for the same host repeatedly. I use : ip, mac = generate_mac() H1.setIP(ip) H1.setMAC(mac) Print H1.cmd('ifconfig') I see that host has a new address. But when the controller receive it as packet-In, it shows the original src

[Ryu-devel] Forcing (Packet-In) to send instructions to a specific switch in Reactive mode

2018-05-22 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
Hello all, In my own Ryu application, the Controller doesn't receive any request from the Switches immediately. Actually , I have 2 controllers and 4 switches. Each switch has 2 hosts except switch 4. the switches 1, 2 and 3 connected to Controller 1 and the switch 4 connected to

Re: [Ryu-devel] forcing (Packet-In) to send instructions

2018-05-07 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
" datapath ' Do you know how to work around this ? can I use dpid to get the datapath ? Thanks a lot A.Soliman From: Soliman Awad Alshra´a Abdullah TU Ilmenau [mailto:abdullah.alsh...@tu-ilmenau.de] Sent: Monday, May 7, 2018 1:11 PM To: ryu-devel@lists.sourceforge.net Subject: [Ryu

[Ryu-devel] Forceing (Packet-In) to send instructions to a specific switch

2018-05-01 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
Dears, Can I force (Packet-In) to send instructions to a specific switch without any request from the switches ?. For instance, I intend to create a component which sends a dictionary contains {Source, Destination, In_port, data path_id}. Then I need the controller sends a related instruction

Re: [Ryu-devel] Informing the controller about the first switch Datapath and port number which connected to the host.

2018-03-26 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
following app might be helpful for you. https://github.com/osrg/ryu/blob/master/ryu/topology/switches.py Thanks, Iwase On 2018年03月22日 03:45, Soliman Awad Alshra´a Abdullah TU Ilmenau wrote: > Hello Dears, > > In my topology, I should send packets from the host to a Ryu > controller throu

[Ryu-devel] Informing the controller about the first switch Datapath and port number which connected to the host.

2018-03-21 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
Hello Dears, In my topology, I should send packets from the host to a Ryu controller through many switches. I need to inform the controller about the first switch Datapath and port number which connected to the host. Any idea or advice ? Thanks in advance

[Ryu-devel] Running multiple controllers

2018-03-20 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
Hello all, I am setting up a topology consists of 5 switches and 2 controllers, three switches connect to the first controller and the other connect to the second one. C1C2 /|\ / \ s1-- s2 - s3--s4--s5 c1 = net.addController('c1',

[Ryu-devel] sending packets to a specific controller

2018-03-16 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
Hello, My topology has two controllers(C1, C2), and I need switches in some situations to send packet to C1 only( how !!) Thanks A.Soliman -- Check out the vibrant tech community on one of the world's most engaging

Re: [Ryu-devel] Starting up InBand Ryu controller

2018-02-28 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
t be simple, but I have no idea why I cannot start up the controller well. Thanks in advance. A.Soliman -Original Message- From: Iwase Yusuke [mailto:iwase.yusu...@gmail.com] Sent: Friday, February 23, 2018 2:30 AM To: Soliman Awad Alshra´a Abdullah TU Ilmenau <abdullah.alsh...@tu-ilmenau.d

Re: [Ryu-devel] Starting up InBand Ryu controller

2018-02-22 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
liman, The page you mentioned was written on OCTOBER 5, 2013 and the description might be old (e.g., the default OpenFlow version on Mininet has been changed). Please refer to the Ryu-Book for running "Switching Hub" application. http://osrg.github.io/ryu-book/en/html/switching_hub.html#execu

[Ryu-devel] Starting up InBand Ryu controller

2018-02-21 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
Hello all, I am trying to use In-band controller as described here https://techandtrains.com/2013/10/05/in-band-controller-with-mininet-part-2/ when I open " xterm h1 " and ask controller to start up, nothing happens !! root@mininet-vm:~# cd ryu root@mininet-vm:~/ryu# PYTHONPATH=.

[Ryu-devel] measuring the controller resources usage

2018-01-24 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
Hello all, I am looking for an example where the Ryu controller can measure its CPU or Memory usage and send the result to another component Thanks in advance Abdullah Soliman -- Check out the vibrant tech community on

[Ryu-devel] Byzantine Problem

2018-01-10 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
Dears, I am trying to know how Ryu deal with BFT (Byzantine failure tolerance ) Is there any open source or a good example. I would like to understand the method, So any advice is highly appreciated A.Soliman -- Check

[Ryu-devel] Duplicated packets

2017-12-15 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
Hi all! I want to send the ping packet to the same destination through two ways, how can I delete the duplicated one< in the edge switch > could you give me sample example, please ? (script code) and could you tell me how can I send, for intense, 2000 packet/second. Thanks in advance

[Ryu-devel] Use two port for the same entry in failure situation

2017-11-13 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
Dears, I am working on Fast failure recovery, and I found some people talk about use two port for the same entry in failure situation. Is there any code that help me to make the prime port and backup on in the same entry ?? for example :

[Ryu-devel] dpctl: Error during transaction

2017-08-12 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
Dears, I am writing to ask your help about a small problem in mininet emulator where I am using Ryu Controller So that I guess you can advise me to deal with my problem on this link https://github.com/OpenState-SDN/spider/issues/2 I look forward to hearing you yours faithfully A.Soliman

[Ryu-devel] Flooding instructions

2017-06-01 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
Hello everyone, in my work and Under some conditions, Switch receives a dedicated Packet which lets a switch duplicates the packet: the first one is a flood and the second one is a normal Packet with a special tag that would be directed towards another switch. Does the flooding Packet get out

[Ryu-devel] Broadcast entry inside switches

2017-04-26 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
Hi everyone, I need to insert an entry inside switches tables to do broadcast under a certain condition, and let switches to drop packets, in case it receives a packet previously. could you tell me what is the suitable instructions to do it ? Thanks in advanced

Re: [Ryu-devel] ImportError: cannot import name poll

2017-04-10 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
-- From: Iwase Yusuke [mailto:iwase.yusu...@gmail.com] Sent: Monday, April 10, 2017 3:44 AM To: Soliman Awad Alshra´a Abdullah TU Ilmenau <abdullah.alsh...@tu-ilmenau.de> Cc: ryu-devel@lists.sourceforge.net Subject: Re: [Ryu-devel] ImportError: cannot import name poll Hi, On 2017年04月09日

[Ryu-devel] ImportError: cannot import name poll

2017-04-09 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
Hi everyone, I am trying to launch https://github.com/OpenState-SDN/spider when I try to Launch SPIDER: $ cd ~/spider/src $ sudo ryu-manager SPIDER_ctrl_WEBAPP.py I get Traceback (most recent call last): File "/usr/local/bin/ryu-manager", line 9, in load_entry_point('ryu==3.29',