[squid-users] streaming and performance problems

From: Andrej van der Zee <andrejvanderzee_at_gmail.com>
Date: Thu, 10 Sep 2009 14:09:59 +0900

Hi,

In my setup, I am streaming live television from a streaming service
in the Netherlands through Squid deployed on a Ubuntu server in the
Netherlands to a Windows machine in Japan. I am the one and only user
of the Squid server. I view .wmv stream in Explorer using Windows
Media Player. The connection speed is excellent (I tested this with
downloading files from various servers in Explorer). Still, after
about one minute of perfect play, the image keeps rebuffering and the
image freezes. I tried many things, but I just cannot get it to work
properly.

In the Squid log-file, it I get the following entries from the start
until before the end of the stream:

1252558617.468     80 202.223.121.120 TCP_MISS/200 375 GET
http://streams.kpn.net/cgi-bin/reflector.cgi? - DIRECT/213.75.10.25
video/x-ms-asf
1252558618.226    128 202.223.121.120 TCP_MISS/200 8068 GET
http://213.75.12.48/ecv_live/22434_1252096281.wmv -
DIRECT/213.75.12.48 application/vnd.ms.wms-hdr.
asfv1
1252558715.247      6 202.223.121.120 TCP_MISS/200 208 POST
http://213.75.12.48/ecv_live/22434_1252096281.wmv -
DIRECT/213.75.12.48 -
1252558749.063      7 202.223.121.120 TCP_MISS/200 208 POST
http://213.75.12.48/ecv_live/22434_1252096281.wmv -
DIRECT/213.75.12.48 -
1252558987.624 185546 202.223.121.120 TCP_MISS/200 18111884 GET
http://213.75.12.48/ecv_live/22434_1252096281.wmv -
DIRECT/213.75.12.48 application/x-mms-framed

Is there anything I can do to fix this? What can I try more to get
this to work properly?

Below this email my Squid configuration. To improve performance, I
tried to switch off caching and increase the read_ahead_gap. I hope I
did it correctly. Though, it did not help unfortunately.

Thank you!
Andrej

acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl home src 202.223.121.120
acl SSL_ports port 443
acl Safe_ports port 80        # http
acl Safe_ports port 21        # ftp
acl Safe_ports port 443        # https
acl Safe_ports port 70        # gopher
acl Safe_ports port 210        # wais
acl Safe_ports port 1025-65535    # unregistered ports
acl Safe_ports port 280        # http-mgmt
acl Safe_ports port 488        # gss-http
acl Safe_ports port 591        # filemaker
acl Safe_ports port 777        # multiling http
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow home
http_access deny all
icp_access allow home
icp_access deny all
htcp_access allow home
htcp_access deny all
http_port 45678
hierarchy_stoplist cgi-bin ?
cache_mem 512 MB
maximum_object_size_in_memory 64 MB
cache_dir null /null
maximum_object_size 1 KB
access_log /usr/local/squid/var/logs/access.log squid
refresh_pattern ^ftp:        1440    20%    10080
refresh_pattern ^gopher:    1440    0%    1440
refresh_pattern (cgi-bin|\?)    0    0%    0
refresh_pattern .        0    20%    4320
read_ahead_gap 64 MB
via off
forwarded_for off
request_header_access X-forwarded-For deny all
icp_port 3130
acl streamorlarge urlpath_regex -i \.swf$ \.SWF$ \.asf$ \.asx$ \.wmv$
\.mpg$ \.rm$ \.mov$ \.flv$ \.mpeg$ \.FLV$ \.rar$ \.zip$ \.ZIP$ \.iso$
streams\.kpn\.net
no_cache deny streamorlarge
coredump_dir /usr/local/squid/var/cache
Received on Thu Sep 10 2009 - 05:10:02 MDT

This archive was generated by hypermail 2.2.0 : Thu Sep 10 2009 - 12:00:02 MDT