Media Flow Controller Fault Management : Testing Media Flow Controller Delivery Functions : Testing HTTP Origin Fetch

Testing HTTP Origin Fetch
This test is illustrated in Figure 7, below.
Figure 7 wget Test for Media Flow Controller HTTP Delivery and Cache
Prepare for the test by doing the following, then follow the given steps as illustrated above.
Login to the client/origin UNIX machine and go to a test directory, i.e., testresults/maria; create a simple text file, test.txt, and add some content to give the file some weight.
Login to the Media Flow Controller and configure a namespace, testHttp; specify a uri-prefix with a domain, delivery protocol, and origin server, and make the namespace active. Example:
test-vos (config) # namespace testHttp
test-vos (config namespace testHttp) # delivery protocol http
test-vos (config namespace testHttp) # domain any
test-vos (config namespace testHttp) # match uri /testresults/maria
test-vos (config namespace testHttp) # origin-server http sv05
test-vos (config namespace testHttp) # status active
test-vos (config namespace testHttp) # exit
1.
From the client/origin machine, use wget to fetch the file locally (verify Wget). Example:
[maria@sv05 maria]$ wget http://172.16.254.1/testresults/maria/test.txt
--13:12:58-- http://172.16.254.1/testresults/maria/test.txt
Connecting to 172.16.254.1:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 165 [text/plain]
Saving to: `test.txt.2'
100%[=======================================>] 165 --.-K/s in 0s
13:12:58 (15.7 MB/s) - `test.txt.2' saved [165/165]
2.
Now use wget to fetch the file via Media Flow Controller. When Media Flow Controller receives the first request for that namespace, it begins logging it. Media Flow Controller receives the request, matches the uri-prefix to the namespace, and uses that namespace’s defined origin server to retrieve the content. Use show counters on the Media Flow Controller to see what happened. Example (output truncated):
[maria@sv05 maria]$ wget http://172.16.254.2/testresults/maria/test.txt
--13:18:00-- http://172.16.254.2/testresults/maria/test.txt
Connecting to 172.16.254.2:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 165 [text/plain]
Saving to: `test.txt.3'
100%[=======================================>] 165 --.-K/s in 0s
13:18:00 (26.2 MB/s) - `test.txt.3' saved [165/165]
[maria@sv05 maria]$
test-vos (config) # show counters
Total number of Active Connections : 0
Total Bytes served from RAM cache : 0 Bytes
Total Bytes served from Origin Server : 165 Bytes
Total Bytes served from HTTP Origin Server : 165 Bytes
Total Bytes served from NFS Origin Server : 0 Bytes
Total Bytes served from Disk cache : 0 Bytes
Total Bytes served : 165 Bytes
Total number of HTTP Connections : 1
Total number of HTTP Transactions : 1
Total number of HTTP 200 responses : 1
Total HTTP Well finished count : 1
test-vos (config) #
3.
[maria@sv05 maria]$ wget http://172.16.254.2/testresults/maria/test.txt
--14:07:21-- http://172.16.254.2/testresults/maria/test.txt
Connecting to 172.16.254.2:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 165 [text/plain]
Saving to: `test.txt.4'
100%[=======================================>] 165 --.-K/s in 0.002s
14:07:21 (83.4 KB/s) - `test.txt.4' saved [165/165]
[maria@sv05 maria]$
test-vos (config) # show counters
Total number of Active Connections : 0
Total Bytes served from RAM cache : 165 Bytes
Total Bytes served from Origin Server : 165 Bytes
Total Bytes served from HTTP Origin Server : 165 Bytes
Total Bytes served from NFS Origin Server : 0 Bytes
Total Bytes served from Disk cache : 0 Bytes
Total Bytes served : 330 Bytes
Total number of HTTP Connections : 2
Total number of HTTP Transactions : 2
Total number of HTTP 200 responses : 2
Total HTTP Well finished count : 2
test-vos (config) #
4.
Run the test once more to see Media Flow Controller serve the content from Disk; first restart the delivery service so everything in RAM is moved to disk. Example:
test-vos (config) # service restart mod-delivery
[maria@sv05 maria]$ wget http://172.16.254.2/testresults/maria/test.txt
--16:17:55-- http://172.16.254.2/testresults/maria/test.txt
Connecting to 172.16.254.2:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 165 [text/plain]
Saving to: `test.txt.3'
100%[=======================================>] 165 --.-K/s in 0s
16:17:55 (13.1 MB/s) - `test.txt.3' saved [165/165]
[maria@sv05 maria]$
test-vos-cl11 (config) # show counters
Total number of Active Connections : 0
Total Bytes served from RAM cache : 0 Bytes
Total Bytes served from Origin Server : 0 Bytes
Total Bytes served from HTTP Origin Server : 0 Bytes
Total Bytes served from NFS Origin Server : 0 Bytes
Total Bytes served from Disk cache : 165 Bytes
Total Bytes served : 495 Bytes
Total number of HTTP Connections : 3
Total number of HTTP Transactions : 3
Total number of HTTP 200 responses : 3
Total HTTP Well finished count : 3

Report an Error
Media Flow Controller Administrator's Guide and CLI Command Reference
Copyright © 2010 Juniper Networks, Inc.