Packet tagging in Ostinato

119 views
Skip to first unread message

ashok...@gmail.com

unread,
Aug 18, 2016, 1:39:02 AM8/18/16
to ostinato
Hi Experts,

Can you please let me know if Ostinato supports packet tagging? If yes, how?

Thanks in advance,

Warm regards,
Ashok

Srivats P

unread,
Aug 18, 2016, 9:45:12 AM8/18/16
to Ashok Galva, ostinato
What do you mean by packet tagging?

You mean you want generated packets to have vlan tags? If so, just add
the vlan tag when selecting protocols when building a stream.

Srivats
> --
> Get Ostinato News and Updates on Twitter - Follow @ostinato
> (http://twitter.com/ostinato)
> ---
> You received this message because you are subscribed to the Google Groups
> "ostinato" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ostinato+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
http://ostinato.org/
@ostinato

Aaron Pepelis

unread,
Aug 18, 2016, 9:51:32 AM8/18/16
to Srivats P, Ashok Galva, ostinato
here is all I do (removing my packet building code)

        p = stream_id.protocol.add()
        p.protocol_id.id = ost_pb.Protocol.kVlanFieldNumber
        tag = p.Extensions[vlan]
        vlanInfo = 0
        changedVlan = False
        if vlan_id:
            vlanInfo = int(vlan_id)
            changedVlan = True
        if vlan_tci:
            vlanInfo |= int(vlan_tci) << 13
            changedVlan = True
        if changedVlan:
            tag.vlan_tag = vlanInfo

and for vlan stack packets:

        p = stream_id.protocol.add()
        p.protocol_id.id = ost_pb.Protocol.kVlanStackFieldNumber
        stack = p.Extensions[vlanStack]
        index = 0
        while index < vlan_num:
            index += 1
            p.protocol_id.id = ost_pb.Protocol.kVlanStackFieldNumber
            vlanInfo = 0
            changedVlan = False
            if vlan_id[index]:
                vlanInfo = int(vlan_id[index])
                changedVlan = True
            if vlan_tci[index]:
                vlanInfo |= int(vlan_tci[index]) << 13
                changedVlan = True
            if changedVlan:
                p.Extensions[svlan].vlan_tag = vlanInfo

aaron

On Thu, Aug 18, 2016 at 9:45 AM, Srivats P <psta...@gmail.com> wrote:
What do you mean by packet tagging?

You mean you want generated packets to have vlan tags? If so, just add
the vlan tag when selecting protocols when building a stream.

Srivats

On Thu, Aug 18, 2016 at 12:46 AM,  <ashok...@gmail.com> wrote:
> Hi Experts,
>
> Can you please let me know if Ostinato supports packet tagging? If yes, how?
>
> Thanks in advance,
>
> Warm regards,
> Ashok
>
> --
> Get Ostinato News and Updates on Twitter - Follow @ostinato
> (http://twitter.com/ostinato)
> ---
> You received this message because you are subscribed to the Google Groups
> "ostinato" group.
> To unsubscribe from this group and stop receiving emails from it, send an

> For more options, visit https://groups.google.com/d/optout.



--
http://ostinato.org/
@ostinato

--
Get Ostinato News and Updates on Twitter - Follow @ostinato (http://twitter.com/ostinato)
---
You received this message because you are subscribed to the Google Groups "ostinato" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ostinato+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
*******************************************************
// If you are waiting for something, bug me daily
// http://www.returntothepit.com
// http://www.pepelis.com
*******************************************************

Aaron Pepelis

unread,
Aug 18, 2016, 8:26:12 PM8/18/16
to Ashok Galva, ostinato, Srivats P

Are you just doing ipv6 stuff? Are you emulating a protocol? This is on top of the 802.1q protocol? Or are you trying to do packet signature stuff like certain generators do to test qos/policy?
Ostinato doesn't have anything to do something like that which I know of. If you draw a picture or say more of what you want, I might be able to come up with some ideas.
Aaron


On Aug 18, 2016 7:18 PM, <ashok...@gmail.com> wrote:
Thanks Srivats and Aaron. I am actually looking at inserting some information like flow, port, id etc in the packet. Which I will check for at the receiving side for scoreboarding.

Warm regards,
Ashok

> For more options, visit https://groups.google.com/d/optout.



--
http://ostinato.org/
@ostinato

--
Get Ostinato News and Updates on Twitter - Follow @ostinato (http://twitter.com/ostinato)
---
You received this message because you are subscribed to the Google Groups "ostinato" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ostinato+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

ashok...@gmail.com

unread,
Aug 19, 2016, 1:53:18 AM8/19/16
to ostinato, psta...@gmail.com, ashok...@gmail.com, aa...@pepelis.com
Thanks Srivats and Aaron. I am actually looking at inserting some information like flow, port, id etc in the packet. Which I will check for at the receiving side for scoreboarding.

Warm regards,
Ashok

On Thursday, August 18, 2016 at 6:51:32 AM UTC-7, Aaron Pepelis wrote:

> For more options, visit https://groups.google.com/d/optout.



--
http://ostinato.org/
@ostinato

--
Get Ostinato News and Updates on Twitter - Follow @ostinato (http://twitter.com/ostinato)
---
You received this message because you are subscribed to the Google Groups "ostinato" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ostinato+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Srivats P

unread,
Aug 19, 2016, 8:15:26 AM8/19/16
to Ashok Galva, ostinato, Aaron Pepelis
See if the hexdump protocol or the userscript protocol can serve your needs.

Srivats
--
http://ostinato.org/
@ostinato
Reply all
Reply to author
Forward
0 new messages