This section describes the application scenarios of URL categories, predefined and user-defined categories, predefined URL category query, and re-marking of packet priorities based on URL categories.
Predefined URL categories are preset in the system. That is, the system classifies a large number of common URLs in advance. Predefined URL categories cannot be created, deleted, or renamed.
User-defined URL categories have a higher priority than predefined URL categories.
You can query predefined URL categories in two places: predefined URL category cache and remote query server.
The predefined URL category database is loaded to the cache after the first device startup. When a user requests to access a URL, the device queries the category matching the URL in the cache first. If a category is found, the device takes the action configured for the URL category. If no matching URL category is found, the system continues the query on the remote query server. If the category corresponding to the URL is found, the device takes the action configured for the URL category and saves the queried URL and the corresponding category information to the predefined URL category cache, for quick query next time.
Predefined URL category database
The predefined URL category database is a subset of URL categories in a small scale. In normal cases, the predefined URL category database is preset before delivery and does not need to be manually loaded. If an exception occurs on the device, you can manually load the predefined URL category database. If the predefined URL category database does not exist on the local device, log in to the security center platform (isecurity.huawei.com) to download it. On the web UI, choose , select the product model and version number, and click the Initial URL tab to download the predefined URL category database.
The predefined URL category cache contains URL categories and URL reputation. The URL categories come from the predefined URL category database, and the URL reputation comes from the URL reputation hotspot database. For description about the URL reputation and URL reputation hotspot database, see URL Reputation and Malicious URL. The following describes only the URL categories in the predefined URL category cache.
When the device is powered on for the first time, it automatically loads the predefined URL category database to the predefined URL category cache. To ensure the validity of predefined URL categories in the cache, the content of the predefined URL category cache is updated continuously based on remote query results. If the cache is full, the new URL will replace the least accessed URL. The content of the predefined URL category cache is stored in the storage medium periodically. After the device restarts, the system automatically loads the latest cached information, reducing the self-learning workload and improving the detection efficiency.
If no URL category is found in the predefined URL category cache, the URL category is queried on the remote query server. The remote query server provides more URL category information and can be deployed on a wide area network (WAN) or a local network. For detailed principles, see URL Remote Query Process.
Network devices distinguish and process packets based on differentiated services code point (DSCP) values carried in the packets. The priority re-marking function modifies the DSCP field values in packets.
If the action of a URL category is Allow, you can set to re-marking packet priority for the URL category so that other devices can differentially process traffic of URL categories based on their DSCP values.