ADC

Configuring Video Optimization over TCP

To optimize video traffic over TCP, begin by enabling the video optimization feature. The appliance then activates the built-in detection policies to detect the incoming video traffic and identify the type of video. User configurable optimization policies for each video type specify the optimization bit rate needed for optimizing the traffic.

Configuring Video Optimization over TCP by using the CLI

To configure video optimization on a Citrix ADC appliance, you perform the following tasks:

  1. Enable the video optimization feature.
  2. Add virtual servers for HTTP and HTTPS traffic.
  3. Bind all the built-in detection policies to a load balancing virtual server for HTTP traffic.
  4. Bind all the built-in detection policies to an SSL-bridge load balancing virtual server for HTTPS traffic.
  5. Add the desired optimization policies for HTTP and HTTPS traffic.
  6. Bind optimization policies to a load balancing virtual server for HTTP Traffic.
  7. Bind optimization policies to an SSL-bridge load balancing virtual server for HTTPS traffic.

Enabling Video Optimization

If you want the Citrix ADC appliance to detect, optimize, and report video traffic, you must enable the Video Optimization feature and set optimization to ON. After enabling the feature you can use built-in detection policies to identify the incoming video traffic, and you can configure optimization policies to optimize encrypted ABR traffic. To optimize ABR video traffic, you must configure the download bit rate (also called thepacing rate).

You must also enable the load balancing feature, and if you want to use video optimization for HTTPS traffic you must enable the SSL feature.

To enable the video optimization feature

At the command prompt, type the following command:

enable ns feature VideoOptimization 

Note

If you want to monitor the video optimization performance and video insight reports you must enable the AppFlow feature and then access the Video Analytics feature on Citrix Application Delivery Management (ADM). For more information, seeVideo Insightdocumentation.

Creating Virtual Servers for HTTP and HTTPS Video Traffic

A Citrix ADC appliance uses different virtual servers for detecting and optimizing the different types of incoming video traffic. The appliance supports the following types of virtual servers for TCP traffic.

  • HTTP Load Balancing virtual server. For detecting HTTP video traffic, the appliance uses an HTTP load balancing virtual server. It manages HTTP video requests that the appliance receives from clients.
  • SSL-Bridge Load Balancing virtual server. To detect encrypted video traffic, you must configure an SSL bridge virtual server on the appliance.

To add an HTTP Load Balancing virtual server for detecting HTTP video traffic

At the command prompt, type the following:

add lb vserver  HTTP * 80 -persistenceType NONE 

Example:

add lb vserver ProxyVserver-HTTP HTTP * 80 -persistenceType NONE -cltTimeout 120 

To add an SSL Bridge virtual server for detecting HTTPS video traffic

At the command prompt, type the following:

add lb vserver  SSL_BRIDGE * 443 -persistenceType NONE 

Example:

add lb vserver ProxyVserver-SSL SSL_BRIDGE * 443 -persistenceType NONE -cltTimeout 180 

Binding Built-In Detection Policies to an HTTP Load Balancing Virtual Server

To detect video traffic over an HTTP connection, you must bind all the built-in detection policies to a load balancing virtual server. You must bind the policies to either request-time or response-time processing, depending on the policy type.

Note:

Thens_videoopt_http_body_detectionvideo optimization policy does not support theCONNECTHTTP request method.

To bind detection policies for different video types to an HTTP load balancing virtual server

At the command prompt, type the appropriate command for each type. The available commands are:

bind lb vserver  -policyName ns_videoopt_http_abr_netflix -priority  -type (REQUEST | RESPONSE) bind lb vserver  -policyName ns_videoopt_http_abr_netflix2 -priority  -type (REQUEST | RESPONSE) bind lb vserver  -policyName ns_videoopt_http_abr_youtube -priority  -type (REQUEST | RESPONSE) bind lb vserver  -policyName ns_videoopt_http_pd_youtube -priority  -type (REQUEST | RESPONSE) bind lb vserver  -policyName ns_videoopt_http_pd_youtube2 -priority  -type (REQUEST | RESPONSE) bind lb vserver  -policyName ns_videoopt_http_pd_youtube3 -priority  -type (REQUEST | RESPONSE) bind lb vserver  -policyName ns_videoopt_http_abr_generic -priority  -type (REQUEST | RESPONSE) 

Example:

bind lb vserver ProxyVserver-HTTP -policyName ns_videoopt_http_abr_netflix -priority 400 type RESPONSE bind lb vserver ProxyVserver-HTTP -policyName ns_videoopt_http_abr_netflix2 -priority 500 -type RESPONSE bind lb vserver ProxyVserver-HTTP -policyName ns_videoopt_http_abr_youtube -priority 600 -type RESPONSE bind lb vserver ProxyVserver-HTTP -policyName ns_videoopt_http_pd_youtube -priority 800 -type RESPONSE bind lb vserver ProxyVserver-HTTP -policyName ns_videoopt_http_pd_youtube2 -priority 900 -type RESPONSE bind lb vserver ProxyVserver-HTTP -policyName ns_videoopt_http_pd_youtube3 -priority 1000 -type REQUEST bind lb vserver ProxyVserver-HTTP -policyName ns_videoopt_http_abr_generic -priority 1100 -type RESPONSE 

Binding the HTTP Body Content Detection Policy to Load Balancing Virtual Server

To detect video traffic over HTTP, you must bind the body content detection policy to the load balancing virtual server. You can use the following command:

bind lb vserver  -policyName ns_videoopt_http_body_detection -priority  -type (REQUEST | RESPONSE) 

Example:

bind lb vserver ProxyVserver-HTTP -policyName ns_videoopt_http_body_detection -priority 1500 -type REQUEST 

Binding Built-In Detection Policies to an SSL-Bridge Load Balancing Virtual Server

To detect video traffic over an HTTPS connection, you must bind built-in detection policies to an SSL Bridge load balancing virtual server.

To bind a detection policy to an SSL bridge load balancing virtual server

At the command prompt, type the appropriate command for each type. The available commands are:

bind lb vserver  -policyName ns_videoopt_https_abr_netflix -priority  -type (REQUEST | RESPONSE) bind lb vserver  -policyName ns_videoopt_https_abr_youtube -priority  -type (REQUEST | RESPONSE) bind lb vserver  -policyName ns_videoopt_https_abr_generic -priority  -type (REQUEST | RESPONSE) 

Example:

bind lb vserver ProxyVserver-SSL -policyName ns_videoopt_https_abr_netflix -priority 120 -type REQUEST bind lb vserver ProxyVserver-SSL -policyName ns_videoopt_https_abr_youtube -priority 140 -type REQUEST bind lb vserver ProxyVserver-SSL -policyName ns_videoopt_https_abr_generic -priority 150 -type REQUEST 

Adding Optimization Policies for Pacing ABR traffic

To optimize ABR traffic, you have to configure optimization policies and the associated actions. You then bind the policies to the same load balancing virtual servers to which you bound the detection policies. For each policy, create the action first, so that you can include it when you create the policy.

To add an optimization action

At the command prompt, type:

add videooptimization pacingaction  -rate  [-comment ] 

Where therateparameter specifies the rate in Kbps at which to send the traffic (the pacing rate).

Example:

add videooptimization pacingaction MyOptAct2000 -rate 2000 

To add an optimization policy

At the command prompt, type:

add videooptimization pacingpolicy  -rule  -action  

Example:

add videooptimization pacingpolicy myOptPolicy2000 -rule TRUE -action MyOptAct2000 

Binding Optimization Policies to an HTTP Load Balancing Virtual Server

To optimize ABR video traffic over an HTTP connection, you must bind the optimization policies to a load balancing virtual server to which the detection policies are bound.

To bind an optimization policy to a Load Balancing virtual server

At the command prompt, type the following command:

bind lb vserver  -policyName  -priority  -type (REQUEST | RESPONSE) 

Example:

bind lb vserver ProxyVserver-HTTP -policyName myOptPolicy2000 -priority 3400 -type REQUEST 

Binding Optimization Policies to SSL-bridge Virtual Servers

To optimize ABR video traffic over an HTTPS connection, you must bind the optimization policies to the SSL Bridge virtual server to which the built-in detection policies are bound.

To bind an optimization policy to SSL Bridge virtual server for pacing encrypted traffic

At the command prompt, type the following command:

bind lb vserver  -policyName  -priority  -type (REQUEST |RESPONSE) 

Example:

bind lb vserver ProxyVserver-SSL -policyName myOptPolicy2000 -priority 3400 -type REQUEST 

Setting video optimization pacing parameters

The CLI enables you to set the video optimization pacing parameters, such as random sampling percentage.

To set the random sampling percentage

At the command prompt, type the following command:

set videooptimization parameter –RandomSamplingPercentage  

Where, realNumber is a value from 0.0 to 100.0.

Example:

set videooptimization parameter -RandomSamplingPercentage 50 

Configuring Video Optimization over TCP by using the GUI

The GUI enables you to:

  • Enable video optimization feature.
  • Create HTTP load balancing virtual server.
  • Create SSL-bridge load balancing virtual server.
  • Bind built-in detection policies to HTTP load balancing virtual server.
  • Bind built-in detection policies to SSL-bridge load balancing virtual server.
  • Create an optimization policy.
  • Create an optimization action.
  • Configuring optimization pacing parameter.
  • Bind an optimization policy to load balancing virtual server for HTTP traffic.
  • Bind an optimization policy to SSL-bridge load balancing virtual server for HTTPS traffic.

To enable video optimization feature

  1. In the navigation pane, expandSystem, and then clickSettings.
  2. On theSettingspage, click theConfigure Advanced Featureslink.
  3. On theConfigure Advanced Featurespage, select theVideo Optimizationcheck box.
  4. ClickOK, and then clickClose.

To create load balancing virtual server for HTTP traffic

  1. Sign in to the Citrix ADC appliance and navigate to theTraffic Management>Load Balancing>Virtual Serverspage.
  2. In the details pane, clickAdd.
  3. On the Load Balancing Virtual Server screen, set the following parameters:
    1. Name. Name of the load balancing virtual server.
    2. Protocol. Select protocol type as HTTP
    3. IP Address Type. IP address type: IPv4 or IPv6.
    4. IP Address. IPv4 or IPv6 address assigned to the virtual server.
    5. Port. Port number of the virtual server.
  4. ClickOKto continue with configuration of other, optional, parameters. For more information, see Creating a Virtual Server.
  5. ClickCreateandClose.

To create load balancing virtual server for HTTPS traffic

  1. Sign in to the Citrix ADC appliance and navigate to theTraffic Management>Load Balancing>Virtual Serverspage.
  2. In the details pane, clickAdd.
  3. On theLoad Balancing Virtual Serverscreen, set the following parameters:
    1. Name. Name of the load balancing virtual server.
    2. Protocol. Select protocol type as SSL-bridge.
    3. IP Address Type. IP address type: IPv4 or IPv6.
    4. IP Address. IPv4 or IPv6 address assigned to the virtual server.
    5. Port. Port number of the virtual server.
  4. ClickOKto continue with the configuration of other, optional, parameters. For more information, seeCreating a Virtual Server.
  5. ClickCreateand thenClose.

To bind a built-in detection policy to a load balancing virtual server

  1. Sign in to the Citrix ADC appliance and navigate toTraffic Management>Load Balancing>Virtual Serversscreen.
  2. In the details pane, select the load balancing virtual server and clickEdit.
    1. In theAdvanced Settingsection, clickPolicies.
    2. In thePoliciessection, click the+icon to access thePoliciesslider.
    3. In thePoliciessection, set the following parameters.
    4. Choose Policy. Select a video optimization detection policy from the drop-down list.
    5. Choose Type. Select the policy type as Request.
    6. ClickContinue.
  3. Select the video detection policy from the list and clickClose.

To bind a built-in detection policy to a SSL-bridge load balancing virtual server

  1. Log on to the Citrix ADC appliance and navigate to theTraffic Management>Load Balancing>Virtual Serversscreen.
  2. In the details pane, select the SSL-bridge load balancing virtual server and clickEdit.
  3. In theAdvanced Settingsection, clickPolicies.
  4. In thePoliciessection, click the+icon to access thePoliciesslider.
  5. In thePoliciessection, set the following parameters.
    1. Choose Policy. Select video optimization detection policy from the drop-down list.
    2. Choose Type. Select the policy type as Request.
  6. ClickContinue.
  7. Select the video detection policy from the list and clickClose.

To create a video optimization action

  1. Log on to the Citrix ADC appliance and navigate toConfiguration>Optimization>VideoOptimization>Pacing>Actions.
  2. In the details pane, clickAdd.
  3. On theCreate Video Optimization Pacing Actionpage, set the following parameters.
    1. Name. Name of the optimization action.
    2. ABR Optimization Rate (Kbps).Pacing rate at which to send the ABR video traffic. The default rate for ABR optimization is 1000 Kbps. The minimum value is 1, and the maximum value is 2147483647.
    3. Comment. A short description of the action.
  4. ClickCreateandClose.

To create a video optimization policy

  1. Log on to the Citrix ADC appliance and navigate toConfiguration>Optimization>VideoOptimization>Pacing>Policies.
  2. In the details pane, clickAdd.
  3. On theCreate Video Optimization Pacing Policypage, set the following parameters.
    1. Name. Name of the optimization policy
    2. Expression. Custom regex expressions that implement the policy.
    3. Action. Optimization action associated with the policy to handle the incoming video traffic.
    4. UNDEF Action.Undefined event if the incoming request does not match the optimization policy.
    5. Comment. A short description of the policy.
    6. Log Action.Select the audit log action that creates the desired log messages.
  4. ClickCreate, and then clickClose.

To set video optimization pacing parameters

  1. Log on to the Citrix ADC appliance and navigate toConfiguration>Optimization>Video Optimization.
  2. In theVideo Optimizationpage, clickChange Video Optimization Settingslink.
  3. In theVideo Optimization Settingspage, set the following parameter.
    1. Random Sampling Percentage (%). Percentage of packets selected for random sampling.
  4. ClickOKandClose.

To bind a video optimization policy to an HTTP load balancing virtual server

  1. Log on to the Citrix ADC appliance and navigate toConfiguration>Optimization>Video Optimization.
  2. On theVideo Optimizationpage, click the视频优化政策经理踱来踱去link.
  3. Set the following parameters.
    1. Bind Point. The point at which to apply the optimization policy during request or response processing.
    2. Connection Type. Connection type as Request or Response.
    3. Virtual Server. The load balancing virtual server to which to bind the policy.
    4. ClickContinue.
  4. In theBind Pointsection, do one of the following:
    1. Select a policy from the list.
    2. ClickAdd Bindingto access thePolicies Bindingslider.
      1. Select an existing policy or add a new policy.
      2. Enter binding details and clickBind.
  5. ClickClose.

To bind a video optimization policy to an SSL-bridge load balancing virtual server

  1. Log on to the Citrix ADC appliance and navigate toConfiguration>Optimization>VideoOptimization.
  2. On theVideo Optimizationpage, click the视频优化政策经理踱来踱去link.
  3. On theVideo Optimization Policy Managerpage, set the following parameters.
    1. Bind Point. The point at which to apply the optimization policy during request/response processing.
    2. Connection Type. Connection type as Request or Response.
    3. Virtual Server. The SSL-bridge load balancing virtual server to which to bind the policy.
  4. ClickContinue.
  5. In theBind Pointsection, do one of the following:
    1. Select a policy binding from the list.
    2. ClickAdd Bindingto access thePolicies Bindingslider.
      1. Select an existing policy or add a policy.
      2. Enter binding details and clickBind.
  6. ClickClose.