TCP/IP packet analysis - reasons for TCP RST - networking

Could someone look at the following packet capture and tell me what may be happening? Packet 57 shows the TCP reset from the server side. This is not expected. After the TCP reset, retrans packets are still arriving. Could the reason for the TCP reset be explained by this data?
49 2022-04-26 10:35:20.613859 xx.xxx.x.xxx 10.30.16.101 TLSv1.2 476 Application Data
50 2022-04-26 10:35:20.613891 10.30.16.101 xx.xxx.x.xxx TCP 66 15189 → 2017 [ACK] Seq=45 Ack=7929 Win=19203 Len=0 TSval=1662586616 TSecr=1410411633
51 2022-04-26 10:35:20.803241 xx.xxx.x.xxx 10.30.16.101 TLSv1.2 384 Application Data
52 2022-04-26 10:35:20.803289 10.30.16.101 xx.xxx.x.xxx TCP 66 15189 → 2017 [ACK] Seq=45 Ack=8247 Win=19203 Len=0 TSval=1662586806 TSecr=1410411823
53 2022-04-26 10:35:20.992987 xx.xxx.x.xxx 10.30.16.101 TLSv1.2 97 Application Data
54 2022-04-26 10:35:20.993041 10.30.16.101 xx.xxx.x.xxx TCP 66 15189 → 2017 [ACK] Seq=45 Ack=8278 Win=19203 Len=0 TSval=1662586995 TSecr=1410412013
55 2022-04-26 10:35:23.898574 xx.xxx.x.xxx 10.30.16.101 TLSv1.2 97 Application Data
56 2022-04-26 10:35:23.898613 10.30.16.101 xx.xxx.x.xxx TCP 66 15189 → 2017 [ACK] Seq=45 Ack=8309 Win=19203 Len=0 TSval=1662589901 TSecr=1410414918
57 2022-04-26 10:35:23.900616 xx.xxx.x.xxx 10.30.16.101 TCP 54 2017 → 15189 [RST, ACK] Seq=8309 Ack=45 Win=19203 Len=0
58 2022-04-26 10:35:24.106220 xx.xxx.x.xxx 10.30.16.101 TCP 97 [TCP Spurious Retransmission] 2017 → 15189 [PSH, ACK] Seq=8278 Ack=45 Win=277 Len=31 TSval=1410415126 TSecr=1662586995
59 2022-04-26 10:35:24.106255 10.30.16.101 xx.xxx.x.xxx TCP 54 15189 → 2017 [RST] Seq=45 Win=0 Len=0
60 2022-04-26 10:35:24.244805 xx.xxx.x.xxx 10.30.16.101 TLSv1.2 475 Application Data
61 2022-04-26 10:35:24.244835 10.30.16.101 xx.xxx.x.xxx TCP 54 15189 → 2017 [RST] Seq=45 Win=0 Len=0
62 2022-04-26 10:35:24.314219 xx.xxx.x.xxx 10.30.16.101 TCP 506 [TCP Retransmission] 2017 → 15189 [PSH, ACK] Seq=8278 Ack=45 Win=277 Len=440 TSval=1410415334 TSecr=1662586995
63 2022-04-26 10:35:24.314260 10.30.16.101 xx.xxx.x.xxx TCP 54 15189 → 2017 [RST] Seq=45 Win=0 Len=0
64 2022-04-26 10:35:24.746226 xx.xxx.x.xxx 10.30.16.101 TCP 506 [TCP Retransmission] 2017 → 15189 [PSH, ACK] Seq=8278 Ack=45 Win=277 Len=440 TSval=1410415766 TSecr=1662586995
65 2022-04-26 10:35:24.746279 10.30.16.101 xx.xxx.x.xxx TCP 54 15189 → 2017 [RST] Seq=45 Win=0 Len=0
66 2022-04-26 10:35:25.578251 xx.xxx.x.xxx 10.30.16.101 TCP 506 [TCP Retransmission] 2017 → 15189 [PSH, ACK] Seq=8278 Ack=45 Win=277 Len=440 TSval=1410416598 TSecr=1662586995
67 2022-04-26 10:35:25.578306 10.30.16.101 xx.xxx.x.xxx TCP 54 15189 → 2017 [RST] Seq=45 Win=0 Len=0
68 2022-04-26 10:35:27.246246 xx.xxx.x.xxx 10.30.16.101 TCP 506 [TCP Retransmission] 2017 → 15189 [PSH, ACK] Seq=8278 Ack=45 Win=277 Len=440 TSval=1410418266 TSecr=1662586995
69 2022-04-26 10:35:27.246286 10.30.16.101 xx.xxx.x.xxx TCP 54 15189 → 2017 [RST] Seq=45 Win=0 Len=0
70 2022-04-26 10:35:30.698227 xx.xxx.x.xxx 10.30.16.101 TCP 506 [TCP Retransmission] 2017 → 15189 [PSH, ACK] Seq=8278 Ack=45 Win=277 Len=440 TSval=1410421718 TSecr=1662586995
71 2022-04-26 10:35:30.698289 10.30.16.101 xx.xxx.x.xxx TCP 54 15189 → 2017 [RST] Seq=45 Win=0 Len=0
Any direction is appreciated.
Thanks

Related

OpenCL does not run correctly with AMD platform

I guess the problem of random result maybe comes from synchronizaion.
So I use some events to synchronize the command queue.
cl::Event evtWriteBufferFinished;
errNum = queues[0].enqueueWriteBuffer(buffers[0], CL_FALSE, 0, sizeof(cl_int)*NUM_BUFFER_ELEMENTS*devices.size(), inputOutput, NULL, &evtWriteBufferFinished);
std::vector<cl::Event> events;
for (size_t i = 0; i < queues.size(); i++)
{
cl::Event evt;
std::vector<cl::Event> waitEvts(1, evtWriteBufferFinished);
errNum = queues[i].enqueueNDRangeKernel(kernels[i],
cl::NullRange,
cl::NDRange(NUM_BUFFER_ELEMENTS),
cl::NDRange(1), &waitEvts, &evt);
events.push_back(evt);
}
cl::Event evtReadBufferFinished;
errNum = queues[0].enqueueReadBuffer(buffers[0], CL_FALSE, 0, sizeof(cl_int)*NUM_BUFFER_ELEMENTS*devices.size(), inputOutput, &events, &evtReadBufferFinished);
evtReadBufferFinished.wait();
There is no random result again!
But new question is occured:
CL_DEVICE_TYPE: 4
CL_DEVICE_TYPE: 2
0 1 4 9 16 25 36 49 64 81 100 121 144 169 196 225 256 289 324 361 400 441 484 529 576 625 676 729 784 841 900 961 1024 1089 1156 1225 1296 1369 1444 1521 1600 1681 1764 1849 1936 2025 2116 2209 2304 2401 2500 2601 2704 2809 2916 3025 3136 3249 3364 3481 3600 3721 3844 3969 4096 4225 4356 4489 4624 4761 4900 5041 5184 5329 5476 5625 5776 5929 6084 6241 6400 6561 6724 6889 7056 7225 7396 7569 7744 7921 8100 8281 8464 8649 8836 9025 9216 9409 9604 9801 10000 10201 10404 10609 10816 11025 11236 11449 11664 11881 12100 12321 12544 12769 12996 13225 13456 13689 13924 14161 14400 14641 14884 15129 15376 15625 15876 16129
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255
The kernel on CPU is not running anyway.
I inspect the code, and test:
std::vector<cl::Platform> platforms;
cl_int errNum = cl::Platform::get(&platforms);
if (errNum != CL_SUCCESS || platforms.empty())
{
std::cerr << "Failed to find any OpenCL platforms." << std::endl;
return 1;
}
auto platform = platforms[0];
If I use platforms[0], the bad result is returned.
If I use platforms[1], there is no problem!
In my laptop:
platforms[0] is "AMD Accelerated Parallel Processing"
platforms[1] is "Intel(R) OpenCL"
Why?
How can I solve this problem? Thanks

Cant ping a machine with2 NICs

There is a machine in the office with 2 NICS installed, a web server is running on it.
1st NIC) hardwired connection :
Connection specific DNS Suffix : nl.xxx.com
IP: 10.0.232.62
Subnet: 255.255.255.0
Default Gateway : 10.0.232.1
2nd NIC) Wireless network connecton
Connection specific DNS Suffix : nl.xxx.com
IP: 10.0.238.122
Subnet: 255.255.255.0
Default Gateway: 10.0.238.1
There is another machine with only one NIC which is connected to the same wireless network with the first machine.
Connection specific DNS Suffix : nl.xxx.com
IP: 10.0.238.92
Subnet: 255.255.255.0
Default Gateway: 10.0.238.1
I can not ping the first machine(web server) nor can I access the web server on port 80. The connection can not be established. This might be a routing problem because the first server has 2 NICs installed. When I disconnect the first server from hardwired connection, there is no problem. But the first machine needs to be connected to both 2 NICs.
Can you please help me how to solve this connectivity problem.
Both machines are Windows 7 machines.
ROUTE PRINT OUTPUT WHEN 2NICS CONNECTED
C:\Users\ozgen.gunay>route PRINT
===========================================================================
Interface List
18...e8 94 f6 10 c5 87 ......TP-LINK N600 Wireless Dual Band USB Adapter
11...bc 30 5b eb 3d 35 ......Broadcom NetXtreme 57xx Gigabit Controller
20...00 50 56 c0 00 01 ......VMware Virtual Ethernet Adapter for VMnet1
22...00 50 56 c0 00 08 ......VMware Virtual Ethernet Adapter for VMnet8
1...........................Software Loopback Interface 1
13...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
19...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #4
21...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #5
23...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #6
===========================================================================
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 10.0.232.1 10.0.232.62 10
0.0.0.0 0.0.0.0 10.0.238.1 10.0.238.122 25
10.0.232.0 255.255.255.0 On-link 10.0.232.62 266
10.0.232.62 255.255.255.255 On-link 10.0.232.62 266
10.0.232.255 255.255.255.255 On-link 10.0.232.62 266
10.0.238.0 255.255.255.0 On-link 10.0.238.122 281
10.0.238.122 255.255.255.255 On-link 10.0.238.122 281
10.0.238.255 255.255.255.255 On-link 10.0.238.122 281
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
192.168.17.0 255.255.255.0 On-link 192.168.17.1 276
192.168.17.1 255.255.255.255 On-link 192.168.17.1 276
192.168.17.255 255.255.255.255 On-link 192.168.17.1 276
192.168.248.0 255.255.255.0 On-link 192.168.248.1 276
192.168.248.1 255.255.255.255 On-link 192.168.248.1 276
192.168.248.255 255.255.255.255 On-link 192.168.248.1 276
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 10.0.232.62 266
224.0.0.0 240.0.0.0 On-link 192.168.17.1 276
224.0.0.0 240.0.0.0 On-link 192.168.248.1 276
224.0.0.0 240.0.0.0 On-link 10.0.238.122 281
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 10.0.232.62 266
255.255.255.255 255.255.255.255 On-link 192.168.17.1 276
255.255.255.255 255.255.255.255 On-link 192.168.248.1 276
255.255.255.255 255.255.255.255 On-link 10.0.238.122 281
===========================================================================
Persistent Routes:
None
IPv6 Route Table
===========================================================================
Active Routes:
If Metric Network Destination Gateway
1 306 ::1/128 On-link
11 266 fe80::/64 On-link
20 276 fe80::/64 On-link
22 276 fe80::/64 On-link
18 281 fe80::/64 On-link
11 266 fe80::81b9:bd46:d647:e4d1/128
On-link
20 276 fe80::8cd1:1226:41e0:2004/128
On-link
18 281 fe80::b887:5d9e:22a4:18be/128
On-link
22 276 fe80::fc51:3127:e185:92a7/128
On-link
1 306 ff00::/8 On-link
11 266 ff00::/8 On-link
20 276 ff00::/8 On-link
22 276 ff00::/8 On-link
18 281 ff00::/8 On-link
===========================================================================
Persistent Routes:
None
ROUTE PRINT OUTPUT WHEN 1NIC CONNECTED
C:\Users\ozgen.gunay>route PRINT
===========================================================================
Interface List
18...e8 94 f6 10 c5 87 ......TP-LINK N600 Wireless Dual Band USB Adapter
20...00 50 56 c0 00 01 ......VMware Virtual Ethernet Adapter for VMnet1
22...00 50 56 c0 00 08 ......VMware Virtual Ethernet Adapter for VMnet8
1...........................Software Loopback Interface 1
13...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
19...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #4
21...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #5
23...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #6
===========================================================================
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 10.0.238.1 10.0.238.122 25
10.0.238.0 255.255.255.0 On-link 10.0.238.122 281
10.0.238.122 255.255.255.255 On-link 10.0.238.122 281
10.0.238.255 255.255.255.255 On-link 10.0.238.122 281
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
192.168.17.0 255.255.255.0 On-link 192.168.17.1 276
192.168.17.1 255.255.255.255 On-link 192.168.17.1 276
192.168.17.255 255.255.255.255 On-link 192.168.17.1 276
192.168.248.0 255.255.255.0 On-link 192.168.248.1 276
192.168.248.1 255.255.255.255 On-link 192.168.248.1 276
192.168.248.255 255.255.255.255 On-link 192.168.248.1 276
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 192.168.17.1 276
224.0.0.0 240.0.0.0 On-link 192.168.248.1 276
224.0.0.0 240.0.0.0 On-link 10.0.238.122 281
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 192.168.17.1 276
255.255.255.255 255.255.255.255 On-link 192.168.248.1 276
255.255.255.255 255.255.255.255 On-link 10.0.238.122 281
===========================================================================
Persistent Routes:
None
IPv6 Route Table
===========================================================================
Active Routes:
If Metric Network Destination Gateway
1 306 ::1/128 On-link
20 276 fe80::/64 On-link
22 276 fe80::/64 On-link
18 281 fe80::/64 On-link
20 276 fe80::8cd1:1226:41e0:2004/128
On-link
18 281 fe80::b887:5d9e:22a4:18be/128
On-link
22 276 fe80::fc51:3127:e185:92a7/128
On-link
1 306 ff00::/8 On-link
20 276 ff00::/8 On-link
22 276 ff00::/8 On-link
18 281 ff00::/8 On-link
===========================================================================
Persistent Routes:
None

