home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!sun4nl!orcenl!jhelberg
- From: jhelberg@nl.oracle.com (Joost Helberg)
- Newsgroups: comp.unix.programmer
- Subject: Re: TCP reliability
- Message-ID: <2818@nlsun1.oracle.nl>
- Date: 14 Sep 92 13:50:56 GMT
- References: <1992Sep4.163505.1@hei.unige.ch>
- Organization: Oracle Europe
- Lines: 36
- X-Newsreader: Tin 1.1 PL3
-
- X-Disclaimer: This message was written by an unauthenticated user
- at Oracle Corporation. The opinions expressed are those
- of the user and not necessarily those of Oracle.
-
- droux@hei.unige.ch writes:
- :
- : TCP/IP BERKELEY SOCKETS: Transmission problems with doublicated packets
- : -----------------------------------------------------------------------
- :
- : We are currently implementing a distributed system providing the use of
- : different computers (different UNIX workstations) connected by Internet.
- : Our System is based on a server - client model using berkeley sockets.
- :
- : These two entities are communicating through AF_INET family
- : sockets of SOCK_STREAM type. Our Problem is, that a receiver implemented on
- : a NeXT receives much more packets than the sender implemented on
- : a Sun workstation sends (1.3 : 1).
- :
- : As TCP is known as sequenced, reliable and two-way connection based, this
- : fact is surprising to us. Is it possible to avoid this ?
-
- No, TCP gives you a connection to put a stream of bytes on, not packets.
- This means that while sending 200 packets, the other side may receive
- 100 packets. The number of data-bytes sent and received however must be
- the same.
-
- TCP offers SOCK_STREAM, counting packets works using SOCK_DGRAM (using udp).
-
-
- --
- Joost Helberg Rijnzathe 6
- jhelberg@oracle.nl NL-3454 PV De Meern
- jhelberg@nl.oracle.com The Netherlands
-
- Oracle Europe BV Product Line Development
- Phone: +31 3406 94211 Fax: +31 3406 65609
-