Noise-containing TCP session stream initial serial number estimation method and related equipment

Through iterative calculation of maximum likelihood estimation and message length constraint relationship, the problem of error correction of session flow sequence number in TCP/IP network protocol under high bit error rate is solved, which significantly improves the accuracy of initial sequence number estimation and session Stream reconstruction capability.

CN118740962APending Publication Date: 2024-10-01Chinese People's Liberation Army Cyberspace Force Information Engineering University
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410997520.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Under high bit error rate conditions, traditional forward error correction and automatic request retransmission technologies are difficult to effectively correct the sequence number errors of session streams in the TCP/IP network protocol, resulting in poor session reassembly performance and inability to support high bit error rate conditions. communication.

Method used

A method for estimating the initial sequence number of a noisy TCP session flow is provided. By receiving the noisy sequence number of the target session flow, the maximum likelihood estimation is used to calculate the initial sequence number bit by bit, and the constraint relationship between the message length and the sequence number is used to iterate. Estimation, improves the accuracy of initial sequence number estimation.

Benefits of technology

In environments with high bit error rates such as 1e-1, 5e-2, and 1e-2, the accuracy of initial sequence number estimation is greatly improved and the ability to reconstruct session streams is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740962A_ABST
    Figure CN118740962A_ABST
Patent Text Reader

Abstract

The invention provides a noisy TCP session stream initial serial number estimation method and related equipment. According to the method, the constraint relation between the message sending serial number and the message length of the same session flow in the TCP protocol is utilized, noisy serial number fields si, i = 1, 2,..., N in N messages are used as N-time independent observation of the initial serial number s1, and iterative estimation is carried out on the initial serial number bit by bit. Compared with the existing method, the method disclosed by the invention can work in high bit error rate environments with bit error rates of 1e <-1 >, 5e <-2 >, 1e <-2 > and the like, so that the estimation accuracy of the initial serial number is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of TCP / IP network protocol and error correction technology, and in particular to a method for estimating an initial sequence number of a noisy TCP session flow and related equipment. Background Art

[0002] In deep space communications and battlefield communications, high bit errors seriously affect communication performance. Traditional forward error correction (FEC) and automatic repeat request (ARQ) have limitations. This is because when the bit error rate is high, the error correction capability of FEC drops sharply. Common channel codes have a channel bit error rate of less than 10 -3 It can work normally when the channel bit error rate is higher than this, and the channel code has almost no error correction capability. ARQ technology requires the existence of a feedback channel in the communication scenario, which limits the application of this type of method.

[0003] Shannon's information theory points out that redundant information can be used to correct data errors and improve transmission reliability. Existing literature (such as literature 1 "Upadhyaya P, Jiang A A. Representation-Oblivious Error Correction by Natural Redundancy [C] / / ICC 2019-2019 IEEE International Conference on Communications (ICC). IEEE, 2019"; literature 2 "Upadhyaya P, Jiang A. Machine Learning for Error Correction with Natural Redundancy [J]. 2019. DOI: 10.48550 / arXiv.1910.07420") systematically proposed the concept of "natural redundancy". "Natural redundancy" is the opposite of "artificial redundancy". Artificial redundancy refers to the redundancy added to the data in order to improve transmission reliability. A typical artificial redundancy is channel coding. For example, in the (1296,1080) system LDPC code, 216 check bits are added for every 1080 information bits to form a channel code with a length of 1296; the receiving end can use the check bits to correct the information bits, thereby improving the reliability of the data. "Natural redundancy" refers to redundancy that does not appear in the data for the purpose of improving transmission reliability. In the above-mentioned literature, it is pointed out that there is redundancy in compressed data for file storage. This is mainly caused by two reasons. First, the computational complexity of a perfect compression algorithm is too high, and in practice, algorithms with low complexity but lower compression effect than the ideal case are tended to be used; second, the data model of data such as speech and images is very complex, and it is difficult to design an optimal compression algorithm. Therefore, existing literature has studied the use of residual redundancy in the source data to correct noise-contaminated data.

[0004] The network protocol represented by TCP / IP is the mainstream protocol standard in network transmission. It adopts a layered design method, that is, it allows the "peer layer" of two communication entities to communicate with each other. Under the layered design, there is redundancy in the message control field. For example, all packets in the same session flow and the same direction have the same source and destination IP; the transport layer protocol number field occupies one byte, but in fact it is likely to be 6 and 17 (indicates that the message transport layer adopts TCP protocol and UDP protocol respectively). It is very valuable to study how to mine and utilize the redundancy of network protocols and correct errors in key header fields. This is because, compared with the data field, the header is more critical to restoring and reconstructing user data. Errors in the header field may cause the session to be unable to be restored. However, errors or even loss of the data field are not fatal in many occasions. For example, in audio and video data, some errors have no significant impact on the file.

[0005] In the TCP protocol, user data is encapsulated into several messages, and the order of the messages is marked by sending sequence numbers. The receiving end sorts the messages in ascending order according to the sequence numbers to restore the user data. The sequence number field plays a vital role in reassembling the session flow and restoring user data. When the sequence number field is wrong, even if most of the message is correct, the message will be discarded. Figure 1 The results of session reassembly and message restoration when the sequence number field is wrong in the "send email" session flow under different channel bit error rates are given. Note that in order to highlight the importance of the "sequence number" field error in restoring user data, it is assumed here that only the sequence number field is wrong and other parts of the message are not wrong. Figure 1 In the figure, (a) is the restored email when the bit error rate is 0, (b) is the restored email when the bit error rate is 1e-3. At this time, the sequence number error causes part of the message to be discarded, and the restored email body is damaged; (c) is the situation when the bit error rate is 1e-2. There are too many message errors and the email cannot be restored.

[0006] The key to studying the reorganization of session flows under high bit error rate conditions is to correct the sequence number of erroneous messages. The literature (Chen Yuexin, Zheng Hui, Zhao Yanqiu, et al. A data error-tolerant sorting algorithm based on sequence number [J]. Journal of Wuhan University of Technology, 2009 (24): 4. DOI: CNKI: SUN: WHGY. 0. 2009-24-030.) studied this problem. A fault-tolerant sorting model was established, the "order statistics" were derived, and a fault-tolerant sorting algorithm was designed. The literature gives the accuracy of the algorithm and the accuracy of the algorithm without fault-tolerant processing through experiments (which will not be repeated in this invention). From the experimental results, it can be seen that when the bit error rate is in the range of 1e-5 to 1e-3 and the session flow contains 100 messages, the error rate of the algorithm is 0; when the session flow contains 10 messages, the error rate of the algorithm is 0. However, when the bit error rate increases further and takes 5e-2, the error rate is 0.118 when the session flow contains 100 messages. The performance of a session flow containing 10 messages was not tested. There were no test results for a higher bit error rate. In fact, the method in this paper failed to fully exploit the relationship between the sending sequence number and the message length in the session flow. The performance was poor under high bit error rate conditions and was not enough to support session flow reconstruction. Summary of the invention

[0007] In order to realize the reconstruction of the session flow under the condition of high bit error rate, the present invention provides a method for estimating the initial sequence number of a noisy TCP session flow and related equipment.

[0008] In a first aspect, the present invention provides a method for estimating an initial sequence number of a noisy TCP session flow, comprising:

[0009] Step 1: Receive the noisy sequence numbers y = {y1, y2, ..., y N},y i represents the noisy sequence number of the i-th message, i=1,…,N;

[0010] Step 2: Use y i (1) , i = 1, ..., N, calculate the maximum likelihood estimate of the first bit of the initial sequence number, y i (1) Represents y i The value of the first bit of ;

[0011] Step 3: Using y i (k) , i = 1, ..., N, k = 2, ... seqLen, calculate the maximum likelihood estimate of the initial sequence number from the 2nd to the seqLenth bit; where seqLen is the total number of bits in the binary representation of the initial sequence number, y i (k) Represents y i The value of the kth bit of .

[0012] Furthermore, step 2 specifically includes:

[0013] Get y i (1) ,i=1,…,N;

[0014] Let O1 (1) =y1 (1) , determine O2 according to the following formula (1) ,…,O N (1) , i=2,…,N;

[0015]

[0016] in, Indicates y i (1) Negate, that is, if y i (1) =1, then If y i (1) =0, then L i It represents the sum of the lengths of the messages before the i-th message in the message sequence consisting of N messages, that is, Among them, l j is the length of the jth message in the current message sequence; according to the TCP protocol specification, there are s i =s1+L i , i = 2, ... N; where s i represents the sequence number of the i-th message, Indicates L i The kth position of

[0017] by Indicates the value of the first bit of the initial sequence number to be estimated;

[0018] If satisfied The judgment is otherwise,

[0019] Furthermore, step 2 also includes:

[0020] make Indicates that in calculating s i =s1+L i When , the value of the carry from the k-1th position to the kth position;

[0021] The value of the carry from the 1st bit to the 2nd bit The calculation formula is

[0022]

[0023] Further, in step 3, the maximum likelihood estimate of the kth bit of the initial sequence number is calculated according to a preset process, k=2, ..., seqLen, and the preset process specifically includes:

[0024] Get y i (k) ,i=1,…,N;

[0025] Let O1 (k) =y1 (k) , determine O2 according to the following formula (k) ,…,O N (k) , i=2,…,N;

[0026]

[0027] If satisfied The judgment is otherwise, in, s i (k) estimates;

[0028] And determine the value of the carry from the kth bit to the k+1th bit according to the following formula:

[0029]

[0030] In a second aspect, the present invention provides a device for estimating an initial sequence number of a noisy TCP session flow, comprising:

[0031] A receiving module is used to receive the noisy sequence numbers y={y1,y2,…,y N};y i represents the noisy sequence number of the i-th message, i=1,…,N;

[0032] The first estimation module is used to use y i (1) , i = 1, ..., N, calculate the maximum likelihood estimate of the first bit of the initial sequence number; y i (1) Represents y i The value of the first bit of ;

[0033] The second estimation module is used to use y i (k) , i = 1, ..., N, k = 2, ... seqLen, calculate the maximum likelihood estimate of the initial sequence number from the 2nd to the seqLenth bit; where seqLen is the total number of bits in the binary representation of the initial sequence number field, y i (k)Represents y i The value of the kth bit of .

[0034] In a third aspect, the present invention provides an electronic device comprising a memory and a processor, wherein the memory stores program codes executable by the processor, and when the processor executes the program codes, a method for estimating an initial sequence number of a noisy TCP session flow as described in the first aspect is implemented.

[0035] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method for estimating an initial sequence number of a noisy TCP session flow as described in the first aspect is implemented.

[0036] Beneficial effects of the present invention:

[0037] The present invention provides a method and related equipment for estimating the initial sequence number of a noisy TCP session flow, which utilizes the constraint relationship between the message sending sequence number and the message length of the same session flow in the TCP protocol to estimate the noisy sequence number field s in N messages. i ,i=1,2,…,N, as N independent observations of the initial sequence number s1, the initial sequence number is iteratively estimated bit by bit. Compared with the existing methods, this method can work in high bit error rate environments such as 1e-1, 5e-2, 1e-2, etc., greatly improving the accuracy of initial sequence number estimation. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 The results of session reassembly and message restoration when the sequence number field is wrong in the "send email" session flow under different channel bit error rates: (a) restored email when there is no error; (b) restored email when the bit error rate is 1e-3; (c) email cannot be restored when the bit error rate is 1e-2;

[0039] Figure 2 A schematic diagram of a flow chart of a method for estimating an initial sequence number of a noisy TCP session flow provided by an embodiment of the present invention;

[0040] Figure 3 A schematic diagram of a structure of an initial sequence number estimation transposition of a noisy TCP session flow provided by an embodiment of the present invention;

[0041] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution in the embodiment of the present invention will be clearly described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0043] In order to facilitate understanding of the technical solution of the present invention, the problem to be solved by the present invention is described as follows: a message generated by an application is encapsulated in N TCP messages, and the initial sequence number s1 is randomly selected from [0 to 2 32 ], the sequence number of the i-th message in the session flow is s i , the message length is l i , define the cumulative length of the message as L i :

[0044] L1=0

[0045] Where i = 2,…,N

[0046] s i and L i satisfy

[0047] s i =s1+L i (1)

[0048] The message passes through a bit error rate of p e The BSC channel is obtained by observing the noisy sequence number y = {y1, y2, ..., y N}

[0049] The problem solved by the present invention is to estimate the initial sequence number s1 by observing the sequence number fields in N messages of the session flow.

[0050] Furthermore, for the convenience of description, the following assumptions and symbol explanations are given.

[0051] (1) High-low order assumption

[0052] Assume that the binary representation of the sequence number field is seqLen bits in total, and is arranged in "network byte order", that is, the low address stores the low bit, the first bit is the lowest bit, and the seqLenth bit is the highest bit.

[0053] (2) Explanation of symbols

[0054] use Represents the value of the kth bit in the binary representation of the sequence number in the i-th message.

[0055] use Indicates the sum of the lengths of the messages before the i-th message in the message sequence consisting of N messages, L i The kth bit of the binary representation of .

[0056] use It represents the value of the carry from the k-1th bit to the kth bit when calculating equation (1).

[0057] use Indicates i (k) Estimates.

[0058] Based on the above content, an embodiment of the present invention provides a method for estimating the initial sequence number of a noisy TCP session flow, such as Figure 2 As shown, the following steps are included:

[0059] S101: Receive the noisy sequence numbers y={y1, y2, ..., y N},y i represents the noisy sequence number of the i-th message, i=1,…,N;

[0060] S102: Using y i (1) , i = 1, ..., N, calculate the maximum likelihood estimate of the first bit of the initial sequence number, y i (1) Represents y i The value of the first bit of ;

[0061] Specifically, this step includes the following sub-steps:

[0062] S1021: Get y i (1) ,i=1,…,N;

[0063] S1022: O1 (1) =y1 (1) , determine O2 according to the following formula (1) ,…,O N (1) , i=2,…,N;

[0064]

[0065] in, Indicates y i (1) Negate, that is, if y i (1) =1, then If y i (1) =0, then L iIndicates the sum of the lengths of the messages before the i-th message in a message sequence consisting of N messages; according to the TCP protocol specification, there are s i =s1+L i , i = 2, ... N; where s i represents the sequence number of the i-th message, Indicates L i The kth position of

[0066] S1023: Indicates the value of the first bit of the initial sequence number to be estimated; if The judgment is otherwise,

[0067] S1024: Order Indicates that in calculating s i =s1+L i When , the value of the carry from the k-1th bit to the kth bit is calculated; the value of the carry from the 1st bit to the 2nd bit is calculated according to the following formula

[0068]

[0069] S103: Use y i (k) , i = 1, ..., N, k = 2, ... seqLen, calculate the maximum likelihood estimate of the initial sequence number from the 2nd to the seqLenth bit; where seqLen represents the total number of bits in the binary representation of the initial sequence number, y i (k) Represents y i The value of the kth bit of .

[0070] Specifically, the maximum likelihood estimate of the kth bit of the initial sequence number is calculated according to a preset process, k=2, ..., seqLen, and the preset process specifically includes:

[0071] S1031: Get y i (k) ,i=1,…,N;

[0072] S1032: Order O1 (k) =u1 (k) , determine O2 according to the following formula (k) ,…,O N (k) , i=2,…,N;

[0073]

[0074] S1033: If satisfied The judgment is otherwise, in, s i (k) estimates;

[0075] S1034: Determine the value of the carry from the kth bit to the k+1th bit according to the following formula:

[0076]

[0077] The effect of the method of the present invention is illustrated by experiments.

[0078] Table 1 Experimental results

[0079]

[0080]

[0081] In Table 1, the first row gives the bit error rate, the second row is the probability of error in the sequence number field when no error correction method is used, and the third to seventh rows are the error rates of the initial sequence number estimated by the method proposed in the present invention when the session contains N messages.

[0082] It can be seen from the above experiment that the method for estimating the initial sequence number of a noisy TCP session flow provided by the present invention utilizes the constraint relationship between the message sending sequence number and the message length of the same session flow in the TCP protocol to convert the noisy sequence number field s in N messages into i ,i=2,…,n, as N independent observations of the initial sequence number s1, the initial sequence number is iteratively estimated bit by bit. Compared with the existing methods, this method can work in high signal-to-noise ratio environments such as bit error rates of 1e-1, 5e-2, and 1e-2, greatly improving the accuracy of initial sequence number estimation.

[0083] Corresponding to the above method, the embodiment of the present invention further provides a device for estimating the initial sequence number of a noisy TCP session flow, such as Figure 3 As shown, it includes: a receiving module, a first estimating module and a second estimating module.

[0084] The receiving module is used to receive the noisy sequence numbers y={y1,y2,…,y N};y i represents the noisy sequence number of the i-th message, i=1,…,N; the first estimation module is used to use y i (1) , i = 1, ..., N, calculate the maximum likelihood estimate of the first bit of the initial sequence number; y i (1) Represents y i The second estimation module is used to use y i(k) , i = 1, ..., N, k = 2, ... seqLen, calculate the maximum likelihood estimate of the initial sequence number from the 2nd to the seqLenth bit; where seqLen represents the total number of bits in the binary representation of the initial sequence number field, y i (k) Represents y i The value of the kth bit of .

[0085] It should be noted that the device for estimating the initial sequence number of a noisy TCP session flow provided in the embodiment of the present invention is for realizing the above method. Its function can be referred to the above method embodiment and will not be described in detail here.

[0086] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4 As shown, the electronic device may include: a processor 401, a communication interface 402, a memory 403 and a communication bus 404, wherein the processor 401, the communication interface 402 and the memory 403 communicate with each other through the communication bus 404. The processor 401 may call the logic instructions in the memory 403 to execute the user risk behavior perception method based on the large language model, the method comprising: receiving the noisy sequence numbers y={y1, y2, ..., y N},y i represents the noisy sequence number of the i-th message, i = 1, ..., N; using y i (1) , i = 1, ..., N, calculate the maximum likelihood estimate of the first bit of the initial sequence number, y i (1) Represents y i The value of the first bit of i (k) , i = 1, ..., N, k = 2, ... seqLen, calculate the maximum likelihood estimate of the initial sequence number from the 2nd to the seqLenth bit; where seqLen represents the total number of bits in the binary representation of the initial sequence number, y i (k) Represents y i The value of the kth bit of .

[0087] In addition, when the logic instructions in the above-mentioned memory 403 are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0088] The embodiment of the present invention further provides a computer program product, the computer program product comprising a computer program stored on a computer-readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, the computer can execute the methods provided by the above-mentioned method embodiments, for example, comprising: receiving the noisy sequence numbers y={y1, y2, ..., y N},y i represents the noisy sequence number of the i-th message, i = 1, ..., N; using y i (1) , i = 1, ..., N, calculate the maximum likelihood estimate of the first bit of the initial sequence number, y i (1) Represents y i The value of the first bit of i (k) , i = 1, ..., N, k = 2, ... seqLen, calculate the maximum likelihood estimate of the initial sequence number from the 2nd to the seqLenth bit; where seqLen represents the total number of bits in the binary representation of the initial sequence number, y i (k) Represents y i The value of the kth bit of .

[0089] The embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method provided by the above method embodiments is implemented, for example, including: receiving the noisy sequence numbers y={y1, y2, ..., y N},y i represents the noisy sequence number of the i-th message, i = 1, ..., N; using y i (1), i = 1, ..., N, calculate the maximum likelihood estimate of the first bit of the initial sequence number, y i (1) Represents y i The value of the first bit of i (k) , i = 1, ..., N, k = 2, ... seqLen, calculate the maximum likelihood estimate of the initial sequence number from the 2nd to the seqLenth bit; where seqLen represents the total number of bits in the binary representation of the initial sequence number, y i (k) Represents y i The value of the kth bit of .

[0090] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0091] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for estimating the initial sequence number of a noisy TCP session flow, characterized in that: include: Step 1: Receive the noisy sequence numbers y = {y1, y2, ..., y N },y i represents the noisy sequence number of the i-th message, i=1,...,N; Step 2: Use y i (1) , i = 1, ..., N, calculate the maximum likelihood estimate of the first bit of the initial sequence number, y i (1) Represents y i The value of the first bit of ; Step 3: Using y i (k) , i = 1, ..., N, k = 2, ... seqLen, calculate the maximum likelihood estimate of the initial sequence number from the 2nd to the seqLenth bit; where seqLen is the total number of bits in the binary representation of the initial sequence number, y i ( k ) represents the value of the kth bit of yi.

2. A method for estimating the initial sequence number of a noisy TCP session flow according to claim 1, characterized in that: Step 2 specifically includes: Get y i (1) , i=1,...,N; Let O1 (1) =y1 (1) , determine O2 according to the following formula (1) , ..., O N (1) , i = 2, ..., N; in, Indicates the inversion of yi(1), that is, if yi(1) = 1, then If yi(1)=0, then L i It represents the sum of the lengths of the messages before the i-th message in the message sequence consisting of N messages, that is, Among them, l j is the length of the jth message in the current message sequence; according to the TCP protocol specification, there are s i =s1+L i , i = 2, ... N; where s i represents the sequence number of the i-th message, Indicates L i The kth position of by Indicates the value of the first bit of the initial sequence number to be estimated; If satisfied The judgment is otherwise, 3. A method for estimating the initial sequence number of a noisy TCP session flow according to claim 2, characterized in that: Step 2 also includes: make Indicates that in calculating s i =s1+L i When , the value of the carry from the k-1th position to the kth position; The value of the carry from the 1st bit to the 2nd bit The calculation formula is 4. A method for estimating the initial sequence number of a noisy TCP session flow according to claim 3, characterized in that: In step 3, the maximum likelihood estimate of the kth bit of the initial sequence number is calculated according to a preset process, k=2, ..., seqLen, and the preset process specifically includes: Get y i (k) , i=1,...,N; Let O1 (k) =y1 (k) , determine O2 according to the following formula (k) , ..., O N (k) , i = 2, ..., N; If satisfied The judgment is otherwise, in, s i (k) estimates; And determine the value of the carry from the kth position to the k+1th position according to the following formula:

5. A device for estimating the initial sequence number of a noisy TCP session flow, characterized in that: include: A receiving module is used to receive the noisy sequence numbers y={y1, y2, ..., y N },y i represents the noisy sequence number of the i-th message, i=1,...,N; The first estimation module is used to use y i (1) , i = 1, ..., N, calculate the maximum likelihood estimate of the first bit of the initial sequence number; y i (1) represents the value of the first bit of yi; The second estimation module is used to use y i (k) , i = 1, ..., N, k = 2, ... seqLen, calculate the maximum likelihood estimate of the initial sequence number from the 2nd to the seqLenth bit; where seqLen is the total number of bits in the binary representation of the initial sequence number field, y i ( k ) represents the value of the kth bit of yi.

6. An electronic device comprising a memory and a processor, characterized in that: The memory stores program codes that can be executed by the processor, and when the processor executes the program codes, the method for estimating the initial sequence number of a noisy TCP session flow as described in any one of claims 1 to 4 is implemented.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for estimating the initial sequence number of a noisy TCP session flow according to any one of claims 1 to 4 is implemented.

Citation Information

Cited By

  • TCP packet forward fault-tolerant rearrangement method based on protocol natural redundancy and related equipment

    CN122027076A