Nothing Special   »   [go: up one dir, main page]

CN116781782A - Request processing method, request processing device, electronic equipment and storage medium - Google Patents

Request processing method, request processing device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116781782A
CN116781782A CN202310898041.6A CN202310898041A CN116781782A CN 116781782 A CN116781782 A CN 116781782A CN 202310898041 A CN202310898041 A CN 202310898041A CN 116781782 A CN116781782 A CN 116781782A
Authority
CN
China
Prior art keywords
user access
access request
request
processing
acceleration
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202310898041.6A
Other languages
Chinese (zh)
Inventor
邱竹泉
贾潞汀
楚金海
李秀超
程雍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom International Co ltd
Original Assignee
China Telecom International Co ltd
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 China Telecom International Co ltd filed Critical China Telecom International Co ltd
Priority to CN202310898041.6A priority Critical patent/CN116781782A/en
Publication of CN116781782A publication Critical patent/CN116781782A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping

Landscapes

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

Abstract

The disclosure provides a request processing method, a request processing device, electronic equipment and a storage medium. The method comprises the following steps: acquiring a user access request, and analyzing and acquiring a destination address of the user access request; if the destination address does not belong to a preset address library, analyzing and obtaining request information of the user access request; judging whether the user access request belongs to a non-acceleration list or not according to the request information; and if the user access request does not belong to the non-acceleration list, carrying out acceleration processing on the user access request.

Description

请求处理方法、装置、电子设备及存储介质Request processing methods, devices, electronic equipment and storage media

技术领域Technical field

本公开涉及通信技术领域,尤其涉及一种请求处理方法、装置、电子设备及存储介质。The present disclosure relates to the field of communication technology, and in particular, to a request processing method, device, electronic device and storage medium.

背景技术Background technique

随着互联网技术的发展及网络业务的拓展,云加速平台可以为用户提供访问海外资源的服务,用户可以通过开通加速套餐以使用该服务,在用户通过云加速平台访问海外资源时,可能会出现访问请求处理效率较低,访问速度较慢的问题。With the development of Internet technology and the expansion of network business, the cloud acceleration platform can provide users with services to access overseas resources. Users can use this service by opening an acceleration package. When users access overseas resources through the cloud acceleration platform, problems may occur. Access request processing efficiency is low and access speed is slow.

需要说明的是,在上述背景技术部分公开的信息仅用于加强对本公开的背景的理解,因此可以包括不构成对本领域普通技术人员已知的现有技术的信息。It should be noted that the information disclosed in the above background section is only used to enhance understanding of the background of the present disclosure, and therefore may include information that does not constitute prior art known to those of ordinary skill in the art.

发明内容Contents of the invention

本公开的目的在于提供一种请求处理方法、装置、电子设备及存储介质,该方法可以提高请求处理效率,提高访问速度,合理利用计算机资源。The purpose of this disclosure is to provide a request processing method, device, electronic device and storage medium, which method can improve request processing efficiency, increase access speed, and rationally utilize computer resources.

本公开的其他特性和优点将通过下面的详细描述变得显然,或部分地通过本公开的实践而习得。Additional features and advantages of the disclosure will be apparent from the following detailed description, or, in part, may be learned by practice of the disclosure.

本公开实施例提供一种请求处理方法,该方法包括:获取用户访问请求,并解析获得所述用户访问请求的目的地址;若所述目的地址不属于预设地址库,则解析获得所述用户访问请求的请求信息;根据所述请求信息判断所述用户访问请求是否属于非加速名单;若所述用户访问请求不属于所述非加速名单,则对所述用户访问请求进行加速处理。Embodiments of the present disclosure provide a request processing method, which method includes: obtaining a user access request, and parsing to obtain the destination address of the user access request; if the destination address does not belong to the default address library, parsing to obtain the user access request Request information of the access request; determine whether the user access request belongs to the non-accelerated list based on the request information; if the user access request does not belong to the non-accelerated list, accelerate the user access request.

在本公开一些示例性实施例中,所述方法还包括:获取针对所述用户访问请求进行加速处理得到的第一访问时间;对所述用户访问请求进行非加速处理,获得第二访问时间;若所述第一访问时间大于或等于所述第二访问时间,则将所述用户访问请求加入至所述非加速名单中。In some exemplary embodiments of the present disclosure, the method further includes: obtaining a first access time obtained by accelerated processing of the user access request; performing non-accelerated processing of the user access request to obtain a second access time; If the first access time is greater than or equal to the second access time, the user access request is added to the non-accelerated list.

在本公开一些示例性实施例中,对所述用户访问请求进行加速处理,包括:使用最大当前可用带宽传输所述用户访问请求对应的访问数据。In some exemplary embodiments of the present disclosure, accelerating processing of the user access request includes: using the maximum currently available bandwidth to transmit access data corresponding to the user access request.

在本公开一些示例性实施例中,所述方法还包括:确定初始发送速率,在所述初始发送速率的基础上进行增大处理,得到候选发送速率;确定使用所述候选发送速率进行数据传输时的丢包率;若所述丢包率达到预设阈值,则根据所述候选发送速率确定所述最大当前可用带宽;若所述丢包率未达到所述预设阈值,则在所述候选发送速率的基础上继续进行增大处理。In some exemplary embodiments of the present disclosure, the method further includes: determining an initial transmission rate, performing an increase process on the basis of the initial transmission rate to obtain a candidate transmission rate; determining to use the candidate transmission rate for data transmission The packet loss rate at the time; if the packet loss rate reaches the preset threshold, the maximum currently available bandwidth is determined according to the candidate sending rate; if the packet loss rate does not reach the preset threshold, then the The increasing process continues based on the candidate sending rate.

在本公开一些示例性实施例中,根据所述候选发送速率确定所述最大当前可用带宽,包括:使用所述候选发送速率进行数据传输时,获取接收端在多个预设时间段内分别接收到的数据量;根据各个预设时间段内分别接收到的数据量和所述预设时间段的时长,确定多个当前可用带宽;将所述多个当前可用带宽中最大的当前可用带宽确定为所述最大当前可用带宽。In some exemplary embodiments of the present disclosure, determining the maximum currently available bandwidth according to the candidate transmission rate includes: when using the candidate transmission rate for data transmission, obtaining the receiving end's respective reception times within multiple preset time periods. the amount of data received; determine multiple currently available bandwidths based on the amount of data received in each preset time period and the length of the preset time period; determine the largest currently available bandwidth among the multiple currently available bandwidths is the maximum currently available bandwidth.

在本公开一些示例性实施例中,所述方法还包括:确定使用所述初始发送速率进行数据传输时的第一时延,以及使用所述候选发送速率进行数据传输时的第二时延;其中,若所述丢包率达到预设阈值,则根据所述候选发送速率确定所述最大当前可用带宽,包括:若所述丢包率达到预设阈值,且所述第二时延和所述第一时延的差值大于预设值,则根据所述候选发送速率确定所述最大当前可用带宽。In some exemplary embodiments of the present disclosure, the method further includes: determining a first delay when using the initial transmission rate for data transmission, and a second delay when using the candidate transmission rate for data transmission; Wherein, if the packet loss rate reaches a preset threshold, determining the maximum currently available bandwidth according to the candidate transmission rate includes: if the packet loss rate reaches a preset threshold, and the second delay and the If the difference in the first delay is greater than the preset value, the maximum currently available bandwidth is determined based on the candidate transmission rate.

在本公开一些示例性实施例中,所述方法还包括:若所述目的地址属于预设地址库,对所述用户访问请求进行非加速处理;若所述用户访问请求属于所述非加速名单,对所述用户访问请求进行非加速处理。In some exemplary embodiments of the present disclosure, the method further includes: if the destination address belongs to a preset address library, non-accelerated processing of the user access request; if the user access request belongs to the non-accelerated list , perform non-accelerated processing on the user access request.

本公开实施例提供一种请求处理装置,包括:获取模块,用于获取用户访问请求,并解析获得所述用户访问请求的目的地址;获得模块,用于若所述目的地址不属于预设地址库,则解析获得所述用户访问请求的请求信息;判断模块,用于根据所述请求信息判断所述用户访问请求是否属于非加速名单;处理模块,用于若所述用户访问请求不属于所述非加速名单,则对所述用户访问请求进行加速处理。An embodiment of the present disclosure provides a request processing device, including: an acquisition module, used to acquire a user access request, and parse to obtain the destination address of the user access request; an acquisition module, used to obtain the destination address if the destination address does not belong to the default address library, then analyze and obtain the request information of the user access request; the judgment module is used to judge whether the user access request belongs to the non-accelerated list according to the request information; the processing module is used to determine if the user access request does not belong to the non-accelerated list; If the non-acceleration list is specified, the user access request will be accelerated.

本公开实施例提供一种电子设备,包括:至少一个处理器;存储终端设备,用于存储至少一个程序,当至少一个程序被至少一个处理器执行时,使得至少一个处理器实现上述任一种请求处理方法。Embodiments of the present disclosure provide an electronic device, including: at least one processor; a storage terminal device for storing at least one program. When the at least one program is executed by at least one processor, the at least one processor implements any of the above. Request handling method.

本公开实施例提供一种计算机可读存储介质,其上存储有计算机程序,其特征在于,计算机程序被处理器执行时实现上述任一种请求处理方法。An embodiment of the present disclosure provides a computer-readable storage medium on which a computer program is stored. The feature is that when the computer program is executed by a processor, any one of the above request processing methods is implemented.

本公开实施例提供的请求处理方法,获取用户访问请求,并解析获得用户访问请求的目的地址;判断目的地址是否属于预设地址库,在目的地址不属于预设地址库时,解析获得用户访问请求的请求信息;根据请求信息判断用户访问请求是否属于非加速名单;在用户访问请求不属于非加速名单时,对用户访问请求进行加速处理;该方法通过预设地址库和非加速名单对用户访问请求对应的目的地址和请求信息进行区分,以判断用户访问请求是否适合进行加速处理,可以提高请求处理效率,提高访问速度,合理利用计算机资源。The request processing method provided by the embodiment of the present disclosure obtains the user access request, and parses to obtain the destination address of the user access request; determines whether the destination address belongs to the default address library, and when the destination address does not belong to the default address library, parses to obtain the user access The requested request information; determine whether the user access request belongs to the non-accelerated list based on the request information; when the user access request does not belong to the non-accelerated list, accelerate the user access request; this method uses the preset address library and the non-accelerated list to process the user access request The destination address and request information corresponding to the access request are distinguished to determine whether the user's access request is suitable for accelerated processing, which can improve request processing efficiency, increase access speed, and rationally utilize computer resources.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only, and do not limit the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. Obviously, the drawings in the following description are only some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting creative efforts.

图1是根据一示例性实施方式示出的一种请求处理方法的流程图。FIG. 1 is a flowchart of a request processing method according to an exemplary implementation.

图2是根据一示例示出的加速处理和非加速处理对应的访问时间的示意图。FIG. 2 is a schematic diagram illustrating access times corresponding to accelerated processing and non-accelerated processing according to an example.

图3是根据一示例示出的云加速平台的示意图。Figure 3 is a schematic diagram of a cloud acceleration platform according to an example.

图4是根据一示例性实施方式示出的一种请求处理装置的框图。Figure 4 is a block diagram of a request processing device according to an exemplary implementation.

图5是根据一示例性实施方式示出的一种电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device according to an exemplary embodiment.

具体实施方式Detailed ways

现在将参考附图更全面地描述示例实施例。然而,示例实施例能够以多种形式实施,且不应被理解为限于在此阐述的实施例;相反,提供这些实施例使得本公开将全面和完整,并将示例实施例的构思全面地传达给本领域的技术人员。在图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in various forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concepts of the example embodiments. To those skilled in the art. The same reference numerals in the drawings represent the same or similar parts, and thus their repeated description will be omitted.

本公开所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。在下面的描述中,提供许多具体细节从而给出对本公开的实施方式的充分理解。然而,本领域技术人员将意识到,可以实践本公开的技术方案而省略特定细节中的一个或更多,或者可以采用其它的方法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知方法、装置、实现或者操作以避免模糊本公开的各方面。The features, structures, or characteristics described in this disclosure may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to provide a thorough understanding of embodiments of the disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details being omitted, or other methods, components, devices, steps, etc. may be adopted. In other instances, well-known methods, apparatus, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the present disclosure.

附图仅为本公开的示意性图解,图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在至少一个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。The drawings are only schematic illustrations of the present disclosure, and the same reference numerals in the drawings represent the same or similar parts, and thus their repeated description will be omitted. Some of the block diagrams shown in the figures do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software form, or in at least one hardware module or integrated circuit, or in different networks and/or processor devices and/or microcontroller devices.

附图中所示的流程图仅是示例性说明,不是必须包括所有的内容和步骤,也不是必须按所描述的顺序执行。例如,有的步骤还可以分解,而有的步骤可以合并或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flowcharts shown in the drawings are only illustrative, and do not necessarily include all contents and steps, nor must they be executed in the order described. For example, some steps can be decomposed, and some steps can be merged or partially merged, so the actual order of execution may change according to the actual situation.

此外,在本公开的描述中,用语“一个”、“一”、“该”、“所述”和“至少一个”用以表示存在至少一个要素或组成部分;用语“包含”、“包括”和“具有”用以表示开放式的包括在内的意思并且是指除了列出的要素或组成部分之外还可存在另外的要素或组成部分;用语“第一”、“第二”和“第三”等仅作为标记使用,不是对其对象的数量限制。In addition, in the description of the present disclosure, the terms "a", "an", "the", "the" and "at least one" are used to indicate the presence of at least one element or component; the terms "include" and "include" and "having" are used to express an open-ended inclusion and mean that there may be additional elements or components in addition to those listed; the terms "first", "second" and " "Third" etc. are only used as markers and are not restrictions on the number of objects.

下面,将结合附图及实施例对本公开示例实施例中的请求处理方法的各个步骤进行更详细的说明。Below, each step of the request processing method in the exemplary embodiment of the present disclosure will be described in more detail with reference to the accompanying drawings and embodiments.

图1是根据一示例性实施方式示出的一种请求处理方法的流程图。本公开实施例提供的方法可以由云加速平台执行,但本公开并不限定于此。FIG. 1 is a flowchart of a request processing method according to an exemplary implementation. The methods provided by the embodiments of the disclosure can be executed by the cloud acceleration platform, but the disclosure is not limited thereto.

如图1所示,本公开实施例提供的请求处理方法可以包括以下步骤。As shown in Figure 1, the request processing method provided by the embodiment of the present disclosure may include the following steps.

在步骤S102中,获取用户访问请求,并解析获得用户访问请求的目的地址。In step S102, the user access request is obtained, and the destination address of the user access request is obtained through analysis.

本公开实施例中,用户终端可以开通加速套餐业务,并发起用户访问请求,云加速平台可以获取该用户访问请求;用户终端可以为电脑、手机、路由器等,用户访问请求例如可以是用户访问网址为www.baidu.com的请求。In this disclosed embodiment, the user terminal can activate the acceleration package service and initiate a user access request, and the cloud acceleration platform can obtain the user access request; the user terminal can be a computer, a mobile phone, a router, etc., and the user access request can be, for example, a user access URL Request for www.baidu.com.

本公开实施例中,云加速平台可以对用户访问请求进行解析,获得该用户访问请求对应的目的地址,其中,目的地址可以是目的IP(Internet Protocol,网际互连协议)地址。In this disclosed embodiment, the cloud acceleration platform can parse the user access request and obtain the destination address corresponding to the user access request, where the destination address can be a destination IP (Internet Protocol) address.

本公开实施例中,云加速平台可以判断目的IP地址是否属于预设地址库,其中,预设地址库可以是IP地址库,IP地址库中可以包括预设区域内的IP地址,以用于判断用户访问请求对应的目的IP地址是否属于预设区域,其中,预设区域例如可以是国内区域。In this disclosed embodiment, the cloud acceleration platform can determine whether the destination IP address belongs to a default address library, where the default address library can be an IP address library, and the IP address library can include IP addresses in a preset area for Determine whether the destination IP address corresponding to the user's access request belongs to a preset area, where the preset area may be a domestic area, for example.

在示例性实施例中,该方法还包括:若目的地址属于预设地址库,对用户访问请求进行非加速处理。In an exemplary embodiment, the method further includes: if the destination address belongs to a preset address library, non-accelerated processing of the user access request.

本公开实施例中,对用户访问请求进行非加速处理,指的是对用户访问请求进行正常访问处理。In this disclosed embodiment, non-accelerated processing of the user access request refers to normal access processing of the user access request.

本公开实施例中,若目的地址属于预设地址库,则可以说明目的IP匹配成功,流量为预设区域(例如国内)的流量,可以对用户访问请求进行非加速处理,例如将用户访问请求直接转发至公网访问。In this disclosed embodiment, if the destination address belongs to the preset address library, it can mean that the destination IP is successfully matched and the traffic is traffic in the preset area (such as domestic). The user access request can be processed non-accelerated, for example, the user access request can be Directly forwarded to the public network for access.

在步骤S104中,若目的地址不属于预设地址库,则解析获得用户访问请求的请求信息。In step S104, if the destination address does not belong to the default address library, the request information of the user access request is obtained through analysis.

本公开实施例中,若目的地址不属于预设地址库,则可以说明目的IP未匹配成功,流量为非预设区域(例如国外)的流量,云加速平台可以对用户访问请求进行解析,获得用户访问请求对应的请求信息,该请求信息例如可以包括域名信息。In this disclosed embodiment, if the destination address does not belong to the default address library, it can mean that the destination IP has not been successfully matched and the traffic is from a non-preset area (such as abroad). The cloud acceleration platform can parse the user access request and obtain Request information corresponding to the user's access request, which may include domain name information, for example.

在步骤S106中,根据请求信息判断用户访问请求是否属于非加速名单。In step S106, it is determined according to the request information whether the user access request belongs to the non-accelerated list.

本公开实施例中,非加速名单中可以包括多个无需加速的用户访问请求,也可以包括多个无需加速的用户访问请求对应的请求信息,在名单中的请求会直接转发至公网进行非加速访问;云加速平台可以判断当前的用户访问请求是否属于非加速名单,例如查找当前的用户访问请求是否在非加速名单中,或者查找当前的用户访问请求对应的请求信息是否在非加速名单中。In this disclosed embodiment, the non-acceleration list may include multiple user access requests that do not require acceleration, and may also include request information corresponding to multiple user access requests that do not require acceleration. The requests in the list will be directly forwarded to the public network for non-acceleration. Accelerate access; the cloud acceleration platform can determine whether the current user access request belongs to the non-accelerated list, such as finding whether the current user access request is in the non-accelerated list, or finding whether the request information corresponding to the current user access request is in the non-accelerated list. .

在示例性实施例中,该方法还包括:若用户访问请求属于非加速名单,对用户访问请求进行非加速处理。In an exemplary embodiment, the method further includes: if the user access request belongs to the non-accelerated list, performing non-accelerated processing on the user access request.

本公开实施例中,若用户访问请求在非加速名单中,或者,用户访问请求的请求信息在非加速名单中,可以将该用户访问请求转发至公网进行正常访问。In this disclosed embodiment, if the user access request is in the non-accelerated list, or the request information of the user access request is in the non-accelerated list, the user access request can be forwarded to the public network for normal access.

在步骤S108中,若用户访问请求不属于非加速名单,则对用户访问请求进行加速处理。In step S108, if the user access request does not belong to the non-accelerated list, the user access request is accelerated.

本公开实施例中,若用户访问请求不在非加速名单中,或者,用户访问请求的请求信息不在非加速名单中,可以对用户访问请求进行加速处理。In the embodiment of the present disclosure, if the user access request is not in the non-accelerated list, or the request information of the user access request is not in the non-accelerated list, the user access request can be accelerated.

在示例性实施例中,对用户访问请求进行加速处理,包括:使用最大当前可用带宽传输用户访问请求对应的访问数据。In an exemplary embodiment, accelerating processing of the user access request includes: using the maximum currently available bandwidth to transmit access data corresponding to the user access request.

其中,最大当前可用带宽可以通过带宽探测TCP(Transmission ControlProtocol,传输控制协议)拥塞算法得到,在确定最大当前可用带宽之后,可以使用该最大当前可用带宽传输用户访问请求对应的访问数据,其中,访问数据例如可以是用户访问的网址返回的数据。Among them, the maximum currently available bandwidth can be obtained through the bandwidth detection TCP (Transmission Control Protocol, Transmission Control Protocol) congestion algorithm. After determining the maximum currently available bandwidth, the maximum currently available bandwidth can be used to transmit access data corresponding to the user access request, where, access The data may be, for example, data returned by the URL visited by the user.

在示例性实施例中,该方法还包括:确定初始发送速率,在初始发送速率的基础上进行增大处理,得到候选发送速率;确定使用候选发送速率进行数据传输时的丢包率;若丢包率达到预设阈值,则根据候选发送速率确定最大当前可用带宽;若丢包率未达到预设阈值,则在候选发送速率的基础上继续进行增大处理。In an exemplary embodiment, the method further includes: determining an initial sending rate, performing an increase process on the basis of the initial sending rate to obtain a candidate sending rate; determining a packet loss rate when using the candidate sending rate for data transmission; if the packet loss rate is If the packet rate reaches the preset threshold, the maximum currently available bandwidth is determined based on the candidate sending rate; if the packet loss rate does not reach the preset threshold, the increase process continues on the basis of the candidate sending rate.

具体地,带宽探测算法可以周期地探测当前通道的最大当前可用带宽,探测算法尝试不断加大发送的数据量,根据数据包的丢包率得到当前通道的最大当前可用带宽。例如,当通过增加发送数据量,数据的丢包率达到一定临界值时,标记当前发送带宽为最大可用带宽。Specifically, the bandwidth detection algorithm can periodically detect the maximum currently available bandwidth of the current channel. The detection algorithm tries to continuously increase the amount of data sent, and obtains the maximum currently available bandwidth of the current channel based on the packet loss rate of the data packets. For example, when the data packet loss rate reaches a certain critical value by increasing the amount of data sent, the current sending bandwidth is marked as the maximum available bandwidth.

例如,发送端先确定一个初始发送速率,然后以指数速度(例如2n)在初始发送速率的基础上增加发送速率,得到候选发送速率;然后使用候选发送速率进行数据传输,并确定使用候选发送速率进行数据传输时的丢包率,判断此时的丢包率是否达到预设阈值,其中预设阈值可以根据实际情况设置;若此时的丢包率达到预设阈值,则根据候选发送速率确定最大当前可用带宽;若此时的丢包率未达到预设阈值,则在候选发送速率的基础上继续进行增大处理,直至根据增大后的候选发送速率进行数据传输时得到的丢包率达到预设阈值。For example, the sending end first determines an initial sending rate, and then increases the sending rate based on the initial sending rate at an exponential rate (for example, 2 n ) to obtain a candidate sending rate; then uses the candidate sending rate for data transmission, and determines the use of the candidate sending rate. The packet loss rate during data transmission is determined by determining whether the packet loss rate at this time reaches the preset threshold. The preset threshold can be set according to the actual situation; if the packet loss rate at this time reaches the preset threshold, the candidate transmission rate is determined according to the candidate transmission rate. Determine the maximum currently available bandwidth; if the packet loss rate at this time does not reach the preset threshold, continue to increase the candidate transmission rate until the packet loss is obtained during data transmission based on the increased candidate transmission rate. rate reaches the preset threshold.

在示例性实施例中,根据候选发送速率确定最大当前可用带宽,包括:使用候选发送速率进行数据传输时,获取接收端在多个预设时间段内分别接收到的数据量;根据各个预设时间段内分别接收到的数据量和预设时间段的时长,确定多个当前可用带宽;将多个当前可用带宽中最大的当前可用带宽确定为最大当前可用带宽。In an exemplary embodiment, determining the maximum currently available bandwidth based on the candidate transmission rate includes: when using the candidate transmission rate for data transmission, obtaining the amount of data received by the receiving end in multiple preset time periods; The amount of data received within the time period and the duration of the preset time period are used to determine multiple currently available bandwidths; the largest currently available bandwidth among the multiple currently available bandwidths is determined as the maximum currently available bandwidth.

本公开实施例中,使用候选发送速率进行数据传输时,可以统计接收端在时间周期t内的每个预设时间段Δt内接收到的数据量Δdelivered,根据每个预设时间段Δt内接收到的数据量Δdelivered计算每个预设时间段内的当前可用带宽bw=Δdelivered/Δt,在丢包率达到预设阈值时,将多个当前可用带宽中最大的当前可用带宽bwMax确定为时间周期t内的最大当前可用带宽。In the embodiment of the present disclosure, when using the candidate transmission rate for data transmission, the amount of data Δdelivered received by the receiving end in each preset time period Δt within the time period t can be counted. According to the data amount Δdelivered received in each preset time period Δt The amount of data delivered Δdelivered calculates the current available bandwidth bw=Δdelivered/Δt in each preset time period. When the packet loss rate reaches the preset threshold, the largest current available bandwidth bwMax among multiple currently available bandwidths is determined as the time period. The maximum currently available bandwidth within t.

本公开实施例中,发送端可以计算每个数据包的往返时延:rtt=rt-st,其中,rt表示响应时间,st表示发送时延;并记录在时间周期t内最小的往返时延rttMin。In this embodiment of the disclosure, the sending end can calculate the round-trip delay of each data packet: rtt=rt-st, where rt represents the response time and st represents the sending delay; and record the minimum round-trip delay within the time period t. rttMin.

本公开实施例中,可以根据时间周期t内的最大当前可用带宽bwMax和时间周期t内的最小的往返时延rttMin确定时间周期t内的最大发送量:BDP=bwMax*rttMin。In the embodiment of the present disclosure, the maximum transmission amount in time period t can be determined based on the maximum currently available bandwidth bwMax in time period t and the minimum round-trip delay rttMin in time period t: BDP=bwMax*rttMin.

本公开实施例中,在计算得到最大发送量后,可以使用最大发送量进行数据传输。In the embodiment of the present disclosure, after the maximum transmission amount is calculated, the maximum transmission amount can be used for data transmission.

在示例性实施例中,该方法还包括:确定使用初始发送速率进行数据传输时的第一时延,以及使用候选发送速率进行数据传输时的第二时延;其中,若丢包率达到预设阈值,则根据候选发送速率确定最大当前可用带宽,包括:若丢包率达到预设阈值,且第二时延和第一时延的差值大于预设值,则根据候选发送速率确定最大当前可用带宽。In an exemplary embodiment, the method further includes: determining a first delay when using the initial sending rate for data transmission, and a second delay when using the candidate sending rate for data transmission; wherein, if the packet loss rate reaches a predetermined If a threshold is set, the maximum currently available bandwidth is determined based on the candidate sending rate, including: if the packet loss rate reaches the preset threshold and the difference between the second delay and the first delay is greater than the preset value, the maximum currently available bandwidth is determined based on the candidate sending rate. Current available bandwidth.

具体地,带宽探测算法会周期内探测通道最大可用带宽,探测算法尝试不断加大发送数据量,根据数据包的时延变化和丢包率,得到当前通道最大可用带宽。例如,当通过增加发送数据量,观察数据包时延返回明显增大,同时丢包率达到一定临界值时,标记当前发送带宽为最大可用带宽。Specifically, the bandwidth detection algorithm will detect the maximum available bandwidth of the channel within a period. The detection algorithm tries to continuously increase the amount of data sent, and obtains the maximum available bandwidth of the current channel based on the delay changes and packet loss rate of the data packets. For example, when you increase the amount of data sent and observe that the packet delay return increases significantly, and the packet loss rate reaches a certain critical value, mark the current sending bandwidth as the maximum available bandwidth.

具体地,在使用初始发送速率进行数据传输时,将确定的往返时延作为第一时延;在使用候选发送速率进行数据传输时,将确定的往返时延作为第二时延;判断第一时延和第二时延的差值是否大于预设值,若第二时延和第一时延的差值大于预设值,且丢包率达到预设阈值,则根据候选发送速率确定最大当前可用带宽;若第二时延和第一时延的差值小于或等于预设值,或者,丢包率未达到预设阈值,则在候选发送速率的基础上继续进行增大处理。Specifically, when the initial transmission rate is used for data transmission, the determined round-trip delay is used as the first delay; when the candidate transmission rate is used for data transmission, the determined round-trip delay is used as the second delay; the first delay is determined Whether the difference between the delay and the second delay is greater than the preset value. If the difference between the second delay and the first delay is greater than the preset value, and the packet loss rate reaches the preset threshold, the maximum value is determined based on the candidate sending rate. Currently available bandwidth; if the difference between the second delay and the first delay is less than or equal to the preset value, or the packet loss rate does not reach the preset threshold, the increase process will continue based on the candidate sending rate.

在示例性实施例中,该方法还包括:获取针对用户访问请求进行加速处理得到的第一访问时间;对用户访问请求进行非加速处理,获得第二访问时间;若第一访问时间大于或等于第二访问时间,则将用户访问请求加入至非加速名单中。In an exemplary embodiment, the method further includes: obtaining a first access time obtained by accelerated processing of the user access request; performing non-accelerated processing of the user access request to obtain a second access time; if the first access time is greater than or equal to During the second access time, the user access request will be added to the non-accelerated list.

本公开实施例中,云加速平台可以包括动态检测模块,该动态检测模块可以实时获取用户访问请求,对用户访问请求做探测,将用户访问请求直接走非加速通道,得到第二访问时间;将用户访问请求走加速通道,得到第一访问时间;对比第一访问时间和第二访问时间,如果非加速处理的访问效果更佳(例如第一访问时间大于或等于第二访问时间),则将该用户访问请求或该用户访问请求对应的请求信息加入到非加速名单中。In the embodiment of the present disclosure, the cloud acceleration platform may include a dynamic detection module, which can obtain user access requests in real time, detect user access requests, and directly route user access requests through the non-acceleration channel to obtain the second access time; The user's access request goes through the accelerated channel and the first access time is obtained; comparing the first access time and the second access time, if the access effect of non-accelerated processing is better (for example, the first access time is greater than or equal to the second access time), then the The user access request or the request information corresponding to the user access request is added to the non-accelerated list.

图2是根据一示例示出的加速处理和非加速处理对应的访问时间的示意图。FIG. 2 is a schematic diagram illustrating access times corresponding to accelerated processing and non-accelerated processing according to an example.

参考图2,第一折线201示出了使用加速处理得到的访问时间,该访问时间的平均值为9.61秒;第二折线202示出了使用非加速处理得到的访问时间,该访问时间的平均值为32.4秒;可以看出,使用加速处理,访问效率可以提升近4倍。Referring to Figure 2, the first polyline 201 shows the access time obtained by using accelerated processing, and the average access time is 9.61 seconds; the second polyline 202 shows the access time obtained by using non-accelerated processing, and the average access time is 9.61 seconds. The value is 32.4 seconds; it can be seen that using accelerated processing, the access efficiency can be improved by nearly 4 times.

图3是根据一示例示出的云加速平台的示意图。Figure 3 is a schematic diagram of a cloud acceleration platform according to an example.

参考图3,云加速平台310可以包括接入系统311、流量调度模块312、IP库313、非加速名单314、动态检测模块315和加速系统316。Referring to FIG. 3 , the cloud acceleration platform 310 may include an access system 311 , a traffic scheduling module 312 , an IP library 313 , a non-acceleration list 314 , a dynamic detection module 315 and an acceleration system 316 .

本公开实施例中,接入系统311和用户端320连接,用户端320可以是电脑、手机、路由器等;接入系统311可以从用户端320获取用户访问流量(包括用户访问请求),对用户访问流量做访问控制;流量调度模块312从接入系统311获取用户访问流量,对用户访问流量进行调度,根据IP库313和非加速名单314判断用户访问流量是否走加速系统;IP库313包含国内IP地址,用于区分流量是否为国内访问;非加速名单314包括无需加速的请求信息,在名单中的请求可以直接转发至公网进行非加速访问;具体包括:根据IP库313对用户访问流量做IP判断,若该用户访问流量属于国内IP流量(例如目的IP地址属于IP库),则对其进行非加速处理;若该用户访问流量属于海外IP流量(例如目的IP地址不属于IP库),则对其进行请求判断,若该请求属于非加速名单314,则使用加速系统316对其进行处理;若该请求不属于非加速名单314,则对其进行非加速处理;加速系统316提供加速通道,针对用户请求做加速处理;动态检测模块315会从接入系统311实时获取用户访问请求,对请求做探测,通过对比直接走非加速通道的访问时间和使用加速系统316处理的访问时间,如果非加速公网访问效果更佳,则将请求加入到非加速名单314中。In this disclosed embodiment, the access system 311 is connected to the client 320, and the client 320 can be a computer, a mobile phone, a router, etc.; the access system 311 can obtain user access traffic (including user access requests) from the client 320, and respond to the user Access control is performed on access traffic; the traffic scheduling module 312 obtains user access traffic from the access system 311, schedules the user access traffic, and determines whether the user access traffic flows through the acceleration system based on the IP library 313 and the non-accelerated list 314; the IP library 313 contains domestic IP address, used to distinguish whether the traffic is domestic access; the non-acceleration list 314 includes request information that does not require acceleration, and requests in the list can be directly forwarded to the public network for non-accelerated access; specifically including: user access traffic based on the IP library 313 Make IP judgment, if the user's access traffic belongs to domestic IP traffic (for example, the destination IP address belongs to the IP library), then it will be processed without acceleration; if the user's access traffic belongs to overseas IP traffic (for example, the destination IP address does not belong to the IP library) , then the request is judged. If the request belongs to the non-accelerated list 314, the acceleration system 316 is used to process it; if the request does not belong to the non-accelerated list 314, the request is processed in a non-accelerated manner; the acceleration system 316 provides acceleration. channel to perform accelerated processing for user requests; the dynamic detection module 315 will obtain the user access request in real time from the access system 311, detect the request, and compare the access time directly through the non-accelerated channel with the access time processed using the acceleration system 316, If non-accelerated public network access is better, add the request to the non-accelerated list 314.

本公开实施例提供的请求处理方法,获取用户访问请求,并解析获得用户访问请求的目的地址;判断目的地址是否属于预设地址库,在目的地址不属于预设地址库时,解析获得用户访问请求的请求信息;根据请求信息判断用户访问请求是否属于非加速名单;在用户访问请求不属于非加速名单时,对用户访问请求进行加速处理;该方法通过预设地址库和非加速名单对用户访问请求对应的目的地址和请求信息进行区分,以判断用户访问请求是否适合进行加速处理,可以提高请求处理效率,提高访问速度,合理利用计算机资源。The request processing method provided by the embodiment of the present disclosure obtains the user access request, and parses to obtain the destination address of the user access request; determines whether the destination address belongs to the default address library, and when the destination address does not belong to the default address library, parses to obtain the user access The requested request information; determine whether the user access request belongs to the non-accelerated list based on the request information; when the user access request does not belong to the non-accelerated list, accelerate the user access request; this method uses the preset address library and the non-accelerated list to process the user access request The destination address and request information corresponding to the access request are distinguished to determine whether the user's access request is suitable for accelerated processing, which can improve request processing efficiency, increase access speed, and rationally utilize computer resources.

此外,在一些实施例中,获取针对用户访问请求进行加速处理得到的第一访问时间;对用户访问请求进行非加速处理,获得第二访问时间;若第一访问时间大于或等于所述第二访问时间,则将用户访问请求加入至非加速名单中;该方法可以根据使用加速处理和非加速处理的访问时间,动态更新非加速名单,从而提高请求处理效率,节约计算机资源。In addition, in some embodiments, the first access time obtained by accelerated processing of the user access request is obtained; the user access request is subjected to non-accelerated processing to obtain the second access time; if the first access time is greater than or equal to the second If the access time is determined, the user access request will be added to the non-accelerated list; this method can dynamically update the non-accelerated list based on the access time using accelerated processing and non-accelerated processing, thereby improving request processing efficiency and saving computer resources.

此外,在一些实施例中,基于带宽探测算法,根据数据包的时延变化和/或丢包率,确定最大当前可用带宽,使用最大当前可用带宽传输所述用户访问请求对应的访问数据,可以提高数据传输效率。In addition, in some embodiments, based on the bandwidth detection algorithm, the maximum currently available bandwidth is determined according to the delay change and/or packet loss rate of the data packet, and the maximum currently available bandwidth is used to transmit the access data corresponding to the user access request. Improve data transmission efficiency.

还应理解,上述只是为了帮助本领域技术人员更好地理解本公开实施例,而非要限制本公开实施例的范围。本领域技术人员根据所给出的上述示例,显然可以进行各种等价的修改或变化,例如,上述方法中某些步骤可以是不必须的,或者可以新加入某些步骤等。或者上述任意两种或者任意多种实施例的组合。这样的修改、变化或者组合后的方案也落入本公开实施例的范围内。It should also be understood that the above is only to help those skilled in the art better understand the embodiments of the present disclosure, but is not intended to limit the scope of the embodiments of the present disclosure. Those skilled in the art can obviously make various equivalent modifications or changes based on the above examples given. For example, some steps in the above method may be unnecessary, or some new steps may be added, etc. Or a combination of any two or more of the above embodiments. Such modified, changed or combined solutions also fall within the scope of the embodiments of the present disclosure.

还应理解,上文对本公开实施例的描述着重于强调各个实施例之间的不同之处,未提到的相同或相似之处可以互相参考,为了简洁,这里不再赘述。It should also be understood that the above description of the embodiments of the present disclosure focuses on emphasizing the differences between the various embodiments. The similarities or similarities that are not mentioned can be referred to each other. For the sake of brevity, they will not be described again here.

还应理解,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本公开实施例的实施过程构成任何限定。It should also be understood that the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its functions and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present disclosure.

还应理解,在本公开的各个实施例中,如果没有特殊说明以及逻辑冲突,不同的实施例之间的术语和/或描述具有一致性、且可以相互引用,不同的实施例中的技术特征根据其内在的逻辑关系可以组合形成新的实施例。It should also be understood that in the various embodiments of the present disclosure, if there is no special explanation or logical conflict, the terms and/or descriptions between different embodiments are consistent and can be referenced to each other. The technical features in different embodiments New embodiments can be formed based on their internal logical relationships.

上文详细介绍了本公开提供的网络异常检测模型的确定方法示例。可以理解的是,计算机设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本公开能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本公开的范围。The above describes in detail an example of the method for determining the network anomaly detection model provided by the present disclosure. It can be understood that, in order to implement the above functions, the computer device includes corresponding hardware structures and/or software modules for performing each function. Those skilled in the art should easily realize that the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software with the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein. Whether a function is performed by hardware or computer software driving the hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered to be beyond the scope of this disclosure.

下述为本公开装置实施例,可以用于执行本公开方法实施例。对于本公开装置实施例中未披露的细节,请参照本公开方法实施例。The following are device embodiments of the present disclosure, which can be used to perform method embodiments of the present disclosure. For details not disclosed in the device embodiments of the disclosure, please refer to the method embodiments of the disclosure.

图4是根据一示例性实施方式示出的一种请求处理装置的框图。Figure 4 is a block diagram of a request processing device according to an exemplary implementation.

如图4所示,请求处理装置400可以包括:获取模块402、获得模块404、判断模块406和处理模块408。As shown in FIG. 4 , the request processing device 400 may include: an acquisition module 402 , an acquisition module 404 , a judgment module 406 and a processing module 408 .

其中,获取模块402用于获取用户访问请求,并解析获得所述用户访问请求的目的地址;获得模块404用于若所述目的地址不属于预设地址库,则解析获得所述用户访问请求的请求信息;判断模块406用于根据所述请求信息判断所述用户访问请求是否属于非加速名单;处理模块408用于若所述用户访问请求不属于所述非加速名单,则对所述用户访问请求进行加速处理。Among them, the obtaining module 402 is used to obtain the user access request, and parse and obtain the destination address of the user access request; the obtaining module 404 is used to parse and obtain the destination address of the user access request if the destination address does not belong to the default address library. Request information; the judgment module 406 is used to judge whether the user access request belongs to the non-accelerated list according to the request information; the processing module 408 is used to determine whether the user access request belongs to the non-accelerated list if the user access request does not belong to the non-accelerated list. Request expedited processing.

在本公开一些示例性实施例中,获取模块402还用于获取针对所述用户访问请求进行加速处理得到的第一访问时间;获得模块404还用于对所述用户访问请求进行非加速处理,获得第二访问时间;所述请求处理装置400还包括:加入模块,用于若所述第一访问时间大于或等于所述第二访问时间,则将所述用户访问请求加入至所述非加速名单中。In some exemplary embodiments of the present disclosure, the obtaining module 402 is also used to obtain the first access time obtained by accelerated processing of the user access request; the obtaining module 404 is also used to perform non-accelerated processing of the user access request, Obtain the second access time; the request processing device 400 further includes: a adding module, configured to add the user access request to the non-accelerated system if the first access time is greater than or equal to the second access time. in the list.

在本公开一些示例性实施例中,处理模块408用于:使用最大当前可用带宽传输所述用户访问请求对应的访问数据。In some exemplary embodiments of the present disclosure, the processing module 408 is configured to use the maximum currently available bandwidth to transmit access data corresponding to the user access request.

在本公开一些示例性实施例中,所述请求处理装置400还包括:确定模块,用于:确定初始发送速率,在所述初始发送速率的基础上进行增大处理,得到候选发送速率;确定使用所述候选发送速率进行数据传输时的丢包率;若所述丢包率达到预设阈值,则根据所述候选发送速率确定所述最大当前可用带宽;若所述丢包率未达到所述预设阈值,则在所述候选发送速率的基础上继续进行增大处理。In some exemplary embodiments of the present disclosure, the request processing device 400 further includes: a determining module, configured to: determine an initial sending rate, perform an increase process on the basis of the initial sending rate, and obtain a candidate sending rate; determine The packet loss rate when using the candidate transmission rate for data transmission; if the packet loss rate reaches a preset threshold, the maximum currently available bandwidth is determined based on the candidate transmission rate; if the packet loss rate does not reach the preset threshold If the preset threshold is determined, the increasing process will continue based on the candidate transmission rate.

在本公开一些示例性实施例中,确定模块还用于:使用所述候选发送速率进行数据传输时,获取接收端在多个预设时间段内分别接收到的数据量;根据各个预设时间段内分别接收到的数据量和所述预设时间段的时长,确定多个当前可用带宽;将所述多个当前可用带宽中最大的当前可用带宽确定为所述最大当前可用带宽。In some exemplary embodiments of the present disclosure, the determination module is further configured to: when using the candidate transmission rate for data transmission, obtain the amount of data received by the receiving end in multiple preset time periods; according to each preset time The amount of data received in the segment and the duration of the preset time period are used to determine multiple currently available bandwidths; the largest currently available bandwidth among the multiple currently available bandwidths is determined as the maximum currently available bandwidth.

在本公开一些示例性实施例中,确定模块还用于:确定使用所述初始发送速率进行数据传输时的第一时延,以及使用所述候选发送速率进行数据传输时的第二时延;若所述丢包率达到预设阈值,且所述第二时延和所述第一时延的差值大于预设值,则根据所述候选发送速率确定所述最大当前可用带宽。In some exemplary embodiments of the present disclosure, the determining module is further configured to: determine a first delay when using the initial transmission rate for data transmission, and a second delay when using the candidate transmission rate for data transmission; If the packet loss rate reaches a preset threshold and the difference between the second delay and the first delay is greater than the preset value, the maximum currently available bandwidth is determined based on the candidate transmission rate.

在本公开一些示例性实施例中,处理模块408还用于:若所述目的地址属于预设地址库,对所述用户访问请求进行非加速处理;若所述用户访问请求属于所述非加速名单,对所述用户访问请求进行非加速处理。In some exemplary embodiments of the present disclosure, the processing module 408 is also configured to: if the destination address belongs to the preset address library, perform non-accelerated processing on the user access request; if the user access request belongs to the non-accelerated List, non-accelerated processing of user access requests.

需要注意的是,上述附图中所示的框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器终端设备和/或微控制器终端设备中实现这些功能实体。It should be noted that the block diagrams shown in the above figures are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and/or processor terminal equipment and/or microcontroller terminal equipment. entity.

图5是根据一示例性实施方式示出的一种电子设备的结构示意图。需要说明的是,图5示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。FIG. 5 is a schematic structural diagram of an electronic device according to an exemplary embodiment. It should be noted that the electronic device shown in FIG. 5 is only an example and should not impose any restrictions on the functions and scope of use of the embodiments of the present disclosure.

如图5所示,电子设备500包括中央处理单元(CPU)501,其可以根据存储在只读存储器(ROM)502中的程序或者从存储部分508加载到随机访问存储器(RAM)503中的程序而执行各种适当的动作和处理。在RAM 503中,还存储有电子设备500操作所需的各种程序和数据。CPU 501、ROM 502以及RAM 503通过总线504彼此相连。输入/输出(I/O)接口505也连接至总线504。As shown in FIG. 5 , the electronic device 500 includes a central processing unit (CPU) 501 that can operate according to a program stored in a read-only memory (ROM) 502 or loaded from a storage portion 508 into a random access memory (RAM) 503 And perform various appropriate actions and processing. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.

以下部件连接至I/O接口505:包括键盘、鼠标等的输入部分506;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分507;包括硬盘等的存储部分508;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分509。通信部分509经由诸如因特网的网络执行通信处理。驱动器510也根据需要连接至I/O接口505。可拆卸介质511,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器510上,以便于从其上读出的计算机程序根据需要被安装入存储部分508。The following components are connected to the I/O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., speakers, etc.; and a storage section 508 including a hard disk, etc. ; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. Driver 510 is also connected to I/O interface 505 as needed. Removable media 511, such as magnetic disks, optical disks, magneto-optical disks, semiconductor memories, etc., are installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage portion 508 as needed.

特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分509从网络上被下载和安装,和/或从可拆卸介质511被安装。在该计算机程序被中央处理单元(CPU)501执行时,执行本公开的系统中限定的上述功能。In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product including a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such embodiments, the computer program may be downloaded and installed from the network via communication portion 509 and/or installed from removable media 511 . When the computer program is executed by the central processing unit (CPU) 501, the above-described functions defined in the system of the present disclosure are performed.

需要说明的是,本公开所示的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、终端设备或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、终端设备或者器件使用或者与其结合使用。而在本公开中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、终端设备或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, terminal device or device, or any combination thereof. More specific examples of computer readable storage media may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard drive, random access memory (RAM), read only memory (ROM), removable Programmed read-only memory (EPROM or flash memory), fiber optics, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In this disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that may be used by or in connection with an instruction execution system, terminal device, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can be sent, propagated, or transmitted for use by or in connection with an instruction execution system, terminal device, or device program. Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the foregoing.

附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logic functions that implement the specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown one after another may actually execute substantially in parallel, or they may sometimes execute in the reverse order, depending on the functionality involved. It will also be noted that each block in the block diagram or flowchart illustration, and combinations of blocks in the block diagram or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or operations, or may be implemented by special purpose hardware-based systems that perform the specified functions or operations. Achieved by a combination of specialized hardware and computer instructions.

描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括发送单元、获取单元、确定单元和第一处理单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,发送单元还可以被描述为“向所连接的服务端发送图片获取请求的单元”。The units involved in the embodiments of the present disclosure can be implemented in software or hardware. The described unit may also be provided in a processor. For example, it may be described as follows: a processor includes a sending unit, an acquisition unit, a determining unit and a first processing unit. The names of these units do not constitute a limitation on the unit itself under certain circumstances. For example, the sending unit can also be described as "a unit that sends a picture acquisition request to the connected server."

作为另一方面,本公开还提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施例中描述的电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。上述计算机可读存储介质承载有一个或者多个程序,当上述一个或者多个程序被一个该电子设备执行时,使得该电子设备实现如下述实施例中所述的方法。例如,所述的电子设备可以实现如图1所示的各个步骤。As another aspect, the present disclosure also provides a computer-readable storage medium. The computer-readable storage medium may be included in the electronic device described in the above embodiments; it may also exist independently without being assembled into the electronic device. in electronic equipment. The computer-readable storage medium carries one or more programs. When the one or more programs are executed by an electronic device, the electronic device implements the method described in the following embodiments. For example, the electronic device can implement various steps as shown in Figure 1.

根据本公开的一个方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述实施例的各种可选实现方式中提供的方法。According to one aspect of the present disclosure, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the methods provided in various optional implementations of the above embodiments.

需要理解的是,在本公开附图中的任何元素数量均用于示例而非限制,以及任何命名都仅用于区分,而不具有任何限制含义。It should be understood that any number of elements in the drawings of the present disclosure is for illustration rather than limitation, and any naming is only for differentiation without any limiting meaning.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the disclosure that follow the general principles of the disclosure and include common common sense or customary technical means in the technical field that are not disclosed in the disclosure. . It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the disclosure is limited only by the appended claims.

Claims (10)

1. A method of processing a request, comprising:
acquiring a user access request, and analyzing and acquiring a destination address of the user access request;
if the destination address does not belong to a preset address library, analyzing and obtaining request information of the user access request;
judging whether the user access request belongs to a non-acceleration list or not according to the request information;
and if the user access request does not belong to the non-acceleration list, carrying out acceleration processing on the user access request.
2. The method as recited in claim 1, further comprising:
acquiring a first access time obtained by performing acceleration processing on the user access request;
non-acceleration processing is carried out on the user access request, and a second access time is obtained;
and if the first access time is greater than or equal to the second access time, adding the user access request into the non-acceleration list.
3. The method of claim 1, wherein accelerating the user access request comprises:
and transmitting the access data corresponding to the user access request by using the maximum current available bandwidth.
4. A method according to claim 3, further comprising:
determining an initial sending rate, and performing increasing processing on the basis of the initial sending rate to obtain a candidate sending rate;
determining a packet loss rate when the candidate sending rate is used for data transmission;
if the packet loss rate reaches a preset threshold, determining the maximum current available bandwidth according to the candidate sending rate;
and if the packet loss rate does not reach the preset threshold, continuing to increase the candidate sending rate.
5. The method of claim 4, wherein determining the maximum current available bandwidth from the candidate transmission rate comprises:
when the candidate sending rate is used for data transmission, the data quantity respectively received by the receiving end in a plurality of preset time periods is obtained;
determining a plurality of current available bandwidths according to the data quantity respectively received in each preset time period and the duration of the preset time period;
and determining the largest current available bandwidth in the plurality of current available bandwidths as the largest current available bandwidth.
6. The method as recited in claim 4, further comprising:
determining a first time delay when data transmission is performed by using the initial sending rate, and a second time delay when data transmission is performed by using the candidate sending rate;
if the packet loss rate reaches a preset threshold, determining the maximum current available bandwidth according to the candidate sending rate includes:
and if the packet loss rate reaches a preset threshold value and the difference value between the second time delay and the first time delay is larger than a preset value, determining the maximum current available bandwidth according to the candidate sending rate.
7. The method as recited in claim 1, further comprising:
if the destination address belongs to a preset address library, performing non-acceleration processing on the user access request;
and if the user access request belongs to the non-acceleration list, performing non-acceleration processing on the user access request.
8. A request processing apparatus, comprising:
the acquisition module is used for acquiring a user access request and analyzing and acquiring a destination address of the user access request;
the obtaining module is used for analyzing and obtaining the request information of the user access request if the destination address does not belong to a preset address library;
the judging module is used for judging whether the user access request belongs to a non-acceleration list according to the request information;
and the processing module is used for carrying out acceleration processing on the user access request if the user access request does not belong to the non-acceleration list.
9. An electronic device, comprising:
at least one processor;
storage means for storing at least one program which, when executed by the at least one processor, causes the at least one processor to implement the method of any one of claims 1 to 7.
10. A computer readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the method according to any of claims 1 to 7.
CN202310898041.6A 2023-07-20 2023-07-20 Request processing method, request processing device, electronic equipment and storage medium Pending CN116781782A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310898041.6A CN116781782A (en) 2023-07-20 2023-07-20 Request processing method, request processing device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310898041.6A CN116781782A (en) 2023-07-20 2023-07-20 Request processing method, request processing device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116781782A true CN116781782A (en) 2023-09-19

Family

ID=87989613

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310898041.6A Pending CN116781782A (en) 2023-07-20 2023-07-20 Request processing method, request processing device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116781782A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117640189A (en) * 2023-11-27 2024-03-01 中国电信国际有限公司 Access methods, devices, equipment and storage media

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117640189A (en) * 2023-11-27 2024-03-01 中国电信国际有限公司 Access methods, devices, equipment and storage media

Similar Documents

Publication Publication Date Title
CN109152095B (en) Wireless network connection method for terminal
CN109787859B (en) Intelligent speed limiting method and device based on network congestion detection and storage medium
CN109981765A (en) Method and apparatus for determining the access path of content distributing network
JP4758362B2 (en) Relay device, program, and relay method
WO2024060408A1 (en) Network attack detection method and apparatus, device and storage medium
US9503506B2 (en) Transit-mode-based webpage accessing method, system, and crawler route server
CN105337961A (en) Method for communication with client side and server
CN105657000A (en) Message transmission method and device
CN113364804A (en) Method and device for processing flow data
CN114500633A (en) Data forwarding method, related device, program product and data transmission system
WO2023125380A1 (en) Data management method and corresponding apparatus
CN112910793A (en) Method for connection multiplexing in seven-layer load balancing and load balancer
CN116781782A (en) Request processing method, request processing device, electronic equipment and storage medium
CN109194545B (en) A network test platform traffic generation system, method, device and electronic device
CN114071544B (en) Network testing method and device and electronic equipment
CN112737940A (en) A method and device for data transmission
TW201312369A (en) Method for filetring web page content and network equipment
CN115996203B (en) Network traffic domain division method, device, equipment and storage medium
JP2015164295A (en) Information transmission system, information communication device, information transmission device, and program
CN103475596B (en) The data transmission method of middleware based on MTU value and mobile terminal and system
JP2011171995A (en) Device, method, and program for discriminating data
CN108259576B (en) A software and hardware real-time information transmission system and method
WO2017005118A1 (en) Method, device, terminal and server for maintaining communication connection
CN113285920B (en) Service access method, device, equipment and storage medium
CN112242937B (en) Network speed measuring method and device, electronic equipment and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination