CN104639609B - Network share method and device - Google Patents

Network share method and device Download PDF

Info

Publication number
CN104639609B
CN104639609B CN201410852697.5A CN201410852697A CN104639609B CN 104639609 B CN104639609 B CN 104639609B CN 201410852697 A CN201410852697 A CN 201410852697A CN 104639609 B CN104639609 B CN 104639609B
Authority
CN
China
Prior art keywords
data
network
terminal
sent
request
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.)
Active
Application number
CN201410852697.5A
Other languages
Chinese (zh)
Other versions
CN104639609A (en
Inventor
王伯天
王广健
姜子阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410852697.5A priority Critical patent/CN104639609B/en
Publication of CN104639609A publication Critical patent/CN104639609A/en
Application granted granted Critical
Publication of CN104639609B publication Critical patent/CN104639609B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The disclosure belongs to field of computer technology about a kind of network share method and device.The method is applied in router, and the router is by providing shared network to using terminal after shared terminal authorization, comprising: receives the request that the using terminal is sent;Reply data packet is generated according to the request, and the propelling data that push server is sent is added to the reply data packet;The reply data packet after addition is sent to the using terminal, the using terminal is used to show the reply data and the propelling data that the reply data packet after addition includes.The disclosure, which can solve the idle Internet resources of family, to be used for the public, and the low problem of utilization rate can reach the effect for improving the idle network resource utilization of family.

Description

Network share method and device
Technical field
This disclosure relates to field of computer technology, in particular to a kind of network share method and device.
Background technique
Most of terminals have the function of accessing network, to provide network service by the network accessed for user.Base In WiFi (Widely Fidelity, Wireless Fidelity) network for free and with roomy characteristic, user, which generally selects, accesses terminal WiFi network is surfed the Internet by WiFi network.
Existing Wi-Fi hotspot is mainly provided by company, social public place and family.Wherein, the WiFi heat that family provides Point quantity is most and distributed more widely, and after sharing WiFi network by shared Wi-Fi hotspot due to family, WiFi network is shared Person can not obtain any interests, can excessively cause the network speed of WiFi network to become due to connecting the using terminal of the WiFi network instead Slowly, therefore, the sharer of WiFi network is not high to the enthusiasm of shared WiFi network, the Internet resources for causing family idle It can not be used for the public, the utilization rate of Internet resources is low.
Summary of the invention
To solve the problems, such as the relevant technologies, present disclose provides a kind of network share method and devices.
According to the first aspect of the embodiments of the present disclosure, a kind of network share method is provided, is used in router, the router By providing shared network after shared terminal authorization to using terminal, comprising:
Receive the request that the using terminal is sent;
Reply data packet is generated according to the request, and the propelling data that push server is sent is added to the response Data packet;
The reply data packet after addition is sent to the using terminal, after the using terminal is for showing addition The reply data packet reply data and the propelling data that include.
Optionally, described that reply data packet is generated according to the request, and the propelling data that push server is sent is added Add to the reply data packet, comprising:
If the request is request of data, the request of data is transmitted to network server, receives the network clothes The reply data that business device is fed back according to the request of data, and the propelling data that the push server is sent is received, it will The propelling data and the reply data are added to the reply data packet;
If the request is access request, reply data is generated, and receives the described of push server transmission and pushes away Data are sent, the reply data and the propelling data are added to the reply data packet.
Optionally, the method, further includes:
The non-private data in the request of data is extracted, the non-private data includes that the using terminal to be requested Reply data keyword;
The non-private data is sent to the push server, the push server is used for according to the router Location information and the keyword select the propelling data, send the propelling data to the router.
Optionally, the method, further includes:
After the propelling data is added to the reply data packet, successful notification message will be added and be sent to institute State push server, the push server is used to count the quantity for all notification messages that the router is sent, and according to The quantity calculates the numerical value for exchanging resource, and the exchange resource is after the using terminal shows the propelling data, by institute Push server is stated to be transferred in account corresponding to the shared terminal.
Optionally, the method, further includes:
If the propelling data be push link, receive the using terminal trigger it is described push link after send push away Send content acquisition request;
The push content acquisition request is sent to the push server, and receives the push server according to institute The push content-data packet of push content acquisition request feedback is stated, the push server is used to count what the router was sent The triggering times and triggering moment of all push links, and calculated according to the triggering times and the triggering moment and exchange resource Numerical value, the exchange resource is transferred to institute after the using terminal shows the propelling data, by the push server It states in account corresponding to shared terminal.
Optionally, the method, further includes:
Open the network share function of the router;
Receive the network configuration instruction that the shared terminal is sent;
Opening time, the shut-in time, bandwidth, the network port of the shared network are configured according to network configuration instruction At least one of.
According to the second aspect of an embodiment of the present disclosure, a kind of network sharing device is provided, is used in router, the router By providing shared network after shared terminal authorization to using terminal, comprising:
Request receiving module is configured as receiving the request that the using terminal is sent;
Propelling data adding module is configured as generating answer number according to the received request of the request receiving module The reply data packet is added to according to packet, and by the propelling data that push server is sent;
Propelling data processing module is configured as the reply data packet after adding the propelling data adding module Be sent to the using terminal, the using terminal be used to show reply data that the reply data packet after addition includes with The propelling data.
Optionally, the propelling data adding module, comprising:
First processing submodule is configured as that the request of data is transmitted to net when the request is request of data Network server receives the reply data that the network server is fed back according to the request of data, and receives the Push Service The propelling data that device is sent, is added to the reply data packet for the propelling data and the reply data;
Second processing submodule is configured as generating reply data, and described in reception when the request is access request The propelling data that push server is sent, is added to the reply data for the reply data and the propelling data Packet.
Optionally, the propelling data adding module, further includes:
Non- private data extracting sub-module is configured as extracting the non-private data in the request of data, described non-hidden Private data include the keyword of the reply data to be requested of the using terminal;
Non- private data sending submodule is configured as extracting the non-private data extracting sub-module described non-hidden Private data are sent to the push server, and the push server is used for location information and the pass according to the router Key word selects the propelling data, sends the propelling data to the router.
Optionally, the propelling data adding module, further includes:
Notification message sending submodule is configured as after the propelling data is added to the reply data packet, Successful notification message will be added and be sent to the push server, the push server is sent for counting the router All notification messages quantity, and according to the quantity calculate exchange resource numerical value, the exchange resource is in the use After terminal shows the propelling data, it is transferred in account corresponding to the shared terminal as the push server.
Optionally, the propelling data adding module, further includes:
Acquisition request receiving submodule is configured as receiving described using eventually when the propelling data is push link The push content acquisition request sent after the end triggering push link;
Acquisition request sending submodule is configured as the push content acquisition request being sent to the Push Service Device, and it is anti-according to the received push content acquisition request of the acquisition request receiving submodule to receive the push server The push content-data packet of feedback, the push server are used to count the triggering time for all push link that the router is sent Several and triggering moment, and the numerical value for exchanging resource, the exchange resource are calculated according to the triggering times and the triggering moment After the using terminal shows the propelling data, account corresponding to the shared terminal is transferred to as the push server In family.
Optionally, described device, further includes:
Network share opening module is configured as opening the network share function of the router;
Configuration-direct receiving module is configured as receiving the network configuration instruction that the shared terminal is sent;
Shared Network conf iotag module, is configured as being referred to according to the received network configuration of the configuration-direct receiving module Enable at least one of the opening time for configuring the shared network, shut-in time, bandwidth, the network port.
According to the third aspect of an embodiment of the present disclosure, a kind of network sharing device is provided, is used in router, the router It is connected by the shared network that shared terminal provides with using terminal, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Receive the request that the using terminal is sent;
Reply data packet is generated according to the request, and the propelling data that push server is sent is added to the response Data packet;
The reply data packet after addition is sent to the using terminal, after the using terminal is for showing addition The reply data packet reply data and the propelling data that include.
The technical scheme provided by this disclosed embodiment can include the following benefits:
The request sent by receiving using terminal;Reply data packet is generated according to request, and push server is sent Propelling data be added to reply data packet;Reply data packet after addition is sent to using terminal, using terminal is for showing The reply data and propelling data that reply data packet after showing addition includes allow the user of using terminal to receive push Data are cost, obtain the idle Internet usage power of family, solving the idle Internet resources of family can not make for the public With the low problem of utilization rate has achieved the effect that improve the idle network resource utilization of family.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited It is open.
Detailed description of the invention
The drawings herein are incorporated into the specification and constitutes a part of present disclosure specification, shows and meets the disclosure Embodiment, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of network share method shown according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of the network share method shown according to another exemplary embodiment;
Fig. 3 is a kind of block diagram of network sharing device shown according to an exemplary embodiment;
Fig. 4 is a kind of block diagram of the network sharing device shown according to another exemplary embodiment;
Fig. 5 is a kind of block diagram of device for network share shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of network share method shown according to an exemplary embodiment, the network share method Applied in router, the router is by providing shared network to using terminal, as shown in Figure 1, the net after shared terminal authorization Network sharing method includes the following steps.
In a step 101, the request that using terminal is sent is received.
In a step 102, reply data packet is generated according to request, and the propelling data that push server is sent is added to The reply data packet.
In step 103, the reply data packet after addition is sent to using terminal, the using terminal is for showing addition The reply data and propelling data that the reply data packet afterwards includes.
The propelling data can be media information, such as news, publicity pictures.
In conclusion the network share method that the disclosure provides, the request sent by receiving using terminal;According to request Reply data packet is generated, and the propelling data that push server is sent is added to reply data packet;By the answer number after addition It is sent to using terminal according to packet, using terminal is used to show the reply data that the reply data packet after addition includes and push number According to, allow the user of using terminal to receive propelling data as cost, obtains the idle Internet usage of family and weigh, solution The idle Internet resources of Jue Liao family can not use for the public, the low problem of utilization rate, reached and improved the idle network of family The effect of resource utilization.
Fig. 2 is a kind of flow chart of the network share method shown according to another exemplary embodiment, the network share side Method is applied in router, and the router is by providing shared network to using terminal after shared terminal authorization, as shown in Fig. 2, should Network share method includes the following steps.
In step 201, the network share function of router is opened.
The Internet resources of family are generally sufficient to meet the needs of domestic consumer, when user does not need to occupy excessive network money When source, user can open the network share function of router by shared terminal, and the network resources locating that family leaves unused is given Other users.Wherein, shared terminal is the terminal, such as computer, tablet computer etc. for authorizing router to share home network.
In one possible implementation, the network share function of router can be opened by following three kinds of methods:
1) user directly opens the network share function of router by shared terminal;Or,
2) user is set by opening time of the shared terminal to the network share function of router, is opened when reaching this When opening the time, router automatically turns on network share function;Or,
3) when router detects currently less to the occupancy of Internet resources, network share function is automatically turned on.
After opening network share function, router generates a shared network on the basis of original home network, User is surfed the Internet by original home network, and other users are surfed the Internet by shared network.Wherein, the shared network and original The network segment of some home networks is different, and other users can not access original home network by shared network, to ensure house The online quality of the front yard network user, achievees the purpose that Network Isolation.
In step 202, the network configuration instruction that shared terminal is sent is received.
User can send network configuration instruction to router by shared terminal, and network configuration instruction is used to indicate pair The configuration mode of shared network.Network configuration instruction is user on shared network configuration interface to the parameters of shared network The instruction generated after being configured, the shared network configuration interface display is in shared terminal.Corresponding, router receives the net Network configuration-direct.
In step 203, opening time, the shut-in time, bandwidth, network of shared network are configured according to network configuration instruction At least one of port.
Router can instruct the configuration information for including to altogether after receiving network configuration instruction according to the network configuration Network is enjoyed to be configured, the configuration information can be opening time of shared network, the shut-in time, bandwidth, in the network port It is at least one.
For example, the configuration information that the network configuration instruction that router is connected to includes is " the opening time: 06:00:00, closing Time: 20:00, bandwidth 2MHz ", then the opening time for sharing network is set 6:00 AM by router, and the shut-in time sets It is set at 8 points at night, bandwidth is set as 2MHz.
In step 204, the request that using terminal is sent is received.
Other users can search the shared network in the coverage area of shared network, and be used by other users Using terminal to shared network send request, the using terminal be can search for router offer shared network terminal, It can be the terminals such as tablet computer, mobile phone.
Using terminal can send access request to router, and obtaining router allows the using terminal to access shared network License after, be connected into the shared network.After being connected into the shared network, using terminal can share network by this and take to network Business device sends request of data, which can be web site url request, account log on request etc..Corresponding, router connects Receive the request of data that using terminal is sent by the shared network.
In step 205, if request is access request, reply data is generated, and receives pushing away for push server transmission Data are sent, reply data and propelling data are added to reply data packet, execute step 207.
Router generates reply data, the reply data is for referring to after the access request for receiving using terminal transmission Show that the using terminal for allowing to send access request accesses shared network.
The propelling data of push server transmission is previously stored in router, which can be with the position of router Confidence manner of breathing closes.For example, the location information of router is Hangzhou, then push server selects Hangzhou West Lake according to the location information Landscape information be sent to router as propelling data.
After receiving access request, the reply data of generation and pre-stored propelling data are added to response by router Data packet, to generate the reply data packet after addition.
In step 206, if request is request of data, request of data is transmitted to network server, receives network clothes The reply data that business device is fed back according to the request of data, and the propelling data of push server transmission is received, by the propelling data Reply data packet is added to reply data.
If the request is request of data, after data request packet is transmitted to network server by router, net can receive The reply data packet that network server is fed back according to the request of data.For example, request of data has included the searching request of " flowers ", then The reply data packet of network server feedback contains the information such as type, picture, the price of flowers.
Router can also receive Push Service after receiving the reply data that network server is fed back according to request of data The propelling data that device is sent, wherein the generation step of the propelling data is as follows:
1) the non-private data in request of data is extracted, which includes the answer number to be requested of using terminal According to keyword.
Private data and non-private data are typically included in the request of data that using terminal is sent, wherein private data packet The personal information for including user, can be telephone number, password, ID card information etc., and non-private data includes that using terminal is wanted The keyword of the reply data of request can be website, word of request search of hyperlink request etc., and router can extract number According to the non-private data in request.
For example, in one possible implementation, router can only extract the URL (Uniform in request of data Resoure Locator, uniform resource locator) data, which is determined as non-private data, to ensure use The safety of the personal information of the user of terminal.
2) non-private data is sent to push server, the push server be used for according to the location information of router and The keyword selects propelling data, sends the propelling data to the router.
Router, can be by the location information of router and the non-privacy after obtaining the non-private data in request of data Data are sent to push server.Push server can be according to the keyword in the location information and non-private data of router Propelling data is selected, sends the propelling data to the router.
For example, the location information of router indicates that the router is located at Suzhou, keyword is " landscape ", then push server The recommended information of Suzhou gardens be can choose as propelling data, send the propelling data to router.
Wherein, the location information of router is to be sent to push server by router.For example, router can be preparatory Location information is sent to push server;Or, router can send out location information when sending non-private data for the first time Give push server;Or, location information all can be sent to Push Service when sending non-private data every time by router Device, push server store location information.
If push server needs storage location information, the identification information of the router can be sent to push by router Server, by the push server by the identification information of the router it is corresponding with location information storage.At this point, router is obtaining After non-private data in request of data, do not need that the location information of router is sent to push server again, but to pushing away Server is sent to send the non-private data for carrying the identification information of router.Push server reads according to identification information and corresponds to Location information, and propelling data is selected according to the keyword that location information and non-private data include, sending to router should Propelling data.
After obtaining propelling data and reply data packet, propelling data can be added to reply data packet by router In.
In one possible implementation, it after propelling data to be added to the reply data packet, will add successfully Notification message be sent to push server, the push server be used for count router transmission all notification messages number Amount, and the numerical value for exchanging resource is calculated according to the quantity, which is taken after using terminal shows propelling data by push Business device is transferred in account corresponding to shared terminal.
Router can also will add successful notification message and send after propelling data is added to reply data packet To push server.Since shared network can access multiple using terminals, for each using terminal, router can be every By this share network to the using terminal send a reply data packet after, all to push server send a notice disappear The quantity of breath, all notification messages that push server can send router counts, by the quantity according to preset The numerical value for exchanging resource is calculated in calculated relationship, which can be money, game money, integral etc..That is, Push Service Device can determine contribution of the shared network to propelling data is sent according to the quantity of notification message, to be exchanged according to contribution calculation The numerical value of resource.
For example, the quantity for the notification message that router is sent is 2000, preset calculated relationship is that every 10 notices disappear Corresponding 1 integral of breath, then the obtainable resource of exchanging of the router that the reckoning server is calculated is 200 integrals.
It should be noted that due to push server calculate exchange resource numerical value mode can there are many, this implementation Example, which calculates push server, exchanges the mode of the numerical value of resource and is not construed as limiting.
In step 207, the reply data packet after addition is sent to using terminal, the using terminal is for showing addition The reply data and propelling data that the reply data packet afterwards includes.
Reply data packet after addition is sent to using terminal by router.Corresponding, using terminal receives the answer number According to packet, and show reply data and the propelling data that the reply data packet after addition includes.
Wherein, using terminal shows reply data and propelling data may include:
1) propelling data is first shown in the screen of the using terminal, then shows the reply data;Or,
2) reply data is shown in the screen of the using terminal, shows the propelling data in the form of a popup window.
Push server, can be by the exchange resource transfers being calculated to altogether after using terminal shows the propelling data It enjoys in account corresponding to terminal.Wherein, the account can be the network share that user opens router in shared terminal for the first time It is registered before function.
It should be noted that if propelling data is push link, then router can be received by following two step and is somebody's turn to do The push content-data packet that push server is sent:
If 1) propelling data is push link, receives the using terminal and trigger in the push sent after push link Hold acquisition request;
2) the push content acquisition request is sent to the push server, and receives the push server according to the push The push content-data packet of content acquisition request feedback, the push server are used to count all push link of router transmission Triggering times and triggering moment, and the numerical value for exchanging resource is calculated according to the triggering times and the triggering moment, exchange money Source is transferred in account corresponding to shared terminal after using terminal shows propelling data as push server.
For example, when the using terminal A propelling data received is the web page interlinkage of travel in China net, using terminal A's The modes such as user can be clicked by finger, key selects open the web page interlinkage.Router can receive the use of using terminal A The web access requests of the travel in China net of web page interlinkage triggering are opened at family, and the web access requests are sent to the push Server.The push server feeds back to road after receiving the web access requests, by the web data packet of travel in China net By device, the web data packet is transmitted to using terminal by router.Likewise, router also can receive other using terminals User open the web access requests of web page interlinkage triggering, and the web access requests are sent to the push server.
In order to give full play to the enthusiasm for the user for providing shared network, push server is sent in push to router It, can also be in account corresponding to the exchange resource transfers to the shared terminal by default value after holding data packet.
Wherein, every push is linked, the push server record the sending instant of push link, triggering times and Triggering moment obtains the push duration of push link according to triggering moment and sending instant, determines that this is pushed away according to the push duration The push success grade for sending link, the push duration and pushes successfully grade negative correlation.
Determine push successfully grade when, it is necessary first to determine that successfully push links in all push links. Whether succeeded in the present embodiment with the determining push of duration for linking and receiving according to transmission push between push link.Push clothes Triggering moment can be subtracted sending instant and obtain push duration by business device.Push server can detecte whether the push duration surpasses It crosses and successfully pushes threshold value, if it is detected that push duration is less than and successfully pushes threshold value, it is determined that push link is successful;If Detect that the push duration is more than successful referral threshold value, it is determined that push link is failure.For example, successfully push threshold value is 3 hours, be 5 hours according to the push duration that sending instant and triggering moment determine, since push duration is more than successfully to push threshold Value, hence, it can be determined that push link is failure.
Push server can also filter out extremely successful push link from push link.For example, push server Can also detect whether the push duration is more than extremely successful push threshold value, if it is detected that push duration is less than extremely successful push away Send threshold value, it is determined that push link is very successfully;If it is detected that the push duration is more than extremely successful push threshold value, Determining the push not is very successfully.For example, extremely successful push threshold value is 2 minutes, according to sending instant and triggering moment Determining push duration is 1 minute, since push duration is less than extremely successful push threshold value, hence, it can be determined that the push Link is very successfully.
Push server can be respectively that successfully push link and extremely successful push link setting integral, further according to Integrate the successful grade for determining the push link of router.For example, an integral that successfully push links is denoted as 1 point, it will The integral of one extremely successful push link is denoted as 3 points.Alternatively, push server can also be according to push duration setting product Point, the successful grade of push link is determined further according to integral.For example, the integral of push link in a length of 1 minute when pushing is remembered It is 2 points, the integral of recommendation in 2 minutes a length of when pushing is denoted as 1 point.
Push server can determine the successful grade of push link according to integral.Wherein, push is being determined according to integral When the successful grade of link, fraction can be determined as grade, for example, 5 integrals are determined as class 5;It can also basis The corresponding integrating range of grade determines grade, for example, 5-10 integral of setting is grade 2.
After calculating the successful grade of all push link of router transmission, it is also necessary to be determined according to the relations of distribution anti- Exchange resource in account corresponding to shared terminal of feeding will then exchange resource and feed back to account corresponding to the shared terminal Family, comprising:
1) the successful grade for all push link that router is sent is obtained;
2) distribution of account corresponding to shared terminal is determined as according to the successful grade of the preset relations of distribution, push link Exchange resource, recommend successfully grade and exchange resource correlation;
3) resource will be exchanged and is sent to account corresponding to shared terminal.
Push server can be determined as corresponding to the shared terminal according to the successful grade of the relations of distribution, push link The numerical value of the exchange resource of account distribution.For example, the relations of distribution can be the successful ranking score by push link with exchange resource Numerical value, when router push link successful grade be 0, distribute to account corresponding to the corresponding shared terminal of router The numerical value of the exchange resource at family is 0, every to promote 1 success grade, and the numerical value of the exchange resource increases by 100.Assuming that router is sent out The successful grade for all push link sent is 5, then push server determines the corresponding shared terminal of the router, then total to this The numerical value for enjoying the exchange resource of the distribution of account corresponding to terminal is 500.Certainly, other distribution can also be arranged in push server Relationship, this embodiment is not limited.
It should be noted that when propelling data includes the data of push link and non-push link simultaneously, Push Service The successful grade and the relations of distribution for all push link that device can be sent according to router, which be calculated, distributes to the shared end The numerical value a of the exchange resource at end, then the numerical value a of the exchange resource is obtained into actual redemption resource A multiplied by corresponding weighted value c; The successful notification message of data of the non-push link of all additions sent according to router and preset calculated relationship are converted The numerical value b of resource is changed, then the numerical value b of the exchange resource is obtained into actual redemption resource B multiplied by corresponding weighted value d;It will be real The numerical value A that resource is exchanged on border is added with the numerical value B of actual redemption resource, obtains being actually allocated to account corresponding to shared terminal Exchange the total value of resource.
For example, the numerical value for the exchange resource a that push server is obtained according to the successful grade and the relations of distribution of push link It is 1000, corresponding weighted value c is 1.1, and the numerical value b of the exchange resource obtained according to notification message and preset calculated relationship is 1000, corresponding weighted value d are 0.8, then push server is actually allocated to the exchange resource of account corresponding to shared terminal Numerical value=(1000*1.1)+(1000*0.8)=1900.
Optionally, router only can feed back propelling data when using terminal sends access request, can also only make Propelling data is fed back when sending request of data with terminal, push number can also have both been fed back when using terminal sends access request According to, also using terminal send request of data when feedback data, this embodiment is not limited.
In conclusion the network share method that the disclosure provides, the request sent by receiving using terminal;According to request Reply data packet is generated, and the propelling data that push server is sent is added to reply data packet;By the answer number after addition It is sent to using terminal according to packet, using terminal is used to show the reply data that the reply data packet after addition includes and push number According to, allow the user of using terminal to receive propelling data as cost, obtains the idle Internet usage of family and weigh, solution The idle Internet resources of Jue Liao family can not use for the public, the low problem of utilization rate, reached and improved the idle network of family The effect of resource utilization.
In addition, the network share method that the disclosure provides, by extracting the non-private data in request of data, the non-privacy Data include the keyword of the reply data to be requested of the using terminal;The non-private data is sent to push server, The push server is used to select the propelling data according to the location information and the keyword of router, and sending to the router should Propelling data, can be according to the non-private data in the location information and request of data of router, more targetedly to making Propelling data is sent with terminal.
Fig. 3 is a kind of block diagram of network sharing device shown according to an exemplary embodiment, which answers For in router, the router to be by providing shared network to using terminal, as shown in figure 3, the network after shared terminal authorization Sharing means include: request receiving module 301, propelling data adding module 302 and propelling data processing module 303.
The request receiving module 301 is configured as receiving the request of using terminal transmission;
The propelling data adding module 302 is configured as being answered according to the received request generation of the request receiving module 301 Data packet is answered, and the propelling data that push server is sent is added to the reply data packet;
The propelling data processing module 303 is configured as the answer number after adding the propelling data adding module 302 It is sent to the using terminal according to packet, which is used to show the reply data that the reply data packet after addition includes and should Propelling data.
In conclusion the network sharing device that the disclosure provides, the request sent by receiving using terminal;According to request Reply data packet is generated, and the propelling data that push server is sent is added to reply data packet;By the answer number after addition It is sent to using terminal according to packet, using terminal is used to show the reply data that the reply data packet after addition includes and push number According to, allow the user of using terminal to receive propelling data as cost, obtains the idle Internet usage of family and weigh, solution The idle Internet resources of Jue Liao family can not use for the public, the low problem of utilization rate, reached and improved the idle network of family The effect of resource utilization.
Fig. 4 is a kind of block diagram of the network sharing device shown according to another exemplary embodiment, the network sharing device Applied in router, the router is by providing shared network to using terminal, as shown in figure 4, the net after shared terminal authorization Network sharing means include: request receiving module 401, propelling data adding module 402 and propelling data processing module 403.
The request receiving module 401 is configured as receiving the request of using terminal transmission;
The propelling data adding module 402 is configured as being answered according to the received request generation of the request receiving module 401 Data packet is answered, and the propelling data that push server is sent is added to the reply data packet;
The propelling data processing module 403 is configured as the answer number after adding the propelling data adding module 402 It is sent to the using terminal according to packet, which is used to show the reply data that the reply data packet after addition includes and should Propelling data.
Optionally, the propelling data adding module 402, comprising:
First processing submodule 402a is configured as being transmitted to the request of data when the request is request of data Network server receives the reply data that the network server is fed back according to the request of data, and receives push server hair The propelling data and the reply data are added to the reply data packet by the propelling data sent;
Second processing submodule 402b is configured as generating reply data, and receive when the request is access request The reply data and the propelling data are added to the reply data packet by the propelling data that the push server is sent.
Optionally, propelling data adding module 402, further includes: non-private data extracting sub-module 402c and non-privacy Data sending submodule 402d.
The non-private data extracting sub-module 402c, is configured as extracting the non-private data in the request of data, this is non- Private data includes the keyword of the reply data to be requested of the using terminal;
The non-private data sending submodule 402d is configured as extracting the non-private data extracting sub-module 402c The non-private data be sent to the push server, which is used for according to the location information of the router and the pass Key word selects the propelling data, sends the propelling data to the router.
Optionally, propelling data adding module 402, further includes: notification message sending submodule 402e.
Notification message sending submodule 402e, be configured as by the propelling data be added to the reply data packet it Afterwards, successful notification message will be added and is sent to the push server, which is used to count the institute of router transmission There is the quantity of notification message, and calculate the numerical value for exchanging resource according to the quantity, which shows this in the using terminal After propelling data, it is transferred in account corresponding to the shared terminal as the push server.
Optionally, propelling data adding module 402, further includes: acquisition request receiving submodule 402f and acquisition request Sending submodule 402g.
Acquisition request receiving submodule 402f is configured as receiving the use when the propelling data is push link Terminal triggers the push content acquisition request sent after push link;
Acquisition request sending submodule 402g is configured as the push content acquisition request being sent to the Push Service Device, and receive the push server and fed back according to the received push content acquisition request of acquisition request receiving submodule 402f Push content-data packet, the push server be used for count the router transmission all push link triggering times and touching The moment is sent out, and calculates the numerical value for exchanging resource according to the triggering times and the triggering moment, the exchange resource is in the using terminal After showing the propelling data, it is transferred in account corresponding to the shared terminal as the push server.
Optionally, device, further includes: network share opening module 404, configuration-direct receiving module 405 and shared net Network configuration module 406.
The network share opening module 404 is configured as opening the network share function of the router;
The configuration-direct receiving module 405 is configured as receiving the network configuration instruction of shared terminal transmission;
The shared Network conf iotag module 406, is configured as being matched according to the received network of the configuration-direct receiving module 405 It sets instruction and configures at least one of the opening time for sharing network, shut-in time, bandwidth, the network port.
In conclusion the network sharing device that the disclosure provides, the request sent by receiving using terminal;According to request Reply data packet is generated, and the propelling data that push server is sent is added to reply data packet;By the answer number after addition It is sent to using terminal according to packet, using terminal is used to show the reply data that the reply data packet after addition includes and push number According to, allow the user of using terminal to receive propelling data as cost, obtains the idle Internet usage of family and weigh, solution The idle Internet resources of Jue Liao family can not use for the public, the low problem of utilization rate, reached and improved the idle network of family The effect of resource utilization.
In addition, the network sharing device that the disclosure provides, by extracting the non-private data in request of data, the non-privacy Data include the keyword of the reply data to be requested of the using terminal;The non-private data is sent to push server, The push server is used to select the propelling data according to the location information and the keyword of router, and sending to the router should Propelling data, can be according to the non-private data in the location information and request of data of router, more targetedly to making Propelling data is sent with terminal.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
An exemplary embodiment of the present disclosure provides a kind of network sharing device, the network that can be realized disclosure offer is total Method is enjoyed, the network sharing device is in router, and router is by providing shared network to using end after shared terminal authorization End.The network sharing device includes: processor, for the memory of storage processor executable instruction;
Wherein, processor is configured as:
Receive the request that using terminal is sent;
Reply data packet is generated according to request, and the propelling data that push server is sent is added to reply data packet;
Reply data packet after addition is sent to using terminal, which is used to show the answer number after addition According to the reply data and propelling data for including.
Fig. 5 is a kind of block diagram of device 500 for network share shown according to an exemplary embodiment.For example, dress Setting 500 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical treatment Equipment, body-building equipment, personal digital assistant etc..
Referring to Fig. 5, device 500 may include following one or more components: processing component 502, memory 504, power supply Component 506, multimedia component 508, audio component 510, the interface 512 of input/output (I/O), sensor module 514, and Communication component 516.
The integrated operation of the usual control device 500 of processing component 502, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 502 may include that one or more processors 520 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 502 may include one or more modules, just Interaction between processing component 502 and other assemblies.For example, processing component 502 may include multi-media module, it is more to facilitate Interaction between media component 508 and processing component 502.
Memory 504 is configured as storing various types of data to support the operation in device 500.These data are shown Example includes the instruction of any application or method for operating on device 500, contact data, and telephone book data disappears Breath, picture, video etc..Memory 504 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 506 provides electric power for the various assemblies of device 500.Power supply module 506 may include power management system System, one or more power supplys and other with for device 500 generate, manage, and distribute the associated component of electric power.
Multimedia component 508 includes the screen of one output interface of offer between described device 500 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 508 includes a front camera and/or rear camera.When device 500 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 510 is configured as output and/or input audio signal.For example, audio component 510 includes a Mike Wind (MIC), when device 500 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 504 or via communication set Part 516 is sent.In some embodiments, audio component 510 further includes a loudspeaker, is used for output audio signal.
I/O interface 512 provides interface between processing component 502 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 514 includes one or more sensors, and the state for providing various aspects for device 500 is commented Estimate.For example, sensor module 514 can detecte the state that opens/closes of device 500, and the relative positioning of component, for example, it is described Component is the display and keypad of device 500, and sensor module 514 can be with 500 1 components of detection device 500 or device Position change, the existence or non-existence that user contacts with device 500,500 orientation of device or acceleration/deceleration and device 500 Temperature change.Sensor module 514 may include proximity sensor, be configured to examine without any physical contact Survey presence of nearby objects.Sensor module 514 can also include that optical sensor is used for such as CMOS or ccd image sensor It is used in imaging applications.In some embodiments, which can also include acceleration transducer, and gyroscope passes Sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 516 is configured to facilitate the communication of wired or wireless way between device 500 and other equipment.Device 500 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 516 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 516 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 500 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 504 of instruction, above-metioned instruction can be executed by the processor 520 of device 500 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
Those skilled in the art will readily occur to the other of the disclosure after considering specification and practicing disclosure herein Embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Adaptive change follow the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure or Conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following power Benefit requires to point out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (10)

1. a kind of network share method, which is characterized in that in router, the router after shared terminal authorization by provide Network is shared to using terminal, and the shared network generates on the basis of original home network, and the shared network It is different with the network segment of original home network, which comprises
Receive the request that the using terminal is sent;
If the request is request of data, the request of data is transmitted to network server, receives the network server According to the reply data that the request of data is fed back, the non-private data in the request of data, the non-private data are extracted The non-private data is sent to push server by the keyword including the reply data to be requested of the using terminal, The push server is used to select propelling data according to the location information of the router and the keyword, to the routing Device sends the propelling data;The router receives the propelling data that the push server is sent, by the push Data and the reply data are added to reply data packet;
If the request is access request, reply data is generated, and receives the propelling data that the push server is sent, it will The reply data and the propelling data are added to reply data packet, and the propelling data includes the position with the router The relevant information of information;
The reply data packet after addition is sent to the using terminal, the using terminal is used to show the institute after addition State the reply data and the propelling data that reply data packet includes.
2. the method according to claim 1, wherein the method, further includes:
After the propelling data is added to the reply data packet, successful notification message will be added and be sent to described push away Server is sent, the push server is used to count the quantity for all notification messages that the router is sent, and according to described Quantity calculates the numerical value for exchanging resource, and the exchange resource is pushed away after the using terminal shows the propelling data by described Server is sent to be transferred in account corresponding to the shared terminal.
3. the method according to claim 1, wherein the method, further includes:
If the propelling data is push link, receives the using terminal and trigger in the push sent after the push link Hold acquisition request;
The push content acquisition request is sent to the push server, and receives the push server and is pushed away according to The push content-data packet for sending content acquisition request to feed back, the push server are used to count all of the router transmission The triggering times and triggering moment of link are pushed, and calculate the number for exchanging resource according to the triggering times and the triggering moment Value, the exchange resource are transferred to described total after the using terminal shows the propelling data by the push server It enjoys in account corresponding to terminal.
4. the method according to claim 1, wherein the method, further includes:
Open the network share function of the router;
Receive the network configuration instruction that the shared terminal is sent;
According in the opening time of the network configuration instruction configuration shared network, shut-in time, bandwidth, the network port It is at least one.
5. a kind of network sharing device, which is characterized in that in router, the router after shared terminal authorization by provide Network is shared to using terminal, and the shared network generates on the basis of original home network, and the shared network Different with the network segment of original home network, described device includes:
Request receiving module is configured as receiving the request that the using terminal is sent;
Propelling data adding module is configured as that the request of data is transmitted to network when the request is request of data Server receives the reply data that the network server is fed back according to the request of data, extracts in the request of data Non- private data, the non-private data include the keyword of the reply data to be requested of the using terminal, by non-privacy The non-private data that data extracting sub-module is extracted is sent to push server, and the push server is used for according to The location information of router and the keyword select propelling data, send the propelling data to the router;It is described to push away Data adding module is sent to receive the propelling data that the push server is sent, by the propelling data and the answer number According to being added to reply data packet;When the request is access request, reply data is generated, and receives the push server hair The reply data and the propelling data are added to reply data packet by the propelling data sent, the propelling data include with The relevant information of the location information of the router;
Propelling data processing module is configured as the reply data packet after adding the propelling data adding module and sends To the using terminal, the using terminal is used to show the reply data packet reply data that includes after adding and described Propelling data.
6. device according to claim 5, which is characterized in that the propelling data adding module, further includes:
Notification message sending submodule is configured as after the propelling data is added to the reply data packet, will add Successful notification message is added to be sent to the push server, the push server is used to count the institute that the router is sent There is the quantity of notification message, and calculate the numerical value for exchanging resource according to the quantity, the exchange resource is in the using terminal After showing the propelling data, it is transferred in account corresponding to the shared terminal as the push server.
7. device according to claim 5, which is characterized in that the propelling data adding module, further includes:
Acquisition request receiving submodule is configured as receiving the using terminal touching when the propelling data is push link It sends out described and pushes the push content acquisition request sent after link;
Acquisition request sending submodule is configured as the push content acquisition request being sent to the push server, and The push server is received according to the received push content acquisition request feedback of the acquisition request receiving submodule Push content-data packet, the push server be used to count all push link that the router is sent triggering times and Triggering moment, and the numerical value for exchanging resource is calculated according to the triggering times and the triggering moment, the exchange resource is in institute It states after using terminal shows the propelling data, account corresponding to the shared terminal is transferred to as the push server In.
8. device according to claim 5, which is characterized in that described device, further includes:
Network share opening module is configured as opening the network share function of the router;
Configuration-direct receiving module is configured as receiving the network configuration instruction that the shared terminal is sent;
Shared Network conf iotag module is configured as being matched according to the received network configuration instruction of the configuration-direct receiving module Set at least one of opening time of the shared network, shut-in time, bandwidth, the network port.
9. a kind of network sharing device, which is characterized in that in router, the router after shared terminal authorization by provide Network is shared to using terminal, and the shared network generates on the basis of original home network, and the shared network Different with the network segment of original home network, described device includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Receive the request that the using terminal is sent;
If the request is request of data, the request of data is transmitted to network server, receives the network server According to the reply data that the request of data is fed back, the non-private data in the request of data, the non-private data are extracted The non-private data is sent to push server by the keyword including the reply data to be requested of the using terminal, The push server is used to select propelling data according to the location information of the router and the keyword, to the routing Device sends the propelling data;The processor receives the propelling data that the push server is sent, by the push Data and the reply data are added to reply data packet;
If the request is access request, reply data is generated, and receives the propelling data that the push server is sent, it will The reply data and the propelling data are added to reply data packet, and the propelling data includes the position with the router The relevant information of information;
The reply data packet after addition is sent to the using terminal, the using terminal is used to show the institute after addition State the reply data and the propelling data that reply data packet includes.
10. a kind of computer readable storage medium, instruction is stored on the computer readable storage medium, which is characterized in that The step of claim 1-4 described in any item methods are realized when described instruction is executed by processor.
CN201410852697.5A 2014-12-31 2014-12-31 Network share method and device Active CN104639609B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410852697.5A CN104639609B (en) 2014-12-31 2014-12-31 Network share method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410852697.5A CN104639609B (en) 2014-12-31 2014-12-31 Network share method and device

Publications (2)

Publication Number Publication Date
CN104639609A CN104639609A (en) 2015-05-20
CN104639609B true CN104639609B (en) 2019-02-22

Family

ID=53217910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410852697.5A Active CN104639609B (en) 2014-12-31 2014-12-31 Network share method and device

Country Status (1)

Country Link
CN (1) CN104639609B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106330582B (en) * 2015-06-18 2020-11-20 中兴通讯股份有限公司 Method and device for detecting number of shared internet access mobile terminals
CN105357669A (en) * 2015-11-23 2016-02-24 小米科技有限责任公司 WiFi connecting method and device
CN107438009A (en) * 2016-05-25 2017-12-05 西安中兴新软件有限责任公司 A kind of data transmission method and device
CN109640360B (en) * 2018-12-28 2022-08-02 联动优势科技有限公司 Fixed broadband traffic sharing method
CN110505093A (en) * 2019-08-26 2019-11-26 顺德职业技术学院 One kind being based on cloud computing data application terminal device
CN115412389B (en) * 2022-08-29 2023-12-05 深圳市酷开网络科技股份有限公司 Message recommendation method and device, electronic equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103347030A (en) * 2013-07-23 2013-10-09 熔点网讯(北京)科技有限公司 Network sharing method
CN103369527A (en) * 2012-04-01 2013-10-23 腾讯科技(深圳)有限公司 Method, device and system for WiFi (wireless fidelity) network sharing
CN103731931A (en) * 2013-09-22 2014-04-16 深圳市优逸电子科技有限公司 Wireless wifi hotspot sharing method and system
CN103889029A (en) * 2014-03-24 2014-06-25 深圳市云猫信息技术有限公司 Network hotspot sharing method, client side, sharing side and management server

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8219614B2 (en) * 2008-12-01 2012-07-10 Electronics And Telecommunications Research Institute Edge peer device, pan gateway device, super peer device, and P2P network-based interconnection method
CN104113915B (en) * 2013-04-18 2017-11-21 中国移动通信集团江苏有限公司 A kind of WLAN and its sharing method, Wireless Local Area Network Gateway

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103369527A (en) * 2012-04-01 2013-10-23 腾讯科技(深圳)有限公司 Method, device and system for WiFi (wireless fidelity) network sharing
CN103347030A (en) * 2013-07-23 2013-10-09 熔点网讯(北京)科技有限公司 Network sharing method
CN103731931A (en) * 2013-09-22 2014-04-16 深圳市优逸电子科技有限公司 Wireless wifi hotspot sharing method and system
CN103889029A (en) * 2014-03-24 2014-06-25 深圳市云猫信息技术有限公司 Network hotspot sharing method, client side, sharing side and management server

Also Published As

Publication number Publication date
CN104639609A (en) 2015-05-20

Similar Documents

Publication Publication Date Title
CN104639609B (en) Network share method and device
CN105337747B (en) Group history message treatment method and device
CN106209800B (en) Equipment Authority sharing method and apparatus
CN106028166A (en) Method and device for switching live broadcasting rooms in live broadcasting process
CN105468767B (en) Card information acquisition methods and device
CN105208110B (en) Resource control method and device
CN107769881B (en) Information synchronization method, apparatus and system, storage medium
CN109729414A (en) A kind of transmission, display methods, device, server and terminal for commenting on message
CN105530165B (en) Method and device for instant chat
CN104539812B (en) Recommendation information acquisition methods, terminal and server
CN109639635A (en) CDN agency draws stream method, server, CDN and client
CN104125162B (en) The access processing method and device of Internet resources
CN105956879A (en) Method, device and system for sending electronic ticket
CN106506562B (en) Method for connecting network, device and the smart machine of smart machine
CN104270727A (en) Information transmission method and device
CN105208176B (en) Contact person record processing method and processing device
CN104537526B (en) Method, terminal and the device of numerical value transfer
CN107820300A (en) Network search method and device
CN107071862A (en) Account binding method and device and smart machine
CN109714646A (en) The sending method and method of reseptance of instant messaging, sending device and reception device
CN110020145A (en) A kind of information recommendation method and device
JP2018514820A (en) ONLINE PAYMENT METHOD, DEVICE, PROGRAM, AND RECORDING MEDIUM
CN108848484A (en) Collaborative share method, apparatus and storage medium
CN106453774B (en) Contact information methods of exhibiting and device
CN109842806A (en) Visual alert broadcasting, control method for playing back, device, equipment 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
GR01 Patent grant
GR01 Patent grant