Do a nonlinear least square (nls) fit for a sinusoidal model

I want to fit the following function to my data:
f(x) = Offset+Amplitudesin(FrequencyT+Phase),
or according to Wikipedia: f(x) = C+alphasin(omegaT+phi)
my data is stored in a file in two columns, and I import them by the following:
data<-read.table("C:/PATH/data.txt", header = FALSE, sep = "\t")
and convert them by the following:
minV<-data[3]
cV<-data[1]
values<-as.numeric(unlist(minV))
T<-as.numeric(unlist(cV))
Thus I get two variable of type double, one called "T" (equivalent to time T in the Equation above) and one called "values" (equivalent to the value of the function f(x) in the Equation above).
So far, everything works very fine!
However, when I want to fit f(x) to my data, I get bad results (if any). Here's my code:
r<-nls(values~C+alpha*sin(W*T+phi), start=list(C=8958.34, alpha=115.886, W=0.0652, phi=14.9286),
My problem is now, that the only thing that could be wrong in this simple four-lines-example (at least as far as I know) are the starting values. However, they are a result of a Gnuplot fit (it uses the least squares method) and they look pretty fine (as I don't have "10 reputation" I cannot attach a plot, sry). {edit1: plot attached}
Result of the code from above:
C: 8950.06571617 alpha: -23.58439668 W: 0.06416806 phi: 16.46585060
My subsequent step was to vary the starting values to get a reasonable result (perhaps the starting values are too good...) - no success!
So my question is now: Where is the problem? I wanted to use R, because I hoped, that I can produce a fit, that is a) better with b) worse starting values than Gnuplot (t least b) is a very important criteria for me, that's why I don't want to use Gnuplot).
Ps.: Yes, this is my first day of using R. So if you've got a solution/reason for me it would be nice if I could understand it.
PPs.: For those who want to get related information: I've collected a lot of links, so if i get at least "10 reputation" I can post them here. {edit2: links attached}
[R] fitting periodic 'sine wave' model
Nonlinear Regression and Nonlinear Least Squares
Nonlinear Regression and Nonlinear Least Squares in R
Nichtlineare Regression (German)
R: Nonlinear Least Squares
How to fit a curve to a sinusoidal wave
official Documentation -> Manuals
Link Roland provided in his answer
PPs.: Here the data, I used (seperated by tabstop, only column one("counter") and three ("min value") were used; I deleted some values of the last column due to maximum number characters/post {edit3: deleted additional entries, due to attached links}) {edit4: changed from "column two ("angle")" to "column one ("counter")". In the code and the answers its column one, as well.}:
#Counter angle min value EV-min value max value EV_max-value
1 0,703125 9033 -81,990234375 9043 -82,556640625
2 1,40625 9033 -81,990234375 9042 -81,556640625
3 2,109375 9027 -75,990234375 9042 -81,556640625
4 2,8125 9025 -73,990234375 9038 -77,556640625
5 3,515625 9018 -66,990234375 9031 -70,556640625
6 4,21875 9013 -61,990234375 9025 -64,556640625
7 4,921875 9009 -57,990234375 9020 -59,556640625
8 5,625 9011 -59,990234375 9017 -56,556640625
9 6,328125 9000 -48,990234375 9009 -48,556640625
10 7,03125 8996 -44,990234375 9004 -43,556640625
11 7,734375 8989 -37,990234375 9004 -43,556640625
12 8,4375 8983 -31,990234375 8993 -32,556640625
13 9,140625 8983 -31,990234375 8991 -30,556640625
14 9,84375 8982 -30,990234375 8991 -30,556640625
15 10,546875 8975 -23,990234375 8983 -22,556640625
16 11,25 8964 -12,990234375 8978 -17,556640625
17 11,953125 8967 -15,990234375 8977 -16,556640625
18 12,65625 8958 -6,990234375 8967 -6,556640625
19 13,359375 8951 0,009765625 8960 0,443359375
20 14,0625 8947 4,009765625 8954 6,443359375
21 14,765625 8938 13,009765625 8951 9,443359375
22 15,46875 8933 18,009765625 8940 20,443359375
23 16,171875 8929 22,009765625 8941 19,443359375
24 16,875 8925 26,009765625 8933 27,443359375
25 17,578125 8923 28,009765625 8929 31,443359375
26 18,28125 8920 31,009765625 8927 33,443359375
27 18,984375 8912 39,009765625 8921 39,443359375
28 19,6875 8899 52,009765625 8916 44,443359375
29 20,390625 8899 52,009765625 8907 53,443359375
30 21,09375 8894 57,009765625 8901 59,443359375
31 21,796875 8892 59,009765625 8896 64,443359375
32 22,5 8886 65,009765625 8896 64,443359375
33 23,203125 8881 70,009765625 8892 68,443359375
34 23,90625 8879 72,009765625 8886 74,443359375
35 24,609375 8884 67,009765625 8888 72,443359375
36 25,3125 8875 76,009765625 8886 74,443359375
37 26,015625 8864 87,009765625 8881 79,443359375
38 26,71875 8860 91,009765625 8870 90,443359375
39 27,421875 8864 87,009765625 8872 88,443359375
40 28,125 8862 89,009765625 8872 88,443359375
41 28,828125 8859 92,009765625 8868 92,443359375
42 29,53125 8857 94,009765625 8864 96,443359375
43 30,234375 8852 99,009765625 8860 100,443359375
44 30,9375 8852 99,009765625 8855 105,443359375
45 31,640625 8847 104,009765625 8857 103,443359375
46 32,34375 8844 107,009765625 8853 107,443359375
47 33,046875 8842 109,009765625 8849 111,443359375
48 33,75 8844 107,009765625 8855 105,443359375
49 34,453125 8846 105,009765625 8852 108,443359375
50 35,15625 8846 105,009765625 8853 107,443359375
51 35,859375 8839 112,009765625 8849 111,443359375
52 36,5625 8841 110,009765625 8849 111,443359375
53 37,265625 8841 110,009765625 8846 114,443359375
54 37,96875 8844 107,009765625 8852 108,443359375
55 38,671875 8841 110,009765625 8852 108,443359375
56 39,375 8835 116,009765625 8846 114,443359375
57 40,078125 8839 112,009765625 8847 113,443359375
58 40,78125 8839 112,009765625 8847 113,443359375
59 41,484375 8846 105,009765625 8857 103,443359375
60 42,1875 8849 102,009765625 8860 100,443359375
61 42,890625 8852 99,009765625 8860 100,443359375
62 43,59375 8852 99,009765625 8860 100,443359375
63 44,296875 8853 98,009765625 8866 94,443359375
64 45 8857 94,009765625 8864 96,443359375
65 45,703125 8860 91,009765625 8864 96,443359375
66 46,40625 8860 91,009765625 8870 90,443359375
67 47,109375 8866 85,009765625 8875 85,443359375
68 47,8125 8868 83,009765625 8878 82,443359375
69 48,515625 8875 76,009765625 8884 76,443359375
70 49,21875 8884 67,009765625 8892 68,443359375
71 49,921875 8883 68,009765625 8894 66,443359375
72 50,625 8888 63,009765625 8897 63,443359375
73 51,328125 8892 59,009765625 8899 61,443359375
74 52,03125 8897 54,009765625 8909 51,443359375
75 52,734375 8903 48,009765625 8910 50,443359375
76 53,4375 8910 41,009765625 8921 39,443359375
77 54,140625 8916 35,009765625 8923 37,443359375
78 54,84375 8923 28,009765625 8929 31,443359375
79 55,546875 8925 26,009765625 8936 24,443359375
80 56,25 8930 21,009765625 8938 22,443359375
81 56,953125 8929 22,009765625 8938 22,443359375
82 57,65625 8936 15,009765625 8947 13,443359375
83 58,359375 8943 8,009765625 8954 6,443359375
84 59,0625 8947 4,009765625 8960 0,443359375
85 59,765625 8960 -8,990234375 8965 -4,556640625
86 60,46875 8965 -13,990234375 8973 -12,556640625
87 61,171875 8964 -12,990234375 8973 -12,556640625
88 61,875 8969 -17,990234375 8980 -19,556640625
89 62,578125 8967 -15,990234375 8980 -19,556640625
90 63,28125 8969 -17,990234375 8975 -14,556640625
91 63,984375 8975 -23,990234375 8983 -22,556640625
92 64,6875 8978 -26,990234375 8991 -30,556640625
93 65,390625 8985 -33,990234375 8998 -37,556640625
94 66,09375 8991 -39,990234375 9000 -39,556640625
95 66,796875 9000 -48,990234375 9006 -45,556640625
96 67,5 9004 -52,990234375 9013 -52,556640625
97 68,203125 9009 -57,990234375 9017 -56,556640625
98 68,90625 9013 -61,990234375 9022 -61,556640625
99 69,609375 9017 -65,990234375 9027 -66,556640625
100 70,3125 9024 -72,990234375 9033 -72,556640625
101 71,015625 9029 -77,990234375 9037 -76,556640625
102 71,71875 9031 -79,990234375 9042 -81,556640625
103 72,421875 9035 -83,990234375 9043 -82,556640625
104 73,125 9040 -88,990234375 9048 -87,556640625
105 73,828125 9048 -96,990234375 9054 -93,556640625
106 74,53125 9049 -97,990234375 9060 -99,556640625
107 75,234375 9051 -99,990234375 9064 -103,556640625
108 75,9375 9061 -109,990234375 9072 -111,556640625
109 76,640625 9060 -108,990234375 9069 -108,556640625
110 77,34375 9066 -114,990234375 9072 -111,556640625
111 78,046875 9064 -112,990234375 9072 -111,556640625
112 78,75 9067 -115,990234375 9071 -110,556640625
113 79,453125 9072 -120,990234375 9082 -121,556640625
114 80,15625 9069 -117,990234375 9080 -119,556640625
115 80,859375 9072 -120,990234375 9082 -121,556640625
116 81,5625 9074 -122,990234375 9083 -122,556640625
117 82,265625 9078 -126,990234375 9089 -128,556640625
118 82,96875 9082 -130,990234375 9090 -129,556640625
119 83,671875 9085 -133,990234375 9090 -129,556640625
120 84,375 9078 -126,990234375 9089 -128,556640625
121 85,078125 9072 -120,990234375 9083 -122,556640625
122 85,78125 9072 -120,990234375 9080 -119,556640625
123 86,484375 9076 -124,990234375 9085 -124,556640625
124 87,1875 9071 -119,990234375 9076 -115,556640625
125 87,890625 9067 -115,990234375 9074 -113,556640625
126 88,59375 9066 -114,990234375 9078 -117,556640625
127 89,296875 9066 -114,990234375 9078 -117,556640625
128 90 9066 -114,990234375 9076 -115,556640625
129 90,703125 9066 -114,990234375 9072 -111,556640625
130 91,40625 9061 -109,990234375 9071 -110,556640625
131 92,109375 9058 -106,990234375 9069 -108,556640625
132 92,8125 9061 -109,990234375 9069 -108,556640625
133 93,515625 9054 -102,990234375 9069 -108,556640625
134 94,21875 9053 -101,990234375 9056 -95,556640625
135 94,921875 9053 -101,990234375 9060 -99,556640625
136 95,625 9048 -96,990234375 9056 -95,556640625
137 96,328125 9042 -90,990234375 9051 -90,556640625
138 97,03125 9042 -90,990234375 9045 -84,556640625
139 97,734375 9035 -83,990234375 9043 -82,556640625
140 98,4375 9033 -81,990234375 9043 -82,556640625
141 99,140625 9024 -72,990234375 9031 -70,556640625
142 99,84375 9027 -75,990234375 9037 -76,556640625
143 100,546875 9018 -66,990234375 9031 -70,556640625
144 101,25 9011 -59,990234375 9020 -59,556640625
145 101,953125 9011 -59,990234375 9018 -57,556640625
146 102,65625 9006 -54,990234375 9011 -50,556640625
147 103,359375 9000 -48,990234375 9006 -45,556640625
148 104,0625 8993 -41,990234375 9004 -43,556640625
149 104,765625 8985 -33,990234375 8998 -37,556640625
150 105,46875 8987 -35,990234375 8994 -33,556640625
151 106,171875 8982 -30,990234375 8987 -26,556640625
152 106,875 8973 -21,990234375 8983 -22,556640625
153 107,578125 8965 -13,990234375 8977 -16,556640625
154 108,28125 8969 -17,990234375 8977 -16,556640625
155 108,984375 8965 -13,990234375 8971 -10,556640625
156 109,6875 8953 -1,990234375 8965 -4,556640625
157 110,390625 8951 0,009765625 8962 -1,556640625
158 111,09375 8943 8,009765625 8951 9,443359375
159 111,796875 8938 13,009765625 8951 9,443359375
160 112,5 8930 21,009765625 8941 19,443359375
161 113,203125 8927 24,009765625 8940 20,443359375
162 113,90625 8923 28,009765625 8930 30,443359375
163 114,609375 8923 28,009765625 8930 30,443359375
164 115,3125 8914 37,009765625 8929 31,443359375
165 116,015625 8909 42,009765625 8920 40,443359375
166 116,71875 8901 50,009765625 8914 46,443359375
167 117,421875 8899 52,009765625 8910 50,443359375
168 118,125 8890 61,009765625 8896 64,443359375
169 118,828125 8886 65,009765625 8896 64,443359375
170 119,53125 8884 67,009765625 8896 64,443359375
171 120,234375 8881 70,009765625 8890 70,443359375
172 120,9375 8883 68,009765625 8890 70,443359375
173 121,640625 8878 73,009765625 8886 74,443359375
174 122,34375 8875 76,009765625 8883 77,443359375
175 123,046875 8862 89,009765625 8875 85,443359375
176 123,75 8866 85,009765625 8878 82,443359375
177 124,453125 8866 85,009765625 8875 85,443359375
178 125,15625 8864 87,009765625 8875 85,443359375
179 125,859375 8860 91,009765625 8868 92,443359375
180 126,5625 8857 94,009765625 8870 90,443359375
181 127,265625 8853 98,009765625 8857 103,443359375
182 127,96875 8847 104,009765625 8859 101,443359375
183 128,671875 8847 104,009765625 8857 103,443359375
184 129,375 8844 107,009765625 8849 111,443359375
185 130,078125 8844 107,009765625 8855 105,443359375
186 130,78125 8844 107,009765625 8853 107,443359375
187 131,484375 8841 110,009765625 8852 108,443359375
188 132,1875 8839 112,009765625 8849 111,443359375
189 132,890625 8841 110,009765625 8849 111,443359375
190 133,59375 8841 110,009765625 8847 113,443359375
191 134,296875 8841 110,009765625 8846 114,443359375
192 135 8839 112,009765625 8847 113,443359375
193 135,703125 8836 115,009765625 8844 116,443359375
194 136,40625 8836 115,009765625 8844 116,443359375
195 137,109375 8841 110,009765625 8849 111,443359375
196 137,8125 8844 107,009765625 8855 105,443359375
197 138,515625 8844 107,009765625 8857 103,443359375
198 139,21875 8853 98,009765625 8862 98,443359375
199 139,921875 8852 99,009765625 8860 100,443359375
200 140,625 8853 98,009765625 8862 98,443359375
201 141,328125 8855 96,009765625 8864 96,443359375
202 142,03125 8859 92,009765625 8862 98,443359375
203 142,734375 8859 92,009765625 8866 94,443359375
204 143,4375 8868 83,009765625 8878 82,443359375
205 144,140625 8870 81,009765625 8883 77,443359375
206 144,84375 8875 76,009765625 8884 76,443359375
207 145,546875 8881 70,009765625 8890 70,443359375
208 146,25 8886 65,009765625 8894 66,443359375
209 146,953125 8888 63,009765625 8897 63,443359375
210 147,65625 8890 61,009765625 8903 57,443359375
211 148,359375 8903 48,009765625 8910 50,443359375
212 149,0625 8903 48,009765625 8916 44,443359375
213 149,765625 8907 44,009765625 8920 40,443359375
214 150,46875 8918 33,009765625 8925 35,443359375
215 151,171875 8921 30,009765625 8929 31,443359375
216 151,875 8927 24,009765625 8936 24,443359375
217 152,578125 8929 22,009765625 8940 20,443359375
218 153,28125 8933 18,009765625 8943 17,443359375
219 153,984375 8940 11,009765625 8947 13,443359375
220 154,6875 8943 8,009765625 8954 6,443359375
221 155,390625 8954 -2,990234375 8964 -3,556640625
222 156,09375 8956 -4,990234375 8967 -6,556640625
223 156,796875 8960 -8,990234375 8980 -19,556640625
224 157,5 8971 -19,990234375 8977 -16,556640625
225 158,203125 8973 -21,990234375 8980 -19,556640625
226 158,90625 8973 -21,990234375 8983 -22,556640625
227 159,609375 8969 -17,990234375 8980 -19,556640625
228 160,3125 8971 -19,990234375 8987 -26,556640625
229 161,015625 8978 -26,990234375 8989 -28,556640625
230 161,71875 8987 -35,990234375 8998 -37,556640625
231 162,421875 8994 -42,990234375 9004 -43,556640625
232 163,125 9000 -48,990234375 9006 -45,556640625
233 163,828125 9006 -54,990234375 9013 -52,556640625
234 164,53125 9009 -57,990234375 9020 -59,556640625
235 165,234375 9014 -62,990234375 9024 -63,556640625
236 165,9375 9020 -68,990234375 9029 -68,556640625
237 166,640625 9025 -73,990234375 9035 -74,556640625
238 167,34375 9027 -75,990234375 9038 -77,556640625
239 168,046875 9033 -81,990234375 9042 -81,556640625
240 168,75 9033 -81,990234375 9043 -82,556640625
241 169,453125 9040 -88,990234375 9049 -88,556640625
242 170,15625 9045 -93,990234375 9054 -93,556640625
243 170,859375 9048 -96,990234375 9060 -99,556640625
244 171,5625 9056 -104,990234375 9064 -103,556640625
245 172,265625 9058 -106,990234375 9067 -106,556640625
246 172,96875 9060 -108,990234375 9071 -110,556640625
247 173,671875 9061 -109,990234375 9071 -110,556640625
248 174,375 9067 -115,990234375 9076 -115,556640625
249 175,078125 9067 -115,990234375 9078 -117,556640625
250 175,78125 9067 -115,990234375 9078 -117,556640625
251 176,484375 9071 -119,990234375 9082 -121,556640625
252 177,1875 9069 -117,990234375 9082 -121,556640625
253 177,890625 9072 -120,990234375 9085 -124,556640625
254 178,59375 9082 -130,990234375 9089 -128,556640625
255 179,296875 9080 -128,990234375 9092 -131,556640625
256 180 9080 -128,990234375 9092 -131,556640625
257 180,703125 9078 -126,990234375 9089 -128,556640625
258 181,40625 9076 -124,990234375 9083 -122,556640625
259 182,109375 9074 -122,990234375 9085 -124,556640625
260 182,8125 9076 -124,990234375 9082 -121,556640625
261 183,515625 9071 -119,990234375 9078 -117,556640625
262 184,21875 9067 -115,990234375 9078 -117,556640625
263 184,921875 9071 -119,990234375 9078 -117,556640625
264 185,625 9067 -115,990234375 9076 -115,556640625
265 186,328125 9069 -117,990234375 9078 -117,556640625
266 187,03125 9064 -112,990234375 9074 -113,556640625
267 187,734375 9064 -112,990234375 9074 -113,556640625
268 188,4375 9061 -109,990234375 9071 -110,556640625
269 189,140625 9058 -106,990234375 9066 -105,556640625
270 189,84375 9056 -104,990234375 9066 -105,556640625
271 190,546875 9053 -101,990234375 9056 -95,556640625
272 191,25 9051 -99,990234375 9061 -100,556640625
273 191,953125 9048 -96,990234375 9058 -97,556640625
274 192,65625 9040 -88,990234375 9054 -93,556640625
275 193,359375 9042 -90,990234375 9048 -87,556640625
276 194,0625 9037 -85,990234375 9045 -84,556640625
277 194,765625 9033 -81,990234375 9045 -84,556640625
278 195,46875 9029 -77,990234375 9043 -82,556640625
279 196,171875 9027 -75,990234375 9040 -79,556640625
280 196,875 9020 -68,990234375 9038 -77,556640625
281 197,578125 9011 -59,990234375 9029 -68,556640625
282 198,28125 9009 -57,990234375 9020 -59,556640625
283 198,984375 9002 -50,990234375 9013 -52,556640625
284 199,6875 8996 -44,990234375 9009 -48,556640625
285 200,390625 8993 -41,990234375 9004 -43,556640625
286 201,09375 8989 -37,990234375 8996 -35,556640625
287 201,796875 8983 -31,990234375 8991 -30,556640625
288 202,5 8985 -33,990234375 8991 -30,556640625
289 203,203125 8978 -26,990234375 8989 -28,556640625
290 203,90625 8977 -25,990234375 8983 -22,556640625
291 204,609375 8971 -19,990234375 8982 -21,556640625
292 205,3125 8958 -6,990234375 8971 -10,556640625
293 206,015625 8958 -6,990234375 8965 -4,556640625
294 206,71875 8947 4,009765625 8958 2,443359375
295 207,421875 8941 10,009765625 8954 6,443359375
296 208,125 8934 17,009765625 8951 9,443359375
297 208,828125 8933 18,009765625 8940 20,443359375
298 209,53125 8929 22,009765625 8938 22,443359375
299 210,234375 8927 24,009765625 8934 26,443359375
300 210,9375 8920 31,009765625 8930 30,443359375
301 211,640625 8916 35,009765625 8921 39,443359375
302 212,34375 8909 42,009765625 8921 39,443359375
303 213,046875 8903 48,009765625 8910 50,443359375
304 213,75 8894 57,009765625 8905 55,443359375
305 214,453125 8894 57,009765625 8899 61,443359375
306 215,15625 8883 68,009765625 8897 63,443359375
307 215,859375 8881 70,009765625 8890 70,443359375
308 216,5625 8886 65,009765625 8894 66,443359375
309 217,265625 8879 72,009765625 8888 72,443359375
310 217,96875 8878 73,009765625 8886 74,443359375
311 218,671875 8873 78,009765625 8883 77,443359375
312 219,375 8862 89,009765625 8878 82,443359375
313 220,078125 8866 85,009765625 8878 82,443359375
314 220,78125 8862 89,009765625 8870 90,443359375
315 221,484375 8857 94,009765625 8862 98,443359375
316 222,1875 8859 92,009765625 8864 96,443359375
317 222,890625 8859 92,009765625 8870 90,443359375
318 223,59375 8857 94,009765625 8868 92,443359375
319 224,296875 8852 99,009765625 8860 100,443359375
320 225 8847 104,009765625 8857 103,443359375
321 225,703125 8842 109,009765625 8853 107,443359375
322 226,40625 8844 107,009765625 8855
323 227,109375 8849 102,009765625 8857
324 227,8125 8839 112,009765625 8849
325 228,515625 8842 109,009765625 8849
326 229,21875 8841 110,009765625 8849
327 229,921875 8842 109,009765625 8852
328 230,625 8836 115,009765625 8855
329 231,328125 8839 112,009765625 8846
330 232,03125 8836 115,009765625 8844
331 232,734375 8839 112,009765625 8846
332 233,4375 8842 109,009765625 8852
333 234,140625 8846 105,009765625 8857
334 234,84375 8852 99,009765625 8857
335 235,546875 8857 94,009765625 8862
336 236,25 8855 96,009765625 8862
337 236,953125 8857 94,009765625 8864
338 237,65625 8857 94,009765625 8864
339 238,359375 8857 94,009765625 8866
340 239,0625 8857 94,009765625 8872
341 239,765625 8866 85,009765625 8878
342 240,46875 8873 78,009765625 8881
343 241,171875 8878 73,009765625 8886
344 241,875 8883 68,009765625 8892
345 242,578125 8886 65,009765625 8896
346 243,28125 8892 59,009765625 8899
347 243,984375 8896 55,009765625 8905
348 244,6875 8903 48,009765625 8909
349 245,390625 8907 44,009765625 8916
350 246,09375 8912 39,009765625 8920
351 246,796875 8914 37,009765625 8929
352 247,5 8927 24,009765625 8934
353 248,203125 8925 26,009765625 8936
354 248,90625 8929 22,009765625 8938
355 249,609375 8933 18,009765625 8940
356 250,3125 8940 11,009765625 8951
357 251,015625 8949 2,009765625 8958
358 251,71875 8958 -6,990234375 8964
359 252,421875 8962 -10,990234375 8973
360 253,125 8965 -13,990234375 8973
361 253,828125 8967 -15,990234375 8980
362 254,53125 8971 -19,990234375 8980
363 255,234375 8967 -15,990234375 8982
364 255,9375 8975 -23,990234375 8982
365 256,640625 8975 -23,990234375 8983
366 257,34375 8977 -25,990234375 8991
367 258,046875 8989 -37,990234375 8994
368 258,75 8989 -37,990234375 9000
369 259,453125 8996 -44,990234375 9007
370 260,15625 9004 -52,990234375 9013
371 260,859375 9007 -55,990234375 9018
372 261,5625 9014 -62,990234375 9022
373 262,265625 9017 -65,990234375 9025
374 262,96875 9025 -73,990234375 9037
375 263,671875 9029 -77,990234375 9042
376 264,375 9033 -81,990234375 9042
377 265,078125 9031 -79,990234375 9043
378 265,78125 9042 -90,990234375 9051
379 266,484375 9043 -91,990234375 9054
380 267,1875 9048 -96,990234375 9058
381 267,890625 9048 -96,990234375 9061
382 268,59375 9056 -104,990234375 9060
383 269,296875 9060 -108,990234375 9067
384 270 9064 -112,990234375 9071
385 270,703125 9064 -112,990234375 9072
386 271,40625 9069 -117,990234375 9074
387 272,109375 9071 -119,990234375 9080
388 272,8125 9072 -120,990234375 9082
389 273,515625 9071 -119,990234375 9083
390 274,21875 9078 -126,990234375 9083
391 274,921875 9080 -128,990234375 9087
392 275,625 9082 -130,990234375 9085
393 276,328125 9083 -131,990234375 9090
394 277,03125 9072 -120,990234375 9087
395 277,734375 9071 -119,990234375 9078
396 278,4375 9072 -120,990234375 9082
397 279,140625 9076 -124,990234375 9085
398 279,84375 9074 -122,990234375 9082
399 280,546875 9069 -117,990234375 9074
400 281,25 9066 -114,990234375 9076
401 281,953125 9069 -117,990234375 9076
402 282,65625 9064 -112,990234375 9072
403 283,359375 9066 -114,990234375 9074
404 284,0625 9064 -112,990234375 9069
405 284,765625 9064 -112,990234375 9071
406 285,46875 9056 -104,990234375 9067
407 286,171875 9056 -104,990234375 9066
408 286,875 9056 -104,990234375 9061
409 287,578125 9051 -99,990234375 9060
410 288,28125 9042 -90,990234375 9058
411 288,984375 9040 -88,990234375 9051
412 289,6875 9038 -86,990234375 9048
413 290,390625 9035 -83,990234375 9043
414 291,09375 9033 -81,990234375 9042
415 291,796875 9027 -75,990234375 9038
416 292,5 9027 -75,990234375 9038
417 293,203125 9020 -68,990234375 9029
418 293,90625 9013 -61,990234375 9022
419 294,609375 9011 -59,990234375 9024
420 295,3125 9004 -52,990234375 9013
421 296,015625 9000 -48,990234375 9004
422 296,71875 8994 -42,990234375 9004
423 297,421875 8983 -31,990234375 8998
424 298,125 8978 -26,990234375 8989
425 298,828125 8982 -30,990234375 8989
426 299,53125 8978 -26,990234375 8983
427 300,234375 8973 -21,990234375 8982
428 300,9375 8969 -17,990234375 8982
429 301,640625 8960 -8,990234375 8975
430 302,34375 8953 -1,990234375 8965
431 303,046875 8949 2,009765625 8954
432 303,75 8947 4,009765625 8954
433 304,453125 8936 15,009765625 8949
434 305,15625 8930 21,009765625 8941
435 305,859375 8925 26,009765625 8936
436 306,5625 8925 26,009765625 8934
437 307,265625 8918 33,009765625 8927
438 307,96875 8916 35,009765625 8921
439 308,671875 8905 46,009765625 8920
440 309,375 8899 52,009765625 8910
441 310,078125 8892 59,009765625 8905
442 310,78125 8890 61,009765625 8897
443 311,484375 8886 65,009765625 8896
444 312,1875 8886 65,009765625 8894
445 312,890625 8879 72,009765625 8892
446 313,59375 8879 72,009765625 8888
447 314,296875 8878 73,009765625 8886
448 315 8873 78,009765625 8883
449 315,703125 8866 85,009765625 8878
450 316,40625 8866 85,009765625 8875
451 317,109375 8866 85,009765625 8873
452 317,8125 8860 91,009765625 8872
453 318,515625 8859 92,009765625 8868
454 319,21875 8857 94,009765625 8868
455 319,921875 8857 94,009765625 8864
456 320,625 8847 104,009765625 8860
457 321,328125 8847 104,009765625 8857
458 322,03125 8842 109,009765625 8852
459 322,734375 8841 110,009765625 8852
460 323,4375 8844 107,009765625 8853
461 324,140625 8846 105,009765625 8857
462 324,84375 8841 110,009765625 8853
463 325,546875 8836 115,009765625 8846
464 326,25 8839 112,009765625 8844
465 326,953125 8841 110,009765625 8846
466 327,65625 8839 112,009765625 8847
467 328,359375 8842 109,009765625 8852
468 329,0625 8836 115,009765625 8844
469 329,765625 8842 109,009765625 8847
470 330,46875 8842 109,009765625 8849
471 331,171875 8849 102,009765625 8860
472 331,875 8857 94,009765625 8864
473 332,578125 8852 99,009765625 8859
474 333,28125 8852 99,009765625 8862
475 333,984375 8855 96,009765625 8862
476 334,6875 8857 94,009765625 8866
477 335,390625 8862 89,009765625 8870
478 336,09375 8864 87,009765625 8875
479 336,796875 8868 83,009765625 8878
480 337,5 8872 79,009765625 8884
481 338,203125 8881 70,009765625 8888
482 338,90625 8886 65,009765625 8894
483 339,609375 8884 67,009765625 8899
484 340,3125 8886 65,009765625 8899
485 341,015625 8897 54,009765625 8909
486 341,71875 8901 50,009765625 8910
487 342,421875 8903 48,009765625 8916
488 343,125 8914 37,009765625 8923
489 343,828125 8925 26,009765625 8929
490 344,53125 8929 22,009765625 8934
491 345,234375 8927 24,009765625 8938
492 345,9375 8927 24,009765625 8936
493 346,640625 8930 21,009765625 8941
494 347,34375 8947 4,009765625 8954
495 348,046875 8947 4,009765625 8960
496 348,75 8958 -6,990234375 8967
497 349,453125 8960 -8,990234375 8973
498 350,15625 8965 -13,990234375 8977
499 350,859375 8967 -15,990234375 8978
500 351,5625 8964 -12,990234375 8971
501 352,265625 8962 -10,990234375 8973
502 352,96875 8971 -19,990234375 8983
503 353,671875 8977 -25,990234375 8985
504 354,375 8983 -31,990234375 8994
505 355,078125 8989 -37,990234375 8998
506 355,78125 8994 -42,990234375 9007
507 356,484375 9004 -52,990234375 9009
508 357,1875 9002 -50,990234375 9020
509 357,890625 9011 -59,990234375 9025
510 358,59375 9017 -65,990234375 9027
511 359,296875 9022 -70,990234375 9027
512 360 9022 -70,990234375 9038
That kind of problem is plagued by local extrema.
By expanding the sine, you can rewrite the model as
C + alpha * sin(omega*T) + beta * cos(omega*T)
There is only one non-linear parameter left
and you can use a grid search (or some robust optimization algorithm)
on that parameter
(and linear regression for the others).
d <- read.table( "tmp.csv", dec=",", header=TRUE, nrows=400)
x <- d[,1]
y <- d[,3]
f <- function( omega ) {
x1 <- sin( omega * x )
x2 <- cos( omega * x )
r <- lm( y ~ x1 + x2 )
res <- mean( residuals(r)^2 )
attr( res, "coef" ) <- coef(r)
res
}
omegas <- seq( .001, .2, length=1000 )
res <- sapply(omegas, f)
plot(
omegas, res,
las=1,
ylab = "Residuals", xlab = "Omega",
main = "Objective function: multiple local minima"
)
i <- which.min( res )
omega0 <- optimize(f, interval = c(omegas[i-1], omegas[i+1]))$minimum
p <- c( attr( f(omega0), "coef" ), omega0 )
plot( x, y )
lines(
x,
p[1] + p[2] * sin( p[4] * x ) + p[3] * cos( p[4] * x ),
col = "orange", lwd=3
)
First I replaced all "," in your data with "." (alternatively you could use the dec argument of read.table), then I removed rows with less elements (those in the end) and created a proper header.
Then I read in your data using data <- read.table(text="<paste the cleaned data here>", header=TRUE).
Then I did this:
values<-data[,3]
T <-data[,1]
r<-nls(values~C+alpha*sin(W*T+phi),
start=list(C=8958.34, alpha=115.886, W=0.0652, phi=14.9286))
summary(r)
And got this:
Formula: values ~ C + alpha * sin(W * T + phi)
Parameters:
Estimate Std. Error t value Pr(>|t|)
C 8.959e+03 3.892e+00 2302.173 < 2e-16 ***
alpha 2.214e+01 5.470e+00 4.047 6.16e-05 ***
W 6.714e-02 2.031e-03 33.065 < 2e-16 ***
phi 1.334e+01 5.113e-01 26.092 < 2e-16 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 80.02 on 423 degrees of freedom
Number of iterations to convergence: 21
Achieved convergence tolerance: 5.952e-06
Then I plotted:
plot(values~T)
lines(predict(r)~T)
And got this:
Then I read this: https://stats.stackexchange.com/a/60997/11849
And did this:
raw.fft = fft(values)
truncated.fft = raw.fft[seq(1, length(values)/2 - 1)]
truncated.fft[1] = 0
W = which.max(abs(truncated.fft)) * 2 * pi / length(values)
r2<-nls(values~C+alpha*sin(W*T+phi), start=list(C=8958.34, alpha=115.886, W=W, phi=0))
lines(predict(r2)~T, col="red")
summary(r2)
And got this:
And this:
Formula: values ~ C + alpha * sin(W * T + phi)
Parameters:
Estimate Std. Error t value Pr(>|t|)
C 8.958e+03 2.045e-01 43804.2 <2e-16 ***
alpha 1.160e+02 2.913e-01 398.0 <2e-16 ***
W 4.584e-02 1.954e-05 2345.6 <2e-16 ***
phi 2.325e+00 4.760e-03 488.5 <2e-16 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 4.204 on 423 degrees of freedom
Number of iterations to convergence: 9
Achieved convergence tolerance: 1.07e-06
PS: Please note that it is an extremely bad idea to call a variable T. T is an alias for TRUE in R.

Colouring different clusters of points in ggplot scatterplot [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am using ggplot to create a scatterplot
mydata <- read.table('CF1_deNovoAssembly.csv', sep=",",hader=TRUE)
ggplot(mydata, aes(log(Consensus.length), log(Average.coverage))) + geom_point()
Data in CF1_deNovoAssembly.csv:
Name Consensus length Total read count Single reads Reads in pairs Average coverage
CF1_seqReads contig 1 mapping 81148 77393 45653 31740 68.39
CF1_seqReads contig 2 mapping 5175 4154 2526 1628 57.33
CF1_seqReads contig 3 mapping 43676 43232 25550 17682 70.951
CF1_seqReads contig 4 mapping 33156 28321 16619 11702 61.458
CF1_seqReads contig 5 mapping 194560 158576 93416 65160 58.476
CF1_seqReads contig 6 mapping 26990 27221 16183 11038 72.267
CF1_seqReads contig 7 mapping 35155 34449 20227 14222 70.2
CF1_seqReads contig 8 mapping 110217 111889 65611 46278 73.075
CF1_seqReads contig 9 mapping 96757 87785 51431 36354 65.275
CF1_seqReads contig 10 mapping 169489 155776 91690 64086 65.993
CF1_seqReads contig 11 mapping 280769 215666 126964 88702 55.204
CF1_seqReads contig 12 mapping 29819 30563 17993 12570 73.624
CF1_seqReads contig 13 mapping 120801 116090 68428 47662 69.046
CF1_seqReads contig 14 mapping 172189 154880 91940 62940 64.499
CF1_seqReads contig 15 mapping 105798 88828 52338 36490 60.352
CF1_seqReads contig 16 mapping 212719 200557 117997 82560 67.748
CF1_seqReads contig 17 mapping 36352 29426 17354 12072 57.996
CF1_seqReads contig 18 mapping 1468 2594 1622 972 126.813
CF1_seqReads contig 19 mapping 123801 121038 71234 49804 70.139
CF1_seqReads contig 20 mapping 231369 226726 133732 92994 70.348
CF1_seqReads contig 21 mapping 125419 110004 64774 45230 62.915
CF1_seqReads contig 22 mapping 125818 113356 67034 46322 64.733
CF1_seqReads contig 23 mapping 53872 50388 29824 20564 67.235
CF1_seqReads contig 24 mapping 118273 99252 58798 40454 60.263
CF1_seqReads contig 25 mapping 5569 19834 11758 8076 257.753
CF1_seqReads contig 26 mapping 48830 47879 28265 19614 70.306
CF1_seqReads contig 27 mapping 33566 32370 19280 13090 69.097
CF1_seqReads contig 28 mapping 8357 6684 4046 2638 56.178
CF1_seqReads contig 29 mapping 82328 71998 42670 29328 62.916
CF1_seqReads contig 30 mapping 55288 52415 31023 21392 68.03
CF1_seqReads contig 31 mapping 49849 44216 26142 18074 63.699
CF1_seqReads contig 32 mapping 66991 69598 41202 28396 74.615
CF1_seqReads contig 33 mapping 210958 187922 110992 76930 63.938
CF1_seqReads contig 34 mapping 95028 86002 51080 34922 64.925
CF1_seqReads contig 35 mapping 25219 22685 13567 9118 65.146
CF1_seqReads contig 36 mapping 52506 44863 26493 18370 61.281
CF1_seqReads contig 37 mapping 44807 37939 22745 15194 60.863
CF1_seqReads contig 38 mapping 30091 25919 15355 10564 62.312
CF1_seqReads contig 39 mapping 49730 42295 25445 16850 60.872
CF1_seqReads contig 40 mapping 35166 27239 16101 11138 55.456
CF1_seqReads contig 41 mapping 58239 54831 32311 22520 67.764
CF1_seqReads contig 42 mapping 78398 69994 41578 28416 64.135
CF1_seqReads contig 43 mapping 79163 61667 36637 25030 55.958
CF1_seqReads contig 44 mapping 46179 37621 22479 15142 58.463
CF1_seqReads contig 45 mapping 1501 1209 715 494 55.69
CF1_seqReads contig 46 mapping 35505 36158 21296 14862 73.271
CF1_seqReads contig 47 mapping 108945 100876 59394 41482 66.479
CF1_seqReads contig 48 mapping 36042 30283 17961 12322 60.289
CF1_seqReads contig 49 mapping 125139 102821 60441 42380 59.021
CF1_seqReads contig 50 mapping 33093 31998 18976 13022 69.715
CF1_seqReads contig 51 mapping 19399 14764 8826 5938 54.607
CF1_seqReads contig 52 mapping 39627 30320 17856 12464 54.848
CF1_seqReads contig 53 mapping 12163 9861 5887 3974 58.008
CF1_seqReads contig 54 mapping 4378 3872 2442 1430 62.841
CF1_seqReads contig 55 mapping 107763 96191 56993 39198 64.165
CF1_seqReads contig 56 mapping 167629 143032 84032 59000 61.441
CF1_seqReads contig 57 mapping 97622 80176 47622 32554 58.829
CF1_seqReads contig 58 mapping 56912 56028 32850 23178 70.506
CF1_seqReads contig 59 mapping 15390 16360 9792 6568 76.745
CF1_seqReads contig 60 mapping 80202 71909 42337 29572 64.292
CF1_seqReads contig 61 mapping 45435 39732 23290 16442 62.592
CF1_seqReads contig 62 mapping 17972 15752 9208 6544 63.102
CF1_seqReads contig 63 mapping 41256 40603 23859 16744 70.545
CF1_seqReads contig 64 mapping 110461 93608 54796 38812 60.845
CF1_seqReads contig 65 mapping 62066 53798 31662 22136 62.125
CF1_seqReads contig 66 mapping 1981 1788 1112 676 63.459
CF1_seqReads contig 67 mapping 32249 28939 17121 11818 64.486
CF1_seqReads contig 68 mapping 30129 30299 17873 12426 72.002
CF1_seqReads contig 69 mapping 73494 70081 41307 28774 68.502
CF1_seqReads contig 70 mapping 42147 32350 19106 13244 54.965
CF1_seqReads contig 71 mapping 15109 14803 8827 5976 70.037
CF1_seqReads contig 72 mapping 19446 17197 10277 6920 63.506
CF1_seqReads contig 73 mapping 1203 2160 1410 750 127.011
CF1_seqReads contig 74 mapping 35575 31557 18907 12650 63.833
CF1_seqReads contig 75 mapping 61658 52593 31031 21562 61.218
CF1_seqReads contig 76 mapping 2104 2063 1335 728 69.914
CF1_seqReads contig 77 mapping 58182 49734 29348 20386 61.311
CF1_seqReads contig 78 mapping 55182 54095 32319 21776 70.398
CF1_seqReads contig 79 mapping 35523 34002 19964 14038 68.577
CF1_seqReads contig 80 mapping 5174 8766 5222 3544 119.842
CF1_seqReads contig 81 mapping 69777 59263 35069 24194 60.855
CF1_seqReads contig 82 mapping 23575 21660 12872 8788 65.608
CF1_seqReads contig 83 mapping 3065 2609 1597 1012 61.1
CF1_seqReads contig 84 mapping 332 803 619 184 171.226
CF1_seqReads contig 85 mapping 5538 5060 3028 2032 63.651
CF1_seqReads contig 86 mapping 18727 16636 9814 6822 63.747
CF1_seqReads contig 87 mapping 27818 21227 12585 8642 54.79
CF1_seqReads contig 88 mapping 20439 17310 10266 7044 60.577
CF1_seqReads contig 89 mapping 14937 13026 7656 5370 62.693
CF1_seqReads contig 90 mapping 17570 16529 9787 6742 67.656
CF1_seqReads contig 91 mapping 7927 7372 4374 2998 66.942
CF1_seqReads contig 92 mapping 2695 5155 3143 2012 136
CF1_seqReads contig 93 mapping 28431 22662 13382 9280 57.128
CF1_seqReads contig 94 mapping 10910 8378 5032 3346 54.889
CF1_seqReads contig 95 mapping 11426 11337 6863 4474 70.898
CF1_seqReads contig 96 mapping 39433 36586 21812 14774 66.563
CF1_seqReads contig 97 mapping 65815 66239 39289 26950 72.083
CF1_seqReads contig 98 mapping 11296 11627 6991 4636 73.84
CF1_seqReads contig 99 mapping 27785 22040 13130 8910 56.893
CF1_seqReads contig 100 mapping 26131 20073 11793 8280 55.234
CF1_seqReads contig 101 mapping 825 766 560 206 61.246
CF1_seqReads contig 102 mapping 25869 25524 15286 10238 70.695
CF1_seqReads contig 103 mapping 7747 7244 4356 2888 66.154
CF1_seqReads contig 104 mapping 34292 28755 16913 11842 60.05
CF1_seqReads contig 105 mapping 17219 16000 9346 6654 66.858
CF1_seqReads contig 106 mapping 39990 34798 20590 14208 62.384
CF1_seqReads contig 107 mapping 38227 33283 19721 13562 62.381
CF1_seqReads contig 108 mapping 1825 1439 919 520 54.89
CF1_seqReads contig 109 mapping 5333 4212 2494 1718 57.046
CF1_seqReads contig 110 mapping 13827 11248 6582 4666 58.276
CF1_seqReads contig 111 mapping 25486 22477 13277 9200 63.393
CF1_seqReads contig 112 mapping 15592 13751 8295 5456 63.048
CF1_seqReads contig 113 mapping 6230 4864 2986 1878 55.995
CF1_seqReads contig 114 mapping 28229 22164 13150 9014 56.051
CF1_seqReads contig 115 mapping 92951 92630 54674 37956 71.557
CF1_seqReads contig 116 mapping 24347 24204 14532 9672 71.386
CF1_seqReads contig 117 mapping 11556 11295 6657 4638 70.199
CF1_seqReads contig 118 mapping 2750 2553 1683 870 64.722
CF1_seqReads contig 119 mapping 19046 14586 8706 5880 54.681
CF1_seqReads contig 120 mapping 19966 17390 10290 7100 62.622
CF1_seqReads contig 121 mapping 1912 1657 1011 646 62.048
CF1_seqReads contig 122 mapping 1236 5497 3435 2062 318.75
CF1_seqReads contig 123 mapping 1136 852 584 268 53.619
CF1_seqReads contig 124 mapping 414 391 273 118 62.2
CF1_seqReads contig 125 mapping 912 931 619 312 72.031
CF1_seqReads contig 126 mapping 915 588 408 180 43.635
CF1_seqReads contig 127 mapping 2039 1853 1165 688 64.089
CF1_seqReads contig 128 mapping 1471 1253 837 416 58.997
CF1_seqReads contig 129 mapping 1148 2382 1560 822 147.665
CF1_seqReads contig 130 mapping 23233 23367 14443 8924 71.842
CF1_seqReads contig 131 mapping 702 472 324 148 47.107
CF1_seqReads contig 132 mapping 855 1461 967 494 120.706
CF1_seqReads contig 133 mapping 461 1027 725 302 157.434
CF1_seqReads contig 134 mapping 1136 834 580 254 52.482
CF1_seqReads contig 135 mapping 1222 1681 1131 550 98.43
CF1_seqReads contig 136 mapping 1316 997 689 308 53.191
CF1_seqReads contig 137 mapping 1923 1880 1204 676 68.222
CF1_seqReads contig 138 mapping 903 601 401 200 47.503
CF1_seqReads contig 139 mapping 604 495 367 128 56.925
CF1_seqReads contig 140 mapping 1854 1651 1081 570 62.929
CF1_seqReads contig 141 mapping 857 1666 1114 552 137.351
CF1_seqReads contig 142 mapping 273 264 214 50 65.048
CF1_seqReads contig 143 mapping 1848 1254 826 428 47.48
CF1_seqReads contig 144 mapping 9112 8829 5223 3606 69.287
CF1_seqReads contig 145 mapping 4959 8350 5042 3308 120.352
CF1_seqReads contig 146 mapping 1160 2386 1570 816 147.567
CF1_seqReads contig 147 mapping 3398 2919 1807 1112 59.74
CF1_seqReads contig 148 mapping 513 491 381 110 65.774
CF1_seqReads contig 149 mapping 2634 2644 1594 1050 71.279
CF1_seqReads contig 150 mapping 2333 1832 1086 746 54.456
CF1_seqReads contig 151 mapping 9929 8130 4910 3220 58.649
CF1_seqReads contig 152 mapping 4867 4591 2765 1826 66.831
CF1_seqReads contig 153 mapping 2244 1984 1278 706 61.906
CF1_seqReads contig 154 mapping 3008 2557 1581 976 61.333
CF1_seqReads contig 155 mapping 553 1015 733 282 130.448
CF1_seqReads contig 156 mapping 735 974 662 312 91.188
CF1_seqReads contig 157 mapping 1375 2157 1507 650 110.765
CF1_seqReads contig 158 mapping 211 168 160 8 54.796
CF1_seqReads contig 159 mapping 211 174 160 14 56.749
CF1_seqReads contig 160 mapping 3076 3113 1855 1258 73.188
CF1_seqReads contig 161 mapping 1965 1474 998 476 51.869
CF1_seqReads contig 162 mapping 2495 2055 1301 754 57.74
CF1_seqReads contig 163 mapping 230 201 183 18 59.178
CF1_seqReads contig 164 mapping 899 1786 1176 610 140.673
CF1_seqReads contig 165 mapping 3860 2683 1643 1040 49.358
CF1_seqReads contig 166 mapping 1207 1064 642 422 62.839
CF1_seqReads contig 167 mapping 6068 5769 3555 2214 67.996
CF1_seqReads contig 168 mapping 1345 980 628 352 51.059
CF1_seqReads contig 169 mapping 2407 2119 1233 886 62.073
CF1_seqReads contig 170 mapping 236 409 359 50 119.915
CF1_seqReads contig 171 mapping 2288 1959 1229 730 61.018
CF1_seqReads contig 172 mapping 1214 715 497 218 40.74
CF1_seqReads contig 173 mapping 323 531 431 100 113.607
CF1_seqReads contig 174 mapping 1222 789 529 260 44.583
CF1_seqReads contig 175 mapping 207 188 182 6 61.063
CF1_seqReads contig 176 mapping 2236 2204 1392 812 70.699
CF1_seqReads contig 177 mapping 1173 1189 901 288 70.116
CF1_seqReads contig 178 mapping 757 692 476 216 62.54
CF1_seqReads contig 179 mapping 238 485 413 72 137.378
CF1_seqReads contig 180 mapping 1122 984 670 314 62.156
CF1_seqReads contig 181 mapping 1717 1305 819 486 53.286
CF1_seqReads contig 182 mapping 739 1061 825 236 101.298
CF1_seqReads contig 183 mapping 377 293 231 62 54.255
CF1_seqReads contig 184 mapping 878 837 589 248 67.145
CF1_seqReads contig 185 mapping 905 786 540 246 60.841
CF1_seqReads contig 186 mapping 321 223 189 34 44.969
CF1_seqReads contig 187 mapping 215 251 221 30 77.498
CF1_seqReads contig 188 mapping 1153 1074 718 356 64.892
CF1_seqReads contig 189 mapping 568 441 303 138 53.771
CF1_seqReads contig 190 mapping 582 450 282 168 54.89
CF1_seqReads contig 191 mapping 452 767 585 182 119.653
CF1_seqReads contig 192 mapping 263 218 186 32 58.73
CF1_seqReads contig 193 mapping 313 247 193 54 54.22
CF1_seqReads contig 194 mapping 295 214 174 40 48.346
CF1_seqReads contig 195 mapping 297 197 145 52 47.007
CF1_seqReads contig 196 mapping 346 230 180 50 42.566
CF1_seqReads contig 197 mapping 392 226 180 46 37.457
CF1_seqReads contig 198 mapping 208 168 150 18 53.255
CF1_seqReads contig 199 mapping 660 586 398 188 62.903
CF1_seqReads contig 200 mapping 276 300 250 50 72.681
CF1_seqReads contig 201 mapping 388 269 231 38 45.611
CF1_seqReads contig 202 mapping 353 343 245 98 67.042
CF1_seqReads contig 203 mapping 284 175 139 36 42.144
and looking at the y axis I can notice that there are 3 groups of points.
Is there an algorithm to identify each group without using max and/or min y values?
If you want to use some preset values for grouping the y then you could use cut
A reproducible example
set.seed(07122012)
DF <- data.frame(y= runif(100), x = rnorm(100))
# grouping at 0.33 / 0.66
mygroups <- seq(0,1,l=4)
ggplot(DF, aes(x=x,y=y)) + geom_point(aes(colour= cut(y,breaks = mygroups))) +
scale_colour_brewer('My groups', palette = 'Set2')
Or you could do some simple clustering (a combination of scale and kmeans on x and y perhaps)
ggplot(DF, aes(x=x,y=y)) +
geom_point(aes(colour= factor(kmeans(scale(cbind(x,y)), centers=3)$cluster))) +
scale_colour_brewer('My groups', palette = 'Set2')

Why is client side tcp sometimes not sending ACKs, leading to retransmits?

Here's what I have:
Client side (192.168.11.121):Windows Vista,Firefox
Server side (192.168.11.16): Windows 2003, My web server or IIS
Fiddler running on the client shows that some images take much longer to download than others, even though images are same size. I ran a client side packet trace and found that the difference between the "fast" and "slow" downloads is that for the slow downloads, the client is receiving the data quickly but not sending ACKs, leading the server to retransmit. The first trace below contains both a successful and a slow request.
A successful image request:
1132 is the image request from the browser
1133-1155 is the response. As the server sends data packets, the client ACKs them as they arrive
An image request with retransmits:
1159 is the image request from the browser
1160-1182 is the response. This time the client is not ACKing the packets.
1183 is a duplicate ack from the client to server - why?
I have read about delayed ACKs but I don't think the conditions apply, as the client should be acking at least every other packet, right?
Does client think there is a missing packet and is therefore not sending the acks? Is there a missing packet? If so, I don't see it.
I have tried 2 client machines with this server - problem manifests for both. Both these clients can download images fine from other servers running same OS and webserver. So I think it's a server side problem, but what?
No. Time Source Destination Protocol Info
1132 7.217259 192.168.11.121 192.168.11.16 TCP 60781 > ddi-tcp-1 [PSH, ACK] Seq=6097 Ack=75896 Win=65700 Len=1016
1133 7.219314 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=75896 Ack=7113 Win=64519 Len=1460
1134 7.219318 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=77356 Ack=7113 Win=64519 Len=1460
1135 7.219339 192.168.11.121 192.168.11.16 TCP 60781 > ddi-tcp-1 [ACK] Seq=7113 Ack=78816 Win=65700 Len=0
1136 7.219654 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=78816 Ack=7113 Win=64519 Len=1460
1137 7.219656 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=80276 Ack=7113 Win=64519 Len=1460
1138 7.219659 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=81736 Ack=7113 Win=64519 Len=1460
1139 7.219675 192.168.11.121 192.168.11.16 TCP 60781 > ddi-tcp-1 [ACK] Seq=7113 Ack=83196 Win=65700 Len=0
1140 7.219978 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=83196 Ack=7113 Win=64519 Len=1460
1141 7.219980 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=84656 Ack=7113 Win=64519 Len=1460
1142 7.219991 192.168.11.121 192.168.11.16 TCP 60781 > ddi-tcp-1 [ACK] Seq=7113 Ack=86116 Win=65700 Len=0
1143 7.220310 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=86116 Ack=7113 Win=64519 Len=1460
1144 7.220313 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=87576 Ack=7113 Win=64519 Len=1460
1145 7.220315 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=89036 Ack=7113 Win=64519 Len=1460
1146 7.220327 192.168.11.121 192.168.11.16 TCP 60781 > ddi-tcp-1 [ACK] Seq=7113 Ack=90496 Win=65700 Len=0
1147 7.220645 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=90496 Ack=7113 Win=64519 Len=1460
1148 7.220647 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=91956 Ack=7113 Win=64519 Len=1460
1149 7.220649 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=93416 Ack=7113 Win=64519 Len=1460
1150 7.220662 192.168.11.121 192.168.11.16 TCP 60781 > ddi-tcp-1 [ACK] Seq=7113 Ack=94876 Win=65700 Len=0
1151 7.220976 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=94876 Ack=7113 Win=64519 Len=1460
1152 7.220978 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=96336 Ack=7113 Win=64519 Len=1460
1153 7.220989 192.168.11.121 192.168.11.16 TCP 60781 > ddi-tcp-1 [ACK] Seq=7113 Ack=97796 Win=65700 Len=0
1154 7.221316 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=97796 Ack=7113 Win=64519 Len=1460
1155 7.221319 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [PSH, ACK] Seq=99256 Ack=7113 Win=64519 Len=710
1156 7.221335 192.168.11.121 192.168.11.16 TCP 60781 > ddi-tcp-1 [ACK] Seq=7113 Ack=99966 Win=65700 Len=0
1159 7.414879 192.168.11.121 192.168.11.16 TCP 60781 > ddi-tcp-1 [PSH, ACK] Seq=7113 Ack=99966 Win=65700 Len=1016
1160 7.417006 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=99966 Ack=8129 Win=65535 Len=1460
1161 7.417009 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=101426 Ack=8129 Win=65535 Len=1460
1162 7.417337 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=102886 Ack=8129 Win=65535 Len=1460
1163 7.417339 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=104346 Ack=8129 Win=65535 Len=1460
1164 7.417343 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=105806 Ack=8129 Win=65535 Len=1460
1165 7.417661 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=107266 Ack=8129 Win=65535 Len=1460
1166 7.417664 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=108726 Ack=8129 Win=65535 Len=1460
1167 7.418004 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=110186 Ack=8129 Win=65535 Len=1460
1168 7.418006 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=111646 Ack=8129 Win=65535 Len=1460
1169 7.418008 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=113106 Ack=8129 Win=65535 Len=1460
1170 7.418336 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=114566 Ack=8129 Win=65535 Len=1460
1171 7.418339 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=116026 Ack=8129 Win=65535 Len=1460
1172 7.418342 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=117486 Ack=8129 Win=65535 Len=1460
1173 7.418674 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=118946 Ack=8129 Win=65535 Len=1460
1174 7.418677 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=120406 Ack=8129 Win=65535 Len=1460
1175 7.419002 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=121866 Ack=8129 Win=65535 Len=1460
1176 7.419004 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=123326 Ack=8129 Win=65535 Len=1460
1177 7.419007 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=124786 Ack=8129 Win=65535 Len=1460
1178 7.419375 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=126246 Ack=8129 Win=65535 Len=1460
1179 7.419378 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=127706 Ack=8129 Win=65535 Len=1460
1180 7.419708 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=129166 Ack=8129 Win=65535 Len=1460
1181 7.419710 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=130626 Ack=8129 Win=65535 Len=1460
1182 7.419712 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [PSH, ACK] Seq=132086 Ack=8129 Win=65535 Len=316
1183 7.419741 192.168.11.121 192.168.11.16 TCP [TCP Dup ACK 1159#1] 60781 > ddi-tcp-1 [ACK] Seq=8129 Ack=99966 Win=65700 Len=0 SLE=132086 SRE=132402
1186 7.617479 192.168.11.16 192.168.11.121 TCP [TCP Dup ACK 1182#1] ddi-tcp-1 > 60781 [ACK] Seq=132402 Ack=8129 Win=65535 Len=0
1187 7.742696 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] ddi-tcp-1 > 60781 [ACK] Seq=99966 Ack=8129 Win=65535 Len=1460
1188 7.939708 192.168.11.121 192.168.11.16 TCP 60781 > ddi-tcp-1 [ACK] Seq=8129 Ack=101426 Win=65700 Len=0 SLE=132086 SRE=132402
1189 7.940725 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] ddi-tcp-1 > 60781 [ACK] Seq=101426 Ack=8129 Win=65535 Len=1460
1190 7.940727 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] ddi-tcp-1 > 60781 [ACK] Seq=102886 Ack=8129 Win=65535 Len=1460
1191 7.940750 192.168.11.121 192.168.11.16 TCP 60781 > ddi-tcp-1 [ACK] Seq=8129 Ack=104346 Win=65700 Len=0 SLE=132086 SRE=132402
1192 7.941698 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] ddi-tcp-1 > 60781 [ACK] Seq=104346 Ack=8129 Win=65535 Len=1460
1193 7.941700 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] ddi-tcp-1 > 60781 [ACK] Seq=105806 Ack=8129 Win=65535 Len=1460
1194 7.941712 192.168.11.121 192.168.11.16 TCP 60781 > ddi-tcp-1 [ACK] Seq=8129 Ack=107266 Win=65700 Len=0 SLE=132086 SRE=132402
1195 7.942030 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] ddi-tcp-1 > 60781 [ACK] Seq=107266 Ack=8129 Win=65535 Len=1460
1196 7.942684 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] ddi-tcp-1 > 60781 [ACK] Seq=108726 Ack=8129 Win=65535 Len=1460
1197 7.942687 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] ddi-tcp-1 > 60781 [ACK] Seq=110186 Ack=8129 Win=65535 Len=1460
1198 7.942700 192.168.11.121 192.168.11.16 TCP 60781 > ddi-tcp-1 [ACK] Seq=8129 Ack=111646 Win=65700 Len=0 SLE=132086 SRE=132402
1199 7.943015 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] ddi-tcp-1 > 60781 [ACK] Seq=111646 Ack=8129 Win=65535 Len=1460
1200 7.943651 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] ddi-tcp-1 > 60781 [ACK] Seq=113106 Ack=8129 Win=65535 Len=1460
1201 7.943653 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] ddi-tcp-1 > 60781 [ACK] Seq=114566 Ack=8129 Win=65535 Len=1460
1202 7.943664 192.168.11.121 192.168.11.16 TCP 60781 > ddi-tcp-1 [ACK] Seq=8129 Ack=116026 Win=65700 Len=0 SLE=132086 SRE=132402
1203 7.943983 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] ddi-tcp-1 > 60781 [ACK] Seq=116026 Ack=8129 Win=65535 Len=1460
1204 7.943985 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] ddi-tcp-1 > 60781 [ACK] Seq=117486 Ack=8129 Win=65535 Len=1460
1205 7.943995 192.168.11.121 192.168.11.16 TCP 60781 > ddi-tcp-1 [ACK] Seq=8129 Ack=118946 Win=65700 Len=0 SLE=132086 SRE=132402
1206 7.944665 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] ddi-tcp-1 > 60781 [ACK] Seq=118946 Ack=8129 Win=65535 Len=1460
1207 7.944667 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] ddi-tcp-1 > 60781 [ACK] Seq=120406 Ack=8129 Win=65535 Len=1460
1208 7.944681 192.168.11.121 192.168.11.16 TCP 60781 > ddi-tcp-1 [ACK] Seq=8129 Ack=121866 Win=65700 Len=0 SLE=132086 SRE=132402
1209 7.944999 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] ddi-tcp-1 > 60781 [ACK] Seq=121866 Ack=8129 Win=65535 Len=1460
1210 7.945002 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] ddi-tcp-1 > 60781 [ACK] Seq=123326 Ack=8129 Win=65535 Len=1460
1211 7.945004 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] ddi-tcp-1 > 60781 [ACK] Seq=124786 Ack=8129 Win=65535 Len=1460
1212 7.945018 192.168.11.121 192.168.11.16 TCP 60781 > ddi-tcp-1 [ACK] Seq=8129 Ack=126246 Win=65700 Len=0 SLE=132086 SRE=132402
1213 7.945330 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] ddi-tcp-1 > 60781 [ACK] Seq=126246 Ack=8129 Win=65535 Len=1460
1214 7.945333 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] ddi-tcp-1 > 60781 [ACK] Seq=127706 Ack=8129 Win=65535 Len=1460
1215 7.945344 192.168.11.121 192.168.11.16 TCP 60781 > ddi-tcp-1 [ACK] Seq=8129 Ack=129166 Win=65700 Len=0 SLE=132086 SRE=132402
1216 7.945664 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] ddi-tcp-1 > 60781 [ACK] Seq=129166 Ack=8129 Win=65535 Len=1460
1217 7.945667 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] ddi-tcp-1 > 60781 [ACK] Seq=130626 Ack=8129 Win=65535 Len=1460
1218 7.945669 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] ddi-tcp-1 > 60781 [PSH, ACK] Seq=132086 Ack=8129 Win=65535 Len=316
1219 7.945686 192.168.11.121 192.168.11.16 TCP 60781 > ddi-tcp-1 [ACK] Seq=8129 Ack=132402 Win=65700 Len=0
1220 7.945692 192.168.11.121 192.168.11.16 TCP [TCP Dup ACK 1219#1] 60781 > ddi-tcp-1 [ACK] Seq=8129 Ack=132402 Win=65700 Len=0 SLE=132086 SRE=132402
1223 8.038426 192.168.11.121 192.168.11.16 TCP 60781 > ddi-tcp-1 [PSH, ACK] Seq=8129 Ack=132402 Win=65700 Len=1016
1224 8.040480 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=132402 Ack=9145 Win=64519 Len=1460
1225 8.040482 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=133862 Ack=9145 Win=64519 Len=1460
1226 8.040499 192.168.11.121 192.168.11.16 TCP 60781 > ddi-tcp-1 [ACK] Seq=9145 Ack=135322 Win=65700 Len=0
1227 8.040813 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=135322 Ack=9145 Win=64519 Len=1460
1228 8.040815 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=136782 Ack=9145 Win=64519 Len=1460
1229 8.040817 192.168.11.16 192.168.11.121 TCP ddi-tcp-1 > 60781 [ACK] Seq=138242 Ack=9145 Win=64519 Len=1460
1230 8.040830 192.168.11.121 192.168.11.16 TCP 60781 > ddi-tcp-1 [ACK] Seq=9145 Ack=139702 Win=65700 Len=0
I see the same behavior downloading images from IIS on this server:
No. Time Source Destination Protocol Info
287 22.257956 192.168.11.121 192.168.11.16 TCP 49387 > http [PSH, ACK] Seq=4531 Ack=86993 Win=65700 Len=869
288 22.261529 192.168.11.16 192.168.11.121 TCP http > 49387 [ACK] Seq=86993 Ack=5400 Win=65535 Len=1460
289 22.261532 192.168.11.16 192.168.11.121 TCP http > 49387 [ACK] Seq=88453 Ack=5400 Win=65535 Len=1460
290 22.261859 192.168.11.16 192.168.11.121 TCP http > 49387 [ACK] Seq=89913 Ack=5400 Win=65535 Len=1460
291 22.261861 192.168.11.16 192.168.11.121 TCP http > 49387 [ACK] Seq=91373 Ack=5400 Win=65535 Len=1460
292 22.261864 192.168.11.16 192.168.11.121 TCP http > 49387 [ACK] Seq=92833 Ack=5400 Win=65535 Len=1460
293 22.262194 192.168.11.16 192.168.11.121 TCP http > 49387 [ACK] Seq=94293 Ack=5400 Win=65535 Len=1460
294 22.262196 192.168.11.16 192.168.11.121 TCP http > 49387 [ACK] Seq=95753 Ack=5400 Win=65535 Len=1460
295 22.262526 192.168.11.16 192.168.11.121 TCP http > 49387 [ACK] Seq=97213 Ack=5400 Win=65535 Len=1460
296 22.262527 192.168.11.16 192.168.11.121 TCP http > 49387 [ACK] Seq=98673 Ack=5400 Win=65535 Len=1460
297 22.262530 192.168.11.16 192.168.11.121 TCP http > 49387 [ACK] Seq=100133 Ack=5400 Win=65535 Len=1460
298 22.262858 192.168.11.16 192.168.11.121 TCP http > 49387 [ACK] Seq=101593 Ack=5400 Win=65535 Len=1460
299 22.262860 192.168.11.16 192.168.11.121 TCP http > 49387 [ACK] Seq=103053 Ack=5400 Win=65535 Len=1460
300 22.263193 192.168.11.16 192.168.11.121 TCP http > 49387 [ACK] Seq=104513 Ack=5400 Win=65535 Len=1460
301 22.263196 192.168.11.16 192.168.11.121 TCP http > 49387 [ACK] Seq=105973 Ack=5400 Win=65535 Len=1460
302 22.263197 192.168.11.16 192.168.11.121 TCP http > 49387 [ACK] Seq=107433 Ack=5400 Win=65535 Len=1460
303 22.263530 192.168.11.16 192.168.11.121 TCP http > 49387 [ACK] Seq=108893 Ack=5400 Win=65535 Len=1460
304 22.263532 192.168.11.16 192.168.11.121 TCP http > 49387 [ACK] Seq=110353 Ack=5400 Win=65535 Len=1460
305 22.263534 192.168.11.16 192.168.11.121 TCP http > 49387 [ACK] Seq=111813 Ack=5400 Win=65535 Len=1460
306 22.263863 192.168.11.16 192.168.11.121 TCP http > 49387 [ACK] Seq=113273 Ack=5400 Win=65535 Len=1460
307 22.263865 192.168.11.16 192.168.11.121 TCP http > 49387 [ACK] Seq=114733 Ack=5400 Win=65535 Len=1460
308 22.264196 192.168.11.16 192.168.11.121 TCP http > 49387 [ACK] Seq=116193 Ack=5400 Win=65535 Len=1460
309 22.264198 192.168.11.16 192.168.11.121 TCP http > 49387 [ACK] Seq=117653 Ack=5400 Win=65535 Len=1460
310 22.264200 192.168.11.16 192.168.11.121 TCP http > 49387 [ACK] Seq=119113 Ack=5400 Win=65535 Len=1460
311 22.264528 192.168.11.16 192.168.11.121 TCP http > 49387 [ACK] Seq=120573 Ack=5400 Win=65535 Len=1460
312 22.264531 192.168.11.16 192.168.11.121 TCP http > 49387 [ACK] Seq=122033 Ack=5400 Win=65535 Len=1460
313 22.264533 192.168.11.16 192.168.11.121 TCP http > 49387 [ACK] Seq=123493 Ack=5400 Win=65535 Len=1460
314 22.264859 192.168.11.16 192.168.11.121 TCP http > 49387 [PSH, ACK] Seq=124953 Ack=5400 Win=65535 Len=928
315 22.264886 192.168.11.121 192.168.11.16 TCP [TCP Dup ACK 287#1] 49387 > http [ACK] Seq=5400 Ack=86993 Win=65700 Len=0 SLE=124953 SRE=125881
324 22.459724 192.168.11.16 192.168.11.121 TCP [TCP Dup ACK 314#1] http > 49387 [ACK] Seq=125881 Ack=5400 Win=65535 Len=0
326 22.788166 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] http > 49387 [ACK] Seq=86993 Ack=5400 Win=65535 Len=1460
330 22.980324 192.168.11.121 192.168.11.16 TCP 49387 > http [ACK] Seq=5400 Ack=88453 Win=65700 Len=0 SLE=124953 SRE=125881
331 22.981699 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] http > 49387 [ACK] Seq=88453 Ack=5400 Win=65535 Len=1460
332 22.981703 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] http > 49387 [ACK] Seq=89913 Ack=5400 Win=65535 Len=1460
333 22.981755 192.168.11.121 192.168.11.16 TCP 49387 > http [ACK] Seq=5400 Ack=91373 Win=65700 Len=0 SLE=124953 SRE=125881
334 22.983025 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] http > 49387 [ACK] Seq=91373 Ack=5400 Win=65535 Len=1460
335 22.983028 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] http > 49387 [ACK] Seq=92833 Ack=5400 Win=65535 Len=1460
336 22.983034 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] http > 49387 [ACK] Seq=94293 Ack=5400 Win=65535 Len=1460
337 22.983085 192.168.11.121 192.168.11.16 TCP 49387 > http [ACK] Seq=5400 Ack=95753 Win=65700 Len=0 SLE=124953 SRE=125881
338 22.984287 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] http > 49387 [ACK] Seq=95753 Ack=5400 Win=65535 Len=1460
339 22.984290 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] http > 49387 [ACK] Seq=97213 Ack=5400 Win=65535 Len=1460
340 22.984292 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] http > 49387 [ACK] Seq=98673 Ack=5400 Win=65535 Len=1460
341 22.984294 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] http > 49387 [ACK] Seq=100133 Ack=5400 Win=65535 Len=1460
342 22.984339 192.168.11.121 192.168.11.16 TCP 49387 > http [ACK] Seq=5400 Ack=101593 Win=65700 Len=0 SLE=124953 SRE=125881
343 22.985373 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] http > 49387 [ACK] Seq=101593 Ack=5400 Win=65535 Len=1460
344 22.985377 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] http > 49387 [ACK] Seq=103053 Ack=5400 Win=65535 Len=1460
345 22.985382 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] http > 49387 [ACK] Seq=104513 Ack=5400 Win=65535 Len=1460
346 22.985435 192.168.11.121 192.168.11.16 TCP 49387 > http [ACK] Seq=5400 Ack=105973 Win=65700 Len=0 SLE=124953 SRE=125881
347 22.985706 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] http > 49387 [ACK] Seq=105973 Ack=5400 Win=65535 Len=1460
348 22.985710 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] http > 49387 [ACK] Seq=107433 Ack=5400 Win=65535 Len=1460
349 22.985753 192.168.11.121 192.168.11.16 TCP 49387 > http [ACK] Seq=5400 Ack=108893 Win=65700 Len=0 SLE=124953 SRE=125881
350 22.986436 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] http > 49387 [ACK] Seq=108893 Ack=5400 Win=65535 Len=1460
351 22.986438 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] http > 49387 [ACK] Seq=110353 Ack=5400 Win=65535 Len=1460
352 22.986459 192.168.11.121 192.168.11.16 TCP 49387 > http [ACK] Seq=5400 Ack=111813 Win=65700 Len=0 SLE=124953 SRE=125881
353 22.987002 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] http > 49387 [ACK] Seq=111813 Ack=5400 Win=65535 Len=1460
354 22.987005 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] http > 49387 [ACK] Seq=113273 Ack=5400 Win=65535 Len=1460
355 22.987011 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] http > 49387 [ACK] Seq=114733 Ack=5400 Win=65535 Len=1460
356 22.987013 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] http > 49387 [ACK] Seq=116193 Ack=5400 Win=65535 Len=1460
357 22.987064 192.168.11.121 192.168.11.16 TCP 49387 > http [ACK] Seq=5400 Ack=117653 Win=65700 Len=0 SLE=124953 SRE=125881
358 22.987174 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] http > 49387 [ACK] Seq=117653 Ack=5400 Win=65535 Len=1460
359 22.987741 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] http > 49387 [ACK] Seq=119113 Ack=5400 Win=65535 Len=1460
360 22.987744 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] http > 49387 [ACK] Seq=120573 Ack=5400 Win=65535 Len=1460
361 22.987747 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] http > 49387 [ACK] Seq=122033 Ack=5400 Win=65535 Len=1460
362 22.987805 192.168.11.121 192.168.11.16 TCP 49387 > http [ACK] Seq=5400 Ack=123493 Win=65700 Len=0 SLE=124953 SRE=125881
363 22.988171 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] http > 49387 [ACK] Seq=123493 Ack=5400 Win=65535 Len=1460
364 22.988175 192.168.11.16 192.168.11.121 TCP [TCP Retransmission] http > 49387 [PSH, ACK] Seq=124953 Ack=5400 Win=65535 Len=928
365 22.988219 192.168.11.121 192.168.11.16 TCP 49387 > http [ACK] Seq=5400 Ack=125881 Win=65700 Len=0
366 22.988236 192.168.11.121 192.168.11.16 TCP [TCP Dup ACK 365#1] 49387 > http [ACK] Seq=5400 Ack=125881 Win=65700 Len=0 SLE=124953 SRE=125881
409 25.633275 192.168.11.121 192.168.11.16 TCP 49387 > http [PSH, ACK] Seq=5400 Ack=125881 Win=65700 Len=990
You have run monitoring program in server side (192.168.11.16), right?
So you don't directly see what packets the client received.
But packet number 1183 (selective ack from client 192.168.11.121) tells all what we need:
Client acknowledge bytes from the begin to 99966, and 132086-132401.
Client did not receive packets 1160-1181. Packets 1156 and 1182 where received. So the ack 1183 was triggered by packet 1182.
The problem is not in server or client application.
There are lot of possible reasons, why packets 1160-1181 were lost between hosts.
We can only start quessing:
Both captured problems seem to be wery similar: Only the last (smaller) packet pass without retransmit. So this could be some kind of PMTU and 'don't fragment' problem. Or just a broken NIC or switch.

Resources