packet loss on loopback interface!?

I am using udp as communication protocol. I know that udp is connection 
less and may lose datagrams, but i expected this only on real networks 
or buffer overflows, not when using the loopback interface.

My application performs an handshaking over udp, the client sends an 
request and the server ansers with an ack. Fairly simple, but when 
running on max speed with no wait states, some datagrams are lost.
But why? Sending request-response is a form of flow-control, so the 
network buffers for udp should not overflow.

Is thery any way to reduce the discardment of datagrams, possibly a 
socket option or solaris kernel parameters? The problem occurs on real 
network connections (not loopback), too.
I used the option SO_DEBUG with my socket, but it seems there's no 
debug-log written to the syslog.
Are there any other tuning parameters!?

regards, markus

0
Markus
1/15/2004 8:12:47 AM
comp.unix.solaris 25873 articles. 0 followers. Post Follow

1 Replies
2008 Views

Similar Articles

[PageSpeed] 42
Markus Breuer <markus.breuer@gmx.de> writes:

>My application performs an handshaking over udp, the client sends an 
>request and the server ansers with an ack. Fairly simple, but when 
>running on max speed with no wait states, some datagrams are lost.
>But why? Sending request-response is a form of flow-control, so the 
>network buffers for udp should not overflow.

If you do request response I would not expecting packetloss; if you
are sending as fast as you can and you're not waiting for responses
then the kernel will not flow control UDP buffers will overflow
and packets will be dropped.

>Is thery any way to reduce the discardment of datagrams, possibly a 
>socket option or solaris kernel parameters? The problem occurs on real 
>network connections (not loopback), too.
>I used the option SO_DEBUG with my socket, but it seems there's no 
>debug-log written to the syslog.


You can increase the udp buffer size using setsockopt() and the
max buffer size using ndd -set /dev/udp.

For loopback, you can use AF_UNIX, SOCK_SEQPACKET

Casper
-- 
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
0
Casper
1/15/2004 8:43:00 AM
Reply:
Similar Artilces:

C++ SWIG Pyton
Hello I am from Germany and I study Information-Technology (2nd semester). Every three month I have a internship at the DLR (German Aerospace Center) and in the moment I try to use Python and especially SWIG. My problem is to write the interface file. I have big problems to write my own interface file. I know that I have to write the headers and the functions in there, but I haven`t really found out how. (it�s a cpp and a header file, where class, a datatype and different functions are defined.) Maybe you have time to give me some tips to make an interface file out of the files on --> http...

Interfacing C++ & MATLAB
using: VS .NET 2005 C++ Matlab r2006a Matlab Compiler 4.4 Hello. I'm trying to use optimization code written in MATLAB from my C++ app. I can make a DLL in MATLAB, but to use the optimization function I need to evaluate objective function and gradient and this can be accomplished only with access to the model which is implemented in C++. I came with the attempt as below: I have found a way to call C/C++ from MATLAB according to http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/f13-1001757.html I decided, that I could reference desired object in my C++ code by passing a...

US-TX-Austin: Interface Support, Functional/tech exp., C, Business Objects, repo (45294457613)
US-TX-Austin: Interface Support, Functional/tech exp., C, Business Objects, repo (45294457613) ============================================================================================== Position: Interface Support Reference: SMC01130 Location: Austin TX Duration: 1Y Skills: Functional and technical experience working with relevant software, including programming languages to include one or more of the following: Business Objects, Report Composer, C. Medicaid experience preferred. Scope: Responsible for interface devel...

Parsing Packets
I think there is something wrong with the way I am processing packets because the protocol numbers I extract from the IP header don't make sense Getting packets from the BPF device: #define bpfHeader ((struct bpf_hdr *) packet) for ( ; ; ) { if ( (nread = read(ps.bpf_fd, buf, len)) < 0) errSys("read error while reading from %s", ps.bpfpath); safeEndOfData = buf + (nread - sizeof(struct bpf_hdr)); /* Process data */ for(packet = buf; packet < safeEndOfData; packet += BPF_WORDALIGN(bpfHeader->bh_hdrlen + ...

Dlink DFL-80 VPN router Dropping packets
I have a Dlink DFL-80 configured as a PPTP VPN server. Over the weekend I could connect to the router and ping the local ip address of a server and printer without any problems over the VPN. I also have terminal server configured to passthru the router so I can remotely connect to a server also. Today I noticed that I could connect to the VPN router using standard windows VPN client, ping the local address of the router, http to the local address of the router, but could not ping the server and printer. I then term service connected to the server and could ping the printer from ...

Slow interface to DLM library
I am calling cpp functions in a *.dll within IDL code. I use DLM_LOAD to lo= ad the library in and then call the functions. I am not using call_externa= l. They work as expected but take...forever...to...complete. Does anyone = have any troubleshooting ideas? On Wednesday, December 3, 2014 12:11:28 PM UTC-7, nonya biz wrote: > I am calling cpp functions in a *.dll within IDL code. I use DLM_LOAD to = load the library in and then call the functions. I am not using call_exter= nal. They work as expected but take...forever...to...complete. Does anyon= e have any troubleshooting...

CFP: SIAM (SDM-05) Workshop on Feature Selection for Data Mining
International Workshop on Feature Selection for Data Mining - Interfacing Machine Learning and Statistics in conjunction with 2005 SIAM International Conference on Data Mining, April 23, 2005, Newport Beach, California The workshop website: http://enpub.eas.asu.edu/workshop Knowledge discovery and data mining (KDD) is a multidisciplinary effort to mine nuggets of knowledge from data. The increasingly large data sets from many application domains have posed unprecedented challenges to KDD; in the meantime, new types of data are evolving such as Web, text, and microarray data. Research in c...

Re: Advanced user interface problem(s)
&nbsp; &nbsp;<a href="http://www.inventeering.com/Product_INVtray.html" target="_blank"><img height="98 src= http://www.inventeering.com/images/icon103_softwareOFF.png" width="103" border="0"></a> Requirements&nbsp;&nbsp;&nbsp; Price: $29.95 <img height="250 src= http://www.inventeering.com/images/INVtrayPalette&amp;SysTray.png" width="345" border="0"> &nbsp; &nbsp;Application Software: LabVIEW 7.0+ &nbsp;Toolkits Software: &nbsp; ...

Packet drops
We have expanded our LAN(80+ PCs) to a adjacent building that has five PCs connected to Cisco XL2900 switch. Old/new buildings are connected via fiber and a pair of media converters. Then, media converters are connected to identical XL2900 type switches in both buildings. So, we got two media converters connecting two buildings via XL2900 switch. After done with this, I have noticed some problems(?) from the PCs in the new building: 1. Ping to the computers in the old building shows unstable response (drops about 5% of the time, from 72 hours log) 2. Copying file is O.K. but,...

optional interface
How do I write a class with "optional" interface like the following one: class A { : // inteface_a // interface_b }; void main() { A obj_a(interface_a); // define an object with interface a A obj_b(interface_a | interface_b); // define an object with interface a AND b obj_b.func_b(); // calling function defined in interface b; OK obj_a.func_b(); // calling function not defined in interface a; Compilation error } -- Can I write something like this in C++? Thanks. Regards, Milan. "Milan" <someone...

user interface #6
hi all, &nbsp; I have some urgent problem that need to be solved. When i press on the start button on my interface it brings me to the next page as designed by my source code. but when i click on the end button the the next page , it brings me back to the main page and this time round the start button do not respond anymore( i.e cant bring me to the next page when i press on it again). Could anyone advise me? Attached is my programme. &nbsp; Thank You. &nbsp; Best Regards &nbsp; &nbsp; stopsucessful+interfacenew7.vi: http://forums.ni.com/attachments/ni/170/292403/1/stopsu...

How can I connect the NI USB RS485 interface to an instrument with two wires?
I am connecting the RS485 to a Dynisco UPR 700, but labview alway tell me that " Before the operation is completed, timeout expired", I donot know what is wrong. Thanks! ...

Change header of packet
In multicast we all know that IGMP protocol has no authentication, so I decided to modified the IGMP by input a simple authentication part in IGMP header. But I dont know how to modify header of IGMP packet send from Windows to outside. Could you please tell me the way dealing with Windows driver (tcpip.sys or something like that) to modify header of packet send from Windows to outside. Thanks a lot. ...

Frequency determination using discrete wavlet packet analysis
Hello! I am trying to implement a student project which introduces phase distortions in a audio signal for select frequency range.But the frequency detection is done using DWPA FB which is very new to me! Please,can anyone explain me how to(on MATLAB): 1)decompose the signal at some level using discrete wavelet packet analysis into subbands. 2)then basically i want to choose the subbands between my required range. I want to use these subbands only for the phase distortions.Later i want to again synthesize the singal back. Thank you! lalit_vagabond wrote: ...

tcp packet redirect question
Hi, I have two windows machines. I want to rediect any tcp packet sent to port x on machine 1 to port y on machine 2. Is there facility in windows for me to acheive this? Thanks. You do can forwards packet from one host to another but not from/to specific port , for that you have to write program or use 3-party program routers. Arkady "guava" <guava01@yahoo.com> wrote in message news:c946f572.0407282115.47c48833@posting.google.com... > Hi, > > I have two windows machines. I want to rediect any tcp packet sent to > port x on machine 1 to port y ...

Re: CTAN upload notification: ednotes.sty -- new user interface
This is a multi-part message in MIME format. ------_=_NextPart_002_01C4C057.981DE400 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable On Thu, 28 Oct 2004 Uwe L=FCck submitted version 1.0 of the ednotes = package. Summary description: version 1.0: module files handled by package = options License type: LaTeX Project Location on CTAN: macros/latex/contrib/ednotes Announcement text: ---------------------------------------------------------------------- > The ednotes bundle for critical editions formerly offered > some optional exte...

checking type of packet in netif_rx() causes kernel panic
Hello, We know that in the linux kernel received network packets usually go from the physical layer (let's say, etherenet drivers) to netif_rx(struct sk_buff *skb) in net/core/dev.c. This call usually happen in the interrupt handler in the ethrnet driver ; Just for exmaple, in the RTL 8139too driver, in rtl8139_rx_interrupt() there is a call to netif_rx(). In eeproo100.c (Intel Ethernet driver for Linux.) it is in speedo_rx() method. Now I want to monitor (and filter in the future) UDP packets in this netif_rx() method (ot net/core/dev.c) ; so I added this 2 lines i...

Is there a weight-loss app that doesn't require the net?
I really don't want to be putting my weight on the net, nor what I eat, nor whom I converse with about it. But, I really need help from a weight-loss app! (for either my Android phone or iPad) What I'd want that weight-loss app to do, first and foremost, would be to allow me to enter in what I eat, not by Calories, but by (small/medium/large) item. For example: 1 large bananna, 1 small cup coffee, 1 teaspoon sugar, 1/2 pound lean lean beef, 1 medium head of lettuce, etc. Then, all I want the program to do is calculate my caloric intake, and, keep track of results ...

packet loss because of big packets
Hello, The following problem occurs in my network: The command 'ping anyhost' works well without packet loss. Ping sends packets with a size of about 65 Bytes. If I grow the packet size with the parameter -s, I have got packet loss. The command 'ping -s 65507 host' works well for some hosts, for others not (100 % loss). Does this indicate bad network components? What does this mean for other protocols like UDP or TCP? Thank You for Your help! Andreas This might be due to certain hosts not supporting ICMP Echo reply with larger packet sizes. Sandeep -- htt...

Interface specification in Ada
Hi, my preferred programming language is Java and I'm used to declare in an interface some common methods, that all subclasses have to implement. For example: interface Bicycle { void changeCadence(int newValue); void changeGear(int newValue); void speedUp(int increment); void applyBrakes(int decrement); } class RacingBicycle implements Bicycle { // remainder of this class implemented as before } If I accidentially implement RacingBicycle without providing the four methods mentioned above, the compiler would draw attention to this situation. In Ada, i found the key...

[ANN] [SECURITY] Rack 0.9.1, a modular Ruby webserver interface
Hello, Today we release Rack 0.9.1. This release is a *security release*, it only fixes directory traversal exploits in Rack::File and Rack::Directory, dating back to Rack 0.3. Updating is highly recommended if you use these modules. = Rack, a modular Ruby webserver interface Rack provides a minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and responses in the simplest way possible, it unifies and distills the API for web servers, web frameworks, and software in between (the so-called middleware) into a single method call. The e...

which are packets with source ip 0.0.0.0
hello, I am working on linux and i observe that i am getting some 0.0.0.0 packets? I want to know who is sending those packets? Are they sent by services running on my Linux box? Which protocols require to send those packets? Does there any connection with raw sockets? From: <linux.lover2004@gmail.com> | hello, | I am working on linux and i observe that i am getting some | 0.0.0.0 packets? I want to know who is sending those packets? Are they | sent by services running on my Linux box? | Which protocols require to send those packets? Does there a...

US-TX-Austin: Lead SW Engineer, C++, CORBA, Voice packetization/Voice codecs; C- (45299733923)
US-TX-Austin: Lead SW Engineer, C++, CORBA, Voice packetization/Voice codecs; C- (45299733923) ============================================================================================== Position: Lead SW Engineer Reference: SMC01407 Location: Austin TX Duration: C-P Skills: BSEE or BSCS 7+yrs software design/implementation experience Ability to work well with others in a team environment Strong written and verbal communication skills Superior problem solving skills Knowledge of pattern-oriented sof...

Simulink interface to a Visual C++ Executable
I was looking for advice setting up an interface between a simulink block and an executable built using Visual C++. Is there any way I can use the MATLAB engine or any other already existing interface or will I have to code my own method in C++ for communicating between the two? Any advice or links to relevant articles would be a big help! Thank You, Doug ...

Addendum to: C++ with Interfaces in September CUJ
I have attempted to make an addendum to my article "Interfaces in C++" in the September 2004 issue of the C/C++ Users Journal (CUJ). The addendum is somewhat long so rather than posting the whole thing here, I have made it available on at: http://www.heron-centric.com/2004/08/c-with-interfaces-article-addendum.html For those without access to the original article, it introduces a technique for using interfaces in C++ without resorting to virtual functions, and presents a free code generator which simplifies the task. Much of the background for the article, along with the code genera...