Configuring parameters

Configuring the ToS field in IP packets sent to the client

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter IP parameter profile view.

parameter-profile profile-name

N/A

3. Configure the ToS field in the IP packets sent to the client.

set ip tos tos-number

By default, the ToS field in IP packets sent to the client is not changed.

Configuring the maximum local window size for TCP connections

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter TCP parameter profile view.

parameter-profile profile-name

N/A

3. Configure the maximum local window size for TCP connections.

tcp window-size size

By default, the maximum local window size is 65535 for TCP connections.

Specifying the action to take on the segments that exceed the MSS in the HTTP requests from the client

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter TCP parameter profile view.

parameter-profile profile-name

N/A

3. Specify the action to take on the segments that exceed the MSS in the HTTP requests from the client.

exceed-mss { allow | drop }

By default, the device allows the segments to exceed the MSS in the HTTP requests from the client.

Setting the MSS for the LB device

When a client establishes a TCP connection to the LB device, the client sends its own MSS value to the LB device. The LB device records the MSS value and sends the configured MSS value to the client. The client and the LB device use the smaller MSS value for communication.

When the LB device establishes a TCP connection to the server, the LB device sends the configured MSS value to the server. The server records the MSS value and sends its own MSS value to the LB device. The LB device and the server use the smaller MSS value for communication.

To set the MSS for the LB device:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter TCP parameter profile view.

parameter-profile profile-name

N/A

3. Set the MSS for the LB device.

tcp mss value

By default, the MSS is not set for the LB device.

Enabling load balancing for each HTTP request

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter HTTP parameter profile view.

parameter-profile profile-name

N/A

3. Enable load balancing for each HTTP request.

rebalance per-request

By default, load balancing applies to the first HTTP request of a connection. Other HTTP requests are processed in the same way the first request is processed.

Reusing the connection between the LB device and the server

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter HTTP parameter profile view.

parameter-profile profile-name

N/A

3. Reuse the connection between the LB device and the server.

server-connection reuse

By default, the connection between the LB device and the server cannot be reused.

This command is not supported by the virtual servers of the fast HTTP type.

Modifying the header in each HTTP request or response

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter HTTP parameter profile view.

parameter-profile profile-name

N/A

3. Perform the insert, delete, or modify operation for the header in each HTTP request or response.

header modify per-request

By default, the insert, delete, or modify operation is performed for the header in the first HTTP request or response of a connection.

Disabling case sensitivity matching for HTTP

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter HTTP parameter profile view.

parameter-profile profile-name

N/A

3. Disable case sensitivity matching for HTTP.

case-insensitive

By default, case sensitivity matching is enabled for HTTP.

Configuring the maximum length to parse the HTTP content

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter HTTP parameter profile view.

parameter-profile profile-name

N/A

3. Configure the maximum length to parse the HTTP content.

content maxparse-length length

By default, the maximum length to parse the HTTP content is 4096.

This command is not supported by the virtual servers of the fast HTTP type.

4. Configure the maximum length to parse HTTP headers.

header maxparse-length length

By default, the maximum length to parse HTTP headers is 4096.

This command is not supported by the virtual servers of the fast HTTP type.

Configuring secondary cookie parameters

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter HTTP parameter profile view.

parameter-profile profile-name

N/A

3. Configure the delimiter that separates secondary cookies in a URL.

secondary-cookie delimiters text

By default, the delimiter that separates secondary cookies in a URL is slash (/), ampersand (&), number sign (#), or plus (+).

4. Configure the start string for secondary cookies in a URL.

secondary-cookie start text

By default, the start string for secondary cookies in a URL is question mark (?).

Specifying the action to take when the header of an HTTP packet exceeds the maximum length

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter HTTP parameter profile view.

parameter-profile profile-name

N/A

3. Specify the action to take when the header of an HTTP packet exceeds the maximum length.

header exceed-length { continue | drop }

By default, the system continues to perform load balancing for HTTP requests or responses when their packet headers exceed the maximum length.

This command is not supported by the virtual servers of the fast HTTP type.

Configuring the HTTP compression feature

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter HTTP compression parameter profile view.

parameter-profile profile-name

N/A

3. Set the minimum length of HTTP response content for compression.

content length-threshold length

By default, the minimum length of HTTP response content for compression is 1024 bytes.

4. Set the compression level.

compression level level

By default, the compression level is 1.

5. Set the memory size used for compression.

memory-size size

By default, the memory size used for compression is 8 KB.

6. Enable compression for responses to HTTP 1.0 requests.

request-version all

By default, compression is disabled for responses to HTTP 1.0 requests.

7. Specify the preferred compression algorithm.

prefer-method { deflate | gzip }

By default, the preferred compression algorithm is gzip.

8. Delete the Accept-Encoding header from HTTP requests.

header delete request accept-encoding

By default, the Accept-Encoding header is deleted from HTTP requests.

9. Insert the Vary header to HTTP responses and set the header content to Accept-Encoding.

header insert response vary

By default, the Vary header is inserted to HTTP responses, and the header content is Accept-Encoding.

10. Configure a filtering rule for compression.

rule [ rule-id ] { permit | deny } { content | url } expression

By default, no filtering rules are configured.

11. Set the window size used for compression.

window-size size

By default, the window size used for compression is 16 KB.