Re: [vpp-dev] Regarding IP Fragmentation

2018-11-14 Thread Xuekun
shant Upadhyaya Cc: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] Regarding IP Fragmentation Prashant, > Imagine a usecase where I am getting IP packets on my graph node. > I encapsulate them into an outer IP and send them out. > So let's say in my example, I get IP1 and IP2. IP1 is max

Re: [vpp-dev] Regarding IP Fragmentation

2018-11-14 Thread Ole Troan
Prashant, > Imagine a usecase where I am getting IP packets on my graph node. > I encapsulate them into an outer IP and send them out. > So let's say in my example, I get IP1 and IP2. IP1 is max mtu size and > IP2 is a shorter one. Perhaps they themselves are part of a fragmented > flow. > I now e

Re: [vpp-dev] Regarding IP Fragmentation

2018-11-14 Thread Prashant Upadhyaya
Thanks Ole. Imagine a usecase where I am getting IP packets on my graph node. I encapsulate them into an outer IP and send them out. So let's say in my example, I get IP1 and IP2. IP1 is max mtu size and IP2 is a shorter one. Perhaps they themselves are part of a fragmented flow. I now encapsulate

Re: [vpp-dev] Regarding IP Fragmentation

2018-11-14 Thread Ole Troan
Prashant, > I have a usecase where I have two IP Datagrams, let's call them IP1, > IP2. Each contains UDP Payload. > IP1 size is bigger than mtu. > IP2 size is lesser than mtu. > > I ship these both one after the other in that order to ip4-lookup. > > IP1 gets fragmented, as expected, to IP1.1 a

[vpp-dev] Regarding IP Fragmentation

2018-11-14 Thread Prashant Upadhyaya
Hi, I have a usecase where I have two IP Datagrams, let's call them IP1, IP2. Each contains UDP Payload. IP1 size is bigger than mtu. IP2 size is lesser than mtu. I ship these both one after the other in that order to ip4-lookup. IP1 gets fragmented, as expected, to IP1.1 and IP1.2 and the fragm

Re: [vpp-dev] Regarding IP Fragmentation

2018-11-08 Thread Ole Troan
Prashant, > On 9 Nov 2018, at 01:39, Prashant Upadhyaya wrote: > > Hi Ole, > > Thanks for the information. > > Suppose my IP datagram gets fragmented into fragments F.1 and F.2, do > these again get submitted to ip4-input ? > I am trying to figure out the path in the graph from the time I subm

Re: [vpp-dev] Regarding IP Fragmentation

2018-11-08 Thread Prashant Upadhyaya
Hi Ole, Thanks for the information. Suppose my IP datagram gets fragmented into fragments F.1 and F.2, do these again get submitted to ip4-input ? I am trying to figure out the path in the graph from the time I submit my v4 IP datagram to ip4-lookup. What is crucial for me to know is if the fragm

Re: [vpp-dev] Regarding IP Fragmentation

2018-11-08 Thread Ole Troan
> On 8 Nov 2018, at 23:26, Prashant Upadhyaya wrote: > > Hi, > > If I hand-construct an IP datagram (bigger than mtu) using chained > vlib buffers and send this chain to ip4-lookup, would that be > fragmented and sent out as per the mtu requirements of the interface > from which the packet is

[vpp-dev] Regarding IP Fragmentation

2018-11-08 Thread Prashant Upadhyaya
Hi, If I hand-construct an IP datagram (bigger than mtu) using chained vlib buffers and send this chain to ip4-lookup, would that be fragmented and sent out as per the mtu requirements of the interface from which the packet is determined to be sent out ? (assume that the rx and tx sw_if_index is p