WO2017185741A1 - Method and device for optimizing synchronisation of network tariff index on access authentication page - Google Patents

Method and device for optimizing synchronisation of network tariff index on access authentication page Download PDF

Info

Publication number
WO2017185741A1
WO2017185741A1 PCT/CN2016/107884 CN2016107884W WO2017185741A1 WO 2017185741 A1 WO2017185741 A1 WO 2017185741A1 CN 2016107884 W CN2016107884 W CN 2016107884W WO 2017185741 A1 WO2017185741 A1 WO 2017185741A1
Authority
WO
WIPO (PCT)
Prior art keywords
user terminal
network
access
tariff indicator
network tariff
Prior art date
Application number
PCT/CN2016/107884
Other languages
French (fr)
Chinese (zh)
Inventor
乐毅
Original Assignee
上海斐讯数据通信技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海斐讯数据通信技术有限公司 filed Critical 上海斐讯数据通信技术有限公司
Publication of WO2017185741A1 publication Critical patent/WO2017185741A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1432Metric aspects
    • H04L12/1435Metric aspects volume-based
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1432Metric aspects
    • H04L12/1439Metric aspects time-based
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • H04W56/002Mutual synchronization
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release

Definitions

  • the present invention relates to the field of network tariff indicator synchronization technology for access authentication page, and more particularly to a method and device for synchronizing network tariff index synchronization optimization of an access authentication page.
  • Portal authentication is one of the popular technologies for wireless network access authentication.
  • the portal access authentication page is automatically popped up, prompting the user terminal to input account information to complete the access authentication.
  • the Portal authentication success page displays the remaining Internet access time (that is, how long the user has left the Internet time) or the remaining Internet traffic (that is, how much Internet traffic the user currently has). The user will use the network during the network. Keep abreast of your Internet time, sometimes refresh the page frequently, and synchronize data with the Portal server in time.
  • the AP wireless access device
  • the user usage is relatively large, especially in shopping malls, tourist attractions, etc.
  • the Internet access time or Internet traffic synchronization can cause a lot of pressure on the Portal server.
  • the user opens the Portal page and becomes very slow, which directly affects the user's Internet experience.
  • the remaining Internet access time or remaining Internet traffic displayed on the Portal authentication success page is synchronized with the Portal server in real time.
  • the synchronization frequency is very high, even reaching seconds or minutes, which causes the Portal server to be very
  • the large pressure affects the normal Portal function of the Portal server, which leads to a decrease in the user experience.
  • the implementation is sent to the STA (user terminal) for a long time, it will be measured on the local authentication page, but it is not synchronized with the Portal server. Data of duration or traffic is seriously erroneous in the case of roaming or temporary offline.
  • the present invention provides a method for synchronizing optimization of network tariff indicators of an access authentication page, and the method includes:
  • the access server After the user terminal successfully accesses the authentication, the access server starts to measure the first network tariff indicator; the first network tariff indicator is the Internet duration or the Internet traffic;
  • the method further includes:
  • the access server sends a release command to the first wireless access device to release the user terminal, so that the first wireless access device is configured according to the Dissolving the command to release the association with the user terminal;
  • the access server When the remaining first network tariff indicator of the user terminal first reaches zero, the access server allows the user terminal to continue to access the Internet until the first network tariff indicator remaining by the access server reaches zero.
  • the method further includes:
  • the access server When the user terminal actively leaves the network, the access server receives a message that the user terminal sends the first wireless access device to leave the network;
  • the access server stops measuring the first network tariff indicator.
  • the method further includes:
  • the access server receives an inquiry that the user terminal sent by the second wireless access device has successfully accessed the authentication.
  • the access server After the access server confirms that the user terminal has successfully accessed the authentication, notifying the second wireless access device to open the access authority of the user terminal;
  • the access server When the access server confirms that the user terminal does not successfully access the authentication, and after the user terminal logs in to the second wireless access device to successfully access the authentication, the access server restarts the metering second network. a tariff indicator, and the second network tariff indicator is sent to the user terminal, so that the user terminal re-measures according to the second network tariff indicator; the second network tariff indicator is the current remaining online duration or The current remaining Internet traffic.
  • the invention also provides a synchronization optimization method for the network tariff indicator of the access authentication page, the method comprising:
  • the user terminal successfully accesses the authentication
  • the first network tariff indicator is an online time duration or an online traffic
  • the method further includes:
  • the user terminal When the remaining first network tariff indicator of the user terminal first reaches zero, the user terminal continues to access the Internet until the first network tariff indicator remaining by the access server reaches zero;
  • the method further includes:
  • the user terminal determines that it has been disconnected from the access server
  • the method further includes:
  • the user terminal When the user terminal is to associate with the second wireless access device within a roaming validity time, the user terminal sends an association request to the second wireless access device, so that the second wireless access device Confirming whether the user terminal is allowed to be associated according to the association request;
  • the user terminal When the user terminal receives the unsuccessful access authentication sent by the access server and cannot associate with the second wireless access device, the user terminal logs in to the second wireless access device to perform access authentication;
  • the user terminal When the user terminal successfully accesses the authentication, the user terminal receives the second network tariff indicator delivered by the access server, and re-measures according to the second network tariff indicator; the second network tariff indicator is The current remaining Internet time or the current remaining Internet traffic.
  • the invention also provides an access server, the access server comprising:
  • the metering module is started to start measuring the first network tariff indicator after the user terminal successfully accesses the authentication;
  • the first network tariff indicator is the online time length or the Internet traffic;
  • the first sending module is configured to send the first network tariff indicator to the user terminal in a preset synchronization period, so that the user terminal starts to measure according to the first network tariff indicator.
  • the access server further includes:
  • a first sending module configured to: after the first sending module sends the first network tariff indicator to the user terminal, when the first network tariff indicator remaining by the access server reaches zero first, Sending, to the first wireless access device, a release command for releasing the user terminal, so that the first wireless access device releases the association with the user terminal according to the release command;
  • the network access module is configured to allow the user terminal to continue to access the Internet until the remaining first network tariff indicator of the user terminal reaches zero.
  • the access server further includes:
  • a first receiving module configured to: after the first sending module sends the first network tariff indicator to the user terminal, when the user terminal actively leaves the network, receive the first wireless access a message that the user terminal sent by the device leaves the network;
  • the first stopping metering module is configured to stop measuring the first network tariff indicator.
  • the access server further includes:
  • a second receiving module configured to: after the first sending module sends the first network tariff indicator to the user terminal, when the user terminal is within a roaming validity period, to associate with the second wireless connection Receiving, by the second wireless access device, whether the user terminal has successfully accessed the authentication query message;
  • a first confirmation module configured to confirm that the user terminal has successfully accessed the authentication
  • a notification module configured to: after the user terminal confirms that the user terminal has successfully accessed the authentication, Knowing that the second wireless access device opens the access right of the user terminal;
  • a second confirmation module configured to confirm that the user terminal does not successfully access the authentication
  • the metering module is restarted, and after the user terminal logs in to the second wireless access device to successfully access the authentication, the second network tariff indicator is restarted;
  • a second sending module configured to send the second network tariff indicator to the user terminal, so that the user terminal re-measures according to the second network tariff indicator; the second network tariff indicator is current remaining The length of the Internet or the current remaining Internet traffic.
  • the invention also provides a user terminal, the user terminal comprising:
  • Access authentication module for successful access authentication
  • the third receiving module is configured to receive, by using a first network tariff indicator measured by the access server, in the preset synchronization period, where the first network tariff indicator is an online time length or an online traffic flow;
  • the metering module is configured to start measuring according to the first network tariff indicator.
  • the user terminal further includes:
  • the metering module starts measuring according to the first network tariff indicator, when the remaining first network tariff indicator of the user terminal first reaches zero, continuing to access the Internet until the remaining of the access server The first network tariff indicator reaches zero;
  • the network module is stopped, and when the first network tariff indicator remaining in the access server reaches zero first, the network is stopped.
  • the user terminal further includes:
  • a second sending module configured to: after the metering module starts to measure according to the first network tariff indicator, when the user terminal is to associate with the second wireless access device within a roaming effective time, The second wireless access device sends an association request, so that the second wireless access device confirms whether to allow the user terminal to associate according to the association request;
  • a login module configured to log in to the second wireless access device to perform access authentication when the user terminal receives the unsuccessful access authentication sent by the access server and cannot associate with the second wireless access device;
  • a fourth receiving module configured to receive a second network tariff indicator delivered by the access server when the login module successfully accesses the authentication;
  • the second network tariff indicator is a current remaining online duration or currently remaining Internet traffic;
  • the first re-measurement module is configured to re-measure according to the second network tariff indicator.
  • the technical solution of the present invention is implemented by embedding a local measuring instrument on the access authentication success page of the user terminal.
  • the access server and the user terminal simultaneously time, only when the user re-authenticates, goes online, or sets the synchronization period.
  • the necessary data synchronization is performed within the network, thereby greatly reducing the number of synchronizations between the user terminal and the access server, reducing the synchronization pressure of the access server, and improving the user experience.
  • FIG. 1 is a flowchart of an embodiment of a method for synchronizing optimization of a network tariff indicator of an access authentication page according to the present invention
  • FIG. 2 is a flowchart of another embodiment of a method for synchronously optimizing a network tariff indicator of an access authentication page according to the present invention
  • FIG. 3 is a flowchart of another embodiment of a method for synchronizing network tariff indicators in an access authentication page according to the present invention.
  • FIG. 4 is a flowchart of another embodiment of a method for synchronously optimizing a network tariff indicator of an access authentication page according to the present invention
  • FIG. 5 is a flowchart of an embodiment of a method for synchronously optimizing a network tariff indicator of an access authentication page according to the present invention
  • FIG. 6 is a flowchart of another embodiment of a method for synchronously optimizing a network tariff indicator of an access authentication page according to the present invention.
  • FIG. 7 is a flowchart of another embodiment of a method for synchronously optimizing a network tariff indicator of an access authentication page according to the present invention.
  • FIG. 8 is a flowchart of another embodiment of a method for synchronously optimizing a network tariff indicator of an access authentication page according to the present invention.
  • FIG. 9 is a flowchart of another embodiment of a method for synchronously optimizing a network tariff indicator of an access authentication page according to the present invention.
  • FIG. 10 is a structural diagram of an embodiment of an access server according to the present invention.
  • FIG. 11 is a structural diagram of another embodiment of an access server according to the present invention.
  • FIG. 12 is a structural diagram of another embodiment of an access server according to the present invention.
  • FIG. 13 is a structural diagram of another embodiment of an access server according to the present invention.
  • FIG. 14 is a structural diagram of another embodiment of an access server according to the present invention.
  • FIG. 15 is a structural diagram of an embodiment of a user terminal according to the present invention.
  • FIG. 16 is a structural diagram of another embodiment of a user terminal according to the present invention.
  • FIG. 17 is a structural diagram of another embodiment of a user terminal according to the present invention.
  • FIG. 18 is a structural diagram of another embodiment of a user terminal according to the present invention.
  • FIG. 19 is a structural diagram of another embodiment of a user terminal according to the present invention.
  • FIG. 20 is a structural diagram of an embodiment of a network tariff indicator synchronization optimization system for an access authentication page according to the present invention.
  • the access server After the user terminal successfully accesses the authentication, the access server starts to measure the first network tariff indicator; the first network tariff indicator is the Internet access time or the Internet traffic; and the first network tariff indicator is issued. Giving the user terminal, so that the user terminal starts measuring according to the first network tariff indicator.
  • FIG. 1 is a flowchart of an embodiment of a method for synchronizing and optimizing a network tariff indicator of an access authentication page according to the present invention, which is suitable for accessing a server side, and the specific process is as follows:
  • Step S101 after the user terminal successfully accesses the authentication, the access server starts to measure the first network tariff indicator
  • the first network tariff indicator is an online time length or an online traffic flow, where the measurement is a reverse measurement, for example, the online time length can be measured as the remaining online time, and the online traffic can be measured as the remaining online traffic.
  • step S102 the first network tariff indicator is sent to the user terminal in a preset synchronization period, so that the user terminal starts to measure according to the first network tariff indicator.
  • the user terminal starts to measure according to the first network tariff indicator, that is, the user terminal and the access server simultaneously measure the first network tariff indicator, so that the access server synchronizes with the user terminal only in the preset synchronization period.
  • a network tariff indicator in this way, the access server does not need to frequently synchronize the remaining first network tariff indicators with the user terminal, and the user terminal can also timely and accurately understand the current remaining first network tariff indicator;
  • the access server presets the synchronization period, and sends the preset synchronization period to the user terminal, so that the user terminal synchronizes the remaining first network tariff indicator when the preset synchronization period arrives; here, the preset synchronization period is less than the online duration (Scheduled for the length of the Internet).
  • the network optimization index synchronization optimization method of the access authentication page of the present invention is also shown in FIG. 2, and the specific steps are as follows:
  • Step S201 When the first network tariff indicator remaining by the access server reaches zero first, the access server sends a release command to the first wireless access device to cancel the user terminal.
  • the access server sends a release command to the first wireless access device to release the user terminal, the first wireless After receiving the release command sent by the access server, the access device releases the association with the user terminal according to the release command.
  • Step S202 When the remaining first network tariff indicator of the user terminal reaches zero first, the access server allows the user terminal to continue to access the Internet until the first network tariff indicator remaining by the access server reaches zero.
  • the access server allows the user to continue to access the Internet, and the access server confirms that the remaining first network resource indicator is zero. The server does not allow users to continue to go online.
  • the network optimization index synchronization optimization method of the access authentication page of the present invention is also shown in FIG. 3, and the specific steps are as follows:
  • Step S301 when the user terminal actively leaves the network, the access server receives a message that the user terminal sent by the first wireless access device leaves the network;
  • the user terminal when the user terminal actively leaves the network, the user terminal first cancels the association with the first wireless access device, and the first wireless access device learns that the user terminal leaves the network, and sends the learned user terminal to leave the network. Give access to the server.
  • Step S302 the access server stops measuring the first network tariff indicator.
  • the access server keeps the remaining first network tariff indicator at the moment of stopping.
  • the network optimization index synchronization optimization method of the access authentication page of the present invention is also shown in FIG. 4, and the specific steps are as follows:
  • Step S401 When the user terminal is to associate with the second wireless access device within the roaming validity time, the access server receives whether the user terminal sent by the second wireless access device has successfully accessed Certified inquiry message;
  • the user terminal when the user terminal wants to associate with the second wireless access device, the user terminal sends an association request to the second wireless access device, and after receiving the association request of the user terminal, the second wireless access device sends the connection request to the access server. Whether the user terminal has successfully accessed the authentication inquiry message.
  • Step S402 the access server confirms that the user terminal has successfully accessed the authentication, and then notifies the second wireless access device to open the access authority of the user terminal;
  • the access server queries that the user terminal has successfully accessed the first wireless access device, and the user terminal is successfully connected. If the user terminal does not need to perform access authentication again, the second wireless access device activates the user terminal to access the Internet and returns the user terminal association response.
  • the user terminal initiates an Internet connection to the access server every N seconds by using the reconnection mechanism; during the period, the user terminal and the user terminal Stop synchronizing network tariff indicators between access servers.
  • Step S403 when the access server confirms that the user terminal does not successfully access the authentication, and after the user terminal logs in to the second wireless access device to successfully access the authentication, the access server restarts the measurement. And the second network tariff indicator is sent to the user terminal.
  • the access server re-measures the second network tariff indicator (the current remaining first network tariff indicator), and delivers the second network tariff indicator to the user terminal, where The user terminal re-measures according to the second network tariff indicator, and the synchronization between the user terminal and the access server reaches the remaining first network tariff indicator again; the second network tariff indicator (the current remaining first network tariff indicator) ) is the current remaining Internet time or the current remaining Internet traffic.
  • the access server sends the measured first network tariff indicator to the user terminal.
  • the user terminal is re-measured according to the remaining first network tariff indicator.
  • the remaining first network tariff indicator is not displayed on the access authentication page after reopening, and the access server is measured by interacting with the access server.
  • the remaining first network tariff indicator is re-measured according to the remaining first network tariff indicator delivered by the access server, so that the user terminal and the access server again reach the synchronization of the remaining first network tariff indicators.
  • FIG. 5 is a flowchart of an embodiment of a network tariff indicator synchronization optimization method for an access authentication page according to the present invention, which is suitable for a user terminal side, and the specific steps are as follows:
  • Step S501 the user terminal successfully accesses the authentication
  • the user terminal 1400 associates with one SSID (Service Set Identifier) of the first radio access device, and the first radio access device redirects the HTTP response of the user terminal to the access service.
  • the server 1000 obtains the URL (WWW Uniform Resource Locator) address, and the user terminal 1400 obtains the network page redirected by the first wireless access device, prompts the user terminal 1400 to input the user name and password, and initiates access to the access server 1000.
  • the access server 1000 audits the user name and password, sends an authentication success message to the first wireless access device, and the authentication result and the remaining online time of the user or the remaining Internet access.
  • the traffic is fed back to the user terminal 1400, and after receiving the message that the access authentication succeeded by the access server 1000, the first wireless access device authorizes the user terminal to access the Internet;
  • Redirect is to redirect various network requests to other locations through various methods (for example, web page redirection, domain name redirection, and routing changes are also a kind of heavy on the data packet path). Orientation);
  • Each subnet has an SSID. Each subnet requires independent authentication. Only authenticated users can enter the corresponding subnet to prevent unauthorized users from entering the network.
  • the access authentication page is a page specified by the access server, and the network address is a URL address.
  • Step S502 the user terminal receives the first network tariff indicator measured by the access server in a preset synchronization period
  • the first network tariff indicator is an online time length or an online traffic flow. Because it is a reverse measurement, the online time length is the remaining online time, and the online traffic is the remaining online traffic;
  • the preset synchronization period is preset by the access server, and is sent to the user terminal.
  • the user terminal receives the first network tariff indicator measured by the access server; where the preset synchronization period is less than the Internet access Duration (default internet time).
  • Step S503 the user terminal starts measuring according to the first network tariff indicator.
  • the user terminal is locally implanted with a measuring instrument, and the measuring time for the Internet access time can be selected by a timer, and the measuring flow rate can be selected by using a flow measuring instrument;
  • the user terminal starts to measure according to the first network tariff indicator, that is, the user terminal and the access server simultaneously measure the first network tariff indicator, so that the access server does not need to frequently update the remaining first network tariff indicator of the user terminal.
  • the user terminal can also keep abreast of the remaining first network tariff indicators.
  • the network tariff indicator synchronization optimization method of the access authentication page of the present invention is also shown in FIG. 6, and the specific steps are as follows:
  • Step S601 when the remaining first network tariff indicator of the user terminal reaches zero first, the user terminal continues to access the Internet until the first network tariff indicator remaining by the access server reaches zero;
  • the access server allows the user to continue to access the Internet.
  • the remaining first network resource indicator of the access server is zero, the access server is accessed. The user is not allowed to continue surfing the Internet, and the user terminal is forced to stop surfing the Internet.
  • Step S602 When the remaining first network tariff indicator of the access server first reaches zero, the user terminal stops surfing the Internet.
  • the access server sends a release command to the first wireless access device to release the user terminal, the first wireless After receiving the release command sent by the access server, the access device releases the association with the user terminal according to the release command.
  • the network tariff indicator synchronization optimization method of the access authentication page of the present invention is also shown in FIG. 7, and the specific steps are as follows:
  • Step S701 when the user terminal leaves the network, the user terminal determines that it is disconnected from the access server;
  • the user terminal determines whether it is disconnected from the access server by sending a ping message to the access server, where ping is a command under Windows, Unix, and Linux systems.
  • Ping is also a communication protocol and is part of the TCP/IP protocol. Use the "ping" message to check if the network is connected, which can help us analyze and determine network failures.
  • Step S702 stopping measuring the first network tariff indicator
  • the user terminal confirms that the user terminal is disconnected from the access server, and the user terminal stops measuring the first network tariff indicator (the remaining first network tariff indicator).
  • Step S703 and disconnecting the network connection with the access server
  • the feedback received by the user terminal for the ping packet is unreachable, and the user terminal disconnects the connection with the access server.
  • Step S704 reconnecting to the access server every predetermined time.
  • the user terminal initiates an Internet connection to the access server every N seconds; during the period, the user terminal and the access server stop synchronizing the network tariff indicator.
  • the network tariff indicator synchronization optimization method of the access authentication page of the present invention is also shown in FIG. 8. The specific steps are as follows:
  • Step S801 When the user terminal is to associate with the second wireless access device within a roaming validity time, the user terminal sends an association request to the second wireless access device.
  • the user terminal when the user terminal wants to associate with the second wireless access device, the user terminal sends an association request to the second wireless access device, and after receiving the association request of the user terminal, the second wireless access device sends the connection request to the access server.
  • the second wireless access device confirms whether the user terminal is allowed to be associated; when the access server feeds back that the user terminal has successfully accessed the authentication, the second wireless access The device allows the user terminal to associate; otherwise, the second wireless access device does not allow the user terminal to associate;
  • the user terminal initiates an Internet connection to the access server every N seconds by using the reconnection mechanism; during the period, the user terminal and the user terminal Stop synchronizing network tariff indicators between access servers.
  • Step S802 when the user terminal receives the unsuccessful access authentication sent by the access server When the second wireless access device cannot be associated, the user terminal logs in to the second wireless access device to perform access authentication;
  • the access server re-measures the second network tariff indicator (the current remaining first network tariff indicator), and the second network tariff indicator is Send to the user terminal.
  • Step S803 when the user terminal successfully accesses the authentication, the user terminal receives the second network tariff indicator delivered by the access server, and re-measures according to the second network tariff indicator;
  • the user terminal re-measures according to the second network tariff indicator, that is, the synchronization between the user terminal and the access server reaches the remaining first network tariff indicator; the second network tariff indicator (the current remaining number)
  • a network tariff indicator is the current remaining Internet time or the current remaining Internet traffic.
  • the network tariff indicator synchronization optimization method of the access authentication page of the present invention is also shown in FIG. 9, and the specific steps are as follows:
  • Step S901 When the user terminal re-opens the access authentication page after the user terminal is forced to close the access authentication page, the user terminal receives the remaining first network tariff indicator sent by the access server.
  • the remaining first network tariff indicator is not displayed on the access authentication page after reopening, and the access server is measured by interacting with the access server. The remaining first network tariff indicator.
  • Step S902 and re-measuring according to the remaining first network tariff indicators.
  • the user terminal re-measures according to the remaining first network tariff indicator delivered by the access server, that is, the user terminal and the access server once again reach the synchronization of the remaining first network tariff indicators.
  • the access server receives the second wireless connection. a status inquiry message of the user terminal sent by the device;
  • the user terminal when the user terminal cancels the account, leaves the network, the remaining network tariff indicator is zero, or is not within the roaming effective time, the user terminal is in the offline state, and at this time, if the user terminal wants to associate with the second wireless access device Sending an association request to the second wireless access device to the user terminal, and after receiving the association request of the user terminal, the second wireless access device sends an inquiry message to the access server whether the user terminal has successfully accessed the authentication; Whether the user terminal sent by the second wireless access device has successfully accessed the authentication query message, and the access server queries the user to find that the user terminal has gone offline, and then informs the user terminal to perform access authentication again;
  • the user terminal cancels the account as an active cancellation account or a passive cancellation account; the user terminal leaves the network to actively leave the network; the remaining network tariff indicator of the user terminal is zero without passive Internet access or without the Internet access time and passively leaves the network.
  • FIG. 10 is a structural diagram of an embodiment of an access server according to the present invention.
  • the access server 1000 includes a startup metering module 1001 and a first sending module 1002.
  • the metering module 1001 is configured to start to measure the first network tariff indicator after the user terminal successfully accesses the authentication;
  • the first network tariff indicator is an online time length or an online traffic flow, where the measurement is a reverse measurement, for example, the online time length can be measured as the remaining online time, and the online traffic can be measured as the remaining online traffic.
  • the first sending module 1002 is configured to send the first network tariff indicator to the user terminal in a preset synchronization period, so that the user terminal starts to measure according to the first network tariff indicator.
  • the user terminal starts to measure according to the first network tariff indicator, that is, the user terminal and the access server 1000 simultaneously measure the first network tariff indicator, so that the access server 1000 synchronizes with the user terminal only in the preset synchronization period.
  • the first network tariff indicator is such that the access server 1000 does not need to frequently synchronize the remaining first network tariff indicator with the user terminal, and the user terminal can also accurately and accurately know the current remaining first network tariff indicator;
  • the access server 1000 presets the synchronization period, and sends the preset synchronization period to the user terminal, so that the user terminal synchronizes the remaining first network tariff indicator when the preset synchronization period arrives; here, the preset synchronization period is less than the Internet access. Duration (scheduled for the duration of the Internet).
  • FIG. 11 is a structural diagram of another embodiment of an access server according to the present invention.
  • the access server 1000 includes a startup metering module 1001, a first sending module 1002, a first sending module 1003, and an allowed internet module 1004. 1001 and the first sending module 1002 are specifically shown in FIG. 10,
  • the first sending module 1003 is configured to: after the first sending module 1002 sends the first network tariff indicator to the user terminal, when the first network tariff indicator remaining in the access server 1000 reaches the first Zero-time, transmitting, to the first wireless access device, a release command for releasing the user terminal, so that the first wireless access device releases the association with the user terminal according to the release command;
  • the first sending module 1003 sends a release command to the first wireless access device to cancel the user terminal. After receiving the release command sent by the first sending module 1003, the wireless access device cancels the association with the user terminal according to the release command.
  • the accessing module 1004 is configured to allow the user terminal to continue to access the Internet until the remaining first network tariff indicator of the user terminal reaches zero.
  • the first network tariff indicator remaining in the user terminal first reaches zero when compared with the access server 1000, and the access module 1004 is allowed to continue to access the Internet.
  • the remaining first network resource indicator of the access server 1000 is zero, The access server 1000 does not allow the user to continue to access the Internet.
  • FIG. 12 is a structural diagram of another embodiment of an access server according to the present invention.
  • the access server 1000 includes a startup metering module 1001, a first sending module 1002, a first receiving module 1005, and a first stopping metering module 1006.
  • the metering module 1001 and the first sending module 1002 are specifically as shown in FIG. 10 .
  • the first receiving module 1005 is configured to: after the first sending module 1002 sends the first network tariff indicator to the user terminal, when the user terminal actively leaves the network, receive the first wireless access a message that the user terminal sent by the device leaves the network;
  • the user terminal when the user terminal actively leaves the network, the user terminal first cancels the association with the first wireless access device, and the first wireless access device learns that the user terminal leaves the network, and sends the learned user terminal to leave the network.
  • the access server 1000 is provided.
  • the first stop measurement module 1006 is configured to stop measuring the first network tariff indicator.
  • the access server 1000 keeps the remaining first network tariff indicator at the moment of stopping.
  • FIG. 13 is a structural diagram of another embodiment of an access server according to the present invention.
  • the access server 1000 includes a startup metering module 1001, a first sending module 1002, a second receiving module 1007, a first confirming module 1008, and a notification module 1009.
  • the second receiving module 1007 is configured to: after the first sending module 1002 sends the first network tariff indicator to the user terminal, when the user terminal is within a roaming prescribed valid time, the second wireless connection is to be associated Receiving, by the second wireless access device, whether the user terminal has successfully accessed the authentication query message;
  • the user terminal when the user terminal wants to associate with the second wireless access device, the user terminal sends an association request to the second wireless access device, and after receiving the association request of the user terminal, the second wireless access device sends the connection request to the access server 1000. Whether the user terminal has successfully accessed the authentication inquiry message.
  • the first confirmation module 1008 is configured to confirm that the user terminal has successfully accessed the authentication
  • the access server 1000 determines that the user terminal has successfully accessed the first wireless access device, and the user terminal is considered to have succeeded. Access authentication.
  • the notification module 1009 is configured to notify the second wireless access device to open the access authority of the user terminal after the user terminal confirms that the user terminal has successfully accessed the authentication;
  • the user terminal when the user terminal has successfully accessed the authentication, the user terminal does not need to perform access authentication again, and the second wireless access device activates the user terminal's access right, and returns the user terminal association response.
  • the second confirmation module 1010 is configured to confirm that the user terminal does not successfully access the authentication.
  • the metering module 1011 is restarted, and after the user terminal logs in to the second wireless access device to successfully access the authentication, the second network tariff indicator is restarted;
  • the access server 1000 re-measures the second network tariff indicator (the current remaining first network tariff indicator).
  • the second sending module 1012 is configured to send the second network tariff indicator to the user terminal, so that the user terminal re-measures according to the second network tariff indicator.
  • the second sending module 1012 sends the second network tariff indicator to the user terminal, and the user terminal re-measures according to the second network tariff indicator, and the remaining between the user terminal and the access server 1000 is reached again. Synchronization of the first network tariff indicator; the second network tariff indicator (currently remaining first network tariff indicator) is the current remaining online duration or the current remaining Internet traffic.
  • FIG. 14 is a structural diagram of another embodiment of an access server according to the present invention.
  • the access server 1000 includes a startup metering module 1001, a first sending module 1002, and a third sending module 1013, wherein the metering module 1001 and the first device are started.
  • the delivery module 1002 is specifically shown in FIG. 10,
  • the third sending module 1013 is configured to: after the first sending module sends the first network tariff indicator to the user terminal, after the user terminal forcibly closes the access authentication page, and then restarts hit When the access authentication page is opened, the remaining first network tariff indicator is delivered to the user terminal, so that the user terminal re-measures according to the remaining first network tariff indicator.
  • the remaining first network tariff indicator is not displayed on the re-opened access authentication page, and the access server 1000 is obtained by interacting with the access server 1000.
  • the remaining first network tariff indicator is measured and re-measured according to the remaining first network tariff indicator delivered by the access server 1000, so that the user terminal and the access server 1000 reach the remaining first network tariff indicator again.
  • FIG. 15 is a structural diagram of an embodiment of a user terminal according to the present invention.
  • the user terminal 1400 includes an access authentication module 1401, a third receiving module 1402, and a metering module 1403.
  • the access authentication module 1401 is configured to successfully access the authentication.
  • the user terminal 1400 associates with one SSID (Service Set Identifier) of the first radio access device, and the first radio access device redirects the HTTP response packet of the user terminal 1400 to the access server 1000.
  • the URL WWW Uniform Resource Locator
  • the user terminal 1400 obtains the network page redirected by the first wireless access device, prompts the user terminal 1400 to input the user name and password, and initiates an access authentication request to the access server 1000, and accesses
  • the server 1000 verifies the user name and password, sends an authentication success message to the first wireless access device, and feeds back the authentication result and the remaining online time of the user or the remaining Internet traffic to the user terminal 1400.
  • the first wireless access device authorizes the user terminal 1400 to access the Internet;
  • Each subnet has an SSID. Each subnet requires independent authentication. Only authenticated users can enter the corresponding subnet to prevent unauthorized users from entering the network.
  • the access authentication page is a page specified by the access server 1000, and the network address is a URL address.
  • the third receiving module 1402 is configured to receive, by using a preset synchronization period, a first network tariff indicator measured by the access server 1000;
  • the first network tariff indicator is an online time length or an online traffic flow. Because it is a reverse measurement, the online time length is the remaining online time, and the online traffic is the remaining online traffic;
  • the preset synchronization period is preset by the access server, and is sent to the user terminal.
  • the user terminal receives the first network tariff indicator measured by the access server; where the preset synchronization period is less than the Internet access Duration (default internet time).
  • the metering module 1403 is configured to start measuring according to the first network tariff indicator.
  • the metering module 1403 for measuring the duration of the Internet access may select a timer, and the metering module 1403 for measuring the Internet traffic may select a flow meter;
  • the metering module 1403 starts to measure according to the first network tariff indicator, that is, the user terminal 1400 and the access server 1000 simultaneously measure the first network tariff indicator, so that the access server 1000 does not need to frequently update the remaining number of the user terminal 1400.
  • a network tariff indicator, the user terminal 1400 can also timely know the current remaining first network tariff indicator.
  • FIG. 16 is a structural diagram of another embodiment of a user terminal according to the present invention, where the user terminal 1400 includes an access authentication.
  • the online access module 1404 is configured to: after the metering module 1403 starts measuring according to the first network tariff indicator, when the remaining first network tariff indicator of the user terminal first reaches zero, continue to access the Internet until the access server The remaining first network tariff indicator of 1000 reaches zero;
  • the access server 1000 allows the user to continue to access the Internet.
  • the access server 1000 confirms that the remaining first network resource indicator is zero
  • the access server 1000 confirms that the remaining first network resource indicator is zero.
  • the user terminal 1400 is forced to stop surfing the Internet.
  • the network access module 1405 is configured to stop the Internet when the first network tariff indicator remaining in the access server 1000 reaches zero first.
  • the access server 1000 sends a release command to the first wireless access device to release the user terminal 1400. After receiving the release command sent by the access server 1000, the first wireless access device releases the association with the user terminal 1400 according to the release command.
  • FIG. 17 is a structural diagram of another embodiment of a user terminal according to the present invention.
  • the user terminal 1400 includes an access authentication module 1401, a third receiving module 1402, a metering module 1403, a determining module 1406, a second stopping metering module 1407, and a disconnecting module. 1408 and a synchronization module 1409, wherein the access authentication module 1401, the third receiving module 1402, and the metering module 1403 are specifically as shown in FIG.
  • the determining module 1406 is configured to determine that the user terminal 1400 and the access server 1000 have been disconnected after the metering module 1403 starts measuring according to the first network tariff indicator;
  • the user terminal 1400 determines whether the ping is disconnected from the access server by sending a ping message to the access server 1000, where ping is a command under Windows, Unix, and Linux systems. Ping is also a communication protocol and is part of the TCP/IP protocol. Use the "ping" message to check if the network is connected, which can help us analyze and determine network failures.
  • a second stop measurement module 1407 configured to stop measuring the first network tariff indicator
  • the user terminal 1400 when the user terminal 1400 is unreachable by receiving the ping message, the user terminal 1400 is disconnected from the access server 1000, and the user terminal 1400 stops measuring the first network tariff indicator (the remaining first network) Tariff indicator).
  • Disconnecting module 1408, configured to disconnect a network connection with the access server 1000
  • the user terminal 1400 receives the feedback of the ping message as unreachable, and the user terminal 1400 disconnects the connection with the access server 1000.
  • the synchronization module 1409 is configured to initiate reconnection to the access server 1000 every predetermined time.
  • the synchronization module 1409 initiates an Internet connection to the access server 1000 every N seconds; during this period, the synchronization of the network tariff indicator between the user terminal 1400 and the access server 1000 is stopped.
  • FIG. 18 is a structural diagram of another embodiment of a user terminal according to the present invention.
  • the user terminal 1400 includes an access authentication module 1401, a third receiving module 1402, a metering module 1403, a second sending module 1410, and a login mode.
  • the block 1411, the fourth receiving module 1412, and the first re-metering module 1413, wherein the access authentication module 1401, the third receiving module 1402, and the metering module 1403 are specifically as shown in FIG.
  • a second sending module 1410 configured to: when the metering module 1403 starts to measure according to the first network tariff indicator, when the user terminal 1400 is to associate with the second wireless access device during a roaming defined effective time Sending an association request to the second wireless access device, so that the second wireless access device confirms whether to allow the user terminal 1400 to associate according to the association request;
  • the user terminal 1400 when the user terminal 1400 wants to associate with the second wireless access device, the user terminal 1400 sends an association request to the second wireless access device, and after receiving the association request of the user terminal 1400, the second wireless access device accesses
  • the server 1000 sends whether the user terminal 1400 has successfully accessed the authentication query message, and according to the feedback of the access server 1000, the second wireless access device confirms whether the user terminal 1400 is allowed to be associated; when the access server 1000 feeds back the user terminal 1400 has successfully received Entering the authentication, the second wireless access device allows the user terminal 1400 to associate; otherwise, the second wireless access device does not allow the user terminal 1400 to associate;
  • the domain name of the access server 1000 is generally whitelisted, and the user terminal 1400 initiates an Internet connection to the access server 1000 every N seconds by using the reconnection mechanism;
  • the user network 1400 and the access server 1000 stop synchronizing the network tariff indicator.
  • the login module 1411 is configured to log in to the second wireless access device to connect when the user terminal 1400 receives the unsuccessful access authentication sent by the access server 1000 and cannot associate with the second wireless access device. Enter the certification;
  • the access server 1000 re-measures the second network tariff indicator (the current remaining first network tariff indicator), and the second network tariff is The indicator is sent to the user terminal 1400.
  • the fourth receiving module 1412 is configured to receive the second network tariff indicator delivered by the access server 1000 when the login module 1411 successfully accesses the authentication;
  • the second network tariff indicator (the current remaining first network tariff indicator) is the current remaining online duration or the current remaining Internet traffic;
  • the first re-metric module 1413 is configured to re-measure according to the second network tariff indicator.
  • the user terminal 1400 re-measures according to the second network tariff indicator, that is, the synchronization between the user terminal 1400 and the access server 1000 reaches the remaining first network tariff indicator again.
  • FIG. 19 is a structural diagram of another embodiment of a user terminal according to the present invention.
  • the user terminal 1400 includes an access authentication module 1401, a third receiving module 1402, a metering module 1403, a fifth receiving module 1414, and a second re-metering module 1415.
  • the access authentication module 1401, the third receiving module 1402, and the metering module 1403 are specifically as shown in FIG.
  • the fifth receiving module 1414 is configured to: after the metering module 1403 starts to measure according to the first network tariff indicator, when the user terminal 1400 forcibly closes the access authentication page online, and then reopens the access authentication page, Receiving the remaining first network tariff indicator sent by the access server 1000;
  • the remaining first network tariff indicator is not displayed on the access authentication page, and the remaining first network tariff indicator measured by the access server 1000 is obtained by interacting with the access server 1000.
  • the second re-measurement module 1415 is configured to re-measure according to the remaining first network tariff indicators.
  • the user terminal 1400 re-measures according to the remaining first network tariff indicator delivered by the access server 1000, that is, the user terminal 1400 and the access server 1000 once again reach the synchronization of the remaining first network tariff indicators.
  • the system 2000 is a structural diagram of an embodiment of a network tariff indicator synchronization system of an access authentication page according to the present invention.
  • the system 2000 includes an access server 1000 and a user terminal 1400.
  • the access server 1000 is configured to start measuring the first network tariff indicator after the user terminal 1400 successfully accesses the authentication; the first network tariff indicator is an online time length or an online traffic; and the first network is preset in a synchronization period.
  • the tariff indicator is sent to the user terminal 1400, so that the user terminal 1400 starts to measure according to the first network tariff indicator.
  • the user terminal 1400 is configured to successfully access the authentication; and receive the first network tariff indicator measured by the access server 1000 in the preset synchronization period; the first network tariff indicator is the Internet access time or the Internet traffic; and according to the first network The tariff indicator begins to measure.
  • the function modules of the access server 1000 and the user terminal 1400 provided by the embodiment may be software modules or functional modules combined with software and hardware, which may be implemented by a processor to implement the functions as described above.
  • the access server 1000 and the user terminal 1400 may also have other functional modules to implement the specific steps of overcoming the timely synchronization of the Internet access time or the Internet traffic. For details, refer to the corresponding description of the foregoing method embodiments.
  • the processor executes, and when the aforementioned program is executed, the processor can execute all or part of the steps including the above method embodiments.
  • the processor may be implemented as one or more processor chips, or may be part of one or more application specific integrated circuits (ASICs); and the foregoing storage medium may include but not be limited to the following types. Storage medium: Flash memory, Read-Only Memory (ROM), Random Access Memory (RAM), removable hard disk, disk or optical disk, and other media that can store program code.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Meter Arrangements (AREA)
  • Telephonic Communication Services (AREA)

Abstract

Provided is a method for optimizing the synchronisation of a network tariff index on an access authentication page. The method comprises: when the user terminal is successful in access authentication, an access server starting to meter a first network tariff index, wherein the first network tariff index is an Internet surfing duration or Internet traffic; issuing the first network tariff index to the user terminal at a pre-set synchronization time, so as to facilitate the user terminal starting metering according to the first network tariff index. Thus, in the technical solution of the present invention, by implanting a local metering instrument in an access authentication successful page of a user terminal, when the user terminal is successful in access authentication, an access server and the user terminal time synchronously, and necessary data synchronization is only performed when the user terminal is authenticated again, is on-line or is setting synchronization period, so that the number of synchronizations between the user terminal and the access server can be greatly reduced, the synchronization pressure of the access server can be alleviated and the user experience is improved.

Description

一种接入认证页面网络资费指标同步优化方法及设备Method and device for synchronizing optimization of network tariff index of access authentication page 技术领域Technical field
本发明涉及接入认证页面网络资费指标同步技术领域,更具体地,涉及一种接入认证页面网络资费指标同步优化方法及设备。The present invention relates to the field of network tariff indicator synchronization technology for access authentication page, and more particularly to a method and device for synchronizing network tariff index synchronization optimization of an access authentication page.
背景技术Background technique
当前无线覆盖越来越多,使用手机等移动终端设备也越来越多。Portal(接入)认证是无线网络接入认证的流行技术之一,当用户终端接入某一无线网络时,会自动弹出Portal接入认证页面,提示用户终端输入帐户信息来完成接入认证,认证成功后会在Portal认证成功页显示用户此时的剩余上网时长(即用户当前还剩余多长上网时间)或剩余上网流量(即用户当前还剩余多少上网流量),用户在使用网络过程中会随时了解自己的上网时长,有时会频繁刷新页面,及时与Portal服务器同步数据,当无线网络的AP(无线接入设备)比较多,用户使用量比较大时,特别是在商场、旅游景区等人流量密集区域,上网时长或上网流量同步会对Portal服务器造成较大压力,严重时会导致用户打开Portal页面变得异常缓慢,直接影响了用户上网体验。There are more and more wireless coverage, and more and more mobile terminal devices such as mobile phones are used. Portal authentication is one of the popular technologies for wireless network access authentication. When a user terminal accesses a wireless network, the portal access authentication page is automatically popped up, prompting the user terminal to input account information to complete the access authentication. After the authentication succeeds, the Portal authentication success page displays the remaining Internet access time (that is, how long the user has left the Internet time) or the remaining Internet traffic (that is, how much Internet traffic the user currently has). The user will use the network during the network. Keep abreast of your Internet time, sometimes refresh the page frequently, and synchronize data with the Portal server in time. When the AP (wireless access device) of the wireless network is more, the user usage is relatively large, especially in shopping malls, tourist attractions, etc. In a traffic-intensive area, the Internet access time or Internet traffic synchronization can cause a lot of pressure on the Portal server. In severe cases, the user opens the Portal page and becomes very slow, which directly affects the user's Internet experience.
目前大多数的实现方案在用户登录并认证成功后,Portal认证成功页面所显示的剩余上网时长或剩余上网流量实时与Portal服务器同步,同步频率非常高,甚至达到秒或分钟,给Portal服务器造成很大的压力,影响了Portal服务器的正常Portal功能,导致用户体验下降;有的实现方案下发给STA(用户终端)上网时长后,会在本地认证页面计量,但并没有与Portal服务器同步,显示时长或流量的数据在漫游或临时下线情况下严重失误。After the user logs in and authenticates successfully, the remaining Internet access time or remaining Internet traffic displayed on the Portal authentication success page is synchronized with the Portal server in real time. The synchronization frequency is very high, even reaching seconds or minutes, which causes the Portal server to be very The large pressure affects the normal Portal function of the Portal server, which leads to a decrease in the user experience. After the implementation is sent to the STA (user terminal) for a long time, it will be measured on the local authentication page, but it is not synchronized with the Portal server. Data of duration or traffic is seriously erroneous in the case of roaming or temporary offline.
发明内容Summary of the invention
有鉴于此,本发明提出一种接入认证页面网络资费指标同步优化方法,所述方法包括:In view of this, the present invention provides a method for synchronizing optimization of network tariff indicators of an access authentication page, and the method includes:
当用户终端成功接入认证后,接入服务器启动计量第一网络资费指标;所述第一网络资费指标为上网时长或上网流量;After the user terminal successfully accesses the authentication, the access server starts to measure the first network tariff indicator; the first network tariff indicator is the Internet duration or the Internet traffic;
并在预设同步周期将所述第一网络资费指标下发给所述用户终端,以便所述用户终端按照所述第一网络资费指标开始计量。And sending the first network tariff indicator to the user terminal in a preset synchronization period, so that the user terminal starts to measure according to the first network tariff indicator.
进一步地,在所述接入服务器将所述第一网络资费指标下发给所述用户终端之后,所述方法还包括: Further, after the access server sends the first network tariff indicator to the user terminal, the method further includes:
当所述接入服务器剩余的第一网络资费指标先达到零时,所述接入服务器向第一无线接入设备发送解除所述用户终端的解除命令,以便所述第一无线接入设备根据所述解除命令解除与所述用户终端的关联;When the first network tariff indicator remaining in the access server reaches zero first, the access server sends a release command to the first wireless access device to release the user terminal, so that the first wireless access device is configured according to the Dissolving the command to release the association with the user terminal;
当所述用户终端剩余的第一网络资费指标先达到零时,所述接入服务器允许所述用户终端继续上网直到所述接入服务器剩余的第一网络资费指标达到零。When the remaining first network tariff indicator of the user terminal first reaches zero, the access server allows the user terminal to continue to access the Internet until the first network tariff indicator remaining by the access server reaches zero.
进一步地,在所述接入服务器将所述第一网络资费指标下发给所述用户终端之后,所述方法还包括:Further, after the access server sends the first network tariff indicator to the user terminal, the method further includes:
当所述用户终端主动离开网络时,所述接入服务器接收所述第一无线接入设备发送的所述用户终端离开网络的消息;When the user terminal actively leaves the network, the access server receives a message that the user terminal sends the first wireless access device to leave the network;
所述接入服务器停止计量所述第一网络资费指标。The access server stops measuring the first network tariff indicator.
进一步地,在所述接入服务器将所述第一网络资费指标下发给所述用户终端之后,所述方法还包括:Further, after the access server sends the first network tariff indicator to the user terminal, the method further includes:
当所述用户终端在漫游规定有效时间内,欲关联第二无线接入设备时,所述接入服务器接收所述第二无线接入设备发送的所述用户终端是否已成功接入认证的询问消息;When the user terminal is to associate with the second wireless access device during the roaming specified effective time, the access server receives an inquiry that the user terminal sent by the second wireless access device has successfully accessed the authentication. Message
当所述接入服务器确认所述用户终端已成功接入认证后,则通知所述第二无线接入设备开通所述用户终端上网权限;After the access server confirms that the user terminal has successfully accessed the authentication, notifying the second wireless access device to open the access authority of the user terminal;
当所述接入服务器确认所述用户终端没有成功接入认证时,且当所述用户终端登录所述第二无线接入设备成功接入认证后,所述接入服务器重新启动计量第二网络资费指标,并将所述第二网络资费指标下发给所述用户终端,以便所述用户终端按照所述第二网络资费指标重新计量;所述第二网络资费指标为当前剩余的上网时长或当前剩余的上网流量。When the access server confirms that the user terminal does not successfully access the authentication, and after the user terminal logs in to the second wireless access device to successfully access the authentication, the access server restarts the metering second network. a tariff indicator, and the second network tariff indicator is sent to the user terminal, so that the user terminal re-measures according to the second network tariff indicator; the second network tariff indicator is the current remaining online duration or The current remaining Internet traffic.
本发明还提出一种接入认证页面网络资费指标同步优化方法,所述方法包括:The invention also provides a synchronization optimization method for the network tariff indicator of the access authentication page, the method comprising:
用户终端成功接入认证;The user terminal successfully accesses the authentication;
并在预设同步周期接收接入服务器计量的第一网络资费指标;所述第一网络资费指标为上网时长或上网流量;Receiving, by the preset synchronization period, a first network tariff indicator measured by the access server; the first network tariff indicator is an online time duration or an online traffic;
且按照所述第一网络资费指标开始计量。And measuring according to the first network tariff indicator.
进一步地,在所述用户终端按照所述第一网络资费指标开始计量之后,所述方法还包括:Further, after the user terminal starts to measure according to the first network tariff indicator, the method further includes:
当所述用户终端剩余的第一网络资费指标先达到零时,所述用户终端继续上网直到所述接入服务器剩余的第一网络资费指标达到零;When the remaining first network tariff indicator of the user terminal first reaches zero, the user terminal continues to access the Internet until the first network tariff indicator remaining by the access server reaches zero;
当所述接入服务器剩余的第一网络资费指标先达到零时,所述用户终端停止上网。When the remaining first network tariff indicator of the access server first reaches zero, the user terminal stops surfing the Internet.
进一步地,在所述用户终端按照所述第一网络资费指标开始计量之后,所述方法还包括:Further, after the user terminal starts to measure according to the first network tariff indicator, the method further includes:
当所述用户终端离开网络时,所述用户终端判断自身与所述接入服务器已经断开;When the user terminal leaves the network, the user terminal determines that it has been disconnected from the access server;
则停止计量所述第一网络资费指标; Stop measuring the first network tariff indicator;
并断开与所述接入服务器的网络连接;And disconnecting the network connection with the access server;
且每隔预定时间向所述接入服务器发起重新连接。And reconnecting to the access server every predetermined time.
进一步地,在所述用户终端按照所述第一网络资费指标开始计量之后,所述方法还包括:Further, after the user terminal starts to measure according to the first network tariff indicator, the method further includes:
当所述用户终端在漫游规定有效时间内,欲关联所述第二无线接入设备时,所述用户终端向所述第二无线接入设备发送关联请求,以便所述第二无线接入设备根据所述关联请求确认是否允许所述用户终端关联;When the user terminal is to associate with the second wireless access device within a roaming validity time, the user terminal sends an association request to the second wireless access device, so that the second wireless access device Confirming whether the user terminal is allowed to be associated according to the association request;
当所述用户终端接收到所述接入服务器发送的没有成功接入认证不能关联所述第二无线接入设备时,所述用户终端登录所述第二无线接入设备进行接入认证;When the user terminal receives the unsuccessful access authentication sent by the access server and cannot associate with the second wireless access device, the user terminal logs in to the second wireless access device to perform access authentication;
在所述用户终端成功接入认证时,所述用户终端接收所述接入服务器下发的第二网络资费指标,并按照所述第二网络资费指标重新计量;所述第二网络资费指标为当前剩余的上网时长或当前剩余的上网流量。When the user terminal successfully accesses the authentication, the user terminal receives the second network tariff indicator delivered by the access server, and re-measures according to the second network tariff indicator; the second network tariff indicator is The current remaining Internet time or the current remaining Internet traffic.
本发明还提出一种接入服务器,所述接入服务器包括:The invention also provides an access server, the access server comprising:
启动计量模块,用于当用户终端成功接入认证后,启动计量第一网络资费指标;所述第一网络资费指标为上网时长或上网流量;The metering module is started to start measuring the first network tariff indicator after the user terminal successfully accesses the authentication; the first network tariff indicator is the online time length or the Internet traffic;
第一下发模块,用于在预设同步周期将所述第一网络资费指标下发给所述用户终端,以便所述用户终端按照所述第一网络资费指标开始计量。The first sending module is configured to send the first network tariff indicator to the user terminal in a preset synchronization period, so that the user terminal starts to measure according to the first network tariff indicator.
进一步地,所述接入服务器还包括:Further, the access server further includes:
第一发送模块,用于在所述第一下发模块将所述第一网络资费指标下发给所述用户终端之后,当所述接入服务器剩余的第一网络资费指标先达到零时,向第一无线接入设备发送解除所述用户终端的解除命令,以便所述第一无线接入设备根据所述解除命令解除与所述用户终端的关联;a first sending module, configured to: after the first sending module sends the first network tariff indicator to the user terminal, when the first network tariff indicator remaining by the access server reaches zero first, Sending, to the first wireless access device, a release command for releasing the user terminal, so that the first wireless access device releases the association with the user terminal according to the release command;
允许上网模块,用于当所述用户终端剩余的第一网络资费指标先达到零时,允许所述用户终端继续上网直到所述接入服务器剩余的第一网络资费指标达到零。The network access module is configured to allow the user terminal to continue to access the Internet until the remaining first network tariff indicator of the user terminal reaches zero.
进一步地,所述接入服务器还包括:Further, the access server further includes:
第一接收模块,用于在所述第一下发模块将所述第一网络资费指标下发给所述用户终端之后,当所述用户终端主动离开网络时,接收所述第一无线接入设备发送的所述用户终端离开网络的消息;a first receiving module, configured to: after the first sending module sends the first network tariff indicator to the user terminal, when the user terminal actively leaves the network, receive the first wireless access a message that the user terminal sent by the device leaves the network;
第一停止计量模块,用于停止计量所述第一网络资费指标。The first stopping metering module is configured to stop measuring the first network tariff indicator.
进一步地,所述接入服务器还包括:Further, the access server further includes:
第二接收模块,用于在所述第一下发模块将所述第一网络资费指标下发给所述用户终端之后,当所述用户终端在漫游规定有效时间内,欲关联第二无线接入设备时,接收所述第二无线接入设备发送的所述用户终端是否已成功接入认证的询问消息;a second receiving module, configured to: after the first sending module sends the first network tariff indicator to the user terminal, when the user terminal is within a roaming validity period, to associate with the second wireless connection Receiving, by the second wireless access device, whether the user terminal has successfully accessed the authentication query message;
第一确认模块,用于确认所述用户终端已成功接入认证;a first confirmation module, configured to confirm that the user terminal has successfully accessed the authentication;
通知模块,用于在所述用户终端确认所述用户终端已成功接入认证后,则通 知所述第二无线接入设备开通所述用户终端上网权限;a notification module, configured to: after the user terminal confirms that the user terminal has successfully accessed the authentication, Knowing that the second wireless access device opens the access right of the user terminal;
第二确认模块,用于确认所述用户终端没有成功接入认证;a second confirmation module, configured to confirm that the user terminal does not successfully access the authentication;
重新启动计量模块,用于当所述用户终端登录所述第二无线接入设备成功接入认证后,重新启动计量第二网络资费指标;The metering module is restarted, and after the user terminal logs in to the second wireless access device to successfully access the authentication, the second network tariff indicator is restarted;
第二下发模块,用于将所述第二网络资费指标下发给所述用户终端,以便所述用户终端按照所述第二网络资费指标重新计量;所述第二网络资费指标为当前剩余的上网时长或当前剩余的上网流量。a second sending module, configured to send the second network tariff indicator to the user terminal, so that the user terminal re-measures according to the second network tariff indicator; the second network tariff indicator is current remaining The length of the Internet or the current remaining Internet traffic.
本发明还提出一种用户终端,所述用户终端包括:The invention also provides a user terminal, the user terminal comprising:
接入认证模块,用于成功接入认证;Access authentication module for successful access authentication;
第三接收模块,用于在预设同步周期接收接入服务器计量的第一网络资费指标;所述第一网络资费指标为上网时长或上网流量;The third receiving module is configured to receive, by using a first network tariff indicator measured by the access server, in the preset synchronization period, where the first network tariff indicator is an online time length or an online traffic flow;
计量模块,用于按照所述第一网络资费指标开始计量。The metering module is configured to start measuring according to the first network tariff indicator.
进一步地,所述用户终端还包括:Further, the user terminal further includes:
继续上网模块,用于在所述计量模块按照所述第一网络资费指标开始计量之后,当所述用户终端剩余的第一网络资费指标先达到零时,继续上网直到所述接入服务器剩余的第一网络资费指标达到零;Continuing the Internet access module, after the metering module starts measuring according to the first network tariff indicator, when the remaining first network tariff indicator of the user terminal first reaches zero, continuing to access the Internet until the remaining of the access server The first network tariff indicator reaches zero;
停止上网模块,用于当所述接入服务器剩余的第一网络资费指标先达到零时,停止上网。The network module is stopped, and when the first network tariff indicator remaining in the access server reaches zero first, the network is stopped.
进一步地,所述用户终端还包括:Further, the user terminal further includes:
第二发送模块,用于在所述计量模块按照所述第一网络资费指标开始计量之后,当所述用户终端在漫游规定有效时间内,欲关联所述第二无线接入设备时,向所述第二无线接入设备发送关联请求,以便所述第二无线接入设备根据所述关联请求确认是否允许所述用户终端关联;a second sending module, configured to: after the metering module starts to measure according to the first network tariff indicator, when the user terminal is to associate with the second wireless access device within a roaming effective time, The second wireless access device sends an association request, so that the second wireless access device confirms whether to allow the user terminal to associate according to the association request;
登录模块,用于当所述用户终端接收到所述接入服务器发送的没有成功接入认证不能关联所述第二无线接入设备时,登录所述第二无线接入设备进行接入认证;a login module, configured to log in to the second wireless access device to perform access authentication when the user terminal receives the unsuccessful access authentication sent by the access server and cannot associate with the second wireless access device;
第四接收模块,用于在所述登录模块成功接入认证时,接收所述接入服务器下发的第二网络资费指标;所述第二网络资费指标为当前剩余的上网时长或当前剩余的上网流量;a fourth receiving module, configured to receive a second network tariff indicator delivered by the access server when the login module successfully accesses the authentication; the second network tariff indicator is a current remaining online duration or currently remaining Internet traffic;
第一重新计量模块,用于按照所述第二网络资费指标重新计量。The first re-measurement module is configured to re-measure according to the second network tariff indicator.
本发明技术方案通过在用户终端的接入认证成功页植入本地计量仪器,当用户终端成功接入认证时,接入服务器和用户终端同时计时,只在用户再次认证、上线或设定同步周期内才进行必要的数据同步,从而大大减少了用户终端与接入服务器的同步次数,减轻了接入服务器的同步压力,提高了用户体验。The technical solution of the present invention is implemented by embedding a local measuring instrument on the access authentication success page of the user terminal. When the user terminal successfully accesses the authentication, the access server and the user terminal simultaneously time, only when the user re-authenticates, goes online, or sets the synchronization period. The necessary data synchronization is performed within the network, thereby greatly reducing the number of synchronizations between the user terminal and the access server, reducing the synchronization pressure of the access server, and improving the user experience.
附图说明DRAWINGS
图1为本发明接入认证页面网络资费指标同步优化方法的一种实施例的流程图; 1 is a flowchart of an embodiment of a method for synchronizing optimization of a network tariff indicator of an access authentication page according to the present invention;
图2为本发明接入认证页面网络资费指标同步优化方法的另一种实施例的流程图;2 is a flowchart of another embodiment of a method for synchronously optimizing a network tariff indicator of an access authentication page according to the present invention;
图3为本发明接入认证页面网络资费指标同步优化方法的另一种实施例的流程图;3 is a flowchart of another embodiment of a method for synchronizing network tariff indicators in an access authentication page according to the present invention;
图4为本发明接入认证页面网络资费指标同步优化方法的另一种实施例的流程图;4 is a flowchart of another embodiment of a method for synchronously optimizing a network tariff indicator of an access authentication page according to the present invention;
图5为本发明接入认证页面网络资费指标同步优化方法的一种实施例的流程图;5 is a flowchart of an embodiment of a method for synchronously optimizing a network tariff indicator of an access authentication page according to the present invention;
图6为本发明接入认证页面网络资费指标同步优化方法的另一种实施例的流程图;6 is a flowchart of another embodiment of a method for synchronously optimizing a network tariff indicator of an access authentication page according to the present invention;
图7为本发明接入认证页面网络资费指标同步优化方法的另一种实施例的流程图;7 is a flowchart of another embodiment of a method for synchronously optimizing a network tariff indicator of an access authentication page according to the present invention;
图8为本发明接入认证页面网络资费指标同步优化方法的另一种实施例的流程图;FIG. 8 is a flowchart of another embodiment of a method for synchronously optimizing a network tariff indicator of an access authentication page according to the present invention; FIG.
图9为本发明接入认证页面网络资费指标同步优化方法的另一种实施例的流程图;9 is a flowchart of another embodiment of a method for synchronously optimizing a network tariff indicator of an access authentication page according to the present invention;
图10为本发明接入服务器一种实施例的结构图;10 is a structural diagram of an embodiment of an access server according to the present invention;
图11为本发明接入服务器另一种实施例的结构图;11 is a structural diagram of another embodiment of an access server according to the present invention;
图12为本发明接入服务器另一种实施例的结构图;12 is a structural diagram of another embodiment of an access server according to the present invention;
图13为本发明接入服务器另一种实施例的结构图;13 is a structural diagram of another embodiment of an access server according to the present invention;
图14为本发明接入服务器另一种实施例的结构图;14 is a structural diagram of another embodiment of an access server according to the present invention;
图15为本发明用户终端一种实施例的结构图;15 is a structural diagram of an embodiment of a user terminal according to the present invention;
图16为本发明用户终端另一种实施例的结构图;16 is a structural diagram of another embodiment of a user terminal according to the present invention;
图17为本发明用户终端另一种实施例的结构图;17 is a structural diagram of another embodiment of a user terminal according to the present invention;
图18为本发明用户终端另一种实施例的结构图;18 is a structural diagram of another embodiment of a user terminal according to the present invention;
图19为本发明用户终端另一种实施例的结构图;19 is a structural diagram of another embodiment of a user terminal according to the present invention;
图20为本发明接入认证页面网络资费指标同步优化系统的一种实施例的结构图。FIG. 20 is a structural diagram of an embodiment of a network tariff indicator synchronization optimization system for an access authentication page according to the present invention.
具体实施方式detailed description
本发明技术方案通过当用户终端成功接入认证后,接入服务器启动计量第一网络资费指标;所述第一网络资费指标为上网时长或上网流量;并将所述第一网络资费指标下发给所述用户终端,以便所述用户终端按照所述第一网络资费指标开始计量。After the user terminal successfully accesses the authentication, the access server starts to measure the first network tariff indicator; the first network tariff indicator is the Internet access time or the Internet traffic; and the first network tariff indicator is issued. Giving the user terminal, so that the user terminal starts measuring according to the first network tariff indicator.
为使本发明的目的、技术方案和优点更加清楚明白,以下举实施例并参照附图,对本发明进一步详细说明。The present invention will be further described in detail below with reference to the accompanying drawings.
图1为本发明接入认证页面网络资费指标同步优化方法的一种实施例的流程图,适于接入服务器侧,具体流程如下: FIG. 1 is a flowchart of an embodiment of a method for synchronizing and optimizing a network tariff indicator of an access authentication page according to the present invention, which is suitable for accessing a server side, and the specific process is as follows:
步骤S101,当用户终端成功接入认证后,接入服务器启动计量第一网络资费指标;Step S101, after the user terminal successfully accesses the authentication, the access server starts to measure the first network tariff indicator;
具体地,所述第一网络资费指标为上网时长或上网流量,这里计量是倒计量,比如上网时长可计量为剩余上网时长,上网流量可计量为剩余上网流量。Specifically, the first network tariff indicator is an online time length or an online traffic flow, where the measurement is a reverse measurement, for example, the online time length can be measured as the remaining online time, and the online traffic can be measured as the remaining online traffic.
步骤S102,并在预设同步周期将所述第一网络资费指标下发给所述用户终端,以便所述用户终端按照所述第一网络资费指标开始计量。In step S102, the first network tariff indicator is sent to the user terminal in a preset synchronization period, so that the user terminal starts to measure according to the first network tariff indicator.
具体地,用户终端按照第一网络资费指标开始计量,也就是说,用户终端与接入服务器同时计量第一网络资费指标,这样,接入服务器仅在预设同步周期与用户终端同步剩余的第一网络资费指标,如此,接入服务器不需与用户终端频繁同步剩余的第一网络资费指标,用户终端也能够及时准确地了解目前剩余的第一网络资费指标;Specifically, the user terminal starts to measure according to the first network tariff indicator, that is, the user terminal and the access server simultaneously measure the first network tariff indicator, so that the access server synchronizes with the user terminal only in the preset synchronization period. A network tariff indicator, in this way, the access server does not need to frequently synchronize the remaining first network tariff indicators with the user terminal, and the user terminal can also timely and accurately understand the current remaining first network tariff indicator;
其中,接入服务器预设同步周期,且将预设同步周期下发给用户终端,以便用户终端在预设同步周期到来时同步剩余的第一网络资费指标;这里,预设同步周期小于上网时长(预定上网时长)。The access server presets the synchronization period, and sends the preset synchronization period to the user terminal, so that the user terminal synchronizes the remaining first network tariff indicator when the preset synchronization period arrives; here, the preset synchronization period is less than the online duration (Scheduled for the length of the Internet).
其中,在步骤S102将所述第一网络资费指标下发给所述用户终端之后,本发明接入认证页面网络资费指标同步优化方法还如附图2所示,具体步骤如下:After the first network tariff indicator is delivered to the user terminal in step S102, the network optimization index synchronization optimization method of the access authentication page of the present invention is also shown in FIG. 2, and the specific steps are as follows:
步骤S201,当所述接入服务器剩余的第一网络资费指标先达到零时,所述接入服务器向第一无线接入设备发送解除所述用户终端的解除命令;Step S201: When the first network tariff indicator remaining by the access server reaches zero first, the access server sends a release command to the first wireless access device to cancel the user terminal.
具体地,与用户终端相比,所述接入服务器的剩余的第一网络资费指标先达到零时,接入服务器才向第一无线接入设备下发解除用户终端的解除命令,第一无线接入设备接收到接入服务器发送的解除命令后,根据所述解除命令解除与所述用户终端的关联。Specifically, when the remaining first network tariff indicator of the access server reaches zero first, the access server sends a release command to the first wireless access device to release the user terminal, the first wireless After receiving the release command sent by the access server, the access device releases the association with the user terminal according to the release command.
步骤S202,当所述用户终端剩余的第一网络资费指标先达到零时,所述接入服务器允许所述用户终端继续上网直到所述接入服务器剩余的第一网络资费指标达到零。Step S202: When the remaining first network tariff indicator of the user terminal reaches zero first, the access server allows the user terminal to continue to access the Internet until the first network tariff indicator remaining by the access server reaches zero.
具体地,与接入服务器相比,用户终端剩余的第一网络资费指标先达到零时,接入服务器允许用户继续上网,当接入服务器确认剩余的第一网资源指标为零时,接入服务器不允许用户继续上网。Specifically, when the first network tariff indicator remaining by the user terminal reaches zero first, the access server allows the user to continue to access the Internet, and the access server confirms that the remaining first network resource indicator is zero. The server does not allow users to continue to go online.
其中,在步骤S102将所述第一网络资费指标下发给所述用户终端之后,本发明接入认证页面网络资费指标同步优化方法还如附图3所示,具体步骤如下:After the first network tariff indicator is delivered to the user terminal in step S102, the network optimization index synchronization optimization method of the access authentication page of the present invention is also shown in FIG. 3, and the specific steps are as follows:
步骤S301,当所述用户终端主动离开网络时,所述接入服务器接收所述第一无线接入设备发送的所述用户终端离开网络的消息;Step S301, when the user terminal actively leaves the network, the access server receives a message that the user terminal sent by the first wireless access device leaves the network;
具体地,当用户终端主动离开网络时,首先用户终端解除了与第一无线接入设备的关联,第一无线接入设备便获知用户终端离开网络,并将获知的用户终端离开网络的消息发送给接入服务器。Specifically, when the user terminal actively leaves the network, the user terminal first cancels the association with the first wireless access device, and the first wireless access device learns that the user terminal leaves the network, and sends the learned user terminal to leave the network. Give access to the server.
步骤S302,所述接入服务器停止计量所述第一网络资费指标。Step S302, the access server stops measuring the first network tariff indicator.
具体地,接入服务器停止计量所述网络资费指标后,接入服务器一直保留停止那一刻的剩余的第一网络资费指标。 Specifically, after the access server stops measuring the network tariff indicator, the access server keeps the remaining first network tariff indicator at the moment of stopping.
其中,在步骤S102将所述第一网络资费指标下发给所述用户终端之后,本发明接入认证页面网络资费指标同步优化方法还如附图4所示,具体步骤如下:After the first network tariff indicator is delivered to the user terminal in step S102, the network optimization index synchronization optimization method of the access authentication page of the present invention is also shown in FIG. 4, and the specific steps are as follows:
步骤S401,当所述用户终端在漫游规定有效时间内,欲关联第二无线接入设备时,所述接入服务器接收所述第二无线接入设备发送的所述用户终端是否已成功接入认证的询问消息;Step S401: When the user terminal is to associate with the second wireless access device within the roaming validity time, the access server receives whether the user terminal sent by the second wireless access device has successfully accessed Certified inquiry message;
具体地,当用户终端欲关联第二无线接入设备时,用户终端向第二无线接入设备发送关联请求,收到用户终端的关联请求后,第二无线接入设备向接入服务器发送该用户终端是否已经成功接入认证的询问消息。Specifically, when the user terminal wants to associate with the second wireless access device, the user terminal sends an association request to the second wireless access device, and after receiving the association request of the user terminal, the second wireless access device sends the connection request to the access server. Whether the user terminal has successfully accessed the authentication inquiry message.
步骤S402,所述接入服务器确认所述用户终端已成功接入认证后,则通知所述第二无线接入设备开通所述用户终端上网权限;Step S402, the access server confirms that the user terminal has successfully accessed the authentication, and then notifies the second wireless access device to open the access authority of the user terminal;
具体地,接收到第二无线接入设备发送的用户终端是否已经成功接入认证的询问消息后,接入服务器查询用户终端已成功接入第一无线接入设备,则认为用户终端已成功接入认证,则用户终端无需再次进行接入认证,则第二无线接入设备开通用户终端上网权限,并且返回用户终端关联响应;Specifically, after receiving the inquiry message that the user terminal sent by the second wireless access device has successfully accessed the authentication, the access server queries that the user terminal has successfully accessed the first wireless access device, and the user terminal is successfully connected. If the user terminal does not need to perform access authentication again, the second wireless access device activates the user terminal to access the Internet and returns the user terminal association response.
另外,当用户终端关联上第二无线接入设备后,由于接入服务器的域名一般时白名单,则用户终端利用重连机制每隔N秒向接入服务器发起上网连接;期间,用户终端与接入服务器之间停止同步网络资费指标。In addition, after the user terminal is associated with the second wireless access device, because the domain name of the access server is generally whitelisted, the user terminal initiates an Internet connection to the access server every N seconds by using the reconnection mechanism; during the period, the user terminal and the user terminal Stop synchronizing network tariff indicators between access servers.
步骤S403,当所述接入服务器确认所述用户终端没有成功接入认证时,且当所述用户终端登录所述第二无线接入设备成功接入认证后,所述接入服务器重新启动计量第二网络资费指标,并将所述第二网络资费指标下发给所述用户终端。Step S403, when the access server confirms that the user terminal does not successfully access the authentication, and after the user terminal logs in to the second wireless access device to successfully access the authentication, the access server restarts the measurement. And the second network tariff indicator is sent to the user terminal.
具体地,也就是用户终端重新成功接入认证后,接入服务器重新计量第二网络资费指标(当前剩余的第一网络资费指标),并将第二网络资费指标下发给用户终端,则所述用户终端按照所述第二网络资费指标重新计量,则用户终端与接入服务器之间再次达到剩余第一网络资费指标的同步;所述第二网络资费指标(当前剩余的第一网络资费指标)为当前剩余的上网时长或当前剩余的上网流量。Specifically, after the user terminal successfully re-accesses the authentication, the access server re-measures the second network tariff indicator (the current remaining first network tariff indicator), and delivers the second network tariff indicator to the user terminal, where The user terminal re-measures according to the second network tariff indicator, and the synchronization between the user terminal and the access server reaches the remaining first network tariff indicator again; the second network tariff indicator (the current remaining first network tariff indicator) ) is the current remaining Internet time or the current remaining Internet traffic.
另外,当所述用户终端在线强制关闭接入认证页面后,又重新打开接入认证页面时,所述接入服务器将计量的剩余的所述第一网络资费指标下发给所述用户终端,以便所述用户终端按照剩余的所述第一网络资费指标重新计量。In addition, when the user terminal re-opens the access authentication page after the user terminal is forced to close the access authentication page, the access server sends the measured first network tariff indicator to the user terminal. The user terminal is re-measured according to the remaining first network tariff indicator.
具体地,用户终端的接入认证页面关闭后又重新打开,则重新打开后的接入认证页面上没有显示剩余的第一网络资费指标,则通过与接入服务器进行交互获得接入服务器计量的剩余的第一网络资费指标,并按照接入服务器下发的剩余的第一网络资费指标重新计量,使用户终端与接入服务器器再一次达到剩余的第一网络资费指标的同步。Specifically, after the access authentication page of the user terminal is closed and then re-opened, the remaining first network tariff indicator is not displayed on the access authentication page after reopening, and the access server is measured by interacting with the access server. The remaining first network tariff indicator is re-measured according to the remaining first network tariff indicator delivered by the access server, so that the user terminal and the access server again reach the synchronization of the remaining first network tariff indicators.
图5为本发明接入认证页面网络资费指标同步优化方法的一种实施例的流程图,适于用户终端侧,具体步骤如下:FIG. 5 is a flowchart of an embodiment of a network tariff indicator synchronization optimization method for an access authentication page according to the present invention, which is suitable for a user terminal side, and the specific steps are as follows:
步骤S501,用户终端成功接入认证;Step S501, the user terminal successfully accesses the authentication;
具体地,用户终端1400关联第一无线接入设备的某一个SSID(服务集标识),第一无线接入设备将用户终端的上网响应(HTTP Request)报文重定向到接入服 务器1000指定的URL(WWW统一资源定位标志)地址,用户终端1400获得第一无线接入设备重定向的网络页面,提示用户终端1400上输入用户名和密码后,向接入服务器1000发起接入认证请求,接入服务器1000接收到用户终端1400的接入认证请求后,审核用户名和密码,向第一无线接入设备发送认证成功消息,并将认证结果和用户剩余的上网时长或剩余的上网流量反馈给用户终端1400,第一无线接入设备收到接入服务器1000发送的接入认证成功的消息后,授权用户终端上网;Specifically, the user terminal 1400 associates with one SSID (Service Set Identifier) of the first radio access device, and the first radio access device redirects the HTTP response of the user terminal to the access service. The server 1000 obtains the URL (WWW Uniform Resource Locator) address, and the user terminal 1400 obtains the network page redirected by the first wireless access device, prompts the user terminal 1400 to input the user name and password, and initiates access to the access server 1000. After receiving the access authentication request of the user terminal 1400, the access server 1000 audits the user name and password, sends an authentication success message to the first wireless access device, and the authentication result and the remaining online time of the user or the remaining Internet access. The traffic is fed back to the user terminal 1400, and after receiving the message that the access authentication succeeded by the access server 1000, the first wireless access device authorizes the user terminal to access the Internet;
重定向(Redirect)就是通过各种方法将各种网络请求重新定个方向转到其它位置(如:网页重定向、域名的重定向、路由选择的变化也是对数据报文经由路径的一种重定向);Redirect is to redirect various network requests to other locations through various methods (for example, web page redirection, domain name redirection, and routing changes are also a kind of heavy on the data packet path). Orientation);
其中,每一个子网都有一个SSID,每一个子网络都需要独立的身份验证,只有通过身份验证的用户才可以进入相应的子网络,防止未被授权的用户进入本网络;Each subnet has an SSID. Each subnet requires independent authentication. Only authenticated users can enter the corresponding subnet to prevent unauthorized users from entering the network.
其中,接入认证页面是接入服务器指定的页面,网络地址为URL地址。The access authentication page is a page specified by the access server, and the network address is a URL address.
步骤S502,所述用户终端在预设同步周期接收所述接入服务器计量的第一网络资费指标;Step S502, the user terminal receives the first network tariff indicator measured by the access server in a preset synchronization period;
具体地,所述第一网络资费指标为上网时长或上网流量,由于是倒计量,这里的上网时长为剩余上网时长,上网流量为剩余上网流量;Specifically, the first network tariff indicator is an online time length or an online traffic flow. Because it is a reverse measurement, the online time length is the remaining online time, and the online traffic is the remaining online traffic;
其中,预设同步周期由接入服务器预先设定,且发送给用户终端的,用户终端在预设同步周期到来时,接收接入服务器计量的第一网络资费指标;这里预设同步周期小于上网时长(预设上网时长)。The preset synchronization period is preset by the access server, and is sent to the user terminal. When the preset synchronization period arrives, the user terminal receives the first network tariff indicator measured by the access server; where the preset synchronization period is less than the Internet access Duration (default internet time).
步骤S503,所述用户终端按照所述第一网络资费指标开始计量。Step S503, the user terminal starts measuring according to the first network tariff indicator.
具体地,用户终端本地植入计量仪器,计量上网时长可选用定时器,计量上网流量可选用流量计量仪;Specifically, the user terminal is locally implanted with a measuring instrument, and the measuring time for the Internet access time can be selected by a timer, and the measuring flow rate can be selected by using a flow measuring instrument;
用户终端按照第一网络资费指标开始计量,也就是说,用户终端与接入服务器同时计量第一网络资费指标,如此,接入服务器就不需频繁更新用户终端的剩余的第一网络资费指标,用户终端也能够及时了解目前剩余的第一网络资费指标。The user terminal starts to measure according to the first network tariff indicator, that is, the user terminal and the access server simultaneously measure the first network tariff indicator, so that the access server does not need to frequently update the remaining first network tariff indicator of the user terminal. The user terminal can also keep abreast of the remaining first network tariff indicators.
其中,在步骤S503所述用户终端按照所述第一网络资费指标开始计量之后,本发明接入认证页面网络资费指标同步优化方法还如附图6所示,具体步骤如下:After the user terminal starts to measure according to the first network tariff indicator in step S503, the network tariff indicator synchronization optimization method of the access authentication page of the present invention is also shown in FIG. 6, and the specific steps are as follows:
步骤S601,当所述用户终端剩余的第一网络资费指标先达到零时,所述用户终端继续上网直到所述接入服务器剩余的第一网络资费指标达到零;Step S601, when the remaining first network tariff indicator of the user terminal reaches zero first, the user terminal continues to access the Internet until the first network tariff indicator remaining by the access server reaches zero;
具体地,与接入服务器相比,用户终端剩余的第一网络资费指标先达到零时,接入服务器允许用户继续上网,当接入服务器剩余的第一网资源指标为零时,接入服务器不允许用户继续上网,则用户终端被迫停止上网。Specifically, when the first network tariff indicator remaining by the user terminal reaches zero first, the access server allows the user to continue to access the Internet. When the remaining first network resource indicator of the access server is zero, the access server is accessed. The user is not allowed to continue surfing the Internet, and the user terminal is forced to stop surfing the Internet.
步骤S602,当所述接入服务器剩余的第一网络资费指标先达到零时,所述用户终端停止上网。 Step S602: When the remaining first network tariff indicator of the access server first reaches zero, the user terminal stops surfing the Internet.
具体地,与用户终端相比,所述接入服务器的剩余的第一网络资费指标先达到零时,接入服务器才向第一无线接入设备下发解除用户终端的解除命令,第一无线接入设备接收到接入服务器发送的解除命令后,根据所述解除命令解除与所述用户终端的关联。Specifically, when the remaining first network tariff indicator of the access server reaches zero first, the access server sends a release command to the first wireless access device to release the user terminal, the first wireless After receiving the release command sent by the access server, the access device releases the association with the user terminal according to the release command.
其中,在步骤S503所述用户终端按照所述第一网络资费指标开始计量之后,本发明接入认证页面网络资费指标同步优化方法还如附图7所示,具体步骤如下:After the user terminal starts to measure according to the first network tariff indicator in step S503, the network tariff indicator synchronization optimization method of the access authentication page of the present invention is also shown in FIG. 7, and the specific steps are as follows:
步骤S701,当所述用户终端离开网络时,所述用户终端判断自身与所述接入服务器已经断开;Step S701, when the user terminal leaves the network, the user terminal determines that it is disconnected from the access server;
具体地,用户终端通过向接入服务器发送ping报文判断是否与接入服务器已经断开,其中,ping是Windows、Unix和Linux系统下的一个命令。ping也属于一个通信协议,是TCP/IP协议的一部分。利用“ping”报文可以检查网络是否连通,可以很好地帮助我们分析和判定网络故障。Specifically, the user terminal determines whether it is disconnected from the access server by sending a ping message to the access server, where ping is a command under Windows, Unix, and Linux systems. Ping is also a communication protocol and is part of the TCP/IP protocol. Use the "ping" message to check if the network is connected, which can help us analyze and determine network failures.
步骤S702,则停止计量所述第一网络资费指标;Step S702, stopping measuring the first network tariff indicator;
具体地,当用户终端通过接收ping报文的反馈为不可达,则确认用户终端与接入服务器断开,则用户终端停止计量所述第一网络资费指标(剩余的第一网络资费指标)。Specifically, when the feedback of the ping packet is unreachable, the user terminal confirms that the user terminal is disconnected from the access server, and the user terminal stops measuring the first network tariff indicator (the remaining first network tariff indicator).
步骤S703,并断开与所述接入服务器的网络连接;Step S703, and disconnecting the network connection with the access server;
具体地,用户终端接收到ping报文的反馈为不可达,同时用户终端将与接入服务器之间的连接断开。Specifically, the feedback received by the user terminal for the ping packet is unreachable, and the user terminal disconnects the connection with the access server.
步骤S704,且每隔预定时间向所述接入服务器发起重新连接。Step S704, and reconnecting to the access server every predetermined time.
具体地,用户终端每隔N秒向接入服务器发起上网连接;期间,用户终端与接入服务器之间停止同步网络资费指标。Specifically, the user terminal initiates an Internet connection to the access server every N seconds; during the period, the user terminal and the access server stop synchronizing the network tariff indicator.
其中,在步骤S503所述用户终端按照所述第一网络资费指标开始计量之后,本发明接入认证页面网络资费指标同步优化方法还如附图8所示,具体步骤如下:After the user terminal starts to measure according to the first network tariff indicator in step S503, the network tariff indicator synchronization optimization method of the access authentication page of the present invention is also shown in FIG. 8. The specific steps are as follows:
步骤S801,当所述用户终端在漫游规定有效时间内,欲关联所述第二无线接入设备时,所述用户终端向所述第二无线接入设备发送关联请求;Step S801: When the user terminal is to associate with the second wireless access device within a roaming validity time, the user terminal sends an association request to the second wireless access device.
具体地,当用户终端欲关联第二无线接入设备时,用户终端向第二无线接入设备发送关联请求,收到用户终端的关联请求后,第二无线接入设备向接入服务器发送该用户终端是否已经成功接入认证的询问消息,根据接入服务器的反馈第二无线接入设备确认是否允许用户终端关联;当接入服务器反馈用户终端已成功接入认证,则第二无线接入设备允许用户终端关联,否则,第二无线接入设备不允许用户终端关联;Specifically, when the user terminal wants to associate with the second wireless access device, the user terminal sends an association request to the second wireless access device, and after receiving the association request of the user terminal, the second wireless access device sends the connection request to the access server. Whether the user terminal has successfully accessed the authentication query message, and according to the feedback of the access server, the second wireless access device confirms whether the user terminal is allowed to be associated; when the access server feeds back that the user terminal has successfully accessed the authentication, the second wireless access The device allows the user terminal to associate; otherwise, the second wireless access device does not allow the user terminal to associate;
另外,当用户终端关联上第二无线接入设备后,由于接入服务器的域名一般时白名单,则用户终端利用重连机制每隔N秒向接入服务器发起上网连接;期间,用户终端与接入服务器之间停止同步网络资费指标。In addition, after the user terminal is associated with the second wireless access device, because the domain name of the access server is generally whitelisted, the user terminal initiates an Internet connection to the access server every N seconds by using the reconnection mechanism; during the period, the user terminal and the user terminal Stop synchronizing network tariff indicators between access servers.
步骤S802,当所述用户终端接收到所述接入服务器发送的没有成功接入认证 不能关联所述第二无线接入设备时,所述用户终端登录所述第二无线接入设备进行接入认证;Step S802, when the user terminal receives the unsuccessful access authentication sent by the access server When the second wireless access device cannot be associated, the user terminal logs in to the second wireless access device to perform access authentication;
具体地,也就是用户终端登录第二无线接入设备进行成功接入认证后,接入服务器重新计量第二网络资费指标(当前剩余的第一网络资费指标),并将第二网络资费指标下发给用户终端。Specifically, after the user terminal logs in to the second wireless access device to perform successful access authentication, the access server re-measures the second network tariff indicator (the current remaining first network tariff indicator), and the second network tariff indicator is Send to the user terminal.
步骤S803,在所述用户终端成功接入认证时,所述用户终端接收所述接入服务器下发的第二网络资费指标,并按照所述第二网络资费指标重新计量;Step S803, when the user terminal successfully accesses the authentication, the user terminal receives the second network tariff indicator delivered by the access server, and re-measures according to the second network tariff indicator;
具体地,所述用户终端按照所述第二网络资费指标重新计量,即用户终端与接入服务器之间再次达到剩余第一网络资费指标的同步;所述第二网络资费指标(当前剩余的第一网络资费指标)为当前剩余的上网时长或当前剩余的上网流量。Specifically, the user terminal re-measures according to the second network tariff indicator, that is, the synchronization between the user terminal and the access server reaches the remaining first network tariff indicator; the second network tariff indicator (the current remaining number) A network tariff indicator is the current remaining Internet time or the current remaining Internet traffic.
其中,在步骤S503所述用户终端按照所述第一网络资费指标开始计量之后,本发明接入认证页面网络资费指标同步优化方法还如附图9所示,具体步骤如下:After the user terminal starts to measure according to the first network tariff indicator in step S503, the network tariff indicator synchronization optimization method of the access authentication page of the present invention is also shown in FIG. 9, and the specific steps are as follows:
步骤S901,当所述用户终端在线强制关闭接入认证页面后,又重新打开接入认证页面时,所述用户终端接收所述接入服务器发送的剩余的第一网络资费指标;Step S901: When the user terminal re-opens the access authentication page after the user terminal is forced to close the access authentication page, the user terminal receives the remaining first network tariff indicator sent by the access server.
具体地,用户终端的接入认证页面关闭后又重新打开,则重新打开后的接入认证页面上没有显示剩余的第一网络资费指标,则通过与接入服务器进行交互获得接入服务器计量的剩余的第一网络资费指标。Specifically, after the access authentication page of the user terminal is closed and then re-opened, the remaining first network tariff indicator is not displayed on the access authentication page after reopening, and the access server is measured by interacting with the access server. The remaining first network tariff indicator.
步骤S902,并按照剩余的所述第一网络资费指标重新计量。Step S902, and re-measuring according to the remaining first network tariff indicators.
具体地,用户终端按照接入服务器下发的剩余的第一网络资费指标重新计量,即用户终端与接入服务器再一次达到剩余的第一网络资费指标的同步。Specifically, the user terminal re-measures according to the remaining first network tariff indicator delivered by the access server, that is, the user terminal and the access server once again reach the synchronization of the remaining first network tariff indicators.
另外,当所述用户终端注销账户、离开网络、剩余的网络资费指标为零或不在漫游规定有效时间内,欲关联第二无线接入设备时,所述接入服务器接收所述第二无线接入设备发送的所述用户终端的状态咨询消息;In addition, when the user terminal cancels the account, leaves the network, the remaining network tariff indicator is zero, or is not in the roaming prescribed effective time, when the second wireless access device is to be associated, the access server receives the second wireless connection. a status inquiry message of the user terminal sent by the device;
也就是,当所述用户终端注销账户、离开网络、剩余的网络资费指标为零或不在漫游规定有效时间内,则用户终端为下线状态,此时若用户终端欲关联第二无线接入设备,则向用户终端向第二无线接入设备发送关联请求,收到用户终端的关联请求后,第二无线接入设备向接入服务器发送该用户终端是否已经成功接入认证的询问消息;接收到第二无线接入设备发送的用户终端是否已成功接入认证的询问消息,接入服务器查询自身发现用户终端已经下线,则告知用户终端重新进行接入认证;That is, when the user terminal cancels the account, leaves the network, the remaining network tariff indicator is zero, or is not within the roaming effective time, the user terminal is in the offline state, and at this time, if the user terminal wants to associate with the second wireless access device Sending an association request to the second wireless access device to the user terminal, and after receiving the association request of the user terminal, the second wireless access device sends an inquiry message to the access server whether the user terminal has successfully accessed the authentication; Whether the user terminal sent by the second wireless access device has successfully accessed the authentication query message, and the access server queries the user to find that the user terminal has gone offline, and then informs the user terminal to perform access authentication again;
其中,用户终端注销账户为主动注销账户或被动注销账户;用户终端离开网络为主动离开网络;用户终端剩余的网络资费指标为零为无上网流量或无上网时长而被动离开网络。The user terminal cancels the account as an active cancellation account or a passive cancellation account; the user terminal leaves the network to actively leave the network; the remaining network tariff indicator of the user terminal is zero without passive Internet access or without the Internet access time and passively leaves the network.
图10为本发明接入服务器一种实施例的结构图,接入服务器1000包括启动计量模块1001和第一下发模块1002,FIG. 10 is a structural diagram of an embodiment of an access server according to the present invention. The access server 1000 includes a startup metering module 1001 and a first sending module 1002.
启动计量模块1001,用于用于当用户终端成功接入认证后,启动计量第一网络资费指标; The metering module 1001 is configured to start to measure the first network tariff indicator after the user terminal successfully accesses the authentication;
具体地,所述第一网络资费指标为上网时长或上网流量,这里计量是倒计量,比如上网时长可计量为剩余上网时长,上网流量可计量为剩余上网流量。Specifically, the first network tariff indicator is an online time length or an online traffic flow, where the measurement is a reverse measurement, for example, the online time length can be measured as the remaining online time, and the online traffic can be measured as the remaining online traffic.
第一下发模块1002,用于在预设同步周期将所述第一网络资费指标下发给所述用户终端,以便所述用户终端按照所述第一网络资费指标开始计量。The first sending module 1002 is configured to send the first network tariff indicator to the user terminal in a preset synchronization period, so that the user terminal starts to measure according to the first network tariff indicator.
具体地,用户终端按照第一网络资费指标开始计量,也就是说,用户终端与接入服务器1000同时计量第一网络资费指标,这样,接入服务器1000仅在预设同步周期与用户终端同步剩余的第一网络资费指标,如此,接入服务器1000不需与用户终端频繁同步剩余的第一网络资费指标,用户终端也能够及时准确地了解目前剩余的第一网络资费指标;Specifically, the user terminal starts to measure according to the first network tariff indicator, that is, the user terminal and the access server 1000 simultaneously measure the first network tariff indicator, so that the access server 1000 synchronizes with the user terminal only in the preset synchronization period. The first network tariff indicator is such that the access server 1000 does not need to frequently synchronize the remaining first network tariff indicator with the user terminal, and the user terminal can also accurately and accurately know the current remaining first network tariff indicator;
其中,接入服务器1000预设同步周期,且将预设同步周期下发给用户终端,以便用户终端在预设同步周期到来时同步剩余的第一网络资费指标;这里,预设同步周期小于上网时长(预定上网时长)。The access server 1000 presets the synchronization period, and sends the preset synchronization period to the user terminal, so that the user terminal synchronizes the remaining first network tariff indicator when the preset synchronization period arrives; here, the preset synchronization period is less than the Internet access. Duration (scheduled for the duration of the Internet).
图11为本发明接入服务器另一种实施例的结构图,接入服务器1000包括启动计量模块1001、第一下发模块1002、第一发送模块1003和允许上网模块1004,其中,启动计量模块1001和第一下发模块1002具体如图10所示,FIG. 11 is a structural diagram of another embodiment of an access server according to the present invention. The access server 1000 includes a startup metering module 1001, a first sending module 1002, a first sending module 1003, and an allowed internet module 1004. 1001 and the first sending module 1002 are specifically shown in FIG. 10,
第一发送模块1003,用于在所述第一下发模块1002将所述第一网络资费指标下发给所述用户终端之后,当所述接入服务器1000剩余的第一网络资费指标先达到零时,向第一无线接入设备发送解除所述用户终端的解除命令,以便所述第一无线接入设备根据所述解除命令解除与所述用户终端的关联;The first sending module 1003 is configured to: after the first sending module 1002 sends the first network tariff indicator to the user terminal, when the first network tariff indicator remaining in the access server 1000 reaches the first Zero-time, transmitting, to the first wireless access device, a release command for releasing the user terminal, so that the first wireless access device releases the association with the user terminal according to the release command;
具体地,与用户终端相比,所述接入服务器1000的剩余的第一网络资费指标先达到零时,第一发送模块1003才向第一无线接入设备发送解除用户终端的解除命令,第一无线接入设备接收到第一发送模块1003发送的解除命令后,根据所述解除命令解除与所述用户终端的关联。Specifically, when the remaining first network tariff indicator of the access server 1000 reaches zero first, the first sending module 1003 sends a release command to the first wireless access device to cancel the user terminal. After receiving the release command sent by the first sending module 1003, the wireless access device cancels the association with the user terminal according to the release command.
允许上网模块1004,用于当所述用户终端剩余的第一网络资费指标先达到零时,允许所述用户终端继续上网直到所述接入服务器剩余的第一网络资费指标达到零。The accessing module 1004 is configured to allow the user terminal to continue to access the Internet until the remaining first network tariff indicator of the user terminal reaches zero.
具体地,与接入服务器1000相比,用户终端剩余的第一网络资费指标先达到零时,允许上网模块1004允许用户继续上网,当接入服务器1000剩余的第一网资源指标为零时,接入服务器1000不允许用户继续上网。Specifically, the first network tariff indicator remaining in the user terminal first reaches zero when compared with the access server 1000, and the access module 1004 is allowed to continue to access the Internet. When the remaining first network resource indicator of the access server 1000 is zero, The access server 1000 does not allow the user to continue to access the Internet.
图12为本发明接入服务器另一种实施例的结构图,接入服务器1000包括启动计量模块1001、第一下发模块1002、第一接收模块1005和第一停止计量模块1006,其中,启动计量模块1001和第一下发模块1002具体如图10所示,FIG. 12 is a structural diagram of another embodiment of an access server according to the present invention. The access server 1000 includes a startup metering module 1001, a first sending module 1002, a first receiving module 1005, and a first stopping metering module 1006. The metering module 1001 and the first sending module 1002 are specifically as shown in FIG. 10 .
第一接收模块1005,用于在第一下发模块1002将所述第一网络资费指标下发给所述用户终端之后,当所述用户终端主动离开网络时,接收所述第一无线接入设备发送的所述用户终端离开网络的消息;The first receiving module 1005 is configured to: after the first sending module 1002 sends the first network tariff indicator to the user terminal, when the user terminal actively leaves the network, receive the first wireless access a message that the user terminal sent by the device leaves the network;
具体地,当用户终端主动离开网络时,首先用户终端解除了与第一无线接入设备的关联,第一无线接入设备便获知用户终端离开网络,并将获知的用户终端离开网络的消息发送给接入服务器1000。 Specifically, when the user terminal actively leaves the network, the user terminal first cancels the association with the first wireless access device, and the first wireless access device learns that the user terminal leaves the network, and sends the learned user terminal to leave the network. The access server 1000 is provided.
第一停止计量模块1006,用于停止计量所述第一网络资费指标。The first stop measurement module 1006 is configured to stop measuring the first network tariff indicator.
具体地,接入服务器1000停止计量所述网络资费指标后,接入服务器1000一直保留停止那一刻的剩余的第一网络资费指标。Specifically, after the access server 1000 stops measuring the network tariff indicator, the access server 1000 keeps the remaining first network tariff indicator at the moment of stopping.
图13为本发明接入服务器另一种实施例的结构图,接入服务器1000包括启动计量模块1001、第一下发模块1002、第二接收模块1007、第一确认模块1008、通知模块1009、第二确认模块1010、重新启动计量模块1011和第二下发模块1012,其中,启动计量模块1001和第一下发模块1002具体如图10所示,FIG. 13 is a structural diagram of another embodiment of an access server according to the present invention. The access server 1000 includes a startup metering module 1001, a first sending module 1002, a second receiving module 1007, a first confirming module 1008, and a notification module 1009. The second confirmation module 1010, the restart measurement module 1011, and the second delivery module 1012, wherein the startup measurement module 1001 and the first delivery module 1002 are specifically as shown in FIG.
第二接收模块1007,用于在第一下发模块1002将所述第一网络资费指标下发给所述用户终端之后,当所述用户终端在漫游规定有效时间内,欲关联第二无线接入设备时,接收所述第二无线接入设备发送的所述用户终端是否已成功接入认证的询问消息;The second receiving module 1007 is configured to: after the first sending module 1002 sends the first network tariff indicator to the user terminal, when the user terminal is within a roaming prescribed valid time, the second wireless connection is to be associated Receiving, by the second wireless access device, whether the user terminal has successfully accessed the authentication query message;
具体地,当用户终端欲关联第二无线接入设备时,用户终端向第二无线接入设备发送关联请求,收到用户终端的关联请求后,第二无线接入设备向接入服务器1000发送该用户终端是否已经成功接入认证的询问消息。Specifically, when the user terminal wants to associate with the second wireless access device, the user terminal sends an association request to the second wireless access device, and after receiving the association request of the user terminal, the second wireless access device sends the connection request to the access server 1000. Whether the user terminal has successfully accessed the authentication inquiry message.
第一确认模块1008,用于确认所述用户终端已成功接入认证;The first confirmation module 1008 is configured to confirm that the user terminal has successfully accessed the authentication;
具体地,接收到第二无线接入设备发送的用户终端是否已经成功接入认证的询问消息后,接入服务器1000查询用户终端已成功接入第一无线接入设备,则认为用户终端已成功接入认证。Specifically, after receiving the query message that the user terminal sent by the second wireless access device has successfully accessed the authentication, the access server 1000 determines that the user terminal has successfully accessed the first wireless access device, and the user terminal is considered to have succeeded. Access authentication.
通知模块1009,用于在所述用户终端确认所述用户终端已成功接入认证后,则通知所述第二无线接入设备开通所述用户终端上网权限;The notification module 1009 is configured to notify the second wireless access device to open the access authority of the user terminal after the user terminal confirms that the user terminal has successfully accessed the authentication;
具体地,当用户终端已成功接入认证时,则用户终端无需再次进行接入认证,则第二无线接入设备开通用户终端上网权限,并且返回用户终端关联响应。Specifically, when the user terminal has successfully accessed the authentication, the user terminal does not need to perform access authentication again, and the second wireless access device activates the user terminal's access right, and returns the user terminal association response.
第二确认模块1010,用于确认所述用户终端没有成功接入认证;The second confirmation module 1010 is configured to confirm that the user terminal does not successfully access the authentication.
重新启动计量模块1011,用于当所述用户终端登录所述第二无线接入设备成功接入认证后,重新启动计量第二网络资费指标;The metering module 1011 is restarted, and after the user terminal logs in to the second wireless access device to successfully access the authentication, the second network tariff indicator is restarted;
具体地,也就是用户终端重新成功接入认证后,接入服务器1000重新计量第二网络资费指标(当前剩余的第一网络资费指标)。Specifically, after the user terminal successfully re-accesses the authentication, the access server 1000 re-measures the second network tariff indicator (the current remaining first network tariff indicator).
第二下发模块1012,用于将所述第二网络资费指标下发给所述用户终端,以便所述用户终端按照所述第二网络资费指标重新计量。The second sending module 1012 is configured to send the second network tariff indicator to the user terminal, so that the user terminal re-measures according to the second network tariff indicator.
具体地,第二下发模块1012将第二网络资费指标下发给用户终端,则所述用户终端按照所述第二网络资费指标重新计量,则用户终端与接入服务器1000之间再次达到剩余第一网络资费指标的同步;所述第二网络资费指标(当前剩余的第一网络资费指标)为当前剩余的上网时长或当前剩余的上网流量。Specifically, the second sending module 1012 sends the second network tariff indicator to the user terminal, and the user terminal re-measures according to the second network tariff indicator, and the remaining between the user terminal and the access server 1000 is reached again. Synchronization of the first network tariff indicator; the second network tariff indicator (currently remaining first network tariff indicator) is the current remaining online duration or the current remaining Internet traffic.
图14为本发明接入服务器另一种实施例的结构图,接入服务器1000包括启动计量模块1001、第一下发模块1002和第三下发模块1013,其中,启动计量模块1001和第一下发模块1002具体如图10所示,FIG. 14 is a structural diagram of another embodiment of an access server according to the present invention. The access server 1000 includes a startup metering module 1001, a first sending module 1002, and a third sending module 1013, wherein the metering module 1001 and the first device are started. The delivery module 1002 is specifically shown in FIG. 10,
第三下发模块1013,用于在所述第一下发模块将所述第一网络资费指标下发给所述用户终端之后,当所述用户终端在线强制关闭接入认证页面后,又重新打 开接入认证页面时,将计量的剩余的所述第一网络资费指标下发给所述用户终端,以便所述用户终端按照剩余的所述第一网络资费指标重新计量。The third sending module 1013 is configured to: after the first sending module sends the first network tariff indicator to the user terminal, after the user terminal forcibly closes the access authentication page, and then restarts hit When the access authentication page is opened, the remaining first network tariff indicator is delivered to the user terminal, so that the user terminal re-measures according to the remaining first network tariff indicator.
具体地,用户终端的接入认证页面关闭后又重新打开,则重新打开后的接入认证页面上没有显示剩余的第一网络资费指标,则通过与接入服务器1000进行交互获得接入服务器1000计量的剩余的第一网络资费指标,并按照接入服务器1000下发的剩余的第一网络资费指标重新计量,使用户终端与接入服务器器1000再一次达到剩余的第一网络资费指标的同步。Specifically, after the access authentication page of the user terminal is closed and then re-opened, the remaining first network tariff indicator is not displayed on the re-opened access authentication page, and the access server 1000 is obtained by interacting with the access server 1000. The remaining first network tariff indicator is measured and re-measured according to the remaining first network tariff indicator delivered by the access server 1000, so that the user terminal and the access server 1000 reach the remaining first network tariff indicator again. .
图15为本发明用户终端一种实施例的结构图,用户终端1400包括接入认证模块1401、第三接收模块1402和计量模块1403,FIG. 15 is a structural diagram of an embodiment of a user terminal according to the present invention. The user terminal 1400 includes an access authentication module 1401, a third receiving module 1402, and a metering module 1403.
接入认证模块1401,用于成功接入认证;The access authentication module 1401 is configured to successfully access the authentication.
具体地,用户终端1400关联第一无线接入设备的某一个SSID(服务集标识),第一无线接入设备将用户终端1400的上网响应(HTTP Request)报文重定向到接入服务器1000指定的URL(WWW统一资源定位标志)地址,用户终端1400获得第一无线接入设备重定向的网络页面,提示用户终端1400输入用户名和密码后,向接入服务器1000发起接入认证请求,接入服务器1000接收到用户终端1400的接入认证请求后,审核用户名和密码,向第一无线接入设备发送认证成功消息,并将认证结果和用户剩余上网时长或剩余上网流量反馈给用户终端1400,第一无线接入设备收到接入服务器1000发送的接入认证成功的消息后,授权用户终端1400上网;Specifically, the user terminal 1400 associates with one SSID (Service Set Identifier) of the first radio access device, and the first radio access device redirects the HTTP response packet of the user terminal 1400 to the access server 1000. The URL (WWW Uniform Resource Locator) address, the user terminal 1400 obtains the network page redirected by the first wireless access device, prompts the user terminal 1400 to input the user name and password, and initiates an access authentication request to the access server 1000, and accesses After receiving the access authentication request of the user terminal 1400, the server 1000 verifies the user name and password, sends an authentication success message to the first wireless access device, and feeds back the authentication result and the remaining online time of the user or the remaining Internet traffic to the user terminal 1400. After receiving the message that the access authentication succeeded by the access server 1000, the first wireless access device authorizes the user terminal 1400 to access the Internet;
其中,每一个子网都有一个SSID,每一个子网络都需要独立的身份验证,只有通过身份验证的用户才可以进入相应的子网络,防止未被授权的用户进入本网络;Each subnet has an SSID. Each subnet requires independent authentication. Only authenticated users can enter the corresponding subnet to prevent unauthorized users from entering the network.
其中,接入认证页面是接入服务器1000指定的页面,网络地址为URL地址。The access authentication page is a page specified by the access server 1000, and the network address is a URL address.
第三接收模块1402,用于在预设同步周期接收接入服务器1000计量的第一网络资费指标;The third receiving module 1402 is configured to receive, by using a preset synchronization period, a first network tariff indicator measured by the access server 1000;
具体地,所述第一网络资费指标为上网时长或上网流量,由于是倒计量,这里的上网时长为剩余上网时长,上网流量为剩余上网流量;Specifically, the first network tariff indicator is an online time length or an online traffic flow. Because it is a reverse measurement, the online time length is the remaining online time, and the online traffic is the remaining online traffic;
其中,预设同步周期由接入服务器预先设定,且发送给用户终端的,用户终端在预设同步周期到来时,接收接入服务器计量的第一网络资费指标;这里预设同步周期小于上网时长(预设上网时长)。The preset synchronization period is preset by the access server, and is sent to the user terminal. When the preset synchronization period arrives, the user terminal receives the first network tariff indicator measured by the access server; where the preset synchronization period is less than the Internet access Duration (default internet time).
计量模块1403,用于按照所述第一网络资费指标开始计量。The metering module 1403 is configured to start measuring according to the first network tariff indicator.
具体地,计量上网时长的计量模块1403可选用定时器,计量上网流量的计量模块1403可选用流量计量仪;Specifically, the metering module 1403 for measuring the duration of the Internet access may select a timer, and the metering module 1403 for measuring the Internet traffic may select a flow meter;
计量模块1403按照第一网络资费指标开始计量,也就是说,用户终端1400与接入服务器1000同时计量第一网络资费指标,如此,接入服务器1000就不需频繁更新用户终端1400的剩余的第一网络资费指标,用户终端1400也能够及时了解目前剩余的第一网络资费指标。The metering module 1403 starts to measure according to the first network tariff indicator, that is, the user terminal 1400 and the access server 1000 simultaneously measure the first network tariff indicator, so that the access server 1000 does not need to frequently update the remaining number of the user terminal 1400. A network tariff indicator, the user terminal 1400 can also timely know the current remaining first network tariff indicator.
图16为本发明用户终端另一种实施例的结构图,用户终端1400包括接入认 证模块1401、第三接收模块1402、计量模块1403、继续上网模块1404和停止上网模块1405,其中,接入认证模块1401、第三接收模块1402和计量模块1403具体如图15所示,FIG. 16 is a structural diagram of another embodiment of a user terminal according to the present invention, where the user terminal 1400 includes an access authentication. The certificate module 1401, the third receiving module 1402, the metering module 1403, the continuation network module 1404, and the stop network module 1405, wherein the access authentication module 1401, the third receiving module 1402, and the metering module 1403 are specifically as shown in FIG.
继续上网模块1404,用于在所述计量模块1403按照所述第一网络资费指标开始计量之后,当所述用户终端剩余的第一网络资费指标先达到零时,继续上网直到所述接入服务器1000剩余的第一网络资费指标达到零;The online access module 1404 is configured to: after the metering module 1403 starts measuring according to the first network tariff indicator, when the remaining first network tariff indicator of the user terminal first reaches zero, continue to access the Internet until the access server The remaining first network tariff indicator of 1000 reaches zero;
具体地,与接入服务器1000相比,用户终端1400剩余的第一网络资费指标先达到零时,接入服务器1000允许用户继续上网,当接入服务器1000确认剩余的第一网资源指标为零时,接入服务器1000不允许用户继续上网,则用户终端1400被迫停止上网。Specifically, when the first network tariff indicator remaining by the user terminal 1400 reaches zero first, the access server 1000 allows the user to continue to access the Internet. When the access server 1000 confirms that the remaining first network resource indicator is zero, the access server 1000 confirms that the remaining first network resource indicator is zero. When the access server 1000 does not allow the user to continue to access the Internet, the user terminal 1400 is forced to stop surfing the Internet.
停止上网模块1405,用于当所述接入服务器1000剩余的第一网络资费指标先达到零时,停止上网。The network access module 1405 is configured to stop the Internet when the first network tariff indicator remaining in the access server 1000 reaches zero first.
具体地,与用户终端1400相比,所述接入服务器1000的剩余的第一网络资费指标先达到零时,接入服务器1000才向第一无线接入设备下发解除用户终端1400的解除命令,第一无线接入设备接收到接入服务器1000发送的解除命令后,根据所述解除命令解除与所述用户终端1400的关联。Specifically, when the remaining first network tariff indicator of the access server 1000 reaches zero first, the access server 1000 sends a release command to the first wireless access device to release the user terminal 1400. After receiving the release command sent by the access server 1000, the first wireless access device releases the association with the user terminal 1400 according to the release command.
图17为本发明用户终端另一种实施例的结构图,用户终端1400包括接入认证模块1401、第三接收模块1402、计量模块1403、判断模块1406、第二停止计量模块1407、断开模块1408和同步模块1409,其中,接入认证模块1401、第三接收模块1402和计量模块1403具体如图15所示,FIG. 17 is a structural diagram of another embodiment of a user terminal according to the present invention. The user terminal 1400 includes an access authentication module 1401, a third receiving module 1402, a metering module 1403, a determining module 1406, a second stopping metering module 1407, and a disconnecting module. 1408 and a synchronization module 1409, wherein the access authentication module 1401, the third receiving module 1402, and the metering module 1403 are specifically as shown in FIG.
判断模块1406,用于在所述计量模块1403按照所述第一网络资费指标开始计量之后,判断所述用户终端1400与所述接入服务器1000已经断开;The determining module 1406 is configured to determine that the user terminal 1400 and the access server 1000 have been disconnected after the metering module 1403 starts measuring according to the first network tariff indicator;
具体地,用户终端1400通过向接入服务器1000发送ping报文判断是否与接入服务器已经断开,其中,ping是Windows、Unix和Linux系统下的一个命令。ping也属于一个通信协议,是TCP/IP协议的一部分。利用“ping”报文可以检查网络是否连通,可以很好地帮助我们分析和判定网络故障。Specifically, the user terminal 1400 determines whether the ping is disconnected from the access server by sending a ping message to the access server 1000, where ping is a command under Windows, Unix, and Linux systems. Ping is also a communication protocol and is part of the TCP/IP protocol. Use the "ping" message to check if the network is connected, which can help us analyze and determine network failures.
第二停止计量模块1407,用于停止计量所述第一网络资费指标;a second stop measurement module 1407, configured to stop measuring the first network tariff indicator;
具体地,当用户终端1400通过接收ping报文的反馈为不可达,则确认用户终端1400与接入服务器1000断开,则用户终端1400停止计量所述第一网络资费指标(剩余的第一网络资费指标)。Specifically, when the user terminal 1400 is unreachable by receiving the ping message, the user terminal 1400 is disconnected from the access server 1000, and the user terminal 1400 stops measuring the first network tariff indicator (the remaining first network) Tariff indicator).
断开模块1408,用于断开与所述接入服务器1000的网络连接;Disconnecting module 1408, configured to disconnect a network connection with the access server 1000;
具体地,用户终端1400接收到ping报文的反馈为不可达,同时用户终端1400将与接入服务器1000之间的连接断开。Specifically, the user terminal 1400 receives the feedback of the ping message as unreachable, and the user terminal 1400 disconnects the connection with the access server 1000.
同步模块1409,用于每隔预定时间向所述接入服务器1000发起重新连接。The synchronization module 1409 is configured to initiate reconnection to the access server 1000 every predetermined time.
具体地,同步模块1409每隔N秒向接入服务器1000发起上网连接;期间,用户终端1400与接入服务器1000之间停止同步网络资费指标。Specifically, the synchronization module 1409 initiates an Internet connection to the access server 1000 every N seconds; during this period, the synchronization of the network tariff indicator between the user terminal 1400 and the access server 1000 is stopped.
图18为本发明用户终端另一种实施例的结构图,用户终端1400包括接入认证模块1401、第三接收模块1402、计量模块1403、第二发送模块1410、登录模 块1411、第四接收模块1412和第一重新计量模块1413,其中,接入认证模块1401、第三接收模块1402和计量模块1403具体如图15所示,FIG. 18 is a structural diagram of another embodiment of a user terminal according to the present invention. The user terminal 1400 includes an access authentication module 1401, a third receiving module 1402, a metering module 1403, a second sending module 1410, and a login mode. The block 1411, the fourth receiving module 1412, and the first re-metering module 1413, wherein the access authentication module 1401, the third receiving module 1402, and the metering module 1403 are specifically as shown in FIG.
第二发送模块1410,用于在所述计量模块1403按照所述第一网络资费指标开始计量之后,当所述用户终端1400在漫游规定有效时间内,欲关联所述第二无线接入设备时,向所述第二无线接入设备发送关联请求,以便所述第二无线接入设备根据所述关联请求确认是否允许所述用户终端1400关联;a second sending module 1410, configured to: when the metering module 1403 starts to measure according to the first network tariff indicator, when the user terminal 1400 is to associate with the second wireless access device during a roaming defined effective time Sending an association request to the second wireless access device, so that the second wireless access device confirms whether to allow the user terminal 1400 to associate according to the association request;
具体地,当用户终端1400欲关联第二无线接入设备时,用户终端1400向第二无线接入设备发送关联请求,收到用户终端1400的关联请求后,第二无线接入设备向接入服务器1000发送该用户终端1400是否已经成功接入认证的询问消息,根据接入服务器1000的反馈第二无线接入设备确认是否允许用户终端1400关联;当接入服务器1000反馈用户终端1400已成功接入认证,则第二无线接入设备允许用户终端1400关联,否则,第二无线接入设备不允许用户终端1400关联;Specifically, when the user terminal 1400 wants to associate with the second wireless access device, the user terminal 1400 sends an association request to the second wireless access device, and after receiving the association request of the user terminal 1400, the second wireless access device accesses The server 1000 sends whether the user terminal 1400 has successfully accessed the authentication query message, and according to the feedback of the access server 1000, the second wireless access device confirms whether the user terminal 1400 is allowed to be associated; when the access server 1000 feeds back the user terminal 1400 has successfully received Entering the authentication, the second wireless access device allows the user terminal 1400 to associate; otherwise, the second wireless access device does not allow the user terminal 1400 to associate;
另外,当用户终端1400关联上第二无线接入设备后,由于接入服务器1000的域名一般时白名单,则用户终端1400利用重连机制每隔N秒向接入服务器1000发起上网连接;期间,用户终端1400与接入服务器1000之间停止同步网络资费指标。In addition, after the user terminal 1400 is associated with the second wireless access device, the domain name of the access server 1000 is generally whitelisted, and the user terminal 1400 initiates an Internet connection to the access server 1000 every N seconds by using the reconnection mechanism; The user network 1400 and the access server 1000 stop synchronizing the network tariff indicator.
登录模块1411,用于当所述用户终端1400接收到所述接入服务器1000发送的没有成功接入认证不能关联所述第二无线接入设备时,登录所述第二无线接入设备进行接入认证;The login module 1411 is configured to log in to the second wireless access device to connect when the user terminal 1400 receives the unsuccessful access authentication sent by the access server 1000 and cannot associate with the second wireless access device. Enter the certification;
具体地,也就是用户终端1400登录第二无线接入设备进行成功接入认证后,接入服务器1000重新计量第二网络资费指标(当前剩余的第一网络资费指标),并将第二网络资费指标下发给用户终端1400。Specifically, after the user terminal 1400 logs in to the second wireless access device to perform successful access authentication, the access server 1000 re-measures the second network tariff indicator (the current remaining first network tariff indicator), and the second network tariff is The indicator is sent to the user terminal 1400.
第四接收模块1412,用于在所述登录模块1411成功接入认证时,接收所述接入服务器1000下发的第二网络资费指标;The fourth receiving module 1412 is configured to receive the second network tariff indicator delivered by the access server 1000 when the login module 1411 successfully accesses the authentication;
具体地,所述第二网络资费指标(当前剩余的第一网络资费指标)为当前剩余的上网时长或当前剩余的上网流量;Specifically, the second network tariff indicator (the current remaining first network tariff indicator) is the current remaining online duration or the current remaining Internet traffic;
第一重新计量模块1413,用于按照所述第二网络资费指标重新计量。The first re-metric module 1413 is configured to re-measure according to the second network tariff indicator.
具体地,所述用户终端1400按照所述第二网络资费指标重新计量,即用户终端1400与接入服务器1000之间再次达到剩余第一网络资费指标的同步。Specifically, the user terminal 1400 re-measures according to the second network tariff indicator, that is, the synchronization between the user terminal 1400 and the access server 1000 reaches the remaining first network tariff indicator again.
图19为本发明用户终端另一种实施例的结构图,用户终端1400包括接入认证模块1401、第三接收模块1402、计量模块1403、第五接收模块1414和第二重新计量模块1415,其中,接入认证模块1401、第三接收模块1402和计量模块1403具体如图15所示,FIG. 19 is a structural diagram of another embodiment of a user terminal according to the present invention. The user terminal 1400 includes an access authentication module 1401, a third receiving module 1402, a metering module 1403, a fifth receiving module 1414, and a second re-metering module 1415. The access authentication module 1401, the third receiving module 1402, and the metering module 1403 are specifically as shown in FIG.
第五接收模块1414,用于在所述计量模块1403按照所述第一网络资费指标开始计量之后,当所述用户终端1400在线强制关闭接入认证页面后,又重新打开接入认证页面时,接收所述接入服务器1000发送的剩余的第一网络资费指标;The fifth receiving module 1414 is configured to: after the metering module 1403 starts to measure according to the first network tariff indicator, when the user terminal 1400 forcibly closes the access authentication page online, and then reopens the access authentication page, Receiving the remaining first network tariff indicator sent by the access server 1000;
具体地,用户终端1400的接入认证页面关闭后又重新打开,则重新打开后 的接入认证页面上没有显示剩余的第一网络资费指标,则通过与接入服务器1000进行交互获得接入服务器1000计量的剩余的第一网络资费指标。Specifically, after the access authentication page of the user terminal 1400 is closed and then re-opened, after being reopened, The remaining first network tariff indicator is not displayed on the access authentication page, and the remaining first network tariff indicator measured by the access server 1000 is obtained by interacting with the access server 1000.
第二重新计量模块1415,用于按照剩余的所述第一网络资费指标重新计量。The second re-measurement module 1415 is configured to re-measure according to the remaining first network tariff indicators.
具体地,用户终端1400按照接入服务器1000下发的剩余的第一网络资费指标重新计量,即用户终端1400与接入服务器1000再一次达到剩余的第一网络资费指标的同步。Specifically, the user terminal 1400 re-measures according to the remaining first network tariff indicator delivered by the access server 1000, that is, the user terminal 1400 and the access server 1000 once again reach the synchronization of the remaining first network tariff indicators.
图20为本发明接入认证页面网络资费指标同步系统的一种实施例的结构图,系统2000包括接入服务器1000和用户终端1400,20 is a structural diagram of an embodiment of a network tariff indicator synchronization system of an access authentication page according to the present invention. The system 2000 includes an access server 1000 and a user terminal 1400.
接入服务器1000用于当用户终端1400成功接入认证后,启动计量第一网络资费指标;所述第一网络资费指标为上网时长或上网流量;并在预设同步周期将所述第一网络资费指标下发给所述用户终端1400,以便所述用户终端1400按照所述第一网络资费指标开始计量。The access server 1000 is configured to start measuring the first network tariff indicator after the user terminal 1400 successfully accesses the authentication; the first network tariff indicator is an online time length or an online traffic; and the first network is preset in a synchronization period. The tariff indicator is sent to the user terminal 1400, so that the user terminal 1400 starts to measure according to the first network tariff indicator.
用户终端1400用于成功接入认证;并在预设同步周期接收接入服务器1000计量的第一网络资费指标;所述第一网络资费指标为上网时长或上网流量;且按照所述第一网络资费指标开始计量。The user terminal 1400 is configured to successfully access the authentication; and receive the first network tariff indicator measured by the access server 1000 in the preset synchronization period; the first network tariff indicator is the Internet access time or the Internet traffic; and according to the first network The tariff indicator begins to measure.
应当理解,本实施例提供的接入服务器1000及用户终端1400的功能模块可以为软件模块或者软硬件结合的功能模块,其可以通过处理器执行而实现如上所述的功能。并且,接入服务器1000及用户终端1400还可以具有其他功能模块来实现克服了及时同步上网时长或上网流量各个具体步骤,具体可以参阅以上方法实施例的相应描述。It should be understood that the function modules of the access server 1000 and the user terminal 1400 provided by the embodiment may be software modules or functional modules combined with software and hardware, which may be implemented by a processor to implement the functions as described above. In addition, the access server 1000 and the user terminal 1400 may also have other functional modules to implement the specific steps of overcoming the timely synchronization of the Internet access time or the Internet traffic. For details, refer to the corresponding description of the foregoing method embodiments.
另外,所属技术领域的技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于计算机可读取存储介质中,并被通讯内部的处理器执行,前述的程序在被执行时处理器可以执行包括上述方法实施例的全部或者部分步骤。其中,所述处理器可以作为一个或多个处理器芯片实施,或者可以为一个或多个专用集成电路(Application Specific Integrated Circuit,ASIC)的一部分;而前述的存储介质可以包括但不限于以下类型的存储介质:闪存(Flash Memory)、存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。In addition, those skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by hardware related to program instructions, and the foregoing programs may be stored in a computer readable storage medium and communicated internally. The processor executes, and when the aforementioned program is executed, the processor can execute all or part of the steps including the above method embodiments. The processor may be implemented as one or more processor chips, or may be part of one or more application specific integrated circuits (ASICs); and the foregoing storage medium may include but not be limited to the following types. Storage medium: Flash memory, Read-Only Memory (ROM), Random Access Memory (RAM), removable hard disk, disk or optical disk, and other media that can store program code.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。 Finally, it should be noted that the above embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still The technical solutions described in the foregoing embodiments are modified, or some of the technical features are replaced by equivalents; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present application.

Claims (15)

  1. 一种接入认证页面网络资费指标同步优化方法,其特征在于,所述方法包括:A method for synchronizing optimization of network tariff indicators in an access authentication page, wherein the method comprises:
    当用户终端成功接入认证后,接入服务器启动计量第一网络资费指标;所述第一网络资费指标为上网时长或上网流量;After the user terminal successfully accesses the authentication, the access server starts to measure the first network tariff indicator; the first network tariff indicator is the Internet duration or the Internet traffic;
    并在预设同步周期将所述第一网络资费指标下发给所述用户终端,以便所述用户终端按照所述第一网络资费指标开始计量。And sending the first network tariff indicator to the user terminal in a preset synchronization period, so that the user terminal starts to measure according to the first network tariff indicator.
  2. 根据权利要求1所述的方法,其特征在于,在所述接入服务器将所述第一网络资费指标下发给所述用户终端之后,所述方法还包括:The method according to claim 1, wherein after the access server sends the first network tariff indicator to the user terminal, the method further includes:
    当所述接入服务器剩余的第一网络资费指标先达到零时,所述接入服务器向第一无线接入设备发送解除所述用户终端的解除命令,以便所述第一无线接入设备根据所述解除命令解除与所述用户终端的关联;When the first network tariff indicator remaining in the access server reaches zero first, the access server sends a release command to the first wireless access device to release the user terminal, so that the first wireless access device is configured according to the Dissolving the command to release the association with the user terminal;
    当所述用户终端剩余的第一网络资费指标先达到零时,所述接入服务器允许所述用户终端继续上网直到所述接入服务器剩余的第一网络资费指标达到零。When the remaining first network tariff indicator of the user terminal first reaches zero, the access server allows the user terminal to continue to access the Internet until the first network tariff indicator remaining by the access server reaches zero.
  3. 根据权利要求1所述的方法,其特征在于,在所述接入服务器将所述第一网络资费指标下发给所述用户终端之后,所述方法还包括:The method according to claim 1, wherein after the access server sends the first network tariff indicator to the user terminal, the method further includes:
    当所述用户终端主动离开网络时,所述接入服务器接收所述第一无线接入设备发送的所述用户终端离开网络的消息;When the user terminal actively leaves the network, the access server receives a message that the user terminal sends the first wireless access device to leave the network;
    所述接入服务器停止计量所述第一网络资费指标。The access server stops measuring the first network tariff indicator.
  4. 根据权利要求1所述的方法,其特征在于,在所述接入服务器将所述第一网络资费指标下发给所述用户终端之后,所述方法还包括:The method according to claim 1, wherein after the access server sends the first network tariff indicator to the user terminal, the method further includes:
    当所述用户终端在漫游规定有效时间内,欲关联第二无线接入设备时,所述接入服务器接收所述第二无线接入设备发送的所述用户终端是否已成功接入认证的询问消息;When the user terminal is to associate with the second wireless access device during the roaming specified effective time, the access server receives an inquiry that the user terminal sent by the second wireless access device has successfully accessed the authentication. Message
    当所述接入服务器确认所述用户终端已成功接入认证后,则通知所述第二无线接入设备开通所述用户终端上网权限;After the access server confirms that the user terminal has successfully accessed the authentication, notifying the second wireless access device to open the access authority of the user terminal;
    当所述接入服务器确认所述用户终端没有成功接入认证时,且当所述用户终端登录所述第二无线接入设备成功接入认证后,所述接入服务器重新启动计量第二网络资费指标,并将所述第二网络资费指标下发给所述用户终端,以便所述用 户终端按照所述第二网络资费指标重新计量;所述第二网络资费指标为当前剩余的上网时长或当前剩余的上网流量。When the access server confirms that the user terminal does not successfully access the authentication, and after the user terminal logs in to the second wireless access device to successfully access the authentication, the access server restarts the metering second network. a tariff indicator, and sending the second network tariff indicator to the user terminal for use The user terminal re-measures according to the second network tariff indicator; the second network tariff indicator is the current remaining Internet access duration or the current remaining Internet traffic.
  5. 一种接入认证页面网络资费指标同步优化方法,其特征在于,所述方法包括:A method for synchronizing optimization of network tariff indicators in an access authentication page, wherein the method comprises:
    用户终端成功接入认证;The user terminal successfully accesses the authentication;
    并在预设同步周期接收接入服务器计量的第一网络资费指标;所述第一网络资费指标为上网时长或上网流量;Receiving, by the preset synchronization period, a first network tariff indicator measured by the access server; the first network tariff indicator is an online time duration or an online traffic;
    且按照所述第一网络资费指标开始计量。And measuring according to the first network tariff indicator.
  6. 根据权利要求5所述的方法,其特征在于,在所述用户终端按照所述第一网络资费指标开始计量之后,所述方法还包括:The method according to claim 5, wherein after the user terminal starts measuring according to the first network tariff indicator, the method further includes:
    当所述用户终端剩余的第一网络资费指标先达到零时,所述用户终端继续上网直到所述接入服务器剩余的第一网络资费指标达到零;When the remaining first network tariff indicator of the user terminal first reaches zero, the user terminal continues to access the Internet until the first network tariff indicator remaining by the access server reaches zero;
    当所述接入服务器剩余的第一网络资费指标先达到零时,所述用户终端停止上网。When the remaining first network tariff indicator of the access server first reaches zero, the user terminal stops surfing the Internet.
  7. 根据权利要求5所述的方法,其特征在于,在所述用户终端按照所述第一网络资费指标开始计量之后,所述方法还包括:The method according to claim 5, wherein after the user terminal starts measuring according to the first network tariff indicator, the method further includes:
    当所述用户终端离开网络时,所述用户终端判断自身与所述接入服务器已经断开;When the user terminal leaves the network, the user terminal determines that it has been disconnected from the access server;
    则停止计量所述第一网络资费指标;Stop measuring the first network tariff indicator;
    并断开与所述接入服务器的网络连接;And disconnecting the network connection with the access server;
    且每隔预定时间向所述接入服务器发起重新连接。And reconnecting to the access server every predetermined time.
  8. 根据权利要求5所述的方法,其特征在于,在所述用户终端按照所述第一网络资费指标开始计量之后,所述方法还包括:The method according to claim 5, wherein after the user terminal starts measuring according to the first network tariff indicator, the method further includes:
    当所述用户终端在漫游规定有效时间内,欲关联所述第二无线接入设备时,所述用户终端向所述第二无线接入设备发送关联请求,以便所述第二无线接入设备根据所述关联请求确认是否允许所述用户终端关联;When the user terminal is to associate with the second wireless access device within a roaming validity time, the user terminal sends an association request to the second wireless access device, so that the second wireless access device Confirming whether the user terminal is allowed to be associated according to the association request;
    当所述用户终端接收到所述接入服务器发送的没有成功接入认证不能关联所述第二无线接入设备时,所述用户终端登录所述第二无线接入设备进行接入认证;When the user terminal receives the unsuccessful access authentication sent by the access server and cannot associate with the second wireless access device, the user terminal logs in to the second wireless access device to perform access authentication;
    在所述用户终端成功接入认证时,所述用户终端接收所述接入服务器下发的第二网络资费指标,并按照所述第二网络资费指标重新计量;所述第二网络资费 指标为当前剩余的上网时长或当前剩余的上网流量。When the user terminal successfully accesses the authentication, the user terminal receives the second network tariff indicator delivered by the access server, and re-measures according to the second network tariff indicator; the second network tariff The indicator is the current remaining Internet time or the current remaining Internet traffic.
  9. 一种接入服务器,其特征在于,所述接入服务器包括:An access server, where the access server includes:
    启动计量模块,用于当用户终端成功接入认证后,启动计量第一网络资费指标;所述第一网络资费指标为上网时长或上网流量;The metering module is started to start measuring the first network tariff indicator after the user terminal successfully accesses the authentication; the first network tariff indicator is the online time length or the Internet traffic;
    第一下发模块,用于在预设同步周期,将所述第一网络资费指标下发给所述用户终端,以便所述用户终端按照所述第一网络资费指标开始计量。The first sending module is configured to send the first network tariff indicator to the user terminal in a preset synchronization period, so that the user terminal starts to measure according to the first network tariff indicator.
  10. 根据权利要求9所述的接入服务器,其特征在于,所述接入服务器还包括:The access server according to claim 9, wherein the access server further comprises:
    第一发送模块,用于在所述第一下发模块将所述第一网络资费指标下发给所述用户终端之后,当所述接入服务器剩余的第一网络资费指标先达到零时,向第一无线接入设备发送解除所述用户终端的解除命令,以便所述第一无线接入设备根据所述解除命令解除与所述用户终端的关联;a first sending module, configured to: after the first sending module sends the first network tariff indicator to the user terminal, when the first network tariff indicator remaining by the access server reaches zero first, Sending, to the first wireless access device, a release command for releasing the user terminal, so that the first wireless access device releases the association with the user terminal according to the release command;
    允许上网模块,用于当所述用户终端剩余的第一网络资费指标先达到零时,允许所述用户终端继续上网直到所述接入服务器剩余的第一网络资费指标达到零。The network access module is configured to allow the user terminal to continue to access the Internet until the remaining first network tariff indicator of the user terminal reaches zero.
  11. 根据权利要求9所述的接入服务器,其特征在于,所述接入服务器还包括:The access server according to claim 9, wherein the access server further comprises:
    第一接收模块,用于在所述第一下发模块将所述第一网络资费指标下发给所述用户终端之后,当所述用户终端主动离开网络时,接收所述第一无线接入设备发送的所述用户终端离开网络的消息;a first receiving module, configured to: after the first sending module sends the first network tariff indicator to the user terminal, when the user terminal actively leaves the network, receive the first wireless access a message that the user terminal sent by the device leaves the network;
    第一停止计量模块,用于停止计量所述第一网络资费指标。The first stopping metering module is configured to stop measuring the first network tariff indicator.
  12. 根据权利要求9所述的接入服务器,其特征在于,所述接入服务器还包括:The access server according to claim 9, wherein the access server further comprises:
    第二接收模块,用于在所述第一下发模块将所述第一网络资费指标下发给所述用户终端之后,当所述用户终端在漫游规定有效时间内,欲关联第二无线接入设备时,接收所述第二无线接入设备发送的所述用户终端是否已成功接入认证的询问消息;a second receiving module, configured to: after the first sending module sends the first network tariff indicator to the user terminal, when the user terminal is within a roaming validity period, to associate with the second wireless connection Receiving, by the second wireless access device, whether the user terminal has successfully accessed the authentication query message;
    第一确认模块,用于确认所述用户终端已成功接入认证;a first confirmation module, configured to confirm that the user terminal has successfully accessed the authentication;
    通知模块,用于在所述用户终端确认所述用户终端已成功接入认证后,则通知所述第二无线接入设备开通所述用户终端上网权限;a notification module, configured to notify the second wireless access device to open the access right of the user terminal after the user terminal confirms that the user terminal has successfully accessed the authentication;
    第二确认模块,用于确认所述用户终端没有成功接入认证; a second confirmation module, configured to confirm that the user terminal does not successfully access the authentication;
    重新启动计量模块,用于当所述用户终端登录所述第二无线接入设备成功接入认证后,重新启动计量第二网络资费指标;The metering module is restarted, and after the user terminal logs in to the second wireless access device to successfully access the authentication, the second network tariff indicator is restarted;
    第二下发模块,用于将所述第二网络资费指标下发给所述用户终端,以便所述用户终端按照所述第二网络资费指标重新计量;所述第二网络资费指标为当前剩余的上网时长或当前剩余的上网流量。a second sending module, configured to send the second network tariff indicator to the user terminal, so that the user terminal re-measures according to the second network tariff indicator; the second network tariff indicator is current remaining The length of the Internet or the current remaining Internet traffic.
  13. 一种用户终端,其特征在于,所述用户终端包括:A user terminal, the user terminal comprising:
    接入认证模块,用于成功接入认证;Access authentication module for successful access authentication;
    第三接收模块,用于在预设同步周期接收接入服务器计量的第一网络资费指标;所述第一网络资费指标为上网时长或上网流量;The third receiving module is configured to receive, by using a first network tariff indicator measured by the access server, in the preset synchronization period, where the first network tariff indicator is an online time length or an online traffic flow;
    计量模块,用于按照所述第一网络资费指标开始计量。The metering module is configured to start measuring according to the first network tariff indicator.
  14. 根据权利要求13所述的用户终端,其特征在于,所述用户终端还包括:The user terminal according to claim 13, wherein the user terminal further comprises:
    继续上网模块,用于在所述计量模块按照所述第一网络资费指标开始计量之后,当所述用户终端剩余的第一网络资费指标先达到零时,继续上网直到所述接入服务器剩余的第一网络资费指标达到零;Continuing the Internet access module, after the metering module starts measuring according to the first network tariff indicator, when the remaining first network tariff indicator of the user terminal first reaches zero, continuing to access the Internet until the remaining of the access server The first network tariff indicator reaches zero;
    停止上网模块,用于当所述接入服务器剩余的第一网络资费指标先达到零时,停止上网。The network module is stopped, and when the first network tariff indicator remaining in the access server reaches zero first, the network is stopped.
  15. 根据权利要求13所述的用户终端,其特征在于,所述用户终端还包括:The user terminal according to claim 13, wherein the user terminal further comprises:
    第二发送模块,用于在所述计量模块按照所述第一网络资费指标开始计量之后,当所述用户终端在漫游规定有效时间内,欲关联所述第二无线接入设备时,向所述第二无线接入设备发送关联请求,以便所述第二无线接入设备根据所述关联请求确认是否允许所述用户终端关联;a second sending module, configured to: after the metering module starts to measure according to the first network tariff indicator, when the user terminal is to associate with the second wireless access device within a roaming effective time, The second wireless access device sends an association request, so that the second wireless access device confirms whether to allow the user terminal to associate according to the association request;
    登录模块,用于当所述用户终端接收到所述接入服务器发送的没有成功接入认证不能关联所述第二无线接入设备时,登录所述第二无线接入设备进行接入认证;a login module, configured to log in to the second wireless access device to perform access authentication when the user terminal receives the unsuccessful access authentication sent by the access server and cannot associate with the second wireless access device;
    第四接收模块,用于在所述登录模块成功接入认证时,接收所述接入服务器下发的第二网络资费指标;所述第二网络资费指标为当前剩余的上网时长或当前剩余的上网流量;a fourth receiving module, configured to receive a second network tariff indicator delivered by the access server when the login module successfully accesses the authentication; the second network tariff indicator is a current remaining online duration or currently remaining Internet traffic;
    第一重新计量模块,用于按照所述第二网络资费指标重新计量。 The first re-measurement module is configured to re-measure according to the second network tariff indicator.
PCT/CN2016/107884 2016-04-26 2016-11-30 Method and device for optimizing synchronisation of network tariff index on access authentication page WO2017185741A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610263833.6A CN105813050A (en) 2016-04-26 2016-04-26 Method and device for synchronously optimizing network tariff index of access authentication page
CN201610263833.6 2016-04-26

Publications (1)

Publication Number Publication Date
WO2017185741A1 true WO2017185741A1 (en) 2017-11-02

Family

ID=56458542

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/107884 WO2017185741A1 (en) 2016-04-26 2016-11-30 Method and device for optimizing synchronisation of network tariff index on access authentication page

Country Status (2)

Country Link
CN (1) CN105813050A (en)
WO (1) WO2017185741A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112269954A (en) * 2020-10-28 2021-01-26 连尚(北京)网络科技有限公司 Page use duration determining method and device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105897437A (en) * 2016-04-12 2016-08-24 上海斐讯数据通信技术有限公司 Portal authentication page network tariff index synchronization method, synchronization device and synchronization system
CN105813050A (en) * 2016-04-26 2016-07-27 上海斐讯数据通信技术有限公司 Method and device for synchronously optimizing network tariff index of access authentication page

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004079542A2 (en) * 2003-03-04 2004-09-16 Cisco Technology Inc. Method and apparatus providing prepaid billing for network services using explicit service authorization
CN1921399A (en) * 2005-08-23 2007-02-28 华为技术有限公司 Charging method and system
CN101742460A (en) * 2008-11-24 2010-06-16 中国移动通信集团上海有限公司 Method and system for charging and charging information determination equipment
CN101977116A (en) * 2010-10-28 2011-02-16 杭州华三通信技术有限公司 Flow charging method and client side
CN105813050A (en) * 2016-04-26 2016-07-27 上海斐讯数据通信技术有限公司 Method and device for synchronously optimizing network tariff index of access authentication page
CN105897437A (en) * 2016-04-12 2016-08-24 上海斐讯数据通信技术有限公司 Portal authentication page network tariff index synchronization method, synchronization device and synchronization system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442793B (en) * 2008-12-30 2010-09-29 杭州华三通信技术有限公司 Access method, apparatus and system for wireless network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004079542A2 (en) * 2003-03-04 2004-09-16 Cisco Technology Inc. Method and apparatus providing prepaid billing for network services using explicit service authorization
CN1921399A (en) * 2005-08-23 2007-02-28 华为技术有限公司 Charging method and system
CN101742460A (en) * 2008-11-24 2010-06-16 中国移动通信集团上海有限公司 Method and system for charging and charging information determination equipment
CN101977116A (en) * 2010-10-28 2011-02-16 杭州华三通信技术有限公司 Flow charging method and client side
CN105897437A (en) * 2016-04-12 2016-08-24 上海斐讯数据通信技术有限公司 Portal authentication page network tariff index synchronization method, synchronization device and synchronization system
CN105813050A (en) * 2016-04-26 2016-07-27 上海斐讯数据通信技术有限公司 Method and device for synchronously optimizing network tariff index of access authentication page

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112269954A (en) * 2020-10-28 2021-01-26 连尚(北京)网络科技有限公司 Page use duration determining method and device
CN112269954B (en) * 2020-10-28 2024-05-03 连尚(北京)网络科技有限公司 Page use time length determining method and device

Also Published As

Publication number Publication date
CN105813050A (en) 2016-07-27

Similar Documents

Publication Publication Date Title
WO2017177687A1 (en) Portal authentication page network tariff index synchronization method, device and system
CN112566050B (en) Cellular service account transfer for an accessory wireless device
EP2705642B1 (en) System and method for providing access credentials
EP2617222B1 (en) Dynamic account creation with secured hotspot network
EP3297243B1 (en) Trusted login method and device
US9918353B2 (en) 802.1X access session keepalive method, device, and system
US9401905B1 (en) Transferring soft token authentication capabilities to a new device
WO2016160457A1 (en) Secure transmission of a session identifier during service authentication
CN103874065B (en) A kind of method and device for judging customer location exception
WO2020073039A1 (en) Apparatuses, methods, and computer program products for secure access credential management
CN108200155A (en) The mirror image synchronization method in Docker mirror images warehouse and mirror image synchronization system
WO2018196329A1 (en) Access device, authentication server, and method and system for controlling access of terminal device
WO2015139725A1 (en) User identifier based device, identity and activity management system
WO2017185741A1 (en) Method and device for optimizing synchronisation of network tariff index on access authentication page
CN105516163A (en) Login method, terminal device and communication system
CN109413649A (en) A kind of access authentication method and device
EP3855695B1 (en) Access authentication
CN105429979A (en) Cross-platform user certificating method and intelligent router, Internet surfing system
CN103200159A (en) Network access method and equipment
JP2019533951A (en) Next-generation system certification
CN107770035B (en) Method and device for pushing offline notification
US9143482B1 (en) Tokenized authentication across wireless communication networks
WO2018036220A1 (en) Authority authentication method and system for accessing wireless device
CN104486362A (en) Obtaining method and system for WiFi access point description information
CN112311766B (en) Method and device for acquiring user certificate and terminal equipment

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 16900246

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16900246

Country of ref document: EP

Kind code of ref document: A1