
Testing Media Flow Controller Delivery Functions
277
Media Flow Controller Administrator’s Guide
Media Flow Controller Troubleshooting
Testing HTTP Origin Fetch
This test is illustrated in
Figure 69
.
Figure 69
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; for example,
testresults/joe; 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/joe
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:
[joe@sv05 joe]$
wget http://172.16.254.1/testresults/joe/test.txt
--13:12:58-- http://172.16.254.1/testresults/joe/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
Client and origin (172.16.254.1 / sv05)
UNIX machine with wget
Files (text.txt) in testresults/maria directory
1
wget http://172.16.254.
1
/testresults/maria/text.txt
Client request for local content, content retrieved
wget http://172.16.254.
2
/testresults/maria/text.txt
Client request via MFD for origin content
wget http://172.16.254.
2
/testresults/maria/text.txt
Client request via MFD for same content
wget http://172.16.254.
2
/testresults/maria/text.txt
Client request via MFD for same content
2
3
4
MFD (172.16.254.2 / test-vos)
Namespace:
name:
testHttp
delivery protocol:
http
domain:
any
match URL:
/testresults/maria
origin-server:
http sv05
status:
active
2
3
4
show counters
Content retrieved from Origin
Cached in MFD RAM
show counters
Content retrieved from MFD RAM
Force content from RAM to disk:
service restart mod-delivery
show counters
Content retrieved from MFD disk
Media
Flow
Controller
UNIX machine
with wget
switch, preconfigured
g015423
Содержание MEDIA FLOW CONTROLLER 2.0.4 -
Страница 6: ...Media Flow Controller Administrator s Guide VI Copyright 2010 Juniper Networks Inc...
Страница 24: ...LIST OF FIGURES XXIV Copyright 2010 Juniper Networks Inc...
Страница 37: ...Copyright 2010 Juniper Networks Inc 37 PART 1 Media Flow Controller Administration...
Страница 38: ...Media Flow Controller Administrator s Guide 38 Copyright 2010 Juniper Networks Inc...
Страница 285: ...Copyright 2010 Juniper Networks Inc 285 PART 2 Media Flow Controller Command and MIB Reference...
Страница 286: ...Media Flow Controller Administrator s Guide 286 Copyright 2010 Juniper Networks Inc...