[Click] netflow

Eddie Kohler ekohler at gmail.com
Wed Jan 25 17:15:01 EST 2012


Glad you got it working! It would be great if you could post some 
information about these steps somewhere, such as the wiki.

Eddie


On 1/24/12 8:28 AM, Anthony Dempsey wrote:
> Disregard previous I got it working, I hadn't set up a collector element on
> the ns3 node.
>
> On Tue, Jan 24, 2012 at 12:25 PM, Anthony Dempsey<anthonyjdempsey at gmail.com
>> wrote:
>
>> I've done a bit more work on this and realised I hadn't encapsulated the
>> netflow data in any packet type, I've now encapsulated it in UDP/IP
>> headers. So my netflow now looks like:
>>
>> Idle ->  NetflowExport(af0, VERSION 10, INTERVAL 1)
>>      ->  UDPIPEncap($myaddr3, 4739, 172.16.3.2, 4739)
>>      ->  CheckIPHeader2(INTERFACES 172.16.1.2/255.255.255.0
>> 172.16.2.1/255.255.255.0 172.16.3.1/255.255.255.0)
>>      ->  rt;
>>
>> I'm still having problems when I try to send to a node in my simulation.
>> The packets are ok, I've encapsulated them in ethernet headers and dropped
>> them to a pcap file and they look fine and I can use IPEncp(4, ....) giving
>> two IP headers and the simulation wont stop but does give me this warning:
>>
>> expensive Packet::push; have 8 wanted 14
>>
>> but I don't want to have IP in IP. I'm adding some FEC to IPFIX so I need
>> to be able to encode, transfer, and decode the packets before they are
>> passed to NS-3. If I don't use a click config file on node 3 I can get the
>> simulation to complete but I need to access the packets before they are
>> passed to NS-3. I can print the packets before they are passed to [0]output
>> in the click files but the simulation crashes after that.
>>
>> Can anyone help me?
>> Cheers,
>> Anthony
>>
>> On Sat, Jan 21, 2012 at 4:43 PM, Anthony Dempsey<
>> anthonyjdempsey at gmail.com>  wrote:
>>
>>> Can anyone point me to something that will help me set up the netflow
>>> components correctly?
>>> I'm trying to set up a simple simulation using ns3 of 4 nodes. n1 sends
>>> to n2, the router should log details in the IPFIX format and export them
>>> out to n3.
>>>                n3
>>>                 |
>>> n1--------router---------n2
>>>
>>> I have no idea if I'm setting the system up properly and no idea how to
>>> get netflow components to send the information correctly.
>>> I've taken the example ip routing config file in NS3 and modified it to
>>> bring in the third node and I have an AggregateIPFlow component sitting
>>> between the CheckIPHeader2 and the StaticIPLookup componenets
>>>
>>> ch2 :: CheckIPHeader2(...)
>>>   ->  af0::AggregateIPFlows()
>>>   ->  rt :: StaticIPLookup(....)
>>>
>>> For the netflow components I have the following set up
>>>
>>> Idle ->  NetflowExport(af0, VERSION 10, INTERVAL 1)
>>>      ->  NetflowPrint(RECORDS true, VERBOSE true, OUTFILE netflow)
>>>      ->  rt;
>>>
>>> And this produces nothing for me, if I change VERSION to 9 I get some
>>> output in the netflow file but nothing interesting.
>>> Can someone see what I've missed or show me where I can learn more about
>>> how to set up netflow components and have them send packets from the router
>>> to n3 while the simulation runs?
>>>
>>> Cheers,
>>> Anthony
>>>
>>
>>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click


More information about the click mailing list