f



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 26002 articles. 1 followers. Post Follow

1 Replies
2928 Views

Similar Articles

[PageSpeed] 59

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:

Packet loss with libpcap on a loopback interface
Hi! I'm trying to write a protocol decoder using libpcap. I'm having problems with a simple test program that sends a simple "hello world"- string on a TCP port. I intermittently receive some "TCP ACKed lost segment" for the packets that are sent/received. My best guess is that this is related to either libpcap or my setup since I get the same behaviour using my own protocol decoder as with Wireshark. The fact that the segments are not lost, other than for libpcap, are obvious since the test application receives the data without any retransmissions going ...

Reapeatable packet loss on ulip interface over Solaris TCP on 100Mbps
Hi I use VxSim with ulip over Solaris8. Whenever the gap between 2 packets < 10usec - The second received packet does not arrive to ulip interface. This cause a very slow TCP connection. On 10BaseT it never happens (probably because the inter packet gap > 10 usec). Did anyone encountered this problem? Thanks, Ilan ...

Packet loss on larger packets only
Being stumped on a problem with a Win2K (SP4) box. Recently started to have network performance problems, no recent configuration changes that I can identify that might be responsible. I've narrowed the problem down to an issue where small packets are OK, but I get lots of packet loss on packets larger than 200-250 bytes, particularly over 300 bytes. This was tested by using "ping -t -l <size> <destination>" for hosts either on the same LAN or over an internet link. Problem manifests itself whether pinging from or to the affected host. This box also h...

New packet loss issue
I've submitted this as a Sun case, but I thought I'd post here as well to see if anyone else has experienced this problem. Any ideas? ------------ The server is an x4100 M2 running Solaris 10 11/06 x86. Patches were current as of 4/9/2007, including a reconfig reboot at that time. Yesterday, the server was rebooted and afterwards the packet loss was noticed immediately. Note that as part of troubleshooting this problem, I've brought the patches up to date as of yesterday, performed a reconfig reboot, as well as performing a cold boot (with power cables completely removed). ...

interface to interface
Can I write a program to read packet from one interface and output packet to another interface? I wonder if os identify the two IP belong to interface in local machine, transmitting the packet in IP layer,and no packet goes out the interface. Is it possible to happen? In article <7d4caedb.0410181756.627370d@posting.google.com>, te0543@giga.net.tw (Joseph) wrote: > Can I write a program to read packet from one interface and output > packet to another interface? If you can write a program to read from one interface, and you can write a program to write to the other interface, wh...

Packet loss
Hello, Please, could anyone of you tell me why packet loss happens in a computer network? Need to know when and why a packet is rejected and disappears, and what takes that decision. I really need a deep explanation or a source where I can dig in. Being quite new in this subject, I have not found a clear explanation to this problem. Thanks a lot. -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 LMMT wrote: | Hello, | | Please, could anyone of you tell me why packet loss happens in a | computer network? Sunspot activity, backhoes, software bugs, firewalls, oxydation on conn...

loopback interface
Is it possible to create many loopback interfaces (as in Cisco routers) and get different statistics for these interfaces ? ...

US-DE: Newark-Sr Unix Application Developer-Solaris,UNIX Internals,SQL,
************************************************************** JobCircle.com - Careers, Content and Community for Technology professionals in the Northeastern United States! Jobcircle.com provides resume submission, classified searches, eLearning, hundreds of career development articles, tech news, and more to tens of thousands of Technology professionals in your area - visit us today at http://www.jobcircle.com! !!! Voted a TOP 50 Career Web Site in 2002 by CareerXRoads !!! ************************************************************** Job Title: Sr Unix Application Devel...

US-MI-Auburn Hills: Sun Solaris Eng., UNIX, Sun Solaris; 3M (45337432411)
US-MI-Auburn Hills: Sun Solaris Eng., UNIX, Sun Solaris; 3M (45337432411) ========================================================================= Position: Sun Solaris Eng. Reference: SMC01873 Location: Auburn Hills MI Duration: 3M Skills: UNIX Sun Solaris Scope: Being able to develop and consolidation books for Sun Solaris servers in DCX Please send your current resume in confidence to <staffing@eurosoft-inc.com> ..45337432411. ...

US-MI-Auburn Hills: Sun Solaris Eng., UNIX, Sun Solaris; 3M (45337132408)
US-MI-Auburn Hills: Sun Solaris Eng., UNIX, Sun Solaris; 3M (45337132408) ========================================================================= Position: Sun Solaris Eng. Reference: SMC01873 Location: Auburn Hills MI Duration: 3M Skills: UNIX Sun Solaris Scope: Being able to develop and consolidation books for Sun Solaris servers in DCX Please send your current resume in confidence to <staffing@eurosoft-inc.com> ..45337132408. ...

US-MI-Auburn Hills: Sun Solaris Eng., UNIX, Sun Solaris; 3M (45335657641)
US-MI-Auburn Hills: Sun Solaris Eng., UNIX, Sun Solaris; 3M (45335657641) ========================================================================= Position: Sun Solaris Eng. Reference: SMC01873 Location: Auburn Hills MI Duration: 3M Skills: UNIX Sun Solaris Scope: Being able to develop and consolidation books for Sun Solaris servers in DCX Please send your current resume in confidence to <staffing@eurosoft-inc.com> ..45335657641. ...

US-MI-Auburn Hills: Sun Solaris Eng., UNIX, Sun Solaris; 3M (45337414407)
US-MI-Auburn Hills: Sun Solaris Eng., UNIX, Sun Solaris; 3M (45337414407) ========================================================================= Position: Sun Solaris Eng. Reference: SMC01873 Location: Auburn Hills MI Duration: 3M Skills: UNIX Sun Solaris Scope: Being able to develop and consolidation books for Sun Solaris servers in DCX Please send your current resume in confidence to <staffing@eurosoft-inc.com> ..45337414407. ...

US-MI-Auburn Hills: Sun Solaris Eng., UNIX, Sun Solaris; 3M (45336557610)
US-MI-Auburn Hills: Sun Solaris Eng., UNIX, Sun Solaris; 3M (45336557610) ========================================================================= Position: Sun Solaris Eng. Reference: SMC01873 Location: Auburn Hills MI Duration: 3M Skills: UNIX Sun Solaris Scope: Being able to develop and consolidation books for Sun Solaris servers in DCX Please send your current resume in confidence to <staffing@eurosoft-inc.com> ..45336557610. ...

US-MI-Auburn Hills: Sun Solaris Eng., UNIX, Sun Solaris; 3M (45338057601)
US-MI-Auburn Hills: Sun Solaris Eng., UNIX, Sun Solaris; 3M (45338057601) ========================================================================= Position: Sun Solaris Eng. Reference: SMC01873 Location: Auburn Hills MI Duration: 3M Skills: UNIX Sun Solaris Scope: Being able to develop and consolidation books for Sun Solaris servers in DCX Please send your current resume in confidence to <staffing@eurosoft-inc.com> ..45338057601. ...

US-MI-Auburn Hills: Sun Solaris Eng., UNIX, Sun Solaris; 3M (45338032402)
US-MI-Auburn Hills: Sun Solaris Eng., UNIX, Sun Solaris; 3M (45338032402) ========================================================================= Position: Sun Solaris Eng. Reference: SMC01873 Location: Auburn Hills MI Duration: 3M Skills: UNIX Sun Solaris Scope: Being able to develop and consolidation books for Sun Solaris servers in DCX Please send your current resume in confidence to <staffing@eurosoft-inc.com> ..45338032402. ...

US-MI-Auburn Hills: Sun Solaris Eng., UNIX, Sun Solaris; 3M (45338014410)
US-MI-Auburn Hills: Sun Solaris Eng., UNIX, Sun Solaris; 3M (45338014410) ========================================================================= Position: Sun Solaris Eng. Reference: SMC01873 Location: Auburn Hills MI Duration: 3M Skills: UNIX Sun Solaris Scope: Being able to develop and consolidation books for Sun Solaris servers in DCX Please send your current resume in confidence to <staffing@eurosoft-inc.com> ..45338014410. ...

US-MI-Auburn Hills: Sun Solaris Eng., UNIX, Sun Solaris; 3M (45337714403)
US-MI-Auburn Hills: Sun Solaris Eng., UNIX, Sun Solaris; 3M (45337714403) ========================================================================= Position: Sun Solaris Eng. Reference: SMC01873 Location: Auburn Hills MI Duration: 3M Skills: UNIX Sun Solaris Scope: Being able to develop and consolidation books for Sun Solaris servers in DCX Please send your current resume in confidence to <staffing@eurosoft-inc.com> ..45337714403. ...

US-MI-Auburn Hills: Sun Solaris Eng., UNIX, Sun Solaris; 3M (45337114407)
US-MI-Auburn Hills: Sun Solaris Eng., UNIX, Sun Solaris; 3M (45337114407) ========================================================================= Position: Sun Solaris Eng. Reference: SMC01873 Location: Auburn Hills MI Duration: 3M Skills: UNIX Sun Solaris Scope: Being able to develop and consolidation books for Sun Solaris servers in DCX Please send your current resume in confidence to <staffing@eurosoft-inc.com> ..45337114407. ...

US-MI-Auburn Hills: Sun Solaris Eng., UNIX, Sun Solaris; 3M (45336814401)
US-MI-Auburn Hills: Sun Solaris Eng., UNIX, Sun Solaris; 3M (45336814401) ========================================================================= Position: Sun Solaris Eng. Reference: SMC01873 Location: Auburn Hills MI Duration: 3M Skills: UNIX Sun Solaris Scope: Being able to develop and consolidation books for Sun Solaris servers in DCX Please send your current resume in confidence to <staffing@eurosoft-inc.com> ..45336814401. ...

US-MI-Auburn Hills: Sun Solaris Eng., UNIX, Sun Solaris; 3M (45337714403)
US-MI-Auburn Hills: Sun Solaris Eng., UNIX, Sun Solaris; 3M (45337714403) ========================================================================= Position: Sun Solaris Eng. Reference: SMC01873 Location: Auburn Hills MI Duration: 3M Skills: UNIX Sun Solaris Scope: Being able to develop and consolidation books for Sun Solaris servers in DCX Please send your current resume in confidence to <staffing@eurosoft-inc.com> ..45337714403. ...

US-MI-Auburn Hills: Sun Solaris Eng., UNIX, Sun Solaris; 3M (45336832406)
US-MI-Auburn Hills: Sun Solaris Eng., UNIX, Sun Solaris; 3M (45336832406) ========================================================================= Position: Sun Solaris Eng. Reference: SMC01873 Location: Auburn Hills MI Duration: 3M Skills: UNIX Sun Solaris Scope: Being able to develop and consolidation books for Sun Solaris servers in DCX Please send your current resume in confidence to <staffing@eurosoft-inc.com> ..45336832406. ...

US-MI-Auburn Hills: Sun Solaris Eng., UNIX, Sun Solaris; 3M (45336857605)
US-MI-Auburn Hills: Sun Solaris Eng., UNIX, Sun Solaris; 3M (45336857605) ========================================================================= Position: Sun Solaris Eng. Reference: SMC01873 Location: Auburn Hills MI Duration: 3M Skills: UNIX Sun Solaris Scope: Being able to develop and consolidation books for Sun Solaris servers in DCX Please send your current resume in confidence to <staffing@eurosoft-inc.com> ..45336857605. ...

US-MI-Auburn Hills: Sun Solaris Eng., UNIX, Sun Solaris; 3M (45337414407)
US-MI-Auburn Hills: Sun Solaris Eng., UNIX, Sun Solaris; 3M (45337414407) ========================================================================= Position: Sun Solaris Eng. Reference: SMC01873 Location: Auburn Hills MI Duration: 3M Skills: UNIX Sun Solaris Scope: Being able to develop and consolidation books for Sun Solaris servers in DCX Please send your current resume in confidence to <staffing@eurosoft-inc.com> ..45337414407. ...

problem with ethernet loopback test using loopback plug/stub: receiving socket not seeing packet.
we are writing socket application to send UDP packets out from eth1 and loop it back to the same interface using loopback stub to verify the hardware without using external devices/ports. The sending and receiving port are the same. our target machine has eth0 configured as 15.6.xx.xx and eth1 configured as 16.6.6.6. the listening socket is listing on all ip. .. When we looked at the packet in the tx code of the driver, we have observed that the packet passed down from the ip stack has the same MAC address for both source and destination. Also when packet is returning, its ip source and destination are the same as the transmitting packet, which is to be expected. The outgoing packet on eth1 has ip address of 16.6.10.10. 1. Is this type of loopback possible under linux? 2 Is it better to send raw packet, or should UDP work as well? 3. is there a similar code that we can leverage? 4. the returning (incoming) packet is lost after the driver passes it to the ip stack. The receving socket is not able to retrieve packets the driver receives. What could be some of the issues? Thank you in advance. In comp.os.linux.networking mcharon <mcharon@gmail.com> wrote: > we are writing socket application to send UDP packets out from eth1 > and loop it back to the same interface using loopback stub to verify > the hardware without using external devices/ports. The sending and > receiving port are the same. > our target machine has eth0 configured as 15.6.xx....

Web resources about - packet loss on loopback interface!? - comp.unix.solaris

Interface - Wikipedia, the free encyclopedia
Text is available under the Creative Commons Attribution-ShareAlike License ;additional terms may apply. By using this site, you agree to the ...

Wikipedia for iOS updated w/ redesigned interface, 3D Touch, Handoff & more
... released an update to its iOS app that adds a host of new features and capabilities. The latest version of the app offers a redesigned interface ...

Google to Overhaul AdWords User Interface to Reflect Marketing in Multiscreen World
Google said Monday it will redesign the user interface for AdWords so it can better serve marketers who are trying to deliver ads in a multiscreen ...

Waze 4.0 unveiled with revamped user interface
... post, Waze has uploaded a video straight to YouTube to tell us what’s new. Basically, we are looking at a complete refresh to the user interface, ...

Molex and Cisco Help to Lead MSA to Develop Double-Density QSFP Interfaces
Molex and Cisco Help to Lead MSA to Develop Double-Density QSFP Interfaces Business Wire (press release) LISLE, Ill. & SAN JOSE, Calif.(BUSINESS ...

European Electric Bus Makers Will Work Toward Open Charging Interface
... common charging infrastructure in this case refers to that provided [&hellip European Electric Bus Makers Will Work Toward Open Charging Interface ...

Industrial IoT still needs humans and user interfaces
IoT is getting more automated, but not everything can be done by machines. An engineer who's been working with a system for decades has insights ...

Software brings your PC's entire interface to VR
Virtual reality faces numerous challenges, but one of the biggest is having to take your headset off whenever you need to run a conventional ...

LG to Release UX 5.0 User Interface Update With G5 Smartphone
DAILY VIDEO: LG updates UX 5.0 user interface for G5 smartphone; NTT Data to buy Dell Services for more than $3 Billion; Acer creates 2 major ...

Why Messaging Is The Business Interface Of The Future
The top four messengers today have more users than the top four social networks.

Resources last updated: 3/30/2016 6:55:57 AM