CN104243266A - Method and device for network access - Google Patents
Method and device for network access Download PDFInfo
- Publication number
- CN104243266A CN104243266A CN201410478917.2A CN201410478917A CN104243266A CN 104243266 A CN104243266 A CN 104243266A CN 201410478917 A CN201410478917 A CN 201410478917A CN 104243266 A CN104243266 A CN 104243266A
- Authority
- CN
- China
- Prior art keywords
- router
- idle bandwidth
- bandwidth
- idle
- relay connection
- 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
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a method and device for network access. The method includes the steps that when a first router has access to a wide area network, the fact that a second router with the idle bandwidth is arranged in the specific range which the first router belongs to is determined; relay connection is established with the second router; the access to the wide area network is conducted by sharing the idle bandwidth of the second route based on the established relay connection. By means of the embodiment, due to the fact that the first router can share the idle bandwidth of the second router in real time, the first router can be prevented from being limited by the upper limit of the bandwidth of the first router, the idle bandwidth of the second router is fully and flexibly used, and meanwhile the self network access speed can be improved.
Description
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for accessing a network.
Background
In a wireless lan environment, a terminal may access a public network through a router, where each router generally has a certain independent bandwidth, and when accessing resources on the public network through the router, the independent bandwidth is used to upload or download the resources. However, in the related art, since the access speed of the router to the public network can only reach the upper limit of the independent bandwidth, the access speed is generally slow due to the limitation of the bandwidth.
Disclosure of Invention
The disclosure provides a method and a device for accessing a network, which are used for solving the problem that the network access speed of a router in the related art is limited by the upper limit of the bandwidth of the router, so that the access speed is slow.
According to a first aspect of the embodiments of the present disclosure, there is provided a method for accessing a network, applied to a first router, the method including:
when accessing a wide area network, determining a second router with idle bandwidth in a specific range to which the first router belongs;
establishing a relay connection with the second router;
accessing the wide area network by sharing the idle bandwidth of the second router based on the established relay connection.
Optionally, the determining that the second router having idle bandwidth in the specific range to which the first router belongs includes:
receiving an idle bandwidth notification message broadcasted by the second router within the specific range, wherein the idle bandwidth notification message is a notification message broadcasted by the second router according to a preset time period when the second router has idle bandwidth;
determining that the second router has an idle bandwidth after obtaining idle bandwidth information from the idle bandwidth notification message.
Optionally, the determining that the second router having idle bandwidth in the specific range to which the first router belongs includes:
broadcasting an idle bandwidth request message within the specific range;
receiving an idle bandwidth response message sent by the second router, wherein the idle bandwidth response message is a response message sent by the second router when the second router receives the idle bandwidth request message and detects that the second router has idle bandwidth;
determining that the second router has idle bandwidth after obtaining idle bandwidth information from the idle bandwidth response message.
Optionally, the establishing a relay connection with the second router includes:
regularly exchanging beacon frames with the second router based on the wireless fidelity (WIFI) network;
and establishing the relay connection according to the beacon frame.
Optionally, the accessing the wide area network by sharing the idle bandwidth of the second router includes:
calculating a bandwidth ratio of an idle bandwidth of the second router to an available bandwidth of the first router;
allocating task connection numbers for idle bandwidth and available bandwidth according to the bandwidth proportion;
accessing the wide area network via the number of task connections allocated for the spare and available bandwidths.
Optionally, the method further includes:
receiving an idle bandwidth change instruction sent by the second router, wherein the instruction carries information of the changed idle bandwidth shared to the first router when the second router detects that the idle bandwidth changes;
and adjusting the number of task connections allocated to the idle bandwidth and the available bandwidth according to the changed information of the idle bandwidth.
Optionally, after the access to the wide area network is performed by sharing the idle bandwidth of the second router, the method further includes:
and sending a shared bandwidth notification message to the second router, wherein the shared bandwidth notification message contains the usage amount of the idle bandwidth occupied by the service of the first router, so that the second router updates the available idle bandwidth on the second router according to the usage amount of the idle bandwidth.
According to a second aspect of the embodiments of the present disclosure, there is provided a method for accessing a network, applied to a second router, the method including:
when the second router has idle bandwidth, establishing relay connection with a first router, wherein the second router is located in a specific range to which the first router belongs;
providing the spare bandwidth to the first router over the relay connection to enable the first router to access a wide area network by sharing the spare bandwidth.
Optionally, before the relay connection is established with the first router, the method further includes:
and sending an idle bandwidth notification message according to a preset time period, so that the first router determines that the second router has idle bandwidth after acquiring idle bandwidth information from the idle bandwidth notification message.
Optionally, before the relay connection is established with the first router, the method further includes:
receiving an idle bandwidth request message broadcast by the first router;
and sending an idle bandwidth response message to the first router, so that the first router determines that the second router has idle bandwidth after acquiring the idle bandwidth information from the idle bandwidth response message.
Optionally, the establishing a relay connection with the first router includes:
regularly exchanging beacon frames with the first router based on a wireless fidelity (WIFI) network;
and establishing the relay connection according to the beacon frame.
Optionally, the method further includes:
detecting whether the idle bandwidth changes;
and when the idle bandwidth changes, sending an idle bandwidth change instruction to the first router, wherein the instruction carries information of the changed idle bandwidth shared by the second router to the first router.
Optionally, the method further includes:
receiving a shared bandwidth notification message sent by the first router, wherein the shared bandwidth notification message includes the usage amount of the idle bandwidth occupied by the service of the first router;
and updating the available idle bandwidth on the second router according to the usage amount of the idle bandwidth.
Optionally, the providing the idle bandwidth to the first router through the relay connection includes:
when a plurality of first routers exist, providing the idle bandwidth for the first routers according to a preset sharing strategy; wherein,
the sharing policy includes at least one of the following policies:
allocating the idle bandwidth equally for each first router;
allocating the idle bandwidth to each first router according to a bandwidth demand proportion;
and allocating the idle bandwidth according to the order of the intimacy value with each first router from high to low.
According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for accessing a network, which is applied to a first router, the apparatus including:
a determining unit, configured to determine, when the first router accesses a wide area network, a second router having an idle bandwidth within a specific range to which the first router belongs;
a connection unit, configured to establish a relay connection with the second router;
an accessing unit, configured to access the wide area network by sharing an idle bandwidth of the second router based on the established relay connection.
Optionally, the determining unit includes:
a notification message receiving subunit, configured to receive an idle bandwidth notification message broadcasted by the second router within the specific range, where the idle bandwidth notification message is a notification message broadcasted by the second router according to a preset time period when the second router has an idle bandwidth;
and the first idle bandwidth obtaining subunit is configured to determine that the second router has an idle bandwidth after obtaining the idle bandwidth information from the idle bandwidth notification message.
Optionally, the determining unit includes:
a request message broadcasting subunit, configured to broadcast an idle bandwidth request message within the specific range;
a response message receiving subunit, configured to receive an idle bandwidth response message sent by the second router, where the idle bandwidth response message is a response message sent by the second router when receiving the idle bandwidth request message and detecting that the second router has an idle bandwidth;
and the second idle bandwidth obtaining subunit is configured to determine that the second router has an idle bandwidth after obtaining the idle bandwidth information from the idle bandwidth response message.
Optionally, the connection unit includes:
the first beacon frame interaction subunit is used for regularly interacting beacon frames with the second router based on a WIFI network;
and the first relay connection establishing subunit is used for establishing the relay connection according to the beacon frame.
Optionally, the access unit includes:
a bandwidth ratio calculating subunit, configured to calculate a bandwidth ratio between an idle bandwidth of the second router and an available bandwidth of the first router;
the task connection number distribution subunit is used for respectively distributing the task connection numbers for the idle bandwidth and the available bandwidth according to the bandwidth proportion;
and the network access subunit is used for accessing the wide area network through the task connection number allocated to the idle bandwidth and the available bandwidth.
Optionally, the apparatus further comprises:
a receiving unit, configured to receive an idle bandwidth change instruction sent by the second router, where the instruction carries information of an idle bandwidth after change, which is shared to the first router when the second router detects that the idle bandwidth changes;
and the adjusting unit is used for adjusting the task connection number allocated to the idle bandwidth and the available bandwidth according to the changed information of the idle bandwidth.
Optionally, the apparatus further comprises:
a sending unit, configured to send a shared bandwidth notification message to the second router, where the shared bandwidth notification message includes a usage amount of the idle bandwidth occupied by the service of the first router, so that the second router updates the idle bandwidth available on the second router according to the usage amount of the idle bandwidth.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an apparatus for accessing a network, which is applied to a second router, the apparatus including:
a connection unit, configured to establish a relay connection with a first router when the second router has an idle bandwidth, where the second router is located within a specific range to which the first router belongs;
a providing unit, configured to provide the idle bandwidth to the first router through the relay connection, so that the first router accesses a wide area network by sharing the idle bandwidth.
Optionally, the apparatus further comprises:
a first sending unit, configured to send an idle bandwidth notification message according to a preset time period, so that the first router determines that the second router has idle bandwidth after obtaining idle bandwidth information from the idle bandwidth notification message.
Optionally, the apparatus further comprises:
a first receiving unit, configured to receive an idle bandwidth request message broadcast by the first router;
a second sending unit, configured to send an idle bandwidth response message to the first router, so that the first router determines that the second router has an idle bandwidth after obtaining the idle bandwidth information from the idle bandwidth response message.
Optionally, the connection unit includes:
the second beacon frame interaction subunit is used for regularly interacting beacon frames with the first router based on a WIFI network;
and the second relay connection establishing subunit is used for establishing the relay connection according to the beacon frame.
Optionally, the apparatus further comprises:
a detecting unit, configured to detect whether the idle bandwidth changes;
and a third sending unit, configured to send an idle bandwidth change instruction to the first router when the idle bandwidth changes, where the instruction carries information of the changed idle bandwidth shared by the second router to the first router.
Optionally, the apparatus further comprises:
a second receiving unit, configured to receive a shared bandwidth notification message sent by the first router, where the shared bandwidth notification message includes a usage amount of the idle bandwidth occupied by a service of the first router;
and the updating unit is used for updating the available idle bandwidth on the second router according to the usage amount of the idle bandwidth.
Optionally, the providing unit includes:
a bandwidth providing policy subunit, configured to, when there are multiple first routers, provide the idle bandwidth to the first routers according to a preset sharing policy;
wherein,
the sharing policy includes at least one of the following policies:
allocating the idle bandwidth equally for each first router;
allocating the idle bandwidth to each first router according to a bandwidth demand proportion;
and allocating the idle bandwidth according to the order of the intimacy value with each first router from high to low.
According to a fifth aspect of the embodiments of the present disclosure, there is provided an apparatus for accessing a network, which is applied to a first router, the apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when accessing a wide area network, determining a second router with idle bandwidth in a specific range to which the first router belongs;
establishing a relay connection with the second router;
accessing the wide area network by sharing the idle bandwidth of the second router based on the established relay connection.
According to a sixth aspect of the embodiments of the present disclosure, there is provided an apparatus for accessing a network, which is applied to a second router, the apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when the second router has idle bandwidth, establishing relay connection with a first router, wherein the second router is located in a specific range to which the first router belongs;
providing the spare bandwidth to the first router over the relay connection to enable the first router to access a wide area network by sharing the spare bandwidth.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the process of accessing a network, the first router in the disclosure can determine the second router with the idle bandwidth in real time, and establish relay connection with the second router, so that the idle bandwidth of the second router is shared to access the network.
In the disclosure, a first router can obtain idle bandwidth of a second router in different modes, and when idle bandwidth information is obtained through an idle bandwidth notification message broadcasted by the second router according to a preset time period, the first router can obtain the idle bandwidth on the second router which can be shared in real time when accessing a network; when the idle bandwidth of the second router is obtained by broadcasting the idle bandwidth request message, the second router can be prevented from regularly broadcasting a large amount of idle bandwidth notification messages, and network transmission resources are saved.
According to the method and the device, the relay connection is established between the first router and the second router through the interaction beacon frame by utilizing the characteristic that the router can transmit the beacon frame, so that the first router can be ensured to continuously share the idle bandwidth of the second router.
According to the method and the device, the first router can distribute the task connection number according to the proportion between the available bandwidth of the first router and the idle bandwidth of the shared second router, so that the bandwidth resources which can be used for accessing the network are reasonably utilized, and the network access speed is further improved.
According to the method and the device, the first router can adjust the idle bandwidth of the second router which can be used in real time according to the idle bandwidth change condition of the second router, so that the idle bandwidth is shared, and meanwhile, the bandwidth use of the second router is preferentially guaranteed not to be influenced.
When there are multiple first routers, the second router can provide the idle bandwidth to the multiple first routers according to a preset sharing policy, so that the idle bandwidth can be flexibly allocated according to sharing requirements.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow chart illustrating a method of accessing a network according to an exemplary embodiment of the present disclosure.
Fig. 2 is a flow chart illustrating another method of accessing a network according to an example embodiment of the present disclosure.
Fig. 3A is a schematic diagram illustrating an application scenario for accessing a network according to an exemplary embodiment of the present disclosure.
Fig. 3B is a functional setup interface schematic diagram of a router shown in accordance with an example embodiment of the present disclosure.
Fig. 4 is a block diagram illustrating an apparatus for accessing a network according to an example embodiment of the present disclosure.
Fig. 5 is a block diagram illustrating another apparatus for accessing a network according to an example embodiment of the present disclosure.
Fig. 6 is a block diagram illustrating another apparatus for accessing a network according to an example embodiment of the present disclosure.
Fig. 7 is a block diagram illustrating another apparatus for accessing a network according to an example embodiment of the present disclosure.
Fig. 8 is a block diagram illustrating another apparatus for accessing a network according to an example embodiment of the present disclosure.
Fig. 9 is a block diagram illustrating another apparatus for accessing a network according to an example embodiment of the present disclosure.
Fig. 10 is a block diagram illustrating another apparatus for accessing a network according to an example embodiment of the present disclosure.
Fig. 11 is a block diagram illustrating another apparatus for accessing a network according to an example embodiment of the present disclosure.
Fig. 12 is a block diagram illustrating another apparatus for accessing a network according to an example embodiment of the present disclosure.
Fig. 13 is a block diagram illustrating another apparatus for accessing a network according to an example embodiment of the present disclosure.
Fig. 14 is a block diagram illustrating another apparatus for accessing a network according to an example embodiment of the present disclosure.
Fig. 15 is a block diagram illustrating another apparatus for accessing a network according to an example embodiment of the present disclosure.
Fig. 16 is a block diagram illustrating another apparatus for accessing a network according to an example embodiment of the present disclosure.
Fig. 17 is a block diagram illustrating another apparatus for accessing a network according to an example embodiment of the present disclosure.
Fig. 18 is a schematic structural diagram illustrating an apparatus for accessing a network according to an exemplary embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
As shown in fig. 1, fig. 1 is a flow chart illustrating a method for accessing a network, which may be used in a first router accessing the network using spare bandwidth provided by a second router, according to an exemplary embodiment, the method comprising the steps of:
in step 101, when accessing a wide area network, a second router having a free bandwidth in a specific range to which a first router belongs is determined.
The router in the present disclosure, as an intelligent routing device, may not only have a traditional routing function, but also further include an independent operating system and a disk; the terminal can access the router through the wireless local area network and access the network through the router. The terminal in the present disclosure may be any intelligent terminal having an internet access function, and may be specifically a mobile phone, a tablet Computer, a PC (Personal Computer), a PDA (Personal Digital Assistant), or the like, for example.
In the present disclosure, a plurality of routers may be simultaneously provided within a specific range to which a first router belongs, and when the first router accesses a wide area network (hereinafter, simply referred to as a network), a second router having an idle bandwidth may be determined from the plurality of routers, and when determining the second router, the following manner may be adopted:
first, the first router determines that the second router has spare bandwidth based on a message broadcast by the second router. The second router may broadcast an idle bandwidth notification message in the specific range according to a set time period when the second router has an idle bandwidth, where the idle bandwidth notification message carries idle bandwidth information, the idle bandwidth notification message may be a beacon (beacon) frame, and the idle bandwidth information may be carried by a reserved field in the beacon frame; the first router may listen to various messages broadcast by the second router in real time, and after receiving the idle bandwidth notification message, if idle bandwidth information is obtained from the idle bandwidth notification message, it may be determined that the second router is currently capable of providing idle bandwidth and the amount of bandwidth capable of providing idle bandwidth.
In a second way, the first router actively determines that the second router has idle bandwidth. The first router may actively broadcast an idle bandwidth request message when accessing the network, where the idle bandwidth request message may be a beacon frame broadcast by the first router according to a preset time period; if the second router receives the idle bandwidth request message and the current second router has idle bandwidth, an idle bandwidth response message aiming at the idle bandwidth request message is sent to the first router, the idle bandwidth response message carries idle bandwidth information of the second router, and after the first router obtains the idle bandwidth information from the idle bandwidth response message, the first router can determine that the second router can currently provide the idle bandwidth and the bandwidth amount of the idle bandwidth.
It should be noted that, for convenience of description in the embodiments of the present disclosure, all at least one router capable of providing the spare bandwidth to the first router is referred to as a second router, and the second router is not limited to only one router providing the spare bandwidth to the first router.
In step 102, a relay connection is established with the second router.
In the embodiment of the disclosure, after determining a second router with an idle bandwidth, a first router regularly interacts with the second router based on a WIFI (wireless fidelity) network, the beacon frame may carry information for establishing a relay connection, and after establishing the relay connection according to the interacted beacon frame, the first router may use the idle bandwidth of the second router. The method for establishing the relay connection between the first router and the second router in the embodiment of the present disclosure may include: a Bridge (Bridge) mode, a WDS (wireless distribution System) mode, and the like, and the detailed establishment process may refer to the existing relay connection establishment process, which is not described herein again.
In step 103, access is made to the wide area network by sharing the spare bandwidth of the second router based on the established relay connection.
In the related art, when a first router accesses a network, different access tasks create different numbers of connections, and for the same task, all the created connections are carried through a bandwidth supported by the first router, so that if the bandwidth is wide, the access speed is high; conversely, if the bandwidth is narrower, the corresponding access speed is also slower. In the embodiment of the disclosure, after the first router establishes the relay connection with the second router, the first router may use the idle bandwidth of the second router to access the network simultaneously in addition to using its own available bandwidth. At this time, the first router may calculate a bandwidth ratio between an idle bandwidth of the second router and an available bandwidth of the first router, allocate the number of task connections to the idle bandwidth and the available bandwidth according to the bandwidth ratio, and access the network through the number of task connections allocated to the idle bandwidth and the available bandwidth.
For example, the idle bandwidth provided by the second router to the first router is 5M, the available bandwidth of the first router is 10M, and a certain download task of the first router creates 9 connections, then 3 connections are allocated to the idle bandwidth and 6 connections are allocated to the available bandwidth according to the bandwidth ratio of the idle bandwidth to the available bandwidth of 1:2, and compared with 9 connections which are all carried by the available bandwidth of the first router, after the idle bandwidth of the second router is used, the bandwidth of each connection is increased, and when the download task is executed, the download speed of the first router can be increased.
In addition, during the process of using the idle bandwidth provided by the second router, the first router itself needs to use the idle bandwidth according to the change of the access task when accessing the network. For example, a downloading task that needs to occupy more bandwidth is initially created on the first router, and at this time, 10M idle bandwidth provided by the second router is used; when the first router completes the downloading task and only creates a browsing task for accessing the web page, the idle bandwidth required to be used by the first router is correspondingly reduced, and the idle bandwidth is assumed to be reduced from 10M to 3M. Therefore, in this embodiment of the present disclosure, the first router may send a shared bandwidth notification message to the second router when the usage amount of the idle bandwidth changes, where the shared bandwidth notification message may carry the changed idle bandwidth 3M, and after receiving the shared bandwidth notification message, the second router may update the available idle bandwidth according to the change condition of the idle bandwidth on the first router, for example, after knowing that the idle bandwidth used by the first router changes from 10M to 3M, the second router may provide 7M idle bandwidth for other routers to use, so that the idle bandwidth may be flexibly allocated according to the use conditions of the idle bandwidth of different routers, and the idle bandwidth is reasonably utilized.
By applying the embodiment, the first router can determine the second router with the idle bandwidth in real time in the process of accessing the network, and establish relay connection with the second router, so that the idle bandwidth of the second router is shared to access the network.
Fig. 2 is a flow chart illustrating another method of accessing a network that may be used in a second router providing spare bandwidth to a first router of the access network, according to an example embodiment, comprising the steps of:
in step 201, a relay connection is established with a first router when there is free bandwidth on a second router within a certain range to which the first router belongs.
In the embodiment of the present disclosure, when the first router accesses the network, the router having the free bandwidth in the communicable range thereof may be determined, and after the second router notifies the first router of the free bandwidth thereof, the relay connection may be established with the first router.
The second router may notify the first router of its own idle bandwidth information in the following two ways:
in the first mode, the second router actively informs the first router of the idle bandwidth information of the second router through a broadcast message. The second router can broadcast an idle bandwidth notification message according to a set time period when the second router has idle bandwidth, wherein the idle bandwidth notification message carries idle bandwidth information, the idle bandwidth notification message can be a beacon frame, and the idle bandwidth information can be carried by a reserved field in the beacon frame; the first router may listen to various messages broadcast by the second router in real time, and after receiving the idle bandwidth notification message, may determine that the second router is currently capable of providing the idle bandwidth and the amount of bandwidth of the idle bandwidth that can be provided after obtaining the idle bandwidth information from the idle bandwidth notification message.
Second, the second router may send the idle bandwidth information to the first router upon receiving the request message of the first router. The first router may actively broadcast an idle bandwidth request message when accessing the network, where the idle bandwidth request message may be a beacon frame broadcast by the first router according to a preset time period; if the second router has idle bandwidth when receiving the idle bandwidth request message, sending an idle bandwidth response message for the idle bandwidth request message to the first router, where the idle bandwidth response message carries idle bandwidth information of the second router, and after obtaining the idle bandwidth information from the idle bandwidth response message, the first router may determine that the second router can currently provide the idle bandwidth and the amount of bandwidth of the idle bandwidth that can be provided.
In the embodiment of the disclosure, when determining that the second router has the idle bandwidth that can be shared by the first router, the second router may periodically interact with the first router based on the WIFI network, beacon may carry information for establishing relay connection, and after establishing the relay connection according to the interacted beacon frame, the second router may provide the idle bandwidth of the second router to the first router.
It should be noted that, for convenience of description in the embodiments of the present disclosure, at least one router using the spare bandwidth of the second router is referred to as a first router, and the first router does not limit only one router to use the spare bandwidth provided by the second router.
In step 202, the free bandwidth is provided to the first router over the relay connection such that the first router accesses the wide area network by sharing the free bandwidth.
In the embodiment of the present disclosure, when there are multiple first routers, the second router may provide the idle bandwidth to the first routers according to a preset sharing policy. Wherein the sharing policy may include at least one of the following policies:
in the first strategy, the free bandwidth is equally allocated to each first router. For example, if the second router has 10M idle bandwidth and there are four first routers establishing relay connections with the second router, the second router allocates 2.5M idle bandwidth to each first router.
And the second strategy is to allocate idle bandwidth to each first router according to the bandwidth demand proportion. For example, the second router has 9M idle bandwidth, the two first routers establish relay connection with the second router respectively, and the two first routers notify the second router that 5M idle bandwidth and 10M idle bandwidth are needed respectively, then the idle bandwidth ratio is 1:2, and the second router may allocate 3M idle bandwidth and 6M idle bandwidth to the two first routers respectively.
In the third strategy, the idle bandwidth is distributed according to the order of the intimacy relation value with each first router from high to low. For example, the second router has 5M idle bandwidth, the two first routers respectively establish relay connection with the second router, and the affinities of the two first routers and the second router are "intimacy" and "normal", respectively, then the second router may first provide the 5M idle bandwidth to the first router whose intimacy is "intimacy", and then provide the 5M idle bandwidth to the first router whose intimacy is "normal" when the first router no longer needs the idle bandwidth.
In the embodiment of the present disclosure, while providing the idle bandwidth to the first router, the second router itself may also change the idle bandwidth that can be provided according to the change of the access task when accessing the network. For example, only browsing tasks for accessing a web page are initially created on the second router, and more idle bandwidth can be provided to the first router at this time; and when the second router subsequently creates a downloading task which needs to occupy more bandwidth, the idle bandwidth which can be provided for the first router is correspondingly reduced. Therefore, in the embodiment of the present disclosure, the second router may detect whether the idle bandwidth that can be provided by the second router changes according to a set time period, and when the idle bandwidth changes, send an idle bandwidth change instruction to the first router, where the idle bandwidth change instruction may also be a beacon frame, where the idle bandwidth change instruction carries changed idle bandwidth information that the second router can share with the first router, so that the first router may adjust the number of task connections that can be allocated to the idle bandwidth according to the changed idle bandwidth information, thereby reasonably utilizing the idle bandwidth.
In the embodiment of the present disclosure, although the second router has a function of providing the idle bandwidth to the first router, the holder of the second router may not want to share its own idle bandwidth to other routers in some cases, and therefore the second router may set an option whether to enable the bandwidth sharing function, for example, an enable option may be added to a functional interface of the second router, if the enable option is in a selected state, the second router may provide the idle bandwidth to other routers, and if the enable option is in an unselected state, the second router may not provide the idle bandwidth to any routers.
In addition, when the relay connection is disconnected, the embodiments of the present disclosure may also adopt different manners as follows: when the idle bandwidth provided by the second router to the first router is reduced or the idle bandwidth cannot be provided to the first router, a relay connection disconnection request can be sent to the first router, and the first router can disconnect the relay connection with the second router after the current network access task is completed; or, the first router may send a relay connection disconnection request to the second router when idle bandwidth is not needed, and the second router may disconnect the relay connection with the first router after receiving the relay connection disconnection request. The embodiment of the present disclosure does not limit what manner of disconnecting the relay connection is adopted.
By applying the embodiment, in the process of accessing the network by the first router, the second router with the idle bandwidth can establish relay connection with the first router, so that the first router can share the idle bandwidth of the second router to access the network, and because the first router can share the idle bandwidth of the second router in real time, the first router is not limited by the upper limit of the bandwidth, and the network access speed of the first router can be improved while the idle bandwidth of the second router is fully and flexibly utilized.
In conjunction with the embodiments shown in fig. 1 and fig. 2, referring to fig. 3A, a schematic diagram of an application scenario for accessing a network is shown for the present disclosure according to an exemplary embodiment:
FIG. 3A illustrates a server, which may be a video server provided by a video service provider; family A and family B are neighbors, set up router A in family A, after terminal mobile phone 1 and PC (Personal Computer) 1 in family A pass through WIFI access router A, can visit the server in the network, and in the same way, set up router B in family B, after terminal mobile phone 2 and PC2 in family B pass through WIFI access router B, can visit the server in the network.
The router a and the router B may both enable an idle bandwidth sharing function, and when accessing a network, by establishing a relay connection between the router a and the router B, any router can use an idle bandwidth of an opposite router, and a specific implementation process may refer to the description in fig. 1 and fig. 2. As shown in fig. 3B, a schematic diagram of a function setting interface of an exemplary router in an embodiment of the present disclosure is provided, where the interface includes an enabling option of an idle bandwidth sharing function, and after the enabling option is clicked, the router a or the router B may provide its own idle bandwidth to the other.
Assuming that a PC1 in home a wants to download a certain video file from a video server, the available bandwidth of router a in home a is 10M, router a learns that the idle bandwidth that router B can currently provide is 5M by interacting with router B with beacon frame, and router a may establish relay connection with router B. For a video file to be downloaded by PC1, router a sends a download request to the video server, which creates a download task X for the download request, assuming that the download task X includes 9 connections. At this time, the relay connection is already established between the router a and the router B, the router a calculates that the ratio between the available bandwidth 10M of the router a itself and the idle bandwidth 5M provided by the router B is 2:1, and then the first router allocates 6 of the 9 connections to the available bandwidth of the router a itself, and allocates the other 3 connections to the idle bandwidth. Therefore, the first router can complete the downloading of the video file by using the bandwidth of 15M, and the video downloading speed can be improved compared with the downloading of the video file by using the bandwidth available by the first router of 10M.
Corresponding to the foregoing method embodiments for accessing a network, the present disclosure also provides embodiments of an apparatus for accessing a network and a router applied thereto.
As shown in fig. 4, fig. 4 is a block diagram of an apparatus for accessing a network according to an exemplary embodiment of the present disclosure, the apparatus including: a determination unit 410, a connection unit 420 and an access unit 430.
The determining unit 410 is configured to determine, when the first router accesses a wide area network, a second router having a free bandwidth within a specific range to which the first router belongs;
the connection unit 420 configured to establish a relay connection with the second router;
the accessing unit 430 is configured to access the wide area network by sharing the idle bandwidth of the second router based on the established relay connection.
By applying the embodiment, the first router can determine the second router with the idle bandwidth in real time in the process of accessing the network, and establish relay connection with the second router, so that the idle bandwidth of the second router is shared to access the network.
As shown in fig. 5, fig. 5 is a block diagram of another apparatus for accessing a network according to an exemplary embodiment of the present disclosure, where on the basis of the foregoing embodiment shown in fig. 4, the determining unit 410 may include: a notification message receiving sub-unit 411 and a first spare bandwidth obtaining sub-unit 412.
Wherein, the notification message receiving subunit 411 is configured to receive an idle bandwidth notification message broadcasted by the second router within the specific range, where the idle bandwidth notification message is a notification message broadcasted by the second router according to a preset time period when the second router has an idle bandwidth;
the first idle bandwidth obtaining subunit 412 is configured to receive an idle bandwidth notification message broadcasted by the second router within the specific range, where the idle bandwidth notification message is a notification message broadcasted by the second router according to a preset time period when the second router has an idle bandwidth.
By applying the embodiment, when the first router obtains the idle bandwidth through the idle bandwidth notification message broadcasted by the second router according to the preset time period, the first router can obtain the idle bandwidth on the second router which can be shared in real time when accessing the network.
As shown in fig. 6, fig. 6 is a block diagram of another apparatus for accessing a network according to an exemplary embodiment of the present disclosure, where on the basis of the foregoing embodiment shown in fig. 4, the determining unit 410 may include: a request message broadcasting sub-unit 413, a response message receiving sub-unit 414, and a second spare bandwidth obtaining sub-unit 415.
Wherein the request message broadcasting subunit 413 is configured to broadcast an idle bandwidth request message within the specific range;
the response message receiving subunit 414 is configured to receive an idle bandwidth response message sent by the second router, where the idle bandwidth response message is a response message sent by the second router when receiving the idle bandwidth request message and detecting that the second router has an idle bandwidth;
the second idle bandwidth obtaining subunit 415 is configured to determine that the second router has an idle bandwidth after obtaining the idle bandwidth information from the idle bandwidth response message.
By applying the embodiment, when the first router obtains the idle bandwidth of the second router by broadcasting the idle bandwidth request message, the second router can be prevented from regularly broadcasting a large amount of idle bandwidth notification messages, and network transmission resources are saved.
As shown in fig. 7, fig. 7 is a block diagram of another apparatus for accessing a network according to an exemplary embodiment of the present disclosure, where on the basis of any one of the foregoing embodiments shown in fig. 4 to fig. 6, the connection unit 420 may include: a first beacon frame interaction subunit 421 and a first relay connection establishment subunit 422.
The first beacon frame interaction subunit 421 is configured to periodically interact beacon frames with the second router based on a WIFI network;
the first relay connection establishing subunit 422 is configured to establish the relay connection according to the beacon frame.
By applying the embodiment, the relay connection is established between the first router and the second router through the interaction beacon frame by utilizing the characteristic that the routers can transmit beacon frames, so that the first router can be ensured to continuously share the idle bandwidth of the second router.
As shown in fig. 8, fig. 8 is a block diagram of another apparatus for accessing a network according to an exemplary embodiment of the present disclosure, where on the basis of any one of the foregoing embodiments shown in fig. 4 to fig. 7, the accessing unit 430 may include: a bandwidth scaling subunit 431, a task connection number assignment subunit 432, and a network access subunit 433.
Wherein the bandwidth proportion calculation subunit 431 is configured to calculate a bandwidth proportion of an idle bandwidth of the second router and an available bandwidth of the first router;
the task connection number allocation subunit 432 is configured to allocate task connection numbers for the idle bandwidth and the available bandwidth according to the bandwidth proportion;
the network access subunit 433 is configured to access the wide area network through the number of task connections allocated for the idle bandwidth and the available bandwidth.
By applying the embodiment, the first router can allocate the task connection number according to the proportion between the available bandwidth of the first router and the idle bandwidth of the shared second router, so that the bandwidth resource which can be used for accessing the network is reasonably utilized, and the network access speed is further improved.
As shown in fig. 9, fig. 9 is a block diagram of another apparatus for accessing a network according to an exemplary embodiment of the present disclosure, where on the basis of the foregoing embodiment shown in fig. 8, the apparatus may further include: a receiving unit 440 and an adjusting unit 450.
The receiving unit 440 is configured to receive an idle bandwidth change instruction sent by the second router, where the instruction carries information of the changed idle bandwidth shared to the first router when the second router detects that the idle bandwidth changes;
the adjusting unit 450 is configured to adjust the number of task connections allocated to the idle bandwidth and the available bandwidth according to the changed information of the idle bandwidth.
By applying the embodiment, the first router can adjust the idle bandwidth of the second router which can be used in real time according to the idle bandwidth change condition of the second router, so that the idle bandwidth is shared, and the bandwidth use of the second router is preferentially ensured not to be influenced.
As shown in fig. 10, fig. 10 is a block diagram of another apparatus for accessing a network according to an exemplary embodiment of the present disclosure, where the apparatus may further include, on the basis of any one of the foregoing embodiments shown in fig. 4 to fig. 9: a sending unit 460.
The sending unit 460 is configured to send a shared bandwidth notification message to the second router, where the shared bandwidth notification message includes a usage amount of the idle bandwidth occupied by the service of the first router, so that the second router updates the idle bandwidth available on the second router according to the usage amount of the idle bandwidth.
By applying the embodiment, the first router can inform the second router of the usage amount of the idle bandwidth, so that the second router can flexibly provide the available idle bandwidth of the second router to other routers.
The apparatus shown in fig. 4 to 10 described above may be provided in a first router that accesses a network using spare bandwidth provided by a second router.
As shown in fig. 11, fig. 11 is a block diagram of another apparatus for accessing a network according to an exemplary embodiment of the present disclosure, the apparatus including: a connection unit 510 and a supply unit 520.
The connection unit 510 is configured to establish a relay connection with a first router when the second router has an idle bandwidth, where the second router is located within a specific range to which the first router belongs;
the providing unit 520 is configured to provide the spare bandwidth to the first router through the relay connection, so that the first router accesses a wide area network by sharing the spare bandwidth.
By applying the embodiment, in the process of accessing the network by the first router, the second router with the idle bandwidth can establish relay connection with the first router, so that the first router can share the idle bandwidth of the second router to access the network, and because the first router can share the idle bandwidth of the second router in real time, the first router is not limited by the upper limit of the bandwidth, and the network access speed of the first router can be improved while the idle bandwidth of the second router is fully and flexibly utilized.
As shown in fig. 12, fig. 12 is a block diagram of another apparatus for accessing a network according to an exemplary embodiment of the present disclosure, where the apparatus may further include, on the basis of the foregoing embodiment shown in fig. 11: a first transmission unit 530.
The first sending unit 530 is configured to send an idle bandwidth notification message according to a preset time period, so that the first router determines that the second router has an idle bandwidth after obtaining idle bandwidth information from the idle bandwidth notification message.
By applying the embodiment, when the first router obtains the idle bandwidth through the idle bandwidth notification message broadcasted by the second router according to the preset time period, the first router can obtain the idle bandwidth on the second router which can be shared in real time when accessing the network.
As shown in fig. 13, fig. 13 is a block diagram of another apparatus for accessing a network according to an exemplary embodiment of the present disclosure, where on the basis of the foregoing embodiment shown in fig. 11, the apparatus may further include: a first receiving unit 540 and a second transmitting unit 550.
Wherein the first receiving unit 540 is configured to receive an idle bandwidth request message broadcast by the first router;
the second sending unit 550 is configured to send an idle bandwidth response message to the first router, so that the first router determines that the second router has an idle bandwidth after obtaining the idle bandwidth information from the idle bandwidth response message.
By applying the embodiment, when the first router obtains the idle bandwidth of the second router by broadcasting the idle bandwidth request message, the second router can be prevented from regularly broadcasting a large amount of idle bandwidth notification messages, and network transmission resources are saved.
As shown in fig. 14, fig. 14 is a block diagram of another apparatus for accessing a network according to an exemplary embodiment of the present disclosure, where on the basis of any one of the foregoing embodiments shown in fig. 11 to fig. 13, the connection unit 510 may include: a second beacon frame interaction subunit 511 and a second relay connection establishment subunit 512.
The second beacon frame interaction subunit 511 is configured to periodically interact beacon frames with the first router based on a WIFI network;
the second relay connection establishing subunit 512 is configured to establish the relay connection according to the beacon frame.
By applying the embodiment, the relay connection is established between the first router and the second router through the interaction beacon frame by utilizing the characteristic that the routers can transmit beacon frames, so that the first router can be ensured to continuously share the idle bandwidth of the second router.
As shown in fig. 15, fig. 15 is a block diagram of another apparatus for accessing a network according to an exemplary embodiment of the present disclosure, where on the basis of any one of the foregoing embodiments shown in fig. 11 to fig. 14, the apparatus may further include: a detection unit 560 and a third transmission unit 570.
Wherein the detecting unit 560 is configured to detect whether the idle bandwidth changes;
the third sending unit 570 is configured to send an idle bandwidth change instruction to the first router when the idle bandwidth changes, where the instruction carries information of the changed idle bandwidth shared by the second router to the first router.
By applying the embodiment, the second router informs the first router of the idle bandwidth change condition of the second router through the idle bandwidth change instruction, so that the first router can adjust the idle bandwidth of the second router which can be used in real time, and the second router preferentially ensures that the bandwidth use of the second router is not influenced while sharing the idle bandwidth.
As shown in fig. 16, fig. 16 is a block diagram of another apparatus for accessing a network according to an exemplary embodiment of the present disclosure, where on the basis of any one of the foregoing embodiments shown in fig. 11 to fig. 15, the apparatus may further include: a second receiving unit 580 and an updating unit 590.
The second receiving unit 580 is configured to receive a shared bandwidth notification message sent by the first router, where the shared bandwidth notification message includes a usage amount of the idle bandwidth occupied by the service of the first router;
an updating unit 590 configured to update the idle bandwidth available on the second router according to the usage amount of the idle bandwidth.
By applying the embodiment, the first router can inform the second router of the usage amount of the idle bandwidth, so that the second router can flexibly provide the available idle bandwidth of the second router to other routers.
As shown in fig. 17, fig. 17 is a block diagram of another apparatus for accessing a network according to an exemplary embodiment of the present disclosure, where on the basis of any one of the foregoing embodiments shown in fig. 11 to fig. 16, the providing unit 520 may include: a bandwidth provisioning policy subunit 521.
The bandwidth providing policy subunit 521 is configured to, when there are multiple first routers, provide the idle bandwidth to the first routers according to a preset sharing policy; wherein,
the sharing policy may include at least one of the following policies:
allocating the idle bandwidth equally for each first router;
allocating the idle bandwidth to each first router according to a bandwidth demand proportion;
and allocating the idle bandwidth according to the order of the intimacy value with each first router from high to low.
By applying the embodiment, when there are a plurality of first routers, the second router can provide the idle bandwidth to the plurality of first routers according to the preset sharing policy, so that the idle bandwidth can be flexibly allocated according to the sharing requirement.
The apparatus shown in fig. 11 to 17 described above may be provided in a second router that provides spare bandwidth to a first router of a visited network.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. One of ordinary skill in the art can understand and implement it without inventive effort.
Correspondingly, the present disclosure also provides a router, which is used as a first router and comprises a processor; a memory for storing processor-executable instructions; wherein the processor is configured to:
when accessing a wide area network, determining a second router with idle bandwidth in a specific range to which the first router belongs;
establishing a relay connection with the second router;
accessing the wide area network by sharing the idle bandwidth of the second router based on the established relay connection.
Correspondingly, the present disclosure also provides another router, which is a second router and comprises a processor; a memory for storing processor-executable instructions; wherein the processor is configured to:
when the second router has idle bandwidth, establishing relay connection with a first router, wherein the second router is located in a specific range to which the first router belongs;
providing the spare bandwidth to the first router over the relay connection to enable the first router to access a wide area network by sharing the spare bandwidth.
As shown in fig. 18, fig. 18 is a schematic structural diagram illustrating an apparatus 1800 for accessing a network according to an exemplary embodiment. For example, the apparatus 1800 may be provided as a routing device. Referring to fig. 18, the apparatus 1800 includes a processing component 1822 that further includes one or more processors and memory resources, represented by memory 1832, for storing instructions, such as applications, that are executable by the processing component 1822. The application programs stored in memory 1832 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1822 is configured to execute instructions to perform the above-described method of accessing a web page.
The apparatus 1800 may also include a power component 1826 configured to perform power management for the apparatus 1800, a wired or wireless network interface 1850 configured to connect the apparatus 1800 to a network, and an input-output (I/O) interface 1858. The apparatus 1800 may operate based on an operating system stored in the memory 1832, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. 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 will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (30)
1. A method for accessing a network, the method being applied to a first router, the method comprising:
when accessing a wide area network, determining a second router with idle bandwidth in a specific range to which the first router belongs;
establishing a relay connection with the second router;
accessing the wide area network by sharing the idle bandwidth of the second router based on the established relay connection.
2. The method of claim 1, wherein the determining that the first router belongs to the second router having idle bandwidth in the specific range comprises:
receiving an idle bandwidth notification message broadcasted by the second router within the specific range, wherein the idle bandwidth notification message is a notification message broadcasted by the second router according to a preset time period when the second router has idle bandwidth;
determining that the second router has an idle bandwidth after obtaining idle bandwidth information from the idle bandwidth notification message.
3. The method of claim 1, wherein the determining that the first router belongs to the second router having idle bandwidth in the specific range comprises:
broadcasting an idle bandwidth request message within the specific range;
receiving an idle bandwidth response message sent by the second router, wherein the idle bandwidth response message is a response message sent by the second router when the second router receives the idle bandwidth request message and detects that the second router has idle bandwidth;
determining that the second router has idle bandwidth after obtaining idle bandwidth information from the idle bandwidth response message.
4. The method of claim 1, wherein the establishing the relay connection with the second router comprises:
regularly exchanging beacon frames with the second router based on the wireless fidelity (WIFI) network;
and establishing the relay connection according to the beacon frame.
5. The method of claim 1, wherein the accessing the wide area network by sharing the idle bandwidth of the second router comprises:
calculating a bandwidth ratio of an idle bandwidth of the second router to an available bandwidth of the first router;
allocating task connection numbers for idle bandwidth and available bandwidth according to the bandwidth proportion;
accessing the wide area network via the number of task connections allocated for the spare and available bandwidths.
6. The method of claim 5, further comprising:
receiving an idle bandwidth change instruction sent by the second router, wherein the instruction carries information of the changed idle bandwidth shared to the first router when the second router detects that the idle bandwidth changes;
and adjusting the number of task connections allocated to the idle bandwidth and the available bandwidth according to the changed information of the idle bandwidth.
7. The method of any of claims 1 to 6, wherein after the accessing the wide area network by sharing the idle bandwidth of the second router, the method further comprises:
and sending a shared bandwidth notification message to the second router, wherein the shared bandwidth notification message contains the usage amount of the idle bandwidth occupied by the service of the first router, so that the second router updates the available idle bandwidth on the second router according to the usage amount of the idle bandwidth.
8. A method for accessing a network, applied to a second router, the method comprising:
when the second router has idle bandwidth, establishing relay connection with a first router, wherein the second router is located in a specific range to which the first router belongs;
providing the spare bandwidth to the first router over the relay connection to enable the first router to access a wide area network by sharing the spare bandwidth.
9. The method of claim 8, wherein before establishing the relay connection with the first router, the method further comprises:
and sending an idle bandwidth notification message according to a preset time period, so that the first router determines that the second router has idle bandwidth after acquiring idle bandwidth information from the idle bandwidth notification message.
10. The method of claim 8, wherein before establishing the relay connection with the first router, the method further comprises:
receiving an idle bandwidth request message broadcast by the first router;
and sending an idle bandwidth response message to the first router, so that the first router determines that the second router has idle bandwidth after acquiring the idle bandwidth information from the idle bandwidth response message.
11. The method of claim 8, wherein establishing the relay connection with the first router comprises:
regularly exchanging beacon frames with the first router based on a wireless fidelity (WIFI) network;
and establishing the relay connection according to the beacon frame.
12. The method of claim 8, further comprising:
detecting whether the idle bandwidth changes;
and when the idle bandwidth changes, sending an idle bandwidth change instruction to the first router, wherein the instruction carries information of the changed idle bandwidth shared by the second router to the first router.
13. The method of claim 8, further comprising:
receiving a shared bandwidth notification message sent by the first router, wherein the shared bandwidth notification message includes the usage amount of the idle bandwidth occupied by the service of the first router;
and updating the available idle bandwidth on the second router according to the usage amount of the idle bandwidth.
14. The method of any of claims 8 to 13, wherein said providing the free bandwidth to the first router via the relay connection comprises:
when a plurality of first routers exist, providing the idle bandwidth for the first routers according to a preset sharing strategy; wherein,
the sharing policy includes at least one of the following policies:
allocating the idle bandwidth equally for each first router;
allocating the idle bandwidth to each first router according to a bandwidth demand proportion;
and allocating the idle bandwidth according to the order of the intimacy value with each first router from high to low.
15. An apparatus for accessing a network, the apparatus being applied to a first router, the apparatus comprising:
a determining unit, configured to determine, when the first router accesses a wide area network, a second router having an idle bandwidth within a specific range to which the first router belongs;
a connection unit, configured to establish a relay connection with the second router;
an accessing unit, configured to access the wide area network by sharing an idle bandwidth of the second router based on the established relay connection.
16. The apparatus of claim 15, wherein the determining unit comprises:
a notification message receiving subunit, configured to receive an idle bandwidth notification message broadcasted by the second router within the specific range, where the idle bandwidth notification message is a notification message broadcasted by the second router according to a preset time period when the second router has an idle bandwidth;
and the first idle bandwidth obtaining subunit is configured to determine that the second router has an idle bandwidth after obtaining the idle bandwidth information from the idle bandwidth notification message.
17. The apparatus of claim 15, wherein the determining unit comprises:
a request message broadcasting subunit, configured to broadcast an idle bandwidth request message within the specific range;
a response message receiving subunit, configured to receive an idle bandwidth response message sent by the second router, where the idle bandwidth response message is a response message sent by the second router when receiving the idle bandwidth request message and detecting that the second router has an idle bandwidth;
and the second idle bandwidth obtaining subunit is configured to determine that the second router has an idle bandwidth after obtaining the idle bandwidth information from the idle bandwidth response message.
18. The apparatus of claim 15, wherein the connection unit comprises:
the first beacon frame interaction subunit is used for regularly interacting beacon frames with the second router based on a WIFI network;
and the first relay connection establishing subunit is used for establishing the relay connection according to the beacon frame.
19. The apparatus of claim 15, wherein the access unit comprises:
a bandwidth ratio calculating subunit, configured to calculate a bandwidth ratio between an idle bandwidth of the second router and an available bandwidth of the first router;
the task connection number distribution subunit is used for respectively distributing the task connection numbers for the idle bandwidth and the available bandwidth according to the bandwidth proportion;
and the network access subunit is used for accessing the wide area network through the task connection number allocated to the idle bandwidth and the available bandwidth.
20. The apparatus of claim 19, further comprising:
a receiving unit, configured to receive an idle bandwidth change instruction sent by the second router, where the instruction carries information of an idle bandwidth after change, which is shared to the first router when the second router detects that the idle bandwidth changes;
and the adjusting unit is used for adjusting the task connection number allocated to the idle bandwidth and the available bandwidth according to the changed information of the idle bandwidth.
21. The apparatus of any one of claims 15 to 20, further comprising:
a sending unit, configured to send a shared bandwidth notification message to the second router, where the shared bandwidth notification message includes a usage amount of the idle bandwidth occupied by the service of the first router, so that the second router updates the idle bandwidth available on the second router according to the usage amount of the idle bandwidth.
22. An apparatus for accessing a network, the apparatus being applied to a second router, the apparatus comprising:
a connection unit, configured to establish a relay connection with a first router when the second router has an idle bandwidth, where the second router is located within a specific range to which the first router belongs;
a providing unit, configured to provide the idle bandwidth to the first router through the relay connection, so that the first router accesses a wide area network by sharing the idle bandwidth.
23. The apparatus of claim 22, further comprising:
a first sending unit, configured to send an idle bandwidth notification message according to a preset time period, so that the first router determines that the second router has idle bandwidth after obtaining idle bandwidth information from the idle bandwidth notification message.
24. The apparatus of claim 22, further comprising:
a first receiving unit, configured to receive an idle bandwidth request message broadcast by the first router;
a second sending unit, configured to send an idle bandwidth response message to the first router, so that the first router determines that the second router has an idle bandwidth after obtaining the idle bandwidth information from the idle bandwidth response message.
25. The apparatus of claim 22, wherein the connection unit comprises:
the second beacon frame interaction subunit is used for regularly interacting beacon frames with the first router based on a WIFI network;
and the second relay connection establishing subunit is used for establishing the relay connection according to the beacon frame.
26. The apparatus of claim 22, further comprising:
a detecting unit, configured to detect whether the idle bandwidth changes;
and a third sending unit, configured to send an idle bandwidth change instruction to the first router when the idle bandwidth changes, where the instruction carries information of the changed idle bandwidth shared by the second router to the first router.
27. The apparatus of claim 22, further comprising:
a second receiving unit, configured to receive a shared bandwidth notification message sent by the first router, where the shared bandwidth notification message includes a usage amount of the idle bandwidth occupied by a service of the first router;
and the updating unit is used for updating the available idle bandwidth on the second router according to the usage amount of the idle bandwidth.
28. The apparatus according to any one of claims 22 to 27, wherein the providing unit comprises:
a bandwidth providing policy subunit, configured to, when there are multiple first routers, provide the idle bandwidth to the first routers according to a preset sharing policy;
wherein,
the sharing policy includes at least one of the following policies:
allocating the idle bandwidth equally for each first router;
allocating the idle bandwidth to each first router according to a bandwidth demand proportion;
and allocating the idle bandwidth according to the order of the intimacy value with each first router from high to low.
29. An apparatus for accessing a network, the apparatus being applied to a first router, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when accessing a wide area network, determining a second router with idle bandwidth in a specific range to which the first router belongs;
establishing a relay connection with the second router;
accessing the wide area network by sharing the idle bandwidth of the second router based on the established relay connection.
30. An apparatus for accessing a network, the apparatus being applied to a second router, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when the second router has idle bandwidth, establishing relay connection with a first router, wherein the second router is located in a specific range to which the first router belongs;
providing the spare bandwidth to the first router over the relay connection to enable the first router to access a wide area network by sharing the spare bandwidth.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410478917.2A CN104243266A (en) | 2014-09-18 | 2014-09-18 | Method and device for network access |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410478917.2A CN104243266A (en) | 2014-09-18 | 2014-09-18 | Method and device for network access |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104243266A true CN104243266A (en) | 2014-12-24 |
Family
ID=52230660
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410478917.2A Pending CN104243266A (en) | 2014-09-18 | 2014-09-18 | Method and device for network access |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104243266A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN105721455A (en) * | 2016-01-28 | 2016-06-29 | 北京小米移动软件有限公司 | Method and device for connecting routing equipment |
CN105959240A (en) * | 2016-04-28 | 2016-09-21 | 乐视控股(北京)有限公司 | Bandwidth sharing method and device |
CN106533983A (en) * | 2015-09-15 | 2017-03-22 | 联想(新加坡)私人有限公司 | Apparatus, method, and program product for data bandwidth optimization |
WO2017181626A1 (en) * | 2016-04-19 | 2017-10-26 | 中兴通讯股份有限公司 | Shared neighborhood network establishing method, use method, and shared neighborhood network system |
CN108566442A (en) * | 2018-06-29 | 2018-09-21 | 上海连尚网络科技有限公司 | A kind of method and apparatus for providing network connection |
CN110278232A (en) * | 2018-03-16 | 2019-09-24 | 腾讯科技(深圳)有限公司 | A kind of method and device, the system of the downloading of control data |
CN114430373A (en) * | 2021-12-22 | 2022-05-03 | 天翼云科技有限公司 | A method and device for dynamically adjusting bandwidth |
CN114630390A (en) * | 2020-12-10 | 2022-06-14 | 中兴通讯股份有限公司 | A kind of automatic cooperation method, equipment and storage medium of network equipment |
CN116112316A (en) * | 2023-01-06 | 2023-05-12 | 深圳感臻智能股份有限公司 | Equipment communication method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090252088A1 (en) * | 2008-04-02 | 2009-10-08 | Rao Sudarshan A | Method for routing via access terminals |
CN102685815A (en) * | 2011-03-11 | 2012-09-19 | 国基电子(上海)有限公司 | Wireless network equipment and bandwidth sharing method thereof |
CN103957527A (en) * | 2014-04-22 | 2014-07-30 | 常州市西屋自动化有限公司 | Wireless access equipment and method for user network bandwidth dynamic allocation |
CN104038968A (en) * | 2013-03-08 | 2014-09-10 | 中国移动通信集团广东有限公司 | Method and apparatus for controlling electronic device to share network bandwidth |
-
2014
- 2014-09-18 CN CN201410478917.2A patent/CN104243266A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090252088A1 (en) * | 2008-04-02 | 2009-10-08 | Rao Sudarshan A | Method for routing via access terminals |
CN102685815A (en) * | 2011-03-11 | 2012-09-19 | 国基电子(上海)有限公司 | Wireless network equipment and bandwidth sharing method thereof |
CN104038968A (en) * | 2013-03-08 | 2014-09-10 | 中国移动通信集团广东有限公司 | Method and apparatus for controlling electronic device to share network bandwidth |
CN103957527A (en) * | 2014-04-22 | 2014-07-30 | 常州市西屋自动化有限公司 | Wireless access equipment and method for user network bandwidth dynamic allocation |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106533983A (en) * | 2015-09-15 | 2017-03-22 | 联想(新加坡)私人有限公司 | Apparatus, method, and program product for data bandwidth optimization |
EP3145123B1 (en) * | 2015-09-15 | 2020-05-06 | Lenovo (Singapore) Pte. Ltd. | Apparatus, method and program product for data bandwidth optimization |
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 |
WO2017107650A1 (en) * | 2015-12-22 | 2017-06-29 | 北京奇虎科技有限公司 | Method for realizing bandwidth sharing between routers, and router |
CN105721455A (en) * | 2016-01-28 | 2016-06-29 | 北京小米移动软件有限公司 | Method and device for connecting routing equipment |
WO2017181626A1 (en) * | 2016-04-19 | 2017-10-26 | 中兴通讯股份有限公司 | Shared neighborhood network establishing method, use method, and shared neighborhood network system |
CN107306233A (en) * | 2016-04-19 | 2017-10-31 | 中兴通讯股份有限公司 | Friendly neighbour shares network creating method, application method and friendly neighbour and shares network system |
CN105959240A (en) * | 2016-04-28 | 2016-09-21 | 乐视控股(北京)有限公司 | Bandwidth sharing method and device |
CN110278232B (en) * | 2018-03-16 | 2021-08-17 | 腾讯科技(深圳)有限公司 | Method, device and system for controlling data downloading |
CN110278232A (en) * | 2018-03-16 | 2019-09-24 | 腾讯科技(深圳)有限公司 | A kind of method and device, the system of the downloading of control data |
CN108566442A (en) * | 2018-06-29 | 2018-09-21 | 上海连尚网络科技有限公司 | A kind of method and apparatus for providing network connection |
CN108566442B (en) * | 2018-06-29 | 2021-12-07 | 上海尚往网络科技有限公司 | Method and equipment for providing network connection |
CN114630390A (en) * | 2020-12-10 | 2022-06-14 | 中兴通讯股份有限公司 | A kind of automatic cooperation method, equipment and storage medium of network equipment |
CN114630390B (en) * | 2020-12-10 | 2025-02-28 | 中兴通讯股份有限公司 | Automatic collaboration method, device and storage medium of network devices |
CN114430373A (en) * | 2021-12-22 | 2022-05-03 | 天翼云科技有限公司 | A method and device for dynamically adjusting bandwidth |
CN116112316A (en) * | 2023-01-06 | 2023-05-12 | 深圳感臻智能股份有限公司 | Equipment communication method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104243266A (en) | Method and device for network access | |
KR20190066629A (en) | A location area update method of a user terminal, an access network entity, a user terminal and a core network entity | |
US20140153481A1 (en) | Cloud-based telecommunications infrastructure | |
CN109792631B (en) | Network congestion control method, device and system | |
JP6995976B2 (en) | Core network access method by terminal, base station and terminal | |
EP2863684A1 (en) | Mobile communication network distribution system and mobile communication network distribution method | |
RU2016116861A (en) | FLEXIBLE DETERMINED COMMUNICATION NETWORK | |
KR101884404B1 (en) | Fog Computing Operation System having a Centralized Control Architecture Server and Method for controlling the same | |
US11638138B2 (en) | Device-to-device content providing method | |
JP2017514401A (en) | D2D communication discovery method, apparatus and system | |
US10051561B2 (en) | Methods and nodes for M2M communication | |
CN112511598A (en) | Screen projection display method, intelligent terminal and storage medium | |
CN106465086A (en) | Adaptive D2D discovery operations | |
EP3150013B1 (en) | Discovery of multi-hop capabilities and routing on a per link basis | |
US11974363B2 (en) | Communication method, communication apparatus, and terminal device | |
US10051456B2 (en) | Near field communication discovery method, apparatus and system | |
CN110868762B (en) | Data stream processing method, device and system | |
US10805838B2 (en) | Method and device for obtaining resources and information of SDN networks of different operators | |
CN114731567A (en) | Method, apparatus and computer readable medium for controlling D2D routing | |
US11595485B2 (en) | Systems and methods for demand-based dynamic service provisioning in an edge computing system | |
KR102300272B1 (en) | IP address setting method and device | |
EP3200550A1 (en) | Method for sharing resources between mobile devices thanks to a location tracking server | |
US20180041952A1 (en) | Access Control Node, Access Device, Tethering Device, and Methods Therein, for Providing Wireless Access | |
WO2018206999A1 (en) | Handling of data limits in machine-to-machine communications network | |
CN116647896A (en) | Network element determination method, device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20141224 |
|
RJ01 | Rejection of invention patent application after publication |