WO2021143076A1 - 一种基于家庭网关的业务加速方法及系统 - Google Patents

一种基于家庭网关的业务加速方法及系统 Download PDF

Info

Publication number
WO2021143076A1
WO2021143076A1 PCT/CN2020/101264 CN2020101264W WO2021143076A1 WO 2021143076 A1 WO2021143076 A1 WO 2021143076A1 CN 2020101264 W CN2020101264 W CN 2020101264W WO 2021143076 A1 WO2021143076 A1 WO 2021143076A1
Authority
WO
WIPO (PCT)
Prior art keywords
acceleration
home gateway
message
terminal device
service
Prior art date
Application number
PCT/CN2020/101264
Other languages
English (en)
French (fr)
Inventor
何昆鹏
王莉
乔美杰
姜超
Original Assignee
烽火通信科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 烽火通信科技股份有限公司 filed Critical 烽火通信科技股份有限公司
Publication of WO2021143076A1 publication Critical patent/WO2021143076A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • H04L41/083Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability for increasing network speed

Definitions

  • the invention relates to the technical field of network data forwarding, in particular to a business acceleration method and system based on a home gateway.
  • the message acceleration of the home gateway can be divided into hardware acceleration and software acceleration.
  • Hardware acceleration is implemented by a proprietary chip, which can only be accelerated for special scenarios or special types of messages, with poor flexibility, and the processor chip in hardware acceleration is difficult to popularize on a large scale because of the high cost.
  • Software acceleration is usually implemented by DPI (Deep Packet Inspection). First, all data packets entering the protocol stack must be captured, and then the data packets will be identified through the DPI signature database. After the packets are identified, if necessary To accelerate, an acceleration rule is established according to the five-tuple of the data message, and the message is discarded if acceleration is not required.
  • DPI Deep Packet Inspection
  • the purpose of the present invention is to overcome the shortcomings of the above-mentioned background technology and provide a service acceleration method and system based on a home gateway, which can not only solve the problem that service acceleration occupies a large amount of CPU resources of the home gateway, improve the performance of the home gateway, and improve the terminal equipment User experience, high flexibility and low cost of use meet the needs of actual applications.
  • the present invention provides a service acceleration method based on a home gateway.
  • the home gateway is networked with terminal equipment through a local area network.
  • the method includes the following steps:
  • the terminal device monitors the opening and closing of the business application and the front and back switching status in real time, and sends the corresponding message to the home gateway; the home gateway judges the execution according to the analyzed corresponding message Or cancel the acceleration; if it is execution acceleration, add the business applications that need to be accelerated to the acceleration queue by configuring the corresponding acceleration rules to achieve acceleration; if it is to cancel the acceleration, delete the corresponding acceleration rules from the acceleration queue.
  • the terminal equipment is used to configure the acceleration requirements of business applications, which specifically includes the following operations: classify the business applications installed on the terminal equipment according to preset categories, and set different accelerations according to different categories Priority: Under each category, set the current business applications that need to be accelerated and those that do not need to be accelerated.
  • the message sent by the terminal device to the home gateway includes the unique device identification and the acceleration flag;
  • the unique identification of the device is the MAC of the terminal device Or one of IP;
  • the terminal device real-time monitors the opening, closing, and front-to-back switching status of the business application, and sends corresponding messages to the home gateway, including the following steps: the terminal device real-time monitors the opening, closing, and front-to-back switching status of the business application; when it is detected that it needs to be accelerated
  • a message is sent to the home gateway to notify the home gateway to perform acceleration
  • the acceleration flag is the value of the acceleration priority corresponding to the type of business application that needs to be accelerated
  • the acceleration flag is a preset specific value.
  • the home gateway judges whether to execute or cancel the acceleration according to the parsed corresponding message, which specifically includes the following steps: the home gateway parses the received message, and obtains the unique device identifier and acceleration flag in the message; if If the value in the acceleration flag bit is a preset specific value, it is determined that acceleration is canceled; otherwise, it is determined that acceleration is performed.
  • the acceleration requirements of business applications are configured through the home gateway, which specifically includes the following operations:
  • each record of the acceleration configuration table includes the unique device identifier of the terminal device, the service application identifier, and the acceleration priority corresponding to the service application;
  • the message sent by the terminal device to the home gateway includes the unique device identification, the business application identification, and the open/front-end identification or the closed/back-end identification;
  • the unique identifier of the device is one of the MAC or IP of the terminal device;
  • the service application identifier is the name of the service application;
  • the terminal device monitors the opening, closing, and front-end and back-end switching status of the business application in real time, and sends a corresponding message to the home gateway, which specifically includes the following steps: the terminal device monitors the opening, closing, and front-end and back-end switching status of the business application in real time; when the business application is monitored When it is turned on or running in the foreground, it sends a message containing the unique device identifier, business application identifier, and open/foreground identifier to the home gateway; when it is monitored that the business application is closed or switched to the background, it sends a message containing the unique device identifier and business application to the home gateway Identifies and closes/backend identification messages.
  • the home gateway judges whether to execute or cancel the acceleration according to the parsed corresponding message, which specifically includes the following steps: the home gateway parses the received message;
  • the message contains the open/foreground identifier, search for a matching record in the acceleration configuration table according to the unique device identifier and service application identifier in the message. If it is found and the acceleration priority corresponding to the service application is not preset Specific value, it is judged as execution acceleration;
  • the message contains the shutdown/backend identifier, search for a matching record in the acceleration configuration table according to the unique device identifier and service application identifier in the message. If it is found and the acceleration priority corresponding to the service application is not preset A specific value is determined to cancel acceleration.
  • the business applications that need to be accelerated are added to the acceleration queue by configuring corresponding acceleration rules to achieve acceleration, which specifically includes the following steps:
  • the home gateway judges whether the corresponding terminal device already has an acceleration rule. If it does not exist, it uses the MAC or IP of the terminal device in the unique device identifier as the key to configure the corresponding iptables rule or ebtables rule, and according to the business application that needs to be accelerated Acceleration priority, to generate acceleration rules for the terminal device; if there is an acceleration rule for the corresponding terminal device on the current home gateway, and the acceleration priority level is consistent with the newly received request, the current acceleration rule will remain unchanged, otherwise it will be deleted first
  • the existing acceleration rules are generated, and new acceleration rules are generated; the acceleration rules of the current terminal equipment are added to the acceleration queue to achieve acceleration of business applications that need to be accelerated.
  • the method further includes the following operations: the terminal device periodically sends a heartbeat message to the home gateway, and if the home gateway does not receive the heartbeat message from the terminal device in a number of cycles, it will be sent from the acceleration queue Delete the acceleration rule of the terminal device.
  • the method further includes the following operations: when the home gateway receives messages from multiple terminal devices, according to the preset MAC priority table of terminal devices , Prioritize service acceleration for terminal equipment with high MAC priority.
  • the present invention also provides a service acceleration system based on a home gateway.
  • the system includes a home gateway and a terminal device that is networked with the home gateway through a local area network.
  • the terminal device is provided with a business application monitoring module
  • the home gateway is provided with an acceleration processing module
  • the terminal device or the home gateway is also provided with a business acceleration configuration module;
  • the business acceleration configuration module is used to configure acceleration requirements of business applications
  • the service application monitoring module is used to: monitor the opening, closing, and front-end and back-end switching status of the service application in real time, and send corresponding messages to the home gateway;
  • the acceleration processing module is configured to: after receiving a message from a terminal device, parse the message, and determine whether to perform acceleration or cancel acceleration according to the parsed message; if it is to perform acceleration, business applications that need to be accelerated By adding the corresponding acceleration rules to the acceleration queue to achieve acceleration; if the acceleration is canceled, the corresponding acceleration rules will be deleted from the acceleration queue.
  • the specific process for the service acceleration configuration module to configure the acceleration requirements of the service application includes: installing the service on the terminal device Applications are classified according to preset categories, and different acceleration priorities are set according to different categories; under each category, the business applications that currently need to be accelerated and those that do not need to be accelerated are set.
  • the message sent by the service application monitoring module to the home gateway includes a unique device identifier and an acceleration flag; the unique device identifier is one of the MAC or IP of the terminal device;
  • the service application monitoring module monitors in real time the opening, closing, and front-to-back switching status of the service application, and sends corresponding messages to the home gateway, which specifically includes the following operations: real-time monitoring of the opening, closing, and front-to-back switching status of the service application;
  • a message is sent to the home gateway to notify the home gateway to perform acceleration;
  • the acceleration flag is the value of the acceleration priority corresponding to the type of business application that needs to be accelerated;
  • the acceleration flag is a preset specific value.
  • the acceleration processing module After the acceleration processing module receives the message from the terminal device, it parses the message, and judges whether to perform acceleration or cancel acceleration according to the parsed message, which specifically includes the following operations: the acceleration After the processing module receives the message from the terminal device, it parses the message and obtains the unique device identification and acceleration flag in the message; if the value in the acceleration flag is a preset specific value, it is determined that acceleration is canceled; otherwise, It is judged to execute acceleration.
  • the specific process for the service acceleration configuration module to configure the acceleration requirements of the service application includes:
  • each record of the acceleration configuration table includes the unique device identifier of the terminal device, the service application identifier, and the acceleration priority corresponding to the service application;
  • the message sent by the service application monitoring module to the home gateway includes the unique device ID, the service application ID, and the on/foreground ID or off/backstage ID;
  • the device’s unique ID is the MAC of the terminal device Or one of IP;
  • the service application identifier is the service application name;
  • the service application monitoring module monitors in real time the opening, closing, and front-to-back switching status of the service application, and sends corresponding messages to the home gateway, which specifically includes the following operations: real-time monitoring of the opening, closing, and front-to-back switching status of the service application;
  • a business application When a business application is started or running in the foreground, it sends a message containing the unique device identifier, business application identifier, and open/foreground identifier to the home gateway; when it is monitored that the business application is closed or switched to the background, it sends a message containing the unique device identifier, Message of business application identification and closing/background identification.
  • the acceleration processing module parses the message from the terminal device after receiving the message, and judges whether to perform acceleration or cancel acceleration according to the parsed message, which specifically includes the following operations: the acceleration After the processing module receives the message from the terminal device, it parses the message;
  • the message contains the open/foreground identifier, search for a matching record in the acceleration configuration table according to the unique device identifier and service application identifier in the message. If it is found and the acceleration priority corresponding to the service application is not preset Specific value, it is judged as execution acceleration;
  • the message contains the shutdown/backend identifier, search for a matching record in the acceleration configuration table according to the unique device identifier and service application identifier in the message. If it is found and the acceleration priority corresponding to the service application is not preset A specific value is determined to cancel acceleration.
  • the specific process for the acceleration processing module to perform acceleration includes:
  • the acceleration processing module When it is determined to perform acceleration, the acceleration processing module first determines whether the corresponding terminal device already has an acceleration rule. If it does not exist, it uses the MAC or IP of the terminal device in the unique device identifier as a keyword to configure the corresponding iptables rule or ebtables rule , And according to the acceleration priority of the business application that needs to be accelerated, the acceleration rule for the terminal device is generated; if the current home gateway has the acceleration rule for the corresponding terminal device, and the acceleration priority is consistent with the newly received request, the current The acceleration rules of the system remain unchanged, otherwise, the existing acceleration rules will be deleted first, and then new acceleration rules will be generated; then the acceleration rules of the current terminal device will be added to the acceleration queue to achieve acceleration of business applications that need to be accelerated.
  • the terminal equipment of the system further includes a heartbeat message sending module, and the home gateway also includes a heartbeat message receiving module;
  • the heartbeat message sending module is configured to: periodically send heartbeat messages to the home gateway;
  • the heartbeat message receiving module is used to receive the heartbeat message sent by the terminal device, and when the heartbeat message from the terminal device is not received in several cycles, delete the acceleration rule of the terminal device from the acceleration queue.
  • the accelerated processing module of the home gateway is also used to: When receiving messages from multiple terminal devices, prioritize the MAC according to the preset terminal device Level table, priority implementation of the business acceleration of terminal equipment with high MAC priority.
  • the present invention configures service acceleration requirements through a terminal device or a home gateway, and notifies the home gateway to perform acceleration when the terminal device is turned on or a service application that needs to be accelerated is running in the foreground.
  • a service application that needs to be accelerated is running in the foreground.
  • no proprietary chip implementation is required, and it can be accelerated for various scenarios or various types of messages.
  • the flexibility is high, and the chip cost is low, which is conducive to large-scale popularization; compared with the traditional DPI method
  • software acceleration there is no need to grab data packets and analyze the packets to extract the characteristic information of the packets, and there is no need to update the characteristic database, which greatly saves the home gateway CPU resources and achieves business acceleration without occupying a large amount of CPU resources. , Thereby improving equipment performance.
  • the present invention realizes the service acceleration of the terminal device, once the terminal device is turned on or runs a high-priority service in the foreground, the home gateway will be notified to directly schedule its high-priority service, that is, the acceleration is performed; when the terminal device is in the foreground When these services are not running (such as when shutting down or switching to the background), canceling the acceleration of the corresponding services can ensure that the high-priority services can receive the service response of the home gateway in time and improve the user experience.
  • the terminal device will periodically send a heartbeat message to the home gateway. If the home gateway does not receive the heartbeat message from the terminal device in a number of cycles, it will delete the terminal device’s data from the acceleration queue. Speed up the rules. Through the above operation, it is possible to avoid the situation that the terminal device is disconnected, and the home gateway still retains the acceleration rule of the terminal device in the acceleration queue and executes the corresponding business acceleration, which effectively reduces the invalid occupation of the resources of the home gateway.
  • the home gateway will give priority to execute the service acceleration of the terminal device with high MAC priority according to the preset MAC priority table of the terminal device, so that the home gateway will be in the terminal device.
  • the business acceleration of all terminal devices under the home network can be managed uniformly.
  • Fig. 1 is a flowchart of a service acceleration method based on a home gateway in an embodiment of the present invention
  • Figure 2 is a format diagram of a message sent by a terminal device to a home gateway in an embodiment of the present invention
  • Figure 3 is a format diagram of a message sent by a terminal device to a home gateway in another embodiment of the present invention.
  • FIG. 4 is a structural block diagram of a service acceleration system based on a home gateway in an embodiment of the present invention
  • Figure 5 is a structural block diagram of a service acceleration system based on a home gateway in another embodiment of the present invention.
  • the software acceleration method can avoid the problem that hardware acceleration can only be accelerated for special scenarios or special types of messages, and the flexibility is poor, and it can also avoid the cost of use caused by the high cost of the processor chip in hardware acceleration. problem.
  • the two major problems of the existing DPI method are mainly solved: first, it needs to take up a lot of CPU resources, which affects the experience of other services of the home gateway; second, the feature library needs to be timely based on the increase of business applications Update, the home gateway needs to preset the DPI feature library in advance. If there are new applications, the feature library needs to be updated. However, as a part of the home gateway software, how to upgrade the feature library without affecting the gateway business is also an urgent problem to be solved.
  • the solution proposed by the present invention is: the user configures the services that need to be accelerated and the services that do not need to be accelerated and the acceleration priority through the terminal device or the home gateway.
  • the gateway correspondingly executes acceleration or cancels acceleration; and when the home gateway accelerates an application according to the user's needs, the acceleration can be achieved by configuring related rules (such as iptables rules), and the acceleration message does not need to enter the Linux protocol stack for analysis.
  • this solution does not need to capture data messages and analyze the messages to extract the characteristic information of the messages, and there is no need to update the signature database, which greatly saves the CPU resources of the home gateway and can be used without occupying Achieve business acceleration with a large amount of CPU resources, thereby improving device performance.
  • a foreground application is a high-priority service, such as games , Live video, etc., need timely service from the home gateway.
  • the home gateway can directly schedule the high-priority services, that is, perform acceleration; when the terminal device does not run these high-priority services in the foreground During business (such as when it is closed or switched to the background), the home gateway cancels the acceleration of the corresponding business, which can ensure that high-priority services can receive the service response of the home gateway in time and improve the user experience.
  • this embodiment provides a service acceleration method based on a home gateway, and the home gateway is networked with terminal devices through a local area network. Specifically, the terminal device obtains an IP address from the home gateway or configures a static IP address through DHCP (Dynamic Host Configuration Protocol), the terminal device and the home gateway are in the same network segment, and the terminal device and the home gateway use a single Broadcast messages to communicate.
  • the business acceleration method includes the following steps:
  • the terminal device monitors the opening, closing and front-end and back-end switching status of the business application in real time, and sends corresponding messages to the home gateway;
  • the home gateway judges whether to execute or cancel the acceleration according to the parsed corresponding message; if it is execution acceleration, add the business application that needs to be accelerated to the acceleration queue by configuring the corresponding acceleration rules to achieve acceleration; if it is to cancel the acceleration, then Delete the corresponding acceleration rule from the acceleration queue.
  • terminal devices include but are not limited to: mobile phones, set-top boxes, tablet computers, etc.
  • the terminal device may implement the function of the terminal device side in the above method by running a service acceleration APP. That is, a service acceleration APP is installed on the terminal device, and the service acceleration APP has the function of implementing steps A and B of the above method.
  • the terminal device system can also be directly used to implement the above method, which is not specifically limited in this embodiment.
  • This embodiment provides a service acceleration method based on a home gateway.
  • the basic steps are the same as those in the first embodiment. The difference is that, as an optional implementation, in step A, if the service is applied to the service through the terminal device To accelerate the configuration of requirements, this step specifically includes the following operations:
  • Classify the business applications installed on the terminal device according to preset categories such as the preset categories are divided into categories such as games, videos, downloads, etc.; and set different acceleration priorities according to different categories, such as game acceleration priority
  • the level is set to 1
  • the video acceleration priority is set to 2
  • the download acceleration priority is set to 3
  • the acceleration priority of the business category that does not need to be accelerated is set to 0, and so on.
  • the smaller the acceleration priority value of the other categories the higher the priority level.
  • each category set the current business applications that need to be accelerated and those that do not need to be accelerated. For example, you can set the business applications that need and do not need to be accelerated by checking or unchecking: when checked, it means that the business application is a business application that needs to be accelerated, and when it is unchecked, it means that the business application does not need to be accelerated Business applications.
  • checking or unchecking when checked, it means that the business application is a business application that needs to be accelerated, and when it is unchecked, it means that the business application does not need to be accelerated Business applications.
  • other designs can be made for the setting mode according to actual conditions, which is not specifically limited in this embodiment.
  • in actual operation after setting the business applications that need and do not need to be accelerated, save the configuration and notify the terminal device to update.
  • the method further includes a new configuration operation of the business: when a certain business application is newly installed on the terminal device, if the business application is newly installed If the application belongs to a certain category in the current classification, the business application is added to the corresponding category; if the business application does not belong to any category in the current classification, a new category is added to the preset category, and the Business applications are added to the newly added category.
  • the message sent by the terminal device to the home gateway is composed of two fields, including the unique identifier of the device and the acceleration flag.
  • the unique device identifier is a unique feature used to identify a device in the local area network, including the MAC or IP of the terminal device.
  • step B specifically includes the following operations:
  • the terminal equipment real-time monitors the opening, closing and front-end and back-end switching status of business applications.
  • the acceleration flag is the value of the acceleration priority corresponding to the type of business application that currently needs to be accelerated. For example, if the type of business application that needs to be accelerated is a game, and the acceleration priority of the game category is 1, then the acceleration flag of the message takes the value 1.
  • the acceleration flag bit is a preset specific value.
  • the preset specific value is 0.
  • the specific value and priority strategy can be defined according to actual conditions, and only the terminal device and the home gateway need to agree on the value of the corresponding parameter, which is not specifically limited in this embodiment.
  • the terminal device is used as the Android system below, and the terminal device implements the above method by running the business acceleration APP.
  • the function of the terminal device side is taken as an example to further explain step B of the method in detail:
  • the activity of an application with an interface is monitored by the life cycle OnResume and OnPause.
  • OnResume method the package name of this application is obtained, and it can be determined that this application is currently running in the foreground.
  • OnPause method the package name of the application is obtained, and it can be determined that the application is currently running in the background or destroyed.
  • the service of an interfaceless application is monitored by the life cycle OnCreat and OnDestroy.
  • the system automatically calls the OnCreat method the package name of the application is obtained, and it can be determined that the application is currently starting the service, that is, the business application is started.
  • OnDestroy the package name of this application is obtained, and it can be determined that this application is out of service, that is, the business application is closed.
  • the system service ActivityManagerService can be used on the terminal device of the Android system to obtain the front-end and back-end switching status of the application.
  • the AMS sends a message to notify the service acceleration APP of the package name of the foreground application, and the service acceleration APP judges whether it needs to send a message to the gateway for service acceleration according to the package name;
  • AMS will call the OnPause method and also send a message to the business acceleration APP.
  • the current application is switched to the background and inform it of the package name of the switch to the background application.
  • the business acceleration APP is based on the package name.
  • AMS will call the OnCreat method.
  • AMS will send a message to notify the service acceleration APP of the package name of the non-interface application.
  • the service acceleration APP judges whether it needs to send a message to the home gateway for service acceleration according to the package name;
  • AMS will call the OnDestroy method, and also send a message to the business acceleration APP for the package name of the interfaceless application.
  • the business acceleration APP judges whether to cancel the acceleration of the application business based on the package name.
  • the business acceleration APP uses the state switching methods (OnResume, OnPause, OnCreate, OnDestroy) automatically called by the system to compare the currently acquired application name with the configuration The name of the business application that needs to be accelerated is compared. If the application is a business application that has been configured for acceleration, and the business application is opened or running in the foreground, a message is sent to notify the home gateway to perform acceleration; if the business application is closed or switched When it reaches the background, a message is sent to notify the home gateway to cancel acceleration; if the application is a business application that does not require acceleration, no processing is performed.
  • state switching methods OnResume, OnPause, OnCreate, OnDestroy
  • This embodiment provides a home gateway-based service acceleration method.
  • the basic steps are the same as those in the first embodiment. The difference is that, as an optional implementation, in step A, if the service is applied to the home gateway through the home gateway To accelerate the configuration of requirements, this step specifically includes the following operations:
  • Each record of the acceleration configuration table includes the unique device identifier of the terminal device, the service application identifier, and the acceleration priority corresponding to the service application;
  • A2 Create a corresponding record in the acceleration configuration table according to the business applications installed on the terminal device; set the acceleration priority of the business applications that do not need to be accelerated to a preset specific value, and set the business applications that need to be accelerated
  • the acceleration priority is set to different values according to the priority.
  • the preset specific value is 0 (that is, the acceleration priority of business applications that do not need to be accelerated is 0), and the smaller the acceleration priority value of the business application that needs to be accelerated, the higher the priority.
  • the specific value and priority strategy can be defined according to actual conditions, and only the terminal device and the home gateway need to agree on the value of the corresponding parameter, which is not specifically limited in this embodiment.
  • the message sent by the terminal device to the home gateway is composed of three fields, including a unique device identifier, a service application identifier, and an open/foreground identifier or an off/background identifier.
  • the unique device identifier is a unique feature used to identify a device in the local area network, including the MAC or IP of the terminal device;
  • the service application identifier is the service application name.
  • step B specifically includes the following operations:
  • the terminal equipment real-time monitors the opening, closing and front-end and back-end switching status of business applications
  • step C of the method specifically includes the following steps:
  • the home gateway parses the received message to obtain the unique device identification and acceleration flag in the message; according to the value in the acceleration flag, determine whether to perform acceleration or Cancel acceleration (if the value in the acceleration flag bit is a preset specific value, it is determined that acceleration is canceled, otherwise, acceleration is executed), if acceleration is executed, go to step C2, if acceleration is canceled, go to step C3.
  • the home gateway parses the received message; when the message contains the open/foreground identifier, the device unique identifier and the business application identifier in the message are used in the acceleration configuration Table search matches the record. If it finds and the acceleration priority corresponding to the business application is not a preset specific value, then it is judged to execute acceleration and go to step C2; when the message contains the shutdown/background identification, it is determined according to the message
  • the device’s unique identifier and service application identifier in the acceleration configuration table are searched for matching records in the acceleration configuration table.
  • the acceleration priority corresponding to the service application is not a preset specific value (the acceleration priority is not a preset specific The value indicates that the business application is an application that needs to be accelerated), it is determined that the acceleration is canceled, and the process goes to step C3. It is understandable that no matter whether the message contains the open/foreground identifier or the closed/background identifier, as long as the matching record is not found in the acceleration configuration table or the acceleration priority corresponding to the business application is a preset specific Value (the acceleration priority is a preset specific value indicating that the business application is an application that does not require acceleration), then no processing is performed.
  • the home gateway determines whether the corresponding terminal device already has an acceleration rule. If it does not exist, it uses the MAC or IP of the terminal device in the unique device identifier as the key to configure the corresponding iptables rule or ebtables rule (if the device uniquely identifies this For the MAC of the terminal device, configure the corresponding ebtables rule; if the device is uniquely identified as the IP of the terminal device, configure the corresponding iptables rule), and generate the acceleration rule for the terminal device according to the acceleration priority of the business application that needs to be accelerated ; If there is an acceleration rule for the corresponding terminal device on the current home gateway, and the acceleration priority level is consistent with the newly received request, the current acceleration rule will remain unchanged, otherwise the existing acceleration rule will be deleted first, and then a new acceleration will be generated Rules (for the process of generating new acceleration rules, refer to the operation of generating acceleration rules when the aforementioned acceleration rules do not exist) to ensure that there is only one acceleration rule on the home gateway for a terminal device;
  • the home gateway deletes the corresponding acceleration rule from the acceleration queue.
  • the home gateway executes the scheduling policy, after receiving the acceleration cancellation message from the same terminal device, it does not immediately delete the corresponding acceleration rule corresponding to the execution acceleration, but waits for a certain period of time to see if After receiving the message of execution acceleration sent by the same terminal device, the final scheduling strategy is executed. If the acceleration rules corresponding to the two previous acceleration messages are the same, there is no need to run the cancel operation corresponding to the first acceleration rule before the second acceleration rule that is consistent with the first acceleration rule takes effect.
  • the acceleration processing module of the home gateway can skip the two operations of canceling the acceleration rules of application A and enabling the acceleration rules of application B.
  • the home gateway also retains the acceleration rule of the terminal device in the acceleration queue and executes corresponding service acceleration, thus occupying the resources of the home gateway.
  • This embodiment provides a home gateway-based service acceleration method. The basic steps are the same as those in the first embodiment. The difference is that, as a preferred implementation, the method further includes the following steps: the terminal device periodically sends heartbeats The message is sent to the home gateway, and if the home gateway does not receive a heartbeat message from the terminal device in several cycles, the acceleration rule of the terminal device is deleted from the acceleration queue.
  • the cycle time for the terminal device to send the heartbeat message is preferably 60 seconds, and the home gateway does not receive the heartbeat message from the terminal device within 3 cycles by default, so the acceleration rule of the terminal device is deleted from the acceleration queue .
  • the above-mentioned parameters can be set according to specific conditions, as long as the home gateway can detect that the communication with the terminal device is interrupted in time, which is not specifically limited in this embodiment.
  • This embodiment provides a home gateway-based service acceleration method.
  • the basic steps are the same as those in the first embodiment. The difference is that, as a preferred implementation, when there are multiple terminal devices, the method also It includes the following steps: when the home gateway receives a message from multiple terminal devices, according to a preset terminal device MAC priority table, the service acceleration of the terminal device with a higher MAC priority is executed first.
  • the home gateway can uniformly manage the business acceleration of all terminal devices under the home network.
  • the MAC priority corresponding to each terminal device can be calculated in the following manner: if the MAC weight of the terminal device is a (a positive integer , The smaller the priority, the higher the priority), the corresponding acceleration priority of the business application that needs to be accelerated is b (a positive integer, the smaller the priority is, the higher the priority), then the terminal device can be calculated according to F(a, b)
  • the normalized weight is the MAC priority.
  • F(a, b) is agreed to be a*b. The smaller the value, the higher the priority.
  • the embodiment of the present invention also provides a service acceleration system based on a home gateway.
  • the system includes a home gateway and a terminal device networked with the home gateway through a local area network.
  • the terminal device is provided with a business application monitoring module
  • the home gateway is provided with an acceleration processing module
  • the terminal device or the home gateway is also provided with a business acceleration configuration module.
  • the business acceleration configuration module is used to configure the acceleration requirements of business applications
  • the business application monitoring module is used for: real-time monitoring of the opening, closing and front-end and back-end switching status of the business application, and sending corresponding messages to the home gateway;
  • the acceleration processing module is used to parse the message after receiving the message from the terminal device, and determine whether to perform acceleration or cancel the acceleration according to the parsed message; if the acceleration is to be performed, the business applications that need to be accelerated are configured through the configuration The corresponding acceleration rule is added to the acceleration queue to achieve acceleration; if the acceleration is canceled, the corresponding acceleration rule is deleted from the acceleration queue.
  • the service acceleration configuration module and the service application monitoring module can form a form of a service acceleration APP to implement their respective functions on a terminal device. That is, a service acceleration APP is installed on the terminal device, and the service acceleration APP includes a service acceleration configuration module and a service application monitoring module.
  • a service acceleration APP is installed on the terminal device, and the service acceleration APP includes a service acceleration configuration module and a service application monitoring module.
  • the above-mentioned functional modules can also be directly customized in the terminal equipment system, which is not specifically limited in this embodiment.
  • the basic structure of a service acceleration system based on a home gateway provided in this embodiment is the same as that of Embodiment 7.
  • the specific process for the business acceleration configuration module to configure the acceleration requirements of business applications includes: classifying the business applications installed on the terminal device according to preset categories, and setting different acceleration priorities according to different categories, For example, the acceleration priority of the game is set to 1, the acceleration priority of the video is set to 2, the acceleration priority of download is set to 3, the acceleration priority of the business category that does not need to be accelerated is set to 0, etc.; finally, under each category Set the current business applications that need to be accelerated and those that do not need to be accelerated.
  • the business acceleration configuration module is also used to perform new business configuration operations: when a terminal device newly installs a certain business When applying, if the business application belongs to a certain category in the current classification, the business application is added to the corresponding category; if the business application does not belong to any category in the current classification, it is added to the preset category A category, and the business application is added to the new category.
  • the message sent by the message sending module to the home gateway is composed of two fields, including a unique device identifier and an acceleration flag bit.
  • the unique device identifier is a unique feature used to identify a device in the local area network, including the MAC or IP of the terminal device.
  • the service application monitoring module monitors the opening, closing, and front-end and back-end switching status of the service application in real time, and sends a corresponding message to the home gateway, which specifically includes the following operations:
  • the acceleration flag is the acceleration priority corresponding to the type of business application that needs to be accelerated.
  • the acceleration flag is a preset specific value.
  • the preset specific value is 0, but it is understandable that during specific operations, the specific value and priority strategy can be defined according to the actual situation, and the terminal device and the home gateway only need to agree on the value of the corresponding parameter.
  • this embodiment does not make specific limitations.
  • the basic structure of a service acceleration system based on a home gateway provided in this embodiment is the same as that of Embodiment 7. The difference is that, as an optional implementation, if the service acceleration configuration module is installed in the home On the gateway, the specific process for the business acceleration configuration module to configure the acceleration requirements of business applications includes:
  • each record of the acceleration configuration table includes the unique device identifier of the terminal device, the service application identifier, and the acceleration priority corresponding to the service application;
  • the acceleration priority of the business applications that do not need to be accelerated is 0
  • the acceleration priority of business applications that do not need to be accelerated is 0
  • the smaller the acceleration priority value of the business application that needs to be accelerated the higher the priority.
  • the specific value and priority strategy can be defined according to actual conditions, and only the terminal device and the home gateway need to agree on the value of the corresponding parameter, which is not specifically limited in this embodiment.
  • the message sent by the terminal device to the home gateway is composed of three fields, including a unique device identifier, a service application identifier, and an open/foreground identifier or an off/background identifier.
  • the unique device identifier is a unique feature used to identify a device in the local area network, including the MAC or IP of the terminal device;
  • the service application identifier is the service application name.
  • the service application monitoring module monitors the opening, closing, and front-end and back-end switching status of the service application in real time, and sends a corresponding message to the home gateway, which specifically includes the following operations:
  • a message containing the unique device identifier, the business application identifier, and the open/foreground identifier is sent to the home gateway;
  • a message including the unique device identification, the business application identification, and the closed/backstage identification is sent to the home gateway.
  • This embodiment provides a service acceleration system based on a home gateway. Its basic structure is the same as that of the eighth or ninth embodiment. The difference is that after the acceleration processing module receives a message sent by a terminal device, it performs processing on the message Analyze, and judge whether to perform acceleration or cancel acceleration according to the parsed message, including the following processes:
  • the acceleration processing module will parse the message after receiving the message from the terminal device to obtain the unique device identifier and acceleration flag in the message; If the value in the flag bit is a preset specific value, it is judged to cancel acceleration, otherwise, it is judged to execute acceleration;
  • the acceleration processing module will parse the message after receiving the message from the terminal device; when the message contains the open/foreground identifier, it will be based on the message in the message.
  • the device’s unique identifier and the service application identifier are searched for matching records in the acceleration configuration table. If it is found and the acceleration priority corresponding to the service application is not a preset specific value, it is determined to perform acceleration; when the message contains Turn off/back-end identification, then search for a matching record in the acceleration configuration table according to the unique device identification and service application identification in the message. If it is found and the acceleration priority corresponding to the service application is not a preset specific value, then It is determined that acceleration is cancelled.
  • the specific process for the acceleration processing module to perform acceleration or cancel acceleration includes:
  • the acceleration processing module When it is determined to perform acceleration, the acceleration processing module first determines whether the corresponding terminal device already has an acceleration rule. If it does not exist, it uses the MAC or IP of the terminal device in the unique device identifier as a keyword to configure the corresponding iptables rule or ebtables rule , And according to the acceleration priority of the business application that needs to be accelerated, the acceleration rule for the terminal device is generated; if the current home gateway has the acceleration rule for the corresponding terminal device, and the acceleration priority is consistent with the newly received request, the current The acceleration rule of the terminal remains unchanged, otherwise, delete the existing acceleration rule first, and then generate a new acceleration rule to ensure that only one acceleration rule exists for a terminal device on the home gateway; then add the acceleration rule of the current terminal device to the acceleration queue , To achieve the acceleration of business applications that need to be accelerated;
  • the acceleration processing module deletes the corresponding acceleration rule from the acceleration queue.
  • the acceleration processing module of the home gateway executes the scheduling strategy, after receiving the acceleration cancellation message from the same terminal device, it does not immediately delete the corresponding acceleration rule corresponding to the execution acceleration, but waits for a certain period of time. After that, see if the message to execute acceleration sent by the same terminal device is received, and then execute the final scheduling strategy. If the acceleration rules corresponding to the two previous acceleration messages are the same, there is no need to run the cancel operation corresponding to the first acceleration rule before the second acceleration rule that is consistent with the first acceleration rule takes effect.
  • the acceleration processing module of the home gateway can skip the two operations of canceling the acceleration rules of application A and enabling the acceleration rules of application B.
  • the basic structure of a service acceleration system based on a home gateway provided by this embodiment is the same as that of the seventh embodiment. The difference is: as a preferred implementation, in order to avoid disconnection of the terminal device, the home gateway is still The acceleration rules of the terminal device are reserved in the acceleration queue and the corresponding business acceleration is executed, which occupies the resources of the home gateway.
  • the terminal equipment of the system also includes a heartbeat message sending module, and the home gateway also includes a heartbeat message receiving module. Among them, the heartbeat message sending module is used to periodically send heartbeat messages to the home gateway.
  • the heartbeat message receiving module is used to receive the heartbeat message sent by the terminal device, and when the heartbeat message from the terminal device is not received in several cycles, delete the acceleration rule of the terminal device from the acceleration queue.
  • This embodiment provides a service acceleration system based on a home gateway. Its basic structure is the same as that of the seventh embodiment. The difference is: as a preferred implementation, when there are multiple terminal devices, the acceleration of the home gateway is The processing module is also used for: when receiving corresponding messages from multiple terminal devices, according to the preset terminal device MAC priority table, priority execution of the service acceleration of the terminal device with high MAC priority is performed. Through the above operations, when there are multiple terminal devices, the home gateway can uniformly manage the business acceleration of all terminal devices under the home network.
  • the MAC priority corresponding to each terminal device can be calculated in the following manner: if the MAC weight of the terminal device is a (a positive integer , The smaller the priority, the higher the priority), the corresponding acceleration priority of the business application that needs to be accelerated is b (a positive integer, the smaller the priority is, the higher the priority), then the terminal device can be calculated according to F(a, b)
  • the normalized weight is the MAC priority.
  • F(a, b) is agreed to be a*b. The smaller the value, the higher the priority.
  • the means may include various hardware and/or software components and/or modules, including but not limited to hardware circuits or processors.
  • the method of the embodiment of the present invention includes one or more actions for implementing the above-mentioned method.
  • the methods and/or actions can be interchanged with each other without departing from the scope of the claims.
  • the order and/or use of specific actions can be modified without departing from the scope of the claims.
  • the functions in the embodiments of the present invention can be implemented by hardware, software, firmware or any combination thereof. If implemented in software, the functions can be stored as one or more instructions on a tangible computer-readable medium.
  • the storage medium may be any available tangible medium that can be accessed by a computer.
  • such computer-readable media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or may be used to carry or store instructions or data in the form of desired structures.
  • the program code and any other tangible medium that can be accessed by the computer may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or may be used to carry or store instructions or data in the form of desired structures.
  • the program code and any other tangible medium that can be accessed by the computer may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or may be used to carry or store instructions or data in the form of desired structures.
  • disk and disc include compact disc (CD), laser disc, optical disc, DVD (Digital Versatile Disc, digital versatile disc), floppy disc, and blu-ray disc, where the disc is reproduced by magnetic Data, and the disc uses laser to optically reproduce the data.
  • CD compact disc
  • laser disc optical disc
  • DVD Digital Versatile Disc
  • floppy disc floppy disc
  • blu-ray disc where the disc is reproduced by magnetic Data, and the disc uses laser to optically reproduce the data.
  • the computer program product can perform the operations given here.
  • a computer program product may be a computer-readable tangible medium having instructions tangibly stored (and/or encoded) thereon, and the instructions may be executed by one or more processors to perform the operations described herein.
  • the computer program product may include packaging materials.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

本发明公开了一种基于家庭网关的业务加速方法及系统,涉及网络数据转发技术领域。该方法包括:通过终端设备或家庭网关对业务应用的加速需求进行配置;终端设备实时监测业务应用的开启、关闭及前后台切换状态,并向家庭网关发送相应消息;家庭网关根据解析的相应消息,判断是执行还是取消加速;若为执行加速,则将需要加速的业务应用通过配置相应的加速规则加入到加速队列中,实现加速;若为取消加速,则从加速队列中删除相应的加速规则。本发明不但可以解决业务加速占用家庭网关大量CPU资源的问题,提高家庭网关的性能,提升终端设备的用户体验,而且灵活性高,使用成本低,满足了实际应用需求。

Description

一种基于家庭网关的业务加速方法及系统 技术领域
本发明涉及网络数据转发技术领域,具体来讲是一种基于家庭网关的业务加速方法及系统。
背景技术
随着网络技术的飞速发展,游戏、视频等应用对网络的吞吐量、时延都提出了很高的要求,宽带质量的好坏直接影响了用户的体验,家庭网关作为固网接入的主流设备也正在面临着同样的挑战,因此,对于业务加速的处理已显得必不可少。
目前,家庭网关的报文加速可分为硬件加速和软件加速。硬件加速,是由专有的芯片实现,只能针对特殊场景或特殊类型的报文进行加速,灵活性较差,而且硬件加速中的处理器芯片因为成本高,难以大规模普及。软件加速,通常采用DPI(Deep Packet Inspection,深度报文检测)实现,首先要捕获进入协议栈的所有数据报文,然后通过DPI的特征库对数据报文进行识别,报文识别后,如果需要加速,则按数据报文的五元组建立加速规则,如果不需要加速则将报文丢弃。这种方式存在两个问题:第一,需要占用大量的CPU资源,影响家庭网关其他业务的体验,也由于受限于家庭网关CPU的处理能力,难以满足当前业务日益增加带来的带宽问题;第二,特征库需要根据业务应用的增加及时更新,家庭网关要事先预置DPI的特征库,如果有新增应用,特征库需要更新,但特征库作为家庭网关软件的一部分,如何升级且不影响家庭网关业务也是一个急需解决的问题。
发明内容
本发明的目的是为了克服上述背景技术的不足,提供一种基于家庭网关的业务加速方法及系统,不但可以解决业务加速占用家庭网关大量CPU资源的问题,提高家庭网关的性能,提升终端设备的用户体验,而且灵活性高,使用成本低,满足了实际应用需求。
为达到以上目的,本发明提供一种基于家庭网关的业务加速方法,所述家庭网关通过局域网与终端设备进行组网,该方法包括以下步骤:
通过终端设备或家庭网关对业务应用的加速需求进行配置;终端设备实时监测业务应用的开启、关闭及前后台切换状态,并向家庭网关发送相应消息;家庭网关根据解析的相应消息,判断是执行还是取消加速;若为执行加速,则将需要加速的业务应用通过配置相应的加速规则加入到加速队列中,实现加速;若为取消加速,则从加速队列中删除相应的加速规则。
在上述技术方案的基础上,通过终端设备对业务应用的加速需求进行配置,具体包括以下操作:将终端设备上安装的业务应用按照预设的类别进行分类,并根据不同的类别设置不同的加速优先级;在每一类别下对当前需要加速和不需要加速的业务应用进行设置。
在上述技术方案的基础上,若通过终端设备对业务应用的加速需求进行配置,则终端设备向家庭网关发送的消息包括设备唯一标识和加速标志位;所述设备唯一标识为该终端设备的MAC或IP中的一种;
终端设备实时监测业务应用的开启、关闭及前后台切换状态,并向家庭网关发送相应消息,具体包括以下步骤:终端设备实时监测业务应用的开启、关闭及前后台切换状态;当监测到需要加速的业务应用开启或运行在前台时,向家庭网关发送消息通知家庭网关执行加速; 所发送的消息中,加速标志位为当前需要加速的业务应用的类型所对应的加速优先级的值;当监测到需要加速的业务应用关闭或切换至后台时,向家庭网关发送消息通知家庭网关取消加速;所发送的消息中,加速标志位为预设的特定值。
在上述技术方案的基础上,家庭网关根据解析的相应消息,判断是执行还是取消加速,具体包括以下步骤:家庭网关对接收到的消息进行解析,获取消息中设备唯一标识及加速标志位;若加速标志位中的值为预设的特定值则判定为取消加速,否则,判定为执行加速。
在上述技术方案的基础上,通过家庭网关对业务应用的加速需求进行配置,具体包括以下操作:
在家庭网关上创建并维护一个加速配置表,所述加速配置表的每条记录包括终端设备的设备唯一标识、业务应用标识以及该业务应用对应的加速优先级;
根据终端设备上安装的业务应用,在所述加速配置表中创建相应的记录;并将不需要加速的业务应用的加速优先级设置为预设的特定值,将需要加速的业务应用的加速优先级按照优先级的高低设置为不同的值。
在上述技术方案的基础上,若通过家庭网关对业务应用的加速需求进行配置,则终端设备向家庭网关发送的消息包括设备唯一标识、业务应用标识以及开启/前台标识或关闭/后台标识;所述设备唯一标识为该终端设备的MAC或IP中的一种;所述业务应用标识为业务应用名;
终端设备实时监测业务应用的开启、关闭及前后台切换状态,并向家庭网关发送相应消息,具体包括以下步骤:终端设备实时监测业务应用的开启、关闭及前后台切换状态;当监测到业务应用开启或运 行在前台时,向家庭网关发送包含设备唯一标识、业务应用标识以及开启/前台标识的消息;当监测到业务应用关闭或切换至后台时,向家庭网关发送包含设备唯一标识、业务应用标识以及关闭/后台标识的消息。
在上述技术方案的基础上,家庭网关根据解析的相应消息,判断是执行还是取消加速,具体包括以下步骤:家庭网关对接收到的消息进行解析;
若消息中包含开启/前台标识,则根据消息中的设备唯一标识、业务应用标识在所述加速配置表查找相匹配的记录,如果查找到且该业务应用对应的加速优先级不为预设的特定值,则判定为执行加速;
若消息中包含关闭/后台标识,则根据消息中的设备唯一标识、业务应用标识在所述加速配置表查找相匹配的记录,如果查找到且该业务应用对应的加速优先级不为预设的特定值,则判定为取消加速。
在上述技术方案的基础上,若为执行加速,则将需要加速的业务应用通过配置相应的加速规则加入到加速队列中,实现加速,具体包括以下步骤:
家庭网关判断对应终端设备是否已存在加速规则,若不存在,则以设备唯一标识中该终端设备的MAC或IP作为关键字,配置对应的iptables规则或ebtables规则,并根据需要加速的业务应用的加速优先级,生成该终端设备的加速规则;若当前家庭网关上已有对应终端设备的加速规则,且加速优先级别与新收到的请求一致,则保持当前的加速规则不变,否则先删除已存在的加速规则,再生成新的加速规则;将当前终端设备的加速规则加入到加速队列中,实现对需要加速的业务应用的加速。
在上述技术方案的基础上,该方法还包括以下操作:终端设备周 期性发送心跳消息给家庭网关,若家庭网关在若干个周期内没有收到来自该终端设备的心跳消息,则从加速队列中删除该终端设备的加速规则。
在上述技术方案的基础上,当所述终端设备为多个时,该方法还包括以下操作:当家庭网关收到多个终端设备发来的消息时,根据预设的终端设备MAC优先级表,优先执行MAC优先级高的终端设备的业务加速。
本发明还提供一种基于家庭网关的业务加速系统,该系统包括家庭网关以及通过局域网与家庭网关组网的终端设备。所述终端设备设有业务应用监测模块,所述家庭网关设有加速处理模块,且终端设备或家庭网关上还设有业务加速配置模块;
所述业务加速配置模块,用于:对业务应用的加速需求进行配置;
所述业务应用监测模块,用于:实时监测业务应用的开启、关闭及前后台切换状态,并向家庭网关发送相应消息;
所述加速处理模块,用于:收到终端设备发来的消息后,对该消息进行解析,并根据解析的消息判断是执行加速还是取消加速;若为执行加速,则将需要加速的业务应用通过配置相应的加速规则加入到加速队列中,实现加速;若为取消加速,则从加速队列中删除相应的加速规则。
在上述技术方案的基础上,若所述业务加速配置模块设于所述终端设备上,则所述业务加速配置模块对业务应用的加速需求进行配置的具体流程包括:将终端设备上安装的业务应用按照预设的类别进行分类,并根据不同的类别设置不同的加速优先级;在每一类别下对当前需要加速和不需要加速的业务应用进行设置。
在上述技术方案的基础上,所述业务应用监测模块向家庭网关发 送的消息包括设备唯一标识和加速标志位;所述设备唯一标识为该终端设备的MAC或IP中的一种;
所述业务应用监测模块实时监测业务应用的开启、关闭及前后台切换状态,并向家庭网关发送相应消息,具体包括以下操作:实时监测业务应用的开启、关闭及前后台切换状态;当监测到需要加速的业务应用开启或运行在前台时,向家庭网关发送消息通知家庭网关执行加速;所发送的消息中,加速标志位为当前需要加速的业务应用的类型所对应的加速优先级的值;当监测到需要加速的业务应用关闭或切换至后台时,向家庭网关发送消息通知家庭网关取消加速;所发送的消息中,加速标志位为预设的特定值。
在上述技术方案的基础上,所述加速处理模块收到终端设备发来的消息后,对该消息进行解析,并根据解析的消息判断是执行加速还是取消加速,具体包括以下操作:所述加速处理模块收到终端设备发来的消息后,对该消息进行解析,获取消息中设备唯一标识及加速标志位;若加速标志位中的值为预设的特定值则判定为取消加速,否则,判定为执行加速。
在上述技术方案的基础上,若所述业务加速配置模块设于所述家庭网关上,则所述业务加速配置模块对业务应用的加速需求进行配置的具体流程包括:
在家庭网关上创建并维护一个加速配置表,所述加速配置表的每条记录包括终端设备的设备唯一标识、业务应用标识以及该业务应用对应的加速优先级;
根据终端设备上安装的业务应用,在所述加速配置表中创建相应的记录;并将不需要加速的业务应用的加速优先级设置为预设的特定值,将需要加速的业务应用的加速优先级按照优先级的高低设置为不 同的值。
在上述技术方案的基础上,所述业务应用监测模块向家庭网关发送的消息包括设备唯一标识、业务应用标识以及开启/前台标识或关闭/后台标识;所述设备唯一标识为该终端设备的MAC或IP中的一种;所述业务应用标识为业务应用名;
所述业务应用监测模块实时监测业务应用的开启、关闭及前后台切换状态,并向家庭网关发送相应消息,具体包括以下操作:实时监测业务应用的开启、关闭及前后台切换状态;当监测到业务应用开启或运行在前台时,向家庭网关发送包含设备唯一标识、业务应用标识以及开启/前台标识的消息;当监测到业务应用关闭或切换至后台时,向家庭网关发送包含设备唯一标识、业务应用标识以及关闭/后台标识的消息。
在上述技术方案的基础上,所述加速处理模块收到终端设备发来的消息后,对该消息进行解析,并根据解析的消息判断是执行加速还是取消加速,具体包括以下操作:所述加速处理模块收到终端设备发来的消息后,对该消息进行解析;
若消息中包含开启/前台标识,则根据消息中的设备唯一标识、业务应用标识在所述加速配置表查找相匹配的记录,如果查找到且该业务应用对应的加速优先级不为预设的特定值,则判定为执行加速;
若消息中包含关闭/后台标识,则根据消息中的设备唯一标识、业务应用标识在所述加速配置表查找相匹配的记录,如果查找到且该业务应用对应的加速优先级不为预设的特定值,则判定为取消加速。
在上述技术方案的基础上,所述加速处理模块执行加速的具体流程包括:
当判定为执行加速后,加速处理模块先判断对应终端设备是否已 存在加速规则,若不存在,则以设备唯一标识中该终端设备的MAC或IP作为关键字,配置对应的iptables规则或ebtables规则,并根据需要加速的业务应用的加速优先级,生成该终端设备的加速规则;若当前家庭网关上已有对应终端设备的加速规则,且加速优先级别与新收到的请求一致,则保持当前的加速规则不变,否则先删除已存在的加速规则,再生成新的加速规则;再将当前终端设备的加速规则加入到加速队列中,实现对需要加速的业务应用的加速。
在上述技术方案的基础上,该系统的终端设备还包括心跳消息发送模块,家庭网关还包括心跳消息接收模块;
所述心跳消息发送模块,用于:周期性发送心跳消息给家庭网关;
所述心跳消息接收模块,用于:接收终端设备发来的心跳消息,且当若干个周期内没有收到来自该终端设备的心跳消息时,从加速队列中删除该终端设备的加速规则。
在上述技术方案的基础上,当所述终端设备为多个时,家庭网关的加速处理模块,还用于:当收到多个终端设备发来的消息时,根据预设的终端设备MAC优先级表,优先执行MAC优先级高的终端设备的业务加速。
本发明的有益效果在于:
(1)本发明通过终端设备或家庭网关配置业务加速需求,并当终端设备开启或在前台运行需要加速的业务应用时通知家庭网关执行加速。与硬件加速相比,无需专有的芯片实现,可针对各种场景或各种类型的报文进行加速,灵活性较高,而且芯片成本低,有利于大规模普及;与传统的DPI方式的软件加速相比,无需抓取数据报文并对报文进行解析提取报文的特征信息,也无需更新特征库,大大节省了家庭网关CPU资源,在无需占用大量CPU资源的情况下实现业务 加速,从而提升了设备性能。
并且,本发明在实现终端设备的业务加速时,一旦终端设备开启或在前台运行高优先级业务时,会通知家庭网关直接对其高优先级业务调度即可,即执行加速;当终端设备前台不运行这些业务时(如关闭或切换至后台时),取消对应业务的加速,可保障高优先级业务能及时得到家庭网关的服务响应,提升用户的体验。
(2)本发明中,终端设备会周期性地发送心跳消息给家庭网关,若家庭网关在若干个周期内没有收到来自该终端设备的心跳消息,则会从加速队列中删除该终端设备的加速规则。通过上述操作,可避免出现终端设备断线,而家庭网关还在加速队列中保留该终端设备的加速规则并执行相应业务加速的情况,有效减少了家庭网关资源的无效占用。
(3)本发明中,针对终端设备为多个的情况,会让家庭网关根据预设的终端设备MAC优先级表,优先执行MAC优先级高的终端设备的业务加速,从而使得家庭网关在终端设备为多个时,可以对家庭网络下的全部终端设备的业务加速进行统一管理。
附图说明
图1为本发明实施例中基于家庭网关的业务加速方法的流程图;
图2为本发明一种实施例中终端设备向家庭网关所发消息的格式图;
图3为本发明另一种实施例中终端设备向家庭网关所发消息的格式图;
图4为本发明一种实施例中基于家庭网关的业务加速系统的结构框图;
图5为本发明另一种实施例中基于家庭网关的业务加速系统的 结构框图。
具体实施方式
首先,对本发明的设计原理作进一步说明:本发明在实现家庭网关的业务加速时,首先选择了软件加速方式。采用软件加速方式,可以避免硬件加速中只能针对特殊场景或特殊类型的报文进行加速,灵活性较差的问题,而且还能避免因硬件加速中处理器芯片成本高而导致的使用成本的问题。
而对于采用软件加速而言,主要要解决现有DPI方式的两大问题:第一,需要占用大量的CPU资源,影响家庭网关其他业务的体验;第二,特征库需要根据业务应用的增加及时更新,家庭网关要事先预置DPI的特征库,如果有新增应用,特征库需要更新,但特征库作为家庭网关软件的一部分,如何升级且不影响网关业务也是一个急需解决的问题。
为了解决上述问题,本发明提出的解决方案是:用户通过终端设备或家庭网关配置需要加速和不需要加速的业务及加速优先级,当需要加速的业务应用开启或退出或前后台切换时,家庭网关相应作出执行加速或取消加速的操作;并且家庭网关根据用户需要对某一应用进行加速时,可以通过配置相关的规则(如iptables规则)实现加速,加速报文无需进入Linux协议栈进行解析。该方案与传统的DPI方式的软件加速相比,无需抓取数据报文并对报文进行解析提取报文的特征信息,也无需更新特征库,大大节省了家庭网关CPU资源,可在无需占用大量CPU资源的情况下实现业务加速,从而提升设备性能。
另外,由于目前的终端设备(手机、机顶盒、平板电脑等)用户对游戏、视频等业务的体验要求很高,用户最关心的是前台应用,若某个前台应用为高优先级业务,比如游戏,直播视频等,需要得到家 庭网关的及时服务。因此,本发明在实现终端设备的业务加速时,一旦终端设备开启或在前台运行这些高优先级业务,家庭网关直接对高优先级业务调度即可,即执行加速;当终端设备前台不运行这些业务时(如关闭或切换至后台时),家庭网关则取消对应业务的加速,可保障高优先级业务能及时得到家庭网关的服务响应,提升用户的体验。
为了使本领域技术人员更好地理解本发明,下面结合附图和具体实施方式对本发明作进一步详细说明。
但需说明的是:接下来要介绍的示例仅是一些具体的例子,而不作为限制本发明的实施例必须为如下具体的步骤、数值、条件、数据、顺序等。本领域技术人员可以通过阅读本说明书来运用本发明的构思来构造本说明书中未提到的更多实施例。
实施例一
参见图1所示,本实施例提供了一种基于家庭网关的业务加速方法,该家庭网关通过局域网与终端设备进行组网。具体来说,终端设备通过DHCP(Dynamic Host Configuration Protocol,动态主机设置协议)从家庭网关获取IP地址或配置静态IP地址,终端设备与家庭网关在同一网段内,且终端设备与家庭网关使用单播消息进行通信。该业务加速方法包括以下步骤:
A、通过终端设备或家庭网关对业务应用的加速需求进行配置;
B、终端设备实时监测业务应用的开启、关闭及前后台切换状态,并向家庭网关发送相应消息;
C、家庭网关根据解析的相应消息,判断是执行还是取消加速;若为执行加速,则将需要加速的业务应用通过配置相应的加速规则加入到加速队列中,实现加速;若为取消加速,则从加速队列中删除相应的加速规则。
可以理解的是,实际应用中,终端设备包括但不限于:手机、机顶盒、平板电脑等。另外,作为一种可选的实施方式,所述终端设备可通过运行业务加速APP来实现上述方法中终端设备侧的功能。即,在终端设备上安装一个业务加速APP,该业务加速APP具有实现上述方法步骤A和B操作的功能。当然,实际应用中也可直接利用终端设备系统实现上述方法,本实施例不做具体限定。
实施例二
本实施例提供的一种基于家庭网关的业务加速方法,其基本步骤与实施例一相同,不同之处在于,作为一种可选的实施方式,步骤A中,若是通过终端设备对业务应用的加速需求进行配置,则该步骤具体包括以下操作:
A1、将终端设备上安装的业务应用按照预设的类别进行分类,如预设的类别分为游戏、视频、下载等类别;并根据不同的类别设置不同的加速优先级,如游戏的加速优先级设置为1,视频的加速优先级设置为2,下载的加速优先级设置为3,不需要加速的业务类别的加速优先级设置为0等。本实施例中,除不需要加速的业务类别外,其余类别的加速优先级数值越小优先级别越高。
A2、在每一类别下对当前需要加速和不需要加速的业务应用进行设置。例如,可以通过勾选或去勾选的方式设置需要和不需要加速的业务应用:当勾选时表示该业务应用为需要加速的业务应用,当去勾选时表示该业务应用为不需要加速的业务应用。具体操作时,可根据实际情况对设置方式进行其他设计,本实施例不做具体限定。另外,实际操作时,设置好需要和不需要加速的业务应用后保存该配置并通知终端设备进行更新。
在此基础上,为了满足实际操作中业务应用的增加需求,在一种 可选的实施方式中,该方法还包括业务新增配置操作:当终端设备新安装某个业务应用时,若该业务应用属于当前分类中的某一类别,则将该业务应用添加到对应的类别中;若该业务应用不属于当前分类中的任何类别,则在预设的类别中新增一个类别,并将该业务应用添加到新增的类别中。
更进一步地,如图2所示,本实施例中,终端设备向家庭网关发送的消息由两个字段组成,包括设备唯一标识和加速标志位。其中,设备唯一标识是局域网内用于标识一台设备的唯一特征,包括该终端设备的MAC或IP。在此基础上,步骤B具体包括以下操作:
B1、终端设备实时监测业务应用的开启、关闭及前后台切换状态。
B2、当监测到需要加速的业务应用开启或运行在前台时,向家庭网关发送消息通知家庭网关执行加速;其中,所发送的消息中,设备唯一标识为该终端设备的MAC或IP中的一种,加速标志位为当前需要加速的业务应用的类型所对应的加速优先级的值。例如,需要加速的业务应用的类型为游戏,而游戏类的加速优先级为1,则该消息的加速标志位取值为1。
B3、当监测到需要加速的业务应用关闭或切换至后台时,向家庭网关发送消息通知家庭网关取消加速;其中,所发送的消息中,设备唯一标识为该终端设备的MAC或IP中的一种,加速标志位为预设的特定值。例如,预设的特定值取值为0。但可以理解的是,具体操作时,可根据实际情况定义该特定值及优先级策略,只需要终端设备及家庭网关将对应参数取值协商一致即可,本实施例不做具体限定。
为了更清楚的理解本实施例中,终端设备是如何实现实时监测业务应用的开启、关闭及前后台切换状态,下面以终端设备为Android 系统,且终端设备通过运行业务加速APP来实现上述方法中终端设备侧的功能为例对该方法的步骤B做进一步详细说明:
可以理解的是,在Android系统中,有界面的应用程序(即业务应用)的Activity由生命周期OnResume和OnPause对应用程序进行监控。当系统自动调用OnResume方法时,获取此应用程序的包名,可判定此应用程序当前运行于前台。当系统自动调用OnPause方法时,获取此应用程序的包名,可判定此应用程序当前运行于后台或者销毁。无界面的应用程序的Service由生命周期OnCreat和OnDestroy对应用程序进行监控。当系统自动调用OnCreat方法时,获取此应用程序的包名,可判定此应用程序当前正在启动服务,即业务应用的开启。当系统自动调用OnDestroy时,获取此应用程序的包名,可判定此应用程序停止服务,即业务应用的关闭。
因此,在Android系统的终端设备上可利用系统服务ActivityManagerService(简称AMS)来获取应用程序前后台切换状态。当有界面的应用程序启动或切换到前台AMS调用OnResume方法时,AMS发消息通知业务加速APP当前处于前台应用程序的包名,业务加速APP根据包名判断是否需要发消息给网关进行业务加速;当有界面应用程序切换到后台时,AMS会调用OnPause方法,同时也发送消息给业务加速APP当前有应用程序切换到后台,并告知其切换到后台应用程序的包名,业务加速APP根据包名判断是否关闭对该应用程序业务的加速。当无界面的应用程序启动,AMS会调用OnCreat方法,AMS发消息通知业务加速APP该无界面应用程序的包名,业务加速APP根据包名判断是否需要发消息给家庭网关进行业务加速;当无界面应用程序退出时,AMS会调用OnDestroy方法,同时也发送消息给业务加速APP该无界面应用程序的包名,业务加 速APP根据包名判断是否取消对该应用程序业务的加速。
具体来说,当终端设备的应用服务开启、关闭或前后台切换时,业务加速APP利用系统自动调用的状态切换方法(OnResume、OnPause、OnCreate、OnDestroy)将当前获取到的应用程序名称与配置的需要加速的业务应用的名称进行对比,如果该应用程序为已经配置为需要加速的业务应用,且该业务应用开启或运行在前台时,发送消息通知家庭网关执行加速;如果该业务应用关闭或切换到后台时,则发送消息通知家庭网关取消加速;如果该应用程序为不需要加速的业务应用,则不进行处理。
实施例三
本实施例提供的一种基于家庭网关的业务加速方法,其基本步骤与实施例一相同,不同之处在于,作为一种可选的实施方式,步骤A中,若是通过家庭网关对业务应用的加速需求进行配置,则该步骤具体包括以下操作:
A1、在家庭网关上创建并维护一个加速配置表,所述加速配置表的每条记录包括终端设备的设备唯一标识、业务应用标识以及该业务应用对应的加速优先级;
A2、根据终端设备上安装的业务应用,在所述加速配置表中创建相应的记录;并将不需要加速的业务应用的加速优先级设置为预设的特定值,将需要加速的业务应用的加速优先级按照优先级的高低设置为不同的值。本实施例中,预设的特定值取值为0(即不需要加速的业务应用的加速优先级为0),需要加速的业务应用的加速优先级数值越小优先级别越高。但可以理解的是,具体操作时,可根据实际情况定义该特定值及优先级策略,只需要终端设备及家庭网关将对应参数取值协商一致即可,本实施例不做具体限定。
进一步地,如图3所示,本实施例中,终端设备向家庭网关发送的消息由三个字段组成,包括设备唯一标识、业务应用标识以及开启/前台标识或关闭/后台标识。其中,设备唯一标识是局域网内用于标识一台设备的唯一特征,包括该终端设备的MAC或IP;业务应用标识为业务应用名。在此基础上,步骤B具体包括以下操作:
B1、终端设备实时监测业务应用的开启、关闭及前后台切换状态;
B2、当监测到业务应用开启或运行在前台时,向家庭网关发送包含设备唯一标识、业务应用标识以及开启/前台标识的消息;
B3、当监测到业务应用关闭或切换至后台时,向家庭网关发送包含设备唯一标识、业务应用标识以及关闭/后台标识的消息。
实施例四
本实施例提供的一种基于家庭网关的业务加速方法,其基本步骤与实施例二或三相同,不同之处在于,作为一种优选的实施方式,该方法的步骤C具体包括以下步骤:
C1、若是通过终端设备对业务应用的加速需求进行配置,则家庭网关对接收到的消息进行解析,获取消息中设备唯一标识及加速标志位;根据加速标志位中的值,判断是执行加速还是取消加速(若加速标志位中的值为预设的特定值则判定为取消加速,否则为执行加速),若为执行加速,转入步骤C2,若为取消加速,转入步骤C3。
若是通过家庭网关对业务应用的加速需求进行配置,则家庭网关对接收到的消息进行解析;当消息中包含开启/前台标识,则根据消息中的设备唯一标识、业务应用标识在所述加速配置表查找相匹配的记录,如果查找到且该业务应用对应的加速优先级不为预设的特定值,则判定为执行加速,转入步骤C2;当消息中包含关闭/后台标识,则 根据消息中的设备唯一标识、业务应用标识在所述加速配置表查找相匹配的记录,如果查找到且该业务应用对应的加速优先级不为预设的特定值(加速优先级不为预设的特定值说明该业务应用为需要加速的应用),则判定为取消加速,转入步骤C3。可以理解的是,无论消息中包含的是开启/前台标识还是关闭/后台标识,只要在加速配置表中未查找到相匹配的记录或查找到但业务应用对应的加速优先级为预设的特定值(加速优先级为预设的特定值说明该业务应用为不需要加速的应用),则不作处理。
C2、家庭网关判断对应终端设备是否已存在加速规则,若不存在,则以设备唯一标识中该终端设备的MAC或IP作为关键字,配置对应的iptables规则或ebtables规则(如果设备唯一标识为该终端设备的MAC,则配置对应的ebtables规则;如果设备唯一标识为该终端设备的IP,则配置对应的iptables规则),并根据需要加速的业务应用的加速优先级,生成该终端设备的加速规则;如果当前家庭网关上已有对应终端设备的加速规则,且加速优先级别与新收到的请求一致,则保持当前的加速规则不变,否则先删除已存在的加速规则,再生成新的加速规则(生成新的加速规则的过程参见上述加速规则不存在时生成加速规则的操作),以保证一台终端设备在家庭网关上只存在一条加速规则;
将当前终端设备的加速规则加入到加速队列中,实现对需要加速的业务应用的加速;
C3、家庭网关从加速队列中删除相应的加速规则。
此外,若同一终端设备的应用切换伴随着应用A切换到后台,应用B切换到前台,且这两个应用都是相同的加速优先级的值,还可进一步优化。具体来说,家庭网关在执行调度策略时,可以在收到 同一个终端设备发出的取消加速的消息后,不立即删除对应的执行加速所对应的加速规则,而是等待一定时间后,看是否收到了同一终端设备接着发出的执行加速的消息,再执行最终的调度策略。若前后两条加速消息对应的加速规则一致,则无需运行第一条加速规则对应的取消操作后,再生效与第一条加速规则一致的第二条加速规则。即应用A切换到后台,应用B切换到前台时。不优化前:取消应用A的加速规则,使能应用B的加速规则。优化后,因为应用A和应用B的加速规则一致,家庭网关的加速处理模块可以略过取消应用A的加速规则,使能应用B的加速规则这两次操作。
实施例五
可以理解的是,实际应用中,会出现终端设备因各种原因导致与家庭网关中断通信连接的情况。为了避免出现终端设备断线,而家庭网关还在加速队列中保留该终端设备的加速规则并执行相应业务加速的情况,占用家庭网关资源。本实施例提供的一种基于家庭网关的业务加速方法,其基本步骤与实施例一相同,不同之处在于,作为一种优选的实施方式,该方法还包括以下步骤:终端设备周期性发送心跳消息给家庭网关,若家庭网关在若干个周期内没有收到来自该终端设备的心跳消息,则从加速队列中删除该终端设备的加速规则。本实施例中,终端设备发送心跳消息的周期时间优选为60秒,且家庭网关默认在3个周期内没有收到来自该终端设备的心跳消息,则从加速队列中删除该终端设备的加速规则。实际操作时,可根据具体情况设置上述参数,只要家庭网关能及时发现与终端设备中断通信即可,本实施例不做具体限定。
实施例六
本实施例提供的一种基于家庭网关的业务加速方法,其基本步骤 与实施例一相同,不同之处在于,作为一种优选的实施方式,当所述终端设备为多个时,该方法还包括以下步骤:当家庭网关收到多个终端设备发来的消息时,根据预设的终端设备MAC优先级表,优先执行MAC优先级高的终端设备的业务加速。通过上述操作,使得家庭网关在终端设备为多个时,可以对家庭网络下的全部终端设备的业务加速进行统一管理。
进一步地,作为一种可选的实施方式,该终端设备MAC优先级表中,各终端设备所对应的MAC优先级可按照下列方式计算得出:若该终端设备的MAC权重为a(正整数、越小优先级越高),对应的需要加速的业务应用的加速优先级为b(正整数、越小优先级越高),则按照F(a,b)可计算得出该终端设备的归一化权重,即MAC优先级,比如将F(a,b)约定为a*b,其值越小,优先级越高。虽然本公开描述并且示出了特定的计算方式F,然而本公开设想了任何合适的计算方式F。
当然,也可以基于本发明上述披露信息,采用其他公知的调度方式保证高优先级业务的优先级。
实施例七
基于同一发明构思,参见图4和图5所示,本发明实施例还提供了一种基于家庭网关的业务加速系统,该系统包括家庭网关以及通过局域网与家庭网关组网的终端设备。其中,终端设备设有业务应用监测模块,家庭网关设有加速处理模块,且终端设备或家庭网关上还设有业务加速配置模块。
业务加速配置模块,用于:对业务应用的加速需求进行配置;
业务应用监测模块,用于:实时监测业务应用的开启、关闭及前后台切换状态,并向家庭网关发送相应消息;
加速处理模块,用于:收到终端设备发来的消息后,对该消息进行解析,并根据解析的消息判断是执行加速还是取消加速;若为执行加速,则将需要加速的业务应用通过配置相应的加速规则加入到加速队列中,实现加速;若为取消加速,则从加速队列中删除相应的加速规则。
可以理解的是,实际应用中,作为一种可选的实施方式,所述业务加速配置模块、业务应用监测模块可组成业务加速APP的形式在终端设备上来实现各自功能。即,在终端设备上安装一个业务加速APP,该业务加速APP包括业务加速配置模块以及业务应用监测模块。当然,实际应用中也可直接将上述功能模块定制于终端设备系统中,本实施例不做具体限定。
实施例八
本实施例提供的一种基于家庭网关的业务加速系统,其基本结构与实施例七相同,不同之处在于,作为一种可选的实施方式,若所述业务加速配置模块设于所述终端设备上,则该业务加速配置模块对业务应用的加速需求进行配置的具体流程包括:将终端设备上安装的业务应用按照预设的类别进行分类,并根据不同的类别设置不同的加速优先级,例如游戏的加速优先级设置为1,视频的加速优先级设置为2,下载的加速优先级设置为3,不需要加速的业务类别的加速优先级设置为0等;最后,在每一类别下对当前需要加速和不需要加速的业务应用进行设置。
在此基础上,为了满足实际操作中业务应用的增加需求,在一种可选的实施方式中,所述业务加速配置模块还用于进行业务新增配置操作:当终端设备新安装某个业务应用时,若该业务应用属于当前分类中的某一类别,则将该业务应用添加到对应的类别中;若该业务应 用不属于当前分类中的任何类别,则在预设的类别中新增一个类别,并将该业务应用添加到新增的类别中。
更进一步地,如图2所示,本实施例中,所述消息发送模块向家庭网关发送的消息由两个字段组成,包括设备唯一标识和加速标志位。其中,设备唯一标识是局域网内用于标识一台设备的唯一特征,包括该终端设备的MAC或IP。在此基础上,所述业务应用监测模块实时监测业务应用的开启、关闭及前后台切换状态,并向家庭网关发送相应消息,具体包括以下操作:
实时监测业务应用的开启、关闭及前后台切换状态;
当监测到需要加速的业务应用开启或运行在前台时,向家庭网关发送消息通知家庭网关执行加速;所发送的消息中,加速标志位为当前需要加速的业务应用的类型所对应的加速优先级的值;
当监测到需要加速的业务应用关闭或切换至后台时,向家庭网关发送消息通知家庭网关取消加速;所发送的消息中,加速标志位为预设的特定值。例如,预设的特定值取值为0,但可以理解的是,具体操作时,可根据实际情况定义该特定值及优先级策略,只需要终端设备及家庭网关将对应参数取值协商一致即可,本实施例不做具体限定。
实施例九
本实施例提供的一种基于家庭网关的业务加速系统,其基本结构与实施例七相同,不同之处在于,作为一种可选的实施方式,若所述业务加速配置模块设于所述家庭网关上,则该业务加速配置模块对业务应用的加速需求进行配置的具体流程包括:
在家庭网关上创建并维护一个加速配置表,所述加速配置表的每条记录包括终端设备的设备唯一标识、业务应用标识以及该业务应用对应的加速优先级;
根据终端设备上安装的业务应用,在所述加速配置表中创建相应的记录;并将不需要加速的业务应用的加速优先级设置为预设的特定值,将需要加速的业务应用的加速优先级按照优先级的高低设置为不同的值。本实施例中,预设的特定值取值为0(即不需要加速的业务应用的加速优先级为0),需要加速的业务应用的加速优先级数值越小优先级别越高。但可以理解的是,具体操作时,可根据实际情况定义该特定值及优先级策略,只需要终端设备及家庭网关将对应参数取值协商一致即可,本实施例不做具体限定。
进一步地,如图3所示,本实施例中,终端设备向家庭网关发送的消息由三个字段组成,包括设备唯一标识、业务应用标识以及开启/前台标识或关闭/后台标识。其中,设备唯一标识是局域网内用于标识一台设备的唯一特征,包括该终端设备的MAC或IP;业务应用标识为业务应用名。在此基础上,所述业务应用监测模块实时监测业务应用的开启、关闭及前后台切换状态,并向家庭网关发送相应消息,具体包括以下操作:
实时监测业务应用的开启、关闭及前后台切换状态;
当监测到业务应用开启或运行在前台时,向家庭网关发送包含设备唯一标识、业务应用标识以及开启/前台标识的消息;
当监测到业务应用关闭或切换至后台时,向家庭网关发送包含设备唯一标识、业务应用标识以及关闭/后台标识的消息。
实施例十
本实施例提供的一种基于家庭网关的业务加速系统,其基本结构与实施例八或九相同,不同之处在于,所述加速处理模块收到终端设备发来的消息后,对该消息进行解析,并根据解析的消息判断是执行加速还是取消加速,具体包括以下流程:
若所述业务加速配置模块设于所述终端设备上,则所述加速处理模块收到终端设备发来的消息后,对该消息进行解析,获取消息中设备唯一标识及加速标志位;若加速标志位中的值为预设的特定值则判定为取消加速,否则,判定为执行加速;
若所述业务加速配置模块设于所述家庭网关上,则所述加速处理模块收到终端设备发来的消息后,对该消息进行解析;当消息中包含开启/前台标识,则根据消息中的设备唯一标识、业务应用标识在所述加速配置表查找相匹配的记录,如果查找到且该业务应用对应的加速优先级不为预设的特定值,则判定为执行加速;当消息中包含关闭/后台标识,则根据消息中的设备唯一标识、业务应用标识在所述加速配置表查找相匹配的记录,如果查找到且该业务应用对应的加速优先级不为预设的特定值,则判定为取消加速。
在此基础上,所述加速处理模块执行加速或取消加速的具体流程包括:
当判定为执行加速后,加速处理模块先判断对应终端设备是否已存在加速规则,若不存在,则以设备唯一标识中该终端设备的MAC或IP作为关键字,配置对应的iptables规则或ebtables规则,并根据需要加速的业务应用的加速优先级,生成该终端设备的加速规则;若当前家庭网关上已有对应终端设备的加速规则,且加速优先级别与新收到的请求一致,则保持当前的加速规则不变,否则先删除已存在的加速规则,再生成新的加速规则,以保证一台终端设备在家庭网关上只存在一条加速规则;再将当前终端设备的加速规则加入到加速队列中,实现对需要加速的业务应用的加速;
当判定为取消加速后,加速处理模块从加速队列中删除相应的加速规则。
此外,若同一终端设备的应用切换伴随着应用A切换到后台,应用B切换到前台,且这两个应用都是相同的加速优先级的值,还可进一步优化。具体来说,家庭网关的加速处理模块在执行调度策略时,可以在收到同一个终端设备发出的取消加速的消息后,不立即删除对应的执行加速所对应的加速规则,而是等待一定时间后,看是否收到了同一终端设备接着发出的执行加速的消息,再执行最终的调度策略。若前后两条加速消息对应的加速规则一致,则无需运行第一条加速规则对应的取消操作后,再生效与第一条加速规则一致的第二条加速规则。即应用A切换到后台,应用B切换到前台时。不优化前:取消应用A的加速规则,使能应用B的加速规则。优化后,因为应用A和应用B的加速规则一致,家庭网关的加速处理模块可以略过取消应用A的加速规则,使能应用B的加速规则这两次操作。
实施例十一
本实施例提供的一种基于家庭网关的业务加速系统,其基本结构与实施例七相同,不同之处在于:作为一种优选的实施方式,为了避免出现终端设备断线,而家庭网关还在加速队列中保留该终端设备的加速规则并执行相应业务加速的情况,占用家庭网关资源。该系统的终端设备还包括心跳消息发送模块,家庭网关还包括心跳消息接收模块。其中,心跳消息发送模块,用于:周期性发送心跳消息给家庭网关。心跳消息接收模块,用于:接收终端设备发来的心跳消息,且当若干个周期内没有收到来自该终端设备的心跳消息时,从加速队列中删除该终端设备的加速规则。
实施例十二
本实施例提供的一种基于家庭网关的业务加速系统,其基本结构与实施例七相同,不同之处在于:作为一种优选的实施方式,当终端 设备为多个时,该家庭网关的加速处理模块,还用于:当收到多个终端设备发来的相应消息时,根据预设的终端设备MAC优先级表,优先执行MAC优先级高的终端设备的业务加速。通过上述操作,使得家庭网关在终端设备为多个时,可以对家庭网络下的全部终端设备的业务加速进行统一管理。
进一步地,作为一种可选的实施方式,该终端设备MAC优先级表中,各终端设备所对应的MAC优先级可按照下列方式计算得出:若该终端设备的MAC权重为a(正整数、越小优先级越高),对应的需要加速的业务应用的加速优先级为b(正整数、越小优先级越高),则按照F(a,b)可计算得出该终端设备的归一化权重,即MAC优先级,比如将F(a,b)约定为a*b,其值越小,优先级越高。虽然本公开描述并且示出了特定的计算方式F,然而本公开设想了任何合适的计算方式F。
当然,也可以基于本发明上述披露信息,采用其他公知的调度方式保证高优先级业务的优先级。
注意:上述的具体实施例仅是例子而非限制,且本领域技术人员可以根据本发明的构思从上述分开描述的各个实施例中合并和组合一些步骤和装置来实现本发明的效果,这种合并和组合而成的实施例也被包括在本发明中,在此不一一描述这种合并和组合。
本发明实施例中提及的优点、优势、效果等仅是示例,而非限制,不能认为这些优点、优势、效果等是本发明的各个实施例必须具备的。另外,本发明实施例公开的上述具体细节仅是为了示例的作用和便于理解的作用,而非限制,上述细节并不限制本发明实施例必须采用上述具体的细节来实现。
本发明实施例中涉及的器件、装置、设备、系统的方框图仅作为 例示性的例子,并且不意图要求或暗示必须按照方框图示出的方式进行连接、布置、配置。如本领域技术人员将认识到的,可以按任意方式连接、布置、配置这些器件、装置、设备、系统。诸如“包括”、“包含”、“具有”等等的词语是开放性词汇,指“包括但不限于”,且可与其互换使用。本发明实施例所使用的词汇“或”和“和”指词汇“和/或”,且可与其互换使用,除非上下文明确指示不是如此。本发明实施例所使用的词汇“诸如”指词组“诸如但不限于”,且可与其互换使用。
本发明实施例中的步骤流程图以及以上方法描述仅作为例示性的例子,并且不意图要求或暗示必须按照给出的顺序进行各个实施例的步骤。如本领域技术人员将认识到的,可以按任意顺序进行以上实施例中的步骤的顺序。诸如“其后”、“然后”、“接下来”等等的词语不意图限制步骤的顺序;这些词语仅用于引导读者通读这些方法的描述。此外,例如使用冠词“一个”、“一”或者“该”对于单数的要素的任何引用不被解释为将该要素限制为单数。
另外,本发明各个实施例中的步骤和装置并非仅限定于某个实施例中实行,事实上,可以根据本发明的概念来结合本文中的各个实施例中相关的部分步骤和部分装置,以构思新的实施例,而这些新的实施例也包括在本发明的范围内。
本发明实施例中的各个操作可以通过能够进行相应的功能的任何适当的手段而进行。该手段可以包括各种硬件和/或软件组件和/或模块,包括但不限于硬件的电路或处理器。
本发明实施例的方法包括用于实现上述的方法的一个或多个动作。方法和/或动作可以彼此互换而不脱离权利要求的范围。换句话说,除非指定了动作的具体顺序,否则可以修改具体动作的顺序和/ 或使用而不脱离权利要求的范围。
本发明实施例中的功能可以按硬件、软件、固件或其任意组合而实现。如果以软件实现,功能可以作为一个或多个指令存储在切实的计算机可读介质上。存储介质可以是可以由计算机访问的任何可用的切实介质。通过例子而不是限制,这样的计算机可读介质可以包括RAM、ROM、EEPROM、CD-ROM或其他光碟存储、磁碟存储或其他磁存储器件或者可以用于携带或存储指令或数据结构形式的期望的程序代码并且可以由计算机访问的任何其他切实介质。如在此使用的,碟(disk)和盘(disc)包括紧凑盘(CD)、激光盘、光盘、DVD(Digital Versatile Disc,数字多功能光盘)、软碟和蓝光盘,其中碟通过磁再现数据,而盘利用激光光学地再现数据。
因此,计算机程序产品可以进行在此给出的操作。例如,这样的计算机程序产品可以是具有有形存储(和/或编码)在其上的指令的计算机可读的有形介质,该指令可由一个或多个处理器执行以进行在此所述的操作。计算机程序产品可以包括包装的材料。
其他例子和实现方式在本发明实施例和所附权利要求的范围和精神内。例如,由于软件的本质,以上所述的功能可以使用由处理器、硬件、固件、硬连线或这些的任意的组合执行的软件实现。实现功能的特征也可以物理地位于各个位置,包括被分发以便功能的部分在不同的物理位置处实现。
本领域技术人员可以不脱离由所附权利要求定义的教导的技术而进行对在此所述的技术的各种改变、替换和更改。此外,本公开的权利要求的范围不限于以上所述的处理、机器、制造、事件的组成、手段、方法和动作的具体方面。可以利用与在此所述的相应方面进行基本相同的功能或者实现基本相同的结果的当前存在的或者稍后要 开发的处理、机器、制造、事件的组成、手段、方法或动作。因而,所附权利要求包括在其范围内的这样的处理、机器、制造、事件的组成、手段、方法或动作。
提供所公开的方面的以上描述以使本领域的任何技术人员能够做出或者使用本发明。对这些方面的各种修改对于本领域技术人员而言是非常显而易见的,并且在此定义的一般原理可以应用于其他方面而不脱离本发明的范围。因此,本发明不意图被限制到在此示出的方面,而是按照与在此公开的原理和新颖的特征一致的最宽范围。
为了例示和描述的目的已经给出了以上描述。此外,此描述不意图将本发明的实施例限制到在此公开的形式。尽管以上已经讨论了多个示例方面和实施例,但是本领域技术人员将认识到其某些变型、修改、改变、添加和子组合。且本说明书中未作详细描述的内容属于本领域专业技术人员公知的现有技术。

Claims (20)

  1. 一种基于家庭网关的业务加速方法,所述家庭网关通过局域网与终端设备进行组网,其特征在于,该方法包括以下步骤:
    通过终端设备或家庭网关对业务应用的加速需求进行配置;
    终端设备实时监测业务应用的开启、关闭及前后台切换状态,并向家庭网关发送相应消息;
    家庭网关根据解析的相应消息,判断是执行还是取消加速;若为执行加速,则将需要加速的业务应用通过配置相应的加速规则加入到加速队列中,实现加速;若为取消加速,则从加速队列中删除相应的加速规则。
  2. 如权利要求1所述的基于家庭网关的业务加速方法,其特征在于,通过终端设备对业务应用的加速需求进行配置,具体包括以下操作:
    将终端设备上安装的业务应用按照预设的类别进行分类,并根据不同的类别设置不同的加速优先级;在每一类别下对当前需要加速和不需要加速的业务应用进行设置。
  3. 如权利要求2所述的基于家庭网关的业务加速方法,其特征在于:若通过终端设备对业务应用的加速需求进行配置,则终端设备向家庭网关发送的消息包括设备唯一标识和加速标志位;所述设备唯一标识为该终端设备的MAC或IP中的一种;
    在此基础上,终端设备实时监测业务应用的开启、关闭及前后台切换状态,并向家庭网关发送相应消息,具体包括以下步骤:
    终端设备实时监测业务应用的开启、关闭及前后台切换状态;
    当监测到需要加速的业务应用开启或运行在前台时,向家庭网关发送消息通知家庭网关执行加速;所发送的消息中,加速标志位为当 前需要加速的业务应用的类型所对应的加速优先级的值;
    当监测到需要加速的业务应用关闭或切换至后台时,向家庭网关发送消息通知家庭网关取消加速;所发送的消息中,加速标志位为预设的特定值。
  4. 如权利要求3所述的基于家庭网关的业务加速方法,其特征在于,家庭网关根据解析的相应消息,判断是执行还是取消加速,具体包括以下步骤:
    家庭网关对接收到的消息进行解析,获取消息中设备唯一标识及加速标志位;若加速标志位中的值为预设的特定值则判定为取消加速,否则,判定为执行加速。
  5. 如权利要求1所述的基于家庭网关的业务加速方法,其特征在于,通过家庭网关对业务应用的加速需求进行配置,具体包括以下操作:
    在家庭网关上创建并维护一个加速配置表,所述加速配置表的每条记录包括终端设备的设备唯一标识、业务应用标识以及该业务应用对应的加速优先级;
    根据终端设备上安装的业务应用,在所述加速配置表中创建相应的记录;并将不需要加速的业务应用的加速优先级设置为预设的特定值,将需要加速的业务应用的加速优先级按照优先级的高低设置为不同的值。
  6. 如权利要求5所述的基于家庭网关的业务加速方法,其特征在于:若通过家庭网关对业务应用的加速需求进行配置,则终端设备向家庭网关发送的消息包括设备唯一标识、业务应用标识以及开启/前台标识或关闭/后台标识;所述设备唯一标识为该终端设备的MAC或IP中的一种;所述业务应用标识为业务应用名;
    在此基础上,终端设备实时监测业务应用的开启、关闭及前后台切换状态,并向家庭网关发送相应消息,具体包括以下步骤:
    终端设备实时监测业务应用的开启、关闭及前后台切换状态;
    当监测到业务应用开启或运行在前台时,向家庭网关发送包含设备唯一标识、业务应用标识以及开启/前台标识的消息;
    当监测到业务应用关闭或切换至后台时,向家庭网关发送包含设备唯一标识、业务应用标识以及关闭/后台标识的消息。
  7. 如权利要求6所述的基于家庭网关的业务加速方法,其特征在于,家庭网关根据解析的相应消息,判断是执行还是取消加速,具体包括以下步骤:
    家庭网关对接收到的消息进行解析;
    若消息中包含开启/前台标识,则根据消息中的设备唯一标识、业务应用标识在所述加速配置表查找相匹配的记录,如果查找到且该业务应用对应的加速优先级不为预设的特定值,则判定为执行加速;
    若消息中包含关闭/后台标识,则根据消息中的设备唯一标识、业务应用标识在所述加速配置表查找相匹配的记录,如果查找到且该业务应用对应的加速优先级不为预设的特定值,则判定为取消加速。
  8. 如权利要求4或7所述的基于家庭网关的业务加速方法,其特征在于:若为执行加速,则将需要加速的业务应用通过配置相应的加速规则加入到加速队列中,实现加速,具体包括以下步骤:
    家庭网关判断对应终端设备是否已存在加速规则,若不存在,则以设备唯一标识中该终端设备的MAC或IP作为关键字,配置对应的iptables规则或ebtables规则,并根据需要加速的业务应用的加速优先级,生成该终端设备的加速规则;若当前家庭网关上已有对应终端设备的加速规则,且加速优先级别与新收到的请求一致,则保持当 前的加速规则不变,否则先删除已存在的加速规则,再生成新的加速规则;
    将当前终端设备的加速规则加入到加速队列中,实现对需要加速的业务应用的加速。
  9. 如权利要求1所述的基于家庭网关的业务加速方法,其特征在于,该方法还包括以下操作:
    终端设备周期性发送心跳消息给家庭网关,若家庭网关在若干个周期内没有收到来自该终端设备的心跳消息,则从加速队列中删除该终端设备的加速规则。
  10. 如权利要求1所述的基于家庭网关的业务加速方法,其特征在于,当所述终端设备为多个时,该方法还包括以下操作:
    当家庭网关收到多个终端设备发来的消息时,根据预设的终端设备MAC优先级表,优先执行MAC优先级高的终端设备的业务加速。
  11. 一种基于家庭网关的业务加速系统,该系统包括家庭网关以及通过局域网与家庭网关组网的终端设备,其特征在于:所述终端设备设有业务应用监测模块,所述家庭网关设有加速处理模块,且终端设备或家庭网关上还设有业务加速配置模块;
    所述业务加速配置模块,用于:对业务应用的加速需求进行配置;
    所述业务应用监测模块,用于:实时监测业务应用的开启、关闭及前后台切换状态,并向家庭网关发送相应消息;
    所述加速处理模块,用于:收到终端设备发来的消息后,对该消息进行解析,并根据解析的消息判断是执行加速还是取消加速;若为执行加速,则将需要加速的业务应用通过配置相应的加速规则加入到加速队列中,实现加速;若为取消加速,则从加速队列中删除相应的加速规则。
  12. 如权利要求11所述的基于家庭网关的业务加速系统,其特征在于,若所述业务加速配置模块设于所述终端设备上,则所述业务加速配置模块对业务应用的加速需求进行配置的具体流程包括:将终端设备上安装的业务应用按照预设的类别进行分类,并根据不同的类别设置不同的加速优先级;在每一类别下对当前需要加速和不需要加速的业务应用进行设置。
  13. 如权利要求12所述的基于家庭网关的业务加速系统,其特征在于:所述业务应用监测模块向家庭网关发送的消息包括设备唯一标识和加速标志位;所述设备唯一标识为该终端设备的MAC或IP中的一种;
    在此基础上,所述业务应用监测模块实时监测业务应用的开启、关闭及前后台切换状态,并向家庭网关发送相应消息,具体包括以下操作:
    实时监测业务应用的开启、关闭及前后台切换状态;
    当监测到需要加速的业务应用开启或运行在前台时,向家庭网关发送消息通知家庭网关执行加速;所发送的消息中,加速标志位为当前需要加速的业务应用的类型所对应的加速优先级的值;
    当监测到需要加速的业务应用关闭或切换至后台时,向家庭网关发送消息通知家庭网关取消加速;所发送的消息中,加速标志位为预设的特定值。
  14. 如权利要求13所述的基于家庭网关的业务加速系统,其特征在于,所述加速处理模块收到终端设备发来的消息后,对该消息进行解析,并根据解析的消息判断是执行加速还是取消加速,具体包括以下操作:
    所述加速处理模块收到终端设备发来的消息后,对该消息进行解 析,获取消息中设备唯一标识及加速标志位;若加速标志位中的值为预设的特定值则判定为取消加速,否则,判定为执行加速。
  15. 如权利要求11所述的基于家庭网关的业务加速系统,其特征在于,若所述业务加速配置模块设于所述家庭网关上,则所述业务加速配置模块对业务应用的加速需求进行配置的具体流程包括:
    在家庭网关上创建并维护一个加速配置表,所述加速配置表的每条记录包括终端设备的设备唯一标识、业务应用标识以及该业务应用对应的加速优先级;
    根据终端设备上安装的业务应用,在所述加速配置表中创建相应的记录;并将不需要加速的业务应用的加速优先级设置为预设的特定值,将需要加速的业务应用的加速优先级按照优先级的高低设置为不同的值。
  16. 如权利要求15所述的基于家庭网关的业务加速系统,其特征在于:所述业务应用监测模块向家庭网关发送的消息包括设备唯一标识、业务应用标识以及开启/前台标识或关闭/后台标识;所述设备唯一标识为该终端设备的MAC或IP中的一种;所述业务应用标识为业务应用名;
    在此基础上,所述业务应用监测模块实时监测业务应用的开启、关闭及前后台切换状态,并向家庭网关发送相应消息,具体包括以下操作:
    实时监测业务应用的开启、关闭及前后台切换状态;
    当监测到业务应用开启或运行在前台时,向家庭网关发送包含设备唯一标识、业务应用标识以及开启/前台标识的消息;
    当监测到业务应用关闭或切换至后台时,向家庭网关发送包含设备唯一标识、业务应用标识以及关闭/后台标识的消息。
  17. 如权利要求16所述的基于家庭网关的业务加速系统,其特征在于,所述加速处理模块收到终端设备发来的消息后,对该消息进行解析,并根据解析的消息判断是执行加速还是取消加速,具体包括以下操作:
    所述加速处理模块收到终端设备发来的消息后,对该消息进行解析;
    若消息中包含开启/前台标识,则根据消息中的设备唯一标识、业务应用标识在所述加速配置表查找相匹配的记录,如果查找到且该业务应用对应的加速优先级不为预设的特定值,则判定为执行加速;
    若消息中包含关闭/后台标识,则根据消息中的设备唯一标识、业务应用标识在所述加速配置表查找相匹配的记录,如果查找到且该业务应用对应的加速优先级不为预设的特定值,则判定为取消加速。
  18. 如权利要求14或17所述的基于家庭网关的业务加速系统,其特征在于,所述加速处理模块执行加速的具体流程包括:
    当判定为执行加速后,加速处理模块先判断对应终端设备是否已存在加速规则,若不存在,则以设备唯一标识中该终端设备的MAC或IP作为关键字,配置对应的iptables规则或ebtables规则,并根据需要加速的业务应用的加速优先级,生成该终端设备的加速规则;若当前家庭网关上已有对应终端设备的加速规则,且加速优先级别与新收到的请求一致,则保持当前的加速规则不变,否则先删除已存在的加速规则,再生成新的加速规则;
    再将当前终端设备的加速规则加入到加速队列中,实现对需要加速的业务应用的加速。
  19. 如权利要求11所述的基于家庭网关的业务加速系统,其特征在于:该系统的终端设备还包括心跳消息发送模块,家庭网关还包 括心跳消息接收模块;
    所述心跳消息发送模块,用于:周期性发送心跳消息给家庭网关;
    所述心跳消息接收模块,用于:接收终端设备发来的心跳消息,且当若干个周期内没有收到来自该终端设备的心跳消息时,从加速队列中删除该终端设备的加速规则。
  20. 如权利要求11所述的基于家庭网关的业务加速系统,其特征在于,当所述终端设备为多个时,家庭网关的加速处理模块,还用于:当收到多个终端设备发来的消息时,根据预设的终端设备MAC优先级表,优先执行MAC优先级高的终端设备的业务加速。
PCT/CN2020/101264 2020-01-19 2020-07-10 一种基于家庭网关的业务加速方法及系统 WO2021143076A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010059950.7A CN111314112B (zh) 2020-01-19 2020-01-19 一种基于家庭网关的业务加速方法及系统
CN202010059950.7 2020-01-19

Publications (1)

Publication Number Publication Date
WO2021143076A1 true WO2021143076A1 (zh) 2021-07-22

Family

ID=71146829

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/101264 WO2021143076A1 (zh) 2020-01-19 2020-07-10 一种基于家庭网关的业务加速方法及系统

Country Status (2)

Country Link
CN (2) CN111314112B (zh)
WO (1) WO2021143076A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111314112B (zh) * 2020-01-19 2022-01-04 烽火通信科技股份有限公司 一种基于家庭网关的业务加速方法及系统
CN114257552B (zh) * 2020-09-10 2023-11-21 中国移动通信集团广东有限公司 流量加速方法、装置及终端
CN112615794B (zh) * 2020-12-08 2022-07-29 四川迅游网络科技股份有限公司 一种面向业务流量特征的智能加速系统和方法
CN116744329A (zh) * 2022-10-21 2023-09-12 荣耀终端有限公司 一种网络加速方法和电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158419A (zh) * 2011-05-23 2011-08-17 深圳市共进电子有限公司 在家庭网关中实现数据包加速转发的方法
WO2012100716A1 (zh) * 2011-01-28 2012-08-02 中兴通讯股份有限公司 在无源光网络中实现家庭网关功能的方法及装置
CN105207860A (zh) * 2015-08-13 2015-12-30 中国联合网络通信集团有限公司 一种业务加速系统及方法
CN106899576A (zh) * 2017-01-20 2017-06-27 烽火通信科技股份有限公司 基于家庭网关的访客网络功能实现方法
CN111314112A (zh) * 2020-01-19 2020-06-19 烽火通信科技股份有限公司 一种基于家庭网关的业务加速方法及系统

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9191228B2 (en) * 2005-03-16 2015-11-17 Icontrol Networks, Inc. Cross-client sensor user interface in an integrated security network
US7460476B1 (en) * 2004-10-18 2008-12-02 Ubicom, Inc. Automatic adaptive network traffic prioritization and shaping
CN101022677B (zh) * 2006-02-16 2011-03-30 华为技术有限公司 一种动态业务流分类和映射方法和光网络终端及光接入网
CN100531064C (zh) * 2006-11-01 2009-08-19 中兴通讯股份有限公司 一种家庭网关QoS策略配置管理的系统和方法
CN102014080B (zh) * 2010-12-10 2016-05-11 中兴通讯股份有限公司 一种利用家庭网关进行即时通信的方法及家庭网关
CN102946347B (zh) * 2012-12-07 2015-07-01 烽火通信科技股份有限公司 一种加速Linux系统本地数据包处理的方法及装置
CN103220182B (zh) * 2013-04-28 2016-05-25 烽火通信科技股份有限公司 智能终端管理家庭网关的系统及方法
MY194638A (en) * 2015-10-30 2022-12-08 Huawei Tech Co Ltd Control plane gateway, user plane gateway and gateway configuration method
CN106656648B (zh) * 2015-11-04 2020-06-05 中国电信股份有限公司 基于家庭网关的应用流量动态保护方法、系统及家庭网关
CN107086934B (zh) * 2017-06-12 2019-09-10 中国联合网络通信集团有限公司 组网设备的配置方法和网关
US10805179B2 (en) * 2017-12-28 2020-10-13 Intel Corporation Service level agreement-based multi-hardware accelerated inference
CN109861899B (zh) * 2019-01-30 2021-08-24 烽火通信科技股份有限公司 虚拟家庭网关及实现方法、家庭网络中心及数据处理方法
CN110365560B (zh) * 2019-07-15 2021-09-24 上海市共进通信技术有限公司 家庭网关中实现服务端口自适应的控制方法
CN110519402B (zh) * 2019-07-25 2022-03-08 烽火通信科技股份有限公司 实体家庭网关接入虚拟家庭网关方法、设备及系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012100716A1 (zh) * 2011-01-28 2012-08-02 中兴通讯股份有限公司 在无源光网络中实现家庭网关功能的方法及装置
CN102158419A (zh) * 2011-05-23 2011-08-17 深圳市共进电子有限公司 在家庭网关中实现数据包加速转发的方法
CN105207860A (zh) * 2015-08-13 2015-12-30 中国联合网络通信集团有限公司 一种业务加速系统及方法
CN106899576A (zh) * 2017-01-20 2017-06-27 烽火通信科技股份有限公司 基于家庭网关的访客网络功能实现方法
CN111314112A (zh) * 2020-01-19 2020-06-19 烽火通信科技股份有限公司 一种基于家庭网关的业务加速方法及系统

Also Published As

Publication number Publication date
CN113746671A (zh) 2021-12-03
CN111314112A (zh) 2020-06-19
CN113746671B (zh) 2023-05-26
CN111314112B (zh) 2022-01-04

Similar Documents

Publication Publication Date Title
WO2021143076A1 (zh) 一种基于家庭网关的业务加速方法及系统
CN109842528B (zh) 一种基于sdn和nfv的服务功能链的部署方法
US7926058B2 (en) Resource tracking method and apparatus
CN111371779A (zh) 一种基于dpdk虚拟化管理系统的防火墙及其实现方法
TW201830929A (zh) 在網路流量型樣中以上下文為基礎之異常行為之偵測
US11075980B2 (en) Method for operating a node cluster system in a network and node cluster system
CN112019444B (zh) 一种基于Istio技术的5G核心网系统
US20140359620A1 (en) Associating an Identifier for a Virtual Machine with a Published Network Configuration Service Type
WO2022134725A1 (zh) 一种大规模K8s集群监控的方法、装置、设备及可读介质
WO2021098425A1 (zh) 配置业务的服务质量策略方法、装置和计算设备
CN114640726B (zh) 报文处理方法、设备、系统及存储介质
US20150003288A1 (en) Vdp request packet processing
US9122546B1 (en) Rapid processing of event notifications
US11855855B2 (en) Network operation method based on network functions virtualization device and storage medium
US20220283792A1 (en) Containerized network function deployment during runtime resource creation
WO2022267815A1 (zh) 数据包过滤方法和装置、电子设备、和计算机可读存储介质
CN113660127B (zh) 基于EasyMesh组网中的组网控制方法、装置及设备
WO2023155699A1 (zh) 空口协议安全漏洞的挖掘方法、装置、移动终端
CN111338713A (zh) 一种应用卡顿的处理方法、装置、设备及存储介质
JP2012503455A (ja) ネットワークにおけるアクセス制御方法およびネットワーク
CN116684358A (zh) 一种可编程网元设备的流表管理系统及方法
CN115277251B (zh) 基于frr软件路由集群的ip封堵方法、系统及介质
WO2016201843A1 (zh) 一种mac地址学习的控制方法和装置
US10630596B1 (en) Forwarding action redirection
US10003677B2 (en) Network application verification at a network processor

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20914101

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20914101

Country of ref document: EP

Kind code of ref document: A1