|
|
Created:
4 years, 4 months ago by Taylor Brandstetter Modified:
4 years, 3 months ago CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, the sun Base URL:
https://chromium.googlesource.com/external/webrtc.git@master Target Ref:
refs/pending/heads/master Project:
webrtc Visibility:
Public. |
DescriptionFix setting the MTU for SCTP.
It was being set at the wrong point in time and with the address
parameter missing, so it wasn't having any effect.
Committed: https://crrev.com/fe8f48962aacab4a8437c9d98dfcda225329c68e
Cr-Commit-Position: refs/heads/master@{#13909}
Patch Set 1 #Patch Set 2 : Clarifying a comment. #Messages
Total messages: 13 (4 generated)
deadbeef@webrtc.org changed reviewers: + honghaiz@webrtc.org, pthatcher@webrtc.org
Here are the MTU changes split from the other CL. Again, I don't know if this is something we should be doing in the first place. The data channel spec says MTU discovery *should* be enabled. The only restriction it places on the MTU is that it MUST start at 1200 for IPv4 and 1280 for IPv6, and discovery SHOULD restart when the route changes (which we don't support). So maybe for now we should leave MTU discovery enabled, set the initial MTU to 1200, and leave a TODO to hook up information about the route.
On 2016/08/11 17:15:44, Taylor Brandstetter wrote: > Here are the MTU changes split from the other CL. > > Again, I don't know if this is something we should be doing in the first place. > The data channel spec says MTU discovery *should* be enabled. The only > restriction it places on the MTU is that it MUST start at 1200 for IPv4 and 1280 > for IPv6, and discovery SHOULD restart when the route changes (which we don't > support). > > So maybe for now we should leave MTU discovery enabled, set the initial MTU to > 1200, and leave a TODO to hook up information about the route. Actually it looks like MTU discovery in usrsctp isn't even implemented for userspace mode. Nowhere does it send probing padding packets as described in https://tools.ietf.org/html/rfc4820. In fact, if it's left disabled, then after 10 minutes you end up with an MTU of about 1500 due to a hardcoded default value: https://cs.chromium.org/chromium/src/third_party/usrsctp/usrsctplib/usrsctpli... So maybe that's why we were trying to explicitly disable it.
On 2016/08/11 18:55:01, Taylor Brandstetter wrote: > On 2016/08/11 17:15:44, Taylor Brandstetter wrote: > > Here are the MTU changes split from the other CL. > > > > Again, I don't know if this is something we should be doing in the first > place. > > The data channel spec says MTU discovery *should* be enabled. The only > > restriction it places on the MTU is that it MUST start at 1200 for IPv4 and > 1280 > > for IPv6, and discovery SHOULD restart when the route changes (which we don't > > support). > > > > So maybe for now we should leave MTU discovery enabled, set the initial MTU to > > 1200, and leave a TODO to hook up information about the route. > > Actually it looks like MTU discovery in usrsctp isn't even implemented for > userspace mode. Nowhere does it send probing padding packets as described in > https://tools.ietf.org/html/rfc4820. > > In fact, if it's left disabled, then after 10 minutes you end up with an MTU of > about 1500 due to a hardcoded default value: > https://cs.chromium.org/chromium/src/third_party/usrsctp/usrsctplib/usrsctpli... > > So maybe that's why we were trying to explicitly disable it. So what effect does our current code have? If we just removed it, what would happen?
On 2016/08/16 21:24:53, pthatcher1 wrote: > On 2016/08/11 18:55:01, Taylor Brandstetter wrote: > > On 2016/08/11 17:15:44, Taylor Brandstetter wrote: > > > Here are the MTU changes split from the other CL. > > > > > > Again, I don't know if this is something we should be doing in the first > > place. > > > The data channel spec says MTU discovery *should* be enabled. The only > > > restriction it places on the MTU is that it MUST start at 1200 for IPv4 and > > 1280 > > > for IPv6, and discovery SHOULD restart when the route changes (which we > don't > > > support). > > > > > > So maybe for now we should leave MTU discovery enabled, set the initial MTU > to > > > 1200, and leave a TODO to hook up information about the route. > > > > Actually it looks like MTU discovery in usrsctp isn't even implemented for > > userspace mode. Nowhere does it send probing padding packets as described in > > https://tools.ietf.org/html/rfc4820. > > > > In fact, if it's left disabled, then after 10 minutes you end up with an MTU > of > > about 1500 due to a hardcoded default value: > > > https://cs.chromium.org/chromium/src/third_party/usrsctp/usrsctplib/usrsctpli... > > > > So maybe that's why we were trying to explicitly disable it. > > So what effect does our current code have? If we just removed it, what would > happen? I believe the current code does disable path MTU discovery, but does not modify the default MTU. If we removed it, path MTU discovery would be enabled (which as described above, we probably don't want).
lgtm
lgtm
The CQ bit was checked by deadbeef@webrtc.org
The patchset sent to the CQ was uploaded after l-g-t-m from honghaiz@webrtc.org, pthatcher@webrtc.org Link to the patchset: https://codereview.webrtc.org/2237073002/#ps20001 (title: "Clarifying a comment.")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/...
Message was sent while issue was closed.
Committed patchset #2 (id:20001)
Message was sent while issue was closed.
Description was changed from ========== Fix setting the MTU for SCTP. It was being set at the wrong point in time and with the address parameter missing, so it wasn't having any effect. ========== to ========== Fix setting the MTU for SCTP. It was being set at the wrong point in time and with the address parameter missing, so it wasn't having any effect. Committed: https://crrev.com/fe8f48962aacab4a8437c9d98dfcda225329c68e Cr-Commit-Position: refs/heads/master@{#13909} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/fe8f48962aacab4a8437c9d98dfcda225329c68e Cr-Commit-Position: refs/heads/master@{#13909} |