From: phil@eedwsa.itwol.bhp.com.au (Phil )
Subject: Maximum Message Sizes Through Kinet API
Date: 5 May 1993 06:24:58 GMT [thread overview]
Message-ID: <1s7mjq$fnt@merlin.resmel.bhp.com.au> (raw)
We are experiencing problems with sending large messages from KINET Decnet product
to DEC VAX.
We try to send API messages from a C-program but find that after ~500 bytes
we get a terrible corruption, which is a repitition of the original ~500bytes
again.
We have checked the ethernet with a protocol analyser and have verified that
this repitition is caused by a duplicate decnet packet being sent across the
link. Changing the decnet packet size moves the point of corruption!
The problem DOES NOT EXIST with small messages (of 200 bytes).
Is there a maximum message size to be sent (in one hit) through Kinet?
Below is the test case we are using to write data to remote VAX:
To: :phil
Subject: KiNet write
This is the code fragment I am using.
--------------------------------------------------------------------------------
length_sent = write ( data_link -> identity_agent ,
data_link -> text_buffer_out , data_link -> length_data ) ;
if ( length_sent == -1 )
{
timestamp ( stderr ) ;
fprintf ( stderr , "KiNet send: %d: " , data_link -> identity_agent ) ;
perror ( "write" ) ; fflush ( stderr ) ;
}
else if ( length_sent != data_link -> length_data )
{
timestamp ( stderr ) ;
fprintf ( stderr , "KiNet send: %d length data %d <> %d sent\n" ,
data_link -> identity_agent ,
data_link -> length_data , length_sent ) ;
fflush ( stderr ) ;
}
--------------------------------------------------------------------------------
I have opened KiNet with "Unix strem I/O" which makes the file descriptor
(identity agent) look like a normal fd.
I added the second if test, and the length returned by write is the same as the
length I asked to write (the message does not appear).
A 700 bytes (data) is sent (762 bytes total), arriving on the VAX as
{<RCV # 61 from IWFM02/USGPTN2/DAIAJO to VRP_LNK1/DAIAJO size 700 flags 48}
{Hello dollyMNOPQRSTUVWXYabcdefghijklmnopqrstuvwxy
ABCDEFGHIJKLMNOPQRSTUVWXYabcdefghijklmnopqrstuvwxy
ABCDEFGHIJKLMNOPQRSTUVWXYabcdefghijklmnopqrstuvwxy
ABCDEFGHIJKLMNOPQRSTUVWXYabcdefghijklmnopqrstuvwxy
ABCDEFGHIJKLMNOPQRSTUVWXYabcdefghijklmnopqrstuvwxy
ABCDE}
ie. 405 bytes + 62 bytes (header) = 467 bytes
I have only just noticed the use of "write". I believe KiNet have their own
routine equivalent, I could try using it to see if it makes any difference.
?
We have notified both Australian and US technical support, but it is DESPARATE
that we rectify this problem as soon as possible. ANY help would be appreciated.
NOTE
#####################################
My mail account does not work ... could you please post replies to one of
the newsgroups.
--
: Phil McMillan - Software Engineer
/\/\ : Engineering Technology Department
/ / /\ : BHP Steel - Slab and Plate Products Division
/ / / \ : P.O. Box 1854 Wollongong NSW 2500 AUSTRALIA
/ / / /\ \ : Phone +61-42-75-7522 ext 6207
\ \/ / / / : Fax +61-42-75-7897
\ / / / : E-mail phil@itwol.bhp.com.au
\/\/\/ :
reply other threads:[~1993-05-05 6:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox