Broadband access online number control method, system, equipment and medium

By acquiring dial-up requests in the broadband access network and judging the number of online sessions, combined with setting expired locks, the problem of users illegally connecting multiple devices is solved, and network stability and management efficiency are improved.

CN119521331APending Publication Date: 2025-02-25GUANGDONG ESHORE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411643481.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-18
Publication Date
2025-02-25

Smart Images

  • Figure CN119521331A_ABST
    Figure CN119521331A_ABST
Patent Text Reader

Abstract

The invention provides a broadband access online number control method, system and device and a medium, and the method comprises the steps: obtaining a dialing request initiated by a target terminal, and determining a dialing account according to the dialing request; searching online session records associated with the dialing account based on a preset online database, and determining the number of online sessions of the dialing account according to each online session record; refusing the dialing request of the target terminal under the condition that the online session number exceeds a preset maximum online number; and returning a request passing message to the target terminal under the condition that the online session number does not exceed the maximum online number. According to the invention, a plurality of devices are prevented from sharing one broadband line to surf the Internet in a mode of limiting the number of online sessions of the dial-up account, so that the network stability is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of broadband authentication management, and in particular to a method, system, device and medium for controlling the number of online broadband accesses. Background Art

[0002] In the broadband access network of the operator, each user has his or her own dial-up account and password, which are written in the optical modem. After the dial-up is successful, the optical modem establishes a PPPOE channel with the BRAS. When the authentication is successful, the dial-up channel sends the rate so that the user can access the Internet smoothly. "1 to N" in broadband operators refers to a broadband networking mode in which users legally use the same account to initiate dial-ups on N optical modems through the same line, obtaining N times the Internet speed and N IPs. This is usually used for VIP users.

[0003] However, there are some users who only apply for an account with only one authorized online number. Through a legally authorized account, users illegally connect to more devices than the authorized number to access the network, that is, multiple devices can use this account to access the Internet at the same time, which constitutes a "1 to N" illegal connection behavior, which will lead to complicated network management; and users use the 1 to N method to allow multiple devices to share a broadband line to access the Internet, which will cause unstable network speed and easy disconnection, bringing a heavier burden to the server. Summary of the invention

[0004] The embodiment of the present invention provides a method, system, device and medium for controlling the number of online broadband accesses to solve the problems existing in the related technologies. The technical solution is as follows:

[0005] In a first aspect, an embodiment of the present invention provides a method for controlling the number of online broadband accesses, including:

[0006] Obtain the dial-up request initiated by the target terminal, and determine the dial-up account according to the dial-up request;

[0007] Searching for online session records associated with the dial-up account based on a preset online database, and determining the number of online sessions of the dial-up account according to each online session record;

[0008] If the number of online sessions exceeds the preset maximum number of online sessions, the dial-up request of the target terminal is rejected;

[0009] If the number of online sessions does not exceed the maximum number of online sessions, a request approval message is returned to the target terminal.

[0010] In one embodiment, it further includes:

[0011] Determine whether the dial-up account is a synchronous dial-up account;

[0012] When the dial-up account is a synchronous dial-up account, a corresponding expiration lock is set for the dial-up account to restrict multiple terminals from using the dial-up account for network connection at the same time.

[0013] In one embodiment, it further includes:

[0014] When the target terminal initiates a dial-up request, a corresponding unique identifier is generated for the target terminal. The unique identifier is generated based on the account information of the dial-up account, the MAC address of the target terminal, and the network line of the target terminal.

[0015] In one embodiment, it further includes:

[0016] Determining whether there is an online session record corresponding to the unique identifier in the online database according to the unique identifier;

[0017] If there is no online session record corresponding to the unique identifier in the online database, create a new record entry for the target terminal in the online database to obtain a new session record;

[0018] Set the terminal online status in the new session record to the camp-on status.

[0019] In one embodiment, it further includes:

[0020] If there is an online session record corresponding to the unique identifier in the online database, determining the online status of the terminal in the online session record;

[0021] When the terminal is in the online state, a disconnection request is sent to the target server, so that the target server performs a forced terminal offline operation and deletes the corresponding online session record.

[0022] In one embodiment, it further includes:

[0023] When the terminal online state is the pre-camped state, the maintenance time of the pre-camped state is obtained. If the maintenance time exceeds the timeout period, the corresponding online session record is deleted from the online database; if the maintenance time does not exceed the timeout period, the dialing request of the target terminal is rejected.

[0024] In one implementation, the number of online sessions refers to the number of online sessions of all designated terminals in a camped state and an online state under a dial-up account; wherein the designated terminal refers to a terminal device other than a target terminal.

[0025] In a second aspect, an embodiment of the present invention provides a broadband access online quantity control system, which executes the broadband access online quantity control method as described above.

[0026] In a third aspect, an embodiment of the present invention provides an electronic device, the device comprising: a memory and a processor. The memory and the processor communicate with each other through an internal connection path, the memory is used to store instructions, the processor is used to execute the instructions stored in the memory, and when the processor executes the instructions stored in the memory, the processor executes the method in any one of the above-mentioned embodiments.

[0027] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a computer, the method in any one of the above-mentioned embodiments is executed.

[0028] The advantages or beneficial effects of the above technical solution include at least:

[0029] The present invention identifies a dial-up account according to a dial-up request, searches for an online session record corresponding to the dial-up account based on an online database, and determines the number of online sessions of the dial-up account according to each online session record; rejects the dial-up request of the target terminal when the number of online sessions exceeds a preset maximum number of online sessions, and returns a request approval message to the target terminal when the number of online sessions does not exceed the maximum number of online sessions. By limiting the number of online sessions of a dial-up account, it is prevented that multiple devices share a broadband line to access the Internet, thereby improving network stability.

[0030] The above summary is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments and features described above, further aspects, embodiments and features of the present invention will be readily apparent by reference to the accompanying drawings and the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in the present invention and should not be regarded as limiting the scope of the present invention.

[0032] Figure 1 It is a flow chart of a method for controlling the number of online broadband accesses of the present invention;

[0033] Figure 2 The structure block diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0034] In the following, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the spirit or scope of the present invention. Therefore, the drawings and descriptions are considered to be exemplary and non-restrictive in nature.

[0035] In the operator's broadband access network, each user has his or her own dial-up account and password, which are written in the optical modem. After the dial-up is successful, the optical modem establishes a PPPOE channel with the BRAS, and sends the rate to the dial-up channel when the authentication is successful. 1 to N means that a user uses the same account to initiate dial-up on N optical modems through the same line to obtain N times the network speed and N IPs. It is usually used for VIP users and will lead to complex management. Some individual users only apply for one account with only one licensed online number, and initiate N illegal connections, which will lead to the loss of operator fees. Operators hope to prevent this illegal 1 to N behavior. Moreover, the 1 to N behavior allows multiple devices to share a broadband line to access the Internet, which will cause unstable network speed and easy disconnection, bringing a heavier burden to the server.

[0036] In order to solve the above problems, an embodiment of the present invention provides a method for controlling the number of online broadband accesses, which can effectively control the number of online broadband accesses, prevent multiple devices from illegally sharing a broadband line to access the Internet, and improve network stability.

[0037] like Figure 1 As shown, the broadband access online quantity control method specifically includes the following steps:

[0038] Step S1: Obtain a dialing request initiated by a target terminal, and determine a dialing account according to the dialing request.

[0039] It should be noted that before initiating a dial-up request, an account must be opened on the broadband authentication platform in advance, where account opening refers to the process of creating a new account or user record on the broadband authentication platform. This process usually includes steps such as user registration, information entry, and account creation, so that users can access and use broadband services. In this process, users can set the maximum number of online users allowed for the account, that is, the maximum number of users that can access the account at any given time at the same time, which is used to control and limit users' use of network resources to ensure network stability and service quality.

[0040] Before using broadband services, users need to go through a series of verification processes to ensure their identity and authority. Specifically, when a user initiates a dial-up request through the target terminal, they need to enter the dial-up account for authentication and check whether the user's dial-up account is valid, including checking whether the account has been activated, expired, suspended or disabled. Only dial-up accounts that are in a valid state can proceed to subsequent authentication steps. At the same time, verify whether the password entered by the user matches the password stored in the broadband authentication platform to ensure that only the legitimate owner of the dial-up account can access the account; password verification usually involves encryption and hashing technology to protect the user's password security.

[0041] After completing the above two verification steps, if the dial-up account status is normal and the password is correct, the user can be authenticated as a legitimate user and obtain network access rights to the target server.

[0042] It should be noted that the target server is also called BRAS (Broadband Remote Access Server), which is a server that provides broadband access services and is mainly responsible for processing users' broadband access requests, managing user sessions, and executing network policies.

[0043] Furthermore, during the dial-up account authentication process or after the authentication is passed, a unique identifier is generated based on the account information of the dial-up account, the MAC address of the target terminal, and the network line of the target terminal. The unique identifier is also called ClientID, which refers to a string of characters or numbers used to uniquely identify a client device or terminal in the network.

[0044] After generating the unique identifier ClientID corresponding to the target terminal, this embodiment checks whether there is an online session record corresponding to the ClientID of the target terminal being attempted to be connected in the online database. If no matching online session record is found, it means that the target terminal has not been registered as online. At this time, a new record entry is created in the online database for the target terminal that initiated the dial-up request to obtain a new session record; and the terminal online state in the new session record is set to the pre-camped state.

[0045] It should be noted that the new session records and the online session records that already exist in the online database contain the following information:

[0046] ClientID: Unique identifier of the terminal.

[0047] Account information: The user account associated with the terminal.

[0048] MAC address: the physical address of the terminal.

[0049] Line information: Specific line information of the terminal connected to the network.

[0050] Total segment online status: the current status of the terminal, including online status, pre-occupied status, offline status, etc.

[0051] Timestamp: The time the record was created, or the time the endpoint attempted to connect.

[0052] Other possible information: such as IP address, allocated resources, etc.

[0053] In this embodiment, setting the terminal online status in the new session record to the pre-camped state means that the terminal has initiated a connection request, but the connection has not been fully established. At this stage, the target server will reserve resources for the terminal device, but the actual data transmission has not yet started. However, the pre-camped state is temporary and usually has a preset timeout period. If the authentication is not completed within the timeout period, the pre-camped state may be cleared and the resources will be released.

[0054] If there is an online session record corresponding to the unique identifier ClientID in the online database, the online state of the terminal in the online session record is determined.

[0055] If the terminal online status is online, a disconnection request is sent to the target server, requesting to disconnect the target server from the terminal, so that the target server forces the terminal to go offline, ensuring that the terminal device is forcibly disconnected from the network, ending its online session, and deleting or clearing all online session information related to the ClientID from the online library to reflect that the terminal device is no longer online.

[0056] It should be noted that the online state means that the terminal device has obtained network access rights and can access network resources and use network services normally, such as browsing the Internet, downloading files, etc. This embodiment forces active terminals in the online state to go offline, and can control the number of terminals that are online at the same time under the same account.

[0057] When the online state of the terminal is the camped state, the maintenance time of the camped state is recorded according to the timestamp; the maintenance time is compared with the predefined timeout period. If the maintenance time exceeds the timeout period, it means that the terminal fails to complete the connection process within the specified time, then the online session record of the terminal is deleted from the online database. Deleting the expired camped state can release the resources reserved for the terminal, such as IP address, bandwidth, etc., so that these resources can be used by other terminals.

[0058] If the maintenance time does not exceed the timeout period, the dial-up request of the target terminal will be rejected to prevent the same account from being used by multiple terminals at the same time.

[0059] The above series of steps is equivalent to updating the content of the online database after the target terminal initiates a dial-up request, so as to facilitate the subsequent accurate counting of the number of online broadband accesses.

[0060] Step S2: searching for online session records associated with the dial-up account based on a preset online database, and determining the number of online sessions of the dial-up account according to each online session record.

[0061] In order to prevent the "1 to N" behavior, this embodiment also needs to determine whether the dial-up account belongs to a simultaneous dial-up account. Specifically:

[0062] Get the dial-up time of the dial-up account, and search the online database for accounts that dialed at the same dial-up time. If a dial-up account has two or more online session records, and the account and online time in these records are the same, but the session IDs are different, then the dial-up account will be marked as a "simultaneous dial-up account".

[0063] When an account is marked as a "simultaneous dial-up account", the broadband authentication platform will set an expired lock for this account to prevent multiple terminals from using the account to connect to the network at the same time. Therefore, when determining that a dial-up account is a simultaneous dial-up account, it is necessary to check whether the dial-up account has an expired lock set. If the dial-up account does not have an expired lock set, or the existing expired lock has expired and is invalid, an expired lock will be set for the dial-up account and new dial-up requests will be allowed. If the detection finds that the dial-up account has an expired lock that has not expired, the new dial-up request will be rejected to ensure that the same account is not used by multiple terminals at the same time.

[0064] It should be noted that the expired lock has a preset expiration time, which is usually short, such as 30 seconds or a few minutes. When the expired lock expires, the expired lock will be automatically released, allowing the account to be used for dialing again.

[0065] In this embodiment, the online session record associated with the dial-up account is searched based on a preset online database, and the number of online sessions of the dial-up account is determined according to each online session record.

[0066] It should be noted that the number of online sessions refers to the number of online sessions of all designated terminals in the dial-up account that are in the camped state and the online state; wherein the designated terminal refers to the terminal device other than the target terminal.

[0067] This is equivalent to counting the number of online sessions (including pre-occupied and online) of non-clientID in the online database according to the dial-up account, and judging whether it is lower than the maximum number of online sessions allowed.

[0068] When statistics show that the number of online sessions exceeds the preset maximum number of online sessions, the dial-up request of the target terminal is rejected and a request failure message is sent to the target terminal to ensure that network resources are not overused and to avoid network congestion or service degradation caused by too many terminals being online at the same time.

[0069] When statistics show that the number of online sessions does not exceed the maximum number of online sessions, a request pass message is returned to the target terminal. At the same time, the target terminal is remotely connected to the target server via broadband to establish a PPPOE channel, allowing the target terminal to successfully connect to the network.

[0070] Further, the target server records the event that the target terminal successfully accesses the Internet, calculates the corresponding ClientID, and updates the terminal online status of the target terminal in the online database to "online", indicating that the target terminal can now access network resources.

[0071] When the target terminal disconnects from the network, the event of the target terminal going offline is recorded, and the terminal online status of the online session record in the online database is updated to "offline". At the same time, the online time is calculated (the offline time minus the session start time), and the relevant information (account, line, online and offline time, MAC address, session ID) is written into the online list, and then these records are stored in the online database.

[0072] The Broadband Authentication Platform regularly identifies and marks accounts that violate the terms of service in the Internet access list. If an account is found to have two or more records showing the same account number and Internet access time but different session IDs, this indicates that the account may be trying to access the Internet from multiple devices at the same time. The Broadband Authentication Platform will set a "simultaneous dial-up" mark for such an account for further processing, such as limiting services, billing adjustments, or security reviews.

[0073] Another embodiment of the present invention provides a broadband access online quantity control system, which executes the broadband access online quantity control method as described above.

[0074] It should be noted that the functions of each module in the system can be found in the corresponding description in the above method and will not be repeated here.

[0075] Another embodiment of the present invention provides an electronic device, Figure 2 FIG. 2 shows a structural block diagram of an electronic device according to an embodiment of the present invention. Figure 2 As shown, the electronic device includes: a memory 100 and a processor 200, wherein the memory 100 stores a computer program that can be run on the processor 200. When the processor 200 executes the computer program, the method for controlling the number of online broadband access in the above embodiment is implemented. The number of the memory 100 and the processor 200 can be one or more.

[0076] The electronic device also includes:

[0077] The communication interface 300 is used to communicate with external devices and perform data exchange transmission.

[0078] If the memory 100, the processor 200 and the communication interface 300 are implemented independently, the memory 100, the processor 200 and the communication interface 300 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc.

[0079] Optionally, in a specific implementation, if the memory 100, the processor 200 and the communication interface 300 are integrated on a chip, the memory 100, the processor 200 and the communication interface 300 can communicate with each other through an internal interface.

[0080] An embodiment of the present invention provides a computer-readable storage medium storing a computer program, which implements the method provided in the embodiment of the present invention when the program is executed by a processor.

[0081] An embodiment of the present invention further provides a chip, which includes a processor for calling and executing instructions stored in the memory from the memory, so that a communication device equipped with the chip executes the method provided by the embodiment of the present invention.

[0082] An embodiment of the present invention also provides a chip, including: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the method provided by the embodiment of the invention.

[0083] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the advanced RISC machines (ARM) architecture.

[0084] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory, and may also include a non-volatile random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct rambus RAM (DR RAM).

[0085] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.

[0086] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.

[0087] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0088] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of various changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for controlling the number of online broadband accesses, characterized in that: include: Obtaining a dial-up request initiated by a target terminal, and determining a dial-up account according to the dial-up request; Searching for online session records associated with the dial-up account based on a preset online database, and determining the number of online sessions of the dial-up account according to each of the online session records; If the number of online sessions exceeds a preset maximum number of online sessions, rejecting the dial-up request of the target terminal; When the number of online sessions does not exceed the maximum number of online sessions, a request approval message is returned to the target terminal.

2. The method for controlling the number of online broadband accesses according to claim 1, characterized in that: Also includes: Determine whether the dial-up account is a synchronous dial-up account; When the dial-up account is the synchronous dial-up account, a corresponding expiration lock is set for the dial-up account to restrict multiple terminals from using the dial-up account for network connection at the same time.

3. The method for controlling the number of online broadband accesses according to claim 1, characterized in that: Also includes: When the target terminal initiates the dial-up request, a corresponding unique identifier is generated for the target terminal, and the unique identifier is generated according to the account information of the dial-up account, the MAC address of the target terminal, and the network line of the target terminal.

4. The method for controlling the number of online broadband accesses according to claim 3, characterized in that: Also includes: Determining, according to the unique identifier, whether the online session record corresponding to the unique identifier exists in the online database; If the online session record corresponding to the unique identifier does not exist in the online database, creating a new record entry for the target terminal in the online database to obtain a new session record; The online state of the terminal in the new session record is set as the camped state.

5. The method for controlling the number of online broadband accesses according to claim 3, characterized in that: Also includes: If the online session record corresponding to the unique identifier exists in the online database, determining the online status of the terminal in the online session record; When the terminal is in the online state, a disconnection request is sent to the target server, so that the target server performs a forced terminal offline operation and deletes the corresponding online session record.

6. The method for controlling the number of online broadband accesses according to claim 5, characterized in that: Also includes: When the online state of the terminal is a pre-camped state, obtaining the maintenance time of the pre-camped state, and if the maintenance time exceeds a timeout period, deleting the corresponding online session record from the online database; If the maintenance time does not exceed the timeout period, the dialing request of the target terminal is rejected.

7. The method for controlling the number of online broadband access users according to claim 1, characterized in that: The number of online sessions refers to the number of online sessions of all designated terminals in the dial-up account that are in a camped state or an online state; wherein the designated terminal refers to a terminal device other than the target terminal.

8. A broadband access online quantity control system, characterized in that: Execute the broadband access online quantity control method as described in any one of claims 1 to 7.

9. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores instructions, and the instructions are loaded and executed by the processor to implement the method for controlling the number of online broadband access as claimed in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for controlling the number of online broadband accesses according to any one of claims 1 to 7 is implemented.