TCP/IP Connection increases per server interaction

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

TCP/IP Connection increases per server interaction

Post by MegumiSawada »

Hi,

I have received the following question regarding LongRange behavior.

With NETSTAT command --> Option 3) will show "Work with TCP/IP connection status" screen.

When using LongRange client application, it seems connection will be add on this screen everytime LongRange client app connect to server.
I believe it is expected behavior, but the customer would like to check if it is no problem even though there may be huge amount of connection can occur at once.

I appreciate your kind advice.

Best Regards,
Megumi Sawada
jasonzhou
Posts: 130
Joined: Wed Jan 11, 2017 3:26 pm

Re: TCP/IP Connection increases per server interaction

Post by jasonzhou »

Hi Megumi,

I think the behavior is correct.

After each request, the state will immediately become to Time-wait. (see Picture 1)

In TCP standard, Time-wait means that the connection is terminated, but before changes state to Closed, host needs to wait a short time to be sure the client received ACK flag. (see Picture 2)

This is what I read from https://en.wikipedia.org/wiki/Transmiss ... l_Protocol:
TIME-WAIT
(either server or client) represents waiting for enough time to pass to be sure the remote TCP received the acknowledgment of its connection termination request. [According to RFC 793 a connection can stay in TIME-WAIT for a maximum of four minutes known as two MSL (maximum segment lifetime).]

Thanks.

.
Attachments
[Picture 1] the TCP state is Time-wait after each request
[Picture 1] the TCP state is Time-wait after each request
ibmi.jpg (95.12 KiB) Viewed 3193 times
[Picture 2] Time-wait will change to Closed after waiting a short time
[Picture 2] Time-wait will change to Closed after waiting a short time
tcp_terminate.jpg (27.34 KiB) Viewed 3193 times
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

Re: TCP/IP Connection increases per server interaction

Post by MegumiSawada »

Hi Jason,

Thank you for your explanation.
I'll explain this to the customer!

Best Regards,
Megumi Sawada
Post Reply