public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] batman adv unicast fragmentation (version 4)
@ 2010-07-06 15:58 Andreas Langer
  2010-07-06 15:59 ` [B.A.T.M.A.N.] [PATCH 1/2] batctl: layer2 unicast packet fragmentation Andreas Langer
  2010-07-06 15:59 ` [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: " Andreas Langer
  0 siblings, 2 replies; 17+ messages in thread
From: Andreas Langer @ 2010-07-06 15:58 UTC (permalink / raw)
  To: b.a.t.m.a.n

Hi,
i changed the packet type to the old order and add fragmented at the end. So that other programs not need to be adjusted.

regards,
andreas

^ permalink raw reply	[flat|nested] 17+ messages in thread
* [B.A.T.M.A.N.] batman adv unicast fragmentation (version 5)
@ 2010-07-07 17:30 Andreas Langer
  2010-07-07 17:32 ` [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: layer2 unicast packet fragmentation Andreas Langer
  0 siblings, 1 reply; 17+ messages in thread
From: Andreas Langer @ 2010-07-07 17:30 UTC (permalink / raw)
  To: b.a.t.m.a.n

Hi,
i changed a few things as noted. In fragmentation.c search_frag_packet, i reduced the goto labels to one and a packet with the same seqno will continue to be replaced. The rest was implemented as indicated.

regards,
Andreas

^ permalink raw reply	[flat|nested] 17+ messages in thread
* [B.A.T.M.A.N.] batman adv unicast fragmentation (version 3)
@ 2010-07-05 21:42 Andreas Langer
  2010-07-05 21:44 ` [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: layer2 unicast packet fragmentation Andreas Langer
  0 siblings, 1 reply; 17+ messages in thread
From: Andreas Langer @ 2010-07-05 21:42 UTC (permalink / raw)
  To: b.a.t.m.a.n

Hi,
thanks for the reply of the patch and all the hints. I changed some parts as you suggested and here some notes to your questions.

>> +			if (!(my_skb_push(frag_skb, hdr_len) >= 0 &&
>> +				my_skb_push(skb, hdr_len) >= 0)) {  

>Didn't you wanted to check if one of the my_skb_push failed and not if both
>failed?

This part check if one failed, but you are right if you think that it looks too complicated. I changed it because it is easy to misunderstand this expression.


>Can you please explain why the copyright already starts in 2007?
Copy and paste failure, changed it to 2010.

>> +			if (atomic_read(&batman_if->frag_seqno) == FRAG_MAX_SEQ)
>> +				atomic_set(&batman_if->frag_seqno, 0);  

>It is not a good idea to split two atomic_ operations which depends on each other.

I removed that part completely, because there is a simplier way.


And now some words to the implementation. This version of fragmentation handles only packets over a batX interface. My test setup follows:

laptop tap0 --> br0 (bat0/eth0) host1 eth1 ------> eth0 host2 -----> eth0 host3

ping -s 1472 -M do xxx

1472 bytes - data
28   bytes - icmp / ip
14   bytes - eth

Bat0 receives 1514 bytes (interface_tx, data_len), if data_len + unicast_packet is larger than the mtu of the sending interface, this packet will be fragmented.

In fragmentation 2.0 i would like to implement a solution for the problem described by simon ( i hope i understood him correctly). A node has two batman interfaces and the mtu of interface2 is smaller then interface1. In case a packet from iface1 (with the size of this mtu) travels to iface2, we currently have a problem. Version 2.0 will fix this.

regards,
andreas


^ permalink raw reply	[flat|nested] 17+ messages in thread
* [B.A.T.M.A.N.] batman adv unicast fragmentation
@ 2010-06-30 18:58 Andreas Langer
  2010-06-30 19:00 ` [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: layer2 unicast packet fragmentation Andreas Langer
  0 siblings, 1 reply; 17+ messages in thread
From: Andreas Langer @ 2010-06-30 18:58 UTC (permalink / raw)
  To: b.a.t.m.a.n

Hi,

things that changed since the last patch:
- with fragmentation enabled the mtu of batX is always ETH_DATA_LEN
- fragment if mtu of the outgoing interface is smaller the needed size
- add a new packet type for fragmentation
- new recv function for fragmented packets
- new route unicast packet function to share routing code
- increase compat number to 12


regards,
andreas

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2010-07-09 14:51 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-06 15:58 [B.A.T.M.A.N.] batman adv unicast fragmentation (version 4) Andreas Langer
2010-07-06 15:59 ` [B.A.T.M.A.N.] [PATCH 1/2] batctl: layer2 unicast packet fragmentation Andreas Langer
2010-07-06 15:59 ` [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: " Andreas Langer
2010-07-06 17:07   ` Andrew Lunn
2010-07-06 18:06     ` Andreas Langer
2010-07-06 17:39   ` Antonio Quartulli
2010-07-06 18:17     ` Andreas Langer
2010-07-06 18:57     ` Andrew Lunn
2010-07-06 19:13       ` Sven Eckelmann
2010-07-06 19:50         ` Marek Lindner
2010-07-07 10:40   ` Marek Lindner
  -- strict thread matches above, loose matches on Subject: below --
2010-07-07 17:30 [B.A.T.M.A.N.] batman adv unicast fragmentation (version 5) Andreas Langer
2010-07-07 17:32 ` [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: layer2 unicast packet fragmentation Andreas Langer
2010-07-09 14:51   ` Sven Eckelmann
2010-07-05 21:42 [B.A.T.M.A.N.] batman adv unicast fragmentation (version 3) Andreas Langer
2010-07-05 21:44 ` [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: layer2 unicast packet fragmentation Andreas Langer
2010-06-30 18:58 [B.A.T.M.A.N.] batman adv unicast fragmentation Andreas Langer
2010-06-30 19:00 ` [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: layer2 unicast packet fragmentation Andreas Langer
2010-07-05  0:37   ` Sven Eckelmann
2010-07-05 12:53   ` Sven Eckelmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox