Главная страница


ru.unix.bsd

 
 - RU.UNIX.BSD ------------------------------------------------------------------
 From : Alexey G. Misyurenko                 2:5020/400     26 Aug 2005  23:50:01
 To : Alex Semenyaka
 Subject : Re: Passive FTP
 -------------------------------------------------------------------------------- 
 
 Alex Semenyaka wrote:
 
 > Hello Alexey!
 > 
 > 26 Aug 05 15:39, you wrote to me:
 > 
 >  >> 1) А по какой спецификации при получении ACK вместо SYN+ACK система
 >  >> должна отослать новый SYN? По-моему, она должна такой ACK полностью
 >  AM> Отсылкой ACK мы добьемся получения RST , от инициатора соединения
 > 
 > Выкачал tcp_input.c фришкин, проверил. Там написано:
 >
 
 А я RFC /цитата ниже/%)
 
 > 
 > Ты получишь RST, если будешь подтверждать что попало. Если будешь подтверждать
 
 Hу зачем все что попало %)
 
 RFC: 793
 
    Цитата с 34й страницы
 
    Assume that two user processes A and B are communicating with one
    another when a crash occurs causing loss of memory to A's TCP.
    Depending on the operating system supporting A's TCP, it is likely
    that some error recovery mechanism exists.  When the TCP is up again,
    A is likely to start again from the beginning or from a recovery
    point.  As a result, A will probably try to OPEN the connection again
    or try to SEND on the connection it believes open.  In the latter
    case, it receives the error message "connection not open" from the
    local (A's) TCP.  In an attempt to establish the connection, A's TCP
    will send a segment containing SYN.  This scenario leads to the
    example shown in figure 10.  After TCP A crashes, the user attempts to
    re-open the connection.  TCP B, in the meantime, thinks the connection
    is open.
        TCP A                                           TCP B
 
    1.  (CRASH)                               (send 300,receive 100)
    2.  CLOSED                                           ESTABLISHED
    3.  SYN-SENT --> <SEQ=400><CTL=SYN>              --> (??)
    4.  (!!)     <-- <SEQ=300><ACK=100><CTL=ACK>     <-- ESTABLISHED
    5.  SYN-SENT --> <SEQ=100><CTL=RST>              --> (Abort!!)
    6.  SYN-SENT                                         CLOSED
    7.  SYN-SENT --> <SEQ=400><CTL=SYN>              -->
 
                       Half-Open Connection Discovery
 
                                 Figure 10.
 
    When the SYN arrives at line 3, TCP B, being in a synchronized state,
    and the incoming segment outside the window, responds with an
    acknowledgment indicating what sequence it next expects to hear (ACK
    100).  TCP A sees that this segment does not acknowledge anything it
    sent and, being unsynchronized, sends a reset (RST) because it has
    detected a half-open connection.  TCP B aborts at line 5.  TCP A will
    continue to try to establish the connection; the problem is now
    reduced to the basic 3-way handshake of figure 7.
 
 --- ifmail v.2.15dev5.3
  * Origin: ISP Caravan(http://www.caravan.ru) News Server (2:5020/400)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 Re: Passive FTP   Eugene Grosbein   24 Aug 2005 10:30:16 
 Passive FTP   Alex Semenyaka   24 Aug 2005 12:33:14 
 Re: Passive FTP   Gleb Smirnoff   24 Aug 2005 14:52:36 
 Passive FTP   Alex Semenyaka   24 Aug 2005 16:39:54 
 Re: Passive FTP   Spartak Radchenko   24 Aug 2005 19:06:14 
 Re: Passive FTP   Spartak Radchenko   24 Aug 2005 19:33:31 
 Passive FTP   Alex Semenyaka   24 Aug 2005 19:09:06 
 Passive FTP   Slawa Olhovchenkov   25 Aug 2005 16:15:44 
 Re: Passive FTP   Spartak Radchenko   25 Aug 2005 16:42:30 
 Passive FTP   Alex Semenyaka   25 Aug 2005 18:33:28 
 Passive FTP   Slawa Olhovchenkov   25 Aug 2005 22:32:18 
 Passive FTP   Alex Semenyaka   25 Aug 2005 22:30:10 
 Re: Passive FTP   Spartak Radchenko   25 Aug 2005 16:37:25 
 Passive FTP   Alex Semenyaka   25 Aug 2005 17:46:26 
 Passive FTP   Alex Semenyaka   24 Aug 2005 18:38:58 
 Re: Passive FTP   Gleb Smirnoff   25 Aug 2005 11:49:00 
 Passive FTP   Slawa Olhovchenkov   25 Aug 2005 11:59:46 
 Re: Passive FTP   Gleb Smirnoff   25 Aug 2005 13:00:11 
 Passive FTP   Slawa Olhovchenkov   25 Aug 2005 13:20:40 
 Re: Passive FTP   Gleb Smirnoff   25 Aug 2005 14:03:58 
 Passive FTP   Slawa Olhovchenkov   25 Aug 2005 14:22:34 
 Re: Passive FTP   Gleb Smirnoff   25 Aug 2005 15:39:42 
 Passive FTP   Slawa Olhovchenkov   25 Aug 2005 16:14:12 
 Re: Passive FTP   Valentin Nechayev   28 Aug 2005 13:47:23 
 Passive FTP   Alex Semenyaka   25 Aug 2005 14:49:10 
 Re: Passive FTP   Alexey G Misyuremko   25 Aug 2005 13:43:31 
 Passive FTP   Slawa Olhovchenkov   25 Aug 2005 13:54:00 
 Passive FTP   Alex Semenyaka   25 Aug 2005 14:51:36 
 Re: Passive FTP   Alexey G Misyuremko   25 Aug 2005 20:36:18 
 Passive FTP   Alex Semenyaka   25 Aug 2005 21:56:50 
 Re: Passive FTP   Alexey G. Misyurenko   26 Aug 2005 01:15:58 
 Passive FTP   Alex Semenyaka   26 Aug 2005 12:02:20 
 Re: Passive FTP   Alexey G Misyuremko   26 Aug 2005 15:39:25 
 Passive FTP   Alex Semenyaka   26 Aug 2005 17:32:04 
 Passive FTP   Alex Semenyaka   26 Aug 2005 19:52:58 
 Re: Passive FTP   Alexey G. Misyurenko   26 Aug 2005 23:50:01 
 Passive FTP   Alex Semenyaka   27 Aug 2005 14:33:56 
 Re: Passive FTP   Alexey G. Misyurenko   27 Aug 2005 23:33:27 
 Passive FTP   Alex Semenyaka   28 Aug 2005 16:29:08 
 Re: Passive FTP   Gleb Smirnoff   26 Aug 2005 16:38:55 
 Re: Passive FTP   Gleb Smirnoff   26 Aug 2005 16:37:54 
 Re: Passive FTP   Alexey G Misyuremko   26 Aug 2005 16:50:32 
 Re: Passive FTP   Gleb Smirnoff   26 Aug 2005 17:32:56 
 Re: Passive FTP   Alexey G Misyuremko   26 Aug 2005 17:46:35 
 Re: Passive FTP   Gleb Smirnoff   26 Aug 2005 18:02:14 
 Re: Passive FTP   Alexey G Misyuremko   26 Aug 2005 18:13:52 
 Re: Passive FTP   Gleb Smirnoff   26 Aug 2005 18:34:01 
 Re: Passive FTP   Alexey G. Misyurenko   26 Aug 2005 23:09:17 
 Passive FTP   Alex Semenyaka   26 Aug 2005 18:41:54 
 Re: Passive FTP   Moderator of RU.UNIX.BSD   28 Aug 2005 14:31:39 
 Re: Passive FTP   Victor Sudakov   25 Aug 2005 12:06:58 
 Re: Passive FTP   Gleb Smirnoff   25 Aug 2005 12:58:11 
 Passive FTP   Alex Semenyaka   25 Aug 2005 13:03:10 
 Re: Passive FTP   Gleb Smirnoff   25 Aug 2005 16:36:23 
 Passive FTP   Alex Semenyaka   25 Aug 2005 17:38:18 
 Re: Passive FTP   Gleb Smirnoff   26 Aug 2005 16:14:58 
 Passive FTP   Alex Semenyaka   26 Aug 2005 17:56:18 
Архивное /ru.unix.bsd/104330134bd9c.html, оценка 1 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional