主权项 |
1. A packet processing apparatus comprising:
a memory; and a processor configured to:
initiate and manage, by a session processing unit, a session;store, by a statistic information storage unit, statistic information related to packet retransmission and packet information in the memory, wherein the packet information comprises a destination address, a source address, a destination port, a source port, and a protocol of a header;analyze the packet information for each group of input/output packets that have the same packet information;determine, by a packet detection unit, statistic information based on the packet information, a retransmission flag, a number of retransmissions of the input/output packet, and history information of acknowledgements (ACKs) resulting from the retransmissions of the input/output packet;classify and detect a retransmission of the input/output packet and a duplicate acknowledgement (ACK) packet resulting from the retransmission of the input/output packet using the statistic information; anddetermine, by a retransmission packet detection unit, whether a fast retransmission flag has been set by a previous detection process when determining that a potential retransmission packet is the retransmission packet,wherein the retransmission packet detection unit determines the retransmission packet to be a fast retransmission packet when determining that the fast retransmission flag has been set and determines the retransmission packet to be a time-out retransmission packet when determining that the fast retransmission flag has not been set,wherein the retransmission packet detection unit increases a retransmission count when determining that the retransmission packet is the time-out retransmission packet;wherein the retransmission packet detection unit stores ACK information of the retransmission packet in the ACKs history information, andwherein the retransmission count is used as a conditional variable for detecting a duplicate ACK packet resulting from a time-out retransmission. |