Network Write Delay using PPPD
Thomas Doerfler
Thomas.Doerfler at imd-systems.de
Thu Jun 21 18:00:37 UTC 2001
Hello Mike,
>
> Hi,
> I am using the i386/pc586 BSP with the latest snapshot. My code
> is using the standard pppd task to establish a network connection.
> The ppp connection gets established and I can create a socket and
> connect to my server test application.
>
> The RTEMS client code will write a block of data every time it
> receives some data over the socket. The problem that I am seeing
> is that the client write seems to be getting delayed. And the
> delay keeps getting longer after each successive write. After four
> writes, the delay is about 90 seconds! I have turned off the pppd
> compression options.
1.) Maybe your "syslog" gets sent over the PPP connection. In the
"standard" settings, PPP sends various messages to syslog during
normal data transfer like (snapshot from my LINUX server syslog):
Jun 21 19:40:03 rtsys054 RTSYS-FW: Serial connection established.
Jun 21 19:40:04 rtsys054 RTSYS-FW: sent 18 bytes
Jun 21 19:40:31 rtsys054 last message repeated 9 times
Jun 21 19:40:34 rtsys054 RTSYS-FW: LCP: timeout sending Config-
Requests
Jun 21 19:40:34 rtsys054 RTSYS-FW: Connection terminated.
Jun 21 19:40:37 rtsys054 RTSYS-FW: Serial connection established.
If this is the case, any packet sent (and received) will provoke a
syslog entry which will provoke a PPP packet which will... You see
where we might go to!
Most of the syslog outputs are controlled with the PPP variables
"debug" and "kdebug", you should set them to zero, when you don't
need logging.
Background info: In my configuration my RTEMS system has a Ethernet
connection for normal use (and it is used for syslog transfers) and
an additional UART for PPP, so in my configuration PPP's logging does
not flood the PPP connection.
2) I have been using PPP together with a "hacked" version of rtems-
4.0.0 (I upgraded some parts like termios to the 4.5.0 version
though). And it worked fine (more or less). Two weeks ago I ported my
application to RTEMS-4.5.0 and I found that PPP receive gets a
problem due to modifications in the RTEMS device driver interface:
errno was not set at all, when a device driver error (like timeout
during read) occured. Therefore I have changed
"rtems/c/src/libfs/src/imfs/deviceio.c" (see attached file). Maybe
this improves things too...
I would be very interested about your progress, because PPP in RTEMS
seems to be still a bit difficult to work with.
Bye,
Thomas.
--------------------------------------------
IMD Ingenieurbuero fuer Microcomputertechnik
Thomas Doerfler Herbststrasse 8
D-82178 Puchheim Germany
email: Thomas.Doerfler at imd-systems.de
PGP public key available at: http://www.imd-systems.de/pgp_key.htm
-------------- Enclosure number 1 ----------------
* This message contains the file 'deviceio.c', which has been
* uuencoded. If you are using Pegasus Mail, then you can use
* the browser's eXtract function to lift the original contents
* out to a file, otherwise you will have to extract the message
* and uudecode it manually.
begin 660 deviceio.c
M+RH*("H@($E-1E, at 1&5V:6-E($YO9&4 at 2&%N9&QE<G,*("H*("H@(%1H:7,@
M9FEL92!C;VYT86EN<R!T:&4@<V5T(&]F(&AA;F1L97)S('5S960@=&\@;6%P
M(&]P97)A=&EO;G,@;VX*("H@($E-1E, at 9&5V:6-E(&YO9&5S(&]N=&\@8V%L
M;',@=&\@=&AE(%)414U3($-L87-S:6, at 05!)($E/($UA;F%G97(N"B`J"B`J
M("!#3U!94DE'2%0@*&,I(#$Y.#DM,3DY.2X*("H@($]N+4QI;F4 at 07!P;&EC
M871I;VYS(%)E<V5A<F-H($-O<G!O<F%T:6]N("A/05(I+ at H@*@H@*B`@5&AE
M(&QI8V5N<V4 at 86YD(&1I<W1R:6)U=&EO;B!T97)M<R!F;W(@=&AI<R!F:6QE
M(&UA>2!B90H@*B`@9F]U;F0@:6X@=&AE(&9I;&4 at 3$E#14Y312!I;B!T:&ES
M(&1I<W1R:6)U=&EO;B!O<B!A=`H@*B`@:'1T<#HO+W=W=RY/05)C;W)P+F-O
M;2]R=&5M<R]L:6-E;G-E+FAT;6PN"B`J"B`J("`D260Z(&1E=FEC96EO+F,L
M=B`Q+C0@,3DY.2\Q,2\Q-R`Q-SHU,3HQ.2!J;V5L($5X<"`D"B`J+PH*(VEN
M8VQU9&4@/')T96US+F@^"B-I;F-L=61E(#QR=&5M<R]L:6)I;RYH/@HC:6YC
M;'5D92`\<G1E;7,O87-S;V,N:#X@("`@("`@("`@("`@("`@+RH at 87-S;V,N
M:"!N;W0@:6YC;'5D960 at 8GD@<G1E;7,N:"`J+PHC:6YC;'5D92`\97)R;F\N
M:#X*+RHC:6YC;'5D92`B;&EB:6]?+F at B*B\*"B-I;F-L=61E(")I;69S+F at B
M"@HO*@H@*B!#;VYV97)T(%)414U3('-T871U<R!T;R!A(%5.25@@97)R;F\*
M("HO"@IR=&5M<U]A<W-O8U]T(&5R<FYO7V%S<V]C6UT@/2!["B`@("![(")/
M2R(L("`@("`@("`@("`@("`@("!25$5-4U]354-#15-31E5,+"`@("`@("`@
M("`@("`@("`P('TL"B`@("![(")"55-9(BP@("`@("`@("`@("`@("!25$5-
M4U]215-/55)#15])3E]54T4L("`@("`@("`@("!%0E5362!]+`H@("`@>R`B
M24Y604Q)1"!.04U%(BP@("`@("`@4E1%35-?24Y604Q)1%].04U%+"`@("`@
M("`@("`@("`@14E.5D%,('TL"B`@("![(").3U0 at 24U03$5-14Y4140B+"`@
M("!25$5-4U].3U1?24U03$5-14Y4140L("`@("`@("`@("!%3D]365,@?2P*
M("`@('L@(E1)345/550B+"`@("`@("`@("`@(%)414U37U1)345/550L("`@
M("`@("`@("`@("`@("`@($5424U%1$]55"!]+`H@("`@>R`B3D\@345-3U)9
M(BP@("`@("`@("`@4E1%35-?3D]?345-3U)9+"`@("`@("`@("`@("`@("`@
M14Y/345-('TL"B`@("![(").3R!$159)0T4B+"`@("`@("`@("!25$5-4U]5
M3E-!5$E31DE%1"P@("`@("`@("`@("`@("!%3D]$158@?2P*("`@('L@(DE.
M5D%,240 at 3E5-0D52(BP@("`@(%)414U37TE.5D%,241?3E5-0D52+"`@("`@
M("`@("`@($5"041&?2P*("`@('L@(DY/5"!215-/55)#12!/5TY%4B(L(%)4
M14U37TY/5%]/5TY%4E]/1E]215-/55)#12P@("`@($5015)-?2P*("`@('L@
M(DE/($524D]2(BP@("`@("`@("`@(%)414U37TE/7T524D]2+"`@("`@("`@
M("`@("`@("`@($5)3WTL"B`@("![(#`L(#`L(#`@?2P*?3L*"G-T871I8R!U
M;G-I9VYE9#,R"G)T96US7V1E=FEC96EO7V5R<FYO*')T96US7W-T871U<U]C
M;V1E(&-O9&4I"GL*("`@(&EN="!R8SL*("`@(`H@("`@:68@*"AR8R`](')T
M96US7V%S<V]C7W)E;6]T95]B>5]L;V-A;"AE<G)N;U]A<W-O8RP@*'5N<VEG
M;F5D,S(I(&-O9&4I*2D*("`@('L*("`@("`@("!E<G)N;R`](')C.PH@("`@
M("`@(')E='5R;B`M,3L*("`@('T*("`@(')E='5R;B`M,3L*?0H*+RH*("H@
M(&1E=FEC95]O<&5N"B`J"B`J("!4:&ES(&AA;F1L97(@;6%P<R!A;B!O<&5N
M*"D@;W!E<F%T:6]N(&]N=&\@<G1E;7-?:6]?;W!E;B at I+@H@*B\*"FEN="!D
M979I8V5?;W!E;B@*("!R=&5M<U]L:6)I;U]T("II;W`L"B`@8V]N<W0 at 8VAA
M<B`@("`J<&%T:&YA;64L"B`@=6YS:6=N960S,B`@("`@9FQA9RP*("!U;G-I
M9VYE9#,R("`@("!M;V1E"BD*>PH@(')T96US7VQI8FEO7V]P96Y?8VQO<V5?
M87)G<U]T("!A<F=S.PH@(')T96US7W-T871U<U]C;V1E("`@("`@("`@("`@
M("!S=&%T=7,["B`@24U&4U]J;F]D95]T("`@("`@("`@("`@("`@("`@*G1H
M95]J;F]D93L*"B`@=&AE7VIN;V1E("`](&EO<"T^9FEL95]I;F9O.PH*("!A
M<F=S+FEO<"`@(#T@:6]P.PH@(&%R9W,N9FQA9W,@/2!I;W`M/F9L86=S.PH@
M(&%R9W,N;6]D92`@/2!M;V1E.PH*("!S=&%T=7,@/2!R=&5M<U]I;U]O<&5N
M*`H@("`@=&AE7VIN;V1E+3YI;F9O+F1E=FEC92YM86IO<BP*("`@('1H95]J
M;F]D92T^:6YF;RYD979I8V4N;6EN;W(L"B`@("`H=F]I9"`J*2`F87)G<PH@
M("D["B`@:68@*"!S=&%T=7,@*2!["B`@("!R=&5M<U]D979I8V5I;U]E<G)N
M;RAS=&%T=7,I.PH@("`@<F5T=7)N(%)414U37U5.4T%425-&245$.PH@('T*
M"B`@<F5T=7)N(#`["GT*"B\J"B`J("!D979I8V5?8VQO<V4*("H*("H@(%1H
M:7,@:&%N9&QE<B!M87!S(&$@8VQO<V4H*2!O<&5R871I;VX@;VYT;R!R=&5M
M<U]I;U]C;&]S92 at I+@H@*B\*"FEN="!D979I8V5?8VQO<V4H"B`@<G1E;7-?
M;&EB:6]?="`J:6]P"BD*>PH@(')T96US7VQI8FEO7V]P96Y?8VQO<V5?87)G
M<U]T("!A<F=S.PH@(')T96US7W-T871U<U]C;V1E("`@("`@("`@("`@("!S
M=&%T=7,["B`@24U&4U]J;F]D95]T("`@("`@("`@("`@("`@("`@*G1H95]J
M;F]D93L*"B`@=&AE7VIN;V1E(#T@:6]P+3YF:6QE7VEN9F\["@H@(&%R9W,N
M:6]P("`@/2!I;W`["B`@87)G<RYF;&%G<R`](#`["B`@87)G<RYM;V1E("`]
M(#`["@H@('-T871U<R`](')T96US7VEO7V-L;W-E*`H@("`@=&AE7VIN;V1E
M+3YI;F9O+F1E=FEC92YM86IO<BP*("`@('1H95]J;F]D92T^:6YF;RYD979I
M8V4N;6EN;W(L"B`@("`H=F]I9"`J*2`F87)G<PH@("D["B`@:68@*"!S=&%T
M=7,@*2!["B`@("!R=&5M<U]D979I8V5I;U]E<G)N;RAS=&%T=7,I.PH@("`@
M<F5T=7)N(%)414U37U5.4T%425-&245$.PH@('T*("!R971U<FX@,#L*?0H*
M+RH*("H@(&1E=FEC95]R96%D"B`J"B`J("!4:&ES(&AA;F1L97(@;6%P<R!A
M(')E860H*2!O<&5R871I;VX@;VYT;R!R=&5M<U]I;U]R96%D*"DN"B`J+PH*
M:6YT(&1E=FEC95]R96%D*`H@(')T96US7VQI8FEO7W0@*FEO<"P*("!V;VED
M("`@("`@("`@("IB=69F97(L"B`@=6YS:6=N960S,B`@("`@8V]U;G0**0I[
M"B`@<G1E;7-?;&EB:6]?<G=?87)G<U]T("`@87)G<SL*("!R=&5M<U]S=&%T
M=7-?8V]D92`@("`@("!S=&%T=7,["B`@24U&4U]J;F]D95]T("`@("`@("`@
M("`J=&AE7VIN;V1E.PH*("!T:&5?:FYO9&4@/2!I;W`M/F9I;&5?:6YF;SL*
M"B`@87)G<RYI;W`@("`@("`@("`](&EO<#L*("!A<F=S+F]F9G-E="`@("`@
M(#T@:6]P+3YO9F9S970["B`@87)G<RYB=69F97(@("`@("`](&)U9F9E<CL*
M("!A<F=S+F-O=6YT("`@("`@(#T at 8V]U;G0["B`@87)G<RYF;&%G<R`@("`@
M("`](&EO<"T^9FQA9W,["B`@87)G<RYB>71E<U]M;W9E9"`](#`["@H@('-T
M871U<R`](')T96US7VEO7W)E860H"B`@("!T:&5?:FYO9&4M/FEN9F\N9&5V
M:6-E+FUA:F]R+`H@("`@=&AE7VIN;V1E+3YI;F9O+F1E=FEC92YM:6YO<BP*
M("`@("AV;VED("HI("9A<F=S"B`@*3L*"B`@:68@*"!S=&%T=7,@*0H@("`@
M<F5T=7)N(')T96US7V1E=FEC96EO7V5R<FYO*'-T871U<RD["@H@(')E='5R
M;B!A<F=S+F)Y=&5S7VUO=F5D.PI]"@HO*@H@*B`@9&5V:6-E7W=R:71E"B`J
M"B`J("!4:&ES(&AA;F1L97(@;6%P<R!A('=R:71E*"D@;W!E<F%T:6]N(&]N
M=&\@<G1E;7-?:6]?=W)I=&4H*2X*("HO"@II;G0 at 9&5V:6-E7W=R:71E*`H@
M(')T96US7VQI8FEO7W0@*FEO<"P*("!C;VYS="!V;VED("`@("IB=69F97(L
M"B`@=6YS:6=N960S,B`@("`@8V]U;G0**0I["B`@<G1E;7-?;&EB:6]?<G=?
M87)G<U]T("`@87)G<SL*("!R=&5M<U]S=&%T=7-?8V]D92`@("`@("!S=&%T
M=7,["B`@24U&4U]J;F]D95]T("`@("`@("`@("`J=&AE7VIN;V1E.PH*("!T
M:&5?:FYO9&4@/2!I;W`M/F9I;&5?:6YF;SL*"B`@87)G<RYI;W`@("`@("`@
M("`](&EO<#L*("!A<F=S+F]F9G-E="`@("`@(#T@:6]P+3YO9F9S970["B`@
M87)G<RYB=69F97(@("`@("`]("AV;VED("HI(&)U9F9E<CL*("!A<F=S+F-O
M=6YT("`@("`@(#T at 8V]U;G0["B`@87)G<RYF;&%G<R`@("`@("`](&EO<"T^
M9FQA9W,["B`@87)G<RYB>71E<U]M;W9E9"`](#`["@H@('-T871U<R`](')T
M96US7VEO7W=R:71E*`H@("`@=&AE7VIN;V1E+3YI;F9O+F1E=FEC92YM86IO
M<BP*("`@('1H95]J;F]D92T^:6YF;RYD979I8V4N;6EN;W(L"B`@("`H=F]I
M9"`J*2`F87)G<PH@("D["@H@(&EF("@@<W1A='5S("D*("`@(')E='5R;B!R
M=&5M<U]D979I8V5I;U]E<G)N;RAS=&%T=7,I.PH*("!R971U<FX at 87)G<RYB
M>71E<U]M;W9E9#L*?0H*+RH*("H@(&1E=FEC95]I;V-T;`H@*@H@*B`@5&AI
M<R!H86YD;&5R(&UA<', at 86X@:6]C=&PH*2!O<&5R871I;VX@;VYT;R!R=&5M
M<U]I;U]I;V-T;"@I+ at H@*B\*"FEN="!D979I8V5?:6]C=&PH"B`@<G1E;7-?
M;&EB:6]?="`J:6]P+`H@('5N<VEG;F5D,S(@("`@(&-O;6UA;F0L"B`@=F]I
M9"`@("`@("`@("`J8G5F9F5R"BD*>PH@(')T96US7VQI8FEO7VEO8W1L7V%R
M9W-?="`@87)G<SL*("!R=&5M<U]S=&%T=7-?8V]D92`@("`@("`@('-T871U
M<SL*("!)34937VIN;V1E7W0@("`@("`@("`@("`@*G1H95]J;F]D93L*"B`@
M87)G<RYI;W`@("`@(#T@:6]P.PH@(&%R9W,N8V]M;6%N9"`](&-O;6UA;F0[
M"B`@87)G<RYB=69F97(@(#T at 8G5F9F5R.PH*("!T:&5?:FYO9&4@/2!I;W`M
M/F9I;&5?:6YF;SL*"B`@<W1A='5S(#T@<G1E;7-?:6]?8V]N=')O;"@*("`@
M('1H95]J;F]D92T^:6YF;RYD979I8V4N;6%J;W(L"B`@("!T:&5?:FYO9&4M
M/FEN9F\N9&5V:6-E+FUI;F]R+`H@("`@*'9O:60@*BD@)F%R9W,*("`I.PH*
M("!I9B`H('-T871U<R`I"B`@("!R971U<FX@<G1E;7-?9&5V:6-E:6]?97)R
M;F\H<W1A='5S*3L*"B`@<F5T=7)N(&%R9W,N:6]C=&Q?<F5T=7)N.PI]"@HO
M*@H@*B`@9&5V:6-E7VQS965K"B`J"B`J("!4:&ES(&AA;F1L97(@96%T<R!A
M;&P@;'-E96LH*2!O<&5R871I;VYS+ at H@*B\*"FEN="!D979I8V5?;'-E96LH
M"B`@<G1E;7-?;&EB:6]?="`J:6]P+`H@(&]F9E]T("`@("`@("`@(&]F9G-E
M="P*("!I;G0@("`@("`@("`@("!W:&5N8V4**0I["B`@<F5T=7)N(#`["GT*
M"B\J"B`J("!D979I8V5?<W1A=`H@*@H@*B`@5&AE($E-1E-?<W1A="@I(&ES
M('5S960N"B`J+PH*+RH*("H@(&1E=FEC95]R;6YO9`H@*@H@*B`@5&AE($E-
81E-?<FUN;V0H*2!I<R!U<V5D+ at H@*B\*
`
end
More information about the users
mailing list