WO2017107650A1 - Method for realizing bandwidth sharing between routers, and router - Google Patents

Method for realizing bandwidth sharing between routers, and router Download PDF

Info

Publication number
WO2017107650A1
WO2017107650A1 PCT/CN2016/103344 CN2016103344W WO2017107650A1 WO 2017107650 A1 WO2017107650 A1 WO 2017107650A1 CN 2016103344 W CN2016103344 W CN 2016103344W WO 2017107650 A1 WO2017107650 A1 WO 2017107650A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication module
data request
router
routers
data
Prior art date
Application number
PCT/CN2016/103344
Other languages
French (fr)
Chinese (zh)
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 WO2017107650A1 publication Critical patent/WO2017107650A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation

Abstract

Disclosed are a method and device for realizing bandwidth sharing between routers. The method comprises: providing a first communication module and a second communication module in a current router; connecting the first communication module to a wide area network interface of the current router, connecting the second communication module with at least one other router connected with a wide area network, and connecting the wide area network interface with the wide area network; when the first communication module receives a data request from a terminal device accessing the current router, determining whether the data request needs to be processed in cooperation with other routers; if so, sending the data request to the one or more other routers connected with the second communication module via the second communication module; and receiving, via the second communication module, data corresponding to the data request and returned by the one or more other routers. The solution effectively utilizes the unused bandwidth of other routers, and can process a data request more efficiently.

Description

一种实现路由器之间带宽共享的方法和路由器Method and router for realizing bandwidth sharing between routers 技术领域Technical field
本发明涉及网络设备领域,具体涉及一种实现路由器之间带宽共享的方法和路由器。The present invention relates to the field of network devices, and in particular, to a method and a router for implementing bandwidth sharing between routers.
背景技术Background technique
路由器(Router),是连接因特网中各局域网、广域网的设备,它会根据信道的情况自动选择和设定路由,以最佳路径,按前后顺序发送信号。路由器是互联网络的枢纽,"交通警察"。目前路由器已经广泛应用于各行各业,各种不同档次的产品已成为实现各种骨干网内部连接、骨干网间互联和骨干网与互联网互联互通业务的主力军。A router is a device that connects to various local area networks and wide area networks in the Internet. It automatically selects and sets routes according to the channel conditions, and sends signals in the optimal path in order. The router is the hub of the Internet, "traffic police." At present, routers have been widely used in various industries, and various grades of products have become the main force for realizing various internal backbone connections, backbone interconnections, and backbone networks and Internet interconnection services.
然而,许多路由器虽然保持着工作状态,但很少甚至几乎不发生带宽的使用。由于路由器耗电不大,许多用户在白天上班时也不会关闭家中的路由器,许多公司也不会在夜间关闭公司里的路由器,这些正常工作,却没有发挥作用的路由器浪费了大量带宽资源。However, while many routers remain active, little or no bandwidth usage occurs. Because the router consumes a small amount of power, many users will not turn off the routers in the home during the daytime work. Many companies will not shut down the routers in the company at night. These normal but ineffective routers waste a lot of bandwidth resources.
发明内容Summary of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的实现路由器之间带宽共享的方法和路由器。In view of the above problems, the present invention has been made in order to provide a method and router for realizing bandwidth sharing between routers that overcomes the above problems or at least partially solves the above problems.
依据本发明的一个方面,提供了一种实现路由器之间带宽共享的方法,包括:According to an aspect of the present invention, a method for implementing bandwidth sharing between routers is provided, including:
在本路由器中设置一个第一通讯模块和一个第二通讯模块;Setting a first communication module and a second communication module in the router;
将第一通讯模块与本路由器的广域网接口连接,将第一通讯模块与第二通讯模块连接;其中,第二通讯模块用于与至少一个与广域网连接的其他路由器连接,广域网接口用于与广域网连接;The first communication module is connected to the WAN interface of the router, and the first communication module is connected to the second communication module; wherein the second communication module is used for connecting with at least one other router connected to the WAN, and the WAN interface is used for the WAN connection;
当第一通讯模块接收到来自接入本路由器的终端设备的数据请求时,判断是否需要其他路由器协同处理该数据请求;When the first communication module receives the data request from the terminal device accessing the router, it is determined whether other routers need to cooperate to process the data request;
如果判断为是,将该数据请求通过所述第二通讯模块发送到第二通讯模块连接的一个或多个其他路由器;If the determination is yes, the data request is sent to the one or more other routers connected to the second communication module by using the second communication module;
通过所述第二通讯模块接收所述一个或多个其他路由器返回的与所述数据请求相应的数据。Receiving, by the second communication module, data corresponding to the data request returned by the one or more other routers.
依据本发明的另一方面,提供了一种路由器,包括:一个第一通讯模块和一个第二通讯模块; According to another aspect of the present invention, a router is provided, including: a first communication module and a second communication module;
第一通讯模块与本路由器的广域网接口连接,第一通讯模块与第二通讯模块连接;其中,第二通讯模块用于与至少一个与广域网连接的其他路由器连接,广域网接口用于与广域网连接;The first communication module is connected to the WAN interface of the router, and the first communication module is connected to the second communication module; wherein the second communication module is used for connecting with at least one other router connected to the WAN, and the WAN interface is used for connecting with the WAN;
第一通讯模块,适于在接收到来自接入本路由器的终端设备的数据请求时,判断是否需要其他路由器协同处理该数据请求;如果判断为是,将该数据请求通过所述第二通讯模块发送到第二通讯模块连接的一个或多个其他路由器;通过所述第二通讯模块接收所述一个或多个其他路由器返回的与所述数据请求相应的数据;The first communication module is adapted to determine, when receiving a data request from the terminal device accessing the router, whether the other router needs to cooperate to process the data request; if the determination is yes, the data request is passed through the second communication module Sending to one or more other routers connected to the second communication module; receiving, by the second communication module, data corresponding to the data request returned by the one or more other routers;
第二通讯模块,适于将第一通讯模块发送的数据请求发送到连接的一个或多个其他路由器,以及适于将所述一个或多个其他路由器返回的与所述数据请求相应的数据返回给第一通讯模块。a second communication module, configured to send a data request sent by the first communication module to the connected one or more other routers, and to return data corresponding to the data request returned by the one or more other routers Give the first communication module.
依据本发明的另一个方面,提供了一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据上述的一种实现路由器之间带宽共享的方法。According to another aspect of the present invention, there is provided a computer program comprising computer readable code, when said computer readable code is run on a computing device, causing said computing device to perform an implementation between said routers according to said one The method of bandwidth sharing.
依据本发明的另一个方面,提供了一种计算机可读介质,其中存储了如上所述的计算机程序。According to another aspect of the present invention, a computer readable medium is provided, wherein a computer program as described above is stored.
由上述可知,本发明的技术方案,在本路由器中设置一个互相连接的第一通讯模块和一个第二通讯模块,其中第一通讯模块与本路由器的广域网接口连接,第二通讯模块用于与至少一个与广域网连接的其他路由器连接,广域网接口连接到广域网,这样,当第一通讯模块接收到来自接入本路由器的终端设备的数据请求时,判断是否需要其他路由器协同处理该数据请求,如果判断为是,将该数据请求通过第二通讯模块发送到第二通讯模块连接的一个或多个其他路由器,并进一步通过第二通讯模块接收一个或多个其他路由器返回的与该数据请求相应的数据。该技术方案可以在需要其他路由器协同处理数据请求的情况下,利用其路由器获得与该数据请求相应的数据,如下载的图片、视频等,有效地利用了其他路由器上的闲置带宽,更有效率地处理了终端设备发送的数据请求。It can be seen from the above that the technical solution of the present invention provides an interconnected first communication module and a second communication module in the router, wherein the first communication module is connected to the wide area network interface of the router, and the second communication module is used for At least one other router connected to the WAN, the WAN interface is connected to the WAN, so that when the first communication module receives the data request from the terminal device accessing the router, it is determined whether other routers need to cooperate to process the data request, if Determining to be, sending the data request to the one or more other routers connected to the second communication module by using the second communication module, and further receiving, by the second communication module, the one or more other routers corresponding to the data request data. The technical solution can use the router to obtain data corresponding to the data request, such as downloaded pictures and videos, in the case that other routers need to cooperate to process the data request, effectively utilizing the idle bandwidth on other routers, and is more efficient. The data request sent by the terminal device is processed.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, and the above-described and other objects, features and advantages of the present invention can be more clearly understood. Specific embodiments of the invention are set forth below.
附图说明DRAWINGS
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认 为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those skilled in the art from a The drawings are only for the purpose of illustrating the preferred embodiments and are not recognized It is a limitation of the invention. Throughout the drawings, the same reference numerals are used to refer to the same parts. In the drawing:
图1示出了根据本发明一个实施例的一种实现路由器之间带宽共享的方法的流程示意图;1 is a flow chart showing a method for implementing bandwidth sharing between routers according to an embodiment of the present invention;
图2示出了根据本发明一个实施例的一种路由器的结构示意图;2 is a schematic structural diagram of a router according to an embodiment of the present invention;
图3示意性地示出了用于执行根据本发明的方法的计算设备的框图;以及Figure 3 schematically shows a block diagram of a computing device for performing the method according to the invention;
图4示意性地示出了用于保持或者携带实现根据本发明的方法的程序代码的存储单元。Fig. 4 schematically shows a storage unit for holding or carrying program code implementing the method according to the invention.
具体实施例Specific embodiment
下面结合附图和示例性实施例对本发明作进一步地描述,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能解释为对本发明的限制。此外,如果已知技术的详细描述对于示出本发明的特征是不必要的,则将其省略。The invention is further described in the following with reference to the drawings and exemplary embodiments, which are illustrated in the accompanying drawings, in which the same or similar reference numerals are used to refer to the same or similar elements or elements having the same or similar functions. . The embodiments described below with reference to the drawings are intended to be illustrative of the invention and are not to be construed as limiting. Further, if a detailed description of a known technique is not necessary to show the features of the present invention, it will be omitted.
图1示出了根据本发明一个实施例的一种实现路由器之间带宽共享的方法的流程示意图,如图1所示,该方法包括:FIG. 1 is a schematic flowchart of a method for implementing bandwidth sharing between routers according to an embodiment of the present invention. As shown in FIG. 1, the method includes:
步骤S110,在本路由器中设置一个第一通讯模块和一个第二通讯模块。Step S110, setting a first communication module and a second communication module in the router.
步骤S120,将第一通讯模块与本路由器的广域网接口连接,将第一通讯模块与第二通讯模块连接;其中,第二通讯模块用于与至少一个与广域网连接的其他路由器连接,广域网接口用于与广域网连接。Step S120: The first communication module is connected to the WAN interface of the router, and the first communication module is connected to the second communication module. The second communication module is used to connect with at least one other router connected to the WAN, and the WAN interface is used. Connected to the WAN.
步骤S130,当第一通讯模块接收到来自接入本路由器的终端设备的数据请求时,判断是否需要其他路由器协同处理该数据请求。Step S130, when the first communication module receives the data request from the terminal device accessing the router, it is determined whether other routers need to cooperate to process the data request.
例如,手机、电脑、平板电脑等接入到本路由器的终端设备发送了下载歌曲、浏览网页等数据请求时进行如上述的判断。For example, when a terminal device that accesses the router such as a mobile phone, a computer, or a tablet computer transmits a data request for downloading a song or browsing a web page, the above determination is performed.
步骤S140,如果判断为是,将该数据请求通过第二通讯模块发送到第二通讯模块连接的一个或多个其他路由器。Step S140, if the determination is yes, the data request is sent to the one or more other routers connected to the second communication module through the second communication module.
步骤S150,通过第二通讯模块接收一个或多个其他路由器返回的与数据请求相应的数据。Step S150, receiving, by the second communication module, data corresponding to the data request returned by one or more other routers.
可见,图1所示的方法,在本路由器中设置一个互相连接的第一通讯模块和一个第二通讯模块,其中第一通讯模块与本路由器的广域网接口连接,第二通讯模块 用于与至少一个与广域网连接的其他路由器连接,广域网接口连接到广域网,这样,当第一通讯模块接收到来自接入本路由器的终端设备的数据请求时,判断是否需要其他路由器协同处理该数据请求,如果判断为是,将该数据请求通过第二通讯模块发送到第二通讯模块连接的一个或多个其他路由器,并进一步通过第二通讯模块接收一个或多个其他路由器返回的与该数据请求相应的数据。该技术方案可以在需要其他路由器协同处理数据请求的情况下,利用其路由器获得与该数据请求相应的数据,如下载的图片、视频等,有效地利用了其他路由器上的闲置带宽,更有效率地处理了终端设备发送的数据请求。It can be seen that, in the method shown in FIG. 1, an interconnected first communication module and a second communication module are disposed in the router, wherein the first communication module is connected to the WAN interface of the router, and the second communication module is For connecting to at least one other router connected to the wide area network, the WAN interface is connected to the wide area network, so that when the first communication module receives the data request from the terminal device accessing the router, it is determined whether other routers need to cooperate to process the data. Requesting, if the determination is yes, sending the data request to the one or more other routers connected to the second communication module through the second communication module, and further receiving the data returned by one or more other routers through the second communication module Request the corresponding data. The technical solution can use the router to obtain data corresponding to the data request, such as downloaded pictures and videos, in the case that other routers need to cooperate to process the data request, effectively utilizing the idle bandwidth on other routers, and is more efficient. The data request sent by the terminal device is processed.
在本发明的一个实施例中,图1所示的方法进一步包括:通过第一通讯模块将该数据请求发送到广域网接口;通过第一通讯模块接收广域网接口返回的与数据请求相应的数据。In an embodiment of the present invention, the method shown in FIG. 1 further includes: transmitting, by the first communication module, the data request to the wide area network interface; and receiving, by the first communication module, data corresponding to the data request returned by the wide area network interface.
在本实施例中,本路由器依然可以通过第一通讯模块将数据请求发送到广域网接口并接收从广域网接口返回的与数据请求相应的数据,也即是说,本路由器依然保留接入网络并进行路由分发的功能。In this embodiment, the router can still send the data request to the WAN interface through the first communication module and receive the data corresponding to the data request returned from the WAN interface, that is, the router still retains the access network and performs The function of route distribution.
在本发明的一个实施例中,上述方法中,一个或多个其他路由器返回的与数据请求相应的数据不同于广域网接口返回的与数据请求相应的数据。In an embodiment of the present invention, in the above method, the data corresponding to the data request returned by the one or more other routers is different from the data corresponding to the data request returned by the WAN interface.
由于本路由器可以从自己的广域网接口根据数据请求获得相应的数据,也可以根据一个或多个其他路由器获得数据请求相应的数据,这两种方式获得的数据如有重合就造成了资源的浪费,与本发明设计的初衷相悖。例如,用户通过终端设备发送了图片A的数据请求,如果以上述两种方式均获得了全部的图片A的数据,或者各自获得了部分图片A的数据但有重叠,这样不仅对数据进行整合比较麻烦,也浪费了带宽。因此,一个或多个其他路由器返回的与数据请求相应的数据应当不同于广域网接口返回的与数据请求相应的数据。Since the router can obtain corresponding data according to the data request from its own WAN interface, it can also obtain corresponding data according to one or more other routers. If the data obtained by the two methods overlap, the resource is wasted. Contrary to the original intention of the design of the present invention. For example, the user sends the data request of the picture A through the terminal device. If the data of all the pictures A is obtained in the above two ways, or the data of the partial picture A is obtained, but overlaps, the data is not compared and integrated. Trouble, also wasted bandwidth. Therefore, the data corresponding to the data request returned by one or more other routers should be different from the data corresponding to the data request returned by the WAN interface.
在本发明的一个实施例中,上述方法进一步包括:通过第一通讯模块将与数据请求相应的数据发送给发起数据请求的终端设备。In an embodiment of the present invention, the method further includes: transmitting, by the first communication module, data corresponding to the data request to the terminal device that initiates the data request.
在获得了与数据请求相应的数据后还需要将其发送给发起数据请求的终端设备,由于通过第一通讯模块接收到了终端设备发送的数据请求,也即是说本路由器通过第一通讯模块与终端设备建立了连接关系,因此,在本实施例中,通过第一通讯模块将与数据请求相应的数据发送给发起数据请求的终端设备。After obtaining the data corresponding to the data request, it is also required to be sent to the terminal device that initiates the data request. Since the data request sent by the terminal device is received through the first communication module, that is, the router passes the first communication module and The terminal device establishes a connection relationship. Therefore, in the embodiment, the data corresponding to the data request is sent to the terminal device that initiates the data request by the first communication module.
在本发明的一个实施例中,图1所示的方法中,判断是否需要其他路由器协同处理该数据请求进一步包括:根据数据请求的数据请求量和广域网接口上的数据传 输带宽,判断是否需要其他路由器协同处理该数据请求。In an embodiment of the present invention, in the method shown in FIG. 1, determining whether other routers are required to co-process the data request further includes: a data request amount according to the data request and a data transmission on the WAN interface. The bandwidth is transmitted to determine whether other routers need to cooperate to process the data request.
由于与其他一个或多个路由器进行数据通信也需要花费时间并考虑与其他一个或多个路由器进行数据通信的数据传输速率问题,因此在本实施例中,根据数据请求的数据请求量和广域网接口上的数据传输带宽来判断是否需要其他路由器协同处理该数据请求。例如,终端设备发送的数据请求对应获取的是某网页的页面信息,数据请求量不超过10MB,而本路由器的广域网接口上的数据传输带宽为100MB,即每秒可以下载12.5MB的数据量,则本次数据请求相应的数据依靠广域网接口上的数据传输带宽在不到1秒内即可获取到,此时就不需要其他路由器协同处理该数据请求。而如果数据请求为30G的网络游戏客户端安装程序,上例中的路由器就需要其他路由器协同处理该数据请求。也就是说,如果判断不需要其他路由器协同处理该数据请求,则将该数据请求只发送给广域网接口。Since data communication with other one or more routers also takes time and considers the data transmission rate problem of data communication with other one or more routers, in this embodiment, the data request amount according to the data request and the WAN interface The data transmission bandwidth is used to determine whether other routers are required to co-process the data request. For example, the data request sent by the terminal device corresponds to the page information of a certain webpage, and the data request amount does not exceed 10 MB, and the data transmission bandwidth of the router's WAN interface is 100 MB, that is, the data volume of 12.5 MB can be downloaded per second. Then, the data corresponding to the data request can be obtained by using the data transmission bandwidth on the WAN interface in less than one second, and no other routers are required to co-process the data request. If the data request is a 30G online game client installer, the router in the above example needs other routers to co-process the data request. That is, if it is determined that no other routers are required to co-process the data request, the data request is only sent to the WAN interface.
在本发明的一个实施例中,图1所示的方法进一步包括:当第二通讯模块接收到来自其他路由器的数据请求时,判断本路由器是否设置了分享带宽限制参数;若是,在分享带宽限制参数所限定的带宽范围内,通过广域网接口获取与数据请求相应的数据并返回给其他路由器;否则,在广域网接口上的数据传输带宽范围内,通过广域网接口获取与数据请求相应的数据并返回给其他路由器。In an embodiment of the present invention, the method shown in FIG. 1 further includes: when the second communication module receives a data request from another router, determining whether the router has set a sharing bandwidth limit parameter; if yes, sharing the bandwidth limit Within the bandwidth defined by the parameter, the data corresponding to the data request is obtained through the WAN interface and returned to other routers; otherwise, within the data transmission bandwidth of the WAN interface, the data corresponding to the data request is obtained through the WAN interface and returned to Other routers.
同样地,本路由器也可以为其他路由器进分享带宽。但是为了保证本路由器的正常使用,可以设置一个分享带宽限制参数,在该限制参数限定的带宽范围内为其他路由器进行带宽分享,即通过广域网接口获取与数据请求相应的数据并返回给其他路由器。例如,用户正在玩网络游戏,自己就需要高带宽,虽然终端设备连接的本路由器上的广域网接口上的数据传输带宽为100MB,但只能分享给其他用户20MB,则可以将分享带宽限制参数设置为20。而当用户玩单机游戏时,不需要使用网络,则可以将分享带宽限制参数设置为0(或者不设置分享带宽限制参数),这样就可以分享全部的100MB带宽给其他路由器。优选地,可以设置多项分享带宽策略供用户编辑和选用,例如在某些时间段设置分享带宽限制参数,在另一些时间段不设置分享带宽限制参数,在接收到终端设备发送的某些数据请求后自动开启某项分享带宽策略,等等。Similarly, this router can also share bandwidth for other routers. However, in order to ensure the normal use of the router, a shared bandwidth limit parameter may be set, and bandwidth sharing is performed for other routers within the bandwidth defined by the limit parameter, that is, data corresponding to the data request is obtained through the WAN interface and returned to other routers. For example, if a user is playing an online game, he or she needs high bandwidth. Although the data transmission bandwidth on the WAN interface on the router connected to the terminal device is 100 MB, but can only be shared to other users by 20 MB, the sharing bandwidth limit parameter setting can be set. Is 20. When the user plays a stand-alone game, without using the network, the sharing bandwidth limit parameter can be set to 0 (or the sharing bandwidth limit parameter is not set), so that all 100 MB bandwidth can be shared to other routers. Preferably, multiple sharing bandwidth policies can be set for the user to edit and select, for example, setting the sharing bandwidth limitation parameter in some time periods, setting the sharing bandwidth limitation parameter in other time periods, and receiving some data sent by the terminal device. Automatically open a sharing bandwidth policy after request, and so on.
在本发明的一个实施例中,图1所示的方法中,将该数据请求通过第二通讯模块发送到第二通讯模块连接的一个或多个其他路由器进一步包括:第二通讯模块接收到来自第一通讯模块的数据请求时,从所连接的至少一个与广域网连接的其他路由器中选择一个或多个路由器,并将该数据请求送到所选择的一个或多个路由器。 In an embodiment of the present invention, in the method shown in FIG. 1, the sending of the data request to the one or more other routers connected to the second communication module by using the second communication module further includes: the second communication module receives the When the data request of the first communication module is requested, one or more routers are selected from at least one other connected router connected to the wide area network, and the data request is sent to the selected one or more routers.
在第二通讯模块可连接多个路由器时,由于这些路由器也存在着是否接入广域网,以及广域网接口上的数据传输带宽有差异等问题,所以可以根据数据请求量和其他路由器上的数据传输带宽等信息,从所连接的至少一个与广域网连接的其他路由器中选择一个或多个路由器,并将该数据请求送到所选择的一个或多个路由器。例如,第二通讯模块连接了多个路由器,其中路由器A上的数据传输带宽为100MB,路由器B上的数据传输带宽为1MB,路由器C没有连接广域网,那么就可以优先选择将数据请求发送给路由器A。When the second communication module can connect to multiple routers, because these routers also have access to the wide area network, and the data transmission bandwidth on the WAN interface is different, the data transmission bandwidth can be based on the data request amount and other routers. And the like, selecting one or more routers from at least one other connected router connected to the WAN, and sending the data request to the selected one or more routers. For example, the second communication module is connected to multiple routers, wherein the data transmission bandwidth on the router A is 100 MB, the data transmission bandwidth on the router B is 1 MB, and the router C is not connected to the wide area network, then the data request can be preferentially sent to the router. A.
在本发明的一个实施例中,上述方法进一步包括:当第二通讯模块接收到来自所连接的多个路由器的多个数据请求时,为每个数据请求设置传输带宽值;对于每个数据请求,在所设置的相应传输带宽值的范围内,通过第一通讯模块从广域网接口获取与该数据请求相应的数据并返回给相应路由器。In an embodiment of the present invention, the method further includes: setting a transmission bandwidth value for each data request when the second communication module receives the plurality of data requests from the connected plurality of routers; for each data request Within the range of the corresponding transmission bandwidth value set, the data corresponding to the data request is obtained from the WAN interface through the first communication module and returned to the corresponding router.
由于本路由器也可以同时分享带宽给多个其他的路由器,则需要为多个路由器发送的数据请求制定处理策略,否则会严重影响分享效率。优选地,可以按每个数据请求相应数据的数据请求量来为每个数据请求设置传输带宽值,从而所设置的相应传输带宽值的范围内,通过第一通讯模块从广域网接口获取与该数据请求相应的数据并返回给相应路由器。例如,第二通讯模块分别接收到路由器A、路由器B和路由器C的数据请求,其中本路由器可供分享的带宽为100MB,路由器A发送的数据请求相应数据的数据请求量为500MB,路由器B发送的数据请求相应数据的数据请求量为300MB,路由器A发送的数据请求相应数据的数据请求量为200MB,则可以分别为路由器A、B、C设置50MB、30MB和20MB的传输带宽值。Since the router can also share bandwidth to multiple other routers at the same time, it is necessary to formulate a processing strategy for data requests sent by multiple routers, otherwise the sharing efficiency will be seriously affected. Preferably, the data bandwidth request amount of each data request may be used to set a transmission bandwidth value for each data request, so that the data is obtained from the WAN interface through the first communication module within a range of the corresponding transmission bandwidth value that is set. Request the corresponding data and return it to the appropriate router. For example, the second communication module receives the data request of the router A, the router B, and the router C respectively, wherein the bandwidth available for sharing by the router is 100 MB, and the data request amount of the data requested by the router A is 500 MB, and the router B sends the data request. The data request volume of the corresponding data request is 300 MB, and the data request amount of the data requesting by the router A is 200 MB, and the transmission bandwidth values of 50 MB, 30 MB, and 20 MB can be set for the routers A, B, and C, respectively.
在本发明的一个实施例中,上述方法中,第一通讯模块和第二通讯模块均为WiFi模块。In an embodiment of the present invention, in the above method, the first communication module and the second communication module are both WiFi modules.
具体地,考虑到WiFi技术的广泛应用性,在上述实施例中,第一通讯模块和第二通讯模块优选为WiFi模块。这样也便于对已有的无线路由器进行简单的修改就可实现本发明的技术方案。Specifically, in consideration of the wide applicability of the WiFi technology, in the above embodiment, the first communication module and the second communication module are preferably WiFi modules. This also facilitates the simple modification of the existing wireless router to implement the technical solution of the present invention.
图2示出了根据本发明一个实施例的一种路由器的结构示意图,如图2所示,路由器200包括:一个第一通讯模块210和一个第二通讯模块220。FIG. 2 is a schematic structural diagram of a router according to an embodiment of the present invention. As shown in FIG. 2, the router 200 includes: a first communication module 210 and a second communication module 220.
第一通讯模块210与本路由器200的广域网接口230连接,第一通讯模块210与第二通讯模块220连接;其中,第二通讯模块220用于与至少一个与广域网连接的其他路由器连接,广域网接口230用于与广域网连接。The first communication module 210 is connected to the WAN interface 230 of the router 200, and the first communication module 210 is connected to the second communication module 220. The second communication module 220 is configured to connect with at least one other router connected to the WAN, and the WAN interface 230 is used to connect to the wide area network.
第一通讯模块210,适于在接收到来自接入本路由器200的终端设备的数据请求 时,判断是否需要其他路由器协同处理该数据请求;如果判断为是,将该数据请求通过第二通讯模块220发送到第二通讯模块220连接的一个或多个其他路由器;通过第二通讯模块220接收一个或多个其他路由器返回的与数据请求相应的数据。The first communication module 210 is adapted to receive a data request from a terminal device accessing the router 200 When it is determined, it is determined whether the other routers need to cooperate to process the data request; if the determination is yes, the data request is sent to the one or more other routers connected to the second communication module 220 through the second communication module 220; through the second communication module 220 Receives data corresponding to a data request returned by one or more other routers.
第二通讯模块220,适于将第一通讯模块210发送的数据请求发送到连接的一个或多个其他路由器,以及适于将一个或多个其他路由器返回的与数据请求相应的数据返回给第一通讯模块210。The second communication module 220 is adapted to send the data request sent by the first communication module 210 to one or more other routers connected, and to return data corresponding to the data request returned by the one or more other routers to the first A communication module 210.
可见,图2所示的装置,通过各单元的相互配合,在本路由器中设置一个互相连接的第一通讯模块和一个第二通讯模块,其中第一通讯模块与本路由器的广域网接口连接,第二通讯模块用于与至少一个与广域网连接的其他路由器连接,广域网接口连接到广域网,这样,当第一通讯模块接收到来自接入本路由器的终端设备的数据请求时,判断是否需要其他路由器协同处理该数据请求,如果判断为是,将该数据请求通过第二通讯模块发送到第二通讯模块连接的一个或多个其他路由器,并进一步通过第二通讯模块接收一个或多个其他路由器返回的与该数据请求相应的数据。该技术方案可以在需要其他路由器协同处理数据请求的情况下,利用其路由器获得与该数据请求相应的数据,如下载的图片、视频等,有效地利用了其他路由器上的闲置带宽,更有效率地处理了终端设备发送的数据请求。It can be seen that, in the device shown in FIG. 2, an interconnected first communication module and a second communication module are disposed in the router through mutual cooperation of the units, wherein the first communication module is connected with the wide area network interface of the router, The second communication module is configured to be connected to at least one other router connected to the wide area network, and the WAN interface is connected to the wide area network, so that when the first communication module receives the data request from the terminal device accessing the router, it is determined whether other routers are required to cooperate. Processing the data request, if the determination is yes, sending the data request to the one or more other routers connected to the second communication module through the second communication module, and further receiving, by the second communication module, one or more other routers returning The data corresponding to the data request. The technical solution can use the router to obtain data corresponding to the data request, such as downloaded pictures and videos, in the case that other routers need to cooperate to process the data request, effectively utilizing the idle bandwidth on other routers, and is more efficient. The data request sent by the terminal device is processed.
在本发明的一个实施例中,图2所示的装置中,第一通讯模块210,还适于将该数据请求发送到广域网接口230;通过第一通讯模块210接收广域网接口230返回的与数据请求相应的数据。In an embodiment of the present invention, in the apparatus shown in FIG. 2, the first communication module 210 is further adapted to send the data request to the wide area network interface 230; and receive the data returned by the wide area network interface 230 through the first communication module 210. Request the corresponding data.
在本发明的一个实施例中,上述装置中,一个或多个其他路由器返回的与数据请求相应的数据不同于广域网接口230返回的与数据请求相应的数据。In an embodiment of the present invention, in the above apparatus, the data corresponding to the data request returned by the one or more other routers is different from the data corresponding to the data request returned by the WAN interface 230.
在本发明的一个实施例中,上述装置中,第一通讯模块210,适于将与数据请求相应的数据发送给发起数据请求的终端设备。In an embodiment of the present invention, in the foregoing apparatus, the first communication module 210 is adapted to send data corresponding to the data request to the terminal device that initiates the data request.
在本发明的一个实施例中,图2所示的装置中,第一通讯模块210,适于根据数据请求的数据请求量和广域网接口230上的数据传输带宽,判断是否需要其他路由器协同处理该数据请求。In an embodiment of the present invention, in the apparatus shown in FIG. 2, the first communication module 210 is adapted to determine, according to the data request amount of the data request and the data transmission bandwidth on the WAN interface 230, whether other routers are required to cooperate to process the Data request.
在本发明的一个实施例中,上述装置中,第一通讯模块210,适于当判断为不需要其他路由器协同处理该数据请求时,将该数据请求只发送给广域网接口230。In an embodiment of the present invention, in the foregoing apparatus, the first communication module 210 is adapted to send the data request only to the WAN interface 230 when it is determined that the other router does not need to cooperate to process the data request.
在本发明的一个实施例中,图2所示的装置中,第一通讯模块210,进一步适于在将第二通讯模块220发送的数据请求发送给本路由器的广域网接口230时,判断本路由器是否设置了分享带宽限制参数; In an embodiment of the present invention, in the apparatus shown in FIG. 2, the first communication module 210 is further adapted to determine the router when the data request sent by the second communication module 220 is sent to the WAN interface 230 of the router. Whether to set the sharing bandwidth limit parameter;
若是,在分享带宽限制参数所限定的带宽范围内,通过广域网接口230获取与数据请求相应的数据并返回给其他路由器;否则,在广域网接口230上的数据传输带宽范围内,通过广域网接口230获取与数据请求相应的数据并返回给其他路由器。If yes, the data corresponding to the data request is obtained through the WAN interface 230 and returned to the other routers within the bandwidth defined by the shared bandwidth limiting parameter; otherwise, the WAN interface 230 is obtained within the data transmission bandwidth of the WAN interface 230. The data corresponding to the data request is returned to other routers.
在本发明的一个实施例中,图2所示的装置中,第二通讯模块220,适于在接收到来自第一通讯模块210的数据请求时,从所连接的至少一个与广域网连接的其他路由器中选择一个或多个路由器,并将该数据请求送到所选择的一个或多个路由器。In an embodiment of the present invention, in the apparatus shown in FIG. 2, the second communication module 220 is adapted to receive at least one of the connected at least one connected to the wide area network when receiving the data request from the first communication module 210. One or more routers are selected in the router and the data request is sent to the selected one or more routers.
在本发明的一个实施例中,上述装置中,第二通讯模块220接,适于收到来自所连接的多个路由器的多个数据请求时,为每个数据请求设置传输带宽值;对于每个数据请求,在所设置的相应传输带宽值的范围内,通过第一通讯模块210从广域网接口230获取与该数据请求相应的数据并返回给相应路由器。In an embodiment of the present invention, in the foregoing apparatus, the second communication module 220 is adapted to set a transmission bandwidth value for each data request when receiving a plurality of data requests from the connected plurality of routers; The data request, within the range of the corresponding transmission bandwidth value set, acquires data corresponding to the data request from the wide area network interface 230 through the first communication module 210 and returns it to the corresponding router.
在本发明的一个实施例中,上述装置中,第一通讯模块210和第二通讯模块220均为WiFi模块。In an embodiment of the present invention, in the foregoing apparatus, the first communication module 210 and the second communication module 220 are both WiFi modules.
需要说明的是,上述各装置实施例的具体实施方式与前述各方法实施例的具体实施方式相同,在此不再赘述。It should be noted that the specific implementation manners of the foregoing device embodiments are the same as the specific implementation manners of the foregoing method embodiments, and details are not described herein again.
综上所述,本发明的技术方案,在本路由器中设置一个互相连接的第一通讯模块和一个第二通讯模块,其中第一通讯模块与本路由器的广域网接口连接,第二通讯模块用于与至少一个与广域网连接的其他路由器连接,广域网接口连接到广域网,这样,当第一通讯模块接收到来自接入本路由器的终端设备的数据请求时,判断是否需要其他路由器协同处理该数据请求,如果判断为是,将该数据请求通过第二通讯模块发送到第二通讯模块连接的一个或多个其他路由器,并进一步通过第二通讯模块接收一个或多个其他路由器返回的与该数据请求相应的数据。该技术方案可以在需要其他路由器协同处理数据请求的情况下,利用其路由器获得与该数据请求相应的数据,如下载的图片、视频等,有效地利用了其他路由器上的闲置带宽,更有效率地处理了终端设备发送的数据请求。In summary, the technical solution of the present invention provides an interconnected first communication module and a second communication module in the router, wherein the first communication module is connected to the wide area network interface of the router, and the second communication module is used. Connected to at least one other router connected to the WAN, the WAN interface is connected to the WAN, so that when the first communication module receives the data request from the terminal device accessing the router, it is determined whether other routers need to cooperate to process the data request, If the determination is yes, the data request is sent to the one or more other routers connected to the second communication module through the second communication module, and further received by the second communication module to be returned by the one or more other routers corresponding to the data request The data. The technical solution can use the router to obtain data corresponding to the data request, such as downloaded pictures and videos, in the case that other routers need to cooperate to process the data request, effectively utilizing the idle bandwidth on other routers, and is more efficient. The data request sent by the terminal device is processed.
需要说明的是:It should be noted:
在此提供的算法和显示不与任何特定计算机、虚拟装置或者其它设备固有相关。各种通用装置也可以与基于在此的示教一起使用。根据上面的描述,构造这类装置所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays provided herein are not inherently related to any particular computer, virtual device, or other device. Various general purpose devices can also be used with the teaching based on the teachings herein. The structure required to construct such a device is apparent from the above description. Moreover, the invention is not directed to any particular programming language. It is to be understood that the invention may be embodied in a variety of programming language, and the description of the specific language has been described above in order to disclose the preferred embodiments of the invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的 实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it can be understood that the present invention The embodiments may be practiced without these specific details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of the description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, the various features of the invention are sometimes grouped together into a single embodiment, in the above description of the exemplary embodiments of the invention, Figure, or a description of it. However, the method disclosed is not to be interpreted as reflecting the intention that the claimed invention requires more features than those recited in the claims. Rather, as the following claims reflect, inventive aspects reside in less than all features of the single embodiments disclosed herein. Therefore, the claims following the specific embodiments are hereby explicitly incorporated into the embodiments, and each of the claims as a separate embodiment of the invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art will appreciate that the modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components. In addition to such features and/or at least some of the processes or units being mutually exclusive, any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined. Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features that are included in other embodiments and not in other features, combinations of features of different embodiments are intended to be within the scope of the present invention. Different embodiments are formed and formed. For example, in the following claims, any one of the claimed embodiments can be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的路由器中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components of a router in accordance with an embodiment of the present invention. The invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein. Such a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
例如,图3示出了用于执行根据本发明的方法的计算设备的框图。该计算设备传统上包括处理器310和以存储器320形式的计算机程序产品或者计算机可读介质。 存储器320可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器320具有存储用于执行上述方法中的任何方法步骤的程序代码331的存储空间330。例如,存储程序代码的存储空间330可以存储分别用于实现上面的方法中的各种步骤的各个程序代码331。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为例如图4所示的便携式或者固定存储单元。该存储单元可以具有与图3的计算设备中的存储器320类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元存储有计算机可读程序代码331’,即可以由例如诸如310之类的处理器读取的程序代码,当这些程序代码由计算设备运行时,导致该计算设备执行上面所描述的方法中的各个步骤。For example, Figure 3 shows a block diagram of a computing device for performing the method in accordance with the present invention. The computing device conventionally includes a processor 310 and a computer program product or computer readable medium in the form of a memory 320. The memory 320 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM. The memory 320 has a storage space 330 that stores program code 331 for performing any of the method steps described above. For example, storage space 330 storing program code may store various program code 331 for implementing various steps in the above methods, respectively. The program code can be read from or written to one or more computer program products. These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such computer program products are typically portable or fixed storage units such as those shown in FIG. The storage unit may have storage segments, storage spaces, and the like that are similarly arranged to memory 320 in the computing device of FIG. The program code can be compressed, for example, in an appropriate form. Typically, the storage unit stores computer readable program code 331', ie program code readable by a processor, such as 310, which when executed by a computing device causes the computing device to perform the operations described above The various steps in the method.
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本发明的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。"an embodiment," or "an embodiment," or "an embodiment," In addition, it is noted that the phrase "in one embodiment" is not necessarily referring to the same embodiment.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It is to be noted that the above-described embodiments are illustrative of the invention and are not intended to be limiting, and that the invention may be devised without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as a limitation. The word "comprising" does not exclude the presence of the elements or steps that are not recited in the claims. The word "a" or "an" The invention can be implemented by means of hardware comprising several distinct elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means can be embodied by the same hardware item. The use of the words first, second, and third does not indicate any order. These words can be interpreted as names.
此外,还应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。 In addition, it should be noted that the language used in the specification has been selected for the purpose of readability and teaching, and is not intended to be construed or limited. Therefore, many modifications and changes will be apparent to those skilled in the art without departing from the scope of the invention. The disclosure of the present invention is intended to be illustrative, and not restrictive, and the scope of the invention is defined by the appended claims.

Claims (22)

  1. 一种实现路由器之间带宽共享的方法,其中,该方法包括:A method for implementing bandwidth sharing between routers, wherein the method includes:
    在本路由器中设置一个第一通讯模块和一个第二通讯模块;Setting a first communication module and a second communication module in the router;
    将第一通讯模块与本路由器的广域网接口连接,将第一通讯模块与第二通讯模块连接;其中,第二通讯模块用于与至少一个与广域网连接的其他路由器连接,广域网接口用于与广域网连接;The first communication module is connected to the WAN interface of the router, and the first communication module is connected to the second communication module; wherein the second communication module is used for connecting with at least one other router connected to the WAN, and the WAN interface is used for the WAN connection;
    当第一通讯模块接收到来自接入本路由器的终端设备的数据请求时,判断是否需要其他路由器协同处理该数据请求;When the first communication module receives the data request from the terminal device accessing the router, it is determined whether other routers need to cooperate to process the data request;
    如果判断为是,将该数据请求通过所述第二通讯模块发送到第二通讯模块连接的一个或多个其他路由器;If the determination is yes, the data request is sent to the one or more other routers connected to the second communication module by using the second communication module;
    通过所述第二通讯模块接收所述一个或多个其他路由器返回的与所述数据请求相应的数据。Receiving, by the second communication module, data corresponding to the data request returned by the one or more other routers.
  2. 如权利要求1所述的方法,其中,该方法进一步包括:The method of claim 1 wherein the method further comprises:
    通过所述第一通讯模块将该数据请求发送到所述广域网接口;Sending the data request to the wide area network interface by using the first communication module;
    通过所述第一通讯模块接收所述广域网接口返回的与所述数据请求相应的数据。Receiving, by the first communication module, data corresponding to the data request returned by the WAN interface.
  3. 如权利要求2所述的方法,其中,所述一个或多个其他路由器返回的与所述数据请求相应的数据不同于所述广域网接口返回的与所述数据请求相应的数据。The method of claim 2 wherein the data returned by the one or more other routers corresponding to the data request is different from the data corresponding to the data request returned by the wide area network interface.
  4. 如权利要求1-3任一项所述的方法,其中,该方法进一步包括:The method of any of claims 1-3, wherein the method further comprises:
    通过第一通讯模块将与所述数据请求相应的数据发送给发起所述数据请求的终端设备。The data corresponding to the data request is sent by the first communication module to the terminal device that initiated the data request.
  5. 如权利要求1所述的方法,其中,所述判断是否需要其他路由器协同处理该数据请求进一步包括:The method of claim 1, wherein the determining whether the other routers are required to co-process the data request further comprises:
    根据所述数据请求的数据请求量和所述广域网接口上的数据传输带宽,判断是否需要其他路由器协同处理该数据请求。And determining, according to the data request amount of the data request and the data transmission bandwidth on the WAN interface, whether other routers need to cooperate to process the data request.
  6. 如权利要求1-3任一项所述的方法,其中,该方法进一步包括:The method of any of claims 1-3, wherein the method further comprises:
    如果判断不需要其他路由器协同处理该数据请求,则将该数据请求只发送给所述广域网接口。 If it is determined that no other router is required to co-process the data request, the data request is only sent to the wide area network interface.
  7. 如权利要求1所述的方法,其中,该方法进一步包括:The method of claim 1 wherein the method further comprises:
    当第二通讯模块接收到来自其他路由器的数据请求时,When the second communication module receives a data request from another router,
    判断本路由器是否设置了分享带宽限制参数;Determine whether the router has set a sharing bandwidth limit parameter;
    若是,在所述分享带宽限制参数所限定的带宽范围内,通过所述广域网接口获取与所述数据请求相应的数据并返回给所述其他路由器;If yes, the data corresponding to the data request is obtained through the WAN interface and returned to the other routers within a bandwidth defined by the shared bandwidth limiting parameter;
    否则,在所述广域网接口上的数据传输带宽范围内,通过所述广域网接口获取与所述数据请求相应的数据并返回给所述其他路由器。Otherwise, within the data transmission bandwidth on the WAN interface, data corresponding to the data request is obtained through the WAN interface and returned to the other router.
  8. 如权利要求1所述的方法,其中,所述将该数据请求通过所述第二通讯模块发送到第二通讯模块连接的一个或多个其他路由器进一步包括:The method of claim 1, wherein the one or more other routers that send the data request to the second communication module through the second communication module further comprises:
    第二通讯模块接收到来自第一通讯模块的数据请求时,从所连接的至少一个与广域网连接的其他路由器中选择一个或多个路由器,并将该数据请求送到所选择的一个或多个路由器。When receiving the data request from the first communication module, the second communication module selects one or more routers from at least one other connected router connected to the wide area network, and sends the data request to the selected one or more router.
  9. 如权利要求8所述的方法,其中,该方法进一步包括:The method of claim 8 wherein the method further comprises:
    当第二通讯模块接收到来自所连接的多个路由器的多个数据请求时,为每个数据请求设置传输带宽值;When the second communication module receives a plurality of data requests from the connected plurality of routers, setting a transmission bandwidth value for each data request;
    对于每个数据请求,在所设置的相应传输带宽值的范围内,通过所述第一通讯模块从所述广域网接口获取与该数据请求相应的数据并返回给相应路由器。For each data request, within the range of the set corresponding transmission bandwidth value, data corresponding to the data request is obtained from the wide area network interface by the first communication module and returned to the corresponding router.
  10. 如权利要求1-3中任一项所述的方法,其中,A method according to any one of claims 1 to 3, wherein
    第一通讯模块和第二通讯模块均为WiFi模块。The first communication module and the second communication module are both WiFi modules.
  11. 一种路由器,其中,该路由器包括:一个第一通讯模块和一个第二通讯模块;A router, wherein the router comprises: a first communication module and a second communication module;
    第一通讯模块与本路由器的广域网接口连接,第一通讯模块与第二通讯模块连接;其中,第二通讯模块用于与至少一个与广域网连接的其他路由器连接,广域网接口用于与广域网连接;The first communication module is connected to the WAN interface of the router, and the first communication module is connected to the second communication module; wherein the second communication module is used for connecting with at least one other router connected to the WAN, and the WAN interface is used for connecting with the WAN;
    第一通讯模块,适于在接收到来自接入本路由器的终端设备的数据请求时,判断是否需要其他路由器协同处理该数据请求;如果判断为是,将该数据请求通过所述第二通讯模块发送到第二通讯模块连接的一个或多个其他路由器;通过所述第二通讯模块接收所述一个或多个其他路由器返回的与所述数据请求相应的数据; The first communication module is adapted to determine, when receiving a data request from the terminal device accessing the router, whether the other router needs to cooperate to process the data request; if the determination is yes, the data request is passed through the second communication module Sending to one or more other routers connected to the second communication module; receiving, by the second communication module, data corresponding to the data request returned by the one or more other routers;
    第二通讯模块,适于将第一通讯模块发送的数据请求发送到连接的一个或多个其他路由器,以及适于将所述一个或多个其他路由器返回的与所述数据请求相应的数据返回给第一通讯模块。a second communication module, configured to send a data request sent by the first communication module to the connected one or more other routers, and to return data corresponding to the data request returned by the one or more other routers Give the first communication module.
  12. 如权利要求11所述的路由器,其中,The router according to claim 11, wherein
    所述第一通讯模块,还适于将该数据请求发送到所述广域网接口;通过所述第一通讯模块接收所述广域网接口返回的与所述数据请求相应的数据。The first communication module is further adapted to send the data request to the wide area network interface; and receive, by the first communication module, data corresponding to the data request returned by the wide area network interface.
  13. 如权利要求12所述的路由器,其中,所述一个或多个其他路由器返回的与所述数据请求相应的数据不同于所述广域网接口返回的与所述数据请求相应的数据。The router of claim 12, wherein the data returned by the one or more other routers corresponding to the data request is different from data returned by the wide area network interface corresponding to the data request.
  14. 如权利要求11-13任一项所述的路由器,其中,A router according to any one of claims 11 to 13, wherein
    第一通讯模块,适于将与所述数据请求相应的数据发送给发起所述数据请求的终端设备。The first communication module is adapted to send data corresponding to the data request to the terminal device that initiates the data request.
  15. 如权利要求11所述的路由器,其中,The router according to claim 11, wherein
    所述第一通讯模块,适于根据所述数据请求的数据请求量和所述广域网接口上的数据传输带宽,判断是否需要其他路由器协同处理该数据请求。The first communication module is adapted to determine, according to the data request amount of the data request and the data transmission bandwidth on the WAN interface, whether other routers need to cooperate to process the data request.
  16. 如权利要求11-13任一项所述的路由器,其中,A router according to any one of claims 11 to 13, wherein
    所述第一通讯模块,适于当判断为不需要其他路由器协同处理该数据请求时,将该数据请求只发送给所述广域网接口。The first communication module is adapted to send the data request only to the WAN interface when it is determined that the other router does not need to cooperate to process the data request.
  17. 如权利要求11所述的路由器,其中,The router according to claim 11, wherein
    所述第一通讯模块,进一步适于在将第二通讯模块发送的数据请求发送给本路由器的广域网接口时,判断本路由器是否设置了分享带宽限制参数;The first communication module is further adapted to determine, when the data request sent by the second communication module is sent to the WAN interface of the router, whether the shared bandwidth limit parameter is set by the router;
    若是,在所述分享带宽限制参数所限定的带宽范围内,通过所述广域网接口获取与所述数据请求相应的数据并返回给所述其他路由器;否则,在所述广域网接口上的数据传输带宽范围内,通过所述广域网接口获取与所述数据请求相应的数据并返回给所述其他路由器。If yes, the data corresponding to the data request is obtained through the WAN interface and returned to the other router within the bandwidth defined by the shared bandwidth limit parameter; otherwise, the data transmission bandwidth on the WAN interface Within the scope, data corresponding to the data request is obtained through the WAN interface and returned to the other routers.
  18. 如权利要求11所述的路由器,其中,The router according to claim 11, wherein
    第二通讯模块,适于在接收到来自第一通讯模块的数据请求时,从所连接的至少一个与广域网连接的其他路由器中选择一个或多个路由器,并将该数据请求送到所选择的一个或多个路由器。a second communication module, configured to: when receiving the data request from the first communication module, select one or more routers from at least one other connected router connected to the wide area network, and send the data request to the selected one One or more routers.
  19. 如权利要求18所述的路由器,其中, The router according to claim 18, wherein
    第二通讯模块接,适于收到来自所连接的多个路由器的多个数据请求时,为每个数据请求设置传输带宽值;对于每个数据请求,在所设置的相应传输带宽值的范围内,通过所述第一通讯模块从所述广域网接口获取与该数据请求相应的数据并返回给相应路由器。The second communication module is adapted to set a transmission bandwidth value for each data request when receiving multiple data requests from the connected multiple routers; for each data request, in a range of corresponding transmission bandwidth values set And acquiring, by the first communication module, data corresponding to the data request from the WAN interface and returning to the corresponding router.
  20. 如权利要求11-13中任一项所述的路由器,其中,A router according to any of claims 11-13, wherein
    第一通讯模块和第二通讯模块均为WiFi模块。The first communication module and the second communication module are both WiFi modules.
  21. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据权利要求1-10中的任一个所述的实现路由器之间带宽共享的方法。A computer program comprising computer readable code, when said computer readable code is run on a computing device, causing said computing device to perform bandwidth sharing between routers according to any of claims 1-10 Methods.
  22. 一种计算机可读介质,其中存储了如权利要求21所述的计算机程序。 A computer readable medium storing the computer program of claim 21.
PCT/CN2016/103344 2015-12-22 2016-10-26 Method for realizing bandwidth sharing between routers, and router WO2017107650A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510976119.7 2015-12-22
CN201510976119.7A CN105610735A (en) 2015-12-22 2015-12-22 Method for sharing bandwidth among routers and router

Publications (1)

Publication Number Publication Date
WO2017107650A1 true WO2017107650A1 (en) 2017-06-29

Family

ID=55990277

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/103344 WO2017107650A1 (en) 2015-12-22 2016-10-26 Method for realizing bandwidth sharing between routers, and router

Country Status (2)

Country Link
CN (1) CN105610735A (en)
WO (1) WO2017107650A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105610735A (en) * 2015-12-22 2016-05-25 北京奇虎科技有限公司 Method for sharing bandwidth among routers and router
CN108200478A (en) * 2018-01-03 2018-06-22 深圳市云帆加速科技有限公司 A kind of VOD method and system for realizing that P2P shares

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102811464A (en) * 2011-05-31 2012-12-05 株式会社Ntt都科摩 Mobile Internet access nodes (MiANs), and method and system for converging bandwidths of MiANs
CN104243266A (en) * 2014-09-18 2014-12-24 小米科技有限责任公司 Method and device for network access
US20150055566A1 (en) * 2013-08-23 2015-02-26 Netgear, Inc. System and method for configuring device connections in an extended network environment
CN105391650A (en) * 2015-10-20 2016-03-09 上海斐讯数据通信技术有限公司 Method, route equipment and system for sharing broadband bandwidth
CN105490966A (en) * 2014-09-17 2016-04-13 联想(北京)有限公司 Method for dynamically sharing network bandwidth and electronic equipment
CN105610735A (en) * 2015-12-22 2016-05-25 北京奇虎科技有限公司 Method for sharing bandwidth among routers and router

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685815A (en) * 2011-03-11 2012-09-19 国基电子(上海)有限公司 Wireless network equipment and bandwidth sharing method thereof
US20150358482A1 (en) * 2014-06-04 2015-12-10 Karma Mobility Inc. Source selection for shared network connectivity

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102811464A (en) * 2011-05-31 2012-12-05 株式会社Ntt都科摩 Mobile Internet access nodes (MiANs), and method and system for converging bandwidths of MiANs
US20150055566A1 (en) * 2013-08-23 2015-02-26 Netgear, Inc. System and method for configuring device connections in an extended network environment
CN105490966A (en) * 2014-09-17 2016-04-13 联想(北京)有限公司 Method for dynamically sharing network bandwidth and electronic equipment
CN104243266A (en) * 2014-09-18 2014-12-24 小米科技有限责任公司 Method and device for network access
CN105391650A (en) * 2015-10-20 2016-03-09 上海斐讯数据通信技术有限公司 Method, route equipment and system for sharing broadband bandwidth
CN105610735A (en) * 2015-12-22 2016-05-25 北京奇虎科技有限公司 Method for sharing bandwidth among routers and router

Also Published As

Publication number Publication date
CN105610735A (en) 2016-05-25

Similar Documents

Publication Publication Date Title
KR101548574B1 (en) Network connected media gateway for communication networks
WO2018196643A1 (en) Private data cloud storage system and private data cloud storage method
WO2015081875A1 (en) Method and apparatus for sharing files between terminal devices
WO2017114206A1 (en) Method and device for processing short link, and short link server
US20190372949A1 (en) Wireless credential sharing
CN109521956B (en) Cloud storage method, device, equipment and storage medium based on block chain
US20140173123A1 (en) Address family preference in multiple network interface environments
WO2016000507A1 (en) Traffic-saving mode search service method, server, client and system
US11379836B2 (en) Methods and systems for recording data based on plurality of blockchain networks
WO2017101186A1 (en) Method for establishing wireless connection for application of user equipment
WO2015043455A1 (en) Data transmission method, device, and system
US20170126556A1 (en) Information transmission method and apparatus, device and storage medium
US20140344901A1 (en) Method And System For Sharing A File
WO2016101753A1 (en) Method and device for uniformly processing request information
CN109561054A (en) A kind of data transmission method, controller and access device
US20140337536A1 (en) Method and apparatus for data communication
CN109522462B (en) Cloud query method, device, equipment and storage medium based on block chain
US8447857B2 (en) Transforming HTTP requests into web services trust messages for security processing
WO2017107650A1 (en) Method for realizing bandwidth sharing between routers, and router
WO2021012795A1 (en) Network node scheduling method and apparatus, electronic device and storage medium
TW201644230A (en) Controlling method, network system and service platform for mobile-edge computing
CN107888399A (en) A kind of platform services PaaS platform management method and device
US11411887B2 (en) Method and device for performing traffic control on user equipment
US8464331B2 (en) Data transmission management server and method
WO2017185632A1 (en) Data transmission method and electronic device

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: 16877461

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: 16877461

Country of ref document: EP

Kind code of ref document: A1