본문 바로가기

IT 일기

TCP 4-way-handshake's Buffered-Period in Time-Wait

728x90

참고

 

필요한 이유는 크게 두가지다.

 

1. Client -> Server로 보낸 Ack가 Server에 receive될 때까지의 충분한 시간을 주기 위해 필요하다. 혹은 중간에 packet이 lost되어 retransmitt 하는 경우가 발생하기도 하는데, 이것까지 포함해 충분한 시간을 주는 것이다.

 

2. "Buffering period"

기존이 Connection을 closed 한 이후 바로 연결될 다음 connection사이에 period를 줘야 한다. Time-Wait가 없게 된다면 다른 connection에서의 packet이 섞여 congestion이 발생할 수 있다.

 

 

부가.

TCP 통신에서 client의 finish 요청은 connection이 closed될 때까지 MSL(maximum segment lifetime)의 두배만큼의 시간을 기다린다. 보통 MSL은 120초로 설정하는데 이 값은 현대 네트워크 기준으로 영원한 시간과 같다. 즉, 이거보다 더 길어지면 정상적인 상황은 아니라는 것이다.

 

출처 : http://www.tcpipguide.com/free/t_TCPConnectionTermination-3.htm

 

The TCP/IP Guide - TCP Connection Termination

Please Whitelist This Site? I know everyone hates ads. But please understand that I am providing premium content for free that takes hundreds of hours of time to research and write. I don't want to go to a pay-only model like some sites, but when more and

www.tcpipguide.com

번역 : 나

- HTTP 공부하다 본 "Buffered period"에 대해 찾다가 공부하게 됨.

728x90

'IT 일기' 카테고리의 다른 